ethyca-fides 2.60.2b0__py2.py3-none-any.whl → 2.61.0rc0__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 (229) hide show
  1. {ethyca_fides-2.60.2b0.dist-info → ethyca_fides-2.61.0rc0.dist-info}/METADATA +1 -1
  2. {ethyca_fides-2.60.2b0.dist-info → ethyca_fides-2.61.0rc0.dist-info}/RECORD +195 -187
  3. {ethyca_fides-2.60.2b0.dist-info → ethyca_fides-2.61.0rc0.dist-info}/WHEEL +1 -1
  4. fides/_version.py +3 -3
  5. fides/api/alembic/migrations/versions/d0cbfec0b2dd_add_okta_to_connection_types.py +61 -0
  6. fides/api/models/connectionconfig.py +3 -0
  7. fides/api/schemas/application_config.py +4 -0
  8. fides/api/schemas/connection_configuration/__init__.py +9 -1
  9. fides/api/schemas/connection_configuration/connection_secrets_mysql.py +2 -1
  10. fides/api/schemas/connection_configuration/connection_secrets_okta.py +28 -0
  11. fides/api/schemas/connection_configuration/enums/system_type.py +1 -0
  12. fides/api/service/connectors/__init__.py +2 -0
  13. fides/api/service/connectors/mysql_connector.py +10 -5
  14. fides/api/service/connectors/okta_connector.py +91 -0
  15. fides/api/service/connectors/website_connector.py +3 -0
  16. fides/api/task/task_resources.py +3 -0
  17. fides/api/ui.py +4 -4
  18. fides/config/admin_ui_settings.py +10 -0
  19. fides/config/utils.py +1 -1
  20. fides/ui-build/static/admin/404.html +1 -1
  21. fides/ui-build/static/admin/_next/static/chunks/1099-93ef46816fd9552d.js +1 -0
  22. fides/ui-build/static/admin/_next/static/chunks/1327-12e2ae9047975ed8.js +1 -0
  23. fides/ui-build/static/admin/_next/static/chunks/{1817-ee8d8da2ea918cb2.js → 1817-fd6e3097c7cd0a83.js} +1 -1
  24. fides/ui-build/static/admin/_next/static/chunks/{1904-3aa43570520790fc.js → 1904-31f6988c348b50fa.js} +1 -1
  25. fides/ui-build/static/admin/_next/static/chunks/2310-58ad7f4d89548c55.js +1 -0
  26. fides/ui-build/static/admin/_next/static/chunks/3119-5737a448f163d520.js +1 -0
  27. fides/ui-build/static/admin/_next/static/chunks/3426-0118c444a97d12e7.js +1 -0
  28. fides/ui-build/static/admin/_next/static/chunks/3505-f3da493d67cca1fe.js +1 -0
  29. fides/ui-build/static/admin/_next/static/chunks/{3513-bcef489f2c8e30e1.js → 3513-4371139d2dcc970e.js} +1 -1
  30. fides/ui-build/static/admin/_next/static/chunks/355-5164f2483fbba0cb.js +1 -0
  31. fides/ui-build/static/admin/_next/static/chunks/{3872-7382a9d55bb94d53.js → 3872-bad3462d06cd804a.js} +1 -1
  32. fides/ui-build/static/admin/_next/static/chunks/{4060-891319185929d1ae.js → 4060-4e26dfdcca17f6d0.js} +1 -1
  33. fides/ui-build/static/admin/_next/static/chunks/4121-cd90e1176f386db6.js +1 -0
  34. fides/ui-build/static/admin/_next/static/chunks/4481-a794efd3e46d9e1e.js +1 -0
  35. fides/ui-build/static/admin/_next/static/chunks/4723-f825d5e50c9a9cc1.js +1 -0
  36. fides/ui-build/static/admin/_next/static/chunks/5258-78e9998b55a99e6e.js +1 -0
  37. fides/ui-build/static/admin/_next/static/chunks/{5487-1035279f9f4aaa81.js → 5487-9e5337ee0519b3dd.js} +1 -1
  38. fides/ui-build/static/admin/_next/static/chunks/5626-0f20d825ff36ade8.js +1 -0
  39. fides/ui-build/static/admin/_next/static/chunks/5683-13bf29021a8a22b5.js +1 -0
  40. fides/ui-build/static/admin/_next/static/chunks/{5826-dbb96ab3cc360ed4.js → 5826-f48d6ee53c71d416.js} +1 -1
  41. fides/ui-build/static/admin/_next/static/chunks/5973-afa387f3d8f206c5.js +1 -0
  42. fides/ui-build/static/admin/_next/static/chunks/6277-b030e53c69296ba0.js +1 -0
  43. fides/ui-build/static/admin/_next/static/chunks/{6853-38e3fd5a7b1bde87.js → 6853-d9ab20addf3211ca.js} +1 -1
  44. fides/ui-build/static/admin/_next/static/chunks/{6954-92f362ffea739388.js → 6954-9fe49c352c50a728.js} +1 -1
  45. fides/ui-build/static/admin/_next/static/chunks/{79-82c500f39db614d1.js → 79-af432089c2fb7098.js} +1 -1
  46. fides/ui-build/static/admin/_next/static/chunks/7980-be2cae7df75d0d26.js +1 -0
  47. fides/ui-build/static/admin/_next/static/chunks/8499-4beb5f4dbbd2495a.js +1 -0
  48. fides/ui-build/static/admin/_next/static/chunks/9494-5de614a9c4ba6c6f.js +1 -0
  49. fides/ui-build/static/admin/_next/static/chunks/{9767-8d96e7f8fd72eadc.js → 9767-151514d9b6012cbf.js} +1 -1
  50. fides/ui-build/static/admin/_next/static/chunks/pages/{_app-e2f86c400e5d4c5d.js → _app-de6a48147414d9c5.js} +1 -1
  51. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/manual-3374f40c347f512d.js +1 -0
  52. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/{multiple-aed3ff8f334381ad.js → multiple-e762d1a7bb621490.js} +1 -1
  53. fides/ui-build/static/admin/_next/static/chunks/pages/{add-systems-72768fa90f31d936.js → add-systems-00ea995200d1c172.js} +1 -1
  54. fides/ui-build/static/admin/_next/static/chunks/pages/consent/configure/{add-vendors-c3f11050818ddba3.js → add-vendors-9cea72b22a30dab7.js} +1 -1
  55. fides/ui-build/static/admin/_next/static/chunks/pages/consent/{configure-7d3f39e6207c0d4d.js → configure-3befc871d0e60d2d.js} +1 -1
  56. fides/ui-build/static/admin/_next/static/chunks/pages/consent/{privacy-experience-08bcc477fa5544b6.js → privacy-experience-b748c0f8139b1d91.js} +1 -1
  57. fides/ui-build/static/admin/_next/static/chunks/pages/consent/{privacy-notices-22693568fd342608.js → privacy-notices-07da131ee0b2c7c3.js} +1 -1
  58. fides/ui-build/static/admin/_next/static/chunks/pages/consent/{reporting-c71f7e3ef8a3bdd4.js → reporting-3a1133741154487f.js} +1 -1
  59. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]/{[resourceUrn]-ac033a16f043e6f9.js → [resourceUrn]-51848adeabeec91a.js} +1 -1
  60. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects-f88ce53bf5955afc.js +1 -0
  61. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/resources/{[resourceUrn]-71e26d262afcaea5.js → [resourceUrn]-4d6bf36a91f24c59.js} +1 -1
  62. fides/ui-build/static/admin/_next/static/chunks/pages/{data-catalog-f416c61699380589.js → data-catalog-d88d2ba71304ff20.js} +1 -1
  63. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]/[systemId]-493092ef53b7a5ad.js +1 -0
  64. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]-c3972d2a4f09a352.js +1 -0
  65. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center-0db321921ff7d862.js +1 -0
  66. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{activity-aec2dd0d89d11c1f.js → activity-09b633bbca271bec.js} +1 -1
  67. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/detection/{[resourceUrn]-10f789d4ab2b8927.js → [resourceUrn]-5e73a0af4d4b102e.js} +1 -1
  68. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{detection-f473b2ee1c67be3c.js → detection-e20539139ac36306.js} +1 -1
  69. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/discovery/{[resourceUrn]-2569551ae75ea5a2.js → [resourceUrn]-89c047896b1ecafb.js} +1 -1
  70. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{discovery-ad077f30849fdc0a.js → discovery-63b6d40045810c5c.js} +1 -1
  71. fides/ui-build/static/admin/_next/static/chunks/pages/{datamap-359ab1b6513a5329.js → datamap-c1b1b962a8a91449.js} +1 -1
  72. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/{new-274b8cf0932e2741.js → new-69396842b6f8435d.js} +1 -1
  73. fides/ui-build/static/admin/_next/static/chunks/pages/{dataset-9b3ab8de38e343b9.js → dataset-b07bbb0fa8721267.js} +1 -1
  74. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/{[id]-2b2d8474ff4a7ec3.js → [id]-9c46aa2d578b540f.js} +1 -1
  75. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/{new-fc637b767513d3fb.js → new-3b6bf525db82a361.js} +1 -1
  76. fides/ui-build/static/admin/_next/static/chunks/pages/{datastore-connection-3a196ef552fb5352.js → datastore-connection-8256ef316c7faf71.js} +1 -1
  77. fides/ui-build/static/admin/_next/static/chunks/pages/{index-e5fa3ad65420815b.js → index-ddee8467f71fd1d6.js} +1 -1
  78. fides/ui-build/static/admin/_next/static/chunks/pages/integrations/{[id]-900e1581de2811c1.js → [id]-304d65f36b577d53.js} +1 -1
  79. fides/ui-build/static/admin/_next/static/chunks/pages/integrations-225715668d4cf4c4.js +1 -0
  80. fides/ui-build/static/admin/_next/static/chunks/pages/messaging-0dd53f360c3e4c51.js +1 -0
  81. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/{[id]-f208ea9573f5d16f.js → [id]-65bac3bf6a413ad4.js} +1 -1
  82. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/messaging-b4d50a9ff291958d.js +1 -0
  83. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/storage-79fe2745d8e10acd.js +1 -0
  84. fides/ui-build/static/admin/_next/static/chunks/pages/{privacy-requests-0cd0024113f958da.js → privacy-requests-31e6cece4f16c802.js} +1 -1
  85. fides/ui-build/static/admin/_next/static/chunks/pages/reporting/datamap-76cb540b7410c160.js +1 -0
  86. fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent/[configuration_id]/{[purpose_id]-e4bee84add8a913b.js → [purpose_id]-95d354bdf611fc6e.js} +1 -1
  87. fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent-ab6b2a727f9dee17.js +1 -0
  88. fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields-911d703f02db1a15.js +1 -0
  89. fides/ui-build/static/admin/_next/static/chunks/pages/settings/domains-b3b7d27f8d12fb79.js +1 -0
  90. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{organization-2fcbf2b113dce00c.js → organization-a26c57f791b78190.js} +1 -1
  91. fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]/{test-datasets-7bf0c1ff8d1d09cf.js → test-datasets-3dc2a0e0e464b94a.js} +1 -1
  92. fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]-a602f4725a7b44fd.js +1 -0
  93. fides/ui-build/static/admin/_next/static/chunks/pages/{systems-c921992c82514912.js → systems-5dca9833f98a7e34.js} +1 -1
  94. fides/ui-build/static/admin/_next/static/chunks/pages/taxonomy-905759ebe5347e99.js +1 -0
  95. fides/ui-build/static/admin/_next/static/chunks/pages/user-management/profile/{[id]-7546e00c78835823.js → [id]-86b0972ac19e5e7f.js} +1 -1
  96. fides/ui-build/static/admin/_next/static/chunks/pages/{user-management-a207e8f745c7e26b.js → user-management-a5f382a1968133f0.js} +1 -1
  97. fides/ui-build/static/admin/_next/static/css/81642473e38c67a5.css +1 -0
  98. fides/ui-build/static/admin/_next/static/css/92fc10cc7ed1aba3.css +1 -0
  99. fides/ui-build/static/admin/_next/static/css/c0c2eb63ad3e7390.css +1 -0
  100. fides/ui-build/static/admin/_next/static/css/eb46b504bb5d980d.css +1 -0
  101. fides/ui-build/static/admin/_next/static/km_rCX8IIJ2GKomVkmp34/_buildManifest.js +1 -0
  102. fides/ui-build/static/admin/add-systems/manual.html +1 -1
  103. fides/ui-build/static/admin/add-systems/multiple.html +1 -1
  104. fides/ui-build/static/admin/add-systems.html +1 -1
  105. fides/ui-build/static/admin/ant-poc.html +1 -1
  106. fides/ui-build/static/admin/consent/configure/add-vendors.html +1 -1
  107. fides/ui-build/static/admin/consent/configure.html +1 -1
  108. fides/ui-build/static/admin/consent/privacy-experience/[id].html +1 -1
  109. fides/ui-build/static/admin/consent/privacy-experience/new.html +1 -1
  110. fides/ui-build/static/admin/consent/privacy-experience.html +1 -1
  111. fides/ui-build/static/admin/consent/privacy-notices/[id].html +1 -1
  112. fides/ui-build/static/admin/consent/privacy-notices/new.html +1 -1
  113. fides/ui-build/static/admin/consent/privacy-notices.html +1 -1
  114. fides/ui-build/static/admin/consent/properties.html +1 -1
  115. fides/ui-build/static/admin/consent/reporting.html +1 -1
  116. fides/ui-build/static/admin/consent.html +1 -1
  117. fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn].html +1 -1
  118. fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn].html +1 -1
  119. fides/ui-build/static/admin/data-catalog/[systemId]/projects.html +1 -1
  120. fides/ui-build/static/admin/data-catalog/[systemId]/resources/[resourceUrn].html +1 -1
  121. fides/ui-build/static/admin/data-catalog/[systemId]/resources.html +1 -1
  122. fides/ui-build/static/admin/data-catalog.html +1 -1
  123. fides/ui-build/static/admin/data-discovery/action-center/[monitorId]/[systemId].html +1 -1
  124. fides/ui-build/static/admin/data-discovery/action-center/[monitorId].html +1 -1
  125. fides/ui-build/static/admin/data-discovery/action-center.html +1 -1
  126. fides/ui-build/static/admin/data-discovery/activity.html +1 -1
  127. fides/ui-build/static/admin/data-discovery/detection/[resourceUrn].html +1 -1
  128. fides/ui-build/static/admin/data-discovery/detection.html +1 -1
  129. fides/ui-build/static/admin/data-discovery/discovery/[resourceUrn].html +1 -1
  130. fides/ui-build/static/admin/data-discovery/discovery.html +1 -1
  131. fides/ui-build/static/admin/datamap.html +1 -1
  132. fides/ui-build/static/admin/dataset/[datasetId]/[collectionName]/[...subfieldNames].html +1 -1
  133. fides/ui-build/static/admin/dataset/[datasetId]/[collectionName].html +1 -1
  134. fides/ui-build/static/admin/dataset/[datasetId].html +1 -1
  135. fides/ui-build/static/admin/dataset/new.html +1 -1
  136. fides/ui-build/static/admin/dataset.html +1 -1
  137. fides/ui-build/static/admin/datastore-connection/[id].html +1 -1
  138. fides/ui-build/static/admin/datastore-connection/new.html +1 -1
  139. fides/ui-build/static/admin/datastore-connection.html +1 -1
  140. fides/ui-build/static/admin/images/connector-logos/okta.svg +7 -0
  141. fides/ui-build/static/admin/index.html +1 -1
  142. fides/ui-build/static/admin/integrations/[id].html +1 -1
  143. fides/ui-build/static/admin/integrations.html +1 -1
  144. fides/ui-build/static/admin/lib/fides-ext-gpp.js +1 -1
  145. fides/ui-build/static/admin/lib/fides-headless.js +1 -1
  146. fides/ui-build/static/admin/lib/fides-preview.js +1 -1
  147. fides/ui-build/static/admin/lib/fides-tcf.js +3 -3
  148. fides/ui-build/static/admin/lib/fides.js +2 -2
  149. fides/ui-build/static/admin/login/[provider].html +1 -1
  150. fides/ui-build/static/admin/login.html +1 -1
  151. fides/ui-build/static/admin/messaging/[id].html +1 -1
  152. fides/ui-build/static/admin/messaging/add-template.html +1 -1
  153. fides/ui-build/static/admin/messaging.html +1 -1
  154. fides/ui-build/static/admin/privacy-requests/[id].html +1 -1
  155. fides/ui-build/static/admin/privacy-requests/configure/messaging.html +1 -1
  156. fides/ui-build/static/admin/privacy-requests/configure/storage.html +1 -1
  157. fides/ui-build/static/admin/privacy-requests/configure.html +1 -1
  158. fides/ui-build/static/admin/privacy-requests.html +1 -1
  159. fides/ui-build/static/admin/properties/[id].html +1 -1
  160. fides/ui-build/static/admin/properties/add-property.html +1 -1
  161. fides/ui-build/static/admin/properties.html +1 -1
  162. fides/ui-build/static/admin/reporting/datamap.html +1 -1
  163. fides/ui-build/static/admin/settings/about.html +1 -1
  164. fides/ui-build/static/admin/settings/consent/[configuration_id]/[purpose_id].html +1 -1
  165. fides/ui-build/static/admin/settings/consent.html +1 -1
  166. fides/ui-build/static/admin/settings/custom-fields.html +1 -1
  167. fides/ui-build/static/admin/settings/domain-records.html +1 -1
  168. fides/ui-build/static/admin/settings/domains.html +1 -1
  169. fides/ui-build/static/admin/settings/email-templates.html +1 -1
  170. fides/ui-build/static/admin/settings/locations.html +1 -1
  171. fides/ui-build/static/admin/settings/organization.html +1 -1
  172. fides/ui-build/static/admin/settings/regulations.html +1 -1
  173. fides/ui-build/static/admin/systems/configure/[id]/test-datasets.html +1 -1
  174. fides/ui-build/static/admin/systems/configure/[id].html +1 -1
  175. fides/ui-build/static/admin/systems.html +1 -1
  176. fides/ui-build/static/admin/taxonomy.html +1 -1
  177. fides/ui-build/static/admin/user-management/new.html +1 -1
  178. fides/ui-build/static/admin/user-management/profile/[id].html +1 -1
  179. fides/ui-build/static/admin/user-management.html +1 -1
  180. fides/ui-build/static/admin/_next/static/WSibKOvTP1wQ2ioehb_pY/_buildManifest.js +0 -1
  181. fides/ui-build/static/admin/_next/static/chunks/2479-b91631f5e7ad58fe.js +0 -1
  182. fides/ui-build/static/admin/_next/static/chunks/3503-f8b68879ea28e6ee.js +0 -1
  183. fides/ui-build/static/admin/_next/static/chunks/3505-a94b641168547225.js +0 -1
  184. fides/ui-build/static/admin/_next/static/chunks/3702-95692cf4ec13e698.js +0 -1
  185. fides/ui-build/static/admin/_next/static/chunks/3855-cf98ef0345aa9cca.js +0 -1
  186. fides/ui-build/static/admin/_next/static/chunks/401-f18cd4739b98ce74.js +0 -1
  187. fides/ui-build/static/admin/_next/static/chunks/4121-6d5719d695f696ca.js +0 -1
  188. fides/ui-build/static/admin/_next/static/chunks/4481-c587763cfbc603c7.js +0 -1
  189. fides/ui-build/static/admin/_next/static/chunks/5973-6bb609a5771dfe2a.js +0 -1
  190. fides/ui-build/static/admin/_next/static/chunks/6277-70d615c50ac54e1d.js +0 -1
  191. fides/ui-build/static/admin/_next/static/chunks/6372-a91f7f83fd6d2fd2.js +0 -1
  192. fides/ui-build/static/admin/_next/static/chunks/7751-b61c0979c4f5ba79.js +0 -1
  193. fides/ui-build/static/admin/_next/static/chunks/8934-5e141988ad7c1000.js +0 -1
  194. fides/ui-build/static/admin/_next/static/chunks/9572-235d37e0b7db0257.js +0 -1
  195. fides/ui-build/static/admin/_next/static/chunks/9719-f411ae7eaf9ca1e8.js +0 -1
  196. fides/ui-build/static/admin/_next/static/chunks/9951-d8d18047e05b1df4.js +0 -1
  197. fides/ui-build/static/admin/_next/static/chunks/9965-4149f5bb9ccf2c54.js +0 -1
  198. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/manual-2b39e3d90b16c88d.js +0 -1
  199. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects-a637d57347ad4bd7.js +0 -1
  200. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]/[systemId]-d59f6f49d91c4166.js +0 -1
  201. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]-fc99be4f494946cf.js +0 -1
  202. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center-36e75ed0154c9d07.js +0 -1
  203. fides/ui-build/static/admin/_next/static/chunks/pages/integrations-750f32b5bd24542a.js +0 -1
  204. fides/ui-build/static/admin/_next/static/chunks/pages/messaging-226fdc9ccf65bf88.js +0 -1
  205. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/messaging-9103ff5824f10280.js +0 -1
  206. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/storage-ccc8829fb8e6d889.js +0 -1
  207. fides/ui-build/static/admin/_next/static/chunks/pages/reporting/datamap-4aafe0b82fe05626.js +0 -1
  208. fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent-60f6d15fa6c6b1af.js +0 -1
  209. fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields-298fa77e090bf7cb.js +0 -1
  210. fides/ui-build/static/admin/_next/static/chunks/pages/settings/domains-1c1f4f775561e528.js +0 -1
  211. fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]-3a2a18084f89dc04.js +0 -1
  212. fides/ui-build/static/admin/_next/static/chunks/pages/taxonomy-07d26364d187c7c3.js +0 -1
  213. fides/ui-build/static/admin/_next/static/css/a063d3d67fe688f6.css +0 -1
  214. {ethyca_fides-2.60.2b0.dist-info → ethyca_fides-2.61.0rc0.dist-info}/entry_points.txt +0 -0
  215. {ethyca_fides-2.60.2b0.dist-info → ethyca_fides-2.61.0rc0.dist-info}/licenses/LICENSE +0 -0
  216. {ethyca_fides-2.60.2b0.dist-info → ethyca_fides-2.61.0rc0.dist-info}/top_level.txt +0 -0
  217. /fides/ui-build/static/admin/_next/static/chunks/{1100-574adc8f50f9ef3a.js → 1100-2cf394cd4471259e.js} +0 -0
  218. /fides/ui-build/static/admin/_next/static/chunks/{69-5f2103ace46481d6.js → 69-1c5ef5d9bd62c647.js} +0 -0
  219. /fides/ui-build/static/admin/_next/static/chunks/{9327-1b672d64969cfafb.js → 9327-ff3bcfb81f5b13ff.js} +0 -0
  220. /fides/ui-build/static/admin/_next/static/chunks/pages/{ant-poc-4cad8b20c7fa422c.js → ant-poc-3a07457432d08020.js} +0 -0
  221. /fides/ui-build/static/admin/_next/static/chunks/pages/{consent-49cec8727ba462e1.js → consent-b2ccaff7cb5a7110.js} +0 -0
  222. /fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/{configure-f0fcddade8258445.js → configure-2f5d74846a0d2fb6.js} +0 -0
  223. /fides/ui-build/static/admin/_next/static/chunks/pages/settings/{about-1b1273e9eb69ac45.js → about-ce7ca2c01ea82eee.js} +0 -0
  224. /fides/ui-build/static/admin/_next/static/chunks/pages/settings/{domain-records-3b59fd523eee38fc.js → domain-records-2161d4fd1f3fe54c.js} +0 -0
  225. /fides/ui-build/static/admin/_next/static/chunks/pages/settings/{email-templates-ebb37a1ae630931a.js → email-templates-e99dc55a7a48a208.js} +0 -0
  226. /fides/ui-build/static/admin/_next/static/chunks/pages/settings/{locations-84f0c04250972998.js → locations-ed032bc98ddeb3c0.js} +0 -0
  227. /fides/ui-build/static/admin/_next/static/chunks/pages/settings/{regulations-259d0c058065e14d.js → regulations-e48815482e961fd5.js} +0 -0
  228. /fides/ui-build/static/admin/_next/static/chunks/pages/user-management/{new-65ef1bdebb679666.js → new-d23dd80cf30c4084.js} +0 -0
  229. /fides/ui-build/static/admin/_next/static/{WSibKOvTP1wQ2ioehb_pY → km_rCX8IIJ2GKomVkmp34}/_ssgManifest.js +0 -0
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (80.0.1)
2
+ Generator: setuptools (80.3.1)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py2-none-any
5
5
  Tag: py3-none-any
