ethyca-fides 2.59.2b2__py2.py3-none-any.whl → 2.59.2rc0__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 (252) hide show
  1. {ethyca_fides-2.59.2b2.dist-info → ethyca_fides-2.59.2rc0.dist-info}/METADATA +2 -2
  2. {ethyca_fides-2.59.2b2.dist-info → ethyca_fides-2.59.2rc0.dist-info}/RECORD +206 -209
  3. {ethyca_fides-2.59.2b2.dist-info → ethyca_fides-2.59.2rc0.dist-info}/WHEEL +1 -1
  4. fides/_version.py +3 -3
  5. fides/api/api/v1/endpoints/storage_endpoints.py +4 -5
  6. fides/api/db/system.py +121 -1
  7. fides/api/models/asset.py +2 -1
  8. fides/api/models/privacy_notice.py +19 -14
  9. fides/api/models/sql_models.py +51 -0
  10. fides/api/schemas/application_config.py +0 -1
  11. fides/api/schemas/connection_configuration/connection_secrets_datahub.py +3 -3
  12. fides/api/schemas/connection_configuration/connection_secrets_mysql.py +0 -12
  13. fides/api/schemas/connection_configuration/connection_secrets_postgres.py +4 -0
  14. fides/api/schemas/messaging/messaging.py +2 -9
  15. fides/api/schemas/storage/storage.py +1 -35
  16. fides/api/schemas/storage/storage_secrets_docs_only.py +2 -8
  17. fides/api/schemas/system.py +2 -1
  18. fides/api/service/connectors/mysql_connector.py +1 -13
  19. fides/api/service/connectors/postgres_connector.py +4 -2
  20. fides/api/service/storage/storage_authenticator_service.py +0 -28
  21. fides/api/service/storage/storage_uploader_service.py +1 -25
  22. fides/api/tasks/storage.py +1 -45
  23. fides/api/util/storage_util.py +0 -2
  24. fides/service/messaging/aws_ses_service.py +16 -25
  25. fides/ui-build/static/admin/404.html +1 -1
  26. fides/ui-build/static/admin/_next/static/P3RkpoojridGfvvbDI91a/_buildManifest.js +1 -0
  27. fides/ui-build/static/admin/_next/static/chunks/{1100-93c5835d689e9dd5.js → 1100-45c0634b4f51d10c.js} +1 -1
  28. fides/ui-build/static/admin/_next/static/chunks/1376-92890c17ce39ca0d.js +1 -0
  29. fides/ui-build/static/admin/_next/static/chunks/146-d1820217dc36d46d.js +1 -0
  30. fides/ui-build/static/admin/_next/static/chunks/{1817-16d1dd3b13e590b3.js → 1817-6abbe957a53026d7.js} +1 -1
  31. fides/ui-build/static/admin/_next/static/chunks/{1904-0f03e5a2c3de8487.js → 1904-281183a117e26585.js} +1 -1
  32. fides/ui-build/static/admin/_next/static/chunks/{2479-18fbea714b5f1f7a.js → 2479-b4f7a1c7c711cb65.js} +1 -1
  33. fides/ui-build/static/admin/_next/static/chunks/3086-d1ba90bc6ac9174b.js +1 -0
  34. fides/ui-build/static/admin/_next/static/chunks/3244-3d94bf3393366412.js +1 -0
  35. fides/ui-build/static/admin/_next/static/chunks/{3702-c4465f7b3bbc3edc.js → 3702-3d814671c31eaca3.js} +1 -1
  36. fides/ui-build/static/admin/_next/static/chunks/3855-237afbbea7f54707.js +1 -0
  37. fides/ui-build/static/admin/_next/static/chunks/{3872-03319b7328ddc284.js → 3872-c53d74aebd12cfd3.js} +1 -1
  38. fides/ui-build/static/admin/_next/static/chunks/401-50974f107c2712fc.js +1 -0
  39. fides/ui-build/static/admin/_next/static/chunks/4060-52fd85fb1e15a2b8.js +1 -0
  40. fides/ui-build/static/admin/_next/static/chunks/4121-476f657b03a78965.js +1 -0
  41. fides/ui-build/static/admin/_next/static/chunks/4481-288d74a33473cff7.js +1 -0
  42. fides/ui-build/static/admin/_next/static/chunks/5102-626b9ff42e904276.js +1 -0
  43. fides/ui-build/static/admin/_next/static/chunks/5480-1623dbacdf4e6794.js +1 -0
  44. fides/ui-build/static/admin/_next/static/chunks/{5487-7751e91b40dc6050.js → 5487-9a2aecb0ec63d567.js} +1 -1
  45. fides/ui-build/static/admin/_next/static/chunks/{5826-8516f6c635510e95.js → 5826-1f4f74bf3b5348e4.js} +1 -1
  46. fides/ui-build/static/admin/_next/static/chunks/5973-942ce645a4279587.js +1 -0
  47. fides/ui-build/static/admin/_next/static/chunks/{6372-d3f778c62070545f.js → 6372-2aee10b79089521a.js} +1 -1
  48. fides/ui-build/static/admin/_next/static/chunks/6395-4224d6d26d1e8bb7.js +1 -0
  49. fides/ui-build/static/admin/_next/static/chunks/6853-ca5dacd25c9ccb7c.js +1 -0
  50. fides/ui-build/static/admin/_next/static/chunks/{6954-169abc679def0fb6.js → 6954-127745bfdc5bc0b3.js} +1 -1
  51. fides/ui-build/static/admin/_next/static/chunks/{7751-e0a78be0ca620df1.js → 7751-3913b8c055f599e5.js} +1 -1
  52. fides/ui-build/static/admin/_next/static/chunks/79-77cfed02164241ca.js +1 -0
  53. fides/ui-build/static/admin/_next/static/chunks/{8433-4481a5d085d3b008.js → 8433-c4c765833ab9cc07.js} +1 -1
  54. fides/ui-build/static/admin/_next/static/chunks/{8934-e2a4fd9f8ab74142.js → 8934-ffa2b0509bc7a845.js} +1 -1
  55. fides/ui-build/static/admin/_next/static/chunks/9282-1a48b10b114d01f4.js +1 -0
  56. fides/ui-build/static/admin/_next/static/chunks/{9327-b019990849ff57f3.js → 9327-4970d356f7000c0b.js} +1 -1
  57. fides/ui-build/static/admin/_next/static/chunks/{9392.5f3cfb8eafbeac59.js → 9392.da35a8e778812d91.js} +1 -1
  58. fides/ui-build/static/admin/_next/static/chunks/9572-2b9b10e146130c85.js +1 -0
  59. fides/ui-build/static/admin/_next/static/chunks/{9676.2e1267373b5a6076.js → 9676.f297a1347ac09c56.js} +1 -1
  60. fides/ui-build/static/admin/_next/static/chunks/9767-bf415d0daea960cd.js +1 -0
  61. fides/ui-build/static/admin/_next/static/chunks/{9951-e0d7db7ec538ebf1.js → 9951-66aad0602aadfbe2.js} +1 -1
  62. fides/ui-build/static/admin/_next/static/chunks/pages/{404-1dfbf30fba0233a2.js → 404-29560aa2e6a60963.js} +1 -1
  63. fides/ui-build/static/admin/_next/static/chunks/pages/{_app-9560c81c6cf5f050.js → _app-1ce747bb4aa843da.js} +48 -48
  64. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/manual-58e9256e86916ecd.js +1 -0
  65. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/{multiple-14c60fbc5907c621.js → multiple-2392e3a101fae073.js} +1 -1
  66. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems-a6926f7ec7ad10cf.js +1 -0
  67. fides/ui-build/static/admin/_next/static/chunks/pages/ant-poc-404f3c9018952800.js +1 -0
  68. fides/ui-build/static/admin/_next/static/chunks/pages/consent/configure/{add-vendors-79949b978a966399.js → add-vendors-7dfe37b9f0ff9a3c.js} +1 -1
  69. fides/ui-build/static/admin/_next/static/chunks/pages/consent/{configure-6af86d0717034a7f.js → configure-dba7848b760ba227.js} +1 -1
  70. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience/{[id]-e876f21f7f2245aa.js → [id]-78de4bde88e18b0f.js} +1 -1
  71. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience/{new-300fd2800c417d0b.js → new-c02b14c50b19bd91.js} +1 -1
  72. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience-7eeeee3769e73f78.js +1 -0
  73. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{[id]-80dd6ab96599efb5.js → [id]-75c2ed6ba3de48cd.js} +1 -1
  74. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{new-e48da14c5d5d0a66.js → new-487ae57dc7e2ded2.js} +1 -1
  75. fides/ui-build/static/admin/_next/static/chunks/pages/consent/{privacy-notices-05e67aa6f029e6d4.js → privacy-notices-65091908d6296afc.js} +1 -1
  76. fides/ui-build/static/admin/_next/static/chunks/pages/consent/{properties-6c99121562583eb7.js → properties-f67fda6a71d0a46b.js} +1 -1
  77. fides/ui-build/static/admin/_next/static/chunks/pages/consent/reporting-7a1976c0d1aca8b6.js +1 -0
  78. fides/ui-build/static/admin/_next/static/chunks/pages/{consent-253aa071516a6436.js → consent-75395dfc224cf44b.js} +1 -1
  79. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/{[projectUrn]-366121dfd638f6b5.js → [projectUrn]-fa65c67ec8c4b5e6.js} +1 -1
  80. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/{projects-974623a3afd4754b.js → projects-e76a07ee6ee8d55f.js} +1 -1
  81. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog-75989f9732d90793.js +1 -0
  82. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]/[systemId]-6b3d1fe762c747d8.js +1 -0
  83. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]-61eafb8444bffb76.js +1 -0
  84. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center-38476c697da53480.js +1 -0
  85. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/activity-e7869f658e3017b9.js +1 -0
  86. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/detection/{[resourceUrn]-10f789d4ab2b8927.js → [resourceUrn]-1bcaa606739ea1c5.js} +1 -1
  87. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{detection-f473b2ee1c67be3c.js → detection-22f55dc12354b4c6.js} +1 -1
  88. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/discovery/{[resourceUrn]-2569551ae75ea5a2.js → [resourceUrn]-86111c25dc30ef2b.js} +1 -1
  89. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{discovery-ad077f30849fdc0a.js → discovery-853be75f08b9ab5c.js} +1 -1
  90. fides/ui-build/static/admin/_next/static/chunks/pages/{datamap-0cb4cd87c876acc3.js → datamap-423172d31de8e9c6.js} +1 -1
  91. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]/{[...subfieldNames]-fd1f9aba215e8fb2.js → [...subfieldNames]-704553f5329fb9d4.js} +1 -1
  92. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/{[collectionName]-06793bb37fa509d8.js → [collectionName]-06c19dca941edb14.js} +1 -1
  93. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/{[datasetId]-662ce6650bd83f05.js → [datasetId]-eac517f43d5f53a8.js} +1 -1
  94. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/{new-5b773da9c79af072.js → new-5aff1d01c6c30ad6.js} +1 -1
  95. fides/ui-build/static/admin/_next/static/chunks/pages/{dataset-a8582040705239d4.js → dataset-f4d57b3432c57112.js} +1 -1
  96. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/{[id]-e650d48347fb457e.js → [id]-b2b1168d0361baa8.js} +1 -1
  97. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/{new-4b96de4707916560.js → new-c804349a417a888b.js} +1 -1
  98. fides/ui-build/static/admin/_next/static/chunks/pages/{datastore-connection-7ce2cd66791e7f6f.js → datastore-connection-0faa9b3c4555e585.js} +1 -1
  99. fides/ui-build/static/admin/_next/static/chunks/pages/{index-71e4264dcfba6181.js → index-e72904e316ede1b0.js} +1 -1
  100. fides/ui-build/static/admin/_next/static/chunks/pages/integrations/[id]-17191a759e167ca8.js +1 -0
  101. fides/ui-build/static/admin/_next/static/chunks/pages/integrations-88e51c81a380ebad.js +1 -0
  102. fides/ui-build/static/admin/_next/static/chunks/pages/messaging/{[id]-3a52dfa45f398f31.js → [id]-66f5fbadd8455805.js} +1 -1
  103. fides/ui-build/static/admin/_next/static/chunks/pages/messaging/{add-template-8e20f0da3a0779cc.js → add-template-d441abb1f045940f.js} +1 -1
  104. fides/ui-build/static/admin/_next/static/chunks/pages/{messaging-439832fde70c1157.js → messaging-eef56c95b08aa24c.js} +1 -1
  105. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/{[id]-16b266c9ddf8d192.js → [id]-54ea39f203182c53.js} +1 -1
  106. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/messaging-d889076067104e56.js +1 -0
  107. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/storage-3355b4803b2916f3.js +1 -0
  108. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/{configure-67b0a2a798d71e4d.js → configure-b8c94b10ab90b061.js} +1 -1
  109. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests-3ac47981f1e2b0aa.js +1 -0
  110. fides/ui-build/static/admin/_next/static/chunks/pages/properties/{[id]-99860c05fb5d25bd.js → [id]-f4fb941df069b7bf.js} +1 -1
  111. fides/ui-build/static/admin/_next/static/chunks/pages/properties/{add-property-4a7a21c25985fff0.js → add-property-bccb6ffab25aa214.js} +1 -1
  112. fides/ui-build/static/admin/_next/static/chunks/pages/{properties-a78b5af5894ed324.js → properties-9a7ac623370b7c00.js} +1 -1
  113. fides/ui-build/static/admin/_next/static/chunks/pages/reporting/datamap-fe743440d7eb007b.js +1 -0
  114. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{about-92fcfaa6111d7d24.js → about-4412a7b468b6d4bf.js} +1 -1
  115. fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent-cdc866af93898716.js +1 -0
  116. fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields-a7dc8113067dff42.js +1 -0
  117. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{domain-records-4347b3fdd12fdcff.js → domain-records-d9088f5cd9fb2822.js} +1 -1
  118. fides/ui-build/static/admin/_next/static/chunks/pages/settings/domains-2f03e981234c40ad.js +1 -0
  119. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{email-templates-d8f6562694f9dd45.js → email-templates-cf09ad896c7396a6.js} +1 -1
  120. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{locations-f74503aa1626e302.js → locations-759564ca0ae62840.js} +1 -1
  121. fides/ui-build/static/admin/_next/static/chunks/pages/settings/organization-5bcc7a6976e01a56.js +1 -0
  122. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{regulations-081148db3f589271.js → regulations-2dce4501fca920b3.js} +1 -1
  123. fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]/test-datasets-0b47ff26897c1d9a.js +1 -0
  124. fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/{[id]-e0110a539d33069a.js → [id]-dd053a3bf2a9ca6c.js} +1 -1
  125. fides/ui-build/static/admin/_next/static/chunks/pages/{systems-7aef28e963417fa3.js → systems-820893393f1516ee.js} +1 -1
  126. fides/ui-build/static/admin/_next/static/chunks/pages/taxonomy-8fccd670220dbf60.js +1 -0
  127. fides/ui-build/static/admin/_next/static/chunks/pages/user-management/{new-65ef1bdebb679666.js → new-082c3156175f9267.js} +1 -1
  128. fides/ui-build/static/admin/_next/static/chunks/pages/user-management/profile/{[id]-3430c5a08e86a85d.js → [id]-d527d1d1635541df.js} +1 -1
  129. fides/ui-build/static/admin/_next/static/chunks/pages/user-management-facb8c0128a44cb1.js +1 -0
  130. fides/ui-build/static/admin/_next/static/chunks/{webpack-7104b266fb47d653.js → webpack-03e375f6d6b2c71b.js} +1 -1
  131. fides/ui-build/static/admin/_next/static/css/687135955af5b7e1.css +1 -0
  132. fides/ui-build/static/admin/add-systems/manual.html +1 -1
  133. fides/ui-build/static/admin/add-systems/multiple.html +1 -1
  134. fides/ui-build/static/admin/add-systems.html +1 -1
  135. fides/ui-build/static/admin/ant-poc.html +1 -1
  136. fides/ui-build/static/admin/consent/configure/add-vendors.html +1 -1
  137. fides/ui-build/static/admin/consent/configure.html +1 -1
  138. fides/ui-build/static/admin/consent/privacy-experience/[id].html +1 -1
  139. fides/ui-build/static/admin/consent/privacy-experience/new.html +1 -1
  140. fides/ui-build/static/admin/consent/privacy-experience.html +1 -1
  141. fides/ui-build/static/admin/consent/privacy-notices/[id].html +1 -1
  142. fides/ui-build/static/admin/consent/privacy-notices/new.html +1 -1
  143. fides/ui-build/static/admin/consent/privacy-notices.html +1 -1
  144. fides/ui-build/static/admin/consent/properties.html +1 -1
  145. fides/ui-build/static/admin/consent/reporting.html +1 -1
  146. fides/ui-build/static/admin/consent.html +1 -1
  147. fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn].html +1 -1
  148. fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn].html +1 -1
  149. fides/ui-build/static/admin/data-catalog/[systemId]/projects.html +1 -1
  150. fides/ui-build/static/admin/data-catalog/[systemId]/resources/[resourceUrn].html +1 -1
  151. fides/ui-build/static/admin/data-catalog/[systemId]/resources.html +1 -1
  152. fides/ui-build/static/admin/data-catalog.html +1 -1
  153. fides/ui-build/static/admin/data-discovery/action-center/[monitorId]/[systemId].html +1 -1
  154. fides/ui-build/static/admin/data-discovery/action-center/[monitorId].html +1 -1
  155. fides/ui-build/static/admin/data-discovery/action-center.html +1 -1
  156. fides/ui-build/static/admin/data-discovery/activity.html +1 -1
  157. fides/ui-build/static/admin/data-discovery/detection/[resourceUrn].html +1 -1
  158. fides/ui-build/static/admin/data-discovery/detection.html +1 -1
  159. fides/ui-build/static/admin/data-discovery/discovery/[resourceUrn].html +1 -1
  160. fides/ui-build/static/admin/data-discovery/discovery.html +1 -1
  161. fides/ui-build/static/admin/datamap.html +1 -1
  162. fides/ui-build/static/admin/dataset/[datasetId]/[collectionName]/[...subfieldNames].html +1 -1
  163. fides/ui-build/static/admin/dataset/[datasetId]/[collectionName].html +1 -1
  164. fides/ui-build/static/admin/dataset/[datasetId].html +1 -1
  165. fides/ui-build/static/admin/dataset/new.html +1 -1
  166. fides/ui-build/static/admin/dataset.html +1 -1
  167. fides/ui-build/static/admin/datastore-connection/[id].html +1 -1
  168. fides/ui-build/static/admin/datastore-connection/new.html +1 -1
  169. fides/ui-build/static/admin/datastore-connection.html +1 -1
  170. fides/ui-build/static/admin/index.html +1 -1
  171. fides/ui-build/static/admin/integrations/[id].html +1 -1
  172. fides/ui-build/static/admin/integrations.html +1 -1
  173. fides/ui-build/static/admin/login/[provider].html +1 -1
  174. fides/ui-build/static/admin/login.html +1 -1
  175. fides/ui-build/static/admin/messaging/[id].html +1 -1
  176. fides/ui-build/static/admin/messaging/add-template.html +1 -1
  177. fides/ui-build/static/admin/messaging.html +1 -1
  178. fides/ui-build/static/admin/privacy-requests/[id].html +1 -1
  179. fides/ui-build/static/admin/privacy-requests/configure/messaging.html +1 -1
  180. fides/ui-build/static/admin/privacy-requests/configure/storage.html +1 -1
  181. fides/ui-build/static/admin/privacy-requests/configure.html +1 -1
  182. fides/ui-build/static/admin/privacy-requests.html +1 -1
  183. fides/ui-build/static/admin/properties/[id].html +1 -1
  184. fides/ui-build/static/admin/properties/add-property.html +1 -1
  185. fides/ui-build/static/admin/properties.html +1 -1
  186. fides/ui-build/static/admin/reporting/datamap.html +1 -1
  187. fides/ui-build/static/admin/settings/about.html +1 -1
  188. fides/ui-build/static/admin/settings/consent.html +1 -1
  189. fides/ui-build/static/admin/settings/custom-fields.html +1 -1
  190. fides/ui-build/static/admin/settings/domain-records.html +1 -1
  191. fides/ui-build/static/admin/settings/domains.html +1 -1
  192. fides/ui-build/static/admin/settings/email-templates.html +1 -1
  193. fides/ui-build/static/admin/settings/locations.html +1 -1
  194. fides/ui-build/static/admin/settings/organization.html +1 -1
  195. fides/ui-build/static/admin/settings/regulations.html +1 -1
  196. fides/ui-build/static/admin/systems/configure/[id]/test-datasets.html +1 -1
  197. fides/ui-build/static/admin/systems/configure/[id].html +1 -1
  198. fides/ui-build/static/admin/systems.html +1 -1
  199. fides/ui-build/static/admin/taxonomy.html +1 -1
  200. fides/ui-build/static/admin/user-management/new.html +1 -1
  201. fides/ui-build/static/admin/user-management/profile/[id].html +1 -1
  202. fides/ui-build/static/admin/user-management.html +1 -1
  203. fides/api/alembic/migrations/versions/c9c72b3d550b_data_migration_cookie_asset.py +0 -218
  204. fides/api/service/storage/gcs.py +0 -38
  205. fides/ui-build/static/admin/_next/static/chunks/3503-569232568cee1a7e.js +0 -1
  206. fides/ui-build/static/admin/_next/static/chunks/3513-cf0c4d886ff26e00.js +0 -1
  207. fides/ui-build/static/admin/_next/static/chunks/3855-5417dfc333c7b6b6.js +0 -1
  208. fides/ui-build/static/admin/_next/static/chunks/401-f0c485676a4fc5f9.js +0 -1
  209. fides/ui-build/static/admin/_next/static/chunks/4060-98d858ec609e4b76.js +0 -1
  210. fides/ui-build/static/admin/_next/static/chunks/4121-044a191b265f4e51.js +0 -1
  211. fides/ui-build/static/admin/_next/static/chunks/4481-85e3f5845b50f10d.js +0 -1
  212. fides/ui-build/static/admin/_next/static/chunks/5835-b7b45dfb97180a88.js +0 -1
  213. fides/ui-build/static/admin/_next/static/chunks/5973-4e65b191ed82f8bd.js +0 -1
  214. fides/ui-build/static/admin/_next/static/chunks/6277-076a319bcff4f1a2.js +0 -1
  215. fides/ui-build/static/admin/_next/static/chunks/6853-25ff9e572d633f33.js +0 -1
  216. fides/ui-build/static/admin/_next/static/chunks/79-2302442f8b53f944.js +0 -1
  217. fides/ui-build/static/admin/_next/static/chunks/9282-356dc48612f4a21c.js +0 -1
  218. fides/ui-build/static/admin/_next/static/chunks/9572-ab070b1ae17dde8f.js +0 -1
  219. fides/ui-build/static/admin/_next/static/chunks/9719-caba0228fc973d3f.js +0 -1
  220. fides/ui-build/static/admin/_next/static/chunks/9767-b4f9c2cc14de6df6.js +0 -1
  221. fides/ui-build/static/admin/_next/static/chunks/9965-528ef17ac491d809.js +0 -1
  222. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/manual-bca30784c7356aa3.js +0 -1
  223. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems-0d7a9d9ad082c80c.js +0 -1
  224. fides/ui-build/static/admin/_next/static/chunks/pages/ant-poc-c2c4fd5faaf0f882.js +0 -1
  225. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience-83dea888aad26af3.js +0 -1
  226. fides/ui-build/static/admin/_next/static/chunks/pages/consent/reporting-ed1cdefeb38cf592.js +0 -1
  227. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog-4b1d9e4cc7fa17a2.js +0 -1
  228. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]/[systemId]-936f72087aae94e1.js +0 -1
  229. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]-b6e0c8625c953a00.js +0 -1
  230. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center-9ebb4dc8bc7dd058.js +0 -1
  231. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/activity-f0fe5d6cfcce0e69.js +0 -1
  232. fides/ui-build/static/admin/_next/static/chunks/pages/integrations/[id]-b3ec5320782fbb49.js +0 -1
  233. fides/ui-build/static/admin/_next/static/chunks/pages/integrations-4789200cdb1d7ec5.js +0 -1
  234. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/messaging-9c1748191ca19867.js +0 -1
  235. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/storage-9f1ea2b5896ff3fd.js +0 -1
  236. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests-faa220f7200fb252.js +0 -1
  237. fides/ui-build/static/admin/_next/static/chunks/pages/reporting/datamap-b5c8cdfd6c1e0544.js +0 -1
  238. fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent/[configuration_id]/[purpose_id]-224434177b2775dc.js +0 -1
  239. fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent-5822e06b76f3ec84.js +0 -1
  240. fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields-ff123ece2e2e4009.js +0 -1
  241. fides/ui-build/static/admin/_next/static/chunks/pages/settings/domains-899401bf5c72b67f.js +0 -1
  242. fides/ui-build/static/admin/_next/static/chunks/pages/settings/organization-610aa65b3dbcf467.js +0 -1
  243. fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]/test-datasets-6986ba3f6f33c110.js +0 -1
  244. fides/ui-build/static/admin/_next/static/chunks/pages/taxonomy-61345b0f7cbd939e.js +0 -1
  245. fides/ui-build/static/admin/_next/static/chunks/pages/user-management-216944eb66e430bb.js +0 -1
  246. fides/ui-build/static/admin/_next/static/css/091e5fc4883aeb42.css +0 -1
  247. fides/ui-build/static/admin/_next/static/tLZG5DlQ8HHUd5zR6TZEN/_buildManifest.js +0 -1
  248. fides/ui-build/static/admin/settings/consent/[configuration_id]/[purpose_id].html +0 -1
  249. {ethyca_fides-2.59.2b2.dist-info → ethyca_fides-2.59.2rc0.dist-info}/entry_points.txt +0 -0
  250. {ethyca_fides-2.59.2b2.dist-info → ethyca_fides-2.59.2rc0.dist-info}/licenses/LICENSE +0 -0
  251. {ethyca_fides-2.59.2b2.dist-info → ethyca_fides-2.59.2rc0.dist-info}/top_level.txt +0 -0
  252. /fides/ui-build/static/admin/_next/static/{tLZG5DlQ8HHUd5zR6TZEN → P3RkpoojridGfvvbDI91a}/_ssgManifest.js +0 -0
