ethyca-fides 2.59.2b3__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 (274) hide show
  1. {ethyca_fides-2.59.2b3.dist-info → ethyca_fides-2.59.2rc0.dist-info}/METADATA +2 -2
  2. {ethyca_fides-2.59.2b3.dist-info → ethyca_fides-2.59.2rc0.dist-info}/RECORD +212 -215
  3. {ethyca_fides-2.59.2b3.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 +6 -7
  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/consentable_item.py +8 -5
  15. fides/api/schemas/messaging/messaging.py +2 -9
  16. fides/api/schemas/storage/storage.py +4 -40
  17. fides/api/schemas/storage/storage_secrets_docs_only.py +2 -8
  18. fides/api/schemas/system.py +2 -1
  19. fides/api/service/connectors/mysql_connector.py +1 -13
  20. fides/api/service/connectors/postgres_connector.py +4 -2
  21. fides/api/service/connectors/saas_connector.py +13 -18
  22. fides/api/service/saas_request/saas_request_override_factory.py +3 -3
  23. fides/api/service/storage/storage_authenticator_service.py +16 -39
  24. fides/api/service/storage/storage_uploader_service.py +1 -25
  25. fides/api/task/graph_task.py +3 -2
  26. fides/api/tasks/storage.py +2 -50
  27. fides/api/util/aws_util.py +17 -28
  28. fides/api/util/consent_util.py +4 -10
  29. fides/api/util/storage_util.py +0 -2
  30. fides/service/messaging/aws_ses_service.py +16 -25
  31. fides/ui-build/static/admin/404.html +1 -1
  32. fides/ui-build/static/admin/_next/static/P3RkpoojridGfvvbDI91a/_buildManifest.js +1 -0
  33. fides/ui-build/static/admin/_next/static/chunks/1100-45c0634b4f51d10c.js +1 -0
  34. fides/ui-build/static/admin/_next/static/chunks/1376-92890c17ce39ca0d.js +1 -0
  35. fides/ui-build/static/admin/_next/static/chunks/146-d1820217dc36d46d.js +1 -0
  36. fides/ui-build/static/admin/_next/static/chunks/{1817-90e54de7c706b571.js → 1817-6abbe957a53026d7.js} +1 -1
  37. fides/ui-build/static/admin/_next/static/chunks/{1904-e1034674c6eef004.js → 1904-281183a117e26585.js} +1 -1
  38. fides/ui-build/static/admin/_next/static/chunks/{2479-b4f7654c27a15c05.js → 2479-b4f7a1c7c711cb65.js} +1 -1
  39. fides/ui-build/static/admin/_next/static/chunks/3086-d1ba90bc6ac9174b.js +1 -0
  40. fides/ui-build/static/admin/_next/static/chunks/3244-3d94bf3393366412.js +1 -0
  41. fides/ui-build/static/admin/_next/static/chunks/{3702-8a6360b2deef2a87.js → 3702-3d814671c31eaca3.js} +1 -1
  42. fides/ui-build/static/admin/_next/static/chunks/3855-237afbbea7f54707.js +1 -0
  43. fides/ui-build/static/admin/_next/static/chunks/3872-c53d74aebd12cfd3.js +1 -0
  44. fides/ui-build/static/admin/_next/static/chunks/401-50974f107c2712fc.js +1 -0
  45. fides/ui-build/static/admin/_next/static/chunks/4060-52fd85fb1e15a2b8.js +1 -0
  46. fides/ui-build/static/admin/_next/static/chunks/4121-476f657b03a78965.js +1 -0
  47. fides/ui-build/static/admin/_next/static/chunks/4481-288d74a33473cff7.js +1 -0
  48. fides/ui-build/static/admin/_next/static/chunks/5102-626b9ff42e904276.js +1 -0
  49. fides/ui-build/static/admin/_next/static/chunks/5480-1623dbacdf4e6794.js +1 -0
  50. fides/ui-build/static/admin/_next/static/chunks/5487-9a2aecb0ec63d567.js +1 -0
  51. fides/ui-build/static/admin/_next/static/chunks/{5826-8a035114917033bb.js → 5826-1f4f74bf3b5348e4.js} +1 -1
  52. fides/ui-build/static/admin/_next/static/chunks/5973-942ce645a4279587.js +1 -0
  53. fides/ui-build/static/admin/_next/static/chunks/{6372-3d6d19a89e1d7a37.js → 6372-2aee10b79089521a.js} +1 -1
  54. fides/ui-build/static/admin/_next/static/chunks/6395-4224d6d26d1e8bb7.js +1 -0
  55. fides/ui-build/static/admin/_next/static/chunks/6853-ca5dacd25c9ccb7c.js +1 -0
  56. fides/ui-build/static/admin/_next/static/chunks/6954-127745bfdc5bc0b3.js +1 -0
  57. fides/ui-build/static/admin/_next/static/chunks/7751-3913b8c055f599e5.js +1 -0
  58. fides/ui-build/static/admin/_next/static/chunks/79-77cfed02164241ca.js +1 -0
  59. fides/ui-build/static/admin/_next/static/chunks/8433-c4c765833ab9cc07.js +1 -0
  60. fides/ui-build/static/admin/_next/static/chunks/8934-ffa2b0509bc7a845.js +1 -0
  61. fides/ui-build/static/admin/_next/static/chunks/9282-1a48b10b114d01f4.js +1 -0
  62. fides/ui-build/static/admin/_next/static/chunks/9327-4970d356f7000c0b.js +1 -0
  63. fides/ui-build/static/admin/_next/static/chunks/{9392.9178313b7a01d889.js → 9392.da35a8e778812d91.js} +1 -1
  64. fides/ui-build/static/admin/_next/static/chunks/9572-2b9b10e146130c85.js +1 -0
  65. fides/ui-build/static/admin/_next/static/chunks/{9676.d1e42fd1d03c4a76.js → 9676.f297a1347ac09c56.js} +1 -1
  66. fides/ui-build/static/admin/_next/static/chunks/9767-bf415d0daea960cd.js +1 -0
  67. fides/ui-build/static/admin/_next/static/chunks/{9951-a0ba5bccbbbd5f33.js → 9951-66aad0602aadfbe2.js} +1 -1
  68. fides/ui-build/static/admin/_next/static/chunks/pages/{404-b482dd9e6ba3397d.js → 404-29560aa2e6a60963.js} +1 -1
  69. fides/ui-build/static/admin/_next/static/chunks/pages/{_app-dc66d9fb6547cb04.js → _app-1ce747bb4aa843da.js} +48 -48
  70. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/manual-58e9256e86916ecd.js +1 -0
  71. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/{multiple-892fc00510cddef8.js → multiple-2392e3a101fae073.js} +1 -1
  72. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems-a6926f7ec7ad10cf.js +1 -0
  73. fides/ui-build/static/admin/_next/static/chunks/pages/ant-poc-404f3c9018952800.js +1 -0
  74. fides/ui-build/static/admin/_next/static/chunks/pages/consent/configure/{add-vendors-cc58c1e18966fcfd.js → add-vendors-7dfe37b9f0ff9a3c.js} +1 -1
  75. fides/ui-build/static/admin/_next/static/chunks/pages/consent/{configure-422f4d002822a5ce.js → configure-dba7848b760ba227.js} +1 -1
  76. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience/{[id]-cd8bb60adf783c4a.js → [id]-78de4bde88e18b0f.js} +1 -1
  77. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience/{new-300fd2800c417d0b.js → new-c02b14c50b19bd91.js} +1 -1
  78. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience-7eeeee3769e73f78.js +1 -0
  79. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{[id]-72dd15bfd87616c9.js → [id]-75c2ed6ba3de48cd.js} +1 -1
  80. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{new-8bbccdd747f4100c.js → new-487ae57dc7e2ded2.js} +1 -1
  81. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices-65091908d6296afc.js +1 -0
  82. fides/ui-build/static/admin/_next/static/chunks/pages/consent/{properties-55cc394ebc428e59.js → properties-f67fda6a71d0a46b.js} +1 -1
  83. fides/ui-build/static/admin/_next/static/chunks/pages/consent/reporting-7a1976c0d1aca8b6.js +1 -0
  84. fides/ui-build/static/admin/_next/static/chunks/pages/{consent-ec420ff6cfb82abd.js → consent-75395dfc224cf44b.js} +1 -1
  85. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/{[projectUrn]-b0b976e8dd5e4cd6.js → [projectUrn]-fa65c67ec8c4b5e6.js} +1 -1
  86. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/{projects-4ea56a1c3010ba99.js → projects-e76a07ee6ee8d55f.js} +1 -1
  87. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog-75989f9732d90793.js +1 -0
  88. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]/[systemId]-6b3d1fe762c747d8.js +1 -0
  89. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]-61eafb8444bffb76.js +1 -0
  90. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center-38476c697da53480.js +1 -0
  91. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/activity-e7869f658e3017b9.js +1 -0
  92. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/detection/{[resourceUrn]-10f789d4ab2b8927.js → [resourceUrn]-1bcaa606739ea1c5.js} +1 -1
  93. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{detection-f473b2ee1c67be3c.js → detection-22f55dc12354b4c6.js} +1 -1
  94. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/discovery/{[resourceUrn]-2569551ae75ea5a2.js → [resourceUrn]-86111c25dc30ef2b.js} +1 -1
  95. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{discovery-ad077f30849fdc0a.js → discovery-853be75f08b9ab5c.js} +1 -1
  96. fides/ui-build/static/admin/_next/static/chunks/pages/{datamap-4b12c6b141f6cda3.js → datamap-423172d31de8e9c6.js} +1 -1
  97. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]/{[...subfieldNames]-da407b63cd3f5276.js → [...subfieldNames]-704553f5329fb9d4.js} +1 -1
  98. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/{[collectionName]-76205fa5ddc5c3ae.js → [collectionName]-06c19dca941edb14.js} +1 -1
  99. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/{[datasetId]-ab7c88da427b6396.js → [datasetId]-eac517f43d5f53a8.js} +1 -1
  100. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/{new-8dba366b1d55a15c.js → new-5aff1d01c6c30ad6.js} +1 -1
  101. fides/ui-build/static/admin/_next/static/chunks/pages/{dataset-ee98d1a24a68f13b.js → dataset-f4d57b3432c57112.js} +1 -1
  102. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/{[id]-e39d66c8dfdc4c6f.js → [id]-b2b1168d0361baa8.js} +1 -1
  103. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/{new-8f2cfc79022cb6d0.js → new-c804349a417a888b.js} +1 -1
  104. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection-0faa9b3c4555e585.js +1 -0
  105. fides/ui-build/static/admin/_next/static/chunks/pages/index-e72904e316ede1b0.js +1 -0
  106. fides/ui-build/static/admin/_next/static/chunks/pages/integrations/[id]-17191a759e167ca8.js +1 -0
  107. fides/ui-build/static/admin/_next/static/chunks/pages/integrations-88e51c81a380ebad.js +1 -0
  108. fides/ui-build/static/admin/_next/static/chunks/pages/messaging/{[id]-1d18e28fa55a149b.js → [id]-66f5fbadd8455805.js} +1 -1
  109. fides/ui-build/static/admin/_next/static/chunks/pages/messaging/{add-template-11bdab1b292c6f89.js → add-template-d441abb1f045940f.js} +1 -1
  110. fides/ui-build/static/admin/_next/static/chunks/pages/messaging-eef56c95b08aa24c.js +1 -0
  111. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/{[id]-96350050e842bde5.js → [id]-54ea39f203182c53.js} +1 -1
  112. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/messaging-d889076067104e56.js +1 -0
  113. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/storage-3355b4803b2916f3.js +1 -0
  114. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure-b8c94b10ab90b061.js +1 -0
  115. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests-3ac47981f1e2b0aa.js +1 -0
  116. fides/ui-build/static/admin/_next/static/chunks/pages/properties/{[id]-835b7c4dd2240d16.js → [id]-f4fb941df069b7bf.js} +1 -1
  117. fides/ui-build/static/admin/_next/static/chunks/pages/properties/{add-property-984851804558be53.js → add-property-bccb6ffab25aa214.js} +1 -1
  118. fides/ui-build/static/admin/_next/static/chunks/pages/{properties-d2b95b0ebae06804.js → properties-9a7ac623370b7c00.js} +1 -1
  119. fides/ui-build/static/admin/_next/static/chunks/pages/reporting/datamap-fe743440d7eb007b.js +1 -0
  120. fides/ui-build/static/admin/_next/static/chunks/pages/settings/about-4412a7b468b6d4bf.js +1 -0
  121. fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent-cdc866af93898716.js +1 -0
  122. fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields-a7dc8113067dff42.js +1 -0
  123. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{domain-records-87df4b6493ca8162.js → domain-records-d9088f5cd9fb2822.js} +1 -1
  124. fides/ui-build/static/admin/_next/static/chunks/pages/settings/domains-2f03e981234c40ad.js +1 -0
  125. fides/ui-build/static/admin/_next/static/chunks/pages/settings/email-templates-cf09ad896c7396a6.js +1 -0
  126. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{locations-a8cd013bdd3aef75.js → locations-759564ca0ae62840.js} +1 -1
  127. fides/ui-build/static/admin/_next/static/chunks/pages/settings/organization-5bcc7a6976e01a56.js +1 -0
  128. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{regulations-5abb227df116c9c4.js → regulations-2dce4501fca920b3.js} +1 -1
  129. fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]/test-datasets-0b47ff26897c1d9a.js +1 -0
  130. fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/{[id]-693c726f22ae11c5.js → [id]-dd053a3bf2a9ca6c.js} +1 -1
  131. fides/ui-build/static/admin/_next/static/chunks/pages/systems-820893393f1516ee.js +1 -0
  132. fides/ui-build/static/admin/_next/static/chunks/pages/taxonomy-8fccd670220dbf60.js +1 -0
  133. fides/ui-build/static/admin/_next/static/chunks/pages/user-management/{new-65ef1bdebb679666.js → new-082c3156175f9267.js} +1 -1
  134. fides/ui-build/static/admin/_next/static/chunks/pages/user-management/profile/{[id]-28abb07c95f2c7c2.js → [id]-d527d1d1635541df.js} +1 -1
  135. fides/ui-build/static/admin/_next/static/chunks/pages/user-management-facb8c0128a44cb1.js +1 -0
  136. fides/ui-build/static/admin/_next/static/chunks/{webpack-cf42f5a0e9af0ace.js → webpack-03e375f6d6b2c71b.js} +1 -1
  137. fides/ui-build/static/admin/_next/static/css/687135955af5b7e1.css +1 -0
  138. fides/ui-build/static/admin/add-systems/manual.html +1 -1
  139. fides/ui-build/static/admin/add-systems/multiple.html +1 -1
  140. fides/ui-build/static/admin/add-systems.html +1 -1
  141. fides/ui-build/static/admin/ant-poc.html +1 -1
  142. fides/ui-build/static/admin/consent/configure/add-vendors.html +1 -1
  143. fides/ui-build/static/admin/consent/configure.html +1 -1
  144. fides/ui-build/static/admin/consent/privacy-experience/[id].html +1 -1
  145. fides/ui-build/static/admin/consent/privacy-experience/new.html +1 -1
  146. fides/ui-build/static/admin/consent/privacy-experience.html +1 -1
  147. fides/ui-build/static/admin/consent/privacy-notices/[id].html +1 -1
  148. fides/ui-build/static/admin/consent/privacy-notices/new.html +1 -1
  149. fides/ui-build/static/admin/consent/privacy-notices.html +1 -1
  150. fides/ui-build/static/admin/consent/properties.html +1 -1
  151. fides/ui-build/static/admin/consent/reporting.html +1 -1
  152. fides/ui-build/static/admin/consent.html +1 -1
  153. fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn].html +1 -1
  154. fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn].html +1 -1
  155. fides/ui-build/static/admin/data-catalog/[systemId]/projects.html +1 -1
  156. fides/ui-build/static/admin/data-catalog/[systemId]/resources/[resourceUrn].html +1 -1
  157. fides/ui-build/static/admin/data-catalog/[systemId]/resources.html +1 -1
  158. fides/ui-build/static/admin/data-catalog.html +1 -1
  159. fides/ui-build/static/admin/data-discovery/action-center/[monitorId]/[systemId].html +1 -1
  160. fides/ui-build/static/admin/data-discovery/action-center/[monitorId].html +1 -1
  161. fides/ui-build/static/admin/data-discovery/action-center.html +1 -1
  162. fides/ui-build/static/admin/data-discovery/activity.html +1 -1
  163. fides/ui-build/static/admin/data-discovery/detection/[resourceUrn].html +1 -1
  164. fides/ui-build/static/admin/data-discovery/detection.html +1 -1
  165. fides/ui-build/static/admin/data-discovery/discovery/[resourceUrn].html +1 -1
  166. fides/ui-build/static/admin/data-discovery/discovery.html +1 -1
  167. fides/ui-build/static/admin/datamap.html +1 -1
  168. fides/ui-build/static/admin/dataset/[datasetId]/[collectionName]/[...subfieldNames].html +1 -1
  169. fides/ui-build/static/admin/dataset/[datasetId]/[collectionName].html +1 -1
  170. fides/ui-build/static/admin/dataset/[datasetId].html +1 -1
  171. fides/ui-build/static/admin/dataset/new.html +1 -1
  172. fides/ui-build/static/admin/dataset.html +1 -1
  173. fides/ui-build/static/admin/datastore-connection/[id].html +1 -1
  174. fides/ui-build/static/admin/datastore-connection/new.html +1 -1
  175. fides/ui-build/static/admin/datastore-connection.html +1 -1
  176. fides/ui-build/static/admin/index.html +1 -1
  177. fides/ui-build/static/admin/integrations/[id].html +1 -1
  178. fides/ui-build/static/admin/integrations.html +1 -1
  179. fides/ui-build/static/admin/login/[provider].html +1 -1
  180. fides/ui-build/static/admin/login.html +1 -1
  181. fides/ui-build/static/admin/messaging/[id].html +1 -1
  182. fides/ui-build/static/admin/messaging/add-template.html +1 -1
  183. fides/ui-build/static/admin/messaging.html +1 -1
  184. fides/ui-build/static/admin/privacy-requests/[id].html +1 -1
  185. fides/ui-build/static/admin/privacy-requests/configure/messaging.html +1 -1
  186. fides/ui-build/static/admin/privacy-requests/configure/storage.html +1 -1
  187. fides/ui-build/static/admin/privacy-requests/configure.html +1 -1
  188. fides/ui-build/static/admin/privacy-requests.html +1 -1
  189. fides/ui-build/static/admin/properties/[id].html +1 -1
  190. fides/ui-build/static/admin/properties/add-property.html +1 -1
  191. fides/ui-build/static/admin/properties.html +1 -1
  192. fides/ui-build/static/admin/reporting/datamap.html +1 -1
  193. fides/ui-build/static/admin/settings/about.html +1 -1
  194. fides/ui-build/static/admin/settings/consent.html +1 -1
  195. fides/ui-build/static/admin/settings/custom-fields.html +1 -1
  196. fides/ui-build/static/admin/settings/domain-records.html +1 -1
  197. fides/ui-build/static/admin/settings/domains.html +1 -1
  198. fides/ui-build/static/admin/settings/email-templates.html +1 -1
  199. fides/ui-build/static/admin/settings/locations.html +1 -1
  200. fides/ui-build/static/admin/settings/organization.html +1 -1
  201. fides/ui-build/static/admin/settings/regulations.html +1 -1
  202. fides/ui-build/static/admin/systems/configure/[id]/test-datasets.html +1 -1
  203. fides/ui-build/static/admin/systems/configure/[id].html +1 -1
  204. fides/ui-build/static/admin/systems.html +1 -1
  205. fides/ui-build/static/admin/taxonomy.html +1 -1
  206. fides/ui-build/static/admin/user-management/new.html +1 -1
  207. fides/ui-build/static/admin/user-management/profile/[id].html +1 -1
  208. fides/ui-build/static/admin/user-management.html +1 -1
  209. fides/api/alembic/migrations/versions/c9c72b3d550b_data_migration_cookie_asset.py +0 -218
  210. fides/api/service/storage/gcs.py +0 -38
  211. fides/ui-build/static/admin/_next/static/WiKelYdZvuyhqjL7rLRaz/_buildManifest.js +0 -1
  212. fides/ui-build/static/admin/_next/static/chunks/1100-0046887f49e9e7c7.js +0 -1
  213. fides/ui-build/static/admin/_next/static/chunks/3503-2e773a38d4a79c2d.js +0 -1
  214. fides/ui-build/static/admin/_next/static/chunks/3513-2ee2ff13c15af241.js +0 -1
  215. fides/ui-build/static/admin/_next/static/chunks/3855-7a43acdb1f8de2f5.js +0 -1
  216. fides/ui-build/static/admin/_next/static/chunks/3872-53b86dcc7ee3ddec.js +0 -1
  217. fides/ui-build/static/admin/_next/static/chunks/401-a15fcc78cc272c09.js +0 -1
  218. fides/ui-build/static/admin/_next/static/chunks/4060-93514991b84ca46c.js +0 -1
  219. fides/ui-build/static/admin/_next/static/chunks/4121-01e2b9f905b8ca29.js +0 -1
  220. fides/ui-build/static/admin/_next/static/chunks/4481-c19a0c5e273a3ec7.js +0 -1
  221. fides/ui-build/static/admin/_next/static/chunks/5487-b6957c5ba835167b.js +0 -1
  222. fides/ui-build/static/admin/_next/static/chunks/5835-2e2aa29b4a8bf4e6.js +0 -1
  223. fides/ui-build/static/admin/_next/static/chunks/5973-4b83cf367b6d82a2.js +0 -1
  224. fides/ui-build/static/admin/_next/static/chunks/6277-2f2d89b83a19ee67.js +0 -1
  225. fides/ui-build/static/admin/_next/static/chunks/6853-45e8c48ad0fdf1db.js +0 -1
  226. fides/ui-build/static/admin/_next/static/chunks/6954-6de30beefefac64a.js +0 -1
  227. fides/ui-build/static/admin/_next/static/chunks/7751-f83e9877478aafcf.js +0 -1
  228. fides/ui-build/static/admin/_next/static/chunks/79-576004c5ee5116f6.js +0 -1
  229. fides/ui-build/static/admin/_next/static/chunks/8433-234a6feeb457cbb8.js +0 -1
  230. fides/ui-build/static/admin/_next/static/chunks/8934-e357867355f1f924.js +0 -1
  231. fides/ui-build/static/admin/_next/static/chunks/9282-c7f853a8175266bc.js +0 -1
  232. fides/ui-build/static/admin/_next/static/chunks/9327-0bc418b9b16cc2c5.js +0 -1
  233. fides/ui-build/static/admin/_next/static/chunks/9572-c34e18bd40467909.js +0 -1
  234. fides/ui-build/static/admin/_next/static/chunks/9719-d3de30714871f267.js +0 -1
  235. fides/ui-build/static/admin/_next/static/chunks/9767-ee5b0af0e65d3802.js +0 -1
  236. fides/ui-build/static/admin/_next/static/chunks/9965-8880affd11242777.js +0 -1
  237. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/manual-e16fcedb2215db13.js +0 -1
  238. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems-cb85a0014fad7c58.js +0 -1
  239. fides/ui-build/static/admin/_next/static/chunks/pages/ant-poc-2bade915860dd327.js +0 -1
  240. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience-046051bb82ec1c53.js +0 -1
  241. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices-1f402b7525f78140.js +0 -1
  242. fides/ui-build/static/admin/_next/static/chunks/pages/consent/reporting-de9118ec446ce994.js +0 -1
  243. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog-7efbc1558febf026.js +0 -1
  244. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]/[systemId]-cdd23dc94e1fbf89.js +0 -1
  245. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]-94308fff1468b5e6.js +0 -1
  246. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center-920ed6df7e0aa3a5.js +0 -1
  247. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/activity-7e25ddfe45048b35.js +0 -1
  248. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection-340e311fa02584dc.js +0 -1
  249. fides/ui-build/static/admin/_next/static/chunks/pages/index-259c1f1281f9b634.js +0 -1
  250. fides/ui-build/static/admin/_next/static/chunks/pages/integrations/[id]-0fc3ffd11ba163f9.js +0 -1
  251. fides/ui-build/static/admin/_next/static/chunks/pages/integrations-d584110d81e5b395.js +0 -1
  252. fides/ui-build/static/admin/_next/static/chunks/pages/messaging-de5efa1ff6d0e9ea.js +0 -1
  253. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/messaging-e8e9ae8d58acceb2.js +0 -1
  254. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/storage-a76f1d1a19e61fe8.js +0 -1
  255. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure-6b9a46fef5031a0b.js +0 -1
  256. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests-630db544f2a27167.js +0 -1
  257. fides/ui-build/static/admin/_next/static/chunks/pages/reporting/datamap-5d1aededc7523146.js +0 -1
  258. fides/ui-build/static/admin/_next/static/chunks/pages/settings/about-44f96bcf57cd4cbf.js +0 -1
  259. fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent/[configuration_id]/[purpose_id]-0ba66c149139737a.js +0 -1
  260. fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent-943dfe977678edb5.js +0 -1
  261. fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields-39d098cbcb33d4f5.js +0 -1
  262. fides/ui-build/static/admin/_next/static/chunks/pages/settings/domains-45a8a86266308028.js +0 -1
  263. fides/ui-build/static/admin/_next/static/chunks/pages/settings/email-templates-272eb2c0b7ffd290.js +0 -1
  264. fides/ui-build/static/admin/_next/static/chunks/pages/settings/organization-aaa200f916ba79d8.js +0 -1
  265. fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]/test-datasets-da1b2dd3ec61a08e.js +0 -1
  266. fides/ui-build/static/admin/_next/static/chunks/pages/systems-5eccb5fe50f7aaa9.js +0 -1
  267. fides/ui-build/static/admin/_next/static/chunks/pages/taxonomy-0611d707ce426ec7.js +0 -1
  268. fides/ui-build/static/admin/_next/static/chunks/pages/user-management-4eb69d5c6af8581b.js +0 -1
  269. fides/ui-build/static/admin/_next/static/css/e728309361a9758b.css +0 -1
  270. fides/ui-build/static/admin/settings/consent/[configuration_id]/[purpose_id].html +0 -1
  271. {ethyca_fides-2.59.2b3.dist-info → ethyca_fides-2.59.2rc0.dist-info}/entry_points.txt +0 -0
  272. {ethyca_fides-2.59.2b3.dist-info → ethyca_fides-2.59.2rc0.dist-info}/licenses/LICENSE +0 -0
  273. {ethyca_fides-2.59.2b3.dist-info → ethyca_fides-2.59.2rc0.dist-info}/top_level.txt +0 -0
  274. /fides/ui-build/static/admin/_next/static/{WiKelYdZvuyhqjL7rLRaz → P3RkpoojridGfvvbDI91a}/_ssgManifest.js +0 -0
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5102],{29850:function(e,s,t){"use strict";t.d(s,{R:function(){return c}});var i=t(24246),n=t(77181),a=t(27378),l=t(65450);let r=e=>{let{children:s,className:t,style:a,...l}=e;return(0,i.jsx)(n.wpx,{...l,type:"text",className:"w-full justify-start ".concat(t),style:{fontWeight:600,padding:"var(--ant-select-option-padding)",backgroundColor:"var(--ant-select-option-selected-bg)",...a},children:s})};var o=t(16394);let d=(e,s)=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(r,{onClick:s,"data-testid":"add-new-system",id:"add-new-system",children:"Add new system +"}),e]}),c=e=>{var s;let{onAddSystem:t,...r}=e,[c,m]=(0,a.useState)(),{data:u,isFetching:h}=(0,l.xF)({page:1,size:25,search:c||void 0}),p=null==u?void 0:null===(s=u.items)||void 0===s?void 0:s.map(e=>({value:e.fides_key,label:e.name})),y=(0,a.useCallback)(e=>{(null==e?void 0:e.length)>1&&m(e),(null==e?void 0:e.length)===0&&m(void 0)},[m]),x=(0,a.useMemo)(()=>(0,o.Ds)(y,300),[y]);return(0,i.jsx)(n.WPr,{placeholder:"Search...","aria-label":"Search for a system to select",dropdownStyle:{minWidth:"500px"},dropdownRender:t?e=>d(e,t):void 0,"data-testid":"system-select",...r,filterOption:!1,options:p,onSearch:x,loading:r.loading||h})}},79283:function(e,s,t){"use strict";t.d(s,{l:function(){return o}});var i=t(24246),n=t(77181),a=t(72707),l=t.n(a);let r=e=>{let{data:s}=e;return(0,i.jsxs)(n.jqI,{gap:12,title:"".concat(s.primaryName||"").concat(s.primaryName?": ":"").concat(s.name," - ").concat(s.description),children:[(0,i.jsxs)("div",{children:[(0,i.jsx)("strong",{children:s.primaryName||s.name}),s.primaryName&&": ".concat(s.name)]}),(0,i.jsx)("em",{children:s.description})]})},o=e=>{let{options:s,...t}=e,a=null==s?void 0:s.map(e=>({...e,className:l().option}));return(0,i.jsx)(n.WPr,{options:a,autoFocus:!0,variant:"borderless",optionRender:r,dropdownStyle:{minWidth:"500px"},className:"w-full p-0","data-testid":"taxonomy-select",...t})}},70682:function(e,s,t){"use strict";var i=t(24246),n=t(79283),a=t(34929),l=t(78238);s.Z=e=>{let{selectedTaxonomies:s,...t}=e,{getDataUseDisplayNameProps:r,getDataUses:o}=(0,a.Z)(),d=o().filter(e=>e.active&&l.g.includes(e.fides_key)).map(e=>{let{name:s,primaryName:t}=r(e.fides_key);return{value:e.fides_key,name:s,primaryName:t,description:e.description||""}});return(0,i.jsx)(n.l,{options:d,...t})}},26183:function(e,s,t){"use strict";var i=t(24246);t(27378),s.Z=e=>{let{children:s,className:t,...n}=e;return(0,i.jsx)("div",{className:"relative flex w-full flex-wrap items-center gap-2 overflow-x-auto py-2 ".concat(t||""),...n,children:s})}},77685:function(e,s,t){"use strict";t.d(s,{i:function(){return S}});var i=t(24246),n=t(77181),a=t(34090),l=t(27378),r=t(55484),o=t(16134),d=t(25980),c=t(97181),m=t(40324),u=t(812),h=t(14047),p=t(45938),y=t(8133),x=t(33335),f=t(32885),v=t(57865),g=t(93237),j=t(65450),b=t(36345);let{Text:w}=n.AntTypography,_={name:"",vendor_id:void 0,description:"",tags:[]},S=e=>{let{onSuccessfulSubmit:s,toastOnSuccess:t,...S}=e,[k,C]=(0,l.useState)(!1),N=(0,o.T)(),{tcf:I,dictionaryService:R}=(0,d.hz)(),{isLoading:q}=(0,f.Rd)(void 0,{skip:!R}),z=(0,o.C)(f.o),F=(0,o.C)(v.gU),[W]=(0,j.in)(),[Z]=(0,f.Qk)(),[B]=(0,j.f7)(),{successAlert:D,errorAlert:E}=(0,h.V)(),{setSuggestions:T,setLockedForGVL:U}=v.dictSuggestionsSlice.actions,A=(0,l.useRef)(null),V=(0,l.useMemo)(()=>r.Ry().shape({name:r.Z_().required().label("System name").test("is-unique","",async(e,s)=>{let{data:t}=await W({page:1,size:10,search:e});return!((null==t?void 0:t.items)||[]).filter(s=>s.name===e).some(s=>s.name===e)||s.createError({message:'You already have a system called "'.concat(e,'". Please specify a unique name for this system.')})})}),[W]),Y=e=>{if(R){if(!e){N(T("hiding")),N(U(!1));return}N(T("showing")),I&&(0,u.cj)(e)===u.c6.GVL?N(U(!0)):N(U(!1))}},G=()=>{S.onClose(),N(T("initial")),N(U(!1))},P=async e=>{if(C(!0),e.vendor_id){let i=await Z([e.vendor_id]);if((0,u.D4)(i))E((0,u.e$)(i.error));else{let{data:e}=i,n=e.systems[0];null==s||s(n.fides_key,n.name),t&&D("".concat(e.name," has been added to your system inventory."))}}else{let i={...e,fides_key:(0,x.E)(e.name),system_type:"",body:"",privacy_declarations:[]},n=await B(i);if((0,u.D4)(n))E((0,u.e$)(n.error));else{let{fides_key:i,name:a}=n.data;null==s||s(i,a),t&&D("".concat(e.name," has been added to your system inventory."))}G()}C(!1)};return(0,i.jsx)(y.Z,{title:"Add New System",...S,onClose:G,children:(0,i.jsx)(a.J9,{initialValues:_,onSubmit:P,validationSchema:V,innerRef:A,children:e=>{let{dirty:s,isValid:t}=e;return(0,i.jsxs)(a.l0,{children:[(0,i.jsx)(p.Gt,{id:"new-system-modal",name:"Add New System"}),(0,i.jsxs)(n.jqI,{vertical:!0,gap:20,className:"pb-6 pt-4",children:[(0,i.jsx)(w,{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."}),R?(0,i.jsx)(b.Z,{label:"System name",options:z,onVendorSelected:Y,isCreate:!0,lockedForGVL:F,isLoading:q}):(0,i.jsx)(m.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)(g.Sv,{id:"description",name:"description",label:"Description",tooltip:"What services does this system perform?",disabled:F}),(0,i.jsx)(c.d,{mode:"tags",id:"tags",name:"tags",label:"System Tags",options:[],layout:"stacked",tooltip:"Are there any tags to associate with this system?",disabled:F})]}),(0,i.jsxs)(n.jqI,{justify:"space-between",children:[(0,i.jsx)(n.wpx,{htmlType:"reset",onClick:G,disabled:q||!s||!t,"data-testid":"cancel-btn",children:"Cancel"}),(0,i.jsx)(n.wpx,{htmlType:"submit",type:"primary",disabled:q||!s||!t,loading:k,"data-testid":"save-btn",children:"Save"})]})]})}})})}},93237:function(e,s,t){"use strict";t.d(s,{Sv:function(){return p},Yb:function(){return h},dQ:function(){return y},lm:function(){return x}});var i=t(24246),n=t(77181),a=t(34090),l=t(27378),r=t(16134),o=t(40324),d=t(91613),c=t(32885),m=t(57865);let u=(e,s,t)=>{var i,n;let[o,d,{setValue:u,setTouched:h}]=(0,a.U$)({name:e,type:t||void 0}),p=!!(d.touched&&d.error),{error:y}=d,x={...o,value:null!==(i=o.value)&&void 0!==i?i:""},[f,v]=(0,l.useState)(null!==(n=x.value)&&void 0!==n?n:""),{values:g}=(0,a.u6)(),{vendor_id:j}=g,b=(0,r.C)((0,c.$e)(j||"")),w=(0,r.C)(m.bN),_=(0,l.useRef)();return(0,l.useEffect)(()=>{"showing"===w&&v(x.value)},[w,v]),(0,l.useEffect)(()=>{if("showing"===w&&b){let t=s?s(b):b[e];x.value!==t&&(u(t),setTimeout(()=>{var e;h(!0),null===(e=_.current)||void 0===e||e.blur()},300))}},[w,u,b,_.current]),(0,l.useEffect)(()=>{"hiding"===w&&u(f)},[w,u,f]),{field:x,isInvalid:p,isShowingSuggestions:w,error:y,inputRef:_}},h=e=>{let{label:s,tooltip:t,disabled:a,isRequired:l=!1,dictField:r,name:c,placeholder:m,id:h}=e,{field:p,isInvalid:y,isShowingSuggestions:x,error:f,inputRef:v}=u(c,r);return(0,i.jsx)(n.NIc,{isInvalid:y,isRequired:l,children:(0,i.jsxs)(n.gCW,{alignItems:"start",children:[(0,i.jsxs)(n.kCb,{alignItems:"center",children:[(0,i.jsx)(o.__,{htmlFor:h||c,fontSize:"xs",my:0,mr:1,children:s}),t?(0,i.jsx)(d.Z,{label:t}):null]}),(0,i.jsx)(o.oi,{...p,ref:v,isRequired:l,isDisabled:a,"data-testid":"input-".concat(p.name),placeholder:m,isPassword:!1,color:"showing"===x?"complimentary.500":"gray.800"}),(0,i.jsx)(o.Bc,{isInvalid:y,message:f,fieldName:p.name})]})})},p=e=>{let{label:s,tooltip:t,disabled:a,isRequired:l=!1,dictField:r,name:c,id:m}=e,{field:h,isInvalid:p,isShowingSuggestions:y,error:x}=u(c,r);return(0,i.jsx)(n.NIc,{isInvalid:p,isRequired:l,children:(0,i.jsxs)(n.gCW,{alignItems:"start",children:[(0,i.jsxs)(n.kCb,{alignItems:"center",children:[(0,i.jsx)(o.__,{htmlFor:m||c,fontSize:"xs",my:0,mr:1,children:s}),t?(0,i.jsx)(d.Z,{label:t}):null]}),(0,i.jsx)(n.gxH,{...h,size:"sm","data-testid":"input-".concat(h.name),focusBorderColor:"primary.600",color:"showing"===y?"complimentary.500":"gray.800",isDisabled:a}),(0,i.jsx)(o.Bc,{isInvalid:p,message:x,fieldName:h.name})]})})},y=e=>{let{label:s,tooltip:t,dictField:l,name:r,id:c,disabled:m}=e,{field:h,isInvalid:p,error:y}=u(r,l,"checkbox");return(0,i.jsxs)(n.NIc,{isInvalid:p,width:"full",children:[(0,i.jsxs)(n.xuv,{display:"flex",alignItems:"center",justifyContent:"space-between",children:[(0,i.jsxs)(n.Ugi,{spacing:1,children:[(0,i.jsx)(o.__,{htmlFor:c||r,fontSize:"xs",my:0,mr:0,children:s}),t?(0,i.jsx)(d.Z,{label:t}):null]}),(0,i.jsx)(n.Ugi,{children:(0,i.jsx)(a.gN,{name:h.name,children:e=>{let{form:{setFieldValue:s}}=e;return(0,i.jsx)(n.rAg,{checked:h.checked,onChange:e=>{s(h.name,e)},disabled:m,className:"mr-2","data-testid":"input-".concat(h.name),size:"small"})}})})]}),(0,i.jsx)(o.Bc,{isInvalid:p,message:y,fieldName:h.name})]})},x=e=>{let{label:s,tooltip:t,dictField:l,name:r,id:c,disabled:m}=e,{field:h,isInvalid:p,error:y,isShowingSuggestions:x}=u(r,l,"numeric"),{setFieldValue:f}=(0,a.u6)();return(0,i.jsxs)(n.NIc,{isInvalid:p,width:"full",children:[(0,i.jsxs)(n.xuv,{display:"flex",alignItems:"center",justifyContent:"space-between",children:[(0,i.jsxs)(n.Ugi,{spacing:1,children:[(0,i.jsx)(o.__,{htmlFor:c||r,fontSize:"xs",my:0,mr:0,children:s}),t?(0,i.jsx)(d.Z,{label:t}):null]}),(0,i.jsx)(n.Ugi,{children:(0,i.jsxs)(n.Y2U,{value:h.value,name:h.name,size:"xs",onBlur:h.onBlur,onChange:e=>{f(h.name,e)},w:"100%",colorScheme:"terracotta",inputMode:"numeric","data-testid":"input-".concat(h.name),color:"showing"===x?"complimentary.500":"gray.800",focusBorderColor:"primary.600",isDisabled:m,children:[(0,i.jsx)(n.zuI,{}),(0,i.jsxs)(n.FiK,{children:[(0,i.jsx)(n.WQu,{}),(0,i.jsx)(n.Y_d,{})]})]})})]}),(0,i.jsx)(o.Bc,{isInvalid:p,message:y,fieldName:h.name})]})}},72707:function(e){e.exports={option:"TaxonomySelect_option__vY6v2"}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5480],{95492:function(e,t,n){n.d(t,{l:function(){return i}});var r=n(24246);let i=(0,n(77181).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(77181),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(77181),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}},86780:function(e,t,n){var r=n(24246),i=n(77181);t.Z=e=>{let{search:t,onChange:n,withIcon:s,onClear:a,placeholder:o,...l}=e;return(0,r.jsxs)(i.vyj.Compact,{className:"w-96","data-testid":"search-bar",children:[(0,r.jsx)(i.uFc,{autoComplete:"off",value:t,onChange:e=>n(e.target.value),placeholder:o||"Search...",prefix:s?(0,r.jsx)(i.PTu,{boxSize:4}):void 0,...l}),a?(0,r.jsx)(i.wpx,{onClick:a,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(77181),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(77181);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(77181),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(62656);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)}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5487],{624:function(e,t,i){var n=i(24246),l=i(77181),r=i(27378);let a=e=>{let t=e.split("."),i=[];return t.forEach(e=>{let t=i.length>0?i[i.length-1]:null;t?i.push("".concat(t,".").concat(e)):i.push(e)}),i},s=(e,t)=>{let i=a(t).filter(e=>e!==t);return e.filter(e=>i.includes(e)).length>0},o=(e,t)=>!!(e===t||e.startsWith("".concat(t,"."))),c=(e,t,i)=>{let n=null!=i?i:[];return e.forEach(e=>{e.children&&c(e.children,t,n),o(e.value,t)&&n.push(e)}),n},d=e=>{let{node:t,isChecked:i,onChecked:r,isExpanded:a,onExpanded:s,isIndeterminate:o,isDisabled:c,children:d}=e,{value:u,label:h}=t,x=!!t.children&&t.children.length>0;return(0,n.jsxs)(l.xuv,{children:[(0,n.jsxs)(l.xuv,{display:"flex",justifyContent:"space-between",_hover:{backgroundColor:"gray.100",cursor:"pointer"},onClick:()=>s(t),minHeight:8,children:[(0,n.jsx)(l.XZJ,{colorScheme:"complimentary",value:u,isChecked:!o&&i,isIndeterminate:o,isDisabled:c,onChange:()=>r(t),mx:2,"data-testid":"checkbox-".concat(h),children:h}),x?(0,n.jsx)(l.wpx,{"data-testid":"expand-".concat(h),"aria-label":a?"collapse":"expand",icon:(0,n.jsx)(l.v4q,{boxSize:5}),type:"text",onClick:()=>s(t),className:a?"rotate-180":void 0}):null]}),d&&(0,n.jsx)(l.xuv,{ml:5,children:d})]})};t.ZP=e=>{let{nodes:t,selected:i,onSelected:u,...h}=e,[x,p]=(0,r.useState)([]),[f,m]=(0,r.useState)([]);(0,r.useEffect)(()=>{let e=Array.from(new Set([...i.map(e=>a(e)).reduce((e,t)=>e.concat(t),[]),...i.map(e=>c(t,e)).reduce((e,t)=>e.concat(t),[]).map(e=>e.value)]));m(e),p(e)},[i,t]);let j=e=>{let n=[],l=[];x.indexOf(e.value)>=0?(n=x.filter(t=>!o(t,e.value)),l=i.filter(t=>!o(t,e.value))):(n=[...x,...c(t,e.value).map(e=>e.value)],l=[...i,e.value]),p(n),u(l)},v=e=>{f.indexOf(e.value)>=0?m(f.filter(t=>!o(t,e.value))):m([...f,e.value])},C=e=>{if(e.children){let l=x.indexOf(e.value)>=0,a=f.indexOf(e.value)>=0,o=c(t,e.value),u=l&&e.children.length>0&&x.filter(t=>t.startsWith("".concat(e.value,"."))).length+1!==o.length,h=s(i,e.value);return(0,n.jsx)(d,{node:e,isChecked:l,onChecked:j,isExpanded:a,onExpanded:v,isDisabled:h,isIndeterminate:u,children:a?e.children.map(e=>(0,n.jsx)(r.Fragment,{children:C(e)},e.value)):void 0})}return null};return(0,n.jsx)(l.xuv,{...h,children:t.map(e=>(0,n.jsx)(l.xuv,{children:C(e)},e.value))})}},79806:function(e,t,i){i.d(t,{Gn:function(){return s},zR:function(){return a}});var n=i(24246),l=i(77181),r=i(56358);let a=e=>{let{title:t}=e;return(0,n.jsx)(l.OXI,{py:0,display:"flex",alignItems:"flex-start",children:(0,n.jsx)(l.xvT,{mr:"2",color:"gray.700",fontSize:"lg",lineHeight:1.8,children:t})})},s=e=>{let{onDelete:t,onEditYaml:i,formId:a,isSaving:s}=e;return(0,n.jsxs)(l.zeN,{justifyContent:"space-between",children:[t?(0,n.jsx)(l.wpx,{"aria-label":"delete",icon:(0,n.jsx)(r.q,{fontSize:"small"}),onClick:t,"data-testid":"delete-btn"}):null,(0,n.jsxs)("div",{className:"flex gap-2",children:[i&&(0,n.jsx)(l.wpx,{onClick:i,"data-testid":"edit-yaml-btn",children:"Edit YAML"}),(0,n.jsx)(l.wpx,{htmlType:"submit",type:"primary","data-testid":"save-btn",form:a,loading:s,children:"Save"})]})]})};t.ZP=e=>{let{header:t,description:i,isOpen:r,onClose:a,children:s,footer:o}=e;return(0,n.jsxs)(l.dys,{placement:"right",isOpen:r,onClose:a,size:"md",children:[(0,n.jsx)(l.P1B,{}),(0,n.jsxs)(l.scA,{"data-testid":"edit-drawer-content",py:2,children:[(0,n.jsxs)(l.xuv,{display:"flex",justifyContent:"space-between",alignItems:"top",mr:2,py:2,gap:2,children:[(0,n.jsx)(l.xuv,{flex:1,minH:8,children:t}),(0,n.jsx)(l.xuv,{display:"flex",justifyContent:"flex-end",mr:2,children:(0,n.jsx)(l.wpx,{"aria-label":"Close editor",onClick:a,"data-testid":"close-drawer-btn",icon:(0,n.jsx)(l.Two,{fontSize:"smaller"})})})]}),(0,n.jsxs)(l.Ng0,{pt:1,children:[i?(0,n.jsx)(l.xvT,{fontSize:"sm",mb:4,color:"gray.600",children:i}):null,s]}),o]})]})}},56358:function(e,t,i){i.d(t,{q:function(){return l}});var n=i(24246);let l=(0,i(77181).IUT)({displayName:"TrashCanOutlineIcon",viewBox:"0 0 11 12",path:(0,n.jsx)("path",{d:"M4.5166 1.60859L4.1084 2.21875H7.22363L6.81543 1.60859C6.7832 1.56133 6.72949 1.53125 6.67148 1.53125H4.6584C4.60039 1.53125 4.54668 1.55918 4.51445 1.60859H4.5166ZM7.6748 1.03711L8.46328 2.21875H8.75977H9.79102H9.96289C10.2486 2.21875 10.4785 2.44863 10.4785 2.73438C10.4785 3.02012 10.2486 3.25 9.96289 3.25H9.79102V9.78125C9.79102 10.7309 9.02188 11.5 8.07227 11.5H3.25977C2.31016 11.5 1.54102 10.7309 1.54102 9.78125V3.25H1.36914C1.0834 3.25 0.853516 3.02012 0.853516 2.73438C0.853516 2.44863 1.0834 2.21875 1.36914 2.21875H1.54102H2.57227H2.86875L3.65723 1.03496C3.88066 0.701953 4.25664 0.5 4.6584 0.5H6.67148C7.07324 0.5 7.44922 0.701953 7.67266 1.03496L7.6748 1.03711ZM2.57227 3.25V9.78125C2.57227 10.1615 2.87949 10.4688 3.25977 10.4688H8.07227C8.45254 10.4688 8.75977 10.1615 8.75977 9.78125V3.25H2.57227ZM4.29102 4.625V9.09375C4.29102 9.28281 4.13633 9.4375 3.94727 9.4375C3.7582 9.4375 3.60352 9.28281 3.60352 9.09375V4.625C3.60352 4.43594 3.7582 4.28125 3.94727 4.28125C4.13633 4.28125 4.29102 4.43594 4.29102 4.625ZM6.00977 4.625V9.09375C6.00977 9.28281 5.85508 9.4375 5.66602 9.4375C5.47695 9.4375 5.32227 9.28281 5.32227 9.09375V4.625C5.32227 4.43594 5.47695 4.28125 5.66602 4.28125C5.85508 4.28125 6.00977 4.43594 6.00977 4.625ZM7.72852 4.625V9.09375C7.72852 9.28281 7.57383 9.4375 7.38477 9.4375C7.1957 9.4375 7.04102 9.28281 7.04102 9.09375V4.625C7.04102 4.43594 7.1957 4.28125 7.38477 4.28125C7.57383 4.28125 7.72852 4.43594 7.72852 4.625Z",fill:"currentColor"})})},77213:function(e,t,i){i.d(t,{Z:function(){return h}});var n=i(24246),l=i(77181),r=i(88038),a=i.n(r),s=i(86677);i(27378);var o=i(25980),c=i(90867),d=i(77830),u=()=>{let e=(0,s.useRouter)();return(0,n.jsx)(l.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,n.jsxs)(l.xuv,{children:[(0,n.jsxs)(l.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,n.jsx)(l.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,n.jsx)(l.wpx,{onClick:()=>{e.push(d.fz)},children:"Configure"})]}),(0,n.jsxs)(l.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},h=e=>{let{children:t,title:i,padded:r=!0,mainProps:d}=e,h=(0,o.hz)(),x=(0,s.useRouter)(),p="/privacy-requests"===x.pathname||"/datastore-connection"===x.pathname,f=!(h.flags.privacyRequestsConfiguration&&p),{data:m}=(0,c.JE)(void 0,{skip:f}),{data:j}=(0,c.PW)(void 0,{skip:f}),v=h.flags.privacyRequestsConfiguration&&(!m||!j)&&p;return(0,n.jsxs)(l.kCb,{"data-testid":i,direction:"column",h:"100vh",children:[(0,n.jsxs)(a(),{children:[(0,n.jsxs)("title",{children:["Fides Admin UI - ",i]}),(0,n.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,n.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,n.jsxs)(l.kCb,{as:"main",direction:"column",py:r?6:0,px:r?10:0,h:r?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...d,children:[v?(0,n.jsx)(u,{}):null,t]})]})}},58754:function(e,t,i){var n=i(24246),l=i(77181),r=i(70788);t.Z=e=>{let{heading:t,breadcrumbItems:i,isSticky:a=!0,children:s,rightContent:o,style:c,...d}=e;return(0,n.jsxs)("div",{...d,style:a?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...c}:{paddingBottom:"24px",...c},children:[(0,n.jsxs)(l.jqI,{justify:"space-between",children:["string"==typeof t?(0,n.jsx)(l.X6q,{className:i||s?"pb-4":void 0,fontSize:"2xl","data-testid":"page-heading",children:t}):t,o&&(0,n.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!i&&(0,n.jsx)(r.m,{className:s?"pb-4":void 0,items:i,"data-testid":"page-breadcrumb"}),s]})}},70788:function(e,t,i){i.d(t,{m:function(){return c}});var n=i(24246),l=i(77181),r=i(79894),a=i.n(r),s=i(27378);let{Text:o}=l.AntTypography,c=e=>{let{items:t,...i}=e,r=(0,s.useMemo)(()=>null==t?void 0:t.map((e,i)=>{let r=i===t.length-1,s={...e},c=s.onClick&&!s.href;return("string"==typeof s.title&&(s.title=(0,n.jsx)(o,{style:{color:"inherit",maxWidth:r?void 0:400},ellipsis:!r,children:s.title})),c)?s.title=(0,n.jsx)(l.wpx,{type:"text",size:"small",icon:s.icon,onClick:s.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:s.title}):(s.icon&&(s.title=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"anticon align-text-bottom",children:s.icon}),s.title]})),s.href&&s.title&&(s.title=(0,n.jsx)(a(),{href:s.href,className:"ant-breadcrumb-link",children:s.title}),delete s.href)),s}),[t]);return(0,n.jsx)(l.zrq,{items:r,...i})}},69828:function(e,t,i){i.d(t,{Y:function(){return a}});var n=i(24246),l=i(77181),r=i(70788);let a=[(0,n.jsx)(l.PJP.S9g,{},"layers"),(0,n.jsx)(l.PJP.ehp,{},"dataset"),(0,n.jsx)(l.PJP.iA_,{},"table"),(0,n.jsx)(l.PJP.$4y,{style:{transform:"rotate(-90deg)"}},"field")];t.Z=e=>{let{resourceUrn:t,parentLink:i,onPathClick:l=()=>{}}=e,s=[];if(t||s.push({title:"All activity"}),t){s.push({title:"All activity",href:i});let e=t.split(".");e.forEach((t,i)=>{0!==i&&s.push({title:t,icon:a[i-1],onClick:t=>{t.preventDefault(),l(e.slice(0,i+1).join("."))}})})}return(0,n.jsx)(r.m,{"data-testid":"results-breadcrumb",items:s})}},63927:function(e,t,i){i.d(t,{e:function(){return m},Z:function(){return j}});var n=i(24246),l=i(77181),r=i(34090),a=i(27378),s=i(16125),o=i(40324),c=i(39864),d=i(56026),u=i(91613),h=i(624),x=i(90673),p=e=>{let{dataCategories:t,checked:i,onChecked:r,buttonLabel:s}=e,o=(0,a.useMemo)(()=>(0,x.Cd)(t),[t]);return(0,n.jsxs)(l.v2r,{closeOnSelect:!0,children:[(0,n.jsx)(l.j2t,{as:l.wpx,icon:(0,n.jsx)(l.mCO,{}),className:"!bg-transparent",block:!0,"data-testid":"data-category-dropdown",children:null!=s?s:"Select data categories"}),(0,n.jsx)(l.qyq,{children:(0,n.jsxs)(l.xuv,{maxHeight:"50vh",minWidth:"300px",maxW:"full",overflowY:"scroll",children:[(0,n.jsxs)(l.xuv,{position:"sticky",top:0,zIndex:1,backgroundColor:"white",pt:1,children:[(0,n.jsx)(l.__7,{children:(0,n.jsxs)(l.xuv,{display:"flex",justifyContent:"space-between",px:2,mb:2,children:[(0,n.jsx)(l.sNh,{as:l.wpx,size:"small",className:"mr-2 !w-auto",onClick:()=>r([]),closeOnSelect:!1,"data-testid":"data-category-clear-btn",children:"Clear"}),(0,n.jsx)(l.xvT,{mr:2,children:"Data Categories"}),(0,n.jsx)(l.sNh,{as:l.wpx,size:"small",className:"!w-auto","data-testid":"data-category-done-btn",children:"Done"})]})}),(0,n.jsx)(l.RaW,{})]}),(0,n.jsx)(l.xuv,{px:2,"data-testid":"data-category-checkbox-tree",children:(0,n.jsx)(h.ZP,{nodes:o,selected:i,onSelected:r})})]})})]})},f=e=>{let{dataCategories:t,checked:i,onChecked:r,tooltip:a}=e,s=e=>{r(i.filter(t=>t!==e))},o=i.slice().sort((e,t)=>e.localeCompare(t));return(0,n.jsxs)(l.rjZ,{templateColumns:"1fr 3fr",children:[(0,n.jsx)(l.lXp,{children:"Data Categories"}),(0,n.jsxs)(l.vyj,{direction:"vertical",size:"small",children:[(0,n.jsxs)(l.xuv,{display:"flex",alignItems:"center",children:[(0,n.jsx)(l.xuv,{mr:"2",width:"100%",children:(0,n.jsx)(p,{dataCategories:t,checked:i,onChecked:r})}),(0,n.jsx)(u.Z,{label:a})]}),(0,n.jsx)(l.vyj,{direction:"vertical",size:2,"data-testid":"selected-categories",children:o.map(e=>(0,n.jsx)(l.j8w,{closable:!0,onClose:()=>{s(e)},children:e},e))})]})]})};let m="edit-collection-or-field-form";var j=e=>{var t;let{values:i,onSubmit:u,dataType:h,showDataCategories:x=!0}=e,p={description:null!==(t=i.description)&&void 0!==t?t:"",data_categories:i.data_categories},j=(0,s.v9)(c.qb).filter(e=>e.active),[v,C]=(0,a.useState)(p.data_categories||[]),g="collection"===h?d.du.description.tooltip:d.QL.description.tooltip,y="collection"===h?d.du.data_categories.tooltip:d.QL.data_categories.tooltip;return(0,n.jsx)(r.J9,{initialValues:p,onSubmit:e=>{u({...e,data_categories:v})},children:(0,n.jsx)(r.l0,{id:m,children:(0,n.jsxs)(l.Kqy,{children:[(0,n.jsx)(o.j0,{name:"description",label:"Description",tooltip:g,"data-testid":"description-input"}),x&&(0,n.jsx)(f,{dataCategories:j,checked:v,onChecked:C,tooltip:y})]})})})}},56026:function(e,t,i){i.d(t,{QL:function(){return r},du:function(){return l},tz:function(){return n}});let n={name:{tooltip:"A UI-friendly label for the Dataset."},description:{tooltip:"A human-readable description of the Dataset."},data_categories:{tooltip:"Arrays of Data Category resources, identified by fides_key, that apply to all collections in the Dataset."}},l={description:{tooltip:"A human-readable description of the collection."},data_categories:{tooltip:"Arrays of Data Category resources, identified by fides_key, that apply to all fields in the collection."}},r={description:{tooltip:"A human-readable description of the field."},data_categories:{tooltip:"Arrays of Data Category resources, identified by fides_key, that apply to this field."}}},69435:function(e,t,i){i.d(t,{Fk:function(){return c},_n:function(){return s},jC:function(){return r},qe:function(){return o}});var n=i(99729),l=i.n(n);let r=(e,t,i)=>{let n=e.collections.map((e,n)=>n===i?t:e);return{...e,collections:n}},a=(e,t,i)=>{let n=e.fields.map((e,n)=>n===i?t:e);return{...e,fields:n}},s=(e,t,i,n)=>{let l=a(e.collections[i],t,n);return r(e,l,i)},o=(e,t)=>{let i=e.collections.filter((e,i)=>i!==t);return{...e,collections:i}},c=e=>{let{dataset:t,collectionName:i,subfields:n}=e,r="",a=t.collections.findIndex(e=>e.name===i);return r+="collections[".concat(a,"]"),n&&n.forEach(e=>{let i=l()(t,r).fields.findIndex(t=>t.name===e);r+=".fields[".concat(i,"]")}),r}},59001:function(e,t,i){i.d(t,{Ch:function(){return a},Hy:function(){return s},Lo:function(){return l}});var n,l,r=i(62656);let a="root";(n=l||(l={})).DATA_CATEGORIES="Data categories",n.DATA_USES="Data uses",n.DATA_SUBJECTS="Data subjects";let s=e=>{switch(e){case"Data categories":return{UPDATE:r.Sh.DATA_CATEGORY_UPDATE,CREATE:r.Sh.DATA_CATEGORY_CREATE,DELETE:r.Sh.DATA_CATEGORY_DELETE,READ:r.Sh.DATA_CATEGORY_READ};case"Data uses":return{UPDATE:r.Sh.DATA_USE_UPDATE,CREATE:r.Sh.DATA_USE_CREATE,DELETE:r.Sh.DATA_USE_DELETE,READ:r.Sh.DATA_USE_READ};case"Data subjects":return{UPDATE:r.Sh.DATA_SUBJECT_UPDATE,CREATE:r.Sh.DATA_SUBJECT_CREATE,DELETE:r.Sh.DATA_SUBJECT_DELETE,READ:r.Sh.DATA_SUBJECT_READ};default:throw Error("Unknown taxonomy type: ".concat(e))}}},90673:function(e,t,i){i.d(t,{Cd:function(){return r},Xl:function(){return a}});var n=i(62656),l=i(59001);let r=(e,t)=>{let i;if(null==t&&e.every(e=>void 0===e.parent_key))i=e;else{let n=null!=t?t:null;i=e.filter(e=>e.parent_key===n)}return i.map(t=>{var i,n;let l=t.fides_key;return{value:t.fides_key,label:""===t.name||null==t.name?t.fides_key:t.name,description:t.description,children:r(e,l),is_default:null!==(i=t.is_default)&&void 0!==i&&i,active:null!==(n=t.active)&&void 0!==n&&n}})},a=e=>{switch(e){case l.Lo.DATA_CATEGORIES:return n.P6.DATA_CATEGORY;case l.Lo.DATA_SUBJECTS:return n.P6.DATA_SUBJECT;case l.Lo.DATA_USES:return n.P6.DATA_USE;default:return}}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5826],{15826:function(e,t,l){l.d(t,{$:function(){return y}});var s=l(24246),n=l(92222),i=l(59003),o=l(25980),a=l(812),r=l(14481),d=l(46628),c=l(91922),g=l(86677),u=l(27378),h=l(16134),x=l(58452),m=l(77830),C=l(31435),j=l(32885);let p=e=>{let{onChange:t,displayText:l,isChecked:n,value:i}=e;return(0,s.jsx)(c.XZJ,{id:"checkbox-".concat(i),value:i,height:"20px",mb:3,isChecked:n,onChange:t,colorScheme:"complimentary",mr:5,children:(0,s.jsx)(c.xvT,{fontSize:"sm",lineHeight:5,height:"20px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",children:l})},i)},b={GVL:!1,AC:!1,COMPASS:!1};var w=e=>{let{isOpen:t,onClose:l,tableInstance:n}=e,[i,o]=(0,u.useState)(b);return(0,u.useMemo)(()=>{let e={id:"vendor_id",value:[]};i.GVL&&e.value.push("gvl"),i.AC&&e.value.push("gacp"),n.setColumnFilters([e])},[i,n]),(0,s.jsxs)(c.u_l,{isOpen:t,onClose:l,isCentered:!0,size:"2xl",children:[(0,s.jsx)(c.ZAr,{}),(0,s.jsxs)(c.hzk,{children:[(0,s.jsx)(c.xBx,{children:"Filters"}),(0,s.jsx)(c.olH,{}),(0,s.jsx)(c.izJ,{}),(0,s.jsxs)(c.fef,{maxH:"85vh",px:6,py:4,overflowX:"auto",children:[(0,s.jsx)(c.xvT,{fontSize:"md",fontWeight:"bold",mb:2,children:"Sources"}),(0,s.jsx)(p,{onChange:()=>{o(e=>({...e,GVL:!e.GVL}))},displayText:a.iC.gvl.fullName,isChecked:i.GVL,value:"gvl"}),(0,s.jsx)(p,{onChange:()=>{o(e=>({...e,AC:!e.AC}))},displayText:a.iC.gacp.fullName,isChecked:i.AC,value:"gacp"})]}),(0,s.jsx)(c.mzw,{children:(0,s.jsxs)(c.xuv,{display:"flex",justifyContent:"space-between",width:"100%",children:[(0,s.jsx)(c.wpx,{onClick:()=>{n.setColumnFilters([]),o(b)},className:"mr-3 grow",children:"Reset Filters"}),(0,s.jsx)(c.wpx,{"data-testid":"filter-done-btn",type:"primary",onClick:l,className:"grow",children:"Done"})]})})]})]})};let f=e=>{var t;let{value:l}=e,n=(0,a.cj)(l),i=null!==(t=a.iC[n])&&void 0!==t?t:{label:"",fullName:""};return(0,s.jsx)(c.kCb,{alignItems:"center",justifyContent:"center",height:"100%",mr:"2",children:(0,s.jsx)(c.esZ,{title:i.fullName,children:(0,s.jsx)(c.j8w,{children:i.label})})})},v=(0,n.Cl)(),S=()=>(0,s.jsxs)(c.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",children:[(0,s.jsxs)(c.gCW,{children:[(0,s.jsx)(c.xvT,{fontSize:"md",fontWeight:"600",children:"No results found."}),(0,s.jsx)(c.xvT,{fontSize:"sm",children:'Can\'t find the vendor you are looking for? Add custom systems or unlisted\n vendors by selecting the "Add custom vendor" button below.'})]}),(0,s.jsx)(C.Z,{buttonLabel:"Add custom vendor",buttonProps:{type:"primary"}})]}),y=e=>{let{redirectRoute:t}=e,l="Vendor",p=(0,c.pmc)(),{dictionaryService:b,tcf:y}=(0,o.hz)(),{isLoading:k}=(0,j.x8)(),R=(0,g.useRouter)(),{isLoading:L}=(0,j.iN)(void 0,{skip:!b}),[_,{isLoading:z,isSuccess:A}]=(0,j.Qk)(),I=(0,h.C)(j.gG),[N,F]=(0,u.useState)(),{isOpen:M,onOpen:P,onClose:T}=(0,c.qY0)(),{isOpen:G,onClose:V,onOpen:O}=(0,c.qY0)(),[W,Z]=(0,u.useState)(!1),H=I.every(e=>e.linked_system),D=(0,u.useMemo)(()=>[v.display({id:"select",header:e=>{let{table:t}=e;return(0,s.jsx)(r.k,{dataTestId:"select-page-checkbox",isChecked:t.getIsAllPageRowsSelected(),isDisabled:H||t.getPaginationRowModel().rows.filter(e=>e.original.linked_system).length===t.getState().pagination.pageSize,isIndeterminate:t.getPaginationRowModel().rows.filter(e=>e.getCanSelect()).some(e=>!e.getIsSelected()),onChange:()=>{t.setRowSelection(e=>{let l={...e};return t.getRowModel().rows.forEach(e=>{e.getCanSelect()&&(l[e.id]=!l[e.id])}),l}),Z(e=>!e)}})},cell:e=>{let{row:t}=e;return(0,s.jsx)(r.k,{isChecked:t.getIsSelected(),isDisabled:!t.getCanSelect(),isIndeterminate:t.getIsSomeSelected(),onChange:t.getToggleSelectedHandler()})}}),v.accessor(e=>e.name,{id:"name",cell:e=>(0,s.jsx)(r.G3,{value:e.getValue()}),header:e=>(0,s.jsx)(r.Rr,{value:l,...e})}),v.accessor(e=>e.vendor_id,{id:"vendor_id",cell:e=>(0,s.jsx)(f,{value:e.getValue()}),header:e=>(0,s.jsx)(r.Rr,{value:"Source",...e}),enableColumnFilter:y,filterFn:"arrIncludesSome"})],[H,l,y]),E=(0,i.b7)({columns:D,data:I,getCoreRowModel:(0,n.sC)(),getSortedRowModel:(0,n.tj)(),getFilteredRowModel:(0,n.vL)(),getPaginationRowModel:(0,n.G_)(),onGlobalFilterChange:F,enableRowSelection:e=>!e.original.linked_system,enableSorting:!0,enableGlobalFilter:!0,state:{globalFilter:N,columnVisibility:{vendor_id:y}},initialState:{pagination:{pageSize:r.W3[0]},columnSizing:{select:0,vendor_id:0}},enableColumnResizing:!0,columnResizeMode:"onChange"});(0,u.useEffect)(()=>{let e={};I.forEach((t,l)=>{t.linked_system&&(e[l]=!0)}),Object.keys(e).length&&E.setRowSelection(e)},[I,E]);let{totalRows:Y,onPreviousPageClick:$,isPreviousPageDisabled:X,onNextPageClick:q,isNextPageDisabled:B,setPageSize:J,startRange:Q,endRange:K}=(0,r.bX)(E),U=async()=>{let e=E.getSelectedRowModel().rows.filter(e=>!e.original.linked_system).map(e=>e.original.vendor_id);if(e.length>0){let s=await _(e);R.push(t),(0,a.D4)(s)?p((0,d.Vo)((0,a.e$)(s.error))):p((0,d.t5)("Successfully added ".concat(e.length," ").concat(l.toLocaleLowerCase()).concat(e.length>1?"s":"")))}},ee=E.getSelectedRowModel().rows.some(e=>!e.original.linked_system);if(!b&&!k)return R.push(m.gp),null;if(z||A)return(0,s.jsx)(c.kCb,{height:"100%",justifyContent:"center",alignItems:"center",children:(0,s.jsx)(c.$jN,{})});if(L)return(0,s.jsx)(r.I4,{rowHeight:36,numRows:15});let et=H?"All ".concat(l.toLocaleLowerCase()," have already been added"):"Select a ".concat(l.toLocaleLowerCase()," "),el=E.getSelectedRowModel().rows.filter(e=>!e.original.linked_system).length,es=E.getState().columnFilters.length>0?E.getState().columnFilters.filter(e=>"vendor_id"===e.id)[0].value.length:0;return(0,s.jsxs)(c.kCb,{flex:1,direction:"column",overflow:"auto","data-testid":"add-multiple-systems-tbl",children:[(0,s.jsx)(x.Z,{isOpen:G,isCentered:!0,onCancel:V,onClose:V,onConfirm:U,title:"Confirmation",message:"You are about to add ".concat(el.toLocaleString("en")," ").concat(l.toLocaleLowerCase()).concat(el>1?"s":"")}),(0,s.jsx)(w,{isOpen:M,onClose:T,tableInstance:E}),(0,s.jsxs)(r.Q$,{children:[(0,s.jsxs)(c.kCb,{alignItems:"center",grow:1,children:[(0,s.jsx)(c.xuv,{maxW:"420px",width:"100%",children:(0,s.jsx)(r.HO,{globalFilter:N,setGlobalFilter:F,placeholder:"Search"})}),el>0?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(c.xvT,{fontWeight:"700",fontSize:"sm",lineHeight:"2",ml:4,children:[el.toLocaleString("en")," selected"]}),(0,s.jsx)(c.esZ,{title:et,children:(0,s.jsx)(c.wpx,{onClick:O,"data-testid":"add-multiple-systems-btn",disabled:!ee,className:"ml-4",children:"Add"})})]}):null]}),(0,s.jsxs)(c.Ugi,{spacing:4,alignItems:"center",children:[(0,s.jsx)(C.Z,{buttonLabel:"Add custom vendor"}),y?(0,s.jsx)("span",{children:(0,s.jsxs)(c.wpx,{onClick:P,"data-testid":"filter-multiple-systems-btn",children:["Filter",es>0?(0,s.jsx)(c.j8w,{className:"mr-0",children:es}):null]})}):null]})]}),(0,s.jsx)(r.ZK,{tableInstance:E,rowActionBar:(0,s.jsx)(r.AA,{tableInstance:E,selectedRows:el,isOpen:W}),renderRowTooltipLabel:e=>{if(!e.getCanSelect())return"This vendor has already been added. You can view the properties of this vendor by going to View Systems."},emptyTableNotice:(0,s.jsx)(S,{})}),(0,s.jsx)(r.s8,{pageSizes:r.W3,totalRows:Y||0,onPreviousPageClick:$,isPreviousPageDisabled:X,onNextPageClick:q,isNextPageDisabled:B,setPageSize:J,startRange:Q,endRange:K})]})}}}]);
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5826],{15826:function(e,t,l){l.d(t,{$:function(){return y}});var s=l(24246),n=l(92222),i=l(59003),o=l(25980),a=l(812),r=l(14481),d=l(46628),c=l(77181),g=l(86677),u=l(27378),h=l(16134),x=l(58452),m=l(77830),C=l(31435),j=l(32885);let p=e=>{let{onChange:t,displayText:l,isChecked:n,value:i}=e;return(0,s.jsx)(c.XZJ,{id:"checkbox-".concat(i),value:i,height:"20px",mb:3,isChecked:n,onChange:t,colorScheme:"complimentary",mr:5,children:(0,s.jsx)(c.xvT,{fontSize:"sm",lineHeight:5,height:"20px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",children:l})},i)},b={GVL:!1,AC:!1,COMPASS:!1};var w=e=>{let{isOpen:t,onClose:l,tableInstance:n}=e,[i,o]=(0,u.useState)(b);return(0,u.useMemo)(()=>{let e={id:"vendor_id",value:[]};i.GVL&&e.value.push("gvl"),i.AC&&e.value.push("gacp"),n.setColumnFilters([e])},[i,n]),(0,s.jsxs)(c.u_l,{isOpen:t,onClose:l,isCentered:!0,size:"2xl",children:[(0,s.jsx)(c.ZAr,{}),(0,s.jsxs)(c.hzk,{children:[(0,s.jsx)(c.xBx,{children:"Filters"}),(0,s.jsx)(c.olH,{}),(0,s.jsx)(c.izJ,{}),(0,s.jsxs)(c.fef,{maxH:"85vh",px:6,py:4,overflowX:"auto",children:[(0,s.jsx)(c.xvT,{fontSize:"md",fontWeight:"bold",mb:2,children:"Sources"}),(0,s.jsx)(p,{onChange:()=>{o(e=>({...e,GVL:!e.GVL}))},displayText:a.iC.gvl.fullName,isChecked:i.GVL,value:"gvl"}),(0,s.jsx)(p,{onChange:()=>{o(e=>({...e,AC:!e.AC}))},displayText:a.iC.gacp.fullName,isChecked:i.AC,value:"gacp"})]}),(0,s.jsx)(c.mzw,{children:(0,s.jsxs)(c.xuv,{display:"flex",justifyContent:"space-between",width:"100%",children:[(0,s.jsx)(c.wpx,{onClick:()=>{n.setColumnFilters([]),o(b)},className:"mr-3 grow",children:"Reset Filters"}),(0,s.jsx)(c.wpx,{"data-testid":"filter-done-btn",type:"primary",onClick:l,className:"grow",children:"Done"})]})})]})]})};let f=e=>{var t;let{value:l}=e,n=(0,a.cj)(l),i=null!==(t=a.iC[n])&&void 0!==t?t:{label:"",fullName:""};return(0,s.jsx)(c.kCb,{alignItems:"center",justifyContent:"center",height:"100%",mr:"2",children:(0,s.jsx)(c.esZ,{title:i.fullName,children:(0,s.jsx)(c.j8w,{children:i.label})})})},v=(0,n.Cl)(),S=()=>(0,s.jsxs)(c.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",children:[(0,s.jsxs)(c.gCW,{children:[(0,s.jsx)(c.xvT,{fontSize:"md",fontWeight:"600",children:"No results found."}),(0,s.jsx)(c.xvT,{fontSize:"sm",children:'Can\'t find the vendor you are looking for? Add custom systems or unlisted\n vendors by selecting the "Add custom vendor" button below.'})]}),(0,s.jsx)(C.Z,{buttonLabel:"Add custom vendor",buttonProps:{type:"primary"}})]}),y=e=>{let{redirectRoute:t}=e,l="Vendor",p=(0,c.pmc)(),{dictionaryService:b,tcf:y}=(0,o.hz)(),{isLoading:k}=(0,j.x8)(),R=(0,g.useRouter)(),{isLoading:L}=(0,j.iN)(void 0,{skip:!b}),[_,{isLoading:z,isSuccess:A}]=(0,j.Qk)(),I=(0,h.C)(j.gG),[N,F]=(0,u.useState)(),{isOpen:M,onOpen:P,onClose:T}=(0,c.qY0)(),{isOpen:G,onClose:V,onOpen:O}=(0,c.qY0)(),[W,Z]=(0,u.useState)(!1),H=I.every(e=>e.linked_system),D=(0,u.useMemo)(()=>[v.display({id:"select",header:e=>{let{table:t}=e;return(0,s.jsx)(r.k,{dataTestId:"select-page-checkbox",isChecked:t.getIsAllPageRowsSelected(),isDisabled:H||t.getPaginationRowModel().rows.filter(e=>e.original.linked_system).length===t.getState().pagination.pageSize,isIndeterminate:t.getPaginationRowModel().rows.filter(e=>e.getCanSelect()).some(e=>!e.getIsSelected()),onChange:()=>{t.setRowSelection(e=>{let l={...e};return t.getRowModel().rows.forEach(e=>{e.getCanSelect()&&(l[e.id]=!l[e.id])}),l}),Z(e=>!e)}})},cell:e=>{let{row:t}=e;return(0,s.jsx)(r.k,{isChecked:t.getIsSelected(),isDisabled:!t.getCanSelect(),isIndeterminate:t.getIsSomeSelected(),onChange:t.getToggleSelectedHandler()})}}),v.accessor(e=>e.name,{id:"name",cell:e=>(0,s.jsx)(r.G3,{value:e.getValue()}),header:e=>(0,s.jsx)(r.Rr,{value:l,...e})}),v.accessor(e=>e.vendor_id,{id:"vendor_id",cell:e=>(0,s.jsx)(f,{value:e.getValue()}),header:e=>(0,s.jsx)(r.Rr,{value:"Source",...e}),enableColumnFilter:y,filterFn:"arrIncludesSome"})],[H,l,y]),E=(0,i.b7)({columns:D,data:I,getCoreRowModel:(0,n.sC)(),getSortedRowModel:(0,n.tj)(),getFilteredRowModel:(0,n.vL)(),getPaginationRowModel:(0,n.G_)(),onGlobalFilterChange:F,enableRowSelection:e=>!e.original.linked_system,enableSorting:!0,enableGlobalFilter:!0,state:{globalFilter:N,columnVisibility:{vendor_id:y}},initialState:{pagination:{pageSize:r.W3[0]},columnSizing:{select:0,vendor_id:0}},enableColumnResizing:!0,columnResizeMode:"onChange"});(0,u.useEffect)(()=>{let e={};I.forEach((t,l)=>{t.linked_system&&(e[l]=!0)}),Object.keys(e).length&&E.setRowSelection(e)},[I,E]);let{totalRows:Y,onPreviousPageClick:$,isPreviousPageDisabled:X,onNextPageClick:q,isNextPageDisabled:B,setPageSize:J,startRange:Q,endRange:K}=(0,r.bX)(E),U=async()=>{let e=E.getSelectedRowModel().rows.filter(e=>!e.original.linked_system).map(e=>e.original.vendor_id);if(e.length>0){let s=await _(e);R.push(t),(0,a.D4)(s)?p((0,d.Vo)((0,a.e$)(s.error))):p((0,d.t5)("Successfully added ".concat(e.length," ").concat(l.toLocaleLowerCase()).concat(e.length>1?"s":"")))}},ee=E.getSelectedRowModel().rows.some(e=>!e.original.linked_system);if(!b&&!k)return R.push(m.gp),null;if(z||A)return(0,s.jsx)(c.kCb,{height:"100%",justifyContent:"center",alignItems:"center",children:(0,s.jsx)(c.$jN,{})});if(L)return(0,s.jsx)(r.I4,{rowHeight:36,numRows:15});let et=H?"All ".concat(l.toLocaleLowerCase()," have already been added"):"Select a ".concat(l.toLocaleLowerCase()," "),el=E.getSelectedRowModel().rows.filter(e=>!e.original.linked_system).length,es=E.getState().columnFilters.length>0?E.getState().columnFilters.filter(e=>"vendor_id"===e.id)[0].value.length:0;return(0,s.jsxs)(c.kCb,{flex:1,direction:"column",overflow:"auto","data-testid":"add-multiple-systems-tbl",children:[(0,s.jsx)(x.Z,{isOpen:G,isCentered:!0,onCancel:V,onClose:V,onConfirm:U,title:"Confirmation",message:"You are about to add ".concat(el.toLocaleString("en")," ").concat(l.toLocaleLowerCase()).concat(el>1?"s":"")}),(0,s.jsx)(w,{isOpen:M,onClose:T,tableInstance:E}),(0,s.jsxs)(r.Q$,{children:[(0,s.jsxs)(c.kCb,{alignItems:"center",grow:1,children:[(0,s.jsx)(c.xuv,{maxW:"420px",width:"100%",children:(0,s.jsx)(r.HO,{globalFilter:N,setGlobalFilter:F,placeholder:"Search"})}),el>0?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(c.xvT,{fontWeight:"700",fontSize:"sm",lineHeight:"2",ml:4,children:[el.toLocaleString("en")," selected"]}),(0,s.jsx)(c.esZ,{title:et,children:(0,s.jsx)(c.wpx,{onClick:O,"data-testid":"add-multiple-systems-btn",disabled:!ee,className:"ml-4",children:"Add"})})]}):null]}),(0,s.jsxs)(c.Ugi,{spacing:4,alignItems:"center",children:[(0,s.jsx)(C.Z,{buttonLabel:"Add custom vendor"}),y?(0,s.jsx)("span",{children:(0,s.jsxs)(c.wpx,{onClick:P,"data-testid":"filter-multiple-systems-btn",children:["Filter",es>0?(0,s.jsx)(c.j8w,{className:"mr-0",children:es}):null]})}):null]})]}),(0,s.jsx)(r.ZK,{tableInstance:E,rowActionBar:(0,s.jsx)(r.AA,{tableInstance:E,selectedRows:el,isOpen:W}),renderRowTooltipLabel:e=>{if(!e.getCanSelect())return"This vendor has already been added. You can view the properties of this vendor by going to View Systems."},emptyTableNotice:(0,s.jsx)(S,{})}),(0,s.jsx)(r.s8,{pageSizes:r.W3,totalRows:Y||0,onPreviousPageClick:$,isPreviousPageDisabled:X,onNextPageClick:q,isNextPageDisabled:B,setPageSize:J,startRange:Q,endRange:K})]})}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5973],{7617:function(e,s,t){t.d(s,{q:function(){return a}});var i=t(24246),n=t(77181);let a=e=>{let{label:s,isDisabled:t,...a}=e;return(0,i.jsx)(n.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",...r}=e;return(0,i.jsxs)(n.mQc,{colorScheme:"complimentary",...r,children:[(0,i.jsx)(n.tdY,{width:"partial"===t?"max-content":void 0,children:s.map(e=>(0,i.jsx)(a,{label:e.label,isDisabled:e.isDisabled,fontSize:r.fontSize},e.label))}),(0,i.jsx)(n.nPR,{children:s.map(e=>(0,i.jsx)(n.x45,{px:0,"data-testid":"tab-panel-".concat(e.label),children:e.content},e.label))})]})}},18225:function(e,s,t){var i=t(24246),n=t(77181);s.Z=e=>{let{...s}=e;return(0,i.jsx)(n.kCb,{boxSize:"full",align:"center",justify:"center",children:(0,i.jsx)(n.$jN,{color:"primary",...s})})}},77213:function(e,s,t){t.d(s,{Z:function(){return u}});var i=t(24246),n=t(77181),a=t(88038),r=t.n(a),o=t(86677);t(27378);var c=t(25980),d=t(90867),l=t(77830),h=()=>{let e=(0,o.useRouter)();return(0,i.jsx)(n.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,i.jsxs)(n.xuv,{children:[(0,i.jsxs)(n.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,i.jsx)(n.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,i.jsx)(n.wpx,{onClick:()=>{e.push(l.fz)},children:"Configure"})]}),(0,i.jsxs)(n.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},u=e=>{let{children:s,title:t,padded:a=!0,mainProps:l}=e,u=(0,c.hz)(),x=(0,o.useRouter)(),m="/privacy-requests"===x.pathname||"/datastore-connection"===x.pathname,j=!(u.flags.privacyRequestsConfiguration&&m),{data:p}=(0,d.JE)(void 0,{skip:j}),{data:g}=(0,d.PW)(void 0,{skip:j}),y=u.flags.privacyRequestsConfiguration&&(!p||!g)&&m;return(0,i.jsxs)(n.kCb,{"data-testid":t,direction:"column",h:"100vh",children:[(0,i.jsxs)(r(),{children:[(0,i.jsxs)("title",{children:["Fides Admin UI - ",t]}),(0,i.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,i.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,i.jsxs)(n.kCb,{as:"main",direction:"column",py:a?6:0,px:a?10:0,h:a?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...l,children:[y?(0,i.jsx)(h,{}):null,s]})]})}},58754:function(e,s,t){var i=t(24246),n=t(77181),a=t(70788);s.Z=e=>{let{heading:s,breadcrumbItems:t,isSticky:r=!0,children:o,rightContent:c,style:d,...l}=e;return(0,i.jsxs)("div",{...l,style:r?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...d}:{paddingBottom:"24px",...d},children:[(0,i.jsxs)(n.jqI,{justify:"space-between",children:["string"==typeof s?(0,i.jsx)(n.X6q,{className:t||o?"pb-4":void 0,fontSize:"2xl","data-testid":"page-heading",children:s}):s,c&&(0,i.jsx)("div",{"data-testid":"page-header-right-content",children:c})]}),!!t&&(0,i.jsx)(a.m,{className:o?"pb-4":void 0,items:t,"data-testid":"page-breadcrumb"}),o]})}},79789:function(e,s,t){t.d(s,{Hn:function(){return o},XU:function(){return r},Z5:function(){return c},aG:function(){return h},cB:function(){return a},hX:function(){return l},vQ:function(){return d}});var i=t(24246),n=t(77181);let a=e=>{let{text:s,...t}=e;return(0,i.jsx)(n.X6q,{fontSize:"sm",mt:4,mb:1,...t,children:s})},r=e=>{let{children:s}=e;return(0,i.jsx)(n.xvT,{fontSize:"14px",mb:4,children:s})},o=e=>{let{children:s,href:t}=e;return(0,i.jsx)(n.rUS,{href:t,textDecoration:"underline",isExternal:!0,children:s})},c=e=>{let{children:s}=e;return(0,i.jsx)(n.QI$,{fontSize:"14px",mb:4,children:s})},d=e=>{let{children:s}=e;return(0,i.jsx)(n.GSI,{fontSize:"14px",mb:4,ml:6,children:s})},l=e=>{let{children:s}=e;return(0,i.jsx)(n.EKh,{display:"block",whiteSpace:"pre",p:4,mb:4,overflowX:"scroll",children:s})},h=e=>{let{data:s}=e;return(0,i.jsxs)(n.iA_,{fontSize:"14px",children:[(0,i.jsx)(n.hrZ,{children:(0,i.jsxs)(n.Tr,{children:[(0,i.jsx)(n.Th,{children:"Permission"}),(0,i.jsx)(n.Th,{children:"Description"})]})}),(0,i.jsx)(n.p3B,{children:s.map(e=>(0,i.jsxs)(n.Tr,{children:[(0,i.jsx)(n.Td,{children:(0,i.jsx)(n.Vp9,{children:e.permission})}),(0,i.jsx)(n.Td,{children:e.description})]},e.permission))})]})}},97181:function(e,s,t){t.d(s,{d:function(){return d}});var i=t(24246),n=t(77181),a=t(34090),r=t(27378),o=t(91613),c=t(40324);let d=e=>{let{name:s,label:t,labelProps:d,tooltip:l,isRequired:h,layout:u="inline",...x}=e,[m,j,{setValue:p}]=(0,a.U$)(s),g=!!(j.touched&&j.error),[y,v]=(0,r.useState)("");m.value||"tags"!==x.mode&&"multiple"!==x.mode||(m.value=[]),"tags"===x.mode&&"string"==typeof m.value&&(m.value=[m.value]);let f="tags"===x.mode?(e,s)=>e?e.value!==y||m.value.includes(y)?x.optionRender?x.optionRender(e,s):e.label:'Create "'.concat(y,'"'):void 0:x.optionRender||void 0,C=e=>{v(e),x.onSearch&&x.onSearch(e)},S=(e,s)=>{p(e),x.onChange&&x.onChange(e,s)};return"inline"===u?(0,i.jsx)(n.NIc,{isInvalid:g,isRequired:h,children:(0,i.jsxs)(n.rjZ,{templateColumns:t?"1fr 3fr":"1fr",children:[t?(0,i.jsx)(c.__,{htmlFor:x.id||s,...d,children:t}):null,(0,i.jsxs)(n.jqI,{align:"center",children:[(0,i.jsxs)(n.jqI,{vertical:!0,flex:1,className:"mr-2",children:[(0,i.jsx)(n.WPr,{...m,id:x.id||s,"data-testid":"controlled-select-".concat(m.name),...x,optionRender:f,onSearch:"tags"===x.mode?C:void 0,onChange:S,value:m.value||void 0,status:g?"error":void 0}),(0,i.jsx)(c.Bc,{isInvalid:g,message:j.error,fieldName:m.name})]}),l?(0,i.jsx)(o.Z,{label:l}):null]})]})}):(0,i.jsx)(n.NIc,{isInvalid:g,isRequired:h,children:(0,i.jsxs)(n.gCW,{alignItems:"start",children:[(0,i.jsxs)(n.jqI,{align:"center",children:[t?(0,i.jsx)(c.__,{htmlFor:x.id||s,fontSize:"xs",my:0,mr:1,...d,children:t}):null,l?(0,i.jsx)(o.Z,{label:l}):null]}),(0,i.jsx)(n.WPr,{...m,id:x.id||s,"data-testid":"controlled-select-".concat(m.name),...x,optionRender:f,onSearch:"tags"===x.mode?C:void 0,onChange:S,value:m.value||void 0,status:g?"error":void 0}),(0,i.jsx)(c.Bc,{isInvalid:g,message:j.error,fieldName:m.name})]})})}},14047:function(e,s,t){t.d(s,{H:function(){return a},V:function(){return i.V}});var i=t(84306),n=t(812);let a=()=>{let{errorAlert:e}=(0,i.V)();return{handleError:s=>{let t="An unexpected error occurred. Please try again.";(0,n.Ot)(s)?t=s.data.detail:(0,n.tB)(s)&&(t=s.data.detail[0].msg),e(t)}}}},84306:function(e,s,t){t.d(s,{V:function(){return a}});var i=t(24246),n=t(77181);let a=()=>{let e=(0,n.pmc)();return{errorAlert:(s,t,a)=>{let r={...a,position:(null==a?void 0:a.position)||"top",render:e=>{let{onClose:a}=e;return(0,i.jsxs)(n.bZj,{alignItems:"normal",status:"error","data-testid":"error-alert",children:[(0,i.jsx)(n.zMQ,{}),(0,i.jsxs)(n.xuv,{children:[t&&(0,i.jsx)(n.CdC,{children:t}),(0,i.jsx)(n.XaZ,{children:s})]}),(0,i.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,r):e(r)},successAlert:(s,t,a)=>{let r={...a,position:(null==a?void 0:a.position)||"top",render:e=>{let{onClose:a}=e;return(0,i.jsxs)(n.bZj,{alignItems:"normal",status:"success",variant:"subtle","data-testid":"success-alert",children:[(0,i.jsx)(n.zMQ,{}),(0,i.jsxs)(n.xuv,{children:[t&&(0,i.jsx)(n.CdC,{children:t}),(0,i.jsx)(n.XaZ,{children:s})]}),(0,i.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,r):e(r)}}}},8133:function(e,s,t){var i=t(24246),n=t(77181);s.Z=e=>{let{title:s,children:t,isOpen:a,onClose:r,...o}=e;return(0,i.jsxs)(n.u_l,{isOpen:a,onClose:r,isCentered:!0,scrollBehavior:"inside",size:"xl",id:"add-modal",...o,children:[(0,i.jsx)(n.ZAr,{}),(0,i.jsxs)(n.hzk,{textAlign:"left",p:0,"data-testid":"add-modal-content",children:[(0,i.jsx)(n.xBx,{p:0,children:(0,i.jsx)(n.xuv,{backgroundColor:"gray.50",px:6,py:4,border:"1px",borderColor:"gray.200",borderTopRadius:6,display:"flex",justifyContent:"space-between",alignItems:"center",children:(0,i.jsx)(n.X6q,{as:"h3",size:"sm",children:s})})}),(0,i.jsx)(n.fef,{pb:4,overflow:"auto",children:t})]})]})}},70788:function(e,s,t){t.d(s,{m:function(){return d}});var i=t(24246),n=t(77181),a=t(79894),r=t.n(a),o=t(27378);let{Text:c}=n.AntTypography,d=e=>{let{items:s,...t}=e,a=(0,o.useMemo)(()=>null==s?void 0:s.map((e,t)=>{let a=t===s.length-1,o={...e},d=o.onClick&&!o.href;return("string"==typeof o.title&&(o.title=(0,i.jsx)(c,{style:{color:"inherit",maxWidth:a?void 0:400},ellipsis:!a,children:o.title})),d)?o.title=(0,i.jsx)(n.wpx,{type:"text",size:"small",icon:o.icon,onClick:o.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:o.title}):(o.icon&&(o.title=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"anticon align-text-bottom",children:o.icon}),o.title]})),o.href&&o.title&&(o.title=(0,i.jsx)(r(),{href:o.href,className:"ant-breadcrumb-link",children:o.title}),delete o.href)),o}),[s]);return(0,i.jsx)(n.zrq,{items:a,...t})}},41337:function(e,s,t){var i=t(24246),n=t(77181);t(27378);var a=t(62656),r=t(16394),o=t(14746);let c=o.Ny+o.iW.get(a.Rj.WEBSITE),d=e=>void 0!==e.connection_type,l=e=>void 0!==e.encoded_icon,h=e=>(null==e?void 0:e.connection_type)===a.Rj.WEBSITE;s.Z=e=>{let{data:s,...t}=e;return(0,i.jsx)(n.Eep,{boxSize:"32px",objectFit:"cover",src:(()=>{let e;if(l(s)&&s.encoded_icon)return"data:image/svg+xml;base64,".concat(s.encoded_icon);if(h(s)){var t;let e=null===(t=s.secrets)||void 0===t?void 0:t.url;if(!e)return c;let i=(0,r.ge)(e);return(0,r.tl)(i,100)}if(d(s))e=[...o.iW].find(e=>{var t,i;let[n]=e;return s.connection_type.toString()!==a.Rj.SAAS&&s.connection_type.toString()===n||s.connection_type.toString()===a.Rj.SAAS&&(null===(i=s.saas_config)||void 0===i?void 0:null===(t=i.type)||void 0===t?void 0:t.toString())===n.toString()});else if(l(s)){let{identifier:t}=s;e=[...o.iW].find(e=>{let[s]=e;return s.toLowerCase()===t.toLowerCase()})}return e?o.Ny+e[1]:o.VD})(),fallbackSrc:h(s)?c:o.VD,alt:(()=>{if(d(s)){var e;return null!==(e=s.name)&&void 0!==e?e:s.key}return l(s)?s.human_readable:s})(),...t})}},15872:function(e,s,t){var i=t(24246),n=t(77181),a=t(86677);t(27378);var r=t(77830),o=t(14207);s.Z=e=>{let{connection_key:s,showMenu:t}=e,{isOpen:c,onOpen:d,onClose:l}=(0,n.qY0)(),[h,u]=(0,o.R5)(),x=(0,a.useRouter)(),m=()=>{u.isLoading||l()};return(0,i.jsxs)(i.Fragment,{children:[t&&(0,i.jsx)(n.sNh,{_focus:{color:"complimentary.500",bg:"gray.100"},onClick:d,children:(0,i.jsx)(n.xvT,{fontSize:"sm",children:"Delete"})}),!t&&(0,i.jsx)(n.wpx,{onClick:d,children:"Delete integration"}),(0,i.jsxs)(n.u_l,{isCentered:!0,isOpen:c,onClose:m,children:[(0,i.jsx)(n.ZAr,{}),(0,i.jsxs)(n.hzk,{children:[(0,i.jsx)(n.xBx,{children:"Delete integration"}),(0,i.jsx)(n.olH,{}),(0,i.jsx)(n.fef,{pb:6,children:(0,i.jsx)(n.Kqy,{direction:"column",spacing:"15px",children:(0,i.jsx)(n.xvT,{color:"gray.600",fontSize:"sm",fontWeight:"sm",lineHeight:"20px",children:"Deleting an integration may impact any privacy request that is currently in progress. Do you wish to proceed?"})})}),(0,i.jsxs)(n.mzw,{className:"flex gap-4",children:[(0,i.jsx)(n.wpx,{onClick:m,className:"w-1/2",children:"Cancel"}),(0,i.jsx)(n.wpx,{onClick:()=>{s&&(h(s),t||x.push(r.KH))},loading:u.isLoading,type:"primary",className:"w-1/2",children:"Delete integration"})]})]})]})]})}},19812:function(e,s,t){t.d(s,{t:function(){return o}});var i=t(14047),n=t(14207),a=t(27378),r=t(41966);let o=e=>{var s,t,o;let{connectionConfig:c}=e,[d]=(0,n.S6)(),{data:l}=(0,n.Eg)(null!==(t=null==c?void 0:c.key)&&void 0!==t?t:""),h=null!==(o=null==l?void 0:null===(s=l.items)||void 0===s?void 0:s.map(e=>e.fides_key))&&void 0!==o?o:[],u=h.map(e=>({label:e,value:e})),{data:x}=(0,r.LH)({onlyUnlinkedDatasets:!0}),m=(0,a.useMemo)(()=>{var e;return null!==(e=null==x?void 0:x.map(e=>({value:e.fides_key,label:"".concat(e.name," (").concat(e.fides_key,")")||0})))&&void 0!==e?e:[]},[x]),{errorAlert:j,successAlert:p}=(0,i.V)();return{dropdownOptions:[...u,...m],initialDatasets:h,patchConnectionDatasetConfig:async function(e,s){var t,i,n;let{showSuccessAlert:a=!0}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=null!==(n=null===(t=e.dataset)||void 0===t?void 0:t.map(e=>({fides_key:e,ctl_dataset_fides_key:e})))&&void 0!==n?n:[],o=await d({connection_key:s,dataset_pairs:r}).unwrap();(null===(i=o.failed)||void 0===i?void 0:i.length)>0?j(o.failed[0].message):a&&p("Dataset successfully updated!")}}}},33335:function(e,s,t){t.d(s,{E:function(){return i}});let i=e=>e.toLowerCase().replace(/[ .]/g,"_").replace(/[^a-zA-Z0-9_<>-]/g,"")},45216:function(e,s,t){var i=t(77181),n=t(812),a=t(16394),r=t(14207);s.Z=e=>{let[s,{data:t,fulfilledTimeStamp:o,isLoading:c,isFetching:d}]=(0,r.h2)(),l=(0,i.pmc)();return{testConnection:async()=>{var t,i;if(!e)return;let a=await s(e.key);a.isError?l({status:"error",description:(0,n.e$)(a.error,"Unable to test connection. Please try again.")}):(null===(t=a.data)||void 0===t?void 0:t.test_status)==="succeeded"?l({status:"success",description:"Connected successfully"}):(null===(i=a.data)||void 0===i?void 0:i.test_status)==="failed"&&l({status:"warning",description:"Connection test failed"})},isLoading:c||d,testData:{timestamp:o?(0,a.p6)(o):null==e?void 0:e.last_test_timestamp,succeeded:t?"succeeded"===t.test_status:!!(null==e?void 0:e.last_test_succeeded)}}}},41553:function(e,s,t){var i=t(24246),n=t(77181),a=t(16394);s.Z=e=>{let{testData:s}=e;if(!s.timestamp)return(0,i.jsx)(n.xvT,{"data-testid":"connection-status",children:"Connection not tested"});let t=(0,a.p6)(s.timestamp);return s.succeeded?(0,i.jsxs)(n.kCb,{color:"success-text.900",align:"center","data-testid":"connection-status",children:[(0,i.jsx)(n.rE2,{mr:2,boxSize:4}),(0,i.jsxs)(n.xvT,{children:["Last connected ",t]})]}):(0,i.jsxs)(n.kCb,{color:"error-text.900",align:"center","data-testid":"connection-status",children:[(0,i.jsx)(n.iid,{mr:2,boxSize:4}),(0,i.jsxs)(n.xvT,{children:["Last connection failed ",t]})]})}},75595:function(e,s,t){var i=t(24246),n=t(77181),a=t(41337),r=t(15872),o=t(45216),c=t(15704),d=t(41553);s.Z=e=>{let{integration:s,showTestNotice:t,otherButtons:l,showDeleteButton:h,configureButtonLabel:u="Configure",onConfigureClick:x}=e,{testConnection:m,isLoading:j,testData:p}=(0,o.Z)(s),g=(0,c.ZP)(null==s?void 0:s.connection_type);return(0,i.jsxs)(n.xuv,{maxW:"760px",borderWidth:1,borderRadius:"lg",overflow:"hidden",padding:"12px",marginBottom:"24px","data-testid":"integration-info-".concat(null==s?void 0:s.key),children:[(0,i.jsxs)(n.kCb,{children:[(0,i.jsx)(a.Z,{data:null!=s?s:"",boxSize:"50px"}),(0,i.jsxs)(n.kCb,{direction:"column",flexGrow:1,marginLeft:"16px",children:[(0,i.jsx)(n.xvT,{color:"gray.700",fontWeight:"semibold",children:(null==s?void 0:s.name)||"(No name)"}),t?(0,i.jsx)(d.Z,{testData:p}):(0,i.jsx)(n.xvT,{color:"gray.700",fontSize:"sm",fontWeight:"semibold",mt:1,children:g.category})]}),(0,i.jsxs)("div",{className:"flex gap-4",children:[h&&s&&(0,i.jsx)(r.Z,{showMenu:!1,connection_key:s.key}),t&&(0,i.jsx)(n.wpx,{onClick:m,loading:j,"data-testid":"test-connection-btn",children:"Test connection"}),l,x&&(0,i.jsx)(n.wpx,{onClick:x,"data-testid":"configure-btn",children:u})]})]}),(0,i.jsx)(n.Eq9,{marginTop:"16px",children:g.tags.map(e=>(0,i.jsx)(n.j8w,{children:e},e))})]})}},15987:function(e,s,t){var i=t(24246),n=t(77181),a=t(34090),r=t(90104),o=t.n(r),c=t(92465),d=t.n(c),l=t(25389),h=t.n(l),u=t(15539),x=t.n(u),m=t(55484),j=t(18225),p=t(97181),g=t(40324),y=t(812),v=t(20682),f=t(41966),C=t(94725),S=t(19812),A=t(33335),b=t(1315),D=t(62656),R=t(31883);s.Z=e=>{var s,t;let{connection:r,connectionOption:c,onCancel:l}=e,[u,{isLoading:w}]=(0,C.Pp)(),[E,{isLoading:_}]=(0,C.pH)(),[T,{isLoading:H}]=(0,b.qd)(),{data:B,isLoading:F}=(0,v.n3)(c.identifier),{data:k}=(0,b.K3)(),L=null==k?void 0:k.map(e=>{var s;return{label:null!==(s=e.name)&&void 0!==s?s:e.fides_key,value:e.fides_key}}),{data:I}=(0,f.LH)({minimal:!0,connection_type:D.Rj.BIGQUERY}),O=null==I?void 0:I.map(e=>{var s;return{label:null!==(s=e.name)&&void 0!==s?s:e.fides_key,value:e.fides_key}}),{patchConnectionDatasetConfig:U,initialDatasets:M}=(0,S.t)({connectionConfig:r}),q=w||_||H,P={name:null!==(s=null==r?void 0:r.name)&&void 0!==s?s:"",description:null!==(t=null==r?void 0:r.description)&&void 0!==t?t:"",secrets:h()(null==B?void 0:B.properties,(e,s)=>{var t,i;return null!==(i=null==r?void 0:null===(t=r.secrets)||void 0===t?void 0:t[s])&&void 0!==i?i:""}),dataset:M},N=(0,n.pmc)(),G=!!r,Q=e=>x()(h()(e,(e,s)=>{var t,i;return(null!==(i=null==r?void 0:null===(t=r.secrets)||void 0===t?void 0:t[s])&&void 0!==i?i:"")===e?void 0:e}),d()),Z=async e=>{var s;let t;let i=Q(e.secrets),n=G?{...r,disabled:null!==(s=r.disabled)&&void 0!==s&&s,name:e.name,description:e.description,secrets:void 0}:{name:e.name,key:(0,A.E)(e.name),connection_type:c.identifier,access:D.uv.READ,disabled:!1,description:e.description,secrets:e.secrets,dataset:e.dataset};if(t=e.system_fides_key?await T({systemFidesKey:e.system_fides_key,connectionConfigs:[n]}):await E(n),(0,R.D4)(t)){N({status:"error",description:(0,y.e$)(t.error,"A problem occurred while ".concat(G?"updating":"creating"," this integration. Please try again."))});return}if(!e.secrets){N({status:"success",description:"Integration ".concat(G?"updated":"created"," successfully")});return}if(!o()(i)){let e=await u({connection_key:n.key,secrets:i});if((0,R.D4)(e)){N({status:"error",description:(0,y.e$)(e.error,"An error occurred while ".concat(G?"updating":"creating"," this integration's secret. Please try again."))});return}}N({status:"success",description:"Integration secret ".concat(G?"updated":"created"," successfully")}),l(),n&&e.dataset&&c.identifier===D.Rj.DATAHUB&&await U(e,n.key,{showSuccessAlert:!1})};if(F)return(0,i.jsx)(j.Z,{});let z=e=>Object.entries(e.properties).map(s=>{let[t,n]=s,a="secrets.".concat(t);return(0,i.jsx)(g.j0,{name:a,id:a,type:n.sensitive?"password":void 0,label:n.title,isRequired:e.required.includes(t),tooltip:n.description,variant:"stacked"},a)});return(0,i.jsx)(a.J9,{initialValues:P,enableReinitialize:!0,onSubmit:Z,validationSchema:(e=>{let s=Object.entries(e.properties).map(s=>{let[t,i]=s;return[t,e.required.includes(t)?m.Z_().required().label(i.title):m.Z_().nullable().label(i.title)]});return m.Ry().shape({name:m.Z_().required().label("Name"),description:m.Z_().nullable().label("Description"),secrets:m.Ry().shape(Object.fromEntries(s))})})(B),children:e=>{let{dirty:s,isValid:t,resetForm:r}=e;return(0,i.jsx)(a.l0,{children:(0,i.jsxs)(n.gCW,{alignItems:"start",spacing:6,mt:4,children:[(0,i.jsx)(g.j0,{id:"name",name:"name",label:"Name",variant:"stacked",isRequired:!0}),(0,i.jsx)(g.j0,{id:"description",name:"description",label:"Description",variant:"stacked"}),z(B),!G&&(0,i.jsx)(p.d,{id:"system_fides_key",name:"system_fides_key",options:null!=L?L:[],label:"System",tooltip:"The system to associate with the integration",layout:"stacked"}),c.identifier===D.Rj.DATAHUB&&(0,i.jsx)(p.d,{id:"dataset",name:"dataset",options:null!=O?O:[],label:"Datasets",tooltip:"The datasets to associate with the integration",layout:"stacked",mode:"multiple"}),(0,i.jsxs)("div",{className:"flex w-full justify-between",children:[(0,i.jsx)(n.wpx,{onClick:()=>{l(),r()},children:"Cancel"}),(0,i.jsx)(n.wpx,{htmlType:"submit",type:"primary",disabled:!s||!t,loading:q,"data-testid":"save-btn",children:"Save"})]})]})})}})}},15704:function(e,s,t){t.d(s,{FO:function(){return T},jq:function(){return H},ZP:function(){return F}}),(i=n||(n={})).DATA_CATALOG="Data Catalog",i.DATA_WAREHOUSE="Data Warehouse",i.DATABASE="Database",i.WEBSITE="Website";var i,n,a=t(24246),r=t(77181),o=t(79789),c=e=>{let{children:s}=e,{isOpen:t,onToggle:i}=(0,r.qY0)();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(r.UO1,{in:t,children:s}),(0,a.jsx)(r.xvT,{fontSize:"sm",cursor:"pointer",textDecoration:"underline",onClick:i,children:t?"Show less":"Show more"})]})},d=t(62656);let l={name:"Google BigQuery",key:"bq_placeholder",connection_type:d.Rj.BIGQUERY,access:d.uv.READ,created_at:""},h=[{permission:"bigquery.jobs.create",description:"Run jobs (e.g. queries) within the project. This is only needed for the Fides Project where the Fides service account is located."},{permission:"bigquery.jobs.list",description:"Manage the queries that the service account performs. This is only needed for the Fides Project where the Fides service account is located."},{permission:"bigquery.routines.get",description:"Allow the service account to retrieve custom routines (e.g. queries) on associated datasets and tables."},{permission:"bigquery.routines.list",description:"Allow the service account to manage the custom routines (e.g. queries) that run on associated datasets and tables."}],u=[{permission:"bigquery.datasets.get",description:"Retrieve metadata and list tables for the specified project."},{permission:"bigquery.tables.get",description:"Retrieve metadata for the specified table."},{permission:"bigquery.tables.getData",description:"Read data in the specified table."},{permission:"bigquery.tables.list",description:"List all tables in the specified dataset."},{permission:"resourcemanager.projects.get",description:"Retrieve metadata for the specified project."}],x={placeholder:l,category:n.DATA_WAREHOUSE,overview:(0,a.jsx)(()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.cB,{text:"Overview"}),(0,a.jsx)(o.XU,{children:"Continuously monitor BigQuery to detect and track schema-level changes, automatically discover and label data categories as well as automatically process DSR (privacy requests) and consent enforcement to proactively manage data governance risks."}),(0,a.jsxs)(c,{children:[(0,a.jsx)(o.cB,{text:"Categories"}),(0,a.jsxs)(o.Z5,{children:[(0,a.jsx)(r.HCh,{children:"Data Warehouse"}),(0,a.jsx)(r.HCh,{children:"Storage system"}),(0,a.jsx)(r.HCh,{children:"Cloud provider"}),(0,a.jsx)(r.HCh,{children:"Data detection"}),(0,a.jsx)(r.HCh,{children:"Data discovery"}),(0,a.jsx)(r.HCh,{children:"DSR automation"}),(0,a.jsx)(r.HCh,{children:"Consent orchestration"})]}),(0,a.jsx)(o.cB,{text:"Permissions"}),(0,a.jsx)(o.XU,{children:"For detection and discovery, Fides requires a read-only BigQuery service account with limited permissions. If you intend to automate governance for DSR or Consent, Fides requires a read-and-write BigQuery service account to any project you would like Fides to govern."}),(0,a.jsx)(o.XU,{children:"A BigQuery administrator can create the necessary role for Fides using BigQuery's roles guide and assign this to a service account using BigQuery's service account guide."}),(0,a.jsx)(o.XU,{children:"The permissions allow Fides to read the schema of, and data stored in projects, datasets and tables as well write restricted updates based on your policy configurations to tables you specify as part of DSR and Consent orchestration."}),(0,a.jsx)(o.cB,{text:"Permissions list"}),(0,a.jsxs)(o.Z5,{children:[(0,a.jsx)(r.HCh,{children:"bigquery.jobs.create"}),(0,a.jsx)(r.HCh,{children:"bigquery.jobs.list"}),(0,a.jsx)(r.HCh,{children:"bigquery.routines.get"}),(0,a.jsx)(r.HCh,{children:"bigquery.routines.list"}),(0,a.jsx)(r.HCh,{children:"bigquery.datasets.get"}),(0,a.jsx)(r.HCh,{children:"bigquery.tables.get"}),(0,a.jsx)(r.HCh,{children:"bigquery.tables.getData"}),(0,a.jsx)(r.HCh,{children:"bigquery.tables.list"}),(0,a.jsx)(r.HCh,{children:"bigquery.tables.updateData"}),(0,a.jsx)(r.HCh,{children:"resourcemanager.projects.get"})]})]})]}),{}),instructions:(0,a.jsx)(()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.cB,{text:"Configuring a Fides -> BigQuery Integration"}),(0,a.jsx)(o.cB,{text:"Step 1: Create a Fides project"}),(0,a.jsxs)(o.XU,{children:["Create a Fides Project using"," ",(0,a.jsx)(o.Hn,{href:"https://cloud.google.com/resource-manager/docs/creating-managing-projects#creating_a_project",children:"BigQuery's project creation guide"}),"."]}),(0,a.jsx)(o.cB,{text:"Step 2: Create a Fides role in GCP"}),(0,a.jsxs)(o.vQ,{children:[(0,a.jsxs)(r.HCh,{children:["Create a custom role for Fides using BigQuery's"," ",(0,a.jsx)(o.Hn,{href:"https://cloud.google.com/iam/docs/creating-custom-roles#creating_a_custom_role",children:"roles guide"}),"."]}),(0,a.jsx)(r.HCh,{children:"Follow the sections below to grant permissions to this role for the Fides project and any project you would like Fides to manage."})]}),(0,a.jsxs)(c,{children:[(0,a.jsx)(o.cB,{text:"Step 3: Assign permissions to the Fides project"}),(0,a.jsx)(o.XU,{children:"Assign the following permissions to the Fides Project that will be used by your Fides service account to run queries:"}),(0,a.jsx)(o.aG,{data:h}),(0,a.jsx)(o.cB,{text:"Step 4: Assign permissions to any project you’d like Fides to monitor"}),(0,a.jsx)(o.XU,{children:"Grant the following permissions to the Fides service account in every project where you would like Fides detection and discovery monitoring."}),(0,a.jsx)(o.aG,{data:u}),(0,a.jsx)(o.cB,{text:"Step 5: Create a Fides service account in the Fides Project"}),(0,a.jsxs)(o.vQ,{children:[(0,a.jsxs)(r.HCh,{children:["Create a service account for Fides using BigQuery's"," ",(0,a.jsx)(o.Hn,{href:"https://cloud.google.com/iam/docs/service-accounts-create",children:"service account guide"}),"."]}),(0,a.jsx)(r.HCh,{children:"Assign the previously created role to this service account."}),(0,a.jsxs)(r.HCh,{children:["Download the service account JSON keyfile."," ",(0,a.jsx)("strong",{children:"Note: this is sensitive information that should not be shared."})," ","An example of this is below:"]})]}),(0,a.jsx)(o.hX,{children:'{\n "type": "service_account",\n "project_id": "project-id-123456",\n "private_key_id": "0123456789abcdef0123456789abcdef01234567",\n "private_key": "-----BEGIN PRIVATE KEY-----\\nMIIyourkey-----\\nEND PRIVATE KEY-----\\n",\n "client_email": "test@project-id-123456.iam.gserviceaccount.com",\n "client_id": "012345678901234567890",\n "auth_uri": "https://accounts.google.com/o/oauth2/auth",\n "token_uri": "https://oauth2.googleapis.com/token",\n "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",\n "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/test%40project-id-123456.iam.gserviceaccount.com"\n}'}),(0,a.jsx)(o.cB,{text:"Step 6: Use the JSON key to authenticate your integration"}),(0,a.jsx)(o.XU,{children:"Provide the JSON key to your Fides instance to securely connect Fides."})]})]}),{}),tags:["DSR Automation","Discovery","Detection"]},m={placeholder:{name:"Datahub",key:"datahub_placeholder",connection_type:d.Rj.DATAHUB,access:d.uv.READ,created_at:""},category:n.DATA_CATALOG,overview:(0,a.jsx)(()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.cB,{text:"Overview"}),(0,a.jsx)(o.XU,{children:"DataHub is a metadata platform designed to help organizations manage and govern their data. It acts as a centralized repository for tracking and discovering data assets across an organization, helping data teams understand where their data resides, how it's used, and how it flows through various systems."}),(0,a.jsxs)(c,{children:[(0,a.jsx)(o.cB,{text:"Categories"}),(0,a.jsx)(o.Z5,{children:(0,a.jsx)(r.HCh,{children:"Data Catalog"})}),(0,a.jsx)(o.cB,{text:"Permissions"}),(0,a.jsx)(o.Z5,{children:(0,a.jsx)(r.HCh,{children:"Placeholder"})})]})]}),{}),tags:["Sync"]},j={name:"DynamoDB",key:"dynamo_placeholder",connection_type:d.Rj.DYNAMODB,access:d.uv.READ,created_at:""},p=[{permission:"AmazonDynamoDBReadOnlyAccess",description:"Provides read-only access to Amazon DynamoDB via the AWS Management Console."},{permission:"AmazonDynamoDBFullAccess",description:"Provides full access to Amazon DynamoDB via the AWS Management Console. Only needed if automating governance for DSR or Consent."}],g={placeholder:j,category:n.DATABASE,overview:(0,a.jsx)(()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.cB,{text:"Overview"}),(0,a.jsx)(o.XU,{children:"Continuously monitor DynamoDB to detect and track schema-level changes, automatically discover and label data categories as well as automatically process DSR (privacy requests) and consent enforcement to proactively manage data governance risks."}),(0,a.jsxs)(c,{children:[(0,a.jsx)(o.cB,{text:"Categories"}),(0,a.jsxs)(o.Z5,{children:[(0,a.jsx)(r.HCh,{children:"NoSQL database"}),(0,a.jsx)(r.HCh,{children:"Storage system"}),(0,a.jsx)(r.HCh,{children:"Cloud provider"}),(0,a.jsx)(r.HCh,{children:"Data detection"}),(0,a.jsx)(r.HCh,{children:"Data discovery"})]}),(0,a.jsx)(o.cB,{text:"Permissions and Policies"}),(0,a.jsxs)(o.XU,{children:["For detection and discovery, Fides requires an IAM user with read-only DynamoDB permissions in order to detect, discover, and classify sensitive data. The AWS-managed"," ",(0,a.jsx)(r.EKh,{children:"AmazonDynamoDBReadOnlyAccess"})," policy can be used to assign these permissions. If you intend to automate governance for DSR or Consent, Fides requires an IAM user with read-and-write DynamoDB permissions. The AWS-managed",(0,a.jsx)(r.EKh,{children:"AmazonDynamoDBFullAccess"})," policy can be used to assign these permissions. An IAM administrator can create the necessary principal for Fides using the AWS IAM guides, and assign the appropriate permissions policy to the IAM user."]}),(0,a.jsx)(o.XU,{children:"The permissions allow Fides to read the schema of, and data stored in, DynamoDB tables. This data is inspected only for the purpose of detecting sensitive data risks and no data is stored by Fides. As part of DSR or Consent orchestration, Fides will only write restricted updates to the tables specified by your Fides policy configuration."}),(0,a.jsx)(o.cB,{text:"Policy List"}),(0,a.jsx)(o.XU,{children:"The following AWS-managed policies provide the necessary permissions for Fides:"}),(0,a.jsxs)(o.Z5,{children:[(0,a.jsx)(r.HCh,{children:"AmazonDynamoDBReadOnlyAccess"}),(0,a.jsx)(r.HCh,{children:"AmazonDynamoDBFullAccess (only needed if automating governance for DSR or Consent)"})]})]})]}),{}),instructions:(0,a.jsx)(()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.cB,{text:"Configuring a Fides -> DynamoDB Integration"}),(0,a.jsx)(o.cB,{text:"Step 1: Create an IAM user in AWS"}),(0,a.jsxs)(o.XU,{children:["Create an IAM user for Fides' DynamoDB access following the"," ",(0,a.jsx)(o.Hn,{href:"https://docs.aws.amazon.com/IAM/latest/UserGuide/getting-started.html#getting-started-iam-user",children:"AWS IAM user guide"}),"."]}),(0,a.jsxs)(c,{children:[(0,a.jsx)(o.cB,{text:"Step 2: Assign policies to the IAM user"}),(0,a.jsx)(o.XU,{children:"Grant the necessary permissions to the IAM user by attaching directly the appropriate AWS-managed policy for your use case:"}),(0,a.jsx)(o.aG,{data:p}),(0,a.jsx)(o.cB,{text:"Step 3: Create an access key for the IAM user"}),(0,a.jsxs)(o.vQ,{children:[(0,a.jsxs)(r.HCh,{children:["Create an access key for the IAM user under"," ",(0,a.jsx)("strong",{children:"Security credentials"})]}),(0,a.jsx)(r.HCh,{children:"Select the Other use case"}),(0,a.jsx)(r.HCh,{children:"Copy the Access Key ID and Secret Access Key"})]}),(0,a.jsx)(o.cB,{text:"Use the Credentials to Authenticate Your Integration"}),(0,a.jsx)(o.XU,{children:"Provide the credentials to your Fides instance to securely connect Fides."})]})]}),{}),tags:["Database","DSR Automation","Discovery","Detection"]},y={placeholder:{name:"Google Cloud SQL for MySQL",key:"google_cloud_sql_for_mysql_placeholder",connection_type:d.Rj.GOOGLE_CLOUD_SQL_MYSQL,access:d.uv.READ,created_at:""},category:n.DATABASE,overview:(0,a.jsx)(()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.cB,{text:"Overview"}),(0,a.jsx)(o.XU,{children:"Google Cloud SQL for MySQL is a fully-managed relational database service that simplifies the setup, maintenance, management, and administration of MySQL databases. Connect Fides to your Google Cloud SQL for MySQL to detect and track changes in schemas and tables and automatically discover and label data categories to proactively manage data governance risks."}),(0,a.jsxs)(c,{children:[(0,a.jsx)(o.cB,{text:"Categories"}),(0,a.jsxs)(o.Z5,{children:[(0,a.jsx)(r.HCh,{children:"Database"}),(0,a.jsx)(r.HCh,{children:"SQL database"}),(0,a.jsx)(r.HCh,{children:"Storage system"}),(0,a.jsx)(r.HCh,{children:"Data detection"}),(0,a.jsx)(r.HCh,{children:"Data discovery"}),(0,a.jsx)(r.HCh,{children:"DSR automation"})]}),(0,a.jsx)(o.cB,{text:"Permissions"}),(0,a.jsx)(o.XU,{children:"For detection and discovery, Fides requires a user with the SELECT permission on the database. If you intend to automate governance for DSR or Consent, Fides requires a user with the SELECT, UPDATE, and DELETE The permissions allow Fides to read the schema of, and data stored in tables, and fields as well as write restricted updates based on your policy configurations to tables you specify as part of DSR and Consent orchestration. For a complete list of permissions view the Google Cloud SQL for MySQL DB documentation."}),(0,a.jsx)(o.cB,{text:"Permissions list"}),(0,a.jsxs)(o.Z5,{children:[(0,a.jsx)(r.HCh,{children:"GRANT SELECT"}),(0,a.jsx)(r.HCh,{children:"GRANT UPDATE"}),(0,a.jsx)(r.HCh,{children:"GRANT DELETE"})]})]})]}),{}),tags:["Discovery","Detection"]},v={placeholder:{name:"Google Cloud SQL for Postgres",key:"google_cloud_sql_for_postgres_placeholder",connection_type:d.Rj.GOOGLE_CLOUD_SQL_POSTGRES,access:d.uv.READ,created_at:""},category:n.DATABASE,overview:(0,a.jsx)(()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.cB,{text:"Overview"}),(0,a.jsx)(o.XU,{children:"Google Cloud SQL for Postgres is a fully-managed relational database service that simplifies the setup, maintenance, management, and administration of Postgres databases. Connect Fides to your Google Cloud SQL for Postgres to detect and track changes in schemas and tables and automatically discover and label data categories to proactively manage data governance risks."}),(0,a.jsxs)(c,{children:[(0,a.jsx)(o.cB,{text:"Categories"}),(0,a.jsxs)(o.Z5,{children:[(0,a.jsx)(r.HCh,{children:"Database"}),(0,a.jsx)(r.HCh,{children:"SQL database"}),(0,a.jsx)(r.HCh,{children:"Storage system"}),(0,a.jsx)(r.HCh,{children:"Data detection"}),(0,a.jsx)(r.HCh,{children:"Data discovery"}),(0,a.jsx)(r.HCh,{children:"DSR automation"})]}),(0,a.jsx)(o.cB,{text:"Permissions"}),(0,a.jsx)(o.XU,{children:"For detection and discovery, Fides requires a user with the SELECT permission on the database. If you intend to automate governance for DSR or Consent, Fides requires a user with the SELECT, UPDATE, and DELETE permission. The permissions allow Fides to read the schema of, and data stored in tables, and fields as well as write restricted updates based on your policy configurations to tables you specify as part of DSR and orchestration. For a complete list of permissions view the Google Cloud SQL for Postgres DB documentation."}),(0,a.jsx)(o.XU,{children:"The following GCP service account permissions are needed when setting up Google Cloud SQL for Postgres."}),(0,a.jsx)(o.cB,{text:"Permissions list"}),(0,a.jsxs)(o.Z5,{children:[(0,a.jsx)(r.HCh,{children:"cloudsql.instances.connect"}),(0,a.jsx)(r.HCh,{children:"cloudsql.instances.get"}),(0,a.jsx)(r.HCh,{children:"cloudsql.instances.login"})]})]})]}),{}),tags:["Discovery","Detection"]},f={placeholder:{name:"Microsoft SQL Server",key:"microsoft_sql_server_placeholder",connection_type:d.Rj.MSSQL,access:d.uv.READ,created_at:""},category:n.DATABASE,overview:(0,a.jsx)(()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.cB,{text:"Overview"}),(0,a.jsx)(o.XU,{children:"Microsoft SQL Server, is a relational database management system (RDBMS) developed by Microsoft. It is designed to store, manage, and retrieve data as requested by other software applications, which may run either on the same computer or across a network."}),(0,a.jsxs)(c,{children:[(0,a.jsx)(o.cB,{text:"Categories"}),(0,a.jsxs)(o.Z5,{children:[(0,a.jsx)(r.HCh,{children:"Database"}),(0,a.jsx)(r.HCh,{children:"SQL database"}),(0,a.jsx)(r.HCh,{children:"Storage system"}),(0,a.jsx)(r.HCh,{children:"Data detection"}),(0,a.jsx)(r.HCh,{children:"Data discovery"})]}),(0,a.jsx)(o.cB,{text:"Permissions"}),(0,a.jsx)(o.XU,{children:"For detecting databases, Fides requires a user with the following permissions/role:"}),(0,a.jsxs)(o.Z5,{children:[(0,a.jsx)(r.HCh,{children:"CREATE LOGIN username WITH PASSWORD = 'password';"}),(0,a.jsx)(r.HCh,{children:"GRANT SELECT, INSERT, UPDATE TO username;"})]})]})]}),{}),tags:["DSR Automation","Discovery","Detection"]},C={placeholder:{name:"MySQL",key:"mysql_placeholder",connection_type:d.Rj.MYSQL,access:d.uv.READ,created_at:""},category:n.DATABASE,overview:(0,a.jsx)(()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.cB,{text:"Overview"}),(0,a.jsx)(o.XU,{children:"Add infotext"}),(0,a.jsxs)(c,{children:[(0,a.jsx)(o.cB,{text:"Categories"}),(0,a.jsxs)(o.Z5,{children:[(0,a.jsx)(r.HCh,{children:"Database"}),(0,a.jsx)(r.HCh,{children:"SQL database"}),(0,a.jsx)(r.HCh,{children:"Storage system"}),(0,a.jsx)(r.HCh,{children:"Data detection"}),(0,a.jsx)(r.HCh,{children:"Data discovery"})]}),(0,a.jsx)(o.cB,{text:"Permissions"}),(0,a.jsx)(o.XU,{children:"For detecting databases, Fides requires a user with the following permissions/role:"}),(0,a.jsxs)(o.Z5,{children:[(0,a.jsx)(r.HCh,{children:"CREATE USER 'username' IDENTIFIED WITH authentication_plugin BY 'password';"}),(0,a.jsx)(r.HCh,{children:"GRANT SELECT, INSERT ON database.* TO 'username'@'%';"})]})]})]}),{}),tags:["DSR Automation","Discovery","Detection"]},S={placeholder:{name:"Amazon Postgres",key:"postgres_placeholder",connection_type:d.Rj.POSTGRES,access:d.uv.READ,created_at:""},category:n.DATABASE,overview:(0,a.jsx)(()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.cB,{text:"Overview"}),(0,a.jsx)(o.XU,{children:"Postgres is a relational database. Connect Fides to your Postgres Datbase to detect and track changes in schemas and tables and automatically discover and label data categories to proactively manage data governance risks."}),(0,a.jsxs)(c,{children:[(0,a.jsx)(o.cB,{text:"Categories"}),(0,a.jsxs)(o.Z5,{children:[(0,a.jsx)(r.HCh,{children:"Database"}),(0,a.jsx)(r.HCh,{children:"SQL database"}),(0,a.jsx)(r.HCh,{children:"Storage system"}),(0,a.jsx)(r.HCh,{children:"Data detection"}),(0,a.jsx)(r.HCh,{children:"Data discovery"})]}),(0,a.jsx)(o.XU,{children:"For each database, Fides requires the following permissions, where 'username' is the user set up for Fides, and 'database' is the name of the database you want to connect to."}),(0,a.jsxs)(o.Z5,{children:[(0,a.jsx)(r.HCh,{children:"CREATE USER username WITH LOGIN;"}),(0,a.jsx)(r.HCh,{children:"GRANT SELECT ON ALL TABLES IN SCHEMA public TO username;"}),(0,a.jsx)(r.HCh,{children:"GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO username;"})]})]})]}),{}),tags:["Detection","Discovery"]},A={placeholder:{name:"Amazon RDS MySQL",key:"rds_mysql_placeholder",connection_type:d.Rj.RDS_MYSQL,access:d.uv.READ,created_at:""},category:n.DATABASE,overview:(0,a.jsx)(()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.cB,{text:"Overview"}),(0,a.jsx)(o.XU,{children:"Amazon RDS MySQL is a fully-managed relational database service that simplifies the setup, maintenance, management, and administration of MySQL databases. Connect Fides to your Amazon RDS MySQL to detect and track changes in schemas and tables and automatically discover and label data categories to proactively manage data governance risks."}),(0,a.jsxs)(c,{children:[(0,a.jsx)(o.cB,{text:"Categories"}),(0,a.jsxs)(o.Z5,{children:[(0,a.jsx)(r.HCh,{children:"Database"}),(0,a.jsx)(r.HCh,{children:"SQL database"}),(0,a.jsx)(r.HCh,{children:"Storage system"}),(0,a.jsx)(r.HCh,{children:"Data detection"}),(0,a.jsx)(r.HCh,{children:"Data discovery"})]}),(0,a.jsx)(o.cB,{text:"Permissions"}),(0,a.jsx)(o.XU,{children:"For detecting database RDS instances and clusters, Fides requires an IAM user with the following permissions/role:"}),(0,a.jsxs)(o.Z5,{children:[(0,a.jsx)(r.HCh,{children:"rds:DescribeDBClusters"}),(0,a.jsx)(r.HCh,{children:"rds:DescribeDBInstances"}),(0,a.jsx)(r.HCh,{children:"rds-db:connect"})]}),(0,a.jsx)(o.XU,{children:"And per database instance and database it requires the following permissions, where 'username' is the user set up for Fides, and 'database' is the database name, you want to connect to."}),(0,a.jsxs)(o.Z5,{children:[(0,a.jsx)(r.HCh,{children:"CREATE USER 'username' IDENTIFIED WITH AWSAuthenticationPlugin AS 'RDS';"}),(0,a.jsx)(r.HCh,{children:"GRANT SELECT, INSERT ON database.* TO 'username'@'%';"})]})]})]}),{}),tags:["Discovery","Detection"]},b={placeholder:{name:"Amazon RDS Postgres",key:"rds_postgres_placeholder",connection_type:d.Rj.RDS_POSTGRES,access:d.uv.READ,created_at:""},category:n.DATABASE,overview:(0,a.jsx)(()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.cB,{text:"Overview"}),(0,a.jsx)(o.XU,{children:"Amazon RDS Postgres is a fully-managed relational database service that simplifies the setup, maintenance, management, and administration of Postgres databases. Connect Fides to your Amazon RDS Postgres to detect and track changes in schemas and tables and automatically discover and label data categories to proactively manage data governance risks."}),(0,a.jsxs)(c,{children:[(0,a.jsx)(o.cB,{text:"Categories"}),(0,a.jsxs)(o.Z5,{children:[(0,a.jsx)(r.HCh,{children:"Database"}),(0,a.jsx)(r.HCh,{children:"SQL database"}),(0,a.jsx)(r.HCh,{children:"Storage system"}),(0,a.jsx)(r.HCh,{children:"Data detection"}),(0,a.jsx)(r.HCh,{children:"Data discovery"})]}),(0,a.jsx)(o.cB,{text:"Permissions"}),(0,a.jsx)(o.XU,{children:"For detecting database RDS instances and clusters, Fides requires an IAM user with the following permissions/role:"}),(0,a.jsxs)(o.Z5,{children:[(0,a.jsx)(r.HCh,{children:"rds:DescribeDBClusters"}),(0,a.jsx)(r.HCh,{children:"rds:DescribeDBInstances"}),(0,a.jsx)(r.HCh,{children:"rds-db:connect"})]}),(0,a.jsx)(o.XU,{children:"For each database instance and database, Fides requires the following permissions, where 'username' is the user set up for Fides, and 'database' is the name of the database you want to connect to."}),(0,a.jsxs)(o.Z5,{children:[(0,a.jsx)(r.HCh,{children:"CREATE USER username WITH LOGIN;"}),(0,a.jsx)(r.HCh,{children:"GRANT rds_iam TO username;"}),(0,a.jsx)(r.HCh,{children:"GRANT SELECT ON ALL TABLES IN SCHEMA public TO username;"}),(0,a.jsx)(r.HCh,{children:"GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO username;"})]})]})]}),{}),tags:["Discovery","Detection"]},D={placeholder:{name:"Amazon S3",key:"s3_placeholder",connection_type:d.Rj.S3,access:d.uv.READ,created_at:""},category:n.DATA_WAREHOUSE,overview:(0,a.jsx)(()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.cB,{text:"Overview"}),(0,a.jsx)(o.XU,{children:"Continuously monitor S3 to detect and track schema-level changes, automatically discover and label data categories as well as automatically process DSR (privacy requests) and consent enforcement to proactively manage data governance risks."}),(0,a.jsxs)(c,{children:[(0,a.jsx)(o.cB,{text:"Categories"}),(0,a.jsxs)(o.Z5,{children:[(0,a.jsx)(r.HCh,{children:"Object storage"}),(0,a.jsx)(r.HCh,{children:"Storage system"}),(0,a.jsx)(r.HCh,{children:"Cloud provider"}),(0,a.jsx)(r.HCh,{children:"Data detection"}),(0,a.jsx)(r.HCh,{children:"Data discovery"})]}),(0,a.jsx)(o.cB,{text:"Permissions"}),(0,a.jsx)(o.XU,{children:"Fides requires an IAM principal with read-only S3 permissions in order to detect, discover, and classify sensitive data. The AWS-managed AmazonS3ReadOnlyAccess policy can be used to assign these permissions. An IAM administrator can create the necessary principal for Fides using the AWS IAM guides, and assign the appropriate permissions policy to the IAM principal."}),(0,a.jsx)(o.XU,{children:"The permissions allow Fides to list buckets and read object data data stored in those buckets. This data is inspected only for the purpose of detecting sensitive data risks and no data is stored by Fides."}),(0,a.jsx)(o.XU,{children:"Ethyca recommends creating an IAM role with the appropriate permissions, which will be assumed by Fides at runtime, with ephemeral credentials. There must also be an IAM user with fixed credentials that Fides uses strictly for assuming the IAM role with the appropriate permissions. If desired, Fides also supports authenticating directly as an IAM user with the appropriate permissions, but this is considered a less secure option."}),(0,a.jsx)(o.cB,{text:"Permissions list"}),(0,a.jsx)(o.Z5,{children:(0,a.jsx)(r.HCh,{children:"AmazonS3ReadOnlyAccess"})})]})]}),{}),instructions:(0,a.jsx)(()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.cB,{text:"Configuring a Fides -> Amazon S3 Integration"}),(0,a.jsx)(o.cB,{text:"Step 1: Create an IAM role in AWS"}),(0,a.jsx)(o.XU,{children:"Create an IAM role for Fides' S3 access following the AWS IAM roles guide. This role will be referred to below as the Fides S3 Access Role."}),(0,a.jsxs)(c,{children:[(0,a.jsx)(o.cB,{text:"Step 2: Assign policies to the IAM role"}),(0,a.jsx)(o.XU,{children:"Grant the necessary permissions to the IAM role by attaching the following AWS-managed policy:"}),(0,a.jsx)(o.aG,{data:[{permission:"AmazonS3ReadOnlyAccess",description:"Provides read-only access to all buckets via the AWS Management Console."}]}),(0,a.jsx)(o.cB,{text:"Step 3: Create an IAM user for assuming a role"}),(0,a.jsxs)(o.XU,{children:["Follow the ",(0,a.jsx)(o.Hn,{href:"https://docs.aws.amazon.com/IAM/latest/UserGuide/getting-started.html#getting-started-iam-user",children:"AWS guide"})," for creating an IAM user to create an IAM user that Fides will authenticate as in order to assume the Fides S3 Access Role created above, and retrieve ephemeral credentials."]}),(0,a.jsx)(o.cB,{text:"Step 4: Grant the IAM user permission to assume the Fides S3 Access Role"}),(0,a.jsx)(o.XU,{children:"Navigate to the IAM user’s Permissions page and add a permission by creating an inline policy. This permission should grant the IAM user permission to assume the Fides S3 Access Role created above (you’ll need to retrieve the role ARN). The inline policy should look similar to this:"}),(0,a.jsx)(o.hX,{children:'{\n "Version": "2012-10-17",\n "Statement": [\n {\n "Sid": "VisualEditor0",\n "Effect": "Allow",\n "Action": "sts:AssumeRole",\n "Resource": "arn:aws:iam::[AWS ACCOUNT NUMBER]:role/[Fides S3 Access Role ARN]"\n }\n ]\n}'}),(0,a.jsx)(o.cB,{text:"Step 5: Create an access key for the IAM user"}),(0,a.jsxs)(o.vQ,{children:[(0,a.jsxs)(r.HCh,{children:["Create an access key for the IAM user under"," ",(0,a.jsx)("strong",{children:"Security credentials"}),"."]}),(0,a.jsx)(r.HCh,{children:"Select the Other use case"}),(0,a.jsx)(r.HCh,{children:"Copy the Access Key ID and Secret Access Key"})]}),(0,a.jsx)(o.cB,{text:"Step 6: Use the credentials to authenticate your integration"}),(0,a.jsxs)(o.XU,{children:["Provide the credentials to your Fides instance to securely connect Fides. For the Assume Role ARN, provide the ARN for the Fides S3 Access Role created in step 1."," "]})]})]}),{}),tags:["DSR Automation","Discovery","Detection"]},R={placeholder:{name:"Scylla",key:"scylla_placeholder",connection_type:d.Rj.SCYLLA,access:d.uv.READ,created_at:""},category:n.DATABASE,overview:(0,a.jsx)(()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.cB,{text:"Overview"}),(0,a.jsx)(o.XU,{children:"ScyllaDB is an open-sources distributed NoSQL data store designed to be compatible with Apache Cassandra. Connect Fides to your ScyllaDB to detect and track changes in keyspaces and tables and automatically discover and label data categories to proactively manage data governance risks."}),(0,a.jsxs)(c,{children:[(0,a.jsx)(o.cB,{text:"Categories"}),(0,a.jsxs)(o.Z5,{children:[(0,a.jsx)(r.HCh,{children:"Database"}),(0,a.jsx)(r.HCh,{children:"NoSQL database"}),(0,a.jsx)(r.HCh,{children:"Storage system"}),(0,a.jsx)(r.HCh,{children:"Data detection"}),(0,a.jsx)(r.HCh,{children:"Data discovery"}),(0,a.jsx)(r.HCh,{children:"DSR automation"})]}),(0,a.jsx)(o.cB,{text:"Permissions"}),(0,a.jsx)(o.XU,{children:"For detection and discovery, Fides requires a user with the SELECT permission on all keyspaces. If you intend to automate governance for DSR or Consent, Fides requires the role to to be granted SELECT and MODIFY on all keyspaces. The permissions allow Fides to read the schema of, and data stored in keyspaces, tables, and fields as well as write restricted updates based on your policy configurations to tables you specify as part of DSR and Consent orchestration. For a complete list of permissions view the Scylla DB documentation."}),(0,a.jsx)(o.cB,{text:"Permissions list"}),(0,a.jsxs)(o.Z5,{children:[(0,a.jsx)(r.HCh,{children:"SELECT ALL KEYSPACES"}),(0,a.jsx)(r.HCh,{children:"MODIFY ALL KEYSPACES"})]})]})]}),{}),tags:["DSR Automation","Discovery","Detection"]},w={placeholder:{name:"Snowflake",key:"snowflake_placeholder",connection_type:d.Rj.SNOWFLAKE,access:d.uv.READ,created_at:""},category:n.DATABASE,overview:(0,a.jsx)(()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.cB,{text:"Overview"}),(0,a.jsx)(o.XU,{children:"Snowflake is a cloud-based data warehousing platform designed for handling large-scale data storage and analytics. It enables organizations to store, manage, and analyze massive amounts of data efficiently, offering features like scalability, performance, and flexibility."}),(0,a.jsxs)(c,{children:[(0,a.jsx)(o.cB,{text:"Categories"}),(0,a.jsxs)(o.Z5,{children:[(0,a.jsx)(r.HCh,{children:"Database"}),(0,a.jsx)(r.HCh,{children:"SQL database"}),(0,a.jsx)(r.HCh,{children:"Storage system"}),(0,a.jsx)(r.HCh,{children:"Data detection"}),(0,a.jsx)(r.HCh,{children:"Data discovery"})]}),(0,a.jsx)(o.cB,{text:"Permissions"}),(0,a.jsxs)(o.Z5,{children:[(0,a.jsx)(r.HCh,{children:"CREATE ROLE my_monitor_role;"}),(0,a.jsx)(r.HCh,{children:"GRANT USAGE ON DATABASE DATABASE_1 TO ROLE my_monitor_role;"}),(0,a.jsx)(r.HCh,{children:"GRANT USAGE ON SCHEMA DATABASE_1.TEST_SCHEMA TO ROLE my_monitor_role;"}),(0,a.jsx)(r.HCh,{children:"GRANT SELECT ON ALL TABLES IN SCHEMA DATABASE_1.TEST_SCHEMA TO ROLE my_monitor_role;"}),(0,a.jsx)(r.HCh,{children:"CREATE USER test_user PASSWORD='***';"}),(0,a.jsx)(r.HCh,{children:"GRANT ROLE my_monitor_role TO USER test_user;"})]})]})]}),{}),tags:["DSR Automation","Discovery","Detection"]},E={placeholder:{name:"Website",key:"website_placeholder",connection_type:d.Rj.WEBSITE,access:d.uv.READ,created_at:""},category:n.WEBSITE,tags:["Consent","Discovery","Detection"],overview:(0,a.jsx)(()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.cB,{text:"Overview"}),(0,a.jsx)(o.XU,{children:"Websites, or “properties”, often process user data. Adding a website as an integration lets you configure a Consent Management Platform (CMP), a site-specific privacy center, and Cross-Origin requests via Fides. You can also set up monitors to detect vendors, track technologies like cookies or pixels, and ensure compliance."})]}),{})},_={[d.Rj.BIGQUERY]:x,[d.Rj.DATAHUB]:m,[d.Rj.DYNAMODB]:g,[d.Rj.GOOGLE_CLOUD_SQL_MYSQL]:y,[d.Rj.GOOGLE_CLOUD_SQL_POSTGRES]:v,[d.Rj.MSSQL]:f,[d.Rj.RDS_MYSQL]:A,[d.Rj.RDS_POSTGRES]:b,[d.Rj.S3]:D,[d.Rj.SCYLLA]:R,[d.Rj.SNOWFLAKE]:w,[d.Rj.MYSQL]:C,[d.Rj.WEBSITE]:E,[d.Rj.POSTGRES]:S},T=Object.values(_),H=Object.keys(_),B={placeholder:{name:"",key:"placeholder",connection_type:d.Rj.MANUAL,access:d.uv.READ,created_at:""},category:n.DATA_WAREHOUSE,tags:[]};var F=e=>{var s;return e&&null!==(s=_[e])&&void 0!==s?s:B}},64176:function(e,s,t){var i=t(27378),n=t(20682);s.Z=e=>{let{data:s}=(0,n.$I)({});return(0,i.useMemo)(()=>null==s?void 0:s.items.find(s=>s.identifier===e),[s,e])}},31883:function(e,s,t){t.d(s,{Bw:function(){return i.Bw},D4:function(){return i.D4}});var i=t(19043)}}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6372],{95372:function(e){e.exports=function(e,t,n,i){for(var r=e.length,a=n+(i?1:-1);i?a--:++a<r;)if(t(e[a],a,e))return a;return -1}},56632:function(e,t,n){var i=n(89278),r=n(80068),a=n(50098);e.exports=function(e){return function(t,n,o){var s=Object(t);if(!r(t)){var l=i(n,3);t=a(t),n=function(e){return l(s[e],e,s)}}var c=e(t,n,o);return c>-1?s[l?t[c]:c]:void 0}}},64925:function(e,t,n){var i=n(56632)(n(66259));e.exports=i},66259:function(e,t,n){var i=n(95372),r=n(89278),a=n(47991),o=Math.max;e.exports=function(e,t,n){var s=null==e?0:e.length;if(!s)return -1;var l=null==n?0:a(n);return l<0&&(l=o(s+l,0)),i(e,r(t,3),l)}},94919:function(e,t,n){var i=n(91936),r=1/0;e.exports=function(e){return e?(e=i(e))===r||e===-r?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}},47991:function(e,t,n){var i=n(94919);e.exports=function(e){var t=i(e),n=t%1;return t==t?n?t-n:t:0}},12627:function(e,t,n){"use strict";var i=n(24246),r=n(79283),a=n(34929);t.Z=e=>{let{selectedTaxonomies:t,showDisabled:n=!1,...o}=e,{getDataCategoryDisplayNameProps:s,getDataCategories:l}=(0,a.Z)(),c=(n?l():l().filter(e=>e.active)).filter(e=>!t.includes(e.fides_key)).map(e=>{let{name:t,primaryName:n}=s(e.fides_key);return{value:e.fides_key,name:t,primaryName:n,description:e.description||""}});return(0,i.jsx)(r.l,{options:c,...o})}},79283:function(e,t,n){"use strict";n.d(t,{l:function(){return l}});var i=n(24246),r=n(91922),a=n(72707),o=n.n(a);let s=e=>{let{data:t}=e;return(0,i.jsxs)(r.jqI,{gap:12,title:"".concat(t.primaryName||"").concat(t.primaryName?": ":"").concat(t.name," - ").concat(t.description),children:[(0,i.jsxs)("div",{children:[(0,i.jsx)("strong",{children:t.primaryName||t.name}),t.primaryName&&": ".concat(t.name)]}),(0,i.jsx)("em",{children:t.description})]})},l=e=>{let{options:t,...n}=e,a=null==t?void 0:t.map(e=>({...e,className:o().option}));return(0,i.jsx)(r.WPr,{options:a,autoFocus:!0,variant:"borderless",optionRender:s,dropdownStyle:{minWidth:"500px"},className:"w-full p-0","data-testid":"taxonomy-select",...n})}},34929:function(e,t,n){"use strict";var i=n(24246),r=n(64925),a=n.n(r),o=n(27378),s=n(16134),l=n(30002),c=n(28079),u=n(57072);let d=()=>{let{isLoading:e}=(0,c.fd)(),t=(0,s.C)(c.U3),{isLoading:n}=(0,u.MO)(),i=(0,s.C)(u.qb),{isLoading:r}=(0,l.te)();return{dataUses:t,dataSubjects:(0,s.C)(l.ZL),dataCategories:i,isLoading:e||n||r}};t.Z=()=>{let{dataUses:e,dataCategories:t,dataSubjects:n,isLoading:r}=d(),s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e.split(".").slice(0,t).join(".")},l=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=t(e);if(!i)return{};let r=t(s(e,n)),a=!!i.parent_key;return{name:i.name||void 0,primaryName:a&&(null==r?void 0:r.name)!==i.name&&(null==r?void 0:r.name)||void 0}},c=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,{name:r,primaryName:a}=l(e,t,n);return r?a?(0,i.jsxs)(o.Fragment,{children:[(0,i.jsxs)("strong",{children:[a,":"]})," ",r]},e):(0,i.jsx)("strong",{children:r},e):e},u=t=>a()(e,{fides_key:t}),f=e=>a()(t,{fides_key:e}),v=e=>a()(n,{fides_key:e});return{getDataUses:()=>e,getDataUseByKey:u,getDataUseDisplayName:e=>c(e,u,1),getDataUseDisplayNameProps:e=>l(e,u,1),getDataCategories:()=>t,getDataCategoryByKey:f,getDataCategoryDisplayName:e=>c(e,f,2),getDataCategoryDisplayNameProps:e=>l(e,f,2),getDataSubjects:()=>n,getDataSubjectByKey:v,getDataSubjectDisplayName:e=>{let t=v(e);return t?t.name:e},getPrimaryKey:s,isLoading:r}}},61099:function(e,t,n){"use strict";var i=n(24246),r=n(91922),a=n(27378),o=n(12627),s=n(34929),l=n(26183),c=n(70675);t.Z=e=>{var t,n,u;let{resource:d}=e,[f,v]=(0,a.useState)(!1),{getDataCategoryDisplayName:p}=(0,s.Z)(),[g]=(0,c.NA)(),m=(null===(t=d.classifications)||void 0===t?void 0:t.length)?d.classifications[0].label:null,_=null!==(u=d.user_assigned_data_categories)&&void 0!==u?u:[],h=!m&&!(null==_?void 0:_.length),x=null===(n=d.sub_field_urns)||void 0===n?void 0:n.length,j=e=>{g({staged_resource_urn:d.urn,monitor_config_id:d.monitor_config_id,user_assigned_data_categories:[..._,e]})},y=e=>{var t;g({staged_resource_urn:d.urn,monitor_config_id:d.monitor_config_id,user_assigned_data_categories:null!==(t=null==_?void 0:_.filter(t=>t!==e))&&void 0!==t?t:[]})},b=!f&&!!_.length,D=!f&&!!m&&!_.length;return(0,i.jsxs)(l.Z,{"data-testid":"edit-category-cell",children:[h&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(r.j8w,{"data-testid":"no-classifications",color:"white",children:"None"}),!x&&(0,i.jsx)(r.j8w,{onClick:()=>v(!0),addable:!0,"data-testid":"taxonomy-add-btn","aria-label":"Add category"})]}),b&&(0,i.jsxs)(i.Fragment,{children:[_.map(e=>(0,i.jsx)(r.j8w,{"data-testid":"user-classification-".concat(e),color:"white",closable:!0,onClose:()=>y(e),closeButtonLabel:"Remove category",children:p(e)},e)),(0,i.jsx)(r.j8w,{onClick:()=>v(!0),addable:!0,"data-testid":"taxonomy-add-btn","aria-label":"Add category"})]}),D&&(0,i.jsxs)(r.j8w,{onClick:()=>v(!0),color:"white","data-testid":"classification-".concat(m),hasSparkle:!0,children:[p(m),(0,i.jsx)(r.PJP.I8b,{size:10})]}),f&&(0,i.jsx)(r.xuv,{className:"select-wrapper",position:"absolute",zIndex:10,top:"0",left:"0",width:"100%",height:"max",bgColor:"#fff",children:(0,i.jsx)(o.Z,{selectedTaxonomies:_,onChange:e=>{v(!1),j(e)},onBlur:()=>v(!1),open:!0})})]})}},26183:function(e,t,n){"use strict";var i=n(24246);n(27378),t.Z=e=>{let{children:t,className:n,...r}=e;return(0,i.jsx)("div",{className:"relative flex w-full flex-wrap items-center gap-2 overflow-x-auto py-2 ".concat(n||""),...r,children:t})}},7940:function(e,t,n){"use strict";n.d(t,{G:function(){return r}});var i=n(16643);let r=e=>{var t,n,r;return e?e.resource_type?e.resource_type:(null===(t=e.schemas)||void 0===t?void 0:t.length)?i.D$.DATABASE:(null===(n=e.tables)||void 0===n?void 0:n.length)?i.D$.SCHEMA:(null===(r=e.fields)||void 0===r?void 0:r.length)?i.D$.TABLE:i.D$.FIELD:void 0}},98559:function(e,t){"use strict";t.Z=e=>{let{name:t,urn:n,monitor_config_id:i,database_name:r,schema_name:a,table_name:o,top_level_field_name:s,top_level_field_urn:l}=e;if(!s)return t;let c=n.split(".");return l?n.replace("".concat(l).concat("."),""):([i,r,a,o,s].forEach(e=>{if(e){let t=c.indexOf(e);t>-1&&c.splice(t,1)}}),c.join("."))}},36168:function(e,t){"use strict";t.Z=e=>{var t;return!!e.parent_table_urn&&null!==(t=e.sub_field_urns)&&void 0!==t&&!!t.length&&!e.top_level_field_name}},80356:function(e,t,n){"use strict";var i=n(7940),r=n(36168),a=n(16643);t.Z=e=>(0,i.G)(e)!==a.D$.FIELD||(0,r.Z)(e)},72707:function(e){e.exports={option:"TaxonomySelect_option__vY6v2"}}}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6372],{95372:function(e){e.exports=function(e,t,n,i){for(var r=e.length,a=n+(i?1:-1);i?a--:++a<r;)if(t(e[a],a,e))return a;return -1}},56632:function(e,t,n){var i=n(89278),r=n(80068),a=n(50098);e.exports=function(e){return function(t,n,o){var s=Object(t);if(!r(t)){var l=i(n,3);t=a(t),n=function(e){return l(s[e],e,s)}}var c=e(t,n,o);return c>-1?s[l?t[c]:c]:void 0}}},64925:function(e,t,n){var i=n(56632)(n(66259));e.exports=i},66259:function(e,t,n){var i=n(95372),r=n(89278),a=n(47991),o=Math.max;e.exports=function(e,t,n){var s=null==e?0:e.length;if(!s)return -1;var l=null==n?0:a(n);return l<0&&(l=o(s+l,0)),i(e,r(t,3),l)}},94919:function(e,t,n){var i=n(91936),r=1/0;e.exports=function(e){return e?(e=i(e))===r||e===-r?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}},47991:function(e,t,n){var i=n(94919);e.exports=function(e){var t=i(e),n=t%1;return t==t?n?t-n:t:0}},12627:function(e,t,n){"use strict";var i=n(24246),r=n(79283),a=n(34929);t.Z=e=>{let{selectedTaxonomies:t,showDisabled:n=!1,...o}=e,{getDataCategoryDisplayNameProps:s,getDataCategories:l}=(0,a.Z)(),c=(n?l():l().filter(e=>e.active)).filter(e=>!t.includes(e.fides_key)).map(e=>{let{name:t,primaryName:n}=s(e.fides_key);return{value:e.fides_key,name:t,primaryName:n,description:e.description||""}});return(0,i.jsx)(r.l,{options:c,...o})}},79283:function(e,t,n){"use strict";n.d(t,{l:function(){return l}});var i=n(24246),r=n(77181),a=n(72707),o=n.n(a);let s=e=>{let{data:t}=e;return(0,i.jsxs)(r.jqI,{gap:12,title:"".concat(t.primaryName||"").concat(t.primaryName?": ":"").concat(t.name," - ").concat(t.description),children:[(0,i.jsxs)("div",{children:[(0,i.jsx)("strong",{children:t.primaryName||t.name}),t.primaryName&&": ".concat(t.name)]}),(0,i.jsx)("em",{children:t.description})]})},l=e=>{let{options:t,...n}=e,a=null==t?void 0:t.map(e=>({...e,className:o().option}));return(0,i.jsx)(r.WPr,{options:a,autoFocus:!0,variant:"borderless",optionRender:s,dropdownStyle:{minWidth:"500px"},className:"w-full p-0","data-testid":"taxonomy-select",...n})}},34929:function(e,t,n){"use strict";var i=n(24246),r=n(64925),a=n.n(r),o=n(27378),s=n(16134),l=n(30002),c=n(28079),u=n(57072);let d=()=>{let{isLoading:e}=(0,c.fd)(),t=(0,s.C)(c.U3),{isLoading:n}=(0,u.MO)(),i=(0,s.C)(u.qb),{isLoading:r}=(0,l.te)();return{dataUses:t,dataSubjects:(0,s.C)(l.ZL),dataCategories:i,isLoading:e||n||r}};t.Z=()=>{let{dataUses:e,dataCategories:t,dataSubjects:n,isLoading:r}=d(),s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e.split(".").slice(0,t).join(".")},l=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=t(e);if(!i)return{};let r=t(s(e,n)),a=!!i.parent_key;return{name:i.name||void 0,primaryName:a&&(null==r?void 0:r.name)!==i.name&&(null==r?void 0:r.name)||void 0}},c=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,{name:r,primaryName:a}=l(e,t,n);return r?a?(0,i.jsxs)(o.Fragment,{children:[(0,i.jsxs)("strong",{children:[a,":"]})," ",r]},e):(0,i.jsx)("strong",{children:r},e):e},u=t=>a()(e,{fides_key:t}),f=e=>a()(t,{fides_key:e}),v=e=>a()(n,{fides_key:e});return{getDataUses:()=>e,getDataUseByKey:u,getDataUseDisplayName:e=>c(e,u,1),getDataUseDisplayNameProps:e=>l(e,u,1),getDataCategories:()=>t,getDataCategoryByKey:f,getDataCategoryDisplayName:e=>c(e,f,2),getDataCategoryDisplayNameProps:e=>l(e,f,2),getDataSubjects:()=>n,getDataSubjectByKey:v,getDataSubjectDisplayName:e=>{let t=v(e);return t?t.name:e},getPrimaryKey:s,isLoading:r}}},61099:function(e,t,n){"use strict";var i=n(24246),r=n(77181),a=n(27378),o=n(12627),s=n(34929),l=n(26183),c=n(70675);t.Z=e=>{var t,n,u;let{resource:d}=e,[f,v]=(0,a.useState)(!1),{getDataCategoryDisplayName:p}=(0,s.Z)(),[g]=(0,c.NA)(),m=(null===(t=d.classifications)||void 0===t?void 0:t.length)?d.classifications[0].label:null,_=null!==(u=d.user_assigned_data_categories)&&void 0!==u?u:[],h=!m&&!(null==_?void 0:_.length),x=null===(n=d.sub_field_urns)||void 0===n?void 0:n.length,j=e=>{g({staged_resource_urn:d.urn,monitor_config_id:d.monitor_config_id,user_assigned_data_categories:[..._,e]})},y=e=>{var t;g({staged_resource_urn:d.urn,monitor_config_id:d.monitor_config_id,user_assigned_data_categories:null!==(t=null==_?void 0:_.filter(t=>t!==e))&&void 0!==t?t:[]})},b=!f&&!!_.length,D=!f&&!!m&&!_.length;return(0,i.jsxs)(l.Z,{"data-testid":"edit-category-cell",children:[h&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(r.j8w,{"data-testid":"no-classifications",color:"white",children:"None"}),!x&&(0,i.jsx)(r.j8w,{onClick:()=>v(!0),addable:!0,"data-testid":"taxonomy-add-btn","aria-label":"Add category"})]}),b&&(0,i.jsxs)(i.Fragment,{children:[_.map(e=>(0,i.jsx)(r.j8w,{"data-testid":"user-classification-".concat(e),color:"white",closable:!0,onClose:()=>y(e),closeButtonLabel:"Remove category",children:p(e)},e)),(0,i.jsx)(r.j8w,{onClick:()=>v(!0),addable:!0,"data-testid":"taxonomy-add-btn","aria-label":"Add category"})]}),D&&(0,i.jsxs)(r.j8w,{onClick:()=>v(!0),color:"white","data-testid":"classification-".concat(m),hasSparkle:!0,children:[p(m),(0,i.jsx)(r.PJP.I8b,{size:10})]}),f&&(0,i.jsx)(r.xuv,{className:"select-wrapper",position:"absolute",zIndex:10,top:"0",left:"0",width:"100%",height:"max",bgColor:"#fff",children:(0,i.jsx)(o.Z,{selectedTaxonomies:_,onChange:e=>{v(!1),j(e)},onBlur:()=>v(!1),open:!0})})]})}},26183:function(e,t,n){"use strict";var i=n(24246);n(27378),t.Z=e=>{let{children:t,className:n,...r}=e;return(0,i.jsx)("div",{className:"relative flex w-full flex-wrap items-center gap-2 overflow-x-auto py-2 ".concat(n||""),...r,children:t})}},7940:function(e,t,n){"use strict";n.d(t,{G:function(){return r}});var i=n(62656);let r=e=>{var t,n,r;return e?e.resource_type?e.resource_type:(null===(t=e.schemas)||void 0===t?void 0:t.length)?i.D$.DATABASE:(null===(n=e.tables)||void 0===n?void 0:n.length)?i.D$.SCHEMA:(null===(r=e.fields)||void 0===r?void 0:r.length)?i.D$.TABLE:i.D$.FIELD:void 0}},98559:function(e,t){"use strict";t.Z=e=>{let{name:t,urn:n,monitor_config_id:i,database_name:r,schema_name:a,table_name:o,top_level_field_name:s,top_level_field_urn:l}=e;if(!s)return t;let c=n.split(".");return l?n.replace("".concat(l).concat("."),""):([i,r,a,o,s].forEach(e=>{if(e){let t=c.indexOf(e);t>-1&&c.splice(t,1)}}),c.join("."))}},36168:function(e,t){"use strict";t.Z=e=>{var t;return!!e.parent_table_urn&&null!==(t=e.sub_field_urns)&&void 0!==t&&!!t.length&&!e.top_level_field_name}},80356:function(e,t,n){"use strict";var i=n(7940),r=n(36168),a=n(62656);t.Z=e=>(0,i.G)(e)!==a.D$.FIELD||(0,r.Z)(e)},72707:function(e){e.exports={option:"TaxonomySelect_option__vY6v2"}}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6395],{74833:function(t,e,i){var n=i(56127),r=/^\s+/;t.exports=function(t){return t?t.slice(0,n(t)+1).replace(r,""):t}},56127:function(t){var e=/\s/;t.exports=function(t){for(var i=t.length;i--&&e.test(t.charAt(i)););return i}},66726:function(t,e,i){var n=i(11611),r=i(82846),a=i(91936),o=Math.max,l=Math.min;t.exports=function(t,e,i){var s,c,d,u,p,f,x=0,h=!1,m=!1,v=!0;if("function"!=typeof t)throw TypeError("Expected a function");function b(e){var i=s,n=c;return s=c=void 0,x=e,u=t.apply(n,i)}function g(t){var i=t-f,n=t-x;return void 0===f||i>=e||i<0||m&&n>=d}function j(){var t,i,n,a=r();if(g(a))return y(a);p=setTimeout(j,(t=a-f,i=a-x,n=e-t,m?l(n,d-i):n))}function y(t){return(p=void 0,v&&s)?b(t):(s=c=void 0,u)}function C(){var t,i=r(),n=g(i);if(s=arguments,c=this,f=i,n){if(void 0===p)return x=t=f,p=setTimeout(j,e),h?b(t):u;if(m)return clearTimeout(p),p=setTimeout(j,e),b(f)}return void 0===p&&(p=setTimeout(j,e)),u}return e=a(e)||0,n(i)&&(h=!!i.leading,d=(m="maxWait"in i)?o(a(i.maxWait)||0,e):d,v="trailing"in i?!!i.trailing:v),C.cancel=function(){void 0!==p&&clearTimeout(p),x=0,s=f=c=p=void 0},C.flush=function(){return void 0===p?u:y(r())},C}},82846:function(t,e,i){var n=i(77400);t.exports=function(){return n.Date.now()}},91936:function(t,e,i){var n=i(74833),r=i(11611),a=i(55193),o=0/0,l=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,d=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(a(t))return o;if(r(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=r(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=n(t);var i=s.test(t);return i||c.test(t)?d(t.slice(2),i?2:8):l.test(t)?o:+t}},7617:function(t,e,i){"use strict";i.d(e,{q:function(){return a}});var n=i(24246),r=i(77181);let a=t=>{let{label:e,isDisabled:i,...a}=t;return(0,n.jsx)(r.OK9,{"data-testid":"tab-".concat(e),_selected:{fontWeight:"600",color:"complimentary.500",borderColor:"complimentary.500"},fontSize:a.fontSize,fontWeight:"500",color:"gray.500",isDisabled:i||!1,children:e})};e.Z=t=>{let{data:e,border:i="partial",...o}=t;return(0,n.jsxs)(r.mQc,{colorScheme:"complimentary",...o,children:[(0,n.jsx)(r.tdY,{width:"partial"===i?"max-content":void 0,children:e.map(t=>(0,n.jsx)(a,{label:t.label,isDisabled:t.isDisabled,fontSize:o.fontSize},t.label))}),(0,n.jsx)(r.nPR,{children:e.map(t=>(0,n.jsx)(r.x45,{px:0,"data-testid":"tab-panel-".concat(t.label),children:t.content},t.label))})]})}},66379:function(t,e,i){"use strict";var n=i(24246),r=i(77181),a=i(7617);e.Z=t=>{let{data:e,border:i="partial",borderWidth:o=2,...l}=t;return(0,n.jsx)(r.mQc,{colorScheme:"complimentary",...l,children:(0,n.jsx)(r.tdY,{width:"partial"===i?"max-content":void 0,borderBottomWidth:o,children:e.map(t=>(0,n.jsx)(a.q,{label:t.label,"data-testid":t.label,isDisabled:t.isDisabled,fontSize:l.fontSize},t.label))})})}},58754:function(t,e,i){"use strict";var n=i(24246),r=i(77181),a=i(70788);e.Z=t=>{let{heading:e,breadcrumbItems:i,isSticky:o=!0,children:l,rightContent:s,style:c,...d}=t;return(0,n.jsxs)("div",{...d,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",...c}:{paddingBottom:"24px",...c},children:[(0,n.jsxs)(r.jqI,{justify:"space-between",children:["string"==typeof e?(0,n.jsx)(r.X6q,{className:i||l?"pb-4":void 0,fontSize:"2xl","data-testid":"page-heading",children:e}):e,s&&(0,n.jsx)("div",{"data-testid":"page-header-right-content",children:s})]}),!!i&&(0,n.jsx)(a.m,{className:l?"pb-4":void 0,items:i,"data-testid":"page-breadcrumb"}),l]})}},14047:function(t,e,i){"use strict";i.d(e,{H:function(){return a},V:function(){return n.V}});var n=i(84306),r=i(812);let a=()=>{let{errorAlert:t}=(0,n.V)();return{handleError:e=>{let i="An unexpected error occurred. Please try again.";(0,r.Ot)(e)?i=e.data.detail:(0,r.tB)(e)&&(i=e.data.detail[0].msg),t(i)}}}},84306:function(t,e,i){"use strict";i.d(e,{V:function(){return a}});var n=i(24246),r=i(77181);let a=()=>{let t=(0,r.pmc)();return{errorAlert:(e,i,a)=>{let o={...a,position:(null==a?void 0:a.position)||"top",render:t=>{let{onClose:a}=t;return(0,n.jsxs)(r.bZj,{alignItems:"normal",status:"error","data-testid":"error-alert",children:[(0,n.jsx)(r.zMQ,{}),(0,n.jsxs)(r.xuv,{children:[i&&(0,n.jsx)(r.CdC,{children:i}),(0,n.jsx)(r.XaZ,{children:e})]}),(0,n.jsx)(r.PZ7,{onClick:a,position:"relative",right:0,size:"sm",top:-1})]})}};(null==a?void 0:a.id)&&t.isActive(a.id)?t.update(a.id,o):t(o)},successAlert:(e,i,a)=>{let o={...a,position:(null==a?void 0:a.position)||"top",render:t=>{let{onClose:a}=t;return(0,n.jsxs)(r.bZj,{alignItems:"normal",status:"success",variant:"subtle","data-testid":"success-alert",children:[(0,n.jsx)(r.zMQ,{}),(0,n.jsxs)(r.xuv,{children:[i&&(0,n.jsx)(r.CdC,{children:i}),(0,n.jsx)(r.XaZ,{children:e})]}),(0,n.jsx)(r.PZ7,{onClick:a,position:"relative",right:0,size:"sm",top:-1})]})}};(null==a?void 0:a.id)&&t.isActive(a.id)?t.update(a.id,o):t(o)}}}},70788:function(t,e,i){"use strict";i.d(e,{m:function(){return c}});var n=i(24246),r=i(77181),a=i(79894),o=i.n(a),l=i(27378);let{Text:s}=r.AntTypography,c=t=>{let{items:e,...i}=t,a=(0,l.useMemo)(()=>null==e?void 0:e.map((t,i)=>{let a=i===e.length-1,l={...t},c=l.onClick&&!l.href;return("string"==typeof l.title&&(l.title=(0,n.jsx)(s,{style:{color:"inherit",maxWidth:a?void 0:400},ellipsis:!a,children:l.title})),c)?l.title=(0,n.jsx)(r.wpx,{type:"text",size:"small",icon:l.icon,onClick:l.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:l.title}):(l.icon&&(l.title=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"anticon align-text-bottom",children:l.icon}),l.title]})),l.href&&l.title&&(l.title=(0,n.jsx)(o(),{href:l.href,className:"ant-breadcrumb-link",children:l.title}),delete l.href)),l}),[e]);return(0,n.jsx)(r.zrq,{items:a,...i})}},57454:function(t,e,i){"use strict";i.d(e,{M:function(){return s}});var n=i(24246),r=i(66726),a=i.n(r),o=i(27378),l=i(86780);let s=t=>{let{value:e,onChange:i}=t,[r,s]=(0,o.useState)(e),c=a()(i,500),d=(0,o.useCallback)(t=>{s(t),c(t)},[]);return(0,n.jsx)(l.Z,{search:r,onChange:d,onClear:()=>{s(""),i("")}})}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6853],{35287:function(a,n,_){var e=_(24246),i=_(77181),F=_(88038),t=_.n(F);_(27378),n.Z=a=>{let{children:n,title:_,mainProps:F}=a;return(0,e.jsxs)(i.kCb,{"data-testid":_,direction:"column",height:"calc(100vh - 48px)",width:"calc(100vw - 240px)",children:[(0,e.jsxs)(t(),{children:[(0,e.jsxs)("title",{children:["Fides Admin UI - ",_]}),(0,e.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,e.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,e.jsx)(i.kCb,{px:10,py:6,as:"main",overflow:"auto",direction:"column",flex:1,minWidth:0,...F,children:n})]})}},19904:function(a,n,_){_.d(n,{Tg:function(){return t}});var e=_(24246),i=_(16134),F=_(31793);let t=a=>(0,i.C)(F.uu).filter(n=>a.includes(n)).length>0;n.ZP=a=>{let{scopes:n,children:_}=a;return t(n)?(0,e.jsx)(e.Fragment,{children:_}):null}},8411:function(a,n,_){_.d(n,{NA:function(){return F},Z8:function(){return i}});var e=_(62656);let i={[e._F.ER]:"Eritrea",[e._F.DJ]:"Djibouti",[e._F.MR]:"Mauritania",[e._F.NA]:"Namibia",[e._F.GH]:"Ghana",[e._F.SS]:"South Sudan",[e._F.SC]:"Seychelles",[e._F.IO]:"British Indian Ocean Territory",[e._F.GQ]:"Equatorial Guinea",[e._F.AO]:"Angola",[e._F.CG]:"Republic of the Congo",[e._F.BW]:"Botswana",[e._F.BI]:"Burundi",[e._F.DZ]:"Algeria",[e._F.TD]:"Chad",[e._F.NG]:"Nigeria",[e._F.TZ]:"Tanzania",[e._F.EH]:"Western Sahara",[e._F.SN]:"Senegal",[e._F.LR]:"Liberia",[e._F.ZA]:"South Africa",[e._F.CV]:"Cape Verde",[e._F.GM]:"Gambia",[e._F.SD]:"Sudan",[e._F.KM]:"Comoros",[e._F.SZ]:"Eswatini",[e._F.UG]:"Uganda",[e._F.MG]:"Madagascar",[e._F.RW]:"Rwanda",[e._F.CD]:"DR Congo",[e._F.CM]:"Cameroon",[e._F.SH]:"Saint Helena, Ascension and Tristan da Cunha",[e._F.TG]:"Togo",[e._F.MU]:"Mauritius",[e._F.NE]:"Niger",[e._F.BJ]:"Benin",[e._F.EG]:"Egypt",[e._F.LS]:"Lesotho",[e._F.ET]:"Ethiopia",[e._F.MA]:"Morocco",[e._F.YT]:"Mayotte",[e._F.BF]:"Burkina Faso",[e._F.RE]:"R\xe9union",[e._F.ST]:"S\xe3o Tom\xe9 and Pr\xedncipe",[e._F.CF]:"Central African Republic",[e._F.MZ]:"Mozambique",[e._F.MW]:"Malawi",[e._F.ML]:"Mali",[e._F.ZM]:"Zambia",[e._F.LY]:"Libya",[e._F.GW]:"Guinea-Bissau",[e._F.SO]:"Somalia",[e._F.KE]:"Kenya",[e._F.GN]:"Guinea",[e._F.ZW]:"Zimbabwe",[e._F.TN]:"Tunisia",[e._F.SL]:"Sierra Leone",[e._F.GA]:"Gabon",[e._F.CI]:"Ivory Coast",[e._F.JO]:"Jordan",[e._F.PK]:"Pakistan",[e._F.KP]:"North Korea",[e._F.MO]:"Macau",[e._F.AM]:"Armenia",[e._F.SY]:"Syria",[e._F.TJ]:"Tajikistan",[e._F.SA]:"Saudi Arabia",[e._F.KR]:"South Korea",[e._F.NP]:"Nepal",[e._F.PH]:"Philippines",[e._F.IQ]:"Iraq",[e._F.LB]:"Lebanon",[e._F.MN]:"Mongolia",[e._F.PS]:"Palestine",[e._F.YE]:"Yemen",[e._F.JP]:"Japan",[e._F.KZ]:"Kazakhstan",[e._F.LK]:"Sri Lanka",[e._F.MM]:"Myanmar",[e._F.KG]:"Kyrgyzstan",[e._F.CN]:"China",[e._F.AF]:"Afghanistan",[e._F.OM]:"Oman",[e._F.IN]:"India",[e._F.LA]:"Laos",[e._F.UZ]:"Uzbekistan",[e._F.MV]:"Maldives",[e._F.ID]:"Indonesia",[e._F.VN]:"Vietnam",[e._F.MY]:"Malaysia",[e._F.TW]:"Taiwan",[e._F.KH]:"Cambodia",[e._F.AE]:"United Arab Emirates",[e._F.HK]:"Hong Kong",[e._F.GE]:"Georgia",[e._F.BD]:"Bangladesh",[e._F.KW]:"Kuwait",[e._F.TM]:"Turkmenistan",[e._F.QA]:"Qatar",[e._F.BH]:"Bahrain",[e._F.BN]:"Brunei",[e._F.TH]:"Thailand",[e._F.BT]:"Bhutan",[e._F.SG]:"Singapore",[e._F.IL]:"Israel",[e._F.AZ]:"Azerbaijan",[e._F.TL]:"Timor-Leste",[e._F.IR]:"Iran",[e._F.TR]:"Turkey",[e._F.MK]:"North Macedonia",[e._F.IE]:"Ireland",[e._F.DK]:"Denmark",[e._F.SK]:"Slovakia",[e._F.MD]:"Moldova",[e._F.AX]:"\xc5land Islands",[e._F.PL]:"Poland",[e._F.BA]:"Bosnia and Herzegovina",[e._F.SM]:"San Marino",[e._F.CZ]:"Czechia",[e._F.EE]:"Estonia",[e._F.XK]:"Kosovo",[e._F.FO]:"Faroe Islands",[e._F.SJ]:"Svalbard and Jan Mayen",[e._F.GG]:"Guernsey",[e._F.FR]:"France",[e._F.NL]:"Netherlands",[e._F.FI]:"Finland",[e._F.PT]:"Portugal",[e._F.DE]:"Germany",[e._F.MT]:"Malta",[e._F.JE]:"Jersey",[e._F.IS]:"Iceland",[e._F.ES]:"Spain",[e._F.GI]:"Gibraltar",[e._F.NO]:"Norway",[e._F.CY]:"Cyprus",[e._F.RS]:"Serbia",[e._F.LT]:"Lithuania",[e._F.MC]:"Monaco",[e._F.LU]:"Luxembourg",[e._F.UA]:"Ukraine",[e._F.IM]:"Isle of Man",[e._F.RO]:"Romania",[e._F.BE]:"Belgium",[e._F.SE]:"Sweden",[e._F.ME]:"Montenegro",[e._F.LV]:"Latvia",[e._F.VA]:"Vatican City",[e._F.AT]:"Austria",[e._F.AL]:"Albania",[e._F.LI]:"Liechtenstein",[e._F.GR]:"Greece",[e._F.IT]:"Italy",[e._F.AD]:"Andorra",[e._F.GB]:"United Kingdom",[e._F.RU]:"Russia",[e._F.SI]:"Slovenia",[e._F.BY]:"Belarus",[e._F.CH]:"Switzerland",[e._F.HU]:"Hungary",[e._F.BG]:"Bulgaria",[e._F.HR]:"Croatia",[e._F.TC]:"Turks and Caicos Islands",[e._F.CW]:"Cura\xe7ao",[e._F.GP]:"Guadeloupe",[e._F.UM]:"United States Minor Outlying Islands",[e._F.GT]:"Guatemala",[e._F.PM]:"Saint Pierre and Miquelon",[e._F.BQ]:"Caribbean Netherlands",[e._F.GL]:"Greenland",[e._F.SX]:"Sint Maarten",[e._F.PA]:"Panama",[e._F.AW]:"Aruba",[e._F.MQ]:"Martinique",[e._F.AG]:"Antigua and Barbuda",[e._F.BM]:"Bermuda",[e._F.CU]:"Cuba",[e._F.GD]:"Grenada",[e._F.NI]:"Nicaragua",[e._F.LC]:"Saint Lucia",[e._F.KN]:"Saint Kitts and Nevis",[e._F.DO]:"Dominican Republic",[e._F.VC]:"Saint Vincent and the Grenadines",[e._F.BZ]:"Belize",[e._F.HT]:"Haiti",[e._F.JM]:"Jamaica",[e._F.BS]:"Bahamas",[e._F.MX]:"Mexico",[e._F.MF]:"Saint Martin",[e._F.SV]:"El Salvador",[e._F.BL]:"Saint Barth\xe9lemy",[e._F.AI]:"Anguilla",[e._F.MS]:"Montserrat",[e._F.VG]:"British Virgin Islands",[e._F.BB]:"Barbados",[e._F.HN]:"Honduras",[e._F.KY]:"Cayman Islands",[e._F.DM]:"Dominica",[e._F.TT]:"Trinidad and Tobago",[e._F.CR]:"Costa Rica",[e._F.SR]:"Suriname",[e._F.CX]:"Christmas Island",[e._F.WS]:"Samoa",[e._F.PF]:"French Polynesia",[e._F.AS]:"American Samoa",[e._F.NC]:"New Caledonia",[e._F.TK]:"Tokelau",[e._F.PW]:"Palau",[e._F.KI]:"Kiribati",[e._F.VU]:"Vanuatu",[e._F.PN]:"Pitcairn Islands",[e._F.CK]:"Cook Islands",[e._F.FJ]:"Fiji",[e._F.PG]:"Papua New Guinea",[e._F.MP]:"Northern Mariana Islands",[e._F.NU]:"Niue",[e._F.TV]:"Tuvalu",[e._F.NF]:"Norfolk Island",[e._F.TO]:"Tonga",[e._F.FM]:"Micronesia",[e._F.SB]:"Solomon Islands",[e._F.NR]:"Nauru",[e._F.WF]:"Wallis and Futuna",[e._F.GU]:"Guam",[e._F.AU]:"Australia",[e._F.NZ]:"New Zealand",[e._F.MH]:"Marshall Islands",[e._F.CC]:"Cocos (Keeling) Islands",[e._F.VE]:"Venezuela",[e._F.PY]:"Paraguay",[e._F.BR]:"Brazil",[e._F.CO]:"Colombia",[e._F.PE]:"Peru",[e._F.CL]:"Chile",[e._F.UY]:"Uruguay",[e._F.AR]:"Argentina",[e._F.GY]:"Guyana",[e._F.BO]:"Bolivia",[e._F.GF]:"French Guiana",[e._F.EC]:"Ecuador",[e._F.FK]:"Falkland Islands",[e._F.US_AL]:"Alabama",[e._F.US_AK]:"Alaska",[e._F.US_AZ]:"Arizona",[e._F.US_AR]:"Arkansas",[e._F.US_CA]:"California",[e._F.US_CO]:"Colorado",[e._F.US_CT]:"Connecticut",[e._F.US_DE]:"Delaware",[e._F.US_DC]:"District of Columbia (DC)",[e._F.US_FL]:"Florida",[e._F.US_GA]:"Georgia",[e._F.US_HI]:"Hawaii",[e._F.US_ID]:"Idaho",[e._F.US_IL]:"Illinois",[e._F.US_IN]:"Indiana",[e._F.US_IA]:"Iowa",[e._F.US_KS]:"Kansas",[e._F.US_KY]:"Kentucky",[e._F.US_LA]:"Louisiana",[e._F.US_ME]:"Maine",[e._F.US_MD]:"Maryland",[e._F.US_MA]:"Massachusetts",[e._F.US_MI]:"Michigan",[e._F.US_MN]:"Minnesota",[e._F.US_MS]:"Mississippi",[e._F.US_MO]:"Missouri",[e._F.US_MT]:"Montana",[e._F.US_NE]:"Nebraska",[e._F.US_NV]:"Nevada",[e._F.US_NH]:"New Hampshire",[e._F.US_NJ]:"New Jersey",[e._F.US_NM]:"New Mexico",[e._F.US_NY]:"New York",[e._F.US_NC]:"North Carolina",[e._F.US_ND]:"North Dakota",[e._F.US_OH]:"Ohio",[e._F.US_OK]:"Oklahoma",[e._F.US_OR]:"Oregon",[e._F.US_PA]:"Pennsylvania",[e._F.US_PR]:"Puerto Rico",[e._F.US_RI]:"Rhode Island",[e._F.US_SC]:"South Carolina",[e._F.US_SD]:"San Diego",[e._F.US_TN]:"Tennessee",[e._F.US_TX]:"Texas",[e._F.US_UT]:"Utah",[e._F.US_VA]:"Virginia",[e._F.US_VI]:"United States Virgin Islands",[e._F.US_VT]:"Vermon",[e._F.US_WA]:"Washington",[e._F.US_WV]:"West Virginia",[e._F.US_WI]:"Wisconsin",[e._F.US_WY]:"Wyoming",[e._F.CA_AB]:"Alberta",[e._F.CA_BC]:"British Columbia",[e._F.CA_MB]:"Manitoba",[e._F.CA_NB]:"New Brunswick",[e._F.CA_NL]:"Newfoundland and Labrador",[e._F.CA_NS]:"Nova Scotia",[e._F.CA_ON]:"Ontario",[e._F.CA_PE]:"Prince Edward Island",[e._F.CA_QC]:"Quebec",[e._F.CA_SK]:"Saskatchewan",[e._F.CA_NT]:"Northwest Territories",[e._F.CA_NU]:"Nunavut",[e._F.CA_YT]:"Yukon",[e._F.CA]:"Canada",[e._F.US]:"United States",[e._F.MEXICO_CENTRAL_AMERICA]:"Mexico and Central America",[e._F.CARIBBEAN]:"Caribbean",[e._F.EEA]:"European Economic Area (EEA)",[e._F.NON_EEA]:"Non European Economic Area"},F=new Map(Object.entries(i));Object.entries(i).map(a=>({value:a[0],label:a[1]}))},22286:function(a,n,_){_.d(n,{JA:function(){return l},JL:function(){return u},Mq:function(){return d},PS:function(){return M},jN:function(){return c}});var e=_(24246),i=_(77181),F=_(27378),t=_(8411),r=_(72625),o=_(65063),s=_(71922);let l=a=>{var n;let _=null!==(n=o.ye.get(a))&&void 0!==n?n:a;return(0,e.jsx)(i.j8w,{"data-testid":"status-badge",style:{textTransform:"uppercase"},children:_})},u=a=>{if(!a)return[];let n=[];return a.forEach(a=>{let _=t.NA.get(a);void 0!==_&&n.push(_)}),n},d=a=>{if(!a)return[];let n=[];return a.forEach(a=>{let _=a.name;void 0!==_&&n.push(_)}),n},S={available:{color:"warning",tooltip:"This notice is associated with a system + data use and can be enabled"},enabled:{color:"success",tooltip:"This notice is active and available for consumers"},inactive:{color:"default",tooltip:"This privacy notice cannot be enabled because it either does not have a data use or the linked data use has not been assigned to a system"}},c=a=>{let n;let{row:_}=a,{systems_applicable:F,disabled:t,data_uses:r}=_.original,{tooltip:o,...s}=(n=r&&F?t?"available":"enabled":"inactive")?S[n]:{color:"default"};return(0,e.jsx)(i.esZ,{title:o,children:(0,e.jsx)("span",{children:(0,e.jsx)(i.j8w,{color:s.color,"data-testid":"status-badge",style:{textTransform:"uppercase"},children:n})})})},M=a=>{let{row:n,getValue:_}=a,[i]=(0,s.vK)(),[t,o]=(0,F.useState)(!1),l=_(),u=async a=>{o(!0);let _=await i({id:n.original.id,disabled:!a});return o(!1),_},{systems_applicable:d,disabled:S,data_uses:c}=n.original;return(0,e.jsx)(r.S1,{enabled:!l,isDisabled:S&&!d||!c,onToggle:u,title:"Disable privacy notice",message:"Are you sure you want to disable this privacy notice? Disabling this notice means your users will no longer see this explanation about your data uses which is necessary to ensure compliance.",loading:t})}},65063:function(a,n,_){_.d(n,{B8:function(){return F},Ep:function(){return t},ye:function(){return i}});var e=_(62656);let i=new Map([[e.J7.OPT_IN,"Opt in"],[e.J7.NOTICE_ONLY,"Notice only"],[e.J7.OPT_OUT,"Opt out"]]),F=new Map([[e.QT.SYSTEM_WIDE,"System wide"],[e.QT.FRONTEND,"Front end"],[e.QT.NOT_APPLICABLE,"Not applicable"]]),t=new Map([["gpp_us_national","GPP US National"],["gpp_us_state","GPP US State"]])}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6954],{58754:function(e,n,t){var a=t(24246),i=t(77181),l=t(70788);n.Z=e=>{let{heading:n,breadcrumbItems:t,isSticky:s=!0,children:r,rightContent:o,style:d,...c}=e;return(0,a.jsxs)("div",{...c,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",...d}:{paddingBottom:"24px",...d},children:[(0,a.jsxs)(i.jqI,{justify:"space-between",children:["string"==typeof n?(0,a.jsx)(i.X6q,{className:t||r?"pb-4":void 0,fontSize:"2xl","data-testid":"page-heading",children:n}):n,o&&(0,a.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!t&&(0,a.jsx)(l.m,{className:r?"pb-4":void 0,items:t,"data-testid":"page-breadcrumb"}),r]})}},10342:function(e,n,t){var a=t(24246),i=t(77181),l=t(91613);n.Z=e=>{let{title:n,tooltip:t,children:s,...r}=e;return(0,a.jsxs)(i.xuv,{borderRadius:"md",border:"1px solid",borderColor:"gray.200",...r,children:[(0,a.jsxs)(i.X6q,{as:"h3",fontSize:"sm",fontWeight:"semibold",color:"gray.700",py:4,px:6,backgroundColor:"gray.50",borderRadius:"md",textAlign:"left",children:[n,t?(0,a.jsx)(i.xvT,{as:"span",mx:1,children:(0,a.jsx)(l.Z,{label:t})}):void 0]}),(0,a.jsx)(i.Kqy,{p:6,spacing:6,children:s})]})}},70788:function(e,n,t){t.d(n,{m:function(){return d}});var a=t(24246),i=t(77181),l=t(79894),s=t.n(l),r=t(27378);let{Text:o}=i.AntTypography,d=e=>{let{items:n,...t}=e,l=(0,r.useMemo)(()=>null==n?void 0:n.map((e,t)=>{let l=t===n.length-1,r={...e},d=r.onClick&&!r.href;return("string"==typeof r.title&&(r.title=(0,a.jsx)(o,{style:{color:"inherit",maxWidth:l?void 0:400},ellipsis:!l,children:r.title})),d)?r.title=(0,a.jsx)(i.wpx,{type:"text",size:"small",icon:r.icon,onClick:r.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:r.title}):(r.icon&&(r.title=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:"anticon align-text-bottom",children:r.icon}),r.title]})),r.href&&r.title&&(r.title=(0,a.jsx)(s(),{href:r.href,className:"ant-breadcrumb-link",children:r.title}),delete r.href)),r}),[n]);return(0,a.jsx)(i.zrq,{items:l,...t})}},34391:function(e,n,t){t.d(n,{Z:function(){return K}});var a=t(24246),i=t(51472),l=t(77181),s=t(34090),r=t(79894),o=t.n(r),d=t(86677),c=t(27378),u=t(16134),p=t(10342),m=t(40324),g=t(812),h=t(77830),x=t(8411),v=t(91613),j=t(46628),f=t(28079),b=t(7426),y=t(34334),_=t(16277);let w=e=>{let{index:n}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(m.j0,{autoFocus:0!==n,name:"translations.".concat(n,".title"),label:"Title of privacy notice as displayed to user",variant:"stacked"}),(0,a.jsx)(m.Ks,{name:"translations.".concat(n,".description"),label:"Privacy notice displayed to the user",variant:"stacked"})]})},C=e=>{let{index:n,name:t,isOOB:i}=e;return(0,a.jsxs)(l.kCb,{direction:"column",gap:6,children:[(0,a.jsxs)(l.X6q,{size:"sm",children:["Edit ",t," translation"]}),i?(0,a.jsx)(_.f,{languageName:t}):null,(0,a.jsx)(w,{index:n})]})},k=e=>{let{translation:n,name:t,onLanguageDeleted:i}=e;return(0,a.jsxs)(l.kCb,{gap:2,direction:"row",w:"100%",children:[(0,a.jsx)(l.OK9,{as:l.wpx,fontWeight:"normal",className:"grow overflow-x-hidden border-gray-300",textOverflow:"ellipsis",_selected:{color:"white",bg:"gray.500"},children:t},n.language),i&&(0,a.jsx)(l.wpx,{"aria-label":"Delete translation",onClick:()=>i(n.language),icon:(0,a.jsx)(l.pJl,{boxSize:3}),className:"min-w-4"})]})};var N=e=>{var n;let{availableTranslations:t}=e,{values:i,setFieldValue:r}=(0,s.u6)(),[o,d]=(0,c.useState)(!1),[m,g]=(0,c.useState)(!1),[h,x]=(0,c.useState)(0),{data:v}=(0,b.tB)({api_set:!1}),j=null==v?void 0:null===(n=v.plus_consent_settings)||void 0===n?void 0:n.enable_translations,f=(0,u.C)(y.Zp),_=(0,u.C)(y.G1);(0,y.Ah)({page:f,size:_});let N=(0,u.C)(y.fJ).slice().sort((e,n)=>e.name.localeCompare(n.name)),T=N.filter(e=>{var n;return null===(n=i.translations)||void 0===n?void 0:n.every(n=>n.language!==e.id)}).map(e=>({label:e.name,value:e.id})),S=e=>{let n=i.translations?i.translations.slice().filter(n=>n.language!==e):[],t=h===n.length?n.length-1:h;r("translations",n),x(t)},O=e=>{var n,t;return null!==(t=null===(n=N.find(n=>n.id===e))||void 0===n?void 0:n.name)&&void 0!==t?t:e};return j?(0,a.jsx)(p.Z,{title:"Localizations",children:(0,a.jsxs)(l.mQc,{index:h,onChange:e=>{x(e),g(!1)},as:l.Ugi,spacing:8,align:"start",w:"100%",orientation:"vertical",variant:"unstyled",children:[(0,a.jsxs)(l.gCW,{spacing:4,minW:"30%",p:2,children:[(0,a.jsx)(l.tdY,{w:"100%",children:(0,a.jsx)(l.gCW,{spacing:2,w:"100%",p:4,maxH:60,overflow:"scroll",outline:"1px solid",outlineColor:"gray.200",borderRadius:"md",children:i.translations.map(e=>(0,a.jsx)(k,{translation:e,name:O(e.language),onLanguageDeleted:S},e.language))})}),o&&(0,a.jsx)(l.WPr,{autoFocus:!0,defaultOpen:!0,allowClear:!0,placeholder:"Select a language...",options:T,onChange:e=>{let n=null==t?void 0:t.find(n=>n.language===e);g(!!n),x(i.translations.length),r("translations",[...i.translations,null!=n?n:{language:e,title:"",description:""}]),d(!1)},"data-testid":"select-language",className:"w-full"}),!o&&!!T.length&&(0,a.jsx)(l.wpx,{icon:(0,a.jsx)(l.jBn,{boxSize:6}),onClick:()=>d(!0),"data-testid":"add-language-btn",className:"w-full",children:"Add a language"})]}),(0,a.jsx)(l.xuv,{w:"100%",children:(0,a.jsx)(s.F2,{name:"translations",render:()=>(0,a.jsx)(l.nPR,{w:"100%",children:i.translations.map((e,n)=>(0,a.jsx)(l.x45,{children:(0,a.jsx)(C,{index:n,name:O(e.language),isOOB:m})},e.language))})})})]})}):(0,a.jsx)(p.Z,{title:"Notice text",children:(0,a.jsx)(w,{index:0})})},T=t(97181),S=t(55484),O=t(16394),z=t(65063),P=t(62656);let q=(0,O.Jt)(z.ye),E=(0,O.Jt)(z.B8),R=[{language:P.eU.EN,title:"",description:""}],Z={name:"",consent_mechanism:P.J7.OPT_IN,data_uses:[],enforcement_level:P.QT.FRONTEND,disabled:!0,translations:R,children:[]},F=e=>{var n,t,a,i;return{name:null!==(n=e.name)&&void 0!==n?n:Z.name,consent_mechanism:null!==(t=e.consent_mechanism)&&void 0!==t?t:Z.consent_mechanism,data_uses:null!==(a=e.data_uses)&&void 0!==a?a:Z.data_uses,enforcement_level:null!==(i=e.enforcement_level)&&void 0!==i?i:Z.enforcement_level,notice_key:e.notice_key,disabled:e.disabled,has_gpc_flag:e.has_gpc_flag,id:e.id,internal_description:e.internal_description,translations:e.translations?e.translations.map(e=>{var n;let{privacy_notice_history_id:t,...a}=e;return{...a,title:null!==(n=e.title)&&void 0!==n?n:""}}):R,children:e.children}},I=S.Ry().shape({name:S.Z_().required().label("Title"),consent_mechanism:S.Z_().required().label("Consent mechanism")});var J=t(14441),L=t.n(J),B=e=>{let{isEditing:n}=e,{values:t,setFieldValue:i}=(0,s.u6)();return(0,c.useEffect)(()=>{n||i("notice_key",L()(t.name))},[t.name,n,i]),(0,a.jsx)(m.j0,{name:"notice_key",label:"Key used in Fides cookie",variant:"stacked"})},W=t(71922);let{Text:A}=l.AntTypography,D=e=>{let{regions:n,label:t,tooltip:i}=e;return(0,a.jsxs)(l.gCW,{align:"start",children:[(0,a.jsxs)(l.kCb,{align:"start",children:[t?(0,a.jsx)(l.lXp,{htmlFor:"regions",fontSize:"xs",my:0,mr:1,children:t}):null,i?(0,a.jsx)(v.Z,{label:i}):null]}),(0,a.jsx)(l.xuv,{w:"100%","data-testid":"notice-locations",children:(0,a.jsxs)(l.vyj,{size:[0,2],wrap:!0,children:[null==n?void 0:n.map(e=>(0,a.jsx)(l.j8w,{children:x.Z8[e]},e)),!(null==n?void 0:n.length)&&(0,a.jsxs)(A,{italic:!0,children:["No locations assigned. Navigate to the"," ",(0,a.jsx)(o(),{href:h.w0,children:"experiences view"})," ","configure."]})]})})]})};var K=e=>{let{privacyNotice:n,availableTranslations:t}=e,r=(0,d.useRouter)(),o=(0,l.pmc)(),x=n?F(n):Z;(0,f.fd)();let v=(0,u.C)(f.qv),b=(0,u.C)(W.sX),y=(0,u.C)(W.Zp),_=(0,u.C)(W.G1);(0,W.J6)({page:y,size:_});let w=e=>{var n;let{id:t}=e,a=b.find(e=>e.id===t);return null!==(n=null==a?void 0:a.name)&&void 0!==n?n:t},C=b.some(e=>{var t;return null===(t=e.children)||void 0===t?void 0:t.some(e=>e.id===(null==n?void 0:n.id))}),[k]=(0,W.vL)(),[S]=(0,W.p4)(),O=(0,c.useMemo)(()=>!!n,[n]),z=async e=>{let t;if(O){var a,i;let l={...e,id:n.id,translations:null!==(a=e.translations)&&void 0!==a?a:[],children:null!==(i=e.children)&&void 0!==i?i:[]};t=await k(l)}else t=await S(e);(0,g.D4)(t)?o((0,j.Vo)((0,g.e$)(t.error))):(o((0,j.t5)("Privacy notice ".concat(O?"updated":"created"))),O||r.push(h.IT))};return(0,a.jsx)(s.J9,{initialValues:x,enableReinitialize:!0,onSubmit:z,validationSchema:I,children:e=>{var o,d;let{values:c,setFieldValue:u,dirty:g,isValid:h,isSubmitting:x}=e;return(0,a.jsx)(s.l0,{children:(0,a.jsxs)(l.Kqy,{spacing:10,children:[(0,a.jsxs)(l.Kqy,{spacing:6,children:[(0,a.jsxs)(p.Z,{title:"Privacy notice details",children:[(0,a.jsx)(m.j0,{label:"Notice title",name:"name",isRequired:!0,variant:"stacked"}),(0,a.jsx)(T.d,{name:"consent_mechanism",label:"Consent mechanism",options:q,isRequired:!0,layout:"stacked"}),(0,a.jsx)(B,{isEditing:O}),(0,a.jsx)(m.w8,{name:"has_gpc_flag",label:"Configure whether this notice conforms to the Global Privacy Control",variant:"stacked"}),(0,a.jsx)(D,{regions:null==n?void 0:n.configured_regions,label:"Locations where privacy notice is shown to visitors",tooltip:"To configure locations, change the privacy experiences where this notice is shown"}),(0,a.jsx)(l.izJ,{}),!C&&(0,a.jsx)(i.Z,{label:"Child notices",addButtonLabel:"Add notice children",allItems:b.map(e=>({id:e.id,name:e.name})),values:null!==(d=null===(o=c.children)||void 0===o?void 0:o.map(e=>({id:e.id,name:e.name})))&&void 0!==d?d:[],setValues:e=>u("children",e),idField:"id",getItemLabel:w,draggable:!0,maxHeight:100,baseTestId:"children"}),(0,a.jsx)(T.d,{name:"data_uses",label:"Data use",options:v,mode:"multiple",layout:"stacked"}),(0,a.jsx)(T.d,{name:"enforcement_level",label:"Enforcement level",options:E,isRequired:!0,layout:"stacked"})]}),(0,a.jsx)(N,{availableTranslations:t})]}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(l.wpx,{onClick:()=>{r.back()},children:"Cancel"}),(0,a.jsx)(l.wpx,{htmlType:"submit",type:"primary",disabled:x||!g||!h,loading:x,"data-testid":"save-btn",children:"Save"})]})]})})}})}},65063:function(e,n,t){t.d(n,{B8:function(){return l},Ep:function(){return s},ye:function(){return i}});var a=t(62656);let i=new Map([[a.J7.OPT_IN,"Opt in"],[a.J7.NOTICE_ONLY,"Notice only"],[a.J7.OPT_OUT,"Opt out"]]),l=new Map([[a.QT.SYSTEM_WIDE,"System wide"],[a.QT.FRONTEND,"Front end"],[a.QT.NOT_APPLICABLE,"Not applicable"]]),s=new Map([["gpp_us_national","GPP US National"],["gpp_us_state","GPP US State"]])}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7751],{74833:function(e,t,i){var n=i(56127),r=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(r,""):e}},56127:function(e){var t=/\s/;e.exports=function(e){for(var i=e.length;i--&&t.test(e.charAt(i)););return i}},91936:function(e,t,i){var n=i(74833),r=i(11611),s=i(55193),l=0/0,c=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,d=/^0o[0-7]+$/i,a=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(s(e))return l;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var i=o.test(e);return i||d.test(e)?a(e.slice(2),i?2:8):c.test(e)?l:+e}},18225:function(e,t,i){"use strict";var n=i(24246),r=i(77181);t.Z=e=>{let{...t}=e;return(0,n.jsx)(r.kCb,{boxSize:"full",align:"center",justify:"center",children:(0,n.jsx)(r.$jN,{color:"primary",...t})})}},77213:function(e,t,i){"use strict";i.d(t,{Z:function(){return f}});var n=i(24246),r=i(77181),s=i(88038),l=i.n(s),c=i(86677);i(27378);var o=i(25980),d=i(90867),a=i(77830),u=()=>{let e=(0,c.useRouter)();return(0,n.jsx)(r.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,n.jsxs)(r.xuv,{children:[(0,n.jsxs)(r.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,n.jsx)(r.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,n.jsx)(r.wpx,{onClick:()=>{e.push(a.fz)},children:"Configure"})]}),(0,n.jsxs)(r.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},f=e=>{let{children:t,title:i,padded:s=!0,mainProps:a}=e,f=(0,o.hz)(),x=(0,c.useRouter)(),h="/privacy-requests"===x.pathname||"/datastore-connection"===x.pathname,p=!(f.flags.privacyRequestsConfiguration&&h),{data:j}=(0,d.JE)(void 0,{skip:p}),{data:m}=(0,d.PW)(void 0,{skip:p}),v=f.flags.privacyRequestsConfiguration&&(!j||!m)&&h;return(0,n.jsxs)(r.kCb,{"data-testid":i,direction:"column",h:"100vh",children:[(0,n.jsxs)(l(),{children:[(0,n.jsxs)("title",{children:["Fides Admin UI - ",i]}),(0,n.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,n.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,n.jsxs)(r.kCb,{as:"main",direction:"column",py:s?6:0,px:s?10:0,h:s?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...a,children:[v?(0,n.jsx)(u,{}):null,t]})]})}},58754:function(e,t,i){"use strict";var n=i(24246),r=i(77181),s=i(70788);t.Z=e=>{let{heading:t,breadcrumbItems:i,isSticky:l=!0,children:c,rightContent:o,style:d,...a}=e;return(0,n.jsxs)("div",{...a,style:l?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...d}:{paddingBottom:"24px",...d},children:[(0,n.jsxs)(r.jqI,{justify:"space-between",children:["string"==typeof t?(0,n.jsx)(r.X6q,{className:i||c?"pb-4":void 0,fontSize:"2xl","data-testid":"page-heading",children:t}):t,o&&(0,n.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!i&&(0,n.jsx)(s.m,{className:c?"pb-4":void 0,items:i,"data-testid":"page-breadcrumb"}),c]})}},79789:function(e,t,i){"use strict";i.d(t,{Hn:function(){return c},XU:function(){return l},Z5:function(){return o},aG:function(){return u},cB:function(){return s},hX:function(){return a},vQ:function(){return d}});var n=i(24246),r=i(77181);let s=e=>{let{text:t,...i}=e;return(0,n.jsx)(r.X6q,{fontSize:"sm",mt:4,mb:1,...i,children:t})},l=e=>{let{children:t}=e;return(0,n.jsx)(r.xvT,{fontSize:"14px",mb:4,children:t})},c=e=>{let{children:t,href:i}=e;return(0,n.jsx)(r.rUS,{href:i,textDecoration:"underline",isExternal:!0,children:t})},o=e=>{let{children:t}=e;return(0,n.jsx)(r.QI$,{fontSize:"14px",mb:4,children:t})},d=e=>{let{children:t}=e;return(0,n.jsx)(r.GSI,{fontSize:"14px",mb:4,ml:6,children:t})},a=e=>{let{children:t}=e;return(0,n.jsx)(r.EKh,{display:"block",whiteSpace:"pre",p:4,mb:4,overflowX:"scroll",children:t})},u=e=>{let{data:t}=e;return(0,n.jsxs)(r.iA_,{fontSize:"14px",children:[(0,n.jsx)(r.hrZ,{children:(0,n.jsxs)(r.Tr,{children:[(0,n.jsx)(r.Th,{children:"Permission"}),(0,n.jsx)(r.Th,{children:"Description"})]})}),(0,n.jsx)(r.p3B,{children:t.map(e=>(0,n.jsxs)(r.Tr,{children:[(0,n.jsx)(r.Td,{children:(0,n.jsx)(r.Vp9,{children:e.permission})}),(0,n.jsx)(r.Td,{children:e.description})]},e.permission))})]})}},70788:function(e,t,i){"use strict";i.d(t,{m:function(){return d}});var n=i(24246),r=i(77181),s=i(79894),l=i.n(s),c=i(27378);let{Text:o}=r.AntTypography,d=e=>{let{items:t,...i}=e,s=(0,c.useMemo)(()=>null==t?void 0:t.map((e,i)=>{let s=i===t.length-1,c={...e},d=c.onClick&&!c.href;return("string"==typeof c.title&&(c.title=(0,n.jsx)(o,{style:{color:"inherit",maxWidth:s?void 0:400},ellipsis:!s,children:c.title})),d)?c.title=(0,n.jsx)(r.wpx,{type:"text",size:"small",icon:c.icon,onClick:c.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:c.title}):(c.icon&&(c.title=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"anticon align-text-bottom",children:c.icon}),c.title]})),c.href&&c.title&&(c.title=(0,n.jsx)(l(),{href:c.href,className:"ant-breadcrumb-link",children:c.title}),delete c.href)),c}),[t]);return(0,n.jsx)(r.zrq,{items:s,...i})}},89200:function(e,t,i){"use strict";var n=i(24246),r=i(14481),s=i(98559),l=i(80356);t.Z=e=>{let{resource:t}=e;return(0,n.jsx)(r.G3,{value:(0,s.Z)(t),fontWeight:(0,l.Z)(t)?"semibold":"normal"})}},5945:function(e,t,i){"use strict";var n=i(24246),r=i(14481),s=i(8151);let l={[s.e.ATTENTION_REQUIRED]:"error",[s.e.APPROVED]:"success",[s.e.IN_REVIEW]:"warning",[s.e.CLASSIFYING]:"info",[s.e.NONE]:"marble"};t.Z=e=>{let{status:t}=e;return(0,n.jsx)(r.A4,{color:l[t],value:t})}},99763:function(e,t,i){"use strict";var n=i(24246),r=i(77181),s=i(79789),l=i(8151),c=i(61099),o=i(7940),d=i(62656);t.Z=e=>{var t;let{resource:i,onClose:a}=e,u=(0,o.G)(i),f=(0,l.u)(i),x=(u===d.D$.FIELD||u===d.D$.TABLE)&&f===l.e.IN_REVIEW;return(0,n.jsxs)(r.dys,{isOpen:!!i,onClose:a,size:"md",children:[(0,n.jsx)(r.P1B,{}),(0,n.jsxs)(r.scA,{"data-testid":"resource-details",children:[(0,n.jsx)(r.OXI,{children:(null==i?void 0:i.name)||(null==i?void 0:i.urn)}),(0,n.jsx)(r.cCv,{}),(0,n.jsxs)(r.Ng0,{children:[(0,n.jsx)(s.cB,{text:"Title",mt:0}),(0,n.jsx)(s.XU,{children:null!==(t=null==i?void 0:i.name)&&void 0!==t?t:null==i?void 0:i.urn}),(null==i?void 0:i.description)&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.cB,{text:"Description"}),(0,n.jsx)(s.XU,{children:null==i?void 0:i.description})]}),x&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.cB,{text:"Data categories"}),(0,n.jsx)(c.Z,{resource:i})]})]})]})]})}},28976:function(e,t,i){"use strict";var n=i(24246),r=i(77181);t.Z=e=>{let{onHideClick:t,onDetailClick:i}=e;return(0,n.jsxs)(r.v2r,{children:[(0,n.jsx)(r.j2t,{as:r.wpx,size:"small",type:"text",icon:(0,n.jsx)(r.nXP,{transform:"rotate(90deg)"}),className:"w-6 gap-0","data-testid":"actions-menu"}),(0,n.jsxs)(r.qyq,{children:[i&&(0,n.jsx)(r.sNh,{onClick:i,"data-testid":"view-resource-details",children:"View details"}),t&&(0,n.jsx)(r.sNh,{onClick:t,"data-testid":"hide-resource",children:"Hide"})]})]})}},8151:function(e,t,i){"use strict";i.d(t,{e:function(){return r},u:function(){return l}});var n,r,s=i(62656);(n=r||(r={})).ATTENTION_REQUIRED="Attention required",n.IN_REVIEW="In review",n.APPROVED="Approved",n.CLASSIFYING="Classifying",n.NONE="None";let l=e=>{if(!e)return"Approved";let t=e.diff_status===s.LL.ADDITION||e.diff_status===s.LL.REMOVAL,i=e.child_diff_statuses&&(e.child_diff_statuses[s.LL.ADDITION]||e.child_diff_statuses[s.LL.REMOVAL]);if(t||i)return"Attention required";let n=e.diff_status===s.LL.CLASSIFICATION_QUEUED||e.diff_status===s.LL.CLASSIFYING,r=e.child_diff_statuses&&(e.child_diff_statuses[s.LL.CLASSIFICATION_QUEUED]||e.child_diff_statuses[s.LL.CLASSIFYING]);if(n||r)return"Classifying";let l=e.diff_status===s.LL.CLASSIFICATION_ADDITION||e.diff_status===s.LL.CLASSIFICATION_UPDATE,c=e.child_diff_statuses&&(e.child_diff_statuses[s.LL.CLASSIFICATION_ADDITION]||e.child_diff_statuses[s.LL.CLASSIFICATION_UPDATE]);return l||c?"In review":"Approved"}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[79],{56358:function(e,t,n){n.d(t,{q:function(){return i}});var s=n(24246);let i=(0,n(77181).IUT)({displayName:"TrashCanOutlineIcon",viewBox:"0 0 11 12",path:(0,s.jsx)("path",{d:"M4.5166 1.60859L4.1084 2.21875H7.22363L6.81543 1.60859C6.7832 1.56133 6.72949 1.53125 6.67148 1.53125H4.6584C4.60039 1.53125 4.54668 1.55918 4.51445 1.60859H4.5166ZM7.6748 1.03711L8.46328 2.21875H8.75977H9.79102H9.96289C10.2486 2.21875 10.4785 2.44863 10.4785 2.73438C10.4785 3.02012 10.2486 3.25 9.96289 3.25H9.79102V9.78125C9.79102 10.7309 9.02188 11.5 8.07227 11.5H3.25977C2.31016 11.5 1.54102 10.7309 1.54102 9.78125V3.25H1.36914C1.0834 3.25 0.853516 3.02012 0.853516 2.73438C0.853516 2.44863 1.0834 2.21875 1.36914 2.21875H1.54102H2.57227H2.86875L3.65723 1.03496C3.88066 0.701953 4.25664 0.5 4.6584 0.5H6.67148C7.07324 0.5 7.44922 0.701953 7.67266 1.03496L7.6748 1.03711ZM2.57227 3.25V9.78125C2.57227 10.1615 2.87949 10.4688 3.25977 10.4688H8.07227C8.45254 10.4688 8.75977 10.1615 8.75977 9.78125V3.25H2.57227ZM4.29102 4.625V9.09375C4.29102 9.28281 4.13633 9.4375 3.94727 9.4375C3.7582 9.4375 3.60352 9.28281 3.60352 9.09375V4.625C3.60352 4.43594 3.7582 4.28125 3.94727 4.28125C4.13633 4.28125 4.29102 4.43594 4.29102 4.625ZM6.00977 4.625V9.09375C6.00977 9.28281 5.85508 9.4375 5.66602 9.4375C5.47695 9.4375 5.32227 9.28281 5.32227 9.09375V4.625C5.32227 4.43594 5.47695 4.28125 5.66602 4.28125C5.85508 4.28125 6.00977 4.43594 6.00977 4.625ZM7.72852 4.625V9.09375C7.72852 9.28281 7.57383 9.4375 7.38477 9.4375C7.1957 9.4375 7.04102 9.28281 7.04102 9.09375V4.625C7.04102 4.43594 7.1957 4.28125 7.38477 4.28125C7.57383 4.28125 7.72852 4.43594 7.72852 4.625Z",fill:"currentColor"})})},77213:function(e,t,n){n.d(t,{Z:function(){return u}});var s=n(24246),i=n(77181),r=n(88038),a=n.n(r),o=n(86677);n(27378);var l=n(25980),c=n(90867),d=n(77830),p=()=>{let e=(0,o.useRouter)();return(0,s.jsx)(i.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,s.jsxs)(i.xuv,{children:[(0,s.jsxs)(i.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,s.jsx)(i.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,s.jsx)(i.wpx,{onClick:()=>{e.push(d.fz)},children:"Configure"})]}),(0,s.jsxs)(i.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},u=e=>{let{children:t,title:n,padded:r=!0,mainProps:d}=e,u=(0,l.hz)(),x=(0,o.useRouter)(),h="/privacy-requests"===x.pathname||"/datastore-connection"===x.pathname,g=!(u.flags.privacyRequestsConfiguration&&h),{data:m}=(0,c.JE)(void 0,{skip:g}),{data:j}=(0,c.PW)(void 0,{skip:g}),f=u.flags.privacyRequestsConfiguration&&(!m||!j)&&h;return(0,s.jsxs)(i.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,s.jsxs)(a(),{children:[(0,s.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,s.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,s.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,s.jsxs)(i.kCb,{as:"main",direction:"column",py:r?6:0,px:r?10:0,h:r?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...d,children:[f?(0,s.jsx)(p,{}):null,t]})]})}},58754:function(e,t,n){var s=n(24246),i=n(77181),r=n(70788);t.Z=e=>{let{heading:t,breadcrumbItems:n,isSticky:a=!0,children:o,rightContent:l,style:c,...d}=e;return(0,s.jsxs)("div",{...d,style:a?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...c}:{paddingBottom:"24px",...c},children:[(0,s.jsxs)(i.jqI,{justify:"space-between",children:["string"==typeof t?(0,s.jsx)(i.X6q,{className:n||o?"pb-4":void 0,fontSize:"2xl","data-testid":"page-heading",children:t}):t,l&&(0,s.jsx)("div",{"data-testid":"page-header-right-content",children:l})]}),!!n&&(0,s.jsx)(r.m,{className:o?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),o]})}},19904:function(e,t,n){n.d(t,{Tg:function(){return a}});var s=n(24246),i=n(16134),r=n(31793);let a=e=>(0,i.C)(r.uu).filter(t=>e.includes(t)).length>0;t.ZP=e=>{let{scopes:t,children:n}=e;return a(t)?(0,s.jsx)(s.Fragment,{children:n}):null}},70788:function(e,t,n){n.d(t,{m:function(){return c}});var s=n(24246),i=n(77181),r=n(79894),a=n.n(r),o=n(27378);let{Text:l}=i.AntTypography,c=e=>{let{items:t,...n}=e,r=(0,o.useMemo)(()=>null==t?void 0:t.map((e,n)=>{let r=n===t.length-1,o={...e},c=o.onClick&&!o.href;return("string"==typeof o.title&&(o.title=(0,s.jsx)(l,{style:{color:"inherit",maxWidth:r?void 0:400},ellipsis:!r,children:o.title})),c)?o.title=(0,s.jsx)(i.wpx,{type:"text",size:"small",icon:o.icon,onClick:o.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:o.title}):(o.icon&&(o.title=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"anticon align-text-bottom",children:o.icon}),o.title]})),o.href&&o.title&&(o.title=(0,s.jsx)(a(),{href:o.href,className:"ant-breadcrumb-link",children:o.title}),delete o.href)),o}),[t]);return(0,s.jsx)(i.zrq,{items:r,...n})}},3642:function(e,t,n){var s=n(24246),i=n(77181),r=n(86677),a=n.n(r),o=n(27378),l=n(812),c=n(58452),d=n(77830),p=n(19904),u=n(46628),x=n(98795),h=n(62656);t.Z=e=>{let{property:t,triggerComponent:n}=e,r=(0,i.pmc)(),g=(0,i.qY0)(),[m]=(0,x.YW)(),j=t.experiences.length>0,f=async()=>{g.onClose();let e=await m(t.id);if((0,l.D4)(e)){r((0,u.Vo)((0,l.e$)(e.error)));return}a().push("".concat(d.ru)),r((0,u.t5)("Property ".concat(t.name," deleted successfully")))};return(0,s.jsxs)(p.ZP,{scopes:[h.Sh.PROPERTY_DELETE],children:[(0,s.jsx)(i.ua7,{label:"All of the experiences on this property must be unlinked before the property can be deleted.",placement:"right",isDisabled:!j,children:(0,s.jsx)("span",{children:o.cloneElement(n,{onClick:e=>{e.stopPropagation(),j||g.onOpen()},disabled:j})})}),(0,s.jsx)(c.Z,{isOpen:g.isOpen,onClose:g.onClose,onConfirm:f,title:"Delete ".concat(t.name),message:(0,s.jsxs)(i.xvT,{color:"gray.500",children:["You are about to delete property ",t.name,". This action is not reversible and will result in ",t.name," no longer being available for your data governance. Are you sure you want to proceed?"]}),continueButtonText:"Ok",isCentered:!0,icon:(0,s.jsx)(i.aNP,{})})]})}},25783:function(e,t,n){n.d(t,{V:function(){return M}});var s=n(24246),i=n(92222),r=n(59003),a=n(14481),o=n(77181),l=n(98784),c=n.n(l),d=n(86677),p=n(27378),u=n(77830),x=n(19904),h=n(32885),g=n(98795),m=n(62656),j=e=>{let{buttonLabel:t,buttonProps:n}=e,i=(0,d.useRouter)();return(0,s.jsx)(o.wpx,{onClick:()=>i.push(u.B9),"data-testid":"add-property-button",...n,children:t})},f=n(56358),y=n(88340),C=n(25980),b=n(14048);let v="{privacy-center-hostname-and-path}",w="{property-unique-id}",P='<script src="https://'.concat(v,"/fides.js?property_id=").concat(w,'"></script>'),R="<script>Fides.gtm()</script>";var T=e=>{let{property:t}=e,n=(0,o.qY0)(),i=(0,p.useRef)(null),{fidesCloud:r}=(0,C.hz)(),{data:a,isSuccess:l}=(0,h.Vh)(void 0,{skip:!r}),c=(0,p.useMemo)(()=>{let e=P.replace(w,t.id.toString());return r&&l&&(null==a?void 0:a.privacy_center_url)&&e.replace(v,a.privacy_center_url),e},[null==a?void 0:a.privacy_center_url,r,l,t]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.wpx,{"aria-label":"Install property",size:"small",className:"mr-[10px]",icon:(0,s.jsx)(b.A5,{}),onClick:e=>{e.stopPropagation(),n.onOpen()}}),(0,s.jsxs)(o.u_l,{isOpen:n.isOpen,onClose:n.onClose,isCentered:!0,size:"xl",initialFocusRef:i,children:[(0,s.jsx)(o.ZAr,{}),(0,s.jsxs)(o.hzk,{"data-testid":"copy-js-tag-modal",children:[(0,s.jsx)(o.xBx,{tabIndex:-1,ref:i,pb:0,children:"Install Fides Consent Manager"}),(0,s.jsx)(o.fef,{pt:3,pb:6,fontSize:"14px",fontWeight:500,children:(0,s.jsxs)(o.Kqy,{spacing:3,children:[(0,s.jsxs)(o.xvT,{children:["Copy the code below and paste it onto every page of the"," ",t.name," property."]}),(0,s.jsxs)(o.xvT,{children:["1. Paste this code as high in the ",(0,s.jsx)("b",{children:"<head>"})," of the page as possible:"]}),(0,s.jsxs)(o.EKh,{display:"flex",justifyContent:"space-between",alignItems:"top",p:0,children:[(0,s.jsx)(o.xvT,{p:4,children:c}),(0,s.jsx)(y.Z,{copyText:c})]}),(0,s.jsx)(o.xvT,{children:"2. Optionally, you can enable Google Tag Manager for managing tags on your website by including the script tag below along with the Fides.js tag. Place it below the Fides.js script tag."}),(0,s.jsxs)(o.EKh,{display:"flex",justifyContent:"space-between",alignItems:"center",p:0,children:[(0,s.jsx)(o.xvT,{p:4,children:R}),(0,s.jsx)(y.Z,{copyText:R})]}),(0,s.jsxs)(o.xvT,{children:["For more information about adding a JavaScript tag to your website, please visit"," ",(0,s.jsx)(o.rUS,{color:"complimentary.500",href:"https://docs.ethyca.com/tutorials/consent-management-configuration/install-fides#install-fidesjs-script-on-your-website",isExternal:!0,children:"docs.ethyca.com"})]})]})})]})]})]})},k=n(3642),E=e=>{let{property:t}=e,n=(0,d.useRouter)(),i=()=>{n.push("".concat(u.ru,"/").concat(t.id))};return(0,s.jsxs)(o.xuv,{py:2,children:[(0,s.jsx)(T,{property:t}),(0,s.jsx)(x.ZP,{scopes:[m.Sh.PROPERTY_UPDATE],children:(0,s.jsx)(o.wpx,{"aria-label":"Edit property","data-testid":"edit-property-button",size:"small",className:"mr-[10px]",icon:(0,s.jsx)(o.dY8,{}),onClick:e=>{e.stopPropagation(),i()}})}),(0,s.jsx)(k.Z,{property:t,triggerComponent:(0,s.jsx)(o.wpx,{"aria-label":"Delete property","data-testid":"delete-property-button",size:"small",className:"mr-[10px]",icon:(0,s.jsx)(f.q,{})})})]})};let z=(0,i.Cl)(),Z={items:[],total:0,page:1,size:25,pages:1},H=()=>(0,s.jsx)(o.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",children:(0,s.jsxs)(o.gCW,{children:[(0,s.jsx)(o.xvT,{fontSize:"md",fontWeight:"600",children:"No properties found."}),(0,s.jsxs)(x.ZP,{scopes:[m.Sh.PROPERTY_CREATE],children:[(0,s.jsx)(o.xvT,{fontSize:"sm",children:"Click “Add property” to add your first property to Fides."}),(0,s.jsx)(j,{buttonLabel:"Add property",buttonProps:{type:"primary"}})]})]})}),M=()=>{let{isLoading:e}=(0,h.x8)(),t=(0,x.Tg)([m.Sh.PROPERTY_UPDATE]),{PAGE_SIZES:n,pageSize:l,setPageSize:f,onPreviousPageClick:y,isPreviousPageDisabled:C,onNextPageClick:b,isNextPageDisabled:v,startRange:w,endRange:P,pageIndex:R,setTotalPages:T,resetPageIndexToDefault:k}=(0,a.oi)(),M=(0,d.useRouter)(),[S,V]=(0,p.useState)(),_=(0,p.useCallback)(e=>{k(),V(e)},[k,V]),{isFetching:q,isLoading:N,data:O}=(0,g.gz)({page:R,size:l,search:S}),{items:A,total:F,pages:I}=(0,p.useMemo)(()=>O||Z,[O]);(0,p.useEffect)(()=>{T(I)},[I,T]);let L=(0,p.useMemo)(()=>[z.accessor(e=>e.name,{id:"name",cell:e=>(0,s.jsx)(a.G3,{value:e.getValue()}),header:e=>(0,s.jsx)(a.Rr,{value:"Property",...e})}),z.accessor(e=>e.type,{id:"type",cell:e=>(0,s.jsx)(a.G3,{value:c().capitalize(e.getValue())}),header:e=>(0,s.jsx)(a.Rr,{value:"Type",...e})}),z.accessor(e=>e.experiences.map(e=>e.name),{id:"experiences",cell:e=>(0,s.jsx)(a.WP,{suffix:"experiences",value:e.getValue(),...e}),header:e=>(0,s.jsx)(a.Rr,{value:"Experience",...e}),meta:{showHeaderMenu:!0}}),z.display({id:"actions",header:"Actions",cell:e=>{let{row:t}=e;return(0,s.jsx)(E,{property:t.original})}})],[]),W=(0,r.b7)({getCoreRowModel:(0,i.sC)(),getGroupedRowModel:(0,i.qe)(),getExpandedRowModel:(0,i.rV)(),columns:L,manualPagination:!0,data:A,state:{expanded:!0},columnResizeMode:"onChange"});return N||e?(0,s.jsx)(a.I4,{rowHeight:36,numRows:15}):(0,s.jsx)("div",{children:(0,s.jsxs)(o.kCb,{flex:1,direction:"column",overflow:"auto",children:[(0,s.jsxs)(a.Q$,{children:[(0,s.jsx)(a.HO,{globalFilter:S,setGlobalFilter:_,placeholder:"Search property"}),(0,s.jsx)(o.Ugi,{alignItems:"center",spacing:4,children:(0,s.jsx)(x.ZP,{scopes:[m.Sh.PROPERTY_CREATE],children:(0,s.jsx)(j,{buttonLabel:"Add property"})})})]}),(0,s.jsx)(a.ZK,{tableInstance:W,onRowClick:e=>{t&&M.push({pathname:u.D3,query:{id:e.id}})},emptyTableNotice:(0,s.jsx)(H,{})}),(0,s.jsx)(a.s8,{totalRows:F||0,pageSizes:n,setPageSize:f,onPreviousPageClick:y,isPreviousPageDisabled:C||q,onNextPageClick:b,isNextPageDisabled:v||q,startRange:w,endRange:P})]})})}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8433],{58754:function(e,t,i){var n=i(24246),r=i(77181),s=i(70788);t.Z=e=>{let{heading:t,breadcrumbItems:i,isSticky:l=!0,children:a,rightContent:d,style:o,...c}=e;return(0,n.jsxs)("div",{...c,style:l?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...o}:{paddingBottom:"24px",...o},children:[(0,n.jsxs)(r.jqI,{justify:"space-between",children:["string"==typeof t?(0,n.jsx)(r.X6q,{className:i||a?"pb-4":void 0,fontSize:"2xl","data-testid":"page-heading",children:t}):t,d&&(0,n.jsx)("div",{"data-testid":"page-header-right-content",children:d})]}),!!i&&(0,n.jsx)(s.m,{className:a?"pb-4":void 0,items:i,"data-testid":"page-breadcrumb"}),a]})}},19904:function(e,t,i){i.d(t,{Tg:function(){return l}});var n=i(24246),r=i(16134),s=i(31793);let l=e=>(0,r.C)(s.uu).filter(t=>e.includes(t)).length>0;t.ZP=e=>{let{scopes:t,children:i}=e;return l(t)?(0,n.jsx)(n.Fragment,{children:i}):null}},14047:function(e,t,i){i.d(t,{H:function(){return s},V:function(){return n.V}});var n=i(84306),r=i(812);let s=()=>{let{errorAlert:e}=(0,n.V)();return{handleError:t=>{let i="An unexpected error occurred. Please try again.";(0,r.Ot)(t)?i=t.data.detail:(0,r.tB)(t)&&(i=t.data.detail[0].msg),e(i)}}}},84306:function(e,t,i){i.d(t,{V:function(){return s}});var n=i(24246),r=i(77181);let s=()=>{let e=(0,r.pmc)();return{errorAlert:(t,i,s)=>{let l={...s,position:(null==s?void 0:s.position)||"top",render:e=>{let{onClose:s}=e;return(0,n.jsxs)(r.bZj,{alignItems:"normal",status:"error","data-testid":"error-alert",children:[(0,n.jsx)(r.zMQ,{}),(0,n.jsxs)(r.xuv,{children:[i&&(0,n.jsx)(r.CdC,{children:i}),(0,n.jsx)(r.XaZ,{children:t})]}),(0,n.jsx)(r.PZ7,{onClick:s,position:"relative",right:0,size:"sm",top:-1})]})}};(null==s?void 0:s.id)&&e.isActive(s.id)?e.update(s.id,l):e(l)},successAlert:(t,i,s)=>{let l={...s,position:(null==s?void 0:s.position)||"top",render:e=>{let{onClose:s}=e;return(0,n.jsxs)(r.bZj,{alignItems:"normal",status:"success",variant:"subtle","data-testid":"success-alert",children:[(0,n.jsx)(r.zMQ,{}),(0,n.jsxs)(r.xuv,{children:[i&&(0,n.jsx)(r.CdC,{children:i}),(0,n.jsx)(r.XaZ,{children:t})]}),(0,n.jsx)(r.PZ7,{onClick:s,position:"relative",right:0,size:"sm",top:-1})]})}};(null==s?void 0:s.id)&&e.isActive(s.id)?e.update(s.id,l):e(l)}}}},70788:function(e,t,i){i.d(t,{m:function(){return o}});var n=i(24246),r=i(77181),s=i(79894),l=i.n(s),a=i(27378);let{Text:d}=r.AntTypography,o=e=>{let{items:t,...i}=e,s=(0,a.useMemo)(()=>null==t?void 0:t.map((e,i)=>{let s=i===t.length-1,a={...e},o=a.onClick&&!a.href;return("string"==typeof a.title&&(a.title=(0,n.jsx)(d,{style:{color:"inherit",maxWidth:s?void 0:400},ellipsis:!s,children:a.title})),o)?a.title=(0,n.jsx)(r.wpx,{type:"text",size:"small",icon:a.icon,onClick:a.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:a.title}):(a.icon&&(a.title=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"anticon align-text-bottom",children:a.icon}),a.title]})),a.href&&a.title&&(a.title=(0,n.jsx)(l(),{href:a.href,className:"ant-breadcrumb-link",children:a.title}),delete a.href)),a}),[t]);return(0,n.jsx)(r.zrq,{items:s,...i})}},57526:function(e,t,i){var n=i(24246),r=i(77181),s=i(27378);t.Z=e=>{let{isOpen:t,onClose:i,onApproveRequest:l,isLoading:a,subjectRequest:d}=e,{identity:o,identity_verified_at:c,custom_privacy_request_fields:u}=d,x=(0,s.useCallback)(()=>{l().then(()=>{i()})},[l,i]);return(0,n.jsxs)(r.u_l,{isOpen:t,onClose:i,size:"lg",isCentered:!0,children:[(0,n.jsx)(r.ZAr,{}),(0,n.jsxs)(r.hzk,{children:[(0,n.jsx)(r.xBx,{children:"Privacy request approval"}),(0,n.jsxs)(r.fef,{paddingTop:0,paddingBottom:0,children:[(0,n.jsx)(r.xvT,{color:"gray.500",fontSize:"14px",marginBottom:4,children:"Are you sure you want to approve this privacy request?"}),(0,n.jsxs)(r.QI$,{children:[Object.entries(o).filter(e=>{let[,{value:t}]=e;return null!==t}).map(e=>{let[t,{value:i,label:s}]=e;return(0,n.jsx)(r.HCh,{children:(0,n.jsxs)(r.kCb,{alignItems:"flex-start",children:[(0,n.jsxs)(r.xvT,{mr:2,fontSize:"sm",color:"gray.900",fontWeight:"500",children:[s,":"]}),(0,n.jsx)(r.xvT,{color:"gray.600",fontWeight:"500",fontSize:"sm",mr:2,children:i}),"(",c?"Verified":"Unverified",")"]},t)},t)}),u&&Object.entries(u).filter(e=>{let[,t]=e;return t.value}).map(e=>{let[t,i]=e;return(0,n.jsx)(r.HCh,{children:(0,n.jsxs)(r.kCb,{alignItems:"flex-start",children:[(0,n.jsxs)(r.xvT,{mr:2,fontSize:"sm",color:"gray.900",fontWeight:"500",children:[i.label,":"]}),(0,n.jsxs)(r.xvT,{color:"gray.600",fontWeight:"500",fontSize:"sm",mr:2,children:[Array.isArray(i.value)?i.value.join(", "):i.value," "]}),"(Unverified)"]},t)},t)})]})]}),(0,n.jsx)(r.mzw,{children:(0,n.jsxs)(r.MIq,{columns:2,width:"100%",children:[(0,n.jsx)(r.wpx,{onClick:i,className:"mr-3","data-testid":"cancel-btn",children:"Cancel"}),(0,n.jsx)(r.wpx,{type:"primary","data-testid":"continue-btn",onClick:x,loading:a,children:"Confirm"})]})})]})]})}},66548:function(e,t,i){var n=i(24246),r=i(40324),s=i(77181),l=i(34090),a=i(27378),d=i(55484);let o={denialReason:""};t.Z=e=>{let{isOpen:t,onClose:i,onDenyRequest:c}=e,u=(0,a.useCallback)((e,t)=>{let{setSubmitting:n}=t;c(e.denialReason).then(()=>{n(!1),i()})},[c,i]);return(0,n.jsxs)(s.u_l,{isOpen:t,onClose:i,isCentered:!0,returnFocusOnClose:!1,children:[(0,n.jsx)(s.ZAr,{}),(0,n.jsx)(s.hzk,{width:"100%",maxWidth:"456px","data-testid":"deny-privacy-request-modal",children:(0,n.jsx)(l.J9,{initialValues:o,validationSchema:d.Ry({denialReason:d.Z_().required().label("Reason for denial")}),onSubmit:u,children:e=>{let{isSubmitting:t,dirty:a,isValid:d}=e;return(0,n.jsxs)(l.l0,{children:[(0,n.jsx)(s.xBx,{children:"Privacy request denial"}),(0,n.jsx)(s.fef,{color:"gray.500",fontSize:"14px",children:"Please enter a reason for denying this privacy request. Please note: this can be seen by the user in their notification email."}),(0,n.jsx)(s.fef,{children:(0,n.jsx)(r.Ks,{name:"denialReason",textAreaProps:{focusBorderColor:"primary.600",resize:"none"}})}),(0,n.jsxs)(s.mzw,{className:"flex w-full gap-4",children:[(0,n.jsx)(s.wpx,{disabled:t,onClick:i,className:"grow",children:"Cancel"}),(0,n.jsx)(s.wpx,{htmlType:"submit",type:"primary",disabled:!a||!d,loading:t,className:"grow","data-testid":"deny-privacy-request-modal-btn",children:"Confirm"})]})]})}})})]})}},45489:function(e,t,i){i.d(t,{Z:function(){return r}});var n=i(90867);let r=e=>{let{subjectRequest:t}=e,[i,r]=(0,n.RW)({fixedCacheKey:t.id}),[s,l]=(0,n.F1)({fixedCacheKey:t.id}),[a,d]=(0,n.rC)({fixedCacheKey:t.id}),o=l.isLoading||r.isLoading;return{approveRequest:i,approveRequestResult:r,denyRequest:s,denyRequestResult:l,handleApproveRequest:()=>i(t),handleDenyRequest:e=>s({id:t.id,reason:e}),handleDeleteRequest:()=>a(t),softDeleteRequestResult:d,isLoading:o}}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8934],{77213:function(e,t,a){a.d(t,{Z:function(){return p}});var i=a(24246),s=a(77181),n=a(88038),r=a.n(n),o=a(86677);a(27378);var l=a(25980),d=a(90867),c=a(77830),u=()=>{let e=(0,o.useRouter)();return(0,i.jsx)(s.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,i.jsxs)(s.xuv,{children:[(0,i.jsxs)(s.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,i.jsx)(s.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,i.jsx)(s.wpx,{onClick:()=>{e.push(c.fz)},children:"Configure"})]}),(0,i.jsxs)(s.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:a,padded:n=!0,mainProps:c}=e,p=(0,l.hz)(),m=(0,o.useRouter)(),g="/privacy-requests"===m.pathname||"/datastore-connection"===m.pathname,h=!(p.flags.privacyRequestsConfiguration&&g),{data:v}=(0,d.JE)(void 0,{skip:h}),{data:x}=(0,d.PW)(void 0,{skip:h}),f=p.flags.privacyRequestsConfiguration&&(!v||!x)&&g;return(0,i.jsxs)(s.kCb,{"data-testid":a,direction:"column",h:"100vh",children:[(0,i.jsxs)(r(),{children:[(0,i.jsxs)("title",{children:["Fides Admin UI - ",a]}),(0,i.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,i.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,i.jsxs)(s.kCb,{as:"main",direction:"column",py:n?6:0,px:n?10:0,h:n?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...c,children:[f?(0,i.jsx)(u,{}):null,t]})]})}},58754:function(e,t,a){var i=a(24246),s=a(77181),n=a(70788);t.Z=e=>{let{heading:t,breadcrumbItems:a,isSticky:r=!0,children:o,rightContent:l,style:d,...c}=e;return(0,i.jsxs)("div",{...c,style:r?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...d}:{paddingBottom:"24px",...d},children:[(0,i.jsxs)(s.jqI,{justify:"space-between",children:["string"==typeof t?(0,i.jsx)(s.X6q,{className:a||o?"pb-4":void 0,fontSize:"2xl","data-testid":"page-heading",children:t}):t,l&&(0,i.jsx)("div",{"data-testid":"page-header-right-content",children:l})]}),!!a&&(0,i.jsx)(n.m,{className:o?"pb-4":void 0,items:a,"data-testid":"page-breadcrumb"}),o]})}},70788:function(e,t,a){a.d(t,{m:function(){return d}});var i=a(24246),s=a(77181),n=a(79894),r=a.n(n),o=a(27378);let{Text:l}=s.AntTypography,d=e=>{let{items:t,...a}=e,n=(0,o.useMemo)(()=>null==t?void 0:t.map((e,a)=>{let n=a===t.length-1,o={...e},d=o.onClick&&!o.href;return("string"==typeof o.title&&(o.title=(0,i.jsx)(l,{style:{color:"inherit",maxWidth:n?void 0:400},ellipsis:!n,children:o.title})),d)?o.title=(0,i.jsx)(s.wpx,{type:"text",size:"small",icon:o.icon,onClick:o.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:o.title}):(o.icon&&(o.title=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"anticon align-text-bottom",children:o.icon}),o.title]})),o.href&&o.title&&(o.title=(0,i.jsx)(r(),{href:o.href,className:"ant-breadcrumb-link",children:o.title}),delete o.href)),o}),[t]);return(0,i.jsx)(s.zrq,{items:n,...a})}},31435:function(e,t,a){a.d(t,{Z:function(){return V}});var i=a(24246),s=a(77181),n=a(34090),r=a(27378),o=a(55484),l=a(16134),d=a(25980),c=a(40324),u=a(33335),p=a(32885),m=a(1315),g=a(57865),h=a(72774),v=a(36345),x=a(812),f=a(8133),y=a(46628);let b={name:"",consent_use:"",data_use:"",data_categories:["user"],cookieNames:[],cookies:[]},_=[{label:"Analytics",value:"analytics",description:"Provides analytics for activities such as system and advertising performance reporting, insights and fraud detection."},{label:"Essential",value:"essential",description:"Operates the service or product, including legal obligations, support and basic system operations."},{label:"Functional",value:"functional",description:"Used for specific, necessary, and legitimate purposes."},{label:"Marketing",value:"marketing",description:"Enables marketing, promotion, advertising and sales activities for the product, service, application or system."}],j=e=>_.some(t=>t.value===e.split(".")[0]);var k=a(28079),C=a(69525),w=a(97181);let R=e=>{let{index:t,disabled:a}=e;(0,k.fd)();let r=(0,l.C)(k.oW),{values:o}=(0,n.u6)(),d=r.filter(e=>e.value.split(".")[0]===o.privacy_declarations[t].consent_use);return(0,i.jsxs)(s.gCW,{width:"100%",borderRadius:"4px",border:"1px solid",borderColor:"gray.200",spacing:4,p:4,children:[(0,i.jsx)(w.d,{label:"Consent category",tooltip:"What is the system using the data for. For example, is it for third party advertising or perhaps simply providing system operations.",name:"privacy_declarations.".concat(t,".consent_use"),options:_,layout:"stacked",isRequired:!0,disabled:a}),(0,i.jsx)(w.d,{allowClear:!0,label:"Detailed consent category (optional)",tooltip:"Select a more specific consent category",name:"privacy_declarations.".concat(t,".data_use"),options:d,layout:"stacked",disabled:!o.privacy_declarations[t].consent_use||a}),(0,i.jsx)(w.d,{mode:"tags",label:"Cookie names",name:"privacy_declarations.".concat(t,".cookieNames"),options:[],layout:"stacked",disabled:a,className:"w-full"})]})};var q=e=>{var t,a;let{showSuggestions:o,isCreate:d,disabled:c}=e,{values:u,setFieldValue:m}=(0,n.u6)(),{vendor_id:g}=u,{isLoading:h}=(0,p.Wp)({vendor_id:g},{skip:!o||null==g}),v=(0,l.C)((0,p.cL)(g||""));(0,r.useEffect)(()=>{o&&u.vendor_id&&(null==v?void 0:v.length)?m("privacy_declarations",v.filter(e=>j(e.data_use)).map(e=>(0,C.U)(e)).map(e=>{var t,a,i;return{name:null!==(a=e.name)&&void 0!==a?a:"",consent_use:e.data_use.split(".")[0],data_use:e.data_use,data_categories:e.data_categories,cookieNames:(null===(t=e.cookies)||void 0===t?void 0:t.map(e=>e.name))||[],cookies:null!==(i=e.cookies)&&void 0!==i?i:[]}})):d&&m("privacy_declarations",[b])},[o,d,u.vendor_id,v,m]);let x=(null===(t=u.privacy_declarations[u.privacy_declarations.length-1])||void 0===t?void 0:t.data_use)===b.data_use&&(null===(a=u.privacy_declarations[u.privacy_declarations.length-1])||void 0===a?void 0:a.consent_use)===b.consent_use;return h?(0,i.jsx)(s.$jN,{size:"sm",alignSelf:"center"}):(0,i.jsx)(n.F2,{name:"privacy_declarations",render:e=>(0,i.jsxs)(i.Fragment,{children:[u.privacy_declarations.map((e,t)=>(0,i.jsx)(R,{index:t,disabled:c},e.data_use||t)),(0,i.jsx)(s.wpx,{onClick:()=>e.push(b),size:"small",type:"text",disabled:c||x,"data-testid":"add-data-use-btn",children:"Add data use +"})]})})};let N={name:"",vendor_id:void 0,privacy_declarations:[b]};var V=e=>{let{buttonLabel:t,onButtonClick:a,buttonProps:_}=e,j=(0,s.pmc)(),{isOpen:k,onOpen:C,onClose:w}=(0,s.qY0)(),R=(0,l.T)(),[V]=(0,m.in)(),F=(0,r.useMemo)(()=>o.Ry().shape({name:o.Z_().required().label("Vendor name").test("is-unique","",async(e,t)=>{let{data:a}=await V({page:1,size:10,search:e});return!((null==a?void 0:a.items)||[]).some(t=>t.name===e)||t.createError({message:'You already have a vendor called "'.concat(e,'". Please specify a unique name for this vendor.')})})}),[V]),{tcf:z,dictionaryService:L}=(0,d.hz)(),{isLoading:S}=(0,p.Rd)(void 0,{skip:!L}),W=(0,l.C)(p.o),E=(0,l.C)(g.gU),[T]=(0,m.f7)(),G=(0,l.C)(g.bN),Z=()=>{w(),R((0,g.b3)("initial")),R((0,g.gQ)(!1))},U=(0,r.useRef)(null),A=U.current?U.current.values.vendor_id:void 0,I=(0,l.C)((0,p.$e)(A||"")),M=async(e,t)=>{let a=e.privacy_declarations.filter(e=>e.consent_use!==b.consent_use).flatMap(e=>{let t=e.cookieNames.map(t=>{let a=e.cookies.find(e=>e.name===t);return null!=a?a:{name:t,path:"/"}}),{cookieNames:a,consent_use:i,...s}=e;return"marketing"!==e.consent_use||e.data_use?{...s,data_use:e.data_use?e.data_use:e.consent_use,cookies:t}:["marketing.advertising.first_party.targeted","marketing.advertising.third_party.targeted"].map(e=>({...s,data_use:e,cookies:t}))}),i={...I,...e,fides_key:(0,u.E)(e.name),system_type:"",privacy_declarations:a},s=await T(i);if((0,x.D4)(s)){j((0,y.Vo)((0,x.e$)(s.error)));return}j((0,y.t5)("Vendor successfully created!")),t.resetForm(),Z()},P=e=>{if(L){if(!e){R((0,g.b3)("hiding")),R((0,g.gQ)(!1));return}R((0,g.b3)("showing")),z&&(0,x.cj)(e)===x.c6.GVL?R((0,g.gQ)(!0)):R((0,g.gQ)(!1))}};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.wpx,{onClick:()=>{a?a():C()},"data-testid":"add-vendor-btn",..._,children:t}),(0,i.jsx)(n.J9,{initialValues:N,enableReinitialize:!0,onSubmit:M,validationSchema:F,innerRef:U,children:e=>{let{dirty:t,isValid:a,resetForm:r}=e;return(0,i.jsx)(f.Z,{isOpen:k,onClose:Z,title:"Add a vendor",children:(0,i.jsxs)(s.xuv,{"data-testid":"add-vendor-modal-content",my:4,children:[E?(0,i.jsx)(h.Z,{}):null,(0,i.jsx)(n.l0,{children:(0,i.jsxs)(s.gCW,{alignItems:"start",spacing:6,children:[L?(0,i.jsx)(v.Z,{label:"Vendor name",options:W,isLoading:S,onVendorSelected:P,isCreate:!0,lockedForGVL:E}):(0,i.jsx)(c.j0,{id:"name",name:"name",isRequired:!0,label:"Vendor name",tooltip:"Give the system a unique, and relevant name for reporting purposes. e.g. “Email Data Warehouse”",variant:"stacked"}),(0,i.jsx)(q,{showSuggestions:"showing"===G,isCreate:!0,disabled:E}),(0,i.jsxs)("div",{className:"flex w-full justify-between",children:[(0,i.jsx)(s.wpx,{onClick:()=>{Z(),r()},children:"Cancel"}),(0,i.jsx)(s.wpx,{type:"primary",htmlType:"submit",disabled:S||!t||!a,loading:S,"data-testid":"save-btn",children:"Save vendor"})]})]})})]})})}})]})}},72774:function(e,t,a){a.d(t,{Z:function(){return r}});var i=a(24246),s=a(77181),n=e=>{let{title:t,description:a,button:n}=e;return(0,i.jsxs)(s.Ugi,{backgroundColor:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",py:4,px:6,"data-testid":"empty-state",children:[(0,i.jsx)(s.iid,{alignSelf:"start",color:"blue.400",mt:.5}),(0,i.jsxs)(s.xuv,{flexGrow:1,children:[(0,i.jsx)(s.xvT,{fontWeight:"bold",fontSize:"sm",mb:1,children:t}),(0,i.jsx)(s.xvT,{fontSize:"sm",color:"gray.600",lineHeight:"5",children:a})]}),n]})},r=()=>(0,i.jsx)(s.xuv,{mb:"6",maxW:"720px","data-testid":"locked-for-GVL-notice",children:(0,i.jsx)(n,{title:"This system is part of the TCF Global Vendor List (GVL)",description:(0,i.jsxs)(i.Fragment,{children:["As a result, the system fields are not editable as they come directly from Fides Compass and the Global Vendor List (GVL). In some cases where the legal basis has been declared to be flexible, you may update the legal basis for particular data uses."," ",(0,i.jsx)(s.rUS,{href:"https://fid.es/tcf_gvl",isExternal:!0,color:"complimentary.500",children:"For more information on the Global Vendor List, click here."})]})})})},69525:function(e,t,a){a.d(t,{U:function(){return i}});let i=e=>{var t;let a=e.data_categories.flatMap(e=>e.split(","));return{data_use:e.data_use,data_categories:a,features:e.features,legal_basis_for_processing:e.legal_basis_for_processing,flexible_legal_basis_for_processing:e.flexible_legal_basis_for_processing,retention_period:e.retention_period?e.retention_period:"",cookies:null===(t=e.cookies)||void 0===t?void 0:t.map(e=>({name:e.name,domain:e.domain,path:e.path}))}}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9282],{77213:function(e,t,n){n.d(t,{Z:function(){return f}});var r=n(24246),i=n(77181),o=n(88038),l=n.n(o),s=n(86677);n(27378);var a=n(25980),u=n(90867),c=n(77830),d=()=>{let e=(0,s.useRouter)();return(0,r.jsx)(i.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,r.jsxs)(i.xuv,{children:[(0,r.jsxs)(i.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,r.jsx)(i.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,r.jsx)(i.wpx,{onClick:()=>{e.push(c.fz)},children:"Configure"})]}),(0,r.jsxs)(i.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},f=e=>{let{children:t,title:n,padded:o=!0,mainProps:c}=e,f=(0,a.hz)(),p=(0,s.useRouter)(),g="/privacy-requests"===p.pathname||"/datastore-connection"===p.pathname,x=!(f.flags.privacyRequestsConfiguration&&g),{data:v}=(0,u.JE)(void 0,{skip:x}),{data:b}=(0,u.PW)(void 0,{skip:x}),m=f.flags.privacyRequestsConfiguration&&(!v||!b)&&g;return(0,r.jsxs)(i.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,r.jsxs)(l(),{children:[(0,r.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,r.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,r.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,r.jsxs)(i.kCb,{as:"main",direction:"column",py:o?6:0,px:o?10:0,h:o?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...c,children:[m?(0,r.jsx)(d,{}):null,t]})]})}},51472:function(e,t,n){var r=n(24246),i=n(77181),o=n(47397),l=n(7078),s=n(18397),a=n(11055),u=n(27378),c=n(40324),d=n(91613);let f=e=>{let{item:t,label:n,draggable:s,onDeleteItem:a,tooltip:u,onRowClick:c,maxH:f=10,rowTestId:p}=e,g=(0,o.o)();return(0,r.jsx)(l.e,{value:t,dragListener:!1,dragControls:g,children:(0,r.jsxs)(i.kCb,{direction:"row",gap:2,maxH:f,w:"full",px:2,align:"center",role:"group",className:"group",borderY:"1px",my:"-1px",borderColor:"gray.200",_hover:c?{bgColor:"gray.100"}:void 0,bgColor:"white",position:"relative",children:[s&&(0,r.jsx)(i.VVU,{onPointerDown:e=>g.start(e),cursor:"grab"}),(0,r.jsxs)(i.kCb,{direction:"row",gap:2,p:2,align:"center",w:"full",cursor:c?"pointer":"auto",onClick:()=>{c&&c(t)},overflow:"clip","data-testid":p,children:[(0,r.jsx)(i.xvT,{fontSize:"sm",userSelect:"none",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",children:n}),u?(0,r.jsx)(d.Z,{label:u}):null]}),a&&(0,r.jsx)(i.wpx,{"aria-label":"Delete",onClick:()=>a(t),icon:(0,r.jsx)(i.pJl,{boxSize:3}),size:"small",className:"invisible absolute right-2 bg-white group-hover:visible"})]})})},p=e=>{let{label:t,options:n,onOptionSelected:o,baseTestId:l}=e,[s,a]=(0,u.useState)(!1),[c,d]=(0,u.useState)(void 0);return s?(0,r.jsx)(i.xuv,{w:"full",children:(0,r.jsx)(i.WPr,{labelInValue:!0,placeholder:"Select...",filterOption:(e,t)=>{var n;return(null!==(n=null==t?void 0:t.label)&&void 0!==n?n:"").toLowerCase().includes(e.toLowerCase())},value:c,options:n,onChange:e=>{o(e),a(!1),d(void 0)},className:"w-full","data-testid":"select-".concat(l)})}):(0,r.jsx)(i.wpx,{onClick:()=>a(!0),"data-testid":"add-".concat(l),block:!0,icon:(0,r.jsx)(i.jBn,{boxSize:4}),iconPosition:"end",children:t})};t.Z=e=>{let{label:t,tooltip:n,draggable:o,addButtonLabel:l,allItems:u,idField:g,nameField:x=g,values:v,setValues:b,canDeleteItem:m,getTooltip:h,onRowClick:j,selectOnAdd:w,getItemLabel:y,createNewValue:C,maxHeight:k=36,baseTestId:S}=e,L=e=>e instanceof Object&&g&&g in e?e[g]:e,R=u.every(e=>"string"==typeof e)?u.filter(e=>v.every(t=>t!==e)):u.filter(e=>v.every(t=>L(t)!==L(e))),_=e=>{b(v.filter(t=>t!==e).slice())},A=null!=y?y:e=>e instanceof Object&&g&&g in e?x&&x in e?e[x]:e[g]:e,D=e=>{let t=e instanceof Object&&g&&g in e?e[g]:e;return{label:A(e),value:t}},O=e=>u.every(e=>"string"==typeof e)?e.value:u.find(t=>t[g]===e.value),z=e=>{let t=C?C(e):O(e);b([t,...v.slice()]),w&&j&&j(t)},E={border:"1px",borderColor:"gray.200",borderRadius:"md",w:"full",maxH:"8.5rem",overflowY:"auto"},I=o?(0,r.jsx)(i.xuv,{as:s.E.div,layoutScroll:!0,...E,children:(0,r.jsx)(a.M,{values:v,onReorder:e=>b(e.slice()),children:v.map(e=>{let t=L(e);return(0,r.jsx)(f,{item:e,label:A(e),onDeleteItem:!m||m&&m(e)?_:void 0,onRowClick:j,draggable:!0,maxH:k,rowTestId:"".concat(S,"-row-").concat(t),tooltip:h&&h(e)?h(e):void 0},t)})})}):(0,r.jsx)(i.xuv,{...E,children:(0,r.jsx)(i.aVo,{children:v.map(e=>{let t=L(e);return(0,r.jsx)(f,{item:e,label:A(e),onRowClick:j,onDeleteItem:_,tooltip:h&&h(e)?h(e):void 0,maxH:k,rowTestId:"".concat(S,"-row-").concat(t)},t)})})});return v.length?(0,r.jsxs)(i.kCb,{align:"start",direction:"column",w:"full",gap:4,children:[t?(0,r.jsx)(c.__,{htmlFor:"test",fontSize:"xs",my:0,mr:1,children:t}):null,n?(0,r.jsx)(d.Z,{label:n}):null,I,R.length?(0,r.jsx)(p,{label:null!=l?l:"Add new",options:R.map(e=>D(e)),onOptionSelected:z,baseTestId:S}):null]}):(0,r.jsx)(p,{label:null!=l?l:"Add new",options:R.map(e=>D(e)),onOptionSelected:z,baseTestId:S})}},812:function(e,t,n){n.d(t,{D4:function(){return o.D4},MM:function(){return f},Ot:function(){return u},c6:function(){return i},cj:function(){return g},e$:function(){return s},fn:function(){return a},iC:function(){return p},nU:function(){return d},tB:function(){return c}});var r,i,o=n(19043);let l="An unexpected error occurred. Please try again.",s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l;if((0,o.Bw)(e)){if((0,o.hE)(e.data))return e.data.detail;if((0,o.cz)(e.data)){var n;let t=null===(n=e.data.detail)||void 0===n?void 0:n[0];return"".concat(null==t?void 0:t.msg,": ").concat(null==t?void 0:t.loc)}if(409===e.status&&(0,o.Dy)(e.data)||404===e.status&&(0,o.XD)(e.data))return"".concat(e.data.detail.error," (").concat(e.data.detail.fides_key,")")}return t};function a(e){return"object"==typeof e&&null!=e&&"status"in e}function u(e){return"object"==typeof e&&null!=e&&"data"in e&&"string"==typeof e.data.detail}function c(e){return"object"==typeof e&&null!=e&&"data"in e&&Array.isArray(e.data.detail)}let d=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{status:500,message:l};if((0,o.oK)(e))return{status:e.originalStatus,message:e.data};if((0,o.Bw)(e)){let{status:n}=e;return{status:n,message:s(e,t.message)}}return t},f=e=>Object.entries(e).map(e=>({value:e[1],label:e[1]}));(r=i||(i={})).GVL="gvl",r.AC="gacp",r.COMPASS="compass";let p={gvl:{label:"GVL",fullName:"Global Vendor List"},gacp:{label:"AC",fullName:"Google Additional Consent List"},compass:{label:"",fullName:""}},g=e=>{let t=e.split(".")[0];return"gacp"===t?"gacp":"gvl"===t?"gvl":"compass"}},46628:function(e,t,n){n.d(t,{MA:function(){return s},Vo:function(){return u},t5:function(){return a}});var r=n(24246),i=n(77181);let o=e=>{let{children:t,title:n="Success"}=e;return(0,r.jsxs)(i.xvT,{"data-testid":"toast-success-msg",children:[(0,r.jsxs)("strong",{children:[n,":"]})," ",t]})},l=e=>{let{children:t}=e;return(0,r.jsxs)(i.xvT,{"data-testid":"toast-error-msg",children:[(0,r.jsx)("strong",{children:"Error:"})," ",t]})},s={variant:"subtle",position:"top",description:"",duration:5e3,status:"success",isClosable:!0},a=(e,t)=>{let n=(0,r.jsx)(o,{title:t,children:e});return{...s,description:n}},u=e=>{let t=(0,r.jsx)(l,{children:e});return{...s,description:t,status:"error"}}},19043:function(e,t,n){n.d(t,{Bw:function(){return l},D4:function(){return i},Dy:function(){return a},XD:function(){return u},cz:function(){return c},hE:function(){return s},oK:function(){return o}});var r=n(76649);let i=e=>"error"in e,o=e=>(0,r.Ln)({status:"string"},e)&&"PARSING_ERROR"===e.status,l=e=>(0,r.Ln)({status:"number",data:{}},e),s=e=>(0,r.Ln)({detail:"string"},e),a=e=>(0,r.Ln)({detail:{error:"string",resource_type:"string",fides_key:"string"}},e),u=e=>(0,r.Ln)({detail:{error:"string",resource_type:"string",fides_key:"string"}},e),c=e=>(0,r.Ln)({detail:[{loc:["string","number"],msg:"string",type:"string"}]},e)}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9327],{77213:function(e,t,r){"use strict";r.d(t,{Z:function(){return p}});var n=r(24246),i=r(77181),l=r(88038),a=r.n(l),o=r(86677);r(27378);var s=r(25980),u=r(90867),d=r(77830),c=()=>{let e=(0,o.useRouter)();return(0,n.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,n.jsxs)(i.xuv,{children:[(0,n.jsxs)(i.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,n.jsx)(i.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,n.jsx)(i.wpx,{onClick:()=>{e.push(d.fz)},children:"Configure"})]}),(0,n.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:r,padded:l=!0,mainProps:d}=e,p=(0,s.hz)(),f=(0,o.useRouter)(),h="/privacy-requests"===f.pathname||"/datastore-connection"===f.pathname,m=!(p.flags.privacyRequestsConfiguration&&h),{data:b}=(0,u.JE)(void 0,{skip:m}),{data:g}=(0,u.PW)(void 0,{skip:m}),y=p.flags.privacyRequestsConfiguration&&(!b||!g)&&h;return(0,n.jsxs)(i.kCb,{"data-testid":r,direction:"column",h:"100vh",children:[(0,n.jsxs)(a(),{children:[(0,n.jsxs)("title",{children:["Fides Admin UI - ",r]}),(0,n.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,n.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,n.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:[y?(0,n.jsx)(c,{}):null,t]})]})}},58754:function(e,t,r){"use strict";var n=r(24246),i=r(77181),l=r(70788);t.Z=e=>{let{heading:t,breadcrumbItems:r,isSticky:a=!0,children:o,rightContent:s,style:u,...d}=e;return(0,n.jsxs)("div",{...d,style:a?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...u}:{paddingBottom:"24px",...u},children:[(0,n.jsxs)(i.jqI,{justify:"space-between",children:["string"==typeof t?(0,n.jsx)(i.X6q,{className:r||o?"pb-4":void 0,fontSize:"2xl","data-testid":"page-heading",children:t}):t,s&&(0,n.jsx)("div",{"data-testid":"page-header-right-content",children:s})]}),!!r&&(0,n.jsx)(l.m,{className:o?"pb-4":void 0,items:r,"data-testid":"page-breadcrumb"}),o]})}},70788:function(e,t,r){"use strict";r.d(t,{m:function(){return u}});var n=r(24246),i=r(77181),l=r(79894),a=r.n(l),o=r(27378);let{Text:s}=i.AntTypography,u=e=>{let{items:t,...r}=e,l=(0,o.useMemo)(()=>null==t?void 0:t.map((e,r)=>{let l=r===t.length-1,o={...e},u=o.onClick&&!o.href;return("string"==typeof o.title&&(o.title=(0,n.jsx)(s,{style:{color:"inherit",maxWidth:l?void 0:400},ellipsis:!l,children:o.title})),u)?o.title=(0,n.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,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"anticon align-text-bottom",children:o.icon}),o.title]})),o.href&&o.title&&(o.title=(0,n.jsx)(a(),{href:o.href,className:"ant-breadcrumb-link",children:o.title}),delete o.href)),o}),[t]);return(0,n.jsx)(i.zrq,{items:l,...r})}},41207:function(e,t,r){"use strict";r.d(t,{F:function(){return a},M:function(){return l}});var n=r(76649),i=r(65218);let l=r.n(i)()(()=>r.e(7088).then(r.bind(r,57088)).then(e=>e.default),{loadableGenerated:{webpack:()=>[57088]},ssr:!1}),a=e=>(0,n.Ln)({name:"string"},e)&&"YAMLException"===e.name},76737:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return o},noSSR:function(){return a}});let n=r(51538);r(24246),r(27378);let i=n._(r(21887));function l(e){return{default:(null==e?void 0:e.default)||e}}function a(e,t){return delete t.webpack,delete t.modules,e(t)}function o(e,t){let r=i.default,n={loading:e=>{let{error:t,isLoading:r,pastDelay:n}=e;return null}};e instanceof Promise?n.loader=()=>e:"function"==typeof e?n.loader=e:"object"==typeof e&&(n={...n,...e});let o=(n={...n,...t}).loader;return(n.loadableGenerated&&(n={...n,...n.loadableGenerated},delete n.loadableGenerated),"boolean"!=typeof n.ssr||n.ssr)?r({...n,loader:()=>null!=o?o().then(l):Promise.resolve(l(()=>null))}):(delete n.webpack,delete n.modules,a(r,n))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},28438:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return n}});let n=r(51538)._(r(27378)).default.createContext(null)},21887:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return p}});let n=r(51538)._(r(27378)),i=r(28438),l=[],a=[],o=!1;function s(e){let t=e(),r={loading:!0,loaded:null,error:null};return r.promise=t.then(e=>(r.loading=!1,r.loaded=e,e)).catch(e=>{throw r.loading=!1,r.error=e,e}),r}class u{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...e},this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function d(e){return function(e,t){let r=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),l=null;function s(){if(!l){let t=new u(e,r);l={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return l.promise()}if(!o){let e=r.webpack?r.webpack():r.modules;e&&a.push(t=>{for(let r of e)if(t.includes(r))return s()})}function d(e,t){!function(){s();let e=n.default.useContext(i.LoadableContext);e&&Array.isArray(r.modules)&&r.modules.forEach(t=>{e(t)})}();let a=n.default.useSyncExternalStore(l.subscribe,l.getCurrentValue,l.getCurrentValue);return n.default.useImperativeHandle(t,()=>({retry:l.retry}),[]),n.default.useMemo(()=>{var t;return a.loading||a.error?n.default.createElement(r.loading,{isLoading:a.loading,pastDelay:a.pastDelay,timedOut:a.timedOut,error:a.error,retry:l.retry}):a.loaded?n.default.createElement((t=a.loaded)&&t.default?t.default:t,e):null},[e,a])}return d.preload=()=>s(),d.displayName="LoadableComponent",n.default.forwardRef(d)}(s,e)}function c(e,t){let r=[];for(;e.length;){let n=e.pop();r.push(n(t))}return Promise.all(r).then(()=>{if(e.length)return c(e,t)})}d.preloadAll=()=>new Promise((e,t)=>{c(l).then(e,t)}),d.preloadReady=e=>(void 0===e&&(e=[]),new Promise(t=>{let r=()=>(o=!0,t());c(a,e).then(r,r)})),window.__NEXT_PRELOADREADY=d.preloadReady;let p=d},65218:function(e,t,r){e.exports=r(76737)}}]);