fides/_version.py CHANGED
@@ -8,11 +8,11 @@ import json
8
8
 
9
9
  version_json = '''
10
10
  {
11
- "date": "2025-04-29T13:17:52-0600",
11
+ "date": "2025-05-07T15:51:49-0400",
12
12
  "dirty": false,
13
13
  "error": null,
14
- "full-revisionid": "ed1a2dadaf65a3a8ea7f862c82728a938e9d187b",
15
- "version": "2.60.2b0"
14
+ "full-revisionid": "e083a3125c126b7631f00d6f2798493e6e8b9ca2",
15
+ "version": "2.61.0rc0"
16
16
  }
17
17
  ''' # END VERSION_JSON
18
18
 
@@ -0,0 +1,61 @@
1
+ """add okta to connection_types
2
+
3
+ Revision ID: d0cbfec0b2dd
4
+ Revises: c9c72b3d550b
5
+ Create Date: 2025-04-23 15:22:57.920715
6
+
7
+ """
8
+
9
+ import sqlalchemy as sa
10
+ from alembic import op
11
+ from sqlalchemy.dialects import postgresql
12
+
13
+ # revision identifiers, used by Alembic.
14
+ revision = "d0cbfec0b2dd"
15
+ down_revision = "c9c72b3d550b"
16
+ branch_labels = None
17
+ depends_on = None
18
+
19
+ type_to_handle = "okta"
20
+
21
+
22
+ def get_enum_values():
23
+ conn = op.get_bind()
24
+ result = conn.execute("SELECT unnest(enum_range(NULL::connectiontype))").fetchall()
25
+ return [row[0] for row in result]
26
+
27
+
28
+ def upgrade():
29
+ # add 'okta' to ConnectionType enum
30
+ enum_values = [f"'{value}'" for value in get_enum_values() + [type_to_handle]]
31
+ enum_values.sort() # Just to keep it fantastic
32
+
33
+ op.execute("ALTER TYPE connectiontype RENAME TO connectiontype_old")
34
+ op.execute(f"CREATE TYPE connectiontype AS ENUM ({', '.join(set(enum_values))})")
35
+ op.execute(
36
+ """
37
+ ALTER TABLE connectionconfig ALTER COLUMN connection_type TYPE connectiontype USING
38
+ connection_type::text::connectiontype
39
+ """
40
+ )
41
+ op.execute("DROP TYPE connectiontype_old")
42
+
43
+
44
+ def downgrade():
45
+ # Remove 'okta' from ConnectionType enum
46
+ enum_values = [f"'{v.strip()}'" for v in get_enum_values() if v != type_to_handle]
47
+ enum_values.sort() # Just to keep it fantastic
48
+
49
+ op.execute(
50
+ f"DELETE FROM connectionconfig WHERE connection_type IN ('{type_to_handle}')"
51
+ )
52
+ op.execute("ALTER TYPE connectiontype RENAME TO connectiontype_old")
53
+
54
+ op.execute(f"CREATE TYPE connectiontype AS ENUM ({', '.join(set(enum_values))})")
55
+ op.execute(
56
+ """
57
+ ALTER TABLE connectionconfig ALTER COLUMN connection_type TYPE connectiontype USING
58
+ connection_type::text::connectiontype
59
+ """
60
+ )
61
+ op.execute("DROP TYPE connectiontype_old")
@@ -57,6 +57,7 @@ class ConnectionType(enum.Enum):
57
57
  mongodb = "mongodb"
58
58
  mssql = "mssql"
59
59
  mysql = "mysql"
60
+ okta = "okta"
60
61
  postgres = "postgres"
61
62
  rds_mysql = "rds_mysql"
62
63
  rds_postgres = "rds_postgres"
@@ -92,6 +93,7 @@ class ConnectionType(enum.Enum):
92
93
  ConnectionType.mongodb.value: "MongoDB",
93
94
  ConnectionType.mssql.value: "Microsoft SQL Server",
94
95
  ConnectionType.mysql.value: "MySQL",
96
+ ConnectionType.okta.value: "Okta",
95
97
  ConnectionType.postgres.value: "PostgreSQL",
96
98
  ConnectionType.rds_mysql.value: "RDS MySQL",
97
99
  ConnectionType.rds_postgres.value: "RDS Postgres",
@@ -135,6 +137,7 @@ class ConnectionType(enum.Enum):
135
137
  ConnectionType.mongodb.value: SystemType.database,
136
138
  ConnectionType.mssql.value: SystemType.database,
137
139
  ConnectionType.mysql.value: SystemType.database,
140
+ ConnectionType.okta.value: SystemType.system,
138
141
  ConnectionType.postgres.value: SystemType.database,
139
142
  ConnectionType.rds_mysql.value: SystemType.database,
140
143
  ConnectionType.rds_postgres.value: SystemType.database,
@@ -8,6 +8,7 @@ from pydantic import ConfigDict, Field, SerializeAsAny, field_validator, model_v
8
8
  from fides.api.custom_types import AnyHttpUrlStringRemovesSlash, URLOriginString
9
9
  from fides.api.schemas.base_class import FidesSchema
10
10
  from fides.api.schemas.messaging.messaging import MessagingServiceType
11
+ from fides.config.admin_ui_settings import ErrorNotificationMode
11
12
 
12
13
 
13
14
  class StorageTypeApiAccepted(Enum):
@@ -67,6 +68,9 @@ class ExecutionApplicationConfig(FidesSchema):
67
68
  class AdminUIConfig(FidesSchema):
68
69
  enabled: Optional[bool] = None
69
70
  url: SerializeAsAny[Optional[AnyHttpUrlStringRemovesSlash]] = None
71
+ error_notification_mode: Optional[ErrorNotificationMode] = (
72
+ ErrorNotificationMode.CONSOLE_ONLY
73
+ )
70
74
 
71
75
  model_config = ConfigDict(extra="forbid")
72
76
 
@@ -92,6 +92,12 @@ from fides.api.schemas.connection_configuration.connection_secrets_mysql import
92
92
  from fides.api.schemas.connection_configuration.connection_secrets_mysql import (
93
93
  MySQLSchema as MySQLSchema,
94
94
  )
95
+ from fides.api.schemas.connection_configuration.connection_secrets_okta import (
96
+ OktaDocsSchema as OktaDocsSchema,
97
+ )
98
+ from fides.api.schemas.connection_configuration.connection_secrets_okta import (
99
+ OktaSchema as OktaSchema,
100
+ )
95
101
  from fides.api.schemas.connection_configuration.connection_secrets_postgres import (
96
102
  PostgreSQLDocsSchema as PostgreSQLDocsSchema,
97
103
  )
@@ -172,6 +178,7 @@ secrets_schemas: Dict[str, Any] = {
172
178
  ConnectionType.mariadb.value: MariaDBSchema,
173
179
  ConnectionType.mongodb.value: MongoDBSchema,
174
180
  ConnectionType.mssql.value: MicrosoftSQLServerSchema,
181
+ ConnectionType.okta.value: OktaSchema,
175
182
  ConnectionType.mysql.value: MySQLSchema,
176
183
  ConnectionType.postgres.value: PostgreSQLSchema,
177
184
  ConnectionType.rds_mysql.value: RDSMySQLSchema,
@@ -231,9 +238,10 @@ connection_secrets_schemas = Union[
231
238
  MongoDBDocsSchema,
232
239
  MSSQLDocsSchema,
233
240
  MySQLDocsSchema,
241
+ OktaDocsSchema,
242
+ PostgreSQLDocsSchema,
234
243
  RDSMySQLDocsSchema,
235
244
  RDSPostgresDocsSchema,
236
- PostgreSQLDocsSchema,
237
245
  RedshiftDocsSchema,
238
246
  S3DocsSchema,
239
247
  SaaSSchema,
@@ -13,6 +13,7 @@ class MySQLSSLMode(str, Enum):
13
13
  preferred = "preferred"
14
14
  required = "required"
15
15
  disabled = "disabled"
16
+ none = ""
16
17
 
17
18
 
18
19
  class MySQLSchema(ConnectionConfigSecretsSchema):
@@ -50,7 +51,7 @@ class MySQLSchema(ConnectionConfigSecretsSchema):
50
51
  ssl_mode: Optional[MySQLSSLMode] = Field(
51
52
  None, # TODO: support for verify-ca and verify-full
52
53
  title="SSL Mode",
53
- description="The SSL mode to use for the connection. Valid values are 'required', 'preferred', and 'disabled'.",
54
+ description="The SSL mode to use for the connection. Accepted values are: 'required', 'preferred', 'disabled', or an empty value.",
54
55
  )
55
56
 
56
57
  _required_components: ClassVar[List[str]] = ["host", "dbname"]
@@ -0,0 +1,28 @@
1
+ from typing import ClassVar, List
2
+
3
+ from pydantic import Field
4
+
5
+ from fides.api.schemas.base_class import NoValidationSchema
6
+ from fides.api.schemas.connection_configuration.connection_secrets import (
7
+ ConnectionConfigSecretsSchema,
8
+ )
9
+
10
+
11
+ class OktaSchema(ConnectionConfigSecretsSchema):
12
+ """Schema to validate the secrets needed to connect to Okta"""
13
+
14
+ org_url: str = Field(
15
+ title="Organization URL",
16
+ description="The URL of your Okta organization (e.g. https://your-org.okta.com)",
17
+ )
18
+ api_token: str = Field(
19
+ title="API Token",
20
+ description="The API token used to authenticate with Okta",
21
+ json_schema_extra={"sensitive": True},
22
+ )
23
+
24
+ _required_components: ClassVar[List[str]] = ["org_url", "api_token"]
25
+
26
+
27
+ class OktaDocsSchema(OktaSchema, NoValidationSchema):
28
+ """Okta Secrets Schema for API Docs"""
@@ -7,4 +7,5 @@ class SystemType(Enum):
7
7
  email = "email"
8
8
  manual = "manual"
9
9
  saas = "saas"
10
+ system = "system"
10
11
  website = "website"
@@ -54,6 +54,7 @@ from fides.api.service.connectors.mongodb_connector import (
54
54
  from fides.api.service.connectors.mysql_connector import (
55
55
  MySQLConnector as MySQLConnector,
56
56
  )
57
+ from fides.api.service.connectors.okta_connector import OktaConnector as OktaConnector
57
58
  from fides.api.service.connectors.postgres_connector import (
58
59
  PostgreSQLConnector as PostgreSQLConnector,
59
60
  )
@@ -96,6 +97,7 @@ supported_connectors: Dict[str, Any] = {
96
97
  ConnectionType.mongodb.value: MongoDBConnector,
97
98
  ConnectionType.mssql.value: MicrosoftSQLServerConnector,
98
99
  ConnectionType.mysql.value: MySQLConnector,
100
+ ConnectionType.okta.value: OktaConnector,
99
101
  ConnectionType.postgres.value: PostgreSQLConnector,
100
102
  ConnectionType.rds_mysql.value: RDSMySQLConnector,
101
103
  ConnectionType.rds_postgres.value: RDSPostgresConnector,
@@ -84,12 +84,17 @@ class MySQLConnector(SQLConnector):
84
84
 
85
85
  def get_connect_args(self) -> Dict[str, Dict[str, MySQLSSLMode]]:
86
86
  """Get connection arguments for the engine"""
87
+
88
+ connect_args = {}
89
+
87
90
  ssl_mode = self.configuration.secrets.get("ssl_mode", MySQLSSLMode.preferred)
88
- return {
89
- "ssl": {
90
- "mode": ssl_mode,
91
- }
92
- }
91
+
92
+ # if SSL mode was assigned in the connector configuration
93
+ # otherwise connect_args remains empty
94
+ if ssl_mode:
95
+ connect_args["ssl"] = {"mode": ssl_mode}
96
+
97
+ return connect_args
93
98
 
94
99
  @staticmethod
95
100
  def cursor_result_to_rows(results: LegacyCursorResult) -> List[Row]:
@@ -0,0 +1,91 @@
1
+ from typing import Any, Dict, List, Optional
2
+
3
+ from okta.client import Client as OktaClient
4
+ from okta.exceptions import OktaAPIException
5
+
6
+ from fides.api.common_exceptions import ConnectionException
7
+ from fides.api.graph.execution import ExecutionNode
8
+ from fides.api.models.connectionconfig import ConnectionTestStatus
9
+ from fides.api.models.policy import Policy
10
+ from fides.api.models.privacy_request import PrivacyRequest, RequestTask
11
+ from fides.api.service.connectors.base_connector import BaseConnector
12
+ from fides.api.service.connectors.query_configs.query_config import QueryConfig
13
+ from fides.api.util.collection_util import Row
14
+ from fides.api.util.wrappers import sync
15
+
16
+
17
+ class OktaConnector(BaseConnector):
18
+ """
19
+ Okta connector for integrating with Okta's API.
20
+ This connector allows for user management and authentication operations.
21
+ """
22
+
23
+ @property
24
+ def dsr_supported(self) -> bool:
25
+ return False
26
+
27
+ def create_client(self) -> OktaClient:
28
+ """Creates and returns an Okta client instance"""
29
+ try:
30
+ return OktaClient(
31
+ {
32
+ "orgUrl": self.configuration.secrets["org_url"],
33
+ "token": self.configuration.secrets["api_token"],
34
+ "raiseException": True,
35
+ }
36
+ )
37
+ except Exception as e:
38
+ raise ConnectionException(f"Failed to create Okta client: {str(e)}")
39
+
40
+ def query_config(self, node: ExecutionNode) -> QueryConfig[Any]:
41
+ """Return the query config that corresponds to this connector type"""
42
+ raise NotImplementedError("Query config not implemented for Okta")
43
+
44
+ def test_connection(self) -> Optional[ConnectionTestStatus]:
45
+ """
46
+ Validates the connection to Okta by attempting to list users.
47
+ """
48
+ try:
49
+ self._list_applications()
50
+ return ConnectionTestStatus.succeeded
51
+ except OktaAPIException as e:
52
+ error = e.args[0]
53
+ raise ConnectionException(
54
+ f"Failed to connect to Okta: {error['errorSummary']}"
55
+ )
56
+ except Exception as e:
57
+ raise ConnectionException(
58
+ f"Unexpected error testing Okta connection: {str(e)}"
59
+ )
60
+
61
+ @sync
62
+ async def _list_applications(self) -> List[Dict[str, Any]]:
63
+ """List all applications in Okta"""
64
+ client = self.client()
65
+ return await client.list_applications()
66
+
67
+ def retrieve_data(
68
+ self,
69
+ node: ExecutionNode,
70
+ policy: Policy,
71
+ privacy_request: PrivacyRequest,
72
+ request_task: RequestTask,
73
+ input_data: Dict[str, List[Any]],
74
+ ) -> List[Row]:
75
+ """DSR execution not supported for Okta connector"""
76
+ return []
77
+
78
+ def mask_data(
79
+ self,
80
+ node: ExecutionNode,
81
+ policy: Policy,
82
+ privacy_request: PrivacyRequest,
83
+ request_task: RequestTask,
84
+ rows: List[Row],
85
+ ) -> int:
86
+ """DSR execution not supported for Okta connector"""
87
+ return 0
88
+
89
+ def close(self) -> None:
90
+ """Close any held resources"""
91
+ # No resources to close for Okta client
@@ -20,6 +20,9 @@ class WebsiteConnector(BaseConnector):
20
20
  NOTE: No DSR processing is supported for Website connectors.
21
21
  """
22
22
 
23
+ def dsr_supported(self) -> bool:
24
+ return False
25
+
23
26
  def create_client(self) -> Any: # type: ignore
24
27
  """Returns a client for the website"""
25
28
 
@@ -19,6 +19,7 @@ from fides.api.service.connectors import (
19
19
  MicrosoftSQLServerConnector,
20
20
  MongoDBConnector,
21
21
  MySQLConnector,
22
+ OktaConnector,
22
23
  PostgreSQLConnector,
23
24
  RedshiftConnector,
24
25
  SaaSConnector,
@@ -60,6 +61,8 @@ class Connections:
60
61
  return MongoDBConnector(connection_config)
61
62
  if connection_config.connection_type == ConnectionType.mysql:
62
63
  return MySQLConnector(connection_config)
64
+ if connection_config.connection_type == ConnectionType.okta:
65
+ return OktaConnector(connection_config)
63
66
  if connection_config.connection_type == ConnectionType.snowflake:
64
67
  return SnowflakeConnector(connection_config)
65
68
  if connection_config.connection_type == ConnectionType.redshift:
fides/api/ui.py CHANGED
@@ -71,11 +71,11 @@ def generate_route_file_map(ui_directory: Union[str, Path]) -> Dict[re.Pattern,
71
71
  if not ui_path.exists():
72
72
  return {}
73
73
 
74
- exact_pattern = r"\[[a-zA-Z]+\]"
75
- nested_pattern = r"\[...[a-zA-Z]+\]"
74
+ exact_pattern = r"\[[a-zA-Z.[\]]+\]"
75
+ nested_pattern = r"\[...[a-zA-Z.[\]]+\]"
76
76
 
77
- exact_pattern_replacement = r"[a-zA-Z10-9-_]+"
78
- nested_pattern_replacement = r"[a-zA-Z10-9-_/]+"
77
+ exact_pattern_replacement = r"[a-zA-Z10-9-_.[\]]+"
78
+ nested_pattern_replacement = r"[a-zA-Z10-9-_.[\]/]+"
79
79
 
80
80
  route_file_map = {}
81
81
 
@@ -1,3 +1,4 @@
1
+ from enum import Enum
1
2
  from typing import Optional
2
3
 
3
4
  from pydantic import Field, SerializeAsAny
@@ -8,6 +9,11 @@ from fides.api.custom_types import AnyHttpUrlStringRemovesSlash
8
9
  from .fides_settings import FidesSettings
9
10
 
10
11
 
12
+ class ErrorNotificationMode(str, Enum):
13
+ CONSOLE_ONLY = "console_only"
14
+ TOAST = "toast"
15
+
16
+
11
17
  class AdminUISettings(FidesSettings):
12
18
  """Configuration settings for the Admin UI."""
13
19
 
@@ -21,4 +27,8 @@ class AdminUISettings(FidesSettings):
21
27
  default=100000,
22
28
  description="The maximum number of rows permitted to be returned in a privacy request report download",
23
29
  )
30
+ error_notification_mode: Optional[str] = Field(
31
+ default=ErrorNotificationMode.CONSOLE_ONLY.value,
32
+ description="This setting controls how errors are notified to users.",
33
+ )
24
34
  model_config = SettingsConfigDict(env_prefix="FIDES__ADMIN_UI__")
fides/config/utils.py CHANGED
@@ -66,5 +66,5 @@ CONFIG_KEY_ALLOWLIST = {
66
66
  "active_default_storage_type",
67
67
  ],
68
68
  "consent": ["override_vendor_purposes"],
69
- "admin_ui": ["enabled", "url"],
69
+ "admin_ui": ["enabled", "url", "error_notification_mode"],
70
70
  }
@@ -1 +1 @@
1
- <!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link data-next-font="" rel="preconnect" href="/" crossorigin="anonymous"/><link rel="preload" href="/_next/static/css/a063d3d67fe688f6.css" as="style"/><link rel="stylesheet" href="/_next/static/css/a063d3d67fe688f6.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-ebb8d3b45b871241.js" defer=""></script><script src="/_next/static/chunks/framework-c92fc3344e6fd165.js" defer=""></script><script src="/_next/static/chunks/main-090643377c8254e6.js" defer=""></script><script src="/_next/static/chunks/pages/_app-e2f86c400e5d4c5d.js" defer=""></script><script src="/_next/static/chunks/pages/404-599d88e7bb11c133.js" defer=""></script><script src="/_next/static/WSibKOvTP1wQ2ioehb_pY/_buildManifest.js" defer=""></script><script src="/_next/static/WSibKOvTP1wQ2ioehb_pY/_ssgManifest.js" defer=""></script><style>.data-ant-cssinjs-cache-path{content:"";}</style></head><body><div id="__next"><div style="height:100%;display:flex"></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/404","query":{},"buildId":"WSibKOvTP1wQ2ioehb_pY","nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
1
+ <!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link data-next-font="" rel="preconnect" href="/" crossorigin="anonymous"/><link rel="preload" href="/_next/static/css/c0c2eb63ad3e7390.css" as="style"/><link rel="stylesheet" href="/_next/static/css/c0c2eb63ad3e7390.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-ebb8d3b45b871241.js" defer=""></script><script src="/_next/static/chunks/framework-c92fc3344e6fd165.js" defer=""></script><script src="/_next/static/chunks/main-090643377c8254e6.js" defer=""></script><script src="/_next/static/chunks/pages/_app-de6a48147414d9c5.js" defer=""></script><script src="/_next/static/chunks/pages/404-599d88e7bb11c133.js" defer=""></script><script src="/_next/static/km_rCX8IIJ2GKomVkmp34/_buildManifest.js" defer=""></script><script src="/_next/static/km_rCX8IIJ2GKomVkmp34/_ssgManifest.js" defer=""></script><style>.data-ant-cssinjs-cache-path{content:"";}</style></head><body><div id="__next"><div style="height:100%;display:flex"></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/404","query":{},"buildId":"km_rCX8IIJ2GKomVkmp34","nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1099],{95372:function(e){e.exports=function(e,t,n,a){for(var i=e.length,r=n+(a?1:-1);a?r--:++r<i;)if(t(e[r],r,e))return r;return -1}},56632:function(e,t,n){var a=n(89278),i=n(80068),r=n(50098);e.exports=function(e){return function(t,n,o){var s=Object(t);if(!i(t)){var l=a(n,3);t=r(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 a=n(56632)(n(66259));e.exports=a},66259:function(e,t,n){var a=n(95372),i=n(89278),r=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:r(n);return l<0&&(l=o(s+l,0)),a(e,i(t,3),l)}},94919:function(e,t,n){var a=n(91936),i=1/0;e.exports=function(e){return e?(e=a(e))===i||e===-i?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}},47991:function(e,t,n){var a=n(94919);e.exports=function(e){var t=a(e),n=t%1;return t==t?n?t-n:t:0}},12627:function(e,t,n){"use strict";var a=n(24246),i=n(79283),r=n(34929);t.Z=e=>{let{selectedTaxonomies:t,showDisabled:n=!1,...o}=e,{getDataCategoryDisplayNameProps:s,getDataCategories:l}=(0,r.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,a.jsx)(i.l,{options:c,...o})}},79283:function(e,t,n){"use strict";n.d(t,{l:function(){return l}});var a=n(24246),i=n(91942),r=n(72707),o=n.n(r);let s=e=>{let{data:t}=e;return(0,a.jsxs)(i.jqI,{gap:12,title:"".concat(t.primaryName||"").concat(t.primaryName?": ":"").concat(t.name," - ").concat(t.description),children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("strong",{children:t.primaryName||t.name}),t.primaryName&&": ".concat(t.name)]}),(0,a.jsx)("em",{children:t.description})]})},l=e=>{let{options:t,...n}=e,r=null==t?void 0:t.map(e=>({...e,className:o().option}));return(0,a.jsx)(i.WPr,{options:r,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 a=n(24246),i=n(64925),r=n.n(i),o=n(27378),s=n(16134),l=n(30002),c=n(28079),d=n(57072);let u=()=>{let{isLoading:e}=(0,c.fd)(),t=(0,s.C)(c.U3),{isLoading:n}=(0,d.MO)(),a=(0,s.C)(d.qb),{isLoading:i}=(0,l.te)();return{dataUses:t,dataSubjects:(0,s.C)(l.ZL),dataCategories:a,isLoading:e||n||i}};t.Z=()=>{let{dataUses:e,dataCategories:t,dataSubjects:n,isLoading:i}=u(),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,a=t(e);if(!a)return{};let i=t(s(e,n)),r=!!a.parent_key;return{name:a.name||void 0,primaryName:r&&(null==i?void 0:i.name)!==a.name&&(null==i?void 0:i.name)||void 0}},c=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,{name:i,primaryName:r}=l(e,t,n);return i?r?(0,a.jsxs)(o.Fragment,{children:[(0,a.jsxs)("strong",{children:[r,":"]})," ",i]},e):(0,a.jsx)("strong",{children:i},e):e},d=t=>r()(e,{fides_key:t}),f=e=>r()(t,{fides_key:e}),g=e=>r()(n,{fides_key:e});return{getDataUses:()=>e,getDataUseByKey:d,getDataUseDisplayName:e=>c(e,d,1),getDataUseDisplayNameProps:e=>l(e,d,1),getDataCategories:()=>t,getDataCategoryByKey:f,getDataCategoryDisplayName:e=>c(e,f,2),getDataCategoryDisplayNameProps:e=>l(e,f,2),getDataSubjects:()=>n,getDataSubjectByKey:g,getDataSubjectDisplayName:e=>{let t=g(e);return t?t.name:e},getPrimaryKey:s,isLoading:i}}},61099:function(e,t,n){"use strict";var a=n(24246),i=n(91942),r=n(27378),o=n(12627),s=n(34929),l=n(26183),c=n(70675);t.Z=e=>{var t,n,d;let{resource:u}=e,[f,g]=(0,r.useState)(!1),{getDataCategoryDisplayName:p}=(0,s.Z)(),[m]=(0,c.NA)(),v=(null===(t=u.classifications)||void 0===t?void 0:t.length)?u.classifications[0].label:null,x=null!==(d=u.user_assigned_data_categories)&&void 0!==d?d:[],h=!v&&!(null==x?void 0:x.length),_=null===(n=u.sub_field_urns)||void 0===n?void 0:n.length,j=e=>{m({staged_resource_urn:u.urn,monitor_config_id:u.monitor_config_id,user_assigned_data_categories:[...x,e]})},y=e=>{var t;m({staged_resource_urn:u.urn,monitor_config_id:u.monitor_config_id,user_assigned_data_categories:null!==(t=null==x?void 0:x.filter(t=>t!==e))&&void 0!==t?t:[]})},b=!f&&!!x.length,N=!f&&!!v&&!x.length;return(0,a.jsxs)(l.Z,{"data-testid":"edit-category-cell",children:[h&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.j8w,{"data-testid":"no-classifications",color:"white",children:"None"}),!_&&(0,a.jsx)(i.j8w,{onClick:()=>g(!0),addable:!0,"data-testid":"taxonomy-add-btn","aria-label":"Add category"})]}),b&&(0,a.jsxs)(a.Fragment,{children:[x.map(e=>(0,a.jsx)(i.j8w,{"data-testid":"user-classification-".concat(e),color:"white",closable:!0,onClose:()=>y(e),closeButtonLabel:"Remove category",children:p(e)},e)),(0,a.jsx)(i.j8w,{onClick:()=>g(!0),addable:!0,"data-testid":"taxonomy-add-btn","aria-label":"Add category"})]}),N&&(0,a.jsxs)(i.j8w,{onClick:()=>g(!0),color:"white","data-testid":"classification-".concat(v),hasSparkle:!0,children:[p(v),(0,a.jsx)(i.PJP.I8b,{size:10})]}),f&&(0,a.jsx)(i.xuv,{className:"select-wrapper",position:"absolute",zIndex:10,top:"0",left:"0",width:"100%",height:"max",bgColor:"#fff",children:(0,a.jsx)(o.Z,{selectedTaxonomies:x,onChange:e=>{g(!1),j(e)},onBlur:()=>g(!1),open:!0})})]})}},26183:function(e,t,n){"use strict";var a=n(24246);n(27378),t.Z=e=>{let{children:t,className:n,...i}=e;return(0,a.jsx)("div",{className:"relative flex w-full flex-wrap items-center gap-2 overflow-x-auto py-2 ".concat(n||""),...i,children:t})}},72707:function(e){e.exports={option:"TaxonomySelect_option__vY6v2"}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1327],{66379:function(t,e,r){var s=r(24246),i=r(91942),n=r(7617);e.Z=t=>{let{data:e,border:r="partial",borderWidth:o=2,...a}=t;return(0,s.jsx)(i.mQc,{colorScheme:"complimentary",...a,children:(0,s.jsx)(i.tdY,{width:"partial"===r?"max-content":void 0,borderBottomWidth:o,children:e.map(t=>(0,s.jsx)(n.q,{label:t.label,"data-testid":t.label,isDisabled:t.isDisabled,fontSize:a.fontSize},t.label))})})}},35287:function(t,e,r){var s=r(24246),i=r(91942),n=r(88038),o=r.n(n);r(27378),e.Z=t=>{let{children:e,title:r,mainProps:n}=t;return(0,s.jsxs)(i.kCb,{"data-testid":r,direction:"column",height:"calc(100vh - 48px)",width:"calc(100vw - 240px)",children:[(0,s.jsxs)(o(),{children:[(0,s.jsxs)("title",{children:["Fides Admin UI - ",r]}),(0,s.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,s.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,s.jsx)(i.kCb,{px:10,py:6,as:"main",overflow:"auto",direction:"column",flex:1,minWidth:0,...n,children:e})]})}},58754:function(t,e,r){var s=r(24246),i=r(91942),n=r(70788);e.Z=t=>{let{heading:e,breadcrumbItems:r,isSticky:o=!0,children:a,rightContent:u,style:l,...d}=t;return(0,s.jsxs)("div",{...d,style:o?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...l}:{paddingBottom:"24px",...l},children:[(0,s.jsxs)(i.jqI,{justify:"space-between",children:["string"==typeof e?(0,s.jsx)(i.lQT,{className:r||a?"pb-4":void 0,level:1,"data-testid":"page-heading",children:e}):e,u&&(0,s.jsx)("div",{"data-testid":"page-header-right-content",children:u})]}),!!r&&(0,s.jsx)(n.m,{className:a?"pb-4":void 0,items:r,"data-testid":"page-breadcrumb"}),a]})}},70788:function(t,e,r){r.d(e,{m:function(){return l}});var s=r(24246),i=r(91942),n=r(79894),o=r.n(n),a=r(27378);let{Text:u}=i.AntTypography,l=t=>{let{items:e,...r}=t,n=(0,a.useMemo)(()=>null==e?void 0:e.map((t,r)=>{let n=r===e.length-1,a={...t},l=a.onClick&&!a.href;return("string"==typeof a.title&&(a.title=(0,s.jsx)(u,{style:{color:"inherit",maxWidth:n?void 0:400},ellipsis:!n,children:a.title})),l)?a.title=(0,s.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,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"anticon align-text-bottom",children:a.icon}),a.title]})),a.href&&a.title&&(a.title=(0,s.jsx)(o(),{href:a.href,className:"ant-breadcrumb-link",children:a.title}),delete a.href)),a}),[e]);return(0,s.jsx)(i.zrq,{items:n,...r})}},37059:function(t,e,r){r.d(e,{Ak:function(){return h},EY:function(){return c},Tj:function(){return p},Ud:function(){return o},Vr:function(){return y},WJ:function(){return u},nP:function(){return d},nS:function(){return m},rs:function(){return l},sX:function(){return v},wi:function(){return a}});var s=r(78780),i=r(16394),n=r(35194);let{useGetAggregateMonitorResultsQuery:o,useGetDiscoveredSystemAggregateQuery:a,useGetDiscoveredAssetsQuery:u,useAddMonitorResultSystemsMutation:l,useIgnoreMonitorResultSystemsMutation:d,useAddMonitorResultAssetsMutation:c,useIgnoreMonitorResultAssetsMutation:m,useRestoreMonitorResultAssetsMutation:p,useUpdateAssetsSystemMutation:v,useUpdateAssetsDataUseMutation:h,useUpdateAssetsMutation:y}=s.u.injectEndpoints({endpoints:t=>({getAggregateMonitorResults:t.query({query:t=>{let{page:e=1,size:r=20,search:s}=t;return{url:"/plus/discovery-monitor/aggregate-results",params:{page:e,size:r,search:s,diff_status:"addition"}}},providesTags:["Discovery Monitor Results"]}),getDiscoveredSystemAggregate:t.query({query:t=>{let{key:e,page:r=1,size:s=20,search:i,diff_status:n}=t;return{url:"/plus/discovery-monitor/system-aggregate-results",params:{monitor_config_id:e,page:r,size:s,search:i,diff_status:n}}},providesTags:["Discovery Monitor Results"]}),getDiscoveredAssets:t.query({query:t=>{let{key:e,system:r,page:s=1,size:i=20,search:n,diff_status:o}=t;return{url:"/plus/discovery-monitor/".concat(e,"/results"),params:{resolved_system_id:r,page:s,size:i,search:n,diff_status:o,sort_by:"urn"}}},providesTags:()=>["Discovery Monitor Results"]}),addMonitorResultSystems:t.mutation({query:t=>{let{monitor_config_key:e,resolved_system_ids:r}=t,s=(0,i.du)(r,"resolved_system_ids");return{method:"POST",url:"/plus/discovery-monitor/".concat(e,"/promote?").concat(s)}},invalidatesTags:["Discovery Monitor Results"]}),ignoreMonitorResultSystems:t.mutation({query:t=>{let{monitor_config_key:e,resolved_system_ids:r}=t,s=(0,i.du)(r,"resolved_system_ids");return{method:"POST",url:"/plus/discovery-monitor/".concat(e,"/mute?").concat(s)}},invalidatesTags:["Discovery Monitor Results"]}),addMonitorResultAssets:t.mutation({query:t=>{var e;let r=new URLSearchParams;return null===(e=t.urnList)||void 0===e||e.forEach(t=>r.append("staged_resource_urns",t)),{method:"POST",url:"/plus/discovery-monitor/promote?".concat(r)}},invalidatesTags:["Discovery Monitor Results"]}),ignoreMonitorResultAssets:t.mutation({query:t=>{var e;let r=new URLSearchParams;return null===(e=t.urnList)||void 0===e||e.forEach(t=>r.append("staged_resource_urns",t)),{method:"POST",url:"/plus/discovery-monitor/mute?".concat(r)}},invalidatesTags:["Discovery Monitor Results"]}),restoreMonitorResultAssets:t.mutation({query:t=>{var e;let r=new URLSearchParams({status_to_set:n.LL.ADDITION});return null===(e=t.urnList)||void 0===e||e.forEach(t=>r.append("staged_resource_urns",t)),{method:"POST",url:"/plus/discovery-monitor/un-mute?".concat(r)}},invalidatesTags:["Discovery Monitor Results"]}),updateAssetsSystem:t.mutation({query:t=>({method:"PATCH",url:"/plus/discovery-monitor/".concat(t.monitorId,"/results"),body:t.urnList.map(e=>({urn:e,user_assigned_system_key:t.systemKey}))}),invalidatesTags:["Discovery Monitor Results","System Assets"]}),updateAssetsDataUse:t.mutation({query:t=>({method:"PATCH",url:"/plus/discovery-monitor/".concat(t.monitorId,"/results"),body:t.urnList.map(e=>({urn:e,user_assigned_data_uses:t.dataUses}))}),invalidatesTags:["Discovery Monitor Results"]}),updateAssets:t.mutation({query:t=>({method:"PATCH",url:"/plus/discovery-monitor/".concat(t.monitorId,"/results"),body:t.assets}),invalidatesTags:["Discovery Monitor Results"]})})})},90057:function(t,e,r){r.d(e,{T:function(){return l}});var s=r(86677),i=r(27378),n=r(35194);let o={ATTENTION_REQUIRED:{index:0,hash:"#attention-required"},RECENT_ACTIVITY:{index:1,hash:"#recent-activity"},IGNORED:{index:2,hash:"#ignored"}},a=t=>{let e=t.startsWith("#")?t:"#".concat(t);return Object.values(o).find(t=>t.hash===e)},u=t=>Object.values(o).find(e=>e.index===t),l=t=>{var e;return null===(e=a(t))||void 0===e?void 0:e.index};e.Z=t=>{var e;let{systemId:r,initialHash:l}=t,d=(0,s.useRouter)(),[c,m]=(0,i.useState)(l?null===(e=a(l))||void 0===e?void 0:e.index:o.ATTENTION_REQUIRED.index),p=(0,i.useCallback)(async t=>{if(m(t),d.isReady){let e=u(t);if(e){let t={...d.query};await d.replace({pathname:d.pathname,query:t,hash:e.hash},void 0,{shallow:!0})}}},[d]),v=[{label:"Attention required",params:{diff_status:[n.LL.ADDITION],system:r}},{label:"Recent activity",params:{diff_status:[n.LL.MONITORED]}},{label:"Ignored",params:{diff_status:[n.LL.MUTED],system:r}}],{diff_status:h,system:y}=v[c].params,g=h.includes(n.LL.MONITORED);return{filterTabs:v,filterTabIndex:c,onTabChange:p,activeParams:r?{diff_status:h,system:y}:{diff_status:h},actionsDisabled:g}}},78238:function(t,e,r){r.d(e,{g:function(){return s}});let s=["essential","functional.service.improve","personalize","analytics","marketing.advertising.first_party.targeted","marketing.advertising.third_party.targeted"];e.Z=t=>s.includes(t)},96107:function(t,e,r){r.d(e,{u:function(){return n}});var s=r(24246),i=r(26089);let n=(t,e)=>(0,s.jsxs)(s.Fragment,{children:[t," ",e&&(0,s.jsx)(i.Z,{onClick:e,children:"View"})]})},31883:function(t,e,r){r.d(e,{Bw:function(){return s.Bw},D4:function(){return s.D4}});var s=r(19043)}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1817],{11817:function(e,n,i){i.d(n,{Z:function(){return U}});var t=i(24246),o=i(91942),a=i(34090),l=i(86677),r=i(27378),s=i(55484),d=i(16134),c=i(812);let p=(0,o.IUT)({displayName:"DesktopIcon",viewBox:"0 0 24 24",path:(0,t.jsx)("path",{fill:"currentColor",d:"M20.5556 4.05556H3.44444C3.10833 4.05556 2.83333 4.33056 2.83333 4.66667V12H21.1667V4.66667C21.1667 4.33056 20.8917 4.05556 20.5556 4.05556ZM23 12V13.8333V15.6667C23 17.0149 21.9038 18.1111 20.5556 18.1111H14.9142L15.2198 19.9445H17.1944C17.7024 19.9445 18.1111 20.3531 18.1111 20.8611C18.1111 21.3691 17.7024 21.7778 17.1944 21.7778H14.4444H9.55556H6.80556C6.29757 21.7778 5.88889 21.3691 5.88889 20.8611C5.88889 20.3531 6.29757 19.9445 6.80556 19.9445H8.78021L9.08576 18.1111H3.44444C2.09618 18.1111 1 17.0149 1 15.6667V13.8333V12V4.66667C1 3.31841 2.09618 2.22223 3.44444 2.22223H20.5556C21.9038 2.22223 23 3.31841 23 4.66667V12ZM2.83333 13.8333V15.6667C2.83333 16.0028 3.10833 16.2778 3.44444 16.2778H10.1476C10.159 16.2778 10.1705 16.2778 10.1781 16.2778H13.8142C13.8257 16.2778 13.8372 16.2778 13.8448 16.2778H20.5556C20.8917 16.2778 21.1667 16.0028 21.1667 15.6667V13.8333H2.83333ZM10.6365 19.9445H13.3597L13.0542 18.1111H10.942L10.6365 19.9445Z"})}),u=(0,o.IUT)({displayName:"MobileIcon",viewBox:"0 0 24 24",path:(0,t.jsx)("path",{fill:"currentColor",d:"M6.5 20.25C6.5 20.6281 6.80938 20.9375 7.1875 20.9375H16.8125C17.1906 20.9375 17.5 20.6281 17.5 20.25V16.8125H6.5V20.25ZM6.5 14.75H17.5V3.75C17.5 3.37188 17.1906 3.0625 16.8125 3.0625H7.1875C6.80938 3.0625 6.5 3.37188 6.5 3.75V14.75ZM4.4375 3.75C4.4375 2.2332 5.6707 1 7.1875 1H16.8125C18.3293 1 19.5625 2.2332 19.5625 3.75V20.25C19.5625 21.7668 18.3293 23 16.8125 23H7.1875C5.6707 23 4.4375 21.7668 4.4375 20.25V3.75ZM12 17.8438C12.2735 17.8438 12.5358 17.9524 12.7292 18.1458C12.9226 18.3392 13.0312 18.6015 13.0312 18.875C13.0312 19.1485 12.9226 19.4108 12.7292 19.6042C12.5358 19.7976 12.2735 19.9062 12 19.9062C11.7265 19.9062 11.4642 19.7976 11.2708 19.6042C11.0774 19.4108 10.9688 19.1485 10.9688 18.875C10.9688 18.6015 11.0774 18.3392 11.2708 18.1458C11.4642 17.9524 11.7265 17.8438 12 17.8438Z"})});var v=i(77830),m=i(46628),_=i(7426),f=i(60325);let b={language:{label:"Language",validation:s.Z_()},title:{label:"Title",validation:s.Z_()},description:{label:"Description",validation:s.Z_()},accept_button_label:{label:"Accept button label",validation:s.Z_()},reject_button_label:{label:"Reject button label",validation:s.Z_()},save_button_label:{label:"Save button label",validation:s.Z_()},acknowledge_button_label:{label:"Acknowledge button label",validation:s.Z_()},privacy_policy_url:{label:"Privacy policy URL",validation:s.Z_().url()},privacy_preferences_link_label:{label:"Privacy preferences link label",validation:s.Z_()},banner_title:{label:"Banner title",validation:s.Z_()},banner_description:{label:"Banner description",validation:s.Z_()},purpose_header:{label:"Purpose header",validation:s.Z_()},privacy_policy_link_label:{label:"Privacy policy link label",validation:s.Z_()},modal_link_label:{label:"Modal link label",validation:s.Z_()},is_default:{label:"Default language",validation:s.O7()}};var g=i(34334),y=i(13083),x=i.n(y),h=i(43218),w=i.n(h),C=i(52253),j=i(32885),V=i(16643);let k={language:V.eU.EN,accept_button_label:"Accept",acknowledge_button_label:"OK",banner_description:"",banner_title:"",purpose_header:"",description:"Description",privacy_policy_link_label:"",privacy_policy_url:"",modal_link_label:"",privacy_preferences_link_label:"Privacy preferences",reject_button_label:"Reject All",save_button_label:"Save",title:"Manage your consent preferences",is_default:!0},A=e=>({...k,...e.translations?e.translations[0]:{}}),O=(e,n)=>{var i,t,o,a;let l={options:{allowHTMLDescription:!0,base64Cookie:!1,debug:!1,fidesApiUrl:"http://localhost:8080/api/v1",fidesClearCookie:!0,fidesDisableSaveApi:!0,fidesDisableNoticesServedApi:!0,fidesJsBaseUrl:"",fidesLocale:null===(t=e.translations)||void 0===t?void 0:null===(i=t[0])||void 0===i?void 0:i.language,fidesString:null,geolocationApiUrl:"",isGeolocationEnabled:!1,isOverlayEnabled:!0,isPrefetchEnabled:!1,modalLinkId:null,overlayParentId:C.Vk,preventDismissal:null!==(a=e.dismissable)&&void 0!==a&&a,privacyCenterUrl:"http://localhost:3000",showFidesBrandLink:!0},experience:{available_locales:null===(o=e.translations)||void 0===o?void 0:o.map(e=>e.language),component:e.component,experience_config:{allow_language_selection:!0,auto_detect_language:!0,auto_subdomain_cookie_deletion:!0,component:e.component,disabled:!1,dismissable:e.dismissable,id:"pri_222",is_default:!0,language:"en",layer1_button_options:V.Of.OPT_IN_OPT_OUT,properties:[],regions:["us_ca"],show_layer1_notices:!1,translations:[A(e)]},id:"pri_111",privacy_notices:n,region:"us_ca"},geolocation:{country:"US",location:"US-CA",region:"CA"}};return e.component===V.re.TCF_OVERLAY&&(l.options.fidesTcfGdprApplies=!0,l.options.tcf_enabled=!0,l.geolocation={location:"eea",country:"eea"},l.experience.experience_config.regions=["eea"],l.experience={...l.experience,region:"eea",minimal_tcf:!0,gvl:{vendors:{}},tcf_purpose_names:["Store and/or access information on a device","Use limited data to select advertising","Create profiles for personalised advertising","Use profiles to select personalised advertising","Create profiles to personalise content","Use profiles to select personalised content","Measure advertising performance","Measure content performance","Understand audiences through statistics or combinations of data from different sources","Develop and improve services","Use limited data to select content"]},l.options.apiOptions={getPrivacyExperienceFn:async()=>l.experience}),l},E=e=>{let{language:n,is_default:i,...t}=k,o=Object.keys(t).map(n=>{let i=e[n];return{[n]:void 0!==i?i:k[n]}}).reduce((e,n)=>({...e,...n}),{});return{language:e.language,is_default:e.is_default,...o}},T=(e,n,i)=>e?e.map(e=>i.find(n=>(null==n?void 0:n.id)===e)).map(e=>n===V.re.TCF_OVERLAY&&void 0!==e?{...e,translations:[{language:"en",text:null==e?void 0:e.name}]}:e).filter(e=>void 0!==e):[];var L=i(74022),Z=i(32222);let N=e=>{let{title:n,description:i}=e;return(0,t.jsx)(o.jqI,{className:"h-full items-center justify-center",children:(0,t.jsxs)(o.jqI,{className:"items-center gap-2 rounded-md p-6",style:{backgroundColor:L.Z.colors.white,boxShadow:L.Z.shadows.md,maxWidth:512},vertical:!0,"data-testid":"no-preview-notice",children:[(0,t.jsx)(o.xvT,{fontSize:"lg",fontWeight:"500",align:"center",children:n}),(0,t.jsx)(o.xvT,{color:"gray.500",align:"center",children:i})]})})};var P=e=>{var n,i;let{allPrivacyNotices:s,initialValues:d,translation:c,isMobilePreview:p}=e,u=(0,l.useRouter)().pathname.includes("/new"),{values:v}=(0,a.u6)(),[m,_]=(0,r.useState)([]),[f,b]=(0,r.useState)(!1),[g,y]=(0,r.useState)(),h=[V.re.BANNER_AND_MODAL,V.re.MODAL,V.re.TCF_OVERLAY].includes(v.component),{data:k}=(0,j.de)({pageIndex:1,pageSize:1}),A=(0,r.useMemo)(()=>(null==k?void 0:k.total)||0,[null==k?void 0:k.total]);(0,r.useEffect)(()=>{var e,n;return h&&f&&window.FidesPreview&&v.component&&((null===(e=v.privacy_notice_ids)||void 0===e?void 0:e.length)||v.component===V.re.TCF_OVERLAY)?v.component===V.re.TCF_OVERLAY?(window.FidesPreview("tcf"),y("tcf")):(window.FidesPreview("standard"),y("standard")):window.FidesPreview&&(null===(n=window.FidesPreview)||void 0===n||n.cleanup()),()=>{var e;null===(e=window.FidesPreview)||void 0===e||e.cleanup()}},[v.component,f,h,null===(n=v.privacy_notice_ids)||void 0===n?void 0:n.length,u]),(0,r.useEffect)(()=>{d&&v.component&&s&&(v.privacy_notice_ids?_(T(v.privacy_notice_ids,v.component,s)):_([]))},[v.privacy_notice_ids,s,v.component,d]);let L=(0,r.useMemo)(()=>v.component?O({...d,component:v.component},m):null,[d,m,v.component]);(0,r.useEffect)(()=>{var e,n,i,t;if(!h||!f||!window.FidesPreview||!window.Fides||!(null===(e=v.privacy_notice_ids)||void 0===e?void 0:e.length)&&v.component!==V.re.TCF_OVERLAY)return;v.component===V.re.MODAL&&(L.experience.experience_config.component=V.re.MODAL);let o=null===(n=v.translations)||void 0===n?void 0:n.find(e=>e.language===(null==c?void 0:c.language));(null===(i=v.translations)||void 0===i?void 0:i.length)&&(o?(L.experience.available_locales=[...L.experience.available_locales||[],o.language],L.experience.experience_config.translations[0]=E(o),L.options.fidesLocale=o.language):v.translations&&(L.experience.experience_config.translations[0]=E(v.translations[0]),L.options.fidesLocale=v.translations[0].language)),L.experience.experience_config.show_layer1_notices=!!(null===(t=v.privacy_notice_ids)||void 0===t?void 0:t.length)&&!!v.show_layer1_notices,L.experience.experience_config.layer1_button_options=(v.component===V.re.BANNER_AND_MODAL||v.component===V.re.TCF_OVERLAY)&&v.layer1_button_options?v.layer1_button_options:V.Of.OPT_IN_OPT_OUT,L.options.preventDismissal=!v.dismissable,L.experience.vendor_count=A,L.experience.experience_config.component=v.component,window.Fides.init(L)},[c,L,s,h,A,f,g,v.privacy_notice_ids,v.component,v.translations,v.show_layer1_notices,v.layer1_button_options,v.dismissable,d,m]);let P=document.getElementById("fides-modal");return(P&&P.removeAttribute("tabindex"),v.component)?h?(null===(i=v.privacy_notice_ids)||void 0===i?void 0:i.length)||v.component===V.re.TCF_OVERLAY?(0,t.jsxs)(o.jqI,{className:"size-full items-center justify-center overflow-scroll",children:[(0,t.jsx)(x(),{id:"4b2ec2183c5a567e",dynamic:[C.Vk,v.component!==V.re.TCF_OVERLAY?"padding-bottom: 45px;":""],children:"div#fides-overlay{z-index:5000!important}div#".concat(C.Vk,"{width:100%;padding-top:45px;").concat(v.component!==V.re.TCF_OVERLAY?"padding-bottom: 45px;":""," margin: auto;pointer-events:none}div#fides-banner-container{position:static!important;-webkit-transform:none!important;-moz-transform:none!important;-ms-transform:none!important;-o-transform:none!important;transform:none!important;-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;transition:none!important}div#fides-banner-container.fides-banner-hidden{display:none}.fides-modal-container{background-color:unset!important;position:static!important;display:none!important}.fides-modal-overlay{background-color:inherit!important;position:static!important;display:none!important}div.fides-modal-content{position:relative!important;-webkit-transform:none!important;-moz-transform:none!important;-ms-transform:none!important;-o-transform:none!important;transform:none!important;left:initial!important;top:initial!important}div.fides-modal-footer{width:unset}")}),h?(0,t.jsx)("style",{children:"div#fides-modal {\n display: flex !important;\n justify-content: center;\n background-color: unset;\n ".concat(v.component===V.re.BANNER_AND_MODAL||v.component===V.re.TCF_OVERLAY?"padding-bottom: 3rem;":"","\n }")}):null,p?(0,t.jsx)("style",{children:"\n div#fides-overlay-wrapper {\n max-width: 400px;\n margin: auto;\n }\n div.fides-modal-button-group {\n flex-direction: column !important;\n }\n div#fides-banner {\n padding: 24px;\n width: 100%;\n }\n\n div#fides-banner-description {\n margin-bottom: 0px;\n }\n\n div#fides-banner-inner div#fides-button-group {\n flex-direction: column;\n align-items: flex-start;\n gap: 12px;\n padding-top: 24px;\n }\n\n .fides-banner-button-group {\n flex-direction: column;\n width: 100%;\n }\n\n button.fides-banner-button {\n margin: 0px;\n width: 100%;\n }\n\n div#fides-banner-inner-container {\n display: flex;\n flex-direction: column;\n max-height: 50vh;\n overflow-y: auto;\n scrollbar-gutter: stable;\n }\n\n div#fides-privacy-policy-link {\n order: 1;\n width: 100%;\n }\n .fides-modal-footer {\n max-width: 100%;\n }\n .fides-banner-secondary-actions {\n flex-direction: column-reverse;\n gap: 12px;\n }\n "}):(0,t.jsx)("style",{children:"\n div#fides-banner {\n width: 60%;\n }\n @media (min-width: 768px) {\n div#fides-banner {\n width: 100%;\n }\n }\n @media (min-width: 1155px) {\n div#fides-banner {\n width: 90%;\n }\n }\n @media (min-width: 1440px) {\n div#fides-banner {\n width: 60%;\n }\n }\n "}),(0,t.jsx)(w(),{id:"fides-js-script",src:"/lib/fides-preview.js",onReady:()=>{b(!0)}}),(0,t.jsx)("div",{id:C.Vk,className:x().dynamic([["4b2ec2183c5a567e",[C.Vk,v.component!==V.re.TCF_OVERLAY?"padding-bottom: 45px;":""]]])},v.component)]}):(0,t.jsx)(N,{title:"No privacy notices added",description:'To view a preview of this experience, add a privacy notice under "Privacy Notices" to the left.'}):(0,t.jsx)(N,{title:"".concat(Z.J.get(v.component)," preview not available"),description:"There is no preview available for ".concat(Z.J.get(v.component),". You can edit the available settings\n and languages to the left.")}):(0,t.jsx)(N,{title:"No privacy experience type selected",description:"Please select a privacy experience type to preview."})},D=i(94315),M=i(5331),R=i(16277),F=i(71922),H=i(31883);let S=e=>{let n=(0,f.y3)(e),i={};return Object.entries(n).forEach(e=>{let[n,t]=e;if(t.included){let e=b[n];i[n]=t.required?e.validation.required().label(e.label):e.validation.nullable().label(e.label)}}),s.Ry().shape(i)},B=e=>{let{componentType:n}=e;return S(n)},I=s.Ry().shape({name:s.Z_().required().label("Experience name"),component:s.Z_().required().label("Experience type"),translations:s.IX().when("component",(e,n)=>{let[i]=e;return n.of(B({componentType:i}))})});var U=e=>{var n;let{passedInExperience:i,passedInTranslations:s}=e,[b]=(0,D.mJ)(),[y]=(0,D.$d)(),x=(0,o.pmc)(),[h,w]=(0,r.useState)(!1),C=(0,l.useRouter)(),{data:j}=(0,_.tB)({api_set:!1}),V=null==j?void 0:null===(n=j.plus_consent_settings)||void 0===n?void 0:n.enable_translations,k=(0,d.C)(g.Zp),A=(0,d.C)(g.G1);(0,g.Ah)({page:k,size:A});let O=(0,d.C)(g.fJ),E=(0,d.C)(F.sX),T=i?{...f.DD,...(0,f.Uv)(i)}:f.DD,L=async e=>{var n,t;let o;e.privacy_notice_ids=null===(n=e.privacy_notice_ids)||void 0===n?void 0:n.filter(e=>"tcf_purposes_placeholder"!==e),T.tcf_configuration_id&&!e.tcf_configuration_id&&(e.tcf_configuration_id=null);let a={...e,disabled:null===(t=null==i?void 0:i.disabled)||void 0===t||t,allow_language_selection:e.translations&&e.translations.length>1};if(i){let{component:e,...n}=a;o=await y({...n,id:i.id})}else o=await b(a);(0,H.D4)(o)?x((0,m.Vo)((0,c.e$)(o.error))):(x((0,m.t5)("Privacy experience successfully ".concat(i?"updated":"created"))),C.push(v.w0))},[Z,N]=(0,r.useState)(void 0),[S,B]=(0,r.useState)(!1);return(0,t.jsx)(a.J9,{initialValues:T,enableReinitialize:!0,onSubmit:L,validationSchema:I,children:(0,t.jsx)(a.l0,{style:{height:"100vh"},children:(0,t.jsxs)(o.jqI,{className:"size-full","data-testid":"privacy-experience-detail-page",children:[Z?(0,t.jsx)(R.Z,{translation:Z,translationsEnabled:V,isOOB:S,onReturnToMainForm:()=>{N(void 0),B(!1)}}):(0,t.jsx)(M.d0,{allPrivacyNotices:E,translationsEnabled:V,onSelectTranslation:e=>{N({...e,name:(0,f.Go)(e,O)})},onCreateTranslation:e=>{let n=null==s?void 0:s.find(n=>n.language===e);return n&&B(!0),null!=n?n:{language:e,is_default:!1}}}),(0,t.jsxs)(o.jqI,{vertical:!0,className:"w-full overflow-y-hidden",style:{backgroundColor:o.rSc.colors.gray[50]},children:[(0,t.jsxs)(o.jqI,{className:"flex-row items-center p-4",style:{backgroundColor:o.rSc.colors.white,borderBottom:"1px solid ".concat(o.rSc.colors.gray[100])},children:[(0,t.jsx)(o.xvT,{fontSize:"md",fontWeight:"semibold",children:"PREVIEW"}),(0,t.jsx)(o.LZC,{}),(0,t.jsxs)(o.y02.Group,{onChange:e=>w(e.target.value),defaultValue:!1,children:[(0,t.jsx)(o.y02.Button,{value:!0,title:"View mobile preview",children:(0,t.jsx)(u,{})}),(0,t.jsx)(o.y02.Button,{value:!1,title:"View desktop preview",children:(0,t.jsx)(p,{})})]})]}),(0,t.jsx)(P,{allPrivacyNotices:E,initialValues:T,translation:Z,isMobilePreview:h})]})]})})})}},32222:function(e,n,i){i.d(n,{J:function(){return t}});let t=new Map([["overlay","Overlay"],["privacy_center","Privacy center"],["tcf_overlay","TCF overlay"],["modal","Modal"],["banner_and_modal","Banner and modal"],["headless","Headless"]])},31883:function(e,n,i){i.d(n,{Bw:function(){return t.Bw},D4:function(){return t.D4}});var t=i(19043)}}]);
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1817],{11817:function(e,n,i){i.d(n,{Z:function(){return U}});var t=i(24246),o=i(91942),a=i(34090),l=i(86677),r=i(27378),s=i(55484),d=i(16134),c=i(812);let p=(0,o.IUT)({displayName:"DesktopIcon",viewBox:"0 0 24 24",path:(0,t.jsx)("path",{fill:"currentColor",d:"M20.5556 4.05556H3.44444C3.10833 4.05556 2.83333 4.33056 2.83333 4.66667V12H21.1667V4.66667C21.1667 4.33056 20.8917 4.05556 20.5556 4.05556ZM23 12V13.8333V15.6667C23 17.0149 21.9038 18.1111 20.5556 18.1111H14.9142L15.2198 19.9445H17.1944C17.7024 19.9445 18.1111 20.3531 18.1111 20.8611C18.1111 21.3691 17.7024 21.7778 17.1944 21.7778H14.4444H9.55556H6.80556C6.29757 21.7778 5.88889 21.3691 5.88889 20.8611C5.88889 20.3531 6.29757 19.9445 6.80556 19.9445H8.78021L9.08576 18.1111H3.44444C2.09618 18.1111 1 17.0149 1 15.6667V13.8333V12V4.66667C1 3.31841 2.09618 2.22223 3.44444 2.22223H20.5556C21.9038 2.22223 23 3.31841 23 4.66667V12ZM2.83333 13.8333V15.6667C2.83333 16.0028 3.10833 16.2778 3.44444 16.2778H10.1476C10.159 16.2778 10.1705 16.2778 10.1781 16.2778H13.8142C13.8257 16.2778 13.8372 16.2778 13.8448 16.2778H20.5556C20.8917 16.2778 21.1667 16.0028 21.1667 15.6667V13.8333H2.83333ZM10.6365 19.9445H13.3597L13.0542 18.1111H10.942L10.6365 19.9445Z"})}),u=(0,o.IUT)({displayName:"MobileIcon",viewBox:"0 0 24 24",path:(0,t.jsx)("path",{fill:"currentColor",d:"M6.5 20.25C6.5 20.6281 6.80938 20.9375 7.1875 20.9375H16.8125C17.1906 20.9375 17.5 20.6281 17.5 20.25V16.8125H6.5V20.25ZM6.5 14.75H17.5V3.75C17.5 3.37188 17.1906 3.0625 16.8125 3.0625H7.1875C6.80938 3.0625 6.5 3.37188 6.5 3.75V14.75ZM4.4375 3.75C4.4375 2.2332 5.6707 1 7.1875 1H16.8125C18.3293 1 19.5625 2.2332 19.5625 3.75V20.25C19.5625 21.7668 18.3293 23 16.8125 23H7.1875C5.6707 23 4.4375 21.7668 4.4375 20.25V3.75ZM12 17.8438C12.2735 17.8438 12.5358 17.9524 12.7292 18.1458C12.9226 18.3392 13.0312 18.6015 13.0312 18.875C13.0312 19.1485 12.9226 19.4108 12.7292 19.6042C12.5358 19.7976 12.2735 19.9062 12 19.9062C11.7265 19.9062 11.4642 19.7976 11.2708 19.6042C11.0774 19.4108 10.9688 19.1485 10.9688 18.875C10.9688 18.6015 11.0774 18.3392 11.2708 18.1458C11.4642 17.9524 11.7265 17.8438 12 17.8438Z"})});var v=i(77830),m=i(46628),_=i(7426),f=i(60325);let b={language:{label:"Language",validation:s.Z_()},title:{label:"Title",validation:s.Z_()},description:{label:"Description",validation:s.Z_()},accept_button_label:{label:"Accept button label",validation:s.Z_()},reject_button_label:{label:"Reject button label",validation:s.Z_()},save_button_label:{label:"Save button label",validation:s.Z_()},acknowledge_button_label:{label:"Acknowledge button label",validation:s.Z_()},privacy_policy_url:{label:"Privacy policy URL",validation:s.Z_().url()},privacy_preferences_link_label:{label:"Privacy preferences link label",validation:s.Z_()},banner_title:{label:"Banner title",validation:s.Z_()},banner_description:{label:"Banner description",validation:s.Z_()},purpose_header:{label:"Purpose header",validation:s.Z_()},privacy_policy_link_label:{label:"Privacy policy link label",validation:s.Z_()},modal_link_label:{label:"Modal link label",validation:s.Z_()},is_default:{label:"Default language",validation:s.O7()}};var g=i(34334),y=i(13083),x=i.n(y),h=i(43218),w=i.n(h),C=i(52253),j=i(32885),V=i(35194);let k={language:V.eU.EN,accept_button_label:"Accept",acknowledge_button_label:"OK",banner_description:"",banner_title:"",purpose_header:"",description:"Description",privacy_policy_link_label:"",privacy_policy_url:"",modal_link_label:"",privacy_preferences_link_label:"Privacy preferences",reject_button_label:"Reject All",save_button_label:"Save",title:"Manage your consent preferences",is_default:!0},A=e=>({...k,...e.translations?e.translations[0]:{}}),O=(e,n)=>{var i,t,o,a;let l={options:{allowHTMLDescription:!0,base64Cookie:!1,debug:!1,fidesApiUrl:"http://localhost:8080/api/v1",fidesClearCookie:!0,fidesDisableSaveApi:!0,fidesDisableNoticesServedApi:!0,fidesJsBaseUrl:"",fidesLocale:null===(t=e.translations)||void 0===t?void 0:null===(i=t[0])||void 0===i?void 0:i.language,fidesString:null,geolocationApiUrl:"",isGeolocationEnabled:!1,isOverlayEnabled:!0,isPrefetchEnabled:!1,modalLinkId:null,overlayParentId:C.Vk,preventDismissal:null!==(a=e.dismissable)&&void 0!==a&&a,privacyCenterUrl:"http://localhost:3000",showFidesBrandLink:!0},experience:{available_locales:null===(o=e.translations)||void 0===o?void 0:o.map(e=>e.language),component:e.component,experience_config:{allow_language_selection:!0,auto_detect_language:!0,auto_subdomain_cookie_deletion:!0,component:e.component,disabled:!1,dismissable:e.dismissable,id:"pri_222",is_default:!0,language:"en",layer1_button_options:V.Of.OPT_IN_OPT_OUT,properties:[],regions:["us_ca"],show_layer1_notices:!1,translations:[A(e)]},id:"pri_111",privacy_notices:n,region:"us_ca"},geolocation:{country:"US",location:"US-CA",region:"CA"}};return e.component===V.re.TCF_OVERLAY&&(l.options.fidesTcfGdprApplies=!0,l.options.tcf_enabled=!0,l.geolocation={location:"eea",country:"eea"},l.experience.experience_config.regions=["eea"],l.experience={...l.experience,region:"eea",minimal_tcf:!0,gvl:{vendors:{}},tcf_purpose_names:["Store and/or access information on a device","Use limited data to select advertising","Create profiles for personalised advertising","Use profiles to select personalised advertising","Create profiles to personalise content","Use profiles to select personalised content","Measure advertising performance","Measure content performance","Understand audiences through statistics or combinations of data from different sources","Develop and improve services","Use limited data to select content"]},l.options.apiOptions={getPrivacyExperienceFn:async()=>l.experience}),l},E=e=>{let{language:n,is_default:i,...t}=k,o=Object.keys(t).map(n=>{let i=e[n];return{[n]:void 0!==i?i:k[n]}}).reduce((e,n)=>({...e,...n}),{});return{language:e.language,is_default:e.is_default,...o}},T=(e,n,i)=>e?e.map(e=>i.find(n=>(null==n?void 0:n.id)===e)).map(e=>n===V.re.TCF_OVERLAY&&void 0!==e?{...e,translations:[{language:"en",text:null==e?void 0:e.name}]}:e).filter(e=>void 0!==e):[];var L=i(74022),Z=i(32222);let N=e=>{let{title:n,description:i}=e;return(0,t.jsx)(o.jqI,{className:"h-full items-center justify-center",children:(0,t.jsxs)(o.jqI,{className:"items-center gap-2 rounded-md p-6",style:{backgroundColor:L.Z.colors.white,boxShadow:L.Z.shadows.md,maxWidth:512},vertical:!0,"data-testid":"no-preview-notice",children:[(0,t.jsx)(o.xvT,{fontSize:"lg",fontWeight:"500",align:"center",children:n}),(0,t.jsx)(o.xvT,{color:"gray.500",align:"center",children:i})]})})};var P=e=>{var n,i;let{allPrivacyNotices:s,initialValues:d,translation:c,isMobilePreview:p}=e,u=(0,l.useRouter)().pathname.includes("/new"),{values:v}=(0,a.u6)(),[m,_]=(0,r.useState)([]),[f,b]=(0,r.useState)(!1),[g,y]=(0,r.useState)(),h=[V.re.BANNER_AND_MODAL,V.re.MODAL,V.re.TCF_OVERLAY].includes(v.component),{data:k}=(0,j.de)({pageIndex:1,pageSize:1}),A=(0,r.useMemo)(()=>(null==k?void 0:k.total)||0,[null==k?void 0:k.total]);(0,r.useEffect)(()=>{var e,n;return h&&f&&window.FidesPreview&&v.component&&((null===(e=v.privacy_notice_ids)||void 0===e?void 0:e.length)||v.component===V.re.TCF_OVERLAY)?v.component===V.re.TCF_OVERLAY?(window.FidesPreview("tcf"),y("tcf")):(window.FidesPreview("standard"),y("standard")):window.FidesPreview&&(null===(n=window.FidesPreview)||void 0===n||n.cleanup()),()=>{var e;null===(e=window.FidesPreview)||void 0===e||e.cleanup()}},[v.component,f,h,null===(n=v.privacy_notice_ids)||void 0===n?void 0:n.length,u]),(0,r.useEffect)(()=>{d&&v.component&&s&&(v.privacy_notice_ids?_(T(v.privacy_notice_ids,v.component,s)):_([]))},[v.privacy_notice_ids,s,v.component,d]);let L=(0,r.useMemo)(()=>v.component?O({...d,component:v.component},m):null,[d,m,v.component]);(0,r.useEffect)(()=>{var e,n,i,t;if(!h||!f||!window.FidesPreview||!window.Fides||!(null===(e=v.privacy_notice_ids)||void 0===e?void 0:e.length)&&v.component!==V.re.TCF_OVERLAY)return;v.component===V.re.MODAL&&(L.experience.experience_config.component=V.re.MODAL);let o=null===(n=v.translations)||void 0===n?void 0:n.find(e=>e.language===(null==c?void 0:c.language));(null===(i=v.translations)||void 0===i?void 0:i.length)&&(o?(L.experience.available_locales=[...L.experience.available_locales||[],o.language],L.experience.experience_config.translations[0]=E(o),L.options.fidesLocale=o.language):v.translations&&(L.experience.experience_config.translations[0]=E(v.translations[0]),L.options.fidesLocale=v.translations[0].language)),L.experience.experience_config.show_layer1_notices=!!(null===(t=v.privacy_notice_ids)||void 0===t?void 0:t.length)&&!!v.show_layer1_notices,L.experience.experience_config.layer1_button_options=(v.component===V.re.BANNER_AND_MODAL||v.component===V.re.TCF_OVERLAY)&&v.layer1_button_options?v.layer1_button_options:V.Of.OPT_IN_OPT_OUT,L.options.preventDismissal=!v.dismissable,L.experience.vendor_count=A,L.experience.experience_config.component=v.component,window.Fides.init(L)},[c,L,s,h,A,f,g,v.privacy_notice_ids,v.component,v.translations,v.show_layer1_notices,v.layer1_button_options,v.dismissable,d,m]);let P=document.getElementById("fides-modal");return(P&&P.removeAttribute("tabindex"),v.component)?h?(null===(i=v.privacy_notice_ids)||void 0===i?void 0:i.length)||v.component===V.re.TCF_OVERLAY?(0,t.jsxs)(o.jqI,{className:"size-full items-center justify-center overflow-scroll",children:[(0,t.jsx)(x(),{id:"4b2ec2183c5a567e",dynamic:[C.Vk,v.component!==V.re.TCF_OVERLAY?"padding-bottom: 45px;":""],children:"div#fides-overlay{z-index:5000!important}div#".concat(C.Vk,"{width:100%;padding-top:45px;").concat(v.component!==V.re.TCF_OVERLAY?"padding-bottom: 45px;":""," margin: auto;pointer-events:none}div#fides-banner-container{position:static!important;-webkit-transform:none!important;-moz-transform:none!important;-ms-transform:none!important;-o-transform:none!important;transform:none!important;-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;transition:none!important}div#fides-banner-container.fides-banner-hidden{display:none}.fides-modal-container{background-color:unset!important;position:static!important;display:none!important}.fides-modal-overlay{background-color:inherit!important;position:static!important;display:none!important}div.fides-modal-content{position:relative!important;-webkit-transform:none!important;-moz-transform:none!important;-ms-transform:none!important;-o-transform:none!important;transform:none!important;left:initial!important;top:initial!important}div.fides-modal-footer{width:unset}")}),h?(0,t.jsx)("style",{children:"div#fides-modal {\n display: flex !important;\n justify-content: center;\n background-color: unset;\n ".concat(v.component===V.re.BANNER_AND_MODAL||v.component===V.re.TCF_OVERLAY?"padding-bottom: 3rem;":"","\n }")}):null,p?(0,t.jsx)("style",{children:"\n div#fides-overlay-wrapper {\n max-width: 400px;\n margin: auto;\n }\n div.fides-modal-button-group {\n flex-direction: column !important;\n }\n div#fides-banner {\n padding: 24px;\n width: 100%;\n }\n\n div#fides-banner-description {\n margin-bottom: 0px;\n }\n\n div#fides-banner-inner div#fides-button-group {\n flex-direction: column;\n align-items: flex-start;\n gap: 12px;\n padding-top: 24px;\n }\n\n .fides-banner-button-group {\n flex-direction: column;\n width: 100%;\n }\n\n button.fides-banner-button {\n margin: 0px;\n width: 100%;\n }\n\n div#fides-banner-inner-container {\n display: flex;\n flex-direction: column;\n max-height: 50vh;\n overflow-y: auto;\n scrollbar-gutter: stable;\n }\n\n div#fides-privacy-policy-link {\n order: 1;\n width: 100%;\n }\n .fides-modal-footer {\n max-width: 100%;\n }\n .fides-banner-secondary-actions {\n flex-direction: column-reverse;\n gap: 12px;\n }\n "}):(0,t.jsx)("style",{children:"\n div#fides-banner {\n width: 60%;\n }\n @media (min-width: 768px) {\n div#fides-banner {\n width: 100%;\n }\n }\n @media (min-width: 1155px) {\n div#fides-banner {\n width: 90%;\n }\n }\n @media (min-width: 1440px) {\n div#fides-banner {\n width: 60%;\n }\n }\n "}),(0,t.jsx)(w(),{id:"fides-js-script",src:"/lib/fides-preview.js",onReady:()=>{b(!0)}}),(0,t.jsx)("div",{id:C.Vk,className:x().dynamic([["4b2ec2183c5a567e",[C.Vk,v.component!==V.re.TCF_OVERLAY?"padding-bottom: 45px;":""]]])},v.component)]}):(0,t.jsx)(N,{title:"No privacy notices added",description:'To view a preview of this experience, add a privacy notice under "Privacy Notices" to the left.'}):(0,t.jsx)(N,{title:"".concat(Z.J.get(v.component)," preview not available"),description:"There is no preview available for ".concat(Z.J.get(v.component),". You can edit the available settings\n and languages to the left.")}):(0,t.jsx)(N,{title:"No privacy experience type selected",description:"Please select a privacy experience type to preview."})},D=i(94315),M=i(5331),R=i(16277),F=i(71922),H=i(31883);let S=e=>{let n=(0,f.y3)(e),i={};return Object.entries(n).forEach(e=>{let[n,t]=e;if(t.included){let e=b[n];i[n]=t.required?e.validation.required().label(e.label):e.validation.nullable().label(e.label)}}),s.Ry().shape(i)},B=e=>{let{componentType:n}=e;return S(n)},I=s.Ry().shape({name:s.Z_().required().label("Experience name"),component:s.Z_().required().label("Experience type"),translations:s.IX().when("component",(e,n)=>{let[i]=e;return n.of(B({componentType:i}))})});var U=e=>{var n;let{passedInExperience:i,passedInTranslations:s}=e,[b]=(0,D.mJ)(),[y]=(0,D.$d)(),x=(0,o.pmc)(),[h,w]=(0,r.useState)(!1),C=(0,l.useRouter)(),{data:j}=(0,_.tB)({api_set:!1}),V=null==j?void 0:null===(n=j.plus_consent_settings)||void 0===n?void 0:n.enable_translations,k=(0,d.C)(g.Zp),A=(0,d.C)(g.G1);(0,g.Ah)({page:k,size:A});let O=(0,d.C)(g.fJ),E=(0,d.C)(F.sX),T=i?{...f.DD,...(0,f.Uv)(i)}:f.DD,L=async e=>{var n,t;let o;e.privacy_notice_ids=null===(n=e.privacy_notice_ids)||void 0===n?void 0:n.filter(e=>"tcf_purposes_placeholder"!==e),T.tcf_configuration_id&&!e.tcf_configuration_id&&(e.tcf_configuration_id=null);let a={...e,disabled:null===(t=null==i?void 0:i.disabled)||void 0===t||t,allow_language_selection:e.translations&&e.translations.length>1};if(i){let{component:e,...n}=a;o=await y({...n,id:i.id})}else o=await b(a);(0,H.D4)(o)?x((0,m.Vo)((0,c.e$)(o.error))):(x((0,m.t5)("Privacy experience successfully ".concat(i?"updated":"created"))),C.push(v.w0))},[Z,N]=(0,r.useState)(void 0),[S,B]=(0,r.useState)(!1);return(0,t.jsx)(a.J9,{initialValues:T,enableReinitialize:!0,onSubmit:L,validationSchema:I,children:(0,t.jsx)(a.l0,{style:{height:"100vh"},children:(0,t.jsxs)(o.jqI,{className:"size-full","data-testid":"privacy-experience-detail-page",children:[Z?(0,t.jsx)(R.Z,{translation:Z,translationsEnabled:V,isOOB:S,onReturnToMainForm:()=>{N(void 0),B(!1)}}):(0,t.jsx)(M.d0,{allPrivacyNotices:E,translationsEnabled:V,onSelectTranslation:e=>{N({...e,name:(0,f.Go)(e,O)})},onCreateTranslation:e=>{let n=null==s?void 0:s.find(n=>n.language===e);return n&&B(!0),null!=n?n:{language:e,is_default:!1}}}),(0,t.jsxs)(o.jqI,{vertical:!0,className:"w-full overflow-y-hidden",style:{backgroundColor:o.rSc.colors.gray[50]},children:[(0,t.jsxs)(o.jqI,{className:"flex-row items-center p-4",style:{backgroundColor:o.rSc.colors.white,borderBottom:"1px solid ".concat(o.rSc.colors.gray[100])},children:[(0,t.jsx)(o.xvT,{fontSize:"md",fontWeight:"semibold",children:"PREVIEW"}),(0,t.jsx)(o.LZC,{}),(0,t.jsxs)(o.y02.Group,{onChange:e=>w(e.target.value),defaultValue:!1,children:[(0,t.jsx)(o.y02.Button,{value:!0,title:"View mobile preview",children:(0,t.jsx)(u,{})}),(0,t.jsx)(o.y02.Button,{value:!1,title:"View desktop preview",children:(0,t.jsx)(p,{})})]})]}),(0,t.jsx)(P,{allPrivacyNotices:E,initialValues:T,translation:Z,isMobilePreview:h})]})]})})})}},32222:function(e,n,i){i.d(n,{J:function(){return t}});let t=new Map([["overlay","Overlay"],["privacy_center","Privacy center"],["tcf_overlay","TCF overlay"],["modal","Modal"],["banner_and_modal","Banner and modal"],["headless","Headless"]])},31883:function(e,n,i){i.d(n,{Bw:function(){return t.Bw},D4:function(){return t.D4}});var t=i(19043)}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1904],{11904:function(e,s,a){a.d(s,{Z:function(){return Z}});var i,t,l=a(24246),r=a(59003),n=a(92222),o=a(91942),d=a(86677),c=a(27378),u=a(14481),g=a(45896),x=a(70675),j=a(72625),m=a(79947),h=a(50169),I=a(28278),C=a(74241),f=a(16643),p=a(91761),L=a(61099),v=a(87667),y=e=>{let{resourceType:s}=e,a=(0,n.Cl)();return s===f.D$.SCHEMA?{columns:[a.accessor(e=>e.name,{id:"name",cell:e=>(0,l.jsx)(v.Z,{result:e.row.original,changeTypeOverride:I.E.CLASSIFICATION}),header:e=>(0,l.jsx)(u.Rr,{value:"Name",...e}),size:300}),a.accessor(e=>e.urn,{id:"project",cell:e=>(0,l.jsx)(u.G3,{value:(0,C.Z)(e.getValue())}),header:e=>(0,l.jsx)(u.Rr,{value:"Project",...e})}),a.display({id:"status",cell:e=>(0,l.jsx)(h.Z,{result:e.row.original}),header:e=>(0,l.jsx)(u.Rr,{value:"Status",...e})}),a.accessor(e=>e.system,{id:"system",cell:e=>(0,l.jsx)(u.G3,{value:e.getValue()}),header:e=>(0,l.jsx)(u.Rr,{value:"System",...e})}),a.accessor(e=>e.monitor_config_id,{id:"monitor",cell:e=>(0,l.jsx)(u.G3,{value:e.getValue()}),header:e=>(0,l.jsx)(u.Rr,{value:"Detected by",...e})}),a.accessor(e=>e.updated_at,{id:"time",cell:e=>(0,l.jsx)(j.Cy,{time:e.getValue()}),header:e=>(0,l.jsx)(u.Rr,{value:"When",...e})}),a.display({id:"action",cell:e=>e.row.original.diff_status!==f.LL.MUTED?(0,l.jsx)(p.Z,{resource:e.row.original}):(0,l.jsx)(u.G3,{value:"--"}),header:"Actions",size:235,meta:{disableRowClick:!0}})]}:s===f.D$.TABLE?{columns:[a.display({id:"select",cell:e=>{var s;let{row:a}=e;return(0,l.jsx)(j.k,{isChecked:a.getIsSelected(),onChange:a.getToggleSelectedHandler(),dataTestId:"select-".concat(null!==(s=a.original.name)&&void 0!==s?s:a.id)})},header:e=>{let{table:s}=e;return(0,l.jsx)(j.k,{isChecked:s.getIsAllPageRowsSelected(),isIndeterminate:s.getIsSomeRowsSelected(),onChange:s.getToggleAllRowsSelectedHandler(),dataTestId:"select-all-rows"})},maxSize:40}),a.accessor(e=>e.name,{id:"tables",cell:e=>(0,l.jsx)(v.Z,{result:e.row.original}),header:e=>(0,l.jsx)(u.Rr,{value:"Table name",...e}),size:300}),a.accessor(e=>e.description,{id:"description",cell:e=>(0,l.jsx)(u.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,l.jsx)(u.Rr,{value:"Description",...e}),meta:{showHeaderMenu:!0}}),a.display({id:"status",cell:e=>(0,l.jsx)(h.Z,{result:e.row.original}),header:e=>(0,l.jsx)(u.Rr,{value:"Status",...e})}),a.display({id:"type",cell:()=>(0,l.jsx)(u.G3,{value:"Table"}),header:"Type"}),a.accessor(e=>e.updated_at,{id:"time",cell:e=>(0,l.jsx)(j.Cy,{time:e.getValue()}),header:"Time"}),a.display({id:"actions",cell:e=>(0,l.jsx)(p.Z,{resource:e.row.original}),header:"Actions",size:235,meta:{disableRowClick:!0}})]}:s===f.D$.FIELD?{columns:[a.accessor(e=>e.name,{id:"name",cell:e=>(0,l.jsx)(v.Z,{result:e.row.original}),header:e=>(0,l.jsx)(u.Rr,{value:"Field name",...e}),size:300}),a.accessor(e=>e.source_data_type,{id:"data-type",cell:e=>(0,l.jsx)(m.Z,{type:e.getValue()}),header:e=>(0,l.jsx)(u.Rr,{value:"Data type",...e})}),a.accessor(e=>e.description,{id:"description",cell:e=>(0,l.jsx)(u.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,l.jsx)(u.Rr,{value:"Description",...e}),meta:{showHeaderMenu:!0}}),a.display({id:"status",cell:e=>(0,l.jsx)(h.Z,{result:e.row.original}),header:e=>(0,l.jsx)(u.Rr,{value:"Status",...e})}),a.display({id:"type",cell:()=>(0,l.jsx)(u.G3,{value:"Field"}),header:"Type"}),a.display({id:"classifications",cell:e=>{let{row:s}=e;return(0,l.jsx)(L.Z,{resource:s.original})},meta:{overflow:"visible",disableRowClick:!0},header:"Data category",minSize:280}),a.accessor(e=>e.updated_at,{id:"time",cell:e=>(0,l.jsx)(j.Cy,{time:e.getValue()}),header:e=>(0,l.jsx)(u.Rr,{value:"When",...e})}),a.display({id:"actions",cell:e=>(0,l.jsx)(p.Z,{resource:e.row.original}),header:"Actions",size:235,meta:{disableRowClick:!0}})]}:{columns:[]}};(i=t||(t={}))[i.ACTION_REQUIRED=0]="ACTION_REQUIRED",i[i.UNMONITORED=1]="UNMONITORED";var _=e=>{let{initialFilterTabIndex:s=0}=e,[a,i]=(0,c.useState)(s),t=(0,c.useMemo)(()=>[{label:"Action Required",filters:[f.LL.CLASSIFICATION_ADDITION,f.LL.CLASSIFICATION_UPDATE],childFilters:[f.LL.CLASSIFICATION_ADDITION,f.LL.CLASSIFICATION_UPDATE]},{label:"In progress",filters:[f.LL.CLASSIFYING,f.LL.CLASSIFICATION_QUEUED],childFilters:[f.LL.CLASSIFYING,f.LL.CLASSIFICATION_QUEUED]},{label:"Unmonitored",filters:[f.LL.MUTED],childFilters:[]}],[]);return{filterTabs:t,filterTabIndex:a,setFilterTabIndex:i,activeDiffFilters:t[a].filters,activeChildDiffFilters:t[a].childFilters}},T=a(47182),S=a(38347),R=a(79494),b=e=>{let{resourceUrn:s}=e,[a,{isLoading:i}]=(0,x.Hf)(),[t,{isLoading:r}]=(0,x.zV)(),n=i||r,d=async e=>{await t({staged_resource_urns:e})},c=async e=>{await a({staged_resource_urns:e})};return(0,l.jsx)(o.jqI,{"data-testid":"bulk-actions-menu",children:(0,l.jsxs)("div",{className:"flex gap-2",children:[(0,l.jsx)(R.Z,{title:"Confirm all",icon:(0,l.jsx)(o.nQG,{}),onClick:()=>c([s]),disabled:n,loading:i,type:"primary",size:"middle"}),(0,l.jsx)(R.Z,{title:"Ignore all",icon:(0,l.jsx)(o.tpL,{}),onClick:()=>d([s]),disabled:n,loading:r,size:"middle"})]})})},w=e=>{let{selectedUrns:s}=e,[a,{isLoading:i}]=(0,x.Hf)(),[t,{isLoading:r}]=(0,x.zV)(),n=i||r,d=async e=>{await a({staged_resource_urns:e})},c=async e=>{await t({staged_resource_urns:e})};return s.length?(0,l.jsxs)(o.jqI,{className:"items-center","data-testid":"bulk-actions-menu",children:[(0,l.jsx)(o.xvT,{fontSize:"xs",fontWeight:"semibold",minW:16,mr:4,children:"".concat(s.length," selected")}),(0,l.jsxs)(o.jqI,{className:"gap-2",children:[(0,l.jsx)(R.Z,{title:"Confirm",icon:(0,l.jsx)(o.nQG,{}),onClick:()=>d(s),disabled:n,loading:i,type:"primary",size:"middle"}),(0,l.jsx)(R.Z,{title:"Ignore",icon:(0,l.jsx)(o.tpL,{}),disabled:n,loading:r,onClick:()=>c(s),size:"middle"})]})]}):null},D=a(7940),A=a(80285),N=a(36168),F=a(30952);let k={items:[],total:0,page:1,size:50,pages:1},E=()=>(0,l.jsx)(o.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"empty-state",alignSelf:"center",margin:"auto",children:(0,l.jsxs)(o.gCW,{children:[(0,l.jsx)(o.xvT,{fontSize:"md",fontWeight:"600",children:"No activity found"}),(0,l.jsx)(o.xvT,{fontSize:"sm",children:"You're up to date!"})]})});var Z=e=>{var s,a;let{resourceUrn:i}=e,j=(0,d.useRouter)(),[m,h]=(0,c.useState)(""),{filterTabs:I,setFilterTabIndex:C,filterTabIndex:p,activeDiffFilters:L,activeChildDiffFilters:v}=_({initialFilterTabIndex:(null===(s=j.query)||void 0===s?void 0:s.filterTabIndex)?Number(null===(a=j.query)||void 0===a?void 0:a.filterTabIndex):void 0}),[R,Z]=(0,c.useState)({}),{PAGE_SIZES:O,pageSize:z,setPageSize:U,onPreviousPageClick:M,isPreviousPageDisabled:P,onNextPageClick:G,isNextPageDisabled:V,startRange:$,endRange:q,pageIndex:H,setTotalPages:Q,resetPageIndexToDefault:W}=(0,u.oi)();(0,c.useEffect)(()=>{W()},[i,m,W,L,v]);let{isFetching:Y,isLoading:B,data:K}=(0,x.z8)({staged_resource_urn:i,page:H,size:z,child_diff_status:v,diff_status:L,search:m}),X=(0,D.G)(null==K?void 0:K.items[0]),{items:J,total:ee,pages:es}=(0,c.useMemo)(()=>null!=K?K:k,[K]);(0,c.useEffect)(()=>{Q(es)},[es,Q]);let{columns:ea}=y({resourceType:X}),ei=(0,c.useMemo)(()=>ea,[ea]),{navigateToDiscoveryResults:et}=(0,T.Z)(),el=(0,r.b7)({getCoreRowModel:(0,n.sC)(),getGroupedRowModel:(0,n.qe)(),getExpandedRowModel:(0,n.rV)(),columns:ei,manualPagination:!0,onRowSelectionChange:Z,state:{rowSelection:R},getRowId:A.Z,data:J,columnResizeMode:"onChange"}),er=Object.keys(R).filter(e=>R[e]);return B?(0,l.jsx)(u.I4,{rowHeight:36,numRows:36}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(g.Z,{filterTabs:I,filterTabIndex:p,onChange:C}),(0,l.jsxs)(u.Q$,{children:[(0,l.jsxs)(o.kCb,{gap:6,align:"center",children:[(0,l.jsx)(o.xuv,{flexShrink:0,children:(0,l.jsx)(F.f,{value:m,onChange:h})}),(0,l.jsx)(S.Z,{})]}),X===f.D$.TABLE&&!!er.length&&(0,l.jsx)(w,{selectedUrns:er}),X===f.D$.FIELD&&p!==t.UNMONITORED&&(0,l.jsx)(b,{resourceUrn:i})]}),(0,l.jsx)(u.ZK,{tableInstance:el,onRowClick:e=>et({resourceUrn:e.urn,filterTabIndex:p}),getRowIsClickable:e=>X!==f.D$.FIELD||(0,N.Z)(e),emptyTableNotice:(0,l.jsx)(E,{})}),(0,l.jsx)(u.s8,{totalRows:ee||0,pageSizes:O,setPageSize:U,onPreviousPageClick:M,isPreviousPageDisabled:P||Y,onNextPageClick:G,isNextPageDisabled:V||Y,startRange:$,endRange:q})]})}},91761:function(e,s,a){var i=a(24246),t=a(91942),l=a(812),r=a(14047),n=a(7940),o=a(98559),d=a(16643),c=a(79494),u=a(70675);s.Z=e=>{let{resource:s}=e,[a,{isLoading:g}]=(0,u.v8)(),[x,{isLoading:j}]=(0,u.cM)(),[m,{isLoading:h}]=(0,u.vi)(),I=j||h||g,{diff_status:C,child_diff_statuses:f,top_level_field_name:p}=s,{successAlert:L,errorAlert:v}=(0,r.V)(),y=C===d.LL.CLASSIFICATION_ADDITION||C===d.LL.CLASSIFICATION_UPDATE,_=f&&(f[d.LL.CLASSIFICATION_ADDITION]||f[d.LL.CLASSIFICATION_UPDATE]),T=(y||_)&&!p,S=y||_,R=(0,n.G)(s)!==d.D$.FIELD,b=T&&S&&R,w=async()=>{let e=await x({staged_resource_urn:s.urn});(0,l.D4)(e)?v((0,l.e$)(e.error),"Failed to promote resource"):L('These changes have been added to a Fides dataset. To view, navigate to "Manage datasets".',"Table changes confirmed")},D=async()=>{let e=await m({staged_resource_urn:s.urn});(0,l.D4)(e)?v((0,l.e$)(e.error),"Failed to mute resource"):L("Ignored changes will not be added to a Fides dataset.","".concat(s.name||"Changes"," ignored"))},A=async()=>{let e=await a({staged_resource_urn:s.urn,monitor_config_id:s.monitor_config_id,start_classification:!0,classify_monitored_resources:!0});(0,l.D4)(e)?v((0,l.e$)(e.error),"Failed to reclassify resource"):L("Reclassification of ".concat((0,o.Z)(s)||"the resource"," has begun. The results may take some time to appear in the “Data discovery“ tab."),"Reclassification started")};return(0,i.jsxs)(t.Ugi,{gap:2,children:[T&&(0,i.jsx)(c.Z,{title:"Confirm",icon:(0,i.jsx)(t.nQG,{}),onClick:w,disabled:I,loading:j}),S&&(0,i.jsx)(c.Z,{title:"Ignore",icon:(0,i.jsx)(t.tpL,{}),onClick:D,disabled:I,loading:h}),R&&!b&&(0,i.jsx)(c.Z,{title:"Reclassify",icon:(0,i.jsx)(t.nyI,{}),onClick:A,disabled:I,loading:g}),b&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.LZC,{}),(0,i.jsxs)(t.v2r,{children:[(0,i.jsx)(t.j2t,{as:t.wpx,size:"small",type:"text",icon:(0,i.jsx)(t.nXP,{transform:"rotate(90deg)"}),className:"w-6 gap-0","data-testid":"actions-overflow-btn"}),(0,i.jsx)(t.qyq,{children:(0,i.jsx)(t.sNh,{onClick:A,icon:(0,i.jsx)(t.nyI,{}),"data-testid":"action-reclassify",children:"Reclassify"})})]})]})]})}}}]);
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1904],{11904:function(e,s,a){a.d(s,{Z:function(){return Z}});var i,t,l=a(24246),r=a(59003),n=a(92222),o=a(91942),d=a(86677),c=a(27378),u=a(14481),g=a(45896),x=a(70675),j=a(72625),m=a(79947),h=a(50169),I=a(28278),C=a(74241),f=a(35194),p=a(91761),L=a(61099),v=a(87667),y=e=>{let{resourceType:s}=e,a=(0,n.Cl)();return s===f.D$.SCHEMA?{columns:[a.accessor(e=>e.name,{id:"name",cell:e=>(0,l.jsx)(v.Z,{result:e.row.original,changeTypeOverride:I.E.CLASSIFICATION}),header:e=>(0,l.jsx)(u.Rr,{value:"Name",...e}),size:300}),a.accessor(e=>e.urn,{id:"project",cell:e=>(0,l.jsx)(u.G3,{value:(0,C.Z)(e.getValue())}),header:e=>(0,l.jsx)(u.Rr,{value:"Project",...e})}),a.display({id:"status",cell:e=>(0,l.jsx)(h.Z,{result:e.row.original}),header:e=>(0,l.jsx)(u.Rr,{value:"Status",...e})}),a.accessor(e=>e.system,{id:"system",cell:e=>(0,l.jsx)(u.G3,{value:e.getValue()}),header:e=>(0,l.jsx)(u.Rr,{value:"System",...e})}),a.accessor(e=>e.monitor_config_id,{id:"monitor",cell:e=>(0,l.jsx)(u.G3,{value:e.getValue()}),header:e=>(0,l.jsx)(u.Rr,{value:"Detected by",...e})}),a.accessor(e=>e.updated_at,{id:"time",cell:e=>(0,l.jsx)(j.Cy,{time:e.getValue()}),header:e=>(0,l.jsx)(u.Rr,{value:"When",...e})}),a.display({id:"action",cell:e=>e.row.original.diff_status!==f.LL.MUTED?(0,l.jsx)(p.Z,{resource:e.row.original}):(0,l.jsx)(u.G3,{value:"--"}),header:"Actions",size:235,meta:{disableRowClick:!0}})]}:s===f.D$.TABLE?{columns:[a.display({id:"select",cell:e=>{var s;let{row:a}=e;return(0,l.jsx)(j.k,{isChecked:a.getIsSelected(),onChange:a.getToggleSelectedHandler(),dataTestId:"select-".concat(null!==(s=a.original.name)&&void 0!==s?s:a.id)})},header:e=>{let{table:s}=e;return(0,l.jsx)(j.k,{isChecked:s.getIsAllPageRowsSelected(),isIndeterminate:s.getIsSomeRowsSelected(),onChange:s.getToggleAllRowsSelectedHandler(),dataTestId:"select-all-rows"})},maxSize:40}),a.accessor(e=>e.name,{id:"tables",cell:e=>(0,l.jsx)(v.Z,{result:e.row.original}),header:e=>(0,l.jsx)(u.Rr,{value:"Table name",...e}),size:300}),a.accessor(e=>e.description,{id:"description",cell:e=>(0,l.jsx)(u.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,l.jsx)(u.Rr,{value:"Description",...e}),meta:{showHeaderMenu:!0}}),a.display({id:"status",cell:e=>(0,l.jsx)(h.Z,{result:e.row.original}),header:e=>(0,l.jsx)(u.Rr,{value:"Status",...e})}),a.display({id:"type",cell:()=>(0,l.jsx)(u.G3,{value:"Table"}),header:"Type"}),a.accessor(e=>e.updated_at,{id:"time",cell:e=>(0,l.jsx)(j.Cy,{time:e.getValue()}),header:"Time"}),a.display({id:"actions",cell:e=>(0,l.jsx)(p.Z,{resource:e.row.original}),header:"Actions",size:235,meta:{disableRowClick:!0}})]}:s===f.D$.FIELD?{columns:[a.accessor(e=>e.name,{id:"name",cell:e=>(0,l.jsx)(v.Z,{result:e.row.original}),header:e=>(0,l.jsx)(u.Rr,{value:"Field name",...e}),size:300}),a.accessor(e=>e.source_data_type,{id:"data-type",cell:e=>(0,l.jsx)(m.Z,{type:e.getValue()}),header:e=>(0,l.jsx)(u.Rr,{value:"Data type",...e})}),a.accessor(e=>e.description,{id:"description",cell:e=>(0,l.jsx)(u.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,l.jsx)(u.Rr,{value:"Description",...e}),meta:{showHeaderMenu:!0}}),a.display({id:"status",cell:e=>(0,l.jsx)(h.Z,{result:e.row.original}),header:e=>(0,l.jsx)(u.Rr,{value:"Status",...e})}),a.display({id:"type",cell:()=>(0,l.jsx)(u.G3,{value:"Field"}),header:"Type"}),a.display({id:"classifications",cell:e=>{let{row:s}=e;return(0,l.jsx)(L.Z,{resource:s.original})},meta:{overflow:"visible",disableRowClick:!0},header:"Data category",minSize:280}),a.accessor(e=>e.updated_at,{id:"time",cell:e=>(0,l.jsx)(j.Cy,{time:e.getValue()}),header:e=>(0,l.jsx)(u.Rr,{value:"When",...e})}),a.display({id:"actions",cell:e=>(0,l.jsx)(p.Z,{resource:e.row.original}),header:"Actions",size:235,meta:{disableRowClick:!0}})]}:{columns:[]}};(i=t||(t={}))[i.ACTION_REQUIRED=0]="ACTION_REQUIRED",i[i.UNMONITORED=1]="UNMONITORED";var _=e=>{let{initialFilterTabIndex:s=0}=e,[a,i]=(0,c.useState)(s),t=(0,c.useMemo)(()=>[{label:"Action Required",filters:[f.LL.CLASSIFICATION_ADDITION,f.LL.CLASSIFICATION_UPDATE],childFilters:[f.LL.CLASSIFICATION_ADDITION,f.LL.CLASSIFICATION_UPDATE]},{label:"In progress",filters:[f.LL.CLASSIFYING,f.LL.CLASSIFICATION_QUEUED],childFilters:[f.LL.CLASSIFYING,f.LL.CLASSIFICATION_QUEUED]},{label:"Unmonitored",filters:[f.LL.MUTED],childFilters:[]}],[]);return{filterTabs:t,filterTabIndex:a,setFilterTabIndex:i,activeDiffFilters:t[a].filters,activeChildDiffFilters:t[a].childFilters}},T=a(47182),S=a(38347),R=a(79494),b=e=>{let{resourceUrn:s}=e,[a,{isLoading:i}]=(0,x.Hf)(),[t,{isLoading:r}]=(0,x.zV)(),n=i||r,d=async e=>{await t({staged_resource_urns:e})},c=async e=>{await a({staged_resource_urns:e})};return(0,l.jsx)(o.jqI,{"data-testid":"bulk-actions-menu",children:(0,l.jsxs)("div",{className:"flex gap-2",children:[(0,l.jsx)(R.Z,{title:"Confirm all",icon:(0,l.jsx)(o.nQG,{}),onClick:()=>c([s]),disabled:n,loading:i,type:"primary",size:"middle"}),(0,l.jsx)(R.Z,{title:"Ignore all",icon:(0,l.jsx)(o.tpL,{}),onClick:()=>d([s]),disabled:n,loading:r,size:"middle"})]})})},w=e=>{let{selectedUrns:s}=e,[a,{isLoading:i}]=(0,x.Hf)(),[t,{isLoading:r}]=(0,x.zV)(),n=i||r,d=async e=>{await a({staged_resource_urns:e})},c=async e=>{await t({staged_resource_urns:e})};return s.length?(0,l.jsxs)(o.jqI,{className:"items-center","data-testid":"bulk-actions-menu",children:[(0,l.jsx)(o.xvT,{fontSize:"xs",fontWeight:"semibold",minW:16,mr:4,children:"".concat(s.length," selected")}),(0,l.jsxs)(o.jqI,{className:"gap-2",children:[(0,l.jsx)(R.Z,{title:"Confirm",icon:(0,l.jsx)(o.nQG,{}),onClick:()=>d(s),disabled:n,loading:i,type:"primary",size:"middle"}),(0,l.jsx)(R.Z,{title:"Ignore",icon:(0,l.jsx)(o.tpL,{}),disabled:n,loading:r,onClick:()=>c(s),size:"middle"})]})]}):null},D=a(7940),A=a(80285),N=a(36168),F=a(30952);let k={items:[],total:0,page:1,size:50,pages:1},E=()=>(0,l.jsx)(o.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"empty-state",alignSelf:"center",margin:"auto",children:(0,l.jsxs)(o.gCW,{children:[(0,l.jsx)(o.xvT,{fontSize:"md",fontWeight:"600",children:"No activity found"}),(0,l.jsx)(o.xvT,{fontSize:"sm",children:"You're up to date!"})]})});var Z=e=>{var s,a;let{resourceUrn:i}=e,j=(0,d.useRouter)(),[m,h]=(0,c.useState)(""),{filterTabs:I,setFilterTabIndex:C,filterTabIndex:p,activeDiffFilters:L,activeChildDiffFilters:v}=_({initialFilterTabIndex:(null===(s=j.query)||void 0===s?void 0:s.filterTabIndex)?Number(null===(a=j.query)||void 0===a?void 0:a.filterTabIndex):void 0}),[R,Z]=(0,c.useState)({}),{PAGE_SIZES:O,pageSize:z,setPageSize:U,onPreviousPageClick:M,isPreviousPageDisabled:P,onNextPageClick:G,isNextPageDisabled:V,startRange:$,endRange:q,pageIndex:H,setTotalPages:Q,resetPageIndexToDefault:W}=(0,u.oi)();(0,c.useEffect)(()=>{W()},[i,m,W,L,v]);let{isFetching:Y,isLoading:B,data:K}=(0,x.z8)({staged_resource_urn:i,page:H,size:z,child_diff_status:v,diff_status:L,search:m}),X=(0,D.G)(null==K?void 0:K.items[0]),{items:J,total:ee,pages:es}=(0,c.useMemo)(()=>null!=K?K:k,[K]);(0,c.useEffect)(()=>{Q(es)},[es,Q]);let{columns:ea}=y({resourceType:X}),ei=(0,c.useMemo)(()=>ea,[ea]),{navigateToDiscoveryResults:et}=(0,T.Z)(),el=(0,r.b7)({getCoreRowModel:(0,n.sC)(),getGroupedRowModel:(0,n.qe)(),getExpandedRowModel:(0,n.rV)(),columns:ei,manualPagination:!0,onRowSelectionChange:Z,state:{rowSelection:R},getRowId:A.Z,data:J,columnResizeMode:"onChange"}),er=Object.keys(R).filter(e=>R[e]);return B?(0,l.jsx)(u.I4,{rowHeight:36,numRows:36}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(g.Z,{filterTabs:I,filterTabIndex:p,onChange:C}),(0,l.jsxs)(u.Q$,{children:[(0,l.jsxs)(o.kCb,{gap:6,align:"center",children:[(0,l.jsx)(o.xuv,{flexShrink:0,children:(0,l.jsx)(F.f,{value:m,onChange:h})}),(0,l.jsx)(S.Z,{})]}),X===f.D$.TABLE&&!!er.length&&(0,l.jsx)(w,{selectedUrns:er}),X===f.D$.FIELD&&p!==t.UNMONITORED&&(0,l.jsx)(b,{resourceUrn:i})]}),(0,l.jsx)(u.ZK,{tableInstance:el,onRowClick:e=>et({resourceUrn:e.urn,filterTabIndex:p}),getRowIsClickable:e=>X!==f.D$.FIELD||(0,N.Z)(e),emptyTableNotice:(0,l.jsx)(E,{})}),(0,l.jsx)(u.s8,{totalRows:ee||0,pageSizes:O,setPageSize:U,onPreviousPageClick:M,isPreviousPageDisabled:P||Y,onNextPageClick:G,isNextPageDisabled:V||Y,startRange:$,endRange:q})]})}},91761:function(e,s,a){var i=a(24246),t=a(91942),l=a(812),r=a(14047),n=a(7940),o=a(98559),d=a(35194),c=a(79494),u=a(70675);s.Z=e=>{let{resource:s}=e,[a,{isLoading:g}]=(0,u.v8)(),[x,{isLoading:j}]=(0,u.cM)(),[m,{isLoading:h}]=(0,u.vi)(),I=j||h||g,{diff_status:C,child_diff_statuses:f,top_level_field_name:p}=s,{successAlert:L,errorAlert:v}=(0,r.V)(),y=C===d.LL.CLASSIFICATION_ADDITION||C===d.LL.CLASSIFICATION_UPDATE,_=f&&(f[d.LL.CLASSIFICATION_ADDITION]||f[d.LL.CLASSIFICATION_UPDATE]),T=(y||_)&&!p,S=y||_,R=(0,n.G)(s)!==d.D$.FIELD,b=T&&S&&R,w=async()=>{let e=await x({staged_resource_urn:s.urn});(0,l.D4)(e)?v((0,l.e$)(e.error),"Failed to promote resource"):L('These changes have been added to a Fides dataset. To view, navigate to "Manage datasets".',"Table changes confirmed")},D=async()=>{let e=await m({staged_resource_urn:s.urn});(0,l.D4)(e)?v((0,l.e$)(e.error),"Failed to mute resource"):L("Ignored changes will not be added to a Fides dataset.","".concat(s.name||"Changes"," ignored"))},A=async()=>{let e=await a({staged_resource_urn:s.urn,monitor_config_id:s.monitor_config_id,start_classification:!0,classify_monitored_resources:!0});(0,l.D4)(e)?v((0,l.e$)(e.error),"Failed to reclassify resource"):L("Reclassification of ".concat((0,o.Z)(s)||"the resource"," has begun. The results may take some time to appear in the “Data discovery“ tab."),"Reclassification started")};return(0,i.jsxs)(t.Ugi,{gap:2,children:[T&&(0,i.jsx)(c.Z,{title:"Confirm",icon:(0,i.jsx)(t.nQG,{}),onClick:w,disabled:I,loading:j}),S&&(0,i.jsx)(c.Z,{title:"Ignore",icon:(0,i.jsx)(t.tpL,{}),onClick:D,disabled:I,loading:h}),R&&!b&&(0,i.jsx)(c.Z,{title:"Reclassify",icon:(0,i.jsx)(t.nyI,{}),onClick:A,disabled:I,loading:g}),b&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.LZC,{}),(0,i.jsxs)(t.v2r,{children:[(0,i.jsx)(t.j2t,{as:t.wpx,size:"small",type:"text",icon:(0,i.jsx)(t.nXP,{transform:"rotate(90deg)"}),className:"w-6 gap-0","data-testid":"actions-overflow-btn"}),(0,i.jsx)(t.qyq,{children:(0,i.jsx)(t.sNh,{onClick:A,icon:(0,i.jsx)(t.nyI,{}),"data-testid":"action-reclassify",children:"Reclassify"})})]})]})]})}}}]);