@@ -1,218 +0,0 @@
1
- """data migration converting existing 'Cookies' resources to 'Asset' resources with type 'Cookie'
2
-
3
- Revision ID: c9c72b3d550b
4
- Revises: 9288f729cac4
5
- Create Date: 2025-02-18 18:33:56.039924
6
-
7
- """
8
-
9
- import uuid
10
- from typing import Dict, Tuple
11
-
12
- import sqlalchemy as sa
13
- from alembic import op
14
- from loguru import logger
15
-
16
- from fides.api.models.asset import Asset
17
-
18
- # revision identifiers, used by Alembic.
19
- revision = "c9c72b3d550b"
20
- down_revision = "9288f729cac4"
21
- branch_labels = None
22
- depends_on = None
23
-
24
-
25
- def upgrade():
26
- # migrate existing cookies to assets
27
- connection = op.get_bind()
28
- result = connection.execute(
29
- sa.text(
30
- "SELECT c.id, c.created_at, c.updated_at, c.name, c.domain, c.system_id, c.path, c.privacy_declaration_id, pd.system_id AS pud_system_id, pd.data_use "
31
- "FROM cookies c "
32
- "LEFT JOIN privacydeclaration pd ON c.privacy_declaration_id = pd.id"
33
- )
34
- )
35
-
36
- logger.debug("Converting existing cookies to assets")
37
- assets_to_create: Dict[str, Asset] = {}
38
- for row in result:
39
- if row.privacy_declaration_id is None:
40
- identifier = f"{row.name}_{row.system_id}"
41
- if identifier not in assets_to_create.keys():
42
- assets_to_create[identifier] = Asset(
43
- id=str(uuid.uuid4()),
44
- created_at=row.created_at,
45
- updated_at=row.updated_at,
46
- name=row.name,
47
- domain=row.domain,
48
- system_id=row.system_id,
49
- data_uses=[],
50
- asset_type="Cookie",
51
- )
52
- continue
53
-
54
- if row.pud_system_id:
55
- system_id = row.pud_system_id
56
- data_uses = [row.data_use]
57
- else:
58
- system_id = row.system_id
59
- data_uses = []
60
-
61
- # Asset unique identifier is a composite of name, asset_type, domain, base_url, system_id. All assets here are cookies.
62
- identifier = f"{row.name}_{'Cookie'}_{row.domain}_{row.path}_{system_id}"
63
- if identifier in assets_to_create.keys():
64
- # If the asset already exists, append the data_use to the existing asset
65
- assets_to_create[identifier].data_uses.extend(data_uses)
66
- else:
67
- # If the asset does not exist, create a new asset with the data_use
68
- assets_to_create[identifier] = Asset(
69
- id=str(uuid.uuid4()),
70
- created_at=row.created_at,
71
- updated_at=row.updated_at,
72
- name=row.name,
73
- domain=row.domain,
74
- system_id=system_id,
75
- data_uses=data_uses,
76
- asset_type="Cookie",
77
- )
78
-
79
- # Insert the assets into the asset table
80
- assets_list = [
81
- {
82
- "id": asset.id if asset.id else str(uuid.uuid4()),
83
- "created_at": asset.created_at,
84
- "updated_at": asset.updated_at,
85
- "name": asset.name,
86
- "domain": asset.domain,
87
- "system_id": asset.system_id,
88
- "data_uses": asset.data_uses,
89
- "asset_type": "Cookie",
90
- }
91
- for asset in assets_to_create.values()
92
- ]
93
-
94
- if assets_list:
95
- logger.debug("Inserting assets into asset table ")
96
- connection.execute(
97
- sa.text(
98
- "INSERT INTO asset (id, created_at, updated_at, name, domain, system_id, data_uses, asset_type, with_consent) "
99
- "VALUES (:id, :created_at, :updated_at, :name, :domain, :system_id, :data_uses, :asset_type, false) "
100
- "ON CONFLICT DO NOTHING"
101
- ),
102
- assets_list,
103
- )
104
- else:
105
- logger.debug("No assets to insert into asset table. Skipping.")
106
-
107
- # Delete the cookies table
108
- logger.debug("Deleting cookies table")
109
- connection.execute(sa.text("DROP TABLE cookies"))
110
-
111
-
112
- def downgrade():
113
- # Recreate the cookies table
114
- logger.debug("Recreating cookies table")
115
- op.create_table(
116
- "cookies",
117
- sa.Column("id", sa.String(length=255), nullable=False),
118
- sa.Column(
119
- "created_at",
120
- sa.DateTime(timezone=True),
121
- server_default=sa.text("now()"),
122
- nullable=True,
123
- ),
124
- sa.Column(
125
- "updated_at",
126
- sa.DateTime(timezone=True),
127
- server_default=sa.text("now()"),
128
- nullable=True,
129
- ),
130
- sa.Column("name", sa.String(), nullable=False),
131
- sa.Column("domain", sa.String(), nullable=True),
132
- sa.Column("path", sa.String(), nullable=True),
133
- sa.Column("system_id", sa.String(), nullable=True),
134
- sa.Column("privacy_declaration_id", sa.String(), nullable=True),
135
- sa.ForeignKeyConstraint(
136
- ["privacy_declaration_id"], ["privacydeclaration.id"], ondelete="SET NULL"
137
- ),
138
- sa.ForeignKeyConstraint(["system_id"], ["ctl_systems.id"], ondelete="CASCADE"),
139
- sa.PrimaryKeyConstraint("id"),
140
- sa.UniqueConstraint(
141
- "name", "privacy_declaration_id", name="_cookie_name_privacy_declaration_uc"
142
- ),
143
- )
144
- op.create_index(op.f("ix_cookies_id"), "cookies", ["id"], unique=False)
145
- op.create_index(op.f("ix_cookies_name"), "cookies", ["name"], unique=False)
146
- op.create_index(
147
- op.f("ix_cookies_privacy_declaration_id"),
148
- "cookies",
149
- ["privacy_declaration_id"],
150
- unique=False,
151
- )
152
- op.create_index(
153
- op.f("ix_cookies_system_id"), "cookies", ["system_id"], unique=False
154
- )
155
- # ### end Alembic commands ###
156
-
157
- connection = op.get_bind()
158
- result = connection.execute(
159
- sa.text(
160
- "SELECT id, name, domain, system_id, data_uses FROM asset WHERE asset_type = 'Cookie'"
161
- )
162
- )
163
-
164
- # fetch all privacy declarations
165
- privacy_declarations = connection.execute(
166
- sa.text("SELECT id, system_id, data_use FROM privacydeclaration")
167
- ).fetchall()
168
- # create a mapping of system_id and data_use to privacy_declaration_id
169
- privacy_declaration_mapping: Dict[Tuple[str, str], str] = {}
170
- for pud in privacy_declarations:
171
- privacy_declaration_mapping[(pud.system_id, pud.data_use)] = pud.id
172
-
173
- logger.debug("Migrating existing assets to cookies")
174
- for row in result:
175
- # Find the privacy declaration ID matching the system ID and data use
176
- privacy_declaration_ids = []
177
- for data_use in row.data_uses:
178
- pud_id = privacy_declaration_mapping.get((row.system_id, data_use), None)
179
- if pud_id:
180
- privacy_declaration_ids.append(pud_id)
181
-
182
- cookies_to_insert = []
183
-
184
- if len(privacy_declaration_ids) == 0:
185
- # If no privacy declaration match we attach to system_id
186
- cookies_to_insert.append(
187
- {
188
- "id": row.id,
189
- "name": row.name,
190
- "domain": row.domain,
191
- "system_id": row.system_id,
192
- "privacy_declaration_id": None,
193
- }
194
- )
195
- else:
196
- for privacy_declaration_id in privacy_declaration_ids:
197
- # Create a cookie for each privacy declaration ID
198
- # generate a new ID
199
- cookie_id = str(uuid.uuid4())
200
- cookies_to_insert.append(
201
- {
202
- "id": cookie_id,
203
- "name": row.name,
204
- "domain": row.domain,
205
- "system_id": None,
206
- "privacy_declaration_id": privacy_declaration_id,
207
- }
208
- )
209
-
210
- if cookies_to_insert:
211
- connection.execute(
212
- sa.text(
213
- "INSERT INTO cookies (id, created_at, updated_at, name, domain, system_id, privacy_declaration_id) "
214
- "VALUES (:id, NOW(), NOW(), :name, :domain, :system_id, :privacy_declaration_id) "
215
- "ON CONFLICT DO NOTHING"
216
- ),
217
- cookies_to_insert,
218
- )
@@ -1,38 +0,0 @@
1
- from typing import Dict, Optional
2
-
3
- from google.cloud.storage import Client # type: ignore
4
- from google.oauth2 import service_account
5
- from loguru import logger
6
-
7
- from fides.api.common_exceptions import StorageUploadError
8
- from fides.api.schemas.storage.storage import GCSAuthMethod
9
-
10
-
11
- def get_gcs_client(
12
- auth_method: str,
13
- storage_secrets: Optional[Dict],
14
- ) -> Client:
15
- """
16
- Abstraction to retrieve a GCS client using secrets.
17
- """
18
- if auth_method == GCSAuthMethod.ADC.value:
19
- storage_client = Client()
20
-
21
- elif auth_method == GCSAuthMethod.SERVICE_ACCOUNT_KEYS.value:
22
- if not storage_secrets:
23
- err_msg = "Storage secrets not found for Google Cloud Storage."
24
- logger.warning(err_msg)
25
- raise StorageUploadError(err_msg)
26
-
27
- credentials = service_account.Credentials.from_service_account_info(
28
- dict(storage_secrets)
29
- )
30
- storage_client = Client(credentials=credentials)
31
-
32
- else:
33
- logger.error("Google Cloud Storage auth method not supported: {}", auth_method)
34
- raise ValueError(
35
- f"Google Cloud Storage auth method not supported: {auth_method}"
36
- )
37
-
38
- return storage_client
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3503],{95372:function(e){e.exports=function(e,a,n,i){for(var t=e.length,s=n+(i?1:-1);i?s--:++s<t;)if(a(e[s],s,e))return s;return -1}},56632:function(e,a,n){var i=n(89278),t=n(80068),s=n(50098);e.exports=function(e){return function(a,n,r){var o=Object(a);if(!t(a)){var _=i(n,3);a=s(a),n=function(e){return _(o[e],e,o)}}var l=e(a,n,r);return l>-1?o[_?a[l]:l]:void 0}}},64925:function(e,a,n){var i=n(56632)(n(66259));e.exports=i},66259:function(e,a,n){var i=n(95372),t=n(89278),s=n(47991),r=Math.max;e.exports=function(e,a,n){var o=null==e?0:e.length;if(!o)return -1;var _=null==n?0:s(n);return _<0&&(_=r(o+_,0)),i(e,t(a,3),_)}},94919:function(e,a,n){var i=n(91936),t=1/0;e.exports=function(e){return e?(e=i(e))===t||e===-t?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}},47991:function(e,a,n){var i=n(94919);e.exports=function(e){var a=i(e),n=a%1;return a==a?n?a-n:a:0}},29850:function(e,a,n){"use strict";n.d(a,{R:function(){return F}});var i=n(24246),t=n(56078),s=n(27378),r=n(65450);let o=e=>{let{children:a,className:n,style:s,...r}=e;return(0,i.jsx)(t.wpx,{...r,type:"text",className:"w-full justify-start ".concat(n),style:{fontWeight:600,padding:"var(--ant-select-option-padding)",backgroundColor:"var(--ant-select-option-selected-bg)",...s},children:a})};var _=n(16394);let l=(e,a)=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o,{onClick:a,"data-testid":"add-new-system",id:"add-new-system",children:"Add new system +"}),e]}),F=e=>{var a;let{onAddSystem:n,...o}=e,[F,d]=(0,s.useState)(),{data:u,isFetching:c}=(0,r.xF)({page:1,size:25,search:F||void 0}),m=null==u?void 0:null===(a=u.items)||void 0===a?void 0:a.map(e=>({value:e.fides_key,label:e.name})),S=(0,s.useCallback)(e=>{(null==e?void 0:e.length)>1&&d(e),(null==e?void 0:e.length)===0&&d(void 0)},[d]),h=(0,s.useMemo)(()=>(0,_.Ds)(S,300),[S]);return(0,i.jsx)(t.WPr,{placeholder:"Search...","aria-label":"Search for a system to select",dropdownStyle:{minWidth:"500px"},dropdownRender:n?e=>l(e,n):void 0,"data-testid":"system-select",...o,filterOption:!1,options:m,onSearch:h,loading:o.loading||c})}},79283:function(e,a,n){"use strict";n.d(a,{l:function(){return _}});var i=n(24246),t=n(56078),s=n(72707),r=n.n(s);let o=e=>{let{data:a}=e;return(0,i.jsxs)(t.jqI,{gap:12,title:"".concat(a.primaryName||"").concat(a.primaryName?": ":"").concat(a.name," - ").concat(a.description),children:[(0,i.jsxs)("div",{children:[(0,i.jsx)("strong",{children:a.primaryName||a.name}),a.primaryName&&": ".concat(a.name)]}),(0,i.jsx)("em",{children:a.description})]})},_=e=>{let{options:a,...n}=e,s=null==a?void 0:a.map(e=>({...e,className:r().option}));return(0,i.jsx)(t.WPr,{options:s,autoFocus:!0,variant:"borderless",optionRender:o,dropdownStyle:{minWidth:"500px"},className:"w-full p-0","data-testid":"taxonomy-select",...n})}},34929:function(e,a,n){"use strict";var i=n(24246),t=n(64925),s=n.n(t),r=n(27378),o=n(16134),_=n(30002),l=n(28079),F=n(57072);let d=()=>{let{isLoading:e}=(0,l.fd)(),a=(0,o.C)(l.U3),{isLoading:n}=(0,F.MO)(),i=(0,o.C)(F.qb),{isLoading:t}=(0,_.te)();return{dataUses:a,dataSubjects:(0,o.C)(_.ZL),dataCategories:i,isLoading:e||n||t}};a.Z=()=>{let{dataUses:e,dataCategories:a,dataSubjects:n,isLoading:t}=d(),o=function(e){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e.split(".").slice(0,a).join(".")},_=function(e,a){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=a(e);if(!i)return{};let t=a(o(e,n)),s=!!i.parent_key;return{name:i.name||void 0,primaryName:s&&(null==t?void 0:t.name)!==i.name&&(null==t?void 0:t.name)||void 0}},l=function(e,a){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,{name:t,primaryName:s}=_(e,a,n);return t?s?(0,i.jsxs)(r.Fragment,{children:[(0,i.jsxs)("strong",{children:[s,":"]})," ",t]},e):(0,i.jsx)("strong",{children:t},e):e},F=a=>s()(e,{fides_key:a}),u=e=>s()(a,{fides_key:e}),c=e=>s()(n,{fides_key:e});return{getDataUses:()=>e,getDataUseByKey:F,getDataUseDisplayName:e=>l(e,F,1),getDataUseDisplayNameProps:e=>_(e,F,1),getDataCategories:()=>a,getDataCategoryByKey:u,getDataCategoryDisplayName:e=>l(e,u,2),getDataCategoryDisplayNameProps:e=>_(e,u,2),getDataSubjects:()=>n,getDataSubjectByKey:c,getDataSubjectDisplayName:e=>{let a=c(e);return a?a.name:e},getPrimaryKey:o,isLoading:t}}},8411:function(e,a,n){"use strict";n.d(a,{NA:function(){return s},Z8:function(){return t}});var i=n(16643);let t={[i._F.ER]:"Eritrea",[i._F.DJ]:"Djibouti",[i._F.MR]:"Mauritania",[i._F.NA]:"Namibia",[i._F.GH]:"Ghana",[i._F.SS]:"South Sudan",[i._F.SC]:"Seychelles",[i._F.IO]:"British Indian Ocean Territory",[i._F.GQ]:"Equatorial Guinea",[i._F.AO]:"Angola",[i._F.CG]:"Republic of the Congo",[i._F.BW]:"Botswana",[i._F.BI]:"Burundi",[i._F.DZ]:"Algeria",[i._F.TD]:"Chad",[i._F.NG]:"Nigeria",[i._F.TZ]:"Tanzania",[i._F.EH]:"Western Sahara",[i._F.SN]:"Senegal",[i._F.LR]:"Liberia",[i._F.ZA]:"South Africa",[i._F.CV]:"Cape Verde",[i._F.GM]:"Gambia",[i._F.SD]:"Sudan",[i._F.KM]:"Comoros",[i._F.SZ]:"Eswatini",[i._F.UG]:"Uganda",[i._F.MG]:"Madagascar",[i._F.RW]:"Rwanda",[i._F.CD]:"DR Congo",[i._F.CM]:"Cameroon",[i._F.SH]:"Saint Helena, Ascension and Tristan da Cunha",[i._F.TG]:"Togo",[i._F.MU]:"Mauritius",[i._F.NE]:"Niger",[i._F.BJ]:"Benin",[i._F.EG]:"Egypt",[i._F.LS]:"Lesotho",[i._F.ET]:"Ethiopia",[i._F.MA]:"Morocco",[i._F.YT]:"Mayotte",[i._F.BF]:"Burkina Faso",[i._F.RE]:"R\xe9union",[i._F.ST]:"S\xe3o Tom\xe9 and Pr\xedncipe",[i._F.CF]:"Central African Republic",[i._F.MZ]:"Mozambique",[i._F.MW]:"Malawi",[i._F.ML]:"Mali",[i._F.ZM]:"Zambia",[i._F.LY]:"Libya",[i._F.GW]:"Guinea-Bissau",[i._F.SO]:"Somalia",[i._F.KE]:"Kenya",[i._F.GN]:"Guinea",[i._F.ZW]:"Zimbabwe",[i._F.TN]:"Tunisia",[i._F.SL]:"Sierra Leone",[i._F.GA]:"Gabon",[i._F.CI]:"Ivory Coast",[i._F.JO]:"Jordan",[i._F.PK]:"Pakistan",[i._F.KP]:"North Korea",[i._F.MO]:"Macau",[i._F.AM]:"Armenia",[i._F.SY]:"Syria",[i._F.TJ]:"Tajikistan",[i._F.SA]:"Saudi Arabia",[i._F.KR]:"South Korea",[i._F.NP]:"Nepal",[i._F.PH]:"Philippines",[i._F.IQ]:"Iraq",[i._F.LB]:"Lebanon",[i._F.MN]:"Mongolia",[i._F.PS]:"Palestine",[i._F.YE]:"Yemen",[i._F.JP]:"Japan",[i._F.KZ]:"Kazakhstan",[i._F.LK]:"Sri Lanka",[i._F.MM]:"Myanmar",[i._F.KG]:"Kyrgyzstan",[i._F.CN]:"China",[i._F.AF]:"Afghanistan",[i._F.OM]:"Oman",[i._F.IN]:"India",[i._F.LA]:"Laos",[i._F.UZ]:"Uzbekistan",[i._F.MV]:"Maldives",[i._F.ID]:"Indonesia",[i._F.VN]:"Vietnam",[i._F.MY]:"Malaysia",[i._F.TW]:"Taiwan",[i._F.KH]:"Cambodia",[i._F.AE]:"United Arab Emirates",[i._F.HK]:"Hong Kong",[i._F.GE]:"Georgia (Country)",[i._F.BD]:"Bangladesh",[i._F.KW]:"Kuwait",[i._F.TM]:"Turkmenistan",[i._F.QA]:"Qatar",[i._F.BH]:"Bahrain",[i._F.BN]:"Brunei",[i._F.TH]:"Thailand",[i._F.BT]:"Bhutan",[i._F.SG]:"Singapore",[i._F.IL]:"Israel",[i._F.AZ]:"Azerbaijan",[i._F.TL]:"Timor-Leste",[i._F.IR]:"Iran",[i._F.TR]:"Turkey",[i._F.MK]:"North Macedonia",[i._F.IE]:"Ireland",[i._F.DK]:"Denmark",[i._F.SK]:"Slovakia",[i._F.MD]:"Moldova",[i._F.AX]:"\xc5land Islands",[i._F.PL]:"Poland",[i._F.BA]:"Bosnia and Herzegovina",[i._F.SM]:"San Marino",[i._F.CZ]:"Czechia",[i._F.EE]:"Estonia",[i._F.XK]:"Kosovo",[i._F.FO]:"Faroe Islands",[i._F.SJ]:"Svalbard and Jan Mayen",[i._F.GG]:"Guernsey",[i._F.FR]:"France",[i._F.NL]:"Netherlands",[i._F.FI]:"Finland",[i._F.PT]:"Portugal",[i._F.DE]:"Germany",[i._F.MT]:"Malta",[i._F.JE]:"Jersey",[i._F.IS]:"Iceland",[i._F.ES]:"Spain",[i._F.GI]:"Gibraltar",[i._F.NO]:"Norway",[i._F.CY]:"Cyprus",[i._F.RS]:"Serbia",[i._F.LT]:"Lithuania",[i._F.MC]:"Monaco",[i._F.LU]:"Luxembourg",[i._F.UA]:"Ukraine",[i._F.IM]:"Isle of Man",[i._F.RO]:"Romania",[i._F.BE]:"Belgium",[i._F.SE]:"Sweden",[i._F.ME]:"Montenegro",[i._F.LV]:"Latvia",[i._F.VA]:"Vatican City",[i._F.AT]:"Austria",[i._F.AL]:"Albania",[i._F.LI]:"Liechtenstein",[i._F.GR]:"Greece",[i._F.IT]:"Italy",[i._F.AD]:"Andorra",[i._F.GB]:"United Kingdom",[i._F.RU]:"Russia",[i._F.SI]:"Slovenia",[i._F.BY]:"Belarus",[i._F.CH]:"Switzerland",[i._F.HU]:"Hungary",[i._F.BG]:"Bulgaria",[i._F.HR]:"Croatia",[i._F.TC]:"Turks and Caicos Islands",[i._F.CW]:"Cura\xe7ao",[i._F.GP]:"Guadeloupe",[i._F.UM]:"United States Minor Outlying Islands",[i._F.GT]:"Guatemala",[i._F.PM]:"Saint Pierre and Miquelon",[i._F.BQ]:"Caribbean Netherlands",[i._F.GL]:"Greenland",[i._F.SX]:"Sint Maarten",[i._F.PA]:"Panama",[i._F.AW]:"Aruba",[i._F.MQ]:"Martinique",[i._F.AG]:"Antigua and Barbuda",[i._F.BM]:"Bermuda",[i._F.CU]:"Cuba",[i._F.GD]:"Grenada",[i._F.NI]:"Nicaragua",[i._F.LC]:"Saint Lucia",[i._F.KN]:"Saint Kitts and Nevis",[i._F.DO]:"Dominican Republic",[i._F.VC]:"Saint Vincent and the Grenadines",[i._F.BZ]:"Belize",[i._F.HT]:"Haiti",[i._F.JM]:"Jamaica",[i._F.BS]:"Bahamas",[i._F.MX]:"Mexico",[i._F.MF]:"Saint Martin",[i._F.SV]:"El Salvador",[i._F.BL]:"Saint Barth\xe9lemy",[i._F.AI]:"Anguilla",[i._F.MS]:"Montserrat",[i._F.VG]:"British Virgin Islands",[i._F.BB]:"Barbados",[i._F.HN]:"Honduras",[i._F.KY]:"Cayman Islands",[i._F.DM]:"Dominica",[i._F.TT]:"Trinidad and Tobago",[i._F.CR]:"Costa Rica",[i._F.SR]:"Suriname",[i._F.CX]:"Christmas Island",[i._F.WS]:"Samoa",[i._F.PF]:"French Polynesia",[i._F.AS]:"American Samoa",[i._F.NC]:"New Caledonia",[i._F.TK]:"Tokelau",[i._F.PW]:"Palau",[i._F.KI]:"Kiribati",[i._F.VU]:"Vanuatu",[i._F.PN]:"Pitcairn Islands",[i._F.CK]:"Cook Islands",[i._F.FJ]:"Fiji",[i._F.PG]:"Papua New Guinea",[i._F.MP]:"Northern Mariana Islands",[i._F.NU]:"Niue",[i._F.TV]:"Tuvalu",[i._F.NF]:"Norfolk Island",[i._F.TO]:"Tonga",[i._F.FM]:"Micronesia",[i._F.SB]:"Solomon Islands",[i._F.NR]:"Nauru",[i._F.WF]:"Wallis and Futuna",[i._F.GU]:"Guam",[i._F.AU]:"Australia",[i._F.NZ]:"New Zealand",[i._F.MH]:"Marshall Islands",[i._F.CC]:"Cocos (Keeling) Islands",[i._F.VE]:"Venezuela",[i._F.PY]:"Paraguay",[i._F.BR]:"Brazil",[i._F.CO]:"Colombia",[i._F.PE]:"Peru",[i._F.CL]:"Chile",[i._F.UY]:"Uruguay",[i._F.AR]:"Argentina",[i._F.GY]:"Guyana",[i._F.BO]:"Bolivia",[i._F.GF]:"French Guiana",[i._F.EC]:"Ecuador",[i._F.FK]:"Falkland Islands",[i._F.US_AL]:"Alabama",[i._F.US_AK]:"Alaska",[i._F.US_AZ]:"Arizona",[i._F.US_AR]:"Arkansas",[i._F.US_CA]:"California",[i._F.US_CO]:"Colorado",[i._F.US_CT]:"Connecticut",[i._F.US_DE]:"Delaware",[i._F.US_DC]:"District of Columbia (DC)",[i._F.US_FL]:"Florida",[i._F.US_GA]:"Georgia",[i._F.US_HI]:"Hawaii",[i._F.US_ID]:"Idaho",[i._F.US_IL]:"Illinois",[i._F.US_IN]:"Indiana",[i._F.US_IA]:"Iowa",[i._F.US_KS]:"Kansas",[i._F.US_KY]:"Kentucky",[i._F.US_LA]:"Louisiana",[i._F.US_ME]:"Maine",[i._F.US_MD]:"Maryland",[i._F.US_MA]:"Massachusetts",[i._F.US_MI]:"Michigan",[i._F.US_MN]:"Minnesota",[i._F.US_MS]:"Mississippi",[i._F.US_MO]:"Missouri",[i._F.US_MT]:"Montana",[i._F.US_NE]:"Nebraska",[i._F.US_NV]:"Nevada",[i._F.US_NH]:"New Hampshire",[i._F.US_NJ]:"New Jersey",[i._F.US_NM]:"New Mexico",[i._F.US_NY]:"New York",[i._F.US_NC]:"North Carolina",[i._F.US_ND]:"North Dakota",[i._F.US_OH]:"Ohio",[i._F.US_OK]:"Oklahoma",[i._F.US_OR]:"Oregon",[i._F.US_PA]:"Pennsylvania",[i._F.US_PR]:"Puerto Rico",[i._F.US_RI]:"Rhode Island",[i._F.US_SC]:"South Carolina",[i._F.US_SD]:"South Dakota",[i._F.US_TN]:"Tennessee",[i._F.US_TX]:"Texas",[i._F.US_UT]:"Utah",[i._F.US_VA]:"Virginia",[i._F.US_VI]:"United States Virgin Islands",[i._F.US_VT]:"Vermont",[i._F.US_WA]:"Washington",[i._F.US_WV]:"West Virginia",[i._F.US_WI]:"Wisconsin",[i._F.US_WY]:"Wyoming",[i._F.CA_AB]:"Alberta",[i._F.CA_BC]:"British Columbia",[i._F.CA_MB]:"Manitoba",[i._F.CA_NB]:"New Brunswick",[i._F.CA_NL]:"Newfoundland and Labrador",[i._F.CA_NS]:"Nova Scotia",[i._F.CA_ON]:"Ontario",[i._F.CA_PE]:"Prince Edward Island",[i._F.CA_QC]:"Quebec",[i._F.CA_SK]:"Saskatchewan",[i._F.CA_NT]:"Northwest Territories",[i._F.CA_NU]:"Nunavut",[i._F.CA_YT]:"Yukon",[i._F.CA]:"Canada",[i._F.US]:"United States",[i._F.MEXICO_CENTRAL_AMERICA]:"Mexico and Central America",[i._F.CARIBBEAN]:"Caribbean",[i._F.EEA]:"European Economic Area (EEA)",[i._F.NON_EEA]:"Non European Economic Area"},s=new Map(Object.entries(t));Object.entries(t).map(e=>({value:e[0],label:e[1]}))},26183:function(e,a,n){"use strict";var i=n(24246);n(27378),a.Z=e=>{let{children:a,className:n,...t}=e;return(0,i.jsx)("div",{className:"relative flex w-full flex-wrap items-center gap-2 overflow-x-auto py-2 ".concat(n||""),...t,children:a})}},77685:function(e,a,n){"use strict";n.d(a,{i:function(){return b}});var i=n(24246),t=n(56078),s=n(34090),r=n(27378),o=n(55484),_=n(16134),l=n(25980),F=n(97181),d=n(40324),u=n(812),c=n(14047),m=n(45938),S=n(8133),h=n(33335),g=n(32885),y=n(57865),p=n(93237),C=n(65450),f=n(36345);let{Text:v}=t.AntTypography,N={name:"",vendor_id:void 0,description:"",tags:[]},b=e=>{let{onSuccessfulSubmit:a,toastOnSuccess:n,...b}=e,[M,x]=(0,r.useState)(!1),A=(0,_.T)(),{tcf:U,dictionaryService:I}=(0,l.hz)(),{isLoading:j}=(0,g.Rd)(void 0,{skip:!I}),w=(0,_.C)(g.o),T=(0,_.C)(y.gU),[B]=(0,C.in)(),[E]=(0,g.Qk)(),[G]=(0,C.f7)(),{successAlert:k,errorAlert:D}=(0,c.V)(),{setSuggestions:L,setLockedForGVL:R}=y.dictSuggestionsSlice.actions,P=(0,r.useRef)(null),K=(0,r.useMemo)(()=>o.Ry().shape({name:o.Z_().required().label("System name").test("is-unique","",async(e,a)=>{let{data:n}=await B({page:1,size:10,search:e});return!((null==n?void 0:n.items)||[]).filter(a=>a.name===e).some(a=>a.name===e)||a.createError({message:'You already have a system called "'.concat(e,'". Please specify a unique name for this system.')})})}),[B]),O=e=>{if(I){if(!e){A(L("hiding")),A(R(!1));return}A(L("showing")),U&&(0,u.cj)(e)===u.c6.GVL?A(R(!0)):A(R(!1))}},V=()=>{b.onClose(),A(L("initial")),A(R(!1))},W=async e=>{if(x(!0),e.vendor_id){let i=await E([e.vendor_id]);if((0,u.D4)(i))D((0,u.e$)(i.error));else{let{data:e}=i,t=e.systems[0];null==a||a(t.fides_key,t.name),n&&k("".concat(e.name," has been added to your system inventory."))}}else{let i={...e,fides_key:(0,h.E)(e.name),system_type:"",body:"",privacy_declarations:[]},t=await G(i);if((0,u.D4)(t))D((0,u.e$)(t.error));else{let{fides_key:i,name:s}=t.data;null==a||a(i,s),n&&k("".concat(e.name," has been added to your system inventory."))}V()}x(!1)};return(0,i.jsx)(S.Z,{title:"Add New System",...b,onClose:V,children:(0,i.jsx)(s.J9,{initialValues:N,onSubmit:W,validationSchema:K,innerRef:P,children:e=>{let{dirty:a,isValid:n}=e;return(0,i.jsxs)(s.l0,{children:[(0,i.jsx)(m.Gt,{id:"new-system-modal",name:"Add New System"}),(0,i.jsxs)(t.jqI,{vertical:!0,gap:20,className:"pb-6 pt-4",children:[(0,i.jsx)(v,{children:"Fides will add this system to your inventory and configure it for consent using the categories of consent listed below. Optionally, you can check if this system is listed within the Fides compass library by selecting the compass icon below."}),I?(0,i.jsx)(f.Z,{label:"System name",options:w,onVendorSelected:O,isCreate:!0,lockedForGVL:T,isLoading:j}):(0,i.jsx)(d.j0,{id:"name",name:"name",label:"System name",tooltip:"Give the system a unique, and relevant name for reporting purposes. e.g. “Email Data Warehouse”",variant:"stacked",isRequired:!0}),(0,i.jsx)(p.Sv,{id:"description",name:"description",label:"Description",tooltip:"What services does this system perform?",disabled:T}),(0,i.jsx)(F.d,{mode:"tags",id:"tags",name:"tags",label:"System Tags",options:[],layout:"stacked",tooltip:"Are there any tags to associate with this system?",disabled:T})]}),(0,i.jsxs)(t.jqI,{justify:"space-between",children:[(0,i.jsx)(t.wpx,{htmlType:"reset",onClick:V,disabled:j||!a||!n,"data-testid":"cancel-btn",children:"Cancel"}),(0,i.jsx)(t.wpx,{htmlType:"submit",type:"primary",disabled:j||!a||!n,loading:M,"data-testid":"save-btn",children:"Save"})]})]})}})})}},93237:function(e,a,n){"use strict";n.d(a,{Sv:function(){return m},Yb:function(){return c},dQ:function(){return S},lm:function(){return h}});var i=n(24246),t=n(56078),s=n(34090),r=n(27378),o=n(16134),_=n(40324),l=n(46238),F=n(32885),d=n(57865);let u=(e,a,n)=>{var i,t;let[_,l,{setValue:u,setTouched:c}]=(0,s.U$)({name:e,type:n||void 0}),m=!!(l.touched&&l.error),{error:S}=l,h={..._,value:null!==(i=_.value)&&void 0!==i?i:""},[g,y]=(0,r.useState)(null!==(t=h.value)&&void 0!==t?t:""),{values:p}=(0,s.u6)(),{vendor_id:C}=p,f=(0,o.C)((0,F.$e)(C||"")),v=(0,o.C)(d.bN),N=(0,r.useRef)();return(0,r.useEffect)(()=>{"showing"===v&&y(h.value)},[v,y]),(0,r.useEffect)(()=>{if("showing"===v&&f){let n=a?a(f):f[e];h.value!==n&&(u(n),setTimeout(()=>{var e;c(!0),null===(e=N.current)||void 0===e||e.blur()},300))}},[v,u,f,N.current]),(0,r.useEffect)(()=>{"hiding"===v&&u(g)},[v,u,g]),{field:h,isInvalid:m,isShowingSuggestions:v,error:S,inputRef:N}},c=e=>{let{label:a,tooltip:n,disabled:s,isRequired:r=!1,dictField:o,name:F,placeholder:d,id:c}=e,{field:m,isInvalid:S,isShowingSuggestions:h,error:g,inputRef:y}=u(F,o);return(0,i.jsx)(t.NIc,{isInvalid:S,isRequired:r,children:(0,i.jsxs)(t.gCW,{alignItems:"start",children:[(0,i.jsxs)(t.kCb,{alignItems:"center",children:[(0,i.jsx)(_.__,{htmlFor:c||F,fontSize:"xs",my:0,mr:1,children:a}),(0,i.jsx)(l.b,{label:n})]}),(0,i.jsx)(_.oi,{...m,ref:y,isRequired:r,isDisabled:s,"data-testid":"input-".concat(m.name),placeholder:d,isPassword:!1,color:"showing"===h?"complimentary.500":"gray.800"}),(0,i.jsx)(_.Bc,{isInvalid:S,message:g,fieldName:m.name})]})})},m=e=>{let{label:a,tooltip:n,disabled:s,isRequired:r=!1,dictField:o,name:F,id:d}=e,{field:c,isInvalid:m,isShowingSuggestions:S,error:h}=u(F,o);return(0,i.jsx)(t.NIc,{isInvalid:m,isRequired:r,children:(0,i.jsxs)(t.gCW,{alignItems:"start",children:[(0,i.jsxs)(t.kCb,{alignItems:"center",children:[(0,i.jsx)(_.__,{htmlFor:d||F,fontSize:"xs",my:0,mr:1,children:a}),(0,i.jsx)(l.b,{label:n})]}),(0,i.jsx)(t.gxH,{...c,size:"sm","data-testid":"input-".concat(c.name),focusBorderColor:"primary.600",color:"showing"===S?"complimentary.500":"gray.800",isDisabled:s}),(0,i.jsx)(_.Bc,{isInvalid:m,message:h,fieldName:c.name})]})})},S=e=>{let{label:a,tooltip:n,dictField:r,name:o,id:F,disabled:d}=e,{field:c,isInvalid:m,error:S}=u(o,r,"checkbox");return(0,i.jsxs)(t.NIc,{isInvalid:m,width:"full",children:[(0,i.jsxs)(t.xuv,{display:"flex",alignItems:"center",justifyContent:"space-between",children:[(0,i.jsxs)(t.Ugi,{spacing:1,children:[(0,i.jsx)(_.__,{htmlFor:F||o,fontSize:"xs",my:0,mr:0,children:a}),(0,i.jsx)(l.b,{label:n})]}),(0,i.jsx)(t.Ugi,{children:(0,i.jsx)(s.gN,{name:c.name,children:e=>{let{form:{setFieldValue:a}}=e;return(0,i.jsx)(t.rAg,{checked:c.checked,onChange:e=>{a(c.name,e)},disabled:d,className:"mr-2","data-testid":"input-".concat(c.name),size:"small"})}})})]}),(0,i.jsx)(_.Bc,{isInvalid:m,message:S,fieldName:c.name})]})},h=e=>{let{label:a,tooltip:n,dictField:r,name:o,id:F,disabled:d}=e,{field:c,isInvalid:m,error:S,isShowingSuggestions:h}=u(o,r,"numeric"),{setFieldValue:g}=(0,s.u6)();return(0,i.jsxs)(t.NIc,{isInvalid:m,width:"full",children:[(0,i.jsxs)(t.xuv,{display:"flex",alignItems:"center",justifyContent:"space-between",children:[(0,i.jsxs)(t.Ugi,{spacing:1,children:[(0,i.jsx)(_.__,{htmlFor:F||o,fontSize:"xs",my:0,mr:0,children:a}),(0,i.jsx)(l.b,{label:n})]}),(0,i.jsx)(t.Ugi,{children:(0,i.jsxs)(t.Y2U,{value:c.value,name:c.name,size:"xs",onBlur:c.onBlur,onChange:e=>{g(c.name,e)},w:"100%",colorScheme:"terracotta",inputMode:"numeric","data-testid":"input-".concat(c.name),color:"showing"===h?"complimentary.500":"gray.800",focusBorderColor:"primary.600",isDisabled:d,children:[(0,i.jsx)(t.zuI,{}),(0,i.jsxs)(t.FiK,{children:[(0,i.jsx)(t.WQu,{}),(0,i.jsx)(t.Y_d,{})]})]})})]}),(0,i.jsx)(_.Bc,{isInvalid:m,message:S,fieldName:c.name})]})}},72707:function(e){e.exports={option:"TaxonomySelect_option__vY6v2"}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3513],{95492:function(e,t,n){n.d(t,{l:function(){return i}});var r=n(24246);let i=(0,n(56078).IUT)({displayName:"TrashCanSolidIcon",viewBox:"0 0 12 15",path:(0,r.jsx)("path",{d:"M8.37857 1.18083C8.23393 0.892838 7.93661 0.710938 7.6125 0.710938H4.3875C4.06339 0.710938 3.76607 0.892838 3.62143 1.18083L3.42857 1.56094H0.857143C0.383036 1.56094 -1.19209e-07 1.94158 -1.19209e-07 2.41094C-1.19209e-07 2.8803 0.383036 3.26094 0.857143 3.26094H11.1429C11.6162 3.26094 12 2.8803 12 2.41094C12 1.94158 11.6162 1.56094 11.1429 1.56094H8.57143L8.37857 1.18083ZM11.167 4.11094H0.857143V12.6109C0.857143 13.5486 1.62589 14.3109 2.57143 14.3109H9.45268C10.3754 14.3109 11.167 13.5486 11.167 12.6109V4.11094ZM9.02411 6.23594V12.1859C9.02411 12.4197 8.80714 12.6109 8.59554 12.6109C8.33571 12.6109 8.16696 12.4197 8.16696 12.1859V6.23594C8.16696 6.00219 8.33571 5.81094 8.59554 5.81094C8.80714 5.81094 9.02411 6.00219 9.02411 6.23594ZM6.45268 6.23594V12.1859C6.45268 12.4197 6.23571 12.6109 6.02411 12.6109C5.76429 12.6109 5.57143 12.4197 5.57143 12.1859V6.23594C5.57143 6.00219 5.76429 5.81094 6.02411 5.81094C6.23571 5.81094 6.45268 6.00219 6.45268 6.23594ZM3.85714 6.23594V12.1859C3.85714 12.4197 3.66429 12.6109 3.42857 12.6109C3.19286 12.6109 3 12.4197 3 12.1859V6.23594C3 6.00219 3.19286 5.81094 3.42857 5.81094C3.66429 5.81094 3.85714 6.00219 3.85714 6.23594Z",fill:"currentColor"})})},77213:function(e,t,n){n.d(t,{Z:function(){return p}});var r=n(24246),i=n(56078),s=n(88038),a=n.n(s),o=n(86677);n(27378);var l=n(25980),c=n(90867),u=n(77830),d=()=>{let e=(0,o.useRouter)();return(0,r.jsx)(i.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,r.jsxs)(i.xuv,{children:[(0,r.jsxs)(i.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,r.jsx)(i.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,r.jsx)(i.wpx,{onClick:()=>{e.push(u.fz)},children:"Configure"})]}),(0,r.jsxs)(i.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},p=e=>{let{children:t,title:n,padded:s=!0,mainProps:u}=e,p=(0,l.hz)(),f=(0,o.useRouter)(),m="/privacy-requests"===f.pathname||"/datastore-connection"===f.pathname,h=!(p.flags.privacyRequestsConfiguration&&m),{data:x}=(0,c.JE)(void 0,{skip:h}),{data:g}=(0,c.PW)(void 0,{skip:h}),v=p.flags.privacyRequestsConfiguration&&(!x||!g)&&m;return(0,r.jsxs)(i.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,r.jsxs)(a(),{children:[(0,r.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,r.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,r.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,r.jsxs)(i.kCb,{as:"main",direction:"column",py:s?6:0,px:s?10:0,h:s?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...u,children:[v?(0,r.jsx)(d,{}):null,t]})]})}},58754:function(e,t,n){var r=n(24246),i=n(56078),s=n(70788);t.Z=e=>{let{heading:t,breadcrumbItems:n,isSticky:a=!0,children:o,rightContent:l,style:c,...u}=e;return(0,r.jsxs)("div",{...u,style:a?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...c}:{paddingBottom:"24px",...c},children:[(0,r.jsxs)(i.jqI,{justify:"space-between",children:["string"==typeof t?(0,r.jsx)(i.X6q,{className:n||o?"pb-4":void 0,fontSize:"2xl","data-testid":"page-heading",children:t}):t,l&&(0,r.jsx)("div",{"data-testid":"page-header-right-content",children:l})]}),!!n&&(0,r.jsx)(s.m,{className:o?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),o]})}},19904:function(e,t,n){n.d(t,{Tg:function(){return a}});var r=n(24246),i=n(16134),s=n(31793);let a=e=>(0,i.C)(s.uu).filter(t=>e.includes(t)).length>0;t.ZP=e=>{let{scopes:t,children:n}=e;return a(t)?(0,r.jsx)(r.Fragment,{children:n}):null}},26917:function(e,t,n){var r=n(24246),i=n(56078);t.Z=e=>{let{onChange:t,withIcon:n,onClear:s,placeholder:a,...o}=e;return(0,r.jsxs)(i.vyj.Compact,{className:"w-96","data-testid":"search-bar",children:[(0,r.jsx)(i.uFc,{autoComplete:"off",onChange:e=>t(e.target.value),placeholder:a||"Search...",prefix:n?(0,r.jsx)(i.PTu,{boxSize:4}):void 0,...o}),s?(0,r.jsx)(i.wpx,{onClick:s,children:"Clear"}):null]})}},812:function(e,t,n){n.d(t,{D4:function(){return s.D4},MM:function(){return p},Ot:function(){return c},c6:function(){return i},cj:function(){return m},e$:function(){return o},fn:function(){return l},iC:function(){return f},nU:function(){return d},tB:function(){return u}});var r,i,s=n(19043);let a="An unexpected error occurred. Please try again.",o=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a;if((0,s.Bw)(e)){if((0,s.hE)(e.data))return e.data.detail;if((0,s.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,s.Dy)(e.data)||404===e.status&&(0,s.XD)(e.data))return"".concat(e.data.detail.error," (").concat(e.data.detail.fides_key,")")}return t};function l(e){return"object"==typeof e&&null!=e&&"status"in e}function c(e){return"object"==typeof e&&null!=e&&"data"in e&&"string"==typeof e.data.detail}function u(e){return"object"==typeof e&&null!=e&&"data"in e&&Array.isArray(e.data.detail)}let d=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{status:500,message:a};if((0,s.oK)(e))return{status:e.originalStatus,message:e.data};if((0,s.Bw)(e)){let{status:n}=e;return{status:n,message:o(e,t.message)}}return t},p=e=>Object.entries(e).map(e=>({value:e[1],label:e[1]}));(r=i||(i={})).GVL="gvl",r.AC="gacp",r.COMPASS="compass";let f={gvl:{label:"GVL",fullName:"Global Vendor List"},gacp:{label:"AC",fullName:"Google Additional Consent List"},compass:{label:"",fullName:""}},m=e=>{let t=e.split(".")[0];return"gacp"===t?"gacp":"gvl"===t?"gvl":"compass"}},70788:function(e,t,n){n.d(t,{m:function(){return c}});var r=n(24246),i=n(56078),s=n(79894),a=n.n(s),o=n(27378);let{Text:l}=i.AntTypography,c=e=>{let{items:t,...n}=e,s=(0,o.useMemo)(()=>null==t?void 0:t.map((e,n)=>{let s=n===t.length-1,o={...e},c=o.onClick&&!o.href;return("string"==typeof o.title&&(o.title=(0,r.jsx)(l,{style:{color:"inherit",maxWidth:s?void 0:400},ellipsis:!s,children:o.title})),c)?o.title=(0,r.jsx)(i.wpx,{type:"text",size:"small",icon:o.icon,onClick:o.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:o.title}):(o.icon&&(o.title=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"anticon align-text-bottom",children:o.icon}),o.title]})),o.href&&o.title&&(o.title=(0,r.jsx)(a(),{href:o.href,className:"ant-breadcrumb-link",children:o.title}),delete o.href)),o}),[t]);return(0,r.jsx)(i.zrq,{items:s,...n})}},46628:function(e,t,n){n.d(t,{MA:function(){return o},Vo:function(){return c},t5:function(){return l}});var r=n(24246),i=n(56078);let s=e=>{let{children:t,title:n="Success"}=e;return(0,r.jsxs)(i.xvT,{"data-testid":"toast-success-msg",children:[(0,r.jsxs)("strong",{children:[n,":"]})," ",t]})},a=e=>{let{children:t}=e;return(0,r.jsxs)(i.xvT,{"data-testid":"toast-error-msg",children:[(0,r.jsx)("strong",{children:"Error:"})," ",t]})},o={variant:"subtle",position:"top",description:"",duration:5e3,status:"success",isClosable:!0},l=(e,t)=>{let n=(0,r.jsx)(s,{title:t,children:e});return{...o,description:n}},c=e=>{let t=(0,r.jsx)(a,{children:e});return{...o,description:t,status:"error"}}},61038:function(e,t,n){var r=n(24246),i=n(56078),s=n(34090),a=n(86677);n(27378);var o=n(55484),l=n(16134),c=n(40324),u=n(812),d=n(77830),p=n(46628),f=n(65497);let m={username:"",usernameConfirmation:""},h=e=>{let{id:t,username:n,onClose:r}=e,s=(0,i.pmc)(),c=(0,a.useRouter)(),m=(0,l.T)(),[h]=(0,f.I1)();return{handleDeleteUser:async()=>{let e=await h(t);(0,u.D4)(e)?s((0,p.Vo)((0,u.e$)(e.error))):(s((0,p.t5)("Successfully deleted user")),r()),m((0,f.Vv)(void 0)),c.push(d.e3)},validationSchema:o.Ry().shape({usernameConfirmation:o.Z_().required().oneOf([n],"Confirmation input must match the username").label("Username confirmation")})}};t.Z=e=>{let{user:t,...n}=e,{isOpen:a,onClose:o}=n,{handleDeleteUser:l,validationSchema:u}=h({id:t.id,username:t.username,onClose:o});return(0,r.jsxs)(i.u_l,{isCentered:!0,isOpen:a,onClose:o,children:[(0,r.jsx)(i.ZAr,{}),(0,r.jsx)(i.hzk,{"data-testid":"delete-user-modal",children:(0,r.jsx)(s.J9,{initialValues:m,validationSchema:u,onSubmit:l,children:e=>{let{isSubmitting:n,dirty:a,isValid:l}=e;return(0,r.jsxs)(s.l0,{children:[(0,r.jsx)(i.xBx,{children:"Delete User"}),(0,r.jsx)(i.olH,{}),(0,r.jsxs)(i.fef,{children:[(0,r.jsxs)(i.bZj,{status:"warning",overflow:"visible",colorScheme:"warn",marginBottom:4,children:[(0,r.jsx)(i.zMQ,{}),(0,r.jsxs)(i.XaZ,{children:[(0,r.jsx)(i.xvT,{as:"span",mb:2,children:"You are about to delete the user\xa0"}),(0,r.jsxs)(i.xvT,{as:"span",mb:2,fontStyle:"italic",fontWeight:"semibold",children:[t.username,"."]}),(0,r.jsx)(i.xvT,{mb:2,children:"This action cannot be undone. To confirm, please enter the user’s username below."})]})]}),(0,r.jsx)(i.Kqy,{direction:"column",spacing:4,children:(0,r.jsx)(c.j0,{name:"usernameConfirmation",label:"Confirm username",placeholder:"Type the username to delete"})})]}),(0,r.jsx)(i.mzw,{children:(0,r.jsxs)("div",{className:"flex w-full gap-2",children:[(0,r.jsx)(i.wpx,{onClick:o,className:"w-1/2",children:"Cancel"}),(0,r.jsx)(i.wpx,{type:"primary",disabled:!a||!l,loading:n,htmlType:"submit",className:"w-1/2","data-testid":"submit-btn",children:"Delete User"})]})})]})}})})]})}},91437:function(e,t,n){n.d(t,{K:function(){return i}});var r=n(16643);let i=[{label:"Owner",permissions_label:"Owner",roleKey:r.A7.OWNER,description:"Owners have view and edit access to the whole organization and can create new users"},{label:"Contributor",permissions_label:"Contributor",roleKey:r.A7.CONTRIBUTOR,description:"Contributors can create new users and have view and edit access to the whole organization. Contributors cannot configure storage and messaging services"},{label:"Viewer",permissions_label:"Viewer",roleKey:r.A7.VIEWER,description:"Viewers have view access to the Data Map and all systems"},{label:"Viewer & Approver",permissions_label:"Viewer & Approver",roleKey:r.A7.VIEWER_AND_APPROVER,description:"Viewer & Approvers have view access to the Data Map but can also manage Privacy Requests"},{label:"Approver",permissions_label:"Approver",roleKey:r.A7.APPROVER,description:"Approvers can only access the Privacy Requests portal to manage requests"}]},19043:function(e,t,n){n.d(t,{Bw:function(){return a},D4:function(){return i},Dy:function(){return l},XD:function(){return c},cz:function(){return u},hE:function(){return o},oK:function(){return s}});var r=n(76649);let i=e=>"error"in e,s=e=>(0,r.Ln)({status:"string"},e)&&"PARSING_ERROR"===e.status,a=e=>(0,r.Ln)({status:"number",data:{}},e),o=e=>(0,r.Ln)({detail:"string"},e),l=e=>(0,r.Ln)({detail:{error:"string",resource_type:"string",fides_key:"string"}},e),c=e=>(0,r.Ln)({detail:{error:"string",resource_type:"string",fides_key:"string"}},e),u=e=>(0,r.Ln)({detail:[{loc:["string","number"],msg:"string",type:"string"}]},e)},76649:function(e,t,n){n.d(t,{Ln:function(){return r}});let r=(e,t)=>s(e,t),i=Symbol("SOME"),s=(e,t)=>"string"==typeof e?e===typeof t:Array.isArray(e)?i in e?e.some(e=>s(e,t)):!!Array.isArray(t)&&(0===e.length||t.every(t=>e.some(e=>s(e,t)))):"object"==typeof t&&null!==t&&Object.entries(e).every(([e,n])=>s(n,t[e]));class a{static narrow(e){return new a(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 a?e.NF:e instanceof Function?e:t=>r(e,t);return new a(e=>t(e)&&n(e))}}new a(e=>!0)}}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3855],{66726:function(e,t,i){var r=i(11611),n=i(82846),a=i(91936),s=Math.max,l=Math.min;e.exports=function(e,t,i){var o,c,u,d,p,g,f=0,x=!1,h=!1,v=!0;if("function"!=typeof e)throw TypeError("Expected a function");function j(t){var i=o,r=c;return o=c=void 0,f=t,d=e.apply(r,i)}function m(e){var i=e-g,r=e-f;return void 0===g||i>=t||i<0||h&&r>=u}function C(){var e,i,r,a=n();if(m(a))return y(a);p=setTimeout(C,(e=a-g,i=a-f,r=t-e,h?l(r,u-i):r))}function y(e){return(p=void 0,v&&o)?j(e):(o=c=void 0,d)}function I(){var e,i=n(),r=m(i);if(o=arguments,c=this,g=i,r){if(void 0===p)return f=e=g,p=setTimeout(C,t),x?j(e):d;if(h)return clearTimeout(p),p=setTimeout(C,t),j(g)}return void 0===p&&(p=setTimeout(C,t)),d}return t=a(t)||0,r(i)&&(x=!!i.leading,u=(h="maxWait"in i)?s(a(i.maxWait)||0,t):u,v="trailing"in i?!!i.trailing:v),I.cancel=function(){void 0!==p&&clearTimeout(p),f=0,o=g=c=p=void 0},I.flush=function(){return void 0===p?d:y(n())},I}},82846:function(e,t,i){var r=i(77400);e.exports=function(){return r.Date.now()}},30952:function(e,t,i){"use strict";i.d(t,{f:function(){return o}});var r=i(24246),n=i(66726),a=i.n(n),s=i(27378),l=i(26917);let o=e=>{let{value:t,onChange:i,placeholder:n,...o}=e,[c,u]=(0,s.useState)(t),d=a()(i,500),p=(0,s.useCallback)(e=>{u(e),d(e)},[]);return(0,r.jsx)(l.Z,{value:c,onChange:p,onClear:()=>{u(""),i("")},placeholder:n,...o})}},14047:function(e,t,i){"use strict";i.d(t,{H:function(){return a},V:function(){return r.V}});var r=i(84306),n=i(812);let a=()=>{let{errorAlert:e}=(0,r.V)();return{handleError:t=>{let i="An unexpected error occurred. Please try again.";(0,n.Ot)(t)?i=t.data.detail:(0,n.tB)(t)&&(i=t.data.detail[0].msg),e(i)}}}},84306:function(e,t,i){"use strict";i.d(t,{V:function(){return a}});var r=i(24246),n=i(56078);let a=()=>{let e=(0,n.pmc)();return{errorAlert:(t,i,a)=>{let s={...a,position:(null==a?void 0:a.position)||"top",render:e=>{let{onClose:a}=e;return(0,r.jsxs)(n.bZj,{alignItems:"normal",status:"error","data-testid":"error-alert",children:[(0,r.jsx)(n.zMQ,{}),(0,r.jsxs)(n.xuv,{children:[i&&(0,r.jsx)(n.CdC,{children:i}),(0,r.jsx)(n.XaZ,{children:t})]}),(0,r.jsx)(n.PZ7,{onClick:a,position:"relative",right:0,size:"sm",top:-1})]})}};(null==a?void 0:a.id)&&e.isActive(a.id)?e.update(a.id,s):e(s)},successAlert:(t,i,a)=>{let s={...a,position:(null==a?void 0:a.position)||"top",render:e=>{let{onClose:a}=e;return(0,r.jsxs)(n.bZj,{alignItems:"normal",status:"success",variant:"subtle","data-testid":"success-alert",children:[(0,r.jsx)(n.zMQ,{}),(0,r.jsxs)(n.xuv,{children:[i&&(0,r.jsx)(n.CdC,{children:i}),(0,r.jsx)(n.XaZ,{children:t})]}),(0,r.jsx)(n.PZ7,{onClick:a,position:"relative",right:0,size:"sm",top:-1})]})}};(null==a?void 0:a.id)&&e.isActive(a.id)?e.update(a.id,s):e(s)}}}},81406:function(e,t,i){"use strict";var r=i(24246),n=i(56078);t.Z=()=>(0,r.jsxs)(n.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"empty-state",alignSelf:"center",margin:"auto",children:[(0,r.jsx)(n.xvT,{fontSize:"md",fontWeight:"600",children:"No resources found"}),(0,r.jsx)(n.xvT,{fontSize:"sm",children:"You're up to date!"})]})},25077:function(e,t,i){"use strict";i.d(t,{Z:function(){return A}});var r=i(24246),n=i(59003),a=i(92222),s=i(56078),l=i(27378),o=i(30952),c=i(14481),u=i(81406),d=i(99763),p=i(72625),g=i(14047),f=i(28976),x=i(8151),h=i(70675),v=e=>{let{resource:t,onDetailClick:i}=e,{successAlert:n}=(0,g.V)(),a=(0,x.u)(t),[l,{isLoading:o}]=(0,h.v8)(),[c,{isLoading:u}]=(0,h.cM)(),[d,{isLoading:p}]=(0,h.vi)(),v=async()=>{var e;await l({staged_resource_urn:t.urn,monitor_config_id:t.monitor_config_id,unmute_children:!0,classify_monitored_resources:!0}),n("Started classification on ".concat(null!==(e=t.name)&&void 0!==e?e:"this resource"))},j=async()=>{var e;await c({staged_resource_urn:t.urn}),n("Approved ".concat(null!==(e=t.name)&&void 0!==e?e:" resource"))},m=async()=>{var e;await d({staged_resource_urn:t.urn}),n("Hid ".concat(null!==(e=t.name)&&void 0!==e?e:" resource"))},C=o||u||p;return(0,r.jsxs)(s.kCb,{gap:2,justify:"space-between",children:[a===x.e.ATTENTION_REQUIRED&&(0,r.jsx)(s.wpx,{size:"small",onClick:v,loading:o,disabled:C,"data-testid":"classify-btn",children:"Classify"}),a===x.e.IN_REVIEW&&(0,r.jsx)(s.wpx,{size:"small",onClick:j,loading:u,disabled:C,"data-testid":"approve-btn",children:"Approve"}),(0,r.jsx)(s.LZC,{}),(0,r.jsx)(f.Z,{onHideClick:m,onDetailClick:i})]})},j=i(89200),m=i(5945),C=i(61099),y=i(79947),I=i(16643);let L=(0,a.Cl)();var _=(e,t)=>{let i=[];return e?e===I.D$.TABLE?[L.display({id:"name",cell:e=>{let{row:t}=e;return(0,r.jsx)(j.Z,{resource:t.original})},header:"Table"}),L.display({id:"status",cell:e=>{let{row:t}=e;return(0,r.jsx)(m.Z,{status:(0,x.u)(t.original)})},header:"Status"}),L.display({id:"category",cell:e=>{let{row:t}=e;return(0,r.jsx)(C.Z,{resource:t.original})},header:"Data categories",minSize:280,meta:{disableRowClick:!0}}),L.accessor(e=>e.description,{id:"description",cell:e=>(0,r.jsx)(c.G3,{value:e.getValue()}),header:"Description"}),L.accessor(e=>e.updated_at,{id:"lastUpdated",cell:e=>(0,r.jsx)(p.Cy,{time:e.getValue()}),header:"Updated"}),L.display({id:"actions",cell:e=>{let{row:i}=e;return(0,r.jsx)(v,{resource:i.original,onDetailClick:()=>t(i.original)})},header:"Actions",meta:{disableRowClick:!0}})]:e===I.D$.FIELD?[L.display({id:"name",cell:e=>{let{row:t}=e;return(0,r.jsx)(j.Z,{resource:t.original})},header:"Field"}),L.display({id:"status",cell:e=>{let{row:t}=e;return(0,r.jsx)(m.Z,{status:(0,x.u)(t.original)})},header:"Status"}),L.accessor(e=>e.data_type,{id:"dataType",cell:e=>(0,r.jsx)(y.Z,{type:e.getValue()}),header:"Data type"}),L.display({id:"category",cell:e=>{let{row:t}=e;return(0,r.jsx)(C.Z,{resource:t.original})},header:"Data categories",minSize:280,meta:{disableRowClick:!0}}),L.accessor(e=>e.description,{id:"description",cell:e=>(0,r.jsx)(c.G3,{value:e.getValue()}),header:"Description"}),L.accessor(e=>e.updated_at,{id:"lastUpdated",cell:e=>(0,r.jsx)(p.Cy,{time:e.getValue()}),header:"Updated"}),L.display({id:"actions",cell:e=>{let{row:i}=e;return(0,r.jsx)(v,{resource:i.original,onDetailClick:()=>t(i.original)})},header:"Actions",meta:{disableRowClick:!0}})]:i:i},b=i(7940),k=i(80356);let w=[I.LL.ADDITION,I.LL.CLASSIFYING,I.LL.CLASSIFICATION_ADDITION,I.LL.CLASSIFICATION_QUEUED,I.LL.CLASSIFICATION_UPDATE,I.LL.MONITORED,I.LL.PROMOTING,I.LL.REMOVAL,I.LL.REMOVING],T={items:[],total:0,page:1,size:50,pages:1};var A=e=>{let{resourceUrn:t,onRowClick:i}=e,{PAGE_SIZES:p,pageSize:g,setPageSize:f,onPreviousPageClick:x,isPreviousPageDisabled:v,onNextPageClick:j,isNextPageDisabled:m,startRange:C,endRange:y,pageIndex:I,setTotalPages:L,resetPageIndexToDefault:A}=(0,c.oi)(),[R,S]=(0,l.useState)("");(0,l.useEffect)(()=>{A()},[t,A]);let{isFetching:Z,isLoading:D,data:E}=(0,h.z8)({staged_resource_urn:t,page:I,size:g,diff_status:w,search:R}),{items:P,total:N,pages:z}=(0,l.useMemo)(()=>null!=E?E:T,[E]);(0,l.useEffect)(()=>{L(z)},[z,L]);let[M,V]=(0,l.useState)(void 0),O=_((0,b.G)(P[0]),V),U=(0,n.b7)({getCoreRowModel:(0,a.sC)(),getGroupedRowModel:(0,a.qe)(),getExpandedRowModel:(0,a.rV)(),columns:O,manualPagination:!0,data:P,columnResizeMode:"onChange",getRowId:e=>e.urn});return D||Z?(0,r.jsx)(c.I4,{rowHeight:36,numRows:36}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(c.Q$,{children:(0,r.jsx)(s.kCb,{gap:6,align:"center",children:(0,r.jsx)(s.xuv,{flexShrink:0,children:(0,r.jsx)(o.f,{value:R,onChange:S})})})}),(0,r.jsx)(c.ZK,{tableInstance:U,emptyTableNotice:(0,r.jsx)(u.Z,{}),getRowIsClickable:e=>(0,k.Z)(e),onRowClick:i}),(0,r.jsx)(c.s8,{totalRows:N||0,pageSizes:p,setPageSize:f,onPreviousPageClick:x,isPreviousPageDisabled:v,onNextPageClick:j,isNextPageDisabled:m,startRange:C,endRange:y}),(0,r.jsx)(d.Z,{resource:M,onClose:()=>V(void 0)})]})}},94780:function(e,t,i){"use strict";i.d(t,{X5:function(){return l},pN:function(){return o},sv:function(){return a}});var r=i(24246),n=i(56078);let a=e=>e.split(".")[1],s=[(0,r.jsx)(n.PJP.S9g,{},"layers"),(0,r.jsx)(n.PJP.iA_,{},"table"),(0,r.jsx)(n.PJP.$4y,{style:{transform:"rotate(-90deg)"}},"field")],l=(e,t)=>{if(!e)return[];let i=e.split(".");if(i.length<2)return[];let l=i.splice(0,2).join("."),o=[];return i.reduce((e,r,n)=>{let a=n===i.length-1,c="".concat(e).concat(".").concat(r);return o.push({title:r,href:a?void 0:"".concat(t,"/").concat(l,"/").concat(c),icon:s[n]}),c},l),[{title:a(l),href:"".concat(t,"/").concat(l),icon:(0,r.jsx)(n.PJP.ehp,{})},...o]},o=(e,t)=>{if(!e)return[];let i=e.split(".");if(i.length<2)return[];let r=i.shift(),n=[];return i.reduce((e,r,a)=>{let l=a===i.length-1,o="".concat(e).concat(".").concat(r);return n.push({title:r,href:l?void 0:"".concat(t,"/").concat(o),icon:s[a]}),o},r),n}},79947:function(e,t,i){"use strict";var r=i(24246),n=i(56078);t.Z=e=>{let{type:t}=e;return(0,r.jsx)(n.kCb,{align:"center",h:"full",children:!!t&&(0,r.jsx)(n.j8w,{children:t})})}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[401],{97181:function(e,a,n){n.d(a,{d:function(){return d}});var l=n(24246),t=n(56078),i=n(34090),s=n(27378),r=n(46238),o=n(40324);let d=e=>{let{name:a,label:n,labelProps:d,tooltip:c,isRequired:u,layout:v="inline",helperText:h,...m}=e,[x,g,{setValue:j}]=(0,i.U$)(a),p=!!(g.touched&&g.error),[f,b]=(0,s.useState)("");x.value||"tags"!==m.mode&&"multiple"!==m.mode||(x.value=[]),"tags"===m.mode&&"string"==typeof x.value&&(x.value=[x.value]);let C="tags"===m.mode?(e,a)=>e?e.value!==f||x.value.includes(f)?m.optionRender?m.optionRender(e,a):e.label:'Create "'.concat(f,'"'):void 0:m.optionRender||void 0,y=e=>{b(e),m.onSearch&&m.onSearch(e)},_=(e,a)=>{j(e),m.onChange&&m.onChange(e,a)};return"inline"===v?(0,l.jsx)(t.NIc,{isInvalid:p,isRequired:u,children:(0,l.jsxs)(t.rjZ,{templateColumns:n?"1fr 3fr":"1fr",children:[n?(0,l.jsx)(o.__,{htmlFor:m.id||a,...d,children:n}):null,(0,l.jsxs)(t.jqI,{align:"center",children:[(0,l.jsxs)(t.jqI,{vertical:!0,flex:1,className:"mr-2",children:[(0,l.jsx)(t.WPr,{...x,id:m.id||a,"data-testid":"controlled-select-".concat(x.name),...m,optionRender:C,onSearch:"tags"===m.mode?y:void 0,onChange:_,value:x.value||void 0,status:p?"error":void 0}),h&&(0,l.jsx)(t.Q6r,{children:h}),(0,l.jsx)(o.Bc,{isInvalid:p,message:g.error,fieldName:x.name})]}),(0,l.jsx)(r.b,{label:c})]})]})}):(0,l.jsx)(t.NIc,{isInvalid:p,isRequired:u,children:(0,l.jsxs)(t.gCW,{alignItems:"start",children:[(0,l.jsxs)(t.jqI,{align:"center",children:[n?(0,l.jsx)(o.__,{htmlFor:m.id||a,fontSize:"xs",my:0,mr:1,...d,children:n}):null,(0,l.jsx)(r.b,{label:c})]}),(0,l.jsx)(t.WPr,{...x,id:m.id||a,"data-testid":"controlled-select-".concat(x.name),...m,optionRender:C,onSearch:"tags"===m.mode?y:void 0,onChange:_,value:x.value||void 0,status:p?"error":void 0}),h&&(0,l.jsx)(t.Q6r,{style:{marginTop:0},children:h}),(0,l.jsx)(o.Bc,{isInvalid:p,message:g.error,fieldName:x.name})]})})}},8133:function(e,a,n){var l=n(24246),t=n(56078);a.Z=e=>{let{title:a,children:n,isOpen:i,onClose:s,...r}=e;return(0,l.jsxs)(t.u_l,{isOpen:i,onClose:s,isCentered:!0,scrollBehavior:"inside",size:"xl",id:"add-modal",...r,children:[(0,l.jsx)(t.ZAr,{}),(0,l.jsxs)(t.hzk,{textAlign:"left",p:0,"data-testid":"add-modal-content",children:[(0,l.jsx)(t.xBx,{p:0,children:(0,l.jsx)(t.xuv,{backgroundColor:"gray.50",px:6,py:4,border:"1px",borderColor:"gray.200",borderTopRadius:6,display:"flex",justifyContent:"space-between",alignItems:"center",children:(0,l.jsx)(t.X6q,{as:"h3",size:"sm",children:a})})}),(0,l.jsx)(t.fef,{pb:4,overflow:"auto",children:n})]})]})}},33335:function(e,a,n){n.d(a,{E:function(){return l}});let l=e=>e.toLowerCase().replace(/[ .]/g,"_").replace(/[^a-zA-Z0-9_<>-]/g,"")},36345:function(e,a,n){n.d(a,{Z:function(){return g}});var l=n(24246),t=n(56078),i=n(34090),s=n(27378),r=n(16134),o=n(40324);let d=(0,t.IUT)({displayName:"CompassIcon",viewBox:"0 0 512 512",path:(0,l.jsx)("path",{fill:"currentColor",d:"M464 256A208 208 0 1 0 48 256a208 208 0 1 0 416 0zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zm306.7 69.1L162.4 380.6c-19.4 7.5-38.5-11.6-31-31l55.5-144.3c3.3-8.5 9.9-15.1 18.4-18.4l144.3-55.5c19.4-7.5 38.5 11.6 31 31L325.1 306.7c-3.2 8.5-9.9 15.1-18.4 18.4zM288 256a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"})});var c=n(46238),u=n(57865);let{Text:v}=t.AntTypography,h=e=>{let{searchText:a,suggestion:n,...t}=e;return a&&n?(0,l.jsxs)(v,{"aria-hidden":!0,style:{pointerEvents:"none",position:"absolute",zIndex:10,top:"var(--ant-line-width)",bottom:"var(--ant-line-width)",left:"var(--ant-padding-sm)",lineHeight:"calc(var(--ant-control-height) - var(--ant-line-width))"},...t,children:[(0,l.jsx)(v,{className:"text-transparent",children:a}),(0,l.jsx)(v,{type:"secondary",children:n.substring(a.length)})]}):null},m="Create new system",x=e=>{let{active:a,disabled:n,onRefreshSuggestions:i}=e,s={bg:a?"complimentary.500":"gray.100"};return(0,l.jsxs)(t.gCW,{children:[(0,l.jsx)(t.LZC,{minHeight:"18px"}),(0,l.jsxs)(t.v2r,{children:[(0,l.jsx)(t.j2t,{as:t.hU,size:"sm",isDisabled:n,icon:(0,l.jsx)(d,{color:a?"white":"gray.700",boxSize:4}),"aria-label":"Update information from Compass","data-testid":"refresh-suggestions-btn",_hover:{_disabled:s},...s}),(0,l.jsx)(t.qyq,{children:(0,l.jsx)(t.sNh,{onClick:i,children:(0,l.jsx)(t.xvT,{fontSize:"xs",lineHeight:4,children:"Reset to Compass defaults"})})})]})]})};var g=e=>{var a,n;let{label:d,isCreate:v,lockedForGVL:g,options:j,isLoading:p,onVendorSelected:f}=e,b=(0,r.C)(u.bN),[C,y,{setValue:_}]=(0,i.U$)("name"),w=!!(y.touched&&y.error),I={...C,value:null!==(a=C.value)&&void 0!==a?a:""},{touched:N,values:z,setTouched:S,setFieldValue:R,validateForm:k}=(0,i.u6)(),[q,E]=(0,s.useState)(!0),W=null!==(n=j.find(e=>e.value===I.value))&&void 0!==n?n:{label:I.value,value:I.value,description:""},B=(e,a)=>!!(null==a?void 0:a.label.toLowerCase().startsWith(e.toLowerCase())),[T,U]=(0,s.useState)(""),Z=(0,s.useMemo)(()=>j.filter(e=>B(T,e)),[j,T]),A=(0,s.useMemo)(()=>{let e=j;return v&&T&&(e=[...j,{label:"".concat(m,' "').concat(T,'"...'),value:T}]),e},[v,j,T]),F=!!T&&Z.length>0,L=g&&!v;(0,s.useEffect)(()=>{E(!I.value&&!z.vendor_id)},[I.value,z.vendor_id,E]),(0,s.useEffect)(()=>{k()},[q,k]);let M=async()=>{U(""),R("vendor_id",void 0),await _(""),S({...N,vendor_id:!1,name:!1}),f(void 0)},P=async e=>{if(e){let a=j.some(a=>a.value===e.value)?e.value:void 0;R("vendor_id",a),await _(e.label.startsWith(m)?e.value:e.label),S({...N,vendor_id:!0,name:!0}),f(a)}},D=async e=>{I.onBlur(e),T&&await _(T),S({...N,name:!0})},H=async e=>{Z.length>0&&T!==Z[0].label?(e.preventDefault(),U(Z[0].label),R("vendor_id",Z[0].value),await _(Z[0].label),f(Z[0].value)):(R("vendor_id",void 0),await _(T)),S({...N,name:!0})},O=(0,l.jsx)(t.NIc,{isInvalid:w,isRequired:!0,width:"100%",children:(0,l.jsxs)(t.gCW,{alignItems:"start",position:"relative",width:"100%",children:[(0,l.jsxs)(t.Ugi,{spacing:1,children:[(0,l.jsx)(o.__,{htmlFor:"vendorName",fontSize:"xs",my:0,mr:1,children:d}),(0,l.jsx)(c.b,{label:"Enter the system name"})]}),(0,l.jsxs)(t.xuv,{width:"100%",className:"relative",children:[(0,l.jsx)(t.WPr,{id:"vendorName",labelInValue:!0,autoFocus:!0,allowClear:!0,options:A,loading:p,filterOption:(e,a)=>B(e,a)||!!(null==a?void 0:a.label.startsWith(m)),optionFilterProp:"label",value:W,placeholder:"Enter system name...",disabled:L,onChange:P,onSearch:U,onClear:M,onBlur:D,onInputKeyDown:e=>{T&&"Tab"===e.key&&H(e)},status:w?"error":void 0,"data-testid":"vendor-name-select"}),(0,l.jsx)(h,{searchText:T,suggestion:Z.length?Z[0].label:""})]}),(0,l.jsx)(o.Bc,{isInvalid:w,message:y.error,fieldName:"name"})]})});return(0,l.jsxs)(t.Ugi,{alignItems:"flex-start",width:"full",children:[q?O:(0,l.jsx)(o.j0,{autoFocus:!0,id:"name",name:"name",label:"System name",tooltip:"Enter the system name",variant:"stacked",disabled:L,isRequired:!0,inputRightElement:L?null:(0,l.jsx)(t.PZ7,{onClick:M,size:"sm","data-testid":"clear-btn"})}),(0,l.jsx)(x,{active:!!z.vendor_id||F,disabled:!z.vendor_id||"showing"===b,onRefreshSuggestions:()=>f(z.vendor_id)})]})}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4060],{58754:function(e,t,n){var r=n(24246),i=n(56078),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.X6q,{className:n||s?"pb-4":void 0,fontSize:"2xl","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(56078),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(56078),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(56078);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(56078),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(56078),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(16643);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(56078),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(16643),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:S}=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]&&S(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)}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4121],{7617:function(e,s,t){t.d(s,{q:function(){return a}});var n=t(24246),i=t(56078);let a=e=>{let{label:s,isDisabled:t,...a}=e;return(0,n.jsx)(i.OK9,{"data-testid":"tab-".concat(s),_selected:{fontWeight:"600",color:"complimentary.500",borderColor:"complimentary.500"},fontSize:a.fontSize,fontWeight:"500",color:"gray.500",isDisabled:t||!1,children:s})};s.Z=e=>{let{data:s,border:t="partial",...l}=e;return(0,n.jsxs)(i.mQc,{colorScheme:"complimentary",...l,children:[(0,n.jsx)(i.tdY,{width:"partial"===t?"max-content":void 0,children:s.map(e=>(0,n.jsx)(a,{label:e.label,isDisabled:e.isDisabled,fontSize:l.fontSize},e.label))}),(0,n.jsx)(i.nPR,{children:s.map(e=>(0,n.jsx)(i.x45,{px:0,"data-testid":"tab-panel-".concat(e.label),children:e.content},e.label))})]})}},58452:function(e,s,t){var n=t(24246),i=t(56078);s.Z=e=>{let{isOpen:s,onClose:t,onConfirm:a,onCancel:l,title:r,message:d,cancelButtonText:o,continueButtonText:c,isLoading:u,returnFocusOnClose:p,isCentered:m,testId:h="confirmation-modal",icon:x}=e;return(0,n.jsxs)(i.u_l,{isOpen:s,onClose:t,size:"lg",returnFocusOnClose:null==p||p,isCentered:m,children:[(0,n.jsx)(i.ZAr,{}),(0,n.jsxs)(i.hzk,{textAlign:"center",p:6,"data-testid":h,children:[x?(0,n.jsx)(i.M5Y,{mb:2,children:x}):null,r?(0,n.jsx)(i.xBx,{fontWeight:"medium",pb:0,children:r}):null,d?(0,n.jsx)(i.fef,{children:d}):null,(0,n.jsx)(i.mzw,{children:(0,n.jsxs)(i.MIq,{columns:2,width:"100%",children:[(0,n.jsx)(i.wpx,{onClick:()=>{l&&l(),t()},size:"large",className:"mr-3","data-testid":"cancel-btn",disabled:u,children:o||"Cancel"}),(0,n.jsx)(i.wpx,{type:"primary",size:"large",onClick:a,"data-testid":"continue-btn",loading:u,children:c||"Continue"})]})})]})]})}},7426:function(e,s,t){t.d(s,{D2:function(){return p},L:function(){return r},U7:function(){return o},Yh:function(){return h},ak:function(){return d},iR:function(){return g},km:function(){return l},tB:function(){return a}});var n=t(3228);let i=t(78780).u.injectEndpoints({endpoints:e=>({getConfigurationSettings:e.query({query:e=>{let{api_set:s}=e;return{url:"/config",method:"GET",params:{api_set:s}}},providesTags:["Configuration Settings"]}),putConfigurationSettings:e.mutation({query:e=>({url:"/config",method:"PUT",body:e}),invalidatesTags:["Configuration Settings"]}),patchConfigurationSettings:e.mutation({query:e=>({url:"/config",method:"PATCH",body:e}),invalidatesTags:["Configuration Settings","Privacy Notices"]})})}),{useGetConfigurationSettingsQuery:a,usePutConfigurationSettingsMutation:l,usePatchConfigurationSettingsMutation:r}=i,d=(0,n.P1)([e=>e,i.endpoints.getConfigurationSettings.select({api_set:!0}),i.endpoints.getConfigurationSettings.select({api_set:!1})],(e,s,t)=>{var n,i,a;let{data:l}=s,{data:r}=t;return{configSet:{cors_origins:(null==r?void 0:null===(n=r.security)||void 0===n?void 0:n.cors_origins)||[],cors_origin_regex:null==r?void 0:null===(i=r.security)||void 0===i?void 0:i.cors_origin_regex},apiSet:{cors_origins:(null==l?void 0:null===(a=l.security)||void 0===a?void 0:a.cors_origins)||[]}}}),o=()=>(0,n.P1)([e=>e,i.endpoints.getConfigurationSettings.select({api_set:!0})],(e,s)=>{let{data:t}=s;return t}),c={enabled:!1,cmp_api_required:!1},u=(e,s,t,n)=>{let i=t&&t[e],a=n&&n[e];return i&&a?{...n[e],...t[e]}:a?n[e]:i?{...t[e]}:s},p=(0,n.P1)([e=>e,i.endpoints.getConfigurationSettings.select({api_set:!0}),i.endpoints.getConfigurationSettings.select({api_set:!1})],(e,s,t)=>{let{data:n}=s,{data:i}=t;return u("gpp",c,n,i)}),m={tcf_publisher_country_code:null},h=(0,n.P1)([e=>e,i.endpoints.getConfigurationSettings.select({api_set:!0}),i.endpoints.getConfigurationSettings.select({api_set:!1})],(e,s,t)=>{let{data:n}=s,{data:i}=t;return u("plus_consent_settings",m,n,i)}),x={allow_username_password_login:!1},g=(0,n.P1)([e=>e,i.endpoints.getConfigurationSettings.select({api_set:!0}),i.endpoints.getConfigurationSettings.select({api_set:!1})],(e,s,t)=>{let{data:n}=s,{data:i}=t;return u("plus_security_settings",x,n,i)})},44121:function(e,s,t){t.d(s,{Z:function(){return ee}});var n=t(24246),i=t(56078),a=t(91437),l=()=>(0,n.jsxs)(i.xuv,{children:[(0,n.jsx)(i.xuv,{pb:4,fontSize:"18px",fontWeight:"semibold",children:"Role Description"}),(0,n.jsx)(i.gCW,{spacing:4,children:a.K.map(e=>(0,n.jsxs)(i.xuv,{width:"100%",padding:4,borderRadius:"md",backgroundColor:"gray.75",fontSize:"14px",children:[(0,n.jsx)(i.xuv,{fontWeight:"semibold",children:e.label}),(0,n.jsx)(i.xuv,{color:"gray.700",children:e.description})]},e.roleKey))})]}),r=t(16134),d=t(7617),o=t(16643),c=t(19904),u=t(34090),p=t(86677),m=t(27378),h=t(812),x=t(46238),g=t(58452),j=t(77830),f=t(46628),w=t(26917),b=t(1315),y=t(95492),_=t(65497);let v=e=>{let{assignedSystems:s,onAssignedSystemChange:t}=e,a=(0,r.C)(_.Ux);if((0,_.d6)(a,{skip:!a}),0===s.length)return null;let l=e=>{t(s.filter(s=>s.fides_key!==e.fides_key))};return(0,n.jsxs)(i.iA_,{size:"sm","data-testid":"assign-systems-delete-table",children:[(0,n.jsx)(i.hrZ,{children:(0,n.jsxs)(i.Tr,{children:[(0,n.jsx)(i.Th,{children:"System"}),(0,n.jsx)(i.Th,{})]})}),(0,n.jsx)(i.p3B,{children:s.map(e=>(0,n.jsxs)(i.Tr,{_hover:{bg:"gray.50"},"data-testid":"row-".concat(e.fides_key),children:[(0,n.jsx)(i.Td,{children:e.name}),(0,n.jsx)(i.Td,{textAlign:"end",children:(0,n.jsx)(i.wpx,{"aria-label":"Unassign system from user",icon:(0,n.jsx)(y.l,{}),onClick:()=>l(e),"data-testid":"unassign-btn"})})]},e.fides_key))})]})};var C=e=>{let{allSystems:s,assignedSystems:t,onChange:a}=e,l=e=>{t.find(s=>s.fides_key===e.fides_key)?a(t.filter(s=>s.fides_key!==e.fides_key)):a([...t,e])};return(0,n.jsx)(i.xuv,{overflowY:"auto",maxHeight:"300px",children:(0,n.jsxs)(i.iA_,{size:"sm","data-testid":"assign-systems-table",maxHeight:"50vh",overflowY:"scroll",children:[(0,n.jsx)(i.hrZ,{position:"sticky",top:0,background:"white",zIndex:1,children:(0,n.jsxs)(i.Tr,{children:[(0,n.jsx)(i.Th,{children:"System"}),(0,n.jsx)(i.Th,{children:"Assign"})]})}),(0,n.jsx)(i.p3B,{children:s.map(e=>{let s=!!t.find(s=>s.fides_key===e.fides_key);return(0,n.jsxs)(i.Tr,{_hover:{bg:"gray.50"},"data-testid":"row-".concat(e.fides_key),children:[(0,n.jsx)(i.Td,{children:e.name}),(0,n.jsx)(i.Td,{children:(0,n.jsx)(i.rAg,{checked:s,onChange:()=>l(e),"data-testid":"assign-switch"})})]},e.fides_key)})})]})})};let S=(e,s)=>{var t,n;return(null===(t=e.name)||void 0===t?void 0:t.toLocaleLowerCase().includes(s.toLocaleLowerCase()))||(null===(n=e.description)||void 0===n?void 0:n.toLocaleLowerCase().includes(s.toLocaleLowerCase()))};var k=e=>{let{isOpen:s,onClose:t,assignedSystems:a,onAssignedSystemChange:l}=e,{data:r}=(0,b.K3)(),[d,o]=(0,m.useState)(""),[c,u]=(0,m.useState)(a),p=async()=>{l(c),t()},h=!r||0===r.length,x=(0,m.useMemo)(()=>r?r.filter(e=>S(e,d)):[],[r,d]),g=(0,m.useMemo)(()=>{let e=new Set(c.map(e=>e.fides_key));return x.every(s=>e.has(s.fides_key))},[x,c]);return(0,n.jsxs)(i.u_l,{isOpen:s,onClose:t,size:"2xl",children:[(0,n.jsx)(i.ZAr,{}),(0,n.jsxs)(i.hzk,{p:8,"data-testid":"confirmation-modal",children:[(0,n.jsxs)(i.xBx,{fontWeight:"medium",display:"flex",justifyContent:"space-between",alignItems:"center",children:[(0,n.jsx)(i.xvT,{children:"Assign systems"}),(0,n.jsxs)(i.j8w,{color:"success",children:["Assigned to ",a.length," systems"]})]}),(0,n.jsx)(i.fef,{"data-testid":"assign-systems-modal-body",children:h?(0,n.jsx)(i.xvT,{children:"No systems found"}):(0,n.jsxs)(i.Kqy,{spacing:4,children:[(0,n.jsxs)(i.kCb,{justifyContent:"space-between",children:[(0,n.jsx)(i.xvT,{fontSize:"sm",flexGrow:1,fontWeight:"medium",children:"Assign systems in your organization to this user"}),(0,n.jsx)(i.xuv,{children:(0,n.jsxs)(i.NIc,{display:"flex",alignItems:"center",children:[(0,n.jsx)(i.lXp,{fontSize:"sm",htmlFor:"assign-all-systems",mb:"0",children:"Assign all systems"}),(0,n.jsx)(i.rAg,{size:"small",id:"assign-all-systems",checked:g,onChange:e=>{e&&r?u(x):u(r?r.filter(e=>!x.includes(e)):[])},"data-testid":"assign-all-systems-toggle"})]})})]}),(0,n.jsx)(w.Z,{value:d,onChange:o,placeholder:"Search for systems","data-testid":"system-search",withIcon:!0}),(0,n.jsx)(C,{allSystems:x,assignedSystems:c,onChange:u})]})}),(0,n.jsx)(i.mzw,{justifyContent:"flex-start",children:(0,n.jsxs)("div",{children:[(0,n.jsx)(i.wpx,{onClick:t,className:"mr-2","data-testid":"cancel-btn",children:"Cancel"}),h?null:(0,n.jsx)(i.wpx,{type:"primary",onClick:p,"data-testid":"confirm-btn",children:"Confirm"})]})})]})]})},P=e=>{let{label:s,roleKey:t,isSelected:a,isDisabled:l,assignedSystems:r,onAssignedSystemChange:d}=e,{setFieldValue:c}=(0,u.u6)(),p=(0,i.qY0)(),m=l?"You do not have sufficient permissions to assign this role.":void 0;return a?(0,n.jsxs)(i.Kqy,{borderRadius:"md",border:"1px solid",borderColor:"gray.200",p:4,backgroundColor:"gray.50","aria-selected":"true",spacing:4,"data-testid":"selected",children:[(0,n.jsxs)(i.kCb,{alignItems:"center",justifyContent:"space-between",children:[(0,n.jsx)(i.xvT,{fontSize:"md",fontWeight:"semibold",children:s}),(0,n.jsx)(i.StI,{})]}),t!==o.A7.APPROVER?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(i.kCb,{alignItems:"center",children:[(0,n.jsx)(i.xvT,{fontSize:"sm",fontWeight:"semibold",mr:1,children:"Assigned systems"}),(0,n.jsx)(x.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,n.jsx)(i.wpx,{disabled:l,title:m,type:"primary",size:"small",onClick:p.onOpen,"data-testid":"assign-systems-btn",children:"Assign systems +"}),(0,n.jsx)(v,{assignedSystems:r,onAssignedSystemChange:d}),p.isOpen?(0,n.jsx)(k,{isOpen:p.isOpen,onClose:p.onClose,assignedSystems:r,onAssignedSystemChange:d}):null]}):null]}):(0,n.jsx)(i.wpx,{onClick:()=>{c("roles",[t])},"data-testid":"role-option-".concat(s),title:m,disabled:l,children:s})};let T={roles:[]};var A=()=>{var e;let s=(0,i.pmc)(),t=(0,p.useRouter)(),l=(0,r.C)(_.Ux);(0,_.d6)(l,{skip:!l});let{isOpen:d,onOpen:w,onClose:b}=(0,i.qY0)(),y=(0,r.C)(_.R$),[v,C]=(0,m.useState)(y),[S]=(0,_.G$)();(0,m.useEffect)(()=>{C(y)},[y]);let{data:k,isLoading:A}=(0,_.gU)(null!=l?l:"",{skip:!l}),[R]=(0,_.lD)(),z=async e=>{if(d&&b(),!l)return;let t=e.roles.includes(o.A7.APPROVER),n=await R({user_id:l,payload:{roles:e.roles}});if((0,h.D4)(n)){s((0,f.Vo)((0,h.e$)(n.error)));return}if(!t){let e=v.map(e=>e.fides_key),t=await S({userId:l,fidesKeys:e});if((0,h.D4)(t)){s((0,f.Vo)((0,h.e$)(t.error)));return}}s((0,f.t5)("Permissions updated"))},q=async e=>{l&&(v.length>0&&e.roles.includes(o.A7.APPROVER)?w():await z(e))},E=(0,c.Tg)([o.Sh.USER_PERMISSION_ASSIGN_OWNERS]);if(!l)return null;if(A)return(0,n.jsx)(i.$jN,{});if(!E&&(null==k?void 0:null===(e=k.roles)||void 0===e?void 0:e.includes(o.A7.OWNER)))return(0,n.jsx)(i.xvT,{"data-testid":"insufficient-access",children:"You do not have sufficient access to change this user's permissions."});let I=(null==k?void 0:k.roles)?{roles:k.roles}:T;return(0,n.jsx)(u.J9,{onSubmit:q,initialValues:I,enableReinitialize:!0,children:e=>{let{values:s,isSubmitting:l,dirty:r}=e;return(0,n.jsxs)(u.l0,{children:[(0,n.jsxs)(i.Kqy,{spacing:7,children:[(0,n.jsxs)(i.Kqy,{spacing:3,"data-testid":"role-options",children:[(0,n.jsxs)(i.kCb,{alignItems:"center",children:[(0,n.jsx)(i.xvT,{fontSize:"sm",fontWeight:"semibold",mr:1,children:"User role"}),(0,n.jsx)(x.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."})]}),a.K.map(e=>{let t=s.roles.indexOf(e.roleKey)>=0;return(0,n.jsx)(P,{isSelected:t,isDisabled:e.roleKey===o.A7.OWNER&&!E,assignedSystems:v,onAssignedSystemChange:C,...e},e.roleKey)})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)(i.wpx,{onClick:()=>t.push(j.e3),children:"Cancel"}),(0,n.jsx)(i.wpx,{type:"primary",htmlType:"submit",loading:l,disabled:!r&&v===y,"data-testid":"save-btn",children:"Save"})]})]}),(0,n.jsx)(g.Z,{isOpen:d,onClose:b,onConfirm:()=>z(s),title:"Change role to Approver",testId:"downgrade-to-approver-confirmation-modal",continueButtonText:"Yes",message:(0,n.jsx)(i.xvT,{children:"Switching to an approver role will remove all assigned systems. Do you wish to proceed?"})})]})}})},R=t(61038),z=t(55484),q=t(25980),E=t(40324),I=t(96006),O=t(7426);let{useGetEmailInviteStatusQuery:N}=t(78780).u.injectEndpoints({endpoints:e=>({getEmailInviteStatus:e.query({query:()=>({url:"/messaging/email-invite/status"}),providesTags:()=>["Email Invite Status"]})})});var U=t(76174),Z=t(91317),W=t(31883);let D=z.Ry().shape({password:I.a.label("Password"),passwordConfirmation:z.Z_().required().oneOf([z.iH("password")],"Passwords must match").label("Password confirmation")}),K={password:"",passwordConfirmation:""},B=e=>{let s=(0,i.qY0)(),t=(0,i.pmc)(),[n]=(0,_.ls)(),a=async i=>{let a=await n({id:e,new_password:i.password});(0,W.D4)(a)?t((0,f.Vo)((0,h.e$)(a.error))):(t((0,f.t5)("Successfully reset user's password. Please inform the user of their new password.")),s.onClose())};return{...s,handleResetPassword:a}};var Y=e=>{let{id:s}=e,{handleResetPassword:t,isOpen:a,onClose:l,onOpen:r}=B(s);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.wpx,{onClick:r,"data-testid":"reset-password-btn",children:"Reset password"}),(0,n.jsxs)(i.u_l,{isCentered:!0,isOpen:a,onClose:l,children:[(0,n.jsx)(i.ZAr,{}),(0,n.jsx)(i.hzk,{children:(0,n.jsx)(u.J9,{initialValues:K,validationSchema:D,onSubmit:t,children:e=>{let{isSubmitting:s,dirty:t,isValid:a}=e;return(0,n.jsxs)(u.l0,{children:[(0,n.jsx)(i.xBx,{children:"Reset Password"}),(0,n.jsx)(i.olH,{}),(0,n.jsx)(i.fef,{children:(0,n.jsxs)(i.Kqy,{direction:"column",spacing:4,children:[(0,n.jsx)(i.xvT,{mb:2,children:"Choose a new password for this user."}),(0,n.jsx)(E.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,n.jsx)(E.j0,{name:"passwordConfirmation",label:"Confirm Password",placeholder:"********",type:"password",tooltip:"Must match above password.",autoComplete:"confirm-password"})]})}),(0,n.jsx)(i.mzw,{children:(0,n.jsxs)("div",{className:"w-full gap-2",children:[(0,n.jsx)(i.wpx,{onClick:l,className:"w-1/2",children:"Cancel"}),(0,n.jsx)(i.wpx,{type:"primary",disabled:!t||!a,loading:s,htmlType:"submit",className:"w-1/2","data-testid":"submit-btn",children:"Change Password"})]})})]})}})})]})]})};let L=e=>{let s=(0,i.qY0)(),t=(0,i.pmc)(),[n,a]=(0,m.useState)(""),[l,r]=(0,m.useState)(""),[d,{isLoading:o}]=(0,_.ev)(),c=!!(e&&l&&n),u=async()=>{c&&d({id:e,old_password:n,new_password:l}).unwrap().then(()=>{t((0,f.t5)("Password updated")),s.onClose()})};return{...s,changePasswordValidation:c,handleChange:e=>{"oldPassword"===e.target.name?a(e.target.value):r(e.target.value)},handleChangePassword:u,isLoading:o,newPasswordValue:l,oldPasswordValue:n}};var V=e=>{let{id:s}=e,{changePasswordValidation:t,handleChange:a,handleChangePassword:l,isLoading:r,isOpen:d,newPasswordValue:o,oldPasswordValue:c,onClose:u,onOpen:p}=L(s);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.wpx,{onClick:p,"data-testid":"update-password-btn",children:"Update password"}),(0,n.jsxs)(i.u_l,{isCentered:!0,isOpen:d,onClose:u,children:[(0,n.jsx)(i.ZAr,{}),(0,n.jsxs)(i.hzk,{children:[(0,n.jsx)(i.xBx,{children:"Update Password"}),(0,n.jsx)(i.olH,{}),(0,n.jsx)(i.fef,{pb:6,children:(0,n.jsxs)(i.Kqy,{direction:"column",spacing:"15px",children:[(0,n.jsx)(i.NIc,{children:(0,n.jsx)(i.IIB,{isRequired:!0,name:"oldPassword",onChange:a,placeholder:"Old Password",type:"password",value:c,"data-testid":"input-oldPassword"})}),(0,n.jsx)(i.NIc,{children:(0,n.jsx)(i.IIB,{isRequired:!0,name:"newPassword",onChange:a,placeholder:"New Password",type:"password",value:o,"data-testid":"input-newPassword"})})]})}),(0,n.jsxs)(i.mzw,{children:[(0,n.jsx)(i.wpx,{onClick:u,className:"mr-2 w-1/2",children:"Cancel"}),(0,n.jsx)(i.wpx,{type:"primary",disabled:!t,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)(_.Ux),s=(0,r.C)(Z.dy),t=!!s&&s.id===e;return(0,n.jsx)(i.xuv,{children:e?(0,n.jsxs)(i.Ugi,{children:[t?(0,n.jsx)(V,{id:e}):null,(0,n.jsx)(c.ZP,{scopes:[o.Sh.USER_PASSWORD_RESET],children:(0,n.jsx)(Y,{id:e})})]}):null})};let M=(e,s,t,n)=>!e||e&&!s||e&&s&&!0===t&&!!n,$=(e,s,t)=>!!(e&&s&&t),H=(e,s,t,n,i,a)=>!!e&&!s&&M(t,n,i,a),G=(e,s,t,n)=>M(e,s,t,n),J={username:"",first_name:"",email_address:"",last_name:"",password:"",password_login_enabled:!1},Q=(e,s,t,n,i)=>z.Ry().shape({username:z.Z_().required().label("Username"),email_address:z.Z_().email().required().label("Email address"),first_name:z.Z_().label("First name"),last_name:z.Z_().label("Last name"),password:z.Z_().when(["password_login_enabled"],{is:a=>H(e,s,t,n,i,a),then:()=>I.a.label("Password"),otherwise:()=>z.Z_().optional().label("Password")}),password_login_enabled:z.O7().label("Allow password login")});var X=e=>{let{onSubmit:s,initialValues:t,canEditNames:a}=e,l=(0,p.useRouter)(),d=(0,i.pmc)(),o=(0,r.T)(),c=(0,i.qY0)(),{data:m}=N(),{data:x}=(0,U.qv)();(0,O.tB)({api_set:!1});let g=(0,r.C)(_.ZC),w=(0,r.C)(O.iR),{plus:b}=(0,q.hz)(),v=(null==m?void 0:m.enabled)||!1,C=(null==w?void 0:w.allow_username_password_login)||!1,S=!g,k=!S&&!a,P=x&&x.length>0||!1,T=$(b,P,C),A=null!=t?t:J;g&&"password_login_enabled"in g&&(A={...A,password_login_enabled:!!g.password_login_enabled});let z=Q(S,v,b,P,C),I=async e=>{let t=H(S,v,b,P,C,e.password_login_enabled),n={username:e.username,email_address:e.email_address,first_name:e.first_name,last_name:e.last_name};T&&(n.password_login_enabled=e.password_login_enabled),t&&e.password&&(n.password=e.password);let i=await s(n);if((0,h.D4)(i)){d((0,f.Vo)((0,h.e$)(i.error)));return}d((0,f.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==i?void 0:i.data)&&o((0,_.Vv)(i.data.id))};return(0,n.jsx)(u.J9,{onSubmit:I,initialValues:A,validationSchema:z,"data-testid":"user-form",children:e=>{let{dirty:s,isSubmitting:t,isValid:a,values:r}=e;return(0,n.jsx)(u.l0,{children:(0,n.jsxs)(i.Kqy,{maxW:["xs","xs","100%"],width:"100%",spacing:7,children:[(0,n.jsxs)(i.Kqy,{spacing:6,maxWidth:"55%",children:[(0,n.jsxs)(i.kCb,{children:[(0,n.jsxs)(i.xvT,{display:"flex",alignItems:"center",fontSize:"sm",fontWeight:"semibold",children:["Profile"," ",(null==g?void 0:g.disabled)&&(0,n.jsx)(i.j8w,{color:"success",className:"ml-2","data-testid":"invite-sent-badge",children:"Invite sent"})]}),(0,n.jsx)(i.xuv,{marginLeft:"auto",children:(0,n.jsxs)(i.Ugi,{children:[G(b,P,C||!1,r.password_login_enabled)&&(0,n.jsx)(F,{"data-testid":"password-management"}),S?null:(0,n.jsxs)(i.xuv,{children:[(0,n.jsx)(i.wpx,{"aria-label":"delete",icon:(0,n.jsx)(y.l,{}),onClick:c.onOpen,"data-testid":"delete-user-btn"}),(0,n.jsx)(R.Z,{user:g,...c})]})]})})]}),(0,n.jsx)(E.j0,{name:"username",label:"Username",variant:"block",placeholder:"Enter new username",disabled:!S,isRequired:!0,"data-testid":"input-username"}),(0,n.jsx)(E.j0,{name:"email_address",label:"Email address",variant:"block",placeholder:"Enter email of user",isRequired:!0,"data-testid":"input-email-address"}),(0,n.jsx)(E.j0,{name:"first_name",label:"First name",variant:"block",placeholder:"Enter first name of user",disabled:k,"data-testid":"input-first-name"}),(0,n.jsx)(E.j0,{name:"last_name",label:"Last name",variant:"block",placeholder:"Enter last name of user",disabled:k,"data-testid":"input-last-name"}),T&&(0,n.jsx)(E.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,v,b,P,C,r.password_login_enabled)&&(0,n.jsx)(E.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,n.jsxs)("div",{children:[(0,n.jsx)(i.wpx,{onClick:()=>l.push(j.e3),className:"mr-3","data-testid":"cancel-btn",children:"Cancel"}),(0,n.jsx)(i.wpx,{htmlType:"submit",type:"primary",disabled:!s||!a,loading:t,"data-testid":"save-user-btn",children:"Save"})]})]})})}})},ee=e=>{let{onSubmit:s,initialValues:t,...a}=e,u=(0,r.C)(_.Ux);(0,_.Fk)(u,{skip:!u});let p=(0,c.Tg)([o.Sh.USER_PERMISSION_UPDATE]),m=[{label:"Profile",content:(0,n.jsx)(X,{onSubmit:s,initialValues:t,...a})},{label:"Permissions",content:(0,n.jsxs)(i.kCb,{gap:"97px",children:[(0,n.jsx)(i.xuv,{w:{base:"100%",md:"50%",xl:"50%"},children:(0,n.jsx)(A,{})}),(0,n.jsx)(i.xuv,{position:"absolute",top:"96px",right:6,height:"calc(100% + 100px)",overflowY:"scroll",padding:6,w:"35%",borderLeftWidth:"1px",children:(0,n.jsx)(l,{})})]}),isDisabled:!u||!p}];return(0,n.jsx)(d.Z,{data:m})}},31883:function(e,s,t){t.d(s,{Bw:function(){return n.Bw},D4:function(){return n.D4}});var n=t(19043)}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4481],{26917:function(e,t,n){var l=n(24246),o=n(56078);t.Z=e=>{let{onChange:t,withIcon:n,onClear:i,placeholder:r,...s}=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,...s}),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 s},fn:function(){return a},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.",s=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 a(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:s(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(56078);t.Z=e=>{let{isOpen:t,onClose:n,onConfirm:i,onCancel:r,title:s,message:a,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,s?(0,l.jsx)(o.xBx,{fontWeight:"medium",pb:0,children:s}):null,a?(0,l.jsx)(o.fef,{children:a}):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 s},oi:function(){return a},s8:function(){return c}});var l=n(24246),o=n(56078),i=n(27378);let r=[25,50,100],s=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,s=!e.getCanNextPage(),{setPageSize:a}=e;return{totalRows:t,onPreviousPageClick:o,isPreviousPageDisabled:i,onNextPageClick:r,isNextPageDisabled:s,setPageSize:a,startRange:n*l==0?1:n*l,endRange:n*l+l}},a=()=>{let e,t;let[n,l]=(0,i.useState)(r[0]),[o,s]=(0,i.useState)(1),[a,c]=(0,i.useState)(1),d=(0,i.useCallback)(()=>{s(e=>e-1)},[s]),u=(0,i.useMemo)(()=>1===o,[o]),g=(0,i.useCallback)(()=>{s(e=>e+1)},[s]),x=(0,i.useMemo)(()=>{let e=!a,t=!!a&&o===a;return e||t},[o,a]);if(a){let l=(o-1)*n;e=l+1,t=l+n}else e=0,t=0;let h=(0,i.useCallback)(()=>{s(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:s,isNextPageDisabled:a,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:s,disabled:a})]})}},72625:function(e,t,n){n.d(t,{A4:function(){return f},CI:function(){return v},Cy:function(){return m},G3:function(){return h},Hm:function(){return y},Rr:function(){return S},S1:function(){return k},WP:function(){return C},k:function(){return w},mb:function(){return j},tc:function(){return b}});var l=n(24246),o=n(7195),i=n(56078),r=n(34090),s=n(3819),a=n.n(s),c=n(27378),d=n(812),u=n(58452),g=n(46628),x=n(16394);let h=e=>{var t,n;let{value:o,cellProps:r,...s}=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(),...s,children:a()(o)?o.toString():o})},m=e=>{let{time:t}=e;if(!t)return(0,l.jsx)(h,{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)})})})},p=e=>{let{children:t,...n}=e;return(0,l.jsx)(i.kCb,{alignItems:"center",height:"100%",mr:2,overflow:"auto",...n,children:t})},f=e=>{let{value:t,suffix:n,...o}=e;return(0,l.jsx)(p,{children:(0,l.jsxs)(i.j8w,{...o,children:[t,n]})})},v=e=>{let{count:t,singSuffix:n,plSuffix:o,...r}=e,s=null;return s=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)(p,{children:s})},j=e=>{let{values:t,cellProps:n,...o}=e,{isExpanded:r,isWrapped:s,version:a}=(null==n?void 0:n.cellState)||{},[d,u]=(0,c.useState)(!r),[g,x]=(0,c.useState)(!!s),[h,m]=(0,c.useState)(r?t:null==t?void 0:t.slice(0,2));return(0,c.useEffect)(()=>{u(!r)},[r,a]),(0,c.useEffect)(()=>{x(!!s)},[s]),(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])},b=e=>{let{values:t,valueSuffix:n,cellProps:o}=e,{isExpanded:r,version:s}=(null==o?void 0:o.cellState)||{},[a,d]=(0,c.useState)(!r);return(0,c.useEffect)(()=>{d(!r)},[r,s]),(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=>{a||(e.stopPropagation(),d(!0))},cursor:a?void 0:"pointer",children:[a&&(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"})]}),!a&&(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,[a,t,n])},C=e=>{let{value:t,suffix:n,cellState:o,ignoreZero:r,tagProps:s}=e,a=null;return t?(a=Array.isArray(t)?1===t.length?(0,l.jsx)(i.j8w,{...s,children:t}):(null==o?void 0:o.isExpanded)&&t.length>0?t.map((e,t)=>(0,l.jsx)(i.j8w,{...s,children:e},(null==e?void 0:e.toString())||t)):(0,l.jsxs)(i.j8w,{...s,children:[t.length,n?" ".concat(n):null]}):(0,l.jsx)(i.j8w,{...s,children:t}),(0,l.jsx)(i.kCb,{alignItems:"center",height:"100%",gap:2,overflowX:"hidden",children:a})):r?null:(0,l.jsxs)(i.j8w,{...s,children:["0",n?" ".concat(n):""]})},w=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})})},S=e=>{let{value:t,...n}=e;return(0,l.jsx)(i.xvT,{fontSize:"xs",lineHeight:9,fontWeight:"medium",flex:1,...n,children:t})},y=e=>{let{value:t,defaultValue:n,isEditing:o,...s}=e,a=s.column.columnDef.id||"",{submitForm:c}=(0,r.u6)();return o?(0,l.jsx)(r.Rt,{name:a,as:i.uFc,maxLength:80,placeholder:n,"aria-label":"Edit column name",size:"small","data-testid":"column-".concat(a,"-input"),onPressEnter:c}):(0,l.jsx)(S,{value:t,...s})},k=e=>{let{enabled:t,onToggle:n,title:o,message:r,isDisabled:s,...a}=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:s,"data-testid":"toggle-switch",...a}),(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"})})]})}},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 W},ZK:function(){return R},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(56078),r=n(27378),s=n(43862),a=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:s},a]=(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 s=null===(o=i.current)||void 0===o?void 0:o.getBoundingClientRect(),a=(s.bottom-s.top)/2,c=t.getClientOffset().y-s.top;r<n&&c<a||r>n&&c>a||(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(a(i)),{isDragging:g,ref:i,handlerId:s,preview:h,handleColumnVisibleToggle:e=>{o(n,e)}}},x=e=>{let{id:t,index:n,isVisible:l,moveColumn:r,setColumnVisible:s,text:a}=e,{ref:c,isDragging:d,handlerId:u,preview:x,handleColumnVisibleToggle:h}=g({index:n,id:t,moveColumn:r,setColumnVisible:s});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:a,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:a}),(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,a.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,a.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:a,columnNameMap:c,prefixColumns:d,savedCustomReportId:u,onColumnOrderChange:g,onColumnVisibilityChange:x}=e,p=h({columns:(0,r.useMemo)(()=>a.getAllColumns().filter(e=>!d.includes(e.id)).map(e=>{var t;return{id:e.id,displayText:(0,s.AH)({columnNameMap:c,columnId:e.id}),isVisible:null!==(t=a.getState().columnVisibility[e.id])&&void 0!==t?t:e.getIsVisible()}}).sort((e,t)=>{let{columnOrder:n}=a.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,a,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,S=x.getContext().table.getRowModel().rows.filter(e=>!e.id.includes(":")),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===(a=x.column.columnDef.meta)||void 0===a?void 0:a.overflow:"auto",borderBottomWidth:k||j?"0px":"1px",borderBottomColor:"gray.200",borderRightWidth:"1px",borderRightColor:"gray.200",sx:{article:{borderTopWidth:"2x",borderTopColor:"red"},...(0,s.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:a}=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,s.tt)(e.column.id,r),n={isExpanded:!!t&&t>0,isWrapped:!!a.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"}},y=e=>{var t,n,l,r,a,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,s.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===(a=w[x.column.getIsSorted()])||void 0===a?void 0:a.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,s.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,s.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:s,renderRowTooltipLabel:a,expandedColumns:c,wrappedColumns:d,emptyTableNotice:u}=e,g=e=>s?s(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:a,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),R=e=>{let{tableInstance:t,rowActionBar:n,footer:l,onRowClick:a,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,[]),R=e=>{C([...b.filter(t=>t.split(s.mb)[0]!==e),"".concat(e).concat(s.mb).concat(f)]),j(f+1)},W=e=>{C([...b.filter(t=>t.split(s.mb)[0]!==e),"".concat(e).concat(s.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],s=!!(null===(l=t.getState().columnSizing)||void 0===l?void 0:l[r.id]),a="auto"===(null===(o=r.column.columnDef.meta)||void 0===o?void 0:o.width);!s&&a?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,s.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:W,onExpandAll:R,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:a,getRowIsClickable:c,renderRowTooltipLabel:d,expandedColumns:b,wrappedColumns:w,emptyTableNotice:u}):(0,o.jsx)(k,{tableInstance:t,rowActionBar:n,onRowClick:a,getRowIsClickable:c,renderRowTooltipLabel:d,expandedColumns:b,wrappedColumns:w,emptyTableNotice:u}),l]})})},W=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:s="global-text-filter"}=e,[a,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)(()=>{a||u()},[a,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:a||"",placeholder:l,"data-testid":s})})};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 s},mb:function(){return r},tt:function(){return a}});var l=n(56078),o=n(98784),i=n.n(o);let r="::",s=e=>e?{padding:"0px"}:{paddingLeft:l.rSc.space[3],paddingRight:"calc(".concat(l.rSc.space[3]," - 5px)"),paddingTop:"0px",paddingBottom:"0px",borderRadius:"0px"},a=(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}},46628:function(e,t,n){n.d(t,{MA:function(){return s},Vo:function(){return c},t5:function(){return a}});var l=n(24246),o=n(56078);let i=e=>{let{children:t,title:n="Success"}=e;return(0,l.jsxs)(o.xvT,{"data-testid":"toast-success-msg",children:[(0,l.jsxs)("strong",{children:[n,":"]})," ",t]})},r=e=>{let{children:t}=e;return(0,l.jsxs)(o.xvT,{"data-testid":"toast-error-msg",children:[(0,l.jsx)("strong",{children:"Error:"})," ",t]})},s={variant:"subtle",position:"top",description:"",duration:5e3,status:"success",isClosable:!0},a=(e,t)=>{let n=(0,l.jsx)(i,{title:t,children:e});return{...s,description:n}},c=e=>{let t=(0,l.jsx)(r,{children:e});return{...s,description:t,status:"error"}}},19043:function(e,t,n){n.d(t,{Bw:function(){return r},D4:function(){return o},Dy:function(){return a},XD:function(){return c},cz:function(){return d},hE:function(){return s},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),s=e=>(0,l.Ln)({detail:"string"},e),a=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)}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5835],{77213:function(e,t,n){n.d(t,{Z:function(){return f}});var r=n(24246),i=n(56078),l=n(88038),s=n.n(l),a=n(86677);n(27378);var o=n(25980),c=n(90867),d=n(77830),u=()=>{let e=(0,a.useRouter)();return(0,r.jsx)(i.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,r.jsxs)(i.xuv,{children:[(0,r.jsxs)(i.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,r.jsx)(i.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,r.jsx)(i.wpx,{onClick:()=>{e.push(d.fz)},children:"Configure"})]}),(0,r.jsxs)(i.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},f=e=>{let{children:t,title:n,padded:l=!0,mainProps:d}=e,f=(0,o.hz)(),m=(0,a.useRouter)(),h="/privacy-requests"===m.pathname||"/datastore-connection"===m.pathname,p=!(f.flags.privacyRequestsConfiguration&&h),{data:g}=(0,c.JE)(void 0,{skip:p}),{data:x}=(0,c.PW)(void 0,{skip:p}),j=f.flags.privacyRequestsConfiguration&&(!g||!x)&&h;return(0,r.jsxs)(i.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,r.jsxs)(s(),{children:[(0,r.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,r.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,r.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,r.jsxs)(i.kCb,{as:"main",direction:"column",py:l?6:0,px:l?10:0,h:l?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...d,children:[j?(0,r.jsx)(u,{}):null,t]})]})}},58754:function(e,t,n){var r=n(24246),i=n(56078),l=n(70788);t.Z=e=>{let{heading:t,breadcrumbItems:n,isSticky:s=!0,children:a,rightContent:o,style:c,...d}=e;return(0,r.jsxs)("div",{...d,style:s?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...c}:{paddingBottom:"24px",...c},children:[(0,r.jsxs)(i.jqI,{justify:"space-between",children:["string"==typeof t?(0,r.jsx)(i.X6q,{className:n||a?"pb-4":void 0,fontSize:"2xl","data-testid":"page-heading",children:t}):t,o&&(0,r.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!n&&(0,r.jsx)(l.m,{className:a?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),a]})}},61524:function(e,t,n){n.d(t,{I_:function(){return s}});var r=n(24246),i=n(56078),l=n(67991);let s=5,a=e=>{let{title:t,children:n}=e;return(0,r.jsx)(i.xuv,{p:4,display:"flex",alignItems:"flex-start",gap:"4px",borderRadius:"4px",boxShadow:"0px 1px 2px 0px rgba(0, 0, 0, 0.06), 0px 1px 3px 0px rgba(0, 0, 0, 0.1)",fontSize:"sm","data-testid":"picker-card-".concat(t),children:n})},o=e=>{let{title:t,items:n,selected:a,indeterminate:o,onChange:c,toggle:d,onViewMore:u,numSelected:f,variant:m="default"}=e,h=u?n.slice(0,s):n,{allSelected:p,someSelected:g,handleToggleAll:x,handleToggleSelection:j}=(0,l.QZ)({items:n,selected:a,onChange:c});return(0,r.jsxs)(i.gCW,{alignItems:"flex-start",spacing:3,width:"100%",height:"100%",children:[(0,r.jsxs)(i.kCb,{justifyContent:"space-between",width:"100%",children:[(0,r.jsx)(i.XZJ,{fontSize:"md",textTransform:"emphasize"===m?"capitalize":void 0,fontWeight:"emphasize"===m?"semibold":"auto",isChecked:p,size:"md",mr:"2",onChange:x,colorScheme:"complimentary","data-testid":"select-all",isIndeterminate:!p&&g,children:t}),null!=d?d:null]}),f>0?(0,r.jsxs)(i.j8w,{className:"w-fit","data-testid":"num-selected-badge",children:[f," selected"]}):null,(0,r.jsx)(i.gCW,{paddingLeft:"6",fontSize:"sm",alignItems:"start",spacing:"2",children:(0,r.jsx)(i.cOn,{colorScheme:"complimentary",children:h.map(e=>(0,r.jsx)(i.kCb,{alignItems:"center",gap:"8px",children:(0,r.jsx)(i.XZJ,{isChecked:a.includes(e.id),isIndeterminate:o.includes(e.id),size:"md",fontWeight:"emphasize"===m?"500":"auto",onChange:()=>j(e.id),"data-testid":"".concat(e.name,"-checkbox"),children:e.name},e.id)},e.id))})}),u?(0,r.jsx)(i.wpx,{size:"small",onClick:u,type:"text","data-testid":"view-more-btn",children:"View more"}):null]})};t.ZP=e=>{let{...t}=e;return(0,r.jsx)(a,{title:t.title,children:(0,r.jsx)(o,{...t,variant:"emphasize"})})}},26917:function(e,t,n){var r=n(24246),i=n(56078);t.Z=e=>{let{onChange:t,withIcon:n,onClear:l,placeholder:s,...a}=e;return(0,r.jsxs)(i.vyj.Compact,{className:"w-96","data-testid":"search-bar",children:[(0,r.jsx)(i.uFc,{autoComplete:"off",onChange:e=>t(e.target.value),placeholder:s||"Search...",prefix:n?(0,r.jsx)(i.PTu,{boxSize:4}):void 0,...a}),l?(0,r.jsx)(i.wpx,{onClick:l,children:"Clear"}):null]})}},26089:function(e,t,n){var r=n(24246),i=n(56078);t.Z=e=>{let{onClick:t,children:n}=e;return(0,r.jsx)(i.wpx,{onClick:t,type:"link",role:"link",size:"large",className:"m-0 p-0 font-medium text-gray-700 underline",children:n})}},812:function(e,t,n){n.d(t,{D4:function(){return l.D4},MM:function(){return f},Ot:function(){return c},c6:function(){return i},cj:function(){return h},e$:function(){return a},fn:function(){return o},iC:function(){return m},nU:function(){return u},tB:function(){return d}});var r,i,l=n(19043);let s="An unexpected error occurred. Please try again.",a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s;if((0,l.Bw)(e)){if((0,l.hE)(e.data))return e.data.detail;if((0,l.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,l.Dy)(e.data)||404===e.status&&(0,l.XD)(e.data))return"".concat(e.data.detail.error," (").concat(e.data.detail.fides_key,")")}return t};function o(e){return"object"==typeof e&&null!=e&&"status"in e}function c(e){return"object"==typeof e&&null!=e&&"data"in e&&"string"==typeof e.data.detail}function d(e){return"object"==typeof e&&null!=e&&"data"in e&&Array.isArray(e.data.detail)}let u=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{status:500,message:s};if((0,l.oK)(e))return{status:e.originalStatus,message:e.data};if((0,l.Bw)(e)){let{status:n}=e;return{status:n,message:a(e,t.message)}}return t},f=e=>Object.entries(e).map(e=>({value:e[1],label:e[1]}));(r=i||(i={})).GVL="gvl",r.AC="gacp",r.COMPASS="compass";let m={gvl:{label:"GVL",fullName:"Global Vendor List"},gacp:{label:"AC",fullName:"Google Additional Consent List"},compass:{label:"",fullName:""}},h=e=>{let t=e.split(".")[0];return"gacp"===t?"gacp":"gvl"===t?"gvl":"compass"}},67991:function(e,t,n){n.d(t,{Od:function(){return l},QZ:function(){return i}});var r=n(27378);let i=e=>{let{items:t,selected:n,onChange:r}=e,i=t.every(e=>n.includes(e.id))&&!!t.length;return{allSelected:i,someSelected:t.some(e=>n.includes(e.id))&&!!t.length,handleToggleAll:()=>{i?r([]):r(t.map(e=>e.id))},handleToggleSelection:e=>{n.includes(e)?r(n.filter(t=>t!==e)):r([...n,e])}}},l=e=>{let{initialSelected:t,initialExcluded:n,initialAllSelected:i,itemCount:l}=e,[s,a]=(0,r.useState)(t),[o,c]=(0,r.useState)(n),[d,u]=(0,r.useState)(i||s.length===l),f=!!s.length||!!o.length;return{selected:s,excluded:o,allSelected:d,someSelected:f,handleToggleAll:()=>{d?(c([]),o.length||u(!1)):(a([]),u(!0))},handleToggleItemSelected:e=>{if(d)c(o.includes(e)?o.filter(t=>t!==e):[...o,e]);else{let t=s.includes(e)?s.filter(t=>t!==e):[...s,e];a(t),t.length===l&&u(!0)}}}}},58452:function(e,t,n){var r=n(24246),i=n(56078);t.Z=e=>{let{isOpen:t,onClose:n,onConfirm:l,onCancel:s,title:a,message:o,cancelButtonText:c,continueButtonText:d,isLoading:u,returnFocusOnClose:f,isCentered:m,testId:h="confirmation-modal",icon:p}=e;return(0,r.jsxs)(i.u_l,{isOpen:t,onClose:n,size:"lg",returnFocusOnClose:null==f||f,isCentered:m,children:[(0,r.jsx)(i.ZAr,{}),(0,r.jsxs)(i.hzk,{textAlign:"center",p:6,"data-testid":h,children:[p?(0,r.jsx)(i.M5Y,{mb:2,children:p}):null,a?(0,r.jsx)(i.xBx,{fontWeight:"medium",pb:0,children:a}):null,o?(0,r.jsx)(i.fef,{children:o}):null,(0,r.jsx)(i.mzw,{children:(0,r.jsxs)(i.MIq,{columns:2,width:"100%",children:[(0,r.jsx)(i.wpx,{onClick:()=>{s&&s(),n()},size:"large",className:"mr-3","data-testid":"cancel-btn",disabled:u,children:c||"Cancel"}),(0,r.jsx)(i.wpx,{type:"primary",size:"large",onClick:l,"data-testid":"continue-btn",loading:u,children:d||"Continue"})]})})]})]})}},70788:function(e,t,n){n.d(t,{m:function(){return c}});var r=n(24246),i=n(56078),l=n(79894),s=n.n(l),a=n(27378);let{Text:o}=i.AntTypography,c=e=>{let{items:t,...n}=e,l=(0,a.useMemo)(()=>null==t?void 0:t.map((e,n)=>{let l=n===t.length-1,a={...e},c=a.onClick&&!a.href;return("string"==typeof a.title&&(a.title=(0,r.jsx)(o,{style:{color:"inherit",maxWidth:l?void 0:400},ellipsis:!l,children:a.title})),c)?a.title=(0,r.jsx)(i.wpx,{type:"text",size:"small",icon:a.icon,onClick:a.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:a.title}):(a.icon&&(a.title=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"anticon align-text-bottom",children:a.icon}),a.title]})),a.href&&a.title&&(a.title=(0,r.jsx)(s(),{href:a.href,className:"ant-breadcrumb-link",children:a.title}),delete a.href)),a}),[t]);return(0,r.jsx)(i.zrq,{items:l,...n})}},46628:function(e,t,n){n.d(t,{MA:function(){return a},Vo:function(){return c},t5:function(){return o}});var r=n(24246),i=n(56078);let l=e=>{let{children:t,title:n="Success"}=e;return(0,r.jsxs)(i.xvT,{"data-testid":"toast-success-msg",children:[(0,r.jsxs)("strong",{children:[n,":"]})," ",t]})},s=e=>{let{children:t}=e;return(0,r.jsxs)(i.xvT,{"data-testid":"toast-error-msg",children:[(0,r.jsx)("strong",{children:"Error:"})," ",t]})},a={variant:"subtle",position:"top",description:"",duration:5e3,status:"success",isClosable:!0},o=(e,t)=>{let n=(0,r.jsx)(l,{title:t,children:e});return{...a,description:n}},c=e=>{let t=(0,r.jsx)(s,{children:e});return{...a,description:t,status:"error"}}},12282:function(e,t,n){n.d(t,{$_:function(){return a},h4:function(){return l},x$:function(){return s}});var r=n(24246),i=n(56078);let l=e=>{let{title:t}=e;return(0,r.jsx)(i.xBx,{fontSize:"lg",fontWeight:"semibold",pt:5,paddingInline:6,pb:5,backgroundColor:"gray.50",borderTopRadius:"md",borderBottom:"1px solid",borderColor:"gray.200",children:t})},s=e=>{let{title:t,allSelected:n,numSelected:l,onToggleAll:s,children:a}=e;return(0,r.jsxs)(i.kCb,{justifyContent:"space-between",mb:4,children:[(0,r.jsxs)(i.xuv,{children:[(0,r.jsx)(i.XZJ,{colorScheme:"complimentary",size:"md",isChecked:n,isIndeterminate:!n&&l>0,onChange:s,mr:3,"data-testid":"select-all",children:(0,r.jsx)(i.xvT,{fontWeight:"semibold",fontSize:"md",children:t})}),(0,r.jsxs)(i.j8w,{color:"minos",className:"w-fit","data-testid":"num-selected-badge",children:[l," selected"]})]}),a]})},a=e=>{let{onApply:t,onClose:n}=e;return(0,r.jsx)(i.mzw,{justifyContent:"center",children:(0,r.jsxs)("div",{className:"flex w-full justify-between",children:[(0,r.jsx)(i.wpx,{onClick:n,"data-testid":"cancel-btn",children:"Cancel"}),(0,r.jsx)(i.wpx,{type:"primary",onClick:t,"data-testid":"apply-btn",children:"Apply"})]})})}},85759:function(e,t,n){n.d(t,{$q:function(){return s},F7:function(){return i},Il:function(){return r},VT:function(){return l},ji:function(){return a}});let r=(e,t)=>{let n={};return new Set(e.map(e=>e.continent).sort()).forEach(r=>{n[r]={locationGroups:t.filter(e=>e.continent===r).sort((e,t)=>e.name.localeCompare(t.name)),locations:e.filter(e=>e.continent===r).sort((e,t)=>e.name.localeCompare(t.name))}}),n},i=e=>{let t={};return new Set(e.map(e=>e.continent).sort()).forEach(n=>{t[n]=e.filter(e=>e.continent===n).sort((e,t)=>e.name.localeCompare(t.name))}),t},l=e=>{let t={};new Set(e.map(e=>e.belongs_to).flat().sort()).forEach(n=>{n&&(t[n]=e.filter(e=>{var t;return null===(t=e.belongs_to)||void 0===t?void 0:t.includes(n)}).sort((e,t)=>e.name.localeCompare(t.name)))});let n=e.filter(e=>!e.belongs_to||0===e.belongs_to.length);return n.length&&(t.Other=n),t},s=(e,t)=>{var n;return null!==(n=e.regulation)&&void 0!==n&&!!n.length||t.filter(t=>{var n;return null===(n=t.belongs_to)||void 0===n?void 0:n.includes(e.id)}).some(e=>{var t;return null===(t=e.regulation)||void 0===t?void 0:t.length})},a=e=>{let{group:t,selected:n,locations:r}=e,i=r.filter(e=>{var n;return null===(n=e.belongs_to)||void 0===n?void 0:n.includes(t.id)});return 0===i.length?"unchecked":i.every(e=>n.includes(e.id))?"checked":i.every(e=>!n.includes(e.id))?"unchecked":"indeterminate"}},19043:function(e,t,n){n.d(t,{Bw:function(){return s},D4:function(){return i},Dy:function(){return o},XD:function(){return c},cz:function(){return d},hE:function(){return a},oK:function(){return l}});var r=n(76649);let i=e=>"error"in e,l=e=>(0,r.Ln)({status:"string"},e)&&"PARSING_ERROR"===e.status,s=e=>(0,r.Ln)({status:"number",data:{}},e),a=e=>(0,r.Ln)({detail:"string"},e),o=e=>(0,r.Ln)({detail:{error:"string",resource_type:"string",fides_key:"string"}},e),c=e=>(0,r.Ln)({detail:{error:"string",resource_type:"string",fides_key:"string"}},e),d=e=>(0,r.Ln)({detail:[{loc:["string","number"],msg:"string",type:"string"}]},e)},31883:function(e,t,n){n.d(t,{Bw:function(){return r.Bw},D4:function(){return r.D4}});var r=n(19043)},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 s{static narrow(e){return new s(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 s?e.NF:e instanceof Function?e:t=>r(e,t);return new s(e=>t(e)&&n(e))}}new s(e=>!0)}}]);