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

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

Potentially problematic release.


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

Files changed (256) hide show
  1. {ethyca_fides-2.69.3b2.dist-info → ethyca_fides-2.70.0rc1.dist-info}/METADATA +1 -1
  2. {ethyca_fides-2.69.3b2.dist-info → ethyca_fides-2.70.0rc1.dist-info}/RECORD +220 -214
  3. fides/_version.py +3 -3
  4. fides/api/alembic/migrations/versions/4d8c0fcc5771_adding_default_system_groups.py +78 -0
  5. fides/api/api/v1/endpoints/privacy_request_endpoints.py +87 -23
  6. fides/api/util/cache.py +1 -1
  7. fides/ui-build/static/admin/404.html +1 -1
  8. fides/ui-build/static/admin/_next/static/chunks/{155-b5e4370b158e5ee3.js → 155-88303b05c6e115a5.js} +1 -1
  9. fides/ui-build/static/admin/_next/static/chunks/2121.1de2fa060eae34aa.js +1 -0
  10. fides/ui-build/static/admin/_next/static/chunks/3585-451504ea5ed7a1ea.js +1 -0
  11. fides/ui-build/static/admin/_next/static/chunks/3700-2a7094f112a1608a.js +1 -0
  12. fides/ui-build/static/admin/_next/static/chunks/3855-12ee1dfbbe47fd28.js +1 -0
  13. fides/ui-build/static/admin/_next/static/chunks/409-c1256ecda1b15db6.js +1 -0
  14. fides/ui-build/static/admin/_next/static/chunks/431-78bf05f35d7eec4f.js +1 -0
  15. fides/ui-build/static/admin/_next/static/chunks/4558-de5ced790b3380dc.js +1 -0
  16. fides/ui-build/static/admin/_next/static/chunks/4608-96f480766541124b.js +1 -0
  17. fides/ui-build/static/admin/_next/static/chunks/4718-6585c97c26647e65.js +1 -0
  18. fides/ui-build/static/admin/_next/static/chunks/502-a40d39e615f7b664.js +1 -0
  19. fides/ui-build/static/admin/_next/static/chunks/504-afd3588f1908ac33.js +1 -0
  20. fides/ui-build/static/admin/_next/static/chunks/5309-3b6cf0cc9d0c6a83.js +1 -0
  21. fides/ui-build/static/admin/_next/static/chunks/5574-b8c4cba5a6938c00.js +1 -0
  22. fides/ui-build/static/admin/_next/static/chunks/{5596-bb601cbf40e47a0f.js → 5596-29a7c8322530b7cf.js} +1 -1
  23. fides/ui-build/static/admin/_next/static/chunks/5698.2135391a128cc373.js +164 -0
  24. fides/ui-build/static/admin/_next/static/chunks/{6416-79eee298a5b3f80f.js → 6416-18d438ff85d807f8.js} +1 -1
  25. fides/ui-build/static/admin/_next/static/chunks/7045-f15044a4d4525946.js +1 -0
  26. fides/ui-build/static/admin/_next/static/chunks/7158-835ba42fd881d8dd.js +1 -0
  27. fides/ui-build/static/admin/_next/static/chunks/7202.3febe9e89640c712.js +1 -0
  28. fides/ui-build/static/admin/_next/static/chunks/7929-919e2dff24e40397.js +1 -0
  29. fides/ui-build/static/admin/_next/static/chunks/9046-2a332fe338535c84.js +1 -0
  30. fides/ui-build/static/admin/_next/static/chunks/9226-2f960b7ca530642a.js +1 -0
  31. fides/ui-build/static/admin/_next/static/chunks/{9676.9fd9552ef744c717.js → 9676.b86ecbcfe5afd25d.js} +1 -1
  32. fides/ui-build/static/admin/_next/static/chunks/{9951-c389c51ca6353035.js → 9951-651d521d9a02b6df.js} +1 -1
  33. fides/ui-build/static/admin/_next/static/chunks/pages/{_app-c780470042750062.js → _app-e08a732e348aa667.js} +63 -226
  34. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/{manual-fb9434d926ebf0b3.js → manual-939253f8daf349b2.js} +1 -1
  35. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems-f90aa48500c1cbde.js +1 -0
  36. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices-a94e19870fe3e210.js +1 -0
  37. fides/ui-build/static/admin/_next/static/chunks/pages/consent/reporting-09be5455ba85db39.js +1 -0
  38. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]/{[resourceUrn]-6a196c704f1c6dd7.js → [resourceUrn]-293c1f2d9aefb447.js} +1 -1
  39. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/resources/{[resourceUrn]-9cee4e222ebb2b60.js → [resourceUrn]-18501152fa1e4f40.js} +1 -1
  40. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]/{[systemId]-db7f1a269d3e7fc2.js → [systemId]-758d51b4d37dbd09.js} +1 -1
  41. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]-0e4d9ff89c63793c.js +1 -0
  42. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/activity-2635ef588bf06145.js +1 -0
  43. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/detection/{[resourceUrn]-9ae81f5c245b8a01.js → [resourceUrn]-0497f3ffdb632516.js} +1 -1
  44. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{detection-6537c93c69b597c7.js → detection-a780390da99f3e43.js} +1 -1
  45. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/discovery/{[resourceUrn]-5db26067d921a94a.js → [resourceUrn]-1901c26cdde820da.js} +1 -1
  46. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{discovery-9f6a62614d7eb113.js → discovery-0cea22af5929c81f.js} +1 -1
  47. fides/ui-build/static/admin/_next/static/chunks/pages/datamap-619f27c745188adb.js +1 -0
  48. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/new-78e052c8f95110c4.js +1 -0
  49. fides/ui-build/static/admin/_next/static/chunks/pages/dataset-d6d7ee8bd8858a8a.js +1 -0
  50. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/{[id]-6bf117315d909ad1.js → [id]-cc149157d290a94d.js} +1 -1
  51. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/{new-1e2fa11f22dbc449.js → new-4c9fb068a5561658.js} +1 -1
  52. fides/ui-build/static/admin/_next/static/chunks/pages/integrations/[id]-8b13bb5f7bee61c6.js +1 -0
  53. fides/ui-build/static/admin/_next/static/chunks/pages/integrations-6f109ef64304ef59.js +1 -0
  54. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/{[id]-670b05b03ba11e0a.js → [id]-8566e3b7b2a632fa.js} +1 -1
  55. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/storage-1b38b656807ed0cd.js +1 -0
  56. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests-65f0d5672041a202.js +1 -0
  57. fides/ui-build/static/admin/_next/static/chunks/pages/reporting/datamap-b20c53b82a54f5ea.js +1 -0
  58. fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields-26ce8fc493993765.js +1 -0
  59. fides/ui-build/static/admin/_next/static/chunks/pages/settings/messaging-providers/{[key]-f8887b2b29aed1b9.js → [key]-b0d93bf478bf63ee.js} +1 -1
  60. fides/ui-build/static/admin/_next/static/chunks/pages/settings/messaging-providers/{new-5473558807e94462.js → new-084f9756b9987285.js} +1 -1
  61. fides/ui-build/static/admin/_next/static/chunks/pages/settings/messaging-providers-6c51ffd46bb598e7.js +1 -0
  62. fides/ui-build/static/admin/_next/static/chunks/pages/settings/privacy-requests-fbe7e8030d837aed.js +1 -0
  63. fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]/{test-datasets-aa1ada4d4ac09759.js → test-datasets-a86bafe1b4e1205f.js} +1 -1
  64. fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]-1895c6a13b543436.js +1 -0
  65. fides/ui-build/static/admin/_next/static/chunks/pages/systems-ae3f3470e2734933.js +1 -0
  66. fides/ui-build/static/admin/_next/static/chunks/pages/taxonomy-1b9c4b2749e3ece4.js +1 -0
  67. fides/ui-build/static/admin/_next/static/chunks/webpack-2766492c5dbceb0a.js +1 -0
  68. fides/ui-build/static/admin/_next/static/mcntn488F1AKOmZCrH0tI/_buildManifest.js +1 -0
  69. fides/ui-build/static/admin/add-systems/manual.html +1 -1
  70. fides/ui-build/static/admin/add-systems/multiple.html +1 -1
  71. fides/ui-build/static/admin/add-systems.html +1 -1
  72. fides/ui-build/static/admin/consent/configure/add-vendors.html +1 -1
  73. fides/ui-build/static/admin/consent/configure.html +1 -1
  74. fides/ui-build/static/admin/consent/privacy-experience/[id].html +1 -1
  75. fides/ui-build/static/admin/consent/privacy-experience/new.html +1 -1
  76. fides/ui-build/static/admin/consent/privacy-experience.html +1 -1
  77. fides/ui-build/static/admin/consent/privacy-notices/[id].html +1 -1
  78. fides/ui-build/static/admin/consent/privacy-notices/new.html +1 -1
  79. fides/ui-build/static/admin/consent/privacy-notices.html +1 -1
  80. fides/ui-build/static/admin/consent/properties.html +1 -1
  81. fides/ui-build/static/admin/consent/reporting.html +1 -1
  82. fides/ui-build/static/admin/consent.html +1 -1
  83. fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn].html +1 -1
  84. fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn].html +1 -1
  85. fides/ui-build/static/admin/data-catalog/[systemId]/projects.html +1 -1
  86. fides/ui-build/static/admin/data-catalog/[systemId]/resources/[resourceUrn].html +1 -1
  87. fides/ui-build/static/admin/data-catalog/[systemId]/resources.html +1 -1
  88. fides/ui-build/static/admin/data-catalog.html +1 -1
  89. fides/ui-build/static/admin/data-discovery/action-center/[monitorId]/[systemId].html +1 -1
  90. fides/ui-build/static/admin/data-discovery/action-center/[monitorId].html +1 -1
  91. fides/ui-build/static/admin/data-discovery/action-center.html +1 -1
  92. fides/ui-build/static/admin/data-discovery/activity.html +1 -1
  93. fides/ui-build/static/admin/data-discovery/detection/[resourceUrn].html +1 -1
  94. fides/ui-build/static/admin/data-discovery/detection.html +1 -1
  95. fides/ui-build/static/admin/data-discovery/discovery/[resourceUrn].html +1 -1
  96. fides/ui-build/static/admin/data-discovery/discovery.html +1 -1
  97. fides/ui-build/static/admin/datamap.html +1 -1
  98. fides/ui-build/static/admin/dataset/[datasetId]/[collectionName]/[...subfieldNames].html +1 -1
  99. fides/ui-build/static/admin/dataset/[datasetId]/[collectionName].html +1 -1
  100. fides/ui-build/static/admin/dataset/[datasetId].html +1 -1
  101. fides/ui-build/static/admin/dataset/new.html +1 -1
  102. fides/ui-build/static/admin/dataset.html +1 -1
  103. fides/ui-build/static/admin/datastore-connection/[id].html +1 -1
  104. fides/ui-build/static/admin/datastore-connection/new.html +1 -1
  105. fides/ui-build/static/admin/datastore-connection.html +1 -1
  106. fides/ui-build/static/admin/index.html +1 -1
  107. fides/ui-build/static/admin/integrations/[id].html +1 -1
  108. fides/ui-build/static/admin/integrations.html +1 -1
  109. fides/ui-build/static/admin/login/[provider].html +1 -1
  110. fides/ui-build/static/admin/login.html +1 -1
  111. fides/ui-build/static/admin/messaging/[id].html +1 -1
  112. fides/ui-build/static/admin/messaging/add-template.html +1 -1
  113. fides/ui-build/static/admin/messaging.html +1 -1
  114. fides/ui-build/static/admin/poc/ant-components.html +1 -1
  115. fides/ui-build/static/admin/poc/form-experiments/AntForm.html +1 -1
  116. fides/ui-build/static/admin/poc/form-experiments/FormikAntFormItem.html +1 -1
  117. fides/ui-build/static/admin/poc/form-experiments/FormikControlled.html +1 -1
  118. fides/ui-build/static/admin/poc/form-experiments/FormikField.html +1 -1
  119. fides/ui-build/static/admin/poc/form-experiments/FormikSpreadField.html +1 -1
  120. fides/ui-build/static/admin/poc/forms.html +1 -1
  121. fides/ui-build/static/admin/poc/table-migration.html +1 -1
  122. fides/ui-build/static/admin/privacy-requests/[id].html +1 -1
  123. fides/ui-build/static/admin/privacy-requests/configure/storage.html +1 -1
  124. fides/ui-build/static/admin/privacy-requests/configure.html +1 -1
  125. fides/ui-build/static/admin/privacy-requests.html +1 -1
  126. fides/ui-build/static/admin/properties/[id].html +1 -1
  127. fides/ui-build/static/admin/properties/add-property.html +1 -1
  128. fides/ui-build/static/admin/properties.html +1 -1
  129. fides/ui-build/static/admin/reporting/datamap.html +1 -1
  130. fides/ui-build/static/admin/settings/about/alpha.html +1 -1
  131. fides/ui-build/static/admin/settings/about.html +1 -1
  132. fides/ui-build/static/admin/settings/consent/[configuration_id]/[purpose_id].html +1 -1
  133. fides/ui-build/static/admin/settings/consent.html +1 -1
  134. fides/ui-build/static/admin/settings/custom-fields.html +1 -1
  135. fides/ui-build/static/admin/settings/domain-records.html +1 -1
  136. fides/ui-build/static/admin/settings/domains.html +1 -1
  137. fides/ui-build/static/admin/settings/email-templates.html +1 -1
  138. fides/ui-build/static/admin/settings/locations.html +1 -1
  139. fides/ui-build/static/admin/settings/messaging-providers/[key].html +1 -1
  140. fides/ui-build/static/admin/settings/messaging-providers/new.html +1 -1
  141. fides/ui-build/static/admin/settings/messaging-providers.html +1 -1
  142. fides/ui-build/static/admin/settings/organization.html +1 -1
  143. fides/ui-build/static/admin/settings/privacy-requests.html +1 -1
  144. fides/ui-build/static/admin/settings/regulations.html +1 -1
  145. fides/ui-build/static/admin/systems/configure/[id]/test-datasets.html +1 -1
  146. fides/ui-build/static/admin/systems/configure/[id].html +1 -1
  147. fides/ui-build/static/admin/systems.html +1 -1
  148. fides/ui-build/static/admin/taxonomy.html +1 -1
  149. fides/ui-build/static/admin/user-management/new.html +1 -1
  150. fides/ui-build/static/admin/user-management/profile/[id].html +1 -1
  151. fides/ui-build/static/admin/user-management.html +1 -1
  152. fides/ui-build/static/admin/_next/static/86A8z6OnbTuDYww0DJkX0/_buildManifest.js +0 -1
  153. fides/ui-build/static/admin/_next/static/chunks/1841-2052c3239f2a0a1a.js +0 -1
  154. fides/ui-build/static/admin/_next/static/chunks/2751-58285ccf50a0ba4b.js +0 -1
  155. fides/ui-build/static/admin/_next/static/chunks/3377-c5e0cc3de1a5ffd1.js +0 -1
  156. fides/ui-build/static/admin/_next/static/chunks/3855-8377b3fcbb3d93b0.js +0 -1
  157. fides/ui-build/static/admin/_next/static/chunks/409-e1deab19fc7e6d99.js +0 -1
  158. fides/ui-build/static/admin/_next/static/chunks/4230-c55d5531697a715c.js +0 -1
  159. fides/ui-build/static/admin/_next/static/chunks/431-86ad2beeb93c95c9.js +0 -1
  160. fides/ui-build/static/admin/_next/static/chunks/4608-2fbc3389681f6924.js +0 -1
  161. fides/ui-build/static/admin/_next/static/chunks/4786-8d78ec773d171562.js +0 -1
  162. fides/ui-build/static/admin/_next/static/chunks/5309-e994c5195f99b1eb.js +0 -1
  163. fides/ui-build/static/admin/_next/static/chunks/6780-eeb7775eb21d7a12.js +0 -1
  164. fides/ui-build/static/admin/_next/static/chunks/7929-4314e317b1717257.js +0 -1
  165. fides/ui-build/static/admin/_next/static/chunks/8373-bd50fa53cbcab2aa.js +0 -1
  166. fides/ui-build/static/admin/_next/static/chunks/9046-0f92802b0e3382a9.js +0 -1
  167. fides/ui-build/static/admin/_next/static/chunks/9226-49dbcdb135bf9793.js +0 -1
  168. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems-92034daafd2187a0.js +0 -1
  169. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices-d7d9ff9ed28fa790.js +0 -1
  170. fides/ui-build/static/admin/_next/static/chunks/pages/consent/reporting-ddf6ba92355f81de.js +0 -1
  171. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]-de957913f9b47daa.js +0 -1
  172. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/activity-715064e1c9788e1a.js +0 -1
  173. fides/ui-build/static/admin/_next/static/chunks/pages/datamap-aed0e6dafc143b97.js +0 -1
  174. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/new-5bb96c8684a38bbf.js +0 -1
  175. fides/ui-build/static/admin/_next/static/chunks/pages/dataset-639046f6c76bc8bd.js +0 -1
  176. fides/ui-build/static/admin/_next/static/chunks/pages/integrations/[id]-0159fbb2e0440709.js +0 -1
  177. fides/ui-build/static/admin/_next/static/chunks/pages/integrations-267d2742fffaebe5.js +0 -1
  178. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/storage-482a7256925a6e06.js +0 -1
  179. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests-28083bfb2dec7b9f.js +0 -1
  180. fides/ui-build/static/admin/_next/static/chunks/pages/reporting/datamap-aed018025b09c045.js +0 -1
  181. fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields-128f952a49a0e8dc.js +0 -1
  182. fides/ui-build/static/admin/_next/static/chunks/pages/settings/messaging-providers-1065fbefd449719c.js +0 -1
  183. fides/ui-build/static/admin/_next/static/chunks/pages/settings/privacy-requests-907bfbb71d84646f.js +0 -1
  184. fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]-02b0dde03a1ad159.js +0 -1
  185. fides/ui-build/static/admin/_next/static/chunks/pages/systems-4a6ef2509e8cedfc.js +0 -1
  186. fides/ui-build/static/admin/_next/static/chunks/pages/taxonomy-16b122b83e57bb8c.js +0 -1
  187. fides/ui-build/static/admin/_next/static/chunks/webpack-55e1c55932df2413.js +0 -1
  188. {ethyca_fides-2.69.3b2.dist-info → ethyca_fides-2.70.0rc1.dist-info}/WHEEL +0 -0
  189. {ethyca_fides-2.69.3b2.dist-info → ethyca_fides-2.70.0rc1.dist-info}/entry_points.txt +0 -0
  190. {ethyca_fides-2.69.3b2.dist-info → ethyca_fides-2.70.0rc1.dist-info}/licenses/LICENSE +0 -0
  191. {ethyca_fides-2.69.3b2.dist-info → ethyca_fides-2.70.0rc1.dist-info}/top_level.txt +0 -0
  192. /fides/ui-build/static/admin/_next/static/chunks/{1115-d5a834cdaa717edc.js → 1115-7888473b3dc28cda.js} +0 -0
  193. /fides/ui-build/static/admin/_next/static/chunks/{1817-dc2bba3ca736d39e.js → 1817-17079d2f8cf94941.js} +0 -0
  194. /fides/ui-build/static/admin/_next/static/chunks/{2040-3f9c66c56a05b336.js → 2040-ab6212a3074f34f9.js} +0 -0
  195. /fides/ui-build/static/admin/_next/static/chunks/{2921-cdc7a13973f4a0ba.js → 2921-66f65496c3a09316.js} +0 -0
  196. /fides/ui-build/static/admin/_next/static/chunks/{3696-fff4f944d7d5ff20.js → 3696-c25dc8d1b0e1aee1.js} +0 -0
  197. /fides/ui-build/static/admin/_next/static/chunks/{3872-4786ccbe7c6f65b0.js → 3872-3514b712afd683c0.js} +0 -0
  198. /fides/ui-build/static/admin/_next/static/chunks/{3923-db57401384d1de8f.js → 3923-a551756b413367ea.js} +0 -0
  199. /fides/ui-build/static/admin/_next/static/chunks/{401-4e56e924f35317f2.js → 401-ffe4e8436e1eceb9.js} +0 -0
  200. /fides/ui-build/static/admin/_next/static/chunks/{5185-a219b390ef17ff4b.js → 5185-33f50cf9ae17b42e.js} +0 -0
  201. /fides/ui-build/static/admin/_next/static/chunks/{5783-c62c79e7be21be73.js → 5783-8de76df87af55e98.js} +0 -0
  202. /fides/ui-build/static/admin/_next/static/chunks/{6084-29cbe703bffdccfe.js → 6084-2cd165179c428a6f.js} +0 -0
  203. /fides/ui-build/static/admin/_next/static/chunks/{6853-91a8641cd2784b54.js → 6853-7004a8c420b1ca02.js} +0 -0
  204. /fides/ui-build/static/admin/_next/static/chunks/{6882-55dbb142f7c40f53.js → 6882-447f15e87b8c48a5.js} +0 -0
  205. /fides/ui-build/static/admin/_next/static/chunks/{6954-6dfafd38b02d5852.js → 6954-599f2de2c902e9b2.js} +0 -0
  206. /fides/ui-build/static/admin/_next/static/chunks/{7476-3da7a490debad8e2.js → 7476-0b6e114658b15eaa.js} +0 -0
  207. /fides/ui-build/static/admin/_next/static/chunks/{7630-22f9c4b25d6aed29.js → 7630-e7ea13be69c118a1.js} +0 -0
  208. /fides/ui-build/static/admin/_next/static/chunks/{7725-b2fa93d747d3d85d.js → 7725-dd6736855807936a.js} +0 -0
  209. /fides/ui-build/static/admin/_next/static/chunks/{796-8e4da90ae82dfebb.js → 796-e07ac2c543f569e3.js} +0 -0
  210. /fides/ui-build/static/admin/_next/static/chunks/{8002-78d78545309b2c1c.js → 8002-25fd174aec9b077b.js} +0 -0
  211. /fides/ui-build/static/admin/_next/static/chunks/{9826-f316eb1d61cb90b6.js → 9826-c02be5882205bbbc.js} +0 -0
  212. /fides/ui-build/static/admin/_next/static/chunks/pages/{404-e4a1f93a7ce944f0.js → 404-2eb8aed4939f1142.js} +0 -0
  213. /fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/{multiple-a4f821c4902f2df8.js → multiple-83ed7da0bb90b0a5.js} +0 -0
  214. /fides/ui-build/static/admin/_next/static/chunks/pages/consent/configure/{add-vendors-96245b63aafc5168.js → add-vendors-46b88bda3d7b15c5.js} +0 -0
  215. /fides/ui-build/static/admin/_next/static/chunks/pages/consent/{configure-87919c1192e68b1a.js → configure-c0db068d1863222f.js} +0 -0
  216. /fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience/{[id]-4fea66e59bd59de8.js → [id]-fd41ffaff543e05a.js} +0 -0
  217. /fides/ui-build/static/admin/_next/static/chunks/pages/consent/{privacy-experience-ae8a64fffe3f8c66.js → privacy-experience-92a337ee96845af2.js} +0 -0
  218. /fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{[id]-c8038e05f35da8d1.js → [id]-1fd2cda8707314f6.js} +0 -0
  219. /fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{new-f3a40101a8f3fd00.js → new-2987e397445713c5.js} +0 -0
  220. /fides/ui-build/static/admin/_next/static/chunks/pages/consent/{properties-c985ea8c1a0e0550.js → properties-069f4e3ee96ebf77.js} +0 -0
  221. /fides/ui-build/static/admin/_next/static/chunks/pages/{consent-35c0ae9d5b5a940c.js → consent-e5a33654a2dfaf35.js} +0 -0
  222. /fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/{[projectUrn]-965af6c1fd01334e.js → [projectUrn]-6a4b0d49dcbf17a8.js} +0 -0
  223. /fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/{projects-06ba907e7d91a724.js → projects-be7b385073f22414.js} +0 -0
  224. /fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/{resources-5afecf141308bfc5.js → resources-af80fdca3bbdc82f.js} +0 -0
  225. /fides/ui-build/static/admin/_next/static/chunks/pages/{data-catalog-f99af5669b9ab44c.js → data-catalog-351caadeef03876a.js} +0 -0
  226. /fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{action-center-5868591ff1e5f881.js → action-center-1554afcb8b9da2ab.js} +0 -0
  227. /fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]/{[...subfieldNames]-72b9878ea9b91529.js → [...subfieldNames]-ef71f387fbbab425.js} +0 -0
  228. /fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/{[collectionName]-f36a46381a6c25d4.js → [collectionName]-d790553662caf5c3.js} +0 -0
  229. /fides/ui-build/static/admin/_next/static/chunks/pages/dataset/{[datasetId]-b653fd60e7db989b.js → [datasetId]-cb63db8594fe8dc1.js} +0 -0
  230. /fides/ui-build/static/admin/_next/static/chunks/pages/{datastore-connection-c55e3e0e19030f3f.js → datastore-connection-a832084ce294f8af.js} +0 -0
  231. /fides/ui-build/static/admin/_next/static/chunks/pages/{index-d66ea87b457af21e.js → index-269b8f81546dad66.js} +0 -0
  232. /fides/ui-build/static/admin/_next/static/chunks/pages/messaging/{[id]-4352e55f110556b4.js → [id]-d8c5c03fb2f31d65.js} +0 -0
  233. /fides/ui-build/static/admin/_next/static/chunks/pages/messaging/{add-template-c533120e94e049e3.js → add-template-0e0c06e3c8aabe02.js} +0 -0
  234. /fides/ui-build/static/admin/_next/static/chunks/pages/{messaging-b14f5f38b2d711a8.js → messaging-3f15804cf9625f01.js} +0 -0
  235. /fides/ui-build/static/admin/_next/static/chunks/pages/poc/{ant-components-31d51e3b9227c8d5.js → ant-components-248ad9f65a872442.js} +0 -0
  236. /fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{AntForm-8794a0d2e7554a05.js → AntForm-aedb66a62042b10a.js} +0 -0
  237. /fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{FormikAntFormItem-90b31073e478c99c.js → FormikAntFormItem-018df38b7cd77fdb.js} +0 -0
  238. /fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{FormikControlled-0a6859a0225b7e00.js → FormikControlled-6ca9099d03aab817.js} +0 -0
  239. /fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{FormikField-eb0552917907fe21.js → FormikField-0f2c90786ea005a4.js} +0 -0
  240. /fides/ui-build/static/admin/_next/static/chunks/pages/poc/{forms-b2a2a084d8cfe22d.js → forms-200b51a725f8b2d1.js} +0 -0
  241. /fides/ui-build/static/admin/_next/static/chunks/pages/poc/{table-migration-0c944cfa9c6acbff.js → table-migration-e551fccfcaae76e7.js} +0 -0
  242. /fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/{configure-331147598052f25c.js → configure-b00532a0ad4f6927.js} +0 -0
  243. /fides/ui-build/static/admin/_next/static/chunks/pages/properties/{[id]-e02dc4b4b385c86f.js → [id]-322a01e2bceab3fb.js} +0 -0
  244. /fides/ui-build/static/admin/_next/static/chunks/pages/properties/{add-property-74c2a0ff4c992633.js → add-property-777ed2d73812043d.js} +0 -0
  245. /fides/ui-build/static/admin/_next/static/chunks/pages/{properties-7459d56e548925b2.js → properties-08472b2a6bf1d392.js} +0 -0
  246. /fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent/[configuration_id]/{[purpose_id]-7f2c50044806c094.js → [purpose_id]-f3e6e74e0efb005c.js} +0 -0
  247. /fides/ui-build/static/admin/_next/static/chunks/pages/settings/{consent-e8cab942d09aa358.js → consent-55e36839d219a503.js} +0 -0
  248. /fides/ui-build/static/admin/_next/static/chunks/pages/settings/{domain-records-cca3d1a26e1269bb.js → domain-records-7ddf9d992fe714a6.js} +0 -0
  249. /fides/ui-build/static/admin/_next/static/chunks/pages/settings/{domains-07e1b9937a169e32.js → domains-7c78ae51f0dd7102.js} +0 -0
  250. /fides/ui-build/static/admin/_next/static/chunks/pages/settings/{email-templates-3bc799dac8423f50.js → email-templates-05ffbda19ab894b9.js} +0 -0
  251. /fides/ui-build/static/admin/_next/static/chunks/pages/settings/{locations-9f36b6c213ae524c.js → locations-77fb85bdd0be42b5.js} +0 -0
  252. /fides/ui-build/static/admin/_next/static/chunks/pages/settings/{organization-3e23d92d789fff99.js → organization-44456bfe54ac4ad5.js} +0 -0
  253. /fides/ui-build/static/admin/_next/static/chunks/pages/settings/{regulations-f0f0ea35d0185ae3.js → regulations-2866ac99faa5a542.js} +0 -0
  254. /fides/ui-build/static/admin/_next/static/chunks/pages/user-management/profile/{[id]-0a8ec3aa2ed59a33.js → [id]-ff4711db191099cd.js} +0 -0
  255. /fides/ui-build/static/admin/_next/static/chunks/pages/{user-management-4036b023366b7eec.js → user-management-82fcf1151e2fe2ba.js} +0 -0
  256. /fides/ui-build/static/admin/_next/static/{86A8z6OnbTuDYww0DJkX0 → mcntn488F1AKOmZCrH0tI}/_ssgManifest.js +0 -0
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4065],{70378:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/custom-fields",function(){return i(78422)}])},56358:function(e,t,i){"use strict";i.d(t,{q:function(){return n}});var l=i(24246);let n=(0,i(96306).IUT)({displayName:"TrashCanOutlineIcon",viewBox:"0 0 11 12",path:(0,l.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"})})},95492:function(e,t,i){"use strict";i.d(t,{l:function(){return n}});var l=i(24246);let n=(0,i(96306).IUT)({displayName:"TrashCanSolidIcon",viewBox:"0 0 12 15",path:(0,l.jsx)("path",{d:"M8.37857 1.18083C8.23393 0.892838 7.93661 0.710938 7.6125 0.710938H4.3875C4.06339 0.710938 3.76607 0.892838 3.62143 1.18083L3.42857 1.56094H0.857143C0.383036 1.56094 -1.19209e-07 1.94158 -1.19209e-07 2.41094C-1.19209e-07 2.8803 0.383036 3.26094 0.857143 3.26094H11.1429C11.6162 3.26094 12 2.8803 12 2.41094C12 1.94158 11.6162 1.56094 11.1429 1.56094H8.57143L8.37857 1.18083ZM11.167 4.11094H0.857143V12.6109C0.857143 13.5486 1.62589 14.3109 2.57143 14.3109H9.45268C10.3754 14.3109 11.167 13.5486 11.167 12.6109V4.11094ZM9.02411 6.23594V12.1859C9.02411 12.4197 8.80714 12.6109 8.59554 12.6109C8.33571 12.6109 8.16696 12.4197 8.16696 12.1859V6.23594C8.16696 6.00219 8.33571 5.81094 8.59554 5.81094C8.80714 5.81094 9.02411 6.00219 9.02411 6.23594ZM6.45268 6.23594V12.1859C6.45268 12.4197 6.23571 12.6109 6.02411 12.6109C5.76429 12.6109 5.57143 12.4197 5.57143 12.1859V6.23594C5.57143 6.00219 5.76429 5.81094 6.02411 5.81094C6.23571 5.81094 6.45268 6.00219 6.45268 6.23594ZM3.85714 6.23594V12.1859C3.85714 12.4197 3.66429 12.6109 3.42857 12.6109C3.19286 12.6109 3 12.4197 3 12.1859V6.23594C3 6.00219 3.19286 5.81094 3.42857 5.81094C3.66429 5.81094 3.85714 6.00219 3.85714 6.23594Z",fill:"currentColor"})})},77213:function(e,t,i){"use strict";i.d(t,{Z:function(){return g}});var l=i(24246),n=i(96306),s=i(88038),a=i.n(s),r=i(86677);i(27378);var o=i(25980),d=i(90867),u=i(42478),c=i(77830),p=()=>{let e=(0,r.useRouter)();return(0,l.jsx)(n.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,l.jsxs)(n.xuv,{children:[(0,l.jsxs)(n.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,l.jsx)(n.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,l.jsx)(n.wpx,{onClick:()=>{e.push(c.AD)},children:"Configure"})]}),(0,l.jsxs)(n.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},g=e=>{let{children:t,title:i,padded:s=!0,mainProps:c}=e,g=(0,o.hz)(),m=(0,r.useRouter)(),x="/privacy-requests"===m.pathname||"/datastore-connection"===m.pathname,f=!(g.flags.messagingConfiguration&&x),{data:h}=(0,u.JE)(void 0,{skip:f}),{data:v}=(0,d.PW)(void 0,{skip:f}),C=g.flags.messagingConfiguration&&(!h||!v)&&x;return(0,l.jsxs)(n.kCb,{"data-testid":i,direction:"column",h:"100vh",children:[(0,l.jsxs)(a(),{children:[(0,l.jsxs)("title",{children:["Fides Admin UI - ",i]}),(0,l.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,l.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,l.jsxs)(n.kCb,{as:"main",direction:"column",py:s?6:0,px:s?10:0,h:s?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...c,children:[C?(0,l.jsx)(p,{}):null,t]})]})}},58754:function(e,t,i){"use strict";var l=i(24246),n=i(96306),s=i(70788);t.Z=e=>{let{heading:t,breadcrumbItems:i,isSticky:a=!0,children:r,rightContent:o,style:d,...u}=e;return(0,l.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",...d}:{paddingBottom:"24px",...d},children:[(0,l.jsxs)(n.jqI,{justify:"space-between",children:["string"==typeof t?(0,l.jsx)(n.lQT,{className:i||r?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,o&&(0,l.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!i&&(0,l.jsx)(s.m,{className:r?"pb-4":void 0,items:i,"data-testid":"page-breadcrumb"}),r]})}},19904:function(e,t,i){"use strict";i.d(t,{Tg:function(){return a}});var l=i(24246),n=i(16134),s=i(31793);let a=e=>(0,n.C)(s.uu).filter(t=>e.includes(t)).length>0;t.ZP=e=>{let{scopes:t,children:i}=e;return a(t)?(0,l.jsx)(l.Fragment,{children:i}):null}},94799:function(e,t,i){"use strict";i.d(t,{k:function(){return s}});var l=i(76649);let n=e=>(0,l.Ln)({id:"string"},e),s=e=>(null!=e?e:[]).filter(n)},30320:function(e,t,i){"use strict";i.d(t,{m:function(){return o}});var l=i(27378),n=i(25980),s=i(17245),a=i(32885),r=i(94799);let o=e=>{let{resourceFidesKey:t,resourceType:i}=e,{errorAlert:o}=(0,s.VY)(),{plus:d}=(0,n.hz)(),u=(0,l.useMemo)(()=>null!=t?t:"",[]),c=(0,a.YU)(!0,{skip:!d}),p=(0,a.VN)(i,{skip:!d}),{data:g,isLoading:m,error:x,isError:f}=(0,a.PV)(null!=t?t:"",{skip:""!==u&&!(d&&u)}),[h]=(0,a._D)(),v=c.isLoading||p.isLoading||m,C=(0,l.useMemo)(()=>new Map((0,r.k)(c.data).map(e=>{var t;return[e.id,{...e,options:(null!==(t=e.allowed_values)&&void 0!==t?t:[]).map(e=>({value:e,label:e}))}]})),[c.data]),y=(0,l.useMemo)(()=>{var e;return null===(e=p.data)||void 0===e?void 0:e.filter(e=>e.active)},[p.data]),j=(0,l.useMemo)(()=>new Map((0,r.k)(y).map(e=>[e.id,e])),[y]),_=(0,l.useMemo)(()=>f&&(null==x?void 0:x.status)===404?new Map:new Map((0,r.k)(g).map(e=>[e.custom_field_definition_id,e])),[g,f,x]),b=(0,l.useMemo)(()=>{let e=[...j.keys()];return e.sort(),e},[j]),T=(0,l.useMemo)(()=>{let e={};return y&&_&&y.forEach(t=>{let i=_.get(t.id||"");i&&(t.allow_list_id&&"string[]"===t.field_type?e[i.custom_field_definition_id]=i.value:e[i.custom_field_definition_id]=i.value.toString())}),e},[y,_]),S=(0,l.useCallback)(async e=>{if(!d)return;let l="fides_key"in e&&""!==e.fides_key?e.fides_key:t;if(!l)return;let{customFieldValues:n}=e;if(!n||0===Object.keys(n).length)return;let s=[],a=[];b.forEach(e=>{let t=_.get(e),i=n[e];void 0===i||""===i||Array.isArray(i)&&0===i.length?(null==t?void 0:t.id)&&a.push(t.id):s.push({custom_field_definition_id:e,resource_id:l,id:null==t?void 0:t.id,value:i})});try{await h({resource_type:i,resource_id:l,upsert:s,delete:a})}catch(e){o("One or more custom fields have failed to save, please try again."),console.error(e)}},[d,_,o,t,b,h,i]);return{customFieldValues:T,definitionIdToCustomField:_,idToAllowListWithOptions:C,idToCustomFieldDefinition:j,isEnabled:d,isLoading:v,sortedCustomFieldDefinitionIds:b,upsertCustomFields:S}}},95346:function(e,t,i){"use strict";i.d(t,{uc:function(){return h},Hn:function(){return o},Uv:function(){return a},C7:function(){return d},mZ:function(){return f.m}});var l,n,s,a,r=i(21910);(l=s||(s={}))[l.CREATE_CUSTOM_FIELDS=0]="CREATE_CUSTOM_FIELDS",l[l.CREATE_CUSTOM_LISTS=1]="CREATE_CUSTOM_LISTS",l[l.CHOOSE_FROM_LIBRARY=2]="CHOOSE_FROM_LIBRARY",r.AL.STRING,r.AL.STRING,r.AL.STRING_,(n=a||(a={})).SINGLE_SELECT="singleSelect",n.MULTIPLE_SELECT="multipleSelect",n.LOCATION_SELECT="locationSelect",n.OPEN_TEXT="openText";let o=[{label:"Single select",value:"singleSelect"},{label:"Multiple select",value:"multipleSelect"},{label:"Location select",value:"locationSelect"},{label:"Open Text",value:"openText"}],d=[{label:"taxonomy:".concat(r.P6.DATA_CATEGORY),value:r.P6.DATA_CATEGORY},{label:"taxonomy:".concat(r.P6.DATA_SUBJECT),value:r.P6.DATA_SUBJECT},{label:"taxonomy:".concat(r.P6.DATA_USE),value:r.P6.DATA_USE},{label:"".concat(r.P6.SYSTEM,":information"),value:r.P6.SYSTEM},{label:"system:data use",value:r.P6.PRIVACY_DECLARATION}];var u=i(24246),c=i(96306),p=i(34090),g=i(30234),m=i(97181),x=i(40324),f=i(30320);let h=e=>{let{resourceFidesKey:t,resourceType:i}=e,{idToAllowListWithOptions:l,idToCustomFieldDefinition:n,isEnabled:s,isLoading:a,sortedCustomFieldDefinitionIds:o}=(0,f.m)({resourceFidesKey:t,resourceType:i});return s&&0!==o.length?(0,u.jsx)(g.Z,{heading:"Custom fields",children:(0,u.jsx)(c.kCb,{flexDir:"column","data-testid":"custom-fields-list",children:(0,u.jsx)(c.kCb,{flexDir:"column",gap:"24px",children:a?(0,u.jsx)(c.M5Y,{children:(0,u.jsx)(c.$jN,{})}):o.length>0&&(0,u.jsx)(c.kCb,{flexDirection:"column",gap:"12px",paddingBottom:"24px",children:o.map(e=>{let t=n.get(e);if(!t)return null;let i="customFieldValues.".concat(t.id);if(!t.allow_list_id&&t.field_type===r.AL.STRING)return(0,u.jsx)(p.gN,{name:i,children:e=>{let{field:i}=e;return(0,u.jsx)(x.j0,{...i,label:t.name,tooltip:t.description,variant:"stacked"})}},e);let s=l.get(t.allow_list_id);if(!s)return null;let{options:a}=s;return(0,u.jsx)(m.d,{name:i,allowClear:!0,mode:t.field_type!==r.AL.STRING?"multiple":void 0,label:t.name,options:a,tooltip:t.description,layout:"stacked",className:"w-full"},e)})})})})}):null};i(94799)},97181:function(e,t,i){"use strict";i.d(t,{d:function(){return d}});var l=i(24246),n=i(96306),s=i(34090),a=i(27378),r=i(46238),o=i(40324);let d=e=>{let{name:t,label:i,labelProps:d,tooltip:u,isRequired:c,layout:p="inline",helperText:g,...m}=e,[x,f,{setValue:h}]=(0,s.U$)(t),v=!!(f.touched&&f.error),[C,y]=(0,a.useState)("");x.value||"tags"!==m.mode&&"multiple"!==m.mode||(x.value=[]),"tags"===m.mode&&"string"==typeof x.value&&(x.value=[x.value]);let j="tags"===m.mode?(e,t)=>e?e.value!==C||x.value.includes(C)?m.optionRender?m.optionRender(e,t):e.label:'Create "'.concat(C,'"'):void 0:m.optionRender||void 0,_=e=>{y(e),m.onSearch&&m.onSearch(e)},b=(e,t)=>{h(e),m.onChange&&m.onChange(e,t)};return"inline"===p?(0,l.jsx)(n.NIc,{isInvalid:v,isRequired:c,children:(0,l.jsxs)(n.rjZ,{templateColumns:i?"1fr 3fr":"1fr",children:[i?(0,l.jsx)(o.__,{htmlFor:m.id||t,...d,children:i}):null,(0,l.jsxs)(n.jqI,{align:"center",children:[(0,l.jsxs)(n.jqI,{vertical:!0,flex:1,className:"mr-2",children:[(0,l.jsx)(n.WPr,{...x,id:m.id||t,"data-testid":"controlled-select-".concat(x.name),...m,optionRender:j,onSearch:"tags"===m.mode?_:void 0,onChange:b,value:x.value||void 0,status:v?"error":void 0}),g&&(0,l.jsx)(n.Q6r,{children:g}),(0,l.jsx)(o.Bc,{isInvalid:v,message:f.error,fieldName:x.name})]}),(0,l.jsx)(r.b,{label:u,className:v?"mt-2 self-start":void 0})]})]})}):(0,l.jsx)(n.NIc,{isInvalid:v,isRequired:c,children:(0,l.jsxs)(n.gCW,{alignItems:"start",children:[(0,l.jsxs)(n.jqI,{align:"center",children:[i?(0,l.jsx)(o.__,{htmlFor:m.id||t,fontSize:"xs",my:0,mr:1,...d,children:i}):null,(0,l.jsx)(r.b,{label:u})]}),(0,l.jsx)(n.WPr,{...x,id:m.id||t,"data-testid":"controlled-select-".concat(x.name),...m,optionRender:j,onSearch:"tags"===m.mode?_:void 0,onChange:b,value:x.value||void 0,status:v?"error":void 0}),g&&(0,l.jsx)(n.Q6r,{style:{marginTop:0},children:g}),(0,l.jsx)(o.Bc,{isInvalid:v,message:f.error,fieldName:x.name})]})})}},10342:function(e,t,i){"use strict";var l=i(24246),n=i(96306),s=i(46238);t.Z=e=>{let{title:t,tooltip:i,children:a,...r}=e;return(0,l.jsxs)(n.xuv,{borderRadius:"md",border:"1px solid",borderColor:"gray.200",...r,children:[(0,l.jsxs)(n.X6q,{as:"h3",fontSize:"sm",fontWeight:"semibold",color:"gray.700",py:4,px:6,backgroundColor:"gray.50",borderRadius:"md",textAlign:"left",children:[t,i?(0,l.jsx)(n.xvT,{as:"span",mx:1,children:(0,l.jsx)(s.b,{label:i})}):void 0]}),(0,l.jsx)(n.Kqy,{p:6,spacing:6,children:a})]})}},17245:function(e,t,i){"use strict";i.d(t,{HK:function(){return a},VY:function(){return n.V},pI:function(){return u},h0:function(){return l.h},Rx:function(){return g},rK:function(){return x}});var l=i(36866),n=i(84306),s=i(812);let a=()=>{let{errorAlert:e}=(0,n.V)();return{handleError:t=>{let i="An unexpected error occurred. Please try again.";(0,s.Ot)(t)?i=t.data.detail:(0,s.tB)(t)&&(i=t.data.detail[0].msg),e(i)}}};var r=i(27378),o=i(20682),d=i(21910);let u=e=>{let{data:t}=(0,o.$I)({}),i=(0,r.useMemo)(()=>(null==t?void 0:t.items)||[],[t]);return(0,r.useMemo)(()=>{var t;if(!e)return"";if(e.connection_type===d.Rj.SAAS&&(null===(t=e.saas_config)||void 0===t?void 0:t.type)){let t=i.find(t=>{var i;return t.identifier===(null===(i=e.saas_config)||void 0===i?void 0:i.type)});if(t)return t}return e},[e,i])};var c=i(40431);let p=()=>({search:c.Oi.withDefault("")}),g=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{defaultSearchQuery:t,onSearchChange:i}=e,l=(0,r.useMemo)(()=>p(),[]),[n,s]=(0,c.XI)(l,{history:"push"}),a=(0,r.useMemo)(()=>({searchQuery:n.search||t||void 0}),[n,t]),o=(0,r.useCallback)(e=>{s({search:e||null})},[s]),d=(0,r.useCallback)(()=>{s({search:null})},[s]);return(0,r.useEffect)(()=>{i&&i(a)},[a,i]),{...a,updateSearch:o,resetSearch:d,searchProps:{value:a.searchQuery||"",onChange:o,onClear:()=>o("")}}},m=e=>({sortKey:e?(0,c.jx)([...e]):c.Oi.withDefault(""),sortOrder:(0,c.km)(["ascend","descend"])}),x=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{defaultSortKey:t,defaultSortOrder:i,onSortingChange:l,validColumns:n}=e,s=(0,r.useMemo)(()=>m(n),[n]),[a,o]=(0,c.XI)(s,{history:"push"}),d=(0,r.useMemo)(()=>{var e;return{sortKey:a.sortKey||t,sortOrder:null!==(e=a.sortOrder)&&void 0!==e?e:i}},[a,t,i]),u=(0,r.useCallback)((e,t)=>{o({sortKey:e?String(e):null,sortOrder:null!=t?t:null})},[o]),p=(0,r.useCallback)(()=>{o({sortKey:null,sortOrder:null})},[o]);return(0,r.useEffect)(()=>{l&&l(d)},[d,l]),{...d,updateSorting:u,resetSorting:p,sortingProps:{sortDirections:["ascend","descend"],defaultSortOrder:d.sortOrder,sortedInfo:d.sortKey?{field:d.sortKey,order:d.sortOrder}:void 0}}}},84306:function(e,t,i){"use strict";i.d(t,{V:function(){return s}});var l=i(24246),n=i(96306);let s=()=>{let e=(0,n.pmc)();return{errorAlert:(t,i,s)=>{let a={...s,position:(null==s?void 0:s.position)||"top",render:e=>{let{onClose:s}=e;return(0,l.jsxs)(n.bZj,{alignItems:"normal",status:"error","data-testid":"error-alert",children:[(0,l.jsx)(n.zMQ,{}),(0,l.jsxs)(n.xuv,{children:[i&&(0,l.jsx)(n.CdC,{children:i}),(0,l.jsx)(n.XaZ,{children:t})]}),(0,l.jsx)(n.PZ7,{onClick:s,position:"relative",right:0,size:"sm",top:-1})]})}};(null==s?void 0:s.id)&&e.isActive(s.id)?e.update(s.id,a):e(a)},successAlert:(t,i,s)=>{let a={...s,position:(null==s?void 0:s.position)||"top",render:e=>{let{onClose:s}=e;return(0,l.jsxs)(n.bZj,{alignItems:"normal",status:"success",variant:"subtle","data-testid":"success-alert",children:[(0,l.jsx)(n.zMQ,{}),(0,l.jsxs)(n.xuv,{children:[i&&(0,l.jsx)(n.CdC,{children:i}),(0,l.jsx)(n.XaZ,{children:t})]}),(0,l.jsx)(n.PZ7,{onClick:s,position:"relative",right:0,size:"sm",top:-1})]})}};(null==s?void 0:s.id)&&e.isActive(s.id)?e.update(s.id,a):e(a)}}}},70788:function(e,t,i){"use strict";i.d(t,{m:function(){return d}});var l=i(24246),n=i(96306),s=i(79894),a=i.n(s),r=i(27378);let{Text:o}=n.AntTypography,d=e=>{let{items:t,...i}=e,s=(0,r.useMemo)(()=>null==t?void 0:t.map((e,i)=>{let s=i===t.length-1,r={...e},d=r.onClick&&!r.href;return("string"==typeof r.title&&(r.title=(0,l.jsx)(o,{style:{color:"inherit",maxWidth:s?void 0:400},ellipsis:!s,id:s?"breadcrumb-current-page":void 0,children:r.title})),d)?r.title=(0,l.jsx)(n.wpx,{type:"text",size:"small",icon:r.icon,onClick:r.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:r.title}):(r.icon&&(r.title=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{className:"anticon align-text-bottom",children:r.icon}),r.title]})),r.href&&r.title&&(r.title=(0,l.jsx)(a(),{href:r.href,className:"ant-breadcrumb-link",children:r.title}),delete r.href)),r}),[t]);return(0,l.jsx)(n.zrq,{items:s,...i})}},36866:function(e,t,i){"use strict";i.d(t,{h:function(){return d}});var l=i(40431),n=i(27378),s=i(55484);let a=(0,l.jo)({parse(e){let t=parseInt(e,10);try{return s.Rx().integer().positive().validateSync(t),t}catch(e){return null}},serialize:e=>e.toString()});var r=i(32735);let o=function(){var e,t;let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{page:a.withDefault(r.Ej),size:i.pageSizeOptions?(0,l.bJ)(i.pageSizeOptions).withDefault(null!==(e=i.pageSize)&&void 0!==e?e:r.L8):a.withDefault(null!==(t=i.pageSize)&&void 0!==t?t:r.L8)}},d=function(){var e,t;let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{defaultPageSize:s=r.L8,pageSizeOptions:a,showSizeChanger:d=!0}=i,u=null!=a?a:r.VZ,c=(0,n.useMemo)(()=>o({pageSize:s,pageSizeOptions:a}),[s,a]),[p,g]=(0,l.XI)(c,{history:"push"}),m={pageIndex:null!==(e=p.page)&&void 0!==e?e:r.Ej,pageSize:null!==(t=p.size)&&void 0!==t?t:s};return{...m,updatePageIndex:e=>{g({page:e})},updatePageSize:e=>{g({page:e!==m.pageSize?r.Ej:m.pageIndex,size:e})},resetPagination:()=>{g({page:r.Ej,size:s})},nextPage:()=>{g(e=>{let{page:t,size:i}=e;return{page:t+1,size:i}})},previousPage:()=>{g(e=>{let{page:t,size:i}=e;return{page:t-1,size:i}})},pageSizeOptions:u,showSizeChanger:d}}},42478:function(e,t,i){"use strict";i.d(t,{FU:function(){return d},JE:function(){return n},Ki:function(){return c},SU:function(){return p},W:function(){return g},h9:function(){return s},jc:function(){return l},qt:function(){return o},sn:function(){return u}});let{useGetEmailInviteStatusQuery:l,useGetActiveMessagingProviderQuery:n,useCreateMessagingConfigurationMutation:s,useCreateMessagingConfigurationSecretsMutation:a,useGetMessagingConfigurationDetailsQuery:r,useGetMessagingConfigurationsQuery:o,useGetMessagingConfigurationByKeyQuery:d,useUpdateMessagingConfigurationByKeyMutation:u,useUpdateMessagingConfigurationSecretsByKeyMutation:c,useCreateTestConnectionMessageMutation:p,useDeleteMessagingConfigurationByKeyMutation:g}=i(78780).u.injectEndpoints({endpoints:e=>({getEmailInviteStatus:e.query({query:()=>({url:"/messaging/email-invite/status"}),providesTags:()=>["Email Invite Status"]}),createMessagingConfiguration:e.mutation({query:e=>({url:"messaging/config",method:"POST",body:e}),invalidatesTags:["Messaging Config","Configuration Settings"]}),getActiveMessagingProvider:e.query({queryFn:async(e,t,i,l)=>{let n=await l({url:"messaging/default/active"});return n.error&&404===n.error.status?{data:null}:n},providesTags:["Messaging Config"]}),createMessagingConfigurationSecrets:e.mutation({query:e=>({url:"messaging/default/".concat(e.service_type,"/secret"),method:"PUT",body:e.details}),invalidatesTags:["Messaging Config","Configuration Settings"]}),getMessagingConfigurationDetails:e.query({query:e=>({url:"messaging/default/".concat(e.type)}),providesTags:["Messaging Config"]}),getMessagingConfigurations:e.query({query:()=>({url:"messaging/config"}),providesTags:["Messaging Config"]}),getMessagingConfigurationByKey:e.query({query:e=>({url:"messaging/config/".concat(e.key)}),providesTags:["Messaging Config"]}),createTestConnectionMessage:e.mutation({query:e=>({url:"messaging/test/".concat(e.service_type),method:"POST",body:e.details}),invalidatesTags:["Messaging Config"]}),updateMessagingConfigurationByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key),method:"PATCH",body:e.config}),invalidatesTags:["Messaging Config","Configuration Settings"]}),updateMessagingConfigurationSecretsByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key,"/secret"),method:"PUT",body:e.secrets}),invalidatesTags:["Messaging Config","Configuration Settings"]}),deleteMessagingConfigurationByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key),method:"DELETE"}),invalidatesTags:["Messaging Config","Configuration Settings"]})})})},30234:function(e,t,i){"use strict";var l=i(24246),n=i(96306);t.Z=e=>{let{heading:t,HeadingButton:i,children:s}=e;return(0,l.jsx)(n.Kqy,{spacing:4,children:(0,l.jsxs)(n.xuv,{maxWidth:"720px",border:"1px",borderColor:"gray.200",borderRadius:6,overflow:"visible",mt:6,children:[(0,l.jsxs)(n.xuv,{backgroundColor:"gray.50",px:6,py:4,display:"flex",flexDirection:"row",alignItems:"center",borderBottom:"1px",borderColor:"gray.200",borderTopRadius:6,children:[(0,l.jsx)(n.X6q,{as:"h3",size:"xs",children:t}),i?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(n.LZC,{}),(0,l.jsx)(i,{})]}):null]}),(0,l.jsx)(n.Kqy,{spacing:4,px:6,py:6,children:s})]})})}},78422:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return K}});var l=i(24246),n=i(77213),s=i(96306),a=i(27378),r=i(58754),o=i(92222),d=i(59003),u=i(16134),c=i(812),p=i(19904),g=i(47935),m=i(46628),x=i(72625),f=i(21910);let h=new Map([["string","Single Select"],["string[]","Multi Select"],["open-text","Open Text"]]),v=new Map([[f.P6.SYSTEM,"system:information"],[f.P6.DATA_USE,"taxonomy:data use"],[f.P6.DATA_CATEGORY,"taxonomy:data category"],[f.P6.DATA_SUBJECT,"taxonomy:data subject"],[f.P6.PRIVACY_DECLARATION,"system:data use"]]);var C=i(32885);let y=e=>{var t;let i=null!==(t=v.get(e.getValue()))&&void 0!==t?t:e.getValue();return(0,l.jsx)(x.G3,{...e,value:i})},j=e=>{let{row:t,getValue:i}=e,n=t.original.allow_list_id?i():"open-text",s=h.get(n)||n;return(0,l.jsx)(x.A4,{value:s})},_=e=>{let{row:t,getValue:i,isDisabled:n}=e,s=!!i(),[a]=(0,C.yM)(),r=async e=>a({...t.original,active:e});return(0,l.jsx)(x.S1,{enabled:s,onToggle:r,title:"Disable custom field",message:"Are you sure you want to disable this custom field?",isDisabled:n,"aria-label":s?"Disable custom field":"Enable custom field"})};var b=i(56358),T=i(58452);let S=e=>{let{customField:t,onEdit:i,onDelete:n,...a}=e,r=(0,s.qY0)();return(0,l.jsxs)(s.xuv,{...a,children:[(0,l.jsx)(s.wpx,{"aria-label":"Edit property","data-testid":"edit-property-button",size:"small",className:"mr-[10px]",icon:(0,l.jsx)(s.dY8,{}),onClick:e=>{e.stopPropagation(),i(t,e)}}),(0,l.jsx)(s.wpx,{"aria-label":"Delete property","data-testid":"delete-property-button",size:"small",className:"mr-[10px]",icon:(0,l.jsx)(b.q,{}),onClick:e=>{e.stopPropagation(),r.onOpen()}}),(0,l.jsx)(T.Z,{isOpen:r.isOpen,onClose:r.onClose,onConfirm:()=>{n(t),r.onClose()},title:"Delete custom field",message:(0,l.jsx)(s.xvT,{color:"gray.500",children:"Are you sure you want to delete this custom field? This will remove the custom field and all stored values and this action can't be undone."}),continueButtonText:"Confirm",isCentered:!0,icon:(0,l.jsx)(s.aNP,{})})]})};var w=i(34090),E=i(55484),L=i(95346),M=i(17245);let I={color:"gray.600",fontSize:"14px",fontWeight:"semibold",minWidth:"150px"};var A=e=>{let{customLabelProps:t,disabled:i=!1,isRequired:n=!1,label:a,type:r="text",placeholder:o,...d}=e,[u,c]=(0,w.U$)(d),{id:p,name:g,autoFocus:m}=d,x="custom-input-".concat(u.name);return(0,l.jsxs)(s.NIc,{display:"flex",isRequired:n,isInvalid:!!(c.error&&c.touched),children:[a&&(0,l.jsx)(s.lXp,{htmlFor:p||g,...t||I,children:a}),(0,l.jsxs)(s.gCW,{align:"flex-start",w:"inherit",children:["number"===r&&(0,l.jsxs)(s.Y2U,{allowMouseWheel:!0,color:"gray.700",defaultValue:0,min:0,size:"sm",children:[(0,l.jsx)(s.zuI,{...u,autoComplete:"off",autoFocus:m,"data-testid":x}),(0,l.jsxs)(s.FiK,{children:[(0,l.jsx)(s.WQu,{}),(0,l.jsx)(s.Y_d,{})]})]}),"text"===r&&(0,l.jsx)(s.IIB,{...u,autoComplete:"off",autoFocus:m,color:"gray.700",isDisabled:i,placeholder:o,size:"sm","data-testid":x}),"textarea"===r&&(0,l.jsx)(s.gxH,{...u,autoComplete:"off",autoFocus:m,color:"gray.700",placeholder:o,resize:"none",size:"sm",value:u.value||"","data-testid":x}),(0,l.jsx)(s.J1D,{children:c.error})]})]})};let R=(0,s.IUT)({displayName:"AddIcon",viewBox:"0 0 10 10",path:(0,l.jsx)("path",{d:"M4.33331 4.33398V0.333984H5.66665V4.33398H9.66665V5.66732H5.66665V9.66732H4.33331V5.66732H0.333313V4.33398H4.33331Z",fill:"currentColor"})});var O=i(10342),k=i(95492),P=i(97181);let N={...I,minWidth:"unset"},z=e=>{let{values:t,validationSchema:i,errors:n,dirty:r,isValid:o,isSubmitting:d,isLoading:u,onClose:c,handleDropdownChange:p,isEditing:g}=e,{validateForm:m}=(0,w.u6)();return(0,a.useEffect)(()=>{m()},[i,m]),(0,l.jsxs)(w.l0,{style:{paddingTop:"12px",paddingBottom:"12px"},children:[(0,l.jsx)(s.xuv,{py:3,children:(0,l.jsxs)(O.Z,{title:"Field Information",children:[(0,l.jsx)(A,{isRequired:!0,label:"Name",name:"name",customLabelProps:N}),(0,l.jsx)(A,{label:"Description",name:"description",customLabelProps:N}),(0,l.jsx)(P.d,{label:"Location",name:"resource_type",options:L.C7,labelProps:N,disabled:g})]})}),(0,l.jsx)(s.xuv,{py:3,children:(0,l.jsxs)(O.Z,{title:"Configuration",children:[(0,l.jsx)(P.d,{label:"Field Type",name:"field_type",labelProps:N,options:L.Hn,onChange:p}),t.field_type!==L.Uv.OPEN_TEXT&&t.field_type!==L.Uv.LOCATION_SELECT?(0,l.jsx)(s.kCb,{flexDirection:"column",gap:"12px",paddingTop:"6px",paddingBottom:"24px",children:(0,l.jsx)(w.F2,{name:"allow_list.allowed_values",render:e=>{let{allowed_values:i}=t.allow_list;return(0,l.jsxs)(s.kCb,{flexDirection:"column",gap:"6",pl:"6",children:[(0,l.jsx)(s.kCb,{flexDirection:"column",children:i.map((t,n)=>(0,l.jsxs)(s.kCb,{flexGrow:1,gap:"3",mt:n>0?3:void 0,children:[(0,l.jsx)(A,{customLabelProps:{color:"gray.600",fontSize:"sm",fontWeight:"500",lineHeight:"20px",minW:"126px",pr:"8px"},isRequired:!0,label:"List item ".concat(n+1),name:"allow_list.allowed_values[".concat(n,"]")}),(0,l.jsx)(s.wpx,{"aria-label":"Remove this list value","data-testid":"remove-list-value-btn-".concat(n),icon:(0,l.jsx)(k.l,{}),disabled:i.length<=1,onClick:()=>e.remove(n),type:"text"})]},n))}),(0,l.jsxs)(s.kCb,{alignItems:"center",children:[(0,l.jsx)(s.xvT,{color:"gray.600",fontSize:"xs",fontWeight:"500",lineHeight:"16px",pr:"8px",children:"Add a list value"}),(0,l.jsx)(s.wpx,{"aria-label":"Add a list value","data-testid":"add-list-value-btn",icon:(0,l.jsx)(R,{h:"7px",w:"7px"}),onClick:()=>{e.push("")},size:"small"}),0===i.length&&(null==n?void 0:n.allow_list)?(0,l.jsx)(s.xvT,{color:"red.500",pl:"18px",size:"sm",children:n.allow_list.allowed_values}):null]})]})}})}):null]})}),(0,l.jsxs)(s.kCb,{justifyContent:"space-between",width:"100%",children:[(0,l.jsx)(s.wpx,{onClick:c,disabled:u||d,className:"mr-3","data-testid":"cancel-btn",children:"Cancel"}),(0,l.jsx)(s.wpx,{htmlType:"submit",type:"primary","data-testid":"save-btn",loading:u,disabled:!r||!o||d,children:"Save"})]})]})},D={description:"",field_type:L.Uv.OPEN_TEXT,name:"",resource_type:f.P6.SYSTEM,allow_list:{name:"",description:"",allowed_values:[]}},U=E.IX(E.Z_().optional().label("allowed_values")),q=E.IX(E.Z_().required("List item is required")).min(1,"Must add at least one list value").label("allowed_values"),V=E.Ry().shape({name:E.Z_().required("Name is required").trim(),allow_list:E.Ry().shape({allowed_values:U})}),H=E.Ry().shape({name:E.Z_().required("Name is required").trim(),allow_list:E.Ry().shape({allowed_values:q})}),Z=(e,t)=>{var i,l,n;let s;if(!e)return;e.field_type!==f.AL.STRING||e.allow_list_id||(s=L.Uv.OPEN_TEXT),e.field_type===f.AL.STRING&&e.allow_list_id&&(s=L.Uv.SINGLE_SELECT),e.field_type===f.AL.STRING_&&e.allow_list_id&&(s=L.Uv.MULTIPLE_SELECT);let a=t?{name:null!==(i=t.name)&&void 0!==i?i:"",description:null!==(l=t.description)&&void 0!==l?l:"",allowed_values:null!==(n=t.allowed_values)&&void 0!==n?n:[]}:D.allow_list;return{...e,field_type:s||L.Uv.OPEN_TEXT,allow_list:a}},F=e=>{let{isOpen:t,onClose:i,isLoading:n,customField:r}=e,{errorAlert:o,successAlert:d}=(0,M.VY)(),[u]=(0,C.Ld)(),[p]=(0,C.yM)(),[g]=(0,C.Nt)(),{data:m,isLoading:x}=(0,C.vA)(null==r?void 0:r.allow_list_id,{skip:!(null==r?void 0:r.allow_list_id)}),[h,v]=(0,a.useState)(V);if(x||!t)return null;let y=Z(r,m),j=!!y,_=e=>{e===L.Uv.OPEN_TEXT||e===L.Uv.LOCATION_SELECT?v(V):v(H)},b=async e=>{if([L.Uv.SINGLE_SELECT,L.Uv.MULTIPLE_SELECT].includes(e.field_type)){var t,l;if(new Set(null===(t=e.allow_list)||void 0===t?void 0:t.allowed_values.map(e=>e.toLowerCase().trim()).map(e=>e)).size<e.allow_list.allowed_values.length){o("List item value must be unique");return}let{allow_list:i}=e;e.allow_list_id&&(i.id=e.allow_list_id),i.name||(i.name=Date.now().toString()+Math.random().toString());let n=await g(i);(0,c.D4)(n)||e.allow_list_id||(e.allow_list_id=null===(l=n.data)||void 0===l?void 0:l.id)}(e.field_type===L.Uv.OPEN_TEXT||e.field_type===L.Uv.LOCATION_SELECT)&&(e.allow_list_id=void 0),[L.Uv.SINGLE_SELECT,L.Uv.OPEN_TEXT,L.Uv.LOCATION_SELECT].includes(e.field_type)&&(e.field_type=f.AL.STRING),e.field_type===L.Uv.MULTIPLE_SELECT&&(e.field_type=f.AL.STRING_);let n={...e};delete n.allow_list;let s=r?await p(n):await u(n);(0,c.D4)(s)?o((0,c.e$)(s.error),"Custom field has failed to save due to the following:"):(i(),d("Custom field successfully saved"))};return(0,l.jsxs)(s.u_l,{id:"custom-field-modal-hello-world",isOpen:t,onClose:i,size:"lg",returnFocusOnClose:!1,isCentered:!0,children:[(0,l.jsx)(s.ZAr,{}),(0,l.jsxs)(s.hzk,{id:"modal-content","data-testid":"custom-field-modal",maxHeight:"80%",overflowY:"auto",children:[(0,l.jsx)(s.xBx,{id:"modal-header",fontWeight:"semibold",lineHeight:5,fontSize:"sm",py:"18px",px:6,height:"56px",backgroundColor:"gray.50",borderColor:"gray.200",borderWidth:"0px 0px 1px 1p",borderTopRightRadius:"8px",borderTopLeftRadius:"8px",boxSizing:"border-box",children:r?"Manage Custom Field":"Add a custom field"}),(0,l.jsx)(s.fef,{px:6,py:0,children:(0,l.jsx)(w.J9,{initialValues:y||D,validationSchema:h,onSubmit:b,enableReinitialize:!0,validateOnChange:!0,children:e=>(0,l.jsx)(z,{isEditing:j,validationSchema:h,isLoading:n,onClose:i,handleDropdownChange:_,...e})})})]})]})},W="Add a custom field",B=()=>(0,l.jsx)(s.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",textAlign:"center",children:(0,l.jsxs)(s.gCW,{children:[(0,l.jsx)(s.xvT,{fontSize:"md",fontWeight:"600",children:"It looks like it’s your first time here!"}),(0,l.jsxs)(s.xvT,{fontSize:"sm",children:["You haven’t created any custom fields yet.",(0,l.jsx)("br",{}),"To create a custom field, click on the"," ",(0,l.jsxs)("strong",{children:['"',W,'"']})," button"]})]})}),G=(0,o.Cl)(),Y=e=>{let{...t}=e,i=(0,s.pmc)(),{isLoading:n}=(0,C.GH)(),r=(0,u.C)(C.fN),[x]=(0,C.UF)(),{isOpen:h,onClose:v,onOpen:b}=(0,s.qY0)(),[T,w]=(0,a.useState)(),[E,L]=(0,a.useState)(),M=(0,p.Tg)([f.Sh.CUSTOM_FIELD_UPDATE]),I=(0,p.Tg)([f.Sh.CUSTOM_FIELD_DELETE]),A=e=>{M&&(w(e),b())},R=async e=>{if(I&&e.id){let t=await x({id:e.id});if((0,c.D4)(t)){i((0,m.Vo)((0,c.e$)(t.error)));return}i((0,m.t5)("Custom field deleted"))}},O=(0,a.useMemo)(()=>[G.accessor(e=>e.name,{id:"name",cell:e=>(0,l.jsx)(g.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,l.jsx)(g.Rr,{value:"Label",...e})}),G.accessor(e=>e.description,{id:"description",cell:e=>(0,l.jsx)(g.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,l.jsx)(g.Rr,{value:"Description",...e}),meta:{showHeaderMenu:!0}}),G.accessor(e=>e.field_type,{id:"field_type",cell:j,header:e=>(0,l.jsx)(g.Rr,{value:"Field Type",...e})}),G.accessor(e=>e.resource_type,{id:"resource_type",cell:y,header:e=>(0,l.jsx)(g.Rr,{value:"Locations",...e})}),M&&G.accessor(e=>e.active,{id:"enable",cell:_,header:e=>(0,l.jsx)(g.Rr,{value:"Enable",...e}),meta:{disableRowClick:!0}}),(M||I)&&G.display({id:"actions",header:"Actions",cell:e=>{let{row:t}=e;return(0,l.jsx)(S,{customField:t.original,onEdit:A,onDelete:R})},meta:{disableRowClick:!0}})].filter(Boolean),[I,M]),k=(0,d.b7)({getCoreRowModel:(0,o.sC)(),getFilteredRowModel:(0,o.vL)(),getSortedRowModel:(0,o.tj)(),onGlobalFilterChange:L,globalFilterFn:"includesString",columns:O,data:r,state:{globalFilter:E},columnResizeMode:"onChange"});return(0,l.jsxs)(s.xuv,{...t,children:[(0,l.jsx)(s.xuv,{maxWidth:600,children:(0,l.jsx)(s.xvT,{mb:10,fontSize:"sm",children:r.length>0?"Custom fields enable you to capture metrics specific to your organization and have those metrics appear in the data map and in reports.":"Custom fields provide organizations with the capability to capture metrics that are unique to their specific needs, allowing them to create customized reports. These fields can be added to either systems or elements within a taxonomy, and once added, they become reportable fields that are visible on the data map."})}),(0,l.jsxs)(s.xuv,{"data-testid":"custom-fields-page",children:[(0,l.jsxs)(g.Q$,{children:[(0,l.jsx)(g.HO,{globalFilter:E,setGlobalFilter:L,placeholder:"Search for a custom field"}),(0,l.jsx)(s.Ugi,{alignItems:"center",spacing:4,children:(0,l.jsx)(()=>(0,l.jsx)(p.ZP,{scopes:[f.Sh.CUSTOM_FIELD_DEFINITION_CREATE],children:(0,l.jsx)(s.wpx,{type:"primary","data-testid":"add-custom-field-btn",onClick:b,children:W})}),{})})]}),n?(0,l.jsx)(s.xuv,{p:2,borderWidth:1,children:(0,l.jsx)(g.I4,{rowHeight:26,numRows:10})}):(0,l.jsx)(g.ZK,{tableInstance:k,onRowClick:M?A:void 0,emptyTableNotice:(0,l.jsx)(B,{}),enableSorting:!0}),h&&(0,l.jsx)(F,{customField:T,isOpen:h,onClose:()=>{w(void 0),v()},isLoading:!1})]})]})};var K=()=>(0,l.jsx)(n.Z,{title:"Custom fields",children:(0,l.jsxs)(s.xuv,{"data-testid":"custom-fields-management",children:[(0,l.jsx)(r.Z,{heading:"Custom fields"}),(0,l.jsx)(Y,{})]})})}},function(e){e.O(0,[431,2888,9774,179],function(){return e(e.s=70378)}),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4046],{10234:function(e,i,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/messaging-providers/[key]",function(){return n(55066)}])},55066:function(e,i,n){"use strict";n.r(i),n.d(i,{default:function(){return h}});var t=n(24246),r=n(86677),s=n(77213),c=n(90980),o=n(77830),d=n(96306),u=n(27378),l=n(41841),a=n(90710),f=n(42478),x=n(10792);let g=e=>{let{configKey:i}=e,{handleError:n}=(0,l.HK)(),{data:r,isLoading:s,error:c}=(0,f.FU)({key:i});if((0,u.useEffect)(()=>{c&&n(c)},[c,n]),s)return(0,t.jsx)(d.xuv,{display:"flex",justifyContent:"center",alignItems:"center",height:"200px",children:(0,t.jsx)(d.$jN,{})});if(!r)return(0,t.jsx)(d.V4A,{children:(0,t.jsxs)(d.xvT,{color:"red.500",children:["Messaging configuration not found for key: ",i]})});let o=r.service_type;return(0,t.jsxs)(d.xuv,{children:[(0,t.jsx)(d.X6q,{fontSize:"2xl",fontWeight:"semibold",mb:6,children:"Edit messaging provider"}),Object.values(a.q).includes(o)?(0,t.jsx)(x.Z,{configKey:i,initialProviderType:o}):(0,t.jsxs)(d.xvT,{color:"red.500",children:["Unsupported service type: ",o]})]})};var h=()=>{let{key:e}=(0,r.useRouter)().query;return e&&"string"==typeof e?(0,t.jsxs)(s.Z,{title:"Edit Messaging Provider - ".concat(e),children:[(0,t.jsx)(c.Z,{backPath:o.AD}),(0,t.jsx)(g,{configKey:e})]}):(0,t.jsxs)(s.Z,{title:"Edit Messaging Provider",children:[(0,t.jsx)(c.Z,{backPath:o.AD}),(0,t.jsx)("div",{children:"Invalid messaging provider key"})]})}}},function(e){e.O(0,[431,8765,9278,3662,9037,1841,3377,2888,9774,179],function(){return e(e.s=10234)}),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4046],{10234:function(e,i,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/messaging-providers/[key]",function(){return n(55066)}])},55066:function(e,i,n){"use strict";n.r(i),n.d(i,{default:function(){return h}});var t=n(24246),r=n(86677),s=n(77213),c=n(90980),o=n(77830),d=n(96306),u=n(27378),l=n(17245),a=n(90710),f=n(42478),x=n(10792);let g=e=>{let{configKey:i}=e,{handleError:n}=(0,l.HK)(),{data:r,isLoading:s,error:c}=(0,f.FU)({key:i});if((0,u.useEffect)(()=>{c&&n(c)},[c,n]),s)return(0,t.jsx)(d.xuv,{display:"flex",justifyContent:"center",alignItems:"center",height:"200px",children:(0,t.jsx)(d.$jN,{})});if(!r)return(0,t.jsx)(d.V4A,{children:(0,t.jsxs)(d.xvT,{color:"red.500",children:["Messaging configuration not found for key: ",i]})});let o=r.service_type;return(0,t.jsxs)(d.xuv,{children:[(0,t.jsx)(d.X6q,{fontSize:"2xl",fontWeight:"semibold",mb:6,children:"Edit messaging provider"}),Object.values(a.q).includes(o)?(0,t.jsx)(x.Z,{configKey:i,initialProviderType:o}):(0,t.jsxs)(d.xvT,{color:"red.500",children:["Unsupported service type: ",o]})]})};var h=()=>{let{key:e}=(0,r.useRouter)().query;return e&&"string"==typeof e?(0,t.jsxs)(s.Z,{title:"Edit Messaging Provider - ".concat(e),children:[(0,t.jsx)(c.Z,{backPath:o.AD}),(0,t.jsx)(g,{configKey:e})]}):(0,t.jsxs)(s.Z,{title:"Edit Messaging Provider",children:[(0,t.jsx)(c.Z,{backPath:o.AD}),(0,t.jsx)("div",{children:"Invalid messaging provider key"})]})}}},function(e){e.O(0,[431,8765,9278,3662,9037,502,7158,2888,9774,179],function(){return e(e.s=10234)}),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2992],{84983:function(n,e,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/messaging-providers/new",function(){return i(51192)}])},51192:function(n,e,i){"use strict";i.r(e),i.d(e,{default:function(){return c}});var s=i(24246),t=i(96306),r=i(77213),u=i(90980),o=i(77830),f=i(10792);let a=()=>(0,s.jsxs)(r.Z,{title:"Create Messaging Configuration",children:[(0,s.jsx)(u.Z,{backPath:o.AD}),(0,s.jsx)(t.X6q,{fontSize:"2xl",fontWeight:"semibold",mb:6,children:"Configure your messaging provider"}),(0,s.jsx)(f.Z,{})]});var c=()=>(0,s.jsx)(a,{})}},function(n){n.O(0,[431,8765,9278,3662,9037,1841,3377,2888,9774,179],function(){return n(n.s=84983)}),_N_E=n.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2992],{84983:function(n,e,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/messaging-providers/new",function(){return i(51192)}])},51192:function(n,e,i){"use strict";i.r(e),i.d(e,{default:function(){return c}});var s=i(24246),t=i(96306),r=i(77213),u=i(90980),o=i(77830),f=i(10792);let a=()=>(0,s.jsxs)(r.Z,{title:"Create Messaging Configuration",children:[(0,s.jsx)(u.Z,{backPath:o.AD}),(0,s.jsx)(t.X6q,{fontSize:"2xl",fontWeight:"semibold",mb:6,children:"Configure your messaging provider"}),(0,s.jsx)(f.Z,{})]});var c=()=>(0,s.jsx)(a,{})}},function(n){n.O(0,[431,8765,9278,3662,9037,502,7158,2888,9774,179],function(){return n(n.s=84983)}),_N_E=n.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5935],{9255:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/messaging-providers",function(){return i(60612)}])},19904:function(e,t,i){"use strict";i.d(t,{Tg:function(){return r}});var n=i(24246),s=i(16134),a=i(31793);let r=e=>(0,s.C)(a.uu).filter(t=>e.includes(t)).length>0;t.ZP=e=>{let{scopes:t,children:i}=e;return r(t)?(0,n.jsx)(n.Fragment,{children:i}):null}},8125:function(e,t,i){"use strict";i.d(t,{V:function(){return a},o:function(){return d}});var n=i(27378),s=i(32735);let a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{enableSelection:i=!1,getRowKey:a,bulkActions:r,isLoading:l=!1,isFetching:o=!1,dataSource:d=[],totalRows:c=0,currentPage:u,pageSize:g,customTableProps:p={}}=t,f=(0,n.useCallback)(e=>{if(e&&"object"==typeof e){if(e.id)return String(e.id);if(e.key)return String(e.key)}return String(e)},[]),m=a||f,[h,v]=(0,n.useState)([]),[x,y]=(0,n.useState)([]),S=(0,n.useCallback)(()=>{v([]),y([])},[]),b=(0,n.useMemo)(()=>({selectedRowKeys:h,selectedRows:x,resetSelections:S}),[h,x,S]),j=(0,n.useMemo)(()=>{if(i)return{selectedRowKeys:h,onChange:(e,t)=>{v(e),y(t)}}},[i,h]),_=(0,n.useCallback)((t,i,n)=>{var s,a;let r=null!==(s=t.current)&&void 0!==s?s:e.pageIndex,l=null!==(a=t.pageSize)&&void 0!==a?a:e.pageSize,o=r!==e.pageIndex||l!==e.pageSize;o?(t.current&&t.current!==e.pageIndex&&e.updatePageIndex(t.current),t.pageSize&&t.pageSize!==e.pageSize&&e.updatePageSize(t.pageSize)):e.updateFilters(i||{});let d=n&&!Array.isArray(n)?n.field:void 0,c=n&&!Array.isArray(n)&&null!==n.order?n.order:void 0;o||e.updateSorting(d,c)},[e]),C=(0,n.useMemo)(()=>{var t,i,n,a,r;return{current:null!=u?u:e.pageIndex,pageSize:null!=g?g:e.pageSize,total:c,showSizeChanger:null===(a=null===(t=e.paginationConfig)||void 0===t?void 0:t.showSizeChanger)||void 0===a||a,pageSizeOptions:null!==(r=null===(n=e.paginationConfig)||void 0===n?void 0:null===(i=n.pageSizeOptions)||void 0===i?void 0:i.map(String))&&void 0!==r?r:s.VZ}},[u,e.pageIndex,g,e.pageSize,c,e.paginationConfig]),k=(0,n.useMemo)(()=>({dataSource:d,loading:l||o,pagination:C,onChange:_,rowKey:m,scroll:{x:"max-content",scrollToFirstRowOnChange:!0},size:"small",bordered:!0,...p}),[d,l,o,C,_,m,p]),w=h.map(String),z=x.length>0,P=(0,n.useCallback)(e=>{let t=null==r?void 0:r.actions.find(t=>t.key===e);return t?{disabled:!z||!!t.disabled&&t.disabled(x),loading:t.loading||!1,onClick:()=>t.onClick(x)}:{disabled:!0,loading:!1}},[r,z,x]);return(0,n.useMemo)(()=>({tableProps:k,selectionProps:j,selectionState:b,selectedRows:x,selectedKeys:w,hasSelectedRows:z,resetSelections:S,getBulkActionProps:P,isLoadingOrFetching:l||o,hasData:d.length>0}),[k,j,b,x,w,z,S,P,l,o,d.length])};var r=i(40431),l=i(17245);let o=()=>({filters:(0,r.WJ)(e=>e).withDefault({})}),d=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{pagination:t={},sorting:i={},search:s={},onStateChange:a}=e,{pageIndex:d,pageSize:c,resetPagination:u,updatePageIndex:g,updatePageSize:p,pageSizeOptions:f,showSizeChanger:m}=(0,l.h0)(t),{sortKey:h,sortOrder:v,updateSorting:x,resetSorting:y}=(0,l.rK)(i),{searchQuery:S,updateSearch:b,resetSearch:j}=(0,l.Rx)(s),_=(0,n.useMemo)(()=>o(),[]),[C,k]=(0,r.XI)(_,{history:"push"}),w=(0,n.useMemo)(()=>{var e;return{pageIndex:d,pageSize:c,sortKey:h,sortOrder:v,columnFilters:null!==(e=C.filters)&&void 0!==e?e:{},searchQuery:S}},[C,d,c,h,v,S]),z=(0,n.useCallback)((e,t)=>{x(e,t),u()},[x,u]),P=(0,n.useCallback)(e=>{let t=Object.fromEntries(Object.entries(e).filter(e=>{let[,t]=e;return null!=t}));k({filters:Object.keys(t).length>0?t:null}),u()},[k,u]),E=(0,n.useCallback)(e=>{b(e),u()},[b,u]),T=(0,n.useCallback)(()=>{k({filters:null}),u(),y(),j()},[k,u,y,j]);return(0,n.useEffect)(()=>{a&&a(w)},[w,a]),{state:w,pageIndex:w.pageIndex,pageSize:w.pageSize,updatePageIndex:g,updatePageSize:p,sortKey:w.sortKey,sortOrder:w.sortOrder,updateSorting:z,columnFilters:w.columnFilters,updateFilters:P,searchQuery:w.searchQuery,updateSearch:E,resetState:T,paginationConfig:{pageSizeOptions:f,showSizeChanger:m}}}},60612:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return P}});var n,s,a=i(24246),r=i(96306),l=i(77213),o=i(77830),d=i(47935),c=i(812),u=i(17245),g=i(86677),p=i(27378),f=i(8125),m=i(7426),h=i(21910),v=i(19904),x=i(17828),y=i(44907),S=i(5144),b=i(42478),j=i(51980),_=i(16394),C=e=>{let{messagingConfig:t}=e,{last_test_succeeded:i,last_test_timestamp:n}=t;if(!n)return(0,a.jsx)(r.j8w,{children:"Verify configuration"});let s=new Date(n),l=(0,_.p6)(s),o=(0,j.B)(s,new Date,{addSuffix:!0});return(0,a.jsx)(r.esZ,{title:"Last verified: ".concat(l),children:(0,a.jsxs)(r.j8w,{color:i?"success":"error","data-testid":i?"test-success":"test-error",children:[i?"Succeeded":"Failed"," ",o]})})};(n=s||(s={})).NAME="name",n.VERIFICATION_STATUS="verification_status",n.ENABLED="enabled",n.ACTIONS="actions";let k=()=>{let e=(0,g.useRouter)(),{handleError:t}=(0,u.HK)(),[i,n]=(0,p.useState)(null),[l]=(0,m.L)(),[d]=(0,b.W)(),j=(0,v.Tg)([h.Sh.MESSAGING_CREATE_OR_UPDATE]),[_,k]=(0,p.useState)(!1),[w,z]=(0,p.useState)(null),P=(0,f.o)({pagination:{defaultPageSize:25,pageSizeOptions:[25,50,100]},sorting:{validColumns:Object.values(s),defaultSortKey:"name",defaultSortOrder:"ascend"}}),{data:E,isLoading:T}=(0,b.JE)(),{data:I,isLoading:O}=(0,b.qt)();(0,p.useEffect)(()=>{E?n(E.service_type):n(null)},[E]);let A=(0,p.useCallback)(async e=>{try{let i=await l({notifications:{notification_service_type:e}});(0,c.D4)(i)?t(i.error):(n(e),r.Pg3.success(e?"Updated active messaging config":"Disabled active messaging config"))}catch(e){t(e)}},[l,t,n]),M=(0,p.useCallback)(t=>{var i,n;let s=o.GE.replace("[key]",t.key);e.push({pathname:s,query:{last_test_succeeded:null!==(i=t.last_test_succeeded)&&void 0!==i?i:"",last_test_timestamp:null!==(n=t.last_test_timestamp)&&void 0!==n?n:""}})},[e]),D=(0,p.useCallback)((e,t)=>{z({key:e,name:t}),k(!0)},[]),F=(0,p.useCallback)(async()=>{if(w)try{let e=await d({key:w.key});(0,c.D4)(e)?t(e.error):r.Pg3.success("Messaging configuration successfully deleted")}catch(e){t(e)}finally{k(!1),z(null)}},[w,d,t]),N=(0,p.useCallback)(()=>{k(!1),z(null)},[]),R=(0,p.useMemo)(()=>({enableSelection:!1,getRowKey:e=>e.key,isLoading:O||T,dataSource:(null==I?void 0:I.items)||[],totalRows:(null==I?void 0:I.total)||0,customTableProps:{size:"small",pagination:{hideOnSinglePage:!0,showSizeChanger:!0,pageSizeOptions:["25","50","100"]}}}),[O,T,null==I?void 0:I.items,null==I?void 0:I.total]),Z=(0,f.V)(P,R),L=(0,p.useMemo)(()=>[{title:"Provider type",dataIndex:"name",key:"name",render:(e,t)=>(0,a.jsxs)(r.Ugi,{children:[(()=>{switch(t.service_type){case"mailgun":return(0,a.jsx)(y.Z,{});case"twilio_text":case"twilio_email":default:return(0,a.jsx)(S.Z,{});case"aws_ses":return(0,a.jsx)(x.Z,{})}})(),(0,a.jsx)(r.xvT,{children:e})]})},{title:"Verification status",key:"verification_status",render:(e,t)=>(0,a.jsx)(C,{messagingConfig:t})},{title:"Enabled",key:"enabled",width:100,render:(e,t)=>{let n=t.service_type===i,s=!!t.last_test_timestamp&&""!==t.last_test_timestamp&&!1===t.last_test_succeeded&&!n,l=(0,a.jsx)(r.rAg,{checked:n,disabled:s,onChange:e=>{e?A(t.service_type):A(null)}});return s?(0,a.jsx)(r.esZ,{title:"This provider cannot be enabled because its last test failed. Please fix the configuration and test again.",children:l}):l}},{title:"Actions",key:"actions",render:(e,t)=>(0,a.jsxs)(r.Ugi,{children:[j&&(0,a.jsx)(r.wpx,{onClick:e=>{e.stopPropagation(),M(t)},size:"small",icon:(0,a.jsx)(r.PJP.I8b,{}),title:"Edit","aria-label":"Edit messaging configuration","data-testid":"edit-messaging-config-btn"}),j&&(0,a.jsx)(r.wpx,{onClick:e=>{e.stopPropagation(),D(t.key,t.name)},size:"small",icon:(0,a.jsx)(r.PJP.ZNm,{}),title:"Delete","aria-label":"Delete messaging configuration","data-testid":"delete-messaging-config-btn"})]})}],[j,i,M,D,A]),V=(0,p.useMemo)(()=>(0,a.jsx)(r.$zI,{title:"Delete messaging configuration",open:_,onCancel:N,footer:[(0,a.jsx)(r.wpx,{onClick:N,children:"Cancel"},"cancel"),(0,a.jsx)(r.wpx,{type:"primary",danger:!0,onClick:F,children:"Delete"},"delete")],children:(0,a.jsxs)(r.vyj,{direction:"vertical",children:[(0,a.jsxs)(r.xvT,{children:['Are you sure you want to delete "',(0,a.jsx)("strong",{children:null==w?void 0:w.name}),'" messaging configuration?']}),(0,a.jsx)(r.xvT,{children:"This action cannot be undone."})]})}),[_,null==w?void 0:w.name,N,F]);return{columns:L,tableProps:Z.tableProps,selectionProps:Z.selectionProps,userCanUpdate:j,isLoading:O||T,deleteModal:V,handleEditConfiguration:M,handleDeleteConfiguration:D,setActiveServiceType:A}},w=()=>(0,a.jsx)(r.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",children:(0,a.jsxs)(r.gCW,{children:[(0,a.jsx)(r.xvT,{fontSize:"md",fontWeight:"600",children:"No messaging providers found."}),(0,a.jsx)(r.xvT,{fontSize:"sm",children:'Click "Add a messaging provider" to add your first messaging provider to Fides.'})]})}),z=()=>{let{columns:e,tableProps:t,userCanUpdate:i,isLoading:n,deleteModal:s}=k();return(0,a.jsxs)(l.Z,{title:"Messaging providers",children:[(0,a.jsx)(r.X6q,{mb:5,fontSize:"2xl",fontWeight:"semibold",children:"Manage messaging providers"}),(0,a.jsxs)(r.xvT,{fontSize:"sm",mb:8,width:{base:"100%",lg:"70%"},children:["Fides requires a messaging provider for sending processing notices to privacy request subjects, and allows for Subject Identity Verification in privacy requests. Please follow the"," ",(0,a.jsx)(r.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,a.jsxs)(r.kCb,{flex:1,direction:"column",overflow:"auto",children:[i&&(0,a.jsx)(r.vyj,{direction:"horizontal",style:{width:"100%",justifyContent:"flex-end",marginBottom:16},children:(0,a.jsx)(r.wpx,{href:"".concat(o.AD,"/new"),role:"link",type:"primary",icon:(0,a.jsx)(r.PJP.mm_,{}),iconPosition:"end","data-testid":"add-messaging-provider-btn",children:"Add a messaging provider"})}),n?(0,a.jsx)(d.I4,{rowHeight:36,numRows:5}):(0,a.jsx)(r.V5H,{...t,columns:e,locale:{emptyText:(0,a.jsx)(w,{})}})]}),s]})};var P=()=>(0,a.jsx)(z,{})}},function(e){e.O(0,[431,502,2888,9774,179],function(){return e(e.s=9255)}),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8687],{69489:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/privacy-requests",function(){return n(26819)}])},77213:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var i=n(24246),r=n(96306),s=n(88038),a=n.n(s),o=n(86677);n(27378);var l=n(25980),u=n(90867),d=n(42478),c=n(77830),g=()=>{let e=(0,o.useRouter)();return(0,i.jsx)(r.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,i.jsxs)(r.xuv,{children:[(0,i.jsxs)(r.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,i.jsx)(r.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,i.jsx)(r.wpx,{onClick:()=>{e.push(c.AD)},children:"Configure"})]}),(0,i.jsxs)(r.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},p=e=>{let{children:t,title:n,padded:s=!0,mainProps:c}=e,p=(0,l.hz)(),f=(0,o.useRouter)(),h="/privacy-requests"===f.pathname||"/datastore-connection"===f.pathname,v=!(p.flags.messagingConfiguration&&h),{data:m}=(0,d.JE)(void 0,{skip:v}),{data:x}=(0,u.PW)(void 0,{skip:v}),y=p.flags.messagingConfiguration&&(!m||!x)&&h;return(0,i.jsxs)(r.kCb,{"data-testid":n,direction:"column",h:"100vh",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.jsxs)(r.kCb,{as:"main",direction:"column",py:s?6:0,px:s?10:0,h:s?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...c,children:[y?(0,i.jsx)(g,{}):null,t]})]})}},58754:function(e,t,n){"use strict";var i=n(24246),r=n(96306),s=n(70788);t.Z=e=>{let{heading:t,breadcrumbItems:n,isSticky:a=!0,children:o,rightContent:l,style:u,...d}=e;return(0,i.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",...u}:{paddingBottom:"24px",...u},children:[(0,i.jsxs)(r.jqI,{justify:"space-between",children:["string"==typeof t?(0,i.jsx)(r.lQT,{className:n||o?"pb-4":void 0,level:1,"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]})}},10342:function(e,t,n){"use strict";var i=n(24246),r=n(96306),s=n(46238);t.Z=e=>{let{title:t,tooltip:n,children:a,...o}=e;return(0,i.jsxs)(r.xuv,{borderRadius:"md",border:"1px solid",borderColor:"gray.200",...o,children:[(0,i.jsxs)(r.X6q,{as:"h3",fontSize:"sm",fontWeight:"semibold",color:"gray.700",py:4,px:6,backgroundColor:"gray.50",borderRadius:"md",textAlign:"left",children:[t,n?(0,i.jsx)(r.xvT,{as:"span",mx:1,children:(0,i.jsx)(s.b,{label:n})}):void 0]}),(0,i.jsx)(r.Kqy,{p:6,spacing:6,children:a})]})}},17245:function(e,t,n){"use strict";n.d(t,{HK:function(){return a},VY:function(){return r.V},pI:function(){return d},h0:function(){return i.h},Rx:function(){return p},rK:function(){return h}});var i=n(36866),r=n(84306),s=n(812);let a=()=>{let{errorAlert:e}=(0,r.V)();return{handleError:t=>{let n="An unexpected error occurred. Please try again.";(0,s.Ot)(t)?n=t.data.detail:(0,s.tB)(t)&&(n=t.data.detail[0].msg),e(n)}}};var o=n(27378),l=n(20682),u=n(21910);let d=e=>{let{data:t}=(0,l.$I)({}),n=(0,o.useMemo)(()=>(null==t?void 0:t.items)||[],[t]);return(0,o.useMemo)(()=>{var t;if(!e)return"";if(e.connection_type===u.Rj.SAAS&&(null===(t=e.saas_config)||void 0===t?void 0:t.type)){let t=n.find(t=>{var n;return t.identifier===(null===(n=e.saas_config)||void 0===n?void 0:n.type)});if(t)return t}return e},[e,n])};var c=n(40431);let g=()=>({search:c.Oi.withDefault("")}),p=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{defaultSearchQuery:t,onSearchChange:n}=e,i=(0,o.useMemo)(()=>g(),[]),[r,s]=(0,c.XI)(i,{history:"push"}),a=(0,o.useMemo)(()=>({searchQuery:r.search||t||void 0}),[r,t]),l=(0,o.useCallback)(e=>{s({search:e||null})},[s]),u=(0,o.useCallback)(()=>{s({search:null})},[s]);return(0,o.useEffect)(()=>{n&&n(a)},[a,n]),{...a,updateSearch:l,resetSearch:u,searchProps:{value:a.searchQuery||"",onChange:l,onClear:()=>l("")}}},f=e=>({sortKey:e?(0,c.jx)([...e]):c.Oi.withDefault(""),sortOrder:(0,c.km)(["ascend","descend"])}),h=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{defaultSortKey:t,defaultSortOrder:n,onSortingChange:i,validColumns:r}=e,s=(0,o.useMemo)(()=>f(r),[r]),[a,l]=(0,c.XI)(s,{history:"push"}),u=(0,o.useMemo)(()=>{var e;return{sortKey:a.sortKey||t,sortOrder:null!==(e=a.sortOrder)&&void 0!==e?e:n}},[a,t,n]),d=(0,o.useCallback)((e,t)=>{l({sortKey:e?String(e):null,sortOrder:null!=t?t:null})},[l]),g=(0,o.useCallback)(()=>{l({sortKey:null,sortOrder:null})},[l]);return(0,o.useEffect)(()=>{i&&i(u)},[u,i]),{...u,updateSorting:d,resetSorting:g,sortingProps:{sortDirections:["ascend","descend"],defaultSortOrder:u.sortOrder,sortedInfo:u.sortKey?{field:u.sortKey,order:u.sortOrder}:void 0}}}},84306:function(e,t,n){"use strict";n.d(t,{V:function(){return s}});var i=n(24246),r=n(96306);let s=()=>{let e=(0,r.pmc)();return{errorAlert:(t,n,s)=>{let a={...s,position:(null==s?void 0:s.position)||"top",render:e=>{let{onClose:s}=e;return(0,i.jsxs)(r.bZj,{alignItems:"normal",status:"error","data-testid":"error-alert",children:[(0,i.jsx)(r.zMQ,{}),(0,i.jsxs)(r.xuv,{children:[n&&(0,i.jsx)(r.CdC,{children:n}),(0,i.jsx)(r.XaZ,{children:t})]}),(0,i.jsx)(r.PZ7,{onClick:s,position:"relative",right:0,size:"sm",top:-1})]})}};(null==s?void 0:s.id)&&e.isActive(s.id)?e.update(s.id,a):e(a)},successAlert:(t,n,s)=>{let a={...s,position:(null==s?void 0:s.position)||"top",render:e=>{let{onClose:s}=e;return(0,i.jsxs)(r.bZj,{alignItems:"normal",status:"success",variant:"subtle","data-testid":"success-alert",children:[(0,i.jsx)(r.zMQ,{}),(0,i.jsxs)(r.xuv,{children:[n&&(0,i.jsx)(r.CdC,{children:n}),(0,i.jsx)(r.XaZ,{children:t})]}),(0,i.jsx)(r.PZ7,{onClick:s,position:"relative",right:0,size:"sm",top:-1})]})}};(null==s?void 0:s.id)&&e.isActive(s.id)?e.update(s.id,a):e(a)}}}},70788:function(e,t,n){"use strict";n.d(t,{m:function(){return u}});var i=n(24246),r=n(96306),s=n(79894),a=n.n(s),o=n(27378);let{Text:l}=r.AntTypography,u=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},u=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,id:s?"breadcrumb-current-page":void 0,children:o.title})),u)?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})}},36866:function(e,t,n){"use strict";n.d(t,{h:function(){return u}});var i=n(40431),r=n(27378),s=n(55484);let a=(0,i.jo)({parse(e){let t=parseInt(e,10);try{return s.Rx().integer().positive().validateSync(t),t}catch(e){return null}},serialize:e=>e.toString()});var o=n(32735);let l=function(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{page:a.withDefault(o.Ej),size:n.pageSizeOptions?(0,i.bJ)(n.pageSizeOptions).withDefault(null!==(e=n.pageSize)&&void 0!==e?e:o.L8):a.withDefault(null!==(t=n.pageSize)&&void 0!==t?t:o.L8)}},u=function(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{defaultPageSize:s=o.L8,pageSizeOptions:a,showSizeChanger:u=!0}=n,d=null!=a?a:o.VZ,c=(0,r.useMemo)(()=>l({pageSize:s,pageSizeOptions:a}),[s,a]),[g,p]=(0,i.XI)(c,{history:"push"}),f={pageIndex:null!==(e=g.page)&&void 0!==e?e:o.Ej,pageSize:null!==(t=g.size)&&void 0!==t?t:s};return{...f,updatePageIndex:e=>{p({page:e})},updatePageSize:e=>{p({page:e!==f.pageSize?o.Ej:f.pageIndex,size:e})},resetPagination:()=>{p({page:o.Ej,size:s})},nextPage:()=>{p(e=>{let{page:t,size:n}=e;return{page:t+1,size:n}})},previousPage:()=>{p(e=>{let{page:t,size:n}=e;return{page:t-1,size:n}})},pageSizeOptions:d,showSizeChanger:u}}},42478:function(e,t,n){"use strict";n.d(t,{FU:function(){return u},JE:function(){return r},Ki:function(){return c},SU:function(){return g},W:function(){return p},h9:function(){return s},jc:function(){return i},qt:function(){return l},sn:function(){return d}});let{useGetEmailInviteStatusQuery:i,useGetActiveMessagingProviderQuery:r,useCreateMessagingConfigurationMutation:s,useCreateMessagingConfigurationSecretsMutation:a,useGetMessagingConfigurationDetailsQuery:o,useGetMessagingConfigurationsQuery:l,useGetMessagingConfigurationByKeyQuery:u,useUpdateMessagingConfigurationByKeyMutation:d,useUpdateMessagingConfigurationSecretsByKeyMutation:c,useCreateTestConnectionMessageMutation:g,useDeleteMessagingConfigurationByKeyMutation:p}=n(78780).u.injectEndpoints({endpoints:e=>({getEmailInviteStatus:e.query({query:()=>({url:"/messaging/email-invite/status"}),providesTags:()=>["Email Invite Status"]}),createMessagingConfiguration:e.mutation({query:e=>({url:"messaging/config",method:"POST",body:e}),invalidatesTags:["Messaging Config","Configuration Settings"]}),getActiveMessagingProvider:e.query({queryFn:async(e,t,n,i)=>{let r=await i({url:"messaging/default/active"});return r.error&&404===r.error.status?{data:null}:r},providesTags:["Messaging Config"]}),createMessagingConfigurationSecrets:e.mutation({query:e=>({url:"messaging/default/".concat(e.service_type,"/secret"),method:"PUT",body:e.details}),invalidatesTags:["Messaging Config","Configuration Settings"]}),getMessagingConfigurationDetails:e.query({query:e=>({url:"messaging/default/".concat(e.type)}),providesTags:["Messaging Config"]}),getMessagingConfigurations:e.query({query:()=>({url:"messaging/config"}),providesTags:["Messaging Config"]}),getMessagingConfigurationByKey:e.query({query:e=>({url:"messaging/config/".concat(e.key)}),providesTags:["Messaging Config"]}),createTestConnectionMessage:e.mutation({query:e=>({url:"messaging/test/".concat(e.service_type),method:"POST",body:e.details}),invalidatesTags:["Messaging Config"]}),updateMessagingConfigurationByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key),method:"PATCH",body:e.config}),invalidatesTags:["Messaging Config","Configuration Settings"]}),updateMessagingConfigurationSecretsByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key,"/secret"),method:"PUT",body:e.secrets}),invalidatesTags:["Messaging Config","Configuration Settings"]}),deleteMessagingConfigurationByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key),method:"DELETE"}),invalidatesTags:["Messaging Config","Configuration Settings"]})})})},26819:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return x}});var i=n(24246),r=n(77213),s=n(58754),a=n(96306),o=n(34090),l=n(55484),u=n(10342),d=n(40324),c=n(812),g=n(17245);let{useGetPrivacyRequestRedactionPatternsQuery:p,useUpdatePrivacyRequestRedactionPatternsMutation:f}=n(78780).u.injectEndpoints({endpoints:e=>({getPrivacyRequestRedactionPatterns:e.query({query:()=>({url:"privacy-request/redaction-patterns",method:"GET"}),providesTags:["Privacy Request Redaction Patterns"]}),updatePrivacyRequestRedactionPatterns:e.mutation({query:e=>({url:"privacy-request/redaction-patterns",method:"PUT",body:e}),invalidatesTags:["Privacy Request Redaction Patterns"]})})}),h=e=>!!(e&&e.trim().length>0),v=l.Ry().shape({patterns:l.IX().nullable().of(l.Ry().shape({id:l.Z_().required(),value:l.Z_().required().test("is-valid-pattern","Pattern cannot be empty",h).label("Pattern")}))});var m=()=>{let{errorAlert:e,successAlert:t}=(0,g.VY)(),{data:n}=p(void 0),[r,{isLoading:s}]=f(),l=async n=>{let i=n.patterns.filter(e=>h(e.value)).map(e=>e.value.trim()),s=await r({patterns:i});(0,c.D4)(s)?e((0,c.e$)(s.error),"Failed to update privacy request redaction patterns"):t("Privacy request redaction patterns updated successfully.")},m={patterns:((null==n?void 0:n.patterns)||[]).map((e,t)=>({id:"pattern-".concat(t),value:e}))};return(0,i.jsx)(a.xuv,{"data-testid":"privacy-request-redaction-patterns",children:(0,i.jsxs)(a.xuv,{maxW:"600px",children:[(0,i.jsx)(a.xvT,{fontSize:"sm",pb:6,children:"List of regex patterns used to mask dataset, collection, and field names in DSR package reports. Names matching these patterns will be replaced with position-based identifiers (e.g. dataset_1, collection_2, field_3)."}),(0,i.jsx)(u.Z,{"data-testid":"privacy-request-redaction-patterns-form",title:"Regex patterns",children:(0,i.jsx)(o.J9,{initialValues:m,enableReinitialize:!0,onSubmit:l,validationSchema:v,validateOnChange:!0,children:e=>{let{dirty:t,values:n,isValid:r}=e;return(0,i.jsxs)(o.l0,{children:[(0,i.jsx)(o.F2,{name:"patterns",render:e=>(0,i.jsxs)(a.kCb,{flexDir:"column",children:[n.patterns.map((t,n)=>(0,i.jsxs)(a.kCb,{flexDir:"row",my:3,children:[(0,i.jsx)(d.j0,{variant:"stacked",name:"patterns[".concat(n,"].value"),placeholder:"Enter regex pattern (e.g., sensitive_.*)"}),(0,i.jsx)(a.wpx,{"aria-label":"remove-pattern",className:"z-[2] ml-4",icon:(0,i.jsx)(a.pJl,{}),onClick:()=>{e.remove(n)}})]},t.id)),(0,i.jsx)(a.kCb,{justifyContent:"center",mt:3,children:(0,i.jsx)(a.wpx,{"aria-label":"add-pattern",className:"w-full",onClick:()=>{e.push({id:"pattern-new-".concat(n.patterns.length),value:""})},children:"Add regex pattern +"})})]})}),(0,i.jsx)(a.xuv,{mt:6,textAlign:"right",children:(0,i.jsx)(a.wpx,{htmlType:"submit",type:"primary",disabled:s||!t||!r,loading:s,"data-testid":"save-btn",children:"Save"})})]})}})})]})})},x=()=>(0,i.jsxs)(r.Z,{title:"Privacy request redaction patterns",children:[(0,i.jsx)(s.Z,{heading:"Privacy request redaction patterns"}),(0,i.jsx)(m,{})]})}},function(e){e.O(0,[431,2888,9774,179],function(){return e(e.s=69489)}),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1617],{54543:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/systems/configure/[id]/test-datasets",function(){return i(94010)}])},18225:function(e,t,i){"use strict";var n=i(24246),s=i(96306);t.Z=e=>{let{alignment:t="center",...i}=e;return(0,n.jsx)(s.kCb,{boxSize:"full",align:"center",justify:t,children:(0,n.jsx)(s.$jN,{color:"primary",...i})})}},77213:function(e,t,i){"use strict";i.d(t,{Z:function(){return g}});var n=i(24246),s=i(96306),r=i(88038),a=i.n(r),l=i(86677);i(27378);var o=i(25980),d=i(90867),u=i(42478),c=i(77830),f=()=>{let e=(0,l.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(c.AD)},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."," "]})]})})},g=e=>{let{children:t,title:i,padded:r=!0,mainProps:c}=e,g=(0,o.hz)(),p=(0,l.useRouter)(),m="/privacy-requests"===p.pathname||"/datastore-connection"===p.pathname,h=!(g.flags.messagingConfiguration&&m),{data:y}=(0,u.JE)(void 0,{skip:h}),{data:v}=(0,d.PW)(void 0,{skip:h}),x=g.flags.messagingConfiguration&&(!y||!v)&&m;return(0,n.jsxs)(s.kCb,{"data-testid":i,direction:"column",h:"100vh",children:[(0,n.jsxs)(a(),{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",...c,children:[x?(0,n.jsx)(f,{}):null,t]})]})}},58754:function(e,t,i){"use strict";var n=i(24246),s=i(96306),r=i(70788);t.Z=e=>{let{heading:t,breadcrumbItems:i,isSticky:a=!0,children:l,rightContent:o,style:d,...u}=e;return(0,n.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",...d}:{paddingBottom:"24px",...d},children:[(0,n.jsxs)(s.jqI,{justify:"space-between",children:["string"==typeof t?(0,n.jsx)(s.lQT,{className:i||l?"pb-4":void 0,level:1,"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:l?"pb-4":void 0,items:i,"data-testid":"page-breadcrumb"}),l]})}},70788:function(e,t,i){"use strict";i.d(t,{m:function(){return d}});var n=i(24246),s=i(96306),r=i(79894),a=i.n(r),l=i(27378);let{Text:o}=s.AntTypography,d=e=>{let{items:t,...i}=e,r=(0,l.useMemo)(()=>null==t?void 0:t.map((e,i)=>{let r=i===t.length-1,l={...e},d=l.onClick&&!l.href;return("string"==typeof l.title&&(l.title=(0,n.jsx)(o,{style:{color:"inherit",maxWidth:r?void 0:400},ellipsis:!r,id:r?"breadcrumb-current-page":void 0,children:l.title})),d)?l.title=(0,n.jsx)(s.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,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"anticon align-text-bottom",children:l.icon}),l.title]})),l.href&&l.title&&(l.title=(0,n.jsx)(a(),{href:l.href,className:"ant-breadcrumb-link",children:l.title}),delete l.href)),l}),[t]);return(0,n.jsx)(s.zrq,{items:r,...i})}},41207:function(e,t,i){"use strict";i.d(t,{F:function(){return a},M:function(){return r}});var n=i(76649),s=i(65218);let r=i.n(s)()(()=>i.e(7088).then(i.bind(i,57088)).then(e=>e.default),{loadableGenerated:{webpack:()=>[57088]},ssr:!1}),a=e=>(0,n.Ln)({name:"string"},e)&&"YAMLException"===e.name},42478:function(e,t,i){"use strict";i.d(t,{FU:function(){return d},JE:function(){return s},Ki:function(){return c},SU:function(){return f},W:function(){return g},h9:function(){return r},jc:function(){return n},qt:function(){return o},sn:function(){return u}});let{useGetEmailInviteStatusQuery:n,useGetActiveMessagingProviderQuery:s,useCreateMessagingConfigurationMutation:r,useCreateMessagingConfigurationSecretsMutation:a,useGetMessagingConfigurationDetailsQuery:l,useGetMessagingConfigurationsQuery:o,useGetMessagingConfigurationByKeyQuery:d,useUpdateMessagingConfigurationByKeyMutation:u,useUpdateMessagingConfigurationSecretsByKeyMutation:c,useCreateTestConnectionMessageMutation:f,useDeleteMessagingConfigurationByKeyMutation:g}=i(78780).u.injectEndpoints({endpoints:e=>({getEmailInviteStatus:e.query({query:()=>({url:"/messaging/email-invite/status"}),providesTags:()=>["Email Invite Status"]}),createMessagingConfiguration:e.mutation({query:e=>({url:"messaging/config",method:"POST",body:e}),invalidatesTags:["Messaging Config","Configuration Settings"]}),getActiveMessagingProvider:e.query({queryFn:async(e,t,i,n)=>{let s=await n({url:"messaging/default/active"});return s.error&&404===s.error.status?{data:null}:s},providesTags:["Messaging Config"]}),createMessagingConfigurationSecrets:e.mutation({query:e=>({url:"messaging/default/".concat(e.service_type,"/secret"),method:"PUT",body:e.details}),invalidatesTags:["Messaging Config","Configuration Settings"]}),getMessagingConfigurationDetails:e.query({query:e=>({url:"messaging/default/".concat(e.type)}),providesTags:["Messaging Config"]}),getMessagingConfigurations:e.query({query:()=>({url:"messaging/config"}),providesTags:["Messaging Config"]}),getMessagingConfigurationByKey:e.query({query:e=>({url:"messaging/config/".concat(e.key)}),providesTags:["Messaging Config"]}),createTestConnectionMessage:e.mutation({query:e=>({url:"messaging/test/".concat(e.service_type),method:"POST",body:e.details}),invalidatesTags:["Messaging Config"]}),updateMessagingConfigurationByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key),method:"PATCH",body:e.config}),invalidatesTags:["Messaging Config","Configuration Settings"]}),updateMessagingConfigurationSecretsByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key,"/secret"),method:"PUT",body:e.secrets}),invalidatesTags:["Messaging Config","Configuration Settings"]}),deleteMessagingConfigurationByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key),method:"DELETE"}),invalidatesTags:["Messaging Config","Configuration Settings"]})})})},94010:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return A}});var n=i(24246),s=i(96306),r=i(86677),a=i(27378),l=i(16134),o=i(18225),d=i(77213),u=i(77830),c=i(58754),f=i(1315),g=i(66527),p=i(88340),m=i(812),h=i(46628),y=i(41207),v=i(41966),x=i(94725),b=i(88124);let _=e=>Array.isArray(e)?e.map(e=>_(e)).filter(e=>null!==e):e&&"object"==typeof e?Object.fromEntries(Object.entries(e).map(e=>{let[t,i]=e;return[t,_(i)]}).filter(e=>{let[,t]=e;return null!==t})):e,j=e=>{if(Array.isArray(e)){let t=e[0];if(!t)return"";let i=t.msg||"",n=t.loc?" (".concat(t.loc,")"):"";return"".concat(i).concat(n)}return e};var C=e=>{let{connectionKey:t}=e,i=(0,s.pmc)(),r=(0,l.T)(),[o]=(0,v.TG)(),[d,u]=(0,a.useState)(""),c=(0,l.C)(b.fD),f=(0,l.C)(b.lR),{data:C,isLoading:k,refetch:T}=(0,x.Eg)(t,{skip:!t}),{data:w,refetch:S}=(0,x.tW)({connectionKey:t,datasetKey:(null==c?void 0:c.fides_key)||"",policyKey:f},{skip:!t||!(null==c?void 0:c.fides_key)||!f});(0,a.useEffect)(()=>{w&&r((0,b.x0)(w.reachable))},[w,r]);let E=(0,a.useMemo)(()=>((null==C?void 0:C.items)||[]).map(e=>({value:e.fides_key,label:e.fides_key})),[null==C?void 0:C.items]);(0,a.useEffect)(()=>{if((null==C?void 0:C.items.length)&&(!c||!C.items.find(e=>e.fides_key===c.fides_key))){let e=C.items[0];r((0,b.w7)(e))}},[C,c,r]),(0,a.useEffect)(()=>{(null==c?void 0:c.ctl_dataset)&&u(g.ZP.dump(_(null==c?void 0:c.ctl_dataset)))},[c]),(0,a.useEffect)(()=>{f&&(null==c?void 0:c.fides_key)&&t&&S()},[f,null==c?void 0:c.fides_key,t,S]),(0,a.useEffect)(()=>{w&&r((0,b.x0)(w.reachable))},[w,r]);let q=async e=>{let t=null==C?void 0:C.items.find(t=>t.fides_key===e);t&&r((0,b.w7)(t))},M=async()=>{let e;if(!c)return;try{e=g.ZP.load(d)}catch(e){i((0,h.Vo)("YAML Parsing Error: ".concat(e instanceof g._L?"".concat(e.reason," ").concat(e.mark?"at line ".concat(e.mark.line):""):"Invalid YAML format")));return}let t=await o(e);if((0,m.D4)(t)){i((0,h.Vo)((0,m.e$)(t.error)));return}r((0,b.w7)({fides_key:c.fides_key,ctl_dataset:t.data})),i((0,h.t5)("Successfully modified dataset")),await T(),await S()},O=async()=>{try{let{data:e}=await T(),t=null==e?void 0:e.items.find(e=>e.fides_key===(null==c?void 0:c.fides_key));(null==t?void 0:t.ctl_dataset)&&u(g.ZP.dump(_(t.ctl_dataset))),i((0,h.t5)("Successfully refreshed datasets"))}catch(e){i((0,h.Vo)((0,m.e$)(e)))}};return(0,n.jsxs)(s.gCW,{alignItems:"stretch",flex:"1",maxWidth:"70vw",maxHeight:"100vh",children:[(0,n.jsxs)(s.X6q,{as:"h3",size:"sm",display:"flex",alignItems:"center",justifyContent:"space-between",children:[(0,n.jsxs)(s.Ugi,{children:[(0,n.jsx)(s.xvT,{children:"Edit dataset: "}),(0,n.jsx)(s.WPr,{id:"format","data-testid":"export-format-select",value:(null==c?void 0:c.fides_key)||"",options:E,onChange:q,className:"w-64"}),(0,n.jsx)(p.Z,{copyText:d})]}),(0,n.jsxs)(s.Ugi,{spacing:2,children:[(0,n.jsx)(s.esZ,{title:"Refresh to load the latest data from the database. This will overwrite any unsaved local changes.",placement:"top",children:(0,n.jsx)(s.wpx,{htmlType:"submit",size:"small","data-testid":"refresh-btn",onClick:O,loading:k,children:"Refresh"})}),(0,n.jsx)(s.esZ,{title:"Save your changes to update the dataset in the database.",placement:"top",children:(0,n.jsx)(s.wpx,{htmlType:"submit",size:"small",onClick:M,children:"Save"})})]})]}),(0,n.jsx)(s.Kqy,{border:"1px solid",borderColor:"gray.200",borderRadius:"md",justifyContent:"space-between",py:4,pr:4,"data-testid":"empty-state",flex:"1 1 auto",minHeight:"200px",children:(0,n.jsx)(y.M,{defaultLanguage:"yaml",value:d,height:"100%",onChange:e=>u(e||""),onMount:()=>{},options:{fontFamily:"Menlo",fontSize:13,minimap:{enabled:!1},readOnly:!1,hideCursorInOverviewRuler:!0,overviewRulerBorder:!1,scrollBeyondLastLine:!1},theme:"light"})}),w&&(0,n.jsx)(s.Kqy,{backgroundColor:(null==w?void 0:w.reachable)?"green.50":"red.50",border:"1px solid",borderColor:(null==w?void 0:w.reachable)?"green.500":"red.500",borderRadius:"md",p:2,flexShrink:0,mt:2,children:(0,n.jsx)(s.Ugi,{alignItems:"center",children:(0,n.jsxs)(s.Ugi,{flex:"1",children:[(null==w?void 0:w.reachable)?(0,n.jsx)(s.StI,{}):(0,n.jsx)(s.f9v,{}),(0,n.jsx)(s.xvT,{fontSize:"sm",whiteSpace:"pre-wrap",children:(null==w?void 0:w.reachable)?"Dataset is reachable":"Dataset is not reachable. ".concat(j(null==w?void 0:w.details))})]})})})]})},k=i(54458),T=i(16125),w=i(99716);let S=e=>{let t=new Date(e);return(0,k.WU)(t,"yyyy-MM-dd HH:mm:ss.SSS")},E=e=>{switch(e){case"ERROR":return"red.500";case"WARNING":return"orange.500";case"INFO":return"blue.500";default:return"gray.500"}},q=(0,a.memo)(e=>{let{log:t}=e;return(0,n.jsxs)(s.xuv,{as:"pre",margin:0,fontSize:"xs",fontFamily:"monospace",whiteSpace:"pre-wrap",wordBreak:"break-word",children:[(0,n.jsx)(s.xvT,{as:"span",color:"green.500",children:S(t.timestamp)}),(0,n.jsx)(s.xvT,{as:"span",children:" | "}),(0,n.jsx)(s.xvT,{as:"span",color:E(t.level),children:t.level.padEnd(8)}),(0,n.jsx)(s.xvT,{as:"span",children:" | "}),(0,n.jsx)(s.xvT,{as:"span",color:"cyan.500",children:t.module_info}),(0,n.jsx)(s.xvT,{as:"span",children:" - "}),(0,n.jsx)(s.xvT,{as:"span",color:"ERROR"===t.level||"WARNING"===t.level?E(t.level):"gray.800",children:t.message})]})});q.displayName="LogLine";var M=(0,a.memo)(()=>{let e=(0,l.T)(),t=(0,a.useRef)(null),i=(0,T.v9)(b.HN),r=(0,T.v9)(b.pz),{data:o}=(0,w.fV)({privacy_request_id:i},{skip:!i,pollingInterval:1e3});(0,a.useEffect)(()=>{o&&e((0,b.Hy)(o))},[o,e]);let d=(0,a.useCallback)(()=>{t.current&&(t.current.scrollTop=t.current.scrollHeight)},[]);(0,a.useEffect)(()=>{d()},[r,d]);let u=(0,a.useMemo)(()=>(null==r?void 0:r.map(e=>"".concat(S(e.timestamp)," | ").concat(e.level," | ").concat(e.module_info," - ").concat(e.message)).join("\n"))||"",[r]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.X6q,{as:"h3",size:"sm",display:"flex",alignItems:"center",justifyContent:"space-between",children:(0,n.jsxs)(s.Ugi,{children:[(0,n.jsx)(s.xvT,{children:"Test logs"}),(0,n.jsx)(p.Z,{copyText:u})]})}),(0,n.jsx)(s.xuv,{ref:t,height:"200px",overflowY:"auto",borderWidth:1,borderColor:"gray.200",borderRadius:"md",p:2,children:null==r?void 0:r.map(e=>(0,n.jsx)(q,{log:e},"".concat(e.timestamp,"-").concat(e.module_info,"-").concat(e.message)))})]})}),O=i(46238);let{useGetPoliciesQuery:R}=i(78780).u.injectEndpoints({endpoints:e=>({getPolicies:e.query({query:()=>({url:"/dsr/policy"}),providesTags:()=>["Policies"]})})});var P=i(21910),N=i(31883),I=e=>{let{connectionKey:t}=e,i=(0,s.pmc)(),r=(0,l.T)(),[o]=(0,x.s7)(),d=(0,T.v9)(b.fD),u=(0,T.v9)(b.YS),c=(0,T.v9)(b.Af),f=(0,T.v9)(b.zn),g=(0,T.v9)(b.lR),y=(0,T.v9)(b.M_),v=(0,T.v9)(b.HN),[_,j]=(0,a.useState)("{}");(0,a.useEffect)(()=>{d&&j(JSON.stringify(f,null,2))},[d,f]);let{data:C,error:k}=(0,w.Z2)({privacy_request_id:v},{skip:!v||!(null==d?void 0:d.fides_key),pollingInterval:2e3}),{refetch:S}=(0,w.fV)({privacy_request_id:v},{skip:!v}),{refetch:E}=(0,x.I1)({connectionKey:t,datasetKey:(null==d?void 0:d.fides_key)||""},{skip:!t||!(null==d?void 0:d.fides_key),refetchOnMountOrArgChange:!0}),{data:q}=R(),M=(0,a.useMemo)(()=>((null==q?void 0:q.items)||[]).filter(e=>{var t;return null===(t=e.rules)||void 0===t?void 0:t.some(e=>"access"===e.action_type)}).map(e=>({value:e.key,label:e.name})),[null==q?void 0:q.items]);(0,a.useEffect)(()=>{let e=null==d?void 0:d.fides_key;t&&e&&E().then(t=>{t.data&&(null==d?void 0:d.fides_key)===e&&r((0,b.qD)({datasetKey:e,values:t.data}))})},[d,t,r,E]),(0,a.useEffect)(()=>{let e=null==d?void 0:d.fides_key;if(k&&"status"in k&&404===k.status){r((0,b.hT)()),i((0,h.Vo)("Test run failed"));return}if(!C||C.privacy_request_id!==v||!e)return;let t={datasetKey:e,values:JSON.stringify(C,null,2)};C.status===P.q2.COMPLETE?y&&S().then(()=>{r((0,b.EO)(t)),r((0,b.hT)()),i((0,h.t5)("Test run completed successfully"))}):C.status===P.q2.ERROR&&S().then(()=>{r((0,b.EO)(t)),r((0,b.hT)()),i((0,h.Vo)("Test run failed"))})},[C,k,v,d,y,r,i,S]);let I=(0,a.useMemo)(()=>g&&(null==q?void 0:q.items)?g:null,[g,null==q?void 0:q.items]),D=async()=>{if((null==d?void 0:d.fides_key)&&g)try{let e;try{e=JSON.parse(_)}catch(e){i((0,h.Vo)("Invalid JSON in test input"));return}r((0,b.Vh)(d.fides_key)),i((0,h.t5)("Test run started"));let n=await o({connection_key:t,dataset_key:d.fides_key,identities:e,policy_key:g});(0,N.D4)(n)?(i((0,h.Vo)((0,m.e$)(n.error))),r((0,b.hT)())):"data"in n?r((0,b.eY)(n.data.privacy_request_id)):(r((0,b.hT)()),i((0,h.Vo)("No privacy request ID in response")))}catch(e){r((0,b.hT)()),i((0,h.Vo)("Failed to start test run"))}};return(0,n.jsxs)(s.gCW,{alignItems:"stretch",flex:"1",maxWidth:"70vw",minHeight:"0",children:[(0,n.jsxs)(s.X6q,{as:"h3",size:"sm",display:"flex",alignItems:"center",justifyContent:"space-between",children:[(0,n.jsxs)(s.Ugi,{children:[(0,n.jsx)(s.xvT,{children:"Test inputs"}),(0,n.jsx)(p.Z,{copyText:_})]}),(0,n.jsxs)(s.Ugi,{children:[(0,n.jsx)(s.WPr,{id:"policy","aria-label":"Policy selector","data-testid":"policy-select",placeholder:"Select policy",value:I,options:M,onChange:e=>{r((0,b.kF)(e))},className:"w-64"}),(0,n.jsx)(s.wpx,{htmlType:"submit",size:"small",type:"primary","data-testid":"run-btn",onClick:y?()=>{r((0,b.qU)()),i((0,h.t5)("Test manually stopped by user"))}:D,disabled:!g||!u,children:y?"Stop":"Run"}),(0,n.jsx)(O.b,{label:y?"Stop the currently running test":"Run a test access request using the provided test input data and the selected access policy"})]})]}),(0,n.jsx)(s.gxH,{size:"sm",focusBorderColor:"primary.600",color:"gray.800",isDisabled:y,height:"100%",value:_,onChange:e=>{let t=e.target.value;j(t);try{let e=JSON.parse(t);d&&r((0,b.qD)({datasetKey:d.fides_key,values:e}))}catch(e){}}}),(0,n.jsxs)(s.X6q,{as:"h3",size:"sm",children:["Test results ",(0,n.jsx)(p.Z,{copyText:c})]}),(0,n.jsx)(s.gxH,{isReadOnly:!0,size:"sm",focusBorderColor:"primary.600",color:"gray.800",isDisabled:!1,height:"100%",value:c})]})};let D=e=>e.id?Array.isArray(e.id)?e.id[0]:e.id:"";var A=()=>{var e;let t=(0,r.useRouter)(),i=(0,l.T)(),g=D(t.query),{data:p,isLoading:m}=(0,f.rn)(g,{skip:!g}),h=(null==p?void 0:null===(e=p.connection_configs)||void 0===e?void 0:e.key)||"";return((0,a.useEffect)(()=>{i((0,f.db)(p))},[p,i]),m)?(0,n.jsx)(d.Z,{title:"Systems",children:(0,n.jsx)(o.Z,{})}):(0,n.jsxs)(d.Z,{title:"System inventory",mainProps:{height:"100vh",display:"flex",flexDirection:"column"},children:[(0,n.jsx)(c.Z,{heading:"System inventory",breadcrumbItems:[{title:"System inventory",href:u.So},{title:(null==p?void 0:p.name)||"",href:"/systems/configure/".concat(g,"#integrations")},{title:"Test datasets"}]}),(0,n.jsxs)(s.gCW,{alignItems:"stretch",flex:"1",minHeight:"0",spacing:"4",padding:"0",children:[(0,n.jsxs)(s.Ugi,{alignItems:"stretch",flex:"1",minHeight:"0",spacing:"4",maxHeight:"60vh",children:[(0,n.jsx)(C,{connectionKey:h}),(0,n.jsx)(I,{connectionKey:h})]}),(0,n.jsx)(s.xuv,{flex:"0 0 auto",children:(0,n.jsx)(M,{})})]})]})}},31883:function(e,t,i){"use strict";i.d(t,{Bw:function(){return n.Bw},D4:function(){return n.D4}});var n=i(19043)},76737:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var i in t)Object.defineProperty(e,i,{enumerable:!0,get:t[i]})}(t,{default:function(){return l},noSSR:function(){return a}});let n=i(51538);i(24246),i(27378);let s=n._(i(21887));function r(e){return{default:(null==e?void 0:e.default)||e}}function a(e,t){return delete t.webpack,delete t.modules,e(t)}function l(e,t){let i=s.default,n={loading:e=>{let{error:t,isLoading:i,pastDelay:n}=e;return null}};e instanceof Promise?n.loader=()=>e:"function"==typeof e?n.loader=e:"object"==typeof e&&(n={...n,...e});let l=(n={...n,...t}).loader;return(n.loadableGenerated&&(n={...n,...n.loadableGenerated},delete n.loadableGenerated),"boolean"!=typeof n.ssr||n.ssr)?i({...n,loader:()=>null!=l?l().then(r):Promise.resolve(r(()=>null))}):(delete n.webpack,delete n.modules,a(i,n))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},28438:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return n}});let n=i(51538)._(i(27378)).default.createContext(null)},21887:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return f}});let n=i(51538)._(i(27378)),s=i(28438),r=[],a=[],l=!1;function o(e){let t=e(),i={loading:!0,loaded:null,error:null};return i.promise=t.then(e=>(i.loading=!1,i.loaded=e,e)).catch(e=>{throw i.loading=!1,i.error=e,e}),i}class d{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...e},this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function u(e){return function(e,t){let i=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),r=null;function o(){if(!r){let t=new d(e,i);r={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return r.promise()}if(!l){let e=i.webpack?i.webpack():i.modules;e&&a.push(t=>{for(let i of e)if(t.includes(i))return o()})}function u(e,t){!function(){o();let e=n.default.useContext(s.LoadableContext);e&&Array.isArray(i.modules)&&i.modules.forEach(t=>{e(t)})}();let a=n.default.useSyncExternalStore(r.subscribe,r.getCurrentValue,r.getCurrentValue);return n.default.useImperativeHandle(t,()=>({retry:r.retry}),[]),n.default.useMemo(()=>{var t;return a.loading||a.error?n.default.createElement(i.loading,{isLoading:a.loading,pastDelay:a.pastDelay,timedOut:a.timedOut,error:a.error,retry:r.retry}):a.loaded?n.default.createElement((t=a.loaded)&&t.default?t.default:t,e):null},[e,a])}return u.preload=()=>o(),u.displayName="LoadableComponent",n.default.forwardRef(u)}(o,e)}function c(e,t){let i=[];for(;e.length;){let n=e.pop();i.push(n(t))}return Promise.all(i).then(()=>{if(e.length)return c(e,t)})}u.preloadAll=()=>new Promise((e,t)=>{c(r).then(e,t)}),u.preloadReady=e=>(void 0===e&&(e=[]),new Promise(t=>{let i=()=>(l=!0,t());c(a,e).then(i,i)})),window.__NEXT_PRELOADREADY=u.preloadReady;let f=u},65218:function(e,t,i){e.exports=i(76737)}},function(e){e.O(0,[6527,2888,9774,179],function(){return e(e.s=54543)}),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1617],{54543:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/systems/configure/[id]/test-datasets",function(){return i(94010)}])},18225:function(e,t,i){"use strict";var n=i(24246),s=i(96306);t.Z=e=>{let{alignment:t="center",...i}=e;return(0,n.jsx)(s.kCb,{boxSize:"full",align:"center",justify:t,children:(0,n.jsx)(s.$jN,{color:"primary",...i})})}},77213:function(e,t,i){"use strict";i.d(t,{Z:function(){return g}});var n=i(24246),s=i(96306),r=i(88038),a=i.n(r),l=i(86677);i(27378);var o=i(25980),d=i(90867),u=i(42478),c=i(77830),f=()=>{let e=(0,l.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(c.AD)},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."," "]})]})})},g=e=>{let{children:t,title:i,padded:r=!0,mainProps:c}=e,g=(0,o.hz)(),p=(0,l.useRouter)(),m="/privacy-requests"===p.pathname||"/datastore-connection"===p.pathname,h=!(g.flags.messagingConfiguration&&m),{data:y}=(0,u.JE)(void 0,{skip:h}),{data:v}=(0,d.PW)(void 0,{skip:h}),x=g.flags.messagingConfiguration&&(!y||!v)&&m;return(0,n.jsxs)(s.kCb,{"data-testid":i,direction:"column",h:"100vh",children:[(0,n.jsxs)(a(),{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",...c,children:[x?(0,n.jsx)(f,{}):null,t]})]})}},58754:function(e,t,i){"use strict";var n=i(24246),s=i(96306),r=i(70788);t.Z=e=>{let{heading:t,breadcrumbItems:i,isSticky:a=!0,children:l,rightContent:o,style:d,...u}=e;return(0,n.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",...d}:{paddingBottom:"24px",...d},children:[(0,n.jsxs)(s.jqI,{justify:"space-between",children:["string"==typeof t?(0,n.jsx)(s.lQT,{className:i||l?"pb-4":void 0,level:1,"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:l?"pb-4":void 0,items:i,"data-testid":"page-breadcrumb"}),l]})}},70788:function(e,t,i){"use strict";i.d(t,{m:function(){return d}});var n=i(24246),s=i(96306),r=i(79894),a=i.n(r),l=i(27378);let{Text:o}=s.AntTypography,d=e=>{let{items:t,...i}=e,r=(0,l.useMemo)(()=>null==t?void 0:t.map((e,i)=>{let r=i===t.length-1,l={...e},d=l.onClick&&!l.href;return("string"==typeof l.title&&(l.title=(0,n.jsx)(o,{style:{color:"inherit",maxWidth:r?void 0:400},ellipsis:!r,id:r?"breadcrumb-current-page":void 0,children:l.title})),d)?l.title=(0,n.jsx)(s.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,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"anticon align-text-bottom",children:l.icon}),l.title]})),l.href&&l.title&&(l.title=(0,n.jsx)(a(),{href:l.href,className:"ant-breadcrumb-link",children:l.title}),delete l.href)),l}),[t]);return(0,n.jsx)(s.zrq,{items:r,...i})}},41207:function(e,t,i){"use strict";i.d(t,{F:function(){return a},M:function(){return r}});var n=i(76649),s=i(65218);let r=i.n(s)()(()=>i.e(7088).then(i.bind(i,57088)).then(e=>e.default),{loadableGenerated:{webpack:()=>[57088]},ssr:!1}),a=e=>(0,n.Ln)({name:"string"},e)&&"YAMLException"===e.name},42478:function(e,t,i){"use strict";i.d(t,{FU:function(){return d},JE:function(){return s},Ki:function(){return c},SU:function(){return f},W:function(){return g},h9:function(){return r},jc:function(){return n},qt:function(){return o},sn:function(){return u}});let{useGetEmailInviteStatusQuery:n,useGetActiveMessagingProviderQuery:s,useCreateMessagingConfigurationMutation:r,useCreateMessagingConfigurationSecretsMutation:a,useGetMessagingConfigurationDetailsQuery:l,useGetMessagingConfigurationsQuery:o,useGetMessagingConfigurationByKeyQuery:d,useUpdateMessagingConfigurationByKeyMutation:u,useUpdateMessagingConfigurationSecretsByKeyMutation:c,useCreateTestConnectionMessageMutation:f,useDeleteMessagingConfigurationByKeyMutation:g}=i(78780).u.injectEndpoints({endpoints:e=>({getEmailInviteStatus:e.query({query:()=>({url:"/messaging/email-invite/status"}),providesTags:()=>["Email Invite Status"]}),createMessagingConfiguration:e.mutation({query:e=>({url:"messaging/config",method:"POST",body:e}),invalidatesTags:["Messaging Config","Configuration Settings"]}),getActiveMessagingProvider:e.query({queryFn:async(e,t,i,n)=>{let s=await n({url:"messaging/default/active"});return s.error&&404===s.error.status?{data:null}:s},providesTags:["Messaging Config"]}),createMessagingConfigurationSecrets:e.mutation({query:e=>({url:"messaging/default/".concat(e.service_type,"/secret"),method:"PUT",body:e.details}),invalidatesTags:["Messaging Config","Configuration Settings"]}),getMessagingConfigurationDetails:e.query({query:e=>({url:"messaging/default/".concat(e.type)}),providesTags:["Messaging Config"]}),getMessagingConfigurations:e.query({query:()=>({url:"messaging/config"}),providesTags:["Messaging Config"]}),getMessagingConfigurationByKey:e.query({query:e=>({url:"messaging/config/".concat(e.key)}),providesTags:["Messaging Config"]}),createTestConnectionMessage:e.mutation({query:e=>({url:"messaging/test/".concat(e.service_type),method:"POST",body:e.details}),invalidatesTags:["Messaging Config"]}),updateMessagingConfigurationByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key),method:"PATCH",body:e.config}),invalidatesTags:["Messaging Config","Configuration Settings"]}),updateMessagingConfigurationSecretsByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key,"/secret"),method:"PUT",body:e.secrets}),invalidatesTags:["Messaging Config","Configuration Settings"]}),deleteMessagingConfigurationByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key),method:"DELETE"}),invalidatesTags:["Messaging Config","Configuration Settings"]})})})},94010:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return A}});var n=i(24246),s=i(96306),r=i(86677),a=i(18225),l=i(77213),o=i(77830),d=i(58754),u=i(1315),c=i(66527),f=i(27378),g=i(16134),p=i(88340),m=i(812),h=i(46628),y=i(41207),v=i(41966),x=i(94725),b=i(88124);let _=e=>Array.isArray(e)?e.map(e=>_(e)).filter(e=>null!==e):e&&"object"==typeof e?Object.fromEntries(Object.entries(e).map(e=>{let[t,i]=e;return[t,_(i)]}).filter(e=>{let[,t]=e;return null!==t})):e,j=e=>{if(Array.isArray(e)){let t=e[0];if(!t)return"";let i=t.msg||"",n=t.loc?" (".concat(t.loc,")"):"";return"".concat(i).concat(n)}return e};var C=e=>{let{connectionKey:t}=e,i=(0,s.pmc)(),r=(0,g.T)(),[a]=(0,v.TG)(),[l,o]=(0,f.useState)(""),d=(0,g.C)(b.fD),u=(0,g.C)(b.lR),{data:C,isLoading:k,refetch:T}=(0,x.Eg)(t,{skip:!t}),{data:w,refetch:S}=(0,x.tW)({connectionKey:t,datasetKey:(null==d?void 0:d.fides_key)||"",policyKey:u},{skip:!t||!(null==d?void 0:d.fides_key)||!u});(0,f.useEffect)(()=>{w&&r((0,b.x0)(w.reachable))},[w,r]);let E=(0,f.useMemo)(()=>((null==C?void 0:C.items)||[]).map(e=>({value:e.fides_key,label:e.fides_key})),[null==C?void 0:C.items]);(0,f.useEffect)(()=>{if((null==C?void 0:C.items.length)&&(!d||!C.items.find(e=>e.fides_key===d.fides_key))){let e=C.items[0];r((0,b.w7)(e))}},[C,d,r]),(0,f.useEffect)(()=>{(null==d?void 0:d.ctl_dataset)&&o(c.ZP.dump(_(null==d?void 0:d.ctl_dataset)))},[d]),(0,f.useEffect)(()=>{u&&(null==d?void 0:d.fides_key)&&t&&S()},[u,null==d?void 0:d.fides_key,t,S]),(0,f.useEffect)(()=>{w&&r((0,b.x0)(w.reachable))},[w,r]);let q=async e=>{let t=null==C?void 0:C.items.find(t=>t.fides_key===e);t&&r((0,b.w7)(t))},M=async()=>{let e;if(!d)return;try{e=c.ZP.load(l)}catch(e){i((0,h.Vo)("YAML Parsing Error: ".concat(e instanceof c._L?"".concat(e.reason," ").concat(e.mark?"at line ".concat(e.mark.line):""):"Invalid YAML format")));return}let t=await a(e);if((0,m.D4)(t)){i((0,h.Vo)((0,m.e$)(t.error)));return}r((0,b.w7)({fides_key:d.fides_key,ctl_dataset:t.data})),i((0,h.t5)("Successfully modified dataset")),await T(),await S()},O=async()=>{try{let{data:e}=await T(),t=null==e?void 0:e.items.find(e=>e.fides_key===(null==d?void 0:d.fides_key));(null==t?void 0:t.ctl_dataset)&&o(c.ZP.dump(_(t.ctl_dataset))),i((0,h.t5)("Successfully refreshed datasets"))}catch(e){i((0,h.Vo)((0,m.e$)(e)))}};return(0,n.jsxs)(s.gCW,{alignItems:"stretch",flex:"1",maxWidth:"70vw",maxHeight:"100vh",children:[(0,n.jsxs)(s.X6q,{as:"h3",size:"sm",display:"flex",alignItems:"center",justifyContent:"space-between",children:[(0,n.jsxs)(s.Ugi,{children:[(0,n.jsx)(s.xvT,{children:"Edit dataset: "}),(0,n.jsx)(s.WPr,{id:"format","data-testid":"export-format-select",value:(null==d?void 0:d.fides_key)||"",options:E,onChange:q,className:"w-64"}),(0,n.jsx)(p.Z,{copyText:l})]}),(0,n.jsxs)(s.Ugi,{spacing:2,children:[(0,n.jsx)(s.esZ,{title:"Refresh to load the latest data from the database. This will overwrite any unsaved local changes.",placement:"top",children:(0,n.jsx)(s.wpx,{htmlType:"submit",size:"small","data-testid":"refresh-btn",onClick:O,loading:k,children:"Refresh"})}),(0,n.jsx)(s.esZ,{title:"Save your changes to update the dataset in the database.",placement:"top",children:(0,n.jsx)(s.wpx,{htmlType:"submit",size:"small",onClick:M,children:"Save"})})]})]}),(0,n.jsx)(s.Kqy,{border:"1px solid",borderColor:"gray.200",borderRadius:"md",justifyContent:"space-between",py:4,pr:4,"data-testid":"empty-state",flex:"1 1 auto",minHeight:"200px",children:(0,n.jsx)(y.M,{defaultLanguage:"yaml",value:l,height:"100%",onChange:e=>o(e||""),onMount:()=>{},options:{fontFamily:"Menlo",fontSize:13,minimap:{enabled:!1},readOnly:!1,hideCursorInOverviewRuler:!0,overviewRulerBorder:!1,scrollBeyondLastLine:!1},theme:"light"})}),w&&(0,n.jsx)(s.Kqy,{backgroundColor:(null==w?void 0:w.reachable)?"green.50":"red.50",border:"1px solid",borderColor:(null==w?void 0:w.reachable)?"green.500":"red.500",borderRadius:"md",p:2,flexShrink:0,mt:2,children:(0,n.jsx)(s.Ugi,{alignItems:"center",children:(0,n.jsxs)(s.Ugi,{flex:"1",children:[(null==w?void 0:w.reachable)?(0,n.jsx)(s.StI,{}):(0,n.jsx)(s.f9v,{}),(0,n.jsx)(s.xvT,{fontSize:"sm",whiteSpace:"pre-wrap",children:(null==w?void 0:w.reachable)?"Dataset is reachable":"Dataset is not reachable. ".concat(j(null==w?void 0:w.details))})]})})})]})},k=i(54458),T=i(16125),w=i(99716);let S=e=>{let t=new Date(e);return(0,k.WU)(t,"yyyy-MM-dd HH:mm:ss.SSS")},E=e=>{switch(e){case"ERROR":return"red.500";case"WARNING":return"orange.500";case"INFO":return"blue.500";default:return"gray.500"}},q=(0,f.memo)(e=>{let{log:t}=e;return(0,n.jsxs)(s.xuv,{as:"pre",margin:0,fontSize:"xs",fontFamily:"monospace",whiteSpace:"pre-wrap",wordBreak:"break-word",children:[(0,n.jsx)(s.xvT,{as:"span",color:"green.500",children:S(t.timestamp)}),(0,n.jsx)(s.xvT,{as:"span",children:" | "}),(0,n.jsx)(s.xvT,{as:"span",color:E(t.level),children:t.level.padEnd(8)}),(0,n.jsx)(s.xvT,{as:"span",children:" | "}),(0,n.jsx)(s.xvT,{as:"span",color:"cyan.500",children:t.module_info}),(0,n.jsx)(s.xvT,{as:"span",children:" - "}),(0,n.jsx)(s.xvT,{as:"span",color:"ERROR"===t.level||"WARNING"===t.level?E(t.level):"gray.800",children:t.message})]})});q.displayName="LogLine";var M=(0,f.memo)(()=>{let e=(0,g.T)(),t=(0,f.useRef)(null),i=(0,T.v9)(b.HN),r=(0,T.v9)(b.pz),{data:a}=(0,w.fV)({privacy_request_id:i},{skip:!i,pollingInterval:1e3});(0,f.useEffect)(()=>{a&&e((0,b.Hy)(a))},[a,e]);let l=(0,f.useCallback)(()=>{t.current&&(t.current.scrollTop=t.current.scrollHeight)},[]);(0,f.useEffect)(()=>{l()},[r,l]);let o=(0,f.useMemo)(()=>(null==r?void 0:r.map(e=>"".concat(S(e.timestamp)," | ").concat(e.level," | ").concat(e.module_info," - ").concat(e.message)).join("\n"))||"",[r]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.X6q,{as:"h3",size:"sm",display:"flex",alignItems:"center",justifyContent:"space-between",children:(0,n.jsxs)(s.Ugi,{children:[(0,n.jsx)(s.xvT,{children:"Test logs"}),(0,n.jsx)(p.Z,{copyText:o})]})}),(0,n.jsx)(s.xuv,{ref:t,height:"200px",overflowY:"auto",borderWidth:1,borderColor:"gray.200",borderRadius:"md",p:2,children:null==r?void 0:r.map(e=>(0,n.jsx)(q,{log:e},"".concat(e.timestamp,"-").concat(e.module_info,"-").concat(e.message)))})]})}),O=i(46238);let{useGetPoliciesQuery:R}=i(78780).u.injectEndpoints({endpoints:e=>({getPolicies:e.query({query:()=>({url:"/dsr/policy"}),providesTags:()=>["Policies"]})})});var P=i(21910),N=i(31883),I=e=>{let{connectionKey:t}=e,i=(0,s.pmc)(),r=(0,g.T)(),[a]=(0,x.s7)(),l=(0,T.v9)(b.fD),o=(0,T.v9)(b.YS),d=(0,T.v9)(b.Af),u=(0,T.v9)(b.zn),c=(0,T.v9)(b.lR),y=(0,T.v9)(b.M_),v=(0,T.v9)(b.HN),[_,j]=(0,f.useState)("{}");(0,f.useEffect)(()=>{l&&j(JSON.stringify(u,null,2))},[l,u]);let{data:C,error:k}=(0,w.Z2)({privacy_request_id:v},{skip:!v||!(null==l?void 0:l.fides_key),pollingInterval:2e3}),{refetch:S}=(0,w.fV)({privacy_request_id:v},{skip:!v}),{refetch:E}=(0,x.I1)({connectionKey:t,datasetKey:(null==l?void 0:l.fides_key)||""},{skip:!t||!(null==l?void 0:l.fides_key),refetchOnMountOrArgChange:!0}),{data:q}=R(),M=(0,f.useMemo)(()=>((null==q?void 0:q.items)||[]).filter(e=>{var t;return null===(t=e.rules)||void 0===t?void 0:t.some(e=>"access"===e.action_type)}).map(e=>({value:e.key,label:e.name})),[null==q?void 0:q.items]);(0,f.useEffect)(()=>{let e=null==l?void 0:l.fides_key;t&&e&&E().then(t=>{t.data&&(null==l?void 0:l.fides_key)===e&&r((0,b.qD)({datasetKey:e,values:t.data}))})},[l,t,r,E]),(0,f.useEffect)(()=>{let e=null==l?void 0:l.fides_key;if(k&&"status"in k&&404===k.status){r((0,b.hT)()),i((0,h.Vo)("Test run failed"));return}if(!C||C.privacy_request_id!==v||!e)return;let t={datasetKey:e,values:JSON.stringify(C,null,2)};C.status===P.q2.COMPLETE?y&&S().then(()=>{r((0,b.EO)(t)),r((0,b.hT)()),i((0,h.t5)("Test run completed successfully"))}):C.status===P.q2.ERROR&&S().then(()=>{r((0,b.EO)(t)),r((0,b.hT)()),i((0,h.Vo)("Test run failed"))})},[C,k,v,l,y,r,i,S]);let I=(0,f.useMemo)(()=>c&&(null==q?void 0:q.items)?c:null,[c,null==q?void 0:q.items]),D=async()=>{if((null==l?void 0:l.fides_key)&&c)try{let e;try{e=JSON.parse(_)}catch(e){i((0,h.Vo)("Invalid JSON in test input"));return}r((0,b.Vh)(l.fides_key)),i((0,h.t5)("Test run started"));let n=await a({connection_key:t,dataset_key:l.fides_key,identities:e,policy_key:c});(0,N.D4)(n)?(i((0,h.Vo)((0,m.e$)(n.error))),r((0,b.hT)())):"data"in n?r((0,b.eY)(n.data.privacy_request_id)):(r((0,b.hT)()),i((0,h.Vo)("No privacy request ID in response")))}catch(e){r((0,b.hT)()),i((0,h.Vo)("Failed to start test run"))}};return(0,n.jsxs)(s.gCW,{alignItems:"stretch",flex:"1",maxWidth:"70vw",minHeight:"0",children:[(0,n.jsxs)(s.X6q,{as:"h3",size:"sm",display:"flex",alignItems:"center",justifyContent:"space-between",children:[(0,n.jsxs)(s.Ugi,{children:[(0,n.jsx)(s.xvT,{children:"Test inputs"}),(0,n.jsx)(p.Z,{copyText:_})]}),(0,n.jsxs)(s.Ugi,{children:[(0,n.jsx)(s.WPr,{id:"policy","aria-label":"Policy selector","data-testid":"policy-select",placeholder:"Select policy",value:I,options:M,onChange:e=>{r((0,b.kF)(e))},className:"w-64"}),(0,n.jsx)(s.wpx,{htmlType:"submit",size:"small",type:"primary","data-testid":"run-btn",onClick:y?()=>{r((0,b.qU)()),i((0,h.t5)("Test manually stopped by user"))}:D,disabled:!c||!o,children:y?"Stop":"Run"}),(0,n.jsx)(O.b,{label:y?"Stop the currently running test":"Run a test access request using the provided test input data and the selected access policy"})]})]}),(0,n.jsx)(s.gxH,{size:"sm",focusBorderColor:"primary.600",color:"gray.800",isDisabled:y,height:"100%",value:_,onChange:e=>{let t=e.target.value;j(t);try{let e=JSON.parse(t);l&&r((0,b.qD)({datasetKey:l.fides_key,values:e}))}catch(e){}}}),(0,n.jsxs)(s.X6q,{as:"h3",size:"sm",children:["Test results ",(0,n.jsx)(p.Z,{copyText:d})]}),(0,n.jsx)(s.gxH,{isReadOnly:!0,size:"sm",focusBorderColor:"primary.600",color:"gray.800",isDisabled:!1,height:"100%",value:d})]})};let D=e=>e.id?Array.isArray(e.id)?e.id[0]:e.id:"";var A=()=>{var e;let t=D((0,r.useRouter)().query),{data:i,isLoading:c}=(0,u.rn)(t,{skip:!t}),f=(null==i?void 0:null===(e=i.connection_configs)||void 0===e?void 0:e.key)||"";return c?(0,n.jsx)(l.Z,{title:"Systems",children:(0,n.jsx)(a.Z,{})}):(0,n.jsxs)(l.Z,{title:"System inventory",mainProps:{height:"100vh",display:"flex",flexDirection:"column"},children:[(0,n.jsx)(d.Z,{heading:"System inventory",breadcrumbItems:[{title:"System inventory",href:o.So},{title:(null==i?void 0:i.name)||"",href:"/systems/configure/".concat(t,"#integrations")},{title:"Test datasets"}]}),(0,n.jsxs)(s.gCW,{alignItems:"stretch",flex:"1",minHeight:"0",spacing:"4",padding:"0",children:[(0,n.jsxs)(s.Ugi,{alignItems:"stretch",flex:"1",minHeight:"0",spacing:"4",maxHeight:"60vh",children:[(0,n.jsx)(C,{connectionKey:f}),(0,n.jsx)(I,{connectionKey:f})]}),(0,n.jsx)(s.xuv,{flex:"0 0 auto",children:(0,n.jsx)(M,{})})]})]})}},31883:function(e,t,i){"use strict";i.d(t,{Bw:function(){return n.Bw},D4:function(){return n.D4}});var n=i(19043)},76737:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var i in t)Object.defineProperty(e,i,{enumerable:!0,get:t[i]})}(t,{default:function(){return l},noSSR:function(){return a}});let n=i(51538);i(24246),i(27378);let s=n._(i(21887));function r(e){return{default:(null==e?void 0:e.default)||e}}function a(e,t){return delete t.webpack,delete t.modules,e(t)}function l(e,t){let i=s.default,n={loading:e=>{let{error:t,isLoading:i,pastDelay:n}=e;return null}};e instanceof Promise?n.loader=()=>e:"function"==typeof e?n.loader=e:"object"==typeof e&&(n={...n,...e});let l=(n={...n,...t}).loader;return(n.loadableGenerated&&(n={...n,...n.loadableGenerated},delete n.loadableGenerated),"boolean"!=typeof n.ssr||n.ssr)?i({...n,loader:()=>null!=l?l().then(r):Promise.resolve(r(()=>null))}):(delete n.webpack,delete n.modules,a(i,n))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},28438:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return n}});let n=i(51538)._(i(27378)).default.createContext(null)},21887:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return f}});let n=i(51538)._(i(27378)),s=i(28438),r=[],a=[],l=!1;function o(e){let t=e(),i={loading:!0,loaded:null,error:null};return i.promise=t.then(e=>(i.loading=!1,i.loaded=e,e)).catch(e=>{throw i.loading=!1,i.error=e,e}),i}class d{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...e},this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function u(e){return function(e,t){let i=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),r=null;function o(){if(!r){let t=new d(e,i);r={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return r.promise()}if(!l){let e=i.webpack?i.webpack():i.modules;e&&a.push(t=>{for(let i of e)if(t.includes(i))return o()})}function u(e,t){!function(){o();let e=n.default.useContext(s.LoadableContext);e&&Array.isArray(i.modules)&&i.modules.forEach(t=>{e(t)})}();let a=n.default.useSyncExternalStore(r.subscribe,r.getCurrentValue,r.getCurrentValue);return n.default.useImperativeHandle(t,()=>({retry:r.retry}),[]),n.default.useMemo(()=>{var t;return a.loading||a.error?n.default.createElement(i.loading,{isLoading:a.loading,pastDelay:a.pastDelay,timedOut:a.timedOut,error:a.error,retry:r.retry}):a.loaded?n.default.createElement((t=a.loaded)&&t.default?t.default:t,e):null},[e,a])}return u.preload=()=>o(),u.displayName="LoadableComponent",n.default.forwardRef(u)}(o,e)}function c(e,t){let i=[];for(;e.length;){let n=e.pop();i.push(n(t))}return Promise.all(i).then(()=>{if(e.length)return c(e,t)})}u.preloadAll=()=>new Promise((e,t)=>{c(r).then(e,t)}),u.preloadReady=e=>(void 0===e&&(e=[]),new Promise(t=>{let i=()=>(l=!0,t());c(a,e).then(i,i)})),window.__NEXT_PRELOADREADY=u.preloadReady;let f=u},65218:function(e,t,i){e.exports=i(76737)}},function(e){e.O(0,[6527,2888,9774,179],function(){return e(e.s=54543)}),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3691],{8828:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/systems/configure/[id]",function(){return s(82657)}])},18225:function(e,t,s){"use strict";var n=s(24246),i=s(96306);t.Z=e=>{let{alignment:t="center",...s}=e;return(0,n.jsx)(i.kCb,{boxSize:"full",align:"center",justify:t,children:(0,n.jsx)(i.$jN,{color:"primary",...s})})}},82657:function(e,t,s){"use strict";s.r(t);var n=s(24246),i=s(96306),r=s(86677),a=s(27378),l=s(16134),d=s(25980),u=s(18225),c=s(812),o=s(14048),f=s(77213),x=s(77830),h=s(58754),m=s(32885),y=s(1315),j=s(57865),g=s(72774),_=s(21103);t.default=()=>{let e=(0,r.useRouter)(),t=(0,l.T)(),s="";e.query.id&&(s=Array.isArray(e.query.id)?e.query.id[0]:e.query.id);let{data:p,isLoading:v}=(0,y.rn)(s),{error:w,isLoading:b}=(0,m.Rd)(),{tcf:C,plus:N}=(0,d.hz)(),Z=(0,l.C)(j.gU);(0,a.useEffect)(()=>{if(p){let e=C&&!!p.vendor_id&&(0,c.cj)(p.vendor_id)===c.c6.GVL;t((0,j.gQ)(e))}else(0,j.gQ)(!1)},[p,t,C]);let{tabData:E,activeKey:k,onTabChange:S}=(0,_.Z)({isCreate:!1});return(v||b)&&!w?(0,n.jsx)(f.Z,{title:"Systems",children:(0,n.jsx)(u.Z,{})}):p?(0,n.jsxs)(f.Z,{title:"System inventory",mainProps:{w:"calc(100vw - 240px)"},children:[(0,n.jsx)(h.Z,{heading:"System inventory",breadcrumbItems:[{title:"All systems",href:x.So},{title:(null==p?void 0:p.name)||""}]}),(0,n.jsx)(i.A5g,{activeKey:k,onChange:S,items:E,className:"w-full",tabBarExtraContent:N&&(0,n.jsxs)(i.wpx,{size:"small",className:"absolute right-2 top-2","data-testid":"integration-page-btn",onClick:()=>e.push(x.KH),children:[(0,n.jsx)(i.xvT,{children:"Integrations"}),(0,n.jsx)(o.A5,{marginLeft:2})]}),renderTabBar:(e,t)=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t,{...e}),Z&&(0,n.jsx)(g.Z,{})]})})]}):(0,n.jsx)(f.Z,{title:"Systems",children:(0,n.jsxs)(i.xvT,{"data-testid":"system-not-found",children:["Could not find a system with id ",s]})})}}},function(e){e.O(0,[431,8765,9278,5163,699,5277,409,7045,401,9951,6416,3585,3700,2888,9774,179],function(){return e(e.s=8828)}),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3785],{90988:function(e,t,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/systems",function(){return l(52295)}])},30952:function(e,t,l){"use strict";l.d(t,{f:function(){return o}});var s=l(24246),a=l(66726),n=l.n(a),i=l(27378),r=l(26917);let o=e=>{let{value:t,onChange:l,placeholder:a,...o}=e,[d,u]=(0,i.useState)(t);(0,i.useEffect)(()=>{u(t||"")},[t]);let c=n()(l,500),p=(0,i.useCallback)(e=>{u(e),c(e)},[]);return(0,s.jsx)(r.Z,{value:d,onChange:p,onClear:()=>{u(""),l("")},placeholder:a,...o})}},35287:function(e,t,l){"use strict";var s=l(24246),a=l(96306),n=l(88038),i=l.n(n);l(27378),t.Z=e=>{let{children:t,title:l,mainProps:n}=e;return(0,s.jsxs)(a.kCb,{"data-testid":l,direction:"column",height:"calc(100vh - 48px)",width:"calc(100vw - 240px)",children:[(0,s.jsxs)(i(),{children:[(0,s.jsxs)("title",{children:["Fides Admin UI - ",l]}),(0,s.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,s.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,s.jsx)(a.kCb,{px:10,py:6,as:"main",overflow:"auto",direction:"column",flex:1,minWidth:0,...n,children:t})]})}},34929:function(e,t,l){"use strict";var s=l(24246),a=l(64925),n=l.n(a),i=l(27378),r=l(16134),o=l(30002),d=l(28079),u=l(57072);let c=()=>{let{isLoading:e}=(0,d.fd)(),t=(0,r.C)(d.U3),{isLoading:l}=(0,u.MO)(),s=(0,r.C)(u.qb),{isLoading:a}=(0,o.te)();return{dataUses:t,dataSubjects:(0,r.C)(o.ZL),dataCategories:s,isLoading:e||l||a}};t.Z=()=>{let{dataUses:e,dataCategories:t,dataSubjects:l,isLoading:a}=c(),r=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 l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,s=t(e);if(!s)return{};let a=t(r(e,l)),n=!!s.parent_key;return{name:s.name||void 0,primaryName:n&&(null==a?void 0:a.name)!==s.name&&(null==a?void 0:a.name)||void 0}},d=function(e,t){let l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,{name:a,primaryName:n}=o(e,t,l);return a?n?(0,s.jsxs)(i.Fragment,{children:[(0,s.jsxs)("strong",{children:[n,":"]})," ",a]},e):(0,s.jsx)("strong",{children:a},e):e},u=t=>n()(e,{fides_key:t}),p=e=>n()(t,{fides_key:e}),g=e=>n()(l,{fides_key:e});return{getDataUses:()=>e,getDataUseByKey:u,getDataUseDisplayName:e=>d(e,u,1),getDataUseDisplayNameProps:e=>o(e,u,1),getDataCategories:()=>t,getDataCategoryByKey:p,getDataCategoryDisplayName:e=>d(e,p,2),getDataCategoryDisplayNameProps:e=>o(e,p,2),getDataSubjects:()=>l,getDataSubjectByKey:g,getDataSubjectDisplayName:e=>{let t=g(e);return t?t.name:e},getPrimaryKey:r,isLoading:a}}},99640:function(e,t,l){"use strict";l.d(t,{Z:function(){return d}});var s=l(24246),a=l(96306),n=l(79894),i=l.n(n);let{Link:r,Text:o}=a.AntTypography,d=e=>{let{href:t,children:l,...a}=e;return t?(0,s.jsx)(i(),{href:t,passHref:!0,legacyBehavior:!0,children:(0,s.jsx)(r,{strong:!0,ellipsis:!0,onClick:e=>e.stopPropagation(),...a,children:l})}):(0,s.jsx)(o,{strong:!0,ellipsis:!0,...a,children:l})}},2525:function(e,t,l){"use strict";l.d(t,{Q:function(){return r}});var s=l(24246),a=l(96306),n=l(27378),i=l(3110);let r=e=>{let{values:t,columnState:l,tagProps:r,onTagClose:o,...d}=e,{isExpanded:u,isWrapped:c,version:p}=l||{},[g,m]=(0,n.useState)(!u),[y,v]=(0,n.useState)(!!c),[h,f]=(0,n.useState)(u?t:null==t?void 0:t.slice(0,2));(0,n.useEffect)(()=>{m(!u)},[u,p]),(0,n.useEffect)(()=>{v(!!c)},[c]),(0,n.useEffect)(()=>{(null==t?void 0:t.length)&&f(g?t.slice(0,2):t)},[g,t]);let x=(0,n.useCallback)(()=>{f(null==t?void 0:t.slice(0,2)),m(!0)},[t]),j=(0,n.useCallback)(()=>{m(!1)},[]),k=(0,n.useCallback)(()=>{g?j():x()},[g,j,x]);return(0,n.useMemo)(()=>(null==h?void 0:h.length)?(0,s.jsxs)(a.jqI,{align:g?"center":"start",wrap:y?"wrap":"nowrap",vertical:!g,gap:"small","data-testid":"tag-expandable-cell",style:{overflowX:"auto",...d.style},...d,children:[h.map(e=>(0,s.jsx)(a.j8w,{color:"white","data-testid":e.key,onClose:o?()=>o(e.key):void 0,...r,...e.tagProps,children:(0,s.jsx)(a.lKn,{ellipsis:!!g&&{tooltip:!0},style:{color:"inherit",maxWidth:g?i.TD:void 0},children:e.label})},e.key)),t&&t.length>2&&(0,s.jsx)(a.wpx,{type:"link",size:"small",onClick:e=>{e.stopPropagation(),k()},className:"h-auto p-0",style:{fontSize:"var(--ant-font-size)"},children:g?"+".concat(t.length-2," more"):i.T5})]}):(0,s.jsx)("span",{"data-testid":"tag-expandable-cell-empty"}),[h,g,y,d,t,r,o,k])}},3110:function(e,t,l){"use strict";l.d(t,{DI:function(){return r},T5:function(){return n},TD:function(){return i}});var s=l(24246),a=l(96306);let n="show less",i=150,r=[{key:"expand-all",label:"Expand all",icon:(0,s.jsx)(a.PJP.jbG,{})},{key:"collapse-all",label:"Collapse all",icon:(0,s.jsx)(a.PJP.MVB,{})}]},26070:function(e,t,l){"use strict";l.d(t,{v:function(){return o},Q:function(){return d.Q}});var s=l(24246),a=l(96306),n=l(27378),i=l(3110);let{Text:r}=a.AntTypography,o=e=>{let{values:t,valueSuffix:l,columnState:o}=e,{isExpanded:d,version:u}=o||{},[c,p]=(0,n.useState)(!d);(0,n.useEffect)(()=>{p(!d)},[d,u]);let g=(0,n.useCallback)(()=>{p(!0)},[]),m=(0,n.useCallback)(()=>{p(!1)},[]),y=(0,n.useCallback)(()=>{c?m():g()},[c,m,g]);return(0,n.useMemo)(()=>(null==t?void 0:t.length)?1===t.length?(0,s.jsx)(r,{ellipsis:!0,"data-testid":"list-expandable-cell-single",children:t[0]}):(0,s.jsxs)(a.jqI,{align:c?"center":"flex-start",vertical:!c,gap:c?"small":"none","data-testid":"list-expandable-cell",children:[c?(0,s.jsxs)(r,{ellipsis:!0,children:[t.length," ",l]}):(0,s.jsx)(a.krs,{dataSource:t,renderItem:e=>(0,s.jsx)("li",{children:e})}),(0,s.jsx)(a.wpx,{type:"link",size:"small",onClick:e=>{e.stopPropagation(),y()},className:"h-auto p-0",style:{fontSize:"var(--ant-font-size)"},children:c?"view":i.T5})]}):null,[c,t,l,y])};var d=l(2525)},8125:function(e,t,l){"use strict";l.d(t,{V:function(){return n},o:function(){return d}});var s=l(27378),a=l(32735);let n=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{enableSelection:l=!1,getRowKey:n,bulkActions:i,isLoading:r=!1,isFetching:o=!1,dataSource:d=[],totalRows:u=0,currentPage:c,pageSize:p,customTableProps:g={}}=t,m=(0,s.useCallback)(e=>{if(e&&"object"==typeof e){if(e.id)return String(e.id);if(e.key)return String(e.key)}return String(e)},[]),y=n||m,[v,h]=(0,s.useState)([]),[f,x]=(0,s.useState)([]),j=(0,s.useCallback)(()=>{h([]),x([])},[]),k=(0,s.useMemo)(()=>({selectedRowKeys:v,selectedRows:f,resetSelections:j}),[v,f,j]),b=(0,s.useMemo)(()=>{if(l)return{selectedRowKeys:v,onChange:(e,t)=>{h(e),x(t)}}},[l,v]),S=(0,s.useCallback)((t,l,s)=>{var a,n;let i=null!==(a=t.current)&&void 0!==a?a:e.pageIndex,r=null!==(n=t.pageSize)&&void 0!==n?n:e.pageSize,o=i!==e.pageIndex||r!==e.pageSize;o?(t.current&&t.current!==e.pageIndex&&e.updatePageIndex(t.current),t.pageSize&&t.pageSize!==e.pageSize&&e.updatePageSize(t.pageSize)):e.updateFilters(l||{});let d=s&&!Array.isArray(s)?s.field:void 0,u=s&&!Array.isArray(s)&&null!==s.order?s.order:void 0;o||e.updateSorting(d,u)},[e]),_=(0,s.useMemo)(()=>{var t,l,s,n,i;return{current:null!=c?c:e.pageIndex,pageSize:null!=p?p:e.pageSize,total:u,showSizeChanger:null===(n=null===(t=e.paginationConfig)||void 0===t?void 0:t.showSizeChanger)||void 0===n||n,pageSizeOptions:null!==(i=null===(s=e.paginationConfig)||void 0===s?void 0:null===(l=s.pageSizeOptions)||void 0===l?void 0:l.map(String))&&void 0!==i?i:a.VZ}},[c,e.pageIndex,p,e.pageSize,u,e.paginationConfig]),C=(0,s.useMemo)(()=>({dataSource:d,loading:r||o,pagination:_,onChange:S,rowKey:y,scroll:{x:"max-content",scrollToFirstRowOnChange:!0},size:"small",bordered:!0,...g}),[d,r,o,_,S,y,g]),w=v.map(String),E=f.length>0,D=(0,s.useCallback)(e=>{let t=null==i?void 0:i.actions.find(t=>t.key===e);return t?{disabled:!E||!!t.disabled&&t.disabled(f),loading:t.loading||!1,onClick:()=>t.onClick(f)}:{disabled:!0,loading:!1}},[i,E,f]);return(0,s.useMemo)(()=>({tableProps:C,selectionProps:b,selectionState:k,selectedRows:f,selectedKeys:w,hasSelectedRows:E,resetSelections:j,getBulkActionProps:D,isLoadingOrFetching:r||o,hasData:d.length>0}),[C,b,k,f,w,E,j,D,r,o,d.length])};var i=l(40431),r=l(17245);let o=()=>({filters:(0,i.WJ)(e=>e).withDefault({})}),d=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{pagination:t={},sorting:l={},search:a={},onStateChange:n}=e,{pageIndex:d,pageSize:u,resetPagination:c,updatePageIndex:p,updatePageSize:g,pageSizeOptions:m,showSizeChanger:y}=(0,r.h0)(t),{sortKey:v,sortOrder:h,updateSorting:f,resetSorting:x}=(0,r.rK)(l),{searchQuery:j,updateSearch:k,resetSearch:b}=(0,r.Rx)(a),S=(0,s.useMemo)(()=>o(),[]),[_,C]=(0,i.XI)(S,{history:"push"}),w=(0,s.useMemo)(()=>{var e;return{pageIndex:d,pageSize:u,sortKey:v,sortOrder:h,columnFilters:null!==(e=_.filters)&&void 0!==e?e:{},searchQuery:j}},[_,d,u,v,h,j]),E=(0,s.useCallback)((e,t)=>{f(e,t),c()},[f,c]),D=(0,s.useCallback)(e=>{let t=Object.fromEntries(Object.entries(e).filter(e=>{let[,t]=e;return null!=t}));C({filters:Object.keys(t).length>0?t:null}),c()},[C,c]),P=(0,s.useCallback)(e=>{k(e),c()},[k,c]),M=(0,s.useCallback)(()=>{C({filters:null}),c(),x(),b()},[C,c,x,b]);return(0,s.useEffect)(()=>{n&&n(w)},[w,n]),{state:w,pageIndex:w.pageIndex,pageSize:w.pageSize,updatePageIndex:p,updatePageSize:g,sortKey:w.sortKey,sortOrder:w.sortOrder,updateSorting:E,columnFilters:w.columnFilters,updateFilters:D,searchQuery:w.searchQuery,updateSearch:P,resetState:M,paginationConfig:{pageSizeOptions:m,showSizeChanger:y}}}},33335:function(e,t,l){"use strict";l.d(t,{E:function(){return s}});let s=e=>e.toLowerCase().replace(/[ .]/g,"_").replace(/[^a-zA-Z0-9_<>-]/g,"")},92818:function(e,t,l){"use strict";l.d(t,{r:function(){return o}});var s=l(24246),a=l(27378),n=l(97181),i=l(22583),r=l(21910);let o={[r.Ej.TAXONOMY_WHITE]:"White",[r.Ej.TAXONOMY_RED]:"Red",[r.Ej.TAXONOMY_ORANGE]:"Orange",[r.Ej.TAXONOMY_YELLOW]:"Yellow",[r.Ej.TAXONOMY_GREEN]:"Green",[r.Ej.TAXONOMY_BLUE]:"Blue",[r.Ej.TAXONOMY_PURPLE]:"Purple",[r.Ej.SANDSTONE]:"Sandstone",[r.Ej.MINOS]:"Minos"},d=e=>{let{color:t,...l}=e;return(0,s.jsx)("span",{"aria-hidden":!0,className:"mr-2 inline-block size-4 rounded-lg align-middle",style:{backgroundColor:"var(--fidesui-bg-".concat(i.j[t],")"),border:t===r.Ej.TAXONOMY_WHITE?"1px solid var(--fidesui-neutral-200)":"none",...l.style}})},u=e=>{let t=null==e?void 0:e.value,l=null==e?void 0:e.label;return(0,s.jsxs)("span",{className:"flex items-center",children:[(0,s.jsx)(d,{color:t}),(0,s.jsx)("span",{children:l})]})};t.Z=e=>{let t=Object.values(r.Ej).map(e=>({value:e,label:o[e]})),[l,i]=(0,a.useState)(void 0);return(0,s.jsx)(n.d,{...e,options:t,optionRender:u,layout:"stacked",value:l,onChange:e=>{i(e)},prefix:(0,s.jsx)(d,{color:null!=l?l:r.Ej.TAXONOMY_WHITE,style:{marginBottom:"2px"}})})}},57072:function(e,t,l){"use strict";l.d(t,{Bd:function(){return s.Bd},L5:function(){return s.L5},MO:function(){return s.MO},qb:function(){return s.qb}});var s=l(5785)},52295:function(e,t,l){"use strict";l.r(t),l.d(t,{default:function(){return J}});var s=l(24246),a=l(96306),n=l(27378),i=l(35287),r=l(58754),o=l(30952),d=l(25980),u=l(34090),c=l(83766),p=l.n(c),g=l(55484),m=l(97181),y=l(40324),v=l(28079),h=l(1315),f=l(92818);let x="all-suggested";var j=e=>{let{options:t,loading:l,name:i,suggestedDataUses:r,...o}=e,[d,c,{setValue:g}]=(0,u.U$)(i),m=!!(c.touched&&c.error),v=(0,n.useMemo)(()=>{let e=[],l=[];return null==t||t.forEach(t=>{r.includes(t.value)?e.push(t):l.push(t)}),{suggested:e,all:l}},[t,r]);return(0,s.jsxs)(a.jqI,{vertical:!0,gap:"small",children:[(0,s.jsx)(a.jqI,{align:"center",children:(0,s.jsx)(y.__,{htmlFor:o.id||i,fontSize:"xs",my:0,mr:1,children:"Data uses"})}),(0,s.jsx)(a.WPr,{options:[{label:"Select all suggested",value:x},{label:(0,s.jsxs)(a.jqI,{gap:"small",align:"center",children:[(0,s.jsx)(a.QMR,{}),(0,s.jsx)("strong",{children:"Suggested data uses"})]}),value:"suggested",options:v.suggested},{label:(0,s.jsxs)(a.jqI,{gap:"small",align:"center",children:[(0,s.jsx)(a.PJP.BBB,{}),(0,s.jsx)("strong",{children:"All data uses"})]}),value:"all",options:v.all}],mode:"multiple",placeholder:"Select data uses",allowClear:!0,loading:l,value:d.value,onChange:e=>{e.includes(x)?g(p()([...r,...e.filter(e=>e!==x)])):g(e)},status:m?"error":void 0,virtual:!1,...o}),(0,s.jsx)(y.Bc,{isInvalid:m,message:c.error,fieldName:d.name})]})},k=l(21910);let b=g.Ry().shape({name:g.Z_().required("Name is required").label("Name"),label_color:g.Z_().required("Color is required").label("Color"),systems:g.IX().of(g.Z_()).label("Systems"),data_uses:g.IX().of(g.Z_()).label("Data uses")});var S=e=>{let{selectedSystemKeys:t=[],onSubmit:l,onCancel:i,isSubmitting:r=!1}=e,{data:o=[],isLoading:d}=(0,v.fd)(),{data:c,isLoading:g}=(0,h.K3)(),x=(0,n.useMemo)(()=>o.map(e=>({label:e.name||e.fides_key,value:e.fides_key})),[o]),S=(0,n.useMemo)(()=>{var e;let l=null!==(e=null==c?void 0:c.filter(e=>t.includes(e.fides_key)))&&void 0!==e?e:[];return p()(null==l?void 0:l.flatMap(e=>e.privacy_declarations.map(e=>e.data_use)))},[c,t]),_=(0,n.useMemo)(()=>{var e;return null!==(e=null==c?void 0:c.map(e=>({label:e.name||e.fides_key,value:e.fides_key})))&&void 0!==e?e:[]},[c]),C={name:"",description:"",label_color:k.Ej.TAXONOMY_WHITE,systems:t,data_uses:[],active:!0};return(0,s.jsx)(u.J9,{initialValues:C,validationSchema:b,onSubmit:l,enableReinitialize:!0,children:e=>{let{isValid:t,dirty:l}=e;return(0,s.jsx)(u.l0,{children:(0,s.jsxs)(a.jqI,{vertical:!0,gap:"middle",children:[(0,s.jsx)(a.AntTypography.Title,{level:2,children:"Create system group"}),(0,s.jsx)(y.j0,{name:"name",label:"Name",isRequired:!0,variant:"stacked",placeholder:"Enter system group name"}),(0,s.jsx)(y.Ks,{name:"description",label:"Description",variant:"stacked",placeholder:"Enter system group description",resize:!1}),(0,s.jsx)(m.d,{name:"systems",label:"Systems",mode:"multiple",placeholder:"Select systems",options:_,layout:"stacked",allowClear:!0,loading:g}),(0,s.jsx)(f.Z,{name:"label_color",label:"Color"}),(0,s.jsx)(j,{name:"data_uses",options:x,loading:d,suggestedDataUses:S}),(0,s.jsxs)(a.jqI,{gap:"small",justify:"space-between",className:"pt-4",children:[(0,s.jsx)(a.wpx,{onClick:i,disabled:r,children:"Cancel"}),(0,s.jsx)(a.wpx,{type:"primary",htmlType:"submit",loading:r,disabled:!t||!l||r,"data-testid":"save-btn",children:"Create group"})]})]})})}})},_=l(812),C=l(65450),w=l(31793),E=l(31883),D=e=>{let{selectedRowKeys:t}=e,[l,i]=a.Pg3.useMessage(),[r,o]=(0,n.useState)(!1),[d]=(0,C.WP)(),{data:u}=(0,w.wv)({page:1,size:100,username:""}),[c]=(0,C.C9)(),p=async e=>{let s=await d({data_steward:e,system_keys:t});(0,E.D4)(s)?l.error((0,_.e$)(s.error,"A problem occurred assigning stewards")):l.success("".concat(t.length," systems assigned to ").concat(e," successfully"))},g=async()=>{let e=await c(t);(0,E.D4)(e)?l.error((0,_.e$)(e.error,"A problem occurred deleting systems")):l.success("".concat(t.length," systems deleted successfully"))};return(0,s.jsxs)(s.Fragment,{children:[i,(0,s.jsx)(a.$zI,{open:r,onCancel:()=>o(!1),onOk:g,okText:"Delete",okType:"danger",centered:!0,children:(0,s.jsxs)(a.AntTypography.Paragraph,{children:["Delete ",t.length," systems? This action cannot be undone."]})}),(0,s.jsx)(a.S0p,{trigger:["click"],menu:{items:[...(null==u?void 0:u.items)&&u.items.length>0?[{key:"assign-data-steward",label:"Assign data steward",children:u.items.map(e=>({key:e.username,label:e.username,onClick:()=>p(e.username)}))},{type:"divider"}]:[],{key:"delete",label:"Delete",onClick:()=>{o(!0)}}]},children:(0,s.jsx)(a.wpx,{disabled:0===t.length,icon:(0,s.jsx)(a.PJP._ME,{}),children:"Actions"})})]})},P=l(86677),M=l(19904),O=l(26070),T=l(3110),I=l(99640),z=l(8125),N=l(16394),A=l(33335),q=l(69353),Z=l(34929),R=e=>{let{privacyDeclarations:t,...l}=e,{getDataUseDisplayName:a}=(0,Z.Z)(),n=t.map(e=>e.data_use).map(e=>({label:a(e),key:e}));return(0,s.jsx)(O.Q,{values:n,...l})},F=l(56141),X=l.n(F),L=l(22583);let W="update-system-groups-msg";var B=e=>{let{selectedGroups:t,allGroups:l,system:i,columnState:r,...o}=e,[d,u]=(0,n.useState)(!1),[c,p]=(0,n.useState)(t.map(e=>e.fides_key)),[g,m]=a.Pg3.useMessage(),[y]=(0,h.qQ)(),v=async()=>{if(u(!1),X()(c,t.map(e=>e.fides_key)))return;g.open({key:W,type:"loading",content:"Updating groups for ".concat(i.name,"...")});let e=await y({...i,system_groups:c});(0,E.D4)(e)?g.open({key:W,type:"error",content:(0,_.e$)(e.error,"Failed to update system groups")}):g.open({key:W,type:"success",content:"Groups updated for ".concat(i.name)}),setTimeout(()=>{g.destroy(W)},3e3)};return(0,s.jsxs)(a.jqI,{gap:"small",...o,children:[m,!d&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.j8w,{onClick:()=>u(!0),addable:!0,"data-testid":"group-add-btn","aria-label":"Add group"}),(0,s.jsx)(O.Q,{values:t.map(e=>e&&{label:e.name,key:e.fides_key,tagProps:{color:e.label_color?"".concat(L.j[e.label_color]):void 0,bordered:!1}}),columnState:r})]}),d&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.WPr,{options:l.map(e=>({label:e.name,value:e.fides_key})),mode:"tags",defaultValue:t.map(e=>e.fides_key),defaultOpen:!0,onChange:e=>{p(e)}}),(0,s.jsx)(a.wpx,{icon:(0,s.jsx)(a.PJP.MCw,{}),onClick:v})]})]})},K=()=>{var e,t;let{data:l}=(0,q.QD)(),i=(0,n.useMemo)(()=>l?l.reduce((e,t)=>({...e,[t.fides_key]:t}),{}):{},[l]),{data:r}=(0,w.wv)({page:1,size:100,username:""}),[o]=(0,C.DW)(),[u]=(0,q.Xz)(),[c]=(0,q.Nr)(),[p,g]=(0,n.useState)(!1),[m,y]=(0,n.useState)(!1),[v,h]=(0,n.useState)(!1),[f,x]=(0,n.useState)(!1),[j,b]=(0,n.useState)(null),S=(0,z.o)({pagination:{defaultPageSize:25,pageSizeOptions:[25,50,100]},search:{defaultSearchQuery:""}}),{columnFilters:D,pageIndex:Z,pageSize:F,searchQuery:X,updateSearch:L}=S,{data:W,isLoading:K,isFetching:Y}=(0,C.xF)({page:Z,size:F,search:X,system_group:null==D?void 0:null===(t=D.system_groups)||void 0===t?void 0:null===(e=t[0])||void 0===e?void 0:e.toString(),...D}),J=(0,n.useMemo)(()=>{var e,t;return{enableSelection:!0,dataSource:null!==(e=null==W?void 0:W.items)&&void 0!==e?e:[],totalRows:null!==(t=null==W?void 0:W.total)&&void 0!==t?t:0,isLoading:K,isFetching:Y,getRowKey:e=>e.fides_key,customTableProps:{locale:{emptyText:(0,s.jsx)("div",{children:"No systems found"})}}}},[W,K,Y]),{tableProps:Q,selectionProps:U}=(0,z.V)(S,J),{selectedRowKeys:$}=null!=U?U:{},[V,G]=a.Pg3.useMessage(),{plus:H}=(0,d.hz)(),ee=(0,P.useRouter)(),et=(0,M.Tg)([k.Sh.SYSTEM_DELETE]),el=async e=>{let t=await o(e.fides_key);(0,E.D4)(t)?V.error((0,_.e$)(t.error,"Failed to delete system")):V.success("Successfully deleted system"),x(!1)},es=async e=>{let t={...e,fides_key:(0,A.E)(e.name),active:!0},l=await c(t);if((0,E.D4)(l))V.error((0,_.e$)(l.error));else{var s,a;let e="System group '".concat(l.data.name,"' created");(null===(s=l.data.systems)||void 0===s?void 0:s.length)===1?e+=" with system '".concat(l.data.systems[0],"'"):(null===(a=l.data.systems)||void 0===a?void 0:a.length)&&(e+=" with ".concat(l.data.systems.length," systems")),V.success(e)}h(!1)},ea=(0,n.useCallback)(async e=>{var t;if(!$)return;let l=i[e],s=await u({...l,systems:[...null!==(t=l.systems)&&void 0!==t?t:[],...$.map(e=>e.toString())]});(0,E.D4)(s)?V.error((0,_.e$)(s.error)):V.success("".concat(null==$?void 0:$.length," systems added to group '").concat(e,"'"))},[i,u,$,V]),en=(0,n.useMemo)(()=>{var e;return null!==(e=null==l?void 0:l.map(e=>({key:e.fides_key,label:e.name,onClick:()=>ea(e.fides_key)})))&&void 0!==e?e:[]},[l,ea]);return{tableProps:Q,selectionProps:U,columns:(0,n.useMemo)(()=>{var e;return[{title:"Name",dataIndex:"name",key:"name",render:(e,t)=>(0,s.jsx)(I.Z,{href:"/systems/configure/".concat(t.fides_key),"data-testid":"system-link-".concat(t.fides_key),children:e||t.fides_key}),ellipsis:!0,fixed:"left"},{dataIndex:"system_groups",key:"system_groups",render:(e,t)=>{var a;return(0,s.jsx)(B,{selectedGroups:null!==(a=null==e?void 0:e.map(e=>null==i?void 0:i[e]).filter(e=>!!e))&&void 0!==a?a:[],allGroups:l,system:{...t,system_groups:null!=e?e:[]},columnState:{isWrapped:!0,isExpanded:p},className:"w-96"})},title:"Groups",hidden:!H,menu:{items:T.DI,onClick:e=>{e.domEvent.stopPropagation(),"expand-all"===e.key?g(!0):"collapse-all"===e.key&&g(!1)}},filters:(0,N.nZ)(null==l?void 0:l.map(e=>e.fides_key),e=>{var t,l;return null!==(l=null===(t=i[e])||void 0===t?void 0:t.name)&&void 0!==l?l:e}),filteredValue:(null==D?void 0:D.system_groups)||null,filterMultiple:!1},{title:"Data uses",menu:{items:T.DI,onClick:e=>{e.domEvent.stopPropagation(),"expand-all"===e.key?y(!0):"collapse-all"===e.key&&y(!1)}},dataIndex:"privacy_declarations",key:"privacy_declarations",render:e=>(0,s.jsx)(R,{privacyDeclarations:e,columnState:{isWrapped:!0,isExpanded:m}})},{title:"Data stewards",dataIndex:"data_stewards",key:"data_steward",render:e=>(0,s.jsx)(O.v,{values:null!=e?e:[],valueSuffix:"users"}),filters:(0,N.nZ)(null==r?void 0:null===(e=r.items)||void 0===e?void 0:e.map(e=>e.username)),filteredValue:(null==D?void 0:D.data_steward)||null,filterMultiple:!1},{title:"Description",dataIndex:"description",key:"description",render:e=>(0,s.jsx)("div",{className:"max-w-96",children:(0,s.jsx)(a.AntTypography.Text,{ellipsis:{tooltip:e},children:e})}),ellipsis:!0},{title:"Actions",key:"actions",render:(e,t)=>(0,s.jsx)(a.kCb,{justify:"end",children:(0,s.jsx)(a.S0p,{trigger:["click"],menu:{items:[{key:"edit",label:"Edit",icon:(0,s.jsx)(a.PJP.I8b,{}),onClick:()=>ee.push("/systems/configure/".concat(t.fides_key))},...et?[{key:"delete",label:"Delete",icon:(0,s.jsx)(a.PJP.ZNm,{}),onClick:()=>{b(t),x(!0)}}]:[]]},children:(0,s.jsx)(a.wpx,{size:"small",icon:(0,s.jsx)(a.PJP.r43,{}),"aria-label":"More actions",type:"text","data-testid":"system-actions-menu"})})}),fixed:"right"}]},[H,l,null==D?void 0:D.system_groups,null==D?void 0:D.data_steward,null==r?void 0:r.items,p,i,m,et,ee]),searchQuery:X,updateSearch:L,columnFilters:D,pageIndex:Z,pageSize:F,createModalIsOpen:v,setCreateModalIsOpen:h,deleteModalIsOpen:f,setDeleteModalIsOpen:x,setSelectedSystemForDelete:b,handleCreateSystemGroup:es,handleDelete:el,handleBulkAddToGroup:ea,messageContext:G,groupMenuItems:en,selectedSystemForDelete:j}},Y=()=>{var e,t;let{plus:l}=(0,d.hz)(),{tableProps:n,selectionProps:i,columns:r,searchQuery:u,updateSearch:c,createModalIsOpen:p,setCreateModalIsOpen:g,deleteModalIsOpen:m,setDeleteModalIsOpen:y,handleCreateSystemGroup:v,handleDelete:h,groupMenuItems:f,messageContext:x,selectedSystemForDelete:j}=K();return(0,s.jsxs)(s.Fragment,{children:[x,(0,s.jsxs)(a.jqI,{justify:"space-between",className:"mb-4",children:[(0,s.jsx)(o.f,{value:u,onChange:c,"data-testid":"system-search"}),(0,s.jsxs)(a.jqI,{gap:"small",children:[l&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.S0p,{trigger:["click"],menu:{items:[{key:"new-group",label:"Create new group +",onClick:()=>g(!0)},...f.length>0?[{type:"divider"},...f]:[]]},children:(0,s.jsx)(a.wpx,{disabled:(null==i?void 0:i.selectedRowKeys.length)===0,icon:(0,s.jsx)(a.PJP._ME,{}),children:"Add to group"})}),(0,s.jsx)(a.$zI,{open:p,destroyOnHidden:!0,onCancel:()=>g(!1),centered:!0,width:768,footer:null,children:(0,s.jsx)(S,{selectedSystemKeys:null==i?void 0:i.selectedRowKeys.map(e=>e.toString()),onSubmit:v,onCancel:()=>g(!1)})})]}),(0,s.jsx)(D,{selectedRowKeys:null!==(e=null==i?void 0:i.selectedRowKeys)&&void 0!==e?e:[]}),(0,s.jsx)(a.$zI,{open:m,onCancel:()=>y(!1),onOk:()=>!!j&&h(j),okText:"Delete",okType:"danger",cancelText:"Cancel",centered:!0,children:(0,s.jsxs)(a.AntTypography.Paragraph,{children:["Are you sure you want to delete"," ",null!==(t=null==j?void 0:j.name)&&void 0!==t?t:null==j?void 0:j.fides_key,"? This action cannot be undone."]})})]})]}),(0,s.jsx)(a.V5H,{...n,columns:r,rowSelection:i})]})},J=()=>(0,s.jsx)(i.Z,{title:"System inventory",children:(0,s.jsxs)(a.xuv,{"data-testid":"system-management",children:[(0,s.jsx)(r.Z,{heading:"System inventory",breadcrumbItems:[{title:"All systems"}]}),(0,s.jsx)(Y,{})]})})},31883:function(e,t,l){"use strict";l.d(t,{Bw:function(){return s.Bw},D4:function(){return s.D4}});var s=l(19043)}},function(e){e.O(0,[431,8765,9278,5163,1896,4718,2888,9774,179],function(){return e(e.s=90988)}),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4202],{58095:function(e,t,n){var r=n(8817);e.exports=function(e,t){return!!(null==e?0:e.length)&&r(e,t,0)>-1}},21796:function(e){e.exports=function(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}},8817:function(e,t,n){var r=n(95372),i=n(1129),a=n(58263);e.exports=function(e,t,n){return t==t?a(e,t,n):r(e,i,n)}},1129:function(e){e.exports=function(e){return e!=e}},75733:function(e){e.exports=function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r<i;)a[r]=e[r+t];return a}},92198:function(e,t,n){var r=n(52485),i=n(58095),a=n(21796),l=n(65581),s=n(47111),o=n(43735);e.exports=function(e,t,n){var u=-1,d=i,c=e.length,f=!0,h=[],m=h;if(n)f=!1,d=a;else if(c>=200){var p=t?null:s(e);if(p)return o(p);f=!1,d=l,m=new r}else m=t?[]:h;e:for(;++u<c;){var g=e[u],x=t?t(g):g;if(g=n||0!==g?g:0,f&&x==x){for(var y=m.length;y--;)if(m[y]===x)continue e;t&&m.push(x),h.push(g)}else d(m,x,n)||(m!==h&&m.push(x),h.push(g))}return h}},70830:function(e,t,n){var r=n(76747),i=n(31159),a=n(64373),l=n(37948);e.exports=function(e,t){return t=r(t,e),null==(e=a(e,t))||delete e[l(i(t))]}},47111:function(e,t,n){var r=n(46151),i=n(50344),a=n(43735),l=r&&1/a(new r([,-0]))[1]==1/0?function(e){return new r(e)}:i;e.exports=l},64373:function(e,t,n){var r=n(79867),i=n(75733);e.exports=function(e,t){return t.length<2?e:r(e,i(t,0,-1))}},58263:function(e){e.exports=function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return -1}},50344:function(e){e.exports=function(){}},83766:function(e,t,n){var r=n(92198);e.exports=function(e){return e&&e.length?r(e):[]}},43551:function(e,t,n){var r=n(70830);e.exports=function(e,t){return null==e||r(e,t)}},71180:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/taxonomy",function(){return n(33031)}])},79806:function(e,t,n){"use strict";n.d(t,{Gn:function(){return s},zR:function(){return l}});var r=n(24246),i=n(96306),a=n(56358);let l=e=>{let{title:t}=e;return(0,r.jsx)(i.OXI,{py:0,display:"flex",alignItems:"flex-start",children:(0,r.jsx)(i.xvT,{mr:"2",color:"gray.700",fontSize:"lg",lineHeight:1.8,children:t})})},s=e=>{let{onDelete:t,onEditYaml:n,formId:l,isSaving:s}=e;return(0,r.jsxs)(i.zeN,{justifyContent:"space-between",children:[t?(0,r.jsx)(i.wpx,{"aria-label":"delete",icon:(0,r.jsx)(a.q,{fontSize:"small"}),onClick:t,"data-testid":"delete-btn"}):null,(0,r.jsxs)("div",{className:"flex gap-2",children:[n&&(0,r.jsx)(i.wpx,{onClick:n,"data-testid":"edit-yaml-btn",children:"Edit YAML"}),(0,r.jsx)(i.wpx,{htmlType:"submit",type:"primary","data-testid":"save-btn",form:l,loading:s,children:"Save"})]})]})};t.ZP=e=>{let{header:t,description:n,isOpen:a,onClose:l,children:s,footer:o}=e;return(0,r.jsxs)(i.dys,{placement:"right",isOpen:a,onClose:l,size:"md",children:[(0,r.jsx)(i.P1B,{}),(0,r.jsxs)(i.scA,{"data-testid":"edit-drawer-content",py:2,children:[(0,r.jsxs)(i.xuv,{display:"flex",justifyContent:"space-between",alignItems:"top",mr:2,py:2,gap:2,children:[(0,r.jsx)(i.xuv,{flex:1,minH:8,children:t}),(0,r.jsx)(i.xuv,{display:"flex",justifyContent:"flex-end",mr:2,children:(0,r.jsx)(i.wpx,{"aria-label":"Close editor",onClick:l,"data-testid":"close-drawer-btn",icon:(0,r.jsx)(i.Two,{fontSize:"smaller"})})})]}),(0,r.jsxs)(i.Ng0,{pt:1,children:[n?(0,r.jsx)(i.xvT,{fontSize:"sm",mb:4,color:"gray.600",children:n}):null,s]}),o]})]})}},18225:function(e,t,n){"use strict";var r=n(24246),i=n(96306);t.Z=e=>{let{alignment:t="center",...n}=e;return(0,r.jsx)(i.kCb,{boxSize:"full",align:"center",justify:t,children:(0,r.jsx)(i.$jN,{color:"primary",...n})})}},56358:function(e,t,n){"use strict";n.d(t,{q:function(){return i}});var r=n(24246);let i=(0,n(96306).IUT)({displayName:"TrashCanOutlineIcon",viewBox:"0 0 11 12",path:(0,r.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"})})},77213:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(24246),i=n(96306),a=n(88038),l=n.n(a),s=n(86677);n(27378);var o=n(25980),u=n(90867),d=n(42478),c=n(77830),f=()=>{let e=(0,s.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:()=>{e.push(c.AD)},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."," "]})]})})},h=e=>{let{children:t,title:n,padded:a=!0,mainProps:c}=e,h=(0,o.hz)(),m=(0,s.useRouter)(),p="/privacy-requests"===m.pathname||"/datastore-connection"===m.pathname,g=!(h.flags.messagingConfiguration&&p),{data:x}=(0,d.JE)(void 0,{skip:g}),{data:y}=(0,u.PW)(void 0,{skip:g}),_=h.flags.messagingConfiguration&&(!x||!y)&&p;return(0,r.jsxs)(i.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,r.jsxs)(l(),{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:a?6:0,px:a?10:0,h:a?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...c,children:[_?(0,r.jsx)(f,{}):null,t]})]})}},94799:function(e,t,n){"use strict";n.d(t,{k:function(){return a}});var r=n(76649);let i=e=>(0,r.Ln)({id:"string"},e),a=e=>(null!=e?e:[]).filter(i)},30320:function(e,t,n){"use strict";n.d(t,{m:function(){return o}});var r=n(27378),i=n(25980),a=n(17245),l=n(32885),s=n(94799);let o=e=>{let{resourceFidesKey:t,resourceType:n}=e,{errorAlert:o}=(0,a.VY)(),{plus:u}=(0,i.hz)(),d=(0,r.useMemo)(()=>null!=t?t:"",[]),c=(0,l.YU)(!0,{skip:!u}),f=(0,l.VN)(n,{skip:!u}),{data:h,isLoading:m,error:p,isError:g}=(0,l.PV)(null!=t?t:"",{skip:""!==d&&!(u&&d)}),[x]=(0,l._D)(),y=c.isLoading||f.isLoading||m,_=(0,r.useMemo)(()=>new Map((0,s.k)(c.data).map(e=>{var t;return[e.id,{...e,options:(null!==(t=e.allowed_values)&&void 0!==t?t:[]).map(e=>({value:e,label:e}))}]})),[c.data]),v=(0,r.useMemo)(()=>{var e;return null===(e=f.data)||void 0===e?void 0:e.filter(e=>e.active)},[f.data]),T=(0,r.useMemo)(()=>new Map((0,s.k)(v).map(e=>[e.id,e])),[v]),E=(0,r.useMemo)(()=>g&&(null==p?void 0:p.status)===404?new Map:new Map((0,s.k)(h).map(e=>[e.custom_field_definition_id,e])),[h,g,p]),A=(0,r.useMemo)(()=>{let e=[...T.keys()];return e.sort(),e},[T]),C=(0,r.useMemo)(()=>{let e={};return v&&E&&v.forEach(t=>{let n=E.get(t.id||"");n&&(t.allow_list_id&&"string[]"===t.field_type?e[n.custom_field_definition_id]=n.value:e[n.custom_field_definition_id]=n.value.toString())}),e},[v,E]),j=(0,r.useCallback)(async e=>{if(!u)return;let r="fides_key"in e&&""!==e.fides_key?e.fides_key:t;if(!r)return;let{customFieldValues:i}=e;if(!i||0===Object.keys(i).length)return;let a=[],l=[];A.forEach(e=>{let t=E.get(e),n=i[e];void 0===n||""===n||Array.isArray(n)&&0===n.length?(null==t?void 0:t.id)&&l.push(t.id):a.push({custom_field_definition_id:e,resource_id:r,id:null==t?void 0:t.id,value:n})});try{await x({resource_type:n,resource_id:r,upsert:a,delete:l})}catch(e){o("One or more custom fields have failed to save, please try again."),console.error(e)}},[u,E,o,t,A,x,n]);return{customFieldValues:C,definitionIdToCustomField:E,idToAllowListWithOptions:_,idToCustomFieldDefinition:T,isEnabled:u,isLoading:y,sortedCustomFieldDefinitionIds:A,upsertCustomFields:j}}},95346:function(e,t,n){"use strict";n.d(t,{uc:function(){return x},Hn:function(){return o},Uv:function(){return l},C7:function(){return u},mZ:function(){return g.m}});var r,i,a,l,s=n(21910);(r=a||(a={}))[r.CREATE_CUSTOM_FIELDS=0]="CREATE_CUSTOM_FIELDS",r[r.CREATE_CUSTOM_LISTS=1]="CREATE_CUSTOM_LISTS",r[r.CHOOSE_FROM_LIBRARY=2]="CHOOSE_FROM_LIBRARY",s.AL.STRING,s.AL.STRING,s.AL.STRING_,(i=l||(l={})).SINGLE_SELECT="singleSelect",i.MULTIPLE_SELECT="multipleSelect",i.LOCATION_SELECT="locationSelect",i.OPEN_TEXT="openText";let o=[{label:"Single select",value:"singleSelect"},{label:"Multiple select",value:"multipleSelect"},{label:"Location select",value:"locationSelect"},{label:"Open Text",value:"openText"}],u=[{label:"taxonomy:".concat(s.P6.DATA_CATEGORY),value:s.P6.DATA_CATEGORY},{label:"taxonomy:".concat(s.P6.DATA_SUBJECT),value:s.P6.DATA_SUBJECT},{label:"taxonomy:".concat(s.P6.DATA_USE),value:s.P6.DATA_USE},{label:"".concat(s.P6.SYSTEM,":information"),value:s.P6.SYSTEM},{label:"system:data use",value:s.P6.PRIVACY_DECLARATION}];var d=n(24246),c=n(96306),f=n(34090),h=n(30234),m=n(97181),p=n(40324),g=n(30320);let x=e=>{let{resourceFidesKey:t,resourceType:n}=e,{idToAllowListWithOptions:r,idToCustomFieldDefinition:i,isEnabled:a,isLoading:l,sortedCustomFieldDefinitionIds:o}=(0,g.m)({resourceFidesKey:t,resourceType:n});return a&&0!==o.length?(0,d.jsx)(h.Z,{heading:"Custom fields",children:(0,d.jsx)(c.kCb,{flexDir:"column","data-testid":"custom-fields-list",children:(0,d.jsx)(c.kCb,{flexDir:"column",gap:"24px",children:l?(0,d.jsx)(c.M5Y,{children:(0,d.jsx)(c.$jN,{})}):o.length>0&&(0,d.jsx)(c.kCb,{flexDirection:"column",gap:"12px",paddingBottom:"24px",children:o.map(e=>{let t=i.get(e);if(!t)return null;let n="customFieldValues.".concat(t.id);if(!t.allow_list_id&&t.field_type===s.AL.STRING)return(0,d.jsx)(f.gN,{name:n,children:e=>{let{field:n}=e;return(0,d.jsx)(p.j0,{...n,label:t.name,tooltip:t.description,variant:"stacked"})}},e);let a=r.get(t.allow_list_id);if(!a)return null;let{options:l}=a;return(0,d.jsx)(m.d,{name:n,allowClear:!0,mode:t.field_type!==s.AL.STRING?"multiple":void 0,label:t.name,options:l,tooltip:t.description,layout:"stacked",className:"w-full"},e)})})})})}):null};n(94799)},42478:function(e,t,n){"use strict";n.d(t,{FU:function(){return u},JE:function(){return i},Ki:function(){return c},SU:function(){return f},W:function(){return h},h9:function(){return a},jc:function(){return r},qt:function(){return o},sn:function(){return d}});let{useGetEmailInviteStatusQuery:r,useGetActiveMessagingProviderQuery:i,useCreateMessagingConfigurationMutation:a,useCreateMessagingConfigurationSecretsMutation:l,useGetMessagingConfigurationDetailsQuery:s,useGetMessagingConfigurationsQuery:o,useGetMessagingConfigurationByKeyQuery:u,useUpdateMessagingConfigurationByKeyMutation:d,useUpdateMessagingConfigurationSecretsByKeyMutation:c,useCreateTestConnectionMessageMutation:f,useDeleteMessagingConfigurationByKeyMutation:h}=n(78780).u.injectEndpoints({endpoints:e=>({getEmailInviteStatus:e.query({query:()=>({url:"/messaging/email-invite/status"}),providesTags:()=>["Email Invite Status"]}),createMessagingConfiguration:e.mutation({query:e=>({url:"messaging/config",method:"POST",body:e}),invalidatesTags:["Messaging Config","Configuration Settings"]}),getActiveMessagingProvider:e.query({queryFn:async(e,t,n,r)=>{let i=await r({url:"messaging/default/active"});return i.error&&404===i.error.status?{data:null}:i},providesTags:["Messaging Config"]}),createMessagingConfigurationSecrets:e.mutation({query:e=>({url:"messaging/default/".concat(e.service_type,"/secret"),method:"PUT",body:e.details}),invalidatesTags:["Messaging Config","Configuration Settings"]}),getMessagingConfigurationDetails:e.query({query:e=>({url:"messaging/default/".concat(e.type)}),providesTags:["Messaging Config"]}),getMessagingConfigurations:e.query({query:()=>({url:"messaging/config"}),providesTags:["Messaging Config"]}),getMessagingConfigurationByKey:e.query({query:e=>({url:"messaging/config/".concat(e.key)}),providesTags:["Messaging Config"]}),createTestConnectionMessage:e.mutation({query:e=>({url:"messaging/test/".concat(e.service_type),method:"POST",body:e.details}),invalidatesTags:["Messaging Config"]}),updateMessagingConfigurationByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key),method:"PATCH",body:e.config}),invalidatesTags:["Messaging Config","Configuration Settings"]}),updateMessagingConfigurationSecretsByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key,"/secret"),method:"PUT",body:e.secrets}),invalidatesTags:["Messaging Config","Configuration Settings"]}),deleteMessagingConfigurationByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key),method:"DELETE"}),invalidatesTags:["Messaging Config","Configuration Settings"]})})})},30234:function(e,t,n){"use strict";var r=n(24246),i=n(96306);t.Z=e=>{let{heading:t,HeadingButton:n,children:a}=e;return(0,r.jsx)(i.Kqy,{spacing:4,children:(0,r.jsxs)(i.xuv,{maxWidth:"720px",border:"1px",borderColor:"gray.200",borderRadius:6,overflow:"visible",mt:6,children:[(0,r.jsxs)(i.xuv,{backgroundColor:"gray.50",px:6,py:4,display:"flex",flexDirection:"row",alignItems:"center",borderBottom:"1px",borderColor:"gray.200",borderTopRadius:6,children:[(0,r.jsx)(i.X6q,{as:"h3",size:"xs",children:t}),n?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.LZC,{}),(0,r.jsx)(n,{})]}):null]}),(0,r.jsx)(i.Kqy,{spacing:4,px:6,py:6,children:a})]})})}},92818:function(e,t,n){"use strict";n.d(t,{r:function(){return o}});var r=n(24246),i=n(27378),a=n(97181),l=n(22583),s=n(21910);let o={[s.Ej.TAXONOMY_WHITE]:"White",[s.Ej.TAXONOMY_RED]:"Red",[s.Ej.TAXONOMY_ORANGE]:"Orange",[s.Ej.TAXONOMY_YELLOW]:"Yellow",[s.Ej.TAXONOMY_GREEN]:"Green",[s.Ej.TAXONOMY_BLUE]:"Blue",[s.Ej.TAXONOMY_PURPLE]:"Purple",[s.Ej.SANDSTONE]:"Sandstone",[s.Ej.MINOS]:"Minos"},u=e=>{let{color:t,...n}=e;return(0,r.jsx)("span",{"aria-hidden":!0,className:"mr-2 inline-block size-4 rounded-lg align-middle",style:{backgroundColor:"var(--fidesui-bg-".concat(l.j[t],")"),border:t===s.Ej.TAXONOMY_WHITE?"1px solid var(--fidesui-neutral-200)":"none",...n.style}})},d=e=>{let t=null==e?void 0:e.value,n=null==e?void 0:e.label;return(0,r.jsxs)("span",{className:"flex items-center",children:[(0,r.jsx)(u,{color:t}),(0,r.jsx)("span",{children:n})]})};t.Z=e=>{let t=Object.values(s.Ej).map(e=>({value:e,label:o[e]})),[n,l]=(0,i.useState)(void 0);return(0,r.jsx)(a.d,{...e,options:t,optionRender:d,layout:"stacked",value:n,onChange:e=>{l(e)},prefix:(0,r.jsx)(u,{color:null!=n?n:s.Ej.TAXONOMY_WHITE,style:{marginBottom:"2px"}})})}},59001:function(e,t,n){"use strict";n.d(t,{Ch:function(){return o},Lo:function(){return l},_g:function(){return u},ac:function(){return a},aq:function(){return d}});var r,i,a,l,s=n(21910);let o="root";(r=a||(a={})).DATA_CATEGORY="data_category",r.DATA_USE="data_use",r.DATA_SUBJECT="data_subject",r.SYSTEM_GROUP="system_group",(i=l||(l={})).DATA_CATEGORIES="Data categories",i.DATA_USES="Data uses",i.DATA_SUBJECTS="Data subjects",i.SYSTEM_GROUPS="System groups";let u=e=>{switch(e){case"data_category":return"Data categories";case"data_use":return"Data uses";case"data_subject":return"Data subjects";case"system_group":return"System groups";default:return e}},d=e=>{switch(e){case"data_category":return{UPDATE:s.Sh.DATA_CATEGORY_UPDATE,CREATE:s.Sh.DATA_CATEGORY_CREATE,DELETE:s.Sh.DATA_CATEGORY_DELETE,READ:s.Sh.DATA_CATEGORY_READ};case"data_use":return{UPDATE:s.Sh.DATA_USE_UPDATE,CREATE:s.Sh.DATA_USE_CREATE,DELETE:s.Sh.DATA_USE_DELETE,READ:s.Sh.DATA_USE_READ};case"data_subject":return{UPDATE:s.Sh.DATA_SUBJECT_UPDATE,CREATE:s.Sh.DATA_SUBJECT_CREATE,DELETE:s.Sh.DATA_SUBJECT_DELETE,READ:s.Sh.DATA_SUBJECT_READ};case"system_group":return{UPDATE:s.Sh.SYSTEM_GROUP_UPDATE,CREATE:s.Sh.SYSTEM_GROUP_CREATE,DELETE:s.Sh.SYSTEM_GROUP_DELETE,READ:s.Sh.SYSTEM_GROUP_READ};default:return{UPDATE:s.Sh.TAXONOMY_UPDATE,CREATE:s.Sh.TAXONOMY_CREATE,DELETE:s.Sh.TAXONOMY_DELETE,READ:s.Sh.TAXONOMY_READ}}}},90673:function(e,t,n){"use strict";n.d(t,{Cd:function(){return a},Xl:function(){return l}});var r=n(21910),i=n(59001);let a=(e,t)=>{let n;if(null==t&&e.every(e=>void 0===e.parent_key))n=e;else{let r=null!=t?t:null;n=e.filter(e=>e.parent_key===r)}return n.map(t=>{var n,r;let i=t.fides_key;return{value:t.fides_key,label:""===t.name||null==t.name?t.fides_key:t.name,description:t.description,children:a(e,i),is_default:null!==(n=t.is_default)&&void 0!==n&&n,active:null!==(r=t.active)&&void 0!==r&&r}})},l=e=>{switch(e){case i.ac.DATA_CATEGORY:return r.P6.DATA_CATEGORY;case i.ac.DATA_SUBJECT:return r.P6.DATA_SUBJECT;case i.ac.DATA_USE:return r.P6.DATA_USE;default:return}}},33031:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return ew}});var r,i,a=n(24246),l=n(96306),s=n(69238),o=n.n(s),u=n(63662),d=n(27378),c=n(25980),f=n(812),h=n(77213),m=n(58754),p=n(19904),g=n(46628),x=n(95346),y=n(79806),_=n(56358),v=n(59001),T=n(90673),E=n(30002),A=n(28079),C=n(69353),j=n(5785);let{useGetCustomTaxonomiesQuery:S,useLazyGetTaxonomyQuery:b,useCreateTaxonomyMutation:O,useUpdateTaxonomyMutation:D,useDeleteTaxonomyMutation:P}=n(78780).u.injectEndpoints({endpoints:e=>({getCustomTaxonomies:e.query({query:()=>({url:"taxonomies"})}),getTaxonomy:e.query({query:e=>({url:"taxonomies/".concat(e)}),providesTags:(e,t,n)=>[{type:"Taxonomy",id:n}],transformResponse:e=>{let t=[],n=[...e],r=n.filter(e=>null===e.parent_key);r.sort((e,t)=>e.fides_key.localeCompare(t.fides_key)),t.push(...r);let i=n.filter(e=>null!==e.parent_key);for(;i.length>0;){let e=i.filter(e=>t.some(t=>t.fides_key===e.parent_key));if(0===e.length){t.push(...i.sort((e,t)=>e.fides_key.localeCompare(t.fides_key)));break}e.sort((e,t)=>e.fides_key.localeCompare(t.fides_key)),t.push(...e),i=i.filter(t=>!e.includes(t))}return t}}),createTaxonomy:e.mutation({query:e=>{let{taxonomyType:t,...n}=e;return{url:"taxonomies/".concat(t),method:"POST",body:n}},invalidatesTags:(e,t,n)=>{let{taxonomyType:r}=n;return[{type:"Taxonomy",id:r}]}}),updateTaxonomy:e.mutation({query:e=>{let{taxonomyType:t,...n}=e;return{url:"taxonomies/".concat(t),method:"PUT",body:n}},invalidatesTags:(e,t,n)=>{let{taxonomyType:r}=n;return[{type:"Taxonomy",id:r}]}}),deleteTaxonomy:e.mutation({query:e=>{let{taxonomyType:t,key:n}=e;return{url:"taxonomies/".concat(t,"/").concat(n),method:"DELETE"}},invalidatesTags:(e,t,n)=>{let{taxonomyType:r}=n;return[{type:"Taxonomy",id:r}]}})})});var k=e=>{let{taxonomyType:t}=e,[n,r]=(0,j.Vj)(),[i,a]=(0,E.nC)(),[l,s]=(0,A.dk)(),[o,u]=(0,C.cw)(),[c]=(0,j.Ti)(),[f]=(0,A.Ql)(),[h]=(0,E.wG)(),[m]=(0,C.Nr)(),[p]=(0,j.jU)(),[g]=(0,A.LG)(),[x]=(0,E.h8)(),[y]=(0,C.Xz)(),[_]=(0,j.K9)(),[T]=(0,A.gu)(),[S]=(0,E.Kv)(),[k]=(0,C.Uv)(),[I,N]=b(),[R]=O(),[M]=D(),[w]=P(),L=(0,d.useCallback)(()=>t?I(t):Promise.resolve(void 0),[t,I]),U=(0,d.useCallback)(e=>t?R({taxonomyType:t,...e}):Promise.resolve(void 0),[t,R]),V=(0,d.useCallback)(e=>t?M({taxonomyType:t,...e}):Promise.resolve(void 0),[t,M]),F=(0,d.useCallback)(e=>t?w({taxonomyType:t,key:e}):Promise.resolve(void 0),[t,w]);return t===v.ac.DATA_CATEGORY?{getAllTrigger:n,taxonomyItems:r.data||[],updateTrigger:p,deleteTrigger:_,createTrigger:c,isLoading:r.isLoading,isError:r.isError}:t===v.ac.DATA_USE?{getAllTrigger:l,taxonomyItems:s.data||[],updateTrigger:g,deleteTrigger:T,createTrigger:f,isLoading:s.isLoading,isError:s.isError}:t===v.ac.DATA_SUBJECT?{getAllTrigger:i,taxonomyItems:a.data||[],updateTrigger:x,deleteTrigger:S,createTrigger:h,isLoading:a.isLoading,isError:a.isError}:t===v.ac.SYSTEM_GROUP?{getAllTrigger:o,taxonomyItems:u.data||[],updateTrigger:y,deleteTrigger:k,createTrigger:m,isLoading:u.isLoading,isError:u.isError}:{getAllTrigger:L,taxonomyItems:(null==N?void 0:N.data)||[],updateTrigger:V,deleteTrigger:F,createTrigger:U,isLoading:(null==N?void 0:N.isLoading)||!1,isError:(null==N?void 0:N.isError)||!1}},I=n(31883),N=n(90104),R=n.n(N),M=n(18225),w=n(21910),L=e=>{let{customFields:t,formId:n,form:r}=e,{idToAllowListWithOptions:i,idToCustomFieldDefinition:s,isEnabled:o,isLoading:u,sortedCustomFieldDefinitionIds:d}=t;return o&&0!==d.length?(0,a.jsxs)(l.PPS,{form:r,name:n,initialValues:t.customFieldValues,layout:"vertical","data-testid":"custom-fields-form",children:[(0,a.jsx)("div",{className:"mb-2",children:(0,a.jsx)(l.AntTypography.Title,{level:3,children:"Custom fields"})}),u?(0,a.jsx)(M.Z,{}):(0,a.jsx)("div",{children:!R()(d)&&(0,a.jsx)("div",{children:d.map(e=>{let t=s.get(e);if(!t)return null;let{id:n,name:r,description:o,allow_list_id:u,field_type:d}=t;if(!u&&d===w.AL.STRING)return(0,a.jsx)(l.PPS.Item,{name:n,label:r,tooltip:o,children:(0,a.jsx)(l.uFc,{})},e);let c=i.get(t.allow_list_id);if(!c)return null;let{options:f}=c;return(0,a.jsx)(l.PPS.Item,{name:n,label:r,tooltip:o,children:(0,a.jsx)(l.WPr,{mode:"string"!==d?"multiple":void 0,allowClear:!0,options:f})},e)})})})]}):null},U=n(43551),V=n.n(U),F=()=>{let e=l.PPS.useFormInstance(),t=l.PPS.useWatch(["rights","values"],e);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(l.PPS.Item,{label:"Automated Decisions or Profiling",name:"automated_decisions_or_profiling",layout:"horizontal",valuePropName:"checked",children:(0,a.jsx)(l.E_O,{"data-testid":"edit-taxonomy-form_automated-decisions"})}),(0,a.jsx)(l.PPS.Item,{name:["rights","values"],label:"Rights",children:(0,a.jsx)(l.WPr,{mode:"multiple",options:(0,f.MM)(w.ts),"data-testid":"edit-taxonomy-form_rights"})}),t&&!R()(t)&&(0,a.jsx)(l.PPS.Item,{name:["rights","strategy"],label:"Strategy",required:!0,rules:[{required:!0,message:"Please select a strategy"}],children:(0,a.jsx)(l.WPr,{options:(0,f.MM)(w.jX),"data-testid":"edit-taxonomy-form_strategy"})})]})},H=n(83766),Y=n.n(H),B=n(1315),z=n(22583),q=n(92818);let G=e=>{let{color:t,...n}=e;return(0,a.jsx)("span",{"aria-hidden":!0,className:"mr-2 inline-block size-4 rounded-lg align-middle",style:{backgroundColor:"var(--fidesui-bg-".concat(z.j[t],")"),border:t===w.Ej.TAXONOMY_WHITE?"1px solid var(--fidesui-neutral-200)":"none",...n.style}})};var W=e=>{let t=Object.values(w.Ej).map(e=>({value:e,label:(0,a.jsxs)("span",{className:"flex items-center",children:[(0,a.jsx)(G,{color:e}),(0,a.jsx)("span",{children:q.r[e]})]})}));return(0,a.jsx)(l.WPr,{...e,options:t,placeholder:"Select color"})};let X="all-suggested";var Z=e=>{let{initialValues:t,onSubmit:n,form:r,formId:i,isDisabled:s}=e,{data:o=[],isLoading:u}=(0,A.fd)(),{data:c,isLoading:f}=(0,B.K3)(),h=(0,d.useMemo)(()=>o.map(e=>({label:e.name||e.fides_key,value:e.fides_key})),[o]),m=l.PPS.useWatch("systems",r),p=(0,d.useMemo)(()=>{var e;let t=m||[];if(!c||0===t.length)return[];let n=null!==(e=null==c?void 0:c.filter(e=>t.includes(e.fides_key)))&&void 0!==e?e:[];return Y()(null==n?void 0:n.flatMap(e=>e.privacy_declarations.map(e=>e.data_use)))},[c,m]),g=(0,d.useMemo)(()=>{var e;return null!==(e=null==c?void 0:c.map(e=>({label:e.name||e.fides_key,value:e.fides_key})))&&void 0!==e?e:[]},[c]),x=(0,d.useMemo)(()=>{let e=[],t=[];return h.forEach(n=>{p.includes(n.value)?e.push(n):t.push(n)}),[{label:"Select all suggested",value:X},{label:(0,a.jsxs)("span",{className:"flex items-center gap-2",children:[(0,a.jsx)(l.QMR,{}),(0,a.jsx)("strong",{children:"Suggested data uses"})]}),options:e},{label:(0,a.jsxs)("span",{className:"flex items-center gap-2",children:[(0,a.jsx)(l.PJP.BBB,{}),(0,a.jsx)("strong",{children:"All data uses"})]}),options:t}]},[h,p]);return(0,a.jsxs)(l.PPS,{name:i,initialValues:t,onFinish:e=>{var r,i;let a={...t,...e};(!(null==a?void 0:null===(r=a.rights)||void 0===r?void 0:r.values)||R()(null==a?void 0:null===(i=a.rights)||void 0===i?void 0:i.values))&&V()(a,"rights"),n(a)},layout:"vertical",form:r,children:[(0,a.jsx)(l.PPS.Item,{label:"Name",name:"name",children:(0,a.jsx)(l.uFc,{"data-testid":"edit-taxonomy-form_name",disabled:s})}),(0,a.jsx)(l.PPS.Item,{label:"Description",name:"description",children:(0,a.jsx)(l.uFc.TextArea,{rows:4,"data-testid":"edit-taxonomy-form_description",disabled:s})}),(0,a.jsx)(l.PPS.Item,{label:"Systems",name:"systems",children:(0,a.jsx)(l.WPr,{mode:"multiple",placeholder:"Select systems",options:g,allowClear:!0,loading:f,disabled:s,"data-testid":"edit-taxonomy-form_systems"})}),(0,a.jsx)(l.PPS.Item,{label:"Color",name:"label_color",children:(0,a.jsx)(W,{disabled:s,"data-testid":"edit-taxonomy-form_color"})}),(0,a.jsx)(l.PPS.Item,{label:"Data uses",name:"data_uses",children:(0,a.jsx)(l.WPr,{mode:"multiple",placeholder:"Select data uses",options:x,allowClear:!0,loading:u,disabled:s,onChange:e=>{if(e.includes(X)){let t=Y()([...p,...e.filter(e=>e!==X)]);r.setFieldsValue({data_uses:t})}else r.setFieldsValue({data_uses:e})},"data-testid":"edit-taxonomy-form_data_uses"})})]})},K=e=>{let{initialValues:t,onSubmit:n,form:r,formId:i,taxonomyType:s,isDisabled:o}=e,u=s===v.ac.DATA_SUBJECT;return s===v.ac.SYSTEM_GROUP?(0,a.jsx)(Z,{initialValues:t,onSubmit:n,form:r,formId:i,isDisabled:o}):(0,a.jsxs)(l.PPS,{name:i,initialValues:t,onFinish:e=>{var r,i;let a={...t,...e};(!(null==a?void 0:null===(r=a.rights)||void 0===r?void 0:r.values)||R()(null==a?void 0:null===(i=a.rights)||void 0===i?void 0:i.values))&&V()(a,"rights"),n(a)},layout:"vertical",form:r,children:[(0,a.jsx)(l.PPS.Item,{label:"Name",name:"name",children:(0,a.jsx)(l.uFc,{"data-testid":"edit-taxonomy-form_name",disabled:o})}),(0,a.jsx)(l.PPS.Item,{label:"Description",name:"description",children:(0,a.jsx)(l.uFc.TextArea,{rows:4,"data-testid":"edit-taxonomy-form_description",disabled:o})}),u&&(0,a.jsx)(F,{})]})},J=e=>{let{taxonomyItem:t,taxonomyType:n,onClose:r}=e,i="edit-taxonomy-form",[s]=l.PPS.useForm(),[o]=l.PPS.useForm(),u=(0,l.pmc)(),{isOpen:d,onOpen:c,onClose:h}=(0,l.qY0)(),{updateTrigger:m}=k({taxonomyType:n}),E=(0,x.mZ)({resourceFidesKey:null==t?void 0:t.fides_key,resourceType:(0,T.Xl)(n)}),A=(0,p.Tg)([(0,v.aq)(n).UPDATE]),C=(0,p.Tg)([(0,v.aq)(n).DELETE]),j=async e=>{let n=await m(e);if((0,I.D4)(n)){u((0,g.Vo)((0,f.e$)(n.error)));return}if(E.isEnabled){let e=o.getFieldsValue();await E.upsertCustomFields({fides_key:null==t?void 0:t.fides_key,customFieldValues:e})}u((0,g.t5)("Taxonomy successfully updated")),r()},S=async()=>{await m({...t,active:!1}),h(),r()},b=async()=>{await m({...t,active:!0}),h(),r()};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(y.ZP,{isOpen:!!t,onClose:r,header:(0,a.jsx)(y.zR,{title:(null==t?void 0:t.name)||""}),footer:(0,a.jsxs)(l.zeN,{justifyContent:"space-between",children:[(null==t?void 0:t.active)&&C&&(0,a.jsx)(l.esZ,{title:"Delete label",children:(0,a.jsx)(l.wpx,{"aria-label":"delete",icon:(0,a.jsx)(_.q,{fontSize:"small"}),onClick:c,"data-testid":"delete-btn"})}),!(null==t?void 0:t.active)&&A&&(0,a.jsx)(l.esZ,{title:"Enable label",children:(0,a.jsx)(l.wpx,{"aria-label":"enable",onClick:b,"data-testid":"enable-btn",icon:(0,a.jsx)(l.tEF,{fontSize:"small"})})}),(0,a.jsx)("div",{className:"flex gap-2",children:A&&(0,a.jsx)(l.wpx,{htmlType:"submit",type:"primary","data-testid":"save-btn",form:i,children:"Save"})})]}),children:[(0,a.jsxs)("div",{className:"mb-4",children:[(0,a.jsx)("div",{className:"mb-2",children:(0,a.jsx)(l.AntTypography.Title,{level:3,children:"Details"})}),(0,a.jsxs)("div",{className:"flex",children:[(0,a.jsx)("span",{className:"w-1/3 shrink-0 text-sm text-gray-500",children:"Fides key:"}),(0,a.jsx)(l.esZ,{title:null==t?void 0:t.fides_key,trigger:"click",children:(0,a.jsx)("span",{className:"flex-1 truncate","data-testid":"edit-drawer-fides-key",children:null==t?void 0:t.fides_key})})]})]}),!!t&&(0,a.jsx)(K,{initialValues:t,onSubmit:j,form:s,formId:i,taxonomyType:n,isDisabled:!A}),E.isEnabled&&!E.isLoading&&(0,a.jsx)(L,{form:o,formId:"custom-fields-form",customFields:E})]}),(0,a.jsx)(l.cVQ,{isOpen:d,onClose:h,onConfirm:S,title:"Delete ".concat(n),message:(0,a.jsx)(l.Kqy,{children:(0,a.jsxs)(l.xvT,{children:["You are about to permanently delete the ",n," ",(0,a.jsx)(l.xvT,{color:"complimentary.500",as:"span",fontWeight:"bold",children:null==t?void 0:t.name})," ","from your taxonomy. Are you sure you would like to continue?"]})})})]})};n(51901);var $=n(86298),Q=n(3124),ee=n.n(Q);(r=i||(i={})).DEFAULT="DEFAULT",r.ACTIVE_HOVER="ACTIVE_HOVER",r.PARENT_OF_HOVER="PARENT_OF_HOVER",r.CHILD_OF_HOVER="CHILD_OF_HOVER",r.SIBLING_OF_HOVER="SIBLING_OF_HOVER",r.INACTIVE="INACTIVE";let et=(0,d.createContext)({activeNodeKey:null,setActiveNodeKey:()=>{},onMouseEnter:()=>{},onMouseLeave:()=>{},getNodeHoverStatus:()=>"DEFAULT"}),en=e=>{let{children:t}=e,[n,r]=(0,d.useState)(null),i=(0,d.useCallback)(e=>{e!==n&&r(e)},[n]),l=(0,d.useCallback)(()=>{r(null)},[]),s=(0,d.useCallback)(e=>n?e===n?"ACTIVE_HOVER":n.startsWith("".concat(e,"."))||e===v.Ch?"PARENT_OF_HOVER":e.startsWith("".concat(n,"."))||n===v.Ch?"CHILD_OF_HOVER":n.split(".").slice(0,-1).join(".")===e.split(".").slice(0,-1).join(".")?"SIBLING_OF_HOVER":"INACTIVE":"DEFAULT",[n]),o=(0,d.useMemo)(()=>({activeNodeKey:n,setActiveNodeKey:r,onMouseEnter:i,onMouseLeave:l,getNodeHoverStatus:s}),[n,r,i,l,s]);return(0,a.jsx)(et.Provider,{value:o,children:t})};function er(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function ei(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=el)):void 0===t&&(t=ea);for(var n,r,i,a,l,s=new eu(e),o=[s];n=o.pop();)if((i=t(n.data))&&(l=(i=Array.from(i)).length))for(n.children=i,a=l-1;a>=0;--a)o.push(r=i[a]=new eu(i[a])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(eo)}function ea(e){return e.children}function el(e){return Array.isArray(e)?e[1]:null}function es(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function eo(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function eu(e){this.data=e,this.depth=this.height=0,this.parent=null}function ed(e,t){return e.parent===t.parent?1:2}function ec(e){var t=e.children;return t?t[0]:e.t}function ef(e){var t=e.children;return t?t[t.length-1]:e.t}function eh(e,t){this._=e,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=t}function em(e){return null==e?null:function(e){if("function"!=typeof e)throw Error();return e}(e)}eu.prototype=ei.prototype={constructor:eu,count:function(){return this.eachAfter(er)},each:function(e,t){let n=-1;for(let r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,i,a=this,l=[a],s=[],o=-1;a=l.pop();)if(s.push(a),n=a.children)for(r=0,i=n.length;r<i;++r)l.push(n[r]);for(;a=s.pop();)e.call(t,a,++o,this);return this},eachBefore:function(e,t){for(var n,r,i=this,a=[i],l=-1;i=a.pop();)if(e.call(t,i,++l,this),n=i.children)for(r=n.length-1;r>=0;--r)a.push(n[r]);return this},find:function(e,t){let n=-1;for(let r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n})},sort:function(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;for(e=n.pop(),t=r.pop();e===t;)i=e,e=n.pop(),t=r.pop();return i}(t,e),r=[t];t!==n;)r.push(t=t.parent);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e},links:function(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t},copy:function(){return ei(this).eachBefore(es)},[Symbol.iterator]:function*(){var e,t,n,r,i=this,a=[i];do for(e=a.reverse(),a=[];i=e.pop();)if(yield i,t=i.children)for(n=0,r=t.length;n<r;++n)a.push(t[n]);while(a.length)}},eh.prototype=Object.create(eu.prototype);var ep={depth:-1},eg={},ex={};function ey(e){return e.id}function e_(e){return e.parentId}function ev(e){let t=e.length;if(t<2)return"";for(;--t>1&&!eT(e,t););return e.slice(0,t)}function eT(e,t){if("/"===e[t]){let n=0;for(;t>0&&"\\"===e[--t];)++n;if((1&n)==0)return!0}return!1}let eE=function(){var e=ed,t=1,n=1,r=null;function i(i){var o=function(e){for(var t,n,r,i,a,l=new eh(e,0),s=[l];t=s.pop();)if(r=t._.children)for(t.children=Array(a=r.length),i=a-1;i>=0;--i)s.push(n=t.children[i]=new eh(r[i],i)),n.parent=t;return(l.parent=new eh(null,0)).children=[l],l}(i);if(o.eachAfter(a),o.parent.m=-o.z,o.eachBefore(l),r)i.eachBefore(s);else{var u=i,d=i,c=i;i.eachBefore(function(e){e.x<u.x&&(u=e),e.x>d.x&&(d=e),e.depth>c.depth&&(c=e)});var f=u===d?1:e(u,d)/2,h=f-u.x,m=t/(d.x+f+h),p=n/(c.depth||1);i.eachBefore(function(e){e.x=(e.x+h)*m,e.y=e.depth*p})}return i}function a(t){var n=t.children,r=t.parent.children,i=t.i?r[t.i-1]:null;if(n){!function(e){for(var t,n=0,r=0,i=e.children,a=i.length;--a>=0;)t=i[a],t.z+=n,t.m+=n,n+=t.s+(r+=t.c)}(t);var a=(n[0].z+n[n.length-1].z)/2;i?(t.z=i.z+e(t._,i._),t.m=t.z-a):t.z=a}else i&&(t.z=i.z+e(t._,i._));t.parent.A=function(t,n,r){if(n){for(var i,a,l,s=t,o=t,u=n,d=s.parent.children[0],c=s.m,f=o.m,h=u.m,m=d.m;u=ef(u),s=ec(s),u&&s;)d=ec(d),(o=ef(o)).a=t,(l=u.z+h-s.z-c+e(u._,s._))>0&&(function(e,t,n){var r=n/(t.i-e.i);t.c-=r,t.s+=n,e.c+=r,t.z+=n,t.m+=n}((i=u,a=r,i.a.parent===t.parent?i.a:a),t,l),c+=l,f+=l),h+=u.m,c+=s.m,m+=d.m,f+=o.m;u&&!ef(o)&&(o.t=u,o.m+=h-f),s&&!ec(d)&&(d.t=s,d.m+=c-m,r=t)}return r}(t,i,t.parent.A||r[0])}function l(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function s(e){e.x*=t,e.y=e.depth*n}return i.separation=function(t){return arguments.length?(e=t,i):e},i.size=function(e){return arguments.length?(r=!1,t=+e[0],n=+e[1],i):r?null:[t,n]},i.nodeSize=function(e){return arguments.length?(r=!0,t=+e[0],n=+e[1],i):r?[t,n]:null},i}();var eA=e=>{let{nodes:t,edges:n,options:r}=e;return(0,d.useMemo)(()=>{if(0===t.length)return{nodes:t,edges:n};let e=(function(){var e,t=ey,n=e_;function r(r){var i,a,l,s,o,u,d,c,f=Array.from(r),h=t,m=n,p=new Map;if(null!=e){let t=f.map((t,n)=>{var i;let a;return i=e(t,n,r),a=(i=`${i}`).length,eT(i,a-1)&&!eT(i,a-2)&&(i=i.slice(0,-1)),"/"===i[0]?i:`/${i}`}),n=t.map(ev),i=new Set(t).add("");for(let e of n)i.has(e)||(i.add(e),t.push(e),n.push(ev(e)),f.push(ex));h=(e,n)=>t[n],m=(e,t)=>n[t]}for(l=0,i=f.length;l<i;++l)a=f[l],u=f[l]=new eu(a),null!=(d=h(a,l,r))&&(d+="")&&(c=u.id=d,p.set(c,p.has(c)?eg:u)),null!=(d=m(a,l,r))&&(d+="")&&(u.parent=d);for(l=0;l<i;++l)if(d=(u=f[l]).parent){if(!(o=p.get(d)))throw Error("missing: "+d);if(o===eg)throw Error("ambiguous: "+d);o.children?o.children.push(u):o.children=[u],u.parent=o}else{if(s)throw Error("multiple roots");s=u}if(!s)throw Error("no root");if(null!=e){for(;s.data===ex&&1===s.children.length;)s=s.children[0],--i;for(let e=f.length-1;e>=0&&(u=f[e]).data===ex;--e)u.data=null}if(s.parent=ep,s.eachBefore(function(e){e.depth=e.parent.depth+1,--i}).eachBefore(eo),s.parent=null,i>0)throw Error("cycle");return s}return r.id=function(e){return arguments.length?(t=em(e),r):t},r.parentId=function(e){return arguments.length?(n=em(e),r):n},r.path=function(t){return arguments.length?(e=em(t),r):e},r})().id(e=>e.id).parentId(e=>{var t;return null===(t=n.find(t=>t.target===e.id))||void 0===t?void 0:t.source})(t),i="LR"===r.direction?[35,320]:[320,35];return{nodes:eE.nodeSize(i).separation((e,t)=>e.parent===t.parent?1:1.5)(e).descendants().map(e=>{let t;return t="LR"===r.direction?{x:e.y,y:e.x}:{x:e.x,y:e.y},{...e.data,position:t}}),edges:n}},[t,n,r])},eC=e=>{let{positionAbsoluteX:t,positionAbsoluteY:n,nodeWidth:r}=e,{setCenter:i,getZoom:a}=(0,$._K)();return{centerScreenOnNode:(0,d.useCallback)(()=>i(t+r/2,n,{duration:500,zoom:a()}),[a,t,n,r,i])}},ej=n(1945),eS=n.n(ej),eb=n(8335),eO=e=>{let{type:t,inactive:n=!1}=e;return(0,a.jsx)($.HH,{type:t,position:"source"===t?eb.Ly.Right:eb.Ly.Left,style:{width:8,height:8,backgroundColor:n?ee().FIDESUI_NEUTRAL_400:ee().FIDESUI_MINOS},className:"transition-colors duration-300 ease-in"})},eD=e=>{let{data:t,positionAbsoluteX:n,positionAbsoluteY:r}=e,{onCancel:i,onSubmit:s,parentKey:o}=t,u=(0,d.useRef)(null),[c,f]=(0,d.useState)(""),{centerScreenOnNode:h}=eC({positionAbsoluteX:n,positionAbsoluteY:r,nodeWidth:200});return(0,d.useEffect)(()=>{f("");let e=()=>{var e;return null===(e=u.current)||void 0===e?void 0:e.focus({cursor:"start",preventScroll:!0})};(async()=>{await h(),e()})()},[o,h,n,r]),(0,a.jsxs)("div",{style:{width:200},"data-testid":"taxonomy-text-input-node",children:[(0,a.jsx)(l.uFc,{placeholder:"Type label name...",ref:u,onBlur:i,onSubmit:()=>s(c),value:c,onChange:e=>f(e.target.value),onKeyUp:e=>{"Escape"===e.key&&i()},onPressEnter:()=>s(c),className:eS().input}),(0,a.jsx)(eO,{type:"target"})]})},eP=e=>{let{getNodeHoverStatus:t}=(0,d.useContext)(et),{target:n}=e,r=t(n),l=(0,d.useCallback)(()=>{switch(r){case i.ACTIVE_HOVER:case i.PARENT_OF_HOVER:return ee().FIDESUI_MINOS;case i.INACTIVE:return ee().NEUTRAL_400;default:return ee().FIDESUI_SANDSTONE}},[r]),s=(0,d.useCallback)(()=>{switch(r){case i.ACTIVE_HOVER:case i.PARENT_OF_HOVER:return 2;default:return 1}},[r]);return(0,a.jsx)($.Jd,{...e,style:{stroke:l(),strokeWidth:s(),transition:"stroke 0.3s ease 0s"}})},ek=n(34770),eI=n.n(ek),eN=e=>{let{data:t,positionAbsoluteX:n,positionAbsoluteY:r}=e,{onMouseEnter:s,onMouseLeave:o,getNodeHoverStatus:u}=(0,d.useContext)(et),{taxonomyType:c,taxonomyItem:f,onAddButtonClick:h,onTaxonomyItemClick:m,label:p,hasChildren:g,isLastCreatedItem:x,resetLastCreatedItemKey:y,userCanAddLabels:_}=t,{centerScreenOnNode:T}=eC({positionAbsoluteX:n,positionAbsoluteY:r,nodeWidth:200});(0,d.useEffect)(()=>{let e=async()=>{await T(),s(null==f?void 0:f.fides_key)};x&&(e(),y())},[x,s,null==f?void 0:f.fides_key,y,T]);let E=u(null==f?void 0:f.fides_key),A=(0,d.useCallback)(()=>{switch(E){case i.ACTIVE_HOVER:return eI()["button--hover"];case i.PARENT_OF_HOVER:return eI()["button--parent-hover"];case i.INACTIVE:return eI()["button--inactive"];case i.DEFAULT:case i.CHILD_OF_HOVER:case i.SIBLING_OF_HOVER:default:return""}},[E]),C=(null==f?void 0:f.fides_key)===v.Ch,j=c===v.ac.DATA_SUBJECT;return(0,a.jsxs)("div",{className:eI().container,onMouseEnter:()=>s(null==f?void 0:f.fides_key),onMouseLeave:()=>o(null==f?void 0:f.fides_key),"data-testid":"taxonomy-node-".concat(null==f?void 0:f.fides_key),children:[(0,a.jsx)(l.wpx,{className:"".concat(eI().button," ").concat(A()),onClick:()=>null==m?void 0:m(f),disabled:!m,type:"text",children:(0,a.jsxs)(l.AntTypography.Text,{ellipsis:!0,style:{color:"inherit"},children:[(null==f?void 0:f.active)===!1?"(disabled) ":"",p]})}),!C&&(0,a.jsx)(eO,{type:"target",inactive:E===i.INACTIVE}),g&&(0,a.jsx)(eO,{type:"source",inactive:E===i.INACTIVE}),_&&(!j||C)&&(0,a.jsx)("div",{className:eI()["add-button-container"],children:(0,a.jsx)(l.wpx,{type:"default",className:"".concat(eI()["add-button"]," ").concat(E===i.ACTIVE_HOVER?eI()["add-button--visible"]:""),icon:(0,a.jsx)(l.PJP.mm_,{size:20}),onClick:()=>null==h?void 0:h(f),size:"middle","data-testid":"taxonomy-add-child-label-button","aria-label":"Add child label to ".concat(p)})})]})};let eR=e=>{let{taxonomyType:t,taxonomyItems:n,draftNewItem:r,lastCreatedItemKey:i,resetLastCreatedItemKey:l,onTaxonomyItemClick:s,onAddButtonClick:o,onCancelDraftItem:u,onSubmitDraftItem:c,userCanAddLabels:f}=e,{fitView:h}=(0,$._K)();(0,d.useEffect)(()=>{setTimeout(()=>h(),150)},[h,t]);let m=[(0,d.useMemo)(()=>({id:v.Ch,position:{x:0,y:0},data:{label:(0,v._g)(t),taxonomyItem:{fides_key:v.Ch},taxonomyType:t,onTaxonomyItemClick:null,onAddButtonClick:o,hasChildren:0!==n.length,userCanAddLabels:f},type:"taxonomyTreeNode"}),[t,n.length,o,f])],p=[];if(n.forEach(e=>{let n=e.name||e.fides_key.split(".").pop()||"",r={id:e.fides_key,position:{x:0,y:0},data:{label:n,taxonomyType:t,taxonomyItem:e,onTaxonomyItemClick:s,onAddButtonClick:o,hasChildren:!1,isLastCreatedItem:i===e.fides_key,resetLastCreatedItemKey:l,userCanAddLabels:f},type:"taxonomyTreeNode"};m.push(r);let a=e.parent_key?m.find(t=>t.id===e.parent_key):null,u=a?a.id:v.Ch,d=e.fides_key,c={id:"".concat(u,"-").concat(d),source:u,target:d,type:"taxonomyTreeEdge"};p.push(c),a&&(a.data.hasChildren=!0)}),r){let e=r.parent_key||v.Ch;m.push({id:"draft-node",position:{x:0,y:0},type:"textInputNode",data:{parentKey:e,onCancel:u,onSubmit:c},hidden:!r}),p.push({id:"draft-line",source:e,target:"draft-node",animated:!0});let t=m.find(t=>t.id===e);t&&(t.data.hasChildren=!0)}let{nodes:g,edges:x}=eA({nodes:m,edges:p,options:{direction:"LR"}}),y=(0,d.useMemo)(()=>({taxonomyTreeNode:eN,textInputNode:eD}),[]),_=(0,d.useMemo)(()=>({taxonomyTreeEdge:eP}),[]);return(0,a.jsx)("div",{className:"size-full",style:{backgroundColor:ee().FIDESUI_BG_CORINTH},"data-testid":"taxonomy-interactive-tree",children:(0,a.jsx)(en,{children:(0,a.jsxs)($.x$,{nodes:g,edges:x,nodeTypes:y,edgeTypes:_,maxZoom:2,minZoom:.3,nodesConnectable:!1,edgesFocusable:!1,elementsSelectable:!1,proOptions:{hideAttribution:!0},children:[(0,a.jsx)($.Aq,{color:ee().FIDESUI_NEUTRAL_100,variant:$.T7.Dots,size:3}),(0,a.jsx)($.a9,{nodeStrokeWidth:3,pannable:!0}),(0,a.jsx)($.ZX,{showInteractive:!1})]})})})};var eM=e=>(0,a.jsx)($.tV,{children:(0,a.jsx)(eR,{...e})}),ew=()=>{let[e,t]=(0,d.useState)(v.ac.DATA_CATEGORY),n=(0,c.hz)().plus,{data:r}=S(void 0,{skip:!n}),{createTrigger:i,getAllTrigger:s,taxonomyItems:x=[]}=k({taxonomyType:e}),y=(0,u.useSearchParams)(),_=(null==y?void 0:y.get("showDisabledItems"))==="true";(0,d.useEffect)(()=>{s()},[s,e]);let[T,E]=(0,d.useState)(null),[A,C]=(0,d.useState)(null),[j,b]=(0,d.useState)(null);(0,d.useEffect)(()=>{C(null),b(null),E(null)},[e]),(0,d.useEffect)(()=>{e!==v.ac.SYSTEM_GROUP||n||t(v.ac.DATA_CATEGORY)},[e,n]);let O=(0,l.pmc)(),D=(0,d.useCallback)(async e=>{if(!A)return;let t=(null==A?void 0:A.parent_key)===v.Ch,n={...A,name:e,parent_key:t?null:A.parent_key},r=await i(n);if((0,f.D4)(r)){O((0,g.Vo)((0,f.e$)(r.error)));return}b(r.data.fides_key),O((0,g.t5)("New label successfully created")),C(null)},[i,A,O]),P=o()(x,"active"),I=(0,p.Tg)([(0,v.aq)(e).CREATE]);return(0,a.jsxs)(h.Z,{title:"Taxonomy",children:[(0,a.jsxs)(l.jqI,{vertical:!0,className:"h-full",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)(m.Z,{heading:"Taxonomy"}),(0,a.jsx)("div",{className:"hidden",children:(0,a.jsx)("div",{className:"mb-5 flex justify-between",children:(0,a.jsxs)(l.vyj.Compact,{children:[(0,a.jsx)(l.uFc,{className:"min-w-[350px]",placeholder:"Search",allowClear:!0}),(0,a.jsx)(l.wpx,{type:"default",children:"Clear"})]})})})]}),(0,a.jsxs)("div",{className:"relative grow",children:[(0,a.jsx)("div",{className:"absolute left-2 top-2 z-[1]",children:(0,a.jsx)(l.AHg,{selectedKeys:[e],onSelect:e=>{let{key:n}=e;return t(n)},items:(()=>{let e={[v.Lo.DATA_CATEGORIES]:v.ac.DATA_CATEGORY,[v.Lo.DATA_USES]:v.ac.DATA_USE,[v.Lo.DATA_SUBJECTS]:v.ac.DATA_SUBJECT,[v.Lo.SYSTEM_GROUPS]:v.ac.SYSTEM_GROUP},t=(0,f.MM)(v.Lo).filter(e=>n||e.value!==v.Lo.SYSTEM_GROUPS).map(t=>({label:t.label,key:e[t.value]}));return(null==r?void 0:r.length)&&r.forEach(e=>{t.push({label:e.name,key:e.fides_key})}),t})(),"data-testid":"taxonomy-type-selector"})}),!!x.length&&(0,a.jsx)(eM,{userCanAddLabels:I,taxonomyItems:_?x:P,draftNewItem:A,lastCreatedItemKey:j,resetLastCreatedItemKey:()=>b(null),onTaxonomyItemClick:e=>{E(e)},onAddButtonClick:e=>{var t;C({parent_key:null!==(t=null==e?void 0:e.fides_key)&&void 0!==t?t:null,is_default:!1,description:""})},taxonomyType:e,onCancelDraftItem:()=>C(null),onSubmitDraftItem:D})]})]}),T&&(0,a.jsx)(J,{taxonomyItem:T,taxonomyType:e,onClose:()=>E(null)})]})}},31883:function(e,t,n){"use strict";n.d(t,{Bw:function(){return r.Bw},D4:function(){return r.D4}});var r=n(19043)},1945:function(e){e.exports={input:"TaxonomyTextInputNode_input__P9czz"}},34770:function(e){e.exports={container:"TaxonomyTreeNode_container__T4KpF",button:"TaxonomyTreeNode_button__mcbOd","button--hover":"TaxonomyTreeNode_button--hover__oycXY","button--parent-hover":"TaxonomyTreeNode_button--parent-hover__pwAPl","button--inactive":"TaxonomyTreeNode_button--inactive__Fjdpe","add-button-container":"TaxonomyTreeNode_add-button-container__eEoRN","add-button":"TaxonomyTreeNode_add-button__oM2vI","add-button--visible":"TaxonomyTreeNode_add-button--visible__Ojqqf"}}},function(e){e.O(0,[1096,431,8765,9278,5163,3662,6148,4718,2888,9774,179],function(){return e(e.s=71180)}),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ !function(){"use strict";var e,t,n,r,o,u,i,c,a,f,s,d,l={},p={};function h(e){var t=p[e];if(void 0!==t)return t.exports;var n=p[e]={id:e,loaded:!1,exports:{}},r=!0;try{l[e].call(n.exports,n,n.exports,h),r=!1}finally{r&&delete p[e]}return n.loaded=!0,n.exports}h.m=l,e=[],h.O=function(t,n,r,o){if(n){o=o||0;for(var u=e.length;u>0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[n,r,o];return}for(var i=1/0,u=0;u<e.length;u++){for(var n=e[u][0],r=e[u][1],o=e[u][2],c=!0,a=0;a<n.length;a++)i>=o&&Object.keys(h.O).every(function(e){return h.O[e](n[a])})?n.splice(a--,1):(c=!1,o<i&&(i=o));if(c){e.splice(u--,1);var f=r();void 0!==f&&(t=f)}}return t},h.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return h.d(t,{a:t}),t},n=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},h.t=function(e,r){if(1&r&&(e=this(e)),8&r||"object"==typeof e&&e&&(4&r&&e.__esModule||16&r&&"function"==typeof e.then))return e;var o=Object.create(null);h.r(o);var u={};t=t||[null,n({}),n([]),n(n)];for(var i=2&r&&e;"object"==typeof i&&!~t.indexOf(i);i=n(i))Object.getOwnPropertyNames(i).forEach(function(t){u[t]=function(){return e[t]}});return u.default=function(){return e},h.d(o,u),o},h.d=function(e,t){for(var n in t)h.o(t,n)&&!h.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},h.f={},h.e=function(e){return Promise.all(Object.keys(h.f).reduce(function(t,n){return h.f[n](e,t),t},[]))},h.u=function(e){return 1096===e?"static/chunks/678d4732-50255cc09048e643.js":8765===e?"static/chunks/8765-f622a35b40a7ec63.js":9278===e?"static/chunks/9278-08cc704317fe535e.js":699===e?"static/chunks/699-8ca44b0de9fa20f0.js":6148===e?"static/chunks/6148-59a59d5c5925344f.js":5619===e?"static/chunks/5619-9b50cec521203989.js":"static/chunks/"+e+"."+({105:"f510d88bd08bb2f5",1975:"78e719130cfe3fd6",2121:"1de2fa060eae34aa",4259:"d1507e0db19cbed7",5698:"2135391a128cc373",7088:"eb76fca286e5f2e6",7202:"3febe9e89640c712",9676:"b86ecbcfe5afd25d"})[e]+".js"},h.miniCssF=function(e){return"static/css/98fab0b3e6aa43ed.css"},h.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),h.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r={},o="_N_E:",h.l=function(e,t,n,u){if(r[e]){r[e].push(t);return}if(void 0!==n)for(var i,c,a=document.getElementsByTagName("script"),f=0;f<a.length;f++){var s=a[f];if(s.getAttribute("src")==e||s.getAttribute("data-webpack")==o+n){i=s;break}}i||(c=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,h.nc&&i.setAttribute("nonce",h.nc),i.setAttribute("data-webpack",o+n),i.src=h.tu(e)),r[e]=[t];var d=function(t,n){i.onerror=i.onload=null,clearTimeout(l);var o=r[e];if(delete r[e],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach(function(e){return e(n)}),t)return t(n)},l=setTimeout(d.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=d.bind(null,i.onerror),i.onload=d.bind(null,i.onload),c&&document.head.appendChild(i)},h.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},h.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},h.tt=function(){return void 0===u&&(u={createScriptURL:function(e){return e}},"undefined"!=typeof trustedTypes&&trustedTypes.createPolicy&&(u=trustedTypes.createPolicy("nextjs#bundler",u))),u},h.tu=function(e){return h.tt().createScriptURL(e)},h.p="/_next/",i=function(e,t,n,r){var o=document.createElement("link");return o.rel="stylesheet",o.type="text/css",o.onerror=o.onload=function(u){if(o.onerror=o.onload=null,"load"===u.type)n();else{var i=u&&("load"===u.type?"missing":u.type),c=u&&u.target&&u.target.href||t,a=Error("Loading CSS chunk "+e+" failed.\n("+c+")");a.code="CSS_CHUNK_LOAD_FAILED",a.type=i,a.request=c,o.parentNode.removeChild(o),r(a)}},o.href=t,document.head.appendChild(o),o},c=function(e,t){for(var n=document.getElementsByTagName("link"),r=0;r<n.length;r++){var o=n[r],u=o.getAttribute("data-href")||o.getAttribute("href");if("stylesheet"===o.rel&&(u===e||u===t))return o}for(var i=document.getElementsByTagName("style"),r=0;r<i.length;r++){var o=i[r],u=o.getAttribute("data-href");if(u===e||u===t)return o}},a={2272:0},h.f.miniCss=function(e,t){a[e]?t.push(a[e]):0!==a[e]&&({105:1})[e]&&t.push(a[e]=new Promise(function(t,n){var r=h.miniCssF(e),o=h.p+r;if(c(r,o))return t();i(e,o,t,n)}).then(function(){a[e]=0},function(t){throw delete a[e],t}))},f={2272:0},h.f.j=function(e,t){var n=h.o(f,e)?f[e]:void 0;if(0!==n){if(n)t.push(n[2]);else if(/^(105|2272)$/.test(e))f[e]=0;else{var r=new Promise(function(t,r){n=f[e]=[t,r]});t.push(n[2]=r);var o=h.p+h.u(e),u=Error();h.l(o,function(t){if(h.o(f,e)&&(0!==(n=f[e])&&(f[e]=void 0),n)){var r=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;u.message="Loading chunk "+e+" failed.\n("+r+": "+o+")",u.name="ChunkLoadError",u.type=r,u.request=o,n[1](u)}},"chunk-"+e,e)}}},h.O.j=function(e){return 0===f[e]},s=function(e,t){var n,r,o=t[0],u=t[1],i=t[2],c=0;if(o.some(function(e){return 0!==f[e]})){for(n in u)h.o(u,n)&&(h.m[n]=u[n]);if(i)var a=i(h)}for(e&&e(t);c<o.length;c++)r=o[c],h.o(f,r)&&f[r]&&f[r][0](),f[r]=0;return h.O(a)},(d=self.webpackChunk_N_E=self.webpackChunk_N_E||[]).forEach(s.bind(null,0)),d.push=s.bind(null,d.push.bind(d)),h.nc=void 0}();
@@ -0,0 +1 @@
1
+ self.__BUILD_MANIFEST=function(s,e,t,a,c,n,i,d,o,r,p,g,f,u,m,j,k,b,h,y,l,v,I,F,x,_,U,w,q,N,A,S,B,C,z,D,E,L,M,T,P,G,H,J,K,O,Q,R,V,W,X,Y,Z,$,ss,se){return{__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},"/":[q,"static/chunks/pages/index-269b8f81546dad66.js"],"/404":["static/chunks/pages/404-2eb8aed4939f1142.js"],"/_error":["static/chunks/pages/_error-bede3a8288930dcf.js"],"/add-systems":[s,q,"static/chunks/pages/add-systems-f90aa48500c1cbde.js"],"/add-systems/manual":[s,e,t,a,n,f,c,i,r,u,m,l,N,A,"static/chunks/pages/add-systems/manual-939253f8daf349b2.js"],"/add-systems/multiple":[r,j,S,"static/chunks/pages/add-systems/multiple-83ed7da0bb90b0a5.js"],"/consent":["static/chunks/pages/consent-e5a33654a2dfaf35.js"],"/consent/configure":[r,j,"static/chunks/pages/consent/configure-c0db068d1863222f.js"],"/consent/configure/add-vendors":[r,j,S,"static/chunks/pages/consent/configure/add-vendors-46b88bda3d7b15c5.js"],"/consent/privacy-experience":[f,B,"static/chunks/pages/consent/privacy-experience-92a337ee96845af2.js"],"/consent/privacy-experience/new":[e,d,k,b,C,"static/chunks/pages/consent/privacy-experience/new-e74cb5ea87f15b40.js"],"/consent/privacy-experience/[id]":[e,d,k,b,C,"static/chunks/pages/consent/privacy-experience/[id]-fd41ffaff543e05a.js"],"/consent/privacy-notices":[B,"static/chunks/pages/consent/privacy-notices-a94e19870fe3e210.js"],"/consent/privacy-notices/new":[e,d,k,b,z,"static/chunks/pages/consent/privacy-notices/new-2987e397445713c5.js"],"/consent/privacy-notices/[id]":[e,d,k,b,z,"static/chunks/pages/consent/privacy-notices/[id]-1fd2cda8707314f6.js"],"/consent/properties":[h,D,"static/chunks/pages/consent/properties-069f4e3ee96ebf77.js"],"/consent/reporting":[s,"static/chunks/2150-930ffaf2c4718edc.js","static/chunks/pages/consent/reporting-09be5455ba85db39.js"],"/data-catalog":[e,t,a,c,"static/css/95ac327e5d70148d.css","static/chunks/pages/data-catalog-351caadeef03876a.js"],"/data-catalog/[systemId]/projects":[e,t,a,c,v,o,"static/chunks/pages/data-catalog/[systemId]/projects-be7b385073f22414.js"],"/data-catalog/[systemId]/projects/[projectUrn]":[E,"static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]-6a4b0d49dcbf17a8.js"],"/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn]":[s,e,t,a,c,v,L,o,"static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn]-293c1f2d9aefb447.js"],"/data-catalog/[systemId]/resources":[E,"static/chunks/pages/data-catalog/[systemId]/resources-af80fdca3bbdc82f.js"],"/data-catalog/[systemId]/resources/[resourceUrn]":[s,e,t,a,c,v,L,o,"static/chunks/pages/data-catalog/[systemId]/resources/[resourceUrn]-18501152fa1e4f40.js"],"/data-discovery/action-center":[I,"static/chunks/pages/data-discovery/action-center-1554afcb8b9da2ab.js"],"/data-discovery/action-center/[monitorId]":[s,e,t,a,i,I,M,F,"static/chunks/pages/data-discovery/action-center/[monitorId]-0e4d9ff89c63793c.js"],"/data-discovery/action-center/[monitorId]/[systemId]":[s,e,t,a,i,r,l,I,M,"static/css/23cf870196941c9a.css","static/chunks/pages/data-discovery/action-center/[monitorId]/[systemId]-758d51b4d37dbd09.js"],"/data-discovery/activity":[s,g,"static/chunks/pages/data-discovery/activity-2635ef588bf06145.js"],"/data-discovery/detection":[s,i,g,T,"static/chunks/pages/data-discovery/detection-a780390da99f3e43.js"],"/data-discovery/detection/[resourceUrn]":[s,i,g,T,"static/chunks/pages/data-discovery/detection/[resourceUrn]-0497f3ffdb632516.js"],"/data-discovery/discovery":[s,e,t,a,c,i,g,P,o,"static/chunks/pages/data-discovery/discovery-0cea22af5929c81f.js"],"/data-discovery/discovery/[resourceUrn]":[s,e,t,a,c,i,g,P,o,"static/chunks/pages/data-discovery/discovery/[resourceUrn]-1901c26cdde820da.js"],"/datamap":[s,a,"static/chunks/255-1bc0cbef7a59cdc6.js",u,G,"static/chunks/pages/datamap-619f27c745188adb.js"],"/dataset":[p,y,"static/chunks/pages/dataset-d6d7ee8bd8858a8a.js"],"/dataset/new":[s,p,y,"static/chunks/pages/dataset/new-78e052c8f95110c4.js"],"/dataset/[datasetId]":["static/chunks/9729-fcf6ff4e3534e4a8.js",x,"static/chunks/pages/dataset/[datasetId]-cb63db8594fe8dc1.js"],"/dataset/[datasetId]/[collectionName]":[e,t,a,n,c,x,o,"static/chunks/pages/dataset/[datasetId]/[collectionName]-d790553662caf5c3.js"],"/dataset/[datasetId]/[collectionName]/[...subfieldNames]":[e,t,a,n,c,x,o,"static/chunks/pages/dataset/[datasetId]/[collectionName]/[...subfieldNames]-ef71f387fbbab425.js"],"/datastore-connection":["static/css/5f393dea1c0d031c.css","static/chunks/pages/datastore-connection-a832084ce294f8af.js"],"/datastore-connection/new":[s,e,n,p,f,H,y,J,"static/chunks/pages/datastore-connection/new-4c9fb068a5561658.js"],"/datastore-connection/[id]":[s,e,n,p,H,y,J,"static/chunks/pages/datastore-connection/[id]-cc149157d290a94d.js"],"/fides-js-docs":["static/chunks/2fbcc6de-a6c61724c327e9fa.js","static/chunks/e3251fe7-5777b5d778e6fffa.js",e,t,a,n,p,"static/chunks/5619-9b50cec521203989.js",K,"static/css/0b4b1b65cc874774.css","static/chunks/5596-29a7c8322530b7cf.js","static/chunks/pages/fides-js-docs-1f4335dca5c09860.js"],"/integrations":[s,e,t,a,n,d,O,m,Q,o,"static/chunks/pages/integrations-6f109ef64304ef59.js"],"/integrations/[id]":[s,e,t,a,n,d,O,i,m,Q,o,"static/chunks/pages/integrations/[id]-8b13bb5f7bee61c6.js"],"/login":["static/chunks/pages/login-0cb0eb44bf2dd24c.js"],"/login/[provider]":["static/chunks/pages/login/[provider]-c58beef131c3a82d.js"],"/messaging":[e,t,"static/chunks/346-aa3b88efb85f2e28.js","static/chunks/pages/messaging-3f15804cf9625f01.js"],"/messaging/add-template":[R,"static/chunks/pages/messaging/add-template-0e0c06e3c8aabe02.js"],"/messaging/[id]":[R,"static/chunks/pages/messaging/[id]-d8c5c03fb2f31d65.js"],"/poc/ant-components":["static/chunks/pages/poc/ant-components-248ad9f65a872442.js"],"/poc/form-experiments/AntForm":["static/chunks/pages/poc/form-experiments/AntForm-aedb66a62042b10a.js"],"/poc/form-experiments/FormikAntFormItem":["static/chunks/pages/poc/form-experiments/FormikAntFormItem-018df38b7cd77fdb.js"],"/poc/form-experiments/FormikControlled":["static/chunks/pages/poc/form-experiments/FormikControlled-6ca9099d03aab817.js"],"/poc/form-experiments/FormikField":["static/chunks/pages/poc/form-experiments/FormikField-0f2c90786ea005a4.js"],"/poc/form-experiments/FormikSpreadField":[V,"static/chunks/pages/poc/form-experiments/FormikSpreadField-af097d661f6abcf4.js"],"/poc/forms":[V,"static/chunks/pages/poc/forms-200b51a725f8b2d1.js"],"/poc/table-migration":[r,j,"static/chunks/pages/poc/table-migration-e551fccfcaae76e7.js"],"/privacy-requests":[s,e,"static/chunks/3550-d04125c828d591a1.js",W,"static/chunks/pages/privacy-requests-65f0d5672041a202.js"],"/privacy-requests/configure":["static/chunks/pages/privacy-requests/configure-b00532a0ad4f6927.js"],"/privacy-requests/configure/storage":[s,"static/chunks/pages/privacy-requests/configure/storage-1b38b656807ed0cd.js"],"/privacy-requests/[id]":[s,W,"static/css/073713cd1eddda79.css","static/chunks/pages/privacy-requests/[id]-8566e3b7b2a632fa.js"],"/properties":[h,D,"static/chunks/pages/properties-08472b2a6bf1d392.js"],"/properties/add-property":[h,X,"static/chunks/pages/properties/add-property-777ed2d73812043d.js"],"/properties/[id]":[h,X,"static/chunks/pages/properties/[id]-322a01e2bceab3fb.js"],"/reporting/datamap":[s,e,t,a,K,u,_,G,"static/chunks/pages/reporting/datamap-b20c53b82a54f5ea.js"],"/settings/about":[Y,"static/chunks/pages/settings/about-6c4904c157477285.js"],"/settings/about/alpha":[Y,"static/chunks/pages/settings/about/alpha-68eaac2d79133679.js"],"/settings/consent":["static/chunks/pages/settings/consent-55e36839d219a503.js"],"/settings/consent/[configuration_id]/[purpose_id]":["static/chunks/pages/settings/consent/[configuration_id]/[purpose_id]-f3e6e74e0efb005c.js"],"/settings/custom-fields":[s,"static/chunks/pages/settings/custom-fields-26ce8fc493993765.js"],"/settings/domain-records":["static/chunks/pages/settings/domain-records-7ddf9d992fe714a6.js"],"/settings/domains":["static/chunks/pages/settings/domains-7c78ae51f0dd7102.js"],"/settings/email-templates":["static/chunks/pages/settings/email-templates-05ffbda19ab894b9.js"],"/settings/locations":[Z,F,"static/chunks/pages/settings/locations-77fb85bdd0be42b5.js"],"/settings/messaging-providers":[s,U,"static/chunks/pages/settings/messaging-providers-6c51ffd46bb598e7.js"],"/settings/messaging-providers/new":[s,e,t,d,$,U,ss,"static/chunks/pages/settings/messaging-providers/new-084f9756b9987285.js"],"/settings/messaging-providers/[key]":[s,e,t,d,$,U,ss,"static/chunks/pages/settings/messaging-providers/[key]-b0d93bf478bf63ee.js"],"/settings/organization":["static/chunks/pages/settings/organization-44456bfe54ac4ad5.js"],"/settings/privacy-requests":[s,"static/chunks/pages/settings/privacy-requests-fbe7e8030d837aed.js"],"/settings/regulations":[Z,F,"static/chunks/pages/settings/regulations-2866ac99faa5a542.js"],"/systems":[s,e,t,a,"static/chunks/1896-49010da5c2705fc5.js",_,"static/chunks/pages/systems-ae3f3470e2734933.js"],"/systems/configure/[id]":[s,e,t,a,n,f,c,i,r,u,m,l,N,A,"static/chunks/pages/systems/configure/[id]-1895c6a13b543436.js"],"/systems/configure/[id]/test-datasets":[p,"static/chunks/pages/systems/configure/[id]/test-datasets-a86bafe1b4e1205f.js"],"/taxonomy":["static/chunks/678d4732-50255cc09048e643.js",s,e,t,a,d,"static/chunks/6148-59a59d5c5925344f.js",_,"static/css/34a7eb08b86ddb57.css","static/chunks/pages/taxonomy-1b9c4b2749e3ece4.js"],"/user-management":[w,"static/chunks/pages/user-management-82fcf1151e2fe2ba.js"],"/user-management/new":[w,se,"static/chunks/pages/user-management/new-6304dad2c5fab694.js"],"/user-management/profile/[id]":[w,se,"static/chunks/pages/user-management/profile/[id]-ff4711db191099cd.js"],sortedPages:["/","/404","/_app","/_error","/add-systems","/add-systems/manual","/add-systems/multiple","/consent","/consent/configure","/consent/configure/add-vendors","/consent/privacy-experience","/consent/privacy-experience/new","/consent/privacy-experience/[id]","/consent/privacy-notices","/consent/privacy-notices/new","/consent/privacy-notices/[id]","/consent/properties","/consent/reporting","/data-catalog","/data-catalog/[systemId]/projects","/data-catalog/[systemId]/projects/[projectUrn]","/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn]","/data-catalog/[systemId]/resources","/data-catalog/[systemId]/resources/[resourceUrn]","/data-discovery/action-center","/data-discovery/action-center/[monitorId]","/data-discovery/action-center/[monitorId]/[systemId]","/data-discovery/activity","/data-discovery/detection","/data-discovery/detection/[resourceUrn]","/data-discovery/discovery","/data-discovery/discovery/[resourceUrn]","/datamap","/dataset","/dataset/new","/dataset/[datasetId]","/dataset/[datasetId]/[collectionName]","/dataset/[datasetId]/[collectionName]/[...subfieldNames]","/datastore-connection","/datastore-connection/new","/datastore-connection/[id]","/fides-js-docs","/integrations","/integrations/[id]","/login","/login/[provider]","/messaging","/messaging/add-template","/messaging/[id]","/poc/ant-components","/poc/form-experiments/AntForm","/poc/form-experiments/FormikAntFormItem","/poc/form-experiments/FormikControlled","/poc/form-experiments/FormikField","/poc/form-experiments/FormikSpreadField","/poc/forms","/poc/table-migration","/privacy-requests","/privacy-requests/configure","/privacy-requests/configure/storage","/privacy-requests/[id]","/properties","/properties/add-property","/properties/[id]","/reporting/datamap","/settings/about","/settings/about/alpha","/settings/consent","/settings/consent/[configuration_id]/[purpose_id]","/settings/custom-fields","/settings/domain-records","/settings/domains","/settings/email-templates","/settings/locations","/settings/messaging-providers","/settings/messaging-providers/new","/settings/messaging-providers/[key]","/settings/organization","/settings/privacy-requests","/settings/regulations","/systems","/systems/configure/[id]","/systems/configure/[id]/test-datasets","/taxonomy","/user-management","/user-management/new","/user-management/profile/[id]"]}}("static/chunks/431-78bf05f35d7eec4f.js","static/chunks/8765-f622a35b40a7ec63.js","static/chunks/9278-08cc704317fe535e.js","static/chunks/5163-e682273cd76a7d07.js","static/chunks/409-c1256ecda1b15db6.js","static/chunks/699-8ca44b0de9fa20f0.js","static/chunks/7045-f15044a4d4525946.js","static/chunks/3662-f6a1ddca5ee42076.js","static/css/d2d4e9a6923e6730.css","static/chunks/401-ffe4e8436e1eceb9.js","static/chunks/6527-0eed08abe252a918.js","static/chunks/8002-25fd174aec9b077b.js","static/chunks/5277-e8a036319456127f.js","static/chunks/9951-651d521d9a02b6df.js","static/chunks/6416-18d438ff85d807f8.js","static/chunks/3923-a551756b413367ea.js","static/chunks/6419-d0c00d661b01f8fa.js","static/chunks/6084-2cd165179c428a6f.js","static/chunks/2040-ab6212a3074f34f9.js","static/chunks/5574-b8c4cba5a6938c00.js","static/chunks/3585-451504ea5ed7a1ea.js","static/chunks/6882-447f15e87b8c48a5.js","static/chunks/7725-dd6736855807936a.js","static/css/10994e916bc9a00a.css","static/chunks/9226-2f960b7ca530642a.js","static/chunks/4718-6585c97c26647e65.js","static/chunks/502-a40d39e615f7b664.js","static/chunks/7476-0b6e114658b15eaa.js","static/css/972dc7eef106ee7c.css","static/chunks/3700-2a7094f112a1608a.js","static/css/304c6f148886a8d4.css","static/chunks/796-e07ac2c543f569e3.js","static/chunks/6853-7004a8c420b1ca02.js","static/chunks/1817-17079d2f8cf94941.js","static/chunks/6954-599f2de2c902e9b2.js","static/chunks/5783-8de76df87af55e98.js","static/chunks/3872-3514b712afd683c0.js","static/chunks/3855-12ee1dfbbe47fd28.js","static/chunks/7929-919e2dff24e40397.js","static/chunks/5309-3b6cf0cc9d0c6a83.js","static/chunks/9046-2a332fe338535c84.js","static/chunks/504-afd3588f1908ac33.js","static/chunks/1467-8808ec8836e033f9.js","static/chunks/4608-96f480766541124b.js","static/chunks/9187-7438242f0d380bb0.js","static/chunks/1316-2606e19807c08aa5.js","static/chunks/155-88303b05c6e115a5.js","static/chunks/7630-e7ea13be69c118a1.js","static/chunks/2921-66f65496c3a09316.js","static/chunks/4558-de5ced790b3380dc.js","static/chunks/5185-33f50cf9ae17b42e.js","static/chunks/1115-7888473b3dc28cda.js","static/chunks/9826-c02be5882205bbbc.js","static/chunks/9037-453224ba3ee65b13.js","static/chunks/7158-835ba42fd881d8dd.js","static/chunks/3696-c25dc8d1b0e1aee1.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB();