ethyca-fides 2.57.1b9__py2.py3-none-any.whl → 2.57.1rc0__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (295) hide show
  1. {ethyca_fides-2.57.1b9.dist-info → ethyca_fides-2.57.1rc0.dist-info}/METADATA +1 -1
  2. {ethyca_fides-2.57.1b9.dist-info → ethyca_fides-2.57.1rc0.dist-info}/RECORD +228 -243
  3. fides/_version.py +3 -3
  4. fides/api/api/v1/endpoints/config_endpoints.py +2 -4
  5. fides/api/api/v1/endpoints/generic_overrides.py +6 -48
  6. fides/api/models/asset.py +18 -37
  7. fides/api/models/attachment.py +13 -11
  8. fides/api/models/comment.py +17 -17
  9. fides/api/models/connectionconfig.py +1 -1
  10. fides/api/models/detection_discovery.py +0 -12
  11. fides/api/models/location_regulation_selections.py +0 -1
  12. fides/api/models/{privacy_request/privacy_request.py → privacy_request.py} +691 -82
  13. fides/api/models/sql_models.py +5 -28
  14. fides/api/oauth/jwt.py +0 -18
  15. fides/api/oauth/utils.py +11 -11
  16. fides/api/schemas/dataset.py +2 -22
  17. fides/api/schemas/saas/strategy_configuration.py +0 -1
  18. fides/api/service/pagination/pagination_strategy_cursor.py +1 -15
  19. fides/api/service/pagination/pagination_strategy_link.py +1 -1
  20. fides/api/tasks/storage.py +111 -12
  21. fides/config/__init__.py +1 -1
  22. fides/data/language/languages.yml +0 -2
  23. fides/data/location/locations.yml +1 -244
  24. fides/ui-build/static/admin/404.html +1 -1
  25. fides/ui-build/static/admin/_next/static/chunks/{1150-035a721a04f4451e.js → 1150-73440d7b319558e8.js} +1 -1
  26. fides/ui-build/static/admin/_next/static/chunks/1995-0e4fc4f7b44ed72b.js +1 -0
  27. fides/ui-build/static/admin/_next/static/chunks/{2397-ee53235fb21b5e97.js → 2397-7177ecf4ebe68feb.js} +1 -1
  28. fides/ui-build/static/admin/_next/static/chunks/{255-7db55b0e3a0f9dea.js → 255-bf1797f78249d090.js} +1 -1
  29. fides/ui-build/static/admin/_next/static/chunks/2780-8328de94968d05e4.js +4 -0
  30. fides/ui-build/static/admin/_next/static/chunks/3005-373de16453ed7eea.js +1 -0
  31. fides/ui-build/static/admin/_next/static/chunks/{3086-b5054ec2c75700b9.js → 3086-be6b52546c3efc90.js} +1 -1
  32. fides/ui-build/static/admin/_next/static/chunks/3320-87c75df57a47487e.js +1 -0
  33. fides/ui-build/static/admin/_next/static/chunks/3627-fb83adac32c128e6.js +1 -0
  34. fides/ui-build/static/admin/_next/static/chunks/3662-420d9807c30008ab.js +1 -0
  35. fides/ui-build/static/admin/_next/static/chunks/{3855-b6b7865dedd7bc2a.js → 3855-5c7b11871f59e0e0.js} +1 -1
  36. fides/ui-build/static/admin/_next/static/chunks/{3872-4e053c20d546f027.js → 3872-f3d5054bdc584eaa.js} +1 -1
  37. fides/ui-build/static/admin/_next/static/chunks/3949-9888699e2ac564c4.js +1 -0
  38. fides/ui-build/static/admin/_next/static/chunks/3967-845c902667e47c4f.js +1 -0
  39. fides/ui-build/static/admin/_next/static/chunks/3e38ba78-4487e45fd4ed2479.js +2 -0
  40. fides/ui-build/static/admin/_next/static/chunks/4481-ca8d2c75d634b6bc.js +1 -0
  41. fides/ui-build/static/admin/_next/static/chunks/4723-81d28e5be5c7b6d7.js +1 -0
  42. fides/ui-build/static/admin/_next/static/chunks/4833-a85bd5d25ebc40c4.js +1 -0
  43. fides/ui-build/static/admin/_next/static/chunks/5246-9fc6af1a6499e0a4.js +1 -0
  44. fides/ui-build/static/admin/_next/static/chunks/{5258-0658dc2274df6832.js → 5258-3a650be9142cf914.js} +1 -1
  45. fides/ui-build/static/admin/_next/static/chunks/{5480-f49696df5e8ae500.js → 5480-f5bec5e881f72f8d.js} +1 -1
  46. fides/ui-build/static/admin/_next/static/chunks/{5487-3ad50d21cdbc9209.js → 5487-d96e1abc93f92631.js} +1 -1
  47. fides/ui-build/static/admin/_next/static/chunks/5574-a4047e826a8cd4c3.js +1 -0
  48. fides/ui-build/static/admin/_next/static/chunks/{5826-e5dcb4e68cfe6289.js → 5826-16e497af363a0cbc.js} +1 -1
  49. fides/ui-build/static/admin/_next/static/chunks/5834-bd9ed01c4ab2ef5c.js +1 -0
  50. fides/ui-build/static/admin/_next/static/chunks/{9014-eeae6f581158e645.js → 5908-532dfbc9d930f635.js} +1 -1
  51. fides/ui-build/static/admin/_next/static/chunks/5960-8895f51b30c35798.js +1 -0
  52. fides/ui-build/static/admin/_next/static/chunks/{5973-9c58e4cce2f343a8.js → 5973-67c7562997f7d5cb.js} +1 -1
  53. fides/ui-build/static/admin/_next/static/chunks/6277-515c922445b8edc5.js +1 -0
  54. fides/ui-build/static/admin/_next/static/chunks/{6315-fa1519cdf080f42d.js → 6315-dee79f6861c94d2d.js} +1 -1
  55. fides/ui-build/static/admin/_next/static/chunks/{6372-ca9c12ac8902365b.js → 6372-f1b54f3cb4888660.js} +1 -1
  56. fides/ui-build/static/admin/_next/static/chunks/{6853-8941824350c3c1a8.js → 6853-cacea421af3bfc26.js} +1 -1
  57. fides/ui-build/static/admin/_next/static/chunks/6954-6eb480eb132239c3.js +1 -0
  58. fides/ui-build/static/admin/_next/static/chunks/7044-9dc90893067f38ae.js +1 -0
  59. fides/ui-build/static/admin/_next/static/chunks/{7088.eb76fca286e5f2e6.js → 7088.0e7c92a7cbb57562.js} +1 -1
  60. fides/ui-build/static/admin/_next/static/chunks/{7751-a8f31c062d4cb09d.js → 7751-25e0c1307988ffd7.js} +1 -1
  61. fides/ui-build/static/admin/_next/static/chunks/{79-f9b948ebb186900f.js → 79-ba88d0cf4c65aaa2.js} +1 -1
  62. fides/ui-build/static/admin/_next/static/chunks/7980-2597c279c30fbcda.js +1 -0
  63. fides/ui-build/static/admin/_next/static/chunks/7c79804f.26834f883d5ad770.js +1 -0
  64. fides/ui-build/static/admin/_next/static/chunks/{8433-b3008ecaf9834e7f.js → 8433-969280d321d1c3a2.js} +1 -1
  65. fides/ui-build/static/admin/_next/static/chunks/{8499-43606100edf42fdf.js → 8499-07507004e8275df2.js} +1 -1
  66. fides/ui-build/static/admin/_next/static/chunks/8837-cf26e5ca1ae5aaf5.js +1 -0
  67. fides/ui-build/static/admin/_next/static/chunks/{9046-04bd7becea207cb1.js → 9046-80f1ea44f89fe32c.js} +1 -1
  68. fides/ui-build/static/admin/_next/static/chunks/9282-1a5a2f6f4d9ed586.js +1 -0
  69. fides/ui-build/static/admin/_next/static/chunks/{9392.da35a8e778812d91.js → 9392.97b2e3327dceb7c9.js} +1 -1
  70. fides/ui-build/static/admin/_next/static/chunks/9676.f4d5977a5f148797.js +1 -0
  71. fides/ui-build/static/admin/_next/static/chunks/9767-4c591bd478c72650.js +1 -0
  72. fides/ui-build/static/admin/_next/static/chunks/{9999-637e0e5341f15f4a.js → 9999-f2e40d5b13343220.js} +1 -1
  73. fides/ui-build/static/admin/_next/static/chunks/{main-app-94a0711202e08b15.js → main-app-2650f704701c6a7b.js} +1 -1
  74. fides/ui-build/static/admin/_next/static/chunks/main-ce7f38a12ea8c223.js +1 -0
  75. fides/ui-build/static/admin/_next/static/chunks/pages/{404-b202c0d8f6fc75c3.js → 404-1087258931760074.js} +1 -1
  76. fides/ui-build/static/admin/_next/static/chunks/pages/_app-9ceff88561dc1250.js +909 -0
  77. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/{manual-c2705210ce986109.js → manual-d7f60624cbc12217.js} +1 -1
  78. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/{multiple-ba975134a85588f8.js → multiple-18b0b521255289a3.js} +1 -1
  79. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems-136bcbd20ac59bf5.js +1 -0
  80. fides/ui-build/static/admin/_next/static/chunks/pages/{ant-poc-b9932971a479f3a7.js → ant-poc-b3b4d0a98450ffd1.js} +1 -1
  81. fides/ui-build/static/admin/_next/static/chunks/pages/consent/configure/{add-vendors-b34e5324461d0c87.js → add-vendors-64f83e9a2b777bf3.js} +1 -1
  82. fides/ui-build/static/admin/_next/static/chunks/pages/consent/configure-e11ace4f273ebb47.js +1 -0
  83. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience/{[id]-cf51752eb0902233.js → [id]-443e6dd191ce5588.js} +1 -1
  84. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience/{new-be194737b41ccec9.js → new-36162d5bea29dcc2.js} +1 -1
  85. fides/ui-build/static/admin/_next/static/chunks/pages/consent/{privacy-experience-c946b33b0322b8ad.js → privacy-experience-35e9df60b21e21a6.js} +1 -1
  86. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{[id]-72251b48e2e03a1e.js → [id]-2d651499c07d12d9.js} +1 -1
  87. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{new-9611dd42856d6062.js → new-36e57d2f2446be82.js} +1 -1
  88. fides/ui-build/static/admin/_next/static/chunks/pages/consent/{privacy-notices-ea57f9d6ad17e957.js → privacy-notices-da37afbe5ec81339.js} +1 -1
  89. fides/ui-build/static/admin/_next/static/chunks/pages/consent/{properties-e5748812ba055a56.js → properties-c57b209feef7c2da.js} +1 -1
  90. fides/ui-build/static/admin/_next/static/chunks/pages/consent/{reporting-ae66e1a7e146a4de.js → reporting-97fea4ac45093cbd.js} +1 -1
  91. fides/ui-build/static/admin/_next/static/chunks/pages/{consent-39d65f13cc8f1cf8.js → consent-24bef021ee71e36c.js} +1 -1
  92. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]/{[resourceUrn]-ac033a16f043e6f9.js → [resourceUrn]-6cbd79481199812d.js} +1 -1
  93. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/{[projectUrn]-a29850536c85d4b8.js → [projectUrn]-46b9790da2fec05a.js} +1 -1
  94. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/{projects-c44ce244122e96d5.js → projects-1f965b9c496071d1.js} +1 -1
  95. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/resources/{[resourceUrn]-71e26d262afcaea5.js → [resourceUrn]-e7833c1c606081a9.js} +1 -1
  96. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/{resources-305555b74c357bf2.js → resources-bed368d048ea6883.js} +1 -1
  97. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog-942d68a88b321067.js +1 -0
  98. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]/[systemId]-00526324583139ab.js +1 -0
  99. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]-f0ab51d0d5f995de.js +1 -0
  100. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center-2220c30c3863b5a5.js +1 -0
  101. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{activity-11b3ce9f61d9bfe9.js → activity-1d7936f05d23097f.js} +1 -1
  102. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/detection/{[resourceUrn]-054ca46a782e99a5.js → [resourceUrn]-68122dbf449a11b4.js} +1 -1
  103. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{detection-b75dd3e4306ac18e.js → detection-0ceaf3c555e84714.js} +1 -1
  104. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/discovery/{[resourceUrn]-1da20aeb6fc995e4.js → [resourceUrn]-22c27fe0f898ad2a.js} +1 -1
  105. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{discovery-cad50b0cc6d1050c.js → discovery-8f2b102e19b0b8f2.js} +1 -1
  106. fides/ui-build/static/admin/_next/static/chunks/pages/{datamap-8cb714cdd44ac40e.js → datamap-9cd0c40bef77b120.js} +1 -1
  107. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]/[...subfieldNames]-ab9bc1a3640547db.js +1 -0
  108. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]-17ec8385bb1fa6d4.js +1 -0
  109. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/{[datasetId]-6ba18f92ba561114.js → [datasetId]-e14c1c07658f8a10.js} +1 -1
  110. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/new-740824dfa6823e26.js +1 -0
  111. fides/ui-build/static/admin/_next/static/chunks/pages/dataset-5541ecd2f62711a5.js +1 -0
  112. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/{[id]-bbe1ca2793798e6b.js → [id]-0616437e1a82d3ed.js} +1 -1
  113. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/{new-abc17fef69cd951b.js → new-f8218440494e8532.js} +1 -1
  114. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection-b8eaa9b9d3832b30.js +1 -0
  115. fides/ui-build/static/admin/_next/static/chunks/pages/{index-bfaacdb55a5a6c9f.js → index-94e6d589c4edf360.js} +1 -1
  116. fides/ui-build/static/admin/_next/static/chunks/pages/integrations/[id]-a6448ce6ba7f0cf5.js +1 -0
  117. fides/ui-build/static/admin/_next/static/chunks/pages/integrations-1a6965d78bfb26b0.js +1 -0
  118. fides/ui-build/static/admin/_next/static/chunks/pages/messaging/{[id]-ad02e019b2467958.js → [id]-6b032de0a6c2c400.js} +1 -1
  119. fides/ui-build/static/admin/_next/static/chunks/pages/messaging/{add-template-f9693cb6a0b7ded8.js → add-template-c0d6ae68ff7979c6.js} +1 -1
  120. fides/ui-build/static/admin/_next/static/chunks/pages/messaging-f263e6bacf0f2d19.js +1 -0
  121. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/{[id]-fe765154315782cf.js → [id]-bbe5854b7d19b7e9.js} +1 -1
  122. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/messaging-b96ee3fea3920fcf.js +1 -0
  123. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/storage-1b0f9469cb65abfc.js +1 -0
  124. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/{configure-2987edc77388e85a.js → configure-4bad69cd42c9722c.js} +1 -1
  125. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests-eebd2f4ead19cfd6.js +1 -0
  126. fides/ui-build/static/admin/_next/static/chunks/pages/properties/{[id]-94e2faa73dd6a3e6.js → [id]-b4c808a8a0287d11.js} +1 -1
  127. fides/ui-build/static/admin/_next/static/chunks/pages/properties/{add-property-630a6a3dd6502ba6.js → add-property-5a701477b006a63b.js} +1 -1
  128. fides/ui-build/static/admin/_next/static/chunks/pages/{properties-20ca2f963906674b.js → properties-9a1899dfe052023e.js} +1 -1
  129. fides/ui-build/static/admin/_next/static/chunks/pages/reporting/datamap-a3fa3ad77730a03b.js +1 -0
  130. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{about-a49d0f84cf0cf05e.js → about-d073be113e9ca7b0.js} +1 -1
  131. fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent-4769f55b138073f7.js +1 -0
  132. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{custom-fields-52d030b1db2ca1b9.js → custom-fields-744e7bbc200557e7.js} +1 -1
  133. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{domain-records-fa42d8f18df44927.js → domain-records-c5cd5fb578de9515.js} +1 -1
  134. fides/ui-build/static/admin/_next/static/chunks/pages/settings/domains-775f55b3f80cd452.js +1 -0
  135. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{email-templates-6fd6071e2009b8f2.js → email-templates-39c7ae3602ac69b2.js} +1 -1
  136. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{locations-66c757325cb58467.js → locations-45e33ba111f8f8b0.js} +1 -1
  137. fides/ui-build/static/admin/_next/static/chunks/pages/settings/organization-14def4ca3cc9cda5.js +1 -0
  138. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{regulations-c6c239996cfa6ae8.js → regulations-94975aeab348528e.js} +1 -1
  139. fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]/test-datasets-21f26c0dc4d09e9f.js +1 -0
  140. fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/{[id]-d3ea9034461511cd.js → [id]-82d9af34546adaa2.js} +1 -1
  141. fides/ui-build/static/admin/_next/static/chunks/pages/{systems-abd68fc5ddde5482.js → systems-c320df35d51dc537.js} +1 -1
  142. fides/ui-build/static/admin/_next/static/chunks/pages/{taxonomy-16b4d75c49276add.js → taxonomy-181ea5b0ac975239.js} +1 -1
  143. fides/ui-build/static/admin/_next/static/chunks/pages/user-management/profile/{[id]-78eaf933f755bfe8.js → [id]-622e16a17a11c096.js} +1 -1
  144. fides/ui-build/static/admin/_next/static/chunks/pages/{user-management-6c9ad62479a7d03e.js → user-management-aa872b21bb835d34.js} +1 -1
  145. fides/ui-build/static/admin/_next/static/chunks/{webpack-2c7ccac5843c4d8e.js → webpack-4df2ba5ee2d40f0a.js} +1 -1
  146. fides/ui-build/static/admin/_next/static/css/957d0e4fea846ff0.css +1 -0
  147. fides/ui-build/static/admin/_next/static/rOPehh5NMs1hjog7nTw1q/_buildManifest.js +1 -0
  148. fides/ui-build/static/admin/_next/static/rOPehh5NMs1hjog7nTw1q/_ssgManifest.js +1 -0
  149. fides/ui-build/static/admin/add-systems/manual.html +1 -1
  150. fides/ui-build/static/admin/add-systems/multiple.html +1 -1
  151. fides/ui-build/static/admin/add-systems.html +1 -1
  152. fides/ui-build/static/admin/ant-poc.html +1 -1
  153. fides/ui-build/static/admin/consent/configure/add-vendors.html +1 -1
  154. fides/ui-build/static/admin/consent/configure.html +1 -1
  155. fides/ui-build/static/admin/consent/privacy-experience/[id].html +1 -1
  156. fides/ui-build/static/admin/consent/privacy-experience/new.html +1 -1
  157. fides/ui-build/static/admin/consent/privacy-experience.html +1 -1
  158. fides/ui-build/static/admin/consent/privacy-notices/[id].html +1 -1
  159. fides/ui-build/static/admin/consent/privacy-notices/new.html +1 -1
  160. fides/ui-build/static/admin/consent/privacy-notices.html +1 -1
  161. fides/ui-build/static/admin/consent/properties.html +1 -1
  162. fides/ui-build/static/admin/consent/reporting.html +1 -1
  163. fides/ui-build/static/admin/consent.html +1 -1
  164. fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn].html +1 -1
  165. fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn].html +1 -1
  166. fides/ui-build/static/admin/data-catalog/[systemId]/projects.html +1 -1
  167. fides/ui-build/static/admin/data-catalog/[systemId]/resources/[resourceUrn].html +1 -1
  168. fides/ui-build/static/admin/data-catalog/[systemId]/resources.html +1 -1
  169. fides/ui-build/static/admin/data-catalog.html +1 -1
  170. fides/ui-build/static/admin/data-discovery/action-center/[monitorId]/[systemId].html +1 -1
  171. fides/ui-build/static/admin/data-discovery/action-center/[monitorId].html +1 -1
  172. fides/ui-build/static/admin/data-discovery/action-center.html +1 -1
  173. fides/ui-build/static/admin/data-discovery/activity.html +1 -1
  174. fides/ui-build/static/admin/data-discovery/detection/[resourceUrn].html +1 -1
  175. fides/ui-build/static/admin/data-discovery/detection.html +1 -1
  176. fides/ui-build/static/admin/data-discovery/discovery/[resourceUrn].html +1 -1
  177. fides/ui-build/static/admin/data-discovery/discovery.html +1 -1
  178. fides/ui-build/static/admin/datamap.html +1 -1
  179. fides/ui-build/static/admin/dataset/[datasetId]/[collectionName]/[...subfieldNames].html +1 -1
  180. fides/ui-build/static/admin/dataset/[datasetId]/[collectionName].html +1 -1
  181. fides/ui-build/static/admin/dataset/[datasetId].html +1 -1
  182. fides/ui-build/static/admin/dataset/new.html +1 -1
  183. fides/ui-build/static/admin/dataset.html +1 -1
  184. fides/ui-build/static/admin/datastore-connection/[id].html +1 -1
  185. fides/ui-build/static/admin/datastore-connection/new.html +1 -1
  186. fides/ui-build/static/admin/datastore-connection.html +1 -1
  187. fides/ui-build/static/admin/index.html +1 -1
  188. fides/ui-build/static/admin/integrations/[id].html +1 -1
  189. fides/ui-build/static/admin/integrations.html +1 -1
  190. fides/ui-build/static/admin/lib/fides-ext-gpp.js +1 -1
  191. fides/ui-build/static/admin/lib/fides-headless.js +1 -1
  192. fides/ui-build/static/admin/lib/fides-tcf.js +3 -3
  193. fides/ui-build/static/admin/lib/fides.js +2 -2
  194. fides/ui-build/static/admin/login/[provider].html +1 -1
  195. fides/ui-build/static/admin/login.html +1 -1
  196. fides/ui-build/static/admin/messaging/[id].html +1 -1
  197. fides/ui-build/static/admin/messaging/add-template.html +1 -1
  198. fides/ui-build/static/admin/messaging.html +1 -1
  199. fides/ui-build/static/admin/privacy-requests/[id].html +1 -1
  200. fides/ui-build/static/admin/privacy-requests/configure/messaging.html +1 -1
  201. fides/ui-build/static/admin/privacy-requests/configure/storage.html +1 -1
  202. fides/ui-build/static/admin/privacy-requests/configure.html +1 -1
  203. fides/ui-build/static/admin/privacy-requests.html +1 -1
  204. fides/ui-build/static/admin/properties/[id].html +1 -1
  205. fides/ui-build/static/admin/properties/add-property.html +1 -1
  206. fides/ui-build/static/admin/properties.html +1 -1
  207. fides/ui-build/static/admin/reporting/datamap.html +1 -1
  208. fides/ui-build/static/admin/settings/about.html +1 -1
  209. fides/ui-build/static/admin/settings/consent.html +1 -1
  210. fides/ui-build/static/admin/settings/custom-fields.html +1 -1
  211. fides/ui-build/static/admin/settings/domain-records.html +1 -1
  212. fides/ui-build/static/admin/settings/domains.html +1 -1
  213. fides/ui-build/static/admin/settings/email-templates.html +1 -1
  214. fides/ui-build/static/admin/settings/locations.html +1 -1
  215. fides/ui-build/static/admin/settings/organization.html +1 -1
  216. fides/ui-build/static/admin/settings/regulations.html +1 -1
  217. fides/ui-build/static/admin/systems/configure/[id]/test-datasets.html +1 -1
  218. fides/ui-build/static/admin/systems/configure/[id].html +1 -1
  219. fides/ui-build/static/admin/systems.html +1 -1
  220. fides/ui-build/static/admin/taxonomy.html +1 -1
  221. fides/ui-build/static/admin/user-management/new.html +1 -1
  222. fides/ui-build/static/admin/user-management/profile/[id].html +1 -1
  223. fides/ui-build/static/admin/user-management.html +1 -1
  224. fides/api/alembic/migrations/versions/1d2f04ac19f2_add_page_column_to_asset_table.py +0 -49
  225. fides/api/alembic/migrations/versions/7c3fbee90c78_add_user_assigned_data_uses_and_system_.py +0 -54
  226. fides/api/alembic/migrations/versions/9a1eacd2666b_add_description_column_to_asset.py +0 -25
  227. fides/api/models/privacy_request/__init__.py +0 -44
  228. fides/api/models/privacy_request/consent.py +0 -155
  229. fides/api/models/privacy_request/execution_log.py +0 -108
  230. fides/api/models/privacy_request/provided_identity.py +0 -149
  231. fides/api/models/privacy_request/request_task.py +0 -284
  232. fides/api/models/privacy_request/webhook.py +0 -94
  233. fides/api/service/storage/s3.py +0 -193
  234. fides/api/service/storage/util.py +0 -10
  235. fides/ui-build/static/admin/_next/static/chunks/1100-053fc6b76c65a00f.js +0 -1
  236. fides/ui-build/static/admin/_next/static/chunks/1376-5cea5ef9362215e8.js +0 -1
  237. fides/ui-build/static/admin/_next/static/chunks/2fbcc6de-a6c61724c327e9fa.js +0 -8
  238. fides/ui-build/static/admin/_next/static/chunks/3320-5dd62a256ecfc9c3.js +0 -1
  239. fides/ui-build/static/admin/_next/static/chunks/355-8a77c9a1cd027f2e.js +0 -1
  240. fides/ui-build/static/admin/_next/static/chunks/3615-5e2d062d684b8fa1.js +0 -1
  241. fides/ui-build/static/admin/_next/static/chunks/4060-8d165e1236ea521a.js +0 -1
  242. fides/ui-build/static/admin/_next/static/chunks/4481-142e5a922d5a5548.js +0 -1
  243. fides/ui-build/static/admin/_next/static/chunks/4723-0a3c5e2ce143a7d0.js +0 -1
  244. fides/ui-build/static/admin/_next/static/chunks/5277-e8a036319456127f.js +0 -1
  245. fides/ui-build/static/admin/_next/static/chunks/570-c99f07161bd339cd.js +0 -1
  246. fides/ui-build/static/admin/_next/static/chunks/605-e692e9cfea2e2cb8.js +0 -1
  247. fides/ui-build/static/admin/_next/static/chunks/6060-cb1ab5be7067bf7b.js +0 -4
  248. fides/ui-build/static/admin/_next/static/chunks/6527-0eed08abe252a918.js +0 -1
  249. fides/ui-build/static/admin/_next/static/chunks/678d4732-50255cc09048e643.js +0 -2
  250. fides/ui-build/static/admin/_next/static/chunks/6954-3b887fb444f9228c.js +0 -1
  251. fides/ui-build/static/admin/_next/static/chunks/7434-e6fc02c2dd852991.js +0 -1
  252. fides/ui-build/static/admin/_next/static/chunks/7980-4bd08957448dea32.js +0 -1
  253. fides/ui-build/static/admin/_next/static/chunks/7c79804f.7a7112aece470725.js +0 -1
  254. fides/ui-build/static/admin/_next/static/chunks/8702-d1c8296f9f6afc10.js +0 -1
  255. fides/ui-build/static/admin/_next/static/chunks/905-8ab919e7b274ed50.js +0 -8
  256. fides/ui-build/static/admin/_next/static/chunks/9187-851756440f79cd75.js +0 -1
  257. fides/ui-build/static/admin/_next/static/chunks/9282-2bfbdca45e84e810.js +0 -1
  258. fides/ui-build/static/admin/_next/static/chunks/9327-2cba327d10586683.js +0 -1
  259. fides/ui-build/static/admin/_next/static/chunks/9676.f297a1347ac09c56.js +0 -1
  260. fides/ui-build/static/admin/_next/static/chunks/9767-1a23925d2cb27b51.js +0 -1
  261. fides/ui-build/static/admin/_next/static/chunks/e3251fe7-5777b5d778e6fffa.js +0 -1
  262. fides/ui-build/static/admin/_next/static/chunks/main-24f422f93845a596.js +0 -1
  263. fides/ui-build/static/admin/_next/static/chunks/pages/_app-44256886387d7e3e.js +0 -923
  264. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems-d258f0c25fa020bf.js +0 -1
  265. fides/ui-build/static/admin/_next/static/chunks/pages/consent/configure-723cc3d4f5740ea6.js +0 -1
  266. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog-900004e402c31797.js +0 -1
  267. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]/[systemId]-5182d356672a3b02.js +0 -1
  268. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]-7c74373a4d666a3d.js +0 -1
  269. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center-02439d3aeecfb4b9.js +0 -1
  270. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]/[...subfieldNames]-d79551d4c64c398c.js +0 -1
  271. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]-7e5df4a0de7540bb.js +0 -1
  272. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/new-803c1b577ab17ae3.js +0 -1
  273. fides/ui-build/static/admin/_next/static/chunks/pages/dataset-fa743ddc7f89d76b.js +0 -1
  274. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection-a78a73b65929853a.js +0 -1
  275. fides/ui-build/static/admin/_next/static/chunks/pages/fides-js-docs-80b241bf6cddb72e.js +0 -1
  276. fides/ui-build/static/admin/_next/static/chunks/pages/integrations/[id]-d4329043219fed9b.js +0 -1
  277. fides/ui-build/static/admin/_next/static/chunks/pages/integrations-adb6aced3bdb4899.js +0 -1
  278. fides/ui-build/static/admin/_next/static/chunks/pages/messaging-1e60754abec1ee6b.js +0 -1
  279. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/messaging-f5f7a8069909ef24.js +0 -1
  280. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/storage-9f7eaad05e5b9292.js +0 -1
  281. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests-d85c0d16ba09ba35.js +0 -1
  282. fides/ui-build/static/admin/_next/static/chunks/pages/reporting/datamap-afedc48ef4e7f858.js +0 -1
  283. fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent-89524101b7279f6e.js +0 -1
  284. fides/ui-build/static/admin/_next/static/chunks/pages/settings/domains-24cba38685dc872c.js +0 -1
  285. fides/ui-build/static/admin/_next/static/chunks/pages/settings/organization-a08693d0d1e10bc8.js +0 -1
  286. fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]/test-datasets-151571cff4e85894.js +0 -1
  287. fides/ui-build/static/admin/_next/static/css/113d823fe71f6af0.css +0 -1
  288. fides/ui-build/static/admin/_next/static/css/ab65b8cc3144bfc8.css +0 -1
  289. fides/ui-build/static/admin/_next/static/yhm3LM_VFpK2KeFRFEQyN/_buildManifest.js +0 -1
  290. fides/ui-build/static/admin/_next/static/yhm3LM_VFpK2KeFRFEQyN/_ssgManifest.js +0 -1
  291. {ethyca_fides-2.57.1b9.dist-info → ethyca_fides-2.57.1rc0.dist-info}/LICENSE +0 -0
  292. {ethyca_fides-2.57.1b9.dist-info → ethyca_fides-2.57.1rc0.dist-info}/WHEEL +0 -0
  293. {ethyca_fides-2.57.1b9.dist-info → ethyca_fides-2.57.1rc0.dist-info}/entry_points.txt +0 -0
  294. {ethyca_fides-2.57.1b9.dist-info → ethyca_fides-2.57.1rc0.dist-info}/top_level.txt +0 -0
  295. /fides/ui-build/static/admin/_next/static/chunks/pages/user-management/{new-be690621a944bfe2.js → new-d6717378b42982d5.js} +0 -0
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8433],{58754:function(e,t,i){var n=i(24246),r=i(77181),s=i(70788);t.Z=e=>{let{heading:t,breadcrumbItems:i,isSticky:l=!0,children:a,rightContent:d,style:o,...c}=e;return(0,n.jsxs)("div",{...c,style:l?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...o}:{paddingBottom:"24px",...o},children:[(0,n.jsxs)(r.jqI,{justify:"space-between",children:["string"==typeof t?(0,n.jsx)(r.X6q,{className:i||a?"pb-4":void 0,fontSize:"2xl","data-testid":"page-heading",children:t}):t,d&&(0,n.jsx)("div",{"data-testid":"page-header-right-content",children:d})]}),!!i&&(0,n.jsx)(s.m,{className:a?"pb-4":void 0,items:i,"data-testid":"page-breadcrumb"}),a]})}},19904:function(e,t,i){i.d(t,{Tg:function(){return l}});var n=i(24246),r=i(16134),s=i(31793);let l=e=>(0,r.C)(s.uu).filter(t=>e.includes(t)).length>0;t.ZP=e=>{let{scopes:t,children:i}=e;return l(t)?(0,n.jsx)(n.Fragment,{children:i}):null}},14047:function(e,t,i){i.d(t,{H:function(){return s},V:function(){return n.V}});var n=i(84306),r=i(812);let s=()=>{let{errorAlert:e}=(0,n.V)();return{handleError:t=>{let i="An unexpected error occurred. Please try again.";(0,r.Ot)(t)?i=t.data.detail:(0,r.tB)(t)&&(i=t.data.detail[0].msg),e(i)}}}},84306:function(e,t,i){i.d(t,{V:function(){return s}});var n=i(24246),r=i(77181);let s=()=>{let e=(0,r.pmc)();return{errorAlert:(t,i,s)=>{let l={...s,position:(null==s?void 0:s.position)||"top",render:e=>{let{onClose:s}=e;return(0,n.jsxs)(r.bZj,{alignItems:"normal",status:"error","data-testid":"error-alert",children:[(0,n.jsx)(r.zMQ,{}),(0,n.jsxs)(r.xuv,{children:[i&&(0,n.jsx)(r.CdC,{children:i}),(0,n.jsx)(r.XaZ,{children:t})]}),(0,n.jsx)(r.PZ7,{onClick:s,position:"relative",right:0,size:"sm",top:-1})]})}};(null==s?void 0:s.id)&&e.isActive(s.id)?e.update(s.id,l):e(l)},successAlert:(t,i,s)=>{let l={...s,position:(null==s?void 0:s.position)||"top",render:e=>{let{onClose:s}=e;return(0,n.jsxs)(r.bZj,{alignItems:"normal",status:"success",variant:"subtle","data-testid":"success-alert",children:[(0,n.jsx)(r.zMQ,{}),(0,n.jsxs)(r.xuv,{children:[i&&(0,n.jsx)(r.CdC,{children:i}),(0,n.jsx)(r.XaZ,{children:t})]}),(0,n.jsx)(r.PZ7,{onClick:s,position:"relative",right:0,size:"sm",top:-1})]})}};(null==s?void 0:s.id)&&e.isActive(s.id)?e.update(s.id,l):e(l)}}}},70788:function(e,t,i){i.d(t,{m:function(){return o}});var n=i(24246),r=i(77181),s=i(79894),l=i.n(s),a=i(27378);let{Text:d}=r.AntTypography,o=e=>{let{items:t,...i}=e,s=(0,a.useMemo)(()=>null==t?void 0:t.map((e,i)=>{let s=i===t.length-1,a={...e},o=a.onClick&&!a.href;return("string"==typeof a.title&&(a.title=(0,n.jsx)(d,{style:{color:"inherit",maxWidth:s?void 0:400},ellipsis:!s,children:a.title})),o)?a.title=(0,n.jsx)(r.wpx,{type:"text",size:"small",icon:a.icon,onClick:a.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:a.title}):(a.icon&&(a.title=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"anticon align-text-bottom",children:a.icon}),a.title]})),a.href&&a.title&&(a.title=(0,n.jsx)(l(),{href:a.href,className:"ant-breadcrumb-link",children:a.title}),delete a.href)),a}),[t]);return(0,n.jsx)(r.zrq,{items:s,...i})}},57526:function(e,t,i){var n=i(24246),r=i(77181),s=i(27378);t.Z=e=>{let{isOpen:t,onClose:i,onApproveRequest:l,isLoading:a,subjectRequest:d}=e,{identity:o,identity_verified_at:c,custom_privacy_request_fields:u}=d,x=(0,s.useCallback)(()=>{l().then(()=>{i()})},[l,i]);return(0,n.jsxs)(r.u_l,{isOpen:t,onClose:i,size:"lg",isCentered:!0,children:[(0,n.jsx)(r.ZAr,{}),(0,n.jsxs)(r.hzk,{children:[(0,n.jsx)(r.xBx,{children:"Privacy request approval"}),(0,n.jsxs)(r.fef,{paddingTop:0,paddingBottom:0,children:[(0,n.jsx)(r.xvT,{color:"gray.500",fontSize:"14px",marginBottom:4,children:"Are you sure you want to approve this privacy request?"}),(0,n.jsxs)(r.QI$,{children:[Object.entries(o).filter(e=>{let[,{value:t}]=e;return null!==t}).map(e=>{let[t,{value:i,label:s}]=e;return(0,n.jsx)(r.HCh,{children:(0,n.jsxs)(r.kCb,{alignItems:"flex-start",children:[(0,n.jsxs)(r.xvT,{mr:2,fontSize:"sm",color:"gray.900",fontWeight:"500",children:[s,":"]}),(0,n.jsx)(r.xvT,{color:"gray.600",fontWeight:"500",fontSize:"sm",mr:2,children:i}),"(",c?"Verified":"Unverified",")"]},t)},t)}),u&&Object.entries(u).filter(e=>{let[,t]=e;return t.value}).map(e=>{let[t,i]=e;return(0,n.jsx)(r.HCh,{children:(0,n.jsxs)(r.kCb,{alignItems:"flex-start",children:[(0,n.jsxs)(r.xvT,{mr:2,fontSize:"sm",color:"gray.900",fontWeight:"500",children:[i.label,":"]}),(0,n.jsxs)(r.xvT,{color:"gray.600",fontWeight:"500",fontSize:"sm",mr:2,children:[Array.isArray(i.value)?i.value.join(", "):i.value," "]}),"(Unverified)"]},t)},t)})]})]}),(0,n.jsx)(r.mzw,{children:(0,n.jsxs)(r.MIq,{columns:2,width:"100%",children:[(0,n.jsx)(r.wpx,{onClick:i,className:"mr-3","data-testid":"cancel-btn",children:"Cancel"}),(0,n.jsx)(r.wpx,{type:"primary","data-testid":"continue-btn",onClick:x,loading:a,children:"Confirm"})]})})]})]})}},66548:function(e,t,i){var n=i(24246),r=i(40324),s=i(77181),l=i(34090),a=i(27378),d=i(55484);let o={denialReason:""};t.Z=e=>{let{isOpen:t,onClose:i,onDenyRequest:c}=e,u=(0,a.useCallback)((e,t)=>{let{setSubmitting:n}=t;c(e.denialReason).then(()=>{n(!1),i()})},[c,i]);return(0,n.jsxs)(s.u_l,{isOpen:t,onClose:i,isCentered:!0,returnFocusOnClose:!1,children:[(0,n.jsx)(s.ZAr,{}),(0,n.jsx)(s.hzk,{width:"100%",maxWidth:"456px","data-testid":"deny-privacy-request-modal",children:(0,n.jsx)(l.J9,{initialValues:o,validationSchema:d.Ry({denialReason:d.Z_().required().label("Reason for denial")}),onSubmit:u,children:e=>{let{isSubmitting:t,dirty:a,isValid:d}=e;return(0,n.jsxs)(l.l0,{children:[(0,n.jsx)(s.xBx,{children:"Privacy request denial"}),(0,n.jsx)(s.fef,{color:"gray.500",fontSize:"14px",children:"Please enter a reason for denying this privacy request. Please note: this can be seen by the user in their notification email."}),(0,n.jsx)(s.fef,{children:(0,n.jsx)(r.Ks,{name:"denialReason",textAreaProps:{focusBorderColor:"primary.600",resize:"none"}})}),(0,n.jsxs)(s.mzw,{className:"flex w-full gap-4",children:[(0,n.jsx)(s.wpx,{disabled:t,onClick:i,className:"grow",children:"Cancel"}),(0,n.jsx)(s.wpx,{htmlType:"submit",type:"primary",disabled:!a||!d,loading:t,className:"grow","data-testid":"deny-privacy-request-modal-btn",children:"Confirm"})]})]})}})})]})}},45489:function(e,t,i){i.d(t,{Z:function(){return r}});var n=i(90867);let r=e=>{let{subjectRequest:t}=e,[i,r]=(0,n.RW)({fixedCacheKey:t.id}),[s,l]=(0,n.F1)({fixedCacheKey:t.id}),[a,d]=(0,n.rC)({fixedCacheKey:t.id}),o=l.isLoading||r.isLoading;return{approveRequest:i,approveRequestResult:r,denyRequest:s,denyRequestResult:l,handleApproveRequest:()=>i(t),handleDenyRequest:e=>s({id:t.id,reason:e}),handleDeleteRequest:()=>a(t),softDeleteRequestResult:d,isLoading:o}}}}]);
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8433],{58754:function(e,t,i){var n=i(24246),r=i(56351),s=i(70788);t.Z=e=>{let{heading:t,breadcrumbItems:i,isSticky:l=!0,children:a,rightContent:d,style:o,...c}=e;return(0,n.jsxs)("div",{...c,style:l?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...o}:{paddingBottom:"24px",...o},children:[(0,n.jsxs)(r.jqI,{justify:"space-between",children:["string"==typeof t?(0,n.jsx)(r.X6q,{className:i||a?"pb-4":void 0,fontSize:"2xl","data-testid":"page-heading",children:t}):t,d&&(0,n.jsx)("div",{"data-testid":"page-header-right-content",children:d})]}),!!i&&(0,n.jsx)(s.m,{className:a?"pb-4":void 0,items:i,"data-testid":"page-breadcrumb"}),a]})}},19904:function(e,t,i){i.d(t,{Tg:function(){return l}});var n=i(24246),r=i(16134),s=i(31793);let l=e=>(0,r.C)(s.uu).filter(t=>e.includes(t)).length>0;t.ZP=e=>{let{scopes:t,children:i}=e;return l(t)?(0,n.jsx)(n.Fragment,{children:i}):null}},14047:function(e,t,i){i.d(t,{H:function(){return s},V:function(){return n.V}});var n=i(84306),r=i(812);let s=()=>{let{errorAlert:e}=(0,n.V)();return{handleError:t=>{let i="An unexpected error occurred. Please try again.";(0,r.Ot)(t)?i=t.data.detail:(0,r.tB)(t)&&(i=t.data.detail[0].msg),e(i)}}}},84306:function(e,t,i){i.d(t,{V:function(){return s}});var n=i(24246),r=i(56351);let s=()=>{let e=(0,r.pmc)();return{errorAlert:(t,i,s)=>{let l={...s,position:(null==s?void 0:s.position)||"top",render:e=>{let{onClose:s}=e;return(0,n.jsxs)(r.bZj,{alignItems:"normal",status:"error","data-testid":"error-alert",children:[(0,n.jsx)(r.zMQ,{}),(0,n.jsxs)(r.xuv,{children:[i&&(0,n.jsx)(r.CdC,{children:i}),(0,n.jsx)(r.XaZ,{children:t})]}),(0,n.jsx)(r.PZ7,{onClick:s,position:"relative",right:0,size:"sm",top:-1})]})}};(null==s?void 0:s.id)&&e.isActive(s.id)?e.update(s.id,l):e(l)},successAlert:(t,i,s)=>{let l={...s,position:(null==s?void 0:s.position)||"top",render:e=>{let{onClose:s}=e;return(0,n.jsxs)(r.bZj,{alignItems:"normal",status:"success",variant:"subtle","data-testid":"success-alert",children:[(0,n.jsx)(r.zMQ,{}),(0,n.jsxs)(r.xuv,{children:[i&&(0,n.jsx)(r.CdC,{children:i}),(0,n.jsx)(r.XaZ,{children:t})]}),(0,n.jsx)(r.PZ7,{onClick:s,position:"relative",right:0,size:"sm",top:-1})]})}};(null==s?void 0:s.id)&&e.isActive(s.id)?e.update(s.id,l):e(l)}}}},70788:function(e,t,i){i.d(t,{m:function(){return o}});var n=i(24246),r=i(56351),s=i(79894),l=i.n(s),a=i(27378);let{Text:d}=r.AntTypography,o=e=>{let{items:t,...i}=e,s=(0,a.useMemo)(()=>null==t?void 0:t.map((e,i)=>{let s=i===t.length-1,a={...e},o=a.onClick&&!a.href;return("string"==typeof a.title&&(a.title=(0,n.jsx)(d,{style:{color:"inherit",maxWidth:s?void 0:400},ellipsis:!s,children:a.title})),o)?a.title=(0,n.jsx)(r.wpx,{type:"text",size:"small",icon:a.icon,onClick:a.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:a.title}):(a.icon&&(a.title=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"anticon align-text-bottom",children:a.icon}),a.title]})),a.href&&a.title&&(a.title=(0,n.jsx)(l(),{href:a.href,className:"ant-breadcrumb-link",children:a.title}),delete a.href)),a}),[t]);return(0,n.jsx)(r.zrq,{items:s,...i})}},57526:function(e,t,i){var n=i(24246),r=i(56351),s=i(27378);t.Z=e=>{let{isOpen:t,onClose:i,onApproveRequest:l,isLoading:a,subjectRequest:d}=e,{identity:o,identity_verified_at:c,custom_privacy_request_fields:u}=d,x=(0,s.useCallback)(()=>{l().then(()=>{i()})},[l,i]);return(0,n.jsxs)(r.u_l,{isOpen:t,onClose:i,size:"lg",isCentered:!0,children:[(0,n.jsx)(r.ZAr,{}),(0,n.jsxs)(r.hzk,{children:[(0,n.jsx)(r.xBx,{children:"Privacy request approval"}),(0,n.jsxs)(r.fef,{paddingTop:0,paddingBottom:0,children:[(0,n.jsx)(r.xvT,{color:"gray.500",fontSize:"14px",marginBottom:4,children:"Are you sure you want to approve this privacy request?"}),(0,n.jsxs)(r.QI$,{children:[Object.entries(o).filter(e=>{let[,{value:t}]=e;return null!==t}).map(e=>{let[t,{value:i,label:s}]=e;return(0,n.jsx)(r.HCh,{children:(0,n.jsxs)(r.kCb,{alignItems:"flex-start",children:[(0,n.jsxs)(r.xvT,{mr:2,fontSize:"sm",color:"gray.900",fontWeight:"500",children:[s,":"]}),(0,n.jsx)(r.xvT,{color:"gray.600",fontWeight:"500",fontSize:"sm",mr:2,children:i}),"(",c?"Verified":"Unverified",")"]},t)},t)}),u&&Object.entries(u).filter(e=>{let[,t]=e;return t.value}).map(e=>{let[t,i]=e;return(0,n.jsx)(r.HCh,{children:(0,n.jsxs)(r.kCb,{alignItems:"flex-start",children:[(0,n.jsxs)(r.xvT,{mr:2,fontSize:"sm",color:"gray.900",fontWeight:"500",children:[i.label,":"]}),(0,n.jsxs)(r.xvT,{color:"gray.600",fontWeight:"500",fontSize:"sm",mr:2,children:[Array.isArray(i.value)?i.value.join(", "):i.value," "]}),"(Unverified)"]},t)},t)})]})]}),(0,n.jsx)(r.mzw,{children:(0,n.jsxs)(r.MIq,{columns:2,width:"100%",children:[(0,n.jsx)(r.wpx,{onClick:i,className:"mr-3","data-testid":"cancel-btn",children:"Cancel"}),(0,n.jsx)(r.wpx,{type:"primary","data-testid":"continue-btn",onClick:x,loading:a,children:"Confirm"})]})})]})]})}},66548:function(e,t,i){var n=i(24246),r=i(40324),s=i(56351),l=i(34090),a=i(27378),d=i(59389);let o={denialReason:""};t.Z=e=>{let{isOpen:t,onClose:i,onDenyRequest:c}=e,u=(0,a.useCallback)((e,t)=>{let{setSubmitting:n}=t;c(e.denialReason).then(()=>{n(!1),i()})},[c,i]);return(0,n.jsxs)(s.u_l,{isOpen:t,onClose:i,isCentered:!0,returnFocusOnClose:!1,children:[(0,n.jsx)(s.ZAr,{}),(0,n.jsx)(s.hzk,{width:"100%",maxWidth:"456px","data-testid":"deny-privacy-request-modal",children:(0,n.jsx)(l.J9,{initialValues:o,validationSchema:d.Ry({denialReason:d.Z_().required().label("Reason for denial")}),onSubmit:u,children:e=>{let{isSubmitting:t,dirty:a,isValid:d}=e;return(0,n.jsxs)(l.l0,{children:[(0,n.jsx)(s.xBx,{children:"Privacy request denial"}),(0,n.jsx)(s.fef,{color:"gray.500",fontSize:"14px",children:"Please enter a reason for denying this privacy request. Please note: this can be seen by the user in their notification email."}),(0,n.jsx)(s.fef,{children:(0,n.jsx)(r.Ks,{name:"denialReason",textAreaProps:{focusBorderColor:"primary.600",resize:"none"}})}),(0,n.jsxs)(s.mzw,{className:"flex w-full gap-4",children:[(0,n.jsx)(s.wpx,{disabled:t,onClick:i,className:"grow",children:"Cancel"}),(0,n.jsx)(s.wpx,{htmlType:"submit",type:"primary",disabled:!a||!d,loading:t,className:"grow","data-testid":"deny-privacy-request-modal-btn",children:"Confirm"})]})]})}})})]})}},45489:function(e,t,i){i.d(t,{Z:function(){return r}});var n=i(90867);let r=e=>{let{subjectRequest:t}=e,[i,r]=(0,n.RW)({fixedCacheKey:t.id}),[s,l]=(0,n.F1)({fixedCacheKey:t.id}),[a,d]=(0,n.rC)({fixedCacheKey:t.id}),o=l.isLoading||r.isLoading;return{approveRequest:i,approveRequestResult:r,denyRequest:s,denyRequestResult:l,handleApproveRequest:()=>i(t),handleDenyRequest:e=>s({id:t.id,reason:e}),handleDeleteRequest:()=>a(t),softDeleteRequestResult:d,isLoading:o}}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8499],{95492:function(e,s,t){t.d(s,{l:function(){return i}});var n=t(24246);let i=(0,t(77181).IUT)({displayName:"TrashCanSolidIcon",viewBox:"0 0 12 15",path:(0,n.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"})})},45938:function(e,s,t){t.d(s,{Gt:function(){return h},eB:function(){return m},oI:function(){return u}});var n=t(24246),i=t(34090),a=t(27378),l=t(16134),r=t(38602),d=t(58452);let o=(0,a.createRef)(),c=(0,a.createRef)(),u=()=>{let e=(0,l.T)(),s=(0,l.C)(r.DB),t=(0,a.useCallback)(()=>{c.current=void 0,o.current=void 0},[]),n=(0,a.useCallback)(()=>{e((0,r.Mr)()),c.current&&(c.current(!0),t())},[e,t]),i=(0,a.useCallback)(()=>{e((0,r.Mr)()),c.current&&(c.current(!1),t())},[e,t]);return{attemptAction:(0,a.useCallback)(()=>s?(e((0,r.h7)()),o.current||(o.current=new Promise(e=>{c.current=e})),o.current):Promise.resolve(!0),[s,e]),onConfirm:n,onClose:i}},h=e=>{let{id:s,name:t}=e,{dirty:n}=(0,i.u6)(),d=(0,l.T)();return(0,a.useEffect)(()=>(d((0,r.Zu)({id:s,name:t})),()=>{d((0,r.dz)({id:s}))}),[d,s,t]),(0,a.useEffect)(()=>{d((0,r.$p)({id:s,isDirty:n}))},[n,d,s]),null},m=()=>{let{onConfirm:e,onClose:s}=u(),t=(0,l.C)(r.uv);return(0,n.jsx)(d.Z,{isOpen:t,onClose:s,onConfirm:e,isCentered:!0,title:"Unsaved Changes",message:"You have unsaved changes"})}},84720:function(e,s,t){t.d(s,{q:function(){return p}});var n=t(24246),i=t(77181),a=t(27378),l=t(812),r=t(45938),d=t(14048),o=t(95492),c=t(34090);let u=e=>{let{systems:s,dataFlows:t,onDataFlowSystemChange:a}=e,{setFieldValue:l}=(0,c.u6)(),r=t.map(e=>e.fides_key),d=e=>{let s=t.filter(s=>s.fides_key!==e.fides_key);l("dataFlowSystems",s),a(s)};return(0,n.jsxs)(i.iA_,{size:"sm","data-testid":"assign-systems-delete-table",children:[(0,n.jsx)(i.hrZ,{children:(0,n.jsxs)(i.Tr,{children:[(0,n.jsx)(i.Th,{children:"System"}),(0,n.jsx)(i.Th,{})]})}),(0,n.jsx)(i.p3B,{children:s.filter(e=>r.includes(e.fides_key)).map(e=>(0,n.jsxs)(i.Tr,{_hover:{bg:"gray.50"},"data-testid":"row-".concat(e.fides_key),children:[(0,n.jsx)(i.Td,{children:(0,n.jsx)(i.xvT,{fontSize:"xs",lineHeight:4,fontWeight:"medium",children:e.name})}),(0,n.jsx)(i.Td,{textAlign:"end",children:(0,n.jsx)(i.wpx,{"aria-label":"Unassign data flow from system",icon:(0,n.jsx)(o.l,{}),onClick:()=>d(e),"data-testid":"unassign-btn"})})]},e.fides_key))})]})};var h=t(86780),m=e=>{let{allSystems:s,dataFlowSystems:t,onChange:a,flowType:l}=e,{setFieldValue:r}=(0,c.u6)(),d=e=>{if(t.find(s=>s.fides_key===e.fides_key)){let s=t.filter(s=>s.fides_key!==e.fides_key);r("dataFlowSystems",s),a(s)}else{let s=[...t,{fides_key:e.fides_key,type:"system"}];r("dataFlowSystems",s),a(s)}};return(0,n.jsx)(i.xuv,{overflowY:"auto",maxHeight:"300px",children:(0,n.jsxs)(i.iA_,{size:"sm","data-testid":"assign-systems-table",maxHeight:"50vh",overflowY:"scroll",children:[(0,n.jsx)(i.hrZ,{position:"sticky",top:0,background:"white",zIndex:1,children:(0,n.jsxs)(i.Tr,{children:[(0,n.jsx)(i.Th,{children:"System"}),(0,n.jsxs)(i.Th,{textAlign:"right",children:["Set as ",l]})]})}),(0,n.jsx)(i.p3B,{children:s.map(e=>{let s=!!t.find(s=>s.fides_key===e.fides_key);return(0,n.jsxs)(i.Tr,{_hover:{bg:"gray.50"},"data-testid":"row-".concat(e.fides_key),children:[(0,n.jsx)(i.Td,{children:(0,n.jsx)(i.xvT,{fontSize:"xs",lineHeight:4,fontWeight:"medium",children:e.name})}),(0,n.jsx)(i.Td,{textAlign:"right",children:(0,n.jsx)(i.rAg,{checked:s,onChange:()=>d(e),"data-testid":"assign-switch"})})]},e.fides_key)})})]})})};let f=(e,s)=>{var t,n;return(null===(t=e.name)||void 0===t?void 0:t.toLocaleLowerCase().includes(s.toLocaleLowerCase()))||(null===(n=e.description)||void 0===n?void 0:n.toLocaleLowerCase().includes(s.toLocaleLowerCase()))};var x=e=>{let{currentSystem:s,systems:t,isOpen:l,onClose:r,dataFlowSystems:d,onDataFlowSystemChange:o,flowType:u}=e,{setFieldValue:x}=(0,c.u6)(),[y,g]=(0,a.useState)(""),[C,j]=(0,a.useState)(d),p=async()=>{o(C),r()},k=0===t.length,w=(0,a.useMemo)(()=>t?t.filter(e=>e.fides_key!==s.fides_key).filter(e=>f(e,y)):[],[t,s.fides_key,y]),b=(0,a.useMemo)(()=>{let e=new Set(C.map(e=>e.fides_key));return w.every(s=>e.has(s.fides_key))},[w,C]);return(0,n.jsxs)(i.u_l,{isOpen:l,onClose:r,size:"2xl",isCentered:!0,children:[(0,n.jsx)(i.ZAr,{}),(0,n.jsxs)(i.hzk,{p:8,"data-testid":"confirmation-modal",children:[(0,n.jsxs)(i.xBx,{fontWeight:"medium",display:"flex",justifyContent:"space-between",alignItems:"center",children:[(0,n.jsxs)(i.xvT,{fontSize:"2xl",lineHeight:8,fontWeight:"semibold",children:["Configure ",u.toLocaleLowerCase()," systems"]}),(0,n.jsxs)(i.j8w,{color:"success",children:["Assigned to ",C.length," systems"]})]}),(0,n.jsx)(i.fef,{"data-testid":"assign-systems-modal-body",children:k?(0,n.jsx)(i.xvT,{children:"No systems found"}):(0,n.jsxs)(i.Kqy,{spacing:4,children:[(0,n.jsxs)(i.kCb,{justifyContent:"space-between",children:[(0,n.jsx)(i.xvT,{fontSize:"sm",flexGrow:1,fontWeight:"medium",children:"Add or remove destination systems from your data map"}),(0,n.jsx)(i.xuv,{children:(0,n.jsxs)(i.NIc,{display:"flex",alignItems:"center",children:[(0,n.jsx)(i.lXp,{fontSize:"sm",htmlFor:"assign-all-systems",mb:"0",children:"Assign all systems"}),(0,n.jsx)(i.rAg,{size:"small",id:"assign-all-systems",checked:b,onChange:e=>{if(e&&t){let e=w.map(e=>({fides_key:e.fides_key,type:"system"}));x("dataFlowSystems",e),j(e)}else j([])},"data-testid":"assign-all-systems-toggle"})]})})]}),(0,n.jsx)(h.Z,{search:y,onChange:g,placeholder:"Search for systems","data-testid":"system-search",withIcon:!0}),(0,n.jsx)(m,{flowType:u,allSystems:w,dataFlowSystems:C,onChange:j})]})}),(0,n.jsxs)(i.mzw,{justifyContent:"flex-start",children:[(0,n.jsx)(i.wpx,{onClick:r,className:"mr-2","data-testid":"cancel-btn",children:"Cancel"}),!k&&(0,n.jsx)(i.wpx,{type:"primary",onClick:p,"data-testid":"confirm-btn",children:"Confirm"})]})]})]})},y=t(46628),g=t(1315);let C={dataFlowSystems:[]},j=e=>{let{system:s,isIngress:t,isSystemTab:o}=e,h=(0,i.pmc)(),m=t?"Source":"Destination",f="".concat(m,"s"),j=(0,i.qY0)(),[p]=(0,g.qQ)(),{data:k=[]}=(0,g.K3)(),w=(0,a.useMemo)(()=>{let e=t?s.ingress:s.egress;e||(e=[]);let n=k?k.map(e=>e.fides_key):[];return e.filter(e=>n.includes(e.fides_key))},[t,s,k]),[b,v]=(0,a.useState)(w);(0,a.useEffect)(()=>{v(w)},[w]);let _=async(e,n)=>{let{dataFlowSystems:i}=e,{resetForm:a}=n,r={...s,ingress:t?i:s.ingress,egress:t?s.egress:i},d=await p(r);(0,l.D4)(d)?h((0,y.Vo)("Failed to update data flows")):h((0,y.t5)("".concat(f," updated"))),a({values:{dataFlowSystems:i}})};return(0,n.jsxs)(i.Qdk,{children:[(0,n.jsx)(i.KFZ,{height:"68px",paddingLeft:o?6:2,"data-testid":"data-flow-button-".concat(m),children:(0,n.jsxs)(i.kCb,{alignItems:"center",justifyContent:"start",flex:1,textAlign:"left",children:[(0,n.jsx)(i.xvT,{fontSize:"sm",lineHeight:5,fontWeight:"semibold",mr:2,children:f}),(0,n.jsx)(i.Vp9,{ml:2,backgroundColor:"primary.400",borderRadius:"6px",color:"white",children:b.length}),(0,n.jsx)(i.LZC,{}),(0,n.jsx)(i.XEm,{})]})}),(0,n.jsx)(i.Hk3,{backgroundColor:"gray.50",padding:6,"data-testid":"data-flow-panel-".concat(m),children:(0,n.jsx)(i.Kqy,{borderRadius:"md",backgroundColor:"gray.50","aria-selected":"true",spacing:4,"data-testid":"selected",children:(0,n.jsx)(c.J9,{initialValues:C,onSubmit:_,children:e=>{let{isSubmitting:t,dirty:a,resetForm:l}=e;return(0,n.jsxs)(c.l0,{children:[(0,n.jsx)(r.Gt,{id:"".concat(s.fides_key,":").concat(m),name:"".concat(m," Data Flow")}),(0,n.jsx)(i.wpx,{onClick:j.onOpen,type:"primary",size:"small",icon:(0,n.jsx)(d.A5,{}),iconPosition:"end",className:"mb-4","data-testid":"assign-systems-btn",children:"Configure ".concat(f.toLocaleLowerCase())}),(0,n.jsx)(u,{systems:k,dataFlows:b,onDataFlowSystemChange:v}),(0,n.jsxs)("div",{className:"mt-6 flex gap-2",children:[(0,n.jsx)(i.wpx,{disabled:!a&&b===w,onClick:()=>{v(w),l({values:{dataFlowSystems:w}})},"data-testid":"cancel-btn",children:"Cancel"}),(0,n.jsx)(i.wpx,{type:"primary",htmlType:"submit",loading:t,disabled:!a&&b===w,"data-testid":"save-btn",children:"Save"})]}),j.isOpen?(0,n.jsx)(x,{currentSystem:s,systems:k,isOpen:j.isOpen,onClose:j.onClose,dataFlowSystems:b,onDataFlowSystemChange:v,flowType:m}):null]})}})})})]})},p=e=>{let{system:s,isSystemTab:t}=e;return(0,n.jsxs)(i.UQy,{allowToggle:!0,"data-testid":"data-flow-accordion",children:[(0,n.jsx)(j,{system:s,isIngress:!0,isSystemTab:t}),(0,n.jsx)(j,{system:s,isSystemTab:t})]})}},52368:function(e,s,t){t.d(s,{f:function(){return d}});var n=t(16134),i=t(30002),a=t(28079),l=t(41966),r=t(57072);let d=e=>{let{includeDatasets:s,includeDisabled:t}=e,{isLoading:d}=(0,r.MO)(),{isLoading:o}=(0,i.te)(),{isLoading:c}=(0,a.fd)(),{isLoading:u}=(0,l.LH)({onlyUnlinkedDatasets:!1},{skip:!s}),h=(0,n.C)(r.qb),m=(0,n.C)(r.Bd),f=(0,n.C)(i.ZL),x=(0,n.C)(i.H7),y=(0,n.C)(a.U3),g=(0,n.C)(a.jp),C=(0,n.C)(l.Q4);return{allDataCategories:t?h:m,allDataSubjects:t?f:x,allDataUses:t?y:g,allDatasets:s?C:void 0,isLoading:d||o||c||u}}},31883:function(e,s,t){t.d(s,{Bw:function(){return n.Bw},D4:function(){return n.D4}});var n=t(19043)}}]);
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8499],{95492:function(e,s,t){t.d(s,{l:function(){return i}});var n=t(24246);let i=(0,t(56351).IUT)({displayName:"TrashCanSolidIcon",viewBox:"0 0 12 15",path:(0,n.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"})})},45938:function(e,s,t){t.d(s,{Gt:function(){return h},eB:function(){return m},oI:function(){return u}});var n=t(24246),i=t(34090),a=t(27378),l=t(16134),r=t(38602),d=t(58452);let o=(0,a.createRef)(),c=(0,a.createRef)(),u=()=>{let e=(0,l.T)(),s=(0,l.C)(r.DB),t=(0,a.useCallback)(()=>{c.current=void 0,o.current=void 0},[]),n=(0,a.useCallback)(()=>{e((0,r.Mr)()),c.current&&(c.current(!0),t())},[e,t]),i=(0,a.useCallback)(()=>{e((0,r.Mr)()),c.current&&(c.current(!1),t())},[e,t]);return{attemptAction:(0,a.useCallback)(()=>s?(e((0,r.h7)()),o.current||(o.current=new Promise(e=>{c.current=e})),o.current):Promise.resolve(!0),[s,e]),onConfirm:n,onClose:i}},h=e=>{let{id:s,name:t}=e,{dirty:n}=(0,i.u6)(),d=(0,l.T)();return(0,a.useEffect)(()=>(d((0,r.Zu)({id:s,name:t})),()=>{d((0,r.dz)({id:s}))}),[d,s,t]),(0,a.useEffect)(()=>{d((0,r.$p)({id:s,isDirty:n}))},[n,d,s]),null},m=()=>{let{onConfirm:e,onClose:s}=u(),t=(0,l.C)(r.uv);return(0,n.jsx)(d.Z,{isOpen:t,onClose:s,onConfirm:e,isCentered:!0,title:"Unsaved Changes",message:"You have unsaved changes"})}},84720:function(e,s,t){t.d(s,{q:function(){return p}});var n=t(24246),i=t(56351),a=t(27378),l=t(812),r=t(45938),d=t(14048),o=t(95492),c=t(34090);let u=e=>{let{systems:s,dataFlows:t,onDataFlowSystemChange:a}=e,{setFieldValue:l}=(0,c.u6)(),r=t.map(e=>e.fides_key),d=e=>{let s=t.filter(s=>s.fides_key!==e.fides_key);l("dataFlowSystems",s),a(s)};return(0,n.jsxs)(i.iA_,{size:"sm","data-testid":"assign-systems-delete-table",children:[(0,n.jsx)(i.hrZ,{children:(0,n.jsxs)(i.Tr,{children:[(0,n.jsx)(i.Th,{children:"System"}),(0,n.jsx)(i.Th,{})]})}),(0,n.jsx)(i.p3B,{children:s.filter(e=>r.includes(e.fides_key)).map(e=>(0,n.jsxs)(i.Tr,{_hover:{bg:"gray.50"},"data-testid":"row-".concat(e.fides_key),children:[(0,n.jsx)(i.Td,{children:(0,n.jsx)(i.xvT,{fontSize:"xs",lineHeight:4,fontWeight:"medium",children:e.name})}),(0,n.jsx)(i.Td,{textAlign:"end",children:(0,n.jsx)(i.wpx,{"aria-label":"Unassign data flow from system",icon:(0,n.jsx)(o.l,{}),onClick:()=>d(e),"data-testid":"unassign-btn"})})]},e.fides_key))})]})};var h=t(86780),m=e=>{let{allSystems:s,dataFlowSystems:t,onChange:a,flowType:l}=e,{setFieldValue:r}=(0,c.u6)(),d=e=>{if(t.find(s=>s.fides_key===e.fides_key)){let s=t.filter(s=>s.fides_key!==e.fides_key);r("dataFlowSystems",s),a(s)}else{let s=[...t,{fides_key:e.fides_key,type:"system"}];r("dataFlowSystems",s),a(s)}};return(0,n.jsx)(i.xuv,{overflowY:"auto",maxHeight:"300px",children:(0,n.jsxs)(i.iA_,{size:"sm","data-testid":"assign-systems-table",maxHeight:"50vh",overflowY:"scroll",children:[(0,n.jsx)(i.hrZ,{position:"sticky",top:0,background:"white",zIndex:1,children:(0,n.jsxs)(i.Tr,{children:[(0,n.jsx)(i.Th,{children:"System"}),(0,n.jsxs)(i.Th,{textAlign:"right",children:["Set as ",l]})]})}),(0,n.jsx)(i.p3B,{children:s.map(e=>{let s=!!t.find(s=>s.fides_key===e.fides_key);return(0,n.jsxs)(i.Tr,{_hover:{bg:"gray.50"},"data-testid":"row-".concat(e.fides_key),children:[(0,n.jsx)(i.Td,{children:(0,n.jsx)(i.xvT,{fontSize:"xs",lineHeight:4,fontWeight:"medium",children:e.name})}),(0,n.jsx)(i.Td,{textAlign:"right",children:(0,n.jsx)(i.rAg,{checked:s,onChange:()=>d(e),"data-testid":"assign-switch"})})]},e.fides_key)})})]})})};let f=(e,s)=>{var t,n;return(null===(t=e.name)||void 0===t?void 0:t.toLocaleLowerCase().includes(s.toLocaleLowerCase()))||(null===(n=e.description)||void 0===n?void 0:n.toLocaleLowerCase().includes(s.toLocaleLowerCase()))};var x=e=>{let{currentSystem:s,systems:t,isOpen:l,onClose:r,dataFlowSystems:d,onDataFlowSystemChange:o,flowType:u}=e,{setFieldValue:x}=(0,c.u6)(),[y,g]=(0,a.useState)(""),[C,j]=(0,a.useState)(d),p=async()=>{o(C),r()},k=0===t.length,w=(0,a.useMemo)(()=>t?t.filter(e=>e.fides_key!==s.fides_key).filter(e=>f(e,y)):[],[t,s.fides_key,y]),b=(0,a.useMemo)(()=>{let e=new Set(C.map(e=>e.fides_key));return w.every(s=>e.has(s.fides_key))},[w,C]);return(0,n.jsxs)(i.u_l,{isOpen:l,onClose:r,size:"2xl",isCentered:!0,children:[(0,n.jsx)(i.ZAr,{}),(0,n.jsxs)(i.hzk,{p:8,"data-testid":"confirmation-modal",children:[(0,n.jsxs)(i.xBx,{fontWeight:"medium",display:"flex",justifyContent:"space-between",alignItems:"center",children:[(0,n.jsxs)(i.xvT,{fontSize:"2xl",lineHeight:8,fontWeight:"semibold",children:["Configure ",u.toLocaleLowerCase()," systems"]}),(0,n.jsxs)(i.j8w,{color:"success",children:["Assigned to ",C.length," systems"]})]}),(0,n.jsx)(i.fef,{"data-testid":"assign-systems-modal-body",children:k?(0,n.jsx)(i.xvT,{children:"No systems found"}):(0,n.jsxs)(i.Kqy,{spacing:4,children:[(0,n.jsxs)(i.kCb,{justifyContent:"space-between",children:[(0,n.jsx)(i.xvT,{fontSize:"sm",flexGrow:1,fontWeight:"medium",children:"Add or remove destination systems from your data map"}),(0,n.jsx)(i.xuv,{children:(0,n.jsxs)(i.NIc,{display:"flex",alignItems:"center",children:[(0,n.jsx)(i.lXp,{fontSize:"sm",htmlFor:"assign-all-systems",mb:"0",children:"Assign all systems"}),(0,n.jsx)(i.rAg,{size:"small",id:"assign-all-systems",checked:b,onChange:e=>{if(e&&t){let e=w.map(e=>({fides_key:e.fides_key,type:"system"}));x("dataFlowSystems",e),j(e)}else j([])},"data-testid":"assign-all-systems-toggle"})]})})]}),(0,n.jsx)(h.Z,{search:y,onChange:g,placeholder:"Search for systems","data-testid":"system-search",withIcon:!0}),(0,n.jsx)(m,{flowType:u,allSystems:w,dataFlowSystems:C,onChange:j})]})}),(0,n.jsxs)(i.mzw,{justifyContent:"flex-start",children:[(0,n.jsx)(i.wpx,{onClick:r,className:"mr-2","data-testid":"cancel-btn",children:"Cancel"}),!k&&(0,n.jsx)(i.wpx,{type:"primary",onClick:p,"data-testid":"confirm-btn",children:"Confirm"})]})]})]})},y=t(46628),g=t(1315);let C={dataFlowSystems:[]},j=e=>{let{system:s,isIngress:t,isSystemTab:o}=e,h=(0,i.pmc)(),m=t?"Source":"Destination",f="".concat(m,"s"),j=(0,i.qY0)(),[p]=(0,g.qQ)(),{data:k=[]}=(0,g.K3)(),w=(0,a.useMemo)(()=>{let e=t?s.ingress:s.egress;e||(e=[]);let n=k?k.map(e=>e.fides_key):[];return e.filter(e=>n.includes(e.fides_key))},[t,s,k]),[b,v]=(0,a.useState)(w);(0,a.useEffect)(()=>{v(w)},[w]);let _=async(e,n)=>{let{dataFlowSystems:i}=e,{resetForm:a}=n,r={...s,ingress:t?i:s.ingress,egress:t?s.egress:i},d=await p(r);(0,l.D4)(d)?h((0,y.Vo)("Failed to update data flows")):h((0,y.t5)("".concat(f," updated"))),a({values:{dataFlowSystems:i}})};return(0,n.jsxs)(i.Qdk,{children:[(0,n.jsx)(i.KFZ,{height:"68px",paddingLeft:o?6:2,"data-testid":"data-flow-button-".concat(m),children:(0,n.jsxs)(i.kCb,{alignItems:"center",justifyContent:"start",flex:1,textAlign:"left",children:[(0,n.jsx)(i.xvT,{fontSize:"sm",lineHeight:5,fontWeight:"semibold",mr:2,children:f}),(0,n.jsx)(i.Vp9,{ml:2,backgroundColor:"primary.400",borderRadius:"6px",color:"white",children:b.length}),(0,n.jsx)(i.LZC,{}),(0,n.jsx)(i.XEm,{})]})}),(0,n.jsx)(i.Hk3,{backgroundColor:"gray.50",padding:6,"data-testid":"data-flow-panel-".concat(m),children:(0,n.jsx)(i.Kqy,{borderRadius:"md",backgroundColor:"gray.50","aria-selected":"true",spacing:4,"data-testid":"selected",children:(0,n.jsx)(c.J9,{initialValues:C,onSubmit:_,children:e=>{let{isSubmitting:t,dirty:a,resetForm:l}=e;return(0,n.jsxs)(c.l0,{children:[(0,n.jsx)(r.Gt,{id:"".concat(s.fides_key,":").concat(m),name:"".concat(m," Data Flow")}),(0,n.jsx)(i.wpx,{onClick:j.onOpen,type:"primary",size:"small",icon:(0,n.jsx)(d.A5,{}),iconPosition:"end",className:"mb-4","data-testid":"assign-systems-btn",children:"Configure ".concat(f.toLocaleLowerCase())}),(0,n.jsx)(u,{systems:k,dataFlows:b,onDataFlowSystemChange:v}),(0,n.jsxs)("div",{className:"mt-6 flex gap-2",children:[(0,n.jsx)(i.wpx,{disabled:!a&&b===w,onClick:()=>{v(w),l({values:{dataFlowSystems:w}})},"data-testid":"cancel-btn",children:"Cancel"}),(0,n.jsx)(i.wpx,{type:"primary",htmlType:"submit",loading:t,disabled:!a&&b===w,"data-testid":"save-btn",children:"Save"})]}),j.isOpen?(0,n.jsx)(x,{currentSystem:s,systems:k,isOpen:j.isOpen,onClose:j.onClose,dataFlowSystems:b,onDataFlowSystemChange:v,flowType:m}):null]})}})})})]})},p=e=>{let{system:s,isSystemTab:t}=e;return(0,n.jsxs)(i.UQy,{allowToggle:!0,"data-testid":"data-flow-accordion",children:[(0,n.jsx)(j,{system:s,isIngress:!0,isSystemTab:t}),(0,n.jsx)(j,{system:s,isSystemTab:t})]})}},52368:function(e,s,t){t.d(s,{f:function(){return d}});var n=t(16134),i=t(30002),a=t(28079),l=t(41966),r=t(57072);let d=e=>{let{includeDatasets:s,includeDisabled:t}=e,{isLoading:d}=(0,r.MO)(),{isLoading:o}=(0,i.te)(),{isLoading:c}=(0,a.fd)(),{isLoading:u}=(0,l.LH)({onlyUnlinkedDatasets:!1},{skip:!s}),h=(0,n.C)(r.qb),m=(0,n.C)(r.Bd),f=(0,n.C)(i.ZL),x=(0,n.C)(i.H7),y=(0,n.C)(a.U3),g=(0,n.C)(a.jp),C=(0,n.C)(l.Q4);return{allDataCategories:t?h:m,allDataSubjects:t?f:x,allDataUses:t?y:g,allDatasets:s?C:void 0,isLoading:d||o||c||u}}},31883:function(e,s,t){t.d(s,{Bw:function(){return n.Bw},D4:function(){return n.D4}});var n=t(19043)}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8837],{14441:function(e,t,r){var n,u,o=1/0,f=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,i=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a="\ud800-\udfff",c="\\u2700-\\u27bf",l="a-z\\xdf-\\xf6\\xf8-\\xff",d="A-Z\\xc0-\\xd6\\xd8-\\xde",s="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",x="['’]",p="["+s+"]",y="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",g="["+l+"]",v="[^"+a+s+"\\d+"+c+l+d+"]",h="(?:\ud83c[\udde6-\uddff]){2}",b="[\ud800-\udbff][\udc00-\udfff]",m="["+d+"]",E="(?:"+g+"|"+v+")",j="(?:"+x+"(?:d|ll|m|re|s|t|ve))?",A="(?:"+x+"(?:D|LL|M|RE|S|T|VE))?",O="(?:"+y+"|\ud83c[\udffb-\udfff])?",S="[\\ufe0e\\ufe0f]?",C="(?:\\u200d(?:"+["[^"+a+"]",h,b].join("|")+")"+S+O+")*",I="(?:"+["["+c+"]",h,b].join("|")+")"+(S+O+C),R=RegExp(x,"g"),L=RegExp(y,"g"),U=RegExp([m+"?"+g+"+"+j+"(?="+[p,m,"$"].join("|")+")","(?:"+m+"|"+v+")+"+A+"(?="+[p,m+E,"$"].join("|")+")",m+"?"+E+"+"+j,m+"+"+A,"\\d+",I].join("|"),"g"),z=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Z="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,k="object"==typeof self&&self&&self.Object===Object&&self,w=Z||k||Function("return this")(),G=(n={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"ss"},function(e){return null==n?void 0:n[e]}),N=Object.prototype.toString,T=w.Symbol,_=T?T.prototype:void 0,D=_?_.toString:void 0;function Y(e){return null==e?"":function(e){if("string"==typeof e)return e;if("symbol"==typeof(t=e)||t&&"object"==typeof t&&"[object Symbol]"==N.call(t))return D?D.call(e):"";var t,r=e+"";return"0"==r&&1/e==-o?"-0":r}(e)}var H=(u=function(e,t,r){return e+(r?"_":"")+t.toLowerCase()},function(e){var t;return function(e,t,r,n){for(var u=-1,o=e?e.length:0;++u<o;)r=t(r,e[u],u,e);return r}(function(e,t,r){if(e=Y(e),void 0===t){var n;return(n=e,z.test(n))?e.match(U)||[]:e.match(f)||[]}return e.match(t)||[]}(((t=Y(t=e))&&t.replace(i,G).replace(L,"")).replace(R,"")),u,"")});e.exports=H},56141:function(e,t,r){var n=r(32866);e.exports=function(e,t){return n(e,t)}},51959:function(e,t,r){"use strict";r.d(t,{t:function(){return C}});var n=r(24246),u=r(45487),o=r(27378);let f=(0,o.createContext)(null);var i=r(38565),a=r(96681),c=r(10010),l=r(40179);let d=(0,o.forwardRef)(function({children:e,as:t="ul",axis:r="y",onReorder:d,values:p,...y},g){let v=(0,a.h)(()=>(0,i.E)(t)),h=[],b=(0,o.useRef)(!1);return(0,u.k)(!!p,"Reorder.Group must be provided a values prop"),(0,o.useEffect)(()=>{b.current=!1}),(0,n.jsx)(v,{...y,ref:g,ignoreStrict:!0,children:(0,n.jsx)(f.Provider,{value:{axis:r,registerItem:(e,t)=>{let n=h.findIndex(t=>e===t.value);-1!==n?h[n].layout=t[r]:h.push({value:e,layout:t[r]}),h.sort(x)},updateOrder:(e,t,r)=>{if(b.current)return;let n=function(e,t,r,n){if(!n)return e;let u=e.findIndex(e=>e.value===t);if(-1===u)return e;let o=n>0?1:-1,f=e[u+o];if(!f)return e;let i=e[u],a=f.layout,d=(0,l.t)(a.min,a.max,.5);return 1===o&&i.layout.max+r>d||-1===o&&i.layout.min+r<d?(0,c.uo)(e,u,u+o):e}(h,e,t,r);h!==n&&(b.current=!0,d(n.map(s).filter(e=>-1!==p.indexOf(e))))}},children:e})})});function s(e){return e.value}function x(e,t){return e.layout.min-t.layout.min}var p=r(33234),y=r(16014);function g(e){let t=(0,a.h)(()=>(0,p.BX)(e)),{isStatic:r}=(0,o.useContext)(y._);if(r){let[,r]=(0,o.useState)(e);(0,o.useEffect)(()=>t.on("change",r),[])}return t}var v=r(71884);let h=e=>e&&"object"==typeof e&&e.mix,b=e=>h(e)?e.mix:void 0;var m=r(58868),E=r(26166);function j(e,t){let r=g(t()),n=()=>r.set(t());return n(),(0,m.L)(()=>{let t=()=>E.Wi.preRender(n,!1,!0),r=e.map(e=>e.on("change",t));return()=>{r.forEach(e=>e()),(0,E.Pn)(n)}}),r}function A(e,t){let r=(0,a.h)(()=>[]);return j(e,()=>{r.length=0;let n=e.length;for(let t=0;t<n;t++)r[t]=e[t].get();return t(r)})}var O=r(40406);function S(e,t=0){return(0,O.i)(e)?e:g(t)}let C={Group:d,Item:(0,o.forwardRef)(function({children:e,style:t={},value:r,as:c="li",onDrag:l,layout:d=!0,...s},x){let y=(0,a.h)(()=>(0,i.E)(c)),g=(0,o.useContext)(f),h={x:S(t.x),y:S(t.y)},m=function(e,t,r,n){if("function"==typeof e)return function(e){p.S1.current=[],e();let t=j(p.S1.current,e);return p.S1.current=void 0,t}(e);let u="function"==typeof t?t:function(...e){let t=!Array.isArray(e[0]),r=t?0:-1,n=e[0+r],u=e[1+r],o=e[2+r],f=e[3+r],i=(0,v.s)(u,o,{mixer:b(o[0]),...f});return t?i(n):i}(t,void 0,void 0);return Array.isArray(e)?A(e,u):A([e],([e])=>u(e))}([h.x,h.y],([e,t])=>e||t?1:"unset");(0,u.k)(!!g,"Reorder.Item must be a child of Reorder.Group");let{axis:E,registerItem:O,updateOrder:C}=g;return(0,n.jsx)(y,{drag:E,...s,dragSnapToOrigin:!0,style:{...t,x:h.x,y:h.y,zIndex:m},layout:d,onDrag:(e,t)=>{let{velocity:n}=t;n[E]&&C(r,h[E].get(),n[E]),l&&l(e,t)},onLayoutMeasure:e=>O(r,e),ref:x,ignoreStrict:!0,children:e})})}},60153:function(e,t,r){"use strict";r.d(t,{o:function(){return f}});var n=r(96681);class u{constructor(){this.componentControls=new Set}subscribe(e){return this.componentControls.add(e),()=>this.componentControls.delete(e)}start(e,t){this.componentControls.forEach(r=>{r.start(e.nativeEvent||e,t)})}}let o=()=>new u;function f(){return(0,n.h)(o)}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9046],{7617:function(e,s,t){t.d(s,{q:function(){return l}});var i=t(24246),a=t(77181);let l=e=>{let{label:s,isDisabled:t,...l}=e;return(0,i.jsx)(a.OK9,{"data-testid":"tab-".concat(s),_selected:{fontWeight:"600",color:"complimentary.500",borderColor:"complimentary.500"},fontSize:l.fontSize,fontWeight:"500",color:"gray.500",isDisabled:t||!1,children:s})};s.Z=e=>{let{data:s,border:t="partial",...r}=e;return(0,i.jsxs)(a.mQc,{colorScheme:"complimentary",...r,children:[(0,i.jsx)(a.tdY,{width:"partial"===t?"max-content":void 0,children:s.map(e=>(0,i.jsx)(l,{label:e.label,isDisabled:e.isDisabled,fontSize:r.fontSize},e.label))}),(0,i.jsx)(a.nPR,{children:s.map(e=>(0,i.jsx)(a.x45,{px:0,"data-testid":"tab-panel-".concat(e.label),children:e.content},e.label))})]})}},66379:function(e,s,t){var i=t(24246),a=t(77181),l=t(7617);s.Z=e=>{let{data:s,border:t="partial",borderWidth:r=2,...n}=e;return(0,i.jsx)(a.mQc,{colorScheme:"complimentary",...n,children:(0,i.jsx)(a.tdY,{width:"partial"===t?"max-content":void 0,borderBottomWidth:r,children:s.map(e=>(0,i.jsx)(l.q,{label:e.label,"data-testid":e.label,isDisabled:e.isDisabled,fontSize:n.fontSize},e.label))})})}},79494:function(e,s,t){var i=t(24246),a=t(77181);s.Z=e=>{let{title:s,icon:t,type:l,...r}=e;return(0,i.jsx)(a.wpx,{size:"small",type:l,"data-testid":"action-".concat(s),icon:t,iconPosition:"start",...r,children:s})}},45896:function(e,s,t){var i=t(24246),a=t(66379);s.Z=e=>{let{filterTabs:s,onChange:t,filterTabIndex:l}=e;return(0,i.jsx)(a.Z,{border:"full-width",mb:5,size:"sm",data:s,borderWidth:1,index:l,onChange:t})}},69828:function(e,s,t){t.d(s,{Y:function(){return r}});var i=t(24246),a=t(77181),l=t(70788);let r=[(0,i.jsx)(a.PJP.S9g,{},"layers"),(0,i.jsx)(a.PJP.ehp,{},"dataset"),(0,i.jsx)(a.PJP.iA_,{},"table"),(0,i.jsx)(a.PJP.$4y,{style:{transform:"rotate(-90deg)"}},"field")];s.Z=e=>{let{resourceUrn:s,parentLink:t,onPathClick:a=()=>{}}=e,n=[];if(s||n.push({title:"All activity"}),s){n.push({title:"All activity",href:t});let e=s.split(".");e.forEach((s,t)=>{0!==t&&n.push({title:s,icon:r[t-1],onClick:s=>{s.preventDefault(),a(e.slice(0,t+1).join("."))}})})}return(0,i.jsx)(l.m,{"data-testid":"results-breadcrumb",items:n})}},38347:function(e,s,t){var i=t(24246),a=t(77181),l=t(56839);s.Z=()=>(0,i.jsxs)(a.J2e,{isLazy:!0,trigger:"hover",children:[(0,i.jsx)(a.xol,{children:(0,i.jsx)(a.UOT,{color:"gray.400"})}),(0,i.jsxs)(a.yky,{bgColor:"gray.800",color:"white",fontSize:"sm",w:"auto",border:"none",children:[(0,i.jsx)(a.Ytg,{fontWeight:"semibold",border:"none",pb:0,children:"Activity legend:"}),(0,i.jsx)(a.QHN,{bgColor:"gray.800"}),(0,i.jsx)(a.baG,{border:"none",children:(0,i.jsxs)(a.MIq,{columns:2,spacing:2,children:[(0,i.jsxs)(a.xuv,{children:[(0,i.jsx)(l.Rv,{})," Change detected"]}),(0,i.jsxs)(a.xuv,{children:[(0,i.jsx)(l.$P,{})," Data labeled"]}),(0,i.jsxs)(a.xuv,{children:[(0,i.jsx)(l.zj,{})," Monitoring"]}),(0,i.jsxs)(a.xuv,{children:[(0,i.jsx)(l.dK,{})," Addition detected"]}),(0,i.jsxs)(a.xuv,{children:[(0,i.jsx)(l.Kr,{})," Unmonitored"]}),(0,i.jsxs)(a.xuv,{children:[(0,i.jsx)(l.q1,{})," Removal detected"]})]})})]})]})},47182:function(e,s,t){var i=t(86677),a=t(77830);s.Z=()=>{let e=(0,i.useRouter)();return{monitorId:e.query.monitorId,resourceUrn:e.query.resourceUrn,navigateToDetectionResults:s=>{let{resourceUrn:t,filterTabIndex:i}=s;e.push({pathname:a.dS,query:{resourceUrn:t,filterTabIndex:i}})},navigateToDiscoveryResults:s=>{let{resourceUrn:t,filterTabIndex:i}=s;e.push({pathname:a.Sj,query:{resourceUrn:t,filterTabIndex:i}})}}}},11904:function(e,s,t){t.d(s,{Z:function(){return F}});var i,a,l=t(24246),r=t(59003),n=t(92222),o=t(77181),d=t(86677),c=t(27378),u=t(14481),x=t(45896),g=t(70675),h=t(72625),j=t(79947),f=t(50169),I=t(28278),m=t(74241),v=t(21702),L=t(91761),C=t(61099),p=t(87667),S=e=>{let{resourceType:s}=e,t=(0,n.Cl)();return s===v.D$.SCHEMA?{columns:[t.accessor(e=>e.name,{id:"name",cell:e=>(0,l.jsx)(p.Z,{result:e.row.original,changeTypeOverride:I.E.CLASSIFICATION}),header:e=>(0,l.jsx)(u.Rr,{value:"Name",...e}),size:300}),t.accessor(e=>e.urn,{id:"project",cell:e=>(0,l.jsx)(u.G3,{value:(0,m.Z)(e.getValue())}),header:e=>(0,l.jsx)(u.Rr,{value:"Project",...e})}),t.display({id:"status",cell:e=>(0,l.jsx)(f.Z,{result:e.row.original}),header:e=>(0,l.jsx)(u.Rr,{value:"Status",...e})}),t.accessor(e=>e.system,{id:"system",cell:e=>(0,l.jsx)(u.G3,{value:e.getValue()}),header:e=>(0,l.jsx)(u.Rr,{value:"System",...e})}),t.accessor(e=>e.monitor_config_id,{id:"monitor",cell:e=>(0,l.jsx)(u.G3,{value:e.getValue()}),header:e=>(0,l.jsx)(u.Rr,{value:"Detected by",...e})}),t.accessor(e=>e.updated_at,{id:"time",cell:e=>(0,l.jsx)(h.Cy,{time:e.getValue()}),header:e=>(0,l.jsx)(u.Rr,{value:"When",...e})}),t.display({id:"action",cell:e=>e.row.original.diff_status!==v.LL.MUTED?(0,l.jsx)(L.Z,{resource:e.row.original}):(0,l.jsx)(u.G3,{value:"--"}),header:"Actions",size:235,meta:{disableRowClick:!0}})]}:s===v.D$.TABLE?{columns:[t.display({id:"select",cell:e=>{var s;let{row:t}=e;return(0,l.jsx)(h.k,{isChecked:t.getIsSelected(),onChange:t.getToggleSelectedHandler(),dataTestId:"select-".concat(null!==(s=t.original.name)&&void 0!==s?s:t.id)})},header:e=>{let{table:s}=e;return(0,l.jsx)(h.k,{isChecked:s.getIsAllPageRowsSelected(),isIndeterminate:s.getIsSomeRowsSelected(),onChange:s.getToggleAllRowsSelectedHandler(),dataTestId:"select-all-rows"})},maxSize:40}),t.accessor(e=>e.name,{id:"tables",cell:e=>(0,l.jsx)(p.Z,{result:e.row.original}),header:e=>(0,l.jsx)(u.Rr,{value:"Table name",...e}),size:300}),t.accessor(e=>e.description,{id:"description",cell:e=>(0,l.jsx)(u.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,l.jsx)(u.Rr,{value:"Description",...e}),meta:{showHeaderMenu:!0}}),t.display({id:"status",cell:e=>(0,l.jsx)(f.Z,{result:e.row.original}),header:e=>(0,l.jsx)(u.Rr,{value:"Status",...e})}),t.display({id:"type",cell:()=>(0,l.jsx)(u.G3,{value:"Table"}),header:"Type"}),t.accessor(e=>e.updated_at,{id:"time",cell:e=>(0,l.jsx)(h.Cy,{time:e.getValue()}),header:"Time"}),t.display({id:"actions",cell:e=>(0,l.jsx)(L.Z,{resource:e.row.original}),header:"Actions",size:235,meta:{disableRowClick:!0}})]}:s===v.D$.FIELD?{columns:[t.accessor(e=>e.name,{id:"name",cell:e=>(0,l.jsx)(p.Z,{result:e.row.original}),header:e=>(0,l.jsx)(u.Rr,{value:"Field name",...e}),size:300}),t.accessor(e=>e.source_data_type,{id:"data-type",cell:e=>(0,l.jsx)(j.Z,{type:e.getValue()}),header:e=>(0,l.jsx)(u.Rr,{value:"Data type",...e})}),t.accessor(e=>e.description,{id:"description",cell:e=>(0,l.jsx)(u.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,l.jsx)(u.Rr,{value:"Description",...e}),meta:{showHeaderMenu:!0}}),t.display({id:"status",cell:e=>(0,l.jsx)(f.Z,{result:e.row.original}),header:e=>(0,l.jsx)(u.Rr,{value:"Status",...e})}),t.display({id:"type",cell:()=>(0,l.jsx)(u.G3,{value:"Field"}),header:"Type"}),t.display({id:"classifications",cell:e=>{let{row:s}=e;return(0,l.jsx)(C.Z,{resource:s.original})},meta:{overflow:"visible",disableRowClick:!0},header:"Data category",minSize:280}),t.accessor(e=>e.updated_at,{id:"time",cell:e=>(0,l.jsx)(h.Cy,{time:e.getValue()}),header:e=>(0,l.jsx)(u.Rr,{value:"When",...e})}),t.display({id:"actions",cell:e=>(0,l.jsx)(L.Z,{resource:e.row.original}),header:"Actions",size:235,meta:{disableRowClick:!0}})]}:{columns:[]}};(i=a||(a={}))[i.ACTION_REQUIRED=0]="ACTION_REQUIRED",i[i.UNMONITORED=1]="UNMONITORED";var _=e=>{let{initialFilterTabIndex:s=0}=e,[t,i]=(0,c.useState)(s),a=(0,c.useMemo)(()=>[{label:"Action Required",filters:[v.LL.CLASSIFICATION_ADDITION,v.LL.CLASSIFICATION_UPDATE],childFilters:[v.LL.CLASSIFICATION_ADDITION,v.LL.CLASSIFICATION_UPDATE]},{label:"In progress",filters:[v.LL.CLASSIFYING,v.LL.CLASSIFICATION_QUEUED],childFilters:[v.LL.CLASSIFYING,v.LL.CLASSIFICATION_QUEUED]},{label:"Unmonitored",filters:[v.LL.MUTED],childFilters:[]}],[]);return{filterTabs:a,filterTabIndex:t,setFilterTabIndex:i,activeDiffFilters:a[t].filters,activeChildDiffFilters:a[t].childFilters}},b=t(47182),A=t(38347),y=t(79494),T=e=>{let{resourceUrn:s}=e,[t,{isLoading:i}]=(0,g.Hf)(),[a,{isLoading:r}]=(0,g.zV)(),n=i||r,d=async e=>{await a({staged_resource_urns:e})},c=async e=>{await t({staged_resource_urns:e})};return(0,l.jsx)(o.jqI,{"data-testid":"bulk-actions-menu",children:(0,l.jsxs)("div",{className:"flex gap-2",children:[(0,l.jsx)(y.Z,{title:"Confirm all",icon:(0,l.jsx)(o.nQG,{}),onClick:()=>c([s]),disabled:n,loading:i,type:"primary",size:"middle"}),(0,l.jsx)(y.Z,{title:"Ignore all",icon:(0,l.jsx)(o.tpL,{}),onClick:()=>d([s]),disabled:n,loading:r,size:"middle"})]})})},D=e=>{let{selectedUrns:s}=e,[t,{isLoading:i}]=(0,g.Hf)(),[a,{isLoading:r}]=(0,g.zV)(),n=i||r,d=async e=>{await t({staged_resource_urns:e})},c=async e=>{await a({staged_resource_urns:e})};return s.length?(0,l.jsxs)(o.jqI,{className:"items-center","data-testid":"bulk-actions-menu",children:[(0,l.jsx)(o.xvT,{fontSize:"xs",fontWeight:"semibold",minW:16,mr:4,children:"".concat(s.length," selected")}),(0,l.jsxs)(o.jqI,{className:"gap-2",children:[(0,l.jsx)(y.Z,{title:"Confirm",icon:(0,l.jsx)(o.nQG,{}),onClick:()=>d(s),disabled:n,loading:i,type:"primary",size:"middle"}),(0,l.jsx)(y.Z,{title:"Ignore",icon:(0,l.jsx)(o.tpL,{}),disabled:n,loading:r,onClick:()=>c(s),size:"middle"})]})]}):null},R=t(7940),E=t(80285),N=t(36168),w=t(57454);let O={items:[],total:0,page:1,size:50,pages:1},Z=()=>(0,l.jsx)(o.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"empty-state",alignSelf:"center",margin:"auto",children:(0,l.jsxs)(o.gCW,{children:[(0,l.jsx)(o.xvT,{fontSize:"md",fontWeight:"600",children:"No activity found"}),(0,l.jsx)(o.xvT,{fontSize:"sm",children:"You're up to date!"})]})});var F=e=>{var s,t;let{resourceUrn:i}=e,h=(0,d.useRouter)(),[j,f]=(0,c.useState)(""),{filterTabs:I,setFilterTabIndex:m,filterTabIndex:L,activeDiffFilters:C,activeChildDiffFilters:p}=_({initialFilterTabIndex:(null===(s=h.query)||void 0===s?void 0:s.filterTabIndex)?Number(null===(t=h.query)||void 0===t?void 0:t.filterTabIndex):void 0}),[y,F]=(0,c.useState)({}),{PAGE_SIZES:z,pageSize:k,setPageSize:P,onPreviousPageClick:U,isPreviousPageDisabled:M,onNextPageClick:G,isNextPageDisabled:q,startRange:V,endRange:Q,pageIndex:W,setTotalPages:H,resetPageIndexToDefault:Y}=(0,u.oi)();(0,c.useEffect)(()=>{Y()},[i,j,Y,C,p]);let{isFetching:$,isLoading:J,data:K}=(0,g.z8)({staged_resource_urn:i,page:W,size:k,child_diff_status:p,diff_status:C,search:j}),B=(0,R.G)(null==K?void 0:K.items[0]),{items:X,total:ee,pages:es}=(0,c.useMemo)(()=>null!=K?K:O,[K]);(0,c.useEffect)(()=>{H(es)},[es,H]);let{columns:et}=S({resourceType:B}),ei=(0,c.useMemo)(()=>et,[et]),{navigateToDiscoveryResults:ea}=(0,b.Z)(),el=(0,r.b7)({getCoreRowModel:(0,n.sC)(),getGroupedRowModel:(0,n.qe)(),getExpandedRowModel:(0,n.rV)(),columns:ei,manualPagination:!0,onRowSelectionChange:F,state:{rowSelection:y},getRowId:E.Z,data:X,columnResizeMode:"onChange"}),er=Object.keys(y).filter(e=>y[e]);return J?(0,l.jsx)(u.I4,{rowHeight:36,numRows:36}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(x.Z,{filterTabs:I,filterTabIndex:L,onChange:m}),(0,l.jsxs)(u.Q$,{children:[(0,l.jsxs)(o.kCb,{gap:6,align:"center",children:[(0,l.jsx)(o.xuv,{flexShrink:0,children:(0,l.jsx)(w.M,{value:j,onChange:f})}),(0,l.jsx)(A.Z,{})]}),B===v.D$.TABLE&&!!er.length&&(0,l.jsx)(D,{selectedUrns:er}),B===v.D$.FIELD&&L!==a.UNMONITORED&&(0,l.jsx)(T,{resourceUrn:i})]}),(0,l.jsx)(u.ZK,{tableInstance:el,onRowClick:e=>ea({resourceUrn:e.urn,filterTabIndex:L}),getRowIsClickable:e=>B!==v.D$.FIELD||(0,N.Z)(e),emptyTableNotice:(0,l.jsx)(Z,{})}),(0,l.jsx)(u.s8,{totalRows:ee||0,pageSizes:z,setPageSize:P,onPreviousPageClick:U,isPreviousPageDisabled:M||$,onNextPageClick:G,isNextPageDisabled:q||$,startRange:V,endRange:Q})]})}},91761:function(e,s,t){var i=t(24246),a=t(77181),l=t(14047),r=t(98559),n=t(21702),o=t(79494),d=t(70675);s.Z=e=>{let{resource:s}=e,[t,{isLoading:c}]=(0,d.v8)(),[u,{isLoading:x}]=(0,d.cM)(),[g,{isLoading:h}]=(0,d.vi)(),j=x||h||c,{diff_status:f,child_diff_statuses:I,top_level_field_name:m}=s,{successAlert:v}=(0,l.V)(),L=f===n.LL.CLASSIFICATION_ADDITION||f===n.LL.CLASSIFICATION_UPDATE,C=I&&(I[n.LL.CLASSIFICATION_ADDITION]||I[n.LL.CLASSIFICATION_UPDATE]),p=(L||C)&&!m,S=L||C,_=p&&S,b=async()=>{await u({staged_resource_urn:s.urn}),v('These changes have been added to a Fides dataset. To view, navigate to "Manage datasets".',"Table changes confirmed")},A=async()=>{await g({staged_resource_urn:s.urn}),v("Ignored changes will not be added to a Fides dataset.","".concat(s.name||"Changes"," ignored"))},y=async()=>{await t({staged_resource_urn:s.urn,monitor_config_id:s.monitor_config_id,start_classification:!0,classify_monitored_resources:!0}),v("Reclassification of ".concat((0,r.Z)(s)||"the resource"," has begun. The results may take some time to appear in the “Data discovery“ tab."),"Reclassification started")};return(0,i.jsxs)(a.Ugi,{gap:2,children:[p&&(0,i.jsx)(o.Z,{title:"Confirm",icon:(0,i.jsx)(a.nQG,{}),onClick:b,disabled:j,loading:x}),S&&(0,i.jsx)(o.Z,{title:"Ignore",icon:(0,i.jsx)(a.tpL,{}),onClick:A,disabled:j,loading:h}),!_&&(0,i.jsx)(o.Z,{title:"Reclassify",icon:(0,i.jsx)(a.nyI,{}),onClick:y,disabled:j,loading:c}),(0,i.jsx)(a.LZC,{}),_&&(0,i.jsxs)(a.v2r,{children:[(0,i.jsx)(a.j2t,{as:a.wpx,size:"small",type:"text",icon:(0,i.jsx)(a.nXP,{transform:"rotate(90deg)"}),className:"w-6 gap-0","data-testid":"actions-overflow-btn"}),(0,i.jsx)(a.qyq,{children:(0,i.jsx)(a.sNh,{onClick:y,icon:(0,i.jsx)(a.nyI,{}),"data-testid":"action-reclassify",children:"Reclassify"})})]})]})}},79947:function(e,s,t){var i=t(24246),a=t(77181);s.Z=e=>{let{type:s}=e;return(0,i.jsx)(a.kCb,{align:"center",h:"full",children:!!s&&(0,i.jsx)(a.j8w,{children:s})})}},87667:function(e,s,t){var i=t(24246),a=t(77181),l=t(56839),r=t(20449),n=t(98559),o=t(80356);s.Z=e=>{let{result:s,changeTypeOverride:t}=e,d=null!=t?t:(0,r.Z)(s);return(0,i.jsxs)(a.kCb,{alignItems:"center",height:"100%",children:[(0,i.jsx)(a.ua7,{label:d,children:(0,i.jsx)("span",{children:l.QL[d]})}),(0,i.jsx)(a.xvT,{fontSize:"xs",lineHeight:4,fontWeight:(0,o.Z)(s)?"semibold":"normal",overflow:"hidden",textOverflow:"ellipsis",children:(0,n.Z)(s)})]})}},50169:function(e,s,t){var i=t(24246),a=t(14481),l=t(28278),r=t(20449);let n={[l.E.MUTED]:{color:"marble",label:"Unmonitored"},[l.E.MONITORED]:{color:"success",label:"Monitoring"},[l.E.IN_PROGRESS]:{color:"info",label:"Classifying"}};s.Z=e=>{var s,t,l,o,d;let{result:c,changeTypeOverride:u}=e;if(null===(s=c.user_assigned_data_categories)||void 0===s?void 0:s.length)return(0,i.jsx)(a.A4,{color:"success",value:"Reviewed"});let x=null!=u?u:(0,r.Z)(c);return(0,i.jsx)(a.A4,{color:null!==(o=null===(t=n[x])||void 0===t?void 0:t.color)&&void 0!==o?o:"warning",value:null!==(d=null===(l=n[x])||void 0===l?void 0:l.label)&&void 0!==d?d:"Pending review"})}},74241:function(e,s){s.Z=e=>{let s=e.split(".");return s.length>1?s[1]:""}},20449:function(e,s,t){var i=t(28278),a=t(21702);s.Z=e=>e.diff_status===a.LL.ADDITION?i.E.ADDITION:e.diff_status===a.LL.REMOVAL?i.E.REMOVAL:e.diff_status===a.LL.CLASSIFYING||e.diff_status===a.LL.CLASSIFICATION_QUEUED?i.E.IN_PROGRESS:e.diff_status===a.LL.CLASSIFICATION_ADDITION||e.diff_status===a.LL.CLASSIFICATION_UPDATE?i.E.CLASSIFICATION:e.child_diff_statuses?e.child_diff_statuses[a.LL.CLASSIFYING]||e.child_diff_statuses[a.LL.CLASSIFICATION_QUEUED]?i.E.IN_PROGRESS:e.child_diff_statuses[a.LL.CLASSIFICATION_ADDITION]||e.child_diff_statuses[a.LL.CLASSIFICATION_UPDATE]?i.E.CLASSIFICATION:e.child_diff_statuses[a.LL.ADDITION]||e.child_diff_statuses[a.LL.REMOVAL]?i.E.CHANGE:e.diff_status===a.LL.MONITORED?i.E.MONITORED:e.diff_status===a.LL.MUTED?i.E.MUTED:i.E.NONE:i.E.NONE},80285:function(e,s){s.Z=e=>e.urn}}]);
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9046],{7617:function(e,s,t){t.d(s,{q:function(){return l}});var i=t(24246),a=t(56351);let l=e=>{let{label:s,isDisabled:t,...l}=e;return(0,i.jsx)(a.OK9,{"data-testid":"tab-".concat(s),_selected:{fontWeight:"600",color:"complimentary.500",borderColor:"complimentary.500"},fontSize:l.fontSize,fontWeight:"500",color:"gray.500",isDisabled:t||!1,children:s})};s.Z=e=>{let{data:s,border:t="partial",...r}=e;return(0,i.jsxs)(a.mQc,{colorScheme:"complimentary",...r,children:[(0,i.jsx)(a.tdY,{width:"partial"===t?"max-content":void 0,children:s.map(e=>(0,i.jsx)(l,{label:e.label,isDisabled:e.isDisabled,fontSize:r.fontSize},e.label))}),(0,i.jsx)(a.nPR,{children:s.map(e=>(0,i.jsx)(a.x45,{px:0,"data-testid":"tab-panel-".concat(e.label),children:e.content},e.label))})]})}},66379:function(e,s,t){var i=t(24246),a=t(56351),l=t(7617);s.Z=e=>{let{data:s,border:t="partial",borderWidth:r=2,...n}=e;return(0,i.jsx)(a.mQc,{colorScheme:"complimentary",...n,children:(0,i.jsx)(a.tdY,{width:"partial"===t?"max-content":void 0,borderBottomWidth:r,children:s.map(e=>(0,i.jsx)(l.q,{label:e.label,"data-testid":e.label,isDisabled:e.isDisabled,fontSize:n.fontSize},e.label))})})}},79494:function(e,s,t){var i=t(24246),a=t(56351);s.Z=e=>{let{title:s,icon:t,type:l,...r}=e;return(0,i.jsx)(a.wpx,{size:"small",type:l,"data-testid":"action-".concat(s),icon:t,iconPosition:"start",...r,children:s})}},45896:function(e,s,t){var i=t(24246),a=t(66379);s.Z=e=>{let{filterTabs:s,onChange:t,filterTabIndex:l}=e;return(0,i.jsx)(a.Z,{border:"full-width",mb:5,size:"sm",data:s,borderWidth:1,index:l,onChange:t})}},69828:function(e,s,t){t.d(s,{Y:function(){return r}});var i=t(24246),a=t(56351),l=t(70788);let r=[(0,i.jsx)(a.PJP.S9g,{},"layers"),(0,i.jsx)(a.PJP.ehp,{},"dataset"),(0,i.jsx)(a.PJP.iA_,{},"table"),(0,i.jsx)(a.PJP.$4y,{style:{transform:"rotate(-90deg)"}},"field")];s.Z=e=>{let{resourceUrn:s,parentLink:t,onPathClick:a=()=>{}}=e,n=[];if(s||n.push({title:"All activity"}),s){n.push({title:"All activity",href:t});let e=s.split(".");e.forEach((s,t)=>{0!==t&&n.push({title:s,icon:r[t-1],onClick:s=>{s.preventDefault(),a(e.slice(0,t+1).join("."))}})})}return(0,i.jsx)(l.m,{"data-testid":"results-breadcrumb",items:n})}},38347:function(e,s,t){var i=t(24246),a=t(56351),l=t(56839);s.Z=()=>(0,i.jsxs)(a.J2e,{isLazy:!0,trigger:"hover",children:[(0,i.jsx)(a.xol,{children:(0,i.jsx)(a.UOT,{color:"gray.400"})}),(0,i.jsxs)(a.yky,{bgColor:"gray.800",color:"white",fontSize:"sm",w:"auto",border:"none",children:[(0,i.jsx)(a.Ytg,{fontWeight:"semibold",border:"none",pb:0,children:"Activity legend:"}),(0,i.jsx)(a.QHN,{bgColor:"gray.800"}),(0,i.jsx)(a.baG,{border:"none",children:(0,i.jsxs)(a.MIq,{columns:2,spacing:2,children:[(0,i.jsxs)(a.xuv,{children:[(0,i.jsx)(l.Rv,{})," Change detected"]}),(0,i.jsxs)(a.xuv,{children:[(0,i.jsx)(l.$P,{})," Data labeled"]}),(0,i.jsxs)(a.xuv,{children:[(0,i.jsx)(l.zj,{})," Monitoring"]}),(0,i.jsxs)(a.xuv,{children:[(0,i.jsx)(l.dK,{})," Addition detected"]}),(0,i.jsxs)(a.xuv,{children:[(0,i.jsx)(l.Kr,{})," Unmonitored"]}),(0,i.jsxs)(a.xuv,{children:[(0,i.jsx)(l.q1,{})," Removal detected"]})]})})]})]})},47182:function(e,s,t){var i=t(86677),a=t(77830);s.Z=()=>{let e=(0,i.useRouter)();return{monitorId:e.query.monitorId,resourceUrn:e.query.resourceUrn,navigateToDetectionResults:s=>{let{resourceUrn:t,filterTabIndex:i}=s;e.push({pathname:a.dS,query:{resourceUrn:t,filterTabIndex:i}})},navigateToDiscoveryResults:s=>{let{resourceUrn:t,filterTabIndex:i}=s;e.push({pathname:a.Sj,query:{resourceUrn:t,filterTabIndex:i}})}}}},11904:function(e,s,t){t.d(s,{Z:function(){return F}});var i,a,l=t(24246),r=t(59003),n=t(92222),o=t(56351),d=t(86677),c=t(27378),u=t(14481),x=t(45896),g=t(70675),h=t(72625),j=t(79947),f=t(50169),I=t(28278),m=t(74241),v=t(21702),L=t(91761),C=t(61099),p=t(87667),S=e=>{let{resourceType:s}=e,t=(0,n.Cl)();return s===v.D$.SCHEMA?{columns:[t.accessor(e=>e.name,{id:"name",cell:e=>(0,l.jsx)(p.Z,{result:e.row.original,changeTypeOverride:I.E.CLASSIFICATION}),header:e=>(0,l.jsx)(u.Rr,{value:"Name",...e}),size:300}),t.accessor(e=>e.urn,{id:"project",cell:e=>(0,l.jsx)(u.G3,{value:(0,m.Z)(e.getValue())}),header:e=>(0,l.jsx)(u.Rr,{value:"Project",...e})}),t.display({id:"status",cell:e=>(0,l.jsx)(f.Z,{result:e.row.original}),header:e=>(0,l.jsx)(u.Rr,{value:"Status",...e})}),t.accessor(e=>e.system,{id:"system",cell:e=>(0,l.jsx)(u.G3,{value:e.getValue()}),header:e=>(0,l.jsx)(u.Rr,{value:"System",...e})}),t.accessor(e=>e.monitor_config_id,{id:"monitor",cell:e=>(0,l.jsx)(u.G3,{value:e.getValue()}),header:e=>(0,l.jsx)(u.Rr,{value:"Detected by",...e})}),t.accessor(e=>e.updated_at,{id:"time",cell:e=>(0,l.jsx)(h.Cy,{time:e.getValue()}),header:e=>(0,l.jsx)(u.Rr,{value:"When",...e})}),t.display({id:"action",cell:e=>e.row.original.diff_status!==v.LL.MUTED?(0,l.jsx)(L.Z,{resource:e.row.original}):(0,l.jsx)(u.G3,{value:"--"}),header:"Actions",size:235,meta:{disableRowClick:!0}})]}:s===v.D$.TABLE?{columns:[t.display({id:"select",cell:e=>{var s;let{row:t}=e;return(0,l.jsx)(h.k,{isChecked:t.getIsSelected(),onChange:t.getToggleSelectedHandler(),dataTestId:"select-".concat(null!==(s=t.original.name)&&void 0!==s?s:t.id)})},header:e=>{let{table:s}=e;return(0,l.jsx)(h.k,{isChecked:s.getIsAllPageRowsSelected(),isIndeterminate:s.getIsSomeRowsSelected(),onChange:s.getToggleAllRowsSelectedHandler(),dataTestId:"select-all-rows"})},maxSize:40}),t.accessor(e=>e.name,{id:"tables",cell:e=>(0,l.jsx)(p.Z,{result:e.row.original}),header:e=>(0,l.jsx)(u.Rr,{value:"Table name",...e}),size:300}),t.accessor(e=>e.description,{id:"description",cell:e=>(0,l.jsx)(u.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,l.jsx)(u.Rr,{value:"Description",...e}),meta:{showHeaderMenu:!0}}),t.display({id:"status",cell:e=>(0,l.jsx)(f.Z,{result:e.row.original}),header:e=>(0,l.jsx)(u.Rr,{value:"Status",...e})}),t.display({id:"type",cell:()=>(0,l.jsx)(u.G3,{value:"Table"}),header:"Type"}),t.accessor(e=>e.updated_at,{id:"time",cell:e=>(0,l.jsx)(h.Cy,{time:e.getValue()}),header:"Time"}),t.display({id:"actions",cell:e=>(0,l.jsx)(L.Z,{resource:e.row.original}),header:"Actions",size:235,meta:{disableRowClick:!0}})]}:s===v.D$.FIELD?{columns:[t.accessor(e=>e.name,{id:"name",cell:e=>(0,l.jsx)(p.Z,{result:e.row.original}),header:e=>(0,l.jsx)(u.Rr,{value:"Field name",...e}),size:300}),t.accessor(e=>e.source_data_type,{id:"data-type",cell:e=>(0,l.jsx)(j.Z,{type:e.getValue()}),header:e=>(0,l.jsx)(u.Rr,{value:"Data type",...e})}),t.accessor(e=>e.description,{id:"description",cell:e=>(0,l.jsx)(u.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,l.jsx)(u.Rr,{value:"Description",...e}),meta:{showHeaderMenu:!0}}),t.display({id:"status",cell:e=>(0,l.jsx)(f.Z,{result:e.row.original}),header:e=>(0,l.jsx)(u.Rr,{value:"Status",...e})}),t.display({id:"type",cell:()=>(0,l.jsx)(u.G3,{value:"Field"}),header:"Type"}),t.display({id:"classifications",cell:e=>{let{row:s}=e;return(0,l.jsx)(C.Z,{resource:s.original})},meta:{overflow:"visible",disableRowClick:!0},header:"Data category",minSize:280}),t.accessor(e=>e.updated_at,{id:"time",cell:e=>(0,l.jsx)(h.Cy,{time:e.getValue()}),header:e=>(0,l.jsx)(u.Rr,{value:"When",...e})}),t.display({id:"actions",cell:e=>(0,l.jsx)(L.Z,{resource:e.row.original}),header:"Actions",size:235,meta:{disableRowClick:!0}})]}:{columns:[]}};(i=a||(a={}))[i.ACTION_REQUIRED=0]="ACTION_REQUIRED",i[i.UNMONITORED=1]="UNMONITORED";var _=e=>{let{initialFilterTabIndex:s=0}=e,[t,i]=(0,c.useState)(s),a=(0,c.useMemo)(()=>[{label:"Action Required",filters:[v.LL.CLASSIFICATION_ADDITION,v.LL.CLASSIFICATION_UPDATE],childFilters:[v.LL.CLASSIFICATION_ADDITION,v.LL.CLASSIFICATION_UPDATE]},{label:"In progress",filters:[v.LL.CLASSIFYING,v.LL.CLASSIFICATION_QUEUED],childFilters:[v.LL.CLASSIFYING,v.LL.CLASSIFICATION_QUEUED]},{label:"Unmonitored",filters:[v.LL.MUTED],childFilters:[]}],[]);return{filterTabs:a,filterTabIndex:t,setFilterTabIndex:i,activeDiffFilters:a[t].filters,activeChildDiffFilters:a[t].childFilters}},b=t(47182),A=t(38347),y=t(79494),T=e=>{let{resourceUrn:s}=e,[t,{isLoading:i}]=(0,g.Hf)(),[a,{isLoading:r}]=(0,g.zV)(),n=i||r,d=async e=>{await a({staged_resource_urns:e})},c=async e=>{await t({staged_resource_urns:e})};return(0,l.jsx)(o.jqI,{"data-testid":"bulk-actions-menu",children:(0,l.jsxs)("div",{className:"flex gap-2",children:[(0,l.jsx)(y.Z,{title:"Confirm all",icon:(0,l.jsx)(o.nQG,{}),onClick:()=>c([s]),disabled:n,loading:i,type:"primary",size:"middle"}),(0,l.jsx)(y.Z,{title:"Ignore all",icon:(0,l.jsx)(o.tpL,{}),onClick:()=>d([s]),disabled:n,loading:r,size:"middle"})]})})},D=e=>{let{selectedUrns:s}=e,[t,{isLoading:i}]=(0,g.Hf)(),[a,{isLoading:r}]=(0,g.zV)(),n=i||r,d=async e=>{await t({staged_resource_urns:e})},c=async e=>{await a({staged_resource_urns:e})};return s.length?(0,l.jsxs)(o.jqI,{className:"items-center","data-testid":"bulk-actions-menu",children:[(0,l.jsx)(o.xvT,{fontSize:"xs",fontWeight:"semibold",minW:16,mr:4,children:"".concat(s.length," selected")}),(0,l.jsxs)(o.jqI,{className:"gap-2",children:[(0,l.jsx)(y.Z,{title:"Confirm",icon:(0,l.jsx)(o.nQG,{}),onClick:()=>d(s),disabled:n,loading:i,type:"primary",size:"middle"}),(0,l.jsx)(y.Z,{title:"Ignore",icon:(0,l.jsx)(o.tpL,{}),disabled:n,loading:r,onClick:()=>c(s),size:"middle"})]})]}):null},R=t(7940),E=t(80285),N=t(36168),w=t(57454);let O={items:[],total:0,page:1,size:50,pages:1},Z=()=>(0,l.jsx)(o.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"empty-state",alignSelf:"center",margin:"auto",children:(0,l.jsxs)(o.gCW,{children:[(0,l.jsx)(o.xvT,{fontSize:"md",fontWeight:"600",children:"No activity found"}),(0,l.jsx)(o.xvT,{fontSize:"sm",children:"You're up to date!"})]})});var F=e=>{var s,t;let{resourceUrn:i}=e,h=(0,d.useRouter)(),[j,f]=(0,c.useState)(""),{filterTabs:I,setFilterTabIndex:m,filterTabIndex:L,activeDiffFilters:C,activeChildDiffFilters:p}=_({initialFilterTabIndex:(null===(s=h.query)||void 0===s?void 0:s.filterTabIndex)?Number(null===(t=h.query)||void 0===t?void 0:t.filterTabIndex):void 0}),[y,F]=(0,c.useState)({}),{PAGE_SIZES:z,pageSize:k,setPageSize:P,onPreviousPageClick:U,isPreviousPageDisabled:M,onNextPageClick:G,isNextPageDisabled:q,startRange:V,endRange:Q,pageIndex:W,setTotalPages:H,resetPageIndexToDefault:Y}=(0,u.oi)();(0,c.useEffect)(()=>{Y()},[i,j,Y,C,p]);let{isFetching:$,isLoading:J,data:K}=(0,g.z8)({staged_resource_urn:i,page:W,size:k,child_diff_status:p,diff_status:C,search:j}),B=(0,R.G)(null==K?void 0:K.items[0]),{items:X,total:ee,pages:es}=(0,c.useMemo)(()=>null!=K?K:O,[K]);(0,c.useEffect)(()=>{H(es)},[es,H]);let{columns:et}=S({resourceType:B}),ei=(0,c.useMemo)(()=>et,[et]),{navigateToDiscoveryResults:ea}=(0,b.Z)(),el=(0,r.b7)({getCoreRowModel:(0,n.sC)(),getGroupedRowModel:(0,n.qe)(),getExpandedRowModel:(0,n.rV)(),columns:ei,manualPagination:!0,onRowSelectionChange:F,state:{rowSelection:y},getRowId:E.Z,data:X,columnResizeMode:"onChange"}),er=Object.keys(y).filter(e=>y[e]);return J?(0,l.jsx)(u.I4,{rowHeight:36,numRows:36}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(x.Z,{filterTabs:I,filterTabIndex:L,onChange:m}),(0,l.jsxs)(u.Q$,{children:[(0,l.jsxs)(o.kCb,{gap:6,align:"center",children:[(0,l.jsx)(o.xuv,{flexShrink:0,children:(0,l.jsx)(w.M,{value:j,onChange:f})}),(0,l.jsx)(A.Z,{})]}),B===v.D$.TABLE&&!!er.length&&(0,l.jsx)(D,{selectedUrns:er}),B===v.D$.FIELD&&L!==a.UNMONITORED&&(0,l.jsx)(T,{resourceUrn:i})]}),(0,l.jsx)(u.ZK,{tableInstance:el,onRowClick:e=>ea({resourceUrn:e.urn,filterTabIndex:L}),getRowIsClickable:e=>B!==v.D$.FIELD||(0,N.Z)(e),emptyTableNotice:(0,l.jsx)(Z,{})}),(0,l.jsx)(u.s8,{totalRows:ee||0,pageSizes:z,setPageSize:P,onPreviousPageClick:U,isPreviousPageDisabled:M||$,onNextPageClick:G,isNextPageDisabled:q||$,startRange:V,endRange:Q})]})}},91761:function(e,s,t){var i=t(24246),a=t(56351),l=t(14047),r=t(98559),n=t(21702),o=t(79494),d=t(70675);s.Z=e=>{let{resource:s}=e,[t,{isLoading:c}]=(0,d.v8)(),[u,{isLoading:x}]=(0,d.cM)(),[g,{isLoading:h}]=(0,d.vi)(),j=x||h||c,{diff_status:f,child_diff_statuses:I,top_level_field_name:m}=s,{successAlert:v}=(0,l.V)(),L=f===n.LL.CLASSIFICATION_ADDITION||f===n.LL.CLASSIFICATION_UPDATE,C=I&&(I[n.LL.CLASSIFICATION_ADDITION]||I[n.LL.CLASSIFICATION_UPDATE]),p=(L||C)&&!m,S=L||C,_=p&&S,b=async()=>{await u({staged_resource_urn:s.urn}),v('These changes have been added to a Fides dataset. To view, navigate to "Manage datasets".',"Table changes confirmed")},A=async()=>{await g({staged_resource_urn:s.urn}),v("Ignored changes will not be added to a Fides dataset.","".concat(s.name||"Changes"," ignored"))},y=async()=>{await t({staged_resource_urn:s.urn,monitor_config_id:s.monitor_config_id,start_classification:!0,classify_monitored_resources:!0}),v("Reclassification of ".concat((0,r.Z)(s)||"the resource"," has begun. The results may take some time to appear in the “Data discovery“ tab."),"Reclassification started")};return(0,i.jsxs)(a.Ugi,{gap:2,children:[p&&(0,i.jsx)(o.Z,{title:"Confirm",icon:(0,i.jsx)(a.nQG,{}),onClick:b,disabled:j,loading:x}),S&&(0,i.jsx)(o.Z,{title:"Ignore",icon:(0,i.jsx)(a.tpL,{}),onClick:A,disabled:j,loading:h}),!_&&(0,i.jsx)(o.Z,{title:"Reclassify",icon:(0,i.jsx)(a.nyI,{}),onClick:y,disabled:j,loading:c}),(0,i.jsx)(a.LZC,{}),_&&(0,i.jsxs)(a.v2r,{children:[(0,i.jsx)(a.j2t,{as:a.wpx,size:"small",type:"text",icon:(0,i.jsx)(a.nXP,{transform:"rotate(90deg)"}),className:"w-6 gap-0","data-testid":"actions-overflow-btn"}),(0,i.jsx)(a.qyq,{children:(0,i.jsx)(a.sNh,{onClick:y,icon:(0,i.jsx)(a.nyI,{}),"data-testid":"action-reclassify",children:"Reclassify"})})]})]})}},79947:function(e,s,t){var i=t(24246),a=t(56351);s.Z=e=>{let{type:s}=e;return(0,i.jsx)(a.kCb,{align:"center",h:"full",children:!!s&&(0,i.jsx)(a.j8w,{children:s})})}},87667:function(e,s,t){var i=t(24246),a=t(56351),l=t(56839),r=t(20449),n=t(98559),o=t(80356);s.Z=e=>{let{result:s,changeTypeOverride:t}=e,d=null!=t?t:(0,r.Z)(s);return(0,i.jsxs)(a.kCb,{alignItems:"center",height:"100%",children:[(0,i.jsx)(a.ua7,{label:d,children:(0,i.jsx)("span",{children:l.QL[d]})}),(0,i.jsx)(a.xvT,{fontSize:"xs",lineHeight:4,fontWeight:(0,o.Z)(s)?"semibold":"normal",overflow:"hidden",textOverflow:"ellipsis",children:(0,n.Z)(s)})]})}},50169:function(e,s,t){var i=t(24246),a=t(14481),l=t(28278),r=t(20449);let n={[l.E.MUTED]:{color:"marble",label:"Unmonitored"},[l.E.MONITORED]:{color:"success",label:"Monitoring"},[l.E.IN_PROGRESS]:{color:"info",label:"Classifying"}};s.Z=e=>{var s,t,l,o,d;let{result:c,changeTypeOverride:u}=e;if(null===(s=c.user_assigned_data_categories)||void 0===s?void 0:s.length)return(0,i.jsx)(a.A4,{color:"success",value:"Reviewed"});let x=null!=u?u:(0,r.Z)(c);return(0,i.jsx)(a.A4,{color:null!==(o=null===(t=n[x])||void 0===t?void 0:t.color)&&void 0!==o?o:"warning",value:null!==(d=null===(l=n[x])||void 0===l?void 0:l.label)&&void 0!==d?d:"Pending review"})}},74241:function(e,s){s.Z=e=>{let s=e.split(".");return s.length>1?s[1]:""}},20449:function(e,s,t){var i=t(28278),a=t(21702);s.Z=e=>e.diff_status===a.LL.ADDITION?i.E.ADDITION:e.diff_status===a.LL.REMOVAL?i.E.REMOVAL:e.diff_status===a.LL.CLASSIFYING||e.diff_status===a.LL.CLASSIFICATION_QUEUED?i.E.IN_PROGRESS:e.diff_status===a.LL.CLASSIFICATION_ADDITION||e.diff_status===a.LL.CLASSIFICATION_UPDATE?i.E.CLASSIFICATION:e.child_diff_statuses?e.child_diff_statuses[a.LL.CLASSIFYING]||e.child_diff_statuses[a.LL.CLASSIFICATION_QUEUED]?i.E.IN_PROGRESS:e.child_diff_statuses[a.LL.CLASSIFICATION_ADDITION]||e.child_diff_statuses[a.LL.CLASSIFICATION_UPDATE]?i.E.CLASSIFICATION:e.child_diff_statuses[a.LL.ADDITION]||e.child_diff_statuses[a.LL.REMOVAL]?i.E.CHANGE:e.diff_status===a.LL.MONITORED?i.E.MONITORED:e.diff_status===a.LL.MUTED?i.E.MUTED:i.E.NONE:i.E.NONE},80285:function(e,s){s.Z=e=>e.urn}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9282],{77213:function(e,t,n){n.d(t,{Z:function(){return f}});var r=n(24246),i=n(56351),o=n(88038),l=n.n(o),s=n(86677);n(27378);var a=n(25980),u=n(90867),c=n(77830),d=()=>{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.fz)},children:"Configure"})]}),(0,r.jsxs)(i.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},f=e=>{let{children:t,title:n,padded:o=!0,mainProps:c}=e,f=(0,a.hz)(),p=(0,s.useRouter)(),g="/privacy-requests"===p.pathname||"/datastore-connection"===p.pathname,x=!(f.flags.privacyRequestsConfiguration&&g),{data:v}=(0,u.JE)(void 0,{skip:x}),{data:b}=(0,u.PW)(void 0,{skip:x}),m=f.flags.privacyRequestsConfiguration&&(!v||!b)&&g;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:o?6:0,px:o?10:0,h:o?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...c,children:[m?(0,r.jsx)(d,{}):null,t]})]})}},51472:function(e,t,n){var r=n(24246),i=n(56351),o=n(60153),l=n(51959),s=n(38565),a=n(27378),u=n(40324),c=n(91613);let d=e=>{let{item:t,label:n,draggable:s,onDeleteItem:a,tooltip:u,onRowClick:d,maxH:f=10,rowTestId:p}=e,g=(0,o.o)();return(0,r.jsx)(l.t.Item,{value:t,dragListener:!1,dragControls:g,children:(0,r.jsxs)(i.kCb,{direction:"row",gap:2,maxH:f,w:"full",px:2,align:"center",role:"group",className:"group",borderY:"1px",my:"-1px",borderColor:"gray.200",_hover:d?{bgColor:"gray.100"}:void 0,bgColor:"white",position:"relative",children:[s&&(0,r.jsx)(i.VVU,{onPointerDown:e=>g.start(e),cursor:"grab"}),(0,r.jsxs)(i.kCb,{direction:"row",gap:2,p:2,align:"center",w:"full",cursor:d?"pointer":"auto",onClick:()=>{d&&d(t)},overflow:"clip","data-testid":p,children:[(0,r.jsx)(i.xvT,{fontSize:"sm",userSelect:"none",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",children:n}),u?(0,r.jsx)(c.Z,{label:u}):null]}),a&&(0,r.jsx)(i.wpx,{"aria-label":"Delete",onClick:()=>a(t),icon:(0,r.jsx)(i.pJl,{boxSize:3}),size:"small",className:"invisible absolute right-2 bg-white group-hover:visible"})]})})},f=e=>{let{label:t,options:n,onOptionSelected:o,baseTestId:l}=e,[s,u]=(0,a.useState)(!1),[c,d]=(0,a.useState)(void 0);return s?(0,r.jsx)(i.xuv,{w:"full",children:(0,r.jsx)(i.WPr,{labelInValue:!0,placeholder:"Select...",filterOption:(e,t)=>{var n;return(null!==(n=null==t?void 0:t.label)&&void 0!==n?n:"").toLowerCase().includes(e.toLowerCase())},value:c,options:n,onChange:e=>{o(e),u(!1),d(void 0)},className:"w-full","data-testid":"select-".concat(l)})}):(0,r.jsx)(i.wpx,{onClick:()=>u(!0),"data-testid":"add-".concat(l),block:!0,icon:(0,r.jsx)(i.jBn,{boxSize:4}),iconPosition:"end",children:t})};t.Z=e=>{let{label:t,tooltip:n,draggable:o,addButtonLabel:a,allItems:p,idField:g,nameField:x=g,values:v,setValues:b,canDeleteItem:m,getTooltip:h,onRowClick:j,selectOnAdd:w,getItemLabel:y,createNewValue:C,maxHeight:k=36,baseTestId:S}=e,L=e=>e instanceof Object&&g&&g in e?e[g]:e,R=p.every(e=>"string"==typeof e)?p.filter(e=>v.every(t=>t!==e)):p.filter(e=>v.every(t=>L(t)!==L(e))),_=e=>{b(v.filter(t=>t!==e).slice())},A=null!=y?y:e=>e instanceof Object&&g&&g in e?x&&x in e?e[x]:e[g]:e,D=e=>{let t=e instanceof Object&&g&&g in e?e[g]:e;return{label:A(e),value:t}},O=e=>p.every(e=>"string"==typeof e)?e.value:p.find(t=>t[g]===e.value),I=e=>{let t=C?C(e):O(e);b([t,...v.slice()]),w&&j&&j(t)},z={border:"1px",borderColor:"gray.200",borderRadius:"md",w:"full",maxH:"8.5rem",overflowY:"auto"},E=o?(0,r.jsx)(i.xuv,{as:s.E.div,layoutScroll:!0,...z,children:(0,r.jsx)(l.t.Group,{values:v,onReorder:e=>b(e.slice()),children:v.map(e=>{let t=L(e);return(0,r.jsx)(d,{item:e,label:A(e),onDeleteItem:!m||m&&m(e)?_:void 0,onRowClick:j,draggable:!0,maxH:k,rowTestId:"".concat(S,"-row-").concat(t),tooltip:h&&h(e)?h(e):void 0},t)})})}):(0,r.jsx)(i.xuv,{...z,children:(0,r.jsx)(i.aVo,{children:v.map(e=>{let t=L(e);return(0,r.jsx)(d,{item:e,label:A(e),onRowClick:j,onDeleteItem:_,tooltip:h&&h(e)?h(e):void 0,maxH:k,rowTestId:"".concat(S,"-row-").concat(t)},t)})})});return v.length?(0,r.jsxs)(i.kCb,{align:"start",direction:"column",w:"full",gap:4,children:[t?(0,r.jsx)(u.__,{htmlFor:"test",fontSize:"xs",my:0,mr:1,children:t}):null,n?(0,r.jsx)(c.Z,{label:n}):null,E,R.length?(0,r.jsx)(f,{label:null!=a?a:"Add new",options:R.map(e=>D(e)),onOptionSelected:I,baseTestId:S}):null]}):(0,r.jsx)(f,{label:null!=a?a:"Add new",options:R.map(e=>D(e)),onOptionSelected:I,baseTestId:S})}},812:function(e,t,n){n.d(t,{D4:function(){return o.D4},MM:function(){return f},Ot:function(){return u},c6:function(){return i},cj:function(){return g},e$:function(){return s},fn:function(){return a},iC:function(){return p},nU:function(){return d},tB:function(){return c}});var r,i,o=n(19043);let l="An unexpected error occurred. Please try again.",s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l;if((0,o.Bw)(e)){if((0,o.hE)(e.data))return e.data.detail;if((0,o.cz)(e.data)){var n;let t=null===(n=e.data.detail)||void 0===n?void 0:n[0];return"".concat(null==t?void 0:t.msg,": ").concat(null==t?void 0:t.loc)}if(409===e.status&&(0,o.Dy)(e.data)||404===e.status&&(0,o.XD)(e.data))return"".concat(e.data.detail.error," (").concat(e.data.detail.fides_key,")")}return t};function a(e){return"object"==typeof e&&null!=e&&"status"in e}function u(e){return"object"==typeof e&&null!=e&&"data"in e&&"string"==typeof e.data.detail}function c(e){return"object"==typeof e&&null!=e&&"data"in e&&Array.isArray(e.data.detail)}let d=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{status:500,message:l};if((0,o.oK)(e))return{status:e.originalStatus,message:e.data};if((0,o.Bw)(e)){let{status:n}=e;return{status:n,message:s(e,t.message)}}return t},f=e=>Object.entries(e).map(e=>({value:e[1],label:e[1]}));(r=i||(i={})).GVL="gvl",r.AC="gacp",r.COMPASS="compass";let p={gvl:{label:"GVL",fullName:"Global Vendor List"},gacp:{label:"AC",fullName:"Google Additional Consent List"},compass:{label:"",fullName:""}},g=e=>{let t=e.split(".")[0];return"gacp"===t?"gacp":"gvl"===t?"gvl":"compass"}},46628:function(e,t,n){n.d(t,{MA:function(){return s},Vo:function(){return u},t5:function(){return a}});var r=n(24246),i=n(56351);let o=e=>{let{children:t,title:n="Success"}=e;return(0,r.jsxs)(i.xvT,{"data-testid":"toast-success-msg",children:[(0,r.jsxs)("strong",{children:[n,":"]})," ",t]})},l=e=>{let{children:t}=e;return(0,r.jsxs)(i.xvT,{"data-testid":"toast-error-msg",children:[(0,r.jsx)("strong",{children:"Error:"})," ",t]})},s={variant:"subtle",position:"top",description:"",duration:5e3,status:"success",isClosable:!0},a=(e,t)=>{let n=(0,r.jsx)(o,{title:t,children:e});return{...s,description:n}},u=e=>{let t=(0,r.jsx)(l,{children:e});return{...s,description:t,status:"error"}}},19043:function(e,t,n){n.d(t,{Bw:function(){return l},D4:function(){return i},Dy:function(){return a},XD:function(){return u},cz:function(){return c},hE:function(){return s},oK:function(){return o}});var r=n(76649);let i=e=>"error"in e,o=e=>(0,r.Ln)({status:"string"},e)&&"PARSING_ERROR"===e.status,l=e=>(0,r.Ln)({status:"number",data:{}},e),s=e=>(0,r.Ln)({detail:"string"},e),a=e=>(0,r.Ln)({detail:{error:"string",resource_type:"string",fides_key:"string"}},e),u=e=>(0,r.Ln)({detail:{error:"string",resource_type:"string",fides_key:"string"}},e),c=e=>(0,r.Ln)({detail:[{loc:["string","number"],msg:"string",type:"string"}]},e)}}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9392],{72011:function(e,t,r){var n;n=function(e){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}return r.m=e,r.c=t,r.i=function(e){return e},r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=3)}([function(e,t,r){"use strict";var n=r(4),a=r(1),i=r(2),o={addUnnecessaryBendpoints:"de.cau.cs.kieler.klay.layered.unnecessaryBendpoints",alignment:"de.cau.cs.kieler.alignment",aspectRatio:"de.cau.cs.kieler.aspectRatio",borderSpacing:"borderSpacing",compactComponents:"de.cau.cs.kieler.klay.layered.components.compact",compactionStrategy:"de.cau.cs.kieler.klay.layered.nodeplace.compactionStrategy",contentAlignment:"de.cau.cs.kieler.klay.layered.contentAlignment",crossingMinimization:"de.cau.cs.kieler.klay.layered.crossMin",cycleBreaking:"de.cau.cs.kieler.klay.layered.cycleBreaking",debugMode:"de.cau.cs.kieler.debugMode",direction:"de.cau.cs.kieler.direction",edgeLabelSideSelection:"de.cau.cs.kieler.klay.layered.edgeLabelSideSelection",edgeRouting:"de.cau.cs.kieler.edgeRouting",edgeSpacingFactor:"de.cau.cs.kieler.klay.layered.edgeSpacingFactor",feedbackEdges:"de.cau.cs.kieler.klay.layered.feedBackEdges",fixedAlignment:"de.cau.cs.kieler.klay.layered.fixedAlignment",greedySwitchCrossingMinimization:"de.cau.cs.kieler.klay.layered.greedySwitch",hierarchyHandling:"de.cau.cs.kieler.hierarchyHandling",inLayerSpacingFactor:"de.cau.cs.kieler.klay.layered.inLayerSpacingFactor",interactiveReferencePoint:"de.cau.cs.kieler.klay.layered.interactiveReferencePoint",layerConstraint:"de.cau.cs.kieler.klay.layered.layerConstraint",layoutHierarchy:"de.cau.cs.kieler.layoutHierarchy",linearSegmentsDeflectionDampening:"de.cau.cs.kieler.klay.layered.linearSegmentsDeflectionDampening",mergeEdges:"de.cau.cs.kieler.klay.layered.mergeEdges",mergeHierarchyCrossingEdges:"de.cau.cs.kieler.klay.layered.mergeHierarchyEdges",noLayout:"de.cau.cs.kieler.noLayout",nodeLabelPlacement:"de.cau.cs.kieler.nodeLabelPlacement",nodeLayering:"de.cau.cs.kieler.klay.layered.nodeLayering",nodePlacement:"de.cau.cs.kieler.klay.layered.nodePlace",portAlignment:"de.cau.cs.kieler.portAlignment",portAlignmentEastern:"de.cau.cs.kieler.portAlignment.east",portAlignmentNorth:"de.cau.cs.kieler.portAlignment.north",portAlignmentSouth:"de.cau.cs.kieler.portAlignment.south",portAlignmentWest:"de.cau.cs.kieler.portAlignment.west",portConstraints:"de.cau.cs.kieler.portConstraints",portLabelPlacement:"de.cau.cs.kieler.portLabelPlacement",portOffset:"de.cau.cs.kieler.offset",portSide:"de.cau.cs.kieler.portSide",portSpacing:"de.cau.cs.kieler.portSpacing",postCompaction:"de.cau.cs.kieler.klay.layered.postCompaction",priority:"de.cau.cs.kieler.priority",randomizationSeed:"de.cau.cs.kieler.randomSeed",routeSelfLoopInside:"de.cau.cs.kieler.selfLoopInside",separateConnectedComponents:"de.cau.cs.kieler.separateConnComp",sizeConstraint:"de.cau.cs.kieler.sizeConstraint",sizeOptions:"de.cau.cs.kieler.sizeOptions",spacing:"de.cau.cs.kieler.spacing",splineSelfLoopPlacement:"de.cau.cs.kieler.klay.layered.splines.selfLoopPlacement",thoroughness:"de.cau.cs.kieler.klay.layered.thoroughness",wideNodesOnMultipleLayers:"de.cau.cs.kieler.klay.layered.wideNodesOnMultipleLayers"},s=function(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++){var a=t[n],i=o[a],s=e[a];r[i]=s}return r},c={interactiveReferencePoint:"CENTER"},l=function(e){for(var t=e.parent(),r=e.scratch("klay"),n={x:r.x,y:r.y};t.nonempty();){var a=t.scratch("klay");n.x+=a.x,n.y+=a.y,t=t.parent()}return n},d=function(e,t){var r=e.layoutDimensions(t),n=e.numericStyle("padding"),a={_cyEle:e,id:e.id(),padding:{top:n,left:n,bottom:n,right:n}};return e.isParent()||(a.width=r.w,a.height=r.h),e.scratch("klay",a),a},u=function(e,t){var r={_cyEle:e,id:e.id(),source:e.data("source"),target:e.data("target"),properties:{}},n=t.priority(e);return null!=n&&(r.properties.priority=n),e.scratch("klay",r),r},g=function(e,t,r){for(var n=[],a=[],i={},o={id:"root",children:[],edges:[]},s=0;s<e.length;s++){var c=e[s],l=d(c,r);n.push(l),i[c.id()]=l}for(var g=0;g<t.length;g++){var p=t[g],y=u(p,r);a.push(y),i[p.id()]=y}for(var m=0;m<n.length;m++){var k=n[m],f=k._cyEle;if(f.isChild()){var h=i[f.parent().id()];(h.children=h.children||[]).push(k)}else o.children.push(k)}for(var b=0;b<a.length;b++){var S=a[b],v=S._cyEle;v.source().parent(),v.target().parent(),o.edges.push(S)}return o};function p(e){var t=e.klay;this.options=a({},i,e),this.options.klay=a({},i.klay,t,c)}p.prototype.run=function(){var e=this.options,t=e.eles,r=t.nodes(),a=g(r,t.edges(),e);return n.layout({graph:a,options:s(e.klay),success:function(){},error:function(e){throw e}}),r.filter(function(e){return!e.isParent()}).layoutPositions(this,e,l),this},p.prototype.stop=function(){return this},p.prototype.destroy=function(){return this},e.exports=p},function(e,t,r){"use strict";e.exports=null!=Object.assign?Object.assign.bind(Object):function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return r.filter(function(e){return null!=e}).forEach(function(t){Object.keys(t).forEach(function(r){return e[r]=t[r]})}),e}},function(e,t,r){"use strict";e.exports={nodeDimensionsIncludeLabels:!1,fit:!0,padding:20,animate:!1,animateFilter:function(e,t){return!0},animationDuration:500,animationEasing:void 0,transform:function(e,t){return t},ready:void 0,stop:void 0,klay:{addUnnecessaryBendpoints:!1,aspectRatio:1.6,borderSpacing:20,compactComponents:!1,crossingMinimization:"LAYER_SWEEP",cycleBreaking:"GREEDY",direction:"UNDEFINED",edgeRouting:"ORTHOGONAL",edgeSpacingFactor:.5,feedbackEdges:!1,fixedAlignment:"NONE",inLayerSpacingFactor:1,layoutHierarchy:!1,linearSegmentsDeflectionDampening:.3,mergeEdges:!1,mergeHierarchyCrossingEdges:!0,nodeLayering:"NETWORK_SIMPLEX",nodePlacement:"BRANDES_KOEPF",randomizationSeed:1,routeSelfLoopInside:!1,separateConnectedComponents:!0,spacing:20,thoroughness:7},priority:function(e){return null}}},function(e,t,r){"use strict";var n=r(0),a=function(e){e&&e("layout","klay",n)};"undefined"!=typeof cytoscape&&a(cytoscape),e.exports=a},function(t,r){t.exports=e}])},e.exports=n(r(73552))},19392:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return b}});var n=r(24246),a=r(77181),i=r(27378),o=r(76573),s=r(72011),c=r.n(s),l=r(3124),d=r.n(l),u=r(65218),g=r.n(u),p=r(54349);let y=g()(()=>r.e(7062).then(r.bind(r,37062)),{loadableGenerated:{webpack:()=>[37062]},ssr:!1});o.Z.use(c()),o.Z.warnings(!1);let m=e=>{let{data:t}=e,r=(0,i.useMemo)(()=>[...t.nodes.map(e=>({data:{label:e.name,...e},grabbable:!1,classes:"center-center multiline-auto outline"})),...t.links.map(e=>({data:{source:e.source,target:e.target}}))],[t.links,t.nodes]),n=(0,i.useMemo)(()=>({name:"klay",nodeDimensionsIncludeLabels:!0,klay:{thoroughness:20,borderSpacing:100,direction:"DOWN",edgeRouting:"SPLINES",edgeSpacingFactor:1.3}}),[]),a=d().FIDESUI_NEUTRAL_50;return{elements:r,layoutConfig:n,styleSheet:(0,i.useMemo)(()=>[{selector:"node[label]",style:{label:"data(label)"}},{selector:"node",style:{shape:"ellipse",width:"45px",height:"45px",backgroundColor:a}},{selector:"edge[label]",style:{label:"data(label)",width:3}},{selector:"edge",style:{"curve-style":"bezier","target-arrow-shape":"triangle","line-color":"#888","target-arrow-color":"#888",opacity:.5}},{selector:"node",style:{"background-image":"/images/DatabaseIcon.svg"}},{selector:"node:selected",style:{"background-image":"/images/SelectedDatabaseIcon.svg"}},{selector:".center-center",style:{"text-valign":"center","text-halign":"right"}},{selector:".multiline-auto",style:{"text-wrap":"wrap","text-max-width":"40"}},{selector:".outline",style:{color:"#8d91b4","text-outline-color":"#fff","text-outline-width":1}}],[a]),backgroundColor:a}};var k=i.memo(e=>{let{data:t,setSelectedSystemId:r}=e,{elements:o,layoutConfig:s,styleSheet:c,backgroundColor:l}=m({data:t}),d=(0,i.useContext)(p.Y),[u,g]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{let e=e=>{r(e.target._private.data.id)};return d.current&&(d.current.on("click","node",e),d.current.on("layoutstop",()=>{d.current&&(d.current.maxZoom(2.5),d.current.fit(),d.current.maxZoom(100))})),()=>{d.current&&d.current.off("click","node",e)}},[d.current,r]),(0,i.useEffect)(()=>()=>{d.current=void 0},[d]),(0,i.useEffect)(()=>{if(u){var e,t,r,n;null===(e=d.current)||void 0===e||e.layout(s).stop(),null===(t=d.current)||void 0===t||t.layout(s).removeAllListeners(),null===(r=d.current)||void 0===r||r.layout(s),null===(n=d.current)||void 0===n||n.layout(s).run()}},[u,o,d,s]),(0,n.jsx)(a.xuv,{boxSize:"100%","data-testid":"cytoscape-graph",position:"absolute",children:(0,n.jsx)(a.xuv,{boxSize:"100%",bgColor:"gray.50",children:(0,n.jsx)(y,{cy:e=>{u||(g(!0),d.current=e)},elements:o,style:{height:"100%",width:"100%",backgroundColor:l},stylesheet:c,wheelSensitivity:.085,layout:s})})})}),f=r(99811);let h=e=>{let t=(0,i.useMemo)(()=>new Set(null==e?void 0:e.map(e=>e.original["system.fides_key"])),[e]),r=(0,i.useMemo)(()=>e.reduce((e,t)=>{let r=t.original["system.fides_key"];return e[r]||(e[r]={name:t.original["system.name"],description:t.original["system.description"],ingress:t.original["system.ingress"]?t.original["system.ingress"].split(", "):[],egress:t.original["system.egress"]?t.original["system.egress"].split(", "):[],id:t.original["system.fides_key"]}),e},{}),[e]);return{data:(0,i.useMemo)(()=>{let e=[],t=new Set([]);return r&&(e=Object.values(r)).map(e=>[...e.ingress.filter(e=>r[e]).map(t=>({source:t,target:e.id})),...e.egress.filter(e=>r[e]).map(t=>({source:e.id,target:t}))]).flatMap(e=>e).forEach(e=>t.add(JSON.stringify(e))),{nodes:e,links:Array.from(t).map(e=>JSON.parse(e))}},[r]),highlightedNodes:t}};var b=e=>{let{setSelectedSystemId:t}=e,{tableInstance:r}=(0,i.useContext)(f.Z);if(!r)return null;let{rows:o}=r.getRowModel(),{data:s}=h(o);return(0,n.jsx)(a.xuv,{boxSize:"100%",minHeight:"600px",position:"relative",children:(0,n.jsx)(k,{data:s,setSelectedSystemId:t})})}}}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9392],{72011:function(e,t,r){var n;n=function(e){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}return r.m=e,r.c=t,r.i=function(e){return e},r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=3)}([function(e,t,r){"use strict";var n=r(4),a=r(1),i=r(2),o={addUnnecessaryBendpoints:"de.cau.cs.kieler.klay.layered.unnecessaryBendpoints",alignment:"de.cau.cs.kieler.alignment",aspectRatio:"de.cau.cs.kieler.aspectRatio",borderSpacing:"borderSpacing",compactComponents:"de.cau.cs.kieler.klay.layered.components.compact",compactionStrategy:"de.cau.cs.kieler.klay.layered.nodeplace.compactionStrategy",contentAlignment:"de.cau.cs.kieler.klay.layered.contentAlignment",crossingMinimization:"de.cau.cs.kieler.klay.layered.crossMin",cycleBreaking:"de.cau.cs.kieler.klay.layered.cycleBreaking",debugMode:"de.cau.cs.kieler.debugMode",direction:"de.cau.cs.kieler.direction",edgeLabelSideSelection:"de.cau.cs.kieler.klay.layered.edgeLabelSideSelection",edgeRouting:"de.cau.cs.kieler.edgeRouting",edgeSpacingFactor:"de.cau.cs.kieler.klay.layered.edgeSpacingFactor",feedbackEdges:"de.cau.cs.kieler.klay.layered.feedBackEdges",fixedAlignment:"de.cau.cs.kieler.klay.layered.fixedAlignment",greedySwitchCrossingMinimization:"de.cau.cs.kieler.klay.layered.greedySwitch",hierarchyHandling:"de.cau.cs.kieler.hierarchyHandling",inLayerSpacingFactor:"de.cau.cs.kieler.klay.layered.inLayerSpacingFactor",interactiveReferencePoint:"de.cau.cs.kieler.klay.layered.interactiveReferencePoint",layerConstraint:"de.cau.cs.kieler.klay.layered.layerConstraint",layoutHierarchy:"de.cau.cs.kieler.layoutHierarchy",linearSegmentsDeflectionDampening:"de.cau.cs.kieler.klay.layered.linearSegmentsDeflectionDampening",mergeEdges:"de.cau.cs.kieler.klay.layered.mergeEdges",mergeHierarchyCrossingEdges:"de.cau.cs.kieler.klay.layered.mergeHierarchyEdges",noLayout:"de.cau.cs.kieler.noLayout",nodeLabelPlacement:"de.cau.cs.kieler.nodeLabelPlacement",nodeLayering:"de.cau.cs.kieler.klay.layered.nodeLayering",nodePlacement:"de.cau.cs.kieler.klay.layered.nodePlace",portAlignment:"de.cau.cs.kieler.portAlignment",portAlignmentEastern:"de.cau.cs.kieler.portAlignment.east",portAlignmentNorth:"de.cau.cs.kieler.portAlignment.north",portAlignmentSouth:"de.cau.cs.kieler.portAlignment.south",portAlignmentWest:"de.cau.cs.kieler.portAlignment.west",portConstraints:"de.cau.cs.kieler.portConstraints",portLabelPlacement:"de.cau.cs.kieler.portLabelPlacement",portOffset:"de.cau.cs.kieler.offset",portSide:"de.cau.cs.kieler.portSide",portSpacing:"de.cau.cs.kieler.portSpacing",postCompaction:"de.cau.cs.kieler.klay.layered.postCompaction",priority:"de.cau.cs.kieler.priority",randomizationSeed:"de.cau.cs.kieler.randomSeed",routeSelfLoopInside:"de.cau.cs.kieler.selfLoopInside",separateConnectedComponents:"de.cau.cs.kieler.separateConnComp",sizeConstraint:"de.cau.cs.kieler.sizeConstraint",sizeOptions:"de.cau.cs.kieler.sizeOptions",spacing:"de.cau.cs.kieler.spacing",splineSelfLoopPlacement:"de.cau.cs.kieler.klay.layered.splines.selfLoopPlacement",thoroughness:"de.cau.cs.kieler.klay.layered.thoroughness",wideNodesOnMultipleLayers:"de.cau.cs.kieler.klay.layered.wideNodesOnMultipleLayers"},s=function(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++){var a=t[n],i=o[a],s=e[a];r[i]=s}return r},c={interactiveReferencePoint:"CENTER"},l=function(e){for(var t=e.parent(),r=e.scratch("klay"),n={x:r.x,y:r.y};t.nonempty();){var a=t.scratch("klay");n.x+=a.x,n.y+=a.y,t=t.parent()}return n},d=function(e,t){var r=e.layoutDimensions(t),n=e.numericStyle("padding"),a={_cyEle:e,id:e.id(),padding:{top:n,left:n,bottom:n,right:n}};return e.isParent()||(a.width=r.w,a.height=r.h),e.scratch("klay",a),a},u=function(e,t){var r={_cyEle:e,id:e.id(),source:e.data("source"),target:e.data("target"),properties:{}},n=t.priority(e);return null!=n&&(r.properties.priority=n),e.scratch("klay",r),r},g=function(e,t,r){for(var n=[],a=[],i={},o={id:"root",children:[],edges:[]},s=0;s<e.length;s++){var c=e[s],l=d(c,r);n.push(l),i[c.id()]=l}for(var g=0;g<t.length;g++){var p=t[g],y=u(p,r);a.push(y),i[p.id()]=y}for(var m=0;m<n.length;m++){var k=n[m],f=k._cyEle;if(f.isChild()){var h=i[f.parent().id()];(h.children=h.children||[]).push(k)}else o.children.push(k)}for(var b=0;b<a.length;b++){var S=a[b],v=S._cyEle;v.source().parent(),v.target().parent(),o.edges.push(S)}return o};function p(e){var t=e.klay;this.options=a({},i,e),this.options.klay=a({},i.klay,t,c)}p.prototype.run=function(){var e=this.options,t=e.eles,r=t.nodes(),a=g(r,t.edges(),e);return n.layout({graph:a,options:s(e.klay),success:function(){},error:function(e){throw e}}),r.filter(function(e){return!e.isParent()}).layoutPositions(this,e,l),this},p.prototype.stop=function(){return this},p.prototype.destroy=function(){return this},e.exports=p},function(e,t,r){"use strict";e.exports=null!=Object.assign?Object.assign.bind(Object):function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return r.filter(function(e){return null!=e}).forEach(function(t){Object.keys(t).forEach(function(r){return e[r]=t[r]})}),e}},function(e,t,r){"use strict";e.exports={nodeDimensionsIncludeLabels:!1,fit:!0,padding:20,animate:!1,animateFilter:function(e,t){return!0},animationDuration:500,animationEasing:void 0,transform:function(e,t){return t},ready:void 0,stop:void 0,klay:{addUnnecessaryBendpoints:!1,aspectRatio:1.6,borderSpacing:20,compactComponents:!1,crossingMinimization:"LAYER_SWEEP",cycleBreaking:"GREEDY",direction:"UNDEFINED",edgeRouting:"ORTHOGONAL",edgeSpacingFactor:.5,feedbackEdges:!1,fixedAlignment:"NONE",inLayerSpacingFactor:1,layoutHierarchy:!1,linearSegmentsDeflectionDampening:.3,mergeEdges:!1,mergeHierarchyCrossingEdges:!0,nodeLayering:"NETWORK_SIMPLEX",nodePlacement:"BRANDES_KOEPF",randomizationSeed:1,routeSelfLoopInside:!1,separateConnectedComponents:!0,spacing:20,thoroughness:7},priority:function(e){return null}}},function(e,t,r){"use strict";var n=r(0),a=function(e){e&&e("layout","klay",n)};"undefined"!=typeof cytoscape&&a(cytoscape),e.exports=a},function(t,r){t.exports=e}])},e.exports=n(r(73552))},19392:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return b}});var n=r(24246),a=r(56351),i=r(27378),o=r(76573),s=r(72011),c=r.n(s),l=r(3124),d=r.n(l),u=r(65218),g=r.n(u),p=r(54349);let y=g()(()=>r.e(7062).then(r.bind(r,37062)),{loadableGenerated:{webpack:()=>[37062]},ssr:!1});o.Z.use(c()),o.Z.warnings(!1);let m=e=>{let{data:t}=e,r=(0,i.useMemo)(()=>[...t.nodes.map(e=>({data:{label:e.name,...e},grabbable:!1,classes:"center-center multiline-auto outline"})),...t.links.map(e=>({data:{source:e.source,target:e.target}}))],[t.links,t.nodes]),n=(0,i.useMemo)(()=>({name:"klay",nodeDimensionsIncludeLabels:!0,klay:{thoroughness:20,borderSpacing:100,direction:"DOWN",edgeRouting:"SPLINES",edgeSpacingFactor:1.3}}),[]),a=d().FIDESUI_NEUTRAL_50;return{elements:r,layoutConfig:n,styleSheet:(0,i.useMemo)(()=>[{selector:"node[label]",style:{label:"data(label)"}},{selector:"node",style:{shape:"ellipse",width:"45px",height:"45px",backgroundColor:a}},{selector:"edge[label]",style:{label:"data(label)",width:3}},{selector:"edge",style:{"curve-style":"bezier","target-arrow-shape":"triangle","line-color":"#888","target-arrow-color":"#888",opacity:.5}},{selector:"node",style:{"background-image":"/images/DatabaseIcon.svg"}},{selector:"node:selected",style:{"background-image":"/images/SelectedDatabaseIcon.svg"}},{selector:".center-center",style:{"text-valign":"center","text-halign":"right"}},{selector:".multiline-auto",style:{"text-wrap":"wrap","text-max-width":"40"}},{selector:".outline",style:{color:"#8d91b4","text-outline-color":"#fff","text-outline-width":1}}],[a]),backgroundColor:a}};var k=i.memo(e=>{let{data:t,setSelectedSystemId:r}=e,{elements:o,layoutConfig:s,styleSheet:c,backgroundColor:l}=m({data:t}),d=(0,i.useContext)(p.Y),[u,g]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{let e=e=>{r(e.target._private.data.id)};return d.current&&(d.current.on("click","node",e),d.current.on("layoutstop",()=>{d.current&&(d.current.maxZoom(2.5),d.current.fit(),d.current.maxZoom(100))})),()=>{d.current&&d.current.off("click","node",e)}},[d.current,r]),(0,i.useEffect)(()=>()=>{d.current=void 0},[d]),(0,i.useEffect)(()=>{if(u){var e,t,r,n;null===(e=d.current)||void 0===e||e.layout(s).stop(),null===(t=d.current)||void 0===t||t.layout(s).removeAllListeners(),null===(r=d.current)||void 0===r||r.layout(s),null===(n=d.current)||void 0===n||n.layout(s).run()}},[u,o,d,s]),(0,n.jsx)(a.xuv,{boxSize:"100%","data-testid":"cytoscape-graph",position:"absolute",children:(0,n.jsx)(a.xuv,{boxSize:"100%",bgColor:"gray.50",children:(0,n.jsx)(y,{cy:e=>{u||(g(!0),d.current=e)},elements:o,style:{height:"100%",width:"100%",backgroundColor:l},stylesheet:c,wheelSensitivity:.085,layout:s})})})}),f=r(99811);let h=e=>{let t=(0,i.useMemo)(()=>new Set(null==e?void 0:e.map(e=>e.original["system.fides_key"])),[e]),r=(0,i.useMemo)(()=>e.reduce((e,t)=>{let r=t.original["system.fides_key"];return e[r]||(e[r]={name:t.original["system.name"],description:t.original["system.description"],ingress:t.original["system.ingress"]?t.original["system.ingress"].split(", "):[],egress:t.original["system.egress"]?t.original["system.egress"].split(", "):[],id:t.original["system.fides_key"]}),e},{}),[e]);return{data:(0,i.useMemo)(()=>{let e=[],t=new Set([]);return r&&(e=Object.values(r)).map(e=>[...e.ingress.filter(e=>r[e]).map(t=>({source:t,target:e.id})),...e.egress.filter(e=>r[e]).map(t=>({source:e.id,target:t}))]).flatMap(e=>e).forEach(e=>t.add(JSON.stringify(e))),{nodes:e,links:Array.from(t).map(e=>JSON.parse(e))}},[r]),highlightedNodes:t}};var b=e=>{let{setSelectedSystemId:t}=e,{tableInstance:r}=(0,i.useContext)(f.Z);if(!r)return null;let{rows:o}=r.getRowModel(),{data:s}=h(o);return(0,n.jsx)(a.xuv,{boxSize:"100%",minHeight:"600px",position:"relative",children:(0,n.jsx)(k,{data:s,setSelectedSystemId:t})})}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9676],{59676:function(e,i,r){r.r(i),r.d(i,{default:function(){return j}});var t=r(24246),n=r(56351),s=r(16134),a=r(27378),l=r(812),o=r(14047),d=r(90867);let u=(0,n.Gpc)((e,i)=>{let{handleBlur:r,subjectRequest:u}=e,c=(0,s.T)(),[f,m]=(0,a.useState)(!1),{errorAlert:h,successAlert:x}=(0,o.V)(),{errorRequests:p}=(0,s.C)(d.fe),[g]=(0,d.JD)(),[j]=(0,d.Fq)(),y=async()=>{m(!0);let e=await g(p);"error"in e?(c((0,d.uT)({checkAll:!1,errorRequests:[]})),h((0,l.e$)(e.error),"DSR batch automation has failed due to the following:",{duration:null})):(e.data.failed.length>0&&h((0,t.jsxs)(n.xuv,{children:["DSR automation has failed for"," ",(0,t.jsx)(n.xvT,{as:"span",fontWeight:"semibold",children:e.data.failed.length})," ","privacy request(s). Please review the event log for further details."]}),void 0,{containerStyle:{maxWidth:"max-content"},duration:null}),e.data.succeeded.length>0&&x("Privacy request(s) are now being reprocessed.")),m(!1)},v=async()=>{if(!u)return;m(!0);let e=await j(u);"error"in e?h((0,l.e$)(e.error),"DSR automation has failed for this privacy request due to the following:",{duration:null}):x("Privacy request is now being reprocessed."),m(!1),r&&r(i)};return(0,t.jsx)(n.wpx,{disabled:f,loading:f,onClick:u?v:y,ref:i,size:"small",icon:(0,t.jsx)(n.AyE,{}),children:"Reprocess"})});var c=r(34090),f=r(59389);let m=/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i,h=e=>m.test(e),x=(0,n.Gpc)((e,i)=>{let{isRequired:r=!1,...s}=e,{emails:l}=s.form.values,[o,d]=(0,a.useState)(""),u=e=>l.includes(e),c=e=>{e.map(e=>e.trim()).filter(e=>h(e)&&!u(e)).forEach(e=>s.push(e)),d("")};return(0,t.jsxs)(n.NIc,{alignItems:"baseline",display:"inline-flex",isInvalid:!!s.form.errors[s.name],isRequired:r,children:[(0,t.jsx)(n.lXp,{fontSize:"md",htmlFor:"email",children:"Email"}),(0,t.jsxs)(n.gCW,{align:"flex-start",w:"inherit",children:[(0,t.jsx)(n.IIB,{autoComplete:"off",placeholder:"Type or paste email addresses separated by commas and press `Enter` or `Tab`...",onChange:e=>{d(e.target.value)},onKeyDown:e=>{["Enter","Tab",","].includes(e.key)&&(e.preventDefault(),c([o]))},onPaste:e=>{e.preventDefault(),c(e.clipboardData.getData("text").split(","))},ref:i,size:"sm",type:"email",value:o}),(0,t.jsx)(n.J1D,{children:s.form.errors[s.name]}),l.length>0&&(0,t.jsx)(n.Eq9,{spacing:1,mb:3,pt:"8px",children:l.map((e,i)=>(0,t.jsxs)(n.Vp9,{borderRadius:"full",backgroundColor:"primary.400",color:"white",size:"sm",variant:"solid",children:[(0,t.jsx)(n.Sn0,{children:e}),(0,t.jsx)(n.SD9,{onClick:()=>{s.remove(i)}})]},e))})]})]})}),p=f.Ry().shape({emails:f.IX(f.Z_()).when(["notify"],{is:!0,then:()=>f.IX(f.Z_()).min(1,"Must enter at least one valid email").label("Email")}),notify:f.O7(),minErrorCount:f.Rx().required()});var g=()=>{let{isOpen:e,onOpen:i,onClose:r}=(0,n.qY0)(),[s,u]=(0,a.useState)({emails:[],notify:!1,minErrorCount:1}),f=(0,a.useRef)(null),{errorAlert:m,successAlert:h}=(0,o.V)(),[g,j]=(0,a.useState)(!0),{data:y}=(0,d.tE)(void 0,{skip:g}),[v]=(0,d.SC)(),C=async(e,i)=>{i.setSubmitting(!0);let t=await v({email_addresses:e.emails,notify_after_failures:e.notify?e.minErrorCount:0});"error"in t?m((0,l.e$)(t.error),"Configure alerts and notifications has failed to save due to the following:"):h("Configure alerts and notifications saved successfully."),i.setSubmitting(!1),r()};return(0,a.useEffect)(()=>{e&&j(!1),y&&u({emails:y.email_addresses,notify:0!==y.notify_after_failures,minErrorCount:y.notify_after_failures})},[y,e]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.wpx,{onClick:i,title:"Configure alerts","aria-label":"Configure alerts",icon:(0,t.jsx)(n.Dkj,{})}),(0,t.jsx)(c.J9,{enableReinitialize:!0,initialValues:s,onSubmit:C,validationSchema:p,children:i=>(0,t.jsxs)(n.dys,{isOpen:e,placement:"right",initialFocusRef:f,onClose:()=>{i.resetForm(),r()},size:"lg",children:[(0,t.jsx)(n.P1B,{}),(0,t.jsxs)(n.scA,{color:"gray.900",children:[(0,t.jsx)(n.cCv,{}),(0,t.jsxs)(n.OXI,{color:"gray.900",children:[(0,t.jsx)(n.xvT,{fontSize:"2xl",fontWeight:"normal",mb:4,children:"Configure alerts and notifications"}),(0,t.jsx)(n.xuv,{mt:"26px",children:(0,t.jsx)(n.xvT,{fontSize:"md",fontWeight:"normal",children:"Setup your alerts to send you a notification when there are any processing failures. You can also setup a threshold for connector failures for Fides to notify you after X amount of failures have occurred."})})]}),(0,t.jsx)(n.Ng0,{mt:"20px",children:(0,t.jsxs)(c.l0,{id:"configure-alerts-form",noValidate:!0,children:[(0,t.jsx)(n.xvT,{fontSize:"md",children:"Contact details"}),(0,t.jsxs)(n.gCW,{align:"stretch",gap:"29px",mt:"14px",children:[(0,t.jsx)(n.Ugi,{children:(0,t.jsx)(c.F2,{name:"emails",render:e=>(0,t.jsx)(x,{...e,isRequired:i.values.notify,ref:f})})}),(0,t.jsx)(n.Ugi,{children:(0,t.jsx)(c.gN,{id:"notify",name:"notify",children:e=>{let{field:r}=e;return(0,t.jsxs)(n.NIc,{alignItems:"center",display:"flex",mt:"45px",children:[(0,t.jsx)(n.lXp,{fontSize:"md",mb:"0",children:"Notify me immediately if there are any DSR processing errors"}),(0,t.jsx)(n.rAg,{checked:i.values.notify,onChange:(e,t)=>{r.onChange(t),i.setFieldValue(r.name,e),i.setFieldValue("minErrorCount",1),e||setTimeout(()=>{i.setFieldTouched("emails",!1)},0)}})]})}})})]}),(0,t.jsx)(n.xvT,{color:"#757575",fontSize:"sm",mt:"11px",children:"If selected, then Fides will notify you by your chosen method of communication every time the system encounters a data subject request processing error. You can turn this off anytime and setup a more suitable notification method below if you wish."}),i.values.notify&&(0,t.jsx)(n.Ugi,{mt:"34px",children:(0,t.jsx)(c.gN,{id:"minErrorCount",name:"minErrorCount",children:e=>{let{field:r,meta:s}=e;return(0,t.jsxs)(n.NIc,{alignItems:"center",display:"flex",isInvalid:!!(s.error&&s.touched),isRequired:!0,children:[(0,t.jsx)(n.xvT,{children:"Notify me after"}),(0,t.jsxs)(n.Y2U,{allowMouseWheel:!0,color:"gray.700",defaultValue:i.values.minErrorCount||1,min:1,ml:"8px",mr:"8px",onChange:(e,r)=>{i.setFieldValue("minErrorCount",r)},size:"sm",w:"80px",children:[(0,t.jsx)(n.zuI,{...r}),(0,t.jsxs)(n.FiK,{children:[(0,t.jsx)(n.WQu,{}),(0,t.jsx)(n.Y_d,{})]})]}),(0,t.jsx)(n.xvT,{children:"DSR processing errors "})]})}})})]})}),(0,t.jsx)(n.zeN,{justifyContent:"flex-start",children:(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(n.wpx,{onClick:()=>{i.resetForm(),r()},children:"Cancel"}),(0,t.jsx)(n.wpx,{form:"configure-alerts-form",disabled:i.isSubmitting,loading:i.isSubmitting,htmlType:"submit",children:"Save"})]})})]})]})})]})},j=()=>{let{errorRequests:e}=(0,s.C)(d.fe);return(0,t.jsxs)(n.kCb,{gap:4,children:[(null==e?void 0:e.length)>0&&(0,t.jsx)(u,{}),(0,t.jsx)(g,{})]})}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9767],{7617:function(e,t,n){n.d(t,{q:function(){return r}});var i=n(24246),a=n(56351);let r=e=>{let{label:t,isDisabled:n,...r}=e;return(0,i.jsx)(a.OK9,{"data-testid":"tab-".concat(t),_selected:{fontWeight:"600",color:"complimentary.500",borderColor:"complimentary.500"},fontSize:r.fontSize,fontWeight:"500",color:"gray.500",isDisabled:n||!1,children:t})};t.Z=e=>{let{data:t,border:n="partial",...l}=e;return(0,i.jsxs)(a.mQc,{colorScheme:"complimentary",...l,children:[(0,i.jsx)(a.tdY,{width:"partial"===n?"max-content":void 0,children:t.map(e=>(0,i.jsx)(r,{label:e.label,isDisabled:e.isDisabled,fontSize:l.fontSize},e.label))}),(0,i.jsx)(a.nPR,{children:t.map(e=>(0,i.jsx)(a.x45,{px:0,"data-testid":"tab-panel-".concat(e.label),children:e.content},e.label))})]})}},97181:function(e,t,n){n.d(t,{d:function(){return c}});var i=n(24246),a=n(56351),r=n(34090),l=n(27378),s=n(91613),o=n(40324);let c=e=>{let{name:t,label:n,labelProps:c,tooltip:d,isRequired:u,layout:h="inline",...x}=e,[p,m,{setValue:f}]=(0,r.U$)(t),g=!!(m.touched&&m.error),[y,v]=(0,l.useState)("");p.value||"tags"!==x.mode&&"multiple"!==x.mode||(p.value=[]),"tags"===x.mode&&"string"==typeof p.value&&(p.value=[p.value]);let j="tags"===x.mode?(e,t)=>e?e.value!==y||p.value.includes(y)?x.optionRender?x.optionRender(e,t):e.label:'Create "'.concat(y,'"'):void 0:x.optionRender||void 0,b=e=>{v(e),x.onSearch&&x.onSearch(e)},_=(e,t)=>{f(e),x.onChange&&x.onChange(e,t)};return"inline"===h?(0,i.jsx)(a.NIc,{isInvalid:g,isRequired:u,children:(0,i.jsxs)(a.rjZ,{templateColumns:n?"1fr 3fr":"1fr",children:[n?(0,i.jsx)(o.__,{htmlFor:x.id||t,...c,children:n}):null,(0,i.jsxs)(a.jqI,{align:"center",children:[(0,i.jsxs)(a.jqI,{vertical:!0,flex:1,className:"mr-2",children:[(0,i.jsx)(a.WPr,{...p,id:x.id||t,"data-testid":"controlled-select-".concat(p.name),...x,optionRender:j,onSearch:"tags"===x.mode?b:void 0,onChange:_,value:p.value||void 0}),(0,i.jsx)(o.Bc,{isInvalid:g,message:m.error,fieldName:p.name})]}),d?(0,i.jsx)(s.Z,{label:d}):null]})]})}):(0,i.jsx)(a.NIc,{isInvalid:g,isRequired:u,children:(0,i.jsxs)(a.gCW,{alignItems:"start",children:[(0,i.jsxs)(a.jqI,{align:"center",children:[n?(0,i.jsx)(o.__,{htmlFor:x.id||t,fontSize:"xs",my:0,mr:1,...c,children:n}):null,d?(0,i.jsx)(s.Z,{label:d}):null]}),(0,i.jsx)(a.WPr,{...p,id:x.id||t,"data-testid":"controlled-select-".concat(p.name),...x,optionRender:j,onSearch:"tags"===x.mode?b:void 0,onChange:_,value:p.value||void 0}),(0,i.jsx)(o.Bc,{isInvalid:g,message:m.error,fieldName:p.name})]})})}},812:function(e,t,n){n.d(t,{D4:function(){return r.D4},MM:function(){return h},Ot:function(){return c},c6:function(){return a},cj:function(){return p},e$:function(){return s},fn:function(){return o},iC:function(){return x},nU:function(){return u},tB:function(){return d}});var i,a,r=n(19043);let l="An unexpected error occurred. Please try again.",s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l;if((0,r.Bw)(e)){if((0,r.hE)(e.data))return e.data.detail;if((0,r.cz)(e.data)){var n;let t=null===(n=e.data.detail)||void 0===n?void 0:n[0];return"".concat(null==t?void 0:t.msg,": ").concat(null==t?void 0:t.loc)}if(409===e.status&&(0,r.Dy)(e.data)||404===e.status&&(0,r.XD)(e.data))return"".concat(e.data.detail.error," (").concat(e.data.detail.fides_key,")")}return t};function o(e){return"object"==typeof e&&null!=e&&"status"in e}function c(e){return"object"==typeof e&&null!=e&&"data"in e&&"string"==typeof e.data.detail}function d(e){return"object"==typeof e&&null!=e&&"data"in e&&Array.isArray(e.data.detail)}let u=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{status:500,message:l};if((0,r.oK)(e))return{status:e.originalStatus,message:e.data};if((0,r.Bw)(e)){let{status:n}=e;return{status:n,message:s(e,t.message)}}return t},h=e=>Object.entries(e).map(e=>({value:e[1],label:e[1]}));(i=a||(a={})).GVL="gvl",i.AC="gacp",i.COMPASS="compass";let x={gvl:{label:"GVL",fullName:"Global Vendor List"},gacp:{label:"AC",fullName:"Google Additional Consent List"},compass:{label:"",fullName:""}},p=e=>{let t=e.split(".")[0];return"gacp"===t?"gacp":"gvl"===t?"gvl":"compass"}},14047:function(e,t,n){n.d(t,{H:function(){return r},V:function(){return i.V}});var i=n(84306),a=n(812);let r=()=>{let{errorAlert:e}=(0,i.V)();return{handleError:t=>{let n="An unexpected error occurred. Please try again.";(0,a.Ot)(t)?n=t.data.detail:(0,a.tB)(t)&&(n=t.data.detail[0].msg),e(n)}}}},41337:function(e,t,n){var i=n(24246),a=n(56351);n(27378);var r=n(21702),l=n(14746);let s=e=>void 0!==e.connection_type,o=e=>void 0!==e.encoded_icon;t.Z=e=>{let{data:t,...n}=e;return(0,i.jsx)(a.Eep,{boxSize:"32px",objectFit:"cover",src:(()=>{let e;if(o(t)&&t.encoded_icon)return"data:image/svg+xml;base64,".concat(t.encoded_icon);if(s(t))e=[...l.iW].find(e=>{var n,i;let[a]=e;return t.connection_type.toString()!==r.Rj.SAAS&&t.connection_type.toString()===a||t.connection_type.toString()===r.Rj.SAAS&&(null===(i=t.saas_config)||void 0===i?void 0:null===(n=i.type)||void 0===n?void 0:n.toString())===a.toString()});else if(o(t)){let{identifier:n}=t;e=[...l.iW].find(e=>{let[t]=e;return t.toLowerCase()===n.toLowerCase()})}return e?l.Ny+e[1]:l.VD})(),fallbackSrc:l.VD,alt:(()=>{if(s(t)){var e;return null!==(e=t.name)&&void 0!==e?e:t.key}return o(t)?t.human_readable:t})(),...n})}},1226:function(e,t,n){var i=n(24246);n(27378);var a=n(77213);t.Z=e=>{let{children:t}=e;return(0,i.jsx)(a.Z,{title:"Connections",children:t})}},11274:function(e,t,n){n.d(t,{s:function(){return W}});var i=n(24246),a=n(96356),r=n(56351),l=n(86677),s=n(27378),o=n(16134),c=n(77830),d=n(21702),u=n(14047),h=n(84306),x=n(14207),p=n(45007),m=n(34090);let f=(e,t)=>{let n={...e};return Object.entries(t.properties).forEach(t=>{let[i,a]=t;if("integer"===a.type){let t=a.default?Number(a.default):e[i];n[i]=t||0}else{var r;let t=null!==(r=a.default)&&void 0!==r?r:e[i];n[i]=null!=t?t:null}}),n},g="#/definitions/FidesDatasetReference";var y=e=>{let{data:t,defaultValues:n,isSubmitting:l=!1,onSaveClick:c,onTestConnectionClick:h,testButtonLabel:p="Test integration"}=e,y=(0,s.useRef)(!1),{handleError:v}=(0,u.H)(),{connection:j,connectionOption:b}=(0,o.C)(a.ZZ),[_,C]=(0,x.h2)(),k=e=>{let t;return(void 0===e||""===e)&&(t="Connection Identifier is required"),e&&(0,r.kEn)(e)&&(t="Connection Identifier must be an alphanumeric value"),t},S=(e,t,n)=>{let i;return(void 0===t||""===t)&&(i="".concat(e," is required")),n===g&&(t.includes(".")?t.split(".").length<3&&(i="Dataset reference must include at least three parts"):i="Dataset reference must be dot delimited"),i},w=(e,t)=>(0,i.jsx)(r.lXp,{color:"gray.900",fontSize:"14px",fontWeight:"semibold",htmlFor:e,minWidth:"150px",children:t}),I=e=>{var t;if((null===(t=e.allOf)||void 0===t?void 0:t[0].$ref)===g)return"Enter dataset.collection.field"},R=(e,n)=>{var a;return(0,i.jsx)(m.gN,{id:e,name:e,validate:(null!==(a=t.required)&&void 0!==a&&!!a.includes(e)||"integer"===n.type)&&(e=>{var t;return S(n.title,e,null===(t=n.allOf)||void 0===t?void 0:t[0].$ref)}),children:a=>{var l;let{field:s,form:o}=a;return(0,i.jsxs)(r.NIc,{display:"flex",isRequired:null===(l=t.required)||void 0===l?void 0:l.includes(e),isInvalid:o.errors[e]&&o.touched[e],children:[w(e,n.title),(0,i.jsxs)(r.gCW,{align:"flex-start",w:"inherit",children:["integer"!==n.type&&(0,i.jsx)(r.IIB,{...s,value:s.value||"",placeholder:I(n),autoComplete:"off",color:"gray.700",size:"sm"}),"integer"===n.type&&(0,i.jsxs)(r.Y2U,{allowMouseWheel:!0,color:"gray.700",defaultValue:0,min:0,size:"sm",children:[(0,i.jsx)(r.zuI,{...s,autoComplete:"off"}),(0,i.jsxs)(r.FiK,{children:[(0,i.jsx)(r.WQu,{}),(0,i.jsx)(r.Y_d,{})]})]}),(0,i.jsx)(r.J1D,{children:o.errors[e]})]}),(0,i.jsx)(r.ua7,{"aria-label":n.description,hasArrow:!0,label:n.description,placement:"right-start",openDelay:500,children:(0,i.jsx)(r.kCb,{alignItems:"center",h:"32px",visibility:n.description?"visible":"hidden",children:(0,i.jsx)(r.ITP,{marginLeft:"8px",_hover:{cursor:"pointer"}})})})]})}},e)},z=async()=>{try{await _(j.key).unwrap()}catch(e){v(e)}};return(0,s.useEffect)(()=>(y.current=!0,C.isSuccess&&h(C),()=>{y.current=!1}),[h,C]),(0,i.jsx)(m.J9,{enableReinitialize:!0,initialValues:(()=>{let e={...n};if(null==j?void 0:j.key){var i,a;e.name=null!==(a=j.name)&&void 0!==a?a:"",e.description=j.description,e.instance_key=j.connection_type===d.Rj.SAAS?null===(i=j.saas_config)||void 0===i?void 0:i.fides_key:j.key}return f(e,t)})(),onSubmit:(e,n)=>{let i={...e};Object.keys(t.properties).forEach(n=>{var a;if((null===(a=t.properties[n].allOf)||void 0===a?void 0:a[0].$ref)===g){let t=e[n].split(".");i[n]={dataset:t.shift(),field:t.join("."),direction:"from"}}}),c(i,n)},validateOnBlur:!1,validateOnChange:!1,children:e=>(0,i.jsx)(m.l0,{noValidate:!0,children:(0,i.jsxs)(r.gCW,{align:"stretch",gap:"16px",children:[(0,i.jsx)(m.gN,{id:"name",name:"name",validate:e=>S("Name",e),children:t=>{let{field:n}=t;return(0,i.jsxs)(r.NIc,{display:"flex",isRequired:!0,isInvalid:e.errors.name&&e.touched.name,children:[w("name","Name"),(0,i.jsxs)(r.gCW,{align:"flex-start",w:"inherit",children:[(0,i.jsx)(r.IIB,{...n,autoComplete:"off",autoFocus:!0,color:"gray.700",placeholder:"Enter a friendly name for your new ".concat(b.human_readable," connection"),size:"sm","data-testid":"input-name"}),(0,i.jsx)(r.J1D,{children:e.errors.name})]}),(0,i.jsx)(r.kCb,{alignItems:"center",h:"32px",visibility:"hidden",children:(0,i.jsx)(r.ITP,{marginLeft:"8px"})})]})}}),(0,i.jsx)(m.gN,{id:"description",name:"description",children:e=>{let{field:t}=e;return(0,i.jsxs)(r.NIc,{display:"flex",children:[w("description","Description"),(0,i.jsx)(r.gxH,{...t,color:"gray.700",placeholder:"Enter a description for your new ".concat(b.human_readable," connection"),resize:"none",size:"sm",value:t.value||""}),(0,i.jsx)(r.kCb,{alignItems:"center",h:"32px",visibility:"hidden",children:(0,i.jsx)(r.ITP,{marginLeft:"8px"})})]})}}),(0,i.jsx)(m.gN,{id:"instance_key",name:"instance_key",validate:k,children:t=>{let{field:n}=t;return(0,i.jsxs)(r.NIc,{display:"flex",isRequired:!0,isInvalid:e.errors.instance_key&&e.touched.instance_key,children:[w("instance_key","Connection Identifier"),(0,i.jsxs)(r.gCW,{align:"flex-start",w:"inherit",children:[(0,i.jsx)(r.IIB,{...n,autoComplete:"off",color:"gray.700",isDisabled:!!(null==j?void 0:j.key),placeholder:"A unique identifier for your new ".concat(b.human_readable," connection"),size:"sm"}),(0,i.jsx)(r.J1D,{children:e.errors.instance_key})]}),(0,i.jsx)(r.ua7,{"aria-label":"The fides_key will allow fidesops to associate dataset field references appropriately. Must be a unique alphanumeric value with no spaces (underscores allowed) to represent this connection.",hasArrow:!0,label:"The fides_key will allow fidesops to associate dataset field references appropriately. Must be a unique alphanumeric value with no spaces (underscores allowed) to represent this connection.",placement:"right-start",openDelay:500,children:(0,i.jsx)(r.kCb,{alignItems:"center",h:"32px",children:(0,i.jsx)(r.ITP,{marginLeft:"8px",_hover:{cursor:"pointer"}})})})]})}}),Object.entries(t.properties).map(e=>{let[t,n]=e;return"advanced_settings"===t?null:R(t,n)}),(0,i.jsxs)("div",{className:"flex gap-2",children:[(0,i.jsx)(r.wpx,{disabled:!(null==j?void 0:j.key),loading:C.isLoading||C.isFetching,onClick:z,"data-testid":"test-connection-button",children:p}),(0,i.jsx)(r.wpx,{htmlType:"submit",type:"primary",disabled:l,loading:l,children:"Save"})]})]})})})},v=n(3968);let j=e=>{let{onConnectionCreated:t,data:n}=e,r=(0,p.I0)(),{errorAlert:l,successAlert:c}=(0,h.V)(),{handleError:m}=(0,u.H)(),[f,g]=(0,s.useState)(!1),{connection:y,connectionOption:j}=(0,o.C)(a.ZZ),[b]=(0,x.pH)(),[_]=(0,x.Du)();return{isSubmitting:f,handleSubmit:async e=>{try{var s;g(!0);let o={access:d.uv.WRITE,connection_type:null==j?void 0:j.identifier,description:e.description,disabled:!1,key:(0,v.E)(e.instance_key),name:e.name},u=await b(o).unwrap();if((null===(s=u.failed)||void 0===s?void 0:s.length)>0)l(u.failed[0].message);else{let s={connection_key:u.succeeded[0].key,secrets:{}};Object.entries(n.properties).forEach(t=>{s.secrets[t[0]]=e[t[0]]});let o=await _(s).unwrap();"failed"===o.test_status?l((0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("b",{children:"Message:"})," ",o.msg,(0,i.jsx)("br",{}),(0,i.jsx)("b",{children:"Failure Reason:"})," ",o.failure_reason]})):(r((0,a.lm)(u.succeeded[0])),c("Connector successfully ".concat((null==y?void 0:y.key)?"updated":"added","!")),(null==y?void 0:y.key)||!t||t())}}catch(e){m(e)}finally{g(!1)}},connectionOption:j}},b=e=>{let{data:t,onConnectionCreated:n,onTestConnectionClick:a}=e,{isSubmitting:l,handleSubmit:s,connectionOption:o}=j({onConnectionCreated:n,data:t});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(r.xuv,{color:"gray.700",fontSize:"14px",h:"80px",children:["Connect to your ",o.human_readable," environment by providing the information below. Once you have saved the form, you may test the integration to confirm that it's working correctly."]}),(0,i.jsx)(y,{data:t,defaultValues:{description:"",instance_key:"",name:""},isSubmitting:l,onSaveClick:s,onTestConnectionClick:a})]})},_={description:"",instance_key:"",name:""},C=e=>{let{data:t,onConnectionCreated:n,onTestEmail:a}=e,{connectionOption:l,isSubmitting:s,handleSubmit:o}=j({onConnectionCreated:n,data:t});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(r.xuv,{color:"gray.700",fontSize:"14px",h:"80px",children:["Configure your ",l.human_readable," connector by providing the connector name, description and a test email address. Once you have saved the details, you can click test email to check the format of the email."]}),(0,i.jsx)(y,{data:t,defaultValues:_,isSubmitting:s,onSaveClick:e=>{o(e)},onTestConnectionClick:a,testButtonLabel:"Test email"})]})};var k=n(59389),S=n(27259),w=n(67762),I=e=>{let{defaultValues:t,isSubmitting:n=!1,onSaveClick:s}=e,d=(0,l.useRouter)(),{connection:u,connectionOption:h}=(0,o.C)(a.ZZ);return(0,i.jsx)(m.J9,{initialValues:(()=>{if(null==u?void 0:u.key){var e;t.name=null!==(e=u.name)&&void 0!==e?e:"",t.description=u.description}return t})(),onSubmit:(e,t)=>{s(e,t)},validateOnBlur:!1,validateOnChange:!1,validationSchema:k.Ry().shape({name:k.Z_().required("Name is required")}),children:(0,i.jsx)(m.l0,{noValidate:!0,children:(0,i.jsxs)(r.gCW,{align:"stretch",gap:"16px",children:[(0,i.jsx)(S.Z,{autoFocus:!0,disabled:!!(null==u?void 0:u.key),isRequired:!0,label:"Name",name:"name",placeholder:"Enter a friendly name for your new ".concat(h.human_readable," connection")}),(0,i.jsx)(S.Z,{label:"Description",name:"description",placeholder:"Enter a description for your new ".concat(h.human_readable," connection"),type:"textarea"}),(0,i.jsx)(w.h,{isSubmitting:n,onCancelClick:()=>{d.push(c.JR)}})]})})})};let R=e=>{let{onConnectionCreated:t}=e,n=(0,p.I0)(),{errorAlert:l,successAlert:c}=(0,h.V)(),{handleError:m}=(0,u.H)(),[f,g]=(0,s.useState)(!1),{connection:y,connectionOption:v}=(0,o.C)(a.ZZ),[j]=(0,x.pH)(),b=async(e,i)=>{try{var r;g(!0);let i={access:d.uv.WRITE,connection_type:null==v?void 0:v.identifier,description:e.description,disabled:!1,name:e.name,key:null==y?void 0:y.key},s=await j(i).unwrap();(null===(r=s.failed)||void 0===r?void 0:r.length)>0?l(s.failed[0].message):(n((0,a.lm)(s.succeeded[0])),c("Connector successfully ".concat((null==y?void 0:y.key)?"updated":"added","!")),(null==y?void 0:y.key)||!t||t())}catch(e){m(e)}finally{g(!1)}};return(0,i.jsxs)(r.gCW,{align:"stretch",gap:"16px",children:[(0,i.jsxs)(r.xuv,{color:"gray.700",fontSize:"14px",children:["To begin setting up your new ",v.human_readable," ","connector you must first assign a name to the connector and a description.",(0,i.jsx)("br",{}),(0,i.jsx)("br",{}),"Once you have completed this section you can then progress onto"," ",(0,i.jsx)(r.xvT,{display:"inline-block",fontWeight:"700",children:"DSR customization"})," ","using the menu on the left hand side."]}),(0,i.jsx)(I,{defaultValues:{description:"",name:""},isSubmitting:f,onSaveClick:b})]})},z=e=>{let{data:t,onConnectionCreated:n,onTestConnectionClick:l}=e,c=(0,p.I0)(),{errorAlert:m,successAlert:f}=(0,h.V)(),{handleError:g}=(0,u.H)(),[j,b]=(0,s.useState)(!1),{connection:_,connectionOption:C}=(0,o.C)(a.ZZ),[k]=(0,x.pL)(),[S]=(0,x.pH)(),[w]=(0,x.Du)(),I=async(e,r)=>{try{if(b(!0),_){var l;let n={access:d.uv.WRITE,connection_type:_.connection_type,description:e.description,disabled:!1,key:_.key,name:e.name},r=await S(n).unwrap();if((null===(l=r.failed)||void 0===l?void 0:l.length)>0)m(r.failed[0].message);else{c((0,a.lm)(r.succeeded[0]));let n={connection_key:_.key,secrets:{}};Object.entries(t.properties).forEach(t=>{n.secrets[t[0]]=e[t[0]]});let l=await w(n).unwrap();"failed"===l.test_status?m((0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("b",{children:"Message:"})," ",l.msg,(0,i.jsx)("br",{}),(0,i.jsx)("b",{children:"Failure Reason:"})," ",l.failure_reason]})):f("Connector successfully updated!")}}else{let i={description:e.description,name:e.name,instance_key:(0,v.E)(e.instance_key),saas_connector_type:C.identifier,secrets:{}};Object.entries(t.properties).forEach(t=>{i.secrets[t[0]]=e[t[0]]});let r=await k(i).unwrap();c((0,a.lm)(r.connection)),f("Connector successfully added!"),null==n||n()}}catch(e){g(e)}finally{b(!1)}};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(r.xuv,{color:"gray.700",fontSize:"14px",h:"80px",children:["Connect to your ",C.human_readable," environment by providing the information below. Once you have saved the form, you may test the integration to confirm that it's working correctly."]}),(0,i.jsx)(y,{data:t,defaultValues:{description:"",instance_key:"",name:""},isSubmitting:j,onSaveClick:I,onTestConnectionClick:l})]})};var Z=n(16394);let F=e=>{var t,n;let{response:l}=e,{connectionOption:s}=(0,o.C)(a.ZZ);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(r.izJ,{color:"gray.100"}),(0,i.jsxs)(r.gCW,{align:"flex-start",mt:"16px",children:[(null===(t=l.data)||void 0===t?void 0:t.test_status)==="succeeded"&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(r.Ugi,{children:[(0,i.jsxs)(r.X6q,{as:"h5",color:"gray.700",size:"xs",children:["Successfully connected to ",s.human_readable]}),(0,i.jsx)(r.Vp9,{colorScheme:"green",size:"sm",variant:"solid",children:"Success"})]}),(0,i.jsx)(r.xvT,{color:"gray.500",fontSize:"sm",mt:"12px !important",children:(0,Z.p6)(l.fulfilledTimeStamp)}),(0,i.jsx)(r.xuv,{bg:"green.100",border:"1px solid",borderColor:"green.300",color:"green.700",mt:"16px",borderRadius:"6px",children:(0,i.jsxs)(r.Ugi,{alignItems:"flex-start",margin:["14px","17px","14px","17px"],children:[(0,i.jsx)(r.StI,{}),(0,i.jsxs)(r.xuv,{children:[(0,i.jsx)(r.X6q,{as:"h5",color:"green.500",fontWeight:"semibold",size:"xs",children:"Success message:"}),(0,i.jsx)(r.xvT,{color:"gray.700",fontSize:"sm",fontWeight:"400",children:l.data.msg})]})]})})]}),(null===(n=l.data)||void 0===n?void 0:n.test_status)==="failed"&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(r.Ugi,{children:[(0,i.jsxs)(r.X6q,{as:"h5",color:"gray.700",size:"xs",children:["Output error to ",s.human_readable]}),(0,i.jsx)(r.Vp9,{colorScheme:"red",size:"sm",variant:"solid",children:"Error"})]}),(0,i.jsx)(r.xvT,{color:"gray.500",fontSize:"sm",mt:"12px !important",children:(0,Z.p6)(l.fulfilledTimeStamp)}),(0,i.jsx)(r.xuv,{bg:"red.50",border:"1px solid",borderColor:"red.300",color:"red.300",mt:"16px",borderRadius:"6px",children:(0,i.jsxs)(r.Ugi,{alignItems:"flex-start",margin:["14px","17px","14px","17px"],children:[(0,i.jsx)(r.f9v,{}),(0,i.jsxs)(r.xuv,{children:[(0,i.jsx)(r.X6q,{as:"h5",color:"red.500",fontWeight:"semibold",size:"xs",children:"Error message:"}),(0,i.jsx)(r.xvT,{color:"gray.700",fontSize:"sm",fontWeight:"400",children:l.data.failure_reason}),(0,i.jsx)(r.xvT,{color:"gray.700",fontSize:"sm",fontWeight:"400",children:l.data.msg})]})]})})]})]})]})},W=e=>{let{onConnectionCreated:t}=e,n=(0,l.useRouter)(),{connectionOption:u}=(0,o.C)(a.ZZ),h=u&&u.type===d.Zi.MANUAL,{data:x,isFetching:p,isLoading:m,isSuccess:f}=(0,a.n3)(u.identifier,{skip:h}),[g,y]=(0,s.useState)(),v=e=>{y(e)},j=(0,s.useCallback)(()=>{n.push(c.JR)},[n]),_=(0,s.useCallback)(()=>{switch(null==u?void 0:u.type){case d.Zi.DATABASE:if(f&&x)return(0,i.jsx)(b,{data:x,onConnectionCreated:t,onTestConnectionClick:v});break;case d.Zi.MANUAL:return(0,i.jsx)(R,{onConnectionCreated:t});case d.Zi.SAAS:if(f&&x)return(0,i.jsx)(z,{data:x,onConnectionCreated:t,onTestConnectionClick:v});break;case d.Zi.EMAIL:if(f&&x)return(0,i.jsx)(C,{data:x,onConnectionCreated:j,onTestEmail:v})}},[null==u?void 0:u.type,x,f,t,j]);return(0,i.jsxs)(r.kCb,{gap:"97px",children:[(0,i.jsxs)(r.gCW,{w:"579px",gap:"16px",align:"stretch",children:[(p||m)&&(0,i.jsx)(r.M5Y,{children:(0,i.jsx)(r.$jN,{})}),_()]}),g&&(0,i.jsxs)(r.Rg9,{in:!0,children:[" ",(0,i.jsx)(r.xuv,{mt:"16px",maxW:"528px",w:"fit-content",children:(0,i.jsx)(F,{response:g})})]})]})}},38212:function(e,t,n){n.d(t,{Z:function(){return j}});var i=n(24246),a=n(14047),r=n(96356),l=n(14207),s=n(56351),o=n(86677),c=n(27378),d=n(16134),u=n(812),h=n(77830),x=n(41966),p=n(84306),m=n(66527),f=n(41207),g=n(39715),y=e=>{let{data:t=[],isSubmitting:n=!1,onSubmit:a,onCancel:r,disabled:l}=e,o=(0,c.useRef)(null),{errorAlert:d}=(0,p.V)(),u=t.length>0?m.ZP.dump(t):void 0,[h,y]=(0,c.useState)(void 0),[v,j]=(0,c.useState)(!1),[b,_]=(0,c.useState)(!u),C=(0,s.qY0)(),{data:k}=(0,x.NR)(),[S,w]=(0,c.useState)([]),I=e=>{m.ZP.load(e,{json:!0}),y(void 0)},R=()=>{let e=o.current.getValue();a(m.ZP.load(e,{json:!0})),w([])};return(0,i.jsxs)(s.kCb,{gap:"97px",children:[(0,i.jsxs)(s.gCW,{align:"stretch",w:"800px",children:[(0,i.jsx)(f.M,{defaultLanguage:"yaml",defaultValue:u,height:"calc(100vh - 526px)",onChange:e=>{try{j(!0),I(e),_(!!(!e||""===e.trim()))}catch(e){(0,f.F)(e)?y(e):d("Could not parse the supplied YAML")}},onMount:(e,t)=>{o.current=e,o.current.focus()},options:{fontFamily:"Menlo",fontSize:13,minimap:{enabled:!0},readOnly:l},theme:"light"}),(0,i.jsxs)(s.Ugi,{justifyContent:"flex-end",pr:6,children:[r&&(0,i.jsx)(s.wpx,{onClick:r,children:"Cancel"}),(0,i.jsx)(s.wpx,{type:"primary",disabled:l||b||!!h||n,loading:n,onClick:()=>{if(k&&k.length){let e=o.current.getValue(),t=k.filter(t=>e.includes("fides_key: ".concat(t.fides_key,"\n"))).map(e=>e.fides_key);if(w(t),t.length){C.onOpen();return}}R()},htmlType:"submit","data-testid":"save-yaml-btn",children:"Save"})]})]}),v&&(b||h)&&(0,i.jsx)(g.Z,{isEmptyState:b,yamlError:h}),(0,i.jsx)(s.cVQ,{isOpen:C.isOpen,onClose:C.onClose,onConfirm:()=>{R(),C.onClose()},title:"Overwrite dataset",message:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(s.xvT,{children:["You are about to overwrite the dataset",S.length>1?"s":""," ",S.map((e,t)=>{let n=t===S.length-1;return(0,i.jsxs)(c.Fragment,{children:[(0,i.jsx)(s.xvT,{color:"complimentary.500",as:"span",fontWeight:"bold",children:e}),n?".":", "]},e)})]}),(0,i.jsx)(s.xvT,{children:"Are you sure you would like to continue?"})]})})]})};let v=e=>{let{children:t,...n}=e;return(0,i.jsx)(s.xvT,{color:"gray.700",fontSize:"14px",...n,children:t})};var j=()=>{let e=(0,o.useRouter)(),{errorAlert:t,successAlert:n}=(0,a.V)(),{handleError:p}=(0,a.H)(),[m,f]=(0,c.useState)(!1),{connection:g}=(0,d.C)(r.ZZ),{data:j,isFetching:b,isLoading:_,isSuccess:C}=(0,l.Eg)(g.key),[k]=(0,l.Lz)(),[S]=(0,x.EG)(),{data:w,isLoading:I,error:R}=(0,x.NR)(),[z,Z]=(0,c.useState)(void 0);(0,c.useEffect)(()=>{j&&j.items.length&&Z(j.items[0].ctl_dataset.fides_key)},[j]);let F=async i=>{var a;let r={connection_key:null==g?void 0:g.key,dataset_pairs:i},l=await k(r).unwrap();(null===(a=l.failed)||void 0===a?void 0:a.length)>0?t(l.failed[0].message):n("Dataset successfully updated!"),e.push(h.JR)},W=async()=>{if(z)try{let e=z;j&&j.items.length&&(e=j.items[0].fides_key);let t=[{fides_key:e,ctl_dataset_fides_key:z}];F(t)}catch(e){p(e)}},N=async e=>{try{f(!0);let n=Array.isArray(e)?e:[e],i=await S(n);if("error"in i){let e=(0,u.e$)(i.error);t(e);return}let a=n.map(e=>({fides_key:e.fides_key,ctl_dataset_fides_key:e.fides_key}));if(j&&j.items.length){let{items:e}=j;a=e.map((e,t)=>({fides_key:e.fides_key,ctl_dataset_fides_key:n[t].fides_key}))}F(a)}catch(e){p(e)}finally{f(!1)}},L=""!==z&&void 0!==z;if(b||_||I&&!R)return(0,i.jsx)(s.M5Y,{children:(0,i.jsx)(s.$jN,{})});let D=w&&w.length;return(0,i.jsxs)(s.gCW,{alignItems:"left",gap:4,children:[R&&(0,i.jsx)(v,{color:"red",children:"There was a problem loading existing datasets, please try again."}),(0,i.jsxs)(s.gCW,{alignItems:"flex-start",children:[D&&(0,i.jsx)("div",{children:(0,i.jsx)(s.gCW,{alignSelf:"start",gap:4,children:(0,i.jsxs)(s.xuv,{"data-testid":"dataset-selector-section",children:[(0,i.jsx)(v,{mb:4,children:"Choose a dataset to associate with this connector."}),(0,i.jsxs)(s.Ugi,{children:[(0,i.jsx)(s.WPr,{allowClear:!0,options:w.map(e=>({label:e.fides_key,value:e.fides_key})),className:"w-full",placeholder:"Select",onChange:e=>Z(e),value:z,"data-testid":"dataset-selector"}),(0,i.jsx)(s.wpx,{onClick:W,type:"primary",className:"self-start",disabled:!L,"data-testid":"save-dataset-link-btn",children:"Save"})]})]})})}),D&&C&&(null==j?void 0:j.items)&&(0,i.jsx)(s.htM,{plain:!0,children:"or"}),C&&(null==j?void 0:j.items)&&(0,i.jsxs)(s.xuv,{"data-testid":"yaml-editor-section",children:[(0,i.jsx)(v,{mb:4,children:"View your dataset YAML below!"}),(0,i.jsx)(y,{data:j.items.map(e=>e.ctl_dataset),isSubmitting:m,onSubmit:N,disabled:L})]})]})]})}},27259:function(e,t,n){var i=n(24246),a=n(56351),r=n(34090);t.Z=e=>{let{disabled:t=!1,displayHelpIcon:n=!0,helpIconVisibility:l=!1,isRequired:s=!1,label:o,placeholder:c,type:d="text",...u}=e,{id:h,autoFocus:x}=u,[p,m]=(0,r.U$)(u);return(0,i.jsxs)(a.NIc,{display:"flex",isRequired:s,isInvalid:!!(m.error&&m.touched),children:[o&&(0,i.jsx)(a.lXp,{color:"gray.900",fontSize:"14px",fontWeight:"semibold",htmlFor:h,minWidth:"150px",children:o}),(0,i.jsxs)(a.gCW,{align:"flex-start",w:"inherit",children:["number"===d&&(0,i.jsxs)(a.Y2U,{allowMouseWheel:!0,color:"gray.700",defaultValue:0,min:0,size:"sm",children:[(0,i.jsx)(a.zuI,{...p,autoComplete:"off",autoFocus:x}),(0,i.jsxs)(a.FiK,{children:[(0,i.jsx)(a.WQu,{}),(0,i.jsx)(a.Y_d,{})]})]}),"text"===d&&(0,i.jsx)(a.IIB,{...p,autoComplete:"off",autoFocus:x,color:"gray.700",isDisabled:t,placeholder:c,size:"sm"}),"textarea"===d&&(0,i.jsx)(a.gxH,{...p,autoComplete:"off",autoFocus:x,color:"gray.700",placeholder:c,resize:"none",size:"sm",value:p.value||""}),(0,i.jsx)(a.J1D,{children:m.error})]}),n&&(0,i.jsx)(a.kCb,{alignContent:"center",h:"32px",visibility:l?"visible":"hidden",children:(0,i.jsx)(a.ITP,{marginLeft:"8px",_hover:{cursor:"pointer"}})})]})}},3968:function(e,t,n){n.d(t,{E:function(){return i},S:function(){return a}});let i=e=>e.toLowerCase().replace(/ /g,"_"),a=(e,t)=>{let n="".concat(window.location.origin+t,"&key=").concat(e);window.location.href.toLowerCase()!==n.toLowerCase()&&window.history.replaceState(null,"",n)}},67762:function(e,t,n){n.d(t,{h:function(){return r}});var i=n(24246),a=n(56351);n(27378);let r=e=>{let{isSubmitting:t=!1,onCancelClick:n}=e;return(0,i.jsxs)(a.hE2,{size:"sm",spacing:"8px",variant:"outline",children:[(0,i.jsx)(a.zxk,{onClick:n,variant:"outline",children:"Cancel"}),(0,i.jsx)(a.zxk,{bg:"primary.800",color:"white",isDisabled:t,isLoading:t,loadingText:"Submitting",size:"sm",variant:"solid",type:"submit",_active:{bg:"primary.500"},_disabled:{opacity:"inherit"},_hover:{bg:"primary.400"},children:"Save"})]})}},50881:function(e,t,n){n.d(t,{Z:function(){return j}});var i=n(24246),a=n(14047),r=n(96356),l=n(14207),s=n(56351),o=n(86677),c=n(27378),d=n(16134),u=n(77830),h=n(34090),x=n(59389),p=n(97181),m=n(57072),f=n(39864),g=n(27259),y=n(67762),v=e=>{let{data:t=[],isSubmitting:n=!1,onSaveClick:r}=e,{isLoading:l}=(0,m.MO)(),c=(0,d.C)(f.qb),v=(0,o.useRouter)(),{errorAlert:j}=(0,a.V)(),b=()=>{v.push(u.JR)};return l?null:(0,i.jsx)(h.J9,{enableReinitialize:!0,initialValues:{fields:t.length>0?t:[{pii_field:"",dsr_package_label:"",data_categories:[]}]},onSubmit:(e,t)=>{if(new Set(e.fields.map(e=>e.pii_field)).size<e.fields.length){j("PII Field must be unique");return}r(e,t)},validateOnBlur:!1,validateOnChange:!1,validationSchema:x.Ry({fields:x.IX().of(x.Ry().shape({pii_field:x.Z_().required("PII Field is required").min(1,"PII Field must have at least one character").max(200,"PII Field has a maximum of 200 characters").label("PII Field"),dsr_package_label:x.Z_().required("DSR Package Label is required").min(1,"DSR Package Label must have at least one character").max(200,"DSR Package Label has a maximum of 200 characters").label("DSR Package Label"),data_categories:x.IX(x.Z_()).label("Data Categories")}))}),children:e=>(0,i.jsx)(h.l0,{style:{marginTop:0},noValidate:!0,children:(0,i.jsx)(s.gCW,{align:"stretch",children:(0,i.jsx)(h.F2,{name:"fields",render:t=>{let{fields:a}=e.values;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(s.Ugi,{color:"gray.900",flex:"1",fontSize:"14px",fontWeight:"semibold",lineHeight:"20px",mb:"6px",spacing:"24px",children:[(0,i.jsx)(s.xuv,{w:"416px",children:"PII Field"}),(0,i.jsx)(s.xuv,{w:"416px",children:"DSR Package Label"}),(0,i.jsx)(s.xuv,{w:"416px",children:"Data Categories"}),(0,i.jsx)(s.xuv,{visibility:"hidden",children:(0,i.jsx)(s.lr0,{})})]}),(0,i.jsx)(s.xuv,{children:a&&a.length>0?a.map((e,n)=>(0,i.jsxs)(s.Ugi,{mt:n>0?"12px":void 0,spacing:"24px",align:"flex-start",children:[(0,i.jsx)(s.xuv,{minH:"57px",w:"416px",children:(0,i.jsx)(g.Z,{autoFocus:0===n,displayHelpIcon:!1,isRequired:!0,name:"fields.".concat(n,".pii_field")})}),(0,i.jsx)(s.xuv,{minH:"57px",w:"416px",children:(0,i.jsx)(g.Z,{displayHelpIcon:!1,isRequired:!0,name:"fields.".concat(n,".dsr_package_label")})}),(0,i.jsx)(s.xuv,{minH:"57px",w:"416px",children:(0,i.jsx)(p.d,{name:"fields.".concat(n,".data_categories"),options:c.map(e=>({value:e.fides_key,label:e.fides_key})),isRequired:!0,mode:"multiple"})}),(0,i.jsx)(s.xuv,{h:"57px",visibility:n>0?"visible":"hidden",children:(0,i.jsx)(s.lr0,{onClick:()=>t.remove(n),_hover:{cursor:"pointer"}})})]},n)):null}),(0,i.jsx)(s.xvT,{color:"complimentary.500",fontWeight:"medium",fontSize:"sm",mb:"24px !important",mt:"24px !important",onClick:()=>{t.push({pii_field:"",dsr_package_label:"",data_categories:[]})},_hover:{cursor:"pointer"},children:"Add new PII field"}),(0,i.jsx)(y.h,{isSubmitting:n,onCancelClick:b})]})}})})})})},j=()=>{let e=(0,c.useRef)(!1),t=(0,o.useRouter)(),{successAlert:n}=(0,a.V)(),{handleError:h}=(0,a.H)(),[x,p]=(0,c.useState)(!1),[m,f]=(0,c.useState)([]),{connection:g}=(0,d.C)(r.ZZ),{data:y,isFetching:j,isLoading:b,isSuccess:_}=(0,l.QV)(g.key),[C]=(0,l.jF)(),[k]=(0,l._d)(),S=async(e,i)=>{try{p(!0);let i={connection_key:null==g?void 0:g.key,body:{...e}};m.length>0?await k(i).unwrap():await C(i).unwrap(),n("DSR customization ".concat(m.length>0?"updated":"added","!")),t.push(u.JR)}catch(e){h(e)}finally{p(!1)}};return(0,c.useEffect)(()=>(e.current=!0,_&&y&&f(y.fields),()=>{e.current=!1}),[y,_]),(0,i.jsxs)(s.gCW,{align:"stretch",gap:"16px",children:[(0,i.jsx)(s.xuv,{color:"gray.700",fontSize:"14px",w:"572px",children:"Customize your PII fields to create a friendly label name for your privacy request packages. This “Package Label” is the label your user will see in their downloaded package."}),(j||b)&&(0,i.jsx)(s.M5Y,{children:(0,i.jsx)(s.$jN,{})}),e.current&&!b?(0,i.jsx)(v,{data:m,isSubmitting:x,onSaveClick:S}):null]})}},19043:function(e,t,n){n.d(t,{Bw:function(){return l},D4:function(){return a},Dy:function(){return o},XD:function(){return c},cz:function(){return d},hE:function(){return s},oK:function(){return r}});var i=n(76649);let a=e=>"error"in e,r=e=>(0,i.Ln)({status:"string"},e)&&"PARSING_ERROR"===e.status,l=e=>(0,i.Ln)({status:"number",data:{}},e),s=e=>(0,i.Ln)({detail:"string"},e),o=e=>(0,i.Ln)({detail:{error:"string",resource_type:"string",fides_key:"string"}},e),c=e=>(0,i.Ln)({detail:{error:"string",resource_type:"string",fides_key:"string"}},e),d=e=>(0,i.Ln)({detail:[{loc:["string","number"],msg:"string",type:"string"}]},e)},76649:function(e,t,n){n.d(t,{Ln:function(){return i}});let i=(e,t)=>r(e,t),a=Symbol("SOME"),r=(e,t)=>"string"==typeof e?e===typeof t:Array.isArray(e)?a in e?e.some(e=>r(e,t)):!!Array.isArray(t)&&(0===e.length||t.every(t=>e.some(e=>r(e,t)))):"object"==typeof t&&null!==t&&Object.entries(e).every(([e,n])=>r(n,t[e]));class l{static narrow(e){return new l(t=>i(e,t))}constructor(e){this.NF=void 0,this.NF=e}satisfied(e){return this.NF(e)}build(e){return e}and(e){let t=this.NF,n=e instanceof l?e.NF:e instanceof Function?e:t=>i(e,t);return new l(e=>t(e)&&n(e))}}new l(e=>!0)}}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9999],{74833:function(t,e,i){var n=i(56127),r=/^\s+/;t.exports=function(t){return t?t.slice(0,n(t)+1).replace(r,""):t}},56127:function(t){var e=/\s/;t.exports=function(t){for(var i=t.length;i--&&e.test(t.charAt(i)););return i}},66726:function(t,e,i){var n=i(11611),r=i(82846),o=i(91936),s=Math.max,a=Math.min;t.exports=function(t,e,i){var l,c,d,u,x,p,f=0,h=!1,m=!1,v=!0;if("function"!=typeof t)throw TypeError("Expected a function");function j(e){var i=l,n=c;return l=c=void 0,f=e,u=t.apply(n,i)}function g(t){var i=t-p,n=t-f;return void 0===p||i>=e||i<0||m&&n>=d}function C(){var t,i,n,o=r();if(g(o))return b(o);x=setTimeout(C,(t=o-p,i=o-f,n=e-t,m?a(n,d-i):n))}function b(t){return(x=void 0,v&&l)?j(t):(l=c=void 0,u)}function I(){var t,i=r(),n=g(i);if(l=arguments,c=this,p=i,n){if(void 0===x)return f=t=p,x=setTimeout(C,e),h?j(t):u;if(m)return clearTimeout(x),x=setTimeout(C,e),j(p)}return void 0===x&&(x=setTimeout(C,e)),u}return e=o(e)||0,n(i)&&(h=!!i.leading,d=(m="maxWait"in i)?s(o(i.maxWait)||0,e):d,v="trailing"in i?!!i.trailing:v),I.cancel=function(){void 0!==x&&clearTimeout(x),f=0,l=p=c=x=void 0},I.flush=function(){return void 0===x?u:b(r())},I}},82846:function(t,e,i){var n=i(77400);t.exports=function(){return n.Date.now()}},91936:function(t,e,i){var n=i(74833),r=i(11611),o=i(55193),s=0/0,a=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,d=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return s;if(r(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=r(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=n(t);var i=l.test(t);return i||c.test(t)?d(t.slice(2),i?2:8):a.test(t)?s:+t}},35287:function(t,e,i){"use strict";var n=i(24246),r=i(77181),o=i(88038),s=i.n(o);i(27378),e.Z=t=>{let{children:e,title:i,mainProps:o}=t;return(0,n.jsxs)(r.kCb,{"data-testid":i,direction:"column",height:"calc(100vh - 48px)",width:"calc(100vw - 240px)",children:[(0,n.jsxs)(s(),{children:[(0,n.jsxs)("title",{children:["Fides Admin UI - ",i]}),(0,n.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,n.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,n.jsx)(r.kCb,{px:10,py:6,as:"main",overflow:"auto",direction:"column",flex:1,minWidth:0,...o,children:e})]})}},58754:function(t,e,i){"use strict";var n=i(24246),r=i(77181),o=i(70788);e.Z=t=>{let{heading:e,breadcrumbItems:i,isSticky:s=!0,children:a,rightContent:l,style:c,...d}=t;return(0,n.jsxs)("div",{...d,style:s?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...c}:{paddingBottom:"24px",...c},children:[(0,n.jsxs)(r.jqI,{justify:"space-between",children:["string"==typeof e?(0,n.jsx)(r.X6q,{className:i||a?"pb-4":void 0,fontSize:"2xl","data-testid":"page-heading",children:e}):e,l&&(0,n.jsx)("div",{"data-testid":"page-header-right-content",children:l})]}),!!i&&(0,n.jsx)(o.m,{className:a?"pb-4":void 0,items:i,"data-testid":"page-breadcrumb"}),a]})}},14047:function(t,e,i){"use strict";i.d(e,{H:function(){return o},V:function(){return n.V}});var n=i(84306),r=i(812);let o=()=>{let{errorAlert:t}=(0,n.V)();return{handleError:e=>{let i="An unexpected error occurred. Please try again.";(0,r.Ot)(e)?i=e.data.detail:(0,r.tB)(e)&&(i=e.data.detail[0].msg),t(i)}}}},84306:function(t,e,i){"use strict";i.d(e,{V:function(){return o}});var n=i(24246),r=i(77181);let o=()=>{let t=(0,r.pmc)();return{errorAlert:(e,i,o)=>{let s={...o,position:(null==o?void 0:o.position)||"top",render:t=>{let{onClose:o}=t;return(0,n.jsxs)(r.bZj,{alignItems:"normal",status:"error","data-testid":"error-alert",children:[(0,n.jsx)(r.zMQ,{}),(0,n.jsxs)(r.xuv,{children:[i&&(0,n.jsx)(r.CdC,{children:i}),(0,n.jsx)(r.XaZ,{children:e})]}),(0,n.jsx)(r.PZ7,{onClick:o,position:"relative",right:0,size:"sm",top:-1})]})}};(null==o?void 0:o.id)&&t.isActive(o.id)?t.update(o.id,s):t(s)},successAlert:(e,i,o)=>{let s={...o,position:(null==o?void 0:o.position)||"top",render:t=>{let{onClose:o}=t;return(0,n.jsxs)(r.bZj,{alignItems:"normal",status:"success",variant:"subtle","data-testid":"success-alert",children:[(0,n.jsx)(r.zMQ,{}),(0,n.jsxs)(r.xuv,{children:[i&&(0,n.jsx)(r.CdC,{children:i}),(0,n.jsx)(r.XaZ,{children:e})]}),(0,n.jsx)(r.PZ7,{onClick:o,position:"relative",right:0,size:"sm",top:-1})]})}};(null==o?void 0:o.id)&&t.isActive(o.id)?t.update(o.id,s):t(s)}}}},70788:function(t,e,i){"use strict";i.d(e,{m:function(){return c}});var n=i(24246),r=i(77181),o=i(79894),s=i.n(o),a=i(27378);let{Text:l}=r.AntTypography,c=t=>{let{items:e,...i}=t,o=(0,a.useMemo)(()=>null==e?void 0:e.map((t,i)=>{let o=i===e.length-1,a={...t},c=a.onClick&&!a.href;return("string"==typeof a.title&&(a.title=(0,n.jsx)(l,{style:{color:"inherit",maxWidth:o?void 0:400},ellipsis:!o,children:a.title})),c)?a.title=(0,n.jsx)(r.wpx,{type:"text",size:"small",icon:a.icon,onClick:a.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:a.title}):(a.icon&&(a.title=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"anticon align-text-bottom",children:a.icon}),a.title]})),a.href&&a.title&&(a.title=(0,n.jsx)(s(),{href:a.href,className:"ant-breadcrumb-link",children:a.title}),delete a.href)),a}),[e]);return(0,n.jsx)(r.zrq,{items:o,...i})}},57454:function(t,e,i){"use strict";i.d(e,{M:function(){return l}});var n=i(24246),r=i(66726),o=i.n(r),s=i(27378),a=i(86780);let l=t=>{let{value:e,onChange:i}=t,[r,l]=(0,s.useState)(e),c=o()(i,500),d=(0,s.useCallback)(t=>{l(t),c(t)},[]);return(0,n.jsx)(a.Z,{search:r,onChange:d,onClear:()=>{l(""),i("")}})}},56839:function(t,e,i){"use strict";i.d(e,{dK:function(){return d},Rv:function(){return p},$P:function(){return x},zj:function(){return f},Kr:function(){return h},q1:function(){return u},QL:function(){return m}});var n=i(24246),r=i(77181);let o=(0,r.IUT)({displayName:"CircleIcon",viewBox:"0 0 200 200",path:(0,n.jsx)("path",{fill:"currentColor",d:"M 100, 100 m -75, 0 a 75,75 0 1,0 150,0 a 75,75 0 1,0 -150,0"})}),s=(0,r.IUT)({displayName:"RightDownArrowIcon",viewBox:"0 0 8 8",path:(0,n.jsx)("path",{fill:"currentColor",d:"M7.23192 8H8V7.23192V1.85539V1.08731H6.46385V1.85539V5.37654L1.62976 0.544855L1.08731 0L0 1.08731L0.542454 1.62976L5.37654 6.46385H1.85539H1.08731V8H1.85539H7.23192Z"})}),a=(0,r.IUT)({displayName:"RightUpArrowIcon",viewBox:"0 0 8 8",path:(0,n.jsx)("path",{fill:"currentColor",d:"M7.23192 0H8V0.768077V6.14461V6.91269H6.46385V6.14461V2.62346L1.62976 7.45515L1.08731 8L0 6.91269L0.542454 6.37024L5.37654 1.53615H1.85539H1.08731V0H1.85539H7.23192Z"})}),l=(0,r.IUT)({displayName:"TagIcon",viewBox:"0 0 9 10",path:(0,n.jsx)("path",{fill:"currentColor",d:"M0 0.5V5L4.5 9.5L9 5L4.5 0.5H0ZM2.25 2.10714C2.4205 2.10714 2.58401 2.17487 2.70457 2.29543C2.82513 2.41599 2.89286 2.5795 2.89286 2.75C2.89286 2.9205 2.82513 3.08401 2.70457 3.20457C2.58401 3.32513 2.4205 3.39286 2.25 3.39286C2.0795 3.39286 1.91599 3.32513 1.79543 3.20457C1.67487 3.08401 1.60714 2.9205 1.60714 2.75C1.60714 2.5795 1.67487 2.41599 1.79543 2.29543C1.91599 2.17487 2.0795 2.10714 2.25 2.10714Z"})});var c=i(28278);let d=()=>(0,n.jsx)(a,{color:"green.400",boxSize:2,mr:2,"data-testid":"add-icon"}),u=()=>(0,n.jsx)(s,{color:"red.400",boxSize:2,mr:2,"data-testid":"remove-icon"}),x=()=>(0,n.jsx)(l,{color:"orange.400",boxSize:3,mr:1,"data-testid":"classify-icon"}),p=()=>(0,n.jsx)(o,{color:"blue.400",boxSize:2,mr:2,"data-testid":"change-icon"}),f=()=>(0,n.jsx)(o,{color:"green.400",boxSize:2,mr:2,"data-testid":"monitored-icon"}),h=()=>(0,n.jsx)(o,{color:"red.400",boxSize:2,mr:2,"data-testid":"muted-icon"}),m={[c.E.ADDITION]:(0,n.jsx)(d,{}),[c.E.REMOVAL]:(0,n.jsx)(u,{}),[c.E.CLASSIFICATION]:(0,n.jsx)(x,{}),[c.E.CHANGE]:(0,n.jsx)(p,{}),[c.E.MONITORED]:(0,n.jsx)(f,{}),[c.E.MUTED]:(0,n.jsx)(h,{}),[c.E.IN_PROGRESS]:(0,n.jsx)(()=>(0,n.jsx)(o,{color:"orange.400",boxSize:2,mr:2,"data-testid":"in-progress-icon"}),{}),[c.E.NONE]:null}},28278:function(t,e,i){"use strict";var n,r;i.d(e,{E:function(){return n}}),(r=n||(n={})).ADDITION="Addition",r.CHANGE="Change",r.REMOVAL="Removal",r.CLASSIFICATION="Classification",r.IN_PROGRESS="Classifying",r.MONITORED="Monitoring",r.MUTED="Unmonitored",r.NONE="--"}}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9999],{74833:function(t,e,i){var n=i(56127),r=/^\s+/;t.exports=function(t){return t?t.slice(0,n(t)+1).replace(r,""):t}},56127:function(t){var e=/\s/;t.exports=function(t){for(var i=t.length;i--&&e.test(t.charAt(i)););return i}},66726:function(t,e,i){var n=i(11611),r=i(82846),o=i(91936),s=Math.max,a=Math.min;t.exports=function(t,e,i){var l,c,d,u,x,p,f=0,h=!1,m=!1,v=!0;if("function"!=typeof t)throw TypeError("Expected a function");function j(e){var i=l,n=c;return l=c=void 0,f=e,u=t.apply(n,i)}function g(t){var i=t-p,n=t-f;return void 0===p||i>=e||i<0||m&&n>=d}function C(){var t,i,n,o=r();if(g(o))return b(o);x=setTimeout(C,(t=o-p,i=o-f,n=e-t,m?a(n,d-i):n))}function b(t){return(x=void 0,v&&l)?j(t):(l=c=void 0,u)}function I(){var t,i=r(),n=g(i);if(l=arguments,c=this,p=i,n){if(void 0===x)return f=t=p,x=setTimeout(C,e),h?j(t):u;if(m)return clearTimeout(x),x=setTimeout(C,e),j(p)}return void 0===x&&(x=setTimeout(C,e)),u}return e=o(e)||0,n(i)&&(h=!!i.leading,d=(m="maxWait"in i)?s(o(i.maxWait)||0,e):d,v="trailing"in i?!!i.trailing:v),I.cancel=function(){void 0!==x&&clearTimeout(x),f=0,l=p=c=x=void 0},I.flush=function(){return void 0===x?u:b(r())},I}},82846:function(t,e,i){var n=i(77400);t.exports=function(){return n.Date.now()}},91936:function(t,e,i){var n=i(74833),r=i(11611),o=i(55193),s=0/0,a=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,d=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return s;if(r(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=r(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=n(t);var i=l.test(t);return i||c.test(t)?d(t.slice(2),i?2:8):a.test(t)?s:+t}},35287:function(t,e,i){"use strict";var n=i(24246),r=i(56351),o=i(88038),s=i.n(o);i(27378),e.Z=t=>{let{children:e,title:i,mainProps:o}=t;return(0,n.jsxs)(r.kCb,{"data-testid":i,direction:"column",height:"calc(100vh - 48px)",width:"calc(100vw - 240px)",children:[(0,n.jsxs)(s(),{children:[(0,n.jsxs)("title",{children:["Fides Admin UI - ",i]}),(0,n.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,n.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,n.jsx)(r.kCb,{px:10,py:6,as:"main",overflow:"auto",direction:"column",flex:1,minWidth:0,...o,children:e})]})}},58754:function(t,e,i){"use strict";var n=i(24246),r=i(56351),o=i(70788);e.Z=t=>{let{heading:e,breadcrumbItems:i,isSticky:s=!0,children:a,rightContent:l,style:c,...d}=t;return(0,n.jsxs)("div",{...d,style:s?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...c}:{paddingBottom:"24px",...c},children:[(0,n.jsxs)(r.jqI,{justify:"space-between",children:["string"==typeof e?(0,n.jsx)(r.X6q,{className:i||a?"pb-4":void 0,fontSize:"2xl","data-testid":"page-heading",children:e}):e,l&&(0,n.jsx)("div",{"data-testid":"page-header-right-content",children:l})]}),!!i&&(0,n.jsx)(o.m,{className:a?"pb-4":void 0,items:i,"data-testid":"page-breadcrumb"}),a]})}},14047:function(t,e,i){"use strict";i.d(e,{H:function(){return o},V:function(){return n.V}});var n=i(84306),r=i(812);let o=()=>{let{errorAlert:t}=(0,n.V)();return{handleError:e=>{let i="An unexpected error occurred. Please try again.";(0,r.Ot)(e)?i=e.data.detail:(0,r.tB)(e)&&(i=e.data.detail[0].msg),t(i)}}}},84306:function(t,e,i){"use strict";i.d(e,{V:function(){return o}});var n=i(24246),r=i(56351);let o=()=>{let t=(0,r.pmc)();return{errorAlert:(e,i,o)=>{let s={...o,position:(null==o?void 0:o.position)||"top",render:t=>{let{onClose:o}=t;return(0,n.jsxs)(r.bZj,{alignItems:"normal",status:"error","data-testid":"error-alert",children:[(0,n.jsx)(r.zMQ,{}),(0,n.jsxs)(r.xuv,{children:[i&&(0,n.jsx)(r.CdC,{children:i}),(0,n.jsx)(r.XaZ,{children:e})]}),(0,n.jsx)(r.PZ7,{onClick:o,position:"relative",right:0,size:"sm",top:-1})]})}};(null==o?void 0:o.id)&&t.isActive(o.id)?t.update(o.id,s):t(s)},successAlert:(e,i,o)=>{let s={...o,position:(null==o?void 0:o.position)||"top",render:t=>{let{onClose:o}=t;return(0,n.jsxs)(r.bZj,{alignItems:"normal",status:"success",variant:"subtle","data-testid":"success-alert",children:[(0,n.jsx)(r.zMQ,{}),(0,n.jsxs)(r.xuv,{children:[i&&(0,n.jsx)(r.CdC,{children:i}),(0,n.jsx)(r.XaZ,{children:e})]}),(0,n.jsx)(r.PZ7,{onClick:o,position:"relative",right:0,size:"sm",top:-1})]})}};(null==o?void 0:o.id)&&t.isActive(o.id)?t.update(o.id,s):t(s)}}}},70788:function(t,e,i){"use strict";i.d(e,{m:function(){return c}});var n=i(24246),r=i(56351),o=i(79894),s=i.n(o),a=i(27378);let{Text:l}=r.AntTypography,c=t=>{let{items:e,...i}=t,o=(0,a.useMemo)(()=>null==e?void 0:e.map((t,i)=>{let o=i===e.length-1,a={...t},c=a.onClick&&!a.href;return("string"==typeof a.title&&(a.title=(0,n.jsx)(l,{style:{color:"inherit",maxWidth:o?void 0:400},ellipsis:!o,children:a.title})),c)?a.title=(0,n.jsx)(r.wpx,{type:"text",size:"small",icon:a.icon,onClick:a.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:a.title}):(a.icon&&(a.title=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"anticon align-text-bottom",children:a.icon}),a.title]})),a.href&&a.title&&(a.title=(0,n.jsx)(s(),{href:a.href,className:"ant-breadcrumb-link",children:a.title}),delete a.href)),a}),[e]);return(0,n.jsx)(r.zrq,{items:o,...i})}},57454:function(t,e,i){"use strict";i.d(e,{M:function(){return l}});var n=i(24246),r=i(66726),o=i.n(r),s=i(27378),a=i(86780);let l=t=>{let{value:e,onChange:i}=t,[r,l]=(0,s.useState)(e),c=o()(i,500),d=(0,s.useCallback)(t=>{l(t),c(t)},[]);return(0,n.jsx)(a.Z,{search:r,onChange:d,onClear:()=>{l(""),i("")}})}},56839:function(t,e,i){"use strict";i.d(e,{dK:function(){return d},Rv:function(){return p},$P:function(){return x},zj:function(){return f},Kr:function(){return h},q1:function(){return u},QL:function(){return m}});var n=i(24246),r=i(56351);let o=(0,r.IUT)({displayName:"CircleIcon",viewBox:"0 0 200 200",path:(0,n.jsx)("path",{fill:"currentColor",d:"M 100, 100 m -75, 0 a 75,75 0 1,0 150,0 a 75,75 0 1,0 -150,0"})}),s=(0,r.IUT)({displayName:"RightDownArrowIcon",viewBox:"0 0 8 8",path:(0,n.jsx)("path",{fill:"currentColor",d:"M7.23192 8H8V7.23192V1.85539V1.08731H6.46385V1.85539V5.37654L1.62976 0.544855L1.08731 0L0 1.08731L0.542454 1.62976L5.37654 6.46385H1.85539H1.08731V8H1.85539H7.23192Z"})}),a=(0,r.IUT)({displayName:"RightUpArrowIcon",viewBox:"0 0 8 8",path:(0,n.jsx)("path",{fill:"currentColor",d:"M7.23192 0H8V0.768077V6.14461V6.91269H6.46385V6.14461V2.62346L1.62976 7.45515L1.08731 8L0 6.91269L0.542454 6.37024L5.37654 1.53615H1.85539H1.08731V0H1.85539H7.23192Z"})}),l=(0,r.IUT)({displayName:"TagIcon",viewBox:"0 0 9 10",path:(0,n.jsx)("path",{fill:"currentColor",d:"M0 0.5V5L4.5 9.5L9 5L4.5 0.5H0ZM2.25 2.10714C2.4205 2.10714 2.58401 2.17487 2.70457 2.29543C2.82513 2.41599 2.89286 2.5795 2.89286 2.75C2.89286 2.9205 2.82513 3.08401 2.70457 3.20457C2.58401 3.32513 2.4205 3.39286 2.25 3.39286C2.0795 3.39286 1.91599 3.32513 1.79543 3.20457C1.67487 3.08401 1.60714 2.9205 1.60714 2.75C1.60714 2.5795 1.67487 2.41599 1.79543 2.29543C1.91599 2.17487 2.0795 2.10714 2.25 2.10714Z"})});var c=i(28278);let d=()=>(0,n.jsx)(a,{color:"green.400",boxSize:2,mr:2,"data-testid":"add-icon"}),u=()=>(0,n.jsx)(s,{color:"red.400",boxSize:2,mr:2,"data-testid":"remove-icon"}),x=()=>(0,n.jsx)(l,{color:"orange.400",boxSize:3,mr:1,"data-testid":"classify-icon"}),p=()=>(0,n.jsx)(o,{color:"blue.400",boxSize:2,mr:2,"data-testid":"change-icon"}),f=()=>(0,n.jsx)(o,{color:"green.400",boxSize:2,mr:2,"data-testid":"monitored-icon"}),h=()=>(0,n.jsx)(o,{color:"red.400",boxSize:2,mr:2,"data-testid":"muted-icon"}),m={[c.E.ADDITION]:(0,n.jsx)(d,{}),[c.E.REMOVAL]:(0,n.jsx)(u,{}),[c.E.CLASSIFICATION]:(0,n.jsx)(x,{}),[c.E.CHANGE]:(0,n.jsx)(p,{}),[c.E.MONITORED]:(0,n.jsx)(f,{}),[c.E.MUTED]:(0,n.jsx)(h,{}),[c.E.IN_PROGRESS]:(0,n.jsx)(()=>(0,n.jsx)(o,{color:"orange.400",boxSize:2,mr:2,"data-testid":"in-progress-icon"}),{}),[c.E.NONE]:null}},28278:function(t,e,i){"use strict";var n,r;i.d(e,{E:function(){return n}}),(r=n||(n={})).ADDITION="Addition",r.CHANGE="Change",r.REMOVAL="Removal",r.CLASSIFICATION="Classification",r.IN_PROGRESS="Classifying",r.MONITORED="Monitoring",r.MUTED="Unmonitored",r.NONE="--"}}]);