ethyca-fides 2.62.1b2__py2.py3-none-any.whl → 2.62.1rc0__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (272) hide show
  1. {ethyca_fides-2.62.1b2.dist-info → ethyca_fides-2.62.1rc0.dist-info}/METADATA +1 -2
  2. {ethyca_fides-2.62.1b2.dist-info → ethyca_fides-2.62.1rc0.dist-info}/RECORD +221 -223
  3. fides/_version.py +3 -3
  4. fides/api/api/v1/endpoints/privacy_request_endpoints.py +2 -2
  5. fides/api/main.py +1 -0
  6. fides/api/models/attachment.py +10 -117
  7. fides/api/models/detection_discovery.py +1 -66
  8. fides/api/models/privacy_request/privacy_request.py +1 -40
  9. fides/api/service/connectors/query_configs/saas_query_config.py +8 -3
  10. fides/api/service/connectors/saas_connector.py +4 -7
  11. fides/api/service/privacy_request/dsr_package/dsr_report_builder.py +2 -4
  12. fides/api/service/storage/s3.py +15 -40
  13. fides/api/tasks/storage.py +2 -2
  14. fides/api/util/storage_util.py +8 -14
  15. fides/config/config_proxy.py +1 -0
  16. fides/config/execution_settings.py +4 -0
  17. fides/service/error_handling/__init__.py +0 -0
  18. fides/service/error_handling/error_handler.py +202 -0
  19. fides/ui-build/static/admin/404.html +1 -1
  20. fides/ui-build/static/admin/_next/static/K1_4-1GhwfL7h4fYYQBvB/_buildManifest.js +1 -0
  21. fides/ui-build/static/admin/_next/static/chunks/1327-92a38135ee8d55ec.js +1 -0
  22. fides/ui-build/static/admin/_next/static/chunks/1817-721fdeb29c07c6be.js +1 -0
  23. fides/ui-build/static/admin/_next/static/chunks/1904-7e5354990377a849.js +1 -0
  24. fides/ui-build/static/admin/_next/static/chunks/{2310-6a5fb2f76f7b6491.js → 2310-0d63c66c2685e83c.js} +1 -1
  25. fides/ui-build/static/admin/_next/static/chunks/3119-e441b14cdab4320e.js +1 -0
  26. fides/ui-build/static/admin/_next/static/chunks/3426-e49cb4766324b2dd.js +1 -0
  27. fides/ui-build/static/admin/_next/static/chunks/{3513-293b1e54699cf3e7.js → 3513-87b54d931698986f.js} +1 -1
  28. fides/ui-build/static/admin/_next/static/chunks/355-e4340980d72b4faa.js +1 -0
  29. fides/ui-build/static/admin/_next/static/chunks/{3872-99da5bb6140ff810.js → 3872-6b828cb00fb2ce93.js} +1 -1
  30. fides/ui-build/static/admin/_next/static/chunks/4060-9593a3f98e600487.js +1 -0
  31. fides/ui-build/static/admin/_next/static/chunks/4121-5c3af879cdd8b3be.js +1 -0
  32. fides/ui-build/static/admin/_next/static/chunks/4481-8398edf74aabb8ea.js +1 -0
  33. fides/ui-build/static/admin/_next/static/chunks/4723-4c3c7a375e998c15.js +1 -0
  34. fides/ui-build/static/admin/_next/static/chunks/5258-e000d07844eccf7e.js +1 -0
  35. fides/ui-build/static/admin/_next/static/chunks/{5487-218e4847b8250fbb.js → 5487-62955c11bab63734.js} +1 -1
  36. fides/ui-build/static/admin/_next/static/chunks/5626-1b636798faad78e1.js +1 -0
  37. fides/ui-build/static/admin/_next/static/chunks/5683-44966a05fa5ad566.js +1 -0
  38. fides/ui-build/static/admin/_next/static/chunks/5826-ce34f25ac2eeb807.js +1 -0
  39. fides/ui-build/static/admin/_next/static/chunks/5973-56d90405c3616068.js +1 -0
  40. fides/ui-build/static/admin/_next/static/chunks/6277-c35c8cc806f7571f.js +1 -0
  41. fides/ui-build/static/admin/_next/static/chunks/6853-0cee00c9da26a40e.js +1 -0
  42. fides/ui-build/static/admin/_next/static/chunks/{6954-04030a21a0c8cf5a.js → 6954-d02d474ba30756b2.js} +1 -1
  43. fides/ui-build/static/admin/_next/static/chunks/79-e5884e6878fc1bbb.js +1 -0
  44. fides/ui-build/static/admin/_next/static/chunks/7980-e17dda2f50ec76b8.js +1 -0
  45. fides/ui-build/static/admin/_next/static/chunks/{9494-d1fd4fb83c3d4836.js → 9494-0df032fe6ee531a5.js} +1 -1
  46. fides/ui-build/static/admin/_next/static/chunks/9767-74320abc2e9a4550.js +1 -0
  47. fides/ui-build/static/admin/_next/static/chunks/pages/{_app-94950df9c97cd079.js → _app-371b155655c83a1e.js} +69 -69
  48. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/{manual-1292fd216f2839c7.js → manual-7d789458fb296270.js} +1 -1
  49. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/{multiple-2ffc37614e9d1fa9.js → multiple-90320455052466cd.js} +1 -1
  50. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems-a69f8946466471aa.js +1 -0
  51. fides/ui-build/static/admin/_next/static/chunks/pages/consent/configure/{add-vendors-c8033d6560635046.js → add-vendors-bcc515a765c0119d.js} +1 -1
  52. fides/ui-build/static/admin/_next/static/chunks/pages/consent/configure-49b9f1b56262dfdc.js +1 -0
  53. fides/ui-build/static/admin/_next/static/chunks/pages/consent/{privacy-experience-fd71fb440dbe60e4.js → privacy-experience-5ef03041a530b0e2.js} +1 -1
  54. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices-12f3ba4609bc2ba5.js +1 -0
  55. fides/ui-build/static/admin/_next/static/chunks/pages/consent/{properties-5960170d492acb03.js → properties-ffa15d7ff64a9f05.js} +1 -1
  56. fides/ui-build/static/admin/_next/static/chunks/pages/consent/reporting-b959d61c2a3682b3.js +1 -0
  57. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]/{[resourceUrn]-18e3faf7963962e4.js → [resourceUrn]-7ddf45ffd49533b0.js} +1 -1
  58. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/{[projectUrn]-a10a0f3e6592f350.js → [projectUrn]-ecf23116a845188a.js} +1 -1
  59. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/{projects-6971531bb09dff3a.js → projects-79f8e613827c55c1.js} +1 -1
  60. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/resources/{[resourceUrn]-7320524a47104798.js → [resourceUrn]-ed213bc1b7041aa2.js} +1 -1
  61. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/{resources-51d99174c8006eb5.js → resources-1f033ca5a0702018.js} +1 -1
  62. fides/ui-build/static/admin/_next/static/chunks/pages/{data-catalog-4dbc71d8be9765f3.js → data-catalog-e950d41b75f86c85.js} +1 -1
  63. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]/[systemId]-84ead584a88ab662.js +1 -0
  64. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]-90f1975f559fff3e.js +1 -0
  65. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center-4b820a3173f35504.js +1 -0
  66. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{activity-db3853a09933097a.js → activity-beedbc38ee2b0094.js} +1 -1
  67. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/detection/{[resourceUrn]-4c526db0c30c488a.js → [resourceUrn]-f38b3ef885a29ea6.js} +1 -1
  68. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{detection-6f27dbb7c8edc69d.js → detection-29fd0d5a73f13a00.js} +1 -1
  69. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/discovery/{[resourceUrn]-562d2b8ae90dd1f0.js → [resourceUrn]-9a80241f1028c470.js} +1 -1
  70. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{discovery-fe7f51502eda57c9.js → discovery-c58333981b1522c9.js} +1 -1
  71. fides/ui-build/static/admin/_next/static/chunks/pages/{datamap-3aaa99709d83a1f6.js → datamap-2d6f95b2769a0936.js} +1 -1
  72. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]/{[...subfieldNames]-c08363922838022a.js → [...subfieldNames]-3536ae978741b659.js} +1 -1
  73. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/{[collectionName]-f12df2140e309dfb.js → [collectionName]-8b5afe14cf42a4ac.js} +1 -1
  74. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/{[datasetId]-3f564c8d6cfb03d4.js → [datasetId]-b8dca4298b5bb085.js} +1 -1
  75. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/new-1e26702b1a7e0e12.js +1 -0
  76. fides/ui-build/static/admin/_next/static/chunks/pages/dataset-1f0c4e2e5d0b5bf6.js +1 -0
  77. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/{[id]-b078218865a8fd28.js → [id]-ebf54ea9874c59ae.js} +1 -1
  78. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/new-c39e8e2269883796.js +1 -0
  79. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection-9db81467fa254996.js +1 -0
  80. fides/ui-build/static/admin/_next/static/chunks/pages/{index-2e6ba5382358fcf8.js → index-868b60407eae35da.js} +1 -1
  81. fides/ui-build/static/admin/_next/static/chunks/pages/integrations/[id]-ebc41649161f7fb9.js +1 -0
  82. fides/ui-build/static/admin/_next/static/chunks/pages/integrations-b89b9f68ccc69c1b.js +1 -0
  83. fides/ui-build/static/admin/_next/static/chunks/pages/{messaging-71166bf207804754.js → messaging-5f41afae411cd8a4.js} +1 -1
  84. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/[id]-928430cd40c35ef2.js +1 -0
  85. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/messaging-07ef58b04404479d.js +1 -0
  86. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/storage-595ed9f6ca438020.js +1 -0
  87. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests-b3384299166bcd1e.js +1 -0
  88. fides/ui-build/static/admin/_next/static/chunks/pages/{properties-4a5e8ec41574c6b5.js → properties-f00530710b699afd.js} +1 -1
  89. fides/ui-build/static/admin/_next/static/chunks/pages/reporting/datamap-6a6016708efb5f4f.js +1 -0
  90. fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent/[configuration_id]/[purpose_id]-ba15c12c89ee10f8.js +1 -0
  91. fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent-0f2daeec241bd1a2.js +1 -0
  92. fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields-0401208a3128fa4d.js +1 -0
  93. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{domain-records-92e8246170b492b5.js → domain-records-0daa256958675a23.js} +1 -1
  94. fides/ui-build/static/admin/_next/static/chunks/pages/settings/locations-4fbab6716326060d.js +1 -0
  95. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{organization-b235f961f9ca39a6.js → organization-9404a6b0b2951992.js} +1 -1
  96. fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]/{test-datasets-99cd1a12ae0373b0.js → test-datasets-48be14ad09ed4133.js} +1 -1
  97. fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/{[id]-01006a55ac873135.js → [id]-b03403fed4dd8805.js} +1 -1
  98. fides/ui-build/static/admin/_next/static/chunks/pages/{systems-45990d85a4c5739b.js → systems-ae591953b24e2fc9.js} +1 -1
  99. fides/ui-build/static/admin/_next/static/chunks/pages/taxonomy-913efe5371344de6.js +1 -0
  100. fides/ui-build/static/admin/_next/static/chunks/pages/user-management/profile/[id]-dc11ba29dbd4708b.js +1 -0
  101. fides/ui-build/static/admin/_next/static/chunks/pages/user-management-c0b2113b44f46112.js +1 -0
  102. fides/ui-build/static/admin/_next/static/css/b89fc4b36b501cf6.css +1 -0
  103. fides/ui-build/static/admin/_next/static/css/{1b227ba7eabbfe2f.css → c0c2eb63ad3e7390.css} +1 -1
  104. fides/ui-build/static/admin/add-systems/manual.html +1 -1
  105. fides/ui-build/static/admin/add-systems/multiple.html +1 -1
  106. fides/ui-build/static/admin/add-systems.html +1 -1
  107. fides/ui-build/static/admin/consent/configure/add-vendors.html +1 -1
  108. fides/ui-build/static/admin/consent/configure.html +1 -1
  109. fides/ui-build/static/admin/consent/privacy-experience/[id].html +1 -1
  110. fides/ui-build/static/admin/consent/privacy-experience/new.html +1 -1
  111. fides/ui-build/static/admin/consent/privacy-experience.html +1 -1
  112. fides/ui-build/static/admin/consent/privacy-notices/[id].html +1 -1
  113. fides/ui-build/static/admin/consent/privacy-notices/new.html +1 -1
  114. fides/ui-build/static/admin/consent/privacy-notices.html +1 -1
  115. fides/ui-build/static/admin/consent/properties.html +1 -1
  116. fides/ui-build/static/admin/consent/reporting.html +1 -1
  117. fides/ui-build/static/admin/consent.html +1 -1
  118. fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn].html +1 -1
  119. fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn].html +1 -1
  120. fides/ui-build/static/admin/data-catalog/[systemId]/projects.html +1 -1
  121. fides/ui-build/static/admin/data-catalog/[systemId]/resources/[resourceUrn].html +1 -1
  122. fides/ui-build/static/admin/data-catalog/[systemId]/resources.html +1 -1
  123. fides/ui-build/static/admin/data-catalog.html +1 -1
  124. fides/ui-build/static/admin/data-discovery/action-center/[monitorId]/[systemId].html +1 -1
  125. fides/ui-build/static/admin/data-discovery/action-center/[monitorId].html +1 -1
  126. fides/ui-build/static/admin/data-discovery/action-center.html +1 -1
  127. fides/ui-build/static/admin/data-discovery/activity.html +1 -1
  128. fides/ui-build/static/admin/data-discovery/detection/[resourceUrn].html +1 -1
  129. fides/ui-build/static/admin/data-discovery/detection.html +1 -1
  130. fides/ui-build/static/admin/data-discovery/discovery/[resourceUrn].html +1 -1
  131. fides/ui-build/static/admin/data-discovery/discovery.html +1 -1
  132. fides/ui-build/static/admin/datamap.html +1 -1
  133. fides/ui-build/static/admin/dataset/[datasetId]/[collectionName]/[...subfieldNames].html +1 -1
  134. fides/ui-build/static/admin/dataset/[datasetId]/[collectionName].html +1 -1
  135. fides/ui-build/static/admin/dataset/[datasetId].html +1 -1
  136. fides/ui-build/static/admin/dataset/new.html +1 -1
  137. fides/ui-build/static/admin/dataset.html +1 -1
  138. fides/ui-build/static/admin/datastore-connection/[id].html +1 -1
  139. fides/ui-build/static/admin/datastore-connection/new.html +1 -1
  140. fides/ui-build/static/admin/datastore-connection.html +1 -1
  141. fides/ui-build/static/admin/index.html +1 -1
  142. fides/ui-build/static/admin/integrations/[id].html +1 -1
  143. fides/ui-build/static/admin/integrations.html +1 -1
  144. fides/ui-build/static/admin/lib/fides-ext-gpp.js +1 -1
  145. fides/ui-build/static/admin/lib/fides-headless.js +1 -1
  146. fides/ui-build/static/admin/lib/fides-preview.js +1 -1
  147. fides/ui-build/static/admin/lib/fides-tcf.js +2 -2
  148. fides/ui-build/static/admin/lib/fides.js +2 -2
  149. fides/ui-build/static/admin/login/[provider].html +1 -1
  150. fides/ui-build/static/admin/login.html +1 -1
  151. fides/ui-build/static/admin/messaging/[id].html +1 -1
  152. fides/ui-build/static/admin/messaging/add-template.html +1 -1
  153. fides/ui-build/static/admin/messaging.html +1 -1
  154. fides/ui-build/static/admin/poc/ant-components.html +1 -1
  155. fides/ui-build/static/admin/poc/form-experiments/AntForm.html +1 -1
  156. fides/ui-build/static/admin/poc/form-experiments/FormikAntFormItem.html +1 -1
  157. fides/ui-build/static/admin/poc/form-experiments/FormikControlled.html +1 -1
  158. fides/ui-build/static/admin/poc/form-experiments/FormikField.html +1 -1
  159. fides/ui-build/static/admin/poc/form-experiments/FormikSpreadField.html +1 -1
  160. fides/ui-build/static/admin/poc/forms.html +1 -1
  161. fides/ui-build/static/admin/privacy-requests/[id].html +1 -1
  162. fides/ui-build/static/admin/privacy-requests/configure/messaging.html +1 -1
  163. fides/ui-build/static/admin/privacy-requests/configure/storage.html +1 -1
  164. fides/ui-build/static/admin/privacy-requests/configure.html +1 -1
  165. fides/ui-build/static/admin/privacy-requests.html +1 -1
  166. fides/ui-build/static/admin/properties/[id].html +1 -1
  167. fides/ui-build/static/admin/properties/add-property.html +1 -1
  168. fides/ui-build/static/admin/properties.html +1 -1
  169. fides/ui-build/static/admin/reporting/datamap.html +1 -1
  170. fides/ui-build/static/admin/settings/about.html +1 -1
  171. fides/ui-build/static/admin/settings/consent/[configuration_id]/[purpose_id].html +1 -1
  172. fides/ui-build/static/admin/settings/consent.html +1 -1
  173. fides/ui-build/static/admin/settings/custom-fields.html +1 -1
  174. fides/ui-build/static/admin/settings/domain-records.html +1 -1
  175. fides/ui-build/static/admin/settings/domains.html +1 -1
  176. fides/ui-build/static/admin/settings/email-templates.html +1 -1
  177. fides/ui-build/static/admin/settings/locations.html +1 -1
  178. fides/ui-build/static/admin/settings/organization.html +1 -1
  179. fides/ui-build/static/admin/settings/regulations.html +1 -1
  180. fides/ui-build/static/admin/systems/configure/[id]/test-datasets.html +1 -1
  181. fides/ui-build/static/admin/systems/configure/[id].html +1 -1
  182. fides/ui-build/static/admin/systems.html +1 -1
  183. fides/ui-build/static/admin/taxonomy.html +1 -1
  184. fides/ui-build/static/admin/user-management/new.html +1 -1
  185. fides/ui-build/static/admin/user-management/profile/[id].html +1 -1
  186. fides/ui-build/static/admin/user-management.html +1 -1
  187. fides/api/alembic/migrations/versions/2263583b0e44_add_shared_monitor_config.py +0 -82
  188. fides/ui-build/static/admin/_next/static/chunks/1327-da0303f70d12fb20.js +0 -1
  189. fides/ui-build/static/admin/_next/static/chunks/1817-d2543e460cec0dcb.js +0 -1
  190. fides/ui-build/static/admin/_next/static/chunks/1904-25e5d4f1b8146fb3.js +0 -1
  191. fides/ui-build/static/admin/_next/static/chunks/3119-b5e40d8d24af1e79.js +0 -1
  192. fides/ui-build/static/admin/_next/static/chunks/3426-77fccf2c9a5e10cd.js +0 -1
  193. fides/ui-build/static/admin/_next/static/chunks/3923-c6dcaeaa3267f254.js +0 -1
  194. fides/ui-build/static/admin/_next/static/chunks/401-a882199f6c94a4dc.js +0 -1
  195. fides/ui-build/static/admin/_next/static/chunks/4060-c657e58514e91e91.js +0 -1
  196. fides/ui-build/static/admin/_next/static/chunks/4121-ec1d8faa3cf5783c.js +0 -1
  197. fides/ui-build/static/admin/_next/static/chunks/4481-9357e3930d35073b.js +0 -1
  198. fides/ui-build/static/admin/_next/static/chunks/5258-49e73e5998c01254.js +0 -1
  199. fides/ui-build/static/admin/_next/static/chunks/5683-3d5c4194b1b1493e.js +0 -1
  200. fides/ui-build/static/admin/_next/static/chunks/5973-d776c0029db45971.js +0 -1
  201. fides/ui-build/static/admin/_next/static/chunks/6277-db781b6c1dde3c84.js +0 -1
  202. fides/ui-build/static/admin/_next/static/chunks/6853-348fe2ba132b400c.js +0 -1
  203. fides/ui-build/static/admin/_next/static/chunks/7553-0f3e9e7eaf1a8b62.js +0 -1
  204. fides/ui-build/static/admin/_next/static/chunks/79-d877d3bde220da44.js +0 -1
  205. fides/ui-build/static/admin/_next/static/chunks/796-7424eb6391142ccd.js +0 -1
  206. fides/ui-build/static/admin/_next/static/chunks/7980-041df432c4d3a68b.js +0 -1
  207. fides/ui-build/static/admin/_next/static/chunks/9767-f8ea7d0127f81294.js +0 -1
  208. fides/ui-build/static/admin/_next/static/chunks/9965-92f4a28823a5e623.js +0 -1
  209. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems-0234733a90ed5127.js +0 -1
  210. fides/ui-build/static/admin/_next/static/chunks/pages/consent/configure-2ba21b95aa3bb15e.js +0 -1
  211. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices-5a63fc903408412e.js +0 -1
  212. fides/ui-build/static/admin/_next/static/chunks/pages/consent/reporting-80bd51f8217edae4.js +0 -1
  213. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]/[systemId]-67ddc090cf949af4.js +0 -1
  214. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]-07ff657ee49e5742.js +0 -1
  215. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center-dbc8c95c22b9f2aa.js +0 -1
  216. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/new-157b00d23b651d12.js +0 -1
  217. fides/ui-build/static/admin/_next/static/chunks/pages/dataset-9d29dd6cf109891d.js +0 -1
  218. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/new-b01f89d250ff52af.js +0 -1
  219. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection-9fc15228581786e6.js +0 -1
  220. fides/ui-build/static/admin/_next/static/chunks/pages/integrations/[id]-43abc599f0768331.js +0 -1
  221. fides/ui-build/static/admin/_next/static/chunks/pages/integrations-d69c9f1007e76046.js +0 -1
  222. fides/ui-build/static/admin/_next/static/chunks/pages/poc/table-migration-fec150afcfeb3fb5.js +0 -1
  223. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/[id]-2862630f0e9e484b.js +0 -1
  224. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/messaging-35e58b5ed6b12b2b.js +0 -1
  225. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/storage-bb02092af39446da.js +0 -1
  226. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests-6baa485385ce0678.js +0 -1
  227. fides/ui-build/static/admin/_next/static/chunks/pages/reporting/datamap-707551df97d5eebd.js +0 -1
  228. fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent/[configuration_id]/[purpose_id]-e4df123bef1ff2b1.js +0 -1
  229. fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent-2fd6b0ff9b6741fc.js +0 -1
  230. fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields-3a829c53d5d723d2.js +0 -1
  231. fides/ui-build/static/admin/_next/static/chunks/pages/settings/locations-4194ce716b81480d.js +0 -1
  232. fides/ui-build/static/admin/_next/static/chunks/pages/taxonomy-ec739e169cd5eafe.js +0 -1
  233. fides/ui-build/static/admin/_next/static/chunks/pages/user-management/profile/[id]-603c2bdbd8dc00ca.js +0 -1
  234. fides/ui-build/static/admin/_next/static/chunks/pages/user-management-592e497369673e1a.js +0 -1
  235. fides/ui-build/static/admin/_next/static/css/5ded47c57dae5baf.css +0 -1
  236. fides/ui-build/static/admin/_next/static/ulYEH5vwbFjKDz3nI321R/_buildManifest.js +0 -1
  237. fides/ui-build/static/admin/poc/table-migration.html +0 -1
  238. {ethyca_fides-2.62.1b2.dist-info → ethyca_fides-2.62.1rc0.dist-info}/WHEEL +0 -0
  239. {ethyca_fides-2.62.1b2.dist-info → ethyca_fides-2.62.1rc0.dist-info}/entry_points.txt +0 -0
  240. {ethyca_fides-2.62.1b2.dist-info → ethyca_fides-2.62.1rc0.dist-info}/licenses/LICENSE +0 -0
  241. {ethyca_fides-2.62.1b2.dist-info → ethyca_fides-2.62.1rc0.dist-info}/top_level.txt +0 -0
  242. /fides/ui-build/static/admin/_next/static/{ulYEH5vwbFjKDz3nI321R → K1_4-1GhwfL7h4fYYQBvB}/_ssgManifest.js +0 -0
  243. /fides/ui-build/static/admin/_next/static/chunks/{1099-b652e6f9a0cd778b.js → 1099-98458e8e9ff67508.js} +0 -0
  244. /fides/ui-build/static/admin/_next/static/chunks/{1100-e19e94b0a6486255.js → 1100-4106d99f5e1ebd75.js} +0 -0
  245. /fides/ui-build/static/admin/_next/static/chunks/{2921-771dc5d9e95dc6b4.js → 2921-ca04a0476e2e56c5.js} +0 -0
  246. /fides/ui-build/static/admin/_next/static/chunks/{3505-313087fc1744a0ca.js → 3505-e58b93f9c1cbdcad.js} +0 -0
  247. /fides/ui-build/static/admin/_next/static/chunks/{69-ef4c11c574b4e6dd.js → 69-dc52e39d26a4ad14.js} +0 -0
  248. /fides/ui-build/static/admin/_next/static/chunks/{8433-755359b501d32eaa.js → 8433-a77c2cd1c1a6887e.js} +0 -0
  249. /fides/ui-build/static/admin/_next/static/chunks/{8499-06ab15acbfec037c.js → 8499-34a34015c91fc38b.js} +0 -0
  250. /fides/ui-build/static/admin/_next/static/chunks/{9327-b691be8352e31b58.js → 9327-a25347d72bfbe680.js} +0 -0
  251. /fides/ui-build/static/admin/_next/static/chunks/pages/{404-e868487119cd14fc.js → 404-c00773c4c6e930af.js} +0 -0
  252. /fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience/{[id]-94391554a7607c5b.js → [id]-d4137bb7fdc1ac6e.js} +0 -0
  253. /fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{[id]-596dd2a35b455f21.js → [id]-a5a95ac63b1ce206.js} +0 -0
  254. /fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{new-fa7f0d2639e12a5a.js → new-946ce1a2aa1500d4.js} +0 -0
  255. /fides/ui-build/static/admin/_next/static/chunks/pages/{consent-dd2a0e3b536b8b42.js → consent-7797e367dd946a18.js} +0 -0
  256. /fides/ui-build/static/admin/_next/static/chunks/pages/messaging/{[id]-111b07344f1ee9e4.js → [id]-22812f08e81bd4f3.js} +0 -0
  257. /fides/ui-build/static/admin/_next/static/chunks/pages/messaging/{add-template-c41f368fb6b35de4.js → add-template-ca22869201847ccc.js} +0 -0
  258. /fides/ui-build/static/admin/_next/static/chunks/pages/poc/{ant-components-3dabaf6828acb2cb.js → ant-components-173bd3ad45ea61c6.js} +0 -0
  259. /fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{AntForm-784081c774042249.js → AntForm-4dfe984ad80927cd.js} +0 -0
  260. /fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{FormikAntFormItem-63905f2382f158cd.js → FormikAntFormItem-f790e1ea5cbc26c0.js} +0 -0
  261. /fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{FormikControlled-43f6eab28eae7b56.js → FormikControlled-af9e682ec620e990.js} +0 -0
  262. /fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{FormikField-e4a07abc908fc9b5.js → FormikField-6ce407101daa6000.js} +0 -0
  263. /fides/ui-build/static/admin/_next/static/chunks/pages/poc/{forms-71a3bfb94280fc49.js → forms-9ee8cf14a93eaa4a.js} +0 -0
  264. /fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/{configure-42213855a0a8c209.js → configure-25a3add8e7982e43.js} +0 -0
  265. /fides/ui-build/static/admin/_next/static/chunks/pages/properties/{[id]-d547a1da0b74f00f.js → [id]-081f13526443e0a6.js} +0 -0
  266. /fides/ui-build/static/admin/_next/static/chunks/pages/properties/{add-property-a7de6f8409a76358.js → add-property-17fb474e458b63e7.js} +0 -0
  267. /fides/ui-build/static/admin/_next/static/chunks/pages/settings/{about-704fc28e61b17247.js → about-177919b4ccf8f660.js} +0 -0
  268. /fides/ui-build/static/admin/_next/static/chunks/pages/settings/{domains-f0e9ee8756a65540.js → domains-26810d1ffedcd156.js} +0 -0
  269. /fides/ui-build/static/admin/_next/static/chunks/pages/settings/{email-templates-a4771098466af1ed.js → email-templates-eb78b645d0c1d4ea.js} +0 -0
  270. /fides/ui-build/static/admin/_next/static/chunks/pages/settings/{regulations-8cff97fe57f42ed3.js → regulations-0a3aa951ef4a44ba.js} +0 -0
  271. /fides/ui-build/static/admin/_next/static/chunks/pages/user-management/{new-b124cc24b930c9e1.js → new-69176abe09cf9b52.js} +0 -0
  272. /fides/ui-build/static/admin/_next/static/chunks/{webpack-3a61b934ba2fb620.js → webpack-abd3efcb23c0bb03.js} +0 -0
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3872],{77213:function(e,t,i){i.d(t,{Z:function(){return f}});var n=i(24246),r=i(91942),s=i(88038),l=i.n(s),d=i(86677);i(27378);var a=i(25980),o=i(90867),c=i(77830),u=()=>{let e=(0,d.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(c.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:c}=e,f=(0,a.hz)(),x=(0,d.useRouter)(),h="/privacy-requests"===x.pathname||"/datastore-connection"===x.pathname,p=!(f.flags.privacyRequestsConfiguration&&h),{data:m}=(0,o.JE)(void 0,{skip:p}),{data:j}=(0,o.PW)(void 0,{skip:p}),v=f.flags.privacyRequestsConfiguration&&(!m||!j)&&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",...c,children:[v?(0,n.jsx)(u,{}):null,t]})]})}},58754:function(e,t,i){var n=i(24246),r=i(91942),s=i(70788);t.Z=e=>{let{heading:t,breadcrumbItems:i,isSticky:l=!0,children:d,rightContent:a,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.lQT,{className:i||d?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,a&&(0,n.jsx)("div",{"data-testid":"page-header-right-content",children:a})]}),!!i&&(0,n.jsx)(s.m,{className:d?"pb-4":void 0,items:i,"data-testid":"page-breadcrumb"}),d]})}},79789:function(e,t,i){i.d(t,{Hn:function(){return d},XU:function(){return l},Z5:function(){return a},aG:function(){return u},cB:function(){return s},hX:function(){return c},vQ:function(){return o}});var n=i(24246),r=i(91942);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})},d=e=>{let{children:t,href:i}=e;return(0,n.jsx)(r.rUS,{href:i,textDecoration:"underline",isExternal:!0,children:t})},a=e=>{let{children:t}=e;return(0,n.jsx)(r.QI$,{fontSize:"14px",mb:4,children:t})},o=e=>{let{children:t}=e;return(0,n.jsx)(r.GSI,{fontSize:"14px",mb:4,ml:6,children:t})},c=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){i.d(t,{m:function(){return o}});var n=i(24246),r=i(91942),s=i(79894),l=i.n(s),d=i(27378);let{Text:a}=r.AntTypography,o=e=>{let{items:t,...i}=e,s=(0,d.useMemo)(()=>null==t?void 0:t.map((e,i)=>{let s=i===t.length-1,d={...e},o=d.onClick&&!d.href;return("string"==typeof d.title&&(d.title=(0,n.jsx)(a,{style:{color:"inherit",maxWidth:s?void 0:400},ellipsis:!s,children:d.title})),o)?d.title=(0,n.jsx)(r.wpx,{type:"text",size:"small",icon:d.icon,onClick:d.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:d.title}):(d.icon&&(d.title=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"anticon align-text-bottom",children:d.icon}),d.title]})),d.href&&d.title&&(d.title=(0,n.jsx)(l(),{href:d.href,className:"ant-breadcrumb-link",children:d.title}),delete d.href)),d}),[t]);return(0,n.jsx)(r.zrq,{items:s,...i})}},89200:function(e,t,i){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){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})}},98800:function(e,t,i){var n=i(24246),r=i(91942),s=i(79789);t.Z=e=>{var t;let{dataset:i,onClose:l}=e;return(0,n.jsxs)(r.dys,{isOpen:!!i,onClose:l,size:"md",children:[(0,n.jsx)(r.P1B,{}),(0,n.jsxs)(r.scA,{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})]})]})]})]})}},81406:function(e,t,i){var n=i(24246),r=i(91942);t.Z=()=>(0,n.jsxs)(r.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"empty-state",alignSelf:"center",margin:"auto",children:[(0,n.jsx)(r.xvT,{fontSize:"md",fontWeight:"600",children:"No resources found"}),(0,n.jsx)(r.xvT,{fontSize:"sm",children:"You're up to date!"})]})},69172:function(e,t,i){var n=i(24246),r=i(92222),s=i(91942),l=i(27378),d=i(14481),a=i(72625),o=i(89200),c=i(5945),u=i(8151);let f=(0,r.Cl)(),x=e=>{let{onDetailClick:t}=e;return(0,n.jsxs)(s.v2r,{children:[(0,n.jsx)(s.j2t,{as:s.wpx,size:"small",type:"text",icon:(0,n.jsx)(s.nXP,{transform:"rotate(90deg)"}),className:"w-6 gap-0","data-testid":"dataset-actions"}),(0,n.jsx)(s.qyq,{children:(0,n.jsx)(s.sNh,{"data-testid":"view-dataset-details",onClick:t,children:"View details"})})]})};t.Z=e=>{let{onDetailClick:t}=e;return(0,l.useMemo)(()=>[f.accessor(e=>e.name,{id:"name",cell:e=>(0,n.jsx)(o.Z,{resource:e.row.original}),header:"Dataset"}),f.display({id:"status",cell:e=>{let{row:t}=e;return(0,n.jsx)(c.Z,{status:(0,u.u)(t.original)})},header:"Status"}),f.accessor(e=>e.description,{id:"description",cell:e=>(0,n.jsx)(d.G3,{value:e.getValue()}),header:"Description"}),f.accessor(e=>e.updated_at,{id:"lastUpdated",cell:e=>(0,n.jsx)(a.Cy,{time:e.getValue()}),header:"Updated"}),f.display({id:"actions",cell:e=>{let{row:i}=e;return(0,n.jsx)(x,{onDetailClick:()=>t(i.original)})},size:25,meta:{disableRowClick:!0}})],[t])}},8151:function(e,t,i){i.d(t,{e:function(){return r},u:function(){return l}});var n,r,s=i(61317);(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,d=e.child_diff_statuses&&(e.child_diff_statuses[s.LL.CLASSIFICATION_ADDITION]||e.child_diff_statuses[s.LL.CLASSIFICATION_UPDATE]);return l||d?"In review":"Approved"}},7940:function(e,t,i){i.d(t,{G:function(){return r}});var n=i(61317);let r=e=>{var t,i,r;return e?e.resource_type?e.resource_type:(null===(t=e.schemas)||void 0===t?void 0:t.length)?n.D$.DATABASE:(null===(i=e.tables)||void 0===i?void 0:i.length)?n.D$.SCHEMA:(null===(r=e.fields)||void 0===r?void 0:r.length)?n.D$.TABLE:n.D$.FIELD:void 0}},98559:function(e,t){t.Z=e=>{let{name:t,urn:i,monitor_config_id:n,database_name:r,schema_name:s,table_name:l,top_level_field_name:d,top_level_field_urn:a}=e;if(!d)return t;let o=i.split(".");return a?i.replace("".concat(a).concat("."),""):([n,r,s,l,d].forEach(e=>{if(e){let t=o.indexOf(e);t>-1&&o.splice(t,1)}}),o.join("."))}},36168:function(e,t){t.Z=e=>{var t;return!!e.parent_table_urn&&null!==(t=e.sub_field_urns)&&void 0!==t&&!!t.length&&!e.top_level_field_name}},80356:function(e,t,i){var n=i(7940),r=i(36168),s=i(61317);t.Z=e=>(0,n.G)(e)!==s.D$.FIELD||(0,r.Z)(e)}}]);
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3872],{77213:function(e,t,i){i.d(t,{Z:function(){return f}});var n=i(24246),r=i(91942),s=i(88038),l=i.n(s),d=i(86677);i(27378);var a=i(25980),o=i(90867),c=i(77830),u=()=>{let e=(0,d.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(c.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:c}=e,f=(0,a.hz)(),x=(0,d.useRouter)(),h="/privacy-requests"===x.pathname||"/datastore-connection"===x.pathname,p=!(f.flags.privacyRequestsConfiguration&&h),{data:m}=(0,o.JE)(void 0,{skip:p}),{data:j}=(0,o.PW)(void 0,{skip:p}),v=f.flags.privacyRequestsConfiguration&&(!m||!j)&&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",...c,children:[v?(0,n.jsx)(u,{}):null,t]})]})}},58754:function(e,t,i){var n=i(24246),r=i(91942),s=i(70788);t.Z=e=>{let{heading:t,breadcrumbItems:i,isSticky:l=!0,children:d,rightContent:a,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.lQT,{className:i||d?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,a&&(0,n.jsx)("div",{"data-testid":"page-header-right-content",children:a})]}),!!i&&(0,n.jsx)(s.m,{className:d?"pb-4":void 0,items:i,"data-testid":"page-breadcrumb"}),d]})}},79789:function(e,t,i){i.d(t,{Hn:function(){return d},XU:function(){return l},Z5:function(){return a},aG:function(){return u},cB:function(){return s},hX:function(){return c},vQ:function(){return o}});var n=i(24246),r=i(91942);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})},d=e=>{let{children:t,href:i}=e;return(0,n.jsx)(r.rUS,{href:i,textDecoration:"underline",isExternal:!0,children:t})},a=e=>{let{children:t}=e;return(0,n.jsx)(r.QI$,{fontSize:"14px",mb:4,children:t})},o=e=>{let{children:t}=e;return(0,n.jsx)(r.GSI,{fontSize:"14px",mb:4,ml:6,children:t})},c=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){i.d(t,{m:function(){return o}});var n=i(24246),r=i(91942),s=i(79894),l=i.n(s),d=i(27378);let{Text:a}=r.AntTypography,o=e=>{let{items:t,...i}=e,s=(0,d.useMemo)(()=>null==t?void 0:t.map((e,i)=>{let s=i===t.length-1,d={...e},o=d.onClick&&!d.href;return("string"==typeof d.title&&(d.title=(0,n.jsx)(a,{style:{color:"inherit",maxWidth:s?void 0:400},ellipsis:!s,children:d.title})),o)?d.title=(0,n.jsx)(r.wpx,{type:"text",size:"small",icon:d.icon,onClick:d.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:d.title}):(d.icon&&(d.title=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"anticon align-text-bottom",children:d.icon}),d.title]})),d.href&&d.title&&(d.title=(0,n.jsx)(l(),{href:d.href,className:"ant-breadcrumb-link",children:d.title}),delete d.href)),d}),[t]);return(0,n.jsx)(r.zrq,{items:s,...i})}},89200:function(e,t,i){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){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})}},98800:function(e,t,i){var n=i(24246),r=i(91942),s=i(79789);t.Z=e=>{var t;let{dataset:i,onClose:l}=e;return(0,n.jsxs)(r.dys,{isOpen:!!i,onClose:l,size:"md",children:[(0,n.jsx)(r.P1B,{}),(0,n.jsxs)(r.scA,{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})]})]})]})]})}},81406:function(e,t,i){var n=i(24246),r=i(91942);t.Z=()=>(0,n.jsxs)(r.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"empty-state",alignSelf:"center",margin:"auto",children:[(0,n.jsx)(r.xvT,{fontSize:"md",fontWeight:"600",children:"No resources found"}),(0,n.jsx)(r.xvT,{fontSize:"sm",children:"You're up to date!"})]})},69172:function(e,t,i){var n=i(24246),r=i(92222),s=i(91942),l=i(27378),d=i(14481),a=i(72625),o=i(89200),c=i(5945),u=i(8151);let f=(0,r.Cl)(),x=e=>{let{onDetailClick:t}=e;return(0,n.jsxs)(s.v2r,{children:[(0,n.jsx)(s.j2t,{as:s.wpx,size:"small",type:"text",icon:(0,n.jsx)(s.nXP,{transform:"rotate(90deg)"}),className:"w-6 gap-0","data-testid":"dataset-actions"}),(0,n.jsx)(s.qyq,{children:(0,n.jsx)(s.sNh,{"data-testid":"view-dataset-details",onClick:t,children:"View details"})})]})};t.Z=e=>{let{onDetailClick:t}=e;return(0,l.useMemo)(()=>[f.accessor(e=>e.name,{id:"name",cell:e=>(0,n.jsx)(o.Z,{resource:e.row.original}),header:"Dataset"}),f.display({id:"status",cell:e=>{let{row:t}=e;return(0,n.jsx)(c.Z,{status:(0,u.u)(t.original)})},header:"Status"}),f.accessor(e=>e.description,{id:"description",cell:e=>(0,n.jsx)(d.G3,{value:e.getValue()}),header:"Description"}),f.accessor(e=>e.updated_at,{id:"lastUpdated",cell:e=>(0,n.jsx)(a.Cy,{time:e.getValue()}),header:"Updated"}),f.display({id:"actions",cell:e=>{let{row:i}=e;return(0,n.jsx)(x,{onDetailClick:()=>t(i.original)})},size:25,meta:{disableRowClick:!0}})],[t])}},8151:function(e,t,i){i.d(t,{e:function(){return r},u:function(){return l}});var n,r,s=i(7448);(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,d=e.child_diff_statuses&&(e.child_diff_statuses[s.LL.CLASSIFICATION_ADDITION]||e.child_diff_statuses[s.LL.CLASSIFICATION_UPDATE]);return l||d?"In review":"Approved"}},7940:function(e,t,i){i.d(t,{G:function(){return r}});var n=i(7448);let r=e=>{var t,i,r;return e?e.resource_type?e.resource_type:(null===(t=e.schemas)||void 0===t?void 0:t.length)?n.D$.DATABASE:(null===(i=e.tables)||void 0===i?void 0:i.length)?n.D$.SCHEMA:(null===(r=e.fields)||void 0===r?void 0:r.length)?n.D$.TABLE:n.D$.FIELD:void 0}},98559:function(e,t){t.Z=e=>{let{name:t,urn:i,monitor_config_id:n,database_name:r,schema_name:s,table_name:l,top_level_field_name:d,top_level_field_urn:a}=e;if(!d)return t;let o=i.split(".");return a?i.replace("".concat(a).concat("."),""):([n,r,s,l,d].forEach(e=>{if(e){let t=o.indexOf(e);t>-1&&o.splice(t,1)}}),o.join("."))}},36168:function(e,t){t.Z=e=>{var t;return!!e.parent_table_urn&&null!==(t=e.sub_field_urns)&&void 0!==t&&!!t.length&&!e.top_level_field_name}},80356:function(e,t,i){var n=i(7940),r=i(36168),s=i(7448);t.Z=e=>(0,n.G)(e)!==s.D$.FIELD||(0,r.Z)(e)}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4060],{58754:function(e,t,n){var r=n(24246),i=n(91942),l=n(70788);t.Z=e=>{let{heading:t,breadcrumbItems:n,isSticky:o=!0,children:s,rightContent:a,style:d,...c}=e;return(0,r.jsxs)("div",{...c,style:o?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...d}:{paddingBottom:"24px",...d},children:[(0,r.jsxs)(i.jqI,{justify:"space-between",children:["string"==typeof t?(0,r.jsx)(i.lQT,{className:n||s?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,a&&(0,r.jsx)("div",{"data-testid":"page-header-right-content",children:a})]}),!!n&&(0,r.jsx)(l.m,{className:s?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),s]})}},19904:function(e,t,n){n.d(t,{Tg:function(){return o}});var r=n(24246),i=n(16134),l=n(31793);let o=e=>(0,i.C)(l.uu).filter(t=>e.includes(t)).length>0;t.ZP=e=>{let{scopes:t,children:n}=e;return o(t)?(0,r.jsx)(r.Fragment,{children:n}):null}},97181:function(e,t,n){n.d(t,{d:function(){return d}});var r=n(24246),i=n(91942),l=n(34090),o=n(27378),s=n(46238),a=n(40324);let d=e=>{let{name:t,label:n,labelProps:d,tooltip:c,isRequired:u,layout:p="inline",helperText:x,...h}=e,[m,f,{setValue:g}]=(0,l.U$)(t),y=!!(f.touched&&f.error),[j,v]=(0,o.useState)("");m.value||"tags"!==h.mode&&"multiple"!==h.mode||(m.value=[]),"tags"===h.mode&&"string"==typeof m.value&&(m.value=[m.value]);let b="tags"===h.mode?(e,t)=>e?e.value!==j||m.value.includes(j)?h.optionRender?h.optionRender(e,t):e.label:'Create "'.concat(j,'"'):void 0:h.optionRender||void 0,C=e=>{v(e),h.onSearch&&h.onSearch(e)},w=(e,t)=>{g(e),h.onChange&&h.onChange(e,t)};return"inline"===p?(0,r.jsx)(i.NIc,{isInvalid:y,isRequired:u,children:(0,r.jsxs)(i.rjZ,{templateColumns:n?"1fr 3fr":"1fr",children:[n?(0,r.jsx)(a.__,{htmlFor:h.id||t,...d,children:n}):null,(0,r.jsxs)(i.jqI,{align:"center",children:[(0,r.jsxs)(i.jqI,{vertical:!0,flex:1,className:"mr-2",children:[(0,r.jsx)(i.WPr,{...m,id:h.id||t,"data-testid":"controlled-select-".concat(m.name),...h,optionRender:b,onSearch:"tags"===h.mode?C:void 0,onChange:w,value:m.value||void 0,status:y?"error":void 0}),x&&(0,r.jsx)(i.Q6r,{children:x}),(0,r.jsx)(a.Bc,{isInvalid:y,message:f.error,fieldName:m.name})]}),(0,r.jsx)(s.b,{label:c})]})]})}):(0,r.jsx)(i.NIc,{isInvalid:y,isRequired:u,children:(0,r.jsxs)(i.gCW,{alignItems:"start",children:[(0,r.jsxs)(i.jqI,{align:"center",children:[n?(0,r.jsx)(a.__,{htmlFor:h.id||t,fontSize:"xs",my:0,mr:1,...d,children:n}):null,(0,r.jsx)(s.b,{label:c})]}),(0,r.jsx)(i.WPr,{...m,id:h.id||t,"data-testid":"controlled-select-".concat(m.name),...h,optionRender:b,onSearch:"tags"===h.mode?C:void 0,onChange:w,value:m.value||void 0,status:y?"error":void 0}),x&&(0,r.jsx)(i.Q6r,{style:{marginTop:0},children:x}),(0,r.jsx)(a.Bc,{isInvalid:y,message:f.error,fieldName:m.name})]})})}},10342:function(e,t,n){var r=n(24246),i=n(91942),l=n(46238);t.Z=e=>{let{title:t,tooltip:n,children:o,...s}=e;return(0,r.jsxs)(i.xuv,{borderRadius:"md",border:"1px solid",borderColor:"gray.200",...s,children:[(0,r.jsxs)(i.X6q,{as:"h3",fontSize:"sm",fontWeight:"semibold",color:"gray.700",py:4,px:6,backgroundColor:"gray.50",borderRadius:"md",textAlign:"left",children:[t,n?(0,r.jsx)(i.xvT,{as:"span",mx:1,children:(0,r.jsx)(l.b,{label:n})}):void 0]}),(0,r.jsx)(i.Kqy,{p:6,spacing:6,children:o})]})}},58452:function(e,t,n){var r=n(24246),i=n(91942);t.Z=e=>{let{isOpen:t,onClose:n,onConfirm:l,onCancel:o,title:s,message:a,cancelButtonText:d,continueButtonText:c,isLoading:u,returnFocusOnClose:p,isCentered:x,testId:h="confirmation-modal",icon:m}=e;return(0,r.jsxs)(i.u_l,{isOpen:t,onClose:n,size:"lg",returnFocusOnClose:null==p||p,isCentered:x,children:[(0,r.jsx)(i.ZAr,{}),(0,r.jsxs)(i.hzk,{textAlign:"center",p:6,"data-testid":h,children:[m?(0,r.jsx)(i.M5Y,{mb:2,children:m}):null,s?(0,r.jsx)(i.xBx,{fontWeight:"medium",pb:0,children:s}):null,a?(0,r.jsx)(i.fef,{children:a}):null,(0,r.jsx)(i.mzw,{children:(0,r.jsxs)(i.MIq,{columns:2,width:"100%",children:[(0,r.jsx)(i.wpx,{onClick:()=>{o&&o(),n()},size:"large",className:"mr-3","data-testid":"cancel-btn",disabled:u,children:d||"Cancel"}),(0,r.jsx)(i.wpx,{type:"primary",size:"large",onClick:l,"data-testid":"continue-btn",loading:u,children:c||"Continue"})]})})]})]})}},70788:function(e,t,n){n.d(t,{m:function(){return d}});var r=n(24246),i=n(91942),l=n(79894),o=n.n(l),s=n(27378);let{Text:a}=i.AntTypography,d=e=>{let{items:t,...n}=e,l=(0,s.useMemo)(()=>null==t?void 0:t.map((e,n)=>{let l=n===t.length-1,s={...e},d=s.onClick&&!s.href;return("string"==typeof s.title&&(s.title=(0,r.jsx)(a,{style:{color:"inherit",maxWidth:l?void 0:400},ellipsis:!l,children:s.title})),d)?s.title=(0,r.jsx)(i.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,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"anticon align-text-bottom",children:s.icon}),s.title]})),s.href&&s.title&&(s.title=(0,r.jsx)(o(),{href:s.href,className:"ant-breadcrumb-link",children:s.title}),delete s.href)),s}),[t]);return(0,r.jsx)(i.zrq,{items:l,...n})}},3642:function(e,t,n){var r=n(24246),i=n(91942),l=n(86677),o=n.n(l),s=n(27378),a=n(812),d=n(58452),c=n(77830),u=n(19904),p=n(46628),x=n(98795),h=n(7448);t.Z=e=>{let{property:t,triggerComponent:n}=e,l=(0,i.pmc)(),m=(0,i.qY0)(),[f]=(0,x.YW)(),g=t.experiences.length>0,y=async()=>{m.onClose();let e=await f(t.id);if((0,a.D4)(e)){l((0,p.Vo)((0,a.e$)(e.error)));return}o().push("".concat(c.ru)),l((0,p.t5)("Property ".concat(t.name," deleted successfully")))};return(0,r.jsxs)(u.ZP,{scopes:[h.Sh.PROPERTY_DELETE],children:[(0,r.jsx)(i.esZ,{title:g?"All of the experiences on this property must be unlinked before the property can be deleted.":void 0,placement:"right",children:(0,r.jsx)("span",{children:s.cloneElement(n,{onClick:e=>{e.stopPropagation(),g||m.onOpen()},disabled:g})})}),(0,r.jsx)(d.Z,{isOpen:m.isOpen,onClose:m.onClose,onConfirm:y,title:"Delete ".concat(t.name),message:(0,r.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,r.jsx)(i.aNP,{})})]})}},18880:function(e,t,n){var r=n(24246),i=n(91942),l=n(34090),o=n(86677),s=n(27378),a=n(16134),d=n(10342),c=n(40324),u=n(812),p=n(77830),x=n(51472),h=n(94315),m=n(7448),f=n(97181),g=n(3642);let y=()=>{var e;let t=(0,a.C)(h.Zp),n=(0,a.C)(h.G1);(0,h.cq)({page:t,size:n});let i=(0,a.C)(h.w4),{values:o,setFieldValue:s}=(0,l.u6)();return(0,r.jsx)(d.Z,{title:"Experiences",children:(0,r.jsx)(x.Z,{addButtonLabel:"Add experience",idField:"id",nameField:"name",allItems:i.map(e=>({id:e.id,name:e.name})),values:null!==(e=o.experiences)&&void 0!==e?e:[],setValues:e=>s("experiences",e),draggable:!0,baseTestId:"experience"})})};t.Z=e=>{let{property:t,handleSubmit:n}=e,a=(0,o.useRouter)(),x=()=>{a.push(p.ru)},h=(0,s.useMemo)(()=>t||{name:"",type:m.uS.WEBSITE,experiences:[],messaging_templates:[],paths:[]},[t]);return(0,r.jsx)(l.J9,{enableReinitialize:!0,initialValues:h,onSubmit:n,children:e=>{let{dirty:n,isValid:o,isSubmitting:s}=e;return(0,r.jsxs)(l.l0,{style:{paddingTop:"12px",paddingBottom:"12px"},children:[(0,r.jsx)(i.xuv,{py:3,children:(0,r.jsxs)(d.Z,{title:"Property details",children:[(0,r.jsx)(c.j0,{isRequired:!0,label:"Property name",name:"name",tooltip:"Unique name to identify this property",variant:"stacked"}),(0,r.jsx)(f.d,{isRequired:!0,label:"Type",name:"type",options:(0,u.MM)(m.uS),layout:"stacked"})]})}),(0,r.jsx)(i.xuv,{py:3,children:(0,r.jsx)(y,{})}),t&&(0,r.jsx)(i.xuv,{py:3,children:(0,r.jsx)(d.Z,{title:"Advanced settings",children:(0,r.jsx)(c.Io,{label:"Property ID",name:"id",tooltip:"Automatically generated unique ID for this property, used for developer configurations",variant:"stacked",readOnly:!0})})}),(0,r.jsxs)(i.kCb,{justifyContent:"space-between",width:"100%",paddingTop:2,children:[t&&(0,r.jsx)(g.Z,{property:t,triggerComponent:(0,r.jsx)(i.wpx,{"data-testid":"delete-property-button",loading:!1,className:"mr-3",children:"Delete"})}),(0,r.jsxs)(i.kCb,{justifyContent:"right",width:"100%",paddingTop:2,children:[(0,r.jsx)(i.wpx,{onClick:x,loading:!1,className:"mr-3",children:"Cancel"}),(0,r.jsx)(i.wpx,{htmlType:"submit",type:"primary",disabled:s||!n||!o,loading:s,children:"Save"})]})]})]})}})}},31883:function(e,t,n){n.d(t,{Bw:function(){return r.Bw},D4:function(){return r.D4}});var r=n(19043)},11055:function(e,t,n){n.d(t,{M:function(){return u}});var r=n(24246),i=n(29427),l=n(27378),o=n(40976),s=n(18397),a=n(42308),d=n(25431),c=n(39556);let u=(0,l.forwardRef)(function({children:e,as:t="ul",axis:n="y",onReorder:u,values:h,...m},f){let g=(0,a.h)(()=>s.E[t]),y=[],j=(0,l.useRef)(!1);return(0,i.k)(!!h,"Reorder.Group must be provided a values prop"),(0,l.useEffect)(()=>{j.current=!1}),(0,r.jsx)(g,{...m,ref:f,ignoreStrict:!0,children:(0,r.jsx)(o.Y.Provider,{value:{axis:n,registerItem:(e,t)=>{let r=y.findIndex(t=>e===t.value);-1!==r?y[r].layout=t[n]:y.push({value:e,layout:t[n]}),y.sort(x)},updateOrder:(e,t,n)=>{if(j.current)return;let r=function(e,t,n,r){if(!r)return e;let i=e.findIndex(e=>e.value===t);if(-1===i)return e;let l=r>0?1:-1,o=e[i+l];if(!o)return e;let s=e[i],a=o.layout,u=(0,c.t)(a.min,a.max,.5);return 1===l&&s.layout.max+n>u||-1===l&&s.layout.min+n<u?(0,d.uo)(e,i,i+l):e}(y,e,t,n);y!==r&&(j.current=!0,u(r.map(p).filter(e=>-1!==h.indexOf(e))))}},children:e})})});function p(e){return e.value}function x(e,t){return e.layout.min-t.layout.min}},7078:function(e,t,n){n.d(t,{e:function(){return b}});var r=n(24246),i=n(29427),l=n(27378),o=n(40976),s=n(18397),a=n(42308),d=n(69222),c=n(67412);function u(e){let t=(0,a.h)(()=>(0,d.BX)(e)),{isStatic:n}=(0,l.useContext)(c._);if(n){let[,n]=(0,l.useState)(e);(0,l.useEffect)(()=>t.on("change",n),[])}return t}var p=n(13998);let x=e=>e&&"object"==typeof e&&e.mix,h=e=>x(e)?e.mix:void 0;var m=n(64306),f=n(95984);function g(e,t){let n=u(t()),r=()=>n.set(t());return r(),(0,m.L)(()=>{let t=()=>f.Wi.preRender(r,!1,!0),n=e.map(e=>e.on("change",t));return()=>{n.forEach(e=>e()),(0,f.Pn)(r)}}),n}function y(e,t){let n=(0,a.h)(()=>[]);return g(e,()=>{n.length=0;let r=e.length;for(let t=0;t<r;t++)n[t]=e[t].get();return t(n)})}var j=n(3522);function v(e,t=0){return(0,j.i)(e)?e:u(t)}let b=(0,l.forwardRef)(function({children:e,style:t={},value:n,as:c="li",onDrag:u,layout:x=!0,...m},f){let j=(0,a.h)(()=>s.E[c]),b=(0,l.useContext)(o.Y),C={x:v(t.x),y:v(t.y)},w=function(e,t,n,r){if("function"==typeof e)return function(e){d.S1.current=[],e();let t=g(d.S1.current,e);return d.S1.current=void 0,t}(e);let i="function"==typeof t?t:function(...e){let t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],l=e[2+n],o=e[3+n],s=(0,p.s)(i,l,{mixer:h(l[0]),...o});return t?s(r):s}(t,void 0,void 0);return Array.isArray(e)?y(e,i):y([e],([e])=>i(e))}([C.x,C.y],([e,t])=>e||t?1:"unset");(0,i.k)(!!b,"Reorder.Item must be a child of Reorder.Group");let{axis:k,registerItem:R,updateOrder:I}=b;return(0,r.jsx)(j,{drag:k,...m,dragSnapToOrigin:!0,style:{...t,x:C.x,y:C.y,zIndex:w},layout:x,onDrag:(e,t)=>{let{velocity:r}=t;r[k]&&I(n,C[k].get(),r[k]),u&&u(e,t)},onLayoutMeasure:e=>R(n,e),ref:f,ignoreStrict:!0,children:e})})},40976:function(e,t,n){n.d(t,{Y:function(){return r}});let r=(0,n(27378).createContext)(null)},47397:function(e,t,n){n.d(t,{o:function(){return o}});var r=n(42308);class i{constructor(){this.componentControls=new Set}subscribe(e){return this.componentControls.add(e),()=>this.componentControls.delete(e)}start(e,t){this.componentControls.forEach(n=>{n.start(e.nativeEvent||e,t)})}}let l=()=>new i;function o(){return(0,r.h)(l)}},76649:function(e,t,n){n.d(t,{Ln:function(){return r}});let r=(e,t)=>l(e,t),i=Symbol("SOME"),l=(e,t)=>"string"==typeof e?e===typeof t:Array.isArray(e)?i in e?e.some(e=>l(e,t)):!!Array.isArray(t)&&(0===e.length||t.every(t=>e.some(e=>l(e,t)))):"object"==typeof t&&null!==t&&Object.entries(e).every(([e,n])=>l(n,t[e]));class o{static narrow(e){return new o(t=>r(e,t))}constructor(e){this.NF=void 0,this.NF=e}satisfied(e){return this.NF(e)}build(e){return e}and(e){let t=this.NF,n=e instanceof o?e.NF:e instanceof Function?e:t=>r(e,t);return new o(e=>t(e)&&n(e))}}new o(e=>!0)}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4121],{7617:function(e,s,a){a.d(s,{q:function(){return i}});var t=a(24246),n=a(91942);let i=e=>{let{label:s,isDisabled:a,...i}=e;return(0,t.jsx)(n.OK9,{"data-testid":"tab-".concat(s),_selected:{fontWeight:"600",color:"complimentary.500",borderColor:"complimentary.500"},fontSize:i.fontSize,fontWeight:"500",color:"gray.500",isDisabled:a||!1,children:s})};s.Z=e=>{let{data:s,border:a="partial",...l}=e;return(0,t.jsxs)(n.mQc,{colorScheme:"complimentary",...l,children:[(0,t.jsx)(n.tdY,{width:"partial"===a?"max-content":void 0,children:s.map(e=>(0,t.jsx)(i,{label:e.label,isDisabled:e.isDisabled,fontSize:l.fontSize},e.label))}),(0,t.jsx)(n.nPR,{children:s.map(e=>(0,t.jsx)(n.x45,{px:0,"data-testid":"tab-panel-".concat(e.label),children:e.content},e.label))})]})}},58452:function(e,s,a){var t=a(24246),n=a(91942);s.Z=e=>{let{isOpen:s,onClose:a,onConfirm:i,onCancel:l,title:r,message:d,cancelButtonText:o,continueButtonText:c,isLoading:h,returnFocusOnClose:m,isCentered:x,testId:p="confirmation-modal",icon:u}=e;return(0,t.jsxs)(n.u_l,{isOpen:s,onClose:a,size:"lg",returnFocusOnClose:null==m||m,isCentered:x,children:[(0,t.jsx)(n.ZAr,{}),(0,t.jsxs)(n.hzk,{textAlign:"center",p:6,"data-testid":p,children:[u?(0,t.jsx)(n.M5Y,{mb:2,children:u}):null,r?(0,t.jsx)(n.xBx,{fontWeight:"medium",pb:0,children:r}):null,d?(0,t.jsx)(n.fef,{children:d}):null,(0,t.jsx)(n.mzw,{children:(0,t.jsxs)(n.MIq,{columns:2,width:"100%",children:[(0,t.jsx)(n.wpx,{onClick:()=>{l&&l(),a()},size:"large",className:"mr-3","data-testid":"cancel-btn",disabled:h,children:o||"Cancel"}),(0,t.jsx)(n.wpx,{type:"primary",size:"large",onClick:i,"data-testid":"continue-btn",loading:h,children:c||"Continue"})]})})]})]})}},44121:function(e,s,a){a.d(s,{Z:function(){return ee}});var t=a(24246),n=a(91942),i=a(91437),l=()=>(0,t.jsxs)(n.xuv,{children:[(0,t.jsx)(n.xuv,{pb:4,fontSize:"18px",fontWeight:"semibold",children:"Role Description"}),(0,t.jsx)(n.gCW,{spacing:4,children:i.K.map(e=>(0,t.jsxs)(n.xuv,{width:"100%",padding:4,borderRadius:"md",backgroundColor:"gray.75",fontSize:"14px",children:[(0,t.jsx)(n.xuv,{fontWeight:"semibold",children:e.label}),(0,t.jsx)(n.xuv,{color:"gray.700",children:e.description})]},e.roleKey))})]}),r=a(16134),d=a(7617),o=a(7448),c=a(19904),h=a(34090),m=a(86677),x=a(27378),p=a(812),u=a(46238),j=a(58452),w=a(77830),g=a(46628),b=a(26917),f=a(1315),y=a(95492),v=a(65497);let _=e=>{let{assignedSystems:s,onAssignedSystemChange:a}=e,i=(0,r.C)(v.Ux);if((0,v.d6)(i,{skip:!i}),0===s.length)return null;let l=e=>{a(s.filter(s=>s.fides_key!==e.fides_key))};return(0,t.jsxs)(n.iA_,{size:"sm","data-testid":"assign-systems-delete-table",children:[(0,t.jsx)(n.hrZ,{children:(0,t.jsxs)(n.Tr,{children:[(0,t.jsx)(n.Th,{children:"System"}),(0,t.jsx)(n.Th,{})]})}),(0,t.jsx)(n.p3B,{children:s.map(e=>(0,t.jsxs)(n.Tr,{_hover:{bg:"gray.50"},"data-testid":"row-".concat(e.fides_key),children:[(0,t.jsx)(n.Td,{children:e.name}),(0,t.jsx)(n.Td,{textAlign:"end",children:(0,t.jsx)(n.wpx,{"aria-label":"Unassign system from user",icon:(0,t.jsx)(y.l,{}),onClick:()=>l(e),"data-testid":"unassign-btn"})})]},e.fides_key))})]})};var C=e=>{let{allSystems:s,assignedSystems:a,onChange:i}=e,l=e=>{a.find(s=>s.fides_key===e.fides_key)?i(a.filter(s=>s.fides_key!==e.fides_key)):i([...a,e])};return(0,t.jsx)(n.xuv,{overflowY:"auto",maxHeight:"300px",children:(0,t.jsxs)(n.iA_,{size:"sm","data-testid":"assign-systems-table",maxHeight:"50vh",overflowY:"scroll",children:[(0,t.jsx)(n.hrZ,{position:"sticky",top:0,background:"white",zIndex:1,children:(0,t.jsxs)(n.Tr,{children:[(0,t.jsx)(n.Th,{children:"System"}),(0,t.jsx)(n.Th,{children:"Assign"})]})}),(0,t.jsx)(n.p3B,{children:s.map(e=>{let s=!!a.find(s=>s.fides_key===e.fides_key);return(0,t.jsxs)(n.Tr,{_hover:{bg:"gray.50"},"data-testid":"row-".concat(e.fides_key),children:[(0,t.jsx)(n.Td,{children:e.name}),(0,t.jsx)(n.Td,{children:(0,t.jsx)(n.rAg,{checked:s,onChange:()=>l(e),"data-testid":"assign-switch"})})]},e.fides_key)})})]})})};let S=(e,s)=>{var a,t;return(null===(a=e.name)||void 0===a?void 0:a.toLocaleLowerCase().includes(s.toLocaleLowerCase()))||(null===(t=e.description)||void 0===t?void 0:t.toLocaleLowerCase().includes(s.toLocaleLowerCase()))};var k=e=>{let{isOpen:s,onClose:a,assignedSystems:i,onAssignedSystemChange:l}=e,{data:r}=(0,f.K3)(),[d,o]=(0,x.useState)(""),[c,h]=(0,x.useState)(i),m=async()=>{l(c),a()},p=!r||0===r.length,u=(0,x.useMemo)(()=>r?r.filter(e=>S(e,d)):[],[r,d]),j=(0,x.useMemo)(()=>{let e=new Set(c.map(e=>e.fides_key));return u.every(s=>e.has(s.fides_key))},[u,c]);return(0,t.jsxs)(n.u_l,{isOpen:s,onClose:a,size:"2xl",children:[(0,t.jsx)(n.ZAr,{}),(0,t.jsxs)(n.hzk,{p:8,"data-testid":"confirmation-modal",children:[(0,t.jsxs)(n.xBx,{fontWeight:"medium",display:"flex",justifyContent:"space-between",alignItems:"center",children:[(0,t.jsx)(n.xvT,{children:"Assign systems"}),(0,t.jsxs)(n.j8w,{color:"success",children:["Assigned to ",i.length," systems"]})]}),(0,t.jsx)(n.fef,{"data-testid":"assign-systems-modal-body",children:p?(0,t.jsx)(n.xvT,{children:"No systems found"}):(0,t.jsxs)(n.Kqy,{spacing:4,children:[(0,t.jsxs)(n.kCb,{justifyContent:"space-between",children:[(0,t.jsx)(n.xvT,{fontSize:"sm",flexGrow:1,fontWeight:"medium",children:"Assign systems in your organization to this user"}),(0,t.jsx)(n.xuv,{children:(0,t.jsxs)(n.NIc,{display:"flex",alignItems:"center",children:[(0,t.jsx)(n.lXp,{fontSize:"sm",htmlFor:"assign-all-systems",mb:"0",children:"Assign all systems"}),(0,t.jsx)(n.rAg,{size:"small",id:"assign-all-systems",checked:j,onChange:e=>{e&&r?h(u):h(r?r.filter(e=>!u.includes(e)):[])},"data-testid":"assign-all-systems-toggle"})]})})]}),(0,t.jsx)(b.Z,{value:d,onChange:o,placeholder:"Search for systems","data-testid":"system-search",withIcon:!0}),(0,t.jsx)(C,{allSystems:u,assignedSystems:c,onChange:h})]})}),(0,t.jsx)(n.mzw,{justifyContent:"flex-start",children:(0,t.jsxs)("div",{children:[(0,t.jsx)(n.wpx,{onClick:a,className:"mr-2","data-testid":"cancel-btn",children:"Cancel"}),p?null:(0,t.jsx)(n.wpx,{type:"primary",onClick:m,"data-testid":"confirm-btn",children:"Confirm"})]})})]})]})},P=e=>{let{label:s,roleKey:a,isSelected:i,isDisabled:l,assignedSystems:r,onAssignedSystemChange:d}=e,{setFieldValue:c}=(0,h.u6)(),m=(0,n.qY0)(),x=l?"You do not have sufficient permissions to assign this role.":void 0;return i?(0,t.jsxs)(n.Kqy,{borderRadius:"md",border:"1px solid",borderColor:"gray.200",p:4,backgroundColor:"gray.50","aria-selected":"true",spacing:4,"data-testid":"selected",children:[(0,t.jsxs)(n.kCb,{alignItems:"center",justifyContent:"space-between",children:[(0,t.jsx)(n.xvT,{fontSize:"md",fontWeight:"semibold",children:s}),(0,t.jsx)(n.StI,{})]}),a!==o.A7.APPROVER?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(n.kCb,{alignItems:"center",children:[(0,t.jsx)(n.xvT,{fontSize:"sm",fontWeight:"semibold",mr:1,children:"Assigned systems"}),(0,t.jsx)(u.b,{label:"Assigned systems refer to those systems that have been specifically allocated to a user for management purposes. Users assigned to a system possess full edit permissions and are listed as the Data Steward for the respective system."})]}),(0,t.jsx)(n.wpx,{disabled:l,title:x,type:"primary",size:"small",onClick:m.onOpen,"data-testid":"assign-systems-btn",children:"Assign systems +"}),(0,t.jsx)(_,{assignedSystems:r,onAssignedSystemChange:d}),m.isOpen?(0,t.jsx)(k,{isOpen:m.isOpen,onClose:m.onClose,assignedSystems:r,onAssignedSystemChange:d}):null]}):null]}):(0,t.jsx)(n.wpx,{onClick:()=>{c("roles",[a])},"data-testid":"role-option-".concat(s),title:x,disabled:l,children:s})};let A={roles:[]};var z=()=>{var e;let s=(0,n.pmc)(),a=(0,m.useRouter)(),l=(0,r.C)(v.Ux);(0,v.d6)(l,{skip:!l});let{isOpen:d,onOpen:b,onClose:f}=(0,n.qY0)(),y=(0,r.C)(v.R$),[_,C]=(0,x.useState)(y),[S]=(0,v.G$)();(0,x.useEffect)(()=>{C(y)},[y]);let{data:k,isLoading:z}=(0,v.gU)(null!=l?l:"",{skip:!l}),[R]=(0,v.lD)(),T=async e=>{if(d&&f(),!l)return;let a=e.roles.includes(o.A7.APPROVER),t=await R({user_id:l,payload:{roles:e.roles}});if((0,p.D4)(t)){s((0,g.Vo)((0,p.e$)(t.error)));return}if(!a){let e=_.map(e=>e.fides_key),a=await S({userId:l,fidesKeys:e});if((0,p.D4)(a)){s((0,g.Vo)((0,p.e$)(a.error)));return}}s((0,g.t5)("Permissions updated"))},I=async e=>{l&&(_.length>0&&e.roles.includes(o.A7.APPROVER)?b():await T(e))},O=(0,c.Tg)([o.Sh.USER_PERMISSION_ASSIGN_OWNERS]);if(!l)return null;if(z)return(0,t.jsx)(n.$jN,{});if(!O&&(null==k?void 0:null===(e=k.roles)||void 0===e?void 0:e.includes(o.A7.OWNER)))return(0,t.jsx)(n.xvT,{"data-testid":"insufficient-access",children:"You do not have sufficient access to change this user's permissions."});let q=(null==k?void 0:k.roles)?{roles:k.roles}:A;return(0,t.jsx)(h.J9,{onSubmit:I,initialValues:q,enableReinitialize:!0,children:e=>{let{values:s,isSubmitting:l,dirty:r}=e;return(0,t.jsxs)(h.l0,{children:[(0,t.jsxs)(n.Kqy,{spacing:7,children:[(0,t.jsxs)(n.Kqy,{spacing:3,"data-testid":"role-options",children:[(0,t.jsxs)(n.kCb,{alignItems:"center",children:[(0,t.jsx)(n.xvT,{fontSize:"sm",fontWeight:"semibold",mr:1,children:"User role"}),(0,t.jsx)(u.b,{label:"A user's role in the organization determines what parts of the UI they can access and which functions are available to them."})]}),i.K.map(e=>{let a=s.roles.indexOf(e.roleKey)>=0;return(0,t.jsx)(P,{isSelected:a,isDisabled:e.roleKey===o.A7.OWNER&&!O,assignedSystems:_,onAssignedSystemChange:C,...e},e.roleKey)})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(n.wpx,{onClick:()=>a.push(w.e3),children:"Cancel"}),(0,t.jsx)(n.wpx,{type:"primary",htmlType:"submit",loading:l,disabled:!r&&_===y,"data-testid":"save-btn",children:"Save"})]})]}),(0,t.jsx)(j.Z,{isOpen:d,onClose:f,onConfirm:()=>T(s),title:"Change role to Approver",testId:"downgrade-to-approver-confirmation-modal",continueButtonText:"Yes",message:(0,t.jsx)(n.xvT,{children:"Switching to an approver role will remove all assigned systems. Do you wish to proceed?"})})]})}})},R=a(61038),T=a(55484),I=a(25980),O=a(40324),q=a(96006),E=a(7426);let{useGetEmailInviteStatusQuery:N}=a(78780).u.injectEndpoints({endpoints:e=>({getEmailInviteStatus:e.query({query:()=>({url:"/messaging/email-invite/status"}),providesTags:()=>["Email Invite Status"]})})});var Z=a(76174),U=a(91317),W=a(31883);let D=T.Ry().shape({password:q.a.label("Password"),passwordConfirmation:T.Z_().required().oneOf([T.iH("password")],"Passwords must match").label("Password confirmation")}),K={password:"",passwordConfirmation:""},B=e=>{let s=(0,n.qY0)(),a=(0,n.pmc)(),[t]=(0,v.ls)(),i=async n=>{let i=await t({id:e,new_password:n.password});(0,W.D4)(i)?a((0,g.Vo)((0,p.e$)(i.error))):(a((0,g.t5)("Successfully reset user's password. Please inform the user of their new password.")),s.onClose())};return{...s,handleResetPassword:i}};var V=e=>{let{id:s}=e,{handleResetPassword:a,isOpen:i,onClose:l,onOpen:r}=B(s);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.wpx,{onClick:r,"data-testid":"reset-password-btn",children:"Reset password"}),(0,t.jsxs)(n.u_l,{isCentered:!0,isOpen:i,onClose:l,children:[(0,t.jsx)(n.ZAr,{}),(0,t.jsx)(n.hzk,{children:(0,t.jsx)(h.J9,{initialValues:K,validationSchema:D,onSubmit:a,children:e=>{let{isSubmitting:s,dirty:a,isValid:i}=e;return(0,t.jsxs)(h.l0,{children:[(0,t.jsx)(n.xBx,{children:"Reset Password"}),(0,t.jsx)(n.olH,{}),(0,t.jsx)(n.fef,{children:(0,t.jsxs)(n.Kqy,{direction:"column",spacing:4,children:[(0,t.jsx)(n.xvT,{mb:2,children:"Choose a new password for this user."}),(0,t.jsx)(O.j0,{name:"password",label:"Password",placeholder:"********",type:"password",tooltip:"Password must contain at least 8 characters, 1 number, 1 capital letter, 1 lowercase letter, and at least 1 symbol.",autoComplete:"new-password"}),(0,t.jsx)(O.j0,{name:"passwordConfirmation",label:"Confirm Password",placeholder:"********",type:"password",tooltip:"Must match above password.",autoComplete:"confirm-password"})]})}),(0,t.jsx)(n.mzw,{children:(0,t.jsxs)("div",{className:"w-full gap-2",children:[(0,t.jsx)(n.wpx,{onClick:l,className:"w-1/2",children:"Cancel"}),(0,t.jsx)(n.wpx,{type:"primary",disabled:!a||!i,loading:s,htmlType:"submit",className:"w-1/2","data-testid":"submit-btn",children:"Change Password"})]})})]})}})})]})]})};let Y=e=>{let s=(0,n.qY0)(),a=(0,n.pmc)(),[t,i]=(0,x.useState)(""),[l,r]=(0,x.useState)(""),[d,{isLoading:o}]=(0,v.ev)(),c=!!(e&&l&&t),h=async()=>{c&&d({id:e,old_password:t,new_password:l}).unwrap().then(()=>{a((0,g.t5)("Password updated")),s.onClose()})};return{...s,changePasswordValidation:c,handleChange:e=>{"oldPassword"===e.target.name?i(e.target.value):r(e.target.value)},handleChangePassword:h,isLoading:o,newPasswordValue:l,oldPasswordValue:t}};var L=e=>{let{id:s}=e,{changePasswordValidation:a,handleChange:i,handleChangePassword:l,isLoading:r,isOpen:d,newPasswordValue:o,oldPasswordValue:c,onClose:h,onOpen:m}=Y(s);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.wpx,{onClick:m,"data-testid":"update-password-btn",children:"Update password"}),(0,t.jsxs)(n.u_l,{isCentered:!0,isOpen:d,onClose:h,children:[(0,t.jsx)(n.ZAr,{}),(0,t.jsxs)(n.hzk,{children:[(0,t.jsx)(n.xBx,{children:"Update Password"}),(0,t.jsx)(n.olH,{}),(0,t.jsx)(n.fef,{pb:6,children:(0,t.jsxs)(n.Kqy,{direction:"column",spacing:"15px",children:[(0,t.jsx)(n.NIc,{children:(0,t.jsx)(n.IIB,{isRequired:!0,name:"oldPassword",onChange:i,placeholder:"Old Password",type:"password",value:c,"data-testid":"input-oldPassword"})}),(0,t.jsx)(n.NIc,{children:(0,t.jsx)(n.IIB,{isRequired:!0,name:"newPassword",onChange:i,placeholder:"New Password",type:"password",value:o,"data-testid":"input-newPassword"})})]})}),(0,t.jsxs)(n.mzw,{children:[(0,t.jsx)(n.wpx,{onClick:h,className:"mr-2 w-1/2",children:"Cancel"}),(0,t.jsx)(n.wpx,{type:"primary",disabled:!a,loading:r,onClick:l,htmlType:"submit",className:"mr-3 w-1/2","data-testid":"submit-btn",children:"Change Password"})]})]})]})]})},F=()=>{let e=(0,r.C)(v.Ux),s=(0,r.C)(U.dy),a=!!s&&s.id===e;return(0,t.jsx)(n.xuv,{children:e?(0,t.jsxs)(n.Ugi,{children:[a?(0,t.jsx)(L,{id:e}):null,(0,t.jsx)(c.ZP,{scopes:[o.Sh.USER_PASSWORD_RESET],children:(0,t.jsx)(V,{id:e})})]}):null})};let M=(e,s,a,t)=>!e||e&&!s||e&&s&&!0===a&&!!t,$=(e,s,a)=>!!(e&&s&&a),H=(e,s,a,t,n,i)=>!!e&&!s&&M(a,t,n,i),G=(e,s,a,t)=>M(e,s,a,t),J={username:"",first_name:"",email_address:"",last_name:"",password:"",password_login_enabled:!1},Q=(e,s,a,t,n)=>T.Ry().shape({username:T.Z_().required().label("Username"),email_address:T.Z_().email().required().label("Email address"),first_name:T.Z_().label("First name"),last_name:T.Z_().label("Last name"),password:T.Z_().when(["password_login_enabled"],{is:i=>H(e,s,a,t,n,i),then:()=>q.a.label("Password"),otherwise:()=>T.Z_().optional().label("Password")}),password_login_enabled:T.O7().label("Allow password login")});var X=e=>{let{onSubmit:s,initialValues:a,canEditNames:i}=e,l=(0,m.useRouter)(),d=(0,n.pmc)(),o=(0,r.T)(),c=(0,n.qY0)(),{data:x}=N(),{data:u}=(0,Z.qv)();(0,E.tB)({api_set:!1});let j=(0,r.C)(v.ZC),b=(0,r.C)(E.iR),{plus:f}=(0,I.hz)(),_=(null==x?void 0:x.enabled)||!1,C=(null==b?void 0:b.allow_username_password_login)||!1,S=!j,k=!S&&!i,P=u&&u.length>0||!1,A=$(f,P,C),z=null!=a?a:J;j&&"password_login_enabled"in j&&(z={...z,password_login_enabled:!!j.password_login_enabled});let T=Q(S,_,f,P,C),q=async e=>{let a=H(S,_,f,P,C,e.password_login_enabled),t={username:e.username,email_address:e.email_address,first_name:e.first_name,last_name:e.last_name};A&&(t.password_login_enabled=e.password_login_enabled),a&&e.password&&(t.password=e.password);let n=await s(t);if((0,p.D4)(n)){d((0,g.Vo)((0,p.e$)(n.error)));return}d((0,g.t5)("".concat(S?"User created. By default, new users are set to the Viewer role. To change the role, please go to the Permissions tab.":"User updated."))),(null==n?void 0:n.data)&&o((0,v.Vv)(n.data.id))};return(0,t.jsx)(h.J9,{onSubmit:q,initialValues:z,validationSchema:T,"data-testid":"user-form",children:e=>{let{dirty:s,isSubmitting:a,isValid:i,values:r}=e;return(0,t.jsx)(h.l0,{children:(0,t.jsxs)(n.Kqy,{maxW:["xs","xs","100%"],width:"100%",spacing:7,children:[(0,t.jsxs)(n.Kqy,{spacing:6,maxWidth:"55%",children:[(0,t.jsxs)(n.kCb,{children:[(0,t.jsxs)(n.xvT,{display:"flex",alignItems:"center",fontSize:"sm",fontWeight:"semibold",children:["Profile"," ",(null==j?void 0:j.disabled)&&(0,t.jsx)(n.j8w,{color:"success",className:"ml-2","data-testid":"invite-sent-badge",children:"Invite sent"})]}),(0,t.jsx)(n.xuv,{marginLeft:"auto",children:(0,t.jsxs)(n.Ugi,{children:[G(f,P,C||!1,r.password_login_enabled)&&(0,t.jsx)(F,{"data-testid":"password-management"}),S?null:(0,t.jsxs)(n.xuv,{children:[(0,t.jsx)(n.wpx,{"aria-label":"delete",icon:(0,t.jsx)(y.l,{}),onClick:c.onOpen,"data-testid":"delete-user-btn"}),(0,t.jsx)(R.Z,{user:j,...c})]})]})})]}),(0,t.jsx)(O.j0,{name:"username",label:"Username",variant:"block",placeholder:"Enter new username",disabled:!S,isRequired:!0,"data-testid":"input-username"}),(0,t.jsx)(O.j0,{name:"email_address",label:"Email address",variant:"block",placeholder:"Enter email of user",isRequired:!0,"data-testid":"input-email-address"}),(0,t.jsx)(O.j0,{name:"first_name",label:"First name",variant:"block",placeholder:"Enter first name of user",disabled:k,"data-testid":"input-first-name"}),(0,t.jsx)(O.j0,{name:"last_name",label:"Last name",variant:"block",placeholder:"Enter last name of user",disabled:k,"data-testid":"input-last-name"}),A&&(0,t.jsx)(O.w8,{name:"password_login_enabled",label:"Allow password login",tooltip:"When enabled, user can log in with username and password. When disabled, user must use SSO.",variant:"stacked",isDisabled:!S,"data-testid":"toggle-allow-password-login",size:"default"}),H(S,_,f,P,C,r.password_login_enabled)&&(0,t.jsx)(O.j0,{name:"password",label:"Password",variant:"block",placeholder:"********",type:"password",tooltip:"Password must contain at least 8 characters, 1 number, 1 capital letter, 1 lowercase letter, and at least 1 symbol.",isRequired:!0,"data-testid":"input-password"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(n.wpx,{onClick:()=>l.push(w.e3),className:"mr-3","data-testid":"cancel-btn",children:"Cancel"}),(0,t.jsx)(n.wpx,{htmlType:"submit",type:"primary",disabled:!s||!i,loading:a,"data-testid":"save-user-btn",children:"Save"})]})]})})}})},ee=e=>{let{onSubmit:s,initialValues:a,...i}=e,h=(0,r.C)(v.Ux);(0,v.Fk)(h,{skip:!h});let m=(0,c.Tg)([o.Sh.USER_PERMISSION_UPDATE]),x=[{label:"Profile",content:(0,t.jsx)(X,{onSubmit:s,initialValues:a,...i})},{label:"Permissions",content:(0,t.jsxs)(n.kCb,{gap:"97px",children:[(0,t.jsx)(n.xuv,{w:{base:"100%",md:"50%",xl:"50%"},children:(0,t.jsx)(z,{})}),(0,t.jsx)(n.xuv,{position:"absolute",top:"96px",right:6,height:"calc(100% + 100px)",overflowY:"scroll",padding:6,w:"35%",borderLeftWidth:"1px",children:(0,t.jsx)(l,{})})]}),isDisabled:!h||!m}];return(0,t.jsx)(d.Z,{data:x})}},31883:function(e,s,a){a.d(s,{Bw:function(){return t.Bw},D4:function(){return t.D4}});var t=a(19043)}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4481],{26917:function(e,t,n){var l=n(24246),o=n(91942);t.Z=e=>{let{onChange:t,withIcon:n,onClear:i,placeholder:r,...a}=e;return(0,l.jsxs)(o.vyj.Compact,{className:"w-96","data-testid":"search-bar",children:[(0,l.jsx)(o.uFc,{autoComplete:"off",onChange:e=>t(e.target.value),placeholder:r||"Search...",prefix:n?(0,l.jsx)(o.PTu,{boxSize:4}):void 0,...a}),i?(0,l.jsx)(o.wpx,{onClick:i,children:"Clear"}):null]})}},812:function(e,t,n){n.d(t,{D4:function(){return i.D4},MM:function(){return g},Ot:function(){return c},c6:function(){return o},cj:function(){return h},e$:function(){return a},fn:function(){return s},iC:function(){return x},nU:function(){return u},tB:function(){return d}});var l,o,i=n(19043);let r="An unexpected error occurred. Please try again.",a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r;if((0,i.Bw)(e)){if((0,i.hE)(e.data))return e.data.detail;if((0,i.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,i.Dy)(e.data)||404===e.status&&(0,i.XD)(e.data))return"".concat(e.data.detail.error," (").concat(e.data.detail.fides_key,")")}return t};function s(e){return"object"==typeof e&&null!=e&&"status"in e}function c(e){return"object"==typeof e&&null!=e&&"data"in e&&"string"==typeof e.data.detail}function d(e){return"object"==typeof e&&null!=e&&"data"in e&&Array.isArray(e.data.detail)}let u=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{status:500,message:r};if((0,i.oK)(e))return{status:e.originalStatus,message:e.data};if((0,i.Bw)(e)){let{status:n}=e;return{status:n,message:a(e,t.message)}}return t},g=e=>Object.entries(e).map(e=>({value:e[1],label:e[1]}));(l=o||(o={})).GVL="gvl",l.AC="gacp",l.COMPASS="compass";let x={gvl:{label:"GVL",fullName:"Global Vendor List"},gacp:{label:"AC",fullName:"Google Additional Consent List"},compass:{label:"",fullName:""}},h=e=>{let t=e.split(".")[0];return"gacp"===t?"gacp":"gvl"===t?"gvl":"compass"}},71795:function(e,t,n){n.d(t,{_:function(){return o}});var l=n(27378);function o(e,t){let[n,o]=(0,l.useState)(()=>{if(!e)return t;try{let n=window.localStorage.getItem(e);return n?JSON.parse(n):t}catch(e){return console.error(e),t}});return[n,t=>{try{let l=t instanceof Function?t(n):t;o(l),e&&window.localStorage.setItem(e,JSON.stringify(l))}catch(e){console.error(e)}}]}},58452:function(e,t,n){var l=n(24246),o=n(91942);t.Z=e=>{let{isOpen:t,onClose:n,onConfirm:i,onCancel:r,title:a,message:s,cancelButtonText:c,continueButtonText:d,isLoading:u,returnFocusOnClose:g,isCentered:x,testId:h="confirmation-modal",icon:m}=e;return(0,l.jsxs)(o.u_l,{isOpen:t,onClose:n,size:"lg",returnFocusOnClose:null==g||g,isCentered:x,children:[(0,l.jsx)(o.ZAr,{}),(0,l.jsxs)(o.hzk,{textAlign:"center",p:6,"data-testid":h,children:[m?(0,l.jsx)(o.M5Y,{mb:2,children:m}):null,a?(0,l.jsx)(o.xBx,{fontWeight:"medium",pb:0,children:a}):null,s?(0,l.jsx)(o.fef,{children:s}):null,(0,l.jsx)(o.mzw,{children:(0,l.jsxs)(o.MIq,{columns:2,width:"100%",children:[(0,l.jsx)(o.wpx,{onClick:()=>{r&&r(),n()},size:"large",className:"mr-3","data-testid":"cancel-btn",disabled:u,children:c||"Cancel"}),(0,l.jsx)(o.wpx,{type:"primary",size:"large",onClick:i,"data-testid":"continue-btn",loading:u,children:d||"Continue"})]})})]})]})}},42904:function(e,t,n){n.d(t,{W3:function(){return r},bX:function(){return a},oi:function(){return s},s8:function(){return c}});var l=n(24246),o=n(91942),i=n(27378);let r=[25,50,100],a=e=>{let t=e.getFilteredRowModel().rows.length,{pageIndex:n}=e.getState().pagination,{pageSize:l}=e.getState().pagination,o=e.previousPage,i=!e.getCanPreviousPage(),r=e.nextPage,a=!e.getCanNextPage(),{setPageSize:s}=e;return{totalRows:t,onPreviousPageClick:o,isPreviousPageDisabled:i,onNextPageClick:r,isNextPageDisabled:a,setPageSize:s,startRange:n*l==0?1:n*l,endRange:n*l+l}},s=()=>{let e,t;let[n,l]=(0,i.useState)(r[0]),[o,a]=(0,i.useState)(1),[s,c]=(0,i.useState)(1),d=(0,i.useCallback)(()=>{a(e=>e-1)},[a]),u=(0,i.useMemo)(()=>1===o,[o]),g=(0,i.useCallback)(()=>{a(e=>e+1)},[a]),x=(0,i.useMemo)(()=>{let e=!s,t=!!s&&o===s;return e||t},[o,s]);if(s){let l=(o-1)*n;e=l+1,t=l+n}else e=0,t=0;let h=(0,i.useCallback)(()=>{a(1)},[]);return{onPreviousPageClick:d,isPreviousPageDisabled:u,onNextPageClick:g,isNextPageDisabled:x,pageSize:n,setPageSize:e=>{l(e),h()},PAGE_SIZES:r,startRange:e,endRange:t,pageIndex:o,resetPageIndexToDefault:h,setTotalPages:c}},c=e=>{let{pageSizes:t,totalRows:n,onPreviousPageClick:i,isPreviousPageDisabled:r,onNextPageClick:a,isNextPageDisabled:s,setPageSize:c,startRange:d,endRange:u}=e;return(0,l.jsxs)(o.Ugi,{ml:1,mt:3,mb:1,children:[(0,l.jsxs)(o.v2r,{children:[(0,l.jsx)(o.j2t,{as:o.wpx,size:"small","data-testid":"pagination-btn",children:(0,l.jsxs)(o.xvT,{fontSize:"xs",lineHeight:4,fontWeight:"semibold",userSelect:"none",style:{fontVariantNumeric:"tabular-nums"},children:[d.toLocaleString("en"),"-",u<=n?u.toLocaleString("en"):n.toLocaleString("en")," ","of ",n.toLocaleString("en")]})}),(0,l.jsx)(o.qyq,{minWidth:"0",children:t.map(e=>(0,l.jsxs)(o.sNh,{onClick:()=>{c(e)},"data-testid":"pageSize-".concat(e),fontSize:"xs",children:[e," per view"]},e))})]}),(0,l.jsx)(o.wpx,{icon:(0,l.jsx)(o.wyc,{}),size:"small","aria-label":"previous page",onClick:i,disabled:r}),(0,l.jsx)(o.wpx,{icon:(0,l.jsx)(o.XCv,{}),size:"small","aria-label":"next page",onClick:a,disabled:s})]})}},72625:function(e,t,n){n.d(t,{A4:function(){return v},CI:function(){return j},Cy:function(){return p},G3:function(){return m},Hm:function(){return k},Rr:function(){return y},S1:function(){return z},WP:function(){return w},k:function(){return S},mb:function(){return b},tc:function(){return C},vs:function(){return W}});var l=n(24246),o=n(7195),i=n(91942),r=n(34090),a=n(3819),s=n.n(a),c=n(27378),d=n(812),u=n(58452),g=n(46628),x=n(16394),h=n(46238);let m=e=>{var t,n;let{value:o,cellProps:r,...a}=e,c=!!(null==r?void 0:null===(t=r.cell.column.columnDef.meta)||void 0===t?void 0:t.showHeaderMenu)&&!!(null==r?void 0:null===(n=r.cellState)||void 0===n?void 0:n.isExpanded);return(0,l.jsx)(i.xvT,{fontSize:"xs",lineHeight:4,py:1.5,fontWeight:"normal",textOverflow:"ellipsis",overflow:c?void 0:"hidden",whiteSpace:c?"normal":void 0,title:c&&o?void 0:null==o?void 0:o.toString(),...a,children:s()(o)?o.toString():o})},p=e=>{let{time:t}=e;if(!t)return(0,l.jsx)(m,{value:"N/A"});let n=(0,o.B)(new Date(t),new Date,{addSuffix:!0}),r=(0,x.p6)(new Date(t));return(0,l.jsx)(i.kCb,{alignItems:"center",height:"100%",children:(0,l.jsx)(i.esZ,{title:r,children:(0,l.jsx)(i.xvT,{fontSize:"xs",lineHeight:4,fontWeight:"normal",overflow:"hidden",textOverflow:"ellipsis",children:(0,x.G8)(n)})})})},f=e=>{let{children:t,...n}=e;return(0,l.jsx)(i.kCb,{alignItems:"center",height:"100%",mr:2,overflow:"auto",...n,children:t})},v=e=>{let{value:t,suffix:n,...o}=e;return(0,l.jsx)(f,{children:(0,l.jsxs)(i.j8w,{...o,children:[t,n]})})},j=e=>{let{count:t,singSuffix:n,plSuffix:o,...r}=e,a=null;return a=1===t?(0,l.jsxs)(i.j8w,{...r,children:[t,n?" ".concat(n):null]}):(0,l.jsxs)(i.j8w,{...r,children:[t,o?" ".concat(o):null]}),(0,l.jsx)(f,{children:a})},b=e=>{let{values:t,cellProps:n,...o}=e,{isExpanded:r,isWrapped:a,version:s}=(null==n?void 0:n.cellState)||{},[d,u]=(0,c.useState)(!r),[g,x]=(0,c.useState)(!!a),[h,m]=(0,c.useState)(r?t:null==t?void 0:t.slice(0,2));return(0,c.useEffect)(()=>{u(!r)},[r,s]),(0,c.useEffect)(()=>{x(!!a)},[a]),(0,c.useEffect)(()=>{(null==t?void 0:t.length)&&m(d?t.slice(0,2):t)},[d,t]),(0,c.useMemo)(()=>(null==h?void 0:h.length)?(0,l.jsxs)(i.kCb,{alignItems:d?"center":"flex-start",flexDirection:d||g?"row":"column",flexWrap:g?"wrap":"nowrap",gap:1.5,pt:2,pb:2,overflowX:"auto",onClick:e=>{d||(e.stopPropagation(),u(!0))},cursor:d?void 0:"pointer",children:[h.map(e=>(0,l.jsx)(i.j8w,{color:"white","data-testid":e.key,...o,children:e.label},e.key)),d&&t&&t.length>2&&(0,l.jsxs)(i.wpx,{type:"link",size:"small",onClick:()=>u(!1),className:"text-xs font-normal",children:["+",t.length-2," more"]})]}):null,[h,d,g,t,o])},C=e=>{let{values:t,valueSuffix:n,cellProps:o}=e,{isExpanded:r,version:a}=(null==o?void 0:o.cellState)||{},[s,d]=(0,c.useState)(!r);return(0,c.useEffect)(()=>{d(!r)},[r,a]),(0,c.useMemo)(()=>(null==t?void 0:t.length)?1===t.length?(0,l.jsx)(i.xvT,{fontSize:"xs",lineHeight:4,fontWeight:"normal",textOverflow:"ellipsis",overflow:"hidden",children:t[0]}):(0,l.jsxs)(i.kCb,{flexDirection:"row",alignItems:"center",gap:1,pt:2,pb:2,onClick:e=>{s||(e.stopPropagation(),d(!0))},cursor:s?void 0:"pointer",children:[s&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(i.xvT,{fontSize:"xs",lineHeight:4,fontWeight:"normal",children:[t.length," ",n]}),(0,l.jsx)(i.wpx,{type:"link",size:"small",onClick:()=>d(!1),className:"text-xs font-normal",children:"View"})]}),!s&&(0,l.jsx)(i.aVo,{overflow:"hidden",children:t.map(e=>(0,l.jsx)(i.HCh,{fontSize:"xs",lineHeight:4,listStyleType:"none",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",children:e},e))})]}):null,[s,t,n])},w=e=>{let{value:t,suffix:n,cellState:o,ignoreZero:r,tagProps:a}=e,s=null;return t?(s=Array.isArray(t)?1===t.length?(0,l.jsx)(i.j8w,{...a,children:t}):(null==o?void 0:o.isExpanded)&&t.length>0?t.map((e,t)=>(0,l.jsx)(i.j8w,{...a,children:e},(null==e?void 0:e.toString())||t)):(0,l.jsxs)(i.j8w,{...a,children:[t.length,n?" ".concat(n):null]}):(0,l.jsx)(i.j8w,{...a,children:t}),(0,l.jsx)(i.kCb,{alignItems:"center",height:"100%",gap:2,overflowX:"hidden",children:s})):r?null:(0,l.jsxs)(i.j8w,{...a,children:["0",n?" ".concat(n):""]})},S=e=>{let{dataTestId:t,...n}=e;return(0,l.jsx)(i.kCb,{alignItems:"center",justifyContent:"center",onClick:e=>e.stopPropagation(),children:(0,l.jsx)(i.XZJ,{"data-testid":t||void 0,...n})})},y=e=>{let{value:t,...n}=e;return(0,l.jsx)(i.xvT,{fontSize:"xs",lineHeight:9,fontWeight:"medium",flex:1,...n,children:t})},k=e=>{let{value:t,defaultValue:n,isEditing:o,...a}=e,s=a.column.columnDef.id||"",{submitForm:c}=(0,r.u6)();return o?(0,l.jsx)(r.Rt,{name:s,as:i.uFc,maxLength:80,placeholder:n,"aria-label":"Edit column name",size:"small","data-testid":"column-".concat(s,"-input"),onPressEnter:c}):(0,l.jsx)(y,{value:t,...a})},z=e=>{let{enabled:t,onToggle:n,title:o,message:r,isDisabled:a,...s}=e,c=(0,i.qY0)(),x=(0,i.pmc)(),h=async e=>{let{enable:t}=e,l=await n(t);(0,d.D4)(l)&&x((0,g.Vo)((0,d.e$)(l.error)))},m=async e=>{e?await h({enable:!0}):c.onOpen()};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(i.rAg,{checked:t,onChange:m,disabled:a,"data-testid":"toggle-switch",...s}),(0,l.jsx)(u.Z,{isOpen:c.isOpen,onClose:c.onClose,onConfirm:()=>{h({enable:!1}),c.onClose()},title:o,message:(0,l.jsx)(i.xvT,{color:"gray.500",children:r}),continueButtonText:"Confirm",isCentered:!0,icon:(0,l.jsx)(i.aNP,{color:"orange.100"})})]})},W=e=>{let{value:t,helperText:n,...o}=e;return(0,l.jsxs)(i.kCb,{alignItems:"center",gap:1,...o,children:[(0,l.jsx)(i.xvT,{fontSize:"xs",lineHeight:9,fontWeight:"medium",children:t}),(0,l.jsx)(h.b,{label:n})]})}},14481:function(e,t,n){n.d(t,{A4:function(){return l.A4},CI:function(){return l.CI},F1:function(){return p},G3:function(){return l.G3},Rr:function(){return l.Rr},vr:function(){return R},ZK:function(){return W},HO:function(){return D},WP:function(){return l.WP},k:function(){return l.k},W3:function(){return A.W3},s8:function(){return A.s8},AA:function(){return _},Q$:function(){return H},I4:function(){return P},bX:function(){return A.bX},oi:function(){return A.oi}});var l=n(72625),o=n(24246),i=n(91942),r=n(27378),a=n(43862),s=n(65201),c=n(75383),d=n(52202);let u="DraggableColumnListItem",g=e=>{let{id:t,index:n,moveColumn:l,setColumnVisible:o}=e,i=(0,r.useRef)(null),[{handlerId:a},s]=(0,c.L)({accept:u,collect:e=>({handlerId:e.getHandlerId()}),hover(e,t){var o;if(!i.current)return;let r=e.index;if(r===n)return;let a=null===(o=i.current)||void 0===o?void 0:o.getBoundingClientRect(),s=(a.bottom-a.top)/2,c=t.getClientOffset().y-a.top;r<n&&c<s||r>n&&c>s||(l(r,n),Object.assign(e,{index:n}))}}),[{isDragging:g},x,h]=(0,d.c)({type:u,item:()=>({id:t,index:n}),collect:e=>({isDragging:!!e.isDragging()})});return x(s(i)),{isDragging:g,ref:i,handlerId:a,preview:h,handleColumnVisibleToggle:e=>{o(n,e)}}},x=e=>{let{id:t,index:n,isVisible:l,moveColumn:r,setColumnVisible:a,text:s}=e,{ref:c,isDragging:d,handlerId:u,preview:x,handleColumnVisibleToggle:h}=g({index:n,id:t,moveColumn:r,setColumnVisible:a});return(0,o.jsxs)(i.HCh,{alignItems:"center",display:"flex",minWidth:0,ref:e=>{x(e)},"data-handler-id":u,opacity:d?.2:1,"data-testid":"column-list-item-".concat(t),children:[(0,o.jsx)(i.xuv,{ref:c,cursor:d?"grabbing":"grab","data-testid":"column-dragger-".concat(t),children:(0,o.jsx)(i.DE2,{as:i.zGR,color:"gray.300",flexShrink:0,height:"20px",width:"20px",_hover:{color:"gray.700"}})}),(0,o.jsxs)(i.NIc,{alignItems:"center",display:"flex",minWidth:0,title:s,children:[(0,o.jsx)(i.lXp,{color:"gray.700",fontSize:"normal",fontWeight:400,htmlFor:"".concat(t),mb:"0",minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",flexGrow:1,children:s}),(0,o.jsx)(i.rAg,{id:"".concat(t),checked:l,onChange:h})]})]})},h=e=>{let{columns:t}=e,[n,l]=(0,r.useState)(null!=t?t:[]);return(0,r.useEffect)(()=>{l((null==t?void 0:t.map(e=>({...e})))||[])},[t]),{columns:n,moveColumn:(0,r.useCallback)((e,t)=>{l(n=>(0,s.ZP)(n,n=>{let l=n[e];n.splice(e,1),n.splice(t,0,l)}))},[]),setColumnVisible:(0,r.useCallback)((e,t)=>{l(n=>(0,s.ZP)(n,n=>{n[e]&&(n[e].isVisible=t)}))},[])}},m=e=>{let{columns:t,columnEditor:n}=e;return(0,o.jsx)(i.aVo,{spacing:4,children:t.map((e,t)=>(0,o.jsx)(x,{id:e.id,index:t,isVisible:e.isVisible,moveColumn:n.moveColumn,setColumnVisible:n.setColumnVisible,text:e.displayText},e.id))})},p=e=>{let{isOpen:t,onClose:n,headerText:l,tableInstance:s,columnNameMap:c,prefixColumns:d,savedCustomReportId:u,onColumnOrderChange:g,onColumnVisibilityChange:x}=e,p=h({columns:(0,r.useMemo)(()=>s.getAllColumns().filter(e=>!d.includes(e.id)).map(e=>{var t;return{id:e.id,displayText:(0,a.AH)({columnNameMap:c,columnId:e.id}),isVisible:null!==(t=s.getState().columnVisibility[e.id])&&void 0!==t?t:e.getIsVisible()}}).sort((e,t)=>{let{columnOrder:n}=s.getState(),l=n.indexOf(e.id),o=n.indexOf(t.id);return -1===l&&-1===o?0:-1===l?1:-1===o?-1:l-o}),[u,c])}),f=(0,r.useCallback)(()=>{let e=[...d,...p.columns.map(e=>e.id)],t=p.columns.reduce((e,t)=>(e[t.id]=t.isVisible,e),{});g(e),x(t),n()},[n,d,p.columns,g,x]);return(0,o.jsxs)(i.u_l,{isOpen:t,onClose:n,isCentered:!0,size:"2xl",children:[(0,o.jsx)(i.ZAr,{}),(0,o.jsxs)(i.hzk,{children:[(0,o.jsx)(i.xBx,{pb:0,children:l}),(0,o.jsx)(i.olH,{"data-testid":"column-settings-close-button"}),(0,o.jsxs)(i.fef,{children:[(0,o.jsx)(i.xvT,{fontSize:"sm",color:"gray.500",mb:2,children:"You can toggle columns on and off to hide or show them in the table. Additionally, you can drag columns up or down to change the order"}),(0,o.jsxs)(i.mQc,{colorScheme:"complimentary",children:[(0,o.jsx)(i.tdY,{children:(0,o.jsx)(i.OK9,{color:"complimentary.500",children:"Columns"})}),(0,o.jsx)(i.nPR,{children:(0,o.jsx)(i.x45,{p:0,pt:4,maxHeight:"270px",overflowY:"scroll",children:(0,o.jsx)(m,{columns:p.columns,columnEditor:p})})})]})]}),(0,o.jsx)(i.mzw,{children:(0,o.jsxs)(i.xuv,{display:"flex",justifyContent:"space-between",width:"100%",children:[(0,o.jsx)(i.wpx,{onClick:n,className:"mr-3 grow",children:"Cancel"}),(0,o.jsx)(i.wpx,{onClick:f,type:"primary",className:"grow","data-testid":"save-button",children:"Save"})]})})]})]})};var f=n(59003),v=n(71795),j=n(14048);let b=e=>{var t,n,l,r,s,c,d,u;let g,{cell:x,onRowClick:h,cellState:m}=e,p=x.getContext().table.getState().grouping.length>0,v=p?x.getContext().table.getState().grouping[0]:void 0,j=x.column.id===v,b=!1,C=!1,w=!1,{rows:S}=x.getContext().table.getRowModel(),y=S[0].id===x.row.id,k=S[S.length-1].id===x.row.id;if(x.getValue()&&j){let e=x.getContext().table.getRow("".concat(x.column.id,":").concat(x.getValue()));w=1===e.subRows.length,b=e.subRows[0].id===x.row.id,C=e.subRows[e.subRows.length-1].id===x.row.id}let z=(!j||b)&&!!(null===(t=x.column.columnDef.meta)||void 0===t?void 0:t.onCellClick);return(null===(n=x.column.columnDef.meta)||void 0===n?void 0:n.disableRowClick)||!h?z&&(g=()=>{var e,t;null===(t=x.column.columnDef.meta)||void 0===t||null===(e=t.onCellClick)||void 0===e||e.call(t,x.row.original)}):g=e=>{h(x.row.original,e)},(0,o.jsx)(i.Td,{width:(null===(l=x.column.columnDef.meta)||void 0===l?void 0:l.width)?x.column.columnDef.meta.width:"unset",overflow:(null===(r=x.column.columnDef.meta)||void 0===r?void 0:r.overflow)?null===(s=x.column.columnDef.meta)||void 0===s?void 0:s.overflow:"auto",borderBottomWidth:k||j?"0px":"1px",borderBottomColor:"gray.200",borderRightWidth:"1px",borderRightColor:"gray.200",sx:{article:{borderTopWidth:"2x",borderTopColor:"red"},...(0,a.J9)("select"===x.column.id||(null===(c=x.column.columnDef.meta)||void 0===c?void 0:c.noPadding)),maxWidth:"calc(var(--col-".concat(x.column.id,"-size) * 1px)"),minWidth:"calc(var(--col-".concat(x.column.id,"-size) * 1px)"),"&:hover":{backgroundColor:z?"gray.50":void 0,cursor:z?"pointer":void 0}},_hover:!h||(null===(d=x.column.columnDef.meta)||void 0===d?void 0:d.disableRowClick)?void 0:{cursor:"pointer"},_first:{borderBottomWidth:(p||k)&&(!C||y||k)&&(!b||!w||k)?"0px":"1px"},_last:{borderRightWidth:0},height:"inherit",onClick:g,"data-testid":"row-".concat(x.row.id,"-col-").concat(x.column.id),...null===(u=x.column.columnDef.meta)||void 0===u?void 0:u.cellProps,children:!x.getIsPlaceholder()||b?(0,f.ie)(x.column.columnDef.cell,{...x.getContext(),cellState:m}):null})},C=e=>{let{row:t,renderRowTooltipLabel:n,onRowClick:l,expandedColumns:r,wrappedColumns:s}=e;if(t.getIsGrouped())return null;let c=(0,o.jsx)(i.Tr,{height:"36px",_hover:l?{backgroundColor:"gray.50"}:void 0,"data-testid":"row-".concat(t.id),backgroundColor:t.getCanSelect()?void 0:"gray.50",children:t.getVisibleCells().map(e=>{let t=(0,a.tt)(e.column.id,r),n={isExpanded:!!t&&t>0,isWrapped:!!s.find(t=>t===e.column.id),version:t};return(0,o.jsx)(b,{cell:e,onRowClick:l,cellState:n},e.id)})},t.id);return n?(0,o.jsx)(i.esZ,{title:n?n(t):void 0,placement:"top",children:c}):c},w={asc:{icon:(0,o.jsx)(i.Hf3,{}),title:"Sort ascending"},desc:{icon:(0,o.jsx)(i.veu,{}),title:"Sort descending"}},S={height:i.rSc.space[9],width:"100%",textAlign:"start","&:focus-visible":{backgroundColor:"gray.100"},"&:focus":{outline:"none"},letterSpacing:"0.6px"},y=e=>{var t,n,l,r,s,c,d,u,g;let{header:x,onGroupAll:h,onExpandAll:m,onWrapToggle:p,isExpandAll:v,isWrapped:b,enableSorting:C}=e,{meta:y}=x.column.columnDef;return(null==y?void 0:y.showHeaderMenu)?(0,o.jsxs)(i.v2r,{placement:"bottom-end",closeOnSelect:!y.showHeaderMenuWrapOption,children:[(0,o.jsx)(i.j2t,{as:i.zxk,rightIcon:(0,o.jsxs)(i.Ugi,{children:[null===(t=w[x.column.getIsSorted()])||void 0===t?void 0:t.icon,(0,o.jsx)(i.nXP,{transform:"rotate(90deg)"})]}),title:"Column options",variant:"ghost",size:"sm",sx:{...(0,a.J9)("select"===x.column.id),...S},"data-testid":"".concat(x.id,"-header-menu"),children:(0,f.ie)(x.column.columnDef.header,x.getContext())}),(0,o.jsx)(i.h_i,{children:(0,o.jsxs)(i.qyq,{fontSize:"xs",minW:"0",w:"158px","data-testid":"".concat(x.id,"-header-menu-list"),children:[(0,o.jsxs)(i.sNh,{gap:2,color:v?"complimentary.500":void 0,onClick:()=>m(x.id),children:[(0,o.jsx)(j.oq,{})," Expand all"]}),(0,o.jsxs)(i.sNh,{gap:2,color:v?void 0:"complimentary.500",onClick:()=>h(x.id),children:[(0,o.jsx)(j.Kc,{})," Collapse all"]}),C&&x.column.getCanSort()&&(0,o.jsxs)(i.sNh,{gap:2,onClick:x.column.getToggleSortingHandler(),children:[null!==(u=null===(n=w[x.column.getNextSortingOrder()])||void 0===n?void 0:n.icon)&&void 0!==u?u:(0,o.jsx)(i.Dbz,{}),null!==(g=null===(l=w[x.column.getNextSortingOrder()])||void 0===l?void 0:l.title)&&void 0!==g?g:"Clear sort"]}),y.showHeaderMenuWrapOption&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(i.RaW,{}),(0,o.jsx)(i.xuv,{px:3,children:(0,o.jsx)(i.XZJ,{size:"sm",isChecked:b,onChange:()=>p(x.id,!b),colorScheme:"complimentary",children:(0,o.jsx)(i.xvT,{fontSize:"xs",children:"Wrap results"})})})]})]})})]}):C&&x.column.getCanSort()?(0,o.jsx)(i.zxk,{"data-testid":"".concat(x.id,"-header-sort"),onClick:x.column.getToggleSortingHandler(),rightIcon:null===(s=w[x.column.getIsSorted()])||void 0===s?void 0:s.icon,title:null!==(d=null===(c=w[x.column.getNextSortingOrder()])||void 0===c?void 0:c.title)&&void 0!==d?d:"Clear sort",variant:"ghost",size:"sm",sx:{...(0,a.J9)("select"===x.column.id),...S},children:(0,f.ie)(x.column.columnDef.header,x.getContext())}):(0,o.jsx)(i.xuv,{"data-testid":"".concat(x.id,"-header"),sx:{...(0,a.J9)("select"===x.column.id)},fontSize:"xs",lineHeight:9,fontWeight:"medium",style:null===(r=x.column.columnDef.meta)||void 0===r?void 0:r.headerProps,children:(0,f.ie)(x.column.columnDef.header,x.getContext())})},k=e=>{var t;let{tableInstance:n,rowActionBar:l,onRowClick:r,getRowIsClickable:a,renderRowTooltipLabel:s,expandedColumns:c,wrappedColumns:d,emptyTableNotice:u}=e,g=e=>a?a(e)?r:void 0:r;return(0,o.jsxs)(i.p3B,{"data-testid":"fidesTable-body",children:[l,n.getRowModel().rows.map(e=>(0,o.jsx)(C,{row:e,onRowClick:g(e.original),renderRowTooltipLabel:s,expandedColumns:c,wrappedColumns:d},e.id)),0===n.getRowModel().rows.length&&!(null===(t=n.getState())||void 0===t?void 0:t.globalFilter)&&u&&(0,o.jsx)(i.Tr,{children:(0,o.jsx)(i.Td,{colSpan:100,children:u})})]})},z=r.memo(k,(e,t)=>e.tableInstance.options.data===t.tableInstance.options.data),W=e=>{let{tableInstance:t,rowActionBar:n,footer:l,onRowClick:s,getRowIsClickable:c,renderRowTooltipLabel:d,emptyTableNotice:u,overflow:g="auto",onSort:x,enableSorting:h=!!x,columnExpandStorageKey:m,columnWrapStorageKey:p}=e,[f,j]=(0,r.useState)(1),[b,C]=(0,v._)(m,[]),[w,S]=(0,v._)(p,[]),W=e=>{C([...b.filter(t=>t.split(a.mb)[0]!==e),"".concat(e).concat(a.mb).concat(f)]),j(f+1)},R=e=>{C([...b.filter(t=>t.split(a.mb)[0]!==e),"".concat(e).concat(a.mb).concat(-1*f)]),j(f+1)},I=(e,t)=>{S(t?[...w,e]:w.filter(t=>t!==e))},T=(0,r.useMemo)(()=>{let e=t.getFlatHeaders(),n={};for(let i=0;i<e.length;i+=1){var l,o;let r=e[i],a=!!(null===(l=t.getState().columnSizing)||void 0===l?void 0:l[r.id]),s="auto"===(null===(o=r.column.columnDef.meta)||void 0===o?void 0:o.width);!a&&s?setTimeout(()=>{var e;let l=null===(e=document.getElementById("column-".concat(r.id)))||void 0===e?void 0:e.offsetWidth;l&&(t.setColumnSizing(e=>({...e,[r.id]:l})),n["--header-".concat(r.id,"-size")]=l,n["--col-".concat(r.column.id,"-size")]=l)}):(n["--header-".concat(r.id,"-size")]=r.getSize(),n["--col-".concat(r.column.id,"-size")]=r.column.getSize())}return n},[t.getState().columnSizingInfo]);return(0,r.useEffect)(()=>{x&&x(t.getState().sorting[0])},[t.getState().sorting]),(0,o.jsx)(i.xJi,{"data-testid":"fidesTable",overflowY:g,overflowX:g,borderColor:"gray.200",borderBottomWidth:"1px",borderRightWidth:"1px",borderLeftWidth:"1px",children:(0,o.jsxs)(i.iA_,{variant:"unstyled",style:{borderCollapse:"separate",borderSpacing:0,...T,minWidth:"100%"},children:[(0,o.jsx)(i.hrZ,{position:"sticky",top:"0",height:"36px",zIndex:10,backgroundColor:"gray.50",children:t.getHeaderGroups().map(e=>(0,o.jsx)(i.Tr,{height:"inherit",children:e.headers.map(e=>{var t;let n=(0,a.tt)(e.id,b);return(0,o.jsxs)(i.Th,{borderColor:"gray.200",borderTopWidth:"1px",borderBottomWidth:"1px",borderRightWidth:"1px",_last:{borderRightWidth:0},colSpan:e.colSpan,"data-testid":"column-".concat(e.id),id:"column-".concat(e.id),sx:{padding:0,width:"calc(var(--header-".concat(e.id,"-size) * 1px)"),overflowX:"auto"},textTransform:"unset",position:"relative",_hover:{"& .resizer":{opacity:1}},...null===(t=e.column.columnDef.meta)||void 0===t?void 0:t.cellProps,children:[(0,o.jsx)(y,{header:e,onGroupAll:R,onExpandAll:W,onWrapToggle:I,isExpandAll:!!n&&n>0,isWrapped:!!w.find(t=>e.id===t),enableSorting:h}),e.column.getCanResize()?(0,o.jsx)(i.xuv,{onDoubleClick:()=>e.column.resetSize(),onMouseDown:e.getResizeHandler(),position:"absolute",height:"100%",top:"0",right:"0",width:"5px",cursor:"col-resize",userSelect:"none",className:"resizer",opacity:0,backgroundColor:e.column.getIsResizing()?"complimentary.500":"gray.200"}):null]},e.id)})},e.id))}),t.getState().columnSizingInfo.isResizingColumn?(0,o.jsx)(z,{tableInstance:t,rowActionBar:n,onRowClick:s,getRowIsClickable:c,renderRowTooltipLabel:d,expandedColumns:b,wrappedColumns:w,emptyTableNotice:u}):(0,o.jsx)(k,{tableInstance:t,rowActionBar:n,onRowClick:s,getRowIsClickable:c,renderRowTooltipLabel:d,expandedColumns:b,wrappedColumns:w,emptyTableNotice:u}),l]})})},R=e=>{let{totalColumns:t,children:n}=e;return(0,o.jsx)(i.$RU,{backgroundColor:"gray.50",children:(0,o.jsx)(i.Tr,{children:(0,o.jsx)(i.Td,{colSpan:t,px:4,py:2,borderTop:"1px solid",borderColor:"gray.200",children:n})})})};var I=n(16394),T=n(26917);let D=e=>{let{globalFilter:t,setGlobalFilter:n,placeholder:l,testid:a="global-text-filter"}=e,[s,c]=(0,r.useState)(t),d=(0,r.useMemo)(()=>(0,I.Ds)(n,200),[n]),u=(0,r.useCallback)(()=>{c(void 0),n(void 0)},[c,n]);return(0,r.useEffect)(()=>{s||u()},[s,u]),(0,o.jsx)(i.xuv,{maxWidth:"424px",width:"100%",children:(0,o.jsx)(T.Z,{onChange:e=>{c(e),d(e)},onClear:u,value:s||"",placeholder:l,"data-testid":a})})};var A=n(42904),N=n(3124),O=n.n(N);let _=e=>{let{tableInstance:t,selectedRows:n,isOpen:l}=e;return l?(0,o.jsx)(i.Tr,{position:"sticky",zIndex:"10",top:"36px",backgroundColor:"neutral.100",height:"36px",p:0,boxShadow:"0px 4px 6px -1px rgba(0, 0, 0, 0.05)",children:(0,o.jsx)(i.Td,{borderWidth:"1px",borderColor:"gray.200",height:"inherit",pl:4,pr:2,py:0,colSpan:t.getAllColumns().length,bgColor:O().FIDESUI_FULL_WHITE,children:(0,o.jsxs)(i.Ugi,{children:[(0,o.jsxs)(i.xvT,{"data-testid":"selected-row-count",fontSize:"xs",children:[n.toLocaleString("en")," row(s) selected."]}),t.getIsAllRowsSelected()?null:(0,o.jsxs)(i.wpx,{"data-testid":"select-all-rows-btn",onClick:()=>{t.toggleAllRowsSelected()},type:"link",size:"small",className:"text-xs font-normal text-black underline",children:["Select all ",t.getFilteredRowModel().rows.length," rows."]})]})})}):null},H=e=>{let{children:t,...n}=e;return(0,o.jsx)(i.Ugi,{justifyContent:"space-between",alignItems:"center",p:2,borderWidth:"1px",borderBottomWidth:"0px",borderColor:"gray.200",zIndex:11,...n,children:t})},P=e=>{let{rowHeight:t,numRows:n}=e,l=[];for(let e=0;e<n;e+=1)l.push((0,o.jsx)(i.OdW,{height:"".concat(t,"px")},e));return(0,o.jsx)(i.Kqy,{children:l})}},43862:function(e,t,n){n.d(t,{AH:function(){return c},J9:function(){return a},mb:function(){return r},tt:function(){return s}});var l=n(91942),o=n(98784),i=n.n(o);let r="::",a=e=>e?{padding:"0px"}:{paddingLeft:l.rSc.space[3],paddingRight:"calc(".concat(l.rSc.space[3]," - 5px)"),paddingTop:"0px",paddingBottom:"0px",borderRadius:"0px"},s=(e,t)=>{let n=t.find(t=>t.startsWith(e));return n?parseInt(n.split(r)[1],10):void 0},c=e=>{let{columnId:t,columnNameMap:n}=e;if(!t)return"";let l=t.replace(/^(system_|privacy_declaration_)/,""),o=i().upperFirst(l.replaceAll("_"," "));return(null==n?void 0:n[t])||o}},19043:function(e,t,n){n.d(t,{Bw:function(){return r},D4:function(){return o},Dy:function(){return s},XD:function(){return c},cz:function(){return d},hE:function(){return a},oK:function(){return i}});var l=n(76649);let o=e=>"error"in e,i=e=>(0,l.Ln)({status:"string"},e)&&"PARSING_ERROR"===e.status,r=e=>(0,l.Ln)({status:"number",data:{}},e),a=e=>(0,l.Ln)({detail:"string"},e),s=e=>(0,l.Ln)({detail:{error:"string",resource_type:"string",fides_key:"string"}},e),c=e=>(0,l.Ln)({detail:{error:"string",resource_type:"string",fides_key:"string"}},e),d=e=>(0,l.Ln)({detail:[{loc:["string","number"],msg:"string",type:"string"}]},e)}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4723],{58754:function(e,a,t){var i=t(24246),n=t(91942),s=t(70788);a.Z=e=>{let{heading:a,breadcrumbItems:t,isSticky:r=!0,children:l,rightContent:o,style:d,...c}=e;return(0,i.jsxs)("div",{...c,style:r?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...d}:{paddingBottom:"24px",...d},children:[(0,i.jsxs)(n.jqI,{justify:"space-between",children:["string"==typeof a?(0,i.jsx)(n.lQT,{className:t||l?"pb-4":void 0,level:1,"data-testid":"page-heading",children:a}):a,o&&(0,i.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!t&&(0,i.jsx)(s.m,{className:l?"pb-4":void 0,items:t,"data-testid":"page-breadcrumb"}),l]})}},97181:function(e,a,t){t.d(a,{d:function(){return d}});var i=t(24246),n=t(91942),s=t(34090),r=t(27378),l=t(46238),o=t(40324);let d=e=>{let{name:a,label:t,labelProps:d,tooltip:c,isRequired:u,layout:p="inline",helperText:m,...v}=e,[g,h,{setValue:x}]=(0,s.U$)(a),y=!!(h.touched&&h.error),[f,_]=(0,r.useState)("");g.value||"tags"!==v.mode&&"multiple"!==v.mode||(g.value=[]),"tags"===v.mode&&"string"==typeof g.value&&(g.value=[g.value]);let j="tags"===v.mode?(e,a)=>e?e.value!==f||g.value.includes(f)?v.optionRender?v.optionRender(e,a):e.label:'Create "'.concat(f,'"'):void 0:v.optionRender||void 0,b=e=>{_(e),v.onSearch&&v.onSearch(e)},k=(e,a)=>{x(e),v.onChange&&v.onChange(e,a)};return"inline"===p?(0,i.jsx)(n.NIc,{isInvalid:y,isRequired:u,children:(0,i.jsxs)(n.rjZ,{templateColumns:t?"1fr 3fr":"1fr",children:[t?(0,i.jsx)(o.__,{htmlFor:v.id||a,...d,children:t}):null,(0,i.jsxs)(n.jqI,{align:"center",children:[(0,i.jsxs)(n.jqI,{vertical:!0,flex:1,className:"mr-2",children:[(0,i.jsx)(n.WPr,{...g,id:v.id||a,"data-testid":"controlled-select-".concat(g.name),...v,optionRender:j,onSearch:"tags"===v.mode?b:void 0,onChange:k,value:g.value||void 0,status:y?"error":void 0}),m&&(0,i.jsx)(n.Q6r,{children:m}),(0,i.jsx)(o.Bc,{isInvalid:y,message:h.error,fieldName:g.name})]}),(0,i.jsx)(l.b,{label:c})]})]})}):(0,i.jsx)(n.NIc,{isInvalid:y,isRequired:u,children:(0,i.jsxs)(n.gCW,{alignItems:"start",children:[(0,i.jsxs)(n.jqI,{align:"center",children:[t?(0,i.jsx)(o.__,{htmlFor:v.id||a,fontSize:"xs",my:0,mr:1,...d,children:t}):null,(0,i.jsx)(l.b,{label:c})]}),(0,i.jsx)(n.WPr,{...g,id:v.id||a,"data-testid":"controlled-select-".concat(g.name),...v,optionRender:j,onSearch:"tags"===v.mode?b:void 0,onChange:k,value:g.value||void 0,status:y?"error":void 0}),m&&(0,i.jsx)(n.Q6r,{style:{marginTop:0},children:m}),(0,i.jsx)(o.Bc,{isInvalid:y,message:h.error,fieldName:g.name})]})})}},70788:function(e,a,t){t.d(a,{m:function(){return d}});var i=t(24246),n=t(91942),s=t(79894),r=t.n(s),l=t(27378);let{Text:o}=n.AntTypography,d=e=>{let{items:a,...t}=e,s=(0,l.useMemo)(()=>null==a?void 0:a.map((e,t)=>{let s=t===a.length-1,l={...e},d=l.onClick&&!l.href;return("string"==typeof l.title&&(l.title=(0,i.jsx)(o,{style:{color:"inherit",maxWidth:s?void 0:400},ellipsis:!s,children:l.title})),d)?l.title=(0,i.jsx)(n.wpx,{type:"text",size:"small",icon:l.icon,onClick:l.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:l.title}):(l.icon&&(l.title=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"anticon align-text-bottom",children:l.icon}),l.title]})),l.href&&l.title&&(l.title=(0,i.jsx)(r(),{href:l.href,className:"ant-breadcrumb-link",children:l.title}),delete l.href)),l}),[a]);return(0,i.jsx)(n.zrq,{items:s,...t})}},31435:function(e,a,t){t.d(a,{Z:function(){return I}});var i=t(24246),n=t(91942),s=t(34090),r=t(27378),l=t(55484),o=t(16134),d=t(25980),c=t(40324),u=t(33335),p=t(32885),m=t(1315),v=t(57865),g=t(72774),h=t(36345),x=t(812),y=t(8133),f=t(46628);let _={name:"",consent_use:"",data_use:"",data_categories:["user"],cookieNames:[],cookies:[]},j=[{label:"Analytics",value:"analytics",description:"Provides analytics for activities such as system and advertising performance reporting, insights and fraud detection."},{label:"Essential",value:"essential",description:"Operates the service or product, including legal obligations, support and basic system operations."},{label:"Functional",value:"functional",description:"Used for specific, necessary, and legitimate purposes."},{label:"Marketing",value:"marketing",description:"Enables marketing, promotion, advertising and sales activities for the product, service, application or system."}],b=e=>j.some(a=>a.value===e.split(".")[0]);var k=t(28079),C=t(69525),N=t(97181);let w=e=>{let{index:a,disabled:t}=e;(0,k.fd)();let r=(0,o.C)(k.oW),{values:l}=(0,s.u6)(),d=r.filter(e=>e.value.split(".")[0]===l.privacy_declarations[a].consent_use);return(0,i.jsxs)(n.gCW,{width:"100%",borderRadius:"4px",border:"1px solid",borderColor:"gray.200",spacing:4,p:4,children:[(0,i.jsx)(N.d,{label:"Consent category",tooltip:"What is the system using the data for. For example, is it for third party advertising or perhaps simply providing system operations.",name:"privacy_declarations.".concat(a,".consent_use"),options:j,layout:"stacked",isRequired:!0,disabled:t}),(0,i.jsx)(N.d,{allowClear:!0,label:"Detailed consent category (optional)",tooltip:"Select a more specific consent category",name:"privacy_declarations.".concat(a,".data_use"),options:d,layout:"stacked",disabled:!l.privacy_declarations[a].consent_use||t}),(0,i.jsx)(N.d,{mode:"tags",label:"Cookie names",name:"privacy_declarations.".concat(a,".cookieNames"),options:[],layout:"stacked",disabled:t,className:"w-full"})]})};var R=e=>{var a,t;let{showSuggestions:l,isCreate:d,disabled:c}=e,{values:u,setFieldValue:m}=(0,s.u6)(),{vendor_id:v}=u,{isLoading:g}=(0,p.Wp)({vendor_id:v},{skip:!l||null==v}),h=(0,o.C)((0,p.cL)(v||""));(0,r.useEffect)(()=>{l&&u.vendor_id&&(null==h?void 0:h.length)?m("privacy_declarations",h.filter(e=>b(e.data_use)).map(e=>(0,C.U)(e)).map(e=>{var a,t,i;return{name:null!==(t=e.name)&&void 0!==t?t:"",consent_use:e.data_use.split(".")[0],data_use:e.data_use,data_categories:e.data_categories,cookieNames:(null===(a=e.cookies)||void 0===a?void 0:a.map(e=>e.name))||[],cookies:null!==(i=e.cookies)&&void 0!==i?i:[]}})):d&&m("privacy_declarations",[_])},[l,d,u.vendor_id,h,m]);let x=(null===(a=u.privacy_declarations[u.privacy_declarations.length-1])||void 0===a?void 0:a.data_use)===_.data_use&&(null===(t=u.privacy_declarations[u.privacy_declarations.length-1])||void 0===t?void 0:t.consent_use)===_.consent_use;return g?(0,i.jsx)(n.$jN,{size:"sm",alignSelf:"center"}):(0,i.jsx)(s.F2,{name:"privacy_declarations",render:e=>(0,i.jsxs)(i.Fragment,{children:[u.privacy_declarations.map((e,a)=>(0,i.jsx)(w,{index:a,disabled:c},e.data_use||a)),(0,i.jsx)(n.wpx,{onClick:()=>e.push(_),size:"small",type:"text",disabled:c||x,"data-testid":"add-data-use-btn",children:"Add data use +"})]})})};let q={name:"",vendor_id:void 0,privacy_declarations:[_]};var I=e=>{let{buttonLabel:a,onButtonClick:t,buttonProps:j}=e,b=(0,n.pmc)(),{isOpen:k,onOpen:C,onClose:N}=(0,n.qY0)(),w=(0,o.T)(),[I]=(0,m.in)(),S=(0,r.useMemo)(()=>l.Ry().shape({name:l.Z_().required().label("Vendor name").test("is-unique","",async(e,a)=>{let{data:t}=await I({page:1,size:10,search:e});return!((null==t?void 0:t.items)||[]).some(a=>a.name===e)||a.createError({message:'You already have a vendor called "'.concat(e,'". Please specify a unique name for this vendor.')})})}),[I]),{tcf:F,dictionaryService:W}=(0,d.hz)(),{isLoading:z}=(0,p.Rd)(void 0,{skip:!W}),V=(0,o.C)(p.o),E=(0,o.C)(v.gU),[Q]=(0,m.f7)(),T=(0,o.C)(v.bN),Z=()=>{N(),w((0,v.b3)("initial")),w((0,v.gQ)(!1))},L=(0,r.useRef)(null),A=L.current?L.current.values.vendor_id:void 0,B=(0,o.C)((0,p.$e)(A||"")),M=async(e,a)=>{let t=e.privacy_declarations.filter(e=>e.consent_use!==_.consent_use).flatMap(e=>{let a=e.cookieNames.map(a=>{let t=e.cookies.find(e=>e.name===a);return null!=t?t:{name:a,path:"/"}}),{cookieNames:t,consent_use:i,...n}=e;return"marketing"!==e.consent_use||e.data_use?{...n,data_use:e.data_use?e.data_use:e.consent_use,cookies:a}:["marketing.advertising.first_party.targeted","marketing.advertising.third_party.targeted"].map(e=>({...n,data_use:e,cookies:a}))}),i={...B,...e,fides_key:(0,u.E)(e.name),system_type:"",privacy_declarations:t},n=await Q(i);if((0,x.D4)(n)){b((0,f.Vo)((0,x.e$)(n.error)));return}b((0,f.t5)("Vendor successfully created!")),a.resetForm(),Z()},P=e=>{if(W){if(!e){w((0,v.b3)("hiding")),w((0,v.gQ)(!1));return}w((0,v.b3)("showing")),F&&(0,x.cj)(e)===x.c6.GVL?w((0,v.gQ)(!0)):w((0,v.gQ)(!1))}};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.wpx,{onClick:()=>{t?t():C()},"data-testid":"add-vendor-btn",...j,children:a}),(0,i.jsx)(s.J9,{initialValues:q,enableReinitialize:!0,onSubmit:M,validationSchema:S,innerRef:L,children:e=>{let{dirty:a,isValid:t,resetForm:r}=e;return(0,i.jsx)(y.Z,{isOpen:k,onClose:Z,title:"Add a vendor",children:(0,i.jsxs)(n.xuv,{"data-testid":"add-vendor-modal-content",my:4,children:[E?(0,i.jsx)(g.Z,{}):null,(0,i.jsx)(s.l0,{children:(0,i.jsxs)(n.gCW,{alignItems:"start",spacing:6,children:[W?(0,i.jsx)(h.Z,{label:"Vendor name",options:V,isLoading:z,onVendorSelected:P,isCreate:!0,lockedForGVL:E}):(0,i.jsx)(c.j0,{id:"name",name:"name",isRequired:!0,label:"Vendor name",tooltip:"Give the system a unique, and relevant name for reporting purposes. e.g. “Email Data Warehouse”",variant:"stacked"}),(0,i.jsx)(R,{showSuggestions:"showing"===T,isCreate:!0,disabled:E}),(0,i.jsxs)("div",{className:"flex w-full justify-between",children:[(0,i.jsx)(n.wpx,{onClick:()=>{Z(),r()},children:"Cancel"}),(0,i.jsx)(n.wpx,{type:"primary",htmlType:"submit",disabled:z||!a||!t,loading:z,"data-testid":"save-btn",children:"Save vendor"})]})]})})]})})}})]})}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5258],{35258:function(e,a,t){t.d(a,{Z:function(){return A}});var i=t(24246),s=t(84720),n=t(91942),r=t(27378),l=t(52368),d=t(812),o=t(46628),c=t(65450),u=t(31883),m=t(34090),p=t(45938),x=t(95346),h=t(55484),y=t(97181),v=t(40324),b=t(7448);let j=h.Ry().shape({data_categories:h.IX(h.Z_()).min(1,"Must assign at least one data category").label("Data categories"),data_use:h.Z_().required().label("Data use"),data_subjects:h.IX(h.Z_()).min(1,"Must assign at least one data subject").label("Data subjects")}),g={data_categories:[],data_subjects:[],data_use:"",dataset_references:[],customFieldValues:{},id:"",cookies:[]},f=e=>{var a;let{customFieldValues:t,...i}=e;return{...i,name:null!==(a=e.name)&&void 0!==a?a:"",cookies:i.cookies.map(e=>({name:e,path:"/"}))}},_=e=>{let{allDataUses:a,allDataCategories:t,allDataSubjects:s,allDatasets:r,privacyDeclarationId:l,includeCustomFields:d}=e,o=r?r.map(e=>{var a;return{label:null!==(a=e.name)&&void 0!==a?a:e.fides_key,value:e.fides_key}}):[];return(0,i.jsxs)(n.Kqy,{spacing:4,children:[(0,i.jsx)(y.d,{id:"data_use",label:"Data use",name:"data_use",options:a.map(e=>({value:e.fides_key,label:e.fides_key})),tooltip:"What is the system using the data for. For example, is it for third party advertising or perhaps simply providing system operations.",layout:"stacked",disabled:!!l}),(0,i.jsx)(v.j0,{id:"name",label:"Processing Activity",name:"name",variant:"stacked",tooltip:"The personal data processing activity or activities associated with this data use.",disabled:!!l}),(0,i.jsx)(y.d,{name:"data_categories",label:"Data categories",options:t.map(e=>({value:e.fides_key,label:e.fides_key})),tooltip:"What type of data is your system processing? This could be various types of user or system data.",mode:"multiple",layout:"stacked",disabled:!0}),(0,i.jsx)(y.d,{name:"data_subjects",label:"Data subjects",options:s.map(e=>({value:e.fides_key,label:e.fides_key})),tooltip:"Whose data are you processing? This could be customers, employees or any other type of user in your system.",mode:"multiple",layout:"stacked",disabled:!0}),r?(0,i.jsx)(y.d,{name:"dataset_references",label:"Dataset references",options:o,tooltip:"Referenced Dataset fides keys used by the system.",mode:"multiple",layout:"stacked"}):null,d?(0,i.jsx)(x.uc,{resourceType:b.P6.PRIVACY_DECLARATION,resourceFidesKey:l}):null]})},k=(e,a)=>{var t,i;return e?{...e,customFieldValues:a||{},cookies:null!==(i=null===(t=e.cookies)||void 0===t?void 0:t.map(e=>e.name))&&void 0!==i?i:[]}:g},D=e=>{let{onSubmit:a,initialValues:t,allDataUses:s,privacyDeclarationId:l}=e,{customFieldValues:d,upsertCustomFields:o}=(0,x.mZ)({resourceType:b.P6.PRIVACY_DECLARATION,resourceFidesKey:l}),c=(0,r.useMemo)(()=>k(t,d),[t,d]),[u,m]=(0,r.useState)(!1),p=(0,r.useMemo)(()=>{let e=s.filter(e=>e.fides_key===c.data_use)[0];if(e)return c.name?"".concat(e.name," - ").concat(c.name):e.name},[s,c]);return{handleSubmit:async(e,t)=>{let{customFieldValues:i}=e,s=f(e),n=await a(s,t);if(n){let a=n.filter(a=>a.data_use===e.data_use&&(!a.name||a.name===e.name));a.length>0&&await o({customFieldValues:i,fides_key:a[0].id}),t.resetForm({values:e}),m(!0)}},renderHeader:e=>{let{dirty:a,boxProps:t,hideSaved:s}=e;return(0,i.jsxs)(n.xuv,{display:"flex",alignItems:"center",justifyContent:"space-between",...t,children:[p?(0,i.jsx)(n.X6q,{as:"h4",size:"xs",fontWeight:"medium",mr:4,children:p}):null,!s&&u&&!a&&c.data_use?(0,i.jsxs)(n.xvT,{fontSize:"sm","data-testid":"saved-indicator",children:[(0,i.jsx)(n.StI,{})," Saved"]}):null]})},initialValues:c}},w=e=>{let{onSubmit:a,initialValues:t,onDelete:s,...r}=e,{handleSubmit:l,renderHeader:d,initialValues:o}=D({onSubmit:a,initialValues:t,allDataUses:r.allDataUses,privacyDeclarationId:null==t?void 0:t.id});return(0,i.jsx)(m.J9,{enableReinitialize:!0,initialValues:o,onSubmit:l,validationSchema:j,children:e=>{let{dirty:a}=e;return(0,i.jsxs)(m.l0,{children:[(0,i.jsx)(p.Gt,{id:"PrivacyDeclaration",name:"New Privacy Declaration"}),(0,i.jsxs)(n.Kqy,{spacing:4,children:[(0,i.jsx)(n.xuv,{"data-testid":"header",children:d({dirty:a})}),(0,i.jsx)(_,{onDelete:s,...r})]})]})}})},S=e=>{let{privacyDeclaration:a,onEdit:t,onDelete:s,includeCustomFields:r,...l}=e,{initialValues:d,renderHeader:o,handleSubmit:c}=D({initialValues:a,onSubmit:e=>t(a,e),privacyDeclarationId:a.id,...l});return(0,i.jsx)(n.Qdk,{children:e=>{let{isExpanded:t}=e;return(0,i.jsx)(m.J9,{enableReinitialize:!0,initialValues:d,onSubmit:c,validationSchema:j,children:e=>{let{dirty:d}=e;return(0,i.jsxs)(m.l0,{"data-testid":"".concat(a.data_use,"-form"),children:[(0,i.jsx)(p.Gt,{id:"".concat(a.id,"-form"),name:a.id}),(0,i.jsxs)(n.KFZ,{py:4,borderBottomWidth:t?"0px":"1px",backgroundColor:t?"gray.50":void 0,"data-testid":"accordion-header-".concat(a.data_use),children:[o({dirty:d,boxProps:{flex:"1",textAlign:"left"},hideSaved:!t}),(0,i.jsx)(n.XEm,{})]}),(0,i.jsx)(n.Hk3,{backgroundColor:"gray.50",pt:0,children:(0,i.jsx)(n.Kqy,{spacing:4,children:(0,i.jsx)(_,{privacyDeclarationId:a.id,onDelete:s,includeCustomFields:r,...l})})})]})}})}})};var C=e=>{let{privacyDeclarations:a,...t}=e;return(0,i.jsx)(n.UQy,{allowToggle:!0,border:"transparent","data-testid":"privacy-declaration-accordion",children:a.map(e=>(0,i.jsx)(S,{privacyDeclaration:e,...t},e.id))})},T=e=>{let{system:a,includeCustomFields:t,onSave:s,...l}=e,m=(0,n.pmc)(),[p]=(0,c.qQ)(),[x,h]=(0,r.useState)(!1),[y,v]=(0,r.useState)(void 0),b=(0,r.useMemo)(()=>y?a.privacy_declarations.filter(e=>e.id!==y.id):a.privacy_declarations,[y,a]),j=e=>b.filter(a=>a.data_use===e.data_use&&a.name===e.name).length>0&&(m((0,o.Vo)("A declaration already exists with that data use in this system. Please supply a different data use.")),!0),g=async(e,t)=>{let i=e.map(e=>{var a;return{...e,name:null!==(a=e.name)&&void 0!==a?a:""}}),n={...a,privacy_declarations:i};return(e=>{if((0,u.D4)(e)){let a=(0,d.e$)(e.error,"An unexpected error occurred while updating the system. Please try again.");m((0,o.Vo)(a));return}return m.closeAll(),m((0,o.t5)(t?"Data use deleted":"Data use saved")),s&&s(e.data),e.data.privacy_declarations})(await p(n))},f=async(e,t)=>{if(!(t.id!==e.id&&j(t)))return g(a.privacy_declarations.map(a=>a.id===e.id?t:a))},_=async e=>{if(j(e))return;m.closeAll();let a=[...b,e],t=await g(a);return t&&v(t.filter(a=>(!a.name||a.name===e.name)&&a.data_use===e.data_use)[0]),t},k=async e=>g(a.privacy_declarations.filter(a=>a.id!==e.id),!0),D=async e=>{let a=await k(e);return a&&(h(!1),v(void 0)),a};return(0,r.useEffect)(()=>{h(!1)},[a.fides_key]),(0,i.jsxs)(n.Kqy,{spacing:3,children:[(0,i.jsx)(C,{privacyDeclarations:b,onEdit:f,onDelete:k,includeCustomFields:t,...l}),x?(0,i.jsx)(n.xuv,{backgroundColor:"gray.50",p:4,"data-testid":"new-declaration-form",children:(0,i.jsx)(w,{initialValues:y,onSubmit:_,onDelete:D,includeCustomFields:t,...l})}):null,0===a.privacy_declarations.length?(0,i.jsx)(n.xvT,{fontSize:"sm",lineHeight:5,fontWeight:"medium",pl:2,children:"No data uses"}):null]})},I=t(19043);let V=e=>{let[a]=(0,c.dB)(),t=(0,n.pmc)();return{handleUpsertSystem:async(i,s)=>{let n=[{...e,name:i.name,description:i.description}],r=await a(n);(0,I.D4)(r)?t((0,o.Vo)((0,d.e$)(r.error))):(t((0,o.t5)("Successfully saved system info")),s.resetForm({values:i}))},validationSchema:h.Ry().shape({name:h.Z_().required().label("Name"),description:h.Z_().required().label("Description")})}},F={name:"",description:""};var W=e=>{let{system:a}=e,t="/systems/configure/".concat(a.fides_key),{handleUpsertSystem:s,validationSchema:r}=V(a);return(0,i.jsxs)(n.xuv,{children:[(0,i.jsxs)(n.kCb,{alignItems:"center",children:[(0,i.jsx)(n.xvT,{color:"gray.600",size:"md",lineHeight:6,fontWeight:"semibold",marginBottom:2,children:"System details"}),(0,i.jsx)(n.LZC,{}),(0,i.jsxs)(n._pl,{color:"complimentary.500",href:t,children:["View more",(0,i.jsx)(n.h0n,{ml:2})]})]}),(0,i.jsx)(n.xuv,{width:"100%",padding:4,borderTop:"1px solid",borderColor:"gray.200",children:(0,i.jsx)(m.J9,{enableReinitialize:!0,initialValues:null!=a?a:F,validationSchema:r,onSubmit:s,children:e=>{let{isSubmitting:a,dirty:t,isValid:s}=e;return(0,i.jsxs)(m.l0,{children:[(0,i.jsx)(p.Gt,{id:"SystemInfoDrawer",name:"System Info"}),(0,i.jsx)(n.xuv,{marginTop:3,children:(0,i.jsx)(v.j0,{label:"System name",name:"name",variant:"stacked"})}),(0,i.jsx)(n.xuv,{marginTop:3,children:(0,i.jsx)(v.Ks,{label:"System description",name:"description",variant:"stacked"})}),(0,i.jsx)(n.kCb,{marginTop:6,justifyContent:"flex-end",children:(0,i.jsx)(n.wpx,{htmlType:"submit",disabled:!t||!s,loading:a,type:"primary",children:"Save"})})]})}})})]})},A=e=>{var a;let{selectedSystemId:t,resetSelectedSystemId:d}=e,o=(0,r.useMemo)(()=>!!t,[t]),{isLoading:u,...m}=(0,l.f)({includeDatasets:!1,includeDisabled:!1}),{data:p}=(0,c.rn)(t,{skip:!t});return(0,i.jsx)(n.xuv,{position:"absolute",pointerEvents:"none",top:0,left:0,right:0,bottom:0,overflow:"hidden",children:(0,i.jsx)(n.Mi4,{transition:{enter:{ease:"easeInOut",duration:.5},exit:{ease:"easeInOut",duration:.5}},direction:"right",in:o,unmountOnExit:!0,style:{zIndex:11,pointerEvents:"none",position:"absolute"},children:(0,i.jsxs)(n.xuv,{position:"absolute",right:"0px",height:"100%",width:"100%",maxWidth:"480px",pointerEvents:"auto",borderWidth:0,boxShadow:"0px 20px 25px -5px rgba(0, 0, 0, 0.1), 0px 10px 10px -5px rgba(0, 0, 0, 0.04)",display:t?"unset":"none",backgroundColor:"white","data-testid":"datamap-drawer",children:[(0,i.jsx)(n.xuv,{id:"drawer-header",borderBottomWidth:1,paddingX:6,paddingY:3,children:(0,i.jsxs)(n.kCb,{children:[(0,i.jsx)(n.kCb,{justifyContent:"space-between",alignItems:"center",height:"40px",children:(0,i.jsx)(n.xvT,{fontWeight:"semibold",fontSize:"lg",lineHeight:"7",color:"gray.900",children:null!==(a=null==p?void 0:p.name)&&void 0!==a?a:"System Information"})}),(0,i.jsx)(n.LZC,{}),(0,i.jsx)(n.kCb,{alignItems:"center",children:(0,i.jsx)(n.wpx,{icon:(0,i.jsx)(n.Two,{}),"aria-label":"Close error message",type:"text",onClick:d,"data-testid":"datamap-drawer-close"})})]})}),(0,i.jsx)(n.xuv,{id:"drawer-body",height:"calc(100% - 46px)",overflowY:"auto",padding:6,style:{scrollbarGutter:"stable"},children:p?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(W,{system:p}),(0,i.jsx)(n.xvT,{size:"md",color:"gray.600",lineHeight:6,fontWeight:"semibold",mt:"10px",mb:2,children:"Data uses"}),(0,i.jsx)(n.xuv,{borderTop:"1px solid",borderColor:"gray.200",children:(0,i.jsx)(n.xuv,{pb:3,children:(0,i.jsx)(T,{system:p,...m})})}),(0,i.jsx)(n.xvT,{size:"md",color:"gray.600",lineHeight:6,fontWeight:"semibold",mt:"10px",mb:2,paddingBottom:2,children:"Data flow"}),(0,i.jsx)(s.q,{system:p})]}):null})]})})})}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5487],{624:function(e,t,i){var n=i(24246),l=i(91942),r=i(27378);let a=e=>{let t=e.split("."),i=[];return t.forEach(e=>{let t=i.length>0?i[i.length-1]:null;t?i.push("".concat(t,".").concat(e)):i.push(e)}),i},s=(e,t)=>{let i=a(t).filter(e=>e!==t);return e.filter(e=>i.includes(e)).length>0},o=(e,t)=>!!(e===t||e.startsWith("".concat(t,"."))),c=(e,t,i)=>{let n=null!=i?i:[];return e.forEach(e=>{e.children&&c(e.children,t,n),o(e.value,t)&&n.push(e)}),n},d=e=>{let{node:t,isChecked:i,onChecked:r,isExpanded:a,onExpanded:s,isIndeterminate:o,isDisabled:c,children:d}=e,{value:u,label:h}=t,x=!!t.children&&t.children.length>0;return(0,n.jsxs)(l.xuv,{children:[(0,n.jsxs)(l.xuv,{display:"flex",justifyContent:"space-between",_hover:{backgroundColor:"gray.100",cursor:"pointer"},onClick:()=>s(t),minHeight:8,children:[(0,n.jsx)(l.XZJ,{colorScheme:"complimentary",value:u,isChecked:!o&&i,isIndeterminate:o,isDisabled:c,onChange:()=>r(t),mx:2,"data-testid":"checkbox-".concat(h),children:h}),x?(0,n.jsx)(l.wpx,{"data-testid":"expand-".concat(h),"aria-label":a?"collapse":"expand",icon:(0,n.jsx)(l.v4q,{boxSize:5}),type:"text",onClick:()=>s(t),className:a?"rotate-180":void 0}):null]}),d&&(0,n.jsx)(l.xuv,{ml:5,children:d})]})};t.ZP=e=>{let{nodes:t,selected:i,onSelected:u,...h}=e,[x,p]=(0,r.useState)([]),[f,m]=(0,r.useState)([]);(0,r.useEffect)(()=>{let e=Array.from(new Set([...i.map(e=>a(e)).reduce((e,t)=>e.concat(t),[]),...i.map(e=>c(t,e)).reduce((e,t)=>e.concat(t),[]).map(e=>e.value)]));m(e),p(e)},[i,t]);let j=e=>{let n=[],l=[];x.indexOf(e.value)>=0?(n=x.filter(t=>!o(t,e.value)),l=i.filter(t=>!o(t,e.value))):(n=[...x,...c(t,e.value).map(e=>e.value)],l=[...i,e.value]),p(n),u(l)},v=e=>{f.indexOf(e.value)>=0?m(f.filter(t=>!o(t,e.value))):m([...f,e.value])},C=e=>{if(e.children){let l=x.indexOf(e.value)>=0,a=f.indexOf(e.value)>=0,o=c(t,e.value),u=l&&e.children.length>0&&x.filter(t=>t.startsWith("".concat(e.value,"."))).length+1!==o.length,h=s(i,e.value);return(0,n.jsx)(d,{node:e,isChecked:l,onChecked:j,isExpanded:a,onExpanded:v,isDisabled:h,isIndeterminate:u,children:a?e.children.map(e=>(0,n.jsx)(r.Fragment,{children:C(e)},e.value)):void 0})}return null};return(0,n.jsx)(l.xuv,{...h,children:t.map(e=>(0,n.jsx)(l.xuv,{children:C(e)},e.value))})}},79806:function(e,t,i){i.d(t,{Gn:function(){return s},zR:function(){return a}});var n=i(24246),l=i(91942),r=i(56358);let a=e=>{let{title:t}=e;return(0,n.jsx)(l.OXI,{py:0,display:"flex",alignItems:"flex-start",children:(0,n.jsx)(l.xvT,{mr:"2",color:"gray.700",fontSize:"lg",lineHeight:1.8,children:t})})},s=e=>{let{onDelete:t,onEditYaml:i,formId:a,isSaving:s}=e;return(0,n.jsxs)(l.zeN,{justifyContent:"space-between",children:[t?(0,n.jsx)(l.wpx,{"aria-label":"delete",icon:(0,n.jsx)(r.q,{fontSize:"small"}),onClick:t,"data-testid":"delete-btn"}):null,(0,n.jsxs)("div",{className:"flex gap-2",children:[i&&(0,n.jsx)(l.wpx,{onClick:i,"data-testid":"edit-yaml-btn",children:"Edit YAML"}),(0,n.jsx)(l.wpx,{htmlType:"submit",type:"primary","data-testid":"save-btn",form:a,loading:s,children:"Save"})]})]})};t.ZP=e=>{let{header:t,description:i,isOpen:r,onClose:a,children:s,footer:o}=e;return(0,n.jsxs)(l.dys,{placement:"right",isOpen:r,onClose:a,size:"md",children:[(0,n.jsx)(l.P1B,{}),(0,n.jsxs)(l.scA,{"data-testid":"edit-drawer-content",py:2,children:[(0,n.jsxs)(l.xuv,{display:"flex",justifyContent:"space-between",alignItems:"top",mr:2,py:2,gap:2,children:[(0,n.jsx)(l.xuv,{flex:1,minH:8,children:t}),(0,n.jsx)(l.xuv,{display:"flex",justifyContent:"flex-end",mr:2,children:(0,n.jsx)(l.wpx,{"aria-label":"Close editor",onClick:a,"data-testid":"close-drawer-btn",icon:(0,n.jsx)(l.Two,{fontSize:"smaller"})})})]}),(0,n.jsxs)(l.Ng0,{pt:1,children:[i?(0,n.jsx)(l.xvT,{fontSize:"sm",mb:4,color:"gray.600",children:i}):null,s]}),o]})]})}},56358:function(e,t,i){i.d(t,{q:function(){return l}});var n=i(24246);let l=(0,i(91942).IUT)({displayName:"TrashCanOutlineIcon",viewBox:"0 0 11 12",path:(0,n.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,i){i.d(t,{Z:function(){return h}});var n=i(24246),l=i(91942),r=i(88038),a=i.n(r),s=i(86677);i(27378);var o=i(25980),c=i(90867),d=i(77830),u=()=>{let e=(0,s.useRouter)();return(0,n.jsx)(l.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)(l.xuv,{children:[(0,n.jsxs)(l.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,n.jsx)(l.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,n.jsx)(l.wpx,{onClick:()=>{e.push(d.fz)},children:"Configure"})]}),(0,n.jsxs)(l.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},h=e=>{let{children:t,title:i,padded:r=!0,mainProps:d}=e,h=(0,o.hz)(),x=(0,s.useRouter)(),p="/privacy-requests"===x.pathname||"/datastore-connection"===x.pathname,f=!(h.flags.privacyRequestsConfiguration&&p),{data:m}=(0,c.JE)(void 0,{skip:f}),{data:j}=(0,c.PW)(void 0,{skip:f}),v=h.flags.privacyRequestsConfiguration&&(!m||!j)&&p;return(0,n.jsxs)(l.kCb,{"data-testid":i,direction:"column",h:"100vh",children:[(0,n.jsxs)(a(),{children:[(0,n.jsxs)("title",{children:["Fides Admin UI - ",i]}),(0,n.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,n.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,n.jsxs)(l.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:[v?(0,n.jsx)(u,{}):null,t]})]})}},58754:function(e,t,i){var n=i(24246),l=i(91942),r=i(70788);t.Z=e=>{let{heading:t,breadcrumbItems:i,isSticky:a=!0,children:s,rightContent:o,style:c,...d}=e;return(0,n.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,n.jsxs)(l.jqI,{justify:"space-between",children:["string"==typeof t?(0,n.jsx)(l.lQT,{className:i||s?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,o&&(0,n.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!i&&(0,n.jsx)(r.m,{className:s?"pb-4":void 0,items:i,"data-testid":"page-breadcrumb"}),s]})}},70788:function(e,t,i){i.d(t,{m:function(){return c}});var n=i(24246),l=i(91942),r=i(79894),a=i.n(r),s=i(27378);let{Text:o}=l.AntTypography,c=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},c=s.onClick&&!s.href;return("string"==typeof s.title&&(s.title=(0,n.jsx)(o,{style:{color:"inherit",maxWidth:r?void 0:400},ellipsis:!r,children:s.title})),c)?s.title=(0,n.jsx)(l.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,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"anticon align-text-bottom",children:s.icon}),s.title]})),s.href&&s.title&&(s.title=(0,n.jsx)(a(),{href:s.href,className:"ant-breadcrumb-link",children:s.title}),delete s.href)),s}),[t]);return(0,n.jsx)(l.zrq,{items:r,...i})}},69828:function(e,t,i){i.d(t,{Y:function(){return a}});var n=i(24246),l=i(91942),r=i(70788);let a=[(0,n.jsx)(l.PJP.S9g,{},"layers"),(0,n.jsx)(l.PJP.ehp,{},"dataset"),(0,n.jsx)(l.PJP.iA_,{},"table"),(0,n.jsx)(l.PJP.$4y,{style:{transform:"rotate(-90deg)"}},"field")];t.Z=e=>{let{resourceUrn:t,parentLink:i,onPathClick:l=()=>{}}=e,s=[];if(t||s.push({title:"All activity"}),t){s.push({title:"All activity",href:i});let e=t.split(".");e.forEach((t,i)=>{0!==i&&s.push({title:t,icon:a[i-1],onClick:t=>{t.preventDefault(),l(e.slice(0,i+1).join("."))}})})}return(0,n.jsx)(r.m,{"data-testid":"results-breadcrumb",items:s})}},63927:function(e,t,i){i.d(t,{e:function(){return m},Z:function(){return j}});var n=i(24246),l=i(91942),r=i(34090),a=i(27378),s=i(16125),o=i(40324),c=i(39864),d=i(56026),u=i(46238),h=i(624),x=i(90673),p=e=>{let{dataCategories:t,checked:i,onChecked:r,buttonLabel:s}=e,o=(0,a.useMemo)(()=>(0,x.Cd)(t),[t]);return(0,n.jsxs)(l.v2r,{closeOnSelect:!0,children:[(0,n.jsx)(l.j2t,{as:l.wpx,icon:(0,n.jsx)(l.mCO,{}),className:"!bg-transparent",block:!0,"data-testid":"data-category-dropdown",children:null!=s?s:"Select data categories"}),(0,n.jsx)(l.qyq,{children:(0,n.jsxs)(l.xuv,{maxHeight:"50vh",minWidth:"300px",maxW:"full",overflowY:"scroll",children:[(0,n.jsxs)(l.xuv,{position:"sticky",top:0,zIndex:1,backgroundColor:"white",pt:1,children:[(0,n.jsx)(l.__7,{children:(0,n.jsxs)(l.xuv,{display:"flex",justifyContent:"space-between",px:2,mb:2,children:[(0,n.jsx)(l.sNh,{as:l.wpx,size:"small",className:"mr-2 !w-auto",onClick:()=>r([]),closeOnSelect:!1,"data-testid":"data-category-clear-btn",children:"Clear"}),(0,n.jsx)(l.xvT,{mr:2,children:"Data Categories"}),(0,n.jsx)(l.sNh,{as:l.wpx,size:"small",className:"!w-auto","data-testid":"data-category-done-btn",children:"Done"})]})}),(0,n.jsx)(l.RaW,{})]}),(0,n.jsx)(l.xuv,{px:2,"data-testid":"data-category-checkbox-tree",children:(0,n.jsx)(h.ZP,{nodes:o,selected:i,onSelected:r})})]})})]})},f=e=>{let{dataCategories:t,checked:i,onChecked:r,tooltip:a}=e,s=e=>{r(i.filter(t=>t!==e))},o=i.slice().sort((e,t)=>e.localeCompare(t));return(0,n.jsxs)(l.rjZ,{templateColumns:"1fr 3fr",children:[(0,n.jsx)(l.lXp,{children:"Data Categories"}),(0,n.jsxs)(l.vyj,{direction:"vertical",size:"small",children:[(0,n.jsxs)(l.xuv,{display:"flex",alignItems:"center",children:[(0,n.jsx)(l.xuv,{mr:"2",width:"100%",children:(0,n.jsx)(p,{dataCategories:t,checked:i,onChecked:r})}),(0,n.jsx)(u.b,{label:a})]}),(0,n.jsx)(l.vyj,{direction:"vertical",size:2,"data-testid":"selected-categories",children:o.map(e=>(0,n.jsx)(l.j8w,{closable:!0,onClose:()=>{s(e)},children:e},e))})]})]})};let m="edit-collection-or-field-form";var j=e=>{var t;let{values:i,onSubmit:u,dataType:h,showDataCategories:x=!0}=e,p={description:null!==(t=i.description)&&void 0!==t?t:"",data_categories:i.data_categories},j=(0,s.v9)(c.qb).filter(e=>e.active),[v,C]=(0,a.useState)(p.data_categories||[]),g="collection"===h?d.du.description.tooltip:d.QL.description.tooltip,y="collection"===h?d.du.data_categories.tooltip:d.QL.data_categories.tooltip;return(0,n.jsx)(r.J9,{initialValues:p,onSubmit:e=>{u({...e,data_categories:v})},children:(0,n.jsx)(r.l0,{id:m,children:(0,n.jsxs)(l.Kqy,{children:[(0,n.jsx)(o.j0,{name:"description",label:"Description",tooltip:g,"data-testid":"description-input"}),x&&(0,n.jsx)(f,{dataCategories:j,checked:v,onChecked:C,tooltip:y})]})})})}},56026:function(e,t,i){i.d(t,{QL:function(){return r},du:function(){return l},tz:function(){return n}});let n={name:{tooltip:"A UI-friendly label for the Dataset."},description:{tooltip:"A human-readable description of the Dataset."},data_categories:{tooltip:"Arrays of Data Category resources, identified by fides_key, that apply to all collections in the Dataset."}},l={description:{tooltip:"A human-readable description of the collection."},data_categories:{tooltip:"Arrays of Data Category resources, identified by fides_key, that apply to all fields in the collection."}},r={description:{tooltip:"A human-readable description of the field."},data_categories:{tooltip:"Arrays of Data Category resources, identified by fides_key, that apply to this field."}}},69435:function(e,t,i){i.d(t,{Fk:function(){return c},_n:function(){return s},jC:function(){return r},qe:function(){return o}});var n=i(99729),l=i.n(n);let r=(e,t,i)=>{let n=e.collections.map((e,n)=>n===i?t:e);return{...e,collections:n}},a=(e,t,i)=>{let n=e.fields.map((e,n)=>n===i?t:e);return{...e,fields:n}},s=(e,t,i,n)=>{let l=a(e.collections[i],t,n);return r(e,l,i)},o=(e,t)=>{let i=e.collections.filter((e,i)=>i!==t);return{...e,collections:i}},c=e=>{let{dataset:t,collectionName:i,subfields:n}=e,r="",a=t.collections.findIndex(e=>e.name===i);return r+="collections[".concat(a,"]"),n&&n.forEach(e=>{let i=l()(t,r).fields.findIndex(t=>t.name===e);r+=".fields[".concat(i,"]")}),r}},59001:function(e,t,i){i.d(t,{Ch:function(){return a},Hy:function(){return s},Lo:function(){return l}});var n,l,r=i(61317);let a="root";(n=l||(l={})).DATA_CATEGORIES="Data categories",n.DATA_USES="Data uses",n.DATA_SUBJECTS="Data subjects";let s=e=>{switch(e){case"Data categories":return{UPDATE:r.Sh.DATA_CATEGORY_UPDATE,CREATE:r.Sh.DATA_CATEGORY_CREATE,DELETE:r.Sh.DATA_CATEGORY_DELETE,READ:r.Sh.DATA_CATEGORY_READ};case"Data uses":return{UPDATE:r.Sh.DATA_USE_UPDATE,CREATE:r.Sh.DATA_USE_CREATE,DELETE:r.Sh.DATA_USE_DELETE,READ:r.Sh.DATA_USE_READ};case"Data subjects":return{UPDATE:r.Sh.DATA_SUBJECT_UPDATE,CREATE:r.Sh.DATA_SUBJECT_CREATE,DELETE:r.Sh.DATA_SUBJECT_DELETE,READ:r.Sh.DATA_SUBJECT_READ};default:throw Error("Unknown taxonomy type: ".concat(e))}}},90673:function(e,t,i){i.d(t,{Cd:function(){return r},Xl:function(){return a}});var n=i(61317),l=i(59001);let r=(e,t)=>{let i;if(null==t&&e.every(e=>void 0===e.parent_key))i=e;else{let n=null!=t?t:null;i=e.filter(e=>e.parent_key===n)}return i.map(t=>{var i,n;let l=t.fides_key;return{value:t.fides_key,label:""===t.name||null==t.name?t.fides_key:t.name,description:t.description,children:r(e,l),is_default:null!==(i=t.is_default)&&void 0!==i&&i,active:null!==(n=t.active)&&void 0!==n&&n}})},a=e=>{switch(e){case l.Lo.DATA_CATEGORIES:return n.P6.DATA_CATEGORY;case l.Lo.DATA_SUBJECTS:return n.P6.DATA_SUBJECT;case l.Lo.DATA_USES:return n.P6.DATA_USE;default:return}}}}]);
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5487],{624:function(e,t,i){var n=i(24246),l=i(91942),r=i(27378);let a=e=>{let t=e.split("."),i=[];return t.forEach(e=>{let t=i.length>0?i[i.length-1]:null;t?i.push("".concat(t,".").concat(e)):i.push(e)}),i},s=(e,t)=>{let i=a(t).filter(e=>e!==t);return e.filter(e=>i.includes(e)).length>0},o=(e,t)=>!!(e===t||e.startsWith("".concat(t,"."))),c=(e,t,i)=>{let n=null!=i?i:[];return e.forEach(e=>{e.children&&c(e.children,t,n),o(e.value,t)&&n.push(e)}),n},d=e=>{let{node:t,isChecked:i,onChecked:r,isExpanded:a,onExpanded:s,isIndeterminate:o,isDisabled:c,children:d}=e,{value:u,label:h}=t,x=!!t.children&&t.children.length>0;return(0,n.jsxs)(l.xuv,{children:[(0,n.jsxs)(l.xuv,{display:"flex",justifyContent:"space-between",_hover:{backgroundColor:"gray.100",cursor:"pointer"},onClick:()=>s(t),minHeight:8,children:[(0,n.jsx)(l.XZJ,{colorScheme:"complimentary",value:u,isChecked:!o&&i,isIndeterminate:o,isDisabled:c,onChange:()=>r(t),mx:2,"data-testid":"checkbox-".concat(h),children:h}),x?(0,n.jsx)(l.wpx,{"data-testid":"expand-".concat(h),"aria-label":a?"collapse":"expand",icon:(0,n.jsx)(l.v4q,{boxSize:5}),type:"text",onClick:()=>s(t),className:a?"rotate-180":void 0}):null]}),d&&(0,n.jsx)(l.xuv,{ml:5,children:d})]})};t.ZP=e=>{let{nodes:t,selected:i,onSelected:u,...h}=e,[x,p]=(0,r.useState)([]),[f,m]=(0,r.useState)([]);(0,r.useEffect)(()=>{let e=Array.from(new Set([...i.map(e=>a(e)).reduce((e,t)=>e.concat(t),[]),...i.map(e=>c(t,e)).reduce((e,t)=>e.concat(t),[]).map(e=>e.value)]));m(e),p(e)},[i,t]);let j=e=>{let n=[],l=[];x.indexOf(e.value)>=0?(n=x.filter(t=>!o(t,e.value)),l=i.filter(t=>!o(t,e.value))):(n=[...x,...c(t,e.value).map(e=>e.value)],l=[...i,e.value]),p(n),u(l)},v=e=>{f.indexOf(e.value)>=0?m(f.filter(t=>!o(t,e.value))):m([...f,e.value])},C=e=>{if(e.children){let l=x.indexOf(e.value)>=0,a=f.indexOf(e.value)>=0,o=c(t,e.value),u=l&&e.children.length>0&&x.filter(t=>t.startsWith("".concat(e.value,"."))).length+1!==o.length,h=s(i,e.value);return(0,n.jsx)(d,{node:e,isChecked:l,onChecked:j,isExpanded:a,onExpanded:v,isDisabled:h,isIndeterminate:u,children:a?e.children.map(e=>(0,n.jsx)(r.Fragment,{children:C(e)},e.value)):void 0})}return null};return(0,n.jsx)(l.xuv,{...h,children:t.map(e=>(0,n.jsx)(l.xuv,{children:C(e)},e.value))})}},79806:function(e,t,i){i.d(t,{Gn:function(){return s},zR:function(){return a}});var n=i(24246),l=i(91942),r=i(56358);let a=e=>{let{title:t}=e;return(0,n.jsx)(l.OXI,{py:0,display:"flex",alignItems:"flex-start",children:(0,n.jsx)(l.xvT,{mr:"2",color:"gray.700",fontSize:"lg",lineHeight:1.8,children:t})})},s=e=>{let{onDelete:t,onEditYaml:i,formId:a,isSaving:s}=e;return(0,n.jsxs)(l.zeN,{justifyContent:"space-between",children:[t?(0,n.jsx)(l.wpx,{"aria-label":"delete",icon:(0,n.jsx)(r.q,{fontSize:"small"}),onClick:t,"data-testid":"delete-btn"}):null,(0,n.jsxs)("div",{className:"flex gap-2",children:[i&&(0,n.jsx)(l.wpx,{onClick:i,"data-testid":"edit-yaml-btn",children:"Edit YAML"}),(0,n.jsx)(l.wpx,{htmlType:"submit",type:"primary","data-testid":"save-btn",form:a,loading:s,children:"Save"})]})]})};t.ZP=e=>{let{header:t,description:i,isOpen:r,onClose:a,children:s,footer:o}=e;return(0,n.jsxs)(l.dys,{placement:"right",isOpen:r,onClose:a,size:"md",children:[(0,n.jsx)(l.P1B,{}),(0,n.jsxs)(l.scA,{"data-testid":"edit-drawer-content",py:2,children:[(0,n.jsxs)(l.xuv,{display:"flex",justifyContent:"space-between",alignItems:"top",mr:2,py:2,gap:2,children:[(0,n.jsx)(l.xuv,{flex:1,minH:8,children:t}),(0,n.jsx)(l.xuv,{display:"flex",justifyContent:"flex-end",mr:2,children:(0,n.jsx)(l.wpx,{"aria-label":"Close editor",onClick:a,"data-testid":"close-drawer-btn",icon:(0,n.jsx)(l.Two,{fontSize:"smaller"})})})]}),(0,n.jsxs)(l.Ng0,{pt:1,children:[i?(0,n.jsx)(l.xvT,{fontSize:"sm",mb:4,color:"gray.600",children:i}):null,s]}),o]})]})}},56358:function(e,t,i){i.d(t,{q:function(){return l}});var n=i(24246);let l=(0,i(91942).IUT)({displayName:"TrashCanOutlineIcon",viewBox:"0 0 11 12",path:(0,n.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,i){i.d(t,{Z:function(){return h}});var n=i(24246),l=i(91942),r=i(88038),a=i.n(r),s=i(86677);i(27378);var o=i(25980),c=i(90867),d=i(77830),u=()=>{let e=(0,s.useRouter)();return(0,n.jsx)(l.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)(l.xuv,{children:[(0,n.jsxs)(l.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,n.jsx)(l.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,n.jsx)(l.wpx,{onClick:()=>{e.push(d.fz)},children:"Configure"})]}),(0,n.jsxs)(l.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},h=e=>{let{children:t,title:i,padded:r=!0,mainProps:d}=e,h=(0,o.hz)(),x=(0,s.useRouter)(),p="/privacy-requests"===x.pathname||"/datastore-connection"===x.pathname,f=!(h.flags.privacyRequestsConfiguration&&p),{data:m}=(0,c.JE)(void 0,{skip:f}),{data:j}=(0,c.PW)(void 0,{skip:f}),v=h.flags.privacyRequestsConfiguration&&(!m||!j)&&p;return(0,n.jsxs)(l.kCb,{"data-testid":i,direction:"column",h:"100vh",children:[(0,n.jsxs)(a(),{children:[(0,n.jsxs)("title",{children:["Fides Admin UI - ",i]}),(0,n.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,n.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,n.jsxs)(l.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:[v?(0,n.jsx)(u,{}):null,t]})]})}},58754:function(e,t,i){var n=i(24246),l=i(91942),r=i(70788);t.Z=e=>{let{heading:t,breadcrumbItems:i,isSticky:a=!0,children:s,rightContent:o,style:c,...d}=e;return(0,n.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,n.jsxs)(l.jqI,{justify:"space-between",children:["string"==typeof t?(0,n.jsx)(l.lQT,{className:i||s?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,o&&(0,n.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!i&&(0,n.jsx)(r.m,{className:s?"pb-4":void 0,items:i,"data-testid":"page-breadcrumb"}),s]})}},70788:function(e,t,i){i.d(t,{m:function(){return c}});var n=i(24246),l=i(91942),r=i(79894),a=i.n(r),s=i(27378);let{Text:o}=l.AntTypography,c=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},c=s.onClick&&!s.href;return("string"==typeof s.title&&(s.title=(0,n.jsx)(o,{style:{color:"inherit",maxWidth:r?void 0:400},ellipsis:!r,children:s.title})),c)?s.title=(0,n.jsx)(l.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,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"anticon align-text-bottom",children:s.icon}),s.title]})),s.href&&s.title&&(s.title=(0,n.jsx)(a(),{href:s.href,className:"ant-breadcrumb-link",children:s.title}),delete s.href)),s}),[t]);return(0,n.jsx)(l.zrq,{items:r,...i})}},69828:function(e,t,i){i.d(t,{Y:function(){return a}});var n=i(24246),l=i(91942),r=i(70788);let a=[(0,n.jsx)(l.PJP.S9g,{},"layers"),(0,n.jsx)(l.PJP.ehp,{},"dataset"),(0,n.jsx)(l.PJP.iA_,{},"table"),(0,n.jsx)(l.PJP.$4y,{style:{transform:"rotate(-90deg)"}},"field")];t.Z=e=>{let{resourceUrn:t,parentLink:i,onPathClick:l=()=>{}}=e,s=[];if(t||s.push({title:"All activity"}),t){s.push({title:"All activity",href:i});let e=t.split(".");e.forEach((t,i)=>{0!==i&&s.push({title:t,icon:a[i-1],onClick:t=>{t.preventDefault(),l(e.slice(0,i+1).join("."))}})})}return(0,n.jsx)(r.m,{"data-testid":"results-breadcrumb",items:s})}},63927:function(e,t,i){i.d(t,{e:function(){return m},Z:function(){return j}});var n=i(24246),l=i(91942),r=i(34090),a=i(27378),s=i(16125),o=i(40324),c=i(39864),d=i(56026),u=i(46238),h=i(624),x=i(90673),p=e=>{let{dataCategories:t,checked:i,onChecked:r,buttonLabel:s}=e,o=(0,a.useMemo)(()=>(0,x.Cd)(t),[t]);return(0,n.jsxs)(l.v2r,{closeOnSelect:!0,children:[(0,n.jsx)(l.j2t,{as:l.wpx,icon:(0,n.jsx)(l.mCO,{}),className:"!bg-transparent",block:!0,"data-testid":"data-category-dropdown",children:null!=s?s:"Select data categories"}),(0,n.jsx)(l.qyq,{children:(0,n.jsxs)(l.xuv,{maxHeight:"50vh",minWidth:"300px",maxW:"full",overflowY:"scroll",children:[(0,n.jsxs)(l.xuv,{position:"sticky",top:0,zIndex:1,backgroundColor:"white",pt:1,children:[(0,n.jsx)(l.__7,{children:(0,n.jsxs)(l.xuv,{display:"flex",justifyContent:"space-between",px:2,mb:2,children:[(0,n.jsx)(l.sNh,{as:l.wpx,size:"small",className:"mr-2 !w-auto",onClick:()=>r([]),closeOnSelect:!1,"data-testid":"data-category-clear-btn",children:"Clear"}),(0,n.jsx)(l.xvT,{mr:2,children:"Data Categories"}),(0,n.jsx)(l.sNh,{as:l.wpx,size:"small",className:"!w-auto","data-testid":"data-category-done-btn",children:"Done"})]})}),(0,n.jsx)(l.RaW,{})]}),(0,n.jsx)(l.xuv,{px:2,"data-testid":"data-category-checkbox-tree",children:(0,n.jsx)(h.ZP,{nodes:o,selected:i,onSelected:r})})]})})]})},f=e=>{let{dataCategories:t,checked:i,onChecked:r,tooltip:a}=e,s=e=>{r(i.filter(t=>t!==e))},o=i.slice().sort((e,t)=>e.localeCompare(t));return(0,n.jsxs)(l.rjZ,{templateColumns:"1fr 3fr",children:[(0,n.jsx)(l.lXp,{children:"Data Categories"}),(0,n.jsxs)(l.vyj,{direction:"vertical",size:"small",children:[(0,n.jsxs)(l.xuv,{display:"flex",alignItems:"center",children:[(0,n.jsx)(l.xuv,{mr:"2",width:"100%",children:(0,n.jsx)(p,{dataCategories:t,checked:i,onChecked:r})}),(0,n.jsx)(u.b,{label:a})]}),(0,n.jsx)(l.vyj,{direction:"vertical",size:2,"data-testid":"selected-categories",children:o.map(e=>(0,n.jsx)(l.j8w,{closable:!0,onClose:()=>{s(e)},children:e},e))})]})]})};let m="edit-collection-or-field-form";var j=e=>{var t;let{values:i,onSubmit:u,dataType:h,showDataCategories:x=!0}=e,p={description:null!==(t=i.description)&&void 0!==t?t:"",data_categories:i.data_categories},j=(0,s.v9)(c.qb).filter(e=>e.active),[v,C]=(0,a.useState)(p.data_categories||[]),g="collection"===h?d.du.description.tooltip:d.QL.description.tooltip,y="collection"===h?d.du.data_categories.tooltip:d.QL.data_categories.tooltip;return(0,n.jsx)(r.J9,{initialValues:p,onSubmit:e=>{u({...e,data_categories:v})},children:(0,n.jsx)(r.l0,{id:m,children:(0,n.jsxs)(l.Kqy,{children:[(0,n.jsx)(o.j0,{name:"description",label:"Description",tooltip:g,"data-testid":"description-input"}),x&&(0,n.jsx)(f,{dataCategories:j,checked:v,onChecked:C,tooltip:y})]})})})}},56026:function(e,t,i){i.d(t,{QL:function(){return r},du:function(){return l},tz:function(){return n}});let n={name:{tooltip:"A UI-friendly label for the Dataset."},description:{tooltip:"A human-readable description of the Dataset."},data_categories:{tooltip:"Arrays of Data Category resources, identified by fides_key, that apply to all collections in the Dataset."}},l={description:{tooltip:"A human-readable description of the collection."},data_categories:{tooltip:"Arrays of Data Category resources, identified by fides_key, that apply to all fields in the collection."}},r={description:{tooltip:"A human-readable description of the field."},data_categories:{tooltip:"Arrays of Data Category resources, identified by fides_key, that apply to this field."}}},69435:function(e,t,i){i.d(t,{Fk:function(){return c},_n:function(){return s},jC:function(){return r},qe:function(){return o}});var n=i(99729),l=i.n(n);let r=(e,t,i)=>{let n=e.collections.map((e,n)=>n===i?t:e);return{...e,collections:n}},a=(e,t,i)=>{let n=e.fields.map((e,n)=>n===i?t:e);return{...e,fields:n}},s=(e,t,i,n)=>{let l=a(e.collections[i],t,n);return r(e,l,i)},o=(e,t)=>{let i=e.collections.filter((e,i)=>i!==t);return{...e,collections:i}},c=e=>{let{dataset:t,collectionName:i,subfields:n}=e,r="",a=t.collections.findIndex(e=>e.name===i);return r+="collections[".concat(a,"]"),n&&n.forEach(e=>{let i=l()(t,r).fields.findIndex(t=>t.name===e);r+=".fields[".concat(i,"]")}),r}},59001:function(e,t,i){i.d(t,{Ch:function(){return a},Hy:function(){return s},Lo:function(){return l}});var n,l,r=i(7448);let a="root";(n=l||(l={})).DATA_CATEGORIES="Data categories",n.DATA_USES="Data uses",n.DATA_SUBJECTS="Data subjects";let s=e=>{switch(e){case"Data categories":return{UPDATE:r.Sh.DATA_CATEGORY_UPDATE,CREATE:r.Sh.DATA_CATEGORY_CREATE,DELETE:r.Sh.DATA_CATEGORY_DELETE,READ:r.Sh.DATA_CATEGORY_READ};case"Data uses":return{UPDATE:r.Sh.DATA_USE_UPDATE,CREATE:r.Sh.DATA_USE_CREATE,DELETE:r.Sh.DATA_USE_DELETE,READ:r.Sh.DATA_USE_READ};case"Data subjects":return{UPDATE:r.Sh.DATA_SUBJECT_UPDATE,CREATE:r.Sh.DATA_SUBJECT_CREATE,DELETE:r.Sh.DATA_SUBJECT_DELETE,READ:r.Sh.DATA_SUBJECT_READ};default:throw Error("Unknown taxonomy type: ".concat(e))}}},90673:function(e,t,i){i.d(t,{Cd:function(){return r},Xl:function(){return a}});var n=i(7448),l=i(59001);let r=(e,t)=>{let i;if(null==t&&e.every(e=>void 0===e.parent_key))i=e;else{let n=null!=t?t:null;i=e.filter(e=>e.parent_key===n)}return i.map(t=>{var i,n;let l=t.fides_key;return{value:t.fides_key,label:""===t.name||null==t.name?t.fides_key:t.name,description:t.description,children:r(e,l),is_default:null!==(i=t.is_default)&&void 0!==i&&i,active:null!==(n=t.active)&&void 0!==n&&n}})},a=e=>{switch(e){case l.Lo.DATA_CATEGORIES:return n.P6.DATA_CATEGORY;case l.Lo.DATA_SUBJECTS:return n.P6.DATA_SUBJECT;case l.Lo.DATA_USES:return n.P6.DATA_USE;default:return}}}}]);