ethyca-fides 2.56.1rc3__py2.py3-none-any.whl → 2.56.2b1__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.56.1rc3.dist-info → ethyca_fides-2.56.2b1.dist-info}/METADATA +1 -1
  2. {ethyca_fides-2.56.1rc3.dist-info → ethyca_fides-2.56.2b1.dist-info}/RECORD +205 -203
  3. fides/_version.py +3 -3
  4. fides/api/alembic/migrations/versions/bd875a8b5d96_add_attachments_and_.py +96 -0
  5. fides/api/models/attachment.py +153 -0
  6. fides/api/models/audit_log.py +3 -0
  7. fides/ui-build/static/admin/404.html +1 -1
  8. fides/ui-build/static/admin/_next/static/G4yyqYFNYjBbKTQG4qT1Z/_buildManifest.js +1 -0
  9. fides/ui-build/static/admin/_next/static/chunks/1150-45ae64b8999bde9e.js +1 -0
  10. fides/ui-build/static/admin/_next/static/chunks/2201-5cda6f245e348ec1.js +1 -0
  11. fides/ui-build/static/admin/_next/static/chunks/{5728-32ce3e7a41d1fb9f.js → 2397-5382265aeb68b955.js} +1 -1
  12. fides/ui-build/static/admin/_next/static/chunks/{255-8d4d20193afd2223.js → 255-1dab28b6d23451cf.js} +1 -1
  13. fides/ui-build/static/admin/_next/static/chunks/{3005-137ef60b77c71ce1.js → 3005-373de16453ed7eea.js} +1 -1
  14. fides/ui-build/static/admin/_next/static/chunks/3086-f15b42926fd055a0.js +1 -0
  15. fides/ui-build/static/admin/_next/static/chunks/3320-1070e41adcf432ac.js +1 -0
  16. fides/ui-build/static/admin/_next/static/chunks/{5318-d81dc29254349932.js → 3627-5e589e91b738f5cd.js} +1 -1
  17. fides/ui-build/static/admin/_next/static/chunks/3662-5639ae50b8dccf23.js +1 -0
  18. fides/ui-build/static/admin/_next/static/chunks/3855-7fc48fe049dc17e6.js +1 -0
  19. fides/ui-build/static/admin/_next/static/chunks/{4456-87020c4b11dc6e0e.js → 3872-bd02ad87861b67d7.js} +1 -1
  20. fides/ui-build/static/admin/_next/static/chunks/{8141-4eb48e91039a27d5.js → 3949-afca6e7434ad561f.js} +1 -1
  21. fides/ui-build/static/admin/_next/static/chunks/4481-a29f20bb58b211a4.js +1 -0
  22. fides/ui-build/static/admin/_next/static/chunks/4723-fc2288987e3b29d8.js +1 -0
  23. fides/ui-build/static/admin/_next/static/chunks/5246-9b38e34e434a8568.js +1 -0
  24. fides/ui-build/static/admin/_next/static/chunks/5258-299a63d9b4a469d9.js +1 -0
  25. fides/ui-build/static/admin/_next/static/chunks/5480-2abe7916447fa595.js +1 -0
  26. fides/ui-build/static/admin/_next/static/chunks/5487-348c811472ef5608.js +1 -0
  27. fides/ui-build/static/admin/_next/static/chunks/5826-3df3a9cd796a943f.js +1 -0
  28. fides/ui-build/static/admin/_next/static/chunks/5908-532dfbc9d930f635.js +1 -0
  29. fides/ui-build/static/admin/_next/static/chunks/5960-8895f51b30c35798.js +1 -0
  30. fides/ui-build/static/admin/_next/static/chunks/{618f8807-5792121b4eda076b.js → 618f8807-d15c33d1d6c8b961.js} +1 -1
  31. fides/ui-build/static/admin/_next/static/chunks/6277-ea65024c767f543e.js +1 -0
  32. fides/ui-build/static/admin/_next/static/chunks/6315-2ae623f4d2e24041.js +1 -0
  33. fides/ui-build/static/admin/_next/static/chunks/6362-d6d930922043de83.js +1 -0
  34. fides/ui-build/static/admin/_next/static/chunks/{5632-6a150393937e52ea.js → 6372-e305cd2ea5577339.js} +1 -1
  35. fides/ui-build/static/admin/_next/static/chunks/6853-350da1a0d61b7dda.js +1 -0
  36. fides/ui-build/static/admin/_next/static/chunks/6954-67c09ef890b489eb.js +1 -0
  37. fides/ui-build/static/admin/_next/static/chunks/7044-fc557bec36e0d833.js +1 -0
  38. fides/ui-build/static/admin/_next/static/chunks/7495-cf5540ed1d3a5f02.js +1 -0
  39. fides/ui-build/static/admin/_next/static/chunks/{7548-cdf0d184fa13ddaf.js → 7751-b2504265ef7c096f.js} +1 -1
  40. fides/ui-build/static/admin/_next/static/chunks/79-8a82c28f90175a36.js +1 -0
  41. fides/ui-build/static/admin/_next/static/chunks/{5973-7bbf7cd9475c070d.js → 7980-fb48142b786fcef9.js} +1 -1
  42. fides/ui-build/static/admin/_next/static/chunks/8433-3912cacade51b692.js +1 -0
  43. fides/ui-build/static/admin/_next/static/chunks/8499-8cdbf2da63982520.js +1 -0
  44. fides/ui-build/static/admin/_next/static/chunks/8573.b0736c9c6f17dae9.js +1 -0
  45. fides/ui-build/static/admin/_next/static/chunks/{8837-2b785a4e5bad4813.js → 8837-cf26e5ca1ae5aaf5.js} +1 -1
  46. fides/ui-build/static/admin/_next/static/chunks/9046-c49e36fc13e9643b.js +1 -0
  47. fides/ui-build/static/admin/_next/static/chunks/9111-8675301d4dd068bd.js +1 -0
  48. fides/ui-build/static/admin/_next/static/chunks/{9255-2b1bafefb091a640.js → 9255-336a890ada321f89.js} +1 -1
  49. fides/ui-build/static/admin/_next/static/chunks/9282-cf4638e56db0a232.js +1 -0
  50. fides/ui-build/static/admin/_next/static/chunks/{2800.6615615b3f98c173.js → 9392.0f11b5b42a4ccb18.js} +1 -1
  51. fides/ui-build/static/admin/_next/static/chunks/9999-fa566e2617c2d660.js +1 -0
  52. fides/ui-build/static/admin/_next/static/chunks/main-app-2650f704701c6a7b.js +1 -0
  53. fides/ui-build/static/admin/_next/static/chunks/main-ce7f38a12ea8c223.js +1 -0
  54. fides/ui-build/static/admin/_next/static/chunks/pages/404-162aedfa3b5c6960.js +1 -0
  55. fides/ui-build/static/admin/_next/static/chunks/pages/{_app-ec8f262156df2273.js → _app-56cdc9725fe73b37.js} +8 -8
  56. fides/ui-build/static/admin/_next/static/chunks/pages/{_error-c91b5eabd7ac9382.js → _error-bede3a8288930dcf.js} +1 -1
  57. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/manual-3cd7cb111fafa3f9.js +1 -0
  58. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/{multiple-e47482277518eeac.js → multiple-c2b5ce54dae22850.js} +1 -1
  59. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems-b1f944d2eb1676ff.js +1 -0
  60. fides/ui-build/static/admin/_next/static/chunks/pages/ant-poc-1e6090a92e89eba3.js +1 -0
  61. fides/ui-build/static/admin/_next/static/chunks/pages/consent/configure/{add-vendors-59913e9cc73e09c9.js → add-vendors-ffa474e483e82d14.js} +1 -1
  62. fides/ui-build/static/admin/_next/static/chunks/pages/consent/configure-40da2d94f2830e1e.js +1 -0
  63. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience/[id]-78ef82002d3d8c19.js +1 -0
  64. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience/new-34a85dfbd8040688.js +1 -0
  65. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience-fe7d178376b26c3e.js +1 -0
  66. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{[id]-941d95c937170eca.js → [id]-1a3b9b906df09b89.js} +1 -1
  67. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{new-0e3788b351b85329.js → new-95f9157a1576682a.js} +1 -1
  68. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices-94419df1a94676cd.js +1 -0
  69. fides/ui-build/static/admin/_next/static/chunks/pages/consent/properties-03cf23593252980e.js +1 -0
  70. fides/ui-build/static/admin/_next/static/chunks/pages/consent/reporting-fd33cf4bc3bd7217.js +1 -0
  71. fides/ui-build/static/admin/_next/static/chunks/pages/{consent-160eab9ebbbd1d25.js → consent-419008bdf518df6b.js} +1 -1
  72. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn]-dd11337b3513bb8a.js +1 -0
  73. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]-d409ce34ece16cae.js +1 -0
  74. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects-afaca2d14f3f3372.js +1 -0
  75. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/resources/[resourceUrn]-af0763217947fb8d.js +1 -0
  76. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/{resources-71ce2e9dbf646ecd.js → resources-9596052d50cf6cc9.js} +1 -1
  77. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog-6d0c56a49450b23e.js +1 -0
  78. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]/[systemId]-dd67d205d8e01310.js +1 -0
  79. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/{[monitorId]-ca97d78d3e655a9d.js → [monitorId]-39050055e1623a2c.js} +1 -1
  80. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{action-center-6d6d0b3bd37434da.js → action-center-d141b9651696c214.js} +1 -1
  81. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/activity-44c921fc8f07ff28.js +1 -0
  82. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/detection/{[resourceUrn]-f8f65f23ff9edaeb.js → [resourceUrn]-82d053232db137ac.js} +1 -1
  83. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{detection-dbcda00811800c31.js → detection-083c8fba2837e11c.js} +1 -1
  84. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/discovery/[resourceUrn]-c2f75aae2435b3f3.js +1 -0
  85. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/discovery-6fdf5929b50052fa.js +1 -0
  86. fides/ui-build/static/admin/_next/static/chunks/pages/datamap-fdc1e31b739774a2.js +1 -0
  87. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]/[...subfieldNames]-bac79550f4a641a6.js +1 -0
  88. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]-968b9f1be2e8015e.js +1 -0
  89. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]-fc98597c22321ee5.js +1 -0
  90. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/new-13c36e0f9a5851e7.js +1 -0
  91. fides/ui-build/static/admin/_next/static/chunks/pages/dataset-784376c7068a46ea.js +1 -0
  92. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/[id]-a5c8556b5a936710.js +1 -0
  93. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/new-ddadae7cf352bdec.js +1 -0
  94. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection-b04df874d0de1600.js +1 -0
  95. fides/ui-build/static/admin/_next/static/chunks/pages/index-0cb69e8e091559f5.js +1 -0
  96. fides/ui-build/static/admin/_next/static/chunks/pages/integrations/[id]-fefec1d20c5f53d3.js +1 -0
  97. fides/ui-build/static/admin/_next/static/chunks/pages/integrations-7cbceff4d808ddef.js +1 -0
  98. fides/ui-build/static/admin/_next/static/chunks/pages/login/{[provider]-cac9584cefa85a09.js → [provider]-c58beef131c3a82d.js} +1 -1
  99. fides/ui-build/static/admin/_next/static/chunks/pages/{login-e55849091751c65a.js → login-0cb0eb44bf2dd24c.js} +1 -1
  100. fides/ui-build/static/admin/_next/static/chunks/pages/messaging/[id]-dd87f20c6c304f6e.js +1 -0
  101. fides/ui-build/static/admin/_next/static/chunks/pages/messaging/add-template-0282fb9efb4ec896.js +1 -0
  102. fides/ui-build/static/admin/_next/static/chunks/pages/{messaging-5a6202c3aaf15cce.js → messaging-194be66253503679.js} +1 -1
  103. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/[id]-4069f3831c0b30e3.js +1 -0
  104. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/messaging-69f722cd2d034c91.js +1 -0
  105. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/storage-70b68e4b21f7cc55.js +1 -0
  106. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/{configure-9ec13a78be8f23bf.js → configure-8badde37699accd4.js} +1 -1
  107. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests-049931ac72a90590.js +1 -0
  108. fides/ui-build/static/admin/_next/static/chunks/pages/properties/{[id]-6597c1714cb44cbc.js → [id]-4bf43e86f68a99fb.js} +1 -1
  109. fides/ui-build/static/admin/_next/static/chunks/pages/properties/add-property-5403174fb79895c3.js +1 -0
  110. fides/ui-build/static/admin/_next/static/chunks/pages/properties-06c55d3d713867b5.js +1 -0
  111. fides/ui-build/static/admin/_next/static/chunks/pages/reporting/datamap-4e1429ad4c083e4f.js +1 -0
  112. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{about-ec35b0518d3fb3bb.js → about-a425b79765abd602.js} +1 -1
  113. fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent-402a7da5dae35b7a.js +1 -0
  114. fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields-24d12a789adc39e2.js +1 -0
  115. fides/ui-build/static/admin/_next/static/chunks/pages/settings/domain-records-b205aaafb53a629d.js +1 -0
  116. fides/ui-build/static/admin/_next/static/chunks/pages/settings/domains-7af5f66895a7f321.js +1 -0
  117. fides/ui-build/static/admin/_next/static/chunks/pages/settings/email-templates-1859b23d0e9ff327.js +1 -0
  118. fides/ui-build/static/admin/_next/static/chunks/pages/settings/locations-7fa58dfa4acc9924.js +1 -0
  119. fides/ui-build/static/admin/_next/static/chunks/pages/settings/organization-50624926a6cf17f0.js +1 -0
  120. fides/ui-build/static/admin/_next/static/chunks/pages/settings/regulations-51cea4d659db4309.js +1 -0
  121. fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]/test-datasets-cee5aa3edcc6d827.js +1 -0
  122. fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]-6fb382995c4a8249.js +1 -0
  123. fides/ui-build/static/admin/_next/static/chunks/pages/systems-c800e9fcf38bc6f6.js +1 -0
  124. fides/ui-build/static/admin/_next/static/chunks/pages/taxonomy-cdc44bbdf5694639.js +1 -0
  125. fides/ui-build/static/admin/_next/static/chunks/pages/user-management/new-d6717378b42982d5.js +1 -0
  126. fides/ui-build/static/admin/_next/static/chunks/pages/user-management/profile/[id]-d4a7854a4faf0b0a.js +1 -0
  127. fides/ui-build/static/admin/_next/static/chunks/pages/user-management-858a0d0fabeac02a.js +1 -0
  128. fides/ui-build/static/admin/_next/static/chunks/polyfills-42372ed130431b0a.js +1 -0
  129. fides/ui-build/static/admin/_next/static/chunks/{webpack-f8d056f5e13fe08a.js → webpack-2156b65f5a3e1784.js} +1 -1
  130. fides/ui-build/static/admin/add-systems/manual.html +1 -1
  131. fides/ui-build/static/admin/add-systems/multiple.html +1 -1
  132. fides/ui-build/static/admin/add-systems.html +1 -1
  133. fides/ui-build/static/admin/ant-poc.html +1 -1
  134. fides/ui-build/static/admin/consent/configure/add-vendors.html +1 -1
  135. fides/ui-build/static/admin/consent/configure.html +1 -1
  136. fides/ui-build/static/admin/consent/privacy-experience/[id].html +1 -1
  137. fides/ui-build/static/admin/consent/privacy-experience/new.html +1 -1
  138. fides/ui-build/static/admin/consent/privacy-experience.html +1 -1
  139. fides/ui-build/static/admin/consent/privacy-notices/[id].html +1 -1
  140. fides/ui-build/static/admin/consent/privacy-notices/new.html +1 -1
  141. fides/ui-build/static/admin/consent/privacy-notices.html +1 -1
  142. fides/ui-build/static/admin/consent/properties.html +1 -1
  143. fides/ui-build/static/admin/consent/reporting.html +1 -1
  144. fides/ui-build/static/admin/consent.html +1 -1
  145. fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn].html +1 -1
  146. fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn].html +1 -1
  147. fides/ui-build/static/admin/data-catalog/[systemId]/projects.html +1 -1
  148. fides/ui-build/static/admin/data-catalog/[systemId]/resources/[resourceUrn].html +1 -1
  149. fides/ui-build/static/admin/data-catalog/[systemId]/resources.html +1 -1
  150. fides/ui-build/static/admin/data-catalog.html +1 -1
  151. fides/ui-build/static/admin/data-discovery/action-center/[monitorId]/[systemId].html +1 -1
  152. fides/ui-build/static/admin/data-discovery/action-center/[monitorId].html +1 -1
  153. fides/ui-build/static/admin/data-discovery/action-center.html +1 -1
  154. fides/ui-build/static/admin/data-discovery/activity.html +1 -1
  155. fides/ui-build/static/admin/data-discovery/detection/[resourceUrn].html +1 -1
  156. fides/ui-build/static/admin/data-discovery/detection.html +1 -1
  157. fides/ui-build/static/admin/data-discovery/discovery/[resourceUrn].html +1 -1
  158. fides/ui-build/static/admin/data-discovery/discovery.html +1 -1
  159. fides/ui-build/static/admin/datamap.html +1 -1
  160. fides/ui-build/static/admin/dataset/[datasetId]/[collectionName]/[...subfieldNames].html +1 -1
  161. fides/ui-build/static/admin/dataset/[datasetId]/[collectionName].html +1 -1
  162. fides/ui-build/static/admin/dataset/[datasetId].html +1 -1
  163. fides/ui-build/static/admin/dataset/new.html +1 -1
  164. fides/ui-build/static/admin/dataset.html +1 -1
  165. fides/ui-build/static/admin/datastore-connection/[id].html +1 -1
  166. fides/ui-build/static/admin/datastore-connection/new.html +1 -1
  167. fides/ui-build/static/admin/datastore-connection.html +1 -1
  168. fides/ui-build/static/admin/index.html +1 -1
  169. fides/ui-build/static/admin/integrations/[id].html +1 -1
  170. fides/ui-build/static/admin/integrations.html +1 -1
  171. fides/ui-build/static/admin/login/[provider].html +1 -1
  172. fides/ui-build/static/admin/login.html +1 -1
  173. fides/ui-build/static/admin/messaging/[id].html +1 -1
  174. fides/ui-build/static/admin/messaging/add-template.html +1 -1
  175. fides/ui-build/static/admin/messaging.html +1 -1
  176. fides/ui-build/static/admin/privacy-requests/[id].html +1 -1
  177. fides/ui-build/static/admin/privacy-requests/configure/messaging.html +1 -1
  178. fides/ui-build/static/admin/privacy-requests/configure/storage.html +1 -1
  179. fides/ui-build/static/admin/privacy-requests/configure.html +1 -1
  180. fides/ui-build/static/admin/privacy-requests.html +1 -1
  181. fides/ui-build/static/admin/properties/[id].html +1 -1
  182. fides/ui-build/static/admin/properties/add-property.html +1 -1
  183. fides/ui-build/static/admin/properties.html +1 -1
  184. fides/ui-build/static/admin/reporting/datamap.html +1 -1
  185. fides/ui-build/static/admin/settings/about.html +1 -1
  186. fides/ui-build/static/admin/settings/consent.html +1 -1
  187. fides/ui-build/static/admin/settings/custom-fields.html +1 -1
  188. fides/ui-build/static/admin/settings/domain-records.html +1 -1
  189. fides/ui-build/static/admin/settings/domains.html +1 -1
  190. fides/ui-build/static/admin/settings/email-templates.html +1 -1
  191. fides/ui-build/static/admin/settings/locations.html +1 -1
  192. fides/ui-build/static/admin/settings/organization.html +1 -1
  193. fides/ui-build/static/admin/settings/regulations.html +1 -1
  194. fides/ui-build/static/admin/systems/configure/[id]/test-datasets.html +1 -1
  195. fides/ui-build/static/admin/systems/configure/[id].html +1 -1
  196. fides/ui-build/static/admin/systems.html +1 -1
  197. fides/ui-build/static/admin/taxonomy.html +1 -1
  198. fides/ui-build/static/admin/user-management/new.html +1 -1
  199. fides/ui-build/static/admin/user-management/profile/[id].html +1 -1
  200. fides/ui-build/static/admin/user-management.html +1 -1
  201. fides/ui-build/static/admin/_next/static/chunks/1241-438935108aed21e7.js +0 -1
  202. fides/ui-build/static/admin/_next/static/chunks/1288-ba1df63e7fa2234a.js +0 -1
  203. fides/ui-build/static/admin/_next/static/chunks/1827-2d2f6eb59ebca43f.js +0 -1
  204. fides/ui-build/static/admin/_next/static/chunks/2017-312ebd5e1ee3a4cc.js +0 -1
  205. fides/ui-build/static/admin/_next/static/chunks/2025-8e051f2e024df3bf.js +0 -1
  206. fides/ui-build/static/admin/_next/static/chunks/2163-4ea4bc558daae7b9.js +0 -1
  207. fides/ui-build/static/admin/_next/static/chunks/2556-a58aca0405c150e6.js +0 -1
  208. fides/ui-build/static/admin/_next/static/chunks/2973-995ae9f580873e5b.js +0 -1
  209. fides/ui-build/static/admin/_next/static/chunks/3163-7ebdab4fefa7e21f.js +0 -1
  210. fides/ui-build/static/admin/_next/static/chunks/3309-d014168a94ed008b.js +0 -1
  211. fides/ui-build/static/admin/_next/static/chunks/3528-5e4ade882be165e4.js +0 -1
  212. fides/ui-build/static/admin/_next/static/chunks/3990-d38bb0b12394ae4d.js +0 -1
  213. fides/ui-build/static/admin/_next/static/chunks/4321-9c97c4e0d5cf38bd.js +0 -1
  214. fides/ui-build/static/admin/_next/static/chunks/4981-c7710c0d9ff7f9cf.js +0 -1
  215. fides/ui-build/static/admin/_next/static/chunks/53-bd8367b6a28ef9b0.js +0 -1
  216. fides/ui-build/static/admin/_next/static/chunks/6182-87e468239a93f7e2.js +0 -1
  217. fides/ui-build/static/admin/_next/static/chunks/637-3f7f3e47e69e75fe.js +0 -1
  218. fides/ui-build/static/admin/_next/static/chunks/6546-7d8e618a3e49a19a.js +0 -1
  219. fides/ui-build/static/admin/_next/static/chunks/7080-54768a5669e98da9.js +0 -1
  220. fides/ui-build/static/admin/_next/static/chunks/7269-aaa4ad906c8bf8f7.js +0 -1
  221. fides/ui-build/static/admin/_next/static/chunks/7528.b7f05f44d1ff3997.js +0 -1
  222. fides/ui-build/static/admin/_next/static/chunks/7636-bf8c77691e80223b.js +0 -1
  223. fides/ui-build/static/admin/_next/static/chunks/7871-69ffa5607b57cbcf.js +0 -1
  224. fides/ui-build/static/admin/_next/static/chunks/7996-5521a6949bfe4640.js +0 -1
  225. fides/ui-build/static/admin/_next/static/chunks/8001-f142a2097615505a.js +0 -1
  226. fides/ui-build/static/admin/_next/static/chunks/8540-cf0177abbe201868.js +0 -1
  227. fides/ui-build/static/admin/_next/static/chunks/8986-b955f08aba857064.js +0 -1
  228. fides/ui-build/static/admin/_next/static/chunks/9111-36f3eb6456817560.js +0 -1
  229. fides/ui-build/static/admin/_next/static/chunks/9659-7a6f150315045fdd.js +0 -1
  230. fides/ui-build/static/admin/_next/static/chunks/9822-e0b4ee48b9ca9d6c.js +0 -1
  231. fides/ui-build/static/admin/_next/static/chunks/main-6880a3888740c515.js +0 -1
  232. fides/ui-build/static/admin/_next/static/chunks/main-app-de538a24cbd2733c.js +0 -1
  233. fides/ui-build/static/admin/_next/static/chunks/pages/404-cf2b98b932c99b1e.js +0 -1
  234. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/manual-227ad8dba69aadab.js +0 -1
  235. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems-500ee461301938a8.js +0 -1
  236. fides/ui-build/static/admin/_next/static/chunks/pages/ant-poc-833eede89996ded2.js +0 -1
  237. fides/ui-build/static/admin/_next/static/chunks/pages/consent/configure-49c576c235a79105.js +0 -1
  238. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience/[id]-f88c83c3daedc898.js +0 -1
  239. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience/new-8eb5999c73f3e445.js +0 -1
  240. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience-3eaec69fa89f74ce.js +0 -1
  241. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices-363b22d7785b3820.js +0 -1
  242. fides/ui-build/static/admin/_next/static/chunks/pages/consent/properties-5f80a5d6b216b7d3.js +0 -1
  243. fides/ui-build/static/admin/_next/static/chunks/pages/consent/reporting-d1abffec10948e2e.js +0 -1
  244. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn]-ef19223d2cdc1258.js +0 -1
  245. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]-50b989ef31996157.js +0 -1
  246. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects-96f81e13cc52686f.js +0 -1
  247. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/resources/[resourceUrn]-fd3d508ab13ddb5b.js +0 -1
  248. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog-11d772fe8b66f9b6.js +0 -1
  249. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]/[systemId]-e3dbeac39e3ebd59.js +0 -1
  250. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/activity-bdb48de828181c14.js +0 -1
  251. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/discovery/[resourceUrn]-90ebc7dd32d37952.js +0 -1
  252. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/discovery-3251e73054b9f980.js +0 -1
  253. fides/ui-build/static/admin/_next/static/chunks/pages/datamap-f79309e33e7583fa.js +0 -1
  254. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]/[...subfieldNames]-63f5bebe5851b767.js +0 -1
  255. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]-18ff69fb79811cff.js +0 -1
  256. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]-ad8ab0745c40a187.js +0 -1
  257. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/new-72cdfa2ff1a4f38b.js +0 -1
  258. fides/ui-build/static/admin/_next/static/chunks/pages/dataset-6ab8c03b8baa93ca.js +0 -1
  259. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/[id]-9f1a9e0e2b443b2a.js +0 -1
  260. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/new-c7de595cc7a42eba.js +0 -1
  261. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection-9cafd280f2dff51b.js +0 -1
  262. fides/ui-build/static/admin/_next/static/chunks/pages/index-f6c4817f3c27b16c.js +0 -1
  263. fides/ui-build/static/admin/_next/static/chunks/pages/integrations/[id]-c431f92c941859c4.js +0 -1
  264. fides/ui-build/static/admin/_next/static/chunks/pages/integrations-43234d749fbc0606.js +0 -1
  265. fides/ui-build/static/admin/_next/static/chunks/pages/messaging/[id]-014724a2527621b5.js +0 -1
  266. fides/ui-build/static/admin/_next/static/chunks/pages/messaging/add-template-860ee8c0e0a2d994.js +0 -1
  267. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/[id]-ae047733e540e0ef.js +0 -1
  268. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/messaging-c6881c16a4058f20.js +0 -1
  269. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/storage-4b68311b85486f8c.js +0 -1
  270. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests-c0ee732681c1d4ef.js +0 -1
  271. fides/ui-build/static/admin/_next/static/chunks/pages/properties/add-property-674abcb6eaeb32de.js +0 -1
  272. fides/ui-build/static/admin/_next/static/chunks/pages/properties-f939fbdb6bc969ef.js +0 -1
  273. fides/ui-build/static/admin/_next/static/chunks/pages/reporting/datamap-7446940b5f984a24.js +0 -1
  274. fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent-92a19e7da38d3325.js +0 -1
  275. fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields-3bbbb1612eb447e9.js +0 -1
  276. fides/ui-build/static/admin/_next/static/chunks/pages/settings/domain-records-c59eedd4f4a637aa.js +0 -1
  277. fides/ui-build/static/admin/_next/static/chunks/pages/settings/domains-61ddd1a76e4ab2c6.js +0 -1
  278. fides/ui-build/static/admin/_next/static/chunks/pages/settings/email-templates-4d55571c2799e7fe.js +0 -1
  279. fides/ui-build/static/admin/_next/static/chunks/pages/settings/locations-725f4a6a809bd1e6.js +0 -1
  280. fides/ui-build/static/admin/_next/static/chunks/pages/settings/organization-fc13f3473328020d.js +0 -1
  281. fides/ui-build/static/admin/_next/static/chunks/pages/settings/regulations-8934706c2c817abe.js +0 -1
  282. fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]/test-datasets-0ee9dc1f37205410.js +0 -1
  283. fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]-15f55e6c399eed5e.js +0 -1
  284. fides/ui-build/static/admin/_next/static/chunks/pages/systems-0b4f7a20fa248642.js +0 -1
  285. fides/ui-build/static/admin/_next/static/chunks/pages/taxonomy-ad082f72d90bdfe2.js +0 -1
  286. fides/ui-build/static/admin/_next/static/chunks/pages/user-management/new-a59a02634d672703.js +0 -1
  287. fides/ui-build/static/admin/_next/static/chunks/pages/user-management/profile/[id]-99490929267dbcef.js +0 -1
  288. fides/ui-build/static/admin/_next/static/chunks/pages/user-management-2eedb806df4160b3.js +0 -1
  289. fides/ui-build/static/admin/_next/static/chunks/polyfills-78c92fac7aa8fdd8.js +0 -1
  290. fides/ui-build/static/admin/_next/static/r-3WeuV_snrkjgQH_dysX/_buildManifest.js +0 -1
  291. {ethyca_fides-2.56.1rc3.dist-info → ethyca_fides-2.56.2b1.dist-info}/LICENSE +0 -0
  292. {ethyca_fides-2.56.1rc3.dist-info → ethyca_fides-2.56.2b1.dist-info}/WHEEL +0 -0
  293. {ethyca_fides-2.56.1rc3.dist-info → ethyca_fides-2.56.2b1.dist-info}/entry_points.txt +0 -0
  294. {ethyca_fides-2.56.1rc3.dist-info → ethyca_fides-2.56.2b1.dist-info}/top_level.txt +0 -0
  295. /fides/ui-build/static/admin/_next/static/{r-3WeuV_snrkjgQH_dysX → G4yyqYFNYjBbKTQG4qT1Z}/_ssgManifest.js +0 -0
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7495],{18225:function(e,s,t){var i=t(24246),a=t(38458);s.Z=e=>{let{...s}=e;return(0,i.jsx)(a.kCb,{boxSize:"full",align:"center",justify:"center",children:(0,i.jsx)(a.$jN,{color:"primary",...s})})}},79789:function(e,s,t){t.d(s,{Hn:function(){return o},XU:function(){return r},Z5:function(){return c},aG:function(){return h},cB:function(){return n},hX:function(){return l},vQ:function(){return d}});var i=t(24246),a=t(38458);let n=e=>{let{text:s,...t}=e;return(0,i.jsx)(a.X6q,{fontSize:"sm",mt:4,mb:1,...t,children:s})},r=e=>{let{children:s}=e;return(0,i.jsx)(a.xvT,{fontSize:"14px",mb:4,children:s})},o=e=>{let{children:s,href:t}=e;return(0,i.jsx)(a.rUS,{href:t,textDecoration:"underline",isExternal:!0,children:s})},c=e=>{let{children:s}=e;return(0,i.jsx)(a.QI$,{fontSize:"14px",mb:4,children:s})},d=e=>{let{children:s}=e;return(0,i.jsx)(a.GSI,{fontSize:"14px",mb:4,ml:6,children:s})},l=e=>{let{children:s}=e;return(0,i.jsx)(a.EKh,{display:"block",whiteSpace:"pre",p:4,mb:4,overflowX:"scroll",children:s})},h=e=>{let{data:s}=e;return(0,i.jsxs)(a.iA_,{fontSize:"14px",children:[(0,i.jsx)(a.hrZ,{children:(0,i.jsxs)(a.Tr,{children:[(0,i.jsx)(a.Th,{children:"Permission"}),(0,i.jsx)(a.Th,{children:"Description"})]})}),(0,i.jsx)(a.p3B,{children:s.map(e=>(0,i.jsxs)(a.Tr,{children:[(0,i.jsx)(a.Td,{children:(0,i.jsx)(a.Vp9,{children:e.permission})}),(0,i.jsx)(a.Td,{children:e.description})]},e.permission))})]})}},8133:function(e,s,t){var i=t(24246),a=t(38458);s.Z=e=>{let{title:s,children:t,isOpen:n,onClose:r,...o}=e;return(0,i.jsxs)(a.u_l,{isOpen:n,onClose:r,isCentered:!0,scrollBehavior:"inside",size:"xl",id:"add-modal",...o,children:[(0,i.jsx)(a.ZAr,{}),(0,i.jsxs)(a.hzk,{textAlign:"left",p:0,"data-testid":"add-modal-content",children:[(0,i.jsx)(a.xBx,{p:0,children:(0,i.jsx)(a.xuv,{backgroundColor:"gray.50",px:6,py:4,border:"1px",borderColor:"gray.200",borderTopRadius:6,display:"flex",justifyContent:"space-between",alignItems:"center",children:(0,i.jsx)(a.X6q,{as:"h3",size:"sm",children:s})})}),(0,i.jsx)(a.fef,{pb:4,overflow:"auto",children:t})]})]})}},15872:function(e,s,t){var i=t(24246),a=t(38458),n=t(86677);t(27378);var r=t(77830),o=t(14207);s.Z=e=>{let{connection_key:s,showMenu:t}=e,{isOpen:c,onOpen:d,onClose:l}=(0,a.qY0)(),[h,u]=(0,o.R5)(),x=(0,n.useRouter)(),j=()=>{u.isLoading||l()};return(0,i.jsxs)(i.Fragment,{children:[t&&(0,i.jsx)(a.sNh,{_focus:{color:"complimentary.500",bg:"gray.100"},onClick:d,children:(0,i.jsx)(a.xvT,{fontSize:"sm",children:"Delete"})}),!t&&(0,i.jsx)(a.wpx,{onClick:d,children:"Delete integration"}),(0,i.jsxs)(a.u_l,{isCentered:!0,isOpen:c,onClose:j,children:[(0,i.jsx)(a.ZAr,{}),(0,i.jsxs)(a.hzk,{children:[(0,i.jsx)(a.xBx,{children:"Delete integration"}),(0,i.jsx)(a.olH,{}),(0,i.jsx)(a.fef,{pb:6,children:(0,i.jsx)(a.Kqy,{direction:"column",spacing:"15px",children:(0,i.jsx)(a.xvT,{color:"gray.600",fontSize:"sm",fontWeight:"sm",lineHeight:"20px",children:"Deleting an integration may impact any privacy request that is currently in progress. Do you wish to proceed?"})})}),(0,i.jsxs)(a.mzw,{className:"flex gap-4",children:[(0,i.jsx)(a.wpx,{onClick:j,className:"w-1/2",children:"Cancel"}),(0,i.jsx)(a.wpx,{onClick:()=>{s&&(h(s),t||x.push(r.KH))},loading:u.isLoading,type:"primary",className:"w-1/2",children:"Delete integration"})]})]})]})]})}},45216:function(e,s,t){var i=t(38458),a=t(812),n=t(16394),r=t(14207);s.Z=e=>{let[s,{data:t,fulfilledTimeStamp:o,isLoading:c,isFetching:d}]=(0,r.h2)(),l=(0,i.pmc)();return{testConnection:async()=>{var t,i;if(!e)return;let n=await s(e.key);n.isError?l({status:"error",description:(0,a.e$)(n.error,"Unable to test connection. Please try again.")}):(null===(t=n.data)||void 0===t?void 0:t.test_status)==="succeeded"?l({status:"success",description:"Connected successfully"}):(null===(i=n.data)||void 0===i?void 0:i.test_status)==="failed"&&l({status:"warning",description:"Connection test failed"})},isLoading:c||d,testData:{timestamp:o?(0,n.p6)(o):null==e?void 0:e.last_test_timestamp,succeeded:t?"succeeded"===t.test_status:!!(null==e?void 0:e.last_test_succeeded)}}}},41553:function(e,s,t){var i=t(24246),a=t(38458),n=t(16394);s.Z=e=>{let{testData:s}=e;if(!s.timestamp)return(0,i.jsx)(a.xvT,{"data-testid":"connection-status",children:"Connection not tested"});let t=(0,n.p6)(s.timestamp);return s.succeeded?(0,i.jsxs)(a.kCb,{color:"success-text.900",align:"center","data-testid":"connection-status",children:[(0,i.jsx)(a.rE2,{mr:2,boxSize:4}),(0,i.jsxs)(a.xvT,{children:["Last connected ",t]})]}):(0,i.jsxs)(a.kCb,{color:"error-text.900",align:"center","data-testid":"connection-status",children:[(0,i.jsx)(a.iid,{mr:2,boxSize:4}),(0,i.jsxs)(a.xvT,{children:["Last connection failed ",t]})]})}},75595:function(e,s,t){var i=t(24246),a=t(38458),n=t(41337),r=t(15872),o=t(45216),c=t(38807),d=t(41553);s.Z=e=>{let{integration:s,showTestNotice:t,otherButtons:l,showDeleteButton:h,configureButtonLabel:u="Configure",onConfigureClick:x}=e,{testConnection:j,isLoading:m,testData:p}=(0,o.Z)(s),g=(0,c.ZP)(null==s?void 0:s.connection_type);return(0,i.jsxs)(a.xuv,{maxW:"760px",borderWidth:1,borderRadius:"lg",overflow:"hidden",padding:"12px",marginBottom:"24px","data-testid":"integration-info-".concat(null==s?void 0:s.key),children:[(0,i.jsxs)(a.kCb,{children:[(0,i.jsx)(n.Z,{data:null!=s?s:"",boxSize:"50px"}),(0,i.jsxs)(a.kCb,{direction:"column",flexGrow:1,marginLeft:"16px",children:[(0,i.jsx)(a.xvT,{color:"gray.700",fontWeight:"semibold",children:(null==s?void 0:s.name)||"(No name)"}),t?(0,i.jsx)(d.Z,{testData:p}):(0,i.jsx)(a.xvT,{color:"gray.700",fontSize:"sm",fontWeight:"semibold",mt:1,children:g.category})]}),(0,i.jsxs)("div",{className:"flex gap-4",children:[h&&s&&(0,i.jsx)(r.Z,{showMenu:!1,connection_key:s.key}),t&&(0,i.jsx)(a.wpx,{onClick:j,loading:m,"data-testid":"test-connection-btn",children:"Test connection"}),l,x&&(0,i.jsx)(a.wpx,{onClick:x,"data-testid":"configure-btn",children:u})]})]}),(0,i.jsx)(a.Eq9,{marginTop:"16px",children:g.tags.map(e=>(0,i.jsx)(a.j8w,{children:e},e))})]})}},15987:function(e,s,t){var i=t(24246),a=t(38458),n=t(34090),r=t(90104),o=t.n(r),c=t(92465),d=t.n(c),l=t(25389),h=t.n(l),u=t(15539),x=t.n(u),j=t(59389),m=t(18225),p=t(97181),g=t(40324),y=t(812),v=t(20682),S=t(94725),A=t(3968),C=t(1315),f=t(21702),D=t(31883);s.Z=e=>{var s,t;let{connection:r,connectionOption:c,onCancel:l}=e,[u,{isLoading:b}]=(0,S.Pp)(),[w,{isLoading:R}]=(0,S.pH)(),[E,{isLoading:_}]=(0,C.qd)(),{data:H,isLoading:T}=(0,v.n3)(c.identifier),{data:B}=(0,C.K3)(),F=null==B?void 0:B.map(e=>{var s;return{label:null!==(s=e.name)&&void 0!==s?s:e.fides_key,value:e.fides_key}}),L=b||R||_,k={name:null!==(s=null==r?void 0:r.name)&&void 0!==s?s:"",description:null!==(t=null==r?void 0:r.description)&&void 0!==t?t:"",secrets:h()(null==H?void 0:H.properties,(e,s)=>{var t,i;return null!==(i=null==r?void 0:null===(t=r.secrets)||void 0===t?void 0:t[s])&&void 0!==i?i:""})},I=(0,a.pmc)(),O=!!r,M=e=>x()(h()(e,(e,s)=>{var t,i;return(null!==(i=null==r?void 0:null===(t=r.secrets)||void 0===t?void 0:t[s])&&void 0!==i?i:"")===e?void 0:e}),d()),U=async e=>{var s;let t;let i=M(e.secrets),a=O?{...r,disabled:null!==(s=r.disabled)&&void 0!==s&&s,name:e.name,description:e.description,secrets:void 0}:{name:e.name,key:(0,A.E)(e.name),connection_type:c.identifier,access:f.uv.READ,disabled:!1,description:e.description,secrets:e.secrets};if(t=e.system_fides_key?await E({systemFidesKey:e.system_fides_key,connectionConfigs:[a]}):await w(a),(0,D.D4)(t)){I({status:"error",description:(0,y.e$)(t.error,"A problem occurred while ".concat(O?"updating":"creating"," this integration. Please try again."))});return}if(!e.secrets){I({status:"success",description:"Integration ".concat(O?"updated":"created"," successfully")});return}if(!o()(i)){let e=await u({connection_key:a.key,secrets:i});if((0,D.D4)(e)){I({status:"error",description:(0,y.e$)(e.error,"An error occurred while ".concat(O?"updating":"creating"," this integration's secret. Please try again."))});return}}I({status:"success",description:"Integration secret ".concat(O?"updated":"created"," successfully")}),l()};if(T)return(0,i.jsx)(m.Z,{});let P=e=>Object.entries(e.properties).map(s=>{let[t,a]=s,n="secrets.".concat(t);return(0,i.jsx)(g.j0,{name:n,id:n,type:a.sensitive?"password":void 0,label:a.title,isRequired:e.required.includes(t),tooltip:a.description,variant:"stacked"},n)});return(0,i.jsx)(n.J9,{initialValues:k,enableReinitialize:!0,onSubmit:U,validationSchema:(e=>{let s=Object.entries(e.properties).map(s=>{let[t,i]=s;return[t,e.required.includes(t)?j.Z_().required().label(i.title):j.Z_().nullable().label(i.title)]});return j.Ry().shape({name:j.Z_().required().label("Name"),description:j.Z_().nullable().label("Description"),secrets:j.Ry().shape(Object.fromEntries(s))})})(H),children:e=>{let{dirty:s,isValid:t,resetForm:r}=e;return(0,i.jsx)(n.l0,{children:(0,i.jsxs)(a.gCW,{alignItems:"start",spacing:6,mt:4,children:[(0,i.jsx)(g.j0,{id:"name",name:"name",label:"Name",variant:"stacked",isRequired:!0}),(0,i.jsx)(g.j0,{id:"description",name:"description",label:"Description",variant:"stacked"}),P(H),!O&&(0,i.jsx)(p.d,{id:"system_fides_key",name:"system_fides_key",options:null!=F?F:[],label:"System",tooltip:"The system to associate with the integration",layout:"stacked"}),(0,i.jsxs)("div",{className:"flex w-full justify-between",children:[(0,i.jsx)(a.wpx,{onClick:()=>{l(),r()},children:"Cancel"}),(0,i.jsx)(a.wpx,{htmlType:"submit",type:"primary",disabled:!s||!t,loading:L,"data-testid":"save-btn",children:"Save"})]})]})})}})}},38807:function(e,s,t){t.d(s,{FO:function(){return E},jq:function(){return _},ZP:function(){return T}}),(i=a||(a={})).DATA_CATALOG="Data Catalog",i.DATA_WAREHOUSE="Data Warehouse",i.DATABASE="Database";var i,a,n=t(24246),r=t(38458),o=t(79789),c=e=>{let{children:s}=e,{isOpen:t,onToggle:i}=(0,r.qY0)();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(r.UO1,{in:t,children:s}),(0,n.jsx)(r.xvT,{fontSize:"sm",cursor:"pointer",textDecoration:"underline",onClick:i,children:t?"Show less":"Show more"})]})},d=t(21702);let l={name:"Google BigQuery",key:"bq_placeholder",connection_type:d.Rj.BIGQUERY,access:d.uv.READ,created_at:""},h=[{permission:"bigquery.jobs.create",description:"Run jobs (e.g. queries) within the project. This is only needed for the Fides Project where the Fides service account is located."},{permission:"bigquery.jobs.list",description:"Manage the queries that the service account performs. This is only needed for the Fides Project where the Fides service account is located."},{permission:"bigquery.routines.get",description:"Allow the service account to retrieve custom routines (e.g. queries) on associated datasets and tables."},{permission:"bigquery.routines.list",description:"Allow the service account to manage the custom routines (e.g. queries) that run on associated datasets and tables."}],u=[{permission:"bigquery.datasets.get",description:"Retrieve metadata and list tables for the specified project."},{permission:"bigquery.tables.get",description:"Retrieve metadata for the specified table."},{permission:"bigquery.tables.getData",description:"Read data in the specified table."},{permission:"bigquery.tables.list",description:"List all tables in the specified dataset."},{permission:"resourcemanager.projects.get",description:"Retrieve metadata for the specified project."}],x={placeholder:l,category:a.DATA_WAREHOUSE,overview:(0,n.jsx)(()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.cB,{text:"Overview"}),(0,n.jsx)(o.XU,{children:"Continuously monitor BigQuery to detect and track schema-level changes, automatically discover and label data categories as well as automatically process DSR (privacy requests) and consent enforcement to proactively manage data governance risks."}),(0,n.jsxs)(c,{children:[(0,n.jsx)(o.cB,{text:"Categories"}),(0,n.jsxs)(o.Z5,{children:[(0,n.jsx)(r.HCh,{children:"Data Warehouse"}),(0,n.jsx)(r.HCh,{children:"Storage system"}),(0,n.jsx)(r.HCh,{children:"Cloud provider"}),(0,n.jsx)(r.HCh,{children:"Data detection"}),(0,n.jsx)(r.HCh,{children:"Data discovery"}),(0,n.jsx)(r.HCh,{children:"DSR automation"}),(0,n.jsx)(r.HCh,{children:"Consent orchestration"})]}),(0,n.jsx)(o.cB,{text:"Permissions"}),(0,n.jsx)(o.XU,{children:"For detection and discovery, Fides requires a read-only BigQuery service account with limited permissions. If you intend to automate governance for DSR or Consent, Fides requires a read-and-write BigQuery service account to any project you would like Fides to govern."}),(0,n.jsx)(o.XU,{children:"A BigQuery administrator can create the necessary role for Fides using BigQuery's roles guide and assign this to a service account using BigQuery's service account guide."}),(0,n.jsx)(o.XU,{children:"The permissions allow Fides to read the schema of, and data stored in projects, datasets and tables as well write restricted updates based on your policy configurations to tables you specify as part of DSR and Consent orchestration."}),(0,n.jsx)(o.cB,{text:"Permissions list"}),(0,n.jsxs)(o.Z5,{children:[(0,n.jsx)(r.HCh,{children:"bigquery.jobs.create"}),(0,n.jsx)(r.HCh,{children:"bigquery.jobs.list"}),(0,n.jsx)(r.HCh,{children:"bigquery.routines.get"}),(0,n.jsx)(r.HCh,{children:"bigquery.routines.list"}),(0,n.jsx)(r.HCh,{children:"bigquery.datasets.get"}),(0,n.jsx)(r.HCh,{children:"bigquery.tables.get"}),(0,n.jsx)(r.HCh,{children:"bigquery.tables.getData"}),(0,n.jsx)(r.HCh,{children:"bigquery.tables.list"}),(0,n.jsx)(r.HCh,{children:"bigquery.tables.updateData"}),(0,n.jsx)(r.HCh,{children:"resourcemanager.projects.get"})]})]})]}),{}),instructions:(0,n.jsx)(()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.cB,{text:"Configuring a Fides -> BigQuery Integration"}),(0,n.jsx)(o.cB,{text:"Step 1: Create a Fides project"}),(0,n.jsxs)(o.XU,{children:["Create a Fides Project using"," ",(0,n.jsx)(o.Hn,{href:"https://cloud.google.com/resource-manager/docs/creating-managing-projects#creating_a_project",children:"BigQuery's project creation guide"}),"."]}),(0,n.jsx)(o.cB,{text:"Step 2: Create a Fides role in GCP"}),(0,n.jsxs)(o.vQ,{children:[(0,n.jsxs)(r.HCh,{children:["Create a custom role for Fides using BigQuery's"," ",(0,n.jsx)(o.Hn,{href:"https://cloud.google.com/iam/docs/creating-custom-roles#creating_a_custom_role",children:"roles guide"}),"."]}),(0,n.jsx)(r.HCh,{children:"Follow the sections below to grant permissions to this role for the Fides project and any project you would like Fides to manage."})]}),(0,n.jsxs)(c,{children:[(0,n.jsx)(o.cB,{text:"Step 3: Assign permissions to the Fides project"}),(0,n.jsx)(o.XU,{children:"Assign the following permissions to the Fides Project that will be used by your Fides service account to run queries:"}),(0,n.jsx)(o.aG,{data:h}),(0,n.jsx)(o.cB,{text:"Step 4: Assign permissions to any project you’d like Fides to monitor"}),(0,n.jsx)(o.XU,{children:"Grant the following permissions to the Fides service account in every project where you would like Fides detection and discovery monitoring."}),(0,n.jsx)(o.aG,{data:u}),(0,n.jsx)(o.cB,{text:"Step 5: Create a Fides service account in the Fides Project"}),(0,n.jsxs)(o.vQ,{children:[(0,n.jsxs)(r.HCh,{children:["Create a service account for Fides using BigQuery's"," ",(0,n.jsx)(o.Hn,{href:"https://cloud.google.com/iam/docs/service-accounts-create",children:"service account guide"}),"."]}),(0,n.jsx)(r.HCh,{children:"Assign the previously created role to this service account."}),(0,n.jsxs)(r.HCh,{children:["Download the service account JSON keyfile."," ",(0,n.jsx)("strong",{children:"Note: this is sensitive information that should not be shared."})," ","An example of this is below:"]})]}),(0,n.jsx)(o.hX,{children:'{\n "type": "service_account",\n "project_id": "project-id-123456",\n "private_key_id": "0123456789abcdef0123456789abcdef01234567",\n "private_key": "-----BEGIN PRIVATE KEY-----\\nMIIyourkey-----\\nEND PRIVATE KEY-----\\n",\n "client_email": "test@project-id-123456.iam.gserviceaccount.com",\n "client_id": "012345678901234567890",\n "auth_uri": "https://accounts.google.com/o/oauth2/auth",\n "token_uri": "https://oauth2.googleapis.com/token",\n "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",\n "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/test%40project-id-123456.iam.gserviceaccount.com"\n}'}),(0,n.jsx)(o.cB,{text:"Step 6: Use the JSON key to authenticate your integration"}),(0,n.jsx)(o.XU,{children:"Provide the JSON key to your Fides instance to securely connect Fides."})]})]}),{}),tags:["Data Warehouse","BigQuery","Discovery","Inventory"]},j={placeholder:{name:"Datahub",key:"datahub_placeholder",connection_type:d.Rj.DATAHUB,access:d.uv.READ,created_at:""},category:a.DATA_CATALOG,overview:(0,n.jsx)(()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.cB,{text:"Overview"}),(0,n.jsx)(o.XU,{children:"DataHub is a metadata platform designed to help organizations manage and govern their data. It acts as a centralized repository for tracking and discovering data assets across an organization, helping data teams understand where their data resides, how it's used, and how it flows through various systems."}),(0,n.jsxs)(c,{children:[(0,n.jsx)(o.cB,{text:"Categories"}),(0,n.jsx)(o.Z5,{children:(0,n.jsx)(r.HCh,{children:"Data Catalog"})}),(0,n.jsx)(o.cB,{text:"Permissions"}),(0,n.jsx)(o.Z5,{children:(0,n.jsx)(r.HCh,{children:"Placeholder"})})]})]}),{}),tags:["Data catalog"]},m={name:"DynamoDB",key:"dynamo_placeholder",connection_type:d.Rj.DYNAMODB,access:d.uv.READ,created_at:""},p=[{permission:"AmazonDynamoDBReadOnlyAccess",description:"Provides read-only access to Amazon DynamoDB via the AWS Management Console."},{permission:"AmazonDynamoDBFullAccess",description:"Provides full access to Amazon DynamoDB via the AWS Management Console. Only needed if automating governance for DSR or Consent."}],g={placeholder:m,category:a.DATABASE,overview:(0,n.jsx)(()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.cB,{text:"Overview"}),(0,n.jsx)(o.XU,{children:"Continuously monitor DynamoDB to detect and track schema-level changes, automatically discover and label data categories as well as automatically process DSR (privacy requests) and consent enforcement to proactively manage data governance risks."}),(0,n.jsxs)(c,{children:[(0,n.jsx)(o.cB,{text:"Categories"}),(0,n.jsxs)(o.Z5,{children:[(0,n.jsx)(r.HCh,{children:"NoSQL database"}),(0,n.jsx)(r.HCh,{children:"Storage system"}),(0,n.jsx)(r.HCh,{children:"Cloud provider"}),(0,n.jsx)(r.HCh,{children:"Data detection"}),(0,n.jsx)(r.HCh,{children:"Data discovery"})]}),(0,n.jsx)(o.cB,{text:"Permissions and Policies"}),(0,n.jsxs)(o.XU,{children:["For detection and discovery, Fides requires an IAM user with read-only DynamoDB permissions in order to detect, discover, and classify sensitive data. The AWS-managed"," ",(0,n.jsx)(r.EKh,{children:"AmazonDynamoDBReadOnlyAccess"})," policy can be used to assign these permissions. If you intend to automate governance for DSR or Consent, Fides requires an IAM user with read-and-write DynamoDB permissions. The AWS-managed",(0,n.jsx)(r.EKh,{children:"AmazonDynamoDBFullAccess"})," policy can be used to assign these permissions. An IAM administrator can create the necessary principal for Fides using the AWS IAM guides, and assign the appropriate permissions policy to the IAM user."]}),(0,n.jsx)(o.XU,{children:"The permissions allow Fides to read the schema of, and data stored in, DynamoDB tables. This data is inspected only for the purpose of detecting sensitive data risks and no data is stored by Fides. As part of DSR or Consent orchestration, Fides will only write restricted updates to the tables specified by your Fides policy configuration."}),(0,n.jsx)(o.cB,{text:"Policy List"}),(0,n.jsx)(o.XU,{children:"The following AWS-managed policies provide the necessary permissions for Fides:"}),(0,n.jsxs)(o.Z5,{children:[(0,n.jsx)(r.HCh,{children:"AmazonDynamoDBReadOnlyAccess"}),(0,n.jsx)(r.HCh,{children:"AmazonDynamoDBFullAccess (only needed if automating governance for DSR or Consent)"})]})]})]}),{}),instructions:(0,n.jsx)(()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.cB,{text:"Configuring a Fides -> DynamoDB Integration"}),(0,n.jsx)(o.cB,{text:"Step 1: Create an IAM user in AWS"}),(0,n.jsxs)(o.XU,{children:["Create an IAM user for Fides' DynamoDB access following the"," ",(0,n.jsx)(o.Hn,{href:"https://docs.aws.amazon.com/IAM/latest/UserGuide/getting-started.html#getting-started-iam-user",children:"AWS IAM user guide"}),"."]}),(0,n.jsxs)(c,{children:[(0,n.jsx)(o.cB,{text:"Step 2: Assign policies to the IAM user"}),(0,n.jsx)(o.XU,{children:"Grant the necessary permissions to the IAM user by attaching directly the appropriate AWS-managed policy for your use case:"}),(0,n.jsx)(o.aG,{data:p}),(0,n.jsx)(o.cB,{text:"Step 3: Create an access key for the IAM user"}),(0,n.jsxs)(o.vQ,{children:[(0,n.jsxs)(r.HCh,{children:["Create an access key for the IAM user under"," ",(0,n.jsx)("strong",{children:"Security credentials"})]}),(0,n.jsx)(r.HCh,{children:"Select the Other use case"}),(0,n.jsx)(r.HCh,{children:"Copy the Access Key ID and Secret Access Key"})]}),(0,n.jsx)(o.cB,{text:"Use the Credentials to Authenticate Your Integration"}),(0,n.jsx)(o.XU,{children:"Provide the credentials to your Fides instance to securely connect Fides."})]})]}),{}),tags:["Database","DynamoDB","Discovery","Inventory"]},y={placeholder:{name:"Google Cloud SQL for MySQL",key:"google_cloud_sql_for_mysql_placeholder",connection_type:d.Rj.GOOGLE_CLOUD_SQL_MYSQL,access:d.uv.READ,created_at:""},category:a.DATABASE,overview:(0,n.jsx)(()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.cB,{text:"Overview"}),(0,n.jsx)(o.XU,{children:"Google Cloud SQL for MySQL is a fully-managed relational database service that simplifies the setup, maintenance, management, and administration of MySQL databases. Connect Fides to your Google Cloud SQL for MySQL to detect and track changes in schemas and tables and automatically discover and label data categories to proactively manage data governance risks."}),(0,n.jsxs)(c,{children:[(0,n.jsx)(o.cB,{text:"Categories"}),(0,n.jsxs)(o.Z5,{children:[(0,n.jsx)(r.HCh,{children:"Database"}),(0,n.jsx)(r.HCh,{children:"SQL database"}),(0,n.jsx)(r.HCh,{children:"Storage system"}),(0,n.jsx)(r.HCh,{children:"Data detection"}),(0,n.jsx)(r.HCh,{children:"Data discovery"}),(0,n.jsx)(r.HCh,{children:"DSR automation"})]}),(0,n.jsx)(o.cB,{text:"Permissions"}),(0,n.jsx)(o.XU,{children:"For detection and discovery, Fides requires a user with the SELECT permission on the database. If you intend to automate governance for DSR or Consent, Fides requires a user with the SELECT, UPDATE, and DELETE The permissions allow Fides to read the schema of, and data stored in tables, and fields as well as write restricted updates based on your policy configurations to tables you specify as part of DSR and Consent orchestration. For a complete list of permissions view the Google Cloud SQL for MySQL DB documentation."}),(0,n.jsx)(o.cB,{text:"Permissions list"}),(0,n.jsxs)(o.Z5,{children:[(0,n.jsx)(r.HCh,{children:"GRANT SELECT"}),(0,n.jsx)(r.HCh,{children:"GRANT UPDATE"}),(0,n.jsx)(r.HCh,{children:"GRANT DELETE"})]})]})]}),{}),tags:["Database","Detection","Discovery","DSR automation","GCP","MySQL"]},v={placeholder:{name:"Google Cloud SQL for Postgres",key:"google_cloud_sql_for_postgres_placeholder",connection_type:d.Rj.GOOGLE_CLOUD_SQL_POSTGRES,access:d.uv.READ,created_at:""},category:a.DATABASE,overview:(0,n.jsx)(()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.cB,{text:"Overview"}),(0,n.jsx)(o.XU,{children:"Google Cloud SQL for Postgres is a fully-managed relational database service that simplifies the setup, maintenance, management, and administration of Postgres databases. Connect Fides to your Google Cloud SQL for Postgres to detect and track changes in schemas and tables and automatically discover and label data categories to proactively manage data governance risks."}),(0,n.jsxs)(c,{children:[(0,n.jsx)(o.cB,{text:"Categories"}),(0,n.jsxs)(o.Z5,{children:[(0,n.jsx)(r.HCh,{children:"Database"}),(0,n.jsx)(r.HCh,{children:"SQL database"}),(0,n.jsx)(r.HCh,{children:"Storage system"}),(0,n.jsx)(r.HCh,{children:"Data detection"}),(0,n.jsx)(r.HCh,{children:"Data discovery"}),(0,n.jsx)(r.HCh,{children:"DSR automation"})]}),(0,n.jsx)(o.cB,{text:"Permissions"}),(0,n.jsx)(o.XU,{children:"For detection and discovery, Fides requires a user with the SELECT permission on the database. If you intend to automate governance for DSR or Consent, Fides requires a user with the SELECT, UPDATE, and DELETE permission. The permissions allow Fides to read the schema of, and data stored in tables, and fields as well as write restricted updates based on your policy configurations to tables you specify as part of DSR and orchestration. For a complete list of permissions view the Google Cloud SQL for Postgres DB documentation."}),(0,n.jsx)(o.XU,{children:"The following GCP service account permissions are needed when setting up Google Cloud SQL for Postgres."}),(0,n.jsx)(o.cB,{text:"Permissions list"}),(0,n.jsxs)(o.Z5,{children:[(0,n.jsx)(r.HCh,{children:"cloudsql.instances.connect"}),(0,n.jsx)(r.HCh,{children:"cloudsql.instances.get"}),(0,n.jsx)(r.HCh,{children:"cloudsql.instances.login"})]})]})]}),{}),tags:["Database","Detection","Discovery","DSR automation","GCP","Postgres"]},S={placeholder:{name:"Microsoft SQL Server",key:"microsoft_sql_server_placeholder",connection_type:d.Rj.MSSQL,access:d.uv.READ,created_at:""},category:a.DATABASE,overview:(0,n.jsx)(()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.cB,{text:"Overview"}),(0,n.jsx)(o.XU,{children:"Microsoft SQL Server, is a relational database management system (RDBMS) developed by Microsoft. It is designed to store, manage, and retrieve data as requested by other software applications, which may run either on the same computer or across a network."}),(0,n.jsxs)(c,{children:[(0,n.jsx)(o.cB,{text:"Categories"}),(0,n.jsxs)(o.Z5,{children:[(0,n.jsx)(r.HCh,{children:"Database"}),(0,n.jsx)(r.HCh,{children:"SQL database"}),(0,n.jsx)(r.HCh,{children:"Storage system"}),(0,n.jsx)(r.HCh,{children:"Data detection"}),(0,n.jsx)(r.HCh,{children:"Data discovery"})]}),(0,n.jsx)(o.cB,{text:"Permissions"}),(0,n.jsx)(o.XU,{children:"For detecting databases, Fides requires a user with the following permissions/role:"}),(0,n.jsxs)(o.Z5,{children:[(0,n.jsx)(r.HCh,{children:"CREATE LOGIN username WITH PASSWORD = 'password';"}),(0,n.jsx)(r.HCh,{children:"GRANT SELECT, INSERT, UPDATE TO username;"})]})]})]}),{}),tags:["Database","Detection","Discovery","Microsoft SQL Server"]},A={placeholder:{name:"MySQL",key:"mysql_placeholder",connection_type:d.Rj.MYSQL,access:d.uv.READ,created_at:""},category:a.DATABASE,overview:(0,n.jsx)(()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.cB,{text:"Overview"}),(0,n.jsx)(o.XU,{children:"Add infotext"}),(0,n.jsxs)(c,{children:[(0,n.jsx)(o.cB,{text:"Categories"}),(0,n.jsxs)(o.Z5,{children:[(0,n.jsx)(r.HCh,{children:"Database"}),(0,n.jsx)(r.HCh,{children:"SQL database"}),(0,n.jsx)(r.HCh,{children:"Storage system"}),(0,n.jsx)(r.HCh,{children:"Data detection"}),(0,n.jsx)(r.HCh,{children:"Data discovery"})]}),(0,n.jsx)(o.cB,{text:"Permissions"}),(0,n.jsx)(o.XU,{children:"For detecting databases, Fides requires a user with the following permissions/role:"}),(0,n.jsxs)(o.Z5,{children:[(0,n.jsx)(r.HCh,{children:"CREATE USER 'username' IDENTIFIED WITH authentication_plugin BY 'password';"}),(0,n.jsx)(r.HCh,{children:"GRANT SELECT, INSERT ON database.* TO 'username'@'%';"})]})]})]}),{}),tags:["Database","Detection","Discovery","MySQL"]},C={placeholder:{name:"Amazon RDS MySQL",key:"rds_mysql_placeholder",connection_type:d.Rj.RDS_MYSQL,access:d.uv.READ,created_at:""},category:a.DATABASE,overview:(0,n.jsx)(()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.cB,{text:"Overview"}),(0,n.jsx)(o.XU,{children:"Amazon RDS MySQL is a fully-managed relational database service that simplifies the setup, maintenance, management, and administration of MySQL databases. Connect Fides to your Amazon RDS MySQL to detect and track changes in schemas and tables and automatically discover and label data categories to proactively manage data governance risks."}),(0,n.jsxs)(c,{children:[(0,n.jsx)(o.cB,{text:"Categories"}),(0,n.jsxs)(o.Z5,{children:[(0,n.jsx)(r.HCh,{children:"Database"}),(0,n.jsx)(r.HCh,{children:"SQL database"}),(0,n.jsx)(r.HCh,{children:"Storage system"}),(0,n.jsx)(r.HCh,{children:"Data detection"}),(0,n.jsx)(r.HCh,{children:"Data discovery"})]}),(0,n.jsx)(o.cB,{text:"Permissions"}),(0,n.jsx)(o.XU,{children:"For detecting database RDS instances and clusters, Fides requires an IAM user with the following permissions/role:"}),(0,n.jsxs)(o.Z5,{children:[(0,n.jsx)(r.HCh,{children:"rds:DescribeDBClusters"}),(0,n.jsx)(r.HCh,{children:"rds:DescribeDBInstances"}),(0,n.jsx)(r.HCh,{children:"rds-db:connect"})]}),(0,n.jsx)(o.XU,{children:"And per database instance and database it requires the following permissions, where 'username' is the user set up for Fides, and 'database' is the database name, you want to connect to."}),(0,n.jsxs)(o.Z5,{children:[(0,n.jsx)(r.HCh,{children:"CREATE USER 'username' IDENTIFIED WITH AWSAuthenticationPlugin AS 'RDS';"}),(0,n.jsx)(r.HCh,{children:"GRANT SELECT, INSERT ON database.* TO 'username'@'%';"})]})]})]}),{}),tags:["Database","Detection","Discovery","RDS","MySQL"]},f={placeholder:{name:"Amazon RDS Postgres",key:"rds_postgres_placeholder",connection_type:d.Rj.RDS_POSTGRES,access:d.uv.READ,created_at:""},category:a.DATABASE,overview:(0,n.jsx)(()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.cB,{text:"Overview"}),(0,n.jsx)(o.XU,{children:"Amazon RDS Postgres is a fully-managed relational database service that simplifies the setup, maintenance, management, and administration of Postgres databases. Connect Fides to your Amazon RDS Postgres to detect and track changes in schemas and tables and automatically discover and label data categories to proactively manage data governance risks."}),(0,n.jsxs)(c,{children:[(0,n.jsx)(o.cB,{text:"Categories"}),(0,n.jsxs)(o.Z5,{children:[(0,n.jsx)(r.HCh,{children:"Database"}),(0,n.jsx)(r.HCh,{children:"SQL database"}),(0,n.jsx)(r.HCh,{children:"Storage system"}),(0,n.jsx)(r.HCh,{children:"Data detection"}),(0,n.jsx)(r.HCh,{children:"Data discovery"})]}),(0,n.jsx)(o.cB,{text:"Permissions"}),(0,n.jsx)(o.XU,{children:"For detecting database RDS instances and clusters, Fides requires an IAM user with the following permissions/role:"}),(0,n.jsxs)(o.Z5,{children:[(0,n.jsx)(r.HCh,{children:"rds:DescribeDBClusters"}),(0,n.jsx)(r.HCh,{children:"rds:DescribeDBInstances"}),(0,n.jsx)(r.HCh,{children:"rds-db:connect"})]}),(0,n.jsx)(o.XU,{children:"For each database instance and database, Fides requires the following permissions, where 'username' is the user set up for Fides, and 'database' is the name of the database you want to connect to."}),(0,n.jsxs)(o.Z5,{children:[(0,n.jsx)(r.HCh,{children:"CREATE USER username WITH LOGIN;"}),(0,n.jsx)(r.HCh,{children:"GRANT rds_iam TO username;"}),(0,n.jsx)(r.HCh,{children:"GRANT SELECT ON ALL TABLES IN SCHEMA public TO username;"}),(0,n.jsx)(r.HCh,{children:"GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO username;"})]})]})]}),{}),tags:["Database","Detection","Discovery","RDS","Postgres"]},D={placeholder:{name:"Amazon S3",key:"s3_placeholder",connection_type:d.Rj.S3,access:d.uv.READ,created_at:""},category:a.DATA_WAREHOUSE,overview:(0,n.jsx)(()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.cB,{text:"Overview"}),(0,n.jsx)(o.XU,{children:"Continuously monitor S3 to detect and track schema-level changes, automatically discover and label data categories as well as automatically process DSR (privacy requests) and consent enforcement to proactively manage data governance risks."}),(0,n.jsxs)(c,{children:[(0,n.jsx)(o.cB,{text:"Categories"}),(0,n.jsxs)(o.Z5,{children:[(0,n.jsx)(r.HCh,{children:"Object storage"}),(0,n.jsx)(r.HCh,{children:"Storage system"}),(0,n.jsx)(r.HCh,{children:"Cloud provider"}),(0,n.jsx)(r.HCh,{children:"Data detection"}),(0,n.jsx)(r.HCh,{children:"Data discovery"})]}),(0,n.jsx)(o.cB,{text:"Permissions"}),(0,n.jsx)(o.XU,{children:"Fides requires an IAM principal with read-only S3 permissions in order to detect, discover, and classify sensitive data. The AWS-managed AmazonS3ReadOnlyAccess policy can be used to assign these permissions. An IAM administrator can create the necessary principal for Fides using the AWS IAM guides, and assign the appropriate permissions policy to the IAM principal."}),(0,n.jsx)(o.XU,{children:"The permissions allow Fides to list buckets and read object data data stored in those buckets. This data is inspected only for the purpose of detecting sensitive data risks and no data is stored by Fides."}),(0,n.jsx)(o.XU,{children:"Ethyca recommends creating an IAM role with the appropriate permissions, which will be assumed by Fides at runtime, with ephemeral credentials. There must also be an IAM user with fixed credentials that Fides uses strictly for assuming the IAM role with the appropriate permissions. If desired, Fides also supports authenticating directly as an IAM user with the appropriate permissions, but this is considered a less secure option."}),(0,n.jsx)(o.cB,{text:"Permissions list"}),(0,n.jsx)(o.Z5,{children:(0,n.jsx)(r.HCh,{children:"AmazonS3ReadOnlyAccess"})})]})]}),{}),instructions:(0,n.jsx)(()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.cB,{text:"Configuring a Fides -> Amazon S3 Integration"}),(0,n.jsx)(o.cB,{text:"Step 1: Create an IAM role in AWS"}),(0,n.jsx)(o.XU,{children:"Create an IAM role for Fides' S3 access following the AWS IAM roles guide. This role will be referred to below as the Fides S3 Access Role."}),(0,n.jsxs)(c,{children:[(0,n.jsx)(o.cB,{text:"Step 2: Assign policies to the IAM role"}),(0,n.jsx)(o.XU,{children:"Grant the necessary permissions to the IAM role by attaching the following AWS-managed policy:"}),(0,n.jsx)(o.aG,{data:[{permission:"AmazonS3ReadOnlyAccess",description:"Provides read-only access to all buckets via the AWS Management Console."}]}),(0,n.jsx)(o.cB,{text:"Step 3: Create an IAM user for assuming a role"}),(0,n.jsxs)(o.XU,{children:["Follow the ",(0,n.jsx)(o.Hn,{href:"https://docs.aws.amazon.com/IAM/latest/UserGuide/getting-started.html#getting-started-iam-user",children:"AWS guide"})," for creating an IAM user to create an IAM user that Fides will authenticate as in order to assume the Fides S3 Access Role created above, and retrieve ephemeral credentials."]}),(0,n.jsx)(o.cB,{text:"Step 4: Grant the IAM user permission to assume the Fides S3 Access Role"}),(0,n.jsx)(o.XU,{children:"Navigate to the IAM user’s Permissions page and add a permission by creating an inline policy. This permission should grant the IAM user permission to assume the Fides S3 Access Role created above (you’ll need to retrieve the role ARN). The inline policy should look similar to this:"}),(0,n.jsx)(o.hX,{children:'{\n "Version": "2012-10-17",\n "Statement": [\n {\n "Sid": "VisualEditor0",\n "Effect": "Allow",\n "Action": "sts:AssumeRole",\n "Resource": "arn:aws:iam::[AWS ACCOUNT NUMBER]:role/[Fides S3 Access Role ARN]"\n }\n ]\n}'}),(0,n.jsx)(o.cB,{text:"Step 5: Create an access key for the IAM user"}),(0,n.jsxs)(o.vQ,{children:[(0,n.jsxs)(r.HCh,{children:["Create an access key for the IAM user under"," ",(0,n.jsx)("strong",{children:"Security credentials"}),"."]}),(0,n.jsx)(r.HCh,{children:"Select the Other use case"}),(0,n.jsx)(r.HCh,{children:"Copy the Access Key ID and Secret Access Key"})]}),(0,n.jsx)(o.cB,{text:"Step 6: Use the credentials to authenticate your integration"}),(0,n.jsxs)(o.XU,{children:["Provide the credentials to your Fides instance to securely connect Fides. For the Assume Role ARN, provide the ARN for the Fides S3 Access Role created in step 1."," "]})]})]}),{}),tags:["Data Warehouse","S3","Detection","Discovery"]},b={placeholder:{name:"Scylla",key:"scylla_placeholder",connection_type:d.Rj.SCYLLA,access:d.uv.READ,created_at:""},category:a.DATABASE,overview:(0,n.jsx)(()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.cB,{text:"Overview"}),(0,n.jsx)(o.XU,{children:"ScyllaDB is an open-sources distributed NoSQL data store designed to be compatible with Apache Cassandra. Connect Fides to your ScyllaDB to detect and track changes in keyspaces and tables and automatically discover and label data categories to proactively manage data governance risks."}),(0,n.jsxs)(c,{children:[(0,n.jsx)(o.cB,{text:"Categories"}),(0,n.jsxs)(o.Z5,{children:[(0,n.jsx)(r.HCh,{children:"Database"}),(0,n.jsx)(r.HCh,{children:"NoSQL database"}),(0,n.jsx)(r.HCh,{children:"Storage system"}),(0,n.jsx)(r.HCh,{children:"Data detection"}),(0,n.jsx)(r.HCh,{children:"Data discovery"}),(0,n.jsx)(r.HCh,{children:"DSR automation"})]}),(0,n.jsx)(o.cB,{text:"Permissions"}),(0,n.jsx)(o.XU,{children:"For detection and discovery, Fides requires a user with the SELECT permission on all keyspaces. If you intend to automate governance for DSR or Consent, Fides requires the role to to be granted SELECT and MODIFY on all keyspaces. The permissions allow Fides to read the schema of, and data stored in keyspaces, tables, and fields as well as write restricted updates based on your policy configurations to tables you specify as part of DSR and Consent orchestration. For a complete list of permissions view the Scylla DB documentation."}),(0,n.jsx)(o.cB,{text:"Permissions list"}),(0,n.jsxs)(o.Z5,{children:[(0,n.jsx)(r.HCh,{children:"SELECT ALL KEYSPACES"}),(0,n.jsx)(r.HCh,{children:"MODIFY ALL KEYSPACES"})]})]})]}),{}),tags:["Database","Detection","Discovery","DSR automation","ScyllaDB"]},w={placeholder:{name:"Snowflake",key:"snowflake_placeholder",connection_type:d.Rj.SNOWFLAKE,access:d.uv.READ,created_at:""},category:a.DATABASE,overview:(0,n.jsx)(()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.cB,{text:"Overview"}),(0,n.jsx)(o.XU,{children:"Snowflake is a cloud-based data warehousing platform designed for handling large-scale data storage and analytics. It enables organizations to store, manage, and analyze massive amounts of data efficiently, offering features like scalability, performance, and flexibility."}),(0,n.jsxs)(c,{children:[(0,n.jsx)(o.cB,{text:"Categories"}),(0,n.jsxs)(o.Z5,{children:[(0,n.jsx)(r.HCh,{children:"Database"}),(0,n.jsx)(r.HCh,{children:"SQL database"}),(0,n.jsx)(r.HCh,{children:"Storage system"}),(0,n.jsx)(r.HCh,{children:"Data detection"}),(0,n.jsx)(r.HCh,{children:"Data discovery"})]}),(0,n.jsx)(o.cB,{text:"Permissions"}),(0,n.jsxs)(o.Z5,{children:[(0,n.jsx)(r.HCh,{children:"CREATE ROLE my_monitor_role;"}),(0,n.jsx)(r.HCh,{children:"GRANT USAGE ON DATABASE DATABASE_1 TO ROLE my_monitor_role;"}),(0,n.jsx)(r.HCh,{children:"GRANT USAGE ON SCHEMA DATABASE_1.TEST_SCHEMA TO ROLE my_monitor_role;"}),(0,n.jsx)(r.HCh,{children:"GRANT SELECT ON ALL TABLES IN SCHEMA DATABASE_1.TEST_SCHEMA TO ROLE my_monitor_role;"}),(0,n.jsx)(r.HCh,{children:"CREATE USER test_user PASSWORD='***';"}),(0,n.jsx)(r.HCh,{children:"GRANT ROLE my_monitor_role TO USER test_user;"})]})]})]}),{}),tags:["Data warehouse","Detection","Discovery","DSR automation"]},R={[d.Rj.BIGQUERY]:x,[d.Rj.DATAHUB]:j,[d.Rj.DYNAMODB]:g,[d.Rj.GOOGLE_CLOUD_SQL_MYSQL]:y,[d.Rj.GOOGLE_CLOUD_SQL_POSTGRES]:v,[d.Rj.MSSQL]:S,[d.Rj.RDS_MYSQL]:C,[d.Rj.RDS_POSTGRES]:f,[d.Rj.S3]:D,[d.Rj.SCYLLA]:b,[d.Rj.SNOWFLAKE]:w,[d.Rj.MYSQL]:A},E=Object.values(R),_=Object.keys(R),H={placeholder:{name:"",key:"placeholder",connection_type:d.Rj.MANUAL,access:d.uv.READ,created_at:""},category:a.DATA_WAREHOUSE,tags:[]};var T=e=>{var s;return e&&null!==(s=R[e])&&void 0!==s?s:H}},64176:function(e,s,t){var i=t(27378),a=t(20682);s.Z=e=>{let{data:s}=(0,a.$I)({});return(0,i.useMemo)(()=>null==s?void 0:s.items.find(s=>s.identifier===e),[s,e])}},31883:function(e,s,t){t.d(s,{Bw:function(){return i.Bw},D4:function(){return i.D4}});var i=t(19043)}}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7548],{74833:function(e,t,i){var n=i(56127),r=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(r,""):e}},56127:function(e){var t=/\s/;e.exports=function(e){for(var i=e.length;i--&&t.test(e.charAt(i)););return i}},91936:function(e,t,i){var n=i(74833),r=i(11611),s=i(55193),l=0/0,c=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,d=/^0o[0-7]+$/i,a=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(s(e))return l;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var i=o.test(e);return i||d.test(e)?a(e.slice(2),i?2:8):c.test(e)?l:+e}},58665:function(e,t,i){"use strict";var n=i(24246),r=i(96013);t.Z=e=>{let{...t}=e;return(0,n.jsx)(r.kCb,{boxSize:"full",align:"center",justify:"center",children:(0,n.jsx)(r.$jN,{color:"primary",...t})})}},43124:function(e,t,i){"use strict";i.d(t,{Z:function(){return f}});var n=i(24246),r=i(96013),s=i(88038),l=i.n(s),c=i(86677);i(27378);var o=i(11596),d=i(72247),a=i(87162),u=()=>{let e=(0,c.useRouter)();return(0,n.jsx)(r.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,n.jsxs)(r.xuv,{children:[(0,n.jsxs)(r.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,n.jsx)(r.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,n.jsx)(r.wpx,{onClick:()=>{e.push(a.fz)},children:"Configure"})]}),(0,n.jsxs)(r.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:i,padded:s=!0,mainProps:a}=e,f=(0,o.hz)(),x=(0,c.useRouter)(),h="/privacy-requests"===x.pathname||"/datastore-connection"===x.pathname,p=!(f.flags.privacyRequestsConfiguration&&h),{data:j}=(0,d.JE)(void 0,{skip:p}),{data:m}=(0,d.PW)(void 0,{skip:p}),v=f.flags.privacyRequestsConfiguration&&(!j||!m)&&h;return(0,n.jsxs)(r.kCb,{"data-testid":i,direction:"column",h:"100vh",children:[(0,n.jsxs)(l(),{children:[(0,n.jsxs)("title",{children:["Fides Admin UI - ",i]}),(0,n.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,n.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,n.jsxs)(r.kCb,{as:"main",direction:"column",py:s?6:0,px:s?10:0,h:s?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...a,children:[v?(0,n.jsx)(u,{}):null,t]})]})}},37541:function(e,t,i){"use strict";var n=i(24246),r=i(96013),s=i(53614);t.Z=e=>{let{heading:t,breadcrumbItems:i,isSticky:l=!0,children:c,rightContent:o,style:d,...a}=e;return(0,n.jsxs)("div",{...a,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",...d}:{paddingBottom:"24px",...d},children:[(0,n.jsxs)(r.jqI,{justify:"space-between",children:["string"==typeof t?(0,n.jsx)(r.X6q,{className:i||c?"pb-4":void 0,fontSize:"2xl","data-testid":"page-heading",children:t}):t,o&&(0,n.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!i&&(0,n.jsx)(s.m,{className:c?"pb-4":void 0,items:i,"data-testid":"page-breadcrumb"}),c]})}},67785:function(e,t,i){"use strict";i.d(t,{Hn:function(){return c},XU:function(){return l},Z5:function(){return o},aG:function(){return u},cB:function(){return s},hX:function(){return a},vQ:function(){return d}});var n=i(24246),r=i(96013);let s=e=>{let{text:t,...i}=e;return(0,n.jsx)(r.X6q,{fontSize:"sm",mt:4,mb:1,...i,children:t})},l=e=>{let{children:t}=e;return(0,n.jsx)(r.xvT,{fontSize:"14px",mb:4,children:t})},c=e=>{let{children:t,href:i}=e;return(0,n.jsx)(r.rUS,{href:i,textDecoration:"underline",isExternal:!0,children:t})},o=e=>{let{children:t}=e;return(0,n.jsx)(r.QI$,{fontSize:"14px",mb:4,children:t})},d=e=>{let{children:t}=e;return(0,n.jsx)(r.GSI,{fontSize:"14px",mb:4,ml:6,children:t})},a=e=>{let{children:t}=e;return(0,n.jsx)(r.EKh,{display:"block",whiteSpace:"pre",p:4,mb:4,overflowX:"scroll",children:t})},u=e=>{let{data:t}=e;return(0,n.jsxs)(r.iA_,{fontSize:"14px",children:[(0,n.jsx)(r.hrZ,{children:(0,n.jsxs)(r.Tr,{children:[(0,n.jsx)(r.Th,{children:"Permission"}),(0,n.jsx)(r.Th,{children:"Description"})]})}),(0,n.jsx)(r.p3B,{children:t.map(e=>(0,n.jsxs)(r.Tr,{children:[(0,n.jsx)(r.Td,{children:(0,n.jsx)(r.Vp9,{children:e.permission})}),(0,n.jsx)(r.Td,{children:e.description})]},e.permission))})]})}},53614:function(e,t,i){"use strict";i.d(t,{m:function(){return d}});var n=i(24246),r=i(96013),s=i(79894),l=i.n(s),c=i(27378);let{Text:o}=r.AntTypography,d=e=>{let{items:t,...i}=e,s=(0,c.useMemo)(()=>null==t?void 0:t.map((e,i)=>{let s=i===t.length-1,c={...e},d=c.onClick&&!c.href;return("string"==typeof c.title&&(c.title=(0,n.jsx)(o,{style:{color:"inherit",maxWidth:s?void 0:400},ellipsis:!s,children:c.title})),d)?c.title=(0,n.jsx)(r.wpx,{type:"text",size:"small",icon:c.icon,onClick:c.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:c.title}):(c.icon&&(c.title=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"anticon align-text-bottom",children:c.icon}),c.title]})),c.href&&c.title&&(c.title=(0,n.jsx)(l(),{href:c.href,className:"ant-breadcrumb-link",children:c.title}),delete c.href)),c}),[t]);return(0,n.jsx)(r.zrq,{items:s,...i})}},55490:function(e,t,i){"use strict";var n=i(24246),r=i(8540),s=i(90049),l=i(6170);t.Z=e=>{let{resource:t}=e;return(0,n.jsx)(r.G3,{value:(0,s.Z)(t),fontWeight:(0,l.Z)(t)?"semibold":"normal"})}},51254:function(e,t,i){"use strict";var n=i(24246),r=i(8540),s=i(70629);let l={[s.e.ATTENTION_REQUIRED]:"error",[s.e.APPROVED]:"success",[s.e.IN_REVIEW]:"warning",[s.e.CLASSIFYING]:"info",[s.e.NONE]:"marble"};t.Z=e=>{let{status:t}=e;return(0,n.jsx)(r.A4,{color:l[t],value:t})}},68299:function(e,t,i){"use strict";var n=i(24246),r=i(96013),s=i(67785),l=i(70629),c=i(52810),o=i(52962),d=i(37760);t.Z=e=>{var t;let{resource:i,onClose:a}=e,u=(0,o.G)(i),f=(0,l.u)(i),x=(u===d.D$.FIELD||u===d.D$.TABLE)&&f===l.e.IN_REVIEW;return(0,n.jsxs)(r.dys,{isOpen:!!i,onClose:a,size:"md",children:[(0,n.jsx)(r.P1B,{}),(0,n.jsxs)(r.scA,{"data-testid":"resource-details",children:[(0,n.jsx)(r.OXI,{children:(null==i?void 0:i.name)||(null==i?void 0:i.urn)}),(0,n.jsx)(r.cCv,{}),(0,n.jsxs)(r.Ng0,{children:[(0,n.jsx)(s.cB,{text:"Title",mt:0}),(0,n.jsx)(s.XU,{children:null!==(t=null==i?void 0:i.name)&&void 0!==t?t:null==i?void 0:i.urn}),(null==i?void 0:i.description)&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.cB,{text:"Description"}),(0,n.jsx)(s.XU,{children:null==i?void 0:i.description})]}),x&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.cB,{text:"Data categories"}),(0,n.jsx)(c.Z,{resource:i})]})]})]})]})}},59973:function(e,t,i){"use strict";var n=i(24246),r=i(96013);t.Z=e=>{let{onHideClick:t,onDetailClick:i}=e;return(0,n.jsxs)(r.v2r,{children:[(0,n.jsx)(r.j2t,{as:r.wpx,size:"small",type:"text",icon:(0,n.jsx)(r.nXP,{transform:"rotate(90deg)"}),className:"w-6 gap-0","data-testid":"actions-menu"}),(0,n.jsxs)(r.qyq,{children:[i&&(0,n.jsx)(r.sNh,{onClick:i,"data-testid":"view-resource-details",children:"View details"}),t&&(0,n.jsx)(r.sNh,{onClick:t,"data-testid":"hide-resource",children:"Hide"})]})]})}},70629:function(e,t,i){"use strict";i.d(t,{e:function(){return r},u:function(){return l}});var n,r,s=i(37760);(n=r||(r={})).ATTENTION_REQUIRED="Attention required",n.IN_REVIEW="In review",n.APPROVED="Approved",n.CLASSIFYING="Classifying",n.NONE="None";let l=e=>{if(!e)return"Approved";let t=e.diff_status===s.LL.ADDITION||e.diff_status===s.LL.REMOVAL,i=e.child_diff_statuses&&(e.child_diff_statuses[s.LL.ADDITION]||e.child_diff_statuses[s.LL.REMOVAL]);if(t||i)return"Attention required";let n=e.diff_status===s.LL.CLASSIFICATION_QUEUED||e.diff_status===s.LL.CLASSIFYING,r=e.child_diff_statuses&&(e.child_diff_statuses[s.LL.CLASSIFICATION_QUEUED]||e.child_diff_statuses[s.LL.CLASSIFYING]);if(n||r)return"Classifying";let l=e.diff_status===s.LL.CLASSIFICATION_ADDITION||e.diff_status===s.LL.CLASSIFICATION_UPDATE,c=e.child_diff_statuses&&(e.child_diff_statuses[s.LL.CLASSIFICATION_ADDITION]||e.child_diff_statuses[s.LL.CLASSIFICATION_UPDATE]);return l||c?"In review":"Approved"}}}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7751],{74833:function(e,t,i){var n=i(56127),r=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(r,""):e}},56127:function(e){var t=/\s/;e.exports=function(e){for(var i=e.length;i--&&t.test(e.charAt(i)););return i}},91936:function(e,t,i){var n=i(74833),r=i(11611),s=i(55193),l=0/0,c=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,d=/^0o[0-7]+$/i,a=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(s(e))return l;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var i=o.test(e);return i||d.test(e)?a(e.slice(2),i?2:8):c.test(e)?l:+e}},18225:function(e,t,i){"use strict";var n=i(24246),r=i(38458);t.Z=e=>{let{...t}=e;return(0,n.jsx)(r.kCb,{boxSize:"full",align:"center",justify:"center",children:(0,n.jsx)(r.$jN,{color:"primary",...t})})}},77213:function(e,t,i){"use strict";i.d(t,{Z:function(){return f}});var n=i(24246),r=i(38458),s=i(88038),l=i.n(s),c=i(86677);i(27378);var o=i(25980),d=i(90867),a=i(77830),u=()=>{let e=(0,c.useRouter)();return(0,n.jsx)(r.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,n.jsxs)(r.xuv,{children:[(0,n.jsxs)(r.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,n.jsx)(r.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,n.jsx)(r.wpx,{onClick:()=>{e.push(a.fz)},children:"Configure"})]}),(0,n.jsxs)(r.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:i,padded:s=!0,mainProps:a}=e,f=(0,o.hz)(),x=(0,c.useRouter)(),h="/privacy-requests"===x.pathname||"/datastore-connection"===x.pathname,p=!(f.flags.privacyRequestsConfiguration&&h),{data:j}=(0,d.JE)(void 0,{skip:p}),{data:m}=(0,d.PW)(void 0,{skip:p}),v=f.flags.privacyRequestsConfiguration&&(!j||!m)&&h;return(0,n.jsxs)(r.kCb,{"data-testid":i,direction:"column",h:"100vh",children:[(0,n.jsxs)(l(),{children:[(0,n.jsxs)("title",{children:["Fides Admin UI - ",i]}),(0,n.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,n.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,n.jsxs)(r.kCb,{as:"main",direction:"column",py:s?6:0,px:s?10:0,h:s?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...a,children:[v?(0,n.jsx)(u,{}):null,t]})]})}},58754:function(e,t,i){"use strict";var n=i(24246),r=i(38458),s=i(70788);t.Z=e=>{let{heading:t,breadcrumbItems:i,isSticky:l=!0,children:c,rightContent:o,style:d,...a}=e;return(0,n.jsxs)("div",{...a,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",...d}:{paddingBottom:"24px",...d},children:[(0,n.jsxs)(r.jqI,{justify:"space-between",children:["string"==typeof t?(0,n.jsx)(r.X6q,{className:i||c?"pb-4":void 0,fontSize:"2xl","data-testid":"page-heading",children:t}):t,o&&(0,n.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!i&&(0,n.jsx)(s.m,{className:c?"pb-4":void 0,items:i,"data-testid":"page-breadcrumb"}),c]})}},79789:function(e,t,i){"use strict";i.d(t,{Hn:function(){return c},XU:function(){return l},Z5:function(){return o},aG:function(){return u},cB:function(){return s},hX:function(){return a},vQ:function(){return d}});var n=i(24246),r=i(38458);let s=e=>{let{text:t,...i}=e;return(0,n.jsx)(r.X6q,{fontSize:"sm",mt:4,mb:1,...i,children:t})},l=e=>{let{children:t}=e;return(0,n.jsx)(r.xvT,{fontSize:"14px",mb:4,children:t})},c=e=>{let{children:t,href:i}=e;return(0,n.jsx)(r.rUS,{href:i,textDecoration:"underline",isExternal:!0,children:t})},o=e=>{let{children:t}=e;return(0,n.jsx)(r.QI$,{fontSize:"14px",mb:4,children:t})},d=e=>{let{children:t}=e;return(0,n.jsx)(r.GSI,{fontSize:"14px",mb:4,ml:6,children:t})},a=e=>{let{children:t}=e;return(0,n.jsx)(r.EKh,{display:"block",whiteSpace:"pre",p:4,mb:4,overflowX:"scroll",children:t})},u=e=>{let{data:t}=e;return(0,n.jsxs)(r.iA_,{fontSize:"14px",children:[(0,n.jsx)(r.hrZ,{children:(0,n.jsxs)(r.Tr,{children:[(0,n.jsx)(r.Th,{children:"Permission"}),(0,n.jsx)(r.Th,{children:"Description"})]})}),(0,n.jsx)(r.p3B,{children:t.map(e=>(0,n.jsxs)(r.Tr,{children:[(0,n.jsx)(r.Td,{children:(0,n.jsx)(r.Vp9,{children:e.permission})}),(0,n.jsx)(r.Td,{children:e.description})]},e.permission))})]})}},70788:function(e,t,i){"use strict";i.d(t,{m:function(){return d}});var n=i(24246),r=i(38458),s=i(79894),l=i.n(s),c=i(27378);let{Text:o}=r.AntTypography,d=e=>{let{items:t,...i}=e,s=(0,c.useMemo)(()=>null==t?void 0:t.map((e,i)=>{let s=i===t.length-1,c={...e},d=c.onClick&&!c.href;return("string"==typeof c.title&&(c.title=(0,n.jsx)(o,{style:{color:"inherit",maxWidth:s?void 0:400},ellipsis:!s,children:c.title})),d)?c.title=(0,n.jsx)(r.wpx,{type:"text",size:"small",icon:c.icon,onClick:c.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:c.title}):(c.icon&&(c.title=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"anticon align-text-bottom",children:c.icon}),c.title]})),c.href&&c.title&&(c.title=(0,n.jsx)(l(),{href:c.href,className:"ant-breadcrumb-link",children:c.title}),delete c.href)),c}),[t]);return(0,n.jsx)(r.zrq,{items:s,...i})}},89200:function(e,t,i){"use strict";var n=i(24246),r=i(14481),s=i(98559),l=i(80356);t.Z=e=>{let{resource:t}=e;return(0,n.jsx)(r.G3,{value:(0,s.Z)(t),fontWeight:(0,l.Z)(t)?"semibold":"normal"})}},5945:function(e,t,i){"use strict";var n=i(24246),r=i(14481),s=i(8151);let l={[s.e.ATTENTION_REQUIRED]:"error",[s.e.APPROVED]:"success",[s.e.IN_REVIEW]:"warning",[s.e.CLASSIFYING]:"info",[s.e.NONE]:"marble"};t.Z=e=>{let{status:t}=e;return(0,n.jsx)(r.A4,{color:l[t],value:t})}},99763:function(e,t,i){"use strict";var n=i(24246),r=i(38458),s=i(79789),l=i(8151),c=i(61099),o=i(7940),d=i(21702);t.Z=e=>{var t;let{resource:i,onClose:a}=e,u=(0,o.G)(i),f=(0,l.u)(i),x=(u===d.D$.FIELD||u===d.D$.TABLE)&&f===l.e.IN_REVIEW;return(0,n.jsxs)(r.dys,{isOpen:!!i,onClose:a,size:"md",children:[(0,n.jsx)(r.P1B,{}),(0,n.jsxs)(r.scA,{"data-testid":"resource-details",children:[(0,n.jsx)(r.OXI,{children:(null==i?void 0:i.name)||(null==i?void 0:i.urn)}),(0,n.jsx)(r.cCv,{}),(0,n.jsxs)(r.Ng0,{children:[(0,n.jsx)(s.cB,{text:"Title",mt:0}),(0,n.jsx)(s.XU,{children:null!==(t=null==i?void 0:i.name)&&void 0!==t?t:null==i?void 0:i.urn}),(null==i?void 0:i.description)&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.cB,{text:"Description"}),(0,n.jsx)(s.XU,{children:null==i?void 0:i.description})]}),x&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.cB,{text:"Data categories"}),(0,n.jsx)(c.Z,{resource:i})]})]})]})]})}},28976:function(e,t,i){"use strict";var n=i(24246),r=i(38458);t.Z=e=>{let{onHideClick:t,onDetailClick:i}=e;return(0,n.jsxs)(r.v2r,{children:[(0,n.jsx)(r.j2t,{as:r.wpx,size:"small",type:"text",icon:(0,n.jsx)(r.nXP,{transform:"rotate(90deg)"}),className:"w-6 gap-0","data-testid":"actions-menu"}),(0,n.jsxs)(r.qyq,{children:[i&&(0,n.jsx)(r.sNh,{onClick:i,"data-testid":"view-resource-details",children:"View details"}),t&&(0,n.jsx)(r.sNh,{onClick:t,"data-testid":"hide-resource",children:"Hide"})]})]})}},8151:function(e,t,i){"use strict";i.d(t,{e:function(){return r},u:function(){return l}});var n,r,s=i(21702);(n=r||(r={})).ATTENTION_REQUIRED="Attention required",n.IN_REVIEW="In review",n.APPROVED="Approved",n.CLASSIFYING="Classifying",n.NONE="None";let l=e=>{if(!e)return"Approved";let t=e.diff_status===s.LL.ADDITION||e.diff_status===s.LL.REMOVAL,i=e.child_diff_statuses&&(e.child_diff_statuses[s.LL.ADDITION]||e.child_diff_statuses[s.LL.REMOVAL]);if(t||i)return"Attention required";let n=e.diff_status===s.LL.CLASSIFICATION_QUEUED||e.diff_status===s.LL.CLASSIFYING,r=e.child_diff_statuses&&(e.child_diff_statuses[s.LL.CLASSIFICATION_QUEUED]||e.child_diff_statuses[s.LL.CLASSIFYING]);if(n||r)return"Classifying";let l=e.diff_status===s.LL.CLASSIFICATION_ADDITION||e.diff_status===s.LL.CLASSIFICATION_UPDATE,c=e.child_diff_statuses&&(e.child_diff_statuses[s.LL.CLASSIFICATION_ADDITION]||e.child_diff_statuses[s.LL.CLASSIFICATION_UPDATE]);return l||c?"In review":"Approved"}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[79],{56358:function(e,t,n){n.d(t,{q:function(){return i}});var s=n(24246);let i=(0,n(38458).IUT)({displayName:"TrashCanOutlineIcon",viewBox:"0 0 11 12",path:(0,s.jsx)("path",{d:"M4.5166 1.60859L4.1084 2.21875H7.22363L6.81543 1.60859C6.7832 1.56133 6.72949 1.53125 6.67148 1.53125H4.6584C4.60039 1.53125 4.54668 1.55918 4.51445 1.60859H4.5166ZM7.6748 1.03711L8.46328 2.21875H8.75977H9.79102H9.96289C10.2486 2.21875 10.4785 2.44863 10.4785 2.73438C10.4785 3.02012 10.2486 3.25 9.96289 3.25H9.79102V9.78125C9.79102 10.7309 9.02188 11.5 8.07227 11.5H3.25977C2.31016 11.5 1.54102 10.7309 1.54102 9.78125V3.25H1.36914C1.0834 3.25 0.853516 3.02012 0.853516 2.73438C0.853516 2.44863 1.0834 2.21875 1.36914 2.21875H1.54102H2.57227H2.86875L3.65723 1.03496C3.88066 0.701953 4.25664 0.5 4.6584 0.5H6.67148C7.07324 0.5 7.44922 0.701953 7.67266 1.03496L7.6748 1.03711ZM2.57227 3.25V9.78125C2.57227 10.1615 2.87949 10.4688 3.25977 10.4688H8.07227C8.45254 10.4688 8.75977 10.1615 8.75977 9.78125V3.25H2.57227ZM4.29102 4.625V9.09375C4.29102 9.28281 4.13633 9.4375 3.94727 9.4375C3.7582 9.4375 3.60352 9.28281 3.60352 9.09375V4.625C3.60352 4.43594 3.7582 4.28125 3.94727 4.28125C4.13633 4.28125 4.29102 4.43594 4.29102 4.625ZM6.00977 4.625V9.09375C6.00977 9.28281 5.85508 9.4375 5.66602 9.4375C5.47695 9.4375 5.32227 9.28281 5.32227 9.09375V4.625C5.32227 4.43594 5.47695 4.28125 5.66602 4.28125C5.85508 4.28125 6.00977 4.43594 6.00977 4.625ZM7.72852 4.625V9.09375C7.72852 9.28281 7.57383 9.4375 7.38477 9.4375C7.1957 9.4375 7.04102 9.28281 7.04102 9.09375V4.625C7.04102 4.43594 7.1957 4.28125 7.38477 4.28125C7.57383 4.28125 7.72852 4.43594 7.72852 4.625Z",fill:"currentColor"})})},77213:function(e,t,n){n.d(t,{Z:function(){return u}});var s=n(24246),i=n(38458),r=n(88038),a=n.n(r),o=n(86677);n(27378);var l=n(25980),c=n(90867),d=n(77830),p=()=>{let e=(0,o.useRouter)();return(0,s.jsx)(i.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,s.jsxs)(i.xuv,{children:[(0,s.jsxs)(i.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,s.jsx)(i.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,s.jsx)(i.wpx,{onClick:()=>{e.push(d.fz)},children:"Configure"})]}),(0,s.jsxs)(i.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},u=e=>{let{children:t,title:n,padded:r=!0,mainProps:d}=e,u=(0,l.hz)(),x=(0,o.useRouter)(),h="/privacy-requests"===x.pathname||"/datastore-connection"===x.pathname,g=!(u.flags.privacyRequestsConfiguration&&h),{data:m}=(0,c.JE)(void 0,{skip:g}),{data:j}=(0,c.PW)(void 0,{skip:g}),f=u.flags.privacyRequestsConfiguration&&(!m||!j)&&h;return(0,s.jsxs)(i.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,s.jsxs)(a(),{children:[(0,s.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,s.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,s.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,s.jsxs)(i.kCb,{as:"main",direction:"column",py:r?6:0,px:r?10:0,h:r?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...d,children:[f?(0,s.jsx)(p,{}):null,t]})]})}},58754:function(e,t,n){var s=n(24246),i=n(38458),r=n(70788);t.Z=e=>{let{heading:t,breadcrumbItems:n,isSticky:a=!0,children:o,rightContent:l,style:c,...d}=e;return(0,s.jsxs)("div",{...d,style:a?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...c}:{paddingBottom:"24px",...c},children:[(0,s.jsxs)(i.jqI,{justify:"space-between",children:["string"==typeof t?(0,s.jsx)(i.X6q,{className:n||o?"pb-4":void 0,fontSize:"2xl","data-testid":"page-heading",children:t}):t,l&&(0,s.jsx)("div",{"data-testid":"page-header-right-content",children:l})]}),!!n&&(0,s.jsx)(r.m,{className:o?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),o]})}},19904:function(e,t,n){n.d(t,{Tg:function(){return a}});var s=n(24246),i=n(16134),r=n(31793);let a=e=>(0,i.C)(r.uu).filter(t=>e.includes(t)).length>0;t.ZP=e=>{let{scopes:t,children:n}=e;return a(t)?(0,s.jsx)(s.Fragment,{children:n}):null}},70788:function(e,t,n){n.d(t,{m:function(){return c}});var s=n(24246),i=n(38458),r=n(79894),a=n.n(r),o=n(27378);let{Text:l}=i.AntTypography,c=e=>{let{items:t,...n}=e,r=(0,o.useMemo)(()=>null==t?void 0:t.map((e,n)=>{let r=n===t.length-1,o={...e},c=o.onClick&&!o.href;return("string"==typeof o.title&&(o.title=(0,s.jsx)(l,{style:{color:"inherit",maxWidth:r?void 0:400},ellipsis:!r,children:o.title})),c)?o.title=(0,s.jsx)(i.wpx,{type:"text",size:"small",icon:o.icon,onClick:o.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:o.title}):(o.icon&&(o.title=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"anticon align-text-bottom",children:o.icon}),o.title]})),o.href&&o.title&&(o.title=(0,s.jsx)(a(),{href:o.href,className:"ant-breadcrumb-link",children:o.title}),delete o.href)),o}),[t]);return(0,s.jsx)(i.zrq,{items:r,...n})}},3642:function(e,t,n){var s=n(24246),i=n(38458),r=n(86677),a=n.n(r),o=n(27378),l=n(812),c=n(58452),d=n(77830),p=n(19904),u=n(46628),x=n(98795),h=n(21702);t.Z=e=>{let{property:t,triggerComponent:n}=e,r=(0,i.pmc)(),g=(0,i.qY0)(),[m]=(0,x.YW)(),j=t.experiences.length>0,f=async()=>{g.onClose();let e=await m(t.id);if((0,l.D4)(e)){r((0,u.Vo)((0,l.e$)(e.error)));return}a().push("".concat(d.ru)),r((0,u.t5)("Property ".concat(t.name," deleted successfully")))};return(0,s.jsxs)(p.ZP,{scopes:[h.Sh.PROPERTY_DELETE],children:[(0,s.jsx)(i.ua7,{label:"All of the experiences on this property must be unlinked before the property can be deleted.",placement:"right",isDisabled:!j,children:(0,s.jsx)("span",{children:o.cloneElement(n,{onClick:e=>{e.stopPropagation(),j||g.onOpen()},disabled:j})})}),(0,s.jsx)(c.Z,{isOpen:g.isOpen,onClose:g.onClose,onConfirm:f,title:"Delete ".concat(t.name),message:(0,s.jsxs)(i.xvT,{color:"gray.500",children:["You are about to delete property ",t.name,". This action is not reversible and will result in ",t.name," no longer being available for your data governance. Are you sure you want to proceed?"]}),continueButtonText:"Ok",isCentered:!0,icon:(0,s.jsx)(i.aNP,{})})]})}},25783:function(e,t,n){n.d(t,{V:function(){return M}});var s=n(24246),i=n(92222),r=n(59003),a=n(14481),o=n(38458),l=n(98784),c=n.n(l),d=n(86677),p=n(27378),u=n(77830),x=n(19904),h=n(32885),g=n(98795),m=n(21702),j=e=>{let{buttonLabel:t,buttonProps:n}=e,i=(0,d.useRouter)();return(0,s.jsx)(o.wpx,{onClick:()=>i.push(u.B9),"data-testid":"add-property-button",...n,children:t})},f=n(56358),y=n(88340),C=n(25980),b=n(14048);let v="{privacy-center-hostname-and-path}",w="{property-unique-id}",P='<script src="https://'.concat(v,"/fides.js?property_id=").concat(w,'"></script>'),R="<script>Fides.gtm()</script>";var T=e=>{let{property:t}=e,n=(0,o.qY0)(),i=(0,p.useRef)(null),{fidesCloud:r}=(0,C.hz)(),{data:a,isSuccess:l}=(0,h.Vh)(void 0,{skip:!r}),c=(0,p.useMemo)(()=>{let e=P.replace(w,t.id.toString());return r&&l&&(null==a?void 0:a.privacy_center_url)&&e.replace(v,a.privacy_center_url),e},[null==a?void 0:a.privacy_center_url,r,l,t]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.wpx,{"aria-label":"Install property",size:"small",className:"mr-[10px]",icon:(0,s.jsx)(b.A5,{}),onClick:e=>{e.stopPropagation(),n.onOpen()}}),(0,s.jsxs)(o.u_l,{isOpen:n.isOpen,onClose:n.onClose,isCentered:!0,size:"xl",initialFocusRef:i,children:[(0,s.jsx)(o.ZAr,{}),(0,s.jsxs)(o.hzk,{"data-testid":"copy-js-tag-modal",children:[(0,s.jsx)(o.xBx,{tabIndex:-1,ref:i,pb:0,children:"Install Fides Consent Manager"}),(0,s.jsx)(o.fef,{pt:3,pb:6,fontSize:"14px",fontWeight:500,children:(0,s.jsxs)(o.Kqy,{spacing:3,children:[(0,s.jsxs)(o.xvT,{children:["Copy the code below and paste it onto every page of the"," ",t.name," property."]}),(0,s.jsxs)(o.xvT,{children:["1. Paste this code as high in the ",(0,s.jsx)("b",{children:"<head>"})," of the page as possible:"]}),(0,s.jsxs)(o.EKh,{display:"flex",justifyContent:"space-between",alignItems:"top",p:0,children:[(0,s.jsx)(o.xvT,{p:4,children:c}),(0,s.jsx)(y.Z,{copyText:c})]}),(0,s.jsx)(o.xvT,{children:"2. Optionally, you can enable Google Tag Manager for managing tags on your website by including the script tag below along with the Fides.js tag. Place it below the Fides.js script tag."}),(0,s.jsxs)(o.EKh,{display:"flex",justifyContent:"space-between",alignItems:"center",p:0,children:[(0,s.jsx)(o.xvT,{p:4,children:R}),(0,s.jsx)(y.Z,{copyText:R})]}),(0,s.jsxs)(o.xvT,{children:["For more information about adding a JavaScript tag to your website, please visit"," ",(0,s.jsx)(o.rUS,{color:"complimentary.500",href:"https://docs.ethyca.com/tutorials/consent-management-configuration/install-fides#install-fidesjs-script-on-your-website",isExternal:!0,children:"docs.ethyca.com"})]})]})})]})]})]})},k=n(3642),E=e=>{let{property:t}=e,n=(0,d.useRouter)(),i=()=>{n.push("".concat(u.ru,"/").concat(t.id))};return(0,s.jsxs)(o.xuv,{py:2,children:[(0,s.jsx)(T,{property:t}),(0,s.jsx)(x.ZP,{scopes:[m.Sh.PROPERTY_UPDATE],children:(0,s.jsx)(o.wpx,{"aria-label":"Edit property","data-testid":"edit-property-button",size:"small",className:"mr-[10px]",icon:(0,s.jsx)(o.dY8,{}),onClick:e=>{e.stopPropagation(),i()}})}),(0,s.jsx)(k.Z,{property:t,triggerComponent:(0,s.jsx)(o.wpx,{"aria-label":"Delete property","data-testid":"delete-property-button",size:"small",className:"mr-[10px]",icon:(0,s.jsx)(f.q,{})})})]})};let z=(0,i.Cl)(),Z={items:[],total:0,page:1,size:25,pages:1},H=()=>(0,s.jsx)(o.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",children:(0,s.jsxs)(o.gCW,{children:[(0,s.jsx)(o.xvT,{fontSize:"md",fontWeight:"600",children:"No properties found."}),(0,s.jsxs)(x.ZP,{scopes:[m.Sh.PROPERTY_CREATE],children:[(0,s.jsx)(o.xvT,{fontSize:"sm",children:"Click “Add property” to add your first property to Fides."}),(0,s.jsx)(j,{buttonLabel:"Add property",buttonProps:{type:"primary"}})]})]})}),M=()=>{let{isLoading:e}=(0,h.x8)(),t=(0,x.Tg)([m.Sh.PROPERTY_UPDATE]),{PAGE_SIZES:n,pageSize:l,setPageSize:f,onPreviousPageClick:y,isPreviousPageDisabled:C,onNextPageClick:b,isNextPageDisabled:v,startRange:w,endRange:P,pageIndex:R,setTotalPages:T,resetPageIndexToDefault:k}=(0,a.oi)(),M=(0,d.useRouter)(),[S,V]=(0,p.useState)(),_=(0,p.useCallback)(e=>{k(),V(e)},[k,V]),{isFetching:q,isLoading:N,data:O}=(0,g.gz)({page:R,size:l,search:S}),{items:A,total:F,pages:I}=(0,p.useMemo)(()=>O||Z,[O]);(0,p.useEffect)(()=>{T(I)},[I,T]);let L=(0,p.useMemo)(()=>[z.accessor(e=>e.name,{id:"name",cell:e=>(0,s.jsx)(a.G3,{value:e.getValue()}),header:e=>(0,s.jsx)(a.Rr,{value:"Property",...e})}),z.accessor(e=>e.type,{id:"type",cell:e=>(0,s.jsx)(a.G3,{value:c().capitalize(e.getValue())}),header:e=>(0,s.jsx)(a.Rr,{value:"Type",...e})}),z.accessor(e=>e.experiences.map(e=>e.name),{id:"experiences",cell:e=>(0,s.jsx)(a.WP,{suffix:"experiences",value:e.getValue(),...e}),header:e=>(0,s.jsx)(a.Rr,{value:"Experience",...e}),meta:{showHeaderMenu:!0}}),z.display({id:"actions",header:"Actions",cell:e=>{let{row:t}=e;return(0,s.jsx)(E,{property:t.original})}})],[]),W=(0,r.b7)({getCoreRowModel:(0,i.sC)(),getGroupedRowModel:(0,i.qe)(),getExpandedRowModel:(0,i.rV)(),columns:L,manualPagination:!0,data:A,state:{expanded:!0},columnResizeMode:"onChange"});return N||e?(0,s.jsx)(a.I4,{rowHeight:36,numRows:15}):(0,s.jsx)("div",{children:(0,s.jsxs)(o.kCb,{flex:1,direction:"column",overflow:"auto",children:[(0,s.jsxs)(a.Q$,{children:[(0,s.jsx)(a.HO,{globalFilter:S,setGlobalFilter:_,placeholder:"Search property"}),(0,s.jsx)(o.Ugi,{alignItems:"center",spacing:4,children:(0,s.jsx)(x.ZP,{scopes:[m.Sh.PROPERTY_CREATE],children:(0,s.jsx)(j,{buttonLabel:"Add property"})})})]}),(0,s.jsx)(a.ZK,{tableInstance:W,onRowClick:e=>{t&&M.push({pathname:u.D3,query:{id:e.id}})},emptyTableNotice:(0,s.jsx)(H,{})}),(0,s.jsx)(a.s8,{totalRows:F||0,pageSizes:n,setPageSize:f,onPreviousPageClick:y,isPreviousPageDisabled:C||q,onNextPageClick:b,isNextPageDisabled:v||q,startRange:w,endRange:P})]})})}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5973],{37541:function(e,t,i){var l=i(24246),n=i(96013),r=i(53614);t.Z=e=>{let{heading:t,breadcrumbItems:i,isSticky:a=!0,children:s,rightContent:o,style:d,...c}=e;return(0,l.jsxs)("div",{...c,style:a?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...d}:{paddingBottom:"24px",...d},children:[(0,l.jsxs)(n.jqI,{justify:"space-between",children:["string"==typeof t?(0,l.jsx)(n.X6q,{className:i||s?"pb-4":void 0,fontSize:"2xl","data-testid":"page-heading",children:t}):t,o&&(0,l.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!i&&(0,l.jsx)(r.m,{className:s?"pb-4":void 0,items:i,"data-testid":"page-breadcrumb"}),s]})}},79511:function(e,t,i){i.d(t,{k:function(){return r}});var l=i(76649);let n=e=>(0,l.Ln)({id:"string"},e),r=e=>(null!=e?e:[]).filter(n)},19535:function(e,t,i){i.d(t,{m:function(){return o}});var l=i(27378),n=i(11596),r=i(53359),a=i(96878),s=i(79511);let o=e=>{let{resourceFidesKey:t,resourceType:i}=e,{errorAlert:o}=(0,r.V)(),{plus:d}=(0,n.hz)(),c=(0,l.useMemo)(()=>null!=t?t:"",[]),u=(0,a.YU)(!0,{skip:!d}),p=(0,a.VN)(i,{skip:!d}),{data:m,isLoading:x,error:h,isError:f}=(0,a.PV)(null!=t?t:"",{skip:""!==c&&!(d&&c)}),[v]=(0,a._D)(),g=u.isLoading||p.isLoading||x,j=(0,l.useMemo)(()=>new Map((0,s.k)(u.data).map(e=>{var t;return[e.id,{...e,options:(null!==(t=e.allowed_values)&&void 0!==t?t:[]).map(e=>({value:e,label:e}))}]})),[u.data]),_=(0,l.useMemo)(()=>{var e;return null===(e=p.data)||void 0===e?void 0:e.filter(e=>e.active)},[p.data]),C=(0,l.useMemo)(()=>new Map((0,s.k)(_).map(e=>[e.id,e])),[_]),b=(0,l.useMemo)(()=>f&&(null==h?void 0:h.status)===404?new Map:new Map((0,s.k)(m).map(e=>[e.custom_field_definition_id,e])),[m,f,h]),S=(0,l.useMemo)(()=>{let e=[...C.keys()];return e.sort(),e},[C]),y=(0,l.useMemo)(()=>{let e={};return _&&b&&_.forEach(t=>{let i=b.get(t.id||"");i&&(t.allow_list_id&&"string[]"===t.field_type?e[i.custom_field_definition_id]=i.value:e[i.custom_field_definition_id]=i.value.toString())}),e},[_,b]),T=(0,l.useCallback)(async e=>{if(!d)return;let l="fides_key"in e&&""!==e.fides_key?e.fides_key:t;if(!l)return;let{customFieldValues:n}=e;if(!n||0===Object.keys(n).length)return;let r=[],a=[];S.forEach(e=>{let t=b.get(e),i=n[e];void 0===i||""===i||Array.isArray(i)&&0===i.length?(null==t?void 0:t.id)&&a.push(t.id):r.push({custom_field_definition_id:e,resource_id:l,id:null==t?void 0:t.id,value:i})});try{await v({resource_type:i,resource_id:l,upsert:r,delete:a})}catch(e){o("One or more custom fields have failed to save, please try again."),console.error(e)}},[d,b,o,t,S,v,i]);return{customFieldValues:y,definitionIdToCustomField:b,idToAllowListWithOptions:j,idToCustomFieldDefinition:C,isEnabled:d,isLoading:g,sortedCustomFieldDefinitionIds:S,upsertCustomFields:T}}},79356:function(e,t,i){i.d(t,{uc:function(){return v},Hn:function(){return o},Uv:function(){return a},C7:function(){return d},mZ:function(){return f.m}});var l,n,r,a,s=i(37760);(l=r||(r={}))[l.CREATE_CUSTOM_FIELDS=0]="CREATE_CUSTOM_FIELDS",l[l.CREATE_CUSTOM_LISTS=1]="CREATE_CUSTOM_LISTS",l[l.CHOOSE_FROM_LIBRARY=2]="CHOOSE_FROM_LIBRARY",s.AL.STRING,s.AL.STRING_,(n=a||(a={})).SINGLE_SELECT="singleSelect",n.MULTIPLE_SELECT="multipleSelect",n.OPEN_TEXT="openText";let o=[{label:"Single select",value:"singleSelect"},{label:"Multiple select",value:"multipleSelect"},{label:"Open Text",value:"openText"}],d=[{label:"taxonomy:".concat(s.P6.DATA_CATEGORY),value:s.P6.DATA_CATEGORY},{label:"taxonomy:".concat(s.P6.DATA_SUBJECT),value:s.P6.DATA_SUBJECT},{label:"taxonomy:".concat(s.P6.DATA_USE),value:s.P6.DATA_USE},{label:"".concat(s.P6.SYSTEM,":information"),value:s.P6.SYSTEM},{label:"system:data use",value:s.P6.PRIVACY_DECLARATION}];var c=i(24246),u=i(96013),p=i(34090),m=i(90982),x=i(78973),h=i(34803),f=i(19535);let v=e=>{let{resourceFidesKey:t,resourceType:i}=e,{idToAllowListWithOptions:l,idToCustomFieldDefinition:n,isEnabled:r,isLoading:a,sortedCustomFieldDefinitionIds:o}=(0,f.m)({resourceFidesKey:t,resourceType:i});return r&&0!==o.length?(0,c.jsx)(m.Z,{heading:"Custom fields",children:(0,c.jsx)(u.kCb,{flexDir:"column","data-testid":"custom-fields-list",children:(0,c.jsx)(u.kCb,{flexDir:"column",gap:"24px",children:a?(0,c.jsx)(u.M5Y,{children:(0,c.jsx)(u.$jN,{})}):o.length>0&&(0,c.jsx)(u.kCb,{flexDirection:"column",gap:"12px",paddingBottom:"24px",children:o.map(e=>{let t=n.get(e);if(!t)return null;let i="customFieldValues.".concat(t.id);if(!t.allow_list_id&&t.field_type===s.AL.STRING)return(0,c.jsx)(p.gN,{name:i,children:e=>{let{field:i}=e;return(0,c.jsx)(h.j0,{...i,label:t.name,tooltip:t.description,variant:"stacked"})}},e);let r=l.get(t.allow_list_id);if(!r)return null;let{options:a}=r;return(0,c.jsx)(x.d,{name:i,allowClear:!0,mode:t.field_type!==s.AL.STRING?"multiple":void 0,label:t.name,options:a,tooltip:t.description,layout:"stacked",className:"w-full"},e)})})})})}):null};i(79511)},78973:function(e,t,i){i.d(t,{d:function(){return d}});var l=i(24246),n=i(96013),r=i(34090),a=i(27378),s=i(39514),o=i(34803);let d=e=>{let{name:t,label:i,labelProps:d,tooltip:c,isRequired:u,layout:p="inline",...m}=e,[x,h,{setValue:f}]=(0,r.U$)(t),v=!!(h.touched&&h.error),[g,j]=(0,a.useState)("");x.value||"tags"!==m.mode&&"multiple"!==m.mode||(x.value=[]),"tags"===m.mode&&"string"==typeof x.value&&(x.value=[x.value]);let _="tags"===m.mode?(e,t)=>e?e.value!==g||x.value.includes(g)?m.optionRender?m.optionRender(e,t):e.label:'Create "'.concat(g,'"'):void 0:m.optionRender||void 0,C=e=>{j(e),m.onSearch&&m.onSearch(e)},b=(e,t)=>{f(e),m.onChange&&m.onChange(e,t)};return"inline"===p?(0,l.jsx)(n.NIc,{isInvalid:v,isRequired:u,children:(0,l.jsxs)(n.rjZ,{templateColumns:i?"1fr 3fr":"1fr",children:[i?(0,l.jsx)(o.__,{htmlFor:m.id||t,...d,children:i}):null,(0,l.jsxs)(n.jqI,{align:"center",children:[(0,l.jsxs)(n.jqI,{vertical:!0,flex:1,className:"mr-2",children:[(0,l.jsx)(n.WPr,{...x,id:m.id||t,"data-testid":"controlled-select-".concat(x.name),...m,optionRender:_,onSearch:"tags"===m.mode?C:void 0,onChange:b,value:x.value||void 0}),(0,l.jsx)(o.Bc,{isInvalid:v,message:h.error,fieldName:x.name})]}),c?(0,l.jsx)(s.Z,{label:c}):null]})]})}):(0,l.jsx)(n.NIc,{isInvalid:v,isRequired:u,children:(0,l.jsxs)(n.gCW,{alignItems:"start",children:[(0,l.jsxs)(n.jqI,{align:"center",children:[i?(0,l.jsx)(o.__,{htmlFor:m.id||t,fontSize:"xs",my:0,mr:1,...d,children:i}):null,c?(0,l.jsx)(s.Z,{label:c}):null]}),(0,l.jsx)(n.WPr,{...x,id:m.id||t,"data-testid":"controlled-select-".concat(x.name),...m,optionRender:_,onSearch:"tags"===m.mode?C:void 0,onChange:b,value:x.value||void 0}),(0,l.jsx)(o.Bc,{isInvalid:v,message:h.error,fieldName:x.name})]})})}},53359:function(e,t,i){i.d(t,{H:function(){return r},V:function(){return l.V}});var l=i(75139),n=i(60136);let r=()=>{let{errorAlert:e}=(0,l.V)();return{handleError:t=>{let i="An unexpected error occurred. Please try again.";(0,n.Ot)(t)?i=t.data.detail:(0,n.tB)(t)&&(i=t.data.detail[0].msg),e(i)}}}},75139:function(e,t,i){i.d(t,{V:function(){return r}});var l=i(24246),n=i(96013);let r=()=>{let e=(0,n.pmc)();return{errorAlert:(t,i,r)=>{let a={...r,position:(null==r?void 0:r.position)||"top",render:e=>{let{onClose:r}=e;return(0,l.jsxs)(n.bZj,{alignItems:"normal",status:"error","data-testid":"error-alert",children:[(0,l.jsx)(n.zMQ,{}),(0,l.jsxs)(n.xuv,{children:[i&&(0,l.jsx)(n.CdC,{children:i}),(0,l.jsx)(n.XaZ,{children:t})]}),(0,l.jsx)(n.PZ7,{onClick:r,position:"relative",right:0,size:"sm",top:-1})]})}};(null==r?void 0:r.id)&&e.isActive(r.id)?e.update(r.id,a):e(a)},successAlert:(t,i,r)=>{let a={...r,position:(null==r?void 0:r.position)||"top",render:e=>{let{onClose:r}=e;return(0,l.jsxs)(n.bZj,{alignItems:"normal",status:"success",variant:"subtle","data-testid":"success-alert",children:[(0,l.jsx)(n.zMQ,{}),(0,l.jsxs)(n.xuv,{children:[i&&(0,l.jsx)(n.CdC,{children:i}),(0,l.jsx)(n.XaZ,{children:t})]}),(0,l.jsx)(n.PZ7,{onClick:r,position:"relative",right:0,size:"sm",top:-1})]})}};(null==r?void 0:r.id)&&e.isActive(r.id)?e.update(r.id,a):e(a)}}}},53614:function(e,t,i){i.d(t,{m:function(){return d}});var l=i(24246),n=i(96013),r=i(79894),a=i.n(r),s=i(27378);let{Text:o}=n.AntTypography,d=e=>{let{items:t,...i}=e,r=(0,s.useMemo)(()=>null==t?void 0:t.map((e,i)=>{let r=i===t.length-1,s={...e},d=s.onClick&&!s.href;return("string"==typeof s.title&&(s.title=(0,l.jsx)(o,{style:{color:"inherit",maxWidth:r?void 0:400},ellipsis:!r,children:s.title})),d)?s.title=(0,l.jsx)(n.wpx,{type:"text",size:"small",icon:s.icon,onClick:s.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:s.title}):(s.icon&&(s.title=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{className:"anticon align-text-bottom",children:s.icon}),s.title]})),s.href&&s.title&&(s.title=(0,l.jsx)(a(),{href:s.href,className:"ant-breadcrumb-link",children:s.title}),delete s.href)),s}),[t]);return(0,l.jsx)(n.zrq,{items:r,...i})}},90982:function(e,t,i){var l=i(24246),n=i(96013);t.Z=e=>{let{heading:t,HeadingButton:i,children:r}=e;return(0,l.jsx)(n.Kqy,{spacing:4,children:(0,l.jsxs)(n.xuv,{maxWidth:"720px",border:"1px",borderColor:"gray.200",borderRadius:6,overflow:"visible",mt:6,children:[(0,l.jsxs)(n.xuv,{backgroundColor:"gray.50",px:6,py:4,display:"flex",flexDirection:"row",alignItems:"center",borderBottom:"1px",borderColor:"gray.200",borderTopRadius:6,children:[(0,l.jsx)(n.X6q,{as:"h3",size:"xs",children:t}),i?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(n.LZC,{}),(0,l.jsx)(i,{})]}):null]}),(0,l.jsx)(n.Kqy,{spacing:4,px:6,py:6,children:r})]})})}}}]);
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7980],{58754:function(e,t,i){var l=i(24246),n=i(38458),r=i(70788);t.Z=e=>{let{heading:t,breadcrumbItems:i,isSticky:a=!0,children:s,rightContent:o,style:d,...c}=e;return(0,l.jsxs)("div",{...c,style:a?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...d}:{paddingBottom:"24px",...d},children:[(0,l.jsxs)(n.jqI,{justify:"space-between",children:["string"==typeof t?(0,l.jsx)(n.X6q,{className:i||s?"pb-4":void 0,fontSize:"2xl","data-testid":"page-heading",children:t}):t,o&&(0,l.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!i&&(0,l.jsx)(r.m,{className:s?"pb-4":void 0,items:i,"data-testid":"page-breadcrumb"}),s]})}},94799:function(e,t,i){i.d(t,{k:function(){return r}});var l=i(76649);let n=e=>(0,l.Ln)({id:"string"},e),r=e=>(null!=e?e:[]).filter(n)},30320:function(e,t,i){i.d(t,{m:function(){return o}});var l=i(27378),n=i(25980),r=i(14047),a=i(32885),s=i(94799);let o=e=>{let{resourceFidesKey:t,resourceType:i}=e,{errorAlert:o}=(0,r.V)(),{plus:d}=(0,n.hz)(),c=(0,l.useMemo)(()=>null!=t?t:"",[]),u=(0,a.YU)(!0,{skip:!d}),p=(0,a.VN)(i,{skip:!d}),{data:m,isLoading:x,error:h,isError:f}=(0,a.PV)(null!=t?t:"",{skip:""!==c&&!(d&&c)}),[v]=(0,a._D)(),g=u.isLoading||p.isLoading||x,j=(0,l.useMemo)(()=>new Map((0,s.k)(u.data).map(e=>{var t;return[e.id,{...e,options:(null!==(t=e.allowed_values)&&void 0!==t?t:[]).map(e=>({value:e,label:e}))}]})),[u.data]),_=(0,l.useMemo)(()=>{var e;return null===(e=p.data)||void 0===e?void 0:e.filter(e=>e.active)},[p.data]),C=(0,l.useMemo)(()=>new Map((0,s.k)(_).map(e=>[e.id,e])),[_]),b=(0,l.useMemo)(()=>f&&(null==h?void 0:h.status)===404?new Map:new Map((0,s.k)(m).map(e=>[e.custom_field_definition_id,e])),[m,f,h]),S=(0,l.useMemo)(()=>{let e=[...C.keys()];return e.sort(),e},[C]),y=(0,l.useMemo)(()=>{let e={};return _&&b&&_.forEach(t=>{let i=b.get(t.id||"");i&&(t.allow_list_id&&"string[]"===t.field_type?e[i.custom_field_definition_id]=i.value:e[i.custom_field_definition_id]=i.value.toString())}),e},[_,b]),T=(0,l.useCallback)(async e=>{if(!d)return;let l="fides_key"in e&&""!==e.fides_key?e.fides_key:t;if(!l)return;let{customFieldValues:n}=e;if(!n||0===Object.keys(n).length)return;let r=[],a=[];S.forEach(e=>{let t=b.get(e),i=n[e];void 0===i||""===i||Array.isArray(i)&&0===i.length?(null==t?void 0:t.id)&&a.push(t.id):r.push({custom_field_definition_id:e,resource_id:l,id:null==t?void 0:t.id,value:i})});try{await v({resource_type:i,resource_id:l,upsert:r,delete:a})}catch(e){o("One or more custom fields have failed to save, please try again."),console.error(e)}},[d,b,o,t,S,v,i]);return{customFieldValues:y,definitionIdToCustomField:b,idToAllowListWithOptions:j,idToCustomFieldDefinition:C,isEnabled:d,isLoading:g,sortedCustomFieldDefinitionIds:S,upsertCustomFields:T}}},95346:function(e,t,i){i.d(t,{uc:function(){return v},Hn:function(){return o},Uv:function(){return a},C7:function(){return d},mZ:function(){return f.m}});var l,n,r,a,s=i(21702);(l=r||(r={}))[l.CREATE_CUSTOM_FIELDS=0]="CREATE_CUSTOM_FIELDS",l[l.CREATE_CUSTOM_LISTS=1]="CREATE_CUSTOM_LISTS",l[l.CHOOSE_FROM_LIBRARY=2]="CHOOSE_FROM_LIBRARY",s.AL.STRING,s.AL.STRING_,(n=a||(a={})).SINGLE_SELECT="singleSelect",n.MULTIPLE_SELECT="multipleSelect",n.OPEN_TEXT="openText";let o=[{label:"Single select",value:"singleSelect"},{label:"Multiple select",value:"multipleSelect"},{label:"Open Text",value:"openText"}],d=[{label:"taxonomy:".concat(s.P6.DATA_CATEGORY),value:s.P6.DATA_CATEGORY},{label:"taxonomy:".concat(s.P6.DATA_SUBJECT),value:s.P6.DATA_SUBJECT},{label:"taxonomy:".concat(s.P6.DATA_USE),value:s.P6.DATA_USE},{label:"".concat(s.P6.SYSTEM,":information"),value:s.P6.SYSTEM},{label:"system:data use",value:s.P6.PRIVACY_DECLARATION}];var c=i(24246),u=i(38458),p=i(34090),m=i(30234),x=i(97181),h=i(40324),f=i(30320);let v=e=>{let{resourceFidesKey:t,resourceType:i}=e,{idToAllowListWithOptions:l,idToCustomFieldDefinition:n,isEnabled:r,isLoading:a,sortedCustomFieldDefinitionIds:o}=(0,f.m)({resourceFidesKey:t,resourceType:i});return r&&0!==o.length?(0,c.jsx)(m.Z,{heading:"Custom fields",children:(0,c.jsx)(u.kCb,{flexDir:"column","data-testid":"custom-fields-list",children:(0,c.jsx)(u.kCb,{flexDir:"column",gap:"24px",children:a?(0,c.jsx)(u.M5Y,{children:(0,c.jsx)(u.$jN,{})}):o.length>0&&(0,c.jsx)(u.kCb,{flexDirection:"column",gap:"12px",paddingBottom:"24px",children:o.map(e=>{let t=n.get(e);if(!t)return null;let i="customFieldValues.".concat(t.id);if(!t.allow_list_id&&t.field_type===s.AL.STRING)return(0,c.jsx)(p.gN,{name:i,children:e=>{let{field:i}=e;return(0,c.jsx)(h.j0,{...i,label:t.name,tooltip:t.description,variant:"stacked"})}},e);let r=l.get(t.allow_list_id);if(!r)return null;let{options:a}=r;return(0,c.jsx)(x.d,{name:i,allowClear:!0,mode:t.field_type!==s.AL.STRING?"multiple":void 0,label:t.name,options:a,tooltip:t.description,layout:"stacked",className:"w-full"},e)})})})})}):null};i(94799)},97181:function(e,t,i){i.d(t,{d:function(){return d}});var l=i(24246),n=i(38458),r=i(34090),a=i(27378),s=i(91613),o=i(40324);let d=e=>{let{name:t,label:i,labelProps:d,tooltip:c,isRequired:u,layout:p="inline",...m}=e,[x,h,{setValue:f}]=(0,r.U$)(t),v=!!(h.touched&&h.error),[g,j]=(0,a.useState)("");x.value||"tags"!==m.mode&&"multiple"!==m.mode||(x.value=[]),"tags"===m.mode&&"string"==typeof x.value&&(x.value=[x.value]);let _="tags"===m.mode?(e,t)=>e?e.value!==g||x.value.includes(g)?m.optionRender?m.optionRender(e,t):e.label:'Create "'.concat(g,'"'):void 0:m.optionRender||void 0,C=e=>{j(e),m.onSearch&&m.onSearch(e)},b=(e,t)=>{f(e),m.onChange&&m.onChange(e,t)};return"inline"===p?(0,l.jsx)(n.NIc,{isInvalid:v,isRequired:u,children:(0,l.jsxs)(n.rjZ,{templateColumns:i?"1fr 3fr":"1fr",children:[i?(0,l.jsx)(o.__,{htmlFor:m.id||t,...d,children:i}):null,(0,l.jsxs)(n.jqI,{align:"center",children:[(0,l.jsxs)(n.jqI,{vertical:!0,flex:1,className:"mr-2",children:[(0,l.jsx)(n.WPr,{...x,id:m.id||t,"data-testid":"controlled-select-".concat(x.name),...m,optionRender:_,onSearch:"tags"===m.mode?C:void 0,onChange:b,value:x.value||void 0}),(0,l.jsx)(o.Bc,{isInvalid:v,message:h.error,fieldName:x.name})]}),c?(0,l.jsx)(s.Z,{label:c}):null]})]})}):(0,l.jsx)(n.NIc,{isInvalid:v,isRequired:u,children:(0,l.jsxs)(n.gCW,{alignItems:"start",children:[(0,l.jsxs)(n.jqI,{align:"center",children:[i?(0,l.jsx)(o.__,{htmlFor:m.id||t,fontSize:"xs",my:0,mr:1,...d,children:i}):null,c?(0,l.jsx)(s.Z,{label:c}):null]}),(0,l.jsx)(n.WPr,{...x,id:m.id||t,"data-testid":"controlled-select-".concat(x.name),...m,optionRender:_,onSearch:"tags"===m.mode?C:void 0,onChange:b,value:x.value||void 0}),(0,l.jsx)(o.Bc,{isInvalid:v,message:h.error,fieldName:x.name})]})})}},14047:function(e,t,i){i.d(t,{H:function(){return r},V:function(){return l.V}});var l=i(84306),n=i(812);let r=()=>{let{errorAlert:e}=(0,l.V)();return{handleError:t=>{let i="An unexpected error occurred. Please try again.";(0,n.Ot)(t)?i=t.data.detail:(0,n.tB)(t)&&(i=t.data.detail[0].msg),e(i)}}}},84306:function(e,t,i){i.d(t,{V:function(){return r}});var l=i(24246),n=i(38458);let r=()=>{let e=(0,n.pmc)();return{errorAlert:(t,i,r)=>{let a={...r,position:(null==r?void 0:r.position)||"top",render:e=>{let{onClose:r}=e;return(0,l.jsxs)(n.bZj,{alignItems:"normal",status:"error","data-testid":"error-alert",children:[(0,l.jsx)(n.zMQ,{}),(0,l.jsxs)(n.xuv,{children:[i&&(0,l.jsx)(n.CdC,{children:i}),(0,l.jsx)(n.XaZ,{children:t})]}),(0,l.jsx)(n.PZ7,{onClick:r,position:"relative",right:0,size:"sm",top:-1})]})}};(null==r?void 0:r.id)&&e.isActive(r.id)?e.update(r.id,a):e(a)},successAlert:(t,i,r)=>{let a={...r,position:(null==r?void 0:r.position)||"top",render:e=>{let{onClose:r}=e;return(0,l.jsxs)(n.bZj,{alignItems:"normal",status:"success",variant:"subtle","data-testid":"success-alert",children:[(0,l.jsx)(n.zMQ,{}),(0,l.jsxs)(n.xuv,{children:[i&&(0,l.jsx)(n.CdC,{children:i}),(0,l.jsx)(n.XaZ,{children:t})]}),(0,l.jsx)(n.PZ7,{onClick:r,position:"relative",right:0,size:"sm",top:-1})]})}};(null==r?void 0:r.id)&&e.isActive(r.id)?e.update(r.id,a):e(a)}}}},70788:function(e,t,i){i.d(t,{m:function(){return d}});var l=i(24246),n=i(38458),r=i(79894),a=i.n(r),s=i(27378);let{Text:o}=n.AntTypography,d=e=>{let{items:t,...i}=e,r=(0,s.useMemo)(()=>null==t?void 0:t.map((e,i)=>{let r=i===t.length-1,s={...e},d=s.onClick&&!s.href;return("string"==typeof s.title&&(s.title=(0,l.jsx)(o,{style:{color:"inherit",maxWidth:r?void 0:400},ellipsis:!r,children:s.title})),d)?s.title=(0,l.jsx)(n.wpx,{type:"text",size:"small",icon:s.icon,onClick:s.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:s.title}):(s.icon&&(s.title=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{className:"anticon align-text-bottom",children:s.icon}),s.title]})),s.href&&s.title&&(s.title=(0,l.jsx)(a(),{href:s.href,className:"ant-breadcrumb-link",children:s.title}),delete s.href)),s}),[t]);return(0,l.jsx)(n.zrq,{items:r,...i})}},30234:function(e,t,i){var l=i(24246),n=i(38458);t.Z=e=>{let{heading:t,HeadingButton:i,children:r}=e;return(0,l.jsx)(n.Kqy,{spacing:4,children:(0,l.jsxs)(n.xuv,{maxWidth:"720px",border:"1px",borderColor:"gray.200",borderRadius:6,overflow:"visible",mt:6,children:[(0,l.jsxs)(n.xuv,{backgroundColor:"gray.50",px:6,py:4,display:"flex",flexDirection:"row",alignItems:"center",borderBottom:"1px",borderColor:"gray.200",borderTopRadius:6,children:[(0,l.jsx)(n.X6q,{as:"h3",size:"xs",children:t}),i?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(n.LZC,{}),(0,l.jsx)(i,{})]}):null]}),(0,l.jsx)(n.Kqy,{spacing:4,px:6,py:6,children:r})]})})}}}]);
@@ -0,0 +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(38458),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(38458);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(38458),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(38458),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(38458),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}}}}]);
@@ -0,0 +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(38458).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(38458),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
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8573],{8573:function(e,i,r){r.r(i),r.d(i,{default:function(){return j}});var t=r(24246),n=r(38458),s=r(16134),a=r(78567),l=r(34090),o=r(27378),d=r(59389),u=r(812),c=r(14047);let f=/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i,m=e=>f.test(e),h=(0,n.Gpc)((e,i)=>{let{isRequired:r=!1,...s}=e,{emails:a}=s.form.values,[l,d]=(0,o.useState)(""),u=e=>a.includes(e),c=e=>{e.map(e=>e.trim()).filter(e=>m(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([l]))},onPaste:e=>{e.preventDefault(),c(e.clipboardData.getData("text").split(","))},ref:i,size:"sm",type:"email",value:l}),(0,t.jsx)(n.J1D,{children:s.form.errors[s.name]}),a.length>0&&(0,t.jsx)(n.Eq9,{spacing:1,mb:3,pt:"8px",children:a.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))})]})]})});var x=r(90867);let p=d.Ry().shape({emails:d.IX(d.Z_()).when(["notify"],{is:!0,then:()=>d.IX(d.Z_()).min(1,"Must enter at least one valid email").label("Email")}),notify:d.O7(),minErrorCount:d.Rx().required()});var g=()=>{let{isOpen:e,onOpen:i,onClose:r}=(0,n.qY0)(),[s,a]=(0,o.useState)({emails:[],notify:!1,minErrorCount:1}),d=(0,o.useRef)(null),{errorAlert:f,successAlert:m}=(0,c.V)(),[g,j]=(0,o.useState)(!0),{data:y}=(0,x.tE)(void 0,{skip:g}),[v]=(0,x.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?f((0,u.e$)(t.error),"Configure alerts and notifications has failed to save due to the following:"):m("Configure alerts and notifications saved successfully."),i.setSubmitting(!1),r()};return(0,o.useEffect)(()=>{e&&j(!1),y&&a({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)(l.J9,{enableReinitialize:!0,initialValues:s,onSubmit:C,validationSchema:p,children:i=>(0,t.jsxs)(n.dys,{isOpen:e,placement:"right",initialFocusRef:d,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)(l.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)(l.F2,{name:"emails",render:e=>(0,t.jsx)(h,{...e,isRequired:i.values.notify,ref:d})})}),(0,t.jsx)(n.Ugi,{children:(0,t.jsx)(l.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)(l.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)(x.fe);return(0,t.jsxs)(n.kCb,{gap:4,children:[(null==e?void 0:e.length)>0&&(0,t.jsx)(a.Z,{}),(0,t.jsx)(g,{})]})}},78567:function(e,i,r){var t=r(24246),n=r(38458),s=r(27378),a=r(16134),l=r(812),o=r(14047),d=r(90867);let u=(0,n.Gpc)((e,i)=>{let{handleBlur:r,subjectRequest:u}=e,c=(0,a.T)(),[f,m]=(0,s.useState)(!1),{errorAlert:h,successAlert:x}=(0,o.V)(),{errorRequests:p}=(0,a.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"})});i.Z=u}}]);
@@ -1 +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(25368);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
+ (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)}}}]);
@@ -0,0 +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(38458);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(38458),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(38458);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(38458),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(38458),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(38458),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(38458),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(38458);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(38458),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
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9111],{34774:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ReadonlyURLSearchParams:function(){return c.ReadonlyURLSearchParams},RedirectType:function(){return c.RedirectType},ServerInsertedHTMLContext:function(){return l.ServerInsertedHTMLContext},notFound:function(){return c.notFound},permanentRedirect:function(){return c.permanentRedirect},redirect:function(){return c.redirect},useParams:function(){return p},usePathname:function(){return f},useRouter:function(){return s},useSearchParams:function(){return d},useSelectedLayoutSegment:function(){return b},useSelectedLayoutSegments:function(){return y},useServerInsertedHTML:function(){return l.useServerInsertedHTML}});let n=r(27378),u=r(33247),o=r(63398),i=r(67467),a=r(59571),c=r(63499),l=r(59153);function d(){let e=(0,n.useContext)(o.SearchParamsContext);return(0,n.useMemo)(()=>e?new c.ReadonlyURLSearchParams(e):null,[e])}function f(){return(0,n.useContext)(o.PathnameContext)}function s(){let e=(0,n.useContext)(u.AppRouterContext);if(null===e)throw Error("invariant expected app router to be mounted");return e}function p(){return(0,n.useContext)(o.PathParamsContext)}function y(e){void 0===e&&(e="children");let t=(0,n.useContext)(u.LayoutRouterContext);return t?function e(t,r,n,u){let o;if(void 0===n&&(n=!0),void 0===u&&(u=[]),n)o=t[1][r];else{var c;let e=t[1];o=null!=(c=e.children)?c:Object.values(e)[0]}if(!o)return u;let l=o[0],d=(0,i.getSegmentValue)(l);return!d||d.startsWith(a.PAGE_SEGMENT_KEY)?u:(u.push(d),e(o,r,!1,u))}(t.tree,e):null}function b(e){void 0===e&&(e="children");let t=y(e);if(!t||0===t.length)return null;let r="children"===e?t[0]:t[t.length-1];return r===a.DEFAULT_SEGMENT_KEY?null:r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},63499:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ReadonlyURLSearchParams:function(){return i},RedirectType:function(){return n.RedirectType},notFound:function(){return u.notFound},permanentRedirect:function(){return n.permanentRedirect},redirect:function(){return n.redirect}});let n=r(72945),u=r(22940);class o extends Error{constructor(){super("Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams")}}class i extends URLSearchParams{append(){throw new o}delete(){throw new o}set(){throw new o}sort(){throw new o}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},22940:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{isNotFoundError:function(){return u},notFound:function(){return n}});let r="NEXT_NOT_FOUND";function n(){let e=Error(r);throw e.digest=r,e}function u(e){return"object"==typeof e&&null!==e&&"digest"in e&&e.digest===r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},42659:function(e,t){"use strict";var r,n;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RedirectStatusCode",{enumerable:!0,get:function(){return r}}),(n=r||(r={}))[n.SeeOther=303]="SeeOther",n[n.TemporaryRedirect=307]="TemporaryRedirect",n[n.PermanentRedirect=308]="PermanentRedirect",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},72945:function(e,t,r){"use strict";var n,u;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{RedirectType:function(){return n},getRedirectError:function(){return l},getRedirectStatusCodeFromError:function(){return b},getRedirectTypeFromError:function(){return y},getURLFromRedirectError:function(){return p},isRedirectError:function(){return s},permanentRedirect:function(){return f},redirect:function(){return d}});let o=r(8959),i=r(63288),a=r(42659),c="NEXT_REDIRECT";function l(e,t,r){void 0===r&&(r=a.RedirectStatusCode.TemporaryRedirect);let n=Error(c);n.digest=c+";"+t+";"+e+";"+r+";";let u=o.requestAsyncStorage.getStore();return u&&(n.mutableCookies=u.mutableCookies),n}function d(e,t){void 0===t&&(t="replace");let r=i.actionAsyncStorage.getStore();throw l(e,t,(null==r?void 0:r.isAction)?a.RedirectStatusCode.SeeOther:a.RedirectStatusCode.TemporaryRedirect)}function f(e,t){void 0===t&&(t="replace");let r=i.actionAsyncStorage.getStore();throw l(e,t,(null==r?void 0:r.isAction)?a.RedirectStatusCode.SeeOther:a.RedirectStatusCode.PermanentRedirect)}function s(e){if("object"!=typeof e||null===e||!("digest"in e)||"string"!=typeof e.digest)return!1;let[t,r,n,u]=e.digest.split(";",4),o=Number(u);return t===c&&("replace"===r||"push"===r)&&"string"==typeof n&&!isNaN(o)&&o in a.RedirectStatusCode}function p(e){return s(e)?e.digest.split(";",3)[2]:null}function y(e){if(!s(e))throw Error("Not a redirect error");return e.digest.split(";",2)[1]}function b(e){if(!s(e))throw Error("Not a redirect error");return Number(e.digest.split(";",4)[3])}(u=n||(n={})).push="push",u.replace="replace",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},67467:function(e,t){"use strict";function r(e){return Array.isArray(e)?e[1]:e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSegmentValue",{enumerable:!0,get:function(){return r}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},59153:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ServerInsertedHTMLContext:function(){return u},useServerInsertedHTML:function(){return o}});let n=r(5306)._(r(27378)),u=n.default.createContext(null);function o(e){let t=(0,n.useContext)(u);t&&t(e)}},63662:function(e,t,r){e.exports=r(34774)},65791:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"actionAsyncStorage",{enumerable:!0,get:function(){return n}});let n=(0,r(4170).createAsyncLocalStorage)();("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},63288:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"actionAsyncStorage",{enumerable:!0,get:function(){return n.actionAsyncStorage}});let n=r(65791);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4170:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createAsyncLocalStorage",{enumerable:!0,get:function(){return o}});let r=Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available");class n{disable(){throw r}getStore(){}run(){throw r}exit(){throw r}enterWith(){throw r}}let u=globalThis.AsyncLocalStorage;function o(){return u?new u:new n}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4914:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"requestAsyncStorage",{enumerable:!0,get:function(){return n}});let n=(0,r(4170).createAsyncLocalStorage)();("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8959:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getExpectedRequestStore:function(){return u},requestAsyncStorage:function(){return n.requestAsyncStorage}});let n=r(4914);function u(e){let t=n.requestAsyncStorage.getStore();if(t)return t;throw Error("`"+e+"` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context")}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},76649:function(e,t,r){"use strict";r.d(t,{Ln:function(){return n}});let n=(e,t)=>o(e,t),u=Symbol("SOME"),o=(e,t)=>"string"==typeof e?e===typeof t:Array.isArray(e)?u in e?e.some(e=>o(e,t)):!!Array.isArray(t)&&(0===e.length||t.every(t=>e.some(e=>o(e,t)))):"object"==typeof t&&null!==t&&Object.entries(e).every(([e,r])=>o(r,t[e]));class i{static narrow(e){return new i(t=>n(e,t))}constructor(e){this.NF=void 0,this.NF=e}satisfied(e){return this.NF(e)}build(e){return e}and(e){let t=this.NF,r=e instanceof i?e.NF:e instanceof Function?e:t=>n(e,t);return new i(e=>t(e)&&r(e))}}new i(e=>!0)}}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9255],{71928:function(t,e,n){var r=n(88799),i=n(85638),u=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var o=t[e];u.call(t,e)&&i(o,n)&&(void 0!==n||e in t)||r(t,e,n)}},88799:function(t,e,n){var r=n(42630);t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},49819:function(t,e,n){var r=n(18911)();t.exports=r},26194:function(t,e,n){var r=n(49819),i=n(50098);t.exports=function(t,e){return t&&r(t,e,i)}},59464:function(t,e,n){var r=n(11611),i=n(56016),u=n(21586),o=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return u(t);var e=i(t),n=[];for(var a in t)"constructor"==a&&(e||!o.call(t,a))||n.push(a);return n}},10228:function(t,e,n){var r=n(79867),i=n(78859),u=n(76747);t.exports=function(t,e,n){for(var o=-1,a=e.length,c={};++o<a;){var f=e[o],l=r(t,f);n(l,f)&&i(c,u(f,t),l)}return c}},78859:function(t,e,n){var r=n(71928),i=n(76747),u=n(42383),o=n(11611),a=n(37948);t.exports=function(t,e,n,c){if(!o(t))return t;e=i(e,t);for(var f=-1,l=e.length,s=l-1,p=t;null!=p&&++f<l;){var v=a(e[f]),d=n;if("__proto__"===v||"constructor"===v||"prototype"===v)break;if(f!=s){var h=p[v];void 0===(d=c?c(h,v,p):void 0)&&(d=o(h)?h:u(e[f+1])?[]:{})}r(p,v,d),p=p[v]}return t}},18911:function(t){t.exports=function(t){return function(e,n,r){for(var i=-1,u=Object(e),o=r(e),a=o.length;a--;){var c=o[t?a:++i];if(!1===n(u[c],c,u))break}return e}}},42630:function(t,e,n){var r=n(81822),i=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=i},39759:function(t,e,n){var r=n(11324),i=n(30791),u=n(53893);t.exports=function(t){return r(t,u,i)}},2173:function(t,e,n){var r=n(58023)(Object.getPrototypeOf,Object);t.exports=r},30791:function(t,e,n){var r=n(97141),i=n(2173),u=n(83080),o=n(15937),a=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)r(e,u(t)),t=i(t);return e}:o;t.exports=a},21586:function(t){t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},90104:function(t,e,n){var r=n(20186),i=n(3533),u=n(2900),o=n(19785),a=n(80068),c=n(43854),f=n(56016),l=n(48519),s=Object.prototype.hasOwnProperty;t.exports=function(t){if(null==t)return!0;if(a(t)&&(o(t)||"string"==typeof t||"function"==typeof t.splice||c(t)||l(t)||u(t)))return!t.length;var e=i(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(f(t))return!r(t).length;for(var n in t)if(s.call(t,n))return!1;return!0}},92465:function(t){t.exports=function(t){return void 0===t}},53893:function(t,e,n){var r=n(98213),i=n(59464),u=n(80068);t.exports=function(t){return u(t)?r(t,!0):i(t)}},25389:function(t,e,n){var r=n(88799),i=n(26194),u=n(89278);t.exports=function(t,e){var n={};return e=u(e,3),i(t,function(t,i,u){r(n,i,e(t,i,u))}),n}},9799:function(t){t.exports=function(t){if("function"!=typeof t)throw TypeError("Expected a function");return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}},40015:function(t,e,n){var r=n(89278),i=n(9799),u=n(71975);t.exports=function(t,e){return u(t,i(r(e)))}},71975:function(t,e,n){var r=n(66070),i=n(89278),u=n(10228),o=n(39759);t.exports=function(t,e){if(null==t)return{};var n=r(o(t),function(t){return[t]});return e=i(e),u(t,n,function(t,n){return e(t,n[0])})}},19508:function(t,e,n){"use strict";n.d(e,{D:function(){return o}});var r=n(64892),i=n(6680),u=n(54743);function o(t,e){let n,o;let h=()=>(0,i.L)(e?.in,NaN),g=e?.additionalDigits??2,m=function(t){let e;let n={},r=t.split(a.dateTimeDelimiter);if(r.length>2)return n;if(/:/.test(r[0])?e=r[0]:(n.date=r[0],e=r[1],a.timeZoneDelimiter.test(n.date)&&(n.date=t.split(a.timeZoneDelimiter)[0],e=t.substr(n.date.length,t.length))),e){let t=a.timezone.exec(e);t?(n.time=e.replace(t[1],""),n.timezone=t[1]):n.time=e}return n}(t);if(m.date){let t=function(t,e){let n=RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),r=t.match(n);if(!r)return{year:NaN,restDateString:""};let i=r[1]?parseInt(r[1]):null,u=r[2]?parseInt(r[2]):null;return{year:null===u?i:100*u,restDateString:t.slice((r[1]||r[2]).length)}}(m.date,g);n=function(t,e){if(null===e)return new Date(NaN);let n=t.match(c);if(!n)return new Date(NaN);let r=!!n[4],i=s(n[1]),u=s(n[2])-1,o=s(n[3]),a=s(n[4]),f=s(n[5])-1;if(r)return a>=1&&a<=53&&f>=0&&f<=6?function(t,e,n){let r=new Date(0);r.setUTCFullYear(t,0,4);let i=r.getUTCDay()||7;return r.setUTCDate(r.getUTCDate()+((e-1)*7+n+1-i)),r}(e,a,f):new Date(NaN);{let t=new Date(0);return u>=0&&u<=11&&o>=1&&o<=(v[u]||(d(e)?29:28))&&i>=1&&i<=(d(e)?366:365)?(t.setUTCFullYear(e,u,Math.max(i,o)),t):new Date(NaN)}}(t.restDateString,t.year)}if(!n||isNaN(+n))return h();let N=+n,x=0;if(m.time&&isNaN(x=function(t){let e=t.match(f);if(!e)return NaN;let n=p(e[1]),i=p(e[2]),u=p(e[3]);return(24===n?0===i&&0===u:u>=0&&u<60&&i>=0&&i<60&&n>=0&&n<25)?n*r.vh+i*r.yJ+1e3*u:NaN}(m.time)))return h();if(m.timezone){if(isNaN(o=function(t){if("Z"===t)return 0;let e=t.match(l);if(!e)return 0;let n="+"===e[1]?-1:1,i=parseInt(e[2]),u=e[3]&&parseInt(e[3])||0;return u>=0&&u<=59?n*(i*r.vh+u*r.yJ):NaN}(m.timezone)))return h()}else{let t=new Date(N+x),n=(0,u.Q)(0,e?.in);return n.setFullYear(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()),n.setHours(t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()),n}return(0,u.Q)(N+x+o,e?.in)}let a={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},c=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,f=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,l=/^([+-])(\d{2})(?::?(\d{2}))?$/;function s(t){return t?parseInt(t):1}function p(t){return t&&parseFloat(t.replace(",","."))||0}let v=[31,null,31,30,31,30,31,31,30,31,30,31];function d(t){return t%400==0||t%4==0&&t%100!=0}}}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9255],{71928:function(t,e,n){var r=n(88799),i=n(85638),u=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var o=t[e];u.call(t,e)&&i(o,n)&&(void 0!==n||e in t)||r(t,e,n)}},88799:function(t,e,n){var r=n(42630);t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},49819:function(t,e,n){var r=n(18911)();t.exports=r},26194:function(t,e,n){var r=n(49819),i=n(50098);t.exports=function(t,e){return t&&r(t,e,i)}},59464:function(t,e,n){var r=n(11611),i=n(56016),u=n(21586),o=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return u(t);var e=i(t),n=[];for(var a in t)"constructor"==a&&(e||!o.call(t,a))||n.push(a);return n}},10228:function(t,e,n){var r=n(79867),i=n(78859),u=n(76747);t.exports=function(t,e,n){for(var o=-1,a=e.length,c={};++o<a;){var f=e[o],l=r(t,f);n(l,f)&&i(c,u(f,t),l)}return c}},78859:function(t,e,n){var r=n(71928),i=n(76747),u=n(42383),o=n(11611),a=n(37948);t.exports=function(t,e,n,c){if(!o(t))return t;e=i(e,t);for(var f=-1,l=e.length,s=l-1,p=t;null!=p&&++f<l;){var v=a(e[f]),d=n;if("__proto__"===v||"constructor"===v||"prototype"===v)break;if(f!=s){var h=p[v];void 0===(d=c?c(h,v,p):void 0)&&(d=o(h)?h:u(e[f+1])?[]:{})}r(p,v,d),p=p[v]}return t}},18911:function(t){t.exports=function(t){return function(e,n,r){for(var i=-1,u=Object(e),o=r(e),a=o.length;a--;){var c=o[t?a:++i];if(!1===n(u[c],c,u))break}return e}}},42630:function(t,e,n){var r=n(81822),i=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=i},39759:function(t,e,n){var r=n(11324),i=n(30791),u=n(53893);t.exports=function(t){return r(t,u,i)}},2173:function(t,e,n){var r=n(58023)(Object.getPrototypeOf,Object);t.exports=r},30791:function(t,e,n){var r=n(97141),i=n(2173),u=n(83080),o=n(15937),a=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)r(e,u(t)),t=i(t);return e}:o;t.exports=a},21586:function(t){t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},90104:function(t,e,n){var r=n(20186),i=n(3533),u=n(2900),o=n(19785),a=n(80068),c=n(43854),f=n(56016),l=n(48519),s=Object.prototype.hasOwnProperty;t.exports=function(t){if(null==t)return!0;if(a(t)&&(o(t)||"string"==typeof t||"function"==typeof t.splice||c(t)||l(t)||u(t)))return!t.length;var e=i(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(f(t))return!r(t).length;for(var n in t)if(s.call(t,n))return!1;return!0}},92465:function(t){t.exports=function(t){return void 0===t}},53893:function(t,e,n){var r=n(98213),i=n(59464),u=n(80068);t.exports=function(t){return u(t)?r(t,!0):i(t)}},25389:function(t,e,n){var r=n(88799),i=n(26194),u=n(89278);t.exports=function(t,e){var n={};return e=u(e,3),i(t,function(t,i,u){r(n,i,e(t,i,u))}),n}},9799:function(t){t.exports=function(t){if("function"!=typeof t)throw TypeError("Expected a function");return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}},15539:function(t,e,n){var r=n(89278),i=n(9799),u=n(71975);t.exports=function(t,e){return u(t,i(r(e)))}},71975:function(t,e,n){var r=n(66070),i=n(89278),u=n(10228),o=n(39759);t.exports=function(t,e){if(null==t)return{};var n=r(o(t),function(t){return[t]});return e=i(e),u(t,n,function(t,n){return e(t,n[0])})}},19508:function(t,e,n){"use strict";n.d(e,{D:function(){return o}});var r=n(64892),i=n(6680),u=n(54743);function o(t,e){let n,o;let h=()=>(0,i.L)(e?.in,NaN),g=e?.additionalDigits??2,m=function(t){let e;let n={},r=t.split(a.dateTimeDelimiter);if(r.length>2)return n;if(/:/.test(r[0])?e=r[0]:(n.date=r[0],e=r[1],a.timeZoneDelimiter.test(n.date)&&(n.date=t.split(a.timeZoneDelimiter)[0],e=t.substr(n.date.length,t.length))),e){let t=a.timezone.exec(e);t?(n.time=e.replace(t[1],""),n.timezone=t[1]):n.time=e}return n}(t);if(m.date){let t=function(t,e){let n=RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),r=t.match(n);if(!r)return{year:NaN,restDateString:""};let i=r[1]?parseInt(r[1]):null,u=r[2]?parseInt(r[2]):null;return{year:null===u?i:100*u,restDateString:t.slice((r[1]||r[2]).length)}}(m.date,g);n=function(t,e){if(null===e)return new Date(NaN);let n=t.match(c);if(!n)return new Date(NaN);let r=!!n[4],i=s(n[1]),u=s(n[2])-1,o=s(n[3]),a=s(n[4]),f=s(n[5])-1;if(r)return a>=1&&a<=53&&f>=0&&f<=6?function(t,e,n){let r=new Date(0);r.setUTCFullYear(t,0,4);let i=r.getUTCDay()||7;return r.setUTCDate(r.getUTCDate()+((e-1)*7+n+1-i)),r}(e,a,f):new Date(NaN);{let t=new Date(0);return u>=0&&u<=11&&o>=1&&o<=(v[u]||(d(e)?29:28))&&i>=1&&i<=(d(e)?366:365)?(t.setUTCFullYear(e,u,Math.max(i,o)),t):new Date(NaN)}}(t.restDateString,t.year)}if(!n||isNaN(+n))return h();let N=+n,x=0;if(m.time&&isNaN(x=function(t){let e=t.match(f);if(!e)return NaN;let n=p(e[1]),i=p(e[2]),u=p(e[3]);return(24===n?0===i&&0===u:u>=0&&u<60&&i>=0&&i<60&&n>=0&&n<25)?n*r.vh+i*r.yJ+1e3*u:NaN}(m.time)))return h();if(m.timezone){if(isNaN(o=function(t){if("Z"===t)return 0;let e=t.match(l);if(!e)return 0;let n="+"===e[1]?-1:1,i=parseInt(e[2]),u=e[3]&&parseInt(e[3])||0;return u>=0&&u<=59?n*(i*r.vh+u*r.yJ):NaN}(m.timezone)))return h()}else{let t=new Date(N+x),n=(0,u.Q)(0,e?.in);return n.setFullYear(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()),n.setHours(t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()),n}return(0,u.Q)(N+x+o,e?.in)}let a={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},c=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,f=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,l=/^([+-])(\d{2})(?::?(\d{2}))?$/;function s(t){return t?parseInt(t):1}function p(t){return t&&parseFloat(t.replace(",","."))||0}let v=[31,null,31,30,31,30,31,31,30,31,30,31];function d(t){return t%400==0||t%4==0&&t%100!=0}}}]);
@@ -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(38458),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(38458),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(38458);let o=e=>{let{children:t}=e;return(0,r.jsxs)(i.xvT,{"data-testid":"toast-success-msg",children:[(0,r.jsx)("strong",{children:"Success:"})," ",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=>{let t=(0,r.jsx)(o,{children:e});return{...s,description:t}},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([[2800],{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))},2800:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return b}});var n=r(24246),a=r(96013),i=r(27378),o=r(76573),s=r(72011),c=r.n(s),l=r(18121),d=r.n(l),u=r(65218),g=r.n(u),p=r(78622);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(28401);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(38458),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
+ (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(38458),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(38458),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(38458);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(38458),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(38458);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="--"}}]);