ethyca-fides 2.59.2b0__py2.py3-none-any.whl → 2.59.2b2__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 (231) hide show
  1. {ethyca_fides-2.59.2b0.dist-info → ethyca_fides-2.59.2b2.dist-info}/METADATA +2 -2
  2. {ethyca_fides-2.59.2b0.dist-info → ethyca_fides-2.59.2b2.dist-info}/RECORD +195 -195
  3. fides/_version.py +3 -3
  4. fides/api/alembic/migrations/versions/c9c72b3d550b_data_migration_cookie_asset.py +218 -0
  5. fides/api/db/system.py +1 -121
  6. fides/api/models/asset.py +1 -2
  7. fides/api/models/privacy_notice.py +14 -19
  8. fides/api/models/sql_models.py +0 -51
  9. fides/api/schemas/connection_configuration/connection_secrets_mysql.py +12 -0
  10. fides/api/schemas/system.py +1 -2
  11. fides/api/service/connectors/mysql_connector.py +13 -1
  12. fides/api/worker/__init__.py +1 -1
  13. fides/ui-build/static/admin/404.html +1 -1
  14. fides/ui-build/static/admin/_next/static/chunks/{1100-22c375e757f23150.js → 1100-93c5835d689e9dd5.js} +1 -1
  15. fides/ui-build/static/admin/_next/static/chunks/{1817-11bb237f57d9ad27.js → 1817-16d1dd3b13e590b3.js} +1 -1
  16. fides/ui-build/static/admin/_next/static/chunks/{1904-3c40738cb0fd2a7c.js → 1904-0f03e5a2c3de8487.js} +1 -1
  17. fides/ui-build/static/admin/_next/static/chunks/{2479-50f431c0e2c0de3c.js → 2479-18fbea714b5f1f7a.js} +1 -1
  18. fides/ui-build/static/admin/_next/static/chunks/3503-569232568cee1a7e.js +1 -0
  19. fides/ui-build/static/admin/_next/static/chunks/3513-cf0c4d886ff26e00.js +1 -0
  20. fides/ui-build/static/admin/_next/static/chunks/{3702-31d37a0217f82615.js → 3702-c4465f7b3bbc3edc.js} +1 -1
  21. fides/ui-build/static/admin/_next/static/chunks/3855-5417dfc333c7b6b6.js +1 -0
  22. fides/ui-build/static/admin/_next/static/chunks/{3872-68b4ceba8f632bc0.js → 3872-03319b7328ddc284.js} +1 -1
  23. fides/ui-build/static/admin/_next/static/chunks/401-f0c485676a4fc5f9.js +1 -0
  24. fides/ui-build/static/admin/_next/static/chunks/4060-98d858ec609e4b76.js +1 -0
  25. fides/ui-build/static/admin/_next/static/chunks/4121-044a191b265f4e51.js +1 -0
  26. fides/ui-build/static/admin/_next/static/chunks/4481-85e3f5845b50f10d.js +1 -0
  27. fides/ui-build/static/admin/_next/static/chunks/{5487-22de631f1d186527.js → 5487-7751e91b40dc6050.js} +1 -1
  28. fides/ui-build/static/admin/_next/static/chunks/{5826-226c8843e715b6ad.js → 5826-8516f6c635510e95.js} +1 -1
  29. fides/ui-build/static/admin/_next/static/chunks/5835-b7b45dfb97180a88.js +1 -0
  30. fides/ui-build/static/admin/_next/static/chunks/5973-4e65b191ed82f8bd.js +1 -0
  31. fides/ui-build/static/admin/_next/static/chunks/6277-076a319bcff4f1a2.js +1 -0
  32. fides/ui-build/static/admin/_next/static/chunks/{6372-0ca1b9521b5489fd.js → 6372-d3f778c62070545f.js} +1 -1
  33. fides/ui-build/static/admin/_next/static/chunks/{6853-7d7eb22f19d3806c.js → 6853-25ff9e572d633f33.js} +1 -1
  34. fides/ui-build/static/admin/_next/static/chunks/{6954-981a8a444780bedb.js → 6954-169abc679def0fb6.js} +1 -1
  35. fides/ui-build/static/admin/_next/static/chunks/{7751-09c6424d673d8aa4.js → 7751-e0a78be0ca620df1.js} +1 -1
  36. fides/ui-build/static/admin/_next/static/chunks/79-2302442f8b53f944.js +1 -0
  37. fides/ui-build/static/admin/_next/static/chunks/{8433-dd6d8dae02275d66.js → 8433-4481a5d085d3b008.js} +1 -1
  38. fides/ui-build/static/admin/_next/static/chunks/{8934-6881185f0c5c0f6d.js → 8934-e2a4fd9f8ab74142.js} +1 -1
  39. fides/ui-build/static/admin/_next/static/chunks/9282-356dc48612f4a21c.js +1 -0
  40. fides/ui-build/static/admin/_next/static/chunks/{9327-fb7ef941b5176077.js → 9327-b019990849ff57f3.js} +1 -1
  41. fides/ui-build/static/admin/_next/static/chunks/{9392.da35a8e778812d91.js → 9392.5f3cfb8eafbeac59.js} +1 -1
  42. fides/ui-build/static/admin/_next/static/chunks/9572-ab070b1ae17dde8f.js +1 -0
  43. fides/ui-build/static/admin/_next/static/chunks/{9676.f297a1347ac09c56.js → 9676.2e1267373b5a6076.js} +1 -1
  44. fides/ui-build/static/admin/_next/static/chunks/9719-caba0228fc973d3f.js +1 -0
  45. fides/ui-build/static/admin/_next/static/chunks/9767-b4f9c2cc14de6df6.js +1 -0
  46. fides/ui-build/static/admin/_next/static/chunks/{9951-8ceba69296972ce9.js → 9951-e0d7db7ec538ebf1.js} +1 -1
  47. fides/ui-build/static/admin/_next/static/chunks/9965-528ef17ac491d809.js +1 -0
  48. fides/ui-build/static/admin/_next/static/chunks/pages/{404-a3c57a06ff67cf1f.js → 404-1dfbf30fba0233a2.js} +1 -1
  49. fides/ui-build/static/admin/_next/static/chunks/pages/{_app-fc9e922ec354be47.js → _app-9560c81c6cf5f050.js} +17 -17
  50. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/manual-bca30784c7356aa3.js +1 -0
  51. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/{multiple-93907c53f342831f.js → multiple-14c60fbc5907c621.js} +1 -1
  52. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems-0d7a9d9ad082c80c.js +1 -0
  53. fides/ui-build/static/admin/_next/static/chunks/pages/ant-poc-c2c4fd5faaf0f882.js +1 -0
  54. fides/ui-build/static/admin/_next/static/chunks/pages/consent/configure/{add-vendors-5e83ee7792c0f75f.js → add-vendors-79949b978a966399.js} +1 -1
  55. fides/ui-build/static/admin/_next/static/chunks/pages/consent/{configure-ea7b2c628260c84c.js → configure-6af86d0717034a7f.js} +1 -1
  56. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience/{[id]-7122d8a8c20e7cd2.js → [id]-e876f21f7f2245aa.js} +1 -1
  57. fides/ui-build/static/admin/_next/static/chunks/pages/consent/{privacy-experience-85ddbe3ae50c7527.js → privacy-experience-83dea888aad26af3.js} +1 -1
  58. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{[id]-5a9269aa00a16596.js → [id]-80dd6ab96599efb5.js} +1 -1
  59. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{new-78808c75ba86c0be.js → new-e48da14c5d5d0a66.js} +1 -1
  60. fides/ui-build/static/admin/_next/static/chunks/pages/consent/{privacy-notices-047c409bc5e12d1a.js → privacy-notices-05e67aa6f029e6d4.js} +1 -1
  61. fides/ui-build/static/admin/_next/static/chunks/pages/consent/{properties-893753088b9729a3.js → properties-6c99121562583eb7.js} +1 -1
  62. fides/ui-build/static/admin/_next/static/chunks/pages/consent/{reporting-01d1371e690ae190.js → reporting-ed1cdefeb38cf592.js} +1 -1
  63. fides/ui-build/static/admin/_next/static/chunks/pages/{consent-7e5adfec9134a268.js → consent-253aa071516a6436.js} +1 -1
  64. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/{[projectUrn]-4b2c10ff79e46e50.js → [projectUrn]-366121dfd638f6b5.js} +1 -1
  65. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/{projects-05bbb01e37766b80.js → projects-974623a3afd4754b.js} +1 -1
  66. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog-4b1d9e4cc7fa17a2.js +1 -0
  67. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]/[systemId]-936f72087aae94e1.js +1 -0
  68. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]-b6e0c8625c953a00.js +1 -0
  69. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center-9ebb4dc8bc7dd058.js +1 -0
  70. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/activity-f0fe5d6cfcce0e69.js +1 -0
  71. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/detection/{[resourceUrn]-1bcaa606739ea1c5.js → [resourceUrn]-10f789d4ab2b8927.js} +1 -1
  72. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{detection-22f55dc12354b4c6.js → detection-f473b2ee1c67be3c.js} +1 -1
  73. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/discovery/{[resourceUrn]-86111c25dc30ef2b.js → [resourceUrn]-2569551ae75ea5a2.js} +1 -1
  74. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{discovery-853be75f08b9ab5c.js → discovery-ad077f30849fdc0a.js} +1 -1
  75. fides/ui-build/static/admin/_next/static/chunks/pages/{datamap-6c63a6295668ed4e.js → datamap-0cb4cd87c876acc3.js} +1 -1
  76. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]/{[...subfieldNames]-7a99a6c5c2fc2abe.js → [...subfieldNames]-fd1f9aba215e8fb2.js} +1 -1
  77. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/{[collectionName]-39aab1de4df0660d.js → [collectionName]-06793bb37fa509d8.js} +1 -1
  78. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/{[datasetId]-2cf04998a7521a7d.js → [datasetId]-662ce6650bd83f05.js} +1 -1
  79. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/{new-f3a6dd67f012b005.js → new-5b773da9c79af072.js} +1 -1
  80. fides/ui-build/static/admin/_next/static/chunks/pages/{dataset-3b703775de1ca75e.js → dataset-a8582040705239d4.js} +1 -1
  81. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/{[id]-b905c75f68786c2f.js → [id]-e650d48347fb457e.js} +1 -1
  82. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/{new-abd92bec98bdbb66.js → new-4b96de4707916560.js} +1 -1
  83. fides/ui-build/static/admin/_next/static/chunks/pages/{datastore-connection-52c3f076edb49944.js → datastore-connection-7ce2cd66791e7f6f.js} +1 -1
  84. fides/ui-build/static/admin/_next/static/chunks/pages/{index-1bccf315f995267a.js → index-71e4264dcfba6181.js} +1 -1
  85. fides/ui-build/static/admin/_next/static/chunks/pages/integrations/[id]-b3ec5320782fbb49.js +1 -0
  86. fides/ui-build/static/admin/_next/static/chunks/pages/{integrations-2ce76b506ba8404a.js → integrations-4789200cdb1d7ec5.js} +1 -1
  87. fides/ui-build/static/admin/_next/static/chunks/pages/messaging/{[id]-8950b4aff799099c.js → [id]-3a52dfa45f398f31.js} +1 -1
  88. fides/ui-build/static/admin/_next/static/chunks/pages/messaging/{add-template-4cad85d5b6d52734.js → add-template-8e20f0da3a0779cc.js} +1 -1
  89. fides/ui-build/static/admin/_next/static/chunks/pages/{messaging-57c7aa44af163623.js → messaging-439832fde70c1157.js} +1 -1
  90. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/{[id]-2fc14bda8d314449.js → [id]-16b266c9ddf8d192.js} +1 -1
  91. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/{messaging-3219ddeb37d46398.js → messaging-9c1748191ca19867.js} +1 -1
  92. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/storage-9f1ea2b5896ff3fd.js +1 -0
  93. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/{configure-d8d23d06ce1d9dae.js → configure-67b0a2a798d71e4d.js} +1 -1
  94. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests-faa220f7200fb252.js +1 -0
  95. fides/ui-build/static/admin/_next/static/chunks/pages/properties/{[id]-6cca2c8ebbff78aa.js → [id]-99860c05fb5d25bd.js} +1 -1
  96. fides/ui-build/static/admin/_next/static/chunks/pages/properties/{add-property-f09f98007725fa51.js → add-property-4a7a21c25985fff0.js} +1 -1
  97. fides/ui-build/static/admin/_next/static/chunks/pages/{properties-9034bab3d7200d9b.js → properties-a78b5af5894ed324.js} +1 -1
  98. fides/ui-build/static/admin/_next/static/chunks/pages/reporting/{datamap-a36cf070c98a6cbd.js → datamap-b5c8cdfd6c1e0544.js} +1 -1
  99. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{about-92dada8329e89092.js → about-92fcfaa6111d7d24.js} +1 -1
  100. fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent/[configuration_id]/[purpose_id]-224434177b2775dc.js +1 -0
  101. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{consent-f6d6e3d9d556387c.js → consent-5822e06b76f3ec84.js} +1 -1
  102. fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields-ff123ece2e2e4009.js +1 -0
  103. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{domain-records-368a4183139ea5e0.js → domain-records-4347b3fdd12fdcff.js} +1 -1
  104. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{domains-255655d6c367faad.js → domains-899401bf5c72b67f.js} +1 -1
  105. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{email-templates-e4498b6310074705.js → email-templates-d8f6562694f9dd45.js} +1 -1
  106. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{locations-18f56b6b76abb71d.js → locations-f74503aa1626e302.js} +1 -1
  107. fides/ui-build/static/admin/_next/static/chunks/pages/settings/organization-610aa65b3dbcf467.js +1 -0
  108. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{regulations-0350314337abff11.js → regulations-081148db3f589271.js} +1 -1
  109. fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]/test-datasets-6986ba3f6f33c110.js +1 -0
  110. fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/{[id]-022910a52efbad76.js → [id]-e0110a539d33069a.js} +1 -1
  111. fides/ui-build/static/admin/_next/static/chunks/pages/{systems-e9a111ef0c32161e.js → systems-7aef28e963417fa3.js} +1 -1
  112. fides/ui-build/static/admin/_next/static/chunks/pages/taxonomy-61345b0f7cbd939e.js +1 -0
  113. fides/ui-build/static/admin/_next/static/chunks/pages/user-management/{new-082c3156175f9267.js → new-65ef1bdebb679666.js} +1 -1
  114. fides/ui-build/static/admin/_next/static/chunks/pages/user-management/profile/{[id]-32ec340d4b390d07.js → [id]-3430c5a08e86a85d.js} +1 -1
  115. fides/ui-build/static/admin/_next/static/chunks/pages/user-management-216944eb66e430bb.js +1 -0
  116. fides/ui-build/static/admin/_next/static/chunks/webpack-7104b266fb47d653.js +1 -0
  117. fides/ui-build/static/admin/_next/static/css/{72caf4a266697967.css → 091e5fc4883aeb42.css} +1 -1
  118. fides/ui-build/static/admin/_next/static/tLZG5DlQ8HHUd5zR6TZEN/_buildManifest.js +1 -0
  119. fides/ui-build/static/admin/add-systems/manual.html +1 -1
  120. fides/ui-build/static/admin/add-systems/multiple.html +1 -1
  121. fides/ui-build/static/admin/add-systems.html +1 -1
  122. fides/ui-build/static/admin/ant-poc.html +1 -1
  123. fides/ui-build/static/admin/consent/configure/add-vendors.html +1 -1
  124. fides/ui-build/static/admin/consent/configure.html +1 -1
  125. fides/ui-build/static/admin/consent/privacy-experience/[id].html +1 -1
  126. fides/ui-build/static/admin/consent/privacy-experience/new.html +1 -1
  127. fides/ui-build/static/admin/consent/privacy-experience.html +1 -1
  128. fides/ui-build/static/admin/consent/privacy-notices/[id].html +1 -1
  129. fides/ui-build/static/admin/consent/privacy-notices/new.html +1 -1
  130. fides/ui-build/static/admin/consent/privacy-notices.html +1 -1
  131. fides/ui-build/static/admin/consent/properties.html +1 -1
  132. fides/ui-build/static/admin/consent/reporting.html +1 -1
  133. fides/ui-build/static/admin/consent.html +1 -1
  134. fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn].html +1 -1
  135. fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn].html +1 -1
  136. fides/ui-build/static/admin/data-catalog/[systemId]/projects.html +1 -1
  137. fides/ui-build/static/admin/data-catalog/[systemId]/resources/[resourceUrn].html +1 -1
  138. fides/ui-build/static/admin/data-catalog/[systemId]/resources.html +1 -1
  139. fides/ui-build/static/admin/data-catalog.html +1 -1
  140. fides/ui-build/static/admin/data-discovery/action-center/[monitorId]/[systemId].html +1 -1
  141. fides/ui-build/static/admin/data-discovery/action-center/[monitorId].html +1 -1
  142. fides/ui-build/static/admin/data-discovery/action-center.html +1 -1
  143. fides/ui-build/static/admin/data-discovery/activity.html +1 -1
  144. fides/ui-build/static/admin/data-discovery/detection/[resourceUrn].html +1 -1
  145. fides/ui-build/static/admin/data-discovery/detection.html +1 -1
  146. fides/ui-build/static/admin/data-discovery/discovery/[resourceUrn].html +1 -1
  147. fides/ui-build/static/admin/data-discovery/discovery.html +1 -1
  148. fides/ui-build/static/admin/datamap.html +1 -1
  149. fides/ui-build/static/admin/dataset/[datasetId]/[collectionName]/[...subfieldNames].html +1 -1
  150. fides/ui-build/static/admin/dataset/[datasetId]/[collectionName].html +1 -1
  151. fides/ui-build/static/admin/dataset/[datasetId].html +1 -1
  152. fides/ui-build/static/admin/dataset/new.html +1 -1
  153. fides/ui-build/static/admin/dataset.html +1 -1
  154. fides/ui-build/static/admin/datastore-connection/[id].html +1 -1
  155. fides/ui-build/static/admin/datastore-connection/new.html +1 -1
  156. fides/ui-build/static/admin/datastore-connection.html +1 -1
  157. fides/ui-build/static/admin/index.html +1 -1
  158. fides/ui-build/static/admin/integrations/[id].html +1 -1
  159. fides/ui-build/static/admin/integrations.html +1 -1
  160. fides/ui-build/static/admin/login/[provider].html +1 -1
  161. fides/ui-build/static/admin/login.html +1 -1
  162. fides/ui-build/static/admin/messaging/[id].html +1 -1
  163. fides/ui-build/static/admin/messaging/add-template.html +1 -1
  164. fides/ui-build/static/admin/messaging.html +1 -1
  165. fides/ui-build/static/admin/privacy-requests/[id].html +1 -1
  166. fides/ui-build/static/admin/privacy-requests/configure/messaging.html +1 -1
  167. fides/ui-build/static/admin/privacy-requests/configure/storage.html +1 -1
  168. fides/ui-build/static/admin/privacy-requests/configure.html +1 -1
  169. fides/ui-build/static/admin/privacy-requests.html +1 -1
  170. fides/ui-build/static/admin/properties/[id].html +1 -1
  171. fides/ui-build/static/admin/properties/add-property.html +1 -1
  172. fides/ui-build/static/admin/properties.html +1 -1
  173. fides/ui-build/static/admin/reporting/datamap.html +1 -1
  174. fides/ui-build/static/admin/settings/about.html +1 -1
  175. fides/ui-build/static/admin/settings/consent/[configuration_id]/[purpose_id].html +1 -1
  176. fides/ui-build/static/admin/settings/consent.html +1 -1
  177. fides/ui-build/static/admin/settings/custom-fields.html +1 -1
  178. fides/ui-build/static/admin/settings/domain-records.html +1 -1
  179. fides/ui-build/static/admin/settings/domains.html +1 -1
  180. fides/ui-build/static/admin/settings/email-templates.html +1 -1
  181. fides/ui-build/static/admin/settings/locations.html +1 -1
  182. fides/ui-build/static/admin/settings/organization.html +1 -1
  183. fides/ui-build/static/admin/settings/regulations.html +1 -1
  184. fides/ui-build/static/admin/systems/configure/[id]/test-datasets.html +1 -1
  185. fides/ui-build/static/admin/systems/configure/[id].html +1 -1
  186. fides/ui-build/static/admin/systems.html +1 -1
  187. fides/ui-build/static/admin/taxonomy.html +1 -1
  188. fides/ui-build/static/admin/user-management/new.html +1 -1
  189. fides/ui-build/static/admin/user-management/profile/[id].html +1 -1
  190. fides/ui-build/static/admin/user-management.html +1 -1
  191. fides/ui-build/static/admin/_next/static/chunks/146-106021bf1ae6e912.js +0 -1
  192. fides/ui-build/static/admin/_next/static/chunks/3086-ffd15c92ea81b3d6.js +0 -1
  193. fides/ui-build/static/admin/_next/static/chunks/3244-281e8f12e46ac168.js +0 -1
  194. fides/ui-build/static/admin/_next/static/chunks/3855-da54ef27afd56c46.js +0 -1
  195. fides/ui-build/static/admin/_next/static/chunks/401-49cdd118a89cc343.js +0 -1
  196. fides/ui-build/static/admin/_next/static/chunks/4060-bad5f07013c7bb49.js +0 -1
  197. fides/ui-build/static/admin/_next/static/chunks/4121-4914fb77e60d31f4.js +0 -1
  198. fides/ui-build/static/admin/_next/static/chunks/4481-7a992683e9191bc9.js +0 -1
  199. fides/ui-build/static/admin/_next/static/chunks/5102-3acf312a8f0d7720.js +0 -1
  200. fides/ui-build/static/admin/_next/static/chunks/5480-d177a83facd21738.js +0 -1
  201. fides/ui-build/static/admin/_next/static/chunks/5973-d5469b7d75700b01.js +0 -1
  202. fides/ui-build/static/admin/_next/static/chunks/6277-c46c9eb59177b850.js +0 -1
  203. fides/ui-build/static/admin/_next/static/chunks/6395-04041b53946664b1.js +0 -1
  204. fides/ui-build/static/admin/_next/static/chunks/79-7ca48fb1a0b52f96.js +0 -1
  205. fides/ui-build/static/admin/_next/static/chunks/9282-23b38e03f897722f.js +0 -1
  206. fides/ui-build/static/admin/_next/static/chunks/9572-64df993c83a2994c.js +0 -1
  207. fides/ui-build/static/admin/_next/static/chunks/9767-162b0f8524990149.js +0 -1
  208. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/manual-c4c0c42bbe0f5548.js +0 -1
  209. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems-a8c51c7bdbb405e2.js +0 -1
  210. fides/ui-build/static/admin/_next/static/chunks/pages/ant-poc-8fcf312148606e7e.js +0 -1
  211. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog-d08a38d4f198691a.js +0 -1
  212. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]/[systemId]-cc5431e4fbd6d39e.js +0 -1
  213. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]-f073ddcfb916988e.js +0 -1
  214. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center-cf48ed7dc04c3af2.js +0 -1
  215. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/activity-73025c2ac5a00347.js +0 -1
  216. fides/ui-build/static/admin/_next/static/chunks/pages/integrations/[id]-afcf73fd0337dde0.js +0 -1
  217. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/storage-8e17802ab6b2d3fd.js +0 -1
  218. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests-9d71495b42f34038.js +0 -1
  219. fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent/[configuration_id]/[purpose_id]-7986cf3b36456353.js +0 -1
  220. fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields-e6c477f2ac098e0b.js +0 -1
  221. fides/ui-build/static/admin/_next/static/chunks/pages/settings/organization-c01d24583e9485f0.js +0 -1
  222. fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]/test-datasets-d5f777510ab8dfd2.js +0 -1
  223. fides/ui-build/static/admin/_next/static/chunks/pages/taxonomy-517419b35435604a.js +0 -1
  224. fides/ui-build/static/admin/_next/static/chunks/pages/user-management-c8ca51efbeccf39b.js +0 -1
  225. fides/ui-build/static/admin/_next/static/chunks/webpack-01277b766c8eb076.js +0 -1
  226. fides/ui-build/static/admin/_next/static/tRpOUAZ0oZhnC241q-BOJ/_buildManifest.js +0 -1
  227. {ethyca_fides-2.59.2b0.dist-info → ethyca_fides-2.59.2b2.dist-info}/WHEEL +0 -0
  228. {ethyca_fides-2.59.2b0.dist-info → ethyca_fides-2.59.2b2.dist-info}/entry_points.txt +0 -0
  229. {ethyca_fides-2.59.2b0.dist-info → ethyca_fides-2.59.2b2.dist-info}/licenses/LICENSE +0 -0
  230. {ethyca_fides-2.59.2b0.dist-info → ethyca_fides-2.59.2b2.dist-info}/top_level.txt +0 -0
  231. /fides/ui-build/static/admin/_next/static/{tRpOUAZ0oZhnC241q-BOJ → tLZG5DlQ8HHUd5zR6TZEN}/_ssgManifest.js +0 -0
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4121],{7617:function(e,s,t){t.d(s,{q:function(){return a}});var n=t(24246),i=t(56078);let a=e=>{let{label:s,isDisabled:t,...a}=e;return(0,n.jsx)(i.OK9,{"data-testid":"tab-".concat(s),_selected:{fontWeight:"600",color:"complimentary.500",borderColor:"complimentary.500"},fontSize:a.fontSize,fontWeight:"500",color:"gray.500",isDisabled:t||!1,children:s})};s.Z=e=>{let{data:s,border:t="partial",...l}=e;return(0,n.jsxs)(i.mQc,{colorScheme:"complimentary",...l,children:[(0,n.jsx)(i.tdY,{width:"partial"===t?"max-content":void 0,children:s.map(e=>(0,n.jsx)(a,{label:e.label,isDisabled:e.isDisabled,fontSize:l.fontSize},e.label))}),(0,n.jsx)(i.nPR,{children:s.map(e=>(0,n.jsx)(i.x45,{px:0,"data-testid":"tab-panel-".concat(e.label),children:e.content},e.label))})]})}},58452:function(e,s,t){var n=t(24246),i=t(56078);s.Z=e=>{let{isOpen:s,onClose:t,onConfirm:a,onCancel:l,title:r,message:d,cancelButtonText:o,continueButtonText:c,isLoading:u,returnFocusOnClose:p,isCentered:m,testId:h="confirmation-modal",icon:x}=e;return(0,n.jsxs)(i.u_l,{isOpen:s,onClose:t,size:"lg",returnFocusOnClose:null==p||p,isCentered:m,children:[(0,n.jsx)(i.ZAr,{}),(0,n.jsxs)(i.hzk,{textAlign:"center",p:6,"data-testid":h,children:[x?(0,n.jsx)(i.M5Y,{mb:2,children:x}):null,r?(0,n.jsx)(i.xBx,{fontWeight:"medium",pb:0,children:r}):null,d?(0,n.jsx)(i.fef,{children:d}):null,(0,n.jsx)(i.mzw,{children:(0,n.jsxs)(i.MIq,{columns:2,width:"100%",children:[(0,n.jsx)(i.wpx,{onClick:()=>{l&&l(),t()},size:"large",className:"mr-3","data-testid":"cancel-btn",disabled:u,children:o||"Cancel"}),(0,n.jsx)(i.wpx,{type:"primary",size:"large",onClick:a,"data-testid":"continue-btn",loading:u,children:c||"Continue"})]})})]})]})}},7426:function(e,s,t){t.d(s,{D2:function(){return p},L:function(){return r},U7:function(){return o},Yh:function(){return h},ak:function(){return d},iR:function(){return g},km:function(){return l},tB:function(){return a}});var n=t(3228);let i=t(78780).u.injectEndpoints({endpoints:e=>({getConfigurationSettings:e.query({query:e=>{let{api_set:s}=e;return{url:"/config",method:"GET",params:{api_set:s}}},providesTags:["Configuration Settings"]}),putConfigurationSettings:e.mutation({query:e=>({url:"/config",method:"PUT",body:e}),invalidatesTags:["Configuration Settings"]}),patchConfigurationSettings:e.mutation({query:e=>({url:"/config",method:"PATCH",body:e}),invalidatesTags:["Configuration Settings","Privacy Notices"]})})}),{useGetConfigurationSettingsQuery:a,usePutConfigurationSettingsMutation:l,usePatchConfigurationSettingsMutation:r}=i,d=(0,n.P1)([e=>e,i.endpoints.getConfigurationSettings.select({api_set:!0}),i.endpoints.getConfigurationSettings.select({api_set:!1})],(e,s,t)=>{var n,i,a;let{data:l}=s,{data:r}=t;return{configSet:{cors_origins:(null==r?void 0:null===(n=r.security)||void 0===n?void 0:n.cors_origins)||[],cors_origin_regex:null==r?void 0:null===(i=r.security)||void 0===i?void 0:i.cors_origin_regex},apiSet:{cors_origins:(null==l?void 0:null===(a=l.security)||void 0===a?void 0:a.cors_origins)||[]}}}),o=()=>(0,n.P1)([e=>e,i.endpoints.getConfigurationSettings.select({api_set:!0})],(e,s)=>{let{data:t}=s;return t}),c={enabled:!1,cmp_api_required:!1},u=(e,s,t,n)=>{let i=t&&t[e],a=n&&n[e];return i&&a?{...n[e],...t[e]}:a?n[e]:i?{...t[e]}:s},p=(0,n.P1)([e=>e,i.endpoints.getConfigurationSettings.select({api_set:!0}),i.endpoints.getConfigurationSettings.select({api_set:!1})],(e,s,t)=>{let{data:n}=s,{data:i}=t;return u("gpp",c,n,i)}),m={tcf_publisher_country_code:null},h=(0,n.P1)([e=>e,i.endpoints.getConfigurationSettings.select({api_set:!0}),i.endpoints.getConfigurationSettings.select({api_set:!1})],(e,s,t)=>{let{data:n}=s,{data:i}=t;return u("plus_consent_settings",m,n,i)}),x={allow_username_password_login:!1},g=(0,n.P1)([e=>e,i.endpoints.getConfigurationSettings.select({api_set:!0}),i.endpoints.getConfigurationSettings.select({api_set:!1})],(e,s,t)=>{let{data:n}=s,{data:i}=t;return u("plus_security_settings",x,n,i)})},44121:function(e,s,t){t.d(s,{Z:function(){return ee}});var n=t(24246),i=t(56078),a=t(91437),l=()=>(0,n.jsxs)(i.xuv,{children:[(0,n.jsx)(i.xuv,{pb:4,fontSize:"18px",fontWeight:"semibold",children:"Role Description"}),(0,n.jsx)(i.gCW,{spacing:4,children:a.K.map(e=>(0,n.jsxs)(i.xuv,{width:"100%",padding:4,borderRadius:"md",backgroundColor:"gray.75",fontSize:"14px",children:[(0,n.jsx)(i.xuv,{fontWeight:"semibold",children:e.label}),(0,n.jsx)(i.xuv,{color:"gray.700",children:e.description})]},e.roleKey))})]}),r=t(16134),d=t(7617),o=t(16643),c=t(19904),u=t(34090),p=t(86677),m=t(27378),h=t(812),x=t(46238),g=t(58452),j=t(77830),f=t(46628),w=t(26917),b=t(1315),y=t(95492),_=t(65497);let v=e=>{let{assignedSystems:s,onAssignedSystemChange:t}=e,a=(0,r.C)(_.Ux);if((0,_.d6)(a,{skip:!a}),0===s.length)return null;let l=e=>{t(s.filter(s=>s.fides_key!==e.fides_key))};return(0,n.jsxs)(i.iA_,{size:"sm","data-testid":"assign-systems-delete-table",children:[(0,n.jsx)(i.hrZ,{children:(0,n.jsxs)(i.Tr,{children:[(0,n.jsx)(i.Th,{children:"System"}),(0,n.jsx)(i.Th,{})]})}),(0,n.jsx)(i.p3B,{children:s.map(e=>(0,n.jsxs)(i.Tr,{_hover:{bg:"gray.50"},"data-testid":"row-".concat(e.fides_key),children:[(0,n.jsx)(i.Td,{children:e.name}),(0,n.jsx)(i.Td,{textAlign:"end",children:(0,n.jsx)(i.wpx,{"aria-label":"Unassign system from user",icon:(0,n.jsx)(y.l,{}),onClick:()=>l(e),"data-testid":"unassign-btn"})})]},e.fides_key))})]})};var C=e=>{let{allSystems:s,assignedSystems:t,onChange:a}=e,l=e=>{t.find(s=>s.fides_key===e.fides_key)?a(t.filter(s=>s.fides_key!==e.fides_key)):a([...t,e])};return(0,n.jsx)(i.xuv,{overflowY:"auto",maxHeight:"300px",children:(0,n.jsxs)(i.iA_,{size:"sm","data-testid":"assign-systems-table",maxHeight:"50vh",overflowY:"scroll",children:[(0,n.jsx)(i.hrZ,{position:"sticky",top:0,background:"white",zIndex:1,children:(0,n.jsxs)(i.Tr,{children:[(0,n.jsx)(i.Th,{children:"System"}),(0,n.jsx)(i.Th,{children:"Assign"})]})}),(0,n.jsx)(i.p3B,{children:s.map(e=>{let s=!!t.find(s=>s.fides_key===e.fides_key);return(0,n.jsxs)(i.Tr,{_hover:{bg:"gray.50"},"data-testid":"row-".concat(e.fides_key),children:[(0,n.jsx)(i.Td,{children:e.name}),(0,n.jsx)(i.Td,{children:(0,n.jsx)(i.rAg,{checked:s,onChange:()=>l(e),"data-testid":"assign-switch"})})]},e.fides_key)})})]})})};let S=(e,s)=>{var t,n;return(null===(t=e.name)||void 0===t?void 0:t.toLocaleLowerCase().includes(s.toLocaleLowerCase()))||(null===(n=e.description)||void 0===n?void 0:n.toLocaleLowerCase().includes(s.toLocaleLowerCase()))};var k=e=>{let{isOpen:s,onClose:t,assignedSystems:a,onAssignedSystemChange:l}=e,{data:r}=(0,b.K3)(),[d,o]=(0,m.useState)(""),[c,u]=(0,m.useState)(a),p=async()=>{l(c),t()},h=!r||0===r.length,x=(0,m.useMemo)(()=>r?r.filter(e=>S(e,d)):[],[r,d]),g=(0,m.useMemo)(()=>{let e=new Set(c.map(e=>e.fides_key));return x.every(s=>e.has(s.fides_key))},[x,c]);return(0,n.jsxs)(i.u_l,{isOpen:s,onClose:t,size:"2xl",children:[(0,n.jsx)(i.ZAr,{}),(0,n.jsxs)(i.hzk,{p:8,"data-testid":"confirmation-modal",children:[(0,n.jsxs)(i.xBx,{fontWeight:"medium",display:"flex",justifyContent:"space-between",alignItems:"center",children:[(0,n.jsx)(i.xvT,{children:"Assign systems"}),(0,n.jsxs)(i.j8w,{color:"success",children:["Assigned to ",a.length," systems"]})]}),(0,n.jsx)(i.fef,{"data-testid":"assign-systems-modal-body",children:h?(0,n.jsx)(i.xvT,{children:"No systems found"}):(0,n.jsxs)(i.Kqy,{spacing:4,children:[(0,n.jsxs)(i.kCb,{justifyContent:"space-between",children:[(0,n.jsx)(i.xvT,{fontSize:"sm",flexGrow:1,fontWeight:"medium",children:"Assign systems in your organization to this user"}),(0,n.jsx)(i.xuv,{children:(0,n.jsxs)(i.NIc,{display:"flex",alignItems:"center",children:[(0,n.jsx)(i.lXp,{fontSize:"sm",htmlFor:"assign-all-systems",mb:"0",children:"Assign all systems"}),(0,n.jsx)(i.rAg,{size:"small",id:"assign-all-systems",checked:g,onChange:e=>{e&&r?u(x):u(r?r.filter(e=>!x.includes(e)):[])},"data-testid":"assign-all-systems-toggle"})]})})]}),(0,n.jsx)(w.Z,{value:d,onChange:o,placeholder:"Search for systems","data-testid":"system-search",withIcon:!0}),(0,n.jsx)(C,{allSystems:x,assignedSystems:c,onChange:u})]})}),(0,n.jsx)(i.mzw,{justifyContent:"flex-start",children:(0,n.jsxs)("div",{children:[(0,n.jsx)(i.wpx,{onClick:t,className:"mr-2","data-testid":"cancel-btn",children:"Cancel"}),h?null:(0,n.jsx)(i.wpx,{type:"primary",onClick:p,"data-testid":"confirm-btn",children:"Confirm"})]})})]})]})},P=e=>{let{label:s,roleKey:t,isSelected:a,isDisabled:l,assignedSystems:r,onAssignedSystemChange:d}=e,{setFieldValue:c}=(0,u.u6)(),p=(0,i.qY0)(),m=l?"You do not have sufficient permissions to assign this role.":void 0;return a?(0,n.jsxs)(i.Kqy,{borderRadius:"md",border:"1px solid",borderColor:"gray.200",p:4,backgroundColor:"gray.50","aria-selected":"true",spacing:4,"data-testid":"selected",children:[(0,n.jsxs)(i.kCb,{alignItems:"center",justifyContent:"space-between",children:[(0,n.jsx)(i.xvT,{fontSize:"md",fontWeight:"semibold",children:s}),(0,n.jsx)(i.StI,{})]}),t!==o.A7.APPROVER?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(i.kCb,{alignItems:"center",children:[(0,n.jsx)(i.xvT,{fontSize:"sm",fontWeight:"semibold",mr:1,children:"Assigned systems"}),(0,n.jsx)(x.b,{label:"Assigned systems refer to those systems that have been specifically allocated to a user for management purposes. Users assigned to a system possess full edit permissions and are listed as the Data Steward for the respective system."})]}),(0,n.jsx)(i.wpx,{disabled:l,title:m,type:"primary",size:"small",onClick:p.onOpen,"data-testid":"assign-systems-btn",children:"Assign systems +"}),(0,n.jsx)(v,{assignedSystems:r,onAssignedSystemChange:d}),p.isOpen?(0,n.jsx)(k,{isOpen:p.isOpen,onClose:p.onClose,assignedSystems:r,onAssignedSystemChange:d}):null]}):null]}):(0,n.jsx)(i.wpx,{onClick:()=>{c("roles",[t])},"data-testid":"role-option-".concat(s),title:m,disabled:l,children:s})};let T={roles:[]};var A=()=>{var e;let s=(0,i.pmc)(),t=(0,p.useRouter)(),l=(0,r.C)(_.Ux);(0,_.d6)(l,{skip:!l});let{isOpen:d,onOpen:w,onClose:b}=(0,i.qY0)(),y=(0,r.C)(_.R$),[v,C]=(0,m.useState)(y),[S]=(0,_.G$)();(0,m.useEffect)(()=>{C(y)},[y]);let{data:k,isLoading:A}=(0,_.gU)(null!=l?l:"",{skip:!l}),[R]=(0,_.lD)(),z=async e=>{if(d&&b(),!l)return;let t=e.roles.includes(o.A7.APPROVER),n=await R({user_id:l,payload:{roles:e.roles}});if((0,h.D4)(n)){s((0,f.Vo)((0,h.e$)(n.error)));return}if(!t){let e=v.map(e=>e.fides_key),t=await S({userId:l,fidesKeys:e});if((0,h.D4)(t)){s((0,f.Vo)((0,h.e$)(t.error)));return}}s((0,f.t5)("Permissions updated"))},q=async e=>{l&&(v.length>0&&e.roles.includes(o.A7.APPROVER)?w():await z(e))},E=(0,c.Tg)([o.Sh.USER_PERMISSION_ASSIGN_OWNERS]);if(!l)return null;if(A)return(0,n.jsx)(i.$jN,{});if(!E&&(null==k?void 0:null===(e=k.roles)||void 0===e?void 0:e.includes(o.A7.OWNER)))return(0,n.jsx)(i.xvT,{"data-testid":"insufficient-access",children:"You do not have sufficient access to change this user's permissions."});let I=(null==k?void 0:k.roles)?{roles:k.roles}:T;return(0,n.jsx)(u.J9,{onSubmit:q,initialValues:I,enableReinitialize:!0,children:e=>{let{values:s,isSubmitting:l,dirty:r}=e;return(0,n.jsxs)(u.l0,{children:[(0,n.jsxs)(i.Kqy,{spacing:7,children:[(0,n.jsxs)(i.Kqy,{spacing:3,"data-testid":"role-options",children:[(0,n.jsxs)(i.kCb,{alignItems:"center",children:[(0,n.jsx)(i.xvT,{fontSize:"sm",fontWeight:"semibold",mr:1,children:"User role"}),(0,n.jsx)(x.b,{label:"A user's role in the organization determines what parts of the UI they can access and which functions are available to them."})]}),a.K.map(e=>{let t=s.roles.indexOf(e.roleKey)>=0;return(0,n.jsx)(P,{isSelected:t,isDisabled:e.roleKey===o.A7.OWNER&&!E,assignedSystems:v,onAssignedSystemChange:C,...e},e.roleKey)})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)(i.wpx,{onClick:()=>t.push(j.e3),children:"Cancel"}),(0,n.jsx)(i.wpx,{type:"primary",htmlType:"submit",loading:l,disabled:!r&&v===y,"data-testid":"save-btn",children:"Save"})]})]}),(0,n.jsx)(g.Z,{isOpen:d,onClose:b,onConfirm:()=>z(s),title:"Change role to Approver",testId:"downgrade-to-approver-confirmation-modal",continueButtonText:"Yes",message:(0,n.jsx)(i.xvT,{children:"Switching to an approver role will remove all assigned systems. Do you wish to proceed?"})})]})}})},R=t(61038),z=t(55484),q=t(25980),E=t(40324),I=t(96006),O=t(7426);let{useGetEmailInviteStatusQuery:N}=t(78780).u.injectEndpoints({endpoints:e=>({getEmailInviteStatus:e.query({query:()=>({url:"/messaging/email-invite/status"}),providesTags:()=>["Email Invite Status"]})})});var U=t(76174),Z=t(91317),W=t(31883);let D=z.Ry().shape({password:I.a.label("Password"),passwordConfirmation:z.Z_().required().oneOf([z.iH("password")],"Passwords must match").label("Password confirmation")}),K={password:"",passwordConfirmation:""},B=e=>{let s=(0,i.qY0)(),t=(0,i.pmc)(),[n]=(0,_.ls)(),a=async i=>{let a=await n({id:e,new_password:i.password});(0,W.D4)(a)?t((0,f.Vo)((0,h.e$)(a.error))):(t((0,f.t5)("Successfully reset user's password. Please inform the user of their new password.")),s.onClose())};return{...s,handleResetPassword:a}};var Y=e=>{let{id:s}=e,{handleResetPassword:t,isOpen:a,onClose:l,onOpen:r}=B(s);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.wpx,{onClick:r,"data-testid":"reset-password-btn",children:"Reset password"}),(0,n.jsxs)(i.u_l,{isCentered:!0,isOpen:a,onClose:l,children:[(0,n.jsx)(i.ZAr,{}),(0,n.jsx)(i.hzk,{children:(0,n.jsx)(u.J9,{initialValues:K,validationSchema:D,onSubmit:t,children:e=>{let{isSubmitting:s,dirty:t,isValid:a}=e;return(0,n.jsxs)(u.l0,{children:[(0,n.jsx)(i.xBx,{children:"Reset Password"}),(0,n.jsx)(i.olH,{}),(0,n.jsx)(i.fef,{children:(0,n.jsxs)(i.Kqy,{direction:"column",spacing:4,children:[(0,n.jsx)(i.xvT,{mb:2,children:"Choose a new password for this user."}),(0,n.jsx)(E.j0,{name:"password",label:"Password",placeholder:"********",type:"password",tooltip:"Password must contain at least 8 characters, 1 number, 1 capital letter, 1 lowercase letter, and at least 1 symbol.",autoComplete:"new-password"}),(0,n.jsx)(E.j0,{name:"passwordConfirmation",label:"Confirm Password",placeholder:"********",type:"password",tooltip:"Must match above password.",autoComplete:"confirm-password"})]})}),(0,n.jsx)(i.mzw,{children:(0,n.jsxs)("div",{className:"w-full gap-2",children:[(0,n.jsx)(i.wpx,{onClick:l,className:"w-1/2",children:"Cancel"}),(0,n.jsx)(i.wpx,{type:"primary",disabled:!t||!a,loading:s,htmlType:"submit",className:"w-1/2","data-testid":"submit-btn",children:"Change Password"})]})})]})}})})]})]})};let L=e=>{let s=(0,i.qY0)(),t=(0,i.pmc)(),[n,a]=(0,m.useState)(""),[l,r]=(0,m.useState)(""),[d,{isLoading:o}]=(0,_.ev)(),c=!!(e&&l&&n),u=async()=>{c&&d({id:e,old_password:n,new_password:l}).unwrap().then(()=>{t((0,f.t5)("Password updated")),s.onClose()})};return{...s,changePasswordValidation:c,handleChange:e=>{"oldPassword"===e.target.name?a(e.target.value):r(e.target.value)},handleChangePassword:u,isLoading:o,newPasswordValue:l,oldPasswordValue:n}};var V=e=>{let{id:s}=e,{changePasswordValidation:t,handleChange:a,handleChangePassword:l,isLoading:r,isOpen:d,newPasswordValue:o,oldPasswordValue:c,onClose:u,onOpen:p}=L(s);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.wpx,{onClick:p,"data-testid":"update-password-btn",children:"Update password"}),(0,n.jsxs)(i.u_l,{isCentered:!0,isOpen:d,onClose:u,children:[(0,n.jsx)(i.ZAr,{}),(0,n.jsxs)(i.hzk,{children:[(0,n.jsx)(i.xBx,{children:"Update Password"}),(0,n.jsx)(i.olH,{}),(0,n.jsx)(i.fef,{pb:6,children:(0,n.jsxs)(i.Kqy,{direction:"column",spacing:"15px",children:[(0,n.jsx)(i.NIc,{children:(0,n.jsx)(i.IIB,{isRequired:!0,name:"oldPassword",onChange:a,placeholder:"Old Password",type:"password",value:c,"data-testid":"input-oldPassword"})}),(0,n.jsx)(i.NIc,{children:(0,n.jsx)(i.IIB,{isRequired:!0,name:"newPassword",onChange:a,placeholder:"New Password",type:"password",value:o,"data-testid":"input-newPassword"})})]})}),(0,n.jsxs)(i.mzw,{children:[(0,n.jsx)(i.wpx,{onClick:u,className:"mr-2 w-1/2",children:"Cancel"}),(0,n.jsx)(i.wpx,{type:"primary",disabled:!t,loading:r,onClick:l,htmlType:"submit",className:"mr-3 w-1/2","data-testid":"submit-btn",children:"Change Password"})]})]})]})]})},F=()=>{let e=(0,r.C)(_.Ux),s=(0,r.C)(Z.dy),t=!!s&&s.id===e;return(0,n.jsx)(i.xuv,{children:e?(0,n.jsxs)(i.Ugi,{children:[t?(0,n.jsx)(V,{id:e}):null,(0,n.jsx)(c.ZP,{scopes:[o.Sh.USER_PASSWORD_RESET],children:(0,n.jsx)(Y,{id:e})})]}):null})};let M=(e,s,t,n)=>!e||e&&!s||e&&s&&!0===t&&!!n,$=(e,s,t)=>!!(e&&s&&t),H=(e,s,t,n,i,a)=>!!e&&!s&&M(t,n,i,a),G=(e,s,t,n)=>M(e,s,t,n),J={username:"",first_name:"",email_address:"",last_name:"",password:"",password_login_enabled:!1},Q=(e,s,t,n,i)=>z.Ry().shape({username:z.Z_().required().label("Username"),email_address:z.Z_().email().required().label("Email address"),first_name:z.Z_().label("First name"),last_name:z.Z_().label("Last name"),password:z.Z_().when(["password_login_enabled"],{is:a=>H(e,s,t,n,i,a),then:()=>I.a.label("Password"),otherwise:()=>z.Z_().optional().label("Password")}),password_login_enabled:z.O7().label("Allow password login")});var X=e=>{let{onSubmit:s,initialValues:t,canEditNames:a}=e,l=(0,p.useRouter)(),d=(0,i.pmc)(),o=(0,r.T)(),c=(0,i.qY0)(),{data:m}=N(),{data:x}=(0,U.qv)();(0,O.tB)({api_set:!1});let g=(0,r.C)(_.ZC),w=(0,r.C)(O.iR),{plus:b}=(0,q.hz)(),v=(null==m?void 0:m.enabled)||!1,C=(null==w?void 0:w.allow_username_password_login)||!1,S=!g,k=!S&&!a,P=x&&x.length>0||!1,T=$(b,P,C),A=null!=t?t:J;g&&"password_login_enabled"in g&&(A={...A,password_login_enabled:!!g.password_login_enabled});let z=Q(S,v,b,P,C),I=async e=>{let t=H(S,v,b,P,C,e.password_login_enabled),n={username:e.username,email_address:e.email_address,first_name:e.first_name,last_name:e.last_name};T&&(n.password_login_enabled=e.password_login_enabled),t&&e.password&&(n.password=e.password);let i=await s(n);if((0,h.D4)(i)){d((0,f.Vo)((0,h.e$)(i.error)));return}d((0,f.t5)("".concat(S?"User created. By default, new users are set to the Viewer role. To change the role, please go to the Permissions tab.":"User updated."))),(null==i?void 0:i.data)&&o((0,_.Vv)(i.data.id))};return(0,n.jsx)(u.J9,{onSubmit:I,initialValues:A,validationSchema:z,"data-testid":"user-form",children:e=>{let{dirty:s,isSubmitting:t,isValid:a,values:r}=e;return(0,n.jsx)(u.l0,{children:(0,n.jsxs)(i.Kqy,{maxW:["xs","xs","100%"],width:"100%",spacing:7,children:[(0,n.jsxs)(i.Kqy,{spacing:6,maxWidth:"55%",children:[(0,n.jsxs)(i.kCb,{children:[(0,n.jsxs)(i.xvT,{display:"flex",alignItems:"center",fontSize:"sm",fontWeight:"semibold",children:["Profile"," ",(null==g?void 0:g.disabled)&&(0,n.jsx)(i.j8w,{color:"success",className:"ml-2","data-testid":"invite-sent-badge",children:"Invite sent"})]}),(0,n.jsx)(i.xuv,{marginLeft:"auto",children:(0,n.jsxs)(i.Ugi,{children:[G(b,P,C||!1,r.password_login_enabled)&&(0,n.jsx)(F,{"data-testid":"password-management"}),S?null:(0,n.jsxs)(i.xuv,{children:[(0,n.jsx)(i.wpx,{"aria-label":"delete",icon:(0,n.jsx)(y.l,{}),onClick:c.onOpen,"data-testid":"delete-user-btn"}),(0,n.jsx)(R.Z,{user:g,...c})]})]})})]}),(0,n.jsx)(E.j0,{name:"username",label:"Username",variant:"block",placeholder:"Enter new username",disabled:!S,isRequired:!0,"data-testid":"input-username"}),(0,n.jsx)(E.j0,{name:"email_address",label:"Email address",variant:"block",placeholder:"Enter email of user",isRequired:!0,"data-testid":"input-email-address"}),(0,n.jsx)(E.j0,{name:"first_name",label:"First name",variant:"block",placeholder:"Enter first name of user",disabled:k,"data-testid":"input-first-name"}),(0,n.jsx)(E.j0,{name:"last_name",label:"Last name",variant:"block",placeholder:"Enter last name of user",disabled:k,"data-testid":"input-last-name"}),T&&(0,n.jsx)(E.w8,{name:"password_login_enabled",label:"Allow password login",tooltip:"When enabled, user can log in with username and password. When disabled, user must use SSO.",variant:"stacked",isDisabled:!S,"data-testid":"toggle-allow-password-login",size:"default"}),H(S,v,b,P,C,r.password_login_enabled)&&(0,n.jsx)(E.j0,{name:"password",label:"Password",variant:"block",placeholder:"********",type:"password",tooltip:"Password must contain at least 8 characters, 1 number, 1 capital letter, 1 lowercase letter, and at least 1 symbol.",isRequired:!0,"data-testid":"input-password"})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)(i.wpx,{onClick:()=>l.push(j.e3),className:"mr-3","data-testid":"cancel-btn",children:"Cancel"}),(0,n.jsx)(i.wpx,{htmlType:"submit",type:"primary",disabled:!s||!a,loading:t,"data-testid":"save-user-btn",children:"Save"})]})]})})}})},ee=e=>{let{onSubmit:s,initialValues:t,...a}=e,u=(0,r.C)(_.Ux);(0,_.Fk)(u,{skip:!u});let p=(0,c.Tg)([o.Sh.USER_PERMISSION_UPDATE]),m=[{label:"Profile",content:(0,n.jsx)(X,{onSubmit:s,initialValues:t,...a})},{label:"Permissions",content:(0,n.jsxs)(i.kCb,{gap:"97px",children:[(0,n.jsx)(i.xuv,{w:{base:"100%",md:"50%",xl:"50%"},children:(0,n.jsx)(A,{})}),(0,n.jsx)(i.xuv,{position:"absolute",top:"96px",right:6,height:"calc(100% + 100px)",overflowY:"scroll",padding:6,w:"35%",borderLeftWidth:"1px",children:(0,n.jsx)(l,{})})]}),isDisabled:!u||!p}];return(0,n.jsx)(d.Z,{data:m})}},31883:function(e,s,t){t.d(s,{Bw:function(){return n.Bw},D4:function(){return n.D4}});var n=t(19043)}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4481],{26917:function(e,t,n){var l=n(24246),o=n(56078);t.Z=e=>{let{onChange:t,withIcon:n,onClear:i,placeholder:r,...s}=e;return(0,l.jsxs)(o.vyj.Compact,{className:"w-96","data-testid":"search-bar",children:[(0,l.jsx)(o.uFc,{autoComplete:"off",onChange:e=>t(e.target.value),placeholder:r||"Search...",prefix:n?(0,l.jsx)(o.PTu,{boxSize:4}):void 0,...s}),i?(0,l.jsx)(o.wpx,{onClick:i,children:"Clear"}):null]})}},812:function(e,t,n){n.d(t,{D4:function(){return i.D4},MM:function(){return g},Ot:function(){return c},c6:function(){return o},cj:function(){return h},e$:function(){return s},fn:function(){return a},iC:function(){return x},nU:function(){return u},tB:function(){return d}});var l,o,i=n(19043);let r="An unexpected error occurred. Please try again.",s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r;if((0,i.Bw)(e)){if((0,i.hE)(e.data))return e.data.detail;if((0,i.cz)(e.data)){var n;let t=null===(n=e.data.detail)||void 0===n?void 0:n[0];return"".concat(null==t?void 0:t.msg,": ").concat(null==t?void 0:t.loc)}if(409===e.status&&(0,i.Dy)(e.data)||404===e.status&&(0,i.XD)(e.data))return"".concat(e.data.detail.error," (").concat(e.data.detail.fides_key,")")}return t};function a(e){return"object"==typeof e&&null!=e&&"status"in e}function c(e){return"object"==typeof e&&null!=e&&"data"in e&&"string"==typeof e.data.detail}function d(e){return"object"==typeof e&&null!=e&&"data"in e&&Array.isArray(e.data.detail)}let u=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{status:500,message:r};if((0,i.oK)(e))return{status:e.originalStatus,message:e.data};if((0,i.Bw)(e)){let{status:n}=e;return{status:n,message:s(e,t.message)}}return t},g=e=>Object.entries(e).map(e=>({value:e[1],label:e[1]}));(l=o||(o={})).GVL="gvl",l.AC="gacp",l.COMPASS="compass";let x={gvl:{label:"GVL",fullName:"Global Vendor List"},gacp:{label:"AC",fullName:"Google Additional Consent List"},compass:{label:"",fullName:""}},h=e=>{let t=e.split(".")[0];return"gacp"===t?"gacp":"gvl"===t?"gvl":"compass"}},71795:function(e,t,n){n.d(t,{_:function(){return o}});var l=n(27378);function o(e,t){let[n,o]=(0,l.useState)(()=>{if(!e)return t;try{let n=window.localStorage.getItem(e);return n?JSON.parse(n):t}catch(e){return console.error(e),t}});return[n,t=>{try{let l=t instanceof Function?t(n):t;o(l),e&&window.localStorage.setItem(e,JSON.stringify(l))}catch(e){console.error(e)}}]}},58452:function(e,t,n){var l=n(24246),o=n(56078);t.Z=e=>{let{isOpen:t,onClose:n,onConfirm:i,onCancel:r,title:s,message:a,cancelButtonText:c,continueButtonText:d,isLoading:u,returnFocusOnClose:g,isCentered:x,testId:h="confirmation-modal",icon:m}=e;return(0,l.jsxs)(o.u_l,{isOpen:t,onClose:n,size:"lg",returnFocusOnClose:null==g||g,isCentered:x,children:[(0,l.jsx)(o.ZAr,{}),(0,l.jsxs)(o.hzk,{textAlign:"center",p:6,"data-testid":h,children:[m?(0,l.jsx)(o.M5Y,{mb:2,children:m}):null,s?(0,l.jsx)(o.xBx,{fontWeight:"medium",pb:0,children:s}):null,a?(0,l.jsx)(o.fef,{children:a}):null,(0,l.jsx)(o.mzw,{children:(0,l.jsxs)(o.MIq,{columns:2,width:"100%",children:[(0,l.jsx)(o.wpx,{onClick:()=>{r&&r(),n()},size:"large",className:"mr-3","data-testid":"cancel-btn",disabled:u,children:c||"Cancel"}),(0,l.jsx)(o.wpx,{type:"primary",size:"large",onClick:i,"data-testid":"continue-btn",loading:u,children:d||"Continue"})]})})]})]})}},42904:function(e,t,n){n.d(t,{W3:function(){return r},bX:function(){return s},oi:function(){return a},s8:function(){return c}});var l=n(24246),o=n(56078),i=n(27378);let r=[25,50,100],s=e=>{let t=e.getFilteredRowModel().rows.length,{pageIndex:n}=e.getState().pagination,{pageSize:l}=e.getState().pagination,o=e.previousPage,i=!e.getCanPreviousPage(),r=e.nextPage,s=!e.getCanNextPage(),{setPageSize:a}=e;return{totalRows:t,onPreviousPageClick:o,isPreviousPageDisabled:i,onNextPageClick:r,isNextPageDisabled:s,setPageSize:a,startRange:n*l==0?1:n*l,endRange:n*l+l}},a=()=>{let e,t;let[n,l]=(0,i.useState)(r[0]),[o,s]=(0,i.useState)(1),[a,c]=(0,i.useState)(1),d=(0,i.useCallback)(()=>{s(e=>e-1)},[s]),u=(0,i.useMemo)(()=>1===o,[o]),g=(0,i.useCallback)(()=>{s(e=>e+1)},[s]),x=(0,i.useMemo)(()=>{let e=!a,t=!!a&&o===a;return e||t},[o,a]);if(a){let l=(o-1)*n;e=l+1,t=l+n}else e=0,t=0;let h=(0,i.useCallback)(()=>{s(1)},[]);return{onPreviousPageClick:d,isPreviousPageDisabled:u,onNextPageClick:g,isNextPageDisabled:x,pageSize:n,setPageSize:e=>{l(e),h()},PAGE_SIZES:r,startRange:e,endRange:t,pageIndex:o,resetPageIndexToDefault:h,setTotalPages:c}},c=e=>{let{pageSizes:t,totalRows:n,onPreviousPageClick:i,isPreviousPageDisabled:r,onNextPageClick:s,isNextPageDisabled:a,setPageSize:c,startRange:d,endRange:u}=e;return(0,l.jsxs)(o.Ugi,{ml:1,mt:3,mb:1,children:[(0,l.jsxs)(o.v2r,{children:[(0,l.jsx)(o.j2t,{as:o.wpx,size:"small","data-testid":"pagination-btn",children:(0,l.jsxs)(o.xvT,{fontSize:"xs",lineHeight:4,fontWeight:"semibold",userSelect:"none",style:{fontVariantNumeric:"tabular-nums"},children:[d.toLocaleString("en"),"-",u<=n?u.toLocaleString("en"):n.toLocaleString("en")," ","of ",n.toLocaleString("en")]})}),(0,l.jsx)(o.qyq,{minWidth:"0",children:t.map(e=>(0,l.jsxs)(o.sNh,{onClick:()=>{c(e)},"data-testid":"pageSize-".concat(e),fontSize:"xs",children:[e," per view"]},e))})]}),(0,l.jsx)(o.wpx,{icon:(0,l.jsx)(o.wyc,{}),size:"small","aria-label":"previous page",onClick:i,disabled:r}),(0,l.jsx)(o.wpx,{icon:(0,l.jsx)(o.XCv,{}),size:"small","aria-label":"next page",onClick:s,disabled:a})]})}},72625:function(e,t,n){n.d(t,{A4:function(){return f},CI:function(){return v},Cy:function(){return m},G3:function(){return h},Hm:function(){return y},Rr:function(){return S},S1:function(){return k},WP:function(){return C},k:function(){return w},mb:function(){return j},tc:function(){return b}});var l=n(24246),o=n(7195),i=n(56078),r=n(34090),s=n(3819),a=n.n(s),c=n(27378),d=n(812),u=n(58452),g=n(46628),x=n(16394);let h=e=>{var t,n;let{value:o,cellProps:r,...s}=e,c=!!(null==r?void 0:null===(t=r.cell.column.columnDef.meta)||void 0===t?void 0:t.showHeaderMenu)&&!!(null==r?void 0:null===(n=r.cellState)||void 0===n?void 0:n.isExpanded);return(0,l.jsx)(i.xvT,{fontSize:"xs",lineHeight:4,py:1.5,fontWeight:"normal",textOverflow:"ellipsis",overflow:c?void 0:"hidden",whiteSpace:c?"normal":void 0,title:c&&o?void 0:null==o?void 0:o.toString(),...s,children:a()(o)?o.toString():o})},m=e=>{let{time:t}=e;if(!t)return(0,l.jsx)(h,{value:"N/A"});let n=(0,o.B)(new Date(t),new Date,{addSuffix:!0}),r=(0,x.p6)(new Date(t));return(0,l.jsx)(i.kCb,{alignItems:"center",height:"100%",children:(0,l.jsx)(i.esZ,{title:r,children:(0,l.jsx)(i.xvT,{fontSize:"xs",lineHeight:4,fontWeight:"normal",overflow:"hidden",textOverflow:"ellipsis",children:(0,x.G8)(n)})})})},p=e=>{let{children:t,...n}=e;return(0,l.jsx)(i.kCb,{alignItems:"center",height:"100%",mr:2,overflow:"auto",...n,children:t})},f=e=>{let{value:t,suffix:n,...o}=e;return(0,l.jsx)(p,{children:(0,l.jsxs)(i.j8w,{...o,children:[t,n]})})},v=e=>{let{count:t,singSuffix:n,plSuffix:o,...r}=e,s=null;return s=1===t?(0,l.jsxs)(i.j8w,{...r,children:[t,n?" ".concat(n):null]}):(0,l.jsxs)(i.j8w,{...r,children:[t,o?" ".concat(o):null]}),(0,l.jsx)(p,{children:s})},j=e=>{let{values:t,cellProps:n,...o}=e,{isExpanded:r,isWrapped:s,version:a}=(null==n?void 0:n.cellState)||{},[d,u]=(0,c.useState)(!r),[g,x]=(0,c.useState)(!!s),[h,m]=(0,c.useState)(r?t:null==t?void 0:t.slice(0,2));return(0,c.useEffect)(()=>{u(!r)},[r,a]),(0,c.useEffect)(()=>{x(!!s)},[s]),(0,c.useEffect)(()=>{(null==t?void 0:t.length)&&m(d?t.slice(0,2):t)},[d,t]),(0,c.useMemo)(()=>(null==h?void 0:h.length)?(0,l.jsxs)(i.kCb,{alignItems:d?"center":"flex-start",flexDirection:d||g?"row":"column",flexWrap:g?"wrap":"nowrap",gap:1.5,pt:2,pb:2,overflowX:"auto",onClick:e=>{d||(e.stopPropagation(),u(!0))},cursor:d?void 0:"pointer",children:[h.map(e=>(0,l.jsx)(i.j8w,{color:"white","data-testid":e.key,...o,children:e.label},e.key)),d&&t&&t.length>2&&(0,l.jsxs)(i.wpx,{type:"link",size:"small",onClick:()=>u(!1),className:"text-xs font-normal",children:["+",t.length-2," more"]})]}):null,[h,d,g,t,o])},b=e=>{let{values:t,valueSuffix:n,cellProps:o}=e,{isExpanded:r,version:s}=(null==o?void 0:o.cellState)||{},[a,d]=(0,c.useState)(!r);return(0,c.useEffect)(()=>{d(!r)},[r,s]),(0,c.useMemo)(()=>(null==t?void 0:t.length)?1===t.length?(0,l.jsx)(i.xvT,{fontSize:"xs",lineHeight:4,fontWeight:"normal",textOverflow:"ellipsis",overflow:"hidden",children:t[0]}):(0,l.jsxs)(i.kCb,{flexDirection:"row",alignItems:"center",gap:1,pt:2,pb:2,onClick:e=>{a||(e.stopPropagation(),d(!0))},cursor:a?void 0:"pointer",children:[a&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(i.xvT,{fontSize:"xs",lineHeight:4,fontWeight:"normal",children:[t.length," ",n]}),(0,l.jsx)(i.wpx,{type:"link",size:"small",onClick:()=>d(!1),className:"text-xs font-normal",children:"View"})]}),!a&&(0,l.jsx)(i.aVo,{overflow:"hidden",children:t.map(e=>(0,l.jsx)(i.HCh,{fontSize:"xs",lineHeight:4,listStyleType:"none",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",children:e},e))})]}):null,[a,t,n])},C=e=>{let{value:t,suffix:n,cellState:o,ignoreZero:r,tagProps:s}=e,a=null;return t?(a=Array.isArray(t)?1===t.length?(0,l.jsx)(i.j8w,{...s,children:t}):(null==o?void 0:o.isExpanded)&&t.length>0?t.map((e,t)=>(0,l.jsx)(i.j8w,{...s,children:e},(null==e?void 0:e.toString())||t)):(0,l.jsxs)(i.j8w,{...s,children:[t.length,n?" ".concat(n):null]}):(0,l.jsx)(i.j8w,{...s,children:t}),(0,l.jsx)(i.kCb,{alignItems:"center",height:"100%",gap:2,overflowX:"hidden",children:a})):r?null:(0,l.jsxs)(i.j8w,{...s,children:["0",n?" ".concat(n):""]})},w=e=>{let{dataTestId:t,...n}=e;return(0,l.jsx)(i.kCb,{alignItems:"center",justifyContent:"center",onClick:e=>e.stopPropagation(),children:(0,l.jsx)(i.XZJ,{"data-testid":t||void 0,...n})})},S=e=>{let{value:t,...n}=e;return(0,l.jsx)(i.xvT,{fontSize:"xs",lineHeight:9,fontWeight:"medium",flex:1,...n,children:t})},y=e=>{let{value:t,defaultValue:n,isEditing:o,...s}=e,a=s.column.columnDef.id||"",{submitForm:c}=(0,r.u6)();return o?(0,l.jsx)(r.Rt,{name:a,as:i.uFc,maxLength:80,placeholder:n,"aria-label":"Edit column name",size:"small","data-testid":"column-".concat(a,"-input"),onPressEnter:c}):(0,l.jsx)(S,{value:t,...s})},k=e=>{let{enabled:t,onToggle:n,title:o,message:r,isDisabled:s,...a}=e,c=(0,i.qY0)(),x=(0,i.pmc)(),h=async e=>{let{enable:t}=e,l=await n(t);(0,d.D4)(l)&&x((0,g.Vo)((0,d.e$)(l.error)))},m=async e=>{e?await h({enable:!0}):c.onOpen()};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(i.rAg,{checked:t,onChange:m,disabled:s,"data-testid":"toggle-switch",...a}),(0,l.jsx)(u.Z,{isOpen:c.isOpen,onClose:c.onClose,onConfirm:()=>{h({enable:!1}),c.onClose()},title:o,message:(0,l.jsx)(i.xvT,{color:"gray.500",children:r}),continueButtonText:"Confirm",isCentered:!0,icon:(0,l.jsx)(i.aNP,{color:"orange.100"})})]})}},14481:function(e,t,n){n.d(t,{A4:function(){return l.A4},CI:function(){return l.CI},F1:function(){return p},G3:function(){return l.G3},Rr:function(){return l.Rr},vr:function(){return W},ZK:function(){return R},HO:function(){return D},WP:function(){return l.WP},k:function(){return l.k},W3:function(){return A.W3},s8:function(){return A.s8},AA:function(){return _},Q$:function(){return H},I4:function(){return P},bX:function(){return A.bX},oi:function(){return A.oi}});var l=n(72625),o=n(24246),i=n(56078),r=n(27378),s=n(43862),a=n(65201),c=n(75383),d=n(52202);let u="DraggableColumnListItem",g=e=>{let{id:t,index:n,moveColumn:l,setColumnVisible:o}=e,i=(0,r.useRef)(null),[{handlerId:s},a]=(0,c.L)({accept:u,collect:e=>({handlerId:e.getHandlerId()}),hover(e,t){var o;if(!i.current)return;let r=e.index;if(r===n)return;let s=null===(o=i.current)||void 0===o?void 0:o.getBoundingClientRect(),a=(s.bottom-s.top)/2,c=t.getClientOffset().y-s.top;r<n&&c<a||r>n&&c>a||(l(r,n),Object.assign(e,{index:n}))}}),[{isDragging:g},x,h]=(0,d.c)({type:u,item:()=>({id:t,index:n}),collect:e=>({isDragging:!!e.isDragging()})});return x(a(i)),{isDragging:g,ref:i,handlerId:s,preview:h,handleColumnVisibleToggle:e=>{o(n,e)}}},x=e=>{let{id:t,index:n,isVisible:l,moveColumn:r,setColumnVisible:s,text:a}=e,{ref:c,isDragging:d,handlerId:u,preview:x,handleColumnVisibleToggle:h}=g({index:n,id:t,moveColumn:r,setColumnVisible:s});return(0,o.jsxs)(i.HCh,{alignItems:"center",display:"flex",minWidth:0,ref:e=>{x(e)},"data-handler-id":u,opacity:d?.2:1,"data-testid":"column-list-item-".concat(t),children:[(0,o.jsx)(i.xuv,{ref:c,cursor:d?"grabbing":"grab","data-testid":"column-dragger-".concat(t),children:(0,o.jsx)(i.DE2,{as:i.zGR,color:"gray.300",flexShrink:0,height:"20px",width:"20px",_hover:{color:"gray.700"}})}),(0,o.jsxs)(i.NIc,{alignItems:"center",display:"flex",minWidth:0,title:a,children:[(0,o.jsx)(i.lXp,{color:"gray.700",fontSize:"normal",fontWeight:400,htmlFor:"".concat(t),mb:"0",minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",flexGrow:1,children:a}),(0,o.jsx)(i.rAg,{id:"".concat(t),checked:l,onChange:h})]})]})},h=e=>{let{columns:t}=e,[n,l]=(0,r.useState)(null!=t?t:[]);return(0,r.useEffect)(()=>{l((null==t?void 0:t.map(e=>({...e})))||[])},[t]),{columns:n,moveColumn:(0,r.useCallback)((e,t)=>{l(n=>(0,a.ZP)(n,n=>{let l=n[e];n.splice(e,1),n.splice(t,0,l)}))},[]),setColumnVisible:(0,r.useCallback)((e,t)=>{l(n=>(0,a.ZP)(n,n=>{n[e]&&(n[e].isVisible=t)}))},[])}},m=e=>{let{columns:t,columnEditor:n}=e;return(0,o.jsx)(i.aVo,{spacing:4,children:t.map((e,t)=>(0,o.jsx)(x,{id:e.id,index:t,isVisible:e.isVisible,moveColumn:n.moveColumn,setColumnVisible:n.setColumnVisible,text:e.displayText},e.id))})},p=e=>{let{isOpen:t,onClose:n,headerText:l,tableInstance:a,columnNameMap:c,prefixColumns:d,savedCustomReportId:u,onColumnOrderChange:g,onColumnVisibilityChange:x}=e,p=h({columns:(0,r.useMemo)(()=>a.getAllColumns().filter(e=>!d.includes(e.id)).map(e=>{var t;return{id:e.id,displayText:(0,s.AH)({columnNameMap:c,columnId:e.id}),isVisible:null!==(t=a.getState().columnVisibility[e.id])&&void 0!==t?t:e.getIsVisible()}}).sort((e,t)=>{let{columnOrder:n}=a.getState(),l=n.indexOf(e.id),o=n.indexOf(t.id);return -1===l&&-1===o?0:-1===l?1:-1===o?-1:l-o}),[u,c])}),f=(0,r.useCallback)(()=>{let e=[...d,...p.columns.map(e=>e.id)],t=p.columns.reduce((e,t)=>(e[t.id]=t.isVisible,e),{});g(e),x(t),n()},[n,d,p.columns,g,x]);return(0,o.jsxs)(i.u_l,{isOpen:t,onClose:n,isCentered:!0,size:"2xl",children:[(0,o.jsx)(i.ZAr,{}),(0,o.jsxs)(i.hzk,{children:[(0,o.jsx)(i.xBx,{pb:0,children:l}),(0,o.jsx)(i.olH,{"data-testid":"column-settings-close-button"}),(0,o.jsxs)(i.fef,{children:[(0,o.jsx)(i.xvT,{fontSize:"sm",color:"gray.500",mb:2,children:"You can toggle columns on and off to hide or show them in the table. Additionally, you can drag columns up or down to change the order"}),(0,o.jsxs)(i.mQc,{colorScheme:"complimentary",children:[(0,o.jsx)(i.tdY,{children:(0,o.jsx)(i.OK9,{color:"complimentary.500",children:"Columns"})}),(0,o.jsx)(i.nPR,{children:(0,o.jsx)(i.x45,{p:0,pt:4,maxHeight:"270px",overflowY:"scroll",children:(0,o.jsx)(m,{columns:p.columns,columnEditor:p})})})]})]}),(0,o.jsx)(i.mzw,{children:(0,o.jsxs)(i.xuv,{display:"flex",justifyContent:"space-between",width:"100%",children:[(0,o.jsx)(i.wpx,{onClick:n,className:"mr-3 grow",children:"Cancel"}),(0,o.jsx)(i.wpx,{onClick:f,type:"primary",className:"grow","data-testid":"save-button",children:"Save"})]})})]})]})};var f=n(59003),v=n(71795),j=n(14048);let b=e=>{var t,n,l,r,a,c,d,u;let g,{cell:x,onRowClick:h,cellState:m}=e,p=x.getContext().table.getState().grouping.length>0,v=p?x.getContext().table.getState().grouping[0]:void 0,j=x.column.id===v,b=!1,C=!1,w=!1,S=x.getContext().table.getRowModel().rows.filter(e=>!e.id.includes(":")),y=S[0].id===x.row.id,k=S[S.length-1].id===x.row.id;if(x.getValue()&&j){let e=x.getContext().table.getRow("".concat(x.column.id,":").concat(x.getValue()));w=1===e.subRows.length,b=e.subRows[0].id===x.row.id,C=e.subRows[e.subRows.length-1].id===x.row.id}let z=(!j||b)&&!!(null===(t=x.column.columnDef.meta)||void 0===t?void 0:t.onCellClick);return(null===(n=x.column.columnDef.meta)||void 0===n?void 0:n.disableRowClick)||!h?z&&(g=()=>{var e,t;null===(t=x.column.columnDef.meta)||void 0===t||null===(e=t.onCellClick)||void 0===e||e.call(t,x.row.original)}):g=e=>{h(x.row.original,e)},(0,o.jsx)(i.Td,{width:(null===(l=x.column.columnDef.meta)||void 0===l?void 0:l.width)?x.column.columnDef.meta.width:"unset",overflow:(null===(r=x.column.columnDef.meta)||void 0===r?void 0:r.overflow)?null===(a=x.column.columnDef.meta)||void 0===a?void 0:a.overflow:"auto",borderBottomWidth:k||j?"0px":"1px",borderBottomColor:"gray.200",borderRightWidth:"1px",borderRightColor:"gray.200",sx:{article:{borderTopWidth:"2x",borderTopColor:"red"},...(0,s.J9)("select"===x.column.id||(null===(c=x.column.columnDef.meta)||void 0===c?void 0:c.noPadding)),maxWidth:"calc(var(--col-".concat(x.column.id,"-size) * 1px)"),minWidth:"calc(var(--col-".concat(x.column.id,"-size) * 1px)"),"&:hover":{backgroundColor:z?"gray.50":void 0,cursor:z?"pointer":void 0}},_hover:!h||(null===(d=x.column.columnDef.meta)||void 0===d?void 0:d.disableRowClick)?void 0:{cursor:"pointer"},_first:{borderBottomWidth:(p||k)&&(!C||y||k)&&(!b||!w||k)?"0px":"1px"},_last:{borderRightWidth:0},height:"inherit",onClick:g,"data-testid":"row-".concat(x.row.id,"-col-").concat(x.column.id),...null===(u=x.column.columnDef.meta)||void 0===u?void 0:u.cellProps,children:!x.getIsPlaceholder()||b?(0,f.ie)(x.column.columnDef.cell,{...x.getContext(),cellState:m}):null})},C=e=>{let{row:t,renderRowTooltipLabel:n,onRowClick:l,expandedColumns:r,wrappedColumns:a}=e;if(t.getIsGrouped())return null;let c=(0,o.jsx)(i.Tr,{height:"36px",_hover:l?{backgroundColor:"gray.50"}:void 0,"data-testid":"row-".concat(t.id),backgroundColor:t.getCanSelect()?void 0:"gray.50",children:t.getVisibleCells().map(e=>{let t=(0,s.tt)(e.column.id,r),n={isExpanded:!!t&&t>0,isWrapped:!!a.find(t=>t===e.column.id),version:t};return(0,o.jsx)(b,{cell:e,onRowClick:l,cellState:n},e.id)})},t.id);return n?(0,o.jsx)(i.esZ,{title:n?n(t):void 0,placement:"top",children:c}):c},w={asc:{icon:(0,o.jsx)(i.Hf3,{}),title:"Sort ascending"},desc:{icon:(0,o.jsx)(i.veu,{}),title:"Sort descending"}},S={height:i.rSc.space[9],width:"100%",textAlign:"start","&:focus-visible":{backgroundColor:"gray.100"},"&:focus":{outline:"none"}},y=e=>{var t,n,l,r,a,c,d,u,g;let{header:x,onGroupAll:h,onExpandAll:m,onWrapToggle:p,isExpandAll:v,isWrapped:b,enableSorting:C}=e,{meta:y}=x.column.columnDef;return(null==y?void 0:y.showHeaderMenu)?(0,o.jsxs)(i.v2r,{placement:"bottom-end",closeOnSelect:!y.showHeaderMenuWrapOption,children:[(0,o.jsx)(i.j2t,{as:i.zxk,rightIcon:(0,o.jsxs)(i.Ugi,{children:[null===(t=w[x.column.getIsSorted()])||void 0===t?void 0:t.icon,(0,o.jsx)(i.nXP,{transform:"rotate(90deg)"})]}),title:"Column options",variant:"ghost",size:"sm",sx:{...(0,s.J9)("select"===x.column.id),...S},"data-testid":"".concat(x.id,"-header-menu"),children:(0,f.ie)(x.column.columnDef.header,x.getContext())}),(0,o.jsx)(i.h_i,{children:(0,o.jsxs)(i.qyq,{fontSize:"xs",minW:"0",w:"158px","data-testid":"".concat(x.id,"-header-menu-list"),children:[(0,o.jsxs)(i.sNh,{gap:2,color:v?"complimentary.500":void 0,onClick:()=>m(x.id),children:[(0,o.jsx)(j.oq,{})," Expand all"]}),(0,o.jsxs)(i.sNh,{gap:2,color:v?void 0:"complimentary.500",onClick:()=>h(x.id),children:[(0,o.jsx)(j.Kc,{})," Collapse all"]}),C&&x.column.getCanSort()&&(0,o.jsxs)(i.sNh,{gap:2,onClick:x.column.getToggleSortingHandler(),children:[null!==(u=null===(n=w[x.column.getNextSortingOrder()])||void 0===n?void 0:n.icon)&&void 0!==u?u:(0,o.jsx)(i.Dbz,{}),null!==(g=null===(l=w[x.column.getNextSortingOrder()])||void 0===l?void 0:l.title)&&void 0!==g?g:"Clear sort"]}),y.showHeaderMenuWrapOption&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(i.RaW,{}),(0,o.jsx)(i.xuv,{px:3,children:(0,o.jsx)(i.XZJ,{size:"sm",isChecked:b,onChange:()=>p(x.id,!b),colorScheme:"complimentary",children:(0,o.jsx)(i.xvT,{fontSize:"xs",children:"Wrap results"})})})]})]})})]}):C&&x.column.getCanSort()?(0,o.jsx)(i.zxk,{"data-testid":"".concat(x.id,"-header-sort"),onClick:x.column.getToggleSortingHandler(),rightIcon:null===(a=w[x.column.getIsSorted()])||void 0===a?void 0:a.icon,title:null!==(d=null===(c=w[x.column.getNextSortingOrder()])||void 0===c?void 0:c.title)&&void 0!==d?d:"Clear sort",variant:"ghost",size:"sm",sx:{...(0,s.J9)("select"===x.column.id),...S},children:(0,f.ie)(x.column.columnDef.header,x.getContext())}):(0,o.jsx)(i.xuv,{"data-testid":"".concat(x.id,"-header"),sx:{...(0,s.J9)("select"===x.column.id)},fontSize:"xs",lineHeight:9,fontWeight:"medium",style:null===(r=x.column.columnDef.meta)||void 0===r?void 0:r.headerProps,children:(0,f.ie)(x.column.columnDef.header,x.getContext())})},k=e=>{var t;let{tableInstance:n,rowActionBar:l,onRowClick:r,getRowIsClickable:s,renderRowTooltipLabel:a,expandedColumns:c,wrappedColumns:d,emptyTableNotice:u}=e,g=e=>s?s(e)?r:void 0:r;return(0,o.jsxs)(i.p3B,{"data-testid":"fidesTable-body",children:[l,n.getRowModel().rows.map(e=>(0,o.jsx)(C,{row:e,onRowClick:g(e.original),renderRowTooltipLabel:a,expandedColumns:c,wrappedColumns:d},e.id)),0===n.getRowModel().rows.length&&!(null===(t=n.getState())||void 0===t?void 0:t.globalFilter)&&u&&(0,o.jsx)(i.Tr,{children:(0,o.jsx)(i.Td,{colSpan:100,children:u})})]})},z=r.memo(k,(e,t)=>e.tableInstance.options.data===t.tableInstance.options.data),R=e=>{let{tableInstance:t,rowActionBar:n,footer:l,onRowClick:a,getRowIsClickable:c,renderRowTooltipLabel:d,emptyTableNotice:u,overflow:g="auto",onSort:x,enableSorting:h=!!x,columnExpandStorageKey:m,columnWrapStorageKey:p}=e,[f,j]=(0,r.useState)(1),[b,C]=(0,v._)(m,[]),[w,S]=(0,v._)(p,[]),R=e=>{C([...b.filter(t=>t.split(s.mb)[0]!==e),"".concat(e).concat(s.mb).concat(f)]),j(f+1)},W=e=>{C([...b.filter(t=>t.split(s.mb)[0]!==e),"".concat(e).concat(s.mb).concat(-1*f)]),j(f+1)},I=(e,t)=>{S(t?[...w,e]:w.filter(t=>t!==e))},T=(0,r.useMemo)(()=>{let e=t.getFlatHeaders(),n={};for(let i=0;i<e.length;i+=1){var l,o;let r=e[i],s=!!(null===(l=t.getState().columnSizing)||void 0===l?void 0:l[r.id]),a="auto"===(null===(o=r.column.columnDef.meta)||void 0===o?void 0:o.width);!s&&a?setTimeout(()=>{var e;let l=null===(e=document.getElementById("column-".concat(r.id)))||void 0===e?void 0:e.offsetWidth;l&&(t.setColumnSizing(e=>({...e,[r.id]:l})),n["--header-".concat(r.id,"-size")]=l,n["--col-".concat(r.column.id,"-size")]=l)}):(n["--header-".concat(r.id,"-size")]=r.getSize(),n["--col-".concat(r.column.id,"-size")]=r.column.getSize())}return n},[t.getState().columnSizingInfo]);return(0,r.useEffect)(()=>{x&&x(t.getState().sorting[0])},[t.getState().sorting]),(0,o.jsx)(i.xJi,{"data-testid":"fidesTable",overflowY:g,overflowX:g,borderColor:"gray.200",borderBottomWidth:"1px",borderRightWidth:"1px",borderLeftWidth:"1px",children:(0,o.jsxs)(i.iA_,{variant:"unstyled",style:{borderCollapse:"separate",borderSpacing:0,...T,minWidth:"100%"},children:[(0,o.jsx)(i.hrZ,{position:"sticky",top:"0",height:"36px",zIndex:10,backgroundColor:"gray.50",children:t.getHeaderGroups().map(e=>(0,o.jsx)(i.Tr,{height:"inherit",children:e.headers.map(e=>{var t;let n=(0,s.tt)(e.id,b);return(0,o.jsxs)(i.Th,{borderColor:"gray.200",borderTopWidth:"1px",borderBottomWidth:"1px",borderRightWidth:"1px",_last:{borderRightWidth:0},colSpan:e.colSpan,"data-testid":"column-".concat(e.id),id:"column-".concat(e.id),sx:{padding:0,width:"calc(var(--header-".concat(e.id,"-size) * 1px)"),overflowX:"auto"},textTransform:"unset",position:"relative",_hover:{"& .resizer":{opacity:1}},...null===(t=e.column.columnDef.meta)||void 0===t?void 0:t.cellProps,children:[(0,o.jsx)(y,{header:e,onGroupAll:W,onExpandAll:R,onWrapToggle:I,isExpandAll:!!n&&n>0,isWrapped:!!w.find(t=>e.id===t),enableSorting:h}),e.column.getCanResize()?(0,o.jsx)(i.xuv,{onDoubleClick:()=>e.column.resetSize(),onMouseDown:e.getResizeHandler(),position:"absolute",height:"100%",top:"0",right:"0",width:"5px",cursor:"col-resize",userSelect:"none",className:"resizer",opacity:0,backgroundColor:e.column.getIsResizing()?"complimentary.500":"gray.200"}):null]},e.id)})},e.id))}),t.getState().columnSizingInfo.isResizingColumn?(0,o.jsx)(z,{tableInstance:t,rowActionBar:n,onRowClick:a,getRowIsClickable:c,renderRowTooltipLabel:d,expandedColumns:b,wrappedColumns:w,emptyTableNotice:u}):(0,o.jsx)(k,{tableInstance:t,rowActionBar:n,onRowClick:a,getRowIsClickable:c,renderRowTooltipLabel:d,expandedColumns:b,wrappedColumns:w,emptyTableNotice:u}),l]})})},W=e=>{let{totalColumns:t,children:n}=e;return(0,o.jsx)(i.$RU,{backgroundColor:"gray.50",children:(0,o.jsx)(i.Tr,{children:(0,o.jsx)(i.Td,{colSpan:t,px:4,py:2,borderTop:"1px solid",borderColor:"gray.200",children:n})})})};var I=n(16394),T=n(26917);let D=e=>{let{globalFilter:t,setGlobalFilter:n,placeholder:l,testid:s="global-text-filter"}=e,[a,c]=(0,r.useState)(t),d=(0,r.useMemo)(()=>(0,I.Ds)(n,200),[n]),u=(0,r.useCallback)(()=>{c(void 0),n(void 0)},[c,n]);return(0,r.useEffect)(()=>{a||u()},[a,u]),(0,o.jsx)(i.xuv,{maxWidth:"424px",width:"100%",children:(0,o.jsx)(T.Z,{onChange:e=>{c(e),d(e)},onClear:u,value:a||"",placeholder:l,"data-testid":s})})};var A=n(42904),N=n(3124),O=n.n(N);let _=e=>{let{tableInstance:t,selectedRows:n,isOpen:l}=e;return l?(0,o.jsx)(i.Tr,{position:"sticky",zIndex:"10",top:"36px",backgroundColor:"neutral.100",height:"36px",p:0,boxShadow:"0px 4px 6px -1px rgba(0, 0, 0, 0.05)",children:(0,o.jsx)(i.Td,{borderWidth:"1px",borderColor:"gray.200",height:"inherit",pl:4,pr:2,py:0,colSpan:t.getAllColumns().length,bgColor:O().FIDESUI_FULL_WHITE,children:(0,o.jsxs)(i.Ugi,{children:[(0,o.jsxs)(i.xvT,{"data-testid":"selected-row-count",fontSize:"xs",children:[n.toLocaleString("en")," row(s) selected."]}),t.getIsAllRowsSelected()?null:(0,o.jsxs)(i.wpx,{"data-testid":"select-all-rows-btn",onClick:()=>{t.toggleAllRowsSelected()},type:"link",size:"small",className:"text-xs font-normal text-black underline",children:["Select all ",t.getFilteredRowModel().rows.length," rows."]})]})})}):null},H=e=>{let{children:t,...n}=e;return(0,o.jsx)(i.Ugi,{justifyContent:"space-between",alignItems:"center",p:2,borderWidth:"1px",borderBottomWidth:"0px",borderColor:"gray.200",zIndex:11,...n,children:t})},P=e=>{let{rowHeight:t,numRows:n}=e,l=[];for(let e=0;e<n;e+=1)l.push((0,o.jsx)(i.OdW,{height:"".concat(t,"px")},e));return(0,o.jsx)(i.Kqy,{children:l})}},43862:function(e,t,n){n.d(t,{AH:function(){return c},J9:function(){return s},mb:function(){return r},tt:function(){return a}});var l=n(56078),o=n(98784),i=n.n(o);let r="::",s=e=>e?{padding:"0px"}:{paddingLeft:l.rSc.space[3],paddingRight:"calc(".concat(l.rSc.space[3]," - 5px)"),paddingTop:"0px",paddingBottom:"0px",borderRadius:"0px"},a=(e,t)=>{let n=t.find(t=>t.startsWith(e));return n?parseInt(n.split(r)[1],10):void 0},c=e=>{let{columnId:t,columnNameMap:n}=e;if(!t)return"";let l=t.replace(/^(system_|privacy_declaration_)/,""),o=i().upperFirst(l.replaceAll("_"," "));return(null==n?void 0:n[t])||o}},46628:function(e,t,n){n.d(t,{MA:function(){return s},Vo:function(){return c},t5:function(){return a}});var l=n(24246),o=n(56078);let i=e=>{let{children:t,title:n="Success"}=e;return(0,l.jsxs)(o.xvT,{"data-testid":"toast-success-msg",children:[(0,l.jsxs)("strong",{children:[n,":"]})," ",t]})},r=e=>{let{children:t}=e;return(0,l.jsxs)(o.xvT,{"data-testid":"toast-error-msg",children:[(0,l.jsx)("strong",{children:"Error:"})," ",t]})},s={variant:"subtle",position:"top",description:"",duration:5e3,status:"success",isClosable:!0},a=(e,t)=>{let n=(0,l.jsx)(i,{title:t,children:e});return{...s,description:n}},c=e=>{let t=(0,l.jsx)(r,{children:e});return{...s,description:t,status:"error"}}},19043:function(e,t,n){n.d(t,{Bw:function(){return r},D4:function(){return o},Dy:function(){return a},XD:function(){return c},cz:function(){return d},hE:function(){return s},oK:function(){return i}});var l=n(76649);let o=e=>"error"in e,i=e=>(0,l.Ln)({status:"string"},e)&&"PARSING_ERROR"===e.status,r=e=>(0,l.Ln)({status:"number",data:{}},e),s=e=>(0,l.Ln)({detail:"string"},e),a=e=>(0,l.Ln)({detail:{error:"string",resource_type:"string",fides_key:"string"}},e),c=e=>(0,l.Ln)({detail:{error:"string",resource_type:"string",fides_key:"string"}},e),d=e=>(0,l.Ln)({detail:[{loc:["string","number"],msg:"string",type:"string"}]},e)}}]);
@@ -1 +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(16643);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(16643),l=i(59001);let r=(e,t)=>{let i;if(null==t&&e.every(e=>void 0===e.parent_key))i=e;else{let n=null!=t?t:null;i=e.filter(e=>e.parent_key===n)}return i.map(t=>{var i,n;let l=t.fides_key;return{value:t.fides_key,label:""===t.name||null==t.name?t.fides_key:t.name,description:t.description,children:r(e,l),is_default:null!==(i=t.is_default)&&void 0!==i&&i,active:null!==(n=t.active)&&void 0!==n&&n}})},a=e=>{switch(e){case l.Lo.DATA_CATEGORIES:return n.P6.DATA_CATEGORY;case l.Lo.DATA_SUBJECTS:return n.P6.DATA_SUBJECT;case l.Lo.DATA_USES:return n.P6.DATA_USE;default:return}}}}]);
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5487],{624:function(e,t,i){var n=i(24246),l=i(56078),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(56078),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(56078).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(56078),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(56078),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(56078),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(56078),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(56078),r=i(34090),a=i(27378),s=i(16125),o=i(40324),c=i(39864),d=i(56026),u=i(46238),h=i(624),x=i(90673),p=e=>{let{dataCategories:t,checked:i,onChecked:r,buttonLabel:s}=e,o=(0,a.useMemo)(()=>(0,x.Cd)(t),[t]);return(0,n.jsxs)(l.v2r,{closeOnSelect:!0,children:[(0,n.jsx)(l.j2t,{as:l.wpx,icon:(0,n.jsx)(l.mCO,{}),className:"!bg-transparent",block:!0,"data-testid":"data-category-dropdown",children:null!=s?s:"Select data categories"}),(0,n.jsx)(l.qyq,{children:(0,n.jsxs)(l.xuv,{maxHeight:"50vh",minWidth:"300px",maxW:"full",overflowY:"scroll",children:[(0,n.jsxs)(l.xuv,{position:"sticky",top:0,zIndex:1,backgroundColor:"white",pt:1,children:[(0,n.jsx)(l.__7,{children:(0,n.jsxs)(l.xuv,{display:"flex",justifyContent:"space-between",px:2,mb:2,children:[(0,n.jsx)(l.sNh,{as:l.wpx,size:"small",className:"mr-2 !w-auto",onClick:()=>r([]),closeOnSelect:!1,"data-testid":"data-category-clear-btn",children:"Clear"}),(0,n.jsx)(l.xvT,{mr:2,children:"Data Categories"}),(0,n.jsx)(l.sNh,{as:l.wpx,size:"small",className:"!w-auto","data-testid":"data-category-done-btn",children:"Done"})]})}),(0,n.jsx)(l.RaW,{})]}),(0,n.jsx)(l.xuv,{px:2,"data-testid":"data-category-checkbox-tree",children:(0,n.jsx)(h.ZP,{nodes:o,selected:i,onSelected:r})})]})})]})},f=e=>{let{dataCategories:t,checked:i,onChecked:r,tooltip:a}=e,s=e=>{r(i.filter(t=>t!==e))},o=i.slice().sort((e,t)=>e.localeCompare(t));return(0,n.jsxs)(l.rjZ,{templateColumns:"1fr 3fr",children:[(0,n.jsx)(l.lXp,{children:"Data Categories"}),(0,n.jsxs)(l.vyj,{direction:"vertical",size:"small",children:[(0,n.jsxs)(l.xuv,{display:"flex",alignItems:"center",children:[(0,n.jsx)(l.xuv,{mr:"2",width:"100%",children:(0,n.jsx)(p,{dataCategories:t,checked:i,onChecked:r})}),(0,n.jsx)(u.b,{label:a})]}),(0,n.jsx)(l.vyj,{direction:"vertical",size:2,"data-testid":"selected-categories",children:o.map(e=>(0,n.jsx)(l.j8w,{closable:!0,onClose:()=>{s(e)},children:e},e))})]})]})};let m="edit-collection-or-field-form";var j=e=>{var t;let{values:i,onSubmit:u,dataType:h,showDataCategories:x=!0}=e,p={description:null!==(t=i.description)&&void 0!==t?t:"",data_categories:i.data_categories},j=(0,s.v9)(c.qb).filter(e=>e.active),[v,C]=(0,a.useState)(p.data_categories||[]),g="collection"===h?d.du.description.tooltip:d.QL.description.tooltip,y="collection"===h?d.du.data_categories.tooltip:d.QL.data_categories.tooltip;return(0,n.jsx)(r.J9,{initialValues:p,onSubmit:e=>{u({...e,data_categories:v})},children:(0,n.jsx)(r.l0,{id:m,children:(0,n.jsxs)(l.Kqy,{children:[(0,n.jsx)(o.j0,{name:"description",label:"Description",tooltip:g,"data-testid":"description-input"}),x&&(0,n.jsx)(f,{dataCategories:j,checked:v,onChecked:C,tooltip:y})]})})})}},56026:function(e,t,i){i.d(t,{QL:function(){return r},du:function(){return l},tz:function(){return n}});let n={name:{tooltip:"A UI-friendly label for the Dataset."},description:{tooltip:"A human-readable description of the Dataset."},data_categories:{tooltip:"Arrays of Data Category resources, identified by fides_key, that apply to all collections in the Dataset."}},l={description:{tooltip:"A human-readable description of the collection."},data_categories:{tooltip:"Arrays of Data Category resources, identified by fides_key, that apply to all fields in the collection."}},r={description:{tooltip:"A human-readable description of the field."},data_categories:{tooltip:"Arrays of Data Category resources, identified by fides_key, that apply to this field."}}},69435:function(e,t,i){i.d(t,{Fk:function(){return c},_n:function(){return s},jC:function(){return r},qe:function(){return o}});var n=i(99729),l=i.n(n);let r=(e,t,i)=>{let n=e.collections.map((e,n)=>n===i?t:e);return{...e,collections:n}},a=(e,t,i)=>{let n=e.fields.map((e,n)=>n===i?t:e);return{...e,fields:n}},s=(e,t,i,n)=>{let l=a(e.collections[i],t,n);return r(e,l,i)},o=(e,t)=>{let i=e.collections.filter((e,i)=>i!==t);return{...e,collections:i}},c=e=>{let{dataset:t,collectionName:i,subfields:n}=e,r="",a=t.collections.findIndex(e=>e.name===i);return r+="collections[".concat(a,"]"),n&&n.forEach(e=>{let i=l()(t,r).fields.findIndex(t=>t.name===e);r+=".fields[".concat(i,"]")}),r}},59001:function(e,t,i){i.d(t,{Ch:function(){return a},Hy:function(){return s},Lo:function(){return l}});var n,l,r=i(16643);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(16643),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(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})]})}}}]);
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(56078),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([[5835],{77213:function(e,t,n){n.d(t,{Z:function(){return f}});var r=n(24246),i=n(56078),l=n(88038),s=n.n(l),a=n(86677);n(27378);var o=n(25980),c=n(90867),d=n(77830),u=()=>{let e=(0,a.useRouter)();return(0,r.jsx)(i.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,r.jsxs)(i.xuv,{children:[(0,r.jsxs)(i.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,r.jsx)(i.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,r.jsx)(i.wpx,{onClick:()=>{e.push(d.fz)},children:"Configure"})]}),(0,r.jsxs)(i.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},f=e=>{let{children:t,title:n,padded:l=!0,mainProps:d}=e,f=(0,o.hz)(),m=(0,a.useRouter)(),h="/privacy-requests"===m.pathname||"/datastore-connection"===m.pathname,p=!(f.flags.privacyRequestsConfiguration&&h),{data:g}=(0,c.JE)(void 0,{skip:p}),{data:x}=(0,c.PW)(void 0,{skip:p}),j=f.flags.privacyRequestsConfiguration&&(!g||!x)&&h;return(0,r.jsxs)(i.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,r.jsxs)(s(),{children:[(0,r.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,r.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,r.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,r.jsxs)(i.kCb,{as:"main",direction:"column",py:l?6:0,px:l?10:0,h:l?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...d,children:[j?(0,r.jsx)(u,{}):null,t]})]})}},58754:function(e,t,n){var r=n(24246),i=n(56078),l=n(70788);t.Z=e=>{let{heading:t,breadcrumbItems:n,isSticky:s=!0,children:a,rightContent:o,style:c,...d}=e;return(0,r.jsxs)("div",{...d,style:s?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...c}:{paddingBottom:"24px",...c},children:[(0,r.jsxs)(i.jqI,{justify:"space-between",children:["string"==typeof t?(0,r.jsx)(i.X6q,{className:n||a?"pb-4":void 0,fontSize:"2xl","data-testid":"page-heading",children:t}):t,o&&(0,r.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!n&&(0,r.jsx)(l.m,{className:a?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),a]})}},61524:function(e,t,n){n.d(t,{I_:function(){return s}});var r=n(24246),i=n(56078),l=n(67991);let s=5,a=e=>{let{title:t,children:n}=e;return(0,r.jsx)(i.xuv,{p:4,display:"flex",alignItems:"flex-start",gap:"4px",borderRadius:"4px",boxShadow:"0px 1px 2px 0px rgba(0, 0, 0, 0.06), 0px 1px 3px 0px rgba(0, 0, 0, 0.1)",fontSize:"sm","data-testid":"picker-card-".concat(t),children:n})},o=e=>{let{title:t,items:n,selected:a,indeterminate:o,onChange:c,toggle:d,onViewMore:u,numSelected:f,variant:m="default"}=e,h=u?n.slice(0,s):n,{allSelected:p,someSelected:g,handleToggleAll:x,handleToggleSelection:j}=(0,l.QZ)({items:n,selected:a,onChange:c});return(0,r.jsxs)(i.gCW,{alignItems:"flex-start",spacing:3,width:"100%",height:"100%",children:[(0,r.jsxs)(i.kCb,{justifyContent:"space-between",width:"100%",children:[(0,r.jsx)(i.XZJ,{fontSize:"md",textTransform:"emphasize"===m?"capitalize":void 0,fontWeight:"emphasize"===m?"semibold":"auto",isChecked:p,size:"md",mr:"2",onChange:x,colorScheme:"complimentary","data-testid":"select-all",isIndeterminate:!p&&g,children:t}),null!=d?d:null]}),f>0?(0,r.jsxs)(i.j8w,{className:"w-fit","data-testid":"num-selected-badge",children:[f," selected"]}):null,(0,r.jsx)(i.gCW,{paddingLeft:"6",fontSize:"sm",alignItems:"start",spacing:"2",children:(0,r.jsx)(i.cOn,{colorScheme:"complimentary",children:h.map(e=>(0,r.jsx)(i.kCb,{alignItems:"center",gap:"8px",children:(0,r.jsx)(i.XZJ,{isChecked:a.includes(e.id),isIndeterminate:o.includes(e.id),size:"md",fontWeight:"emphasize"===m?"500":"auto",onChange:()=>j(e.id),"data-testid":"".concat(e.name,"-checkbox"),children:e.name},e.id)},e.id))})}),u?(0,r.jsx)(i.wpx,{size:"small",onClick:u,type:"text","data-testid":"view-more-btn",children:"View more"}):null]})};t.ZP=e=>{let{...t}=e;return(0,r.jsx)(a,{title:t.title,children:(0,r.jsx)(o,{...t,variant:"emphasize"})})}},26917:function(e,t,n){var r=n(24246),i=n(56078);t.Z=e=>{let{onChange:t,withIcon:n,onClear:l,placeholder:s,...a}=e;return(0,r.jsxs)(i.vyj.Compact,{className:"w-96","data-testid":"search-bar",children:[(0,r.jsx)(i.uFc,{autoComplete:"off",onChange:e=>t(e.target.value),placeholder:s||"Search...",prefix:n?(0,r.jsx)(i.PTu,{boxSize:4}):void 0,...a}),l?(0,r.jsx)(i.wpx,{onClick:l,children:"Clear"}):null]})}},26089:function(e,t,n){var r=n(24246),i=n(56078);t.Z=e=>{let{onClick:t,children:n}=e;return(0,r.jsx)(i.wpx,{onClick:t,type:"link",role:"link",size:"large",className:"m-0 p-0 font-medium text-gray-700 underline",children:n})}},812:function(e,t,n){n.d(t,{D4:function(){return l.D4},MM:function(){return f},Ot:function(){return c},c6:function(){return i},cj:function(){return h},e$:function(){return a},fn:function(){return o},iC:function(){return m},nU:function(){return u},tB:function(){return d}});var r,i,l=n(19043);let s="An unexpected error occurred. Please try again.",a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s;if((0,l.Bw)(e)){if((0,l.hE)(e.data))return e.data.detail;if((0,l.cz)(e.data)){var n;let t=null===(n=e.data.detail)||void 0===n?void 0:n[0];return"".concat(null==t?void 0:t.msg,": ").concat(null==t?void 0:t.loc)}if(409===e.status&&(0,l.Dy)(e.data)||404===e.status&&(0,l.XD)(e.data))return"".concat(e.data.detail.error," (").concat(e.data.detail.fides_key,")")}return t};function o(e){return"object"==typeof e&&null!=e&&"status"in e}function c(e){return"object"==typeof e&&null!=e&&"data"in e&&"string"==typeof e.data.detail}function d(e){return"object"==typeof e&&null!=e&&"data"in e&&Array.isArray(e.data.detail)}let u=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{status:500,message:s};if((0,l.oK)(e))return{status:e.originalStatus,message:e.data};if((0,l.Bw)(e)){let{status:n}=e;return{status:n,message:a(e,t.message)}}return t},f=e=>Object.entries(e).map(e=>({value:e[1],label:e[1]}));(r=i||(i={})).GVL="gvl",r.AC="gacp",r.COMPASS="compass";let m={gvl:{label:"GVL",fullName:"Global Vendor List"},gacp:{label:"AC",fullName:"Google Additional Consent List"},compass:{label:"",fullName:""}},h=e=>{let t=e.split(".")[0];return"gacp"===t?"gacp":"gvl"===t?"gvl":"compass"}},67991:function(e,t,n){n.d(t,{Od:function(){return l},QZ:function(){return i}});var r=n(27378);let i=e=>{let{items:t,selected:n,onChange:r}=e,i=t.every(e=>n.includes(e.id))&&!!t.length;return{allSelected:i,someSelected:t.some(e=>n.includes(e.id))&&!!t.length,handleToggleAll:()=>{i?r([]):r(t.map(e=>e.id))},handleToggleSelection:e=>{n.includes(e)?r(n.filter(t=>t!==e)):r([...n,e])}}},l=e=>{let{initialSelected:t,initialExcluded:n,initialAllSelected:i,itemCount:l}=e,[s,a]=(0,r.useState)(t),[o,c]=(0,r.useState)(n),[d,u]=(0,r.useState)(i||s.length===l),f=!!s.length||!!o.length;return{selected:s,excluded:o,allSelected:d,someSelected:f,handleToggleAll:()=>{d?(c([]),o.length||u(!1)):(a([]),u(!0))},handleToggleItemSelected:e=>{if(d)c(o.includes(e)?o.filter(t=>t!==e):[...o,e]);else{let t=s.includes(e)?s.filter(t=>t!==e):[...s,e];a(t),t.length===l&&u(!0)}}}}},58452:function(e,t,n){var r=n(24246),i=n(56078);t.Z=e=>{let{isOpen:t,onClose:n,onConfirm:l,onCancel:s,title:a,message:o,cancelButtonText:c,continueButtonText:d,isLoading:u,returnFocusOnClose:f,isCentered:m,testId:h="confirmation-modal",icon:p}=e;return(0,r.jsxs)(i.u_l,{isOpen:t,onClose:n,size:"lg",returnFocusOnClose:null==f||f,isCentered:m,children:[(0,r.jsx)(i.ZAr,{}),(0,r.jsxs)(i.hzk,{textAlign:"center",p:6,"data-testid":h,children:[p?(0,r.jsx)(i.M5Y,{mb:2,children:p}):null,a?(0,r.jsx)(i.xBx,{fontWeight:"medium",pb:0,children:a}):null,o?(0,r.jsx)(i.fef,{children:o}):null,(0,r.jsx)(i.mzw,{children:(0,r.jsxs)(i.MIq,{columns:2,width:"100%",children:[(0,r.jsx)(i.wpx,{onClick:()=>{s&&s(),n()},size:"large",className:"mr-3","data-testid":"cancel-btn",disabled:u,children:c||"Cancel"}),(0,r.jsx)(i.wpx,{type:"primary",size:"large",onClick:l,"data-testid":"continue-btn",loading:u,children:d||"Continue"})]})})]})]})}},70788:function(e,t,n){n.d(t,{m:function(){return c}});var r=n(24246),i=n(56078),l=n(79894),s=n.n(l),a=n(27378);let{Text:o}=i.AntTypography,c=e=>{let{items:t,...n}=e,l=(0,a.useMemo)(()=>null==t?void 0:t.map((e,n)=>{let l=n===t.length-1,a={...e},c=a.onClick&&!a.href;return("string"==typeof a.title&&(a.title=(0,r.jsx)(o,{style:{color:"inherit",maxWidth:l?void 0:400},ellipsis:!l,children:a.title})),c)?a.title=(0,r.jsx)(i.wpx,{type:"text",size:"small",icon:a.icon,onClick:a.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:a.title}):(a.icon&&(a.title=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"anticon align-text-bottom",children:a.icon}),a.title]})),a.href&&a.title&&(a.title=(0,r.jsx)(s(),{href:a.href,className:"ant-breadcrumb-link",children:a.title}),delete a.href)),a}),[t]);return(0,r.jsx)(i.zrq,{items:l,...n})}},46628:function(e,t,n){n.d(t,{MA:function(){return a},Vo:function(){return c},t5:function(){return o}});var r=n(24246),i=n(56078);let l=e=>{let{children:t,title:n="Success"}=e;return(0,r.jsxs)(i.xvT,{"data-testid":"toast-success-msg",children:[(0,r.jsxs)("strong",{children:[n,":"]})," ",t]})},s=e=>{let{children:t}=e;return(0,r.jsxs)(i.xvT,{"data-testid":"toast-error-msg",children:[(0,r.jsx)("strong",{children:"Error:"})," ",t]})},a={variant:"subtle",position:"top",description:"",duration:5e3,status:"success",isClosable:!0},o=(e,t)=>{let n=(0,r.jsx)(l,{title:t,children:e});return{...a,description:n}},c=e=>{let t=(0,r.jsx)(s,{children:e});return{...a,description:t,status:"error"}}},12282:function(e,t,n){n.d(t,{$_:function(){return a},h4:function(){return l},x$:function(){return s}});var r=n(24246),i=n(56078);let l=e=>{let{title:t}=e;return(0,r.jsx)(i.xBx,{fontSize:"lg",fontWeight:"semibold",pt:5,paddingInline:6,pb:5,backgroundColor:"gray.50",borderTopRadius:"md",borderBottom:"1px solid",borderColor:"gray.200",children:t})},s=e=>{let{title:t,allSelected:n,numSelected:l,onToggleAll:s,children:a}=e;return(0,r.jsxs)(i.kCb,{justifyContent:"space-between",mb:4,children:[(0,r.jsxs)(i.xuv,{children:[(0,r.jsx)(i.XZJ,{colorScheme:"complimentary",size:"md",isChecked:n,isIndeterminate:!n&&l>0,onChange:s,mr:3,"data-testid":"select-all",children:(0,r.jsx)(i.xvT,{fontWeight:"semibold",fontSize:"md",children:t})}),(0,r.jsxs)(i.j8w,{color:"minos",className:"w-fit","data-testid":"num-selected-badge",children:[l," selected"]})]}),a]})},a=e=>{let{onApply:t,onClose:n}=e;return(0,r.jsx)(i.mzw,{justifyContent:"center",children:(0,r.jsxs)("div",{className:"flex w-full justify-between",children:[(0,r.jsx)(i.wpx,{onClick:n,"data-testid":"cancel-btn",children:"Cancel"}),(0,r.jsx)(i.wpx,{type:"primary",onClick:t,"data-testid":"apply-btn",children:"Apply"})]})})}},85759:function(e,t,n){n.d(t,{$q:function(){return s},F7:function(){return i},Il:function(){return r},VT:function(){return l},ji:function(){return a}});let r=(e,t)=>{let n={};return new Set(e.map(e=>e.continent).sort()).forEach(r=>{n[r]={locationGroups:t.filter(e=>e.continent===r).sort((e,t)=>e.name.localeCompare(t.name)),locations:e.filter(e=>e.continent===r).sort((e,t)=>e.name.localeCompare(t.name))}}),n},i=e=>{let t={};return new Set(e.map(e=>e.continent).sort()).forEach(n=>{t[n]=e.filter(e=>e.continent===n).sort((e,t)=>e.name.localeCompare(t.name))}),t},l=e=>{let t={};new Set(e.map(e=>e.belongs_to).flat().sort()).forEach(n=>{n&&(t[n]=e.filter(e=>{var t;return null===(t=e.belongs_to)||void 0===t?void 0:t.includes(n)}).sort((e,t)=>e.name.localeCompare(t.name)))});let n=e.filter(e=>!e.belongs_to||0===e.belongs_to.length);return n.length&&(t.Other=n),t},s=(e,t)=>{var n;return null!==(n=e.regulation)&&void 0!==n&&!!n.length||t.filter(t=>{var n;return null===(n=t.belongs_to)||void 0===n?void 0:n.includes(e.id)}).some(e=>{var t;return null===(t=e.regulation)||void 0===t?void 0:t.length})},a=e=>{let{group:t,selected:n,locations:r}=e,i=r.filter(e=>{var n;return null===(n=e.belongs_to)||void 0===n?void 0:n.includes(t.id)});return 0===i.length?"unchecked":i.every(e=>n.includes(e.id))?"checked":i.every(e=>!n.includes(e.id))?"unchecked":"indeterminate"}},19043:function(e,t,n){n.d(t,{Bw:function(){return s},D4:function(){return i},Dy:function(){return o},XD:function(){return c},cz:function(){return d},hE:function(){return a},oK:function(){return l}});var r=n(76649);let i=e=>"error"in e,l=e=>(0,r.Ln)({status:"string"},e)&&"PARSING_ERROR"===e.status,s=e=>(0,r.Ln)({status:"number",data:{}},e),a=e=>(0,r.Ln)({detail:"string"},e),o=e=>(0,r.Ln)({detail:{error:"string",resource_type:"string",fides_key:"string"}},e),c=e=>(0,r.Ln)({detail:{error:"string",resource_type:"string",fides_key:"string"}},e),d=e=>(0,r.Ln)({detail:[{loc:["string","number"],msg:"string",type:"string"}]},e)},31883:function(e,t,n){n.d(t,{Bw:function(){return r.Bw},D4:function(){return r.D4}});var r=n(19043)},76649:function(e,t,n){n.d(t,{Ln:function(){return r}});let r=(e,t)=>l(e,t),i=Symbol("SOME"),l=(e,t)=>"string"==typeof e?e===typeof t:Array.isArray(e)?i in e?e.some(e=>l(e,t)):!!Array.isArray(t)&&(0===e.length||t.every(t=>e.some(e=>l(e,t)))):"object"==typeof t&&null!==t&&Object.entries(e).every(([e,n])=>l(n,t[e]));class s{static narrow(e){return new s(t=>r(e,t))}constructor(e){this.NF=void 0,this.NF=e}satisfied(e){return this.NF(e)}build(e){return e}and(e){let t=this.NF,n=e instanceof s?e.NF:e instanceof Function?e:t=>r(e,t);return new s(e=>t(e)&&n(e))}}new s(e=>!0)}}]);
@@ -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(56078);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(56078);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(56078),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(56078),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(56078);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(56078),a=t(34090),r=t(27378),o=t(46238),c=t(40324);let d=e=>{let{name:s,label:t,labelProps:d,tooltip:l,isRequired:h,layout:u="inline",helperText:x,...m}=e,[j,p,{setValue:g}]=(0,a.U$)(s),y=!!(p.touched&&p.error),[v,f]=(0,r.useState)("");j.value||"tags"!==m.mode&&"multiple"!==m.mode||(j.value=[]),"tags"===m.mode&&"string"==typeof j.value&&(j.value=[j.value]);let C="tags"===m.mode?(e,s)=>e?e.value!==v||j.value.includes(v)?m.optionRender?m.optionRender(e,s):e.label:'Create "'.concat(v,'"'):void 0:m.optionRender||void 0,S=e=>{f(e),m.onSearch&&m.onSearch(e)},b=(e,s)=>{g(e),m.onChange&&m.onChange(e,s)};return"inline"===u?(0,i.jsx)(n.NIc,{isInvalid:y,isRequired:h,children:(0,i.jsxs)(n.rjZ,{templateColumns:t?"1fr 3fr":"1fr",children:[t?(0,i.jsx)(c.__,{htmlFor:m.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,{...j,id:m.id||s,"data-testid":"controlled-select-".concat(j.name),...m,optionRender:C,onSearch:"tags"===m.mode?S:void 0,onChange:b,value:j.value||void 0,status:y?"error":void 0}),x&&(0,i.jsx)(n.Q6r,{children:x}),(0,i.jsx)(c.Bc,{isInvalid:y,message:p.error,fieldName:j.name})]}),(0,i.jsx)(o.b,{label:l})]})]})}):(0,i.jsx)(n.NIc,{isInvalid:y,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:m.id||s,fontSize:"xs",my:0,mr:1,...d,children:t}):null,(0,i.jsx)(o.b,{label:l})]}),(0,i.jsx)(n.WPr,{...j,id:m.id||s,"data-testid":"controlled-select-".concat(j.name),...m,optionRender:C,onSearch:"tags"===m.mode?S:void 0,onChange:b,value:j.value||void 0,status:y?"error":void 0}),x&&(0,i.jsx)(n.Q6r,{style:{marginTop:0},children:x}),(0,i.jsx)(c.Bc,{isInvalid:y,message:p.error,fieldName:j.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(56078);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(56078);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(56078),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(56078);t(27378);var a=t(16643),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(56078),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(56078),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(56078),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(56078),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(56078),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),b=t(33335),A=t(1315),D=t(16643),w=t(31883);s.Z=e=>{var s,t;let{connection:r,connectionOption:c,onCancel:l,description:u}=e,[R,{isLoading:E}]=(0,C.Pp)(),[_,{isLoading:H}]=(0,C.pH)(),[T,{isLoading:B}]=(0,A.qd)(),{data:k,isLoading:F}=(0,v.n3)(c.identifier),{data:L}=(0,A.K3)(),I=null==L?void 0:L.map(e=>{var s;return{label:null!==(s=e.name)&&void 0!==s?s:e.fides_key,value:e.fides_key}}),{data:O}=(0,f.LH)({minimal:!0,connection_type:D.Rj.BIGQUERY}),U=null==O?void 0:O.map(e=>{var s;return{label:null!==(s=e.name)&&void 0!==s?s:e.fides_key,value:e.fides_key}}),{patchConnectionDatasetConfig:M,initialDatasets:q}=(0,S.t)({connectionConfig:r}),P=E||H||B,N={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==k?void 0:k.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:q},Q=(0,n.pmc)(),G=!!r,z=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=z(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,b.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 _(n),(0,w.D4)(t)){Q({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){Q({status:"success",description:"Integration ".concat(G?"updated":"created"," successfully")});return}if(!o()(i)){let e=await R({connection_key:n.key,secrets:i});if((0,w.D4)(e)){Q({status:"error",description:(0,y.e$)(e.error,"An error occurred while ".concat(G?"updating":"creating"," this integration's secret. Please try again."))});return}}Q({status:"success",description:"Integration secret ".concat(G?"updated":"created"," successfully")}),l(),n&&e.dataset&&c.identifier===D.Rj.DATAHUB&&await M(e,n.key,{showSuccessAlert:!1})};if(F)return(0,i.jsx)(j.Z,{});let W=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.jsxs)(i.Fragment,{children:[u&&(0,i.jsx)(n.xuv,{padding:"20px 24px",backgroundColor:"gray.50",borderRadius:"md",border:"1px solid",borderColor:"gray.200",fontSize:"sm",marginTop:"16px",children:u}),(0,i.jsx)(a.J9,{initialValues:N,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))})})(k),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"}),W(k),!G&&(0,i.jsx)(p.d,{id:"system_fides_key",name:"system_fides_key",options:null!=I?I:[],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!=U?U:[],label:"Datasets",tooltip:"Only BigQuery datasets are supported. Selected datasets will sync with matching DataHub datasets. If none are selected, all datasets will be included by default.",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:P,"data-testid":"save-btn",children:"Save"})]})]})})}})]})}},15704:function(e,s,t){t.d(s,{FO:function(){return B},jq:function(){return k},ZP:function(){return L}}),(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(56078),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(16643);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={name:"Datahub",key:"datahub_placeholder",connection_type:d.Rj.DATAHUB,access:d.uv.READ,created_at:""},j=(0,a.jsx)(a.Fragment,{children:"Set up a connection to your DataHub instance by providing a name, server URL, and access token. You can also select the BigQuery datasets you'd like to sync—these will be matched with corresponding datasets in DataHub. If no datasets are selected, all available BigQuery datasets will be included by default."}),p={placeholder:m,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:"The related user to the access token must have at least the Editor role on DataHub."})})]})]}),{}),tags:["Sync"],description:j},g={name:"DynamoDB",key:"dynamo_placeholder",connection_type:d.Rj.DYNAMODB,access:d.uv.READ,created_at:""},y=[{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."}],v={placeholder:g,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:y}),(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"]},f={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"]},C={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"]},S={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"]},b={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:"Continuously monitor MySQL databases 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:"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"]},A={placeholder:{name:"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"]},D={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"]},w={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"]},R={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"]},E={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"]},_={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"]},H={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."})]}),{})},T={[d.Rj.BIGQUERY]:x,[d.Rj.DATAHUB]:p,[d.Rj.DYNAMODB]:v,[d.Rj.GOOGLE_CLOUD_SQL_MYSQL]:f,[d.Rj.GOOGLE_CLOUD_SQL_POSTGRES]:C,[d.Rj.MSSQL]:S,[d.Rj.RDS_MYSQL]:D,[d.Rj.RDS_POSTGRES]:w,[d.Rj.S3]:R,[d.Rj.SCYLLA]:E,[d.Rj.SNOWFLAKE]:_,[d.Rj.MYSQL]:b,[d.Rj.WEBSITE]:H,[d.Rj.POSTGRES]:A},B=Object.values(T),k=Object.keys(T),F={placeholder:{name:"",key:"placeholder",connection_type:d.Rj.MANUAL,access:d.uv.READ,created_at:""},category:n.DATA_WAREHOUSE,tags:[]};var L=e=>{var s;return e&&null!==(s=T[e])&&void 0!==s?s:F}},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)}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6277],{87361:function(e,a,n){var i=n(24246),t=n(56078);a.Z=e=>{let{title:a,text:n,onClose:l}=e;return(0,i.jsxs)(t.Ugi,{backgroundColor:"gray.50",border:"1px solid",borderRadius:"md",justifyContent:"space-between",py:4,pr:6,pl:3,"data-testid":"empty-state",gap:2,position:"relative",children:[l&&(0,i.jsx)(t.Two,{boxSize:5,position:"absolute",right:3,top:3,zIndex:1,cursor:"pointer",p:1,onClick:l}),(0,i.jsx)(t.iid,{alignSelf:"start",color:"minos",mt:.5,flexGrow:0}),(0,i.jsxs)(t.kCb,{direction:"column",gap:2,flexGrow:1,children:[(0,i.jsx)(t.X6q,{fontSize:"md",children:a}),(0,i.jsx)(t.xvT,{fontSize:"sm",color:"gray.600",lineHeight:"5",children:n})]})]})}},97181:function(e,a,n){n.d(a,{d:function(){return d}});var i=n(24246),t=n(56078),l=n(34090),o=n(27378),r=n(46238),s=n(40324);let d=e=>{let{name:a,label:n,labelProps:d,tooltip:_,isRequired:c,layout:u="inline",helperText:p,...F}=e,[b,m,{setValue:v}]=(0,l.U$)(a),g=!!(m.touched&&m.error),[h,C]=(0,o.useState)("");b.value||"tags"!==F.mode&&"multiple"!==F.mode||(b.value=[]),"tags"===F.mode&&"string"==typeof b.value&&(b.value=[b.value]);let f="tags"===F.mode?(e,a)=>e?e.value!==h||b.value.includes(h)?F.optionRender?F.optionRender(e,a):e.label:'Create "'.concat(h,'"'):void 0:F.optionRender||void 0,S=e=>{C(e),F.onSearch&&F.onSearch(e)},y=(e,a)=>{v(e),F.onChange&&F.onChange(e,a)};return"inline"===u?(0,i.jsx)(t.NIc,{isInvalid:g,isRequired:c,children:(0,i.jsxs)(t.rjZ,{templateColumns:n?"1fr 3fr":"1fr",children:[n?(0,i.jsx)(s.__,{htmlFor:F.id||a,...d,children:n}):null,(0,i.jsxs)(t.jqI,{align:"center",children:[(0,i.jsxs)(t.jqI,{vertical:!0,flex:1,className:"mr-2",children:[(0,i.jsx)(t.WPr,{...b,id:F.id||a,"data-testid":"controlled-select-".concat(b.name),...F,optionRender:f,onSearch:"tags"===F.mode?S:void 0,onChange:y,value:b.value||void 0,status:g?"error":void 0}),p&&(0,i.jsx)(t.Q6r,{children:p}),(0,i.jsx)(s.Bc,{isInvalid:g,message:m.error,fieldName:b.name})]}),(0,i.jsx)(r.b,{label:_})]})]})}):(0,i.jsx)(t.NIc,{isInvalid:g,isRequired:c,children:(0,i.jsxs)(t.gCW,{alignItems:"start",children:[(0,i.jsxs)(t.jqI,{align:"center",children:[n?(0,i.jsx)(s.__,{htmlFor:F.id||a,fontSize:"xs",my:0,mr:1,...d,children:n}):null,(0,i.jsx)(r.b,{label:_})]}),(0,i.jsx)(t.WPr,{...b,id:F.id||a,"data-testid":"controlled-select-".concat(b.name),...F,optionRender:f,onSearch:"tags"===F.mode?S:void 0,onChange:y,value:b.value||void 0,status:g?"error":void 0}),p&&(0,i.jsx)(t.Q6r,{style:{marginTop:0},children:p}),(0,i.jsx)(s.Bc,{isInvalid:g,message:m.error,fieldName:b.name})]})})}},57899:function(e,a,n){var i=n(24246),t=n(56078),l=n(27378);a.Z=e=>{let{handleConfirm:a,isOpen:n,onClose:o,title:r,message:s,confirmButtonText:d="Continue",cancelButtonText:_="Cancel"}=e,c=(0,l.useRef)(null);return(0,i.jsx)(t.aRR,{isOpen:n,leastDestructiveRef:c,onClose:o,children:(0,i.jsx)(t.dhV,{children:(0,i.jsxs)(t._Tf,{alignItems:"center",textAlign:"center",children:[(0,i.jsx)(t.aNP,{marginTop:3}),(0,i.jsx)(t.fYl,{fontSize:"lg",fontWeight:"bold",children:r}),(0,i.jsx)(t.iPF,{pt:0,children:s}),(0,i.jsxs)(t.xoY,{children:[(0,i.jsx)(t.wpx,{ref:c,onClick:o,size:"large",children:_}),(0,i.jsx)(t.wpx,{onClick:()=>a(),type:"primary",size:"large",className:"ml-3","data-testid":"warning-modal-confirm-btn",children:d})]})]})})})}},90980:function(e,a,n){n.d(a,{R:function(){return s}});var i=n(24246),t=n(56078),l=n(79894),o=n.n(l),r=n(63662);let s=e=>{let{onClick:a,...n}=e;return(0,i.jsxs)(t.kCb,{alignItems:"center",mt:-4,mb:3,onClick:a,cursor:"pointer",...n,children:[(0,i.jsx)(t.wpx,{"aria-label":"Back",icon:(0,i.jsx)(t.Rpv,{}),className:"mr-2",size:"small"}),(0,i.jsx)(t.xvT,{as:"a",fontSize:"sm",fontWeight:"500",children:"Back"})]})};a.Z=e=>{let{backPath:a,...n}=e,l=(0,r.useRouter)();return(0,i.jsxs)(t.kCb,{alignItems:"center",mb:6,...n,children:[(0,i.jsx)(t.wpx,{onClick:()=>l.push(a),"aria-label":"Back",icon:(0,i.jsx)(t.Rpv,{}),className:"mr-2",size:"small"}),(0,i.jsx)(t.xvT,{as:o(),href:a,fontSize:"sm",fontWeight:"500",children:"Back"})]})}},8411:function(e,a,n){n.d(a,{NA:function(){return l},Z8:function(){return t}});var i=n(16643);let t={[i._F.ER]:"Eritrea",[i._F.DJ]:"Djibouti",[i._F.MR]:"Mauritania",[i._F.NA]:"Namibia",[i._F.GH]:"Ghana",[i._F.SS]:"South Sudan",[i._F.SC]:"Seychelles",[i._F.IO]:"British Indian Ocean Territory",[i._F.GQ]:"Equatorial Guinea",[i._F.AO]:"Angola",[i._F.CG]:"Republic of the Congo",[i._F.BW]:"Botswana",[i._F.BI]:"Burundi",[i._F.DZ]:"Algeria",[i._F.TD]:"Chad",[i._F.NG]:"Nigeria",[i._F.TZ]:"Tanzania",[i._F.EH]:"Western Sahara",[i._F.SN]:"Senegal",[i._F.LR]:"Liberia",[i._F.ZA]:"South Africa",[i._F.CV]:"Cape Verde",[i._F.GM]:"Gambia",[i._F.SD]:"Sudan",[i._F.KM]:"Comoros",[i._F.SZ]:"Eswatini",[i._F.UG]:"Uganda",[i._F.MG]:"Madagascar",[i._F.RW]:"Rwanda",[i._F.CD]:"DR Congo",[i._F.CM]:"Cameroon",[i._F.SH]:"Saint Helena, Ascension and Tristan da Cunha",[i._F.TG]:"Togo",[i._F.MU]:"Mauritius",[i._F.NE]:"Niger",[i._F.BJ]:"Benin",[i._F.EG]:"Egypt",[i._F.LS]:"Lesotho",[i._F.ET]:"Ethiopia",[i._F.MA]:"Morocco",[i._F.YT]:"Mayotte",[i._F.BF]:"Burkina Faso",[i._F.RE]:"R\xe9union",[i._F.ST]:"S\xe3o Tom\xe9 and Pr\xedncipe",[i._F.CF]:"Central African Republic",[i._F.MZ]:"Mozambique",[i._F.MW]:"Malawi",[i._F.ML]:"Mali",[i._F.ZM]:"Zambia",[i._F.LY]:"Libya",[i._F.GW]:"Guinea-Bissau",[i._F.SO]:"Somalia",[i._F.KE]:"Kenya",[i._F.GN]:"Guinea",[i._F.ZW]:"Zimbabwe",[i._F.TN]:"Tunisia",[i._F.SL]:"Sierra Leone",[i._F.GA]:"Gabon",[i._F.CI]:"Ivory Coast",[i._F.JO]:"Jordan",[i._F.PK]:"Pakistan",[i._F.KP]:"North Korea",[i._F.MO]:"Macau",[i._F.AM]:"Armenia",[i._F.SY]:"Syria",[i._F.TJ]:"Tajikistan",[i._F.SA]:"Saudi Arabia",[i._F.KR]:"South Korea",[i._F.NP]:"Nepal",[i._F.PH]:"Philippines",[i._F.IQ]:"Iraq",[i._F.LB]:"Lebanon",[i._F.MN]:"Mongolia",[i._F.PS]:"Palestine",[i._F.YE]:"Yemen",[i._F.JP]:"Japan",[i._F.KZ]:"Kazakhstan",[i._F.LK]:"Sri Lanka",[i._F.MM]:"Myanmar",[i._F.KG]:"Kyrgyzstan",[i._F.CN]:"China",[i._F.AF]:"Afghanistan",[i._F.OM]:"Oman",[i._F.IN]:"India",[i._F.LA]:"Laos",[i._F.UZ]:"Uzbekistan",[i._F.MV]:"Maldives",[i._F.ID]:"Indonesia",[i._F.VN]:"Vietnam",[i._F.MY]:"Malaysia",[i._F.TW]:"Taiwan",[i._F.KH]:"Cambodia",[i._F.AE]:"United Arab Emirates",[i._F.HK]:"Hong Kong",[i._F.GE]:"Georgia (Country)",[i._F.BD]:"Bangladesh",[i._F.KW]:"Kuwait",[i._F.TM]:"Turkmenistan",[i._F.QA]:"Qatar",[i._F.BH]:"Bahrain",[i._F.BN]:"Brunei",[i._F.TH]:"Thailand",[i._F.BT]:"Bhutan",[i._F.SG]:"Singapore",[i._F.IL]:"Israel",[i._F.AZ]:"Azerbaijan",[i._F.TL]:"Timor-Leste",[i._F.IR]:"Iran",[i._F.TR]:"Turkey",[i._F.MK]:"North Macedonia",[i._F.IE]:"Ireland",[i._F.DK]:"Denmark",[i._F.SK]:"Slovakia",[i._F.MD]:"Moldova",[i._F.AX]:"\xc5land Islands",[i._F.PL]:"Poland",[i._F.BA]:"Bosnia and Herzegovina",[i._F.SM]:"San Marino",[i._F.CZ]:"Czechia",[i._F.EE]:"Estonia",[i._F.XK]:"Kosovo",[i._F.FO]:"Faroe Islands",[i._F.SJ]:"Svalbard and Jan Mayen",[i._F.GG]:"Guernsey",[i._F.FR]:"France",[i._F.NL]:"Netherlands",[i._F.FI]:"Finland",[i._F.PT]:"Portugal",[i._F.DE]:"Germany",[i._F.MT]:"Malta",[i._F.JE]:"Jersey",[i._F.IS]:"Iceland",[i._F.ES]:"Spain",[i._F.GI]:"Gibraltar",[i._F.NO]:"Norway",[i._F.CY]:"Cyprus",[i._F.RS]:"Serbia",[i._F.LT]:"Lithuania",[i._F.MC]:"Monaco",[i._F.LU]:"Luxembourg",[i._F.UA]:"Ukraine",[i._F.IM]:"Isle of Man",[i._F.RO]:"Romania",[i._F.BE]:"Belgium",[i._F.SE]:"Sweden",[i._F.ME]:"Montenegro",[i._F.LV]:"Latvia",[i._F.VA]:"Vatican City",[i._F.AT]:"Austria",[i._F.AL]:"Albania",[i._F.LI]:"Liechtenstein",[i._F.GR]:"Greece",[i._F.IT]:"Italy",[i._F.AD]:"Andorra",[i._F.GB]:"United Kingdom",[i._F.RU]:"Russia",[i._F.SI]:"Slovenia",[i._F.BY]:"Belarus",[i._F.CH]:"Switzerland",[i._F.HU]:"Hungary",[i._F.BG]:"Bulgaria",[i._F.HR]:"Croatia",[i._F.TC]:"Turks and Caicos Islands",[i._F.CW]:"Cura\xe7ao",[i._F.GP]:"Guadeloupe",[i._F.UM]:"United States Minor Outlying Islands",[i._F.GT]:"Guatemala",[i._F.PM]:"Saint Pierre and Miquelon",[i._F.BQ]:"Caribbean Netherlands",[i._F.GL]:"Greenland",[i._F.SX]:"Sint Maarten",[i._F.PA]:"Panama",[i._F.AW]:"Aruba",[i._F.MQ]:"Martinique",[i._F.AG]:"Antigua and Barbuda",[i._F.BM]:"Bermuda",[i._F.CU]:"Cuba",[i._F.GD]:"Grenada",[i._F.NI]:"Nicaragua",[i._F.LC]:"Saint Lucia",[i._F.KN]:"Saint Kitts and Nevis",[i._F.DO]:"Dominican Republic",[i._F.VC]:"Saint Vincent and the Grenadines",[i._F.BZ]:"Belize",[i._F.HT]:"Haiti",[i._F.JM]:"Jamaica",[i._F.BS]:"Bahamas",[i._F.MX]:"Mexico",[i._F.MF]:"Saint Martin",[i._F.SV]:"El Salvador",[i._F.BL]:"Saint Barth\xe9lemy",[i._F.AI]:"Anguilla",[i._F.MS]:"Montserrat",[i._F.VG]:"British Virgin Islands",[i._F.BB]:"Barbados",[i._F.HN]:"Honduras",[i._F.KY]:"Cayman Islands",[i._F.DM]:"Dominica",[i._F.TT]:"Trinidad and Tobago",[i._F.CR]:"Costa Rica",[i._F.SR]:"Suriname",[i._F.CX]:"Christmas Island",[i._F.WS]:"Samoa",[i._F.PF]:"French Polynesia",[i._F.AS]:"American Samoa",[i._F.NC]:"New Caledonia",[i._F.TK]:"Tokelau",[i._F.PW]:"Palau",[i._F.KI]:"Kiribati",[i._F.VU]:"Vanuatu",[i._F.PN]:"Pitcairn Islands",[i._F.CK]:"Cook Islands",[i._F.FJ]:"Fiji",[i._F.PG]:"Papua New Guinea",[i._F.MP]:"Northern Mariana Islands",[i._F.NU]:"Niue",[i._F.TV]:"Tuvalu",[i._F.NF]:"Norfolk Island",[i._F.TO]:"Tonga",[i._F.FM]:"Micronesia",[i._F.SB]:"Solomon Islands",[i._F.NR]:"Nauru",[i._F.WF]:"Wallis and Futuna",[i._F.GU]:"Guam",[i._F.AU]:"Australia",[i._F.NZ]:"New Zealand",[i._F.MH]:"Marshall Islands",[i._F.CC]:"Cocos (Keeling) Islands",[i._F.VE]:"Venezuela",[i._F.PY]:"Paraguay",[i._F.BR]:"Brazil",[i._F.CO]:"Colombia",[i._F.PE]:"Peru",[i._F.CL]:"Chile",[i._F.UY]:"Uruguay",[i._F.AR]:"Argentina",[i._F.GY]:"Guyana",[i._F.BO]:"Bolivia",[i._F.GF]:"French Guiana",[i._F.EC]:"Ecuador",[i._F.FK]:"Falkland Islands",[i._F.US_AL]:"Alabama",[i._F.US_AK]:"Alaska",[i._F.US_AZ]:"Arizona",[i._F.US_AR]:"Arkansas",[i._F.US_CA]:"California",[i._F.US_CO]:"Colorado",[i._F.US_CT]:"Connecticut",[i._F.US_DE]:"Delaware",[i._F.US_DC]:"District of Columbia (DC)",[i._F.US_FL]:"Florida",[i._F.US_GA]:"Georgia",[i._F.US_HI]:"Hawaii",[i._F.US_ID]:"Idaho",[i._F.US_IL]:"Illinois",[i._F.US_IN]:"Indiana",[i._F.US_IA]:"Iowa",[i._F.US_KS]:"Kansas",[i._F.US_KY]:"Kentucky",[i._F.US_LA]:"Louisiana",[i._F.US_ME]:"Maine",[i._F.US_MD]:"Maryland",[i._F.US_MA]:"Massachusetts",[i._F.US_MI]:"Michigan",[i._F.US_MN]:"Minnesota",[i._F.US_MS]:"Mississippi",[i._F.US_MO]:"Missouri",[i._F.US_MT]:"Montana",[i._F.US_NE]:"Nebraska",[i._F.US_NV]:"Nevada",[i._F.US_NH]:"New Hampshire",[i._F.US_NJ]:"New Jersey",[i._F.US_NM]:"New Mexico",[i._F.US_NY]:"New York",[i._F.US_NC]:"North Carolina",[i._F.US_ND]:"North Dakota",[i._F.US_OH]:"Ohio",[i._F.US_OK]:"Oklahoma",[i._F.US_OR]:"Oregon",[i._F.US_PA]:"Pennsylvania",[i._F.US_PR]:"Puerto Rico",[i._F.US_RI]:"Rhode Island",[i._F.US_SC]:"South Carolina",[i._F.US_SD]:"South Dakota",[i._F.US_TN]:"Tennessee",[i._F.US_TX]:"Texas",[i._F.US_UT]:"Utah",[i._F.US_VA]:"Virginia",[i._F.US_VI]:"United States Virgin Islands",[i._F.US_VT]:"Vermont",[i._F.US_WA]:"Washington",[i._F.US_WV]:"West Virginia",[i._F.US_WI]:"Wisconsin",[i._F.US_WY]:"Wyoming",[i._F.CA_AB]:"Alberta",[i._F.CA_BC]:"British Columbia",[i._F.CA_MB]:"Manitoba",[i._F.CA_NB]:"New Brunswick",[i._F.CA_NL]:"Newfoundland and Labrador",[i._F.CA_NS]:"Nova Scotia",[i._F.CA_ON]:"Ontario",[i._F.CA_PE]:"Prince Edward Island",[i._F.CA_QC]:"Quebec",[i._F.CA_SK]:"Saskatchewan",[i._F.CA_NT]:"Northwest Territories",[i._F.CA_NU]:"Nunavut",[i._F.CA_YT]:"Yukon",[i._F.CA]:"Canada",[i._F.US]:"United States",[i._F.MEXICO_CENTRAL_AMERICA]:"Mexico and Central America",[i._F.CARIBBEAN]:"Caribbean",[i._F.EEA]:"European Economic Area (EEA)",[i._F.NON_EEA]:"Non European Economic Area"},l=new Map(Object.entries(t));Object.entries(t).map(e=>({value:e[0],label:e[1]}))},7426:function(e,a,n){n.d(a,{D2:function(){return u},L:function(){return r},U7:function(){return d},Yh:function(){return F},ak:function(){return s},iR:function(){return m},km:function(){return o},tB:function(){return l}});var i=n(3228);let t=n(78780).u.injectEndpoints({endpoints:e=>({getConfigurationSettings:e.query({query:e=>{let{api_set:a}=e;return{url:"/config",method:"GET",params:{api_set:a}}},providesTags:["Configuration Settings"]}),putConfigurationSettings:e.mutation({query:e=>({url:"/config",method:"PUT",body:e}),invalidatesTags:["Configuration Settings"]}),patchConfigurationSettings:e.mutation({query:e=>({url:"/config",method:"PATCH",body:e}),invalidatesTags:["Configuration Settings","Privacy Notices"]})})}),{useGetConfigurationSettingsQuery:l,usePutConfigurationSettingsMutation:o,usePatchConfigurationSettingsMutation:r}=t,s=(0,i.P1)([e=>e,t.endpoints.getConfigurationSettings.select({api_set:!0}),t.endpoints.getConfigurationSettings.select({api_set:!1})],(e,a,n)=>{var i,t,l;let{data:o}=a,{data:r}=n;return{configSet:{cors_origins:(null==r?void 0:null===(i=r.security)||void 0===i?void 0:i.cors_origins)||[],cors_origin_regex:null==r?void 0:null===(t=r.security)||void 0===t?void 0:t.cors_origin_regex},apiSet:{cors_origins:(null==o?void 0:null===(l=o.security)||void 0===l?void 0:l.cors_origins)||[]}}}),d=()=>(0,i.P1)([e=>e,t.endpoints.getConfigurationSettings.select({api_set:!0})],(e,a)=>{let{data:n}=a;return n}),_={enabled:!1,cmp_api_required:!1},c=(e,a,n,i)=>{let t=n&&n[e],l=i&&i[e];return t&&l?{...i[e],...n[e]}:l?i[e]:t?{...n[e]}:a},u=(0,i.P1)([e=>e,t.endpoints.getConfigurationSettings.select({api_set:!0}),t.endpoints.getConfigurationSettings.select({api_set:!1})],(e,a,n)=>{let{data:i}=a,{data:t}=n;return c("gpp",_,i,t)}),p={tcf_publisher_country_code:null},F=(0,i.P1)([e=>e,t.endpoints.getConfigurationSettings.select({api_set:!0}),t.endpoints.getConfigurationSettings.select({api_set:!1})],(e,a,n)=>{let{data:i}=a,{data:t}=n;return c("plus_consent_settings",p,i,t)}),b={allow_username_password_login:!1},m=(0,i.P1)([e=>e,t.endpoints.getConfigurationSettings.select({api_set:!0}),t.endpoints.getConfigurationSettings.select({api_set:!1})],(e,a,n)=>{let{data:i}=a,{data:t}=n;return c("plus_security_settings",b,i,t)})},16194:function(e,a,n){n.d(a,{RN:function(){return N},d0:function(){return T}});var i=n(24246),t=n(56078),l=n(34090),o=n(86677),r=n(27378),s=n(16134),d=n(40324),_=n(90980),c=n(77830),u=n(8411),p=n(51472),F=n(52955),b=n(64781),m=n(60325),v=n(34334),g=n(71922),h=n(98795),C=n(16643),f=n(97181),S=n(7426);let y=[{label:"Banner and modal",value:C.re.BANNER_AND_MODAL},{label:"Modal",value:C.re.MODAL},{label:"Privacy center",value:C.re.PRIVACY_CENTER},{label:"Headless",value:C.re.HEADLESS}],x=[{label:"Reject all",value:C.tb.REJECT_ALL},{label:"Reject consent only",value:C.tb.REJECT_CONSENT_ONLY}],j=[{label:"Banner and modal",value:C.Of.OPT_IN_OPT_OUT},{label:"Modal only",value:C.Of.OPT_IN_ONLY}],A=[{label:"Opt in/Opt out",value:C.Of.OPT_IN_OPT_OUT},{label:"Acknowledge",value:C.Of.ACKNOWLEDGE}],k="tcf_purposes_placeholder",N=e=>{let{buttonPanel:a,children:n}=e;return(0,i.jsxs)(t.kCb,{direction:"column",minH:"full",w:"25%",borderRight:"1px solid #DEE5EE",children:[(0,i.jsx)(t.kCb,{direction:"column",h:"full",overflowY:"auto",px:4,children:(0,i.jsx)(t.kCb,{direction:"column",gap:4,w:"full",pb:4,children:n})}),a]})},T=e=>{var a,n,T,E,M,R,I;let{allPrivacyNotices:O,translationsEnabled:U,onSelectTranslation:L,onCreateTranslation:w}=e,B=(0,o.useRouter)(),{values:P,setFieldValue:q,dirty:D,isValid:G,isSubmitting:V,initialValues:K}=(0,l.u6)(),Y=(0,s.C)(g.Zp),z=(0,s.C)(g.G1);(0,g.J6)({page:Y,size:z});let{data:Z}=(0,S.tB)({api_set:!0}),W=(0,r.useMemo)(()=>{let e=[...O];return e.some(e=>e.id===k)||e.push({name:"TCF Purposes",id:k,notice_key:k,data_uses:[],consent_mechanism:C.J7.NOTICE_ONLY,disabled:!1}),e},[O]),H=e=>{var a;let n=W.find(a=>a.id===e);return null!==(a=null==n?void 0:n.name)&&void 0!==a?a:e};(0,b.QM)();let J=(0,s.C)(b.P8),X=[...(0,m.TK)(J.locations),...(0,m.TK)(J.location_groups)],Q=(0,s.C)(v.fJ),$=(0,s.C)(h.Zp),ee=(0,s.C)(h.G1);(0,h.gz)({page:$,size:ee});let ea=(0,s.C)(h.YO),en=(0,s.C)(F.dv),{data:ei}=(0,F.LS)(en),et=(0,r.useMemo)(()=>{var e;return null!==(e=null==ei?void 0:ei.items.map(e=>({label:e.name,value:e.id})))&&void 0!==e?e:[]},[ei]),el=(0,i.jsxs)("div",{className:"flex justify-between border-t border-[#DEE5EE] p-4",children:[(0,i.jsx)(t.wpx,{onClick:()=>B.push(c.w0),children:"Cancel"}),(0,i.jsx)(t.wpx,{htmlType:"submit",type:"primary","data-testid":"save-btn",disabled:V||!D||!G,loading:V,children:"Save"})]});return(0,i.jsxs)(N,{buttonPanel:el,children:[(0,i.jsx)(_.Z,{backPath:c.w0,mt:4}),(0,i.jsx)(t.X6q,{fontSize:"md",fontWeight:"semibold",children:"Configure experience"}),(0,i.jsx)(d.j0,{name:"name",id:"name",label:"Name (internal admin use only)",isRequired:!0,variant:"stacked"}),P.component!==C.re.TCF_OVERLAY&&(0,i.jsx)(f.d,{name:"component",id:"component",options:y,label:"Experience type",layout:"stacked",disabled:!!K.component,isRequired:!0}),(0,i.jsx)(t.UO1,{in:P.component===C.re.TCF_OVERLAY,animateOpacity:!0,children:P.component===C.re.TCF_OVERLAY&&(0,i.jsx)(t.esZ,{title:(null==Z?void 0:null===(a=Z.consent)||void 0===a?void 0:a.override_vendor_purposes)?(null==et?void 0:et.length)?void 0:"No TCF configurations found. Please create a TCF configuration in 'Consent settings' to select one.":"You must enable the Override vendor purposes setting in consent settings to select a TCF configuration.",children:(0,i.jsx)("div",{children:(0,i.jsx)(f.d,{name:"tcf_configuration_id",id:"tcf_configuration_id",label:"TCF Configuration",options:et,layout:"stacked",disabled:!(null==et?void 0:et.length)||!(null==Z?void 0:null===(n=Z.consent)||void 0===n?void 0:n.override_vendor_purposes),tooltip:'Select a TCF configuration. Configurations are defined in "Consent settings" and apply to TCF privacy experiences.',allowClear:!0})})})}),(0,i.jsx)(t.UO1,{in:P.component===C.re.TCF_OVERLAY,animateOpacity:!0,children:P.component===C.re.TCF_OVERLAY&&(0,i.jsx)(f.d,{name:"reject_all_mechanism",id:"reject_all_mechanism",options:x,defaultValue:C.tb.REJECT_ALL,label:"Reject all behavior",layout:"stacked",tooltip:"Reject all: Blocks both consent and legitimate interest data processing across all purposes, features, and vendors. Reject consent-only: Blocks only consent-based processing, but allows legitimate interest processing to continue, requiring separate objection."})}),(0,i.jsx)(t.UO1,{in:P.component===C.re.BANNER_AND_MODAL||P.component===C.re.TCF_OVERLAY,animateOpacity:!0,children:(P.component===C.re.BANNER_AND_MODAL||P.component===C.re.TCF_OVERLAY)&&(0,i.jsx)(f.d,{name:"layer1_button_options",id:"layer1_button_options",defaultValue:C.Of.OPT_IN_OPT_OUT,options:P.component===C.re.TCF_OVERLAY?j:A,label:P.component===C.re.TCF_OVERLAY?"Reject all visibility":"Banner options",layout:"stacked"})}),(0,i.jsx)(t.UO1,{in:P.component!==C.re.PRIVACY_CENTER&&P.component!==C.re.HEADLESS,animateOpacity:!0,children:(0,i.jsx)(t.xuv,{p:"1px",children:(0,i.jsx)(d.w8,{name:"dismissable",id:"dismissable",label:"Allow user to dismiss",variant:"stacked"})})}),(0,i.jsx)(t.izJ,{}),(0,i.jsx)(t.X6q,{fontSize:"md",fontWeight:"semibold",children:"Privacy notices"}),P.component===C.re.TCF_OVERLAY?(0,i.jsx)(p.Z,{addButtonLabel:"Add privacy notice",allItems:W.map(e=>e.id),values:function(e){if(!e.privacy_notice_ids)return[k];let a=e.privacy_notice_ids;return a.includes(k)||a.push(k),a}(P),setValues:e=>q("privacy_notice_ids",e),canDeleteItem:e=>e!==k,getTooltip:e=>{if(e===k)return"TCF Purposes are required by the framework and cannot be deleted."},getItemLabel:H,draggable:!0,baseTestId:"privacy-notice"}):(0,i.jsx)(p.Z,{addButtonLabel:"Add privacy notice",allItems:(e=>{var a;let n=e.map(e=>{var a;return null===(a=e.children)||void 0===a?void 0:a.map(e=>e.id)}).flat();return null!==(a=O.filter(e=>!n.includes(e.id)))&&void 0!==a?a:[]})(O).map(e=>e.id),values:null!==(E=P.privacy_notice_ids)&&void 0!==E?E:[],setValues:e=>q("privacy_notice_ids",e),getItemLabel:H,draggable:!0,baseTestId:"privacy-notice"}),(0,i.jsx)(t.UO1,{in:P.component===C.re.BANNER_AND_MODAL&&!!(null===(T=P.privacy_notice_ids)||void 0===T?void 0:T.length),animateOpacity:!0,children:P.component===C.re.BANNER_AND_MODAL&&(0,i.jsx)(t.xuv,{p:"1px",children:(0,i.jsx)(d.w8,{name:"show_layer1_notices",id:"show_layer1_notices",label:"Add privacy notices to banner",variant:"stacked"})})}),(0,i.jsx)(t.izJ,{}),(0,i.jsx)(t.xvT,{as:"h2",fontWeight:"600",children:"Locations & Languages"}),(0,i.jsx)(p.Z,{label:"Locations for this experience",addButtonLabel:"Add location",allItems:X,values:null!==(M=P.regions)&&void 0!==M?M:[],setValues:e=>q("regions",e),getItemLabel:e=>u.Z8[e],draggable:!0,baseTestId:"location"}),U?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(p.Z,{label:"Languages for this experience",addButtonLabel:"Add language",values:null!==(R=P.translations)&&void 0!==R?R:[],setValues:e=>q("translations",e),idField:"language",canDeleteItem:e=>!e.is_default,allItems:Q.slice().sort((e,a)=>e.name.localeCompare(a.name)).map(e=>({language:e.id,is_default:!1})),getItemLabel:e=>{let a=Q.find(a=>a.id===e.language),n=a?a.name:e.language;return"".concat(n).concat(e.is_default?" (Default)":"")},createNewValue:e=>w(e.value),onRowClick:L,selectOnAdd:!0,draggable:!0,baseTestId:"language"}),(0,i.jsx)(d.w8,{name:"auto_detect_language",id:"auto_detect_language",label:"Auto detect language",variant:"stacked"})]}):(0,i.jsx)(t.wpx,{icon:(0,i.jsx)(t.mrv,{}),iconPosition:"end",onClick:()=>L(P.translations[0]),"data-testid":"edit-experience-btn",children:"Edit experience text"}),(0,i.jsx)(t.izJ,{}),(0,i.jsx)(t.X6q,{fontSize:"md",fontWeight:"semibold",children:"Properties"}),(0,i.jsx)(p.Z,{label:"Associated properties",addButtonLabel:"Add property",idField:"id",nameField:"name",allItems:ea.map(e=>({id:e.id,name:e.name})),values:null!==(I=P.properties)&&void 0!==I?I:[],setValues:e=>q("properties",e),draggable:!0,maxHeight:100,baseTestId:"property"}),(0,i.jsx)(t.izJ,{}),(0,i.jsx)(d.w8,{name:"auto_subdomain_cookie_deletion",id:"auto_subdomain_cookie_deletion",label:"Automatically delete subdomain cookies",variant:"stacked",tooltip:"If enabled, automatically deletes cookies set on subdomains in addition to main domain where appropriate. Recommended to enable for full consent compliance."})]})}},16277:function(e,a,n){n.d(a,{f:function(){return m}});var i=n(24246),t=n(56078),l=n(34090),o=n(56141),r=n.n(o),s=n(27378),d=n(40324),_=n(87361),c=n(57899),u=n(90980),p=n(60325),F=n(16194),b=n(16643);let m=e=>{let{languageName:a}=e;return(0,i.jsx)(_.Z,{text:"This is a default translation provided by Fides. If you've modified the default English language text, these translations will not match, so verify any changes with a native ".concat(a," speaker before using."),"data-testid":"oob-translation-notice"})};a.Z=e=>{var a,n,o,_,v,g,h;let C,{translation:f,translationsEnabled:S,isOOB:y,onReturnToMainForm:x}=e,{values:j,setFieldValue:A,errors:k,touched:N,setTouched:T}=(0,l.u6)(),E=(0,s.useMemo)(()=>{let{name:e,...a}=f;return a},[f]),M=!!E.title&&!y,R=(0,p.y3)(j.component),I=j.translations.findIndex(e=>e.language===f.language),O=!r()(j.translations[I],E),{onOpen:U,isOpen:L,onClose:w}=(0,t.qY0)(),{onOpen:B,isOpen:P,onClose:q}=(0,t.qY0)(),D=()=>{O||y?U():x()},G=e=>{let a=j.translations.map((a,n)=>({...a,is_default:n===e}));a.unshift(a.splice(e,1)[0]),A("translations",a),x()},V=(0,i.jsxs)("div",{className:"flex justify-between border-t border-[#DEE5EE] p-4",children:[(0,i.jsx)(t.wpx,{onClick:D,"data-testid":"cancel-btn",children:"Cancel"}),(0,i.jsx)(t.wpx,{onClick:()=>{j.translations[I].is_default&&!E.is_default?B():x()},type:"primary","data-testid":"save-btn",disabled:!O&&!y||!!k.translations,children:M?"Save":"Add translation"})]});return C=S?M?"You have unsaved changes to this translation. Discard changes?":"This translation has not been added to your experience. Discard translation?":"You have unsaved changes to this experience text. Discard changes?",(0,i.jsxs)(F.RN,{buttonPanel:V,children:[(0,i.jsx)(u.R,{onClick:D,mt:4}),(0,i.jsx)(c.Z,{isOpen:L,onClose:w,title:S?"Translation not saved":"Text not saved",message:(0,i.jsx)(t.xvT,{children:C}),confirmButtonText:"Discard",handleConfirm:()=>{let e=j.translations.slice();M?e[I]={...E,title:E.title,description:E.description}:e.splice(I,1),A("translations",e);let{translations:a,...n}=N;T({...n}),x()}}),(0,i.jsx)(t.X6q,{fontSize:"md",fontWeight:"semibold",children:S?"Edit ".concat(f.name," translation"):"Edit experience text"}),y?(0,i.jsx)(m,{languageName:f.name}):null,S&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(d.w8,{name:"translations.".concat(I,".is_default"),id:"translations.".concat(I,".is_default"),label:"Default language",isDisabled:!!E.is_default,variant:"stacked"}),(0,i.jsx)(c.Z,{isOpen:P,onClose:q,title:"Update default language",message:(0,i.jsx)(t.xvT,{children:"Are you sure you want to update the default language of this experience?"}),handleConfirm:()=>G(I)})]}),(0,i.jsx)(d.j0,{name:"translations.".concat(I,".title"),id:"translations.".concat(I,".title"),label:"Title",isRequired:!0,variant:"stacked"}),(0,i.jsx)(d.Ks,{name:"translations.".concat(I,".description"),id:"translations.".concat(I,".description"),label:"Description",isRequired:!0,variant:"stacked"}),(j.component===b.re.BANNER_AND_MODAL||j.component===b.re.TCF_OVERLAY)&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(d.j0,{name:"translations.".concat(I,".banner_title"),id:"translations.".concat(I,".banner_title"),label:"Banner title (optional)",tooltip:"A separate title for the banner (defaults to main title)",variant:"stacked"}),(0,i.jsx)(d.Ks,{name:"translations.".concat(I,".banner_description"),id:"translations.".concat(I,".banner_description"),label:"Banner description (optional)",tooltip:"A separate description for the banner (defaults to main description)",variant:"stacked"})]}),j.component===b.re.TCF_OVERLAY&&(0,i.jsx)(d.j0,{name:"translations.".concat(I,".purpose_header"),id:"translations.".concat(I,".purpose_header"),label:"Purpose header (optional)",tooltip:"Appears above the Purpose list section of the TCF banner",variant:"stacked"}),(0,i.jsx)(d.j0,{name:"translations.".concat(I,".accept_button_label"),id:"translations.".concat(I,".accept_button_label"),label:'"Accept" button label',isRequired:!0,variant:"stacked"}),(0,i.jsx)(d.j0,{name:"translations.".concat(I,".reject_button_label"),id:"translations.".concat(I,".reject_button_label"),label:'"Reject" button label',isRequired:!0,variant:"stacked"}),(null===(a=R.privacy_preferences_link_label)||void 0===a?void 0:a.included)&&(0,i.jsx)(d.j0,{name:"translations.".concat(I,".privacy_preferences_link_label"),id:"translations.".concat(I,".privacy_preferences_link_label"),label:'"Manage privacy preferences" button label',variant:"stacked",isRequired:null===(n=R.privacy_preferences_link_label)||void 0===n?void 0:n.required}),(null===(o=R.save_button_label)||void 0===o?void 0:o.included)&&(0,i.jsx)(d.j0,{name:"translations.".concat(I,".save_button_label"),id:"translations.".concat(I,".save_button_label"),label:'"Save" button label',variant:"stacked",isRequired:R.save_button_label.required}),(null===(_=R.acknowledge_button_label)||void 0===_?void 0:_.included)&&(0,i.jsx)(d.j0,{name:"translations.".concat(I,".acknowledge_button_label"),id:"translations.".concat(I,".acknowledge_button_label"),label:'"Acknowledge" button label',variant:"stacked",isRequired:R.acknowledge_button_label.required}),(null===(v=R.privacy_policy_link_label)||void 0===v?void 0:v.included)&&(0,i.jsx)(d.j0,{name:"translations.".concat(I,".privacy_policy_link_label"),id:"translations.".concat(I,".privacy_policy_link_label"),label:"Privacy policy link label (optional)",variant:"stacked"}),(null===(g=R.privacy_policy_url)||void 0===g?void 0:g.included)&&(0,i.jsx)(d.j0,{name:"translations.".concat(I,".privacy_policy_url"),id:"translations.".concat(I,".privacy_policy_url"),label:"Privacy policy link URL (optional)",variant:"stacked"}),(null===(h=R.modal_link_label)||void 0===h?void 0:h.included)&&(0,i.jsx)(d.j0,{name:"translations.".concat(I,".modal_link_label"),id:"translations.".concat(I,".modal_link_label"),label:"Trigger link label (optional)",tooltip:"Include text here if you would like the Fides CMP to manage the copy of the button that is included on your site to open the CMP.",variant:"stacked"})]})}},60325:function(e,a,n){n.d(a,{DD:function(){return r},Go:function(){return s},TK:function(){return t},Uv:function(){return _},k1:function(){return l},y3:function(){return c}});var i=n(16643);let t=e=>{var a;return null!==(a=null==e?void 0:e.filter(e=>e.selected).map(e=>e.id))&&void 0!==a?a:[]},l=e=>{var a;return null!==(a=null==e?void 0:e.filter(e=>e.selected))&&void 0!==a?a:[]},o=[{language:i.eU.EN,is_default:!0,title:"Title",description:"Description",accept_button_label:"Accept",reject_button_label:"Reject",save_button_label:"Save",acknowledge_button_label:"OK",privacy_preferences_link_label:"Privacy Preferences"}],r={name:"",disabled:!1,dismissable:!0,allow_language_selection:!1,show_layer1_notices:!1,layer1_button_options:i.Of.OPT_IN_OPT_OUT,regions:[],translations:o,auto_detect_language:!0,auto_subdomain_cookie_deletion:!0},s=(e,a)=>{let n=a.find(a=>a.id===e.language);return n?n.name:e.language},d=e=>{var a,n,i,t,l,o,r,s,d;let{language:_,is_default:c,accept_button_label:u,reject_button_label:p}=e;return{language:_,is_default:c,accept_button_label:u,reject_button_label:p,title:e.title,description:e.description,acknowledge_button_label:null!==(a=e.acknowledge_button_label)&&void 0!==a?a:void 0,banner_title:null!==(n=e.banner_title)&&void 0!==n?n:void 0,banner_description:null!==(i=e.banner_description)&&void 0!==i?i:void 0,purpose_header:null!==(t=e.purpose_header)&&void 0!==t?t:void 0,privacy_policy_link_label:null!==(l=e.privacy_policy_link_label)&&void 0!==l?l:void 0,privacy_policy_url:null!==(o=e.privacy_policy_url)&&void 0!==o?o:void 0,privacy_preferences_link_label:null!==(r=e.privacy_preferences_link_label)&&void 0!==r?r:void 0,save_button_label:null!==(s=e.save_button_label)&&void 0!==s?s:void 0,modal_link_label:null!==(d=e.modal_link_label)&&void 0!==d?d:void 0}},_=e=>{let{created_at:a,updated_at:n,privacy_notices:i,origin:t,id:l,...o}=e;return{...o,privacy_notice_ids:i?i.map(e=>e.id):[],translations:e.translations?e.translations.map(e=>d(e)):[]}},c=e=>e===i.re.PRIVACY_CENTER?{title:{included:!0,required:!0},description:{included:!0,required:!0},save_button_label:{included:!0,required:!0},accept_button_label:{included:!0,required:!0},reject_button_label:{included:!0,required:!0},privacy_policy_link_label:{included:!0},privacy_policy_url:{included:!0},modal_link_label:{included:!0}}:e===i.re.MODAL?{title:{included:!0,required:!0},description:{included:!0,required:!0},accept_button_label:{included:!0,required:!0},reject_button_label:{included:!0,required:!0},save_button_label:{included:!0,required:!0},acknowledge_button_label:{included:!0,required:!0},privacy_policy_link_label:{included:!0},privacy_policy_url:{included:!0},privacy_preferences_link_label:{included:!0},modal_link_label:{included:!0}}:e===i.re.BANNER_AND_MODAL?{title:{included:!0,required:!0},banner_title:{included:!0},description:{included:!0,required:!0},banner_description:{included:!0},accept_button_label:{included:!0,required:!0},reject_button_label:{included:!0,required:!0},save_button_label:{included:!0,required:!0},acknowledge_button_label:{included:!0,required:!0},privacy_policy_link_label:{included:!0},privacy_policy_url:{included:!0},privacy_preferences_link_label:{included:!0,required:!0},modal_link_label:{included:!0}}:e===i.re.TCF_OVERLAY?{title:{included:!0,required:!0},banner_title:{included:!0},description:{included:!0,required:!0},banner_description:{included:!0},purpose_header:{included:!0},accept_button_label:{included:!0,required:!0},reject_button_label:{included:!0,required:!0},save_button_label:{included:!0,required:!0},acknowledge_button_label:{included:!0,required:!0},privacy_policy_link_label:{included:!0},privacy_policy_url:{included:!0},privacy_preferences_link_label:{included:!0,required:!0},modal_link_label:{included:!0}}:{title:{included:!0,required:!0},description:{included:!0,required:!0},accept_button_label:{included:!0,required:!0},reject_button_label:{included:!0,required:!0},save_button_label:{included:!0,required:!0},acknowledge_button_label:{included:!0,required:!0},privacy_policy_link_label:{included:!0},privacy_policy_url:{included:!0},privacy_preferences_link_label:{included:!0,required:!0},modal_link_label:{included:!0}}}}]);
@@ -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(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(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(56078),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(56078),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"}}}]);