ethyca-fides 2.73.2b0__py2.py3-none-any.whl → 2.76.0rc2__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 (453) hide show
  1. {ethyca_fides-2.73.2b0.dist-info → ethyca_fides-2.76.0rc2.dist-info}/METADATA +2 -1
  2. {ethyca_fides-2.73.2b0.dist-info → ethyca_fides-2.76.0rc2.dist-info}/RECORD +349 -336
  3. fides/_version.py +3 -3
  4. fides/api/alembic/migrations/versions/303287c70600_migrate_resource_type_from_enum_to_.py +99 -0
  5. fides/api/alembic/migrations/versions/795f46f656c0_migrate_field_type_from_enum_to_string.py +61 -0
  6. fides/api/alembic/migrations/versions/xx_2025_10_29_1659_80d28dea3b6b_added_duplicate_group_table.py +79 -0
  7. fides/api/alembic/migrations/versions/xx_2025_11_05_0200_f1a2b3c4d5e6_create_staged_resource_error_table.py +82 -0
  8. fides/api/alembic/migrations/versions/xx_2025_11_07_1709_56fe6fad2d89_add_notice_display_order.py +47 -0
  9. fides/api/alembic/migrations/versions/xx_2025_11_10_1200_a1b2c3d4e5f6_add_test_datastore_to_connectiontype.py +53 -0
  10. fides/api/alembic/migrations/versions/xx_2025_11_11_1317_7d82c8fc4c34_store_saas_template_datasets.py +68 -0
  11. fides/api/alembic/migrations/versions/xx_2025_11_12_1430_b2c3d4e5f6a7_add_default_identity_definitions.py +81 -0
  12. fides/api/alembic/migrations/versions/xx_2025_11_25_1854_3ff6449c099e_add_index_on_providedidentity_privacy_.py +50 -0
  13. fides/api/api/v1/api.py +2 -0
  14. fides/api/api/v1/endpoints/admin.py +39 -0
  15. fides/api/api/v1/endpoints/connector_template_endpoints.py +167 -0
  16. fides/api/api/v1/endpoints/generic_overrides.py +6 -6
  17. fides/api/api/v1/endpoints/pre_approval_webhook_endpoints.py +5 -5
  18. fides/api/api/v1/endpoints/privacy_request_endpoints.py +101 -21
  19. fides/api/api/v1/endpoints/saas_config_endpoints.py +3 -44
  20. fides/api/api/v1/endpoints/storage_endpoints.py +5 -1
  21. fides/api/api/v1/endpoints/system.py +2 -2
  22. fides/api/api/v1/endpoints/user_endpoints.py +10 -4
  23. fides/api/db/base.py +1 -0
  24. fides/api/db/database.py +228 -1
  25. fides/api/db/seed.py +1 -1
  26. fides/api/email_templates/templates/external_user_welcome.html +9 -5
  27. fides/api/migrations/post_upgrade_index_creation.py +10 -0
  28. fides/api/models/connectionconfig.py +4 -1
  29. fides/api/models/detection_discovery/__init__.py +2 -0
  30. fides/api/models/detection_discovery/core.py +10 -0
  31. fides/api/models/detection_discovery/staged_resource_error.py +25 -0
  32. fides/api/models/experience_notices.py +6 -1
  33. fides/api/models/identity_definition.py +2 -1
  34. fides/api/models/location_regulation_selections.py +22 -0
  35. fides/api/models/manual_webhook.py +17 -6
  36. fides/api/models/messaging_template.py +7 -0
  37. fides/api/models/policy.py +3 -0
  38. fides/api/models/privacy_experience.py +20 -0
  39. fides/api/models/privacy_notice.py +45 -1
  40. fides/api/models/privacy_preference.py +1 -0
  41. fides/api/models/privacy_request/duplicate_group.py +84 -0
  42. fides/api/models/privacy_request/privacy_request.py +84 -9
  43. fides/api/models/privacy_request/provided_identity.py +22 -1
  44. fides/api/models/saas_template_dataset.py +63 -0
  45. fides/api/models/sql_models.py +150 -7
  46. fides/api/models/taxonomy.py +61 -1
  47. fides/api/oauth/roles.py +2 -0
  48. fides/api/schemas/connection_configuration/connection_secrets_mssql.py +5 -0
  49. fides/api/schemas/messaging/messaging.py +1 -0
  50. fides/api/schemas/oauth.py +2 -1
  51. fides/api/schemas/privacy_request.py +38 -6
  52. fides/api/schemas/saas/connector_template.py +14 -0
  53. fides/api/service/async_dsr/strategies/async_dsr_strategy_polling.py +19 -7
  54. fides/api/service/connectors/base_erasure_email_connector.py +7 -0
  55. fides/api/service/connectors/microsoft_sql_server_connector.py +6 -1
  56. fides/api/service/connectors/saas/connector_registry_service.py +45 -1
  57. fides/api/service/messaging/message_dispatch_service.py +44 -4
  58. fides/api/service/privacy_request/dsr_package/dsr_report_builder.py +3 -3
  59. fides/api/service/privacy_request/dsr_package/templates/attachments_index.html +41 -30
  60. fides/api/service/privacy_request/dsr_package/templates/clickme.html +68 -0
  61. fides/api/service/privacy_request/dsr_package/templates/dataset_index.html +30 -27
  62. fides/api/service/privacy_request/duplication_detection.py +439 -0
  63. fides/api/service/privacy_request/email_batch_service.py +2 -1
  64. fides/api/service/privacy_request/request_runner_service.py +31 -5
  65. fides/api/service/privacy_request/request_service.py +4 -2
  66. fides/api/service/saas_request/saas_request_override_factory.py +7 -2
  67. fides/api/task/conditional_dependencies/privacy_request/__init__.py +0 -0
  68. fides/api/task/conditional_dependencies/privacy_request/convenience_fields.py +155 -0
  69. fides/api/task/conditional_dependencies/privacy_request/privacy_request_data.py +140 -0
  70. fides/api/task/conditional_dependencies/privacy_request/schemas.py +212 -0
  71. fides/api/task/conditional_dependencies/util.py +111 -0
  72. fides/api/task/execute_request_tasks.py +17 -4
  73. fides/api/task/manual/manual_task_conditional_evaluation.py +32 -27
  74. fides/api/task/manual/manual_task_graph_task.py +4 -1
  75. fides/api/task/manual/manual_task_utils.py +63 -20
  76. fides/api/tasks/__init__.py +14 -0
  77. fides/api/util/cache.py +4 -0
  78. fides/api/util/connection_util.py +2 -3
  79. fides/api/util/fuzzy_search_utils.py +7 -1
  80. fides/api/util/lock.py +13 -3
  81. fides/api/util/logger.py +58 -4
  82. fides/api/util/logger_context_utils.py +3 -1
  83. fides/api/util/memory_watchdog.py +118 -0
  84. fides/api/util/saas_config_updater.py +12 -2
  85. fides/api/worker/__init__.py +4 -0
  86. fides/common/api/scope_registry.py +6 -0
  87. fides/common/api/v1/urn_registry.py +11 -2
  88. fides/config/__init__.py +8 -2
  89. fides/config/celery_settings.py +42 -0
  90. fides/service/messaging/messaging_service.py +75 -74
  91. fides/service/privacy_request/privacy_request_service.py +151 -19
  92. fides/ui-build/static/admin/404.html +1 -1
  93. fides/ui-build/static/admin/_next/static/chunks/1099-688fa865621531cc.js +1 -0
  94. fides/ui-build/static/admin/_next/static/chunks/{1115-26393b586775ea29.js → 1115-7fd171dac1eb0e51.js} +1 -1
  95. fides/ui-build/static/admin/_next/static/chunks/1276.deb10ae2643f8463.js +1 -0
  96. fides/ui-build/static/admin/_next/static/chunks/1438-8a33b3834d6e43f3.js +1 -0
  97. fides/ui-build/static/admin/_next/static/chunks/{6148-59a59d5c5925344f.js → 1533-84e250d1f26e6d7d.js} +1 -1
  98. fides/ui-build/static/admin/_next/static/chunks/1821-c1daa160f492aacf.js +1 -0
  99. fides/ui-build/static/admin/_next/static/chunks/1840-359ee056e4cf6629.js +1 -0
  100. fides/ui-build/static/admin/_next/static/chunks/{1975.afe8cad52f904fcf.js → 1975.bef017bc80e2012c.js} +1 -1
  101. fides/ui-build/static/admin/_next/static/chunks/{2040-7eed8491ca7276ed.js → 2040-70972e15960d9afe.js} +1 -1
  102. fides/ui-build/static/admin/_next/static/chunks/2121.321b0fd3932164d4.js +1 -0
  103. fides/ui-build/static/admin/_next/static/chunks/{2397-083fc511acb6105d.js → 2397-3434603a97f3f5d6.js} +1 -1
  104. fides/ui-build/static/admin/_next/static/chunks/2921-49ed0ed897832958.js +1 -0
  105. fides/ui-build/static/admin/_next/static/chunks/3150-da5406b80d25fe6d.js +1 -0
  106. fides/ui-build/static/admin/_next/static/chunks/3214-90ce0a366b0f461a.js +1 -0
  107. fides/ui-build/static/admin/_next/static/chunks/3377-02bf9780fd383d94.js +1 -0
  108. fides/ui-build/static/admin/_next/static/chunks/3615-5e2d062d684b8fa1.js +1 -0
  109. fides/ui-build/static/admin/_next/static/chunks/3655-5e1ba5dd68b5ec48.js +1 -0
  110. fides/ui-build/static/admin/_next/static/chunks/3729-31ff8ba51491bf21.js +1 -0
  111. fides/ui-build/static/admin/_next/static/chunks/3872-cff30ca0844fe2b1.js +1 -0
  112. fides/ui-build/static/admin/_next/static/chunks/3931-8bedde156fe83564.js +1 -0
  113. fides/ui-build/static/admin/_next/static/chunks/{401-7c345d019bb9bcbd.js → 401-582d9970d89deefe.js} +1 -1
  114. fides/ui-build/static/admin/_next/static/chunks/4093-7e47408c28de5375.js +1 -0
  115. fides/ui-build/static/admin/_next/static/chunks/{4259.d1507e0db19cbed7.js → 4259.05038c9b78467244.js} +1 -1
  116. fides/ui-build/static/admin/_next/static/chunks/4322-f6aeff6880726c83.js +1 -0
  117. fides/ui-build/static/admin/_next/static/chunks/4339-04a715ab07122744.js +1 -0
  118. fides/ui-build/static/admin/_next/static/chunks/4496-ccbce2459174e0d6.js +1 -0
  119. fides/ui-build/static/admin/_next/static/chunks/454-d5c2c84f1a14e4f1.js +1 -0
  120. fides/ui-build/static/admin/_next/static/chunks/4589-c1d83c6a8dab4d30.js +1 -0
  121. fides/ui-build/static/admin/_next/static/chunks/4809-a8f4a108a42f53ed.js +1 -0
  122. fides/ui-build/static/admin/_next/static/chunks/4903-19c0bc07a956dfa8.js +1 -0
  123. fides/ui-build/static/admin/_next/static/chunks/4910-d990773601f794c1.js +1 -0
  124. fides/ui-build/static/admin/_next/static/chunks/{5185-e7f8b81dd3dfbe0b.js → 5185-96423702fba70ced.js} +1 -1
  125. fides/ui-build/static/admin/_next/static/chunks/5258-4e308cca01d59367.js +1 -0
  126. fides/ui-build/static/admin/_next/static/chunks/5487-5c3501754bf027ba.js +1 -0
  127. fides/ui-build/static/admin/_next/static/chunks/549-1bdc3e6f3264c020.js +1 -0
  128. fides/ui-build/static/admin/_next/static/chunks/5505-43b9c39491b88e08.js +1 -0
  129. fides/ui-build/static/admin/_next/static/chunks/{5783-21775c232dce7af7.js → 5783-016dfcee8e49bf61.js} +1 -1
  130. fides/ui-build/static/admin/_next/static/chunks/5826-4db99ea4e5077911.js +1 -0
  131. fides/ui-build/static/admin/_next/static/chunks/590-be447cacf12419dd.js +1 -0
  132. fides/ui-build/static/admin/_next/static/chunks/6084-91badbc6569a0efb.js +1 -0
  133. fides/ui-build/static/admin/_next/static/chunks/6344-026cb323c1d49926.js +1 -0
  134. fides/ui-build/static/admin/_next/static/chunks/6362-ba0e12f2fc4cad94.js +1 -0
  135. fides/ui-build/static/admin/_next/static/chunks/{6853-de9905d28e5b19b3.js → 6853-882889659769d7b4.js} +1 -1
  136. fides/ui-build/static/admin/_next/static/chunks/6882-bb1b469d7d7f5335.js +1 -0
  137. fides/ui-build/static/admin/_next/static/chunks/6954-0dcf22a9aabe39c5.js +1 -0
  138. fides/ui-build/static/admin/_next/static/chunks/7170-46db82bb5b55e856.js +1 -0
  139. fides/ui-build/static/admin/_next/static/chunks/7218-2ace8c82e3e7eb74.js +1 -0
  140. fides/ui-build/static/admin/_next/static/chunks/{7245-c9bc628d078c2170.js → 7245-1cdafb35f289861b.js} +1 -1
  141. fides/ui-build/static/admin/_next/static/chunks/7630-7f75ab7b8df42eb3.js +1 -0
  142. fides/ui-build/static/admin/_next/static/chunks/7654-2e9a8be02e41769a.js +1 -0
  143. fides/ui-build/static/admin/_next/static/chunks/{8212-393420e5a9751791.js → 8212-348ddd2b6933db70.js} +1 -1
  144. fides/ui-build/static/admin/_next/static/chunks/9014-eeae6f581158e645.js +1 -0
  145. fides/ui-build/static/admin/_next/static/chunks/{5596-29a7c8322530b7cf.js → 9195-da717d324917b049.js} +3 -3
  146. fides/ui-build/static/admin/_next/static/chunks/9450-b7b7bb1d755ecf57.js +1 -0
  147. fides/ui-build/static/admin/_next/static/chunks/{9676.7d029a5383595b69.js → 9676.1f395eeb9cc34968.js} +1 -1
  148. fides/ui-build/static/admin/_next/static/chunks/{9826-a737a9956c1d0905.js → 9826-1078e46f3ac0b688.js} +1 -1
  149. fides/ui-build/static/admin/_next/static/chunks/9911-ece086f2230e34f0.js +1 -0
  150. fides/ui-build/static/admin/_next/static/chunks/pages/{404-eb019192ce498f32.js → 404-800be6996aaa999c.js} +1 -1
  151. fides/ui-build/static/admin/_next/static/chunks/pages/{_app-ee588a308812715d.js → _app-de4b578c904df772.js} +70 -70
  152. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/{manual-7081e0e49f67716c.js → manual-f12020b82dd4bd1a.js} +1 -1
  153. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/{multiple-a188f84239f4b2a8.js → multiple-a911b7990371704d.js} +1 -1
  154. fides/ui-build/static/admin/_next/static/chunks/pages/{add-systems-ee9df33ebd471099.js → add-systems-ad585b79953c2753.js} +1 -1
  155. fides/ui-build/static/admin/_next/static/chunks/pages/consent/configure/{add-vendors-4f9cf087fcee87e6.js → add-vendors-bb263d394ca1c8fa.js} +1 -1
  156. fides/ui-build/static/admin/_next/static/chunks/pages/consent/configure-6907c368d8611c44.js +1 -0
  157. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience/{[id]-1b02a4991201b7e4.js → [id]-c32f381af358149b.js} +1 -1
  158. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience/{new-a5e738a234dadc7e.js → new-6efb3c069d8b47dd.js} +1 -1
  159. fides/ui-build/static/admin/_next/static/chunks/pages/consent/{privacy-experience-b08abefec298ccf1.js → privacy-experience-1975c529905eea9b.js} +1 -1
  160. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{[id]-8c164c4b8310214e.js → [id]-b05331178928ab52.js} +1 -1
  161. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{new-db789002d84c8829.js → new-516834e930bb0d0d.js} +1 -1
  162. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices-985717f2565f9d9d.js +1 -0
  163. fides/ui-build/static/admin/_next/static/chunks/pages/consent/{properties-5cba30eba1e97e56.js → properties-2be773e08498e40c.js} +1 -1
  164. fides/ui-build/static/admin/_next/static/chunks/pages/consent/reporting-850afb74f4192e87.js +1 -0
  165. fides/ui-build/static/admin/_next/static/chunks/pages/{consent-614af0a2c2ba966c.js → consent-b63d1e395d879b86.js} +1 -1
  166. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn]-5b28f0f674ea87bd.js +1 -0
  167. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]-676177e2f3c9c2a2.js +1 -0
  168. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects-794906929efb8e1d.js +1 -0
  169. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/resources/[resourceUrn]-3ccbf7c0d06507b9.js +1 -0
  170. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/resources-81d1b50585468fb0.js +1 -0
  171. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog-1ea0b24d306b1e67.js +1 -0
  172. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/datastore/[monitorId]-d4861a4a218bb65a.js +1 -0
  173. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/infrastructure/[monitorId]-66bd265044daf97d.js +1 -0
  174. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/infrastructure-c9c79fa8576a4f77.js +1 -0
  175. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/website/[monitorId]/[systemId]-60cacc3232c2eead.js +1 -0
  176. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/website/[monitorId]-437bd64a3016de36.js +1 -0
  177. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center-8349248c2da970a6.js +1 -0
  178. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/activity-6919a1d6cadaa46b.js +1 -0
  179. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/detection/{[resourceUrn]-b072cf25aefc98f6.js → [resourceUrn]-1a50d421897d3da1.js} +1 -1
  180. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{detection-fd3e8817d8e6dee4.js → detection-49509414a15e8393.js} +1 -1
  181. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/discovery/{[resourceUrn]-146624cf59792bf7.js → [resourceUrn]-1a1bb80b586d0c0f.js} +1 -1
  182. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{discovery-9695cc9c85592ec5.js → discovery-49de61df1e8e7fba.js} +1 -1
  183. fides/ui-build/static/admin/_next/static/chunks/pages/datamap-c2719f5cff20c0f8.js +1 -0
  184. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]/{[...subfieldNames]-5f88280db168083e.js → [...subfieldNames]-415015aebab60436.js} +1 -1
  185. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/{[collectionName]-bfbcf19c28c794ae.js → [collectionName]-5accb09715b5122d.js} +1 -1
  186. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]-aebecca1d8ec5f98.js +1 -0
  187. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/new-9551a82ddec9f909.js +1 -0
  188. fides/ui-build/static/admin/_next/static/chunks/pages/dataset-72f8fe47beef0f09.js +1 -0
  189. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/[id]-3a8aa3f633528e88.js +1 -0
  190. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/new-87512616f35ec6da.js +1 -0
  191. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection-2f1bf4eac7aa55fd.js +1 -0
  192. fides/ui-build/static/admin/_next/static/chunks/pages/{fides-js-docs-1f4335dca5c09860.js → fides-js-docs-5235760b3e508d7d.js} +1 -1
  193. fides/ui-build/static/admin/_next/static/chunks/pages/{index-1343fa525a206571.js → index-8d67cd2872cb682a.js} +1 -1
  194. fides/ui-build/static/admin/_next/static/chunks/pages/integrations/[id]-7a631df29cd0e31a.js +1 -0
  195. fides/ui-build/static/admin/_next/static/chunks/pages/integrations-ea3bc43cdaf273de.js +1 -0
  196. fides/ui-build/static/admin/_next/static/chunks/pages/new-privacy-requests-5d8632bba1b81cd4.js +1 -0
  197. fides/ui-build/static/admin/_next/static/chunks/pages/notifications/digests/{[id]-63b3be660fb12c0f.js → [id]-92e01822ecde8fb8.js} +1 -1
  198. fides/ui-build/static/admin/_next/static/chunks/pages/notifications/digests/{new-d3b577962dd33266.js → new-1256cf6d3f6794e0.js} +1 -1
  199. fides/ui-build/static/admin/_next/static/chunks/pages/notifications/digests-0daac00911d27617.js +1 -0
  200. fides/ui-build/static/admin/_next/static/chunks/pages/notifications/providers/{[key]-720cde29f81db47f.js → [key]-2d976fe5e8ba0a3a.js} +1 -1
  201. fides/ui-build/static/admin/_next/static/chunks/pages/notifications/providers/{new-3668866076b53016.js → new-7766ba497b863740.js} +1 -1
  202. fides/ui-build/static/admin/_next/static/chunks/pages/notifications/providers-f2880d2ed4734270.js +1 -0
  203. fides/ui-build/static/admin/_next/static/chunks/pages/notifications/templates/{[id]-8063dceb32310c85.js → [id]-669f585c3458faff.js} +1 -1
  204. fides/ui-build/static/admin/_next/static/chunks/pages/notifications/templates/{add-template-4931c70bee62232f.js → add-template-c79e7724e4bc3899.js} +1 -1
  205. fides/ui-build/static/admin/_next/static/chunks/pages/notifications/templates-891654e8dc13965c.js +1 -0
  206. fides/ui-build/static/admin/_next/static/chunks/pages/{notifications-93af719dab3bd053.js → notifications-40c8148244c5d347.js} +1 -1
  207. fides/ui-build/static/admin/_next/static/chunks/pages/poc/ant-components-1e86f3e28bd23ed6.js +1 -0
  208. fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/AntForm-9b7bd8c38f02c091.js +1 -0
  209. fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/FormikAntFormItem-b18a53a940cf9e19.js +1 -0
  210. fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/FormikControlled-6d028d7450e77578.js +1 -0
  211. fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/FormikField-8399083ee2cd8cc2.js +1 -0
  212. fides/ui-build/static/admin/_next/static/chunks/pages/poc/forms-0a910125cdb2b3b8.js +1 -0
  213. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/[id]-acc90b6f7fe915cb.js +1 -0
  214. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/storage-bbc42026f2685438.js +1 -0
  215. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/{configure-fa82cffba448ccd8.js → configure-c08ca6ad21c99799.js} +1 -1
  216. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests-77c2db582f8823bc.js +1 -0
  217. fides/ui-build/static/admin/_next/static/chunks/pages/properties/{[id]-bc1c289647e52c48.js → [id]-74ccea4868408e3d.js} +1 -1
  218. fides/ui-build/static/admin/_next/static/chunks/pages/properties/{add-property-cbfaa23d96f5ed0b.js → add-property-7d9f09bfe9d44dfc.js} +1 -1
  219. fides/ui-build/static/admin/_next/static/chunks/pages/{properties-a15a3fd0ed88f39c.js → properties-cd77bc30672bb1fa.js} +1 -1
  220. fides/ui-build/static/admin/_next/static/chunks/pages/reporting/datamap-cc3bd9540132d5ed.js +1 -0
  221. fides/ui-build/static/admin/_next/static/chunks/pages/sandbox/privacy-notices-7ce7d720107ab4b5.js +1 -0
  222. fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent/[configuration_id]/{[purpose_id]-19de0024418a4924.js → [purpose_id]-ae789892343c24f5.js} +1 -1
  223. fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent-13ee1b331ced0846.js +1 -0
  224. fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields/[id]-ee4e43692336a330.js +1 -0
  225. fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields/new-ca51d794abfcbf25.js +1 -0
  226. fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields-ecd1dc5db8e81409.js +1 -0
  227. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{domain-records-3b87002753b23ca5.js → domain-records-df06f7e2f668c540.js} +1 -1
  228. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{domains-aacd9d0ad47082d4.js → domains-da0c77bd510c6c51.js} +1 -1
  229. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{email-templates-3cdd0b39901190ba.js → email-templates-950b0c115bf673d8.js} +1 -1
  230. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{locations-61076eedbfd137b9.js → locations-7e36cb4756973a9d.js} +1 -1
  231. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{organization-b07b11d6002f8c8c.js → organization-a0e5ed486d24ccf3.js} +1 -1
  232. fides/ui-build/static/admin/_next/static/chunks/pages/settings/privacy-requests-3cdebafb6870d3ad.js +1 -0
  233. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{regulations-b7c0d3b1b754e70f.js → regulations-159aad34f1021320.js} +1 -1
  234. fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]/test-datasets-dbd1a64090ad0946.js +1 -0
  235. fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/{[id]-59c89489fa32a4cb.js → [id]-7d042497a57a3788.js} +1 -1
  236. fides/ui-build/static/admin/_next/static/chunks/pages/systems-21f1172e73dfc9f0.js +1 -0
  237. fides/ui-build/static/admin/_next/static/chunks/pages/taxonomy-e553161e6338ee48.js +1 -0
  238. fides/ui-build/static/admin/_next/static/chunks/pages/user-management/{new-7dce2916cc589c54.js → new-efc4af017723e57a.js} +1 -1
  239. fides/ui-build/static/admin/_next/static/chunks/pages/user-management/profile/{[id]-5d5a68e555d18693.js → [id]-b152319d67372ee4.js} +1 -1
  240. fides/ui-build/static/admin/_next/static/chunks/pages/user-management-dba8692491f7935e.js +1 -0
  241. fides/ui-build/static/admin/_next/static/chunks/webpack-09ca52bc7beb0b43.js +1 -0
  242. fides/ui-build/static/admin/_next/static/css/3d66bb57ddcb0978.css +1 -0
  243. fides/ui-build/static/admin/_next/static/css/a1e4be9466578ef1.css +1 -0
  244. fides/ui-build/static/admin/_next/static/l2vgGUHB04Fi4oEVlVMrc/_buildManifest.js +1 -0
  245. fides/ui-build/static/admin/add-systems/manual.html +1 -1
  246. fides/ui-build/static/admin/add-systems/multiple.html +1 -1
  247. fides/ui-build/static/admin/add-systems.html +1 -1
  248. fides/ui-build/static/admin/consent/configure/add-vendors.html +1 -1
  249. fides/ui-build/static/admin/consent/configure.html +1 -1
  250. fides/ui-build/static/admin/consent/privacy-experience/[id].html +1 -1
  251. fides/ui-build/static/admin/consent/privacy-experience/new.html +1 -1
  252. fides/ui-build/static/admin/consent/privacy-experience.html +1 -1
  253. fides/ui-build/static/admin/consent/privacy-notices/[id].html +1 -1
  254. fides/ui-build/static/admin/consent/privacy-notices/new.html +1 -1
  255. fides/ui-build/static/admin/consent/privacy-notices.html +1 -1
  256. fides/ui-build/static/admin/consent/properties.html +1 -1
  257. fides/ui-build/static/admin/consent/reporting.html +1 -1
  258. fides/ui-build/static/admin/consent.html +1 -1
  259. fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn].html +1 -1
  260. fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn].html +1 -1
  261. fides/ui-build/static/admin/data-catalog/[systemId]/projects.html +1 -1
  262. fides/ui-build/static/admin/data-catalog/[systemId]/resources/[resourceUrn].html +1 -1
  263. fides/ui-build/static/admin/data-catalog/[systemId]/resources.html +1 -1
  264. fides/ui-build/static/admin/data-catalog.html +1 -1
  265. fides/ui-build/static/admin/data-discovery/action-center/datastore/[monitorId].html +1 -1
  266. fides/ui-build/static/admin/data-discovery/action-center/datastore.html +1 -1
  267. fides/ui-build/static/admin/data-discovery/action-center/infrastructure/[monitorId].html +1 -0
  268. fides/ui-build/static/admin/data-discovery/action-center/infrastructure.html +1 -0
  269. fides/ui-build/static/admin/data-discovery/action-center/website/[monitorId]/[systemId].html +1 -1
  270. fides/ui-build/static/admin/data-discovery/action-center/website/[monitorId].html +1 -1
  271. fides/ui-build/static/admin/data-discovery/action-center/website.html +1 -1
  272. fides/ui-build/static/admin/data-discovery/action-center.html +1 -1
  273. fides/ui-build/static/admin/data-discovery/activity.html +1 -1
  274. fides/ui-build/static/admin/data-discovery/detection/[resourceUrn].html +1 -1
  275. fides/ui-build/static/admin/data-discovery/detection.html +1 -1
  276. fides/ui-build/static/admin/data-discovery/discovery/[resourceUrn].html +1 -1
  277. fides/ui-build/static/admin/data-discovery/discovery.html +1 -1
  278. fides/ui-build/static/admin/datamap.html +1 -1
  279. fides/ui-build/static/admin/dataset/[datasetId]/[collectionName]/[...subfieldNames].html +1 -1
  280. fides/ui-build/static/admin/dataset/[datasetId]/[collectionName].html +1 -1
  281. fides/ui-build/static/admin/dataset/[datasetId].html +1 -1
  282. fides/ui-build/static/admin/dataset/new.html +1 -1
  283. fides/ui-build/static/admin/dataset.html +1 -1
  284. fides/ui-build/static/admin/datastore-connection/[id].html +1 -1
  285. fides/ui-build/static/admin/datastore-connection/new.html +1 -1
  286. fides/ui-build/static/admin/datastore-connection.html +1 -1
  287. fides/ui-build/static/admin/index.html +1 -1
  288. fides/ui-build/static/admin/integrations/[id].html +1 -1
  289. fides/ui-build/static/admin/integrations.html +1 -1
  290. fides/ui-build/static/admin/lib/fides-ext-gpp.js +1 -1
  291. fides/ui-build/static/admin/lib/fides-headless.js +1 -1
  292. fides/ui-build/static/admin/lib/fides-preview.js +1 -1
  293. fides/ui-build/static/admin/lib/fides-tcf.js +2 -2
  294. fides/ui-build/static/admin/lib/fides.js +2 -2
  295. fides/ui-build/static/admin/login/[provider].html +1 -1
  296. fides/ui-build/static/admin/login.html +1 -1
  297. fides/ui-build/static/admin/new-privacy-requests.html +1 -1
  298. fides/ui-build/static/admin/notifications/digests/[id].html +1 -1
  299. fides/ui-build/static/admin/notifications/digests/new.html +1 -1
  300. fides/ui-build/static/admin/notifications/digests.html +1 -1
  301. fides/ui-build/static/admin/notifications/providers/[key].html +1 -1
  302. fides/ui-build/static/admin/notifications/providers/new.html +1 -1
  303. fides/ui-build/static/admin/notifications/providers.html +1 -1
  304. fides/ui-build/static/admin/notifications/templates/[id].html +1 -1
  305. fides/ui-build/static/admin/notifications/templates/add-template.html +1 -1
  306. fides/ui-build/static/admin/notifications/templates.html +1 -1
  307. fides/ui-build/static/admin/notifications.html +1 -1
  308. fides/ui-build/static/admin/poc/ant-components.html +1 -1
  309. fides/ui-build/static/admin/poc/form-experiments/AntForm.html +1 -1
  310. fides/ui-build/static/admin/poc/form-experiments/FormikAntFormItem.html +1 -1
  311. fides/ui-build/static/admin/poc/form-experiments/FormikControlled.html +1 -1
  312. fides/ui-build/static/admin/poc/form-experiments/FormikField.html +1 -1
  313. fides/ui-build/static/admin/poc/form-experiments/FormikSpreadField.html +1 -1
  314. fides/ui-build/static/admin/poc/forms.html +1 -1
  315. fides/ui-build/static/admin/privacy-requests/[id].html +1 -1
  316. fides/ui-build/static/admin/privacy-requests/configure/storage.html +1 -1
  317. fides/ui-build/static/admin/privacy-requests/configure.html +1 -1
  318. fides/ui-build/static/admin/privacy-requests.html +1 -1
  319. fides/ui-build/static/admin/properties/[id].html +1 -1
  320. fides/ui-build/static/admin/properties/add-property.html +1 -1
  321. fides/ui-build/static/admin/properties.html +1 -1
  322. fides/ui-build/static/admin/reporting/datamap.html +1 -1
  323. fides/ui-build/static/admin/sandbox/privacy-notices.html +1 -1
  324. fides/ui-build/static/admin/settings/about/alpha.html +1 -1
  325. fides/ui-build/static/admin/settings/about.html +1 -1
  326. fides/ui-build/static/admin/settings/consent/[configuration_id]/[purpose_id].html +1 -1
  327. fides/ui-build/static/admin/settings/consent.html +1 -1
  328. fides/ui-build/static/admin/settings/custom-fields/[id].html +1 -1
  329. fides/ui-build/static/admin/settings/custom-fields/new.html +1 -1
  330. fides/ui-build/static/admin/settings/custom-fields.html +1 -1
  331. fides/ui-build/static/admin/settings/domain-records.html +1 -1
  332. fides/ui-build/static/admin/settings/domains.html +1 -1
  333. fides/ui-build/static/admin/settings/email-templates.html +1 -1
  334. fides/ui-build/static/admin/settings/locations.html +1 -1
  335. fides/ui-build/static/admin/settings/organization.html +1 -1
  336. fides/ui-build/static/admin/settings/privacy-requests.html +1 -1
  337. fides/ui-build/static/admin/settings/regulations.html +1 -1
  338. fides/ui-build/static/admin/systems/configure/[id]/test-datasets.html +1 -1
  339. fides/ui-build/static/admin/systems/configure/[id].html +1 -1
  340. fides/ui-build/static/admin/systems.html +1 -1
  341. fides/ui-build/static/admin/taxonomy.html +1 -1
  342. fides/ui-build/static/admin/user-management/new.html +1 -1
  343. fides/ui-build/static/admin/user-management/profile/[id].html +1 -1
  344. fides/ui-build/static/admin/user-management.html +1 -1
  345. fides/api/service/privacy_request/dsr_package/templates/welcome.html +0 -66
  346. fides/ui-build/static/admin/_next/static/chunks/1099-31f9d973bc287df8.js +0 -1
  347. fides/ui-build/static/admin/_next/static/chunks/1316-2606e19807c08aa5.js +0 -1
  348. fides/ui-build/static/admin/_next/static/chunks/1437-8b1f6c8797c68bfd.js +0 -1
  349. fides/ui-build/static/admin/_next/static/chunks/1467-8808ec8836e033f9.js +0 -1
  350. fides/ui-build/static/admin/_next/static/chunks/155-f6302d32cba4cab6.js +0 -1
  351. fides/ui-build/static/admin/_next/static/chunks/1817-2d5cf537a2992c79.js +0 -1
  352. fides/ui-build/static/admin/_next/static/chunks/2121.1de2fa060eae34aa.js +0 -1
  353. fides/ui-build/static/admin/_next/static/chunks/2921-34a43f2f8f5e5e69.js +0 -1
  354. fides/ui-build/static/admin/_next/static/chunks/2962-342ad1b4ab402ded.js +0 -1
  355. fides/ui-build/static/admin/_next/static/chunks/3377-988ac2f3a2e8d5d4.js +0 -1
  356. fides/ui-build/static/admin/_next/static/chunks/3446-f40c352c43ac950c.js +0 -1
  357. fides/ui-build/static/admin/_next/static/chunks/346-aa3b88efb85f2e28.js +0 -1
  358. fides/ui-build/static/admin/_next/static/chunks/3696-6f90e41a53d22920.js +0 -1
  359. fides/ui-build/static/admin/_next/static/chunks/3700-f695f2f6b8251971.js +0 -1
  360. fides/ui-build/static/admin/_next/static/chunks/3772-9f1713f9d5f97a10.js +0 -1
  361. fides/ui-build/static/admin/_next/static/chunks/3873-d18e47b327445db5.js +0 -1
  362. fides/ui-build/static/admin/_next/static/chunks/3923-f0a85dc5c3684fa0.js +0 -1
  363. fides/ui-build/static/admin/_next/static/chunks/4496-4ff19366c597ec16.js +0 -1
  364. fides/ui-build/static/admin/_next/static/chunks/4817-1f3e6ea38625d8d5.js +0 -1
  365. fides/ui-build/static/admin/_next/static/chunks/5163-e682273cd76a7d07.js +0 -1
  366. fides/ui-build/static/admin/_next/static/chunks/5258-62d6bc19add60aa6.js +0 -1
  367. fides/ui-build/static/admin/_next/static/chunks/5279-bd6cccabdd6ca447.js +0 -1
  368. fides/ui-build/static/admin/_next/static/chunks/549-28537a6de666944b.js +0 -1
  369. fides/ui-build/static/admin/_next/static/chunks/5619-9b50cec521203989.js +0 -1
  370. fides/ui-build/static/admin/_next/static/chunks/5643-3459282d296a3c59.js +0 -1
  371. fides/ui-build/static/admin/_next/static/chunks/6277-3759894435cb8569.js +0 -1
  372. fides/ui-build/static/admin/_next/static/chunks/6315-e2fb5ea77179a871.js +0 -1
  373. fides/ui-build/static/admin/_next/static/chunks/6344-ca66a6e10d128179.js +0 -1
  374. fides/ui-build/static/admin/_next/static/chunks/6419-11d67f7fd4e2f247.js +0 -1
  375. fides/ui-build/static/admin/_next/static/chunks/6954-84789a4e4fb04eb9.js +0 -1
  376. fides/ui-build/static/admin/_next/static/chunks/699-8ca44b0de9fa20f0.js +0 -1
  377. fides/ui-build/static/admin/_next/static/chunks/7059-2bb7c38578549703.js +0 -1
  378. fides/ui-build/static/admin/_next/static/chunks/7202.3febe9e89640c712.js +0 -1
  379. fides/ui-build/static/admin/_next/static/chunks/7476-a02d970ea4d3f7d0.js +0 -1
  380. fides/ui-build/static/admin/_next/static/chunks/7488-cf92601852e3c509.js +0 -1
  381. fides/ui-build/static/admin/_next/static/chunks/7630-a11610c2b31ab2ca.js +0 -1
  382. fides/ui-build/static/admin/_next/static/chunks/7773-9ae233109bc64ec2.js +0 -1
  383. fides/ui-build/static/admin/_next/static/chunks/796-e36d610066135f8c.js +0 -1
  384. fides/ui-build/static/admin/_next/static/chunks/8011-75af8b480fa114e6.js +0 -1
  385. fides/ui-build/static/admin/_next/static/chunks/8373-22b4d20e8cc06b3a.js +0 -1
  386. fides/ui-build/static/admin/_next/static/chunks/8765-f622a35b40a7ec63.js +0 -1
  387. fides/ui-build/static/admin/_next/static/chunks/9037-453224ba3ee65b13.js +0 -1
  388. fides/ui-build/static/admin/_next/static/chunks/9046-d9c6498368b993d1.js +0 -1
  389. fides/ui-build/static/admin/_next/static/chunks/9187-7438242f0d380bb0.js +0 -1
  390. fides/ui-build/static/admin/_next/static/chunks/9278-08cc704317fe535e.js +0 -1
  391. fides/ui-build/static/admin/_next/static/chunks/9330-f753636a31c4ea04.js +0 -1
  392. fides/ui-build/static/admin/_next/static/chunks/9682-d1a3afa1394f8304.js +0 -1
  393. fides/ui-build/static/admin/_next/static/chunks/9729-fcf6ff4e3534e4a8.js +0 -1
  394. fides/ui-build/static/admin/_next/static/chunks/9899-d6437facac926264.js +0 -1
  395. fides/ui-build/static/admin/_next/static/chunks/9965-25621dd507e0cfd6.js +0 -1
  396. fides/ui-build/static/admin/_next/static/chunks/pages/consent/configure-9af75caefc74eaca.js +0 -1
  397. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices-6528eb24165aceb6.js +0 -1
  398. fides/ui-build/static/admin/_next/static/chunks/pages/consent/reporting-11f1683aa15e1a62.js +0 -1
  399. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn]-32bd7a7c990e5bf6.js +0 -1
  400. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]-d60761c20382b259.js +0 -1
  401. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects-07e7d38ce34e1e6c.js +0 -1
  402. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/resources/[resourceUrn]-b07a0707f8c2ec0d.js +0 -1
  403. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/resources-aed94957009eb3fd.js +0 -1
  404. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog-127c114dd8f102ed.js +0 -1
  405. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/datastore/[monitorId]-5aa7a9fa96160de8.js +0 -1
  406. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/website/[monitorId]/[systemId]-899bf30dde8b3292.js +0 -1
  407. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/website/[monitorId]-73085f50abb775c0.js +0 -1
  408. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center-823d0dd77e66585b.js +0 -1
  409. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/activity-24a82e07a0008516.js +0 -1
  410. fides/ui-build/static/admin/_next/static/chunks/pages/datamap-3b100c44ea9e3988.js +0 -1
  411. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]-6fbe2b584a509226.js +0 -1
  412. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/new-3d1e48f4b95d7f6b.js +0 -1
  413. fides/ui-build/static/admin/_next/static/chunks/pages/dataset-d3c6ecf7f29bea6e.js +0 -1
  414. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/[id]-0a4aa42be2da0255.js +0 -1
  415. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/new-14313e441a13192c.js +0 -1
  416. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection-f139d1ce26404f30.js +0 -1
  417. fides/ui-build/static/admin/_next/static/chunks/pages/integrations/[id]-b2d3d28b10a758e6.js +0 -1
  418. fides/ui-build/static/admin/_next/static/chunks/pages/integrations-a733e5d7c3ce9bb8.js +0 -1
  419. fides/ui-build/static/admin/_next/static/chunks/pages/new-privacy-requests-df0c95e408c54c7e.js +0 -1
  420. fides/ui-build/static/admin/_next/static/chunks/pages/notifications/digests-aed9afd988a48acf.js +0 -1
  421. fides/ui-build/static/admin/_next/static/chunks/pages/notifications/providers-36a0ac36062abd02.js +0 -1
  422. fides/ui-build/static/admin/_next/static/chunks/pages/notifications/templates-a14c876b49422597.js +0 -1
  423. fides/ui-build/static/admin/_next/static/chunks/pages/poc/ant-components-9cfb469de7b4aeab.js +0 -1
  424. fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/AntForm-e715cc654fb6a5cd.js +0 -1
  425. fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/FormikAntFormItem-72ae299bcb6adae6.js +0 -1
  426. fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/FormikControlled-2337f8c81a766eb0.js +0 -1
  427. fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/FormikField-0af454f55494f6fa.js +0 -1
  428. fides/ui-build/static/admin/_next/static/chunks/pages/poc/forms-d1b90ffa996fbd89.js +0 -1
  429. fides/ui-build/static/admin/_next/static/chunks/pages/poc/table-migration-19724b9e0581b96d.js +0 -1
  430. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/[id]-cdd3754289a28317.js +0 -1
  431. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/storage-cc41ae605f2b55ae.js +0 -1
  432. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests-6e4c535b6d614596.js +0 -1
  433. fides/ui-build/static/admin/_next/static/chunks/pages/reporting/datamap-632b3ee563d070f2.js +0 -1
  434. fides/ui-build/static/admin/_next/static/chunks/pages/sandbox/privacy-notices-afe921f6e2a526fb.js +0 -1
  435. fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent-5b6807dced8d03c5.js +0 -1
  436. fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields/[id]-8634aae3259def37.js +0 -1
  437. fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields/new-2d9dcca17965dc57.js +0 -1
  438. fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields-7dce52bfc1b2652c.js +0 -1
  439. fides/ui-build/static/admin/_next/static/chunks/pages/settings/privacy-requests-084a2b4431d35322.js +0 -1
  440. fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]/test-datasets-b72d36243a0a545c.js +0 -1
  441. fides/ui-build/static/admin/_next/static/chunks/pages/systems-cfaa37a0df83674b.js +0 -1
  442. fides/ui-build/static/admin/_next/static/chunks/pages/taxonomy-56a5434969cbe9ba.js +0 -1
  443. fides/ui-build/static/admin/_next/static/chunks/pages/user-management-e6a211d8a0401086.js +0 -1
  444. fides/ui-build/static/admin/_next/static/chunks/webpack-c2c11809187b9f84.js +0 -1
  445. fides/ui-build/static/admin/_next/static/css/d41a048a166d50e4.css +0 -1
  446. fides/ui-build/static/admin/_next/static/css/d78390d6134d8328.css +0 -1
  447. fides/ui-build/static/admin/_next/static/wCNFtmYQhEDMaMPeBB4BM/_buildManifest.js +0 -1
  448. fides/ui-build/static/admin/poc/table-migration.html +0 -1
  449. {ethyca_fides-2.73.2b0.dist-info → ethyca_fides-2.76.0rc2.dist-info}/WHEEL +0 -0
  450. {ethyca_fides-2.73.2b0.dist-info → ethyca_fides-2.76.0rc2.dist-info}/entry_points.txt +0 -0
  451. {ethyca_fides-2.73.2b0.dist-info → ethyca_fides-2.76.0rc2.dist-info}/licenses/LICENSE +0 -0
  452. {ethyca_fides-2.73.2b0.dist-info → ethyca_fides-2.76.0rc2.dist-info}/top_level.txt +0 -0
  453. /fides/ui-build/static/admin/_next/static/{wCNFtmYQhEDMaMPeBB4BM → l2vgGUHB04Fi4oEVlVMrc}/_ssgManifest.js +0 -0
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4903],{77867:function(e,s,t){var a=t(24246),i=t(39158);s.Z=e=>{let{connected:s,...t}=e,n="red.500";return null==s?n="gray.300":s&&(n="green.500"),(0,a.jsx)(i.xuv,{width:"12px",height:"12px",borderRadius:"6px",backgroundColor:n,...t})}},30952:function(e,s,t){t.d(s,{f:function(){return o}});var a=t(24246),i=t(66726),n=t.n(i),r=t(27378),l=t(26917);let o=e=>{let{value:s,onChange:t,placeholder:i,...o}=e,[d,c]=(0,r.useState)(s);(0,r.useEffect)(()=>{c(s||"")},[s]);let u=n()(t,500),p=(0,r.useCallback)(e=>{c(e),u(e)},[]);return(0,a.jsx)(l.Z,{value:d,onChange:p,onClear:()=>{c(""),t("")},placeholder:i,...o})}},59301:function(e,s,t){var a=t(24246);let{Link:i}=t(39158).AntTypography;s.Z=e=>{let{children:s,...t}=e;return(0,a.jsx)(i,{target:"_blank",rel:"noopener noreferrer",...t,children:s})}},19904:function(e,s,t){t.d(s,{Tg:function(){return r}});var a=t(24246),i=t(16134),n=t(31793);let r=e=>(0,i.C)(n.uu).filter(s=>e.includes(s)).length>0;s.ZP=e=>{let{scopes:s,children:t}=e;return r(s)?(0,a.jsx)(a.Fragment,{children:t}):null}},71248:function(e,s,t){t.d(s,{A:function(){return o}});var a=t(24246),i=t(34090),n=t(46782),r=t(97181),l=t(40324);let o=e=>{var s,t;let{name:o,fieldSchema:d,isRequired:c,layout:u="stacked",secretsSchema:p,validate:m}=e,h=(null===(t=d.allOf)||void 0===t?void 0:null===(s=t[0])||void 0===s?void 0:s.$ref)&&d.allOf[0].$ref!==n.j?null==p?void 0:p.definitions[d.allOf[0].$ref.replace("#/definitions/","")]:void 0,x=!!(null==h?void 0:h.enum)||d.options,g="boolean"===d.type,y=()=>{var e;if((null===(e=d.allOf)||void 0===e?void 0:e[0].$ref)===n.j)return"Enter dataset.collection.field"};return(0,a.jsx)(i.gN,{id:o,name:o,validate:m,children:e=>{let{field:s}=e;if(x){var t,i,n;let e=null!==(n=null==h?void 0:null===(t=h.enum)||void 0===t?void 0:t.map(e=>({label:e,value:e})))&&void 0!==n?n:null===(i=d.options)||void 0===i?void 0:i.map(e=>({label:e,value:e}));return(0,a.jsx)(r.d,{name:s.name,id:s.name,label:d.title,isRequired:c,tooltip:d.description,layout:u,options:e,mode:d.multiselect?"multiple":void 0},s.name)}return g?(0,a.jsx)(r.d,{name:s.name,id:s.name,label:d.title,isRequired:c,tooltip:d.description,layout:u,options:[{label:"False",value:"false"},{label:"True",value:"true"}]},s.name):(0,a.jsx)(l.j0,{...s,label:d.title,tooltip:d.description,isRequired:c,type:d.sensitive?"password":"text",placeholder:y(),autoComplete:"off",color:"gray.700",variant:u})}},o)}},46782:function(e,s,t){t.d(s,{j:function(){return n},l:function(){return r}});var a=t(30454),i=t.n(a);let n="#/definitions/FidesDatasetReference",r=e=>{let s=(e,s,t)=>{let a;return(void 0===s||""===s||void 0===s)&&(a="".concat(e," is required")),t===n&&((null==s?void 0:s.includes("."))?s.split(".").length<3&&(a="Dataset reference must include at least three parts"):a="Dataset reference must be dot delimited"),a},t=s=>{var t,a;return null!==(a=null==e?void 0:null===(t=e.required)||void 0===t?void 0:t.includes(s))&&void 0!==a&&a};return{validateField:s,isRequiredField:t,getFieldValidation:(e,a)=>{if(t(e))return e=>{var t;return s(a.title,e,null===(t=a.allOf)||void 0===t?void 0:t[0].$ref)}},preprocessValues:s=>{let t=i()(s);return e&&Object.keys(e.properties).forEach(s=>{var a,i;if((null===(a=e.properties[s].allOf)||void 0===a?void 0:a[0].$ref)===n){let e=null===(i=t.secrets[s])||void 0===i?void 0:i.split(".");e&&(t.secrets[s]={dataset:e.shift(),field:e.join("."),direction:"from"})}"WebsiteSchema"!==e.title||"URL"!==e.properties[s].title||t.secrets[s].startsWith("http://")||t.secrets[s].startsWith("https://")||(t.secrets[s]="https://".concat(t.secrets[s])),"integer"===e.properties[s].type&&"string"==typeof t.secrets[s]&&""===t.secrets[s].trim()&&(t.secrets[s]=void 0)}),t}}}},16220:function(e,s,t){t.d(s,{V:function(){return n}});var a=t(25980),i=t(77830);let n=()=>({systemOrDatamapRoute:(0,a.hz)().plus?i.oG:i.So})},90111:function(e,s,t){var a=t(24246),i=t(39158);s.Z=e=>{let{children:s,...t}=e;return(0,a.jsx)(i.xuv,{p:4,mb:4,border:"1px solid",borderColor:"gray.200",bgColor:"gray.50",borderRadius:"md",...t,children:s})}},44553:function(e,s,t){t.d(s,{Z:function(){return g}});var a=t(24246),i=t(39158),n=t(27378),r=t(45277),l=t(16125),o=t(812),d=t(46628),c=t(20682),u=t(54427),p=t(52253),m=t(78780);let{reducer:h}=(0,u.oM)({name:"connectorTemplate",initialState:{},reducers:{}}),{useRegisterConnectorTemplateMutation:x}=m.u.injectEndpoints({endpoints:e=>({registerConnectorTemplate:e.mutation({query:e=>{let s=new FormData;return s.append("file",e),{url:"".concat(p.o4,"/register"),method:"POST",body:s}},invalidatesTags:()=>["Connection Type"]})})});var g=e=>{let{isOpen:s,onClose:t,testId:u="connector-template-modal"}=e,p=(0,l.I0)(),[m,h]=(0,n.useState)(null),g=(0,i.pmc)(),{getRootProps:y,getInputProps:f,isDragActive:_}=(0,r.uI)({onDrop:e=>{var s;if("zip"!==(null===(s=e[0].name.split(".").pop())||void 0===s?void 0:s.toLowerCase())){g((0,d.Vo)("Only zip files are allowed."));return}h(e[0])}}),[b,{isLoading:v}]=x(),{refetch:j}=(0,c.$I)({search:""},{skip:!1}),k=async()=>{if(m)try{var e;await b(m).unwrap(),g((0,d.t5)("Integration template uploaded successfully."));let{data:s}=await j();p((0,c.fP)(null!==(e=null==s?void 0:s.items)&&void 0!==e?e:[])),t()}catch(e){g((0,d.Vo)((0,o.e$)(e)))}finally{h(null)}};return(0,a.jsxs)(i.u_l,{isOpen:s,onClose:t,size:"2xl",children:[(0,a.jsx)(i.ZAr,{}),(0,a.jsxs)(i.hzk,{textAlign:"left",p:2,"data-testid":u,children:[(0,a.jsx)(i.xBx,{children:"Upload integration template"}),(0,a.jsxs)(i.fef,{children:[(0,a.jsx)(i.xvT,{fontSize:"sm",mb:4,children:"Drag and drop your integration template zip file here, or click to browse your files."}),(0,a.jsxs)(i.xuv,{...y(),bg:_?"gray.100":"gray.50",border:"2px dashed",borderColor:_?"gray.300":"gray.200",borderRadius:"md",cursor:"pointer",minHeight:"150px",display:"flex",alignItems:"center",justifyContent:"center",textAlign:"center",children:[(0,a.jsx)("input",{...f()}),m?(0,a.jsx)(i.xvT,{children:m.name}):_?(0,a.jsx)(i.xvT,{children:"Drop the file here..."}):(0,a.jsx)(i.xvT,{children:"Click or drag and drop your file here."})]}),(0,a.jsx)(i.xvT,{fontSize:"sm",mt:4,children:"An integration template zip file must include a SaaS config and dataset, but may also contain an icon (.svg) as an optional file."})]}),(0,a.jsxs)(i.mzw,{className:"flex w-full justify-end gap-2",children:[(0,a.jsx)(i.wpx,{onClick:t,"data-testid":"cancel-btn",disabled:v,children:"Cancel"}),(0,a.jsx)(i.wpx,{type:"primary",htmlType:"submit",disabled:!m||v,onClick:k,"data-testid":"submit-btn",children:"Submit"})]})]})]})}},73183:function(e,s,t){var a=t(24246),i=t(39158);t(27378);var n=t(14207);s.Z=e=>{let{connection_key:s,disabled:t,name:r,access_type:l,connection_type:o,isSwitch:d}=e,{isOpen:c,onOpen:u,onClose:p}=(0,i.qY0)(),[m,h]=(0,n.XX)(),x=async()=>{await m({key:s,name:r,disabled:!t,access:l,connection_type:o}),p()},g=()=>{h.isLoading||p()};return(0,a.jsxs)(a.Fragment,{children:[d?(0,a.jsxs)(i.kCb,{justifyContent:"space-between",alignItems:"center",children:[(0,a.jsx)(i.xvT,{fontSize:"sm",children:"Enable integration"}),(0,a.jsx)(i.rAg,{className:"ml-2",checked:!t,onChange:()=>u()})]}):(0,a.jsx)(i.sNh,{_focus:{color:"complimentary.500",bg:"gray.100"},onClick:u,children:(0,a.jsx)(i.xvT,{fontSize:"sm",children:t?"Enable":"Disable"})}),(0,a.jsxs)(i.u_l,{isCentered:!0,isOpen:c,onClose:g,children:[(0,a.jsx)(i.ZAr,{}),(0,a.jsxs)(i.hzk,{children:[(0,a.jsxs)(i.xBx,{children:[t?"Enable":"Disable"," Connection"]}),(0,a.jsx)(i.olH,{}),(0,a.jsx)(i.fef,{pb:6,children:(0,a.jsx)(i.Kqy,{direction:"column",spacing:"15px",children:(0,a.jsxs)(i.xvT,{color:"gray.600",fontSize:"sm",fontWeight:"sm",lineHeight:"20px",children:[t?"Enabling":"Disabling"," a connection may impact any privacy request that is currently in progress. Do you wish to proceed?"]})})}),(0,a.jsxs)(i.mzw,{className:"flex gap-4",children:[(0,a.jsx)(i.wpx,{onClick:g,className:"w-1/2",children:"Cancel"}),(0,a.jsxs)(i.wpx,{onClick:x,loading:h.isLoading,className:"w-1/2",children:[t?"Enable":"Disable"," Connection"]})]})]})]})]})}},8627:function(e,s,t){t.d(s,{s:function(){return l}});var a=t(24246),i=t(39158),n=t(77867),r=t(16394);let l=e=>{let{succeeded:s,timestamp:t}=e,l=t?(0,r.p6)(t):"";return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.Z,{connected:s}),(0,a.jsx)(i.xvT,{color:"gray.500",fontSize:"xs",fontWeight:"semibold",lineHeight:"16px",ml:"10px",children:t?"Last tested on ".concat(l):"This connection has not been tested yet"})]})}},27259:function(e,s,t){var a=t(24246),i=t(39158),n=t(34090);s.Z=e=>{let{disabled:s=!1,isRequired:t=!1,label:r,placeholder:l,type:o="text",...d}=e,{id:c,autoFocus:u}=d,[p,m]=(0,n.U$)(d);return(0,a.jsxs)(i.NIc,{display:"flex",isRequired:t,isInvalid:!!(m.error&&m.touched),children:[r&&(0,a.jsx)(i.lXp,{color:"gray.900",fontSize:"14px",fontWeight:"semibold",htmlFor:c,minWidth:"150px",children:r}),(0,a.jsxs)(i.gCW,{align:"flex-start",w:"inherit",children:["number"===o&&(0,a.jsxs)(i.Y2U,{allowMouseWheel:!0,color:"gray.700",defaultValue:0,min:0,size:"sm",children:[(0,a.jsx)(i.zuI,{...p,autoComplete:"off",autoFocus:u}),(0,a.jsxs)(i.FiK,{children:[(0,a.jsx)(i.WQu,{}),(0,a.jsx)(i.Y_d,{})]})]}),"text"===o&&(0,a.jsx)(i.IIB,{...p,autoComplete:"off",autoFocus:u,color:"gray.700",isDisabled:s,placeholder:l,size:"sm"}),"textarea"===o&&(0,a.jsx)(i.gxH,{...p,autoComplete:"off",autoFocus:u,color:"gray.700",placeholder:l,resize:"none",size:"sm",value:p.value||""}),(0,a.jsx)(i.J1D,{children:m.error})]})]})}},19812:function(e,s,t){t.d(s,{t:function(){return l}});var a=t(17245),i=t(14207),n=t(27378),r=t(41966);let l=e=>{var s,t,l;let{connectionConfig:o}=e,[d]=(0,i.S6)(),{data:c}=(0,i.Eg)(null!==(t=null==o?void 0:o.key)&&void 0!==t?t:""),u=null!==(l=null==c?void 0:null===(s=c.items)||void 0===s?void 0:s.map(e=>e.fides_key))&&void 0!==l?l:[],p=u.map(e=>({label:e,value:e})),{data:m}=(0,r.LH)({onlyUnlinkedDatasets:!0,minimal:!0}),h=(0,n.useMemo)(()=>{var e;return null!==(e=null==m?void 0:m.map(e=>({value:e.fides_key,label:"".concat(e.name," (").concat(e.fides_key,")")||0})))&&void 0!==e?e:[]},[m]),{errorAlert:x,successAlert:g}=(0,a.VY)();return{dropdownOptions:[...p,...h],initialDatasets:u,patchConnectionDatasetConfig:async function(e,s){var t,a,i;let{showSuccessAlert:n=!0}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=null!==(i=null===(t=e.dataset)||void 0===t?void 0:t.map(e=>({fides_key:e,ctl_dataset_fides_key:e})))&&void 0!==i?i:[],l=await d({connection_key:s,dataset_pairs:r}).unwrap();(null===(a=l.failed)||void 0===a?void 0:a.length)>0?x(l.failed[0].message):n&&g("Dataset successfully updated!")}}}},72774:function(e,s,t){t.d(s,{Z:function(){return r}});var a=t(24246),i=t(39158),n=e=>{let{title:s,description:t,button:n}=e;return(0,a.jsxs)(i.Ugi,{backgroundColor:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",py:4,px:6,"data-testid":"empty-state",children:[(0,a.jsx)(i.iid,{alignSelf:"start",color:"blue.400",mt:.5}),(0,a.jsxs)(i.xuv,{flexGrow:1,children:[(0,a.jsx)(i.xvT,{fontWeight:"bold",fontSize:"sm",mb:1,children:s}),(0,a.jsx)(i.xvT,{fontSize:"sm",color:"gray.600",lineHeight:"5",children:t})]}),n]})},r=()=>(0,a.jsx)(i.xuv,{mb:"6",maxW:"720px","data-testid":"locked-for-GVL-notice",children:(0,a.jsx)(n,{title:"This system is part of the TCF Global Vendor List (GVL)",description:(0,a.jsxs)(a.Fragment,{children:["As a result, certain fields are not editable as they come directly from Fides Compass and the Global Vendor List (GVL). In some cases, where the legal basis has been declared to be flexible, you may update the legal basis for particular data uses."," ",(0,a.jsx)(i.rUS,{href:"https://fid.es/tcf_gvl",isExternal:!0,color:"complimentary.500",children:"For more information on the Global Vendor List, click here."})]})})})},69525:function(e,s,t){t.d(s,{U:function(){return a}});let a=e=>{let s=e.data_categories.flatMap(e=>e.split(","));return{data_use:e.data_use,data_categories:s,features:e.features,legal_basis_for_processing:e.legal_basis_for_processing,flexible_legal_basis_for_processing:e.flexible_legal_basis_for_processing,retention_period:e.retention_period?e.retention_period:""}}},21103:function(e,s,t){t.d(s,{Z:function(){return s0}});var a,i,n,r,l=t(24246),o=t(39158),d=t(79894),c=t.n(d),u=t(86677),p=t.n(u),m=t(27378),h=t(16134),x=t(25980),g=t(45938),y=t(16220),f=t(77830),_=t(84720),b=t(14908),v=t(46628),j=t(26089),k=t(19904),w=t(16394),C=t(20682),S=t(41337);let D=e=>{let{connectionConfig:s,hiddenTypes:t=[]}=e,a=(0,h.C)(C.pw),{data:i}=(0,C.$I)(a),n=(0,m.useMemo)(()=>(null==i?void 0:i.items)||[],[i]),[r,l]=(0,m.useState)(),o=(0,m.useMemo)(()=>[...n].filter(e=>!t.includes(e.identifier)).sort((e,s)=>e.human_readable>s.human_readable?1:-1),[n,t]),d=(0,m.useMemo)(()=>{let e=new Map;return null==o||o.map(s=>e.set(s.human_readable,{value:s})),e},[o]),c=(0,m.useMemo)(()=>{var e;return(null===(e=n.find(e=>e.identifier===(null==s?void 0:s.connection_type)||(null==s?void 0:s.saas_config)&&e.identifier===(null==s?void 0:s.saas_config.type)))||void 0===e?void 0:e.type)||"ethyca"},[s,n]);return(0,m.useMemo)(()=>{let e=n.find(e=>(null==s?void 0:s.saas_config)&&e.identifier===(null==s?void 0:s.saas_config.type)||e.identifier===(null==s?void 0:s.connection_type));e&&l(e)},[s,n]),{dropDownOptions:d,selectedValue:r,setSelectedValue:l,systemType:c}};var T=e=>{var s;let{disabled:t,hasClear:a=!0,label:i,list:n,onChange:r,selectedValue:d}=e,c=(0,m.useRef)(null),[u,p]=(0,m.useState)(!1),[h,x]=(0,m.useState)(""),g=()=>{p(!1)},y=null===(s=[...n].find(e=>{let[,s]=e;return s.value.identifier===(null==d?void 0:d.identifier)}))||void 0===s?void 0:s[0],f=(0,m.useCallback)(e=>{(0===e.target.value.length||e.target.value.length>1)&&(x(e.target.value),setTimeout(()=>{var e;return null===(e=c.current)||void 0===e?void 0:e.focus()},0))},[]),_=(0,m.useMemo)(()=>(0,w.Ds)(f,100),[f]),b=(0,m.useMemo)(()=>[...n].filter(e=>e[0].toLowerCase().includes(h.toLowerCase())),[n,h]);return(0,l.jsxs)(o.v2r,{isLazy:!0,onClose:g,onOpen:()=>{p(!0)},strategy:"fixed",matchWidth:!0,children:[(0,l.jsx)(o.j2t,{"aria-label":null!=y?y:i,as:o.wpx,color:y?"complimentary.500":void 0,disabled:t,icon:(0,l.jsx)(o.mCO,{}),iconPosition:"end",className:"!bg-transparent text-left hover:bg-transparent active:bg-transparent","data-testid":"select-dropdown-btn",width:"272px",children:(0,l.jsx)(o.xvT,{noOfLines:1,style:{wordBreak:"break-all"},children:null!=y?y:i})}),u?(0,l.jsxs)(o.qyq,{id:"MENU_LIST",lineHeight:"1rem",p:"0",maxHeight:"400px",overflow:"hidden","data-testid":"select-dropdown-list",width:"272px",children:[(0,l.jsx)(o.xuv,{px:"8px",mt:2,children:(0,l.jsxs)(o.BZy,{size:"sm",children:[(0,l.jsx)(o.Z8_,{pointerEvents:"none",children:(0,l.jsx)(o.PTu,{color:"gray.300",h:"17px",w:"17px"})}),(0,l.jsx)(o.IIB,{"data-testid":"input-search-integrations",ref:c,autoComplete:"off",autoFocus:!0,borderRadius:"md",name:"search",onChange:_,placeholder:"Search integrations",size:"sm",type:"search"})]})}),a&&(0,l.jsx)(o.kCb,{borderBottom:"1px",borderColor:"gray.200",cursor:"auto",p:"8px",children:(0,l.jsx)(o.wpx,{onClick:()=>{r(void 0),x(""),g()},size:"small",children:"Clear"})}),(0,l.jsx)(o.xuv,{overflowY:"auto",maxHeight:"272px",children:b.map(e=>{let[s,t]=e;return(0,l.jsx)(o.esZ,{title:t.toolTip,placement:"rightTop",mouseEnterDelay:.5,children:(0,l.jsxs)(o.sNh,{color:d===t.value?"complimentary.500":void 0,isDisabled:t.isDisabled,onClick:()=>r(t.value),paddingTop:"10px",paddingRight:"8.5px",paddingBottom:"10px",paddingLeft:"8.5px",_focus:{bg:"gray.100"},children:[(0,l.jsx)(S.ZP,{data:(0,S.PT)(t.value)}),(0,l.jsx)(o.xvT,{ml:2,fontSize:"0.75rem",noOfLines:1,wordBreak:"break-all",children:s})]})},s)})})]}):null]})},A=t(17245),E=t(1315),q=t(60240),I=t(84306),R=t(14207),z=t(59301),F=(0,o.IUT)({displayName:"RightArrow",viewBox:"0 0 16 16",d:"M10.7814 7.33312L7.20541 3.75712L8.14808 2.81445L13.3334 7.99979L8.14808 13.1851L7.20541 12.2425L10.7814 8.66645H2.66675V7.33312H10.7814Z"}),L=t(19812),Z=e=>{let{status:s,failure_reason:t}=e;if("error"===s){let e="Connection test failed.";return t&&(e+=" ".concat(t)),(0,l.jsx)(o.xvT,{"data-testid":"toast-error-msg",children:e})}return(0,l.jsx)(o.xvT,{"data-testid":"toast-success-msg",children:"Connection test was successful"})},W=t(8627),P=t(32885),O=t(65450),N=t(40324),V=t(34090),M=t(55484),U=t(97181),B=t(57072),K=t(5785),H=t(27259);let Y=e=>{let{isSubmitting:s=!1,onCancelClick:t}=e;return(0,l.jsxs)(o.hE2,{size:"sm",spacing:"8px",variant:"outline",children:[(0,l.jsx)(o.zxk,{onClick:t,variant:"outline",children:"Cancel"}),(0,l.jsx)(o.zxk,{bg:"primary.800",color:"white",isDisabled:s,isLoading:s,loadingText:"Submitting",size:"sm",variant:"solid",type:"submit",_active:{bg:"primary.500"},_disabled:{opacity:"inherit"},_hover:{bg:"primary.400"},children:"Save"})]})};var G=e=>{let{data:s=[],isSubmitting:t=!1,onSaveClick:a,onCancel:i}=e,{isLoading:n}=(0,B.MO)(),r=(0,h.C)(K.qb),{errorAlert:d}=(0,A.VY)();return n?null:(0,l.jsx)(V.J9,{enableReinitialize:!0,initialValues:{fields:s.length>0?s:[{pii_field:"",dsr_package_label:"",data_categories:[]}]},onSubmit:(e,s)=>{if(new Set(e.fields.map(e=>e.pii_field)).size<e.fields.length){d("PII Field must be unique");return}a(e,s)},validateOnBlur:!1,validateOnChange:!1,validationSchema:M.Ry({fields:M.IX().of(M.Ry().shape({pii_field:M.Z_().required("PII Field is required").min(1,"PII Field must have at least one character").max(200,"PII Field has a maximum of 200 characters").label("PII Field"),dsr_package_label:M.Z_().required("DSR Package Label is required").min(1,"DSR Package Label must have at least one character").max(200,"DSR Package Label has a maximum of 200 characters").label("DSR Package Label"),data_categories:M.IX(M.Z_()).label("Data Categories")}))}),children:e=>(0,l.jsx)(V.l0,{style:{marginTop:0},noValidate:!0,children:(0,l.jsx)(o.gCW,{align:"stretch",children:(0,l.jsx)(V.F2,{name:"fields",render:s=>{let{fields:a}=e.values;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(o.Ugi,{color:"gray.900",flex:"1",fontSize:"14px",fontWeight:"semibold",lineHeight:"20px",mb:"6px",spacing:"24px",children:[(0,l.jsx)(o.xuv,{w:"416px",children:"PII Field"}),(0,l.jsx)(o.xuv,{w:"416px",children:"DSR Package Label"}),(0,l.jsx)(o.xuv,{w:"416px",children:"Data Categories"}),(0,l.jsx)(o.xuv,{visibility:"hidden",children:(0,l.jsx)(o.lr0,{})})]}),(0,l.jsx)(o.xuv,{children:a&&a.length>0?a.map((e,t)=>(0,l.jsxs)(o.Ugi,{mt:t>0?"12px":void 0,spacing:"24px",align:"flex-start",children:[(0,l.jsx)(o.xuv,{minH:"57px",w:"416px",children:(0,l.jsx)(H.Z,{autoFocus:0===t,isRequired:!0,name:"fields.".concat(t,".pii_field")})}),(0,l.jsx)(o.xuv,{minH:"57px",w:"416px",children:(0,l.jsx)(H.Z,{isRequired:!0,name:"fields.".concat(t,".dsr_package_label")})}),(0,l.jsx)(o.xuv,{minH:"57px",w:"416px",children:(0,l.jsx)(U.d,{name:"fields.".concat(t,".data_categories"),options:r.map(e=>({value:e.fides_key,label:e.fides_key})),isRequired:!0,mode:"multiple"})}),(0,l.jsx)(o.xuv,{h:"57px",visibility:t>0?"visible":"hidden",children:(0,l.jsx)(o.lr0,{onClick:()=>s.remove(t),_hover:{cursor:"pointer"}})})]},t)):null}),(0,l.jsx)(o.wpx,{className:"my-6",onClick:()=>{s.push({pii_field:"",dsr_package_label:"",data_categories:[]})},children:"Add new PII field"}),(0,l.jsx)(Y,{isSubmitting:t,onCancelClick:i})]})}})})})})},$=e=>{let{connectionConfig:s}=e,t=(0,m.useRef)(!1),{successAlert:a}=(0,A.VY)(),{handleError:i}=(0,A.HK)(),[n,r]=(0,m.useState)(!1),[d,c]=(0,m.useState)([]),{isOpen:u,onOpen:p,onClose:h}=(0,o.qY0)(),{data:x,isFetching:g,isLoading:y,isSuccess:f}=(0,R.QV)(s?s.key:"",{skip:!s}),[_]=(0,R.jF)(),[b]=(0,R._d)(),v=async(e,t)=>{try{r(!0);let t={connection_key:s.key,body:{...e}};d.length>0?await b(t).unwrap():await _(t).unwrap(),a("DSR customization ".concat(d.length>0?"updated":"added","!"))}catch(e){i(e)}finally{r(!1)}};(0,m.useEffect)(()=>(t.current=!0,f&&x&&c(x.fields),()=>{t.current=!1}),[x,f]);let j=(0,l.jsx)(o.wpx,{disabled:!s||n,loading:n,onClick:p,children:"Customize DSR"});return(0,l.jsxs)(l.Fragment,{children:[s?j:(0,l.jsx)(o.esZ,{title:"Save an Integration first to customize the DSR",placement:"top",children:j}),(0,l.jsxs)(o.u_l,{isCentered:!0,isOpen:u,size:"lg",onClose:h,children:[(0,l.jsx)(o.ZAr,{}),(0,l.jsxs)(o.hzk,{minWidth:"775px",children:[(0,l.jsx)(o.xBx,{children:"Customize DSR"}),(0,l.jsx)(o.olH,{}),(0,l.jsx)(o.fef,{pb:6,children:(0,l.jsxs)(o.gCW,{align:"stretch",gap:"16px",children:[(0,l.jsx)(o.xuv,{color:"gray.700",fontSize:"14px",children:'Customize your PII fields to create a friendly label name for your privacy request packages. This "Package Label" is the label your user will see in their downloaded package.'}),(g||y)&&(0,l.jsx)(o.M5Y,{children:(0,l.jsx)(o.$jN,{})}),t.current&&!y?(0,l.jsx)(G,{data:d,isSubmitting:n,onSaveClick:v,onCancel:h}):null]})})]})]})]})},J=t(98784),Q=t.n(J),X=t(71248),ee=t(46782),es=t(73183),et=t(95492),ea=e=>{let{onDelete:s,deleteResult:t}=e,{isOpen:a,onOpen:i,onClose:n}=(0,o.qY0)(),r=()=>{(!t.isLoading&&t.isSuccess||!t.isLoading&&t.isUninitialized)&&n()};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(o.LZC,{}),(0,l.jsxs)(o.kCb,{alignItems:"center",children:[(0,l.jsx)(o.xvT,{fontSize:"sm",children:"Delete integration"}),(0,l.jsx)(o.wpx,{"aria-label":"Delete integration",icon:(0,l.jsx)(et.l,{}),disabled:t.isLoading,onClick:i,className:"ml-2"})]})]}),(0,l.jsxs)(o.u_l,{isCentered:!0,isOpen:a,onClose:r,children:[(0,l.jsx)(o.ZAr,{}),(0,l.jsxs)(o.hzk,{children:[(0,l.jsx)(o.xBx,{children:"Delete integration"}),(0,l.jsx)(o.olH,{}),(0,l.jsx)(o.fef,{pb:6,children:(0,l.jsx)(o.Kqy,{direction:"column",spacing:"15px",children:(0,l.jsx)(o.xvT,{color:"gray.600",fontSize:"sm",fontWeight:"sm",lineHeight:"20px",children:"Deleting an integration may impact any privacy request that is currently in progress. Do you wish to proceed?"})})}),(0,l.jsxs)(o.mzw,{children:[(0,l.jsx)(o.wpx,{onClick:r,className:"w-1/2",children:"Cancel"}),(0,l.jsx)(o.wpx,{onClick:()=>{s()},loading:t.isLoading,type:"primary",className:"w-1/2",children:"Delete integration"})]})]})]})]})},ei=t(99792);let en=(e,s)=>{let t={...e};return s&&Object.entries(s.properties).forEach(e=>{let[s,a]=e;if("secrets"in t||(t.secrets={}),"integer"===a.type)t.secrets[s]=a.default?Number(a.default):0;else{var i;t.secrets[s]=null!==(i=a.default)&&void 0!==i?i:""}}),t},er=(e,s)=>{let t=e.replace(/[^A-Za-z0-9\-_]/g,"");return t.includes(s.identifier)||(t+="_".concat(s.identifier)),s.type===ei.Z.SAAS&&(t+="_api"),t},el=e=>{let{secretsSchema:s,defaultValues:t,isSubmitting:a=!1,isAuthorizing:i=!1,onSaveClick:n,onTestConnectionClick:r,onTestDatasetsClick:d,onAuthorizeConnectionClick:c,testButtonLabel:u="Test integration",connectionOption:p,connectionConfig:m,initialDatasets:h,datasetDropdownOptions:g,isCreatingConnectionConfig:y,onDelete:f,deleteResult:_}=e,[b,{isLoading:v,isFetching:j}]=(0,R.h2)(),{plus:k}=(0,x.hz)(),{getFieldValidation:w,preprocessValues:C}=(0,ee.l)(s),S=async(e,s)=>{Object.keys(await s.validateForm()).length>0||c(C(e))},D=async e=>{Object.keys(await e.validateForm()).length>0||r(await b(m.key))},T=(null==m?void 0:m.disabled)||!1;return(0,l.jsx)(V.J9,{enableReinitialize:!0,initialValues:(()=>{let e={...t};if(null==m?void 0:m.key){var a,i;return e.name=null!==(i=m.name)&&void 0!==i?i:"",e.description=m.description,e.instance_key=m.connection_type===q.Rj.SAAS?null===(a=m.saas_config)||void 0===a?void 0:a.fides_key:m.key,e.enabled_actions=(m.enabled_actions||[]).map(e=>e.toString()),e.secrets=m.secrets?Q().cloneDeep(m.secrets):{},e.dataset=h,(null==s?void 0:s.properties)&&Object.entries(s.properties).forEach(t=>{var a,i;let[n,r]=t;if((null===(a=r.allOf)||void 0===a?void 0:a[0].$ref)===ee.j){let s=e.secrets[n];s&&(e.secrets[n]="".concat(s.dataset,".").concat(s.field))}if((null===(i=s.properties[n])||void 0===i?void 0:i.type)==="boolean"){let s=e.secrets[n];"boolean"==typeof s&&(e.secrets[n]=s.toString())}}),e}return Q().isEmpty(e.enabled_actions)&&(e.enabled_actions=p.supported_actions.map(e=>e.toString())),en(e,s)})(),onSubmit:(e,s)=>{n(C(e),s)},validateOnBlur:!0,children:e=>{var t;let n=!e.dirty&&(null==m?void 0:m.authorized);return(0,l.jsx)(V.l0,{children:(0,l.jsxs)(o.gCW,{align:"stretch",gap:"16px",children:[(0,l.jsxs)("div",{className:"flex flex-row",children:[m?(0,l.jsx)(es.Z,{connection_key:null==m?void 0:m.key,disabled:T,connection_type:null==m?void 0:m.connection_type,access_type:null==m?void 0:m.access,name:null!==(t=null==m?void 0:m.name)&&void 0!==t?t:m.key,isSwitch:!0}):null,m?(0,l.jsx)(ea,{onDelete:f,deleteResult:_}):null]}),!!(null==m?void 0:m.key)&&(0,l.jsx)(N.j0,{name:"instance_key",id:"instance_key",label:"Integration identifier",isRequired:!0,disabled:!!(null==m?void 0:m.key),tooltip:"The fides_key will allow fidesops to associate dataset field references appropriately. Must be a unique alphanumeric value with no spaces (underscores allowed) to represent this integration."},"instance_key"),s?Object.entries(s.properties).map(e=>{var t;let[a,i]=e;return"advanced_settings"===a?null:(0,l.jsx)(X.A,{name:"secrets.".concat(a),fieldSchema:i,isRequired:null===(t=s.required)||void 0===t?void 0:t.includes(a),secretsSchema:s,validate:w(a,i),layout:"inline"},"secrets.".concat(a))}):null,k&&(0,l.jsx)(U.d,{name:"enabled_actions",id:"enabled_actions",label:"Request types",isRequired:!0,layout:"inline",mode:"multiple",tooltip:"The request types that are supported for this integration",options:p.supported_actions.map(e=>({label:Q().upperFirst(e),value:e}))},"enabled_actions"),q.Zi.DATABASE===p.type&&!y&&(0,l.jsx)(U.d,{name:"dataset",id:"dataset",tooltip:"Select datasets to associate with this integration",label:"Datasets",options:g,layout:"inline",mode:"multiple"}),(0,l.jsxs)("div",{className:"flex gap-4",children:[!p.authorization_required||n?(0,l.jsx)(o.wpx,{disabled:!(null==m?void 0:m.key)||a||_.isLoading,loading:v||j,onClick:()=>D(e),"data-testid":"test-connection-button",children:u}):null,k&&q.Zi.DATABASE===p.type&&!Q().isEmpty(h)&&(0,l.jsx)(o.wpx,{onClick:()=>d(),children:"Test datasets"}),p.authorization_required&&!n?(0,l.jsx)(o.wpx,{loading:i,onClick:()=>S(e.values,e),children:"Authorize integration"}):null,p.type===q.Zi.MANUAL?(0,l.jsx)($,{connectionConfig:m}):null,(0,l.jsx)(o.LZC,{}),(0,l.jsx)(o.wpx,{type:"primary",disabled:_.isLoading||a,loading:a,htmlType:"submit","data-testid":"save-integration-btn",children:"Save"})]})]})})}})},eo=async(e,s,t,a,i)=>{let n={description:e.description||"",instance_key:er(a,t),saas_connector_type:t.identifier,secrets:{},...e.enabled_actions?{enabled_actions:e.enabled_actions}:{}},r={systemFidesKey:a,connectionConfig:n};return Object.entries(s.properties).forEach(s=>{r.connectionConfig.secrets[s[0]]=e.secrets[s[0]]}),await i(r).unwrap()},ed=async(e,s,t,a,i)=>{var n;let r=a?a.key:er(t,s),l={access:q.uv.WRITE,connection_type:s.type===q.Zi.SAAS?s.type:s.identifier,description:e.description,key:r,...e.enabled_actions?{enabled_actions:e.enabled_actions}:{}},o=await i({systemFidesKey:t,connectionConfigs:[l]}).unwrap();if((null===(n=o.failed)||void 0===n?void 0:n.length)>0){let e=o.failed[0].message;throw Object.assign(Error(e),{data:{detail:e}})}return o},ec=async(e,s,t,a,i)=>{let n={systemFidesKey:t,secrets:{}};return(Object.entries(s.properties).forEach(s=>{s[0]in a&&e.secrets[s[0]]===a[s[0]]||(n.secrets[s[0]]=e.secrets[s[0]])}),0===Object.keys(n.secrets).length)?Promise.resolve():await i(n).unwrap()},eu=e=>{let{secretsSchema:s,systemFidesKey:t,connectionOption:a,connectionConfig:i,setSelectedConnectionOption:n}=e,{successAlert:r}=(0,I.V)(),{handleError:l}=(0,A.HK)(),[o,d]=(0,m.useState)(!1),[c,u]=(0,m.useState)(!1),{dropdownOptions:p,patchConnectionDatasetConfig:h,initialDatasets:g}=(0,L.t)({connectionConfig:i}),[y]=(0,R.NG)(),[f]=(0,P.IB)(),[_]=(0,R.rO)(),[b]=(0,O.Zh)(),[v]=(0,O.qd)(),[j]=(0,P.kg)(),[k,w]=(0,O._w)(),{plus:C}=(0,x.hz)(),S=(0,m.useMemo)(()=>{var e;return null!==(e=null==i?void 0:i.secrets)&&void 0!==e?e:{}},[i]);return{isSubmitting:o,isAuthorizing:c,handleSubmit:async e=>{let n=!i;try{if(d(!0),a.type===q.Zi.SAAS&&n)i=(await eo(e,s,a,t,C?f:y)).connection;else{let n=await ed(e,a,t,i,C?j:v);i||a.type!==q.Zi.DATABASE||(i=n.succeeded[0]),a.type!==q.Zi.MANUAL&&await ec(e,s,t,S,b)}i&&e.dataset&&a.type===q.Zi.DATABASE&&await h(e,i.key,{showSuccessAlert:!1}),r("Integration successfully ".concat(n?"added":"updated","!"))}catch(e){l(e)}finally{d(!1)}},handleAuthorization:async e=>{let n=!i;try{u(!0),n?i=(await eo(e,s,a,t,y)).connection:await ec(e,s,t,S,b);let r=await _(i.key).unwrap();u(!1),setTimeout(()=>{window.location.href=r},0)}catch(e){l(e)}finally{u(!1)}},datasetDropdownOptions:p,initialDatasets:g,handleDelete:async()=>{try{await k(t),n(void 0),r("Integration successfully deleted!")}catch(e){l(e)}},deleteDatastoreConnectionResult:w}},ep=e=>{let{systemFidesKey:s,connectionOption:t,connectionConfig:a,setSelectedConnectionOption:i}=e,[n,r]=(0,m.useState)(),d=(0,o.pmc)(),c=t.type===q.Zi.MANUAL,{data:u}=(0,C.n3)(t.identifier,{skip:c}),{isSubmitting:h,isAuthorizing:x,handleSubmit:g,handleAuthorization:y,datasetDropdownOptions:f,initialDatasets:_,handleDelete:b,deleteDatastoreConnectionResult:j}=eu({secretsSchema:u,systemFidesKey:s,connectionOption:t,connectionConfig:a,setSelectedConnectionOption:i});return u||t.type===q.Zi.MANUAL?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(o.xuv,{borderRadius:"6px",border:"1px",borderColor:"gray.200",backgroundColor:"gray.50",fontSize:"14px",p:4,mb:4,children:[(0,l.jsxs)("div",{children:["Connect to your ",t.human_readable," environment by providing the information below. Once you have saved the form, you may test the integration to confirm that it's working correctly."]}),t.user_guide&&(0,l.jsx)("div",{style:{marginTop:"12px"},children:(0,l.jsxs)(z.Z,{href:t.user_guide,children:["View docs for help with this integration ",(0,l.jsx)(F,{})]})})]}),(0,l.jsx)(el,{secretsSchema:u,defaultValues:{description:"",instance_key:"",name:"",dataset:[]},isSubmitting:h,isAuthorizing:x,onSaveClick:g,onTestConnectionClick:e=>{var s,t;r(e);let a=(null===(s=e.data)||void 0===s?void 0:s.test_status)==="succeeded"?"success":"error";d({...v.MA,status:a,description:(0,l.jsx)(Z,{status:a,failure_reason:null===(t=e.data)||void 0===t?void 0:t.failure_reason})})},onTestDatasetsClick:()=>{p().push("/systems/configure/".concat(s,"/test-datasets"))},onAuthorizeConnectionClick:y,connectionOption:t,connectionConfig:a,datasetDropdownOptions:f,initialDatasets:_,isCreatingConnectionConfig:!a,onDelete:b,deleteResult:j}),a?(0,l.jsxs)(o.kCb,{mt:"4",justifyContent:"between",alignItems:"center",children:[n&&n.data&&void 0!==n.fulfilledTimeStamp?(0,l.jsx)(W.s,{succeeded:"succeeded"===n.data.test_status,timestamp:n.fulfilledTimeStamp}):(0,l.jsx)(W.s,{succeeded:null==a?void 0:a.last_test_succeeded,timestamp:(null==a?void 0:a.last_test_timestamp)||""}),(0,l.jsx)(o.LZC,{})]}):null]}):null};var em=e=>{let{connectionConfigs:s,systemFidesKey:t}=e,{isOpen:a,onOpen:i,onClose:n}=(0,o.qY0)(),[r,d]=(0,m.useState)(null),{successAlert:c}=(0,A.VY)(),[u,{isLoading:p}]=(0,E.qd)(),x=(0,h.C)(C.pw),{data:g}=(0,C.$I)(x),y=(0,m.useMemo)(()=>(null==g?void 0:g.items)||[],[g]),{handleError:f}=(0,A.HK)(),_=()=>{p||(r&&d(null),n())},b=async()=>{try{if(r){var e;let s={...r,instance_key:r.connection_type===q.Rj.SAAS?null===(e=r.saas_config)||void 0===e?void 0:e.fides_key:r.key},a=y.find(e=>(null==r?void 0:r.saas_config)&&e.identifier===(null==r?void 0:r.saas_config.type)||e.identifier===(null==r?void 0:r.connection_type));(await ed(s,a,t,r,u)).succeeded[0]&&c("Integration successfully linked!"),d(null),n()}}catch(e){f(e)}};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(o.wpx,{onClick:i,children:"Link integration"}),(0,l.jsxs)(o.u_l,{isCentered:!0,isOpen:a,size:"lg",onClose:_,children:[(0,l.jsx)(o.ZAr,{}),(0,l.jsxs)(o.hzk,{children:[(0,l.jsx)(o.xBx,{children:"Unlinked Integrations"}),(0,l.jsx)(o.olH,{}),(0,l.jsx)(o.fef,{pb:6,children:(0,l.jsxs)(o.Kqy,{direction:"column",spacing:"15px",children:[(0,l.jsx)(o.xvT,{color:"gray.600",fontSize:"sm",fontWeight:"sm",lineHeight:"20px",children:"These are all the integrations that are not linked to a system. Please select an integration to link to a system."}),(0,l.jsx)(o.xuv,{maxHeight:"350px",height:"100%",overflowY:"auto",children:s.map(e=>(0,l.jsxs)(o.kCb,{flexDirection:"row",alignItems:"center",_hover:{bg:"gray.100",color:"gray.600"},bg:(null==r?void 0:r.key)===e.key?"gray.100":"unset",color:(null==r?void 0:r.key)===e.key?"gray.600":"unset",cursor:"pointer",onClick:()=>{d(e)},className:"mb-2",children:[(0,l.jsx)(S.ZP,{data:(0,S.El)(e),className:"mr-2"}),(0,l.jsx)(o.xvT,{children:e.name})]},e.key))})]})}),(0,l.jsxs)(o.mzw,{className:"flex gap-4",children:[(0,l.jsx)(o.wpx,{onClick:_,className:"w-1/2",children:"Cancel"}),(0,l.jsx)(o.wpx,{onClick:b,loading:p,disabled:!r||p,className:"w-1/2",children:"Link integration"})]})]})]})]})},eh=t(44553);let ex=[q.Rj.WEBSITE,q.Rj.TEST_WEBSITE];var eg=e=>{let{connectionConfig:s,systemFidesKey:t}=e,{dropDownOptions:a,selectedValue:i,setSelectedValue:n}=D({connectionConfig:s,hiddenTypes:ex}),r=(0,h.C)(R.dR),{data:d}=(0,R.AZ)({...r,orphaned_from_system:!0}),[c,u]=(0,m.useState)([]);(0,m.useEffect)(()=>{d&&u(d.items.filter(e=>!ex.includes(e.connection_type)))},[d]);let p=(0,o.qY0)();return(0,l.jsxs)(o.xuv,{id:"con-wrapper",px:6,children:[(0,l.jsxs)(o.kCb,{py:5,children:[(0,l.jsxs)(o.Kqy,{direction:{base:"column",lg:"row"},children:[(0,l.jsx)(T,{list:a,label:"Integration type",selectedValue:i,onChange:n,disabled:!!(s&&null!==s)}),!s&&c.length>0?(0,l.jsx)(em,{connectionConfigs:c,systemFidesKey:t}):null,(0,l.jsx)(k.ZP,{scopes:[q.Sh.CONNECTOR_TEMPLATE_REGISTER],children:(0,l.jsx)(o.wpx,{htmlType:"submit","data-testid":"upload-btn",onClick:p.onOpen,className:"ml-2",children:"Upload integration"})})]}),(0,l.jsx)(eh.Z,{isOpen:p.isOpen,onClose:p.onClose})]}),(null==i?void 0:i.type)&&[q.Zi.DATABASE,q.Zi.DATA_CATALOG,q.Zi.SAAS,q.Zi.MANUAL,q.Zi.EMAIL].includes(i.type)?(0,l.jsx)(ep,{connectionConfig:s,connectionOption:i,setSelectedConnectionOption:n,systemFidesKey:t}):null]})},ey=t(71922),ef=t(31883);let e_=e=>{let{item:s,options:t=[],onNoticeChange:a,isChild:i}=e,{external_id:n,name:r}=s,d="".concat(n,"-notice_id"),[c,,u]=(0,V.U$)(d),{setValue:p}=u;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(o.Ugi,{flexGrow:1,children:[i&&(0,l.jsx)(o.LqM,{}),(0,l.jsx)(o.lXp,{htmlFor:d,"data-testid":"consentable-item-label".concat(i?"-child":""),m:0,fontSize:"14px",fontWeight:i?"normal":"semibold",children:r})]}),(0,l.jsx)(o.WPr,{...c,id:d,allowClear:!0,placeholder:"None",options:t,onChange:e=>{p(e),a(s={...s,notice_id:e})},className:"w-full","data-testid":"consentable-item-select"})]})},eb=e=>{let{connectionKey:s,...t}=e,a=(0,o.pmc)(),{data:i,isLoading:n}=(0,P.EQ)(s),[r,{isLoading:d}]=(0,P.Am)(),c=(0,h.C)(ey.Zp),u=(0,h.C)(ey.G1),{data:p,isLoading:x}=(0,ey.J6)({page:c,size:u}),[g,y]=(0,m.useState)(),[f,_]=(0,m.useState)([]),b=(0,m.useMemo)(()=>null==g?void 0:g.reduce((e,s)=>{var t;return s.notice_id&&(e["".concat(s.external_id,"-notice_id")]=s.notice_id),(null===(t=s.children)||void 0===t?void 0:t.length)&&s.children.forEach(s=>{s.notice_id&&(e["".concat(s.external_id,"-notice_id")]=s.notice_id)}),e},{}),[g]),j=e=>{let s=e.notice_id;if(s){let e=null==p?void 0:p.items.filter(e=>e.id===s);if(null==e?void 0:e.length){var t;let s=(null===(t=e[0].children)||void 0===t?void 0:t.map(e=>e.id))||[];return f.filter(e=>s.includes(e.value))}}return f},k=async()=>{let e=await r({connectionKey:s,consentableItems:g});(0,ef.D4)(e)?a((0,v.Vo)("Failed to save bidirectional consent")):a({variant:"subtle",position:"top",duration:3e3,status:"success",isClosable:!0,description:(0,l.jsx)(o.xvT,{"data-testid":"toast-success-msg",children:"Your bidirectional consent settings have been successfully saved and applied."}),title:"Settings updated"})};if((0,m.useEffect)(()=>{i&&y(i)},[i]),(0,m.useEffect)(()=>{p&&_(p.items.map(e=>({label:e.name,value:e.id})))},[p]),n||x)return(0,l.jsx)(o.xuv,{borderWidth:"1px",borderRadius:"md",...t,children:(0,l.jsx)(o.OdW,{height:"35px"})});if(!g||!g.length||!p)return null;let w=(e,s)=>{y(g.map(t=>{if(s?t.external_id===s.external_id:t.external_id===e.external_id){if(s){var a;return{...t,children:null===(a=t.children)||void 0===a?void 0:a.map(s=>s.external_id===e.external_id?e:s)}}return e}return t}))};return(0,l.jsx)(o.xuv,{borderWidth:"1px",borderRadius:"md",...t,children:(0,l.jsx)(o.UQy,{allowMultiple:!0,"data-testid":"accordion-consent-automation",children:(0,l.jsxs)(o.Qdk,{border:"none",children:[(0,l.jsxs)(o.KFZ,{children:[(0,l.jsx)(o.xuv,{as:"span",flex:"1",textAlign:"left",children:(0,l.jsx)(o.xvT,{as:"h2",fontWeight:"semibold",fontSize:"sm",children:"Bidirectional consent"})}),(0,l.jsx)(o.XEm,{})]}),(0,l.jsxs)(o.Hk3,{p:5,fontSize:"sm","data-testid":"accordion-panel-consent-automation",children:[(0,l.jsx)(o.xvT,{mb:7,children:"Map consentable items, such as channels and subscriptions, from your integration to Fides privacy notices. This ensures that updates to consent preferences in either location remain accurate and up-to-date."}),(0,l.jsx)(V.J9,{initialValues:b||{},onSubmit:k,children:(0,l.jsxs)(V.l0,{children:[(0,l.jsx)(o.MIq,{columns:2,spacing:3,children:g.map(e=>{var s;return(0,l.jsxs)(m.Fragment,{children:[(0,l.jsx)(e_,{item:e,options:f,onNoticeChange:w}),null===(s=e.children)||void 0===s?void 0:s.map(s=>(0,l.jsx)(e_,{item:s,options:j(e),isChild:!0,onNoticeChange:s=>w(s,e)},s.external_id))]},e.external_id)})}),(0,l.jsx)(o.Ugi,{justifyContent:"flex-end",mt:3,children:(0,l.jsx)(o.wpx,{disabled:d,loading:d,type:"primary",htmlType:"submit","data-testid":"save-consent-automation",children:"Save"})})]})})]})]})})})};var ev=t(57865),ej=t(3124),ek=t.n(ej),ew=(0,o.IUT)({displayName:"NextArrow",viewBox:"0 0 12 12",d:"M6.58584 5.99999L4.11084 3.52499L4.81784 2.81799L7.99984 5.99999L4.81784 9.18199L4.11084 8.47499L6.58584 5.99999Z"}),eC=(0,o.IUT)({displayName:"PrevArrow",viewBox:"0 0 12 12",d:"M5.414 5.99999L7.889 8.47499L7.182 9.18199L4 5.99999L7.182 2.81799L7.889 3.52499L5.414 5.99999Z"});let eS=e=>{let s=new Date(e),t=navigator.language;return{formattedTime:s.toLocaleTimeString(t,{hour:"2-digit",minute:"2-digit",hour12:!0,timeZoneName:"short"}),formattedDate:s.toLocaleDateString(t,{year:"numeric",month:"long",day:"numeric"})}},eD=e=>({privacy_declarations:"data uses",ingress:"sources",egress:"destinations"})[e]||e,eT=(e,s)=>{let t=new Set([...Object.keys(e),...Object.keys(s)]),a=[],i=[],n=[];return Array.from(t).forEach(t=>{let r=eD(t),l=e[t],o=s[t];if("boolean"==typeof l||"boolean"==typeof o||"number"==typeof l||"number"==typeof o){l!==o&&n.push(r);return}!((Q().isNil(l)||Q().isEmpty(l))&&(Q().isNil(o)||Q().isEmpty(o)))&&(Q().isEqual(l,o)||(Q().isNil(l)||Q().isEmpty(l)?a.push(r):Q().isNil(o)||Q().isEmpty(o)?i.push(r):n.push(r)))}),{addedFields:a,removedFields:i,changedFields:n}},eA=e=>{let{edited_by:s,before:t,after:a,created_at:i}=e,n=[],r=[],o=[];t.custom_fields||a.custom_fields?{addedFields:n,removedFields:r,changedFields:o}=eT(t.custom_fields,a.custom_fields):{addedFields:n,removedFields:r,changedFields:o}=eT(t,a);let d=[];if(n.length>0&&d.push(["added ",(0,l.jsx)("b",{children:n.join(", ")})]),r.length>0&&d.push(["removed ",(0,l.jsx)("b",{children:r.join(", ")})]),o.length>0&&d.push(["changed ",(0,l.jsx)("b",{children:o.join(", ")})]),0===d.length)return null;let c=d.pop(),u=d.length>0?(0,l.jsxs)(l.Fragment,{children:[d.map((e,s)=>(0,l.jsxs)(m.Fragment,{children:[e,s<d.length-1?", ":""]},s)),d.length>=2?", and ":" and ",c]}):c,{formattedTime:p,formattedDate:h}=eS(i);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("b",{children:s})," ",u," on ",h," at ",p]})},eE=(e,s)=>{let t=e=>e.map(e=>{let t=s.find(s=>s.fides_key===e.fides_key);return t&&t.name?t.name:e.fides_key}),a={...e.before},i={...e.after};return a.ingress&&(a.ingress=t(a.ingress)),a.egress&&(a.egress=t(a.egress)),i.ingress&&(i.ingress=t(i.ingress)),i&&i.egress&&(i.egress=t(i.egress)),{...e,before:a,after:i}},eq=(e,s)=>{if(Q().isEmpty(s))return e;let t=(e,s)=>{var t,a;return null!==(a=null===(t=s.find(s=>s.value===e))||void 0===t?void 0:t.label)&&void 0!==a?a:e};return{...e,before:{...e.before,vendor_id:t(e.before.vendor_id,s)},after:{...e.after,vendor_id:t(e.after.vendor_id,s)}}},eI=e=>{let s=e.before.privacy_declarations||[],t=e.after.privacy_declarations||[],a=new Set([...s,...t].map(e=>e.data_use)),i=[],n=[];return a.forEach(e=>{let a=s.find(s=>s.data_use===e)||{data_use:"",data_categories:[]},r=t.find(s=>s.data_use===e)||{data_use:"",data_categories:[]};i.push(a),n.push(r)}),{...e,before:{...e.before,privacy_declarations:i},after:{...e.after,privacy_declarations:n}}},eR=e=>{let s={...e.before.custom_fields},t={...e.after.custom_fields};return new Set([...Object.keys(s),...Object.keys(t)]).forEach(e=>{e in s||(s[e]=null),e in t||(t[e]=null)}),{...e,before:{...e.before,custom_fields:s},after:{...e.after,custom_fields:t}}},ez=e=>{if(!e.before.privacy_declarations||!e.before.privacy_declarations[0]||!e.before.privacy_declarations[0].custom_fields)return e;let s={...e.before.privacy_declarations[0].custom_fields},t=e.after.privacy_declarations&&e.after.privacy_declarations[0]?{...e.after.privacy_declarations[0].custom_fields}:{};return new Set([...Object.keys(s),...Object.keys(t)]).forEach(e=>{e in s||(s[e]=null),e in t||(t[e]=null)}),{...e,before:{...e.before,privacy_declarations:[{...e.before.privacy_declarations[0],custom_fields:s}]},after:{...e.after,privacy_declarations:[{...e.after.privacy_declarations[0],custom_fields:t}]}}},eF=(0,m.createContext)(null),eL=()=>(0,m.useContext)(eF);var eZ=e=>{let{children:s,selectedHistory:t,formType:a}=e,i=(0,m.useMemo)(()=>({selectedHistory:t,formType:a}),[t,a]);return(0,l.jsx)(eF.Provider,{value:i,children:s})},eW=t(20987),eP=t(62165),eO=t(30320),eN=e=>{let{heading:s,children:t}=e,{selectedHistory:a}=eL(),i=m.Children.toArray(t).filter(e=>{if(m.isValidElement(e)&&e.props.name){let{name:s}=e.props,t=Q().get(null==a?void 0:a.before,s),i=Q().get(null==a?void 0:a.after,s),n="boolean"!=typeof t&&"number"!=typeof t&&Q().isEmpty(t),r="boolean"!=typeof i&&"number"!=typeof i&&Q().isEmpty(i);return!n||!r}return!1});return 0===i.length?null:(0,l.jsx)(o.Kqy,{marginTop:"0px !important",children:(0,l.jsxs)(o.xuv,{maxWidth:"720px",border:"1px",borderColor:"gray.200",borderRadius:6,overflow:"visible",mt:6,children:[(0,l.jsx)(o.xuv,{backgroundColor:"gray.50",px:6,py:4,display:"flex",flexDirection:"row",alignItems:"center",borderBottom:"1px",borderColor:"gray.200",borderTopRadius:6,children:(0,l.jsx)(o.X6q,{as:"h3",size:"xs",children:s})}),(0,l.jsx)(o.Kqy,{children:i})]})})},eV=t(46238),eM=e=>{var s;let{label:t,tooltip:a,...i}=e,{selectedHistory:n,formType:r}=eL(),[d]=(0,V.U$)(i.name),c={...d,value:null!==(s=d.value)&&void 0!==s?s:[]},u=(0,m.useRef)(null),[p,h]=(0,m.useState)(null),[x,g]=(0,m.useState)([]),[y,f]=(0,m.useState)(!1);(0,m.useEffect)(()=>{let e=Q().get(null==n?void 0:n.before,i.name)||[],s=Q().get(null==n?void 0:n.after,i.name)||[];f(!Q().isEqual(e,s)),g(e.length>s.length?e:s)},[n,i.name]),(0,m.useEffect)(()=>{u.current&&h(u.current.offsetHeight)},[x]);let _={};return y&&(_="before"===r?{backgroundColor:"#FFF5F5",borderColor:"#E53E3E",borderTop:"1px dashed #E53E3E",borderBottom:"1px dashed #E53E3E"}:{backgroundColor:"#F0FFF4",borderColor:"#38A169",borderTop:"1px dashed #38A169",borderBottom:"1px dashed #38A169"}),(0,l.jsx)(o.NIc,{style:_,paddingLeft:4,paddingRight:4,paddingTop:3,paddingBottom:3,marginTop:"-1px !important",children:(0,l.jsxs)(o.gCW,{alignItems:"start",children:[(0,l.jsxs)(o.kCb,{alignItems:"center",children:[(0,l.jsx)(N.__,{htmlFor:i.name,fontSize:"xs",my:0,mr:1,children:t}),(0,l.jsx)(eV.b,{label:a})]}),(0,l.jsx)(o.kCb,{wrap:"wrap",alignItems:"flex-start",ref:u,style:{minHeight:"".concat(p,"px")},children:(p?c.value:x).map((e,s)=>(0,l.jsx)(o.j8w,{color:"marble",className:"m-1",children:"object"==typeof e?e.fides_key:e},s))}),"before"===r&&y&&(0,l.jsx)("div",{style:{position:"absolute",right:"-22px",top:"50%",transform:"translateY(-50%)"},children:"→"})]})})},eU=e=>{var s;let{label:t,tooltip:a,...i}=e,{selectedHistory:n,formType:r}=eL(),[d]=(0,V.U$)(i),c={...d,value:null!==(s=d.value)&&void 0!==s?s:""},u=(0,m.useRef)(null),[p,h]=(0,m.useState)(null),[x,g]=(0,m.useState)(!1);(0,m.useEffect)(()=>{let e=Q().get(null==n?void 0:n.before,i.name)||"",s=Q().get(null==n?void 0:n.after,i.name)||"";g(!Q().isEqual(e,s));let t=e.length>s.length?e:s;u.current&&(u.current.textContent=t,h(u.current.offsetHeight),u.current.textContent=c.value)},[n,i.name,c.value]);let y={};return x&&(y="before"===r?{backgroundColor:"#FFF5F5",borderColor:"#E53E3E",borderTop:"1px dashed #E53E3E",borderBottom:"1px dashed #E53E3E"}:{backgroundColor:"#F0FFF4",borderColor:"#38A169",borderTop:"1px dashed #38A169",borderBottom:"1px dashed #38A169"}),(0,l.jsx)(o.NIc,{style:y,paddingLeft:4,paddingRight:4,paddingTop:3,paddingBottom:3,marginTop:"-1px !important",children:(0,l.jsxs)(o.gCW,{alignItems:"start",children:[(0,l.jsxs)(o.kCb,{alignItems:"center",children:[(0,l.jsx)(N.__,{htmlFor:i.id||i.name,fontSize:"xs",my:0,mr:1,children:t}),(0,l.jsx)(eV.b,{label:a})]}),(0,l.jsx)(o.xvT,{fontSize:"14px",ref:u,style:{height:"".concat(p,"px")},children:c.value}),"before"===r&&x&&(0,l.jsx)("div",{style:{position:"absolute",right:"-22px",top:"50%",transform:"translateY(-50%)"},children:"→"})]})})},eB=e=>{let{customFields:s={},resourceType:t}=e,{idToCustomFieldDefinition:a}=(0,eO.m)({resourceType:t}),i=e=>Array.from(a.values()).some(s=>s.name===e&&!!s.allow_list_id),n=t===eW.J.SYSTEM?"custom_fields":"privacy_declarations[0].custom_fields",r=Object.keys(s).sort();return(0,l.jsx)(eN,{heading:"Custom fields",children:r.map(e=>i(e)?(0,l.jsx)(eM,{label:e,name:"".concat(n,".").concat(e)},e):(0,l.jsx)(eU,{label:e,name:"".concat(n,".").concat(e)},e))})},eK=e=>{let{label:s,tooltip:t,...a}=e,{selectedHistory:i,formType:n}=eL(),[r]=(0,V.U$)(a),d={...r,value:r.value},[c,u]=(0,m.useState)(!1);(0,m.useEffect)(()=>{u(Q().get(null==i?void 0:i.before,a.name)!==Q().get(null==i?void 0:i.after,a.name))},[i,a.name,d.value]);let p={};return c&&(p="before"===n?{backgroundColor:"#FFF5F5",borderColor:"#E53E3E",borderTop:"1px dashed #E53E3E",borderBottom:"1px dashed #E53E3E"}:{backgroundColor:"#F0FFF4",borderColor:"#38A169",borderTop:"1px dashed #38A169",borderBottom:"1px dashed #38A169"}),(0,l.jsx)(o.NIc,{style:p,paddingLeft:4,paddingRight:4,paddingTop:3,paddingBottom:3,marginTop:"-1px !important",children:(0,l.jsxs)(o.gCW,{alignItems:"start",minHeight:"46px",children:[(0,l.jsxs)(o.kCb,{alignItems:"center",children:[(0,l.jsx)(N.__,{htmlFor:a.id||a.name,fontSize:"xs",my:0,mr:1,children:s}),(0,l.jsx)(eV.b,{label:t})]}),void 0!==d.value&&(0,l.jsx)(o.j8w,{color:"marble",className:"m-1",children:d.value?"YES":"NO"}),"before"===n&&c&&(0,l.jsx)("div",{style:{position:"absolute",right:"-22px",top:"50%",transform:"translateY(-50%)"},children:"→"})]})})},eH=e=>{let{initialValues:s}=e,t=(0,eP.hz)();return(0,l.jsx)(V.J9,{enableReinitialize:!0,initialValues:s,onSubmit:()=>{},children:()=>(0,l.jsx)(V.l0,{children:(0,l.jsxs)(o.Kqy,{children:[(0,l.jsxs)(eN,{heading:"System details",children:[t.dictionaryService?(0,l.jsx)(eU,{name:"vendor_id",label:"Vendor",tooltip:"Select the vendor that matches the system"}):null,(0,l.jsx)(eU,{name:"name",label:"System name",tooltip:"Give the system a unique, and relevant name for reporting purposes. e.g. “Email Data Warehouse”"}),(0,l.jsx)(eU,{name:"fides_key",label:"Unique ID",disabled:!0,tooltip:"An auto-generated unique ID based on the system name"}),(0,l.jsx)(eU,{name:"description",label:"Description",tooltip:"Give the system a unique, and relevant name for reporting purposes. e.g. “Email Data Warehouse”"}),(0,l.jsx)(eM,{name:"tags",label:"System Tags",tooltip:"Are there any tags to associate with this system?"})]}),(0,l.jsx)(eN,{heading:"Dataset reference",children:(0,l.jsx)(eM,{name:"dataset_references",label:"Dataset references",tooltip:"Is there a dataset configured for this system"})}),(0,l.jsxs)(eN,{heading:"Data processing properties",children:[(0,l.jsx)(eK,{name:"processes_personal_data",label:"This system processes personal data",tooltip:"Does this system process personal data?"}),(0,l.jsx)(eK,{name:"exempt_from_privacy_regulations",label:"This system is exempt from privacy regulations",tooltip:"Is this system exempt from privacy regulations?"}),(0,l.jsx)(eU,{name:"reason_for_exemption",label:"Reason for exemption",tooltip:"Why is this system exempt from privacy regulation?"}),(0,l.jsx)(eK,{name:"uses_profiling",label:"This system performs profiling",tooltip:"Does this system perform profiling that could have a legal effect?"}),(0,l.jsx)(eM,{name:"legal_basis_for_profiling",label:"Legal basis for profiling",tooltip:"What is the legal basis under which profiling is performed?"}),(0,l.jsx)(eK,{name:"does_international_transfers",label:"This system transfers data",tooltip:"Does this system transfer data to other countries or international organizations?"}),(0,l.jsx)(eM,{name:"legal_basis_for_transfers",label:"Legal basis for transfer",tooltip:"What is the legal basis under which the data is transferred?"}),(0,l.jsx)(eK,{name:"requires_data_protection_assessments",label:"This system requires Data Privacy Assessments",tooltip:"Does this system require (DPA/DPIA) assessments?"}),(0,l.jsx)(eU,{label:"DPIA/DPA location",name:"dpa_location",tooltip:"Where is the DPA/DPIA stored?"})]}),(0,l.jsxs)(eN,{heading:"Administrative properties",children:[(0,l.jsx)(eU,{label:"Data stewards",name:"data_stewards",tooltip:"Who are the stewards assigned to the system?"}),(0,l.jsx)(eU,{name:"privacy_policy",label:"Privacy policy URL",tooltip:"Where can the privacy policy be located?"}),(0,l.jsx)(eU,{name:"legal_name",label:"Legal name",tooltip:"What is the legal name of the business?"}),(0,l.jsx)(eU,{name:"legal_address",label:"Legal address",tooltip:"What is the legal address for the business?"}),(0,l.jsx)(eU,{label:"Department",name:"administrating_department",tooltip:"Which department is concerned with this system?"}),(0,l.jsx)(eM,{label:"Responsibility",name:"responsibility",tooltip:"What is the role of the business with regard to data processing?"}),(0,l.jsx)(eU,{name:"dpo",label:"Legal contact (DPO)",tooltip:"What is the official privacy contact information?"}),(0,l.jsx)(eU,{label:"Joint controller",name:"joint_controller_info",tooltip:"Who are the party or parties that share responsibility for processing data?"}),(0,l.jsx)(eU,{label:"Data security practices",name:"data_security_practices",tooltip:"Which data security practices are employed to keep the data safe?"})]}),(0,l.jsx)(eB,{customFields:s.custom_fields,resourceType:eW.J.SYSTEM}),s.privacy_declarations&&s.privacy_declarations.map((e,t)=>(0,l.jsxs)(m.Fragment,{children:[(0,l.jsxs)(eN,{heading:"Data use",children:[(0,l.jsx)(eU,{label:"Declaration name (optional)",name:"privacy_declarations[".concat(t,"].name"),tooltip:"Would you like to append anything to the system name?"}),(0,l.jsx)(eU,{name:"privacy_declarations[".concat(t,"].data_use"),label:"Data use",tooltip:"For which business purposes is this data used?"}),(0,l.jsx)(eM,{name:"privacy_declarations[".concat(t,"].data_categories"),label:"Data categories",tooltip:"Which categories of personal data are collected for this purpose?"}),(0,l.jsx)(eM,{name:"privacy_declarations[".concat(t,"].data_subjects"),label:"Data subjects",tooltip:"Who are the subjects for this personal data?"}),(0,l.jsx)(eU,{name:"privacy_declarations[".concat(t,"].legal_basis_for_processing"),label:"Legal basis for processing",tooltip:"What is the legal basis under which personal data is processed for this purpose?"}),(0,l.jsx)(eU,{name:"privacy_declarations[".concat(t,"].impact_assessment_location"),label:"Impact assessment location",tooltip:"Where is the legitimate interest impact assessment stored?"}),(0,l.jsx)(eU,{name:"privacy_declarations[".concat(t,"].retention_period"),label:"Retention period (days)",tooltip:"How long is personal data retained for this purpose?"})]}),(0,l.jsx)(eN,{heading:"Features",children:(0,l.jsx)(eM,{name:"privacy_declarations[".concat(t,"].features"),label:"Features",tooltip:"What are some features of how data is processed?"})}),(0,l.jsx)(eN,{heading:"Dataset reference",children:(0,l.jsx)(eM,{name:"privacy_declarations[".concat(t,"].dataset_references"),label:"Dataset references",tooltip:"Is there a dataset configured for this system?"})}),(0,l.jsxs)(eN,{heading:"Special category data",children:[(0,l.jsx)(eK,{name:"privacy_declarations[".concat(t,"].processes_special_category_data"),label:"This system processes special category data",tooltip:"Is this system processing special category data as defined by GDPR Article 9?"}),(0,l.jsx)(eU,{name:"privacy_declarations[".concat(t,"].special_category_legal_basis"),label:"Legal basis for processing",tooltip:"What is the legal basis under which the special category data is processed?"})]}),(0,l.jsxs)(eN,{heading:"Third parties",children:[(0,l.jsx)(eK,{name:"privacy_declarations[".concat(t,"].data_shared_with_third_parties"),label:"This system shares data with 3rd parties for this purpose",tooltip:"Does this system disclose, sell, or share personal data collected for this business use with 3rd parties?"}),(0,l.jsx)(eU,{name:"privacy_declarations[".concat(t,"].third_parties"),label:"Third parties",tooltip:"Which type of third parties is the data shared with?"}),(0,l.jsx)(eM,{name:"privacy_declarations[".concat(t,"].shared_categories"),label:"Shared categories",tooltip:"Which categories of personal data does this system share with third parties?"})]}),(0,l.jsx)(eB,{customFields:s.privacy_declarations[0].custom_fields,resourceType:eW.J.PRIVACY_DECLARATION})]},t)),(0,l.jsxs)(eN,{heading:"Data flow",children:[(0,l.jsx)(eM,{name:"ingress",label:"Sources"}),(0,l.jsx)(eM,{name:"egress",label:"Destinations"})]})]})})})};let eY=(e,s)=>{let t=[],a=new Set(["egress","ingress","privacy_declarations","vendor_id"]);(e.egress||s.egress||e.ingress||s.ingress)&&t.push("Data Flow");let i=e.privacy_declarations&&e.privacy_declarations.length>0||s.privacy_declarations&&s.privacy_declarations.length>0;i&&t.push("Data Uses");let n=[...Object.keys(e),...Object.keys(s)].some(e=>!a.has(e));return!i&&n&&t.unshift("System Information"),t};var eG=e=>{let{selectedHistory:s,isOpen:t,onClose:a}=e;return(0,l.jsxs)(o.u_l,{isOpen:t,onClose:a,size:"4xl",children:[(0,l.jsx)(o.ZAr,{}),(0,l.jsxs)(o.hzk,{children:[(0,l.jsxs)(o.xBx,{backgroundColor:ek().FIDESUI_NEUTRAL_50,borderTopLeftRadius:"8px",borderTopRightRadius:"8px",borderBottom:"1px solid #E2E8F0",children:[(0,l.jsxs)(o.X6q,{size:"xs",children:[(0,l.jsx)("span",{style:{verticalAlign:"middle"},children:"Change detail"}),s&&(0,l.jsx)(l.Fragment,{children:eY(s.before,s.after).map((e,s)=>(0,l.jsx)(o.j8w,{color:"minos",className:"ml-2",children:e},s))})]}),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(o.LZC,{}),(0,l.jsx)(o.olH,{})]})]}),(0,l.jsx)(o.fef,{paddingTop:0,paddingBottom:6,children:(0,l.jsxs)(o.kCb,{justifyContent:"space-between",children:[(0,l.jsx)("div",{style:{flex:"0 50%",marginRight:"12px"},children:(0,l.jsx)(eZ,{selectedHistory:s,formType:"before",children:(0,l.jsx)(eH,{initialValues:null==s?void 0:s.before})})}),(0,l.jsx)("div",{style:{flex:"0 50%",marginLeft:"12px"},children:(0,l.jsx)(eZ,{selectedHistory:s,formType:"after",children:(0,l.jsx)(eH,{initialValues:null==s?void 0:s.after})})})]})})]})]})},e$=e=>{let{system:s}=e,[t,a]=(0,m.useState)(1),{data:i}=(0,P.Xc)({system_key:s.fides_key,page:t,size:10}),[n,r]=(0,m.useState)(!1),[d,c]=(0,m.useState)(null),u=(0,h.C)(P.o),{data:p=[]}=(0,O.K3)(),x=(null==i?void 0:i.items)||[],g=e=>{c(e=ez(e=eR(e=eE(e=eq(e=eI(e),u),p)))),r(!0)},{formattedTime:y,formattedDate:f}=eS(s.created_at),_=i&&i.total?Math.ceil(i.total/10):0;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(o.iA_,{ml:"24px",children:[(0,l.jsx)(o.hrZ,{children:(0,l.jsx)(o.Tr,{children:(0,l.jsxs)(o.Td,{p:"16px",fontSize:"12px",border:"1px solid #E2E8F0",background:ek().FIDESUI_NEUTRAL_50,children:["System created on ",f," at ",y]})})}),(0,l.jsx)(o.p3B,{children:x.map((e,s)=>{let t=eA(e);return t?(0,l.jsx)(o.Tr,{onClick:()=>g(e),style:{cursor:"pointer"},children:(0,l.jsx)(o.Td,{pt:"10px",pb:"10px",pl:"16px",fontSize:"12px",border:"1px solid #E2E8F0",children:t})},s):null})})]}),((null==i?void 0:i.total)||0)>10&&(0,l.jsxs)(o.kCb,{alignItems:"center",justifyContent:"flex-start",marginTop:"12px",marginLeft:"24px",children:[(0,l.jsxs)(o.xvT,{fontSize:"xs",lineHeight:4,fontWeight:"600",paddingX:2,children:[(t-1)*10+1," -"," ",Math.min(10*t,(null==i?void 0:i.total)||0)," of"," ",(null==i?void 0:i.total)||0]}),(0,l.jsx)(o.wpx,{size:"small",className:"mr-2",onClick:()=>{t>1&&a(t-1)},disabled:1===t,icon:(0,l.jsx)(eC,{}),"aria-label":"Previous page"}),(0,l.jsx)(o.wpx,{size:"small",onClick:()=>{t<_&&a(t+1)},disabled:t===_||0===_,icon:(0,l.jsx)(ew,{}),"aria-label":"Next page"})]}),(0,l.jsx)(eG,{selectedHistory:d,isOpen:n,onClose:()=>{r(!1),c(null)}})]})},eJ=t(52368),eQ=t(3765),eX=e=>{let{title:s,description:t,handleAdd:a}=e;return(0,l.jsx)(o.Kqy,{backgroundColor:"gray.50",border:"1px solid",borderColor:"blue.500",borderRadius:"md",justifyContent:"space-between",py:4,px:6,"data-testid":"empty-state",children:(0,l.jsxs)(o.Ugi,{children:[(0,l.jsx)(o.iid,{alignSelf:"start",color:"blue.400",mt:.5}),(0,l.jsxs)(o.xuv,{children:[(0,l.jsx)(o.xvT,{fontWeight:"bold",fontSize:"sm",mb:1,children:s}),(0,l.jsx)(o.xvT,{fontSize:"sm",color:"gray.800",lineHeight:"5",children:t}),(0,l.jsx)(o.Ugi,{mt:4,children:(0,l.jsx)(o.wpx,{size:"small",type:"primary","data-testid":"add-btn",onClick:a,icon:(0,l.jsx)(o.jBn,{boxSize:4}),iconPosition:"end",children:"Add data use"})})]})]})})},e0=t(58452);let e1=e=>{let{declaration:s,title:t,handleDelete:a,handleEdit:i}=e,{isOpen:n,onOpen:r,onClose:d}=(0,o.qY0)();return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(o.fGe,{w:"100%",h:"100%",cursor:"pointer",_hover:{backgroundColor:"gray.50"},children:(0,l.jsx)(o.xuv,{px:6,py:4,"data-testid":"row-".concat(s.data_use),children:(0,l.jsxs)(o.Ugi,{children:[(0,l.jsx)(o.AB5,{onClick:()=>i(s),role:"button",tabIndex:0,children:(0,l.jsx)(o.xvT,{children:t||s.data_use})}),(0,l.jsx)(o.LZC,{}),a?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(o.wpx,{"aria-label":"delete-declaration",className:"z-[2]",onClick:r,"data-testid":"delete-btn",children:(0,l.jsx)(o.pJl,{})}),(0,l.jsx)(e0.Z,{isOpen:n,onClose:d,onConfirm:()=>a(s),title:"Delete data use declaration",message:(0,l.jsxs)(o.xvT,{children:["You are about to delete the data use declaration"," ",(0,l.jsx)(o.xvT,{color:"complimentary.500",as:"span",fontWeight:"bold",children:t||s.data_use}),", including all its cookies. Are you sure you want to continue?"]}),isCentered:!0})]}):null]})})}),(0,l.jsx)(o.izJ,{})]})},e2=e=>{let{heading:s,children:t,headerButton:a,footerButton:i}=e;return(0,l.jsx)(o.Kqy,{spacing:4,"data-testid":"privacy-declarations-table",children:(0,l.jsxs)(o.xuv,{maxWidth:"720px",border:"1px",borderColor:"gray.200",borderRadius:6,children:[(0,l.jsxs)(o.Ugi,{backgroundColor:"gray.50",px:6,py:4,borderBottom:"1px",borderColor:"gray.200",borderTopRadius:6,children:[(0,l.jsx)(o.X6q,{as:"h3",size:"xs",children:s}),(0,l.jsx)(o.LZC,{}),a||null]}),(0,l.jsx)(o.Kqy,{spacing:0,children:t}),(0,l.jsx)(o.xuv,{backgroundColor:"gray.50",px:6,py:4,borderBottomRadius:6,children:i||null})]})})},e4=e=>{let{heading:s,declarations:t,handleAdd:a,handleDelete:i,handleEdit:n,allDataUses:r}=e,d=e=>{let s=r.filter(s=>s.fides_key===e.data_use)[0];return s?e.name?"".concat(s.name," - ").concat(e.name):s.name:""},c=(0,h.C)(ev.gU);return(0,l.jsx)(e2,{heading:s,footerButton:!c&&(0,l.jsx)(o.wpx,{onClick:a,size:"small",icon:(0,l.jsx)(o.jBn,{boxSize:4}),iconPosition:"end","data-testid":"add-btn",children:"Add data use"}),children:t.map(e=>(0,l.jsx)(e1,{declaration:e,title:d(e),handleDelete:c?void 0:i,handleEdit:n},e.id))})};var e5=t(33162),e3=t(54748),e6=t(28325),e8=t(30234);let e9=M.Ry().shape({data_categories:M.IX(M.Z_()).min(1,"Must assign at least one data category").label("Data categories"),data_use:M.Z_().required().label("Data use")}),e7={name:"",data_categories:[],data_use:"",data_subjects:[],egress:void 0,ingress:void 0,features:[],legal_basis_for_processing:void 0,flexible_legal_basis_for_processing:!0,impact_assessment_location:"",retention_period:"",processes_special_category_data:!1,special_category_legal_basis:void 0,data_shared_with_third_parties:!1,third_parties:"",shared_categories:[],customFieldValues:{},id:""},se=e=>{var s;return{...e,name:null!==(s=e.name)&&void 0!==s?s:"",special_category_legal_basis:e.processes_special_category_data?e.special_category_legal_basis:void 0,third_parties:e.data_shared_with_third_parties?e.third_parties:void 0,shared_categories:e.data_shared_with_third_parties?e.shared_categories:void 0}},ss=e=>{let{allDataUses:s,allDataCategories:t,allDataSubjects:a,allDatasets:i,values:n,includeCustomFields:r,privacyDeclarationId:d,lockedForGVL:c}=e,u=!!d,{legalBasisOptions:p}=(0,e3.Z)(),{specialCategoryLegalBasisOptions:h}=(0,e6.Z)(),x=(0,m.useMemo)(()=>i?i.map(e=>({value:e.fides_key,label:e.name?e.name:e.fides_key})):[],[i]);return(0,l.jsxs)(o.Kqy,{spacing:4,children:[(0,l.jsxs)(e8.Z,{heading:"Data use declaration",children:[(0,l.jsx)(N.j0,{id:"name",label:"Declaration name (optional)",name:"name",tooltip:"Would you like to append anything to the system name?",disabled:u,variant:"stacked"}),(0,l.jsx)(U.d,{id:"data_use",label:"Data use",name:"data_use",options:s.map(e=>({value:e.fides_key,label:e.fides_key})),tooltip:"For which business purposes is this data processed?",layout:"stacked",isRequired:!0,disabled:u}),(0,l.jsx)(U.d,{name:"data_categories",label:"Data categories",options:t.map(e=>({value:e.fides_key,label:e.fides_key})),tooltip:"Which categories of personal data are collected for this purpose?",mode:"multiple",isRequired:!0,disabled:c,layout:"stacked"}),(0,l.jsx)(U.d,{name:"data_subjects",label:"Data subjects",options:a.map(e=>({value:e.fides_key,label:e.fides_key})),tooltip:"Who are the subjects for this personal data?",mode:"multiple",layout:"stacked"}),(0,l.jsxs)(o.Kqy,{spacing:0,children:[(0,l.jsx)(U.d,{name:"legal_basis_for_processing",label:"Legal basis for processing",options:p,tooltip:"What is the legal basis under which personal data is processed for this purpose?",layout:"stacked",disabled:c}),"Legitimate interests"===n.legal_basis_for_processing&&(0,l.jsx)(o.xuv,{mt:4,children:(0,l.jsx)(N.j0,{name:"impact_assessment_location",label:"Impact assessment location",tooltip:"Where is the legitimate interest impact assessment stored?",variant:"stacked"})})]}),(0,l.jsx)(o.xuv,{mt:5,pl:4,children:(0,l.jsx)(N.w8,{name:"flexible_legal_basis_for_processing",label:"This legal basis is flexible",tooltip:"Has the vendor declared that the legal basis may be overridden?",variant:"stacked",isDisabled:c})}),(0,l.jsx)(N.j0,{name:"retention_period",label:"Retention period (days)",tooltip:"How long is personal data retained for this purpose?",variant:"stacked",disabled:c})]}),(0,l.jsx)(e8.Z,{heading:"Features",children:(0,l.jsx)(U.d,{name:"features",label:"Features",placeholder:"Describe features...",tooltip:"What are some features of how data is processed?",layout:"stacked",disabled:c,mode:"tags"})}),(0,l.jsx)(e8.Z,{heading:"Dataset reference",children:(0,l.jsx)(U.d,{name:"dataset_references",label:"Dataset references",options:x,tooltip:"Is there a dataset configured for this system?",mode:"multiple",layout:"stacked"})}),(0,l.jsx)(e8.Z,{heading:"Special category data",children:(0,l.jsxs)(o.Kqy,{spacing:0,children:[(0,l.jsx)(N.w8,{name:"processes_special_category_data",label:"This system processes special category data",tooltip:"Is this system processing special category data as defined by GDPR Article 9?",variant:"stacked"}),n.processes_special_category_data&&(0,l.jsx)(o.xuv,{mt:4,children:(0,l.jsx)(U.d,{name:"special_category_legal_basis",label:"Legal basis for processing",options:h,isRequired:n.processes_special_category_data,tooltip:"What is the legal basis under which the special category data is processed?",layout:"stacked"})})]})}),(0,l.jsx)(e8.Z,{heading:"Third parties",children:(0,l.jsxs)(o.Kqy,{spacing:0,children:[(0,l.jsx)(N.w8,{name:"data_shared_with_third_parties",label:"This system shares data with 3rd parties for this purpose",tooltip:"Does this system disclose, sell, or share personal data collected for this business use with 3rd parties?",variant:"stacked"}),n.data_shared_with_third_parties&&(0,l.jsxs)(o.Kqy,{mt:4,spacing:4,children:[(0,l.jsx)(N.j0,{name:"third_parties",label:"Third parties",tooltip:"Which type of third parties is the data shared with?",variant:"stacked"}),(0,l.jsx)(U.d,{name:"shared_categories",label:"Shared categories",options:t.map(e=>({value:e.fides_key,label:e.fides_key})),tooltip:"Which categories of personal data does this system share with third parties?",layout:"stacked",mode:"multiple"})]})]})}),r?(0,l.jsx)(e5.uc,{resourceType:eW.J.PRIVACY_DECLARATION,resourceFidesKey:d}):null]})},st=(e,s)=>e?{...e,customFieldValues:s||{}}:e7,sa=e=>{let{onSubmit:s,initialValues:t,privacyDeclarationId:a}=e,{customFieldValues:i,upsertCustomFields:n}=(0,e5.mZ)({resourceType:eW.J.PRIVACY_DECLARATION,resourceFidesKey:a});return{handleSubmit:async(e,t)=>{let{customFieldValues:a}=e,i=se(e),r=await s(i,t);if(r){let s=r.filter(s=>s.data_use===e.data_use&&(!s.name||s.name===e.name));s.length>0&&await n({customFieldValues:a,fides_key:s[0].id})}},initialValues:(0,m.useMemo)(()=>st(t,i),[t,i])}},si=e=>{let{onSubmit:s,onCancel:t,initialValues:a,...i}=e,n=null==a?void 0:a.id,{handleSubmit:r,initialValues:d}=sa({onSubmit:s,onCancel:t,initialValues:a,allDataUses:i.allDataUses,privacyDeclarationId:n}),c=(0,h.C)(ev.gU);return(0,l.jsx)(V.J9,{enableReinitialize:!0,initialValues:d,onSubmit:r,validationSchema:e9,children:e=>{let{dirty:s,values:a}=e;return(0,l.jsxs)(V.l0,{"data-testid":"declaration-form",children:[(0,l.jsx)(g.Gt,{id:"PrivacyDeclaration",name:"New Privacy Declaration"}),(0,l.jsxs)(o.Kqy,{spacing:4,children:[(0,l.jsx)(ss,{values:a,lockedForGVL:c,privacyDeclarationId:n,...i}),(0,l.jsxs)(o.kCb,{w:"100%",children:[(0,l.jsx)(o.wpx,{onClick:t,"data-testid":"cancel-btn",children:"Cancel"}),(0,l.jsx)(o.LZC,{}),(0,l.jsx)(o.wpx,{type:"primary",htmlType:"submit",disabled:!s,"data-testid":"save-btn",children:"Save"})]})]})]})}})},sn=e=>{let{isOpen:s,onClose:t,heading:a,isCentered:i=!1,testId:n="privacy-declaration-modal",children:r}=e;return(0,l.jsxs)(o.u_l,{isOpen:s,onClose:t,isCentered:i,scrollBehavior:"inside",size:"3xl",children:[(0,l.jsx)(o.ZAr,{}),(0,l.jsxs)(o.hzk,{textAlign:"left",p:0,"data-testid":n,children:[(0,l.jsx)(o.xBx,{p:0,children:(0,l.jsx)(o.xuv,{backgroundColor:"gray.50",px:6,py:4,border:"1px",borderColor:"gray.200",borderTopRadius:6,children:(0,l.jsx)(o.X6q,{as:"h3",size:"sm",children:a})})}),(0,l.jsx)(o.fef,{pb:4,children:r})]})]})};var sr=e=>{let{system:s,includeCustomFields:t,...a}=e,{isOpen:i,onClose:n,onOpen:r}=(0,o.qY0)(),[d,c]=(0,m.useState)(void 0),{createDataUse:u,updateDataUse:p,deleteDataUse:h}=(0,eQ.Z)(s),x=()=>{n(),c(void 0)},g=()=>{r(),c(void 0)},y=async e=>(x(),d)?p(d,e):u(e);return(0,m.useEffect)(()=>{n()},[n,s.fides_key]),(0,l.jsxs)(o.Kqy,{spacing:6,"data-testid":"data-use-tab",children:[0===s.privacy_declarations.length?(0,l.jsx)(eX,{title:"You don't have a data use set up for this system yet.",description:'A Data Use is the purpose for which data is used in a system. In Fides, a system may have more than one Data Use. For example, a CRM system may be used both for "Customer Support" and also for "Email Marketing", each of these is a Data Use.',handleAdd:g}):(0,l.jsx)(e4,{heading:"Data use",declarations:s.privacy_declarations,handleAdd:g,handleEdit:e=>{r(),c(e)},handleDelete:h,allDataUses:a.allDataUses}),(0,l.jsx)(sn,{isOpen:i,onClose:x,heading:"Configure data use",children:(0,l.jsx)(si,{initialValues:d,onSubmit:y,onCancel:x,includeCustomFields:t,...a})})]})},sl=e=>{let{system:s}=e,{isLoading:t,...a}=(0,eJ.f)({includeDatasets:!0,includeDisabled:!1}),i=a.allDataCategories.filter(e=>e.active),n=a.allDataUses.filter(e=>e.active),r=a.allDataSubjects.filter(e=>e.active),d={...a,allDataCategories:i,allDataUses:n,allDataSubject:r};return(0,l.jsxs)(o.Kqy,{spacing:3,"data-testid":"privacy-declaration-step",minWidth:580,children:[(0,l.jsx)(o.X6q,{as:"h3",size:"md",children:"Data uses"}),(0,l.jsxs)(o.xvT,{fontSize:"sm",fontWeight:"medium",children:["Data Uses describe the business purpose for which the personal data is processed or collected. Within a Data Use, you assign which categories of personal information are collected for this purpose and for which categories of data subjects. To update the available categories and uses, please visit"," ",(0,l.jsx)(o.rUS,{as:c(),href:"/taxonomy",color:"link.900",children:"Manage taxonomy"}),"."]}),t?(0,l.jsx)(o.$jN,{}):(0,l.jsx)(sr,{system:s,includeCustomFields:!0,...d})]})},so=t(812),sd=t(93237),sc=t(69525),su=t(33335);let sp={system_type:"",fides_key:"",tags:[],name:"",description:"",dataset_references:[],processes_personal_data:!0,exempt_from_privacy_regulations:!1,reason_for_exemption:"",uses_profiling:!1,does_international_transfers:!1,requires_data_protection_assessments:!1,privacy_policy:"",legal_name:"",legal_address:"",administrating_department:"",responsibility:[],joint_controller_info:"",data_security_practices:"",privacy_declarations:[],data_stewards:[],dpo:"",cookie_max_age_seconds:void 0,uses_cookies:!1,cookie_refresh:!1,uses_non_cookie_access:!1,legitimate_interest_disclosure_url:"",system_groups:[]},sm=(e,s)=>{var t;let a=(null===(t=e.data_stewards)||void 0===t?void 0:t.map(e=>e.username))||[];return{...e,customFieldValues:s,description:e.description?e.description:"",legal_address:e.legal_address?e.legal_address:"",dpo:e.dpo?e.dpo:"",cookie_max_age_seconds:e.cookie_max_age_seconds?e.cookie_max_age_seconds:"",legitimate_interest_disclosure_url:e.legitimate_interest_disclosure_url?e.legitimate_interest_disclosure_url:"",vendor_deleted_date:e.vendor_deleted_date?e.vendor_deleted_date:void 0,privacy_policy:e.privacy_policy?e.privacy_policy:"",data_security_practices:e.data_security_practices?e.data_security_practices:"",legal_basis_for_profiling:e.legal_basis_for_profiling?e.legal_basis_for_profiling:"",legal_basis_for_transfers:e.legal_basis_for_transfers?e.legal_basis_for_transfers:"",data_stewards:a,system_groups:e.system_groups||[]}},sh=e=>{let s=e.fides_key?e.fides_key:(0,su.E)(e.name),t=""===e.privacy_policy?void 0:e.privacy_policy,a={system_type:e.system_type,fides_key:s,name:e.name,description:e.description?e.description:"",dataset_references:e.dataset_references,tags:e.tags,processes_personal_data:e.processes_personal_data,exempt_from_privacy_regulations:e.exempt_from_privacy_regulations,reason_for_exemption:e.exempt_from_privacy_regulations?e.reason_for_exemption:void 0,privacy_declarations:e.processes_personal_data?e.privacy_declarations:[],vendor_id:e.vendor_id,ingress:e.ingress,egress:e.egress,meta:e.meta,fidesctl_meta:e.fidesctl_meta,organization_fides_key:e.organization_fides_key,dpa_progress:e.dpa_progress,previous_vendor_id:e.previous_vendor_id,cookie_max_age_seconds:e.cookie_max_age_seconds&&""!==e.cookie_max_age_seconds?Number(e.cookie_max_age_seconds):void 0,uses_cookies:e.uses_cookies,cookie_refresh:e.cookie_refresh,uses_non_cookie_access:e.uses_non_cookie_access,legitimate_interest_disclosure_url:e.legitimate_interest_disclosure_url?e.legitimate_interest_disclosure_url:void 0,vendor_deleted_date:e.vendor_deleted_date?e.vendor_deleted_date:void 0,system_groups:e.system_groups};return e.processes_personal_data&&(a={...a,dataset_references:e.dataset_references,uses_profiling:e.uses_profiling,legal_basis_for_profiling:e.uses_profiling&&Array.isArray(e.legal_basis_for_profiling)?e.legal_basis_for_profiling:void 0,does_international_transfers:e.does_international_transfers,legal_basis_for_transfers:e.does_international_transfers&&Array.isArray(e.legal_basis_for_transfers)?e.legal_basis_for_transfers:void 0,requires_data_protection_assessments:e.requires_data_protection_assessments,dpa_location:e.requires_data_protection_assessments?e.dpa_location:void 0,privacy_policy:t,legal_name:e.legal_name,legal_address:e.legal_address,responsibility:e.responsibility,dpo:e.dpo,data_security_practices:e.data_security_practices},e.administrating_department&&(a.administrating_department=e.administrating_department),e.joint_controller_info&&(a.joint_controller_info=e.joint_controller_info)),a},{useGetSystemAssetsQuery:sx,useAddSystemAssetMutation:sg,useUpdateSystemAssetsMutation:sy,useDeleteSystemAssetsMutation:sf,usePopulateSystemAssetsMutation:s_}=t(78780).u.injectEndpoints({endpoints:e=>({getSystemAssets:e.query({query:e=>{let{fides_key:s,...t}=e;return{method:"GET",url:"/plus/system-assets/".concat(s),params:t}},providesTags:["System Assets"]}),addSystemAsset:e.mutation({query:e=>{let{systemKey:s,asset:t}=e;return{method:"POST",url:"/plus/system-assets/".concat(s,"/assets"),body:t}},invalidatesTags:["System Assets"]}),updateSystemAssets:e.mutation({query:e=>{let{systemKey:s,assets:t}=e;return{method:"PUT",url:"/plus/system-assets/".concat(s,"/assets/"),body:t}},invalidatesTags:["System Assets"]}),deleteSystemAssets:e.mutation({query:e=>{let{systemKey:s,asset_ids:t}=e;return{method:"DELETE",url:"/plus/system-assets/".concat(s,"/assets?").concat((0,w.du)(t,"asset_ids"))}},invalidatesTags:["System Assets"]}),populateSystemAssets:e.mutation({query:e=>{let{systemKey:s}=e;return{method:"POST",url:"/plus/dictionary/system-vendors/cookie-assets",body:[s]}}})})});var sb=t(69353);let sv=["Explicit consent","Contract","Authorised by law"].map(e=>({value:e,label:e})),sj=[{value:"Adequacy Decision",label:"Adequacy decision"},{value:"Supplementary measures",label:"Supplementary measures"},{value:"SCCs",label:"Standard contractual clauses"},{value:"BCRs",label:"Binding corporate rules"},{value:"Other",label:"Other"}],sk=["Controller","Processor","Sub-Processor"].map(e=>({value:e,label:e}));var sw=t(36345),sC=t(31793);let sS=e=>{var s;let{system:t}=e,a=t?null!==(s=t.name)&&void 0!==s?s:"this system":"your new system";return(0,l.jsxs)(o.X6q,{as:"h3",size:"lg",children:["Describe ",a]})};var sD=e=>{let{onSuccess:s,system:t,withHeader:a,children:i}=e,{data:n=[]}=(0,O.K3)(),{plus:r}=(0,eP.hz)(),d=(0,h.T)(),{data:c}=(0,sC.wv)({page:1,size:100,include_external:!1,exclude_approvers:!0}),u=(0,m.useMemo)(()=>((null==c?void 0:c.items)||[]).map(e=>({label:e.username,value:e.username})),[c]),p=(0,e5.mZ)({resourceType:eW.J.SYSTEM,resourceFidesKey:null==t?void 0:t.fides_key}),{...x}=(0,eJ.f)({includeDatasets:!0,includeDisabled:!1}),y=(0,m.useMemo)(()=>t?sm(t,p.customFieldValues):sp,[t,p.customFieldValues]),[f]=(0,O.in)(),_=(0,m.useMemo)(()=>M.Ry().shape({name:M.Z_().required().label("System name").test("is-unique","",async(e,s)=>{let{data:t}=await f({page:1,size:10,search:e});return!((null==t?void 0:t.items)||[]).filter(e=>e.name!==y.name).some(s=>s.name===e)||s.createError({message:'You already have a system called "'.concat(e,'". Please specify a unique name for this system.')})}),privacy_policy:M.Z_().min(1).url().nullable()}),[f,y.name]),b=(0,eP.hz)(),[j,k]=(0,O.f7)(),[w,C]=(0,O.qQ)(),[S]=(0,O.WP)(),[D]=s_(),[T]=(0,O.uB)(),[A]=(0,sC.n_)();(0,P.Rd)(void 0,{skip:!b.dictionaryService});let[E]=(0,P.qz)(),{data:q}=(0,sb.QD)(void 0,{skip:!r}),I=(0,m.useMemo)(()=>(null==q?void 0:q.map(e=>({value:e.fides_key,label:e.name})))||[],[q]),R=(0,h.C)(P.o),z=(0,h.C)(ev.gU),F=(0,m.useMemo)(()=>!!(t&&(null==n?void 0:n.some(e=>e.fides_key===(null==t?void 0:t.fides_key)))),[t,n]),L=(0,m.useMemo)(()=>x.allDatasets?x.allDatasets.map(e=>({value:e.fides_key,label:e.name?e.name:e.fides_key})):[],[x.allDatasets]),Z=(0,o.pmc)(),W=async(e,t)=>{var a,i;let n,r;if(e.vendor_id&&0===e.privacy_declarations.length){let s=await E({vendor_id:e.vendor_id});if(s.isError){if(!((0,so.fn)(s.error)&&404===s.error.status)){let e=(0,so.e$)(s.error,"A problem occurred while fetching data uses from Fides Compass for your system. Please try again.");Z((0,v.Vo)(e))}}else s.data&&s.data.items.length>0&&(n=s.data.items.map(e=>{var s;return{...(0,sc.U)(e),name:null!==(s=e.name)&&void 0!==s?s:""}}))}let l=sh({...e,privacy_declarations:null!=n?n:e.privacy_declarations});if(r=F?await w(l):await j(l),await p.upsertCustomFields(e),!F&&e.vendor_id&&!(0,so.D4)(r)&&(null===(a=r.data)||void 0===a?void 0:a.fides_key)){let e=await D({systemKey:r.data.fides_key});(0,so.D4)(e)&&Z((0,v.Vo)("An unexpected error occurred while populating the system assets from Compass. Please try again."))}if(!(0,so.D4)(r)&&(null===(i=r.data)||void 0===i?void 0:i.fides_key)){let s=r.data,t=new Map((s.data_stewards||[]).map(e=>[e.username,e.id])),a=Array.from(t.keys()),i=e.data_stewards||[],n=i.filter(e=>!a.includes(e)),l=a.filter(e=>!i.includes(e));if(await Promise.all(n.map(async e=>{let t=await S({data_steward:e,system_keys:[s.fides_key]});(0,so.D4)(t)&&Z({status:"warning",description:"Failed to assign ".concat(e," as data steward. ").concat((0,so.e$)(t.error,"Please try again."))})})),await Promise.all(l.map(e=>{let s=t.get(e);return s?{steward:e,stewardId:s}:(Z({status:"warning",description:"Could not find user ID for ".concat(e,". Skipping removal.")}),null)}).filter(e=>null!==e).map(async e=>{let{steward:t,stewardId:a}=e,i=await A({userId:a,systemKey:s.fides_key});(0,so.D4)(i)&&Z({status:"warning",description:"Failed to remove ".concat(t," as data steward. ").concat((0,so.e$)(i.error,"Please try again."))})})),n.length>0||l.length>0){let e=await T(s.fides_key);e&&"data"in e&&e.data&&!("error"in e)&&(r.data=e.data)}}(0,so.D4)(r)?Z({status:"error",description:(0,so.e$)(r.error,"An unexpected error occurred while ".concat(F?"editing":"creating"," the system. Please try again."))}):(Z.closeAll(),t.resetForm({values:e}),s(r.data),d((0,ev.b3)("initial")))},B=e=>{if(b.dictionaryService){if(!e){d((0,ev.b3)("hiding")),d((0,ev.gQ)(!1));return}d((0,ev.b3)("showing")),b.tcf&&(0,so.cj)(e)===so.c6.GVL?d((0,ev.gQ)(!0)):d((0,ev.gQ)(!1))}},K=C.isLoading||k.isLoading||p.isLoading;return(0,l.jsx)(V.J9,{initialValues:y,enableReinitialize:!0,onSubmit:W,validationSchema:_,children:e=>{let{dirty:s,values:n,isValid:d}=e;return(0,l.jsxs)(V.l0,{children:[(0,l.jsx)(g.Gt,{id:"SystemInfoTab",name:"System Info"}),(0,l.jsxs)(o.Kqy,{spacing:0,maxWidth:{base:"100%",lg:"70%"},children:[a?(0,l.jsx)(sS,{system:t}):null,(0,l.jsx)(o.xvT,{fontSize:"sm",fontWeight:"medium",children:"By providing a small amount of additional context for each system we can make reporting and understanding our tech stack much easier for everyone from engineering to legal teams. So let’s do this now."}),a?(0,l.jsx)(sS,{system:t}):null,(0,l.jsxs)(e8.Z,{heading:"System details",children:[b.dictionaryService?(0,l.jsx)(sw.Z,{label:"System name",options:R,onVendorSelected:B,isCreate:!t,lockedForGVL:z}):(0,l.jsx)(N.j0,{id:"name",name:"name",label:"System name",tooltip:"Give the system a unique, and relevant name for reporting purposes. e.g. “Email Data Warehouse”",variant:"stacked",isRequired:!0}),(null==t?void 0:t.fides_key)&&(0,l.jsx)(N.j0,{id:"fides_key",name:"fides_key",label:"Unique ID",disabled:!0,variant:"stacked",tooltip:"An auto-generated unique ID based on the system name"}),(0,l.jsx)(sd.Sv,{id:"description",name:"description",label:"Description",tooltip:"What services does this system perform?"}),(0,l.jsx)(U.d,{mode:"tags",id:"tags",name:"tags",label:"System Tags",options:y.tags?y.tags.map(e=>({value:e,label:e})):[],layout:"stacked",tooltip:"Are there any tags to associate with this system?"}),r&&(0,l.jsx)(U.d,{name:"system_groups",label:"System groups",options:I,tooltip:"Which system groups are associated with this system?",mode:"multiple",layout:"stacked"})]}),(0,l.jsx)(e8.Z,{heading:"Dataset reference",children:(0,l.jsx)(U.d,{name:"dataset_references",label:"Dataset references",options:L,tooltip:"Is there a dataset configured for this system?",mode:"multiple",layout:"stacked"})}),(0,l.jsx)(e8.Z,{heading:"Data processing properties",children:(0,l.jsxs)(o.Kqy,{spacing:0,children:[(0,l.jsx)(o.xuv,{mb:4,children:(0,l.jsx)(sd.dQ,{name:"processes_personal_data",label:"This system processes personal data",tooltip:"Does this system process personal data?",disabled:z})}),(0,l.jsx)(o.xuv,{padding:4,borderRadius:4,backgroundColor:"gray.50",children:(0,l.jsxs)(o.Kqy,{spacing:0,children:[(0,l.jsx)(sd.dQ,{name:"exempt_from_privacy_regulations",label:"This system is exempt from privacy regulations",tooltip:"Is this system exempt from privacy regulations?",disabled:!n.processes_personal_data||z}),n.exempt_from_privacy_regulations&&(0,l.jsx)(o.xuv,{mt:4,children:(0,l.jsx)(N.j0,{name:"reason_for_exemption",label:"Reason for exemption",tooltip:"Why is this system exempt from privacy regulation?",variant:"stacked",isRequired:n.exempt_from_privacy_regulations,disabled:z})})]})}),n.processes_personal_data&&!n.exempt_from_privacy_regulations&&(0,l.jsxs)(o.Kqy,{spacing:4,mt:4,children:[(0,l.jsxs)(o.Kqy,{spacing:0,children:[(0,l.jsx)(sd.dQ,{name:"uses_profiling",label:"This system performs profiling",tooltip:"Does this system perform profiling that could have a legal effect?",disabled:z}),n.uses_profiling&&(0,l.jsx)(o.xuv,{mt:4,children:(0,l.jsx)(U.d,{mode:"multiple",layout:"stacked",name:"legal_basis_for_profiling",label:"Legal basis for profiling",options:sv,tooltip:"What is the legal basis under which profiling is performed?",disabled:z,isRequired:n.uses_profiling})})]}),(0,l.jsxs)(o.Kqy,{spacing:0,children:[(0,l.jsx)(sd.dQ,{name:"does_international_transfers",label:"This system transfers data",tooltip:"Does this system transfer data to other countries or international organizations?",disabled:z}),n.does_international_transfers&&(0,l.jsx)(o.xuv,{mt:4,children:(0,l.jsx)(U.d,{mode:"multiple",layout:"stacked",name:"legal_basis_for_transfers",label:"Legal basis for transfer",options:sj,tooltip:"What is the legal basis under which the data is transferred?",isRequired:n.does_international_transfers,disabled:z})})]}),(0,l.jsxs)(o.Kqy,{spacing:0,children:[(0,l.jsx)(N.w8,{name:"requires_data_protection_assessments",label:"This system requires Data Privacy Assessments",tooltip:"Does this system require (DPA/DPIA) assessments?",variant:"stacked",isDisabled:z}),n.requires_data_protection_assessments&&(0,l.jsx)(o.xuv,{mt:4,children:(0,l.jsx)(N.j0,{label:"DPIA/DPA location",name:"dpa_location",tooltip:"Where is the DPA/DPIA stored?",variant:"stacked",disabled:z,isRequired:n.requires_data_protection_assessments})})]})]})]})}),n.processes_personal_data&&!n.exempt_from_privacy_regulations&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(e8.Z,{heading:"Cookie properties",children:[(0,l.jsx)(sd.dQ,{name:"uses_cookies",label:"This system uses cookies",tooltip:"Does this system use cookies?",disabled:z}),(0,l.jsx)(sd.dQ,{name:"cookie_refresh",label:"This system refreshes cookies",tooltip:"Does this system automatically refresh cookies?",disabled:z}),(0,l.jsx)(sd.dQ,{name:"uses_non_cookie_access",label:"This system uses non-cookie trackers",tooltip:"Does this system use other types of trackers?",disabled:z}),(0,l.jsx)(sd.lm,{name:"cookie_max_age_seconds",label:"Maximum duration (seconds)",tooltip:"What is the maximum amount of time a cookie will live?",disabled:z})]}),(0,l.jsxs)(e8.Z,{heading:"Administrative properties",children:[(0,l.jsx)(U.d,{mode:"multiple",layout:"stacked",label:"Data stewards",name:"data_stewards",tooltip:"Who are the stewards assigned to the system?",options:u,showSearch:!0,filterOption:(e,s)=>{var t;return String(null!==(t=null==s?void 0:s.label)&&void 0!==t?t:"").toLowerCase().includes(e.toLowerCase())},placeholder:"Select data stewards"}),(0,l.jsx)(sd.Yb,{id:"privacy_policy",name:"privacy_policy",label:"Privacy policy URL",tooltip:"Where can the privacy policy be located?",disabled:z}),(0,l.jsx)(sd.Yb,{id:"legal_name",name:"legal_name",label:"Legal name",tooltip:"What is the legal name of the business?"}),(0,l.jsx)(sd.Sv,{id:"legal_address",name:"legal_address",label:"Legal address",tooltip:"What is the legal address for the business?"}),(0,l.jsx)(N.j0,{label:"Department",name:"administrating_department",tooltip:"Which department is concerned with this system?",variant:"stacked",disabled:!n.processes_personal_data||n.exempt_from_privacy_regulations}),(0,l.jsx)(U.d,{mode:"multiple",layout:"stacked",label:"Responsibility",name:"responsibility",options:sk,tooltip:"What is the role of the business with regard to data processing?",disabled:!n.processes_personal_data||n.exempt_from_privacy_regulations}),(0,l.jsx)(sd.Yb,{name:"dpo",id:"dpo",label:"Legal contact (DPO)",tooltip:"What is the official privacy contact information?",disabled:z}),(0,l.jsx)(N.j0,{label:"Joint controller",name:"joint_controller_info",tooltip:"Who are the party or parties that share responsibility for processing data?",variant:"stacked",disabled:!n.processes_personal_data||n.exempt_from_privacy_regulations}),(0,l.jsx)(sd.Yb,{label:"Data security practices",name:"data_security_practices",id:"data_security_practices",tooltip:"Which data security practices are employed to keep the data safe?"}),(0,l.jsx)(sd.Yb,{label:"Legitimate interest disclosure URL",name:"legitimate_interest_disclosure_url",id:"legitimate_interest_disclosure_url",disabled:z}),(0,l.jsx)(sd.Yb,{label:"Vendor deleted date",name:"vendor_deleted_date",id:"vendor_deleted_date",tooltip:"If this vendor is no longer active, it will be 'soft' deleted. When that occurs, it's deleted date will be recorded here for reporting.",disabled:!0})]}),n.fides_key?(0,l.jsx)(e5.uc,{resourceType:eW.J.SYSTEM,resourceFidesKey:n.fides_key}):null]})]}),(0,l.jsx)(o.xuv,{mt:6,children:(0,l.jsx)(o.wpx,{htmlType:"submit",type:"primary",disabled:K||!s||!d,loading:K,"data-testid":"save-btn",children:"Save"})}),i]})}})},sT=t(59003),sA=t(92222),sE=t(30952),sq=t(47935),sI=t(90111),sR=t(8133),sz=t(83099),sF=e=>{let{name:s,label:t,labelProps:a,tooltip:i}=e,[n,r,{setValue:d,setTouched:c}]=(0,V.U$)(s),u=!!(r.touched&&r.error);return(0,l.jsx)(o.NIc,{isInvalid:u,isRequired:!0,children:(0,l.jsxs)(o.jqI,{vertical:!0,children:[(0,l.jsxs)(o.jqI,{align:"center",children:[t&&(0,l.jsx)(N.__,{htmlFor:s,fontSize:"xs",mr:1,...a,children:t}),i&&(0,l.jsx)(eV.b,{label:i})]}),(0,l.jsx)(sz.Z,{...n,mode:"multiple",selectedTaxonomies:[],onChange:e=>{d(e)},onBlur:()=>c(!0),variant:"outlined",autoFocus:!1,status:u?"error":void 0,"data-testid":"controlled-select-".concat(s)}),(0,l.jsx)(N.Bc,{isInvalid:u,message:r.error,fieldName:s})]})})};(a=n||(n={})).COOKIE="Cookie",a.BROWSER_REQUEST="Browser Request",a.I_FRAME="iFrame",a.JAVASCRIPT_TAG="Javascript tag",a.IMAGE="Image";let sL=M.Ry().shape({name:M.Z_().required("Enter a name for this asset"),domain:M.Z_().required("Enter a valid domain for this asset"),asset_type:M.Z_().required("Select an asset type"),data_uses:M.IX().min(1,"Select at least one data use"),base_url:M.Z_().when("asset_type",{is:e=>"Cookie"!==e,then:e=>e.required("Base URL is required"),otherwise:e=>e.notRequired()})}),sZ={name:"",description:"",duration:"",data_uses:[],domain:"",asset_type:"",id:"",system_id:""};var sW=e=>{let{isOpen:s,onClose:t,systemKey:a,asset:i,...r}=e,d=!i,[c,{isLoading:u}]=sg(),[p,{isLoading:m}]=sy(),h=(0,o.pmc)(),x=async e=>{let s=await c({systemKey:a,asset:e});if((0,so.D4)(s)){let e=(0,so.e$)(s.error,"An unexpected error occurred while saving this asset. Please try again.");h((0,v.Vo)(e))}else h((0,v.t5)("Asset added successfully")),t()},g=async e=>{let s=await p({systemKey:a,assets:[e]});if((0,so.D4)(s)){let e=(0,so.e$)(s.error,"An unexpected error occurred while saving this asset. Please try again.");h((0,v.Vo)(e))}else h((0,v.t5)("Asset updated successfully")),t()};return(0,l.jsx)(sR.Z,{title:d?"Add asset":"Edit asset",onClose:t,isOpen:s,...r,children:(0,l.jsx)(V.J9,{initialValues:null!=i?i:sZ,onSubmit:e=>{d?x(e):g(e)},validationSchema:sL,children:e=>{let{values:s,isValid:a,dirty:i}=e,r=!!s.asset_type&&"Cookie"===s.asset_type,c=!!s.asset_type&&"Cookie"!==s.asset_type;return(0,l.jsxs)(V.l0,{children:[(0,l.jsxs)(o.jqI,{vertical:!0,className:"pb-6 pt-4",children:[(0,l.jsx)(sI.Z,{children:(0,l.jsx)(o.xvT,{fontSize:"sm",children:"Create and configure assets (e.g. cookies, pixels, tags) for this system to ensure proper consent enforcement. Adding assets manually allows you to define key attributes, assign categories, and align them with compliance requirements."})}),(0,l.jsxs)(o.jqI,{vertical:!0,gap:20,children:[(0,l.jsx)(N.j0,{id:"name",name:"name",label:"Name",variant:"stacked",isRequired:!0,disabled:!d}),(0,l.jsx)(U.d,{isRequired:!0,id:"asset_type",name:"asset_type",label:"Asset type",options:(0,so.MM)(n),layout:"stacked",disabled:!d}),(0,l.jsx)(sF,{name:"data_uses",label:"Data uses",layout:"stacked"}),(0,l.jsx)(N.j0,{id:"domain",name:"domain",label:"Domain",variant:"stacked",isRequired:!0,disabled:!d}),(0,l.jsx)(N.Ks,{id:"description",name:"description",label:"Description",variant:"stacked"}),r&&(0,l.jsx)(N.j0,{id:"duration",name:"duration",label:"Duration",variant:"stacked",placeholder:"e.g. '1 day', '30 minutes', '1 year'",tooltip:"Cookie duration is how long a cookie stays stored in the user's browser before automatically expiring and being deleted.",isRequired:r}),c&&(0,l.jsx)(N.j0,{id:"base_url",name:"base_url",label:"Base URL",variant:"stacked",isRequired:c})]})]}),(0,l.jsxs)(o.jqI,{justify:"space-between",children:[(0,l.jsx)(o.wpx,{onClick:t,children:"Cancel"}),(0,l.jsx)(o.wpx,{type:"primary",htmlType:"submit",loading:u||m,disabled:!a||!i,"data-testid":"save-btn",children:"Save"})]})]})}})})},sP=t(8411),sO=t(72625),sN=t(26092),sV=t.n(sN),sM=t(29850),sU=t(77685),sB=e=>{let{systemKey:s,systemName:t,asset:a,readonly:i}=e,[n,r]=(0,m.useState)(!1),[d,c]=(0,m.useState)(),[u,p]=(0,m.useState)(!1),[h,{isLoading:x}]=sy(),{successAlert:g,errorAlert:y}=(0,A.VY)(),f=(0,o.qY0)(),{asset_type:_,name:b}=a,v=sV()(b||"",{length:50}),j=(0,m.useCallback)(e=>{e.preventDefault(),p(!0)},[]),k=async e=>{if(!e)return;let{newSystemKey:t,newSystemName:i,isNewSystem:n}=e,l=sV()(i,{length:50}),o=await h({systemKey:s,assets:[{id:a.id,system_key:t}]});(0,ef.D4)(o)?y((0,so.e$)(o.error)):g(n?"".concat(l," has been added to your system inventory and the ").concat(_,' "').concat(v,'" has been assigned to that system.'):"".concat(_,' "').concat(v,'" has been assigned to ').concat(l)),r(!1),c(void 0)},w=e=>{c(e),f.onOpen()};return i?(0,l.jsx)(o.j8w,{"data-testid":"system-badge",color:"white",children:t}):(0,l.jsxs)(l.Fragment,{children:[!n&&(0,l.jsxs)(o.j8w,{"data-testid":"system-badge",color:"white",onClick:()=>r(!0),children:[t," ",(0,l.jsx)(o.PJP.I8b,{})]}),!!n&&(0,l.jsx)(sM.R,{variant:"borderless",className:"w-full",autoFocus:!0,defaultOpen:!0,defaultValue:s,onBlur:e=>{var s;(null===(s=e.relatedTarget)||void 0===s?void 0:s.getAttribute("id"))!=="add-new-system"&&r(!1)},onAddSystem:j,onSelect:(e,s)=>w({newSystemKey:e,newSystemName:s.label}),loading:x}),u&&(0,l.jsx)(sU.i,{isOpen:!0,onClose:()=>p(!1),onSuccessfulSubmit:(e,s)=>w({newSystemKey:e,newSystemName:s,isNewSystem:!0})}),(0,l.jsx)(o.cVQ,{isOpen:f.isOpen,onClose:f.onClose,onConfirm:()=>{k(d)},title:"Reassign asset",message:"Are you sure you want to reassign this asset to ".concat(null==d?void 0:d.newSystemName,"?"),isCentered:!0})]})},sK=e=>{let{asset:s,systemKey:t,onEditClick:a}=e,[i,{isLoading:n}]=sf(),r=(0,o.pmc)(),{isOpen:d,onClose:c,onOpen:u}=(0,o.qY0)(),p=async()=>{let e=await i({systemKey:t,asset_ids:[s.id]});(0,ef.D4)(e)?r((0,v.Vo)((0,so.e$)(e.error,"A problem occurred removing this asset. Please try again"))):r((0,v.t5)("Asset removed successfully"))};return(0,l.jsxs)(o.jqI,{className:"gap-1",children:[(0,l.jsx)(o.wpx,{size:"small",onClick:a,"data-testid":"edit-btn",children:"Edit"}),(0,l.jsx)(o.wpx,{size:"small",onClick:u,loading:n,"data-testid":"remove-btn",children:"Remove"}),(0,l.jsx)(o.cVQ,{isOpen:d,onClose:c,onConfirm:p,title:"Remove asset",message:"Are you sure you want to ignore the selected assets? This action cannot be undone and may impact Bidirectional consent.",isCentered:!0})]})},sH=t(34929),sY=t(26183),sG=e=>{var s,t;let{asset:a,systemId:i,readonly:n}=e,{getDataUseDisplayName:r}=(0,sH.Z)(),[d]=sy(),{errorAlert:c,successAlert:u}=(0,I.V)(),[p,h]=(0,m.useState)(!1),x=async e=>{let s=[...a.data_uses||[],e],t=await d({systemKey:i,assets:[{id:a.id,data_uses:s}]});(0,ef.D4)(t)?c((0,so.e$)(t.error)):u("Consent category added to ".concat(a.asset_type,' "').concat(a.name,'".'),"Confirmed")},g=async e=>{var s;let t=null===(s=a.data_uses)||void 0===s?void 0:s.filter(s=>s!==e),n=await d({systemKey:i,assets:[{id:a.id,data_uses:t}]});(0,ef.D4)(n)?c((0,so.e$)(n.error)):u("Consent category removed from ".concat(a.asset_type,' "').concat(a.name,'".'),"Confirmed")},y=null!==(t=null===(s=a.data_uses)||void 0===s?void 0:s.map(e=>({label:r(e),key:e})))&&void 0!==t?t:[];return n?(0,l.jsx)(sY.Z,{children:y.map(e=>(0,l.jsx)(o.j8w,{"data-testid":"data-use-".concat(e.key),color:"white",children:e.label},e.key))}):(0,l.jsxs)(sY.Z,{children:[!p&&(0,l.jsxs)(l.Fragment,{children:[y.map(e=>(0,l.jsx)(o.j8w,{"data-testid":"data-use-".concat(e.key),color:"white",closable:!0,onClose:()=>g(e.key),closeButtonLabel:"Remove data use",children:e.label},e.key)),(0,l.jsx)(o.j8w,{onClick:()=>h(!0),"data-testid":"taxonomy-add-btn",addable:!0,"aria-label":"Add data use"})]}),p&&(0,l.jsx)(o.xuv,{className:"select-wrapper",position:"absolute",zIndex:10,top:"0",left:"0",width:"100%",height:"max",bgColor:"#fff",children:(0,l.jsx)(sz.Z,{selectedTaxonomies:a.data_uses||[],onSelect:x,onBlur:()=>h(!1),open:!0})})]})},s$=e=>{let{systemKey:s,systemName:t,lockedForGVL:a,onEditClick:i}=e,r=(0,sA.Cl)(),d=r.display({id:"select",cell:e=>{let{row:s}=e;return(0,l.jsx)(sO.k,{isChecked:s.getIsSelected(),onChange:s.getToggleSelectedHandler(),dataTestId:"select-".concat(s.original.name||s.id)})},header:e=>{let{table:s}=e;return(0,l.jsx)(sO.k,{isChecked:s.getIsAllPageRowsSelected(),isIndeterminate:s.getIsSomeRowsSelected(),onChange:s.getToggleAllRowsSelectedHandler(),dataTestId:"select-all-rows"})},maxSize:40,meta:{cellProps:{borderRight:"none",paddingRight:0}}}),c=r.accessor(e=>e.name,{id:"name",cell:e=>(0,l.jsx)(sq.G3,{value:e.getValue()}),header:"Asset"}),u=r.accessor(e=>e.asset_type,{id:"resource_type",cell:e=>(0,l.jsx)(sq.G3,{value:e.getValue()}),header:"Type"}),p=r.display({id:"system",cell:e=>(0,l.jsx)(sB,{systemKey:s,systemName:t,asset:e.row.original,readonly:a}),header:"System"}),m=r.accessor(e=>e.data_uses,{id:"data_uses",cell:e=>(0,l.jsx)(sG,{asset:e.row.original,systemId:s,readonly:a}),header:"Categories of consent",size:200}),h=r.accessor(e=>e.locations,{id:"locations",cell:e=>(0,l.jsx)(sO.mb,{values:e.getValue().map(e=>{let s=(0,o.QCN)(e);return{label:s?(0,o.c1K)({isoEntry:s,showFlag:!0}):sP.Z8[e],key:e}})}),header:"Locations",size:300}),x=r.accessor(e=>e.domain,{id:"domain",cell:e=>(0,l.jsx)(sq.G3,{value:e.getValue()}),header:"Domain"}),g=r.accessor(e=>e.duration,{id:"duration",cell:e=>e.row.original.asset_type===n.COOKIE?(0,l.jsx)(sq.G3,{value:e.getValue()}):null,header:"Duration"}),y=r.accessor(e=>e.page,{id:"page",cell:e=>(0,l.jsx)(sO.tc,{values:e.getValue(),valueSuffix:"pages",cellProps:e}),header:e=>(0,l.jsx)(sO.Rr,{value:"Detected on",...e}),meta:{showHeaderMenu:!0,disableRowClick:!0}}),f=r.display({id:"actions",cell:e=>{let{row:t}=e;return(0,l.jsx)(sK,{asset:t.original,systemKey:s,onEditClick:()=>i(t.original)})},header:"Actions"}),_=[c,u,p,m,h,x,g,y];return a?_:[d,..._,f]},sJ=e=>{var s;let{system:t}=e,{PAGE_SIZES:a,pageSize:i,setPageSize:n,onPreviousPageClick:r,isPreviousPageDisabled:d,onNextPageClick:c,isNextPageDisabled:u,startRange:p,endRange:x,pageIndex:g,setTotalPages:y,resetPageIndexToDefault:f}=(0,sq.oi)(),[_,b]=(0,m.useState)(""),[j,k]=(0,m.useState)(void 0),[w,C]=(0,m.useState)({}),[S]=sf(),D=(0,h.C)(ev.gU),T=(0,o.pmc)(),{data:A,isLoading:E,isFetching:q}=sx({fides_key:t.fides_key,search:_,page:g,size:i}),{isOpen:I,onClose:R,onOpen:z}=(0,o.qY0)(),{isOpen:F,onClose:L,onOpen:Z}=(0,o.qY0)();(0,m.useEffect)(()=>{f()},[_,f]),(0,m.useEffect)(()=>{y(null==A?void 0:A.pages)},[A,y]);let W=s$({systemName:null!==(s=t.name)&&void 0!==s?s:t.fides_key,systemKey:t.fides_key,onEditClick:e=>{k(e),z()},lockedForGVL:D}),P=(0,sT.b7)({getCoreRowModel:(0,sA.sC)(),columns:W,manualPagination:!0,data:(null==A?void 0:A.items)||[],columnResizeMode:"onChange",onRowSelectionChange:C,state:{rowSelection:w}}),O=P.getSelectedRowModel().rows.map(e=>e.original.id),N=async()=>{let e=await S({systemKey:t.fides_key,asset_ids:O});(0,ef.D4)(e)?T((0,v.Vo)((0,so.e$)(e.error,"A problem occurred removing these assets. Please try again."))):(P.resetRowSelection(),T((0,v.t5)("Assets removed successfully"))),L()};return t?E?(0,l.jsx)(sq.I4,{rowHeight:36,numRows:36}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(o.xvT,{fontSize:"sm",mb:4,children:D?"This page displays all assets associated with this system. Use the table below to review these technologies for compliance and detailed insights.":"This page displays all assets associated with this system. Use the table below to review and manage these technologies for compliance and detailed insights."}),(0,l.jsxs)(sq.Q$,{children:[(0,l.jsx)(sE.f,{value:_,onChange:b}),!D&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(o.LZC,{}),(0,l.jsx)(o.wpx,{icon:(0,l.jsx)(o.PJP.mm_,{}),iconPosition:"end",onClick:z,"data-testid":"add-asset-btn",children:"Add asset"}),(0,l.jsx)(sW,{isOpen:I,onClose:()=>{k(void 0),R()},systemKey:t.fides_key,asset:j}),(0,l.jsx)(o.wpx,{icon:(0,l.jsx)(o.PJP.ZNm,{}),iconPosition:"end",onClick:Z,disabled:!O.length,"data-testid":"bulk-delete-btn",children:"Remove"}),(0,l.jsx)(o.cVQ,{isOpen:F,onClose:L,onConfirm:N,title:"Remove assets",message:"Are you sure you want to remove the selected assets? This action cannot be undone and may impact Bidirectional consent.",isCentered:!0})]})]}),(0,l.jsx)(sq.ZK,{tableInstance:P,emptyTableNotice:(0,l.jsx)(o.oj8,{image:o.oj8.PRESENTED_IMAGE_SIMPLE,description:"No assets found","data-testid":"empty-state"})}),(0,l.jsx)(sq.s8,{totalRows:(null==A?void 0:A.total)||0,pageSizes:a,setPageSize:n,onPreviousPageClick:r,isPreviousPageDisabled:d||q,onNextPageClick:c,isNextPageDisabled:u||q,startRange:p,endRange:x})]}):null},sQ=e=>{let{setActiveTab:s}=e,t=(0,u.useRouter)(),a=(0,o.pmc)();(0,m.useEffect)(()=>{let{status:e}=t.query;if(e&&t.isReady){s("integrations"),"succeeded"===e?a((0,v.t5)("Integration successfully authorized.")):a((0,v.Vo)("Failed to authorize integration."));let i={...t.query};delete i.status,t.replace({pathname:t.pathname,query:i,hash:"integrations"},void 0,{shallow:!0})}},[t.query,s,t,a])};(i=r||(r={})).INFORMATION="information",i.DATA_USES="data-uses",i.DATA_FLOW="data-flow",i.INTEGRATIONS="integrations",i.ASSETS="assets",i.HISTORY="history";let sX=e=>{let{onViewDatamap:s,onAddPrivacyDeclaration:t}=e;return(0,l.jsxs)(o.xuv,{children:[(0,l.jsx)(o.xvT,{fontWeight:"700",children:"System has been saved successfully"}),(0,l.jsxs)(o.xvT,{textColor:"gray.700",whiteSpace:"inherit",children:["Your system has been added to your data map. You can"," ",(0,l.jsx)(j.Z,{onClick:s,children:"view it now"})," or"," ",(0,l.jsx)(j.Z,{onClick:t,children:"add privacy declarations in the next tab"}),"."]})]})};var s0=e=>{var s,t;let{isCreate:a}=e,i=(0,u.useRouter)(),{activeTab:n,onTabChange:d,setActiveTab:p}=(0,b.Z)({tabKeys:Object.values(r)}),[j,k]=(0,m.useState)(!1),{systemOrDatamapRoute:w}=(0,y.V)(),C=(0,o.pmc)(),S=(0,h.T)(),[D,T]=(0,m.useState)(void 0),{plus:A}=(0,x.hz)(),E=i.query.id,{data:q}=(0,O.rn)(E,{skip:!E||a});(0,m.useEffect)(()=>{q&&T(q.processes_personal_data)},[q]);let I=(0,m.useCallback)(e=>{void 0===q&&k(!0),i.push({pathname:f.Dv,query:{id:e.fides_key}});let s={...v.MA,description:(0,l.jsx)(sX,{onViewDatamap:()=>{i.push(w).then(()=>{C.closeAll()})},onAddPrivacyDeclaration:()=>{d("data-uses"),C.closeAll()}})};C({...s})},[q,i,w,C,d]);(0,m.useEffect)(()=>{a&&(S((0,ev.b3)("initial")),S((0,ev.gQ)(!1)))},[S,a]);let{attemptAction:R}=(0,g.oI)(),z=(0,m.useCallback)(e=>{R().then(async s=>{s&&d(e)})},[R,d]);sQ({setActiveTab:p});let F=[{label:"Information",key:"information",children:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(o.xuv,{px:6,mb:9,children:[(0,l.jsx)(g.eB,{}),(0,l.jsx)(sD,{onSuccess:I,system:q})]}),j?(0,l.jsx)(o.xuv,{backgroundColor:"gray.100",px:6,py:3,children:(0,l.jsxs)(o.xvT,{color:"primary.900",fontSize:"sm","data-testid":"save-help-message",children:["Now that you have saved this new system it is"," ",(0,l.jsx)(o.rUS,{as:c(),href:w,textDecor:"underline",children:"ready to view in your data map"}),". You can return to this setup at any time to add privacy declarations to this system."]})}):null]})},{label:"Data uses",key:"data-uses",children:q?(0,l.jsx)(o.xuv,{px:6,width:{base:"100%",lg:"70%"},children:(0,l.jsx)(sl,{system:q})}):null,disabled:!q||!D},{label:"Data flow",key:"data-flow",children:q?(0,l.jsxs)(o.xuv,{width:{base:"100%",lg:"70%"},children:[(0,l.jsxs)(o.xuv,{px:6,paddingBottom:2,children:[(0,l.jsx)(o.xvT,{fontSize:"md",lineHeight:6,fontWeight:"bold",marginBottom:3,children:"Data flow"}),(0,l.jsx)(o.xvT,{fontSize:"sm",lineHeight:5,fontWeight:"medium",children:"Data flow describes the flow of data between systems in your Data Map. Below, you can configure Source and Destination systems and the corresponding links will be drawn in the Data Map graph. Source systems are systems that send data to this system while Destination systems receive data from this system."})]}),(0,l.jsx)(_.q,{system:q,isSystemTab:!0})]}):null,disabled:!q},{label:"Integrations",key:"integrations",children:q?(0,l.jsxs)(o.xuv,{width:{base:"100%",lg:"70%"},children:[(0,l.jsx)(o.xuv,{px:6,paddingBottom:2,children:(0,l.jsx)(o.xvT,{fontSize:"sm",lineHeight:5,children:A?(0,l.jsxs)(l.Fragment,{children:["Add an integration to start managing privacy requests and consent. Visit"," ",(0,l.jsx)(o.rUS,{href:f.KH,color:"link.900",children:"Integration Management"})," ","to set up monitoring on databases."]}):"Integrations are used to process privacy requests for access erasure, portability, rectification, and consent."})}),(0,l.jsx)(eg,{connectionConfig:q.connection_configs,systemFidesKey:q.fides_key}),(null===(s=q.connection_configs)||void 0===s?void 0:s.key)&&(0,l.jsx)(eb,{m:6,connectionKey:null===(t=q.connection_configs)||void 0===t?void 0:t.key})]}):null,disabled:!q}];return A&&F.push({label:"Assets",key:"assets",children:q?(0,l.jsx)(sJ,{system:q}):null,disabled:!q}),A&&F.push({label:"History",key:"history",children:q?(0,l.jsxs)(o.xuv,{width:{base:"100%",lg:"70%"},children:[(0,l.jsx)(o.xuv,{px:6,paddingBottom:6,children:(0,l.jsx)(o.xvT,{fontSize:"sm",lineHeight:5,fontWeight:"medium",children:"All changes to this system are tracked here in this audit table by date and by user. You can inspect the changes by selecting any of the events listed."})}),(0,l.jsx)(e$,{system:q})]}):null,disabled:!q}),{tabData:F,activeKey:n,onTabChange:z}}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4910],{35287:function(e,t,i){var n=i(24246),s=i(39158),r=i(88038),o=i.n(r);i(27378),t.Z=e=>{let{children:t,title:i,fullHeight:r,fullWidth:l,mainProps:a}=e;return(0,n.jsxs)(s.kCb,{"data-testid":i,direction:"column",height:r?"100vh":"calc(100vh - 48px)",width:l?"100vw":"calc(100vw - 240px)",children:[(0,n.jsxs)(o(),{children:[(0,n.jsxs)("title",{children:["Fides Admin UI - ",i]}),(0,n.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,n.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,n.jsx)(s.kCb,{px:10,py:6,as:"main",overflow:"auto",direction:"column",flex:1,minWidth:0,...a,children:t})]})}},79494:function(e,t,i){var n=i(24246),s=i(39158);t.Z=e=>{let{title:t,icon:i,type:r,...o}=e;return(0,n.jsx)(s.wpx,{size:"small",type:r,"data-testid":"action-".concat(t),icon:i,iconPosition:"start",...o,children:t})}},38347:function(e,t,i){i.d(t,{a:function(){return o}});var n=i(24246),s=i(39158),r=i(76904);let o=()=>{let e=(0,n.jsx)("div",{className:"mx-4 max-w-[300px] py-3",children:(0,n.jsxs)(s.bue,{gutter:[16,8],children:[(0,n.jsx)(s.JGx,{span:12,children:(0,n.jsxs)(s.vyj,{children:[(0,n.jsx)(r.Rv,{}),(0,n.jsx)("div",{children:"Change detected"})]})}),(0,n.jsx)(s.JGx,{span:12,children:(0,n.jsxs)(s.vyj,{children:[(0,n.jsx)(r.$P,{}),(0,n.jsx)("div",{children:"Data labeled"})]})}),(0,n.jsx)(s.JGx,{span:12,children:(0,n.jsxs)(s.vyj,{children:[(0,n.jsx)(r.zj,{}),(0,n.jsx)("div",{children:"Monitoring"})]})}),(0,n.jsx)(s.JGx,{span:12,children:(0,n.jsxs)(s.vyj,{children:[(0,n.jsx)(r.dK,{}),(0,n.jsx)("div",{children:"Addition detected"})]})}),(0,n.jsx)(s.JGx,{span:12,children:(0,n.jsxs)(s.vyj,{children:[(0,n.jsx)(r.Kr,{}),(0,n.jsx)("div",{children:"Unmonitored"})]})}),(0,n.jsx)(s.JGx,{span:12,children:(0,n.jsxs)(s.vyj,{children:[(0,n.jsx)(r.q1,{}),(0,n.jsx)("div",{children:"Removal detected"})]})})]})});return(0,n.jsx)(s.bPF,{content:e,title:"Activity legend:",trigger:["hover","focus"],children:(0,n.jsx)(s.PJP.QKH,{style:{color:"var(--fidesui-neutral-400)",cursor:"pointer"},tabIndex:0})})}},47182:function(e,t,i){var n=i(86677),s=i(77830);t.Z=()=>{let e=(0,n.useRouter)();return{monitorId:e.query.monitorId,resourceUrn:e.query.resourceUrn,navigateToDetectionResults:t=>{let{resourceUrn:i,filterTab:n}=t;e.push({pathname:s.dS,query:{resourceUrn:i},hash:n})},navigateToDiscoveryResults:t=>{let{resourceUrn:i,filterTab:n}=t;e.push({pathname:s.Sj,query:{resourceUrn:i},hash:n})}}}},76904:function(e,t,i){i.d(t,{dK:function(){return u},Rv:function(){return h},$P:function(){return f},zj:function(){return I},Kr:function(){return j},q1:function(){return L},QL:function(){return E}});var n=i(24246),s=i(39158),r=i(3124),o=i.n(r);let l=e=>{let{...t}=e;return(0,n.jsx)("svg",{viewBox:"0 0 8 8",focusable:"false",...t,children:(0,n.jsx)("path",{fill:"currentColor",d:"M7.23192 8H8V7.23192V1.85539V1.08731H6.46385V1.85539V5.37654L1.62976 0.544855L1.08731 0L0 1.08731L0.542454 1.62976L5.37654 6.46385H1.85539H1.08731V8H1.85539H7.23192Z"})})},a=e=>{let{...t}=e;return(0,n.jsx)("svg",{viewBox:"0 0 8 8",focusable:"false",...t,children:(0,n.jsx)("path",{fill:"currentColor",d:"M7.23192 0H8V0.768077V6.14461V6.91269H6.46385V6.14461V2.62346L1.62976 7.45515L1.08731 8L0 6.91269L0.542454 6.37024L5.37654 1.53615H1.85539H1.08731V0H1.85539H7.23192Z"})})},d=e=>{let{...t}=e;return(0,n.jsx)("svg",{viewBox:"0 0 9 10",focusable:"false",...t,children:(0,n.jsx)("path",{fill:"currentColor",d:"M0 0.5V5L4.5 9.5L9 5L4.5 0.5H0ZM2.25 2.10714C2.4205 2.10714 2.58401 2.17487 2.70457 2.29543C2.82513 2.41599 2.89286 2.5795 2.89286 2.75C2.89286 2.9205 2.82513 3.08401 2.70457 3.20457C2.58401 3.32513 2.4205 3.39286 2.25 3.39286C2.0795 3.39286 1.91599 3.32513 1.79543 3.20457C1.67487 3.08401 1.60714 2.9205 1.60714 2.75C1.60714 2.5795 1.67487 2.41599 1.79543 2.29543C1.91599 2.17487 2.0795 2.10714 2.25 2.10714Z"})})};var c=i(28278);let u=()=>(0,n.jsx)(a,{style:{color:o().FIDESUI_SUCCESS},className:"size-2","data-testid":"add-icon"}),L=()=>(0,n.jsx)(l,{style:{color:o().FIDESUI_ERROR},className:"size-2","data-testid":"remove-icon"}),f=()=>(0,n.jsx)(d,{style:{color:o().FIDESUI_WARNING},className:"size-3","data-testid":"classify-icon"}),x=e=>{let{color:t,...i}=e;return(0,n.jsx)(s.PJP.fRw,{style:{color:t},className:"size-2",...i})},h=()=>(0,n.jsx)(x,{color:o().FIDESUI_INFO,"data-testid":"change-icon"}),I=()=>(0,n.jsx)(x,{color:o().FIDESUI_SUCCESS,"data-testid":"monitored-icon"}),j=()=>(0,n.jsx)(x,{color:o().FIDESUI_ERROR,"data-testid":"muted-icon"}),E={[c.E.ADDITION]:(0,n.jsx)(u,{}),[c.E.REMOVAL]:(0,n.jsx)(L,{}),[c.E.CLASSIFICATION]:(0,n.jsx)(f,{}),[c.E.CHANGE]:(0,n.jsx)(h,{}),[c.E.MONITORED]:(0,n.jsx)(I,{}),[c.E.MUTED]:(0,n.jsx)(j,{}),[c.E.IN_PROGRESS]:(0,n.jsx)(()=>(0,n.jsx)(x,{color:o().FIDESUI_WARNING,"data-testid":"in-progress-icon"}),{}),[c.E.NONE]:null}},54409:function(e,t,i){i.d(t,{Z:function(){return x}});var n=i(24246),s=i(39158),r=i(812),o=i(17245),l=i(60240),a=i(31883);let d=(0,s.IUT)({displayName:"MonitorOffIcon",viewBox:"0 0 12 12",path:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.47125 1H5.85H6.15H6.51188L6.58875 1.36914L7.52062 5.83268L6.42408 4.98635L6.03375 3.11719L5.8038 4.50761L4.99323 3.882L5.40562 1.38867L5.47125 1ZM4.80795 5.0022L4.67675 5.79545L5.48735 6.42109L5.61854 5.62783L4.80795 5.0022ZM6.73856 6.49227L6.96125 7.55866L8.42407 8.6877L8.69498 8.00228L7.94864 7.42624L7.88625 7.58398L7.83501 7.33853L6.73856 6.49227ZM8.33138 6.45844L9.07755 7.03434L9.30188 6.4668H11.55H12V5.5293H11.55H9H8.69812L8.58375 5.82031L8.33138 6.45844ZM7.27551 9.06443L7.35399 9.125H7.28813L7.27551 9.06443ZM4.49147 6.91566L5.30209 7.54131L4.79437 10.6113L4.72875 11H4.35H4.05H3.69563L3.61313 10.6406L2.64563 6.46875H0.45H0V5.53125H0.45H2.69777L3.49646 6.1477L4.15125 8.97266L4.49147 6.91566Z",fill:"currentColor"}),(0,n.jsx)("g",{clipPath:"url(#clip0_341_3102)",children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.6755 10.4168L0.164222 2.304L0.775218 1.51237L11.2865 9.62517L10.6755 10.4168Z",fill:"currentColor"})}),(0,n.jsx)("defs",{children:(0,n.jsx)("clipPath",{id:"clip0_341_3102",children:(0,n.jsx)("rect",{width:"11.5",height:"9",fill:"white",transform:"translate(0 1.5)"})})})]})}),c=(0,s.IUT)({displayName:"MonitorOnIcon",viewBox:"0 0 12 10",path:(0,n.jsx)("path",{d:"M5.47125 0H5.85H6.15H6.51188L6.58875 0.369141L7.88625 6.58398L8.58375 4.82031L8.69812 4.5293H9H11.55H12V5.4668H11.55H9.30188L8.36625 7.83398L8.25188 8.125H7.95H7.65H7.28813L7.21125 7.75586L6.03375 2.11719L4.79437 9.61133L4.72875 10H4.35H4.05H3.69563L3.61313 9.64062L2.64563 5.46875H0.45H0V4.53125H0.45H3H3.35438L3.43688 4.89062L4.15125 7.97266L5.40562 0.388672L5.47125 0Z",fill:"currentColor"})});var u=i(79494),L=i(70675),f=i(7940),x=e=>{let{resource:t,ignoreChildActions:i=!1}=e,x=(0,f.G)(t),[h,{isLoading:I}]=(0,L.v8)(),[j,{isLoading:E}]=(0,L.vi)(),[v,{isLoading:_}]=(0,L.Tl)(),{successAlert:A,errorAlert:C}=(0,o.VY)(),D=async()=>{let e=await h({staged_resource_urn:t.urn,monitor_config_id:t.monitor_config_id});(0,a.D4)(e)?C((0,r.e$)(e.error,"Failed to confirm resource")):A("Data discovery has started. The results may take some time to appear in the “Data discovery“ tab.","".concat(t.name||"The resource"," is now being monitored."))},N=async()=>{let e=await v({staged_resource_urn:t.urn});(0,a.D4)(e)?C((0,r.e$)(e.error),"Failed to un-mute resource"):A("".concat(t.name||"The resource"," has been un-muted and is now being monitored."))},S=async()=>{let e=await h({staged_resource_urn:t.urn,monitor_config_id:t.monitor_config_id,unmute_children:!0,classify_monitored_resources:!0});(0,a.D4)(e)?C((0,r.e$)(e.error),"Failed to un-mute resource"):A("Data discovery has started. The results may take some time to appear in the “Data discovery“ tab.","".concat(t.name||"The resource"," is now being monitored."))},m=async()=>{let e=await j({staged_resource_urn:t.urn});(0,a.D4)(e)?C((0,r.e$)(e.error),"Failed to mute resource"):A("Ignored data will not be monitored for changes or added to Fides datasets.","".concat(t.name||"Resource"," ignored"))},O=I||E||_,{diff_status:g,child_diff_statuses:H}=t,T=x===l.D$.SCHEMA,R=x===l.D$.FIELD,p=H&&(H[l.LL.CLASSIFICATION_ADDITION]||H[l.LL.CLASSIFICATION_UPDATE]||H[l.LL.APPROVED]),M=T&&void 0===g||!R&&g===l.LL.ADDITION||p,y=g!==l.LL.MUTED,U=g===l.LL.MUTED&&!R,b=g===l.LL.MUTED&&R,F=H&&(H[l.LL.ADDITION]||H[l.LL.REMOVAL]),w=g===l.LL.MONITORED&&!i&&F&&!p;return(0,n.jsxs)(s.Ugi,{children:[(M||w)&&(0,n.jsx)(u.Z,{title:"Monitor",icon:(0,n.jsx)(c,{}),onClick:D,disabled:O,loading:I}),b&&(0,n.jsx)(u.Z,{title:"Un-Mute",icon:(0,n.jsx)(c,{}),onClick:N,disabled:O,loading:I}),U&&(0,n.jsx)(u.Z,{title:"Monitor",icon:(0,n.jsx)(c,{}),onClick:S,disabled:O,loading:I}),y&&(0,n.jsx)(u.Z,{title:"Ignore",icon:(0,n.jsx)(d,{}),onClick:m,disabled:O,loading:E})]})}},87667:function(e,t,i){var n=i(24246),s=i(39158),r=i(76904),o=i(20449),l=i(98559),a=i(80356);t.Z=e=>{let{result:t,changeTypeOverride:i}=e,d=null!=i?i:(0,o.Z)(t);return(0,n.jsxs)(s.vyj,{className:"h-full",children:[(0,n.jsx)(s.esZ,{title:d,children:(0,n.jsx)("span",{children:r.QL[d]})}),(0,n.jsx)(s.xvT,{fontSize:"xs",lineHeight:4,fontWeight:(0,a.Z)(t)?"semibold":"normal",overflow:"hidden",textOverflow:"ellipsis",children:(0,l.Z)(t)})]})}},50169:function(e,t,i){var n=i(24246),s=i(39158),r=i(47935),o=i(28278),l=i(20449);let a={[o.E.MUTED]:{color:s.tAb.MARBLE,label:"Unmonitored"},[o.E.MONITORED]:{color:s.tAb.SUCCESS,label:"Monitoring"},[o.E.IN_PROGRESS]:{color:s.tAb.INFO,label:"Classifying"}};t.Z=e=>{var t,i,o,d,c;let{result:u,changeTypeOverride:L}=e;if(null===(t=u.user_assigned_data_categories)||void 0===t?void 0:t.length)return(0,n.jsx)(r.A4,{color:s.tAb.SUCCESS,value:"Reviewed"});let f=null!=L?L:(0,l.Z)(u);return(0,n.jsx)(r.A4,{color:null!==(d=null===(i=a[f])||void 0===i?void 0:i.color)&&void 0!==d?d:s.tAb.WARNING,value:null!==(c=null===(o=a[f])||void 0===o?void 0:o.label)&&void 0!==c?c:"Pending review"})}},28278:function(e,t,i){var n,s;i.d(t,{E:function(){return n}}),(s=n||(n={})).ADDITION="Addition",s.CHANGE="Change",s.REMOVAL="Removal",s.CLASSIFICATION="Classification",s.IN_PROGRESS="Classifying",s.MONITORED="Monitoring",s.MUTED="Unmonitored",s.NONE="--"},74241:function(e,t){t.Z=e=>{let t=e.split(".");return t.length>1?t[1]:""}},20449:function(e,t,i){var n=i(28278),s=i(60240);t.Z=e=>e.diff_status===s.LL.ADDITION?n.E.ADDITION:e.diff_status===s.LL.REMOVAL?n.E.REMOVAL:e.diff_status===s.LL.CLASSIFYING||e.diff_status===s.LL.CLASSIFICATION_QUEUED?n.E.IN_PROGRESS:e.diff_status===s.LL.CLASSIFICATION_ADDITION||e.diff_status===s.LL.CLASSIFICATION_UPDATE||e.diff_status===s.LL.APPROVED?n.E.CLASSIFICATION:e.child_diff_statuses?e.child_diff_statuses[s.LL.CLASSIFYING]||e.child_diff_statuses[s.LL.CLASSIFICATION_QUEUED]?n.E.IN_PROGRESS:e.child_diff_statuses[s.LL.CLASSIFICATION_ADDITION]||e.child_diff_statuses[s.LL.CLASSIFICATION_UPDATE]||e.child_diff_statuses[s.LL.APPROVED]?n.E.CLASSIFICATION:e.child_diff_statuses[s.LL.ADDITION]||e.child_diff_statuses[s.LL.REMOVAL]?n.E.CHANGE:e.diff_status===s.LL.MONITORED?n.E.MONITORED:e.diff_status===s.LL.MUTED?n.E.MUTED:n.E.NONE:n.E.NONE},80285:function(e,t){t.Z=e=>e.urn},31883:function(e,t,i){i.d(t,{Bw:function(){return n.Bw},D4:function(){return n.D4}});var n=i(19043)}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5185],{51472:function(e,t,n){var r=n(24246),l=n(98227),i=n(47397),o=n(7078),a=n(18397),s=n(11055),d=n(27378),u=n(40324),c=n(46238);let x=e=>{let{item:t,label:n,draggable:a,onDeleteItem:s,onEditItem:d,tooltip:u,onRowClick:x,maxH:p=10,rowTestId:m}=e,f=(0,i.o)(),h=(0,r.jsxs)(l.kCb,{direction:"row",gap:2,maxH:p,w:"full",px:2,align:"center",role:"group",className:"group",borderY:"1px",my:"-1px",borderColor:"gray.200",_hover:x?{bgColor:"gray.100"}:void 0,bgColor:"white",position:"relative",children:[a&&(0,r.jsx)(l.VVU,{onPointerDown:e=>f.start(e),cursor:"grab"}),(0,r.jsxs)(l.kCb,{direction:"row",gap:2,p:2,align:"center",w:"full",cursor:x?"pointer":"auto",onClick:()=>{x&&x(t)},overflow:"clip","data-testid":m,children:[(0,r.jsx)(l.xvT,{fontSize:"sm",userSelect:"none",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",children:n}),(0,r.jsx)(c.b,{label:u})]}),(0,r.jsxs)(l.vyj,{className:"invisible absolute right-2 bg-white group-hover:visible",children:[d&&(0,r.jsx)(l.wpx,{"aria-label":"Edit",onClick:()=>d(t),icon:(0,r.jsx)(l.PJP.I8b,{}),size:"small","data-testid":"edit-".concat(m)}),s&&(0,r.jsx)(l.wpx,{"aria-label":"Delete",onClick:()=>s(t),icon:(0,r.jsx)(l.PJP.ZNm,{}),size:"small","data-testid":"delete-".concat(m)})]})]});return a?(0,r.jsx)(o.e,{value:t,dragListener:!1,dragControls:f,children:h}):h},p=e=>{let{label:t,options:n,onOptionSelected:i,baseTestId:o}=e,[a,s]=(0,d.useState)(!1),[u,c]=(0,d.useState)(void 0);return a?(0,r.jsx)(l.xuv,{w:"full",children:(0,r.jsx)(l.WPr,{labelInValue:!0,placeholder:"Select...",filterOption:(e,t)=>{var n;return(null!==(n=null==t?void 0:t.label)&&void 0!==n?n:"").toLowerCase().includes(e.toLowerCase())},value:u,options:n,onChange:e=>{i(e),s(!1),c(void 0)},className:"w-full","data-testid":"select-".concat(o),"aria-label":t})}):(0,r.jsx)(l.wpx,{onClick:()=>s(!0),"data-testid":"add-".concat(o),block:!0,icon:(0,r.jsx)(l.jBn,{boxSize:4}),iconPosition:"end",children:t})};t.Z=e=>{let{label:t,tooltip:n,draggable:i,addButtonLabel:o,allItems:d,idField:m,nameField:f=m,values:h,setValues:v,canDeleteItem:j,getTooltip:g,onRowClick:b,onEditItem:y,selectOnAdd:w,getItemLabel:C,createNewValue:S,maxHeight:I=36,baseTestId:R}=e,k=e=>e instanceof Object&&m&&m in e?e[m]:e,E=d.every(e=>"string"==typeof e)?d.filter(e=>h.every(t=>t!==e)):d.filter(e=>h.every(t=>k(t)!==k(e))),T=e=>{v(h.filter(t=>t!==e).slice())},N=null!=C?C:e=>e instanceof Object&&m&&m in e?f&&f in e?e[f]:e[m]:e,P=e=>{let t=e instanceof Object&&m&&m in e?e[m]:e;return{label:N(e),value:t}},_=e=>d.every(e=>"string"==typeof e)?e.value:d.find(t=>t[m]===e.value),q=e=>{let t=S?S(e):_(e);v([t,...h.slice()]),w&&b&&b(t),w&&y&&y(t)},O={border:"1px",borderColor:"gray.200",borderRadius:"md",w:"full",maxH:"8.5rem",overflowY:"auto"},Z=i?(0,r.jsx)(l.xuv,{as:a.E.div,layoutScroll:!0,...O,children:(0,r.jsx)(s.M,{values:h,onReorder:e=>v(e.slice()),children:h.map(e=>{let t=k(e);return(0,r.jsx)(x,{item:e,label:N(e),onDeleteItem:!j||j&&j(e)?T:void 0,onEditItem:y,onRowClick:b,draggable:!0,maxH:I,rowTestId:"".concat(R,"-row-").concat(t),tooltip:g&&g(e)?g(e):void 0},t)})})}):(0,r.jsx)(l.xuv,{...O,children:(0,r.jsx)(l.aVo,{children:h.map(e=>{let t=k(e);return(0,r.jsx)(x,{item:e,label:N(e),onRowClick:b,onDeleteItem:T,tooltip:g&&g(e)?g(e):void 0,maxH:I,rowTestId:"".concat(R,"-row-").concat(t)},t)})})});return h.length?(0,r.jsxs)(l.kCb,{align:"start",direction:"column",w:"full",gap:4,children:[t?(0,r.jsx)(u.__,{htmlFor:"test",fontSize:"xs",my:0,mr:1,children:t}):null,(0,r.jsx)(c.b,{label:n}),Z,E.length?(0,r.jsx)(p,{label:null!=o?o:"Add new",options:E.map(e=>P(e)),onOptionSelected:q,baseTestId:R}):null]}):(0,r.jsx)(p,{label:null!=o?o:"Add new",options:E.map(e=>P(e)),onOptionSelected:q,baseTestId:R})}},97181:function(e,t,n){n.d(t,{d:function(){return d}});var r=n(24246),l=n(98227),i=n(34090),o=n(27378),a=n(46238),s=n(40324);let d=e=>{let{name:t,label:n,labelProps:d,tooltip:u,isRequired:c,layout:x="inline",helperText:p,...m}=e,[f,h,{setValue:v}]=(0,i.U$)(t),j=!!(h.touched&&h.error),[g,b]=(0,o.useState)("");f.value||"tags"!==m.mode&&"multiple"!==m.mode||(f.value=[]),"tags"===m.mode&&"string"==typeof f.value&&(f.value=[f.value]);let y="tags"===m.mode?(e,t)=>e?e.value!==g||f.value.includes(g)?m.optionRender?m.optionRender(e,t):e.label:'Create "'.concat(g,'"'):void 0:m.optionRender||void 0,w=e=>{b(e),m.onSearch&&m.onSearch(e)},C=(e,t)=>{v(e),m.onChange&&m.onChange(e,t)};return"inline"===x?(0,r.jsx)(l.NIc,{isInvalid:j,isRequired:c,children:(0,r.jsxs)(l.rjZ,{templateColumns:n?"1fr 3fr":"1fr",children:[n?(0,r.jsx)(s.__,{htmlFor:m.id||t,...d,children:n}):null,(0,r.jsxs)(l.jqI,{align:"center",children:[(0,r.jsxs)(l.jqI,{vertical:!0,flex:1,className:"mr-2",children:[(0,r.jsx)(l.WPr,{...f,id:m.id||t,"data-testid":"controlled-select-".concat(f.name),...m,optionRender:y,onSearch:"tags"===m.mode?w:void 0,onChange:C,value:f.value||void 0,status:j?"error":void 0}),p&&(0,r.jsx)(l.Q6r,{children:p}),(0,r.jsx)(s.Bc,{isInvalid:j,message:h.error,fieldName:f.name})]}),(0,r.jsx)(a.b,{label:u,className:j?"mt-2 self-start":void 0})]})]})}):(0,r.jsx)(l.NIc,{isInvalid:j,isRequired:c,children:(0,r.jsxs)(l.gCW,{alignItems:"start",children:[(0,r.jsxs)(l.jqI,{align:"center",children:[n?(0,r.jsx)(s.__,{htmlFor:m.id||t,fontSize:"xs",my:0,mr:1,...d,children:n}):null,(0,r.jsx)(a.b,{label:u})]}),(0,r.jsx)(l.WPr,{...f,id:m.id||t,"data-testid":"controlled-select-".concat(f.name),...m,optionRender:y,onSearch:"tags"===m.mode?w:void 0,onChange:C,value:f.value||void 0,status:j?"error":void 0}),p&&(0,r.jsx)(l.Q6r,{style:{marginTop:0},children:p}),(0,r.jsx)(s.Bc,{isInvalid:j,message:h.error,fieldName:f.name})]})})}},10342:function(e,t,n){var r=n(24246),l=n(98227),i=n(46238);t.Z=e=>{let{title:t,tooltip:n,children:o,...a}=e;return(0,r.jsxs)(l.xuv,{borderRadius:"md",border:"1px solid",borderColor:"gray.200",...a,children:[(0,r.jsxs)(l.X6q,{as:"h3",fontSize:"sm",fontWeight:"semibold",color:"gray.700",py:4,px:6,backgroundColor:"gray.50",borderRadius:"md",textAlign:"left",children:[t,n?(0,r.jsx)(l.xvT,{as:"span",mx:1,children:(0,r.jsx)(i.b,{label:n})}):void 0]}),(0,r.jsx)(l.Kqy,{p:6,spacing:6,children:o})]})}},18880:function(e,t,n){var r=n(24246),l=n(98227),i=n(34090),o=n(86677),a=n(27378),s=n(16134),d=n(10342),u=n(40324),c=n(812),x=n(77830),p=n(51472),m=n(94315),f=n(65735),h=n(97181),v=n(3642);let j=()=>{var e;let t=(0,s.C)(m.Zp),n=(0,s.C)(m.G1);(0,m.cq)({page:t,size:n});let l=(0,s.C)(m.w4),{values:o,setFieldValue:a}=(0,i.u6)();return(0,r.jsx)(d.Z,{title:"Experiences",children:(0,r.jsx)(p.Z,{addButtonLabel:"Add experience",idField:"id",nameField:"name",allItems:l.map(e=>({id:e.id,name:e.name})),values:null!==(e=o.experiences)&&void 0!==e?e:[],setValues:e=>a("experiences",e),draggable:!0,baseTestId:"experience"})})};t.Z=e=>{let{property:t,handleSubmit:n}=e,s=(0,o.useRouter)(),p=()=>{s.push(x.ru)},m=(0,a.useMemo)(()=>t||{name:"",type:f.uS.WEBSITE,experiences:[],messaging_templates:[],paths:[]},[t]);return(0,r.jsx)(i.J9,{enableReinitialize:!0,initialValues:m,onSubmit:n,children:e=>{let{dirty:n,isValid:o,isSubmitting:a}=e;return(0,r.jsxs)(i.l0,{style:{paddingTop:"12px",paddingBottom:"12px"},children:[(0,r.jsx)(l.xuv,{py:3,children:(0,r.jsxs)(d.Z,{title:"Property details",children:[(0,r.jsx)(u.j0,{isRequired:!0,label:"Property name",name:"name",tooltip:"Unique name to identify this property",variant:"stacked"}),(0,r.jsx)(h.d,{isRequired:!0,label:"Type",name:"type",options:(0,c.MM)(f.uS),layout:"stacked"})]})}),(0,r.jsx)(l.xuv,{py:3,children:(0,r.jsx)(j,{})}),t&&(0,r.jsx)(l.xuv,{py:3,children:(0,r.jsx)(d.Z,{title:"Advanced settings",children:(0,r.jsx)(u.Io,{label:"Property ID",name:"id",tooltip:"Automatically generated unique ID for this property, used for developer configurations",variant:"stacked",readOnly:!0})})}),(0,r.jsxs)(l.kCb,{justifyContent:"space-between",width:"100%",paddingTop:2,children:[t&&(0,r.jsx)(v.Z,{property:t,triggerComponent:(0,r.jsx)(l.wpx,{"data-testid":"delete-property-button",loading:!1,className:"mr-3",children:"Delete"})}),(0,r.jsxs)(l.kCb,{justifyContent:"right",width:"100%",paddingTop:2,children:[(0,r.jsx)(l.wpx,{onClick:p,loading:!1,className:"mr-3",children:"Cancel"}),(0,r.jsx)(l.wpx,{htmlType:"submit",type:"primary",disabled:a||!n||!o,loading:a,children:"Save"})]})]})]})}})}},31883:function(e,t,n){n.d(t,{Bw:function(){return r.Bw},D4:function(){return r.D4}});var r=n(19043)},11055:function(e,t,n){n.d(t,{M:function(){return c}});var r=n(24246),l=n(29427),i=n(27378),o=n(40976),a=n(18397),s=n(42308),d=n(25431),u=n(39556);let c=(0,i.forwardRef)(function({children:e,as:t="ul",axis:n="y",onReorder:c,values:m,...f},h){let v=(0,s.h)(()=>a.E[t]),j=[],g=(0,i.useRef)(!1);return(0,l.k)(!!m,"Reorder.Group must be provided a values prop"),(0,i.useEffect)(()=>{g.current=!1}),(0,r.jsx)(v,{...f,ref:h,ignoreStrict:!0,children:(0,r.jsx)(o.Y.Provider,{value:{axis:n,registerItem:(e,t)=>{let r=j.findIndex(t=>e===t.value);-1!==r?j[r].layout=t[n]:j.push({value:e,layout:t[n]}),j.sort(p)},updateOrder:(e,t,n)=>{if(g.current)return;let r=function(e,t,n,r){if(!r)return e;let l=e.findIndex(e=>e.value===t);if(-1===l)return e;let i=r>0?1:-1,o=e[l+i];if(!o)return e;let a=e[l],s=o.layout,c=(0,u.t)(s.min,s.max,.5);return 1===i&&a.layout.max+n>c||-1===i&&a.layout.min+n<c?(0,d.uo)(e,l,l+i):e}(j,e,t,n);j!==r&&(g.current=!0,c(r.map(x).filter(e=>-1!==m.indexOf(e))))}},children:e})})});function x(e){return e.value}function p(e,t){return e.layout.min-t.layout.min}},7078:function(e,t,n){n.d(t,{e:function(){return y}});var r=n(24246),l=n(29427),i=n(27378),o=n(40976),a=n(18397),s=n(42308),d=n(69222),u=n(67412);function c(e){let t=(0,s.h)(()=>(0,d.BX)(e)),{isStatic:n}=(0,i.useContext)(u._);if(n){let[,n]=(0,i.useState)(e);(0,i.useEffect)(()=>t.on("change",n),[])}return t}var x=n(13998);let p=e=>e&&"object"==typeof e&&e.mix,m=e=>p(e)?e.mix:void 0;var f=n(64306),h=n(95984);function v(e,t){let n=c(t()),r=()=>n.set(t());return r(),(0,f.L)(()=>{let t=()=>h.Wi.preRender(r,!1,!0),n=e.map(e=>e.on("change",t));return()=>{n.forEach(e=>e()),(0,h.Pn)(r)}}),n}function j(e,t){let n=(0,s.h)(()=>[]);return v(e,()=>{n.length=0;let r=e.length;for(let t=0;t<r;t++)n[t]=e[t].get();return t(n)})}var g=n(3522);function b(e,t=0){return(0,g.i)(e)?e:c(t)}let y=(0,i.forwardRef)(function({children:e,style:t={},value:n,as:u="li",onDrag:c,layout:p=!0,...f},h){let g=(0,s.h)(()=>a.E[u]),y=(0,i.useContext)(o.Y),w={x:b(t.x),y:b(t.y)},C=function(e,t,n,r){if("function"==typeof e)return function(e){d.S1.current=[],e();let t=v(d.S1.current,e);return d.S1.current=void 0,t}(e);let l="function"==typeof t?t:function(...e){let t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],l=e[1+n],i=e[2+n],o=e[3+n],a=(0,x.s)(l,i,{mixer:m(i[0]),...o});return t?a(r):a}(t,void 0,void 0);return Array.isArray(e)?j(e,l):j([e],([e])=>l(e))}([w.x,w.y],([e,t])=>e||t?1:"unset");(0,l.k)(!!y,"Reorder.Item must be a child of Reorder.Group");let{axis:S,registerItem:I,updateOrder:R}=y;return(0,r.jsx)(g,{drag:S,...f,dragSnapToOrigin:!0,style:{...t,x:w.x,y:w.y,zIndex:C},layout:p,onDrag:(e,t)=>{let{velocity:r}=t;r[S]&&R(n,w[S].get(),r[S]),c&&c(e,t)},onLayoutMeasure:e=>I(n,e),ref:h,ignoreStrict:!0,children:e})})},40976:function(e,t,n){n.d(t,{Y:function(){return r}});let r=(0,n(27378).createContext)(null)},47397:function(e,t,n){n.d(t,{o:function(){return o}});var r=n(42308);class l{constructor(){this.componentControls=new Set}subscribe(e){return this.componentControls.add(e),()=>this.componentControls.delete(e)}start(e,t){this.componentControls.forEach(n=>{n.start(e.nativeEvent||e,t)})}}let i=()=>new l;function o(){return(0,r.h)(i)}}}]);
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5185],{51472:function(e,t,n){var r=n(24246),l=n(39158),i=n(47397),o=n(7078),a=n(18397),s=n(11055),d=n(27378),u=n(40324),c=n(46238);let x=e=>{let{item:t,label:n,draggable:a,onDeleteItem:s,onEditItem:d,tooltip:u,onRowClick:x,maxH:p=10,rowTestId:m}=e,f=(0,i.o)(),h=(0,r.jsxs)(l.kCb,{direction:"row",gap:2,maxH:p,w:"full",px:2,align:"center",role:"group",className:"group",borderY:"1px",my:"-1px",borderColor:"gray.200",_hover:x?{bgColor:"gray.100"}:void 0,bgColor:"white",position:"relative",children:[a&&(0,r.jsx)(l.VVU,{onPointerDown:e=>f.start(e),cursor:"grab"}),(0,r.jsxs)(l.kCb,{direction:"row",gap:2,p:2,align:"center",w:"full",cursor:x?"pointer":"auto",onClick:()=>{x&&x(t)},overflow:"clip","data-testid":m,children:[(0,r.jsx)(l.xvT,{fontSize:"sm",userSelect:"none",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",children:n}),(0,r.jsx)(c.b,{label:u})]}),(0,r.jsxs)(l.vyj,{className:"invisible absolute right-2 bg-white group-hover:visible",children:[d&&(0,r.jsx)(l.wpx,{"aria-label":"Edit",onClick:()=>d(t),icon:(0,r.jsx)(l.PJP.I8b,{}),size:"small","data-testid":"edit-".concat(m)}),s&&(0,r.jsx)(l.wpx,{"aria-label":"Delete",onClick:()=>s(t),icon:(0,r.jsx)(l.PJP.ZNm,{}),size:"small","data-testid":"delete-".concat(m)})]})]});return a?(0,r.jsx)(o.e,{value:t,dragListener:!1,dragControls:f,children:h}):h},p=e=>{let{label:t,options:n,onOptionSelected:i,baseTestId:o}=e,[a,s]=(0,d.useState)(!1),[u,c]=(0,d.useState)(void 0);return a?(0,r.jsx)(l.xuv,{w:"full",children:(0,r.jsx)(l.WPr,{labelInValue:!0,placeholder:"Select...",filterOption:(e,t)=>{var n;return(null!==(n=null==t?void 0:t.label)&&void 0!==n?n:"").toLowerCase().includes(e.toLowerCase())},value:u,options:n,onChange:e=>{i(e),s(!1),c(void 0)},className:"w-full","data-testid":"select-".concat(o),"aria-label":t})}):(0,r.jsx)(l.wpx,{onClick:()=>s(!0),"data-testid":"add-".concat(o),block:!0,icon:(0,r.jsx)(l.jBn,{boxSize:4}),iconPosition:"end",children:t})};t.Z=e=>{let{label:t,tooltip:n,draggable:i,addButtonLabel:o,allItems:d,idField:m,nameField:f=m,values:h,setValues:v,canDeleteItem:j,getTooltip:g,onRowClick:b,onEditItem:y,selectOnAdd:w,getItemLabel:C,createNewValue:S,maxHeight:I=36,baseTestId:R}=e,k=e=>e instanceof Object&&m&&m in e?e[m]:e,E=d.every(e=>"string"==typeof e)?d.filter(e=>h.every(t=>t!==e)):d.filter(e=>h.every(t=>k(t)!==k(e))),T=e=>{v(h.filter(t=>t!==e).slice())},N=null!=C?C:e=>e instanceof Object&&m&&m in e?f&&f in e?e[f]:e[m]:e,P=e=>{let t=e instanceof Object&&m&&m in e?e[m]:e;return{label:N(e),value:t}},_=e=>d.every(e=>"string"==typeof e)?e.value:d.find(t=>t[m]===e.value),q=e=>{let t=S?S(e):_(e);v([t,...h.slice()]),w&&b&&b(t),w&&y&&y(t)},O={border:"1px",borderColor:"gray.200",borderRadius:"md",w:"full",maxH:"8.5rem",overflowY:"auto"},Z=i?(0,r.jsx)(l.xuv,{as:a.E.div,layoutScroll:!0,...O,children:(0,r.jsx)(s.M,{values:h,onReorder:e=>v(e.slice()),children:h.map(e=>{let t=k(e);return(0,r.jsx)(x,{item:e,label:N(e),onDeleteItem:!j||j&&j(e)?T:void 0,onEditItem:y,onRowClick:b,draggable:!0,maxH:I,rowTestId:"".concat(R,"-row-").concat(t),tooltip:g&&g(e)?g(e):void 0},t)})})}):(0,r.jsx)(l.xuv,{...O,children:(0,r.jsx)(l.aVo,{children:h.map(e=>{let t=k(e);return(0,r.jsx)(x,{item:e,label:N(e),onRowClick:b,onDeleteItem:T,tooltip:g&&g(e)?g(e):void 0,maxH:I,rowTestId:"".concat(R,"-row-").concat(t)},t)})})});return h.length?(0,r.jsxs)(l.kCb,{align:"start",direction:"column",w:"full",gap:4,children:[t?(0,r.jsx)(u.__,{htmlFor:"test",fontSize:"xs",my:0,mr:1,children:t}):null,(0,r.jsx)(c.b,{label:n}),Z,E.length?(0,r.jsx)(p,{label:null!=o?o:"Add new",options:E.map(e=>P(e)),onOptionSelected:q,baseTestId:R}):null]}):(0,r.jsx)(p,{label:null!=o?o:"Add new",options:E.map(e=>P(e)),onOptionSelected:q,baseTestId:R})}},97181:function(e,t,n){n.d(t,{d:function(){return d}});var r=n(24246),l=n(39158),i=n(34090),o=n(27378),a=n(46238),s=n(40324);let d=e=>{let{name:t,label:n,labelProps:d,tooltip:u,isRequired:c,layout:x="inline",helperText:p,...m}=e,[f,h,{setValue:v}]=(0,i.U$)(t),j=!!(h.touched&&h.error),[g,b]=(0,o.useState)("");f.value||"tags"!==m.mode&&"multiple"!==m.mode||(f.value=[]),"tags"===m.mode&&"string"==typeof f.value&&(f.value=[f.value]);let y="tags"===m.mode?(e,t)=>e?e.value!==g||f.value.includes(g)?m.optionRender?m.optionRender(e,t):e.label:'Create "'.concat(g,'"'):void 0:m.optionRender||void 0,w=e=>{b(e),m.onSearch&&m.onSearch(e)},C=(e,t)=>{v(e),m.onChange&&m.onChange(e,t)};return"inline"===x?(0,r.jsx)(l.NIc,{isInvalid:j,isRequired:c,children:(0,r.jsxs)(l.rjZ,{templateColumns:n?"1fr 3fr":"1fr",children:[n?(0,r.jsx)(s.__,{htmlFor:m.id||t,...d,children:n}):null,(0,r.jsxs)(l.jqI,{align:"center",children:[(0,r.jsxs)(l.jqI,{vertical:!0,flex:1,className:"mr-2",children:[(0,r.jsx)(l.WPr,{...f,id:m.id||t,"data-testid":"controlled-select-".concat(f.name),...m,optionRender:y,onSearch:"tags"===m.mode?w:void 0,onChange:C,value:f.value||void 0,status:j?"error":void 0}),p&&(0,r.jsx)(l.Q6r,{children:p}),(0,r.jsx)(s.Bc,{isInvalid:j,message:h.error,fieldName:f.name})]}),(0,r.jsx)(a.b,{label:u,className:j?"mt-2 self-start":void 0})]})]})}):(0,r.jsx)(l.NIc,{isInvalid:j,isRequired:c,children:(0,r.jsxs)(l.gCW,{alignItems:"start",children:[(0,r.jsxs)(l.jqI,{align:"center",children:[n?(0,r.jsx)(s.__,{htmlFor:m.id||t,fontSize:"xs",my:0,mr:1,...d,children:n}):null,(0,r.jsx)(a.b,{label:u})]}),(0,r.jsx)(l.WPr,{...f,id:m.id||t,"data-testid":"controlled-select-".concat(f.name),...m,optionRender:y,onSearch:"tags"===m.mode?w:void 0,onChange:C,value:f.value||void 0,status:j?"error":void 0}),p&&(0,r.jsx)(l.Q6r,{style:{marginTop:0},children:p}),(0,r.jsx)(s.Bc,{isInvalid:j,message:h.error,fieldName:f.name})]})})}},10342:function(e,t,n){var r=n(24246),l=n(39158),i=n(46238);t.Z=e=>{let{title:t,tooltip:n,children:o,...a}=e;return(0,r.jsxs)(l.xuv,{borderRadius:"md",border:"1px solid",borderColor:"gray.200",...a,children:[(0,r.jsxs)(l.X6q,{as:"h3",fontSize:"sm",fontWeight:"semibold",color:"gray.700",py:4,px:6,backgroundColor:"gray.50",borderRadius:"md",textAlign:"left",children:[t,n?(0,r.jsx)(l.xvT,{as:"span",mx:1,children:(0,r.jsx)(i.b,{label:n})}):void 0]}),(0,r.jsx)(l.Kqy,{p:6,spacing:6,children:o})]})}},18880:function(e,t,n){var r=n(24246),l=n(39158),i=n(34090),o=n(86677),a=n(27378),s=n(16134),d=n(10342),u=n(40324),c=n(812),x=n(77830),p=n(51472),m=n(94315),f=n(60240),h=n(97181),v=n(3642);let j=()=>{var e;let t=(0,s.C)(m.Zp),n=(0,s.C)(m.G1);(0,m.cq)({page:t,size:n});let l=(0,s.C)(m.w4),{values:o,setFieldValue:a}=(0,i.u6)();return(0,r.jsx)(d.Z,{title:"Experiences",children:(0,r.jsx)(p.Z,{addButtonLabel:"Add experience",idField:"id",nameField:"name",allItems:l.map(e=>({id:e.id,name:e.name})),values:null!==(e=o.experiences)&&void 0!==e?e:[],setValues:e=>a("experiences",e),draggable:!0,baseTestId:"experience"})})};t.Z=e=>{let{property:t,handleSubmit:n}=e,s=(0,o.useRouter)(),p=()=>{s.push(x.ru)},m=(0,a.useMemo)(()=>t||{name:"",type:f.uS.WEBSITE,experiences:[],messaging_templates:[],paths:[]},[t]);return(0,r.jsx)(i.J9,{enableReinitialize:!0,initialValues:m,onSubmit:n,children:e=>{let{dirty:n,isValid:o,isSubmitting:a}=e;return(0,r.jsxs)(i.l0,{style:{paddingTop:"12px",paddingBottom:"12px"},children:[(0,r.jsx)(l.xuv,{py:3,children:(0,r.jsxs)(d.Z,{title:"Property details",children:[(0,r.jsx)(u.j0,{isRequired:!0,label:"Property name",name:"name",tooltip:"Unique name to identify this property",variant:"stacked"}),(0,r.jsx)(h.d,{isRequired:!0,label:"Type",name:"type",options:(0,c.MM)(f.uS),layout:"stacked"})]})}),(0,r.jsx)(l.xuv,{py:3,children:(0,r.jsx)(j,{})}),t&&(0,r.jsx)(l.xuv,{py:3,children:(0,r.jsx)(d.Z,{title:"Advanced settings",children:(0,r.jsx)(u.Io,{label:"Property ID",name:"id",tooltip:"Automatically generated unique ID for this property, used for developer configurations",variant:"stacked",readOnly:!0})})}),(0,r.jsxs)(l.kCb,{justifyContent:"space-between",width:"100%",paddingTop:2,children:[t&&(0,r.jsx)(v.Z,{property:t,triggerComponent:(0,r.jsx)(l.wpx,{"data-testid":"delete-property-button",loading:!1,className:"mr-3",children:"Delete"})}),(0,r.jsxs)(l.kCb,{justifyContent:"right",width:"100%",paddingTop:2,children:[(0,r.jsx)(l.wpx,{onClick:p,loading:!1,className:"mr-3",children:"Cancel"}),(0,r.jsx)(l.wpx,{htmlType:"submit",type:"primary",disabled:a||!n||!o,loading:a,children:"Save"})]})]})]})}})}},31883:function(e,t,n){n.d(t,{Bw:function(){return r.Bw},D4:function(){return r.D4}});var r=n(19043)},11055:function(e,t,n){n.d(t,{M:function(){return c}});var r=n(24246),l=n(29427),i=n(27378),o=n(40976),a=n(18397),s=n(42308),d=n(25431),u=n(39556);let c=(0,i.forwardRef)(function({children:e,as:t="ul",axis:n="y",onReorder:c,values:m,...f},h){let v=(0,s.h)(()=>a.E[t]),j=[],g=(0,i.useRef)(!1);return(0,l.k)(!!m,"Reorder.Group must be provided a values prop"),(0,i.useEffect)(()=>{g.current=!1}),(0,r.jsx)(v,{...f,ref:h,ignoreStrict:!0,children:(0,r.jsx)(o.Y.Provider,{value:{axis:n,registerItem:(e,t)=>{let r=j.findIndex(t=>e===t.value);-1!==r?j[r].layout=t[n]:j.push({value:e,layout:t[n]}),j.sort(p)},updateOrder:(e,t,n)=>{if(g.current)return;let r=function(e,t,n,r){if(!r)return e;let l=e.findIndex(e=>e.value===t);if(-1===l)return e;let i=r>0?1:-1,o=e[l+i];if(!o)return e;let a=e[l],s=o.layout,c=(0,u.t)(s.min,s.max,.5);return 1===i&&a.layout.max+n>c||-1===i&&a.layout.min+n<c?(0,d.uo)(e,l,l+i):e}(j,e,t,n);j!==r&&(g.current=!0,c(r.map(x).filter(e=>-1!==m.indexOf(e))))}},children:e})})});function x(e){return e.value}function p(e,t){return e.layout.min-t.layout.min}},7078:function(e,t,n){n.d(t,{e:function(){return y}});var r=n(24246),l=n(29427),i=n(27378),o=n(40976),a=n(18397),s=n(42308),d=n(69222),u=n(67412);function c(e){let t=(0,s.h)(()=>(0,d.BX)(e)),{isStatic:n}=(0,i.useContext)(u._);if(n){let[,n]=(0,i.useState)(e);(0,i.useEffect)(()=>t.on("change",n),[])}return t}var x=n(13998);let p=e=>e&&"object"==typeof e&&e.mix,m=e=>p(e)?e.mix:void 0;var f=n(64306),h=n(95984);function v(e,t){let n=c(t()),r=()=>n.set(t());return r(),(0,f.L)(()=>{let t=()=>h.Wi.preRender(r,!1,!0),n=e.map(e=>e.on("change",t));return()=>{n.forEach(e=>e()),(0,h.Pn)(r)}}),n}function j(e,t){let n=(0,s.h)(()=>[]);return v(e,()=>{n.length=0;let r=e.length;for(let t=0;t<r;t++)n[t]=e[t].get();return t(n)})}var g=n(3522);function b(e,t=0){return(0,g.i)(e)?e:c(t)}let y=(0,i.forwardRef)(function({children:e,style:t={},value:n,as:u="li",onDrag:c,layout:p=!0,...f},h){let g=(0,s.h)(()=>a.E[u]),y=(0,i.useContext)(o.Y),w={x:b(t.x),y:b(t.y)},C=function(e,t,n,r){if("function"==typeof e)return function(e){d.S1.current=[],e();let t=v(d.S1.current,e);return d.S1.current=void 0,t}(e);let l="function"==typeof t?t:function(...e){let t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],l=e[1+n],i=e[2+n],o=e[3+n],a=(0,x.s)(l,i,{mixer:m(i[0]),...o});return t?a(r):a}(t,void 0,void 0);return Array.isArray(e)?j(e,l):j([e],([e])=>l(e))}([w.x,w.y],([e,t])=>e||t?1:"unset");(0,l.k)(!!y,"Reorder.Item must be a child of Reorder.Group");let{axis:S,registerItem:I,updateOrder:R}=y;return(0,r.jsx)(g,{drag:S,...f,dragSnapToOrigin:!0,style:{...t,x:w.x,y:w.y,zIndex:C},layout:p,onDrag:(e,t)=>{let{velocity:r}=t;r[S]&&R(n,w[S].get(),r[S]),c&&c(e,t)},onLayoutMeasure:e=>I(n,e),ref:h,ignoreStrict:!0,children:e})})},40976:function(e,t,n){n.d(t,{Y:function(){return r}});let r=(0,n(27378).createContext)(null)},47397:function(e,t,n){n.d(t,{o:function(){return o}});var r=n(42308);class l{constructor(){this.componentControls=new Set}subscribe(e){return this.componentControls.add(e),()=>this.componentControls.delete(e)}start(e,t){this.componentControls.forEach(n=>{n.start(e.nativeEvent||e,t)})}}let i=()=>new l;function o(){return(0,r.h)(i)}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5258],{97181:function(e,a,t){t.d(a,{d:function(){return o}});var i=t(24246),s=t(39158),l=t(34090),n=t(27378),r=t(46238),d=t(40324);let o=e=>{let{name:a,label:t,labelProps:o,tooltip:c,isRequired:u,layout:m="inline",helperText:p,...h}=e,[x,y,{setValue:v}]=(0,l.U$)(a),j=!!(y.touched&&y.error),[f,g]=(0,n.useState)("");x.value||"tags"!==h.mode&&"multiple"!==h.mode||(x.value=[]),"tags"===h.mode&&"string"==typeof x.value&&(x.value=[x.value]);let b="tags"===h.mode?(e,a)=>e?e.value!==f||x.value.includes(f)?h.optionRender?h.optionRender(e,a):e.label:'Create "'.concat(f,'"'):void 0:h.optionRender||void 0,_=e=>{g(e),h.onSearch&&h.onSearch(e)},D=(e,a)=>{v(e),h.onChange&&h.onChange(e,a)};return"inline"===m?(0,i.jsx)(s.NIc,{isInvalid:j,isRequired:u,children:(0,i.jsxs)(s.rjZ,{templateColumns:t?"1fr 3fr":"1fr",children:[t?(0,i.jsx)(d.__,{htmlFor:h.id||a,...o,children:t}):null,(0,i.jsxs)(s.jqI,{align:"center",children:[(0,i.jsxs)(s.jqI,{vertical:!0,flex:1,className:"mr-2",children:[(0,i.jsx)(s.WPr,{...x,id:h.id||a,"data-testid":"controlled-select-".concat(x.name),...h,optionRender:b,onSearch:"tags"===h.mode?_:void 0,onChange:D,value:x.value||void 0,status:j?"error":void 0}),p&&(0,i.jsx)(s.Q6r,{children:p}),(0,i.jsx)(d.Bc,{isInvalid:j,message:y.error,fieldName:x.name})]}),(0,i.jsx)(r.b,{label:c,className:j?"mt-2 self-start":void 0})]})]})}):(0,i.jsx)(s.NIc,{isInvalid:j,isRequired:u,children:(0,i.jsxs)(s.gCW,{alignItems:"start",children:[(0,i.jsxs)(s.jqI,{align:"center",children:[t?(0,i.jsx)(d.__,{htmlFor:h.id||a,fontSize:"xs",my:0,mr:1,...o,children:t}):null,(0,i.jsx)(r.b,{label:c})]}),(0,i.jsx)(s.WPr,{...x,id:h.id||a,"data-testid":"controlled-select-".concat(x.name),...h,optionRender:b,onSearch:"tags"===h.mode?_:void 0,onChange:D,value:x.value||void 0,status:j?"error":void 0}),p&&(0,i.jsx)(s.Q6r,{style:{marginTop:0},children:p}),(0,i.jsx)(d.Bc,{isInvalid:j,message:y.error,fieldName:x.name})]})})}},35258:function(e,a,t){t.d(a,{Z:function(){return F}});var i=t(24246),s=t(39158),l=t(27378),n=t(84720),r=t(52368),d=t(812),o=t(46628),c=t(65450),u=t(31883),m=t(34090),p=t(45938),h=t(33162),x=t(55484),y=t(20987),v=t(97181),j=t(40324);let f=x.Ry().shape({data_categories:x.IX(x.Z_()).min(1,"Must assign at least one data category").label("Data categories"),data_use:x.Z_().required().label("Data use"),data_subjects:x.IX(x.Z_()).min(1,"Must assign at least one data subject").label("Data subjects")}),g={data_categories:[],data_subjects:[],data_use:"",dataset_references:[],customFieldValues:{},id:""},b=e=>{var a;let{customFieldValues:t,...i}=e;return{...i,name:null!==(a=e.name)&&void 0!==a?a:""}},_=e=>{let{allDataUses:a,allDataCategories:t,allDataSubjects:l,allDatasets:n,privacyDeclarationId:r,includeCustomFields:d}=e,o=n?n.map(e=>{var a;return{label:null!==(a=e.name)&&void 0!==a?a:e.fides_key,value:e.fides_key}}):[];return(0,i.jsxs)(s.Kqy,{spacing:4,children:[(0,i.jsx)(v.d,{id:"data_use",label:"Data use",name:"data_use",options:a.map(e=>({value:e.fides_key,label:e.fides_key})),tooltip:"What is the system using the data for. For example, is it for third party advertising or perhaps simply providing system operations.",layout:"stacked",disabled:!!r}),(0,i.jsx)(j.j0,{id:"name",label:"Processing Activity",name:"name",variant:"stacked",tooltip:"The personal data processing activity or activities associated with this data use.",disabled:!!r}),(0,i.jsx)(v.d,{name:"data_categories",label:"Data categories",options:t.map(e=>({value:e.fides_key,label:e.fides_key})),tooltip:"What type of data is your system processing? This could be various types of user or system data.",mode:"multiple",layout:"stacked",disabled:!0}),(0,i.jsx)(v.d,{name:"data_subjects",label:"Data subjects",options:l.map(e=>({value:e.fides_key,label:e.fides_key})),tooltip:"Whose data are you processing? This could be customers, employees or any other type of user in your system.",mode:"multiple",layout:"stacked",disabled:!0}),n?(0,i.jsx)(v.d,{name:"dataset_references",label:"Dataset references",options:o,tooltip:"Referenced Dataset fides keys used by the system.",mode:"multiple",layout:"stacked"}):null,d?(0,i.jsx)(h.uc,{resourceType:y.J.PRIVACY_DECLARATION,resourceFidesKey:r}):null]})},D=(e,a)=>e?{...e,customFieldValues:a||{}}:g,S=e=>{let{onSubmit:a,initialValues:t,allDataUses:n,privacyDeclarationId:r}=e,{customFieldValues:d,upsertCustomFields:o}=(0,h.mZ)({resourceType:y.J.PRIVACY_DECLARATION,resourceFidesKey:r}),c=(0,l.useMemo)(()=>D(t,d),[t,d]),[u,m]=(0,l.useState)(!1),p=(0,l.useMemo)(()=>{let e=n.filter(e=>e.fides_key===c.data_use)[0];if(e)return c.name?"".concat(e.name," - ").concat(c.name):e.name},[n,c]);return{handleSubmit:async(e,t)=>{let{customFieldValues:i}=e,s=b(e),l=await a(s,t);if(l){let a=l.filter(a=>a.data_use===e.data_use&&(!a.name||a.name===e.name));a.length>0&&await o({customFieldValues:i,fides_key:a[0].id}),t.resetForm({values:e}),m(!0)}},renderHeader:e=>{let{dirty:a,boxProps:t,hideSaved:l}=e;return(0,i.jsxs)(s.xuv,{display:"flex",alignItems:"center",justifyContent:"space-between",...t,children:[p?(0,i.jsx)(s.X6q,{as:"h4",size:"xs",fontWeight:"medium",mr:4,children:p}):null,!l&&u&&!a&&c.data_use?(0,i.jsxs)(s.xvT,{fontSize:"sm","data-testid":"saved-indicator",children:[(0,i.jsx)(s.StI,{})," Saved"]}):null]})},initialValues:c}},k=e=>{let{onSubmit:a,initialValues:t,onDelete:l,...n}=e,{handleSubmit:r,renderHeader:d,initialValues:o}=S({onSubmit:a,initialValues:t,allDataUses:n.allDataUses,privacyDeclarationId:null==t?void 0:t.id});return(0,i.jsx)(m.J9,{enableReinitialize:!0,initialValues:o,onSubmit:r,validationSchema:f,children:e=>{let{dirty:a}=e;return(0,i.jsxs)(m.l0,{children:[(0,i.jsx)(p.Gt,{id:"PrivacyDeclaration",name:"New Privacy Declaration"}),(0,i.jsxs)(s.Kqy,{spacing:4,children:[(0,i.jsx)(s.xuv,{"data-testid":"header",children:d({dirty:a})}),(0,i.jsx)(_,{onDelete:l,...n})]})]})}})},C=e=>{let{privacyDeclaration:a,onEdit:t,onDelete:l,includeCustomFields:n,...r}=e,{initialValues:d,renderHeader:o,handleSubmit:c}=S({initialValues:a,onSubmit:e=>t(a,e),privacyDeclarationId:a.id,...r});return(0,i.jsx)(s.Qdk,{children:e=>{let{isExpanded:t}=e;return(0,i.jsx)(m.J9,{enableReinitialize:!0,initialValues:d,onSubmit:c,validationSchema:f,children:e=>{let{dirty:d}=e;return(0,i.jsxs)(m.l0,{"data-testid":"".concat(a.data_use,"-form"),children:[(0,i.jsx)(p.Gt,{id:"".concat(a.id,"-form"),name:a.id}),(0,i.jsxs)(s.KFZ,{py:4,borderBottomWidth:t?"0px":"1px",backgroundColor:t?"gray.50":void 0,"data-testid":"accordion-header-".concat(a.data_use),children:[o({dirty:d,boxProps:{flex:"1",textAlign:"left"},hideSaved:!t}),(0,i.jsx)(s.XEm,{})]}),(0,i.jsx)(s.Hk3,{backgroundColor:"gray.50",pt:0,children:(0,i.jsx)(s.Kqy,{spacing:4,children:(0,i.jsx)(_,{privacyDeclarationId:a.id,onDelete:l,includeCustomFields:n,...r})})})]})}})}})};var I=e=>{let{privacyDeclarations:a,...t}=e;return(0,i.jsx)(s.UQy,{allowToggle:!0,border:"transparent","data-testid":"privacy-declaration-accordion",children:a.map(e=>(0,i.jsx)(C,{privacyDeclaration:e,...t},e.id))})},w=e=>{let{system:a,includeCustomFields:t,onSave:n,...r}=e,m=(0,s.pmc)(),[p]=(0,c.qQ)(),[h,x]=(0,l.useState)(!1),[y,v]=(0,l.useState)(void 0),j=(0,l.useMemo)(()=>y?a.privacy_declarations.filter(e=>e.id!==y.id):a.privacy_declarations,[y,a]),f=e=>j.filter(a=>a.data_use===e.data_use&&a.name===e.name).length>0&&(m((0,o.Vo)("A declaration already exists with that data use in this system. Please supply a different data use.")),!0),g=async(e,t)=>{let i=e.map(e=>{var a;return{...e,name:null!==(a=e.name)&&void 0!==a?a:""}}),s={...a,privacy_declarations:i};return(e=>{if((0,u.D4)(e)){let a=(0,d.e$)(e.error,"An unexpected error occurred while updating the system. Please try again.");m((0,o.Vo)(a));return}return m.closeAll(),m((0,o.t5)(t?"Data use deleted":"Data use saved")),n&&n(e.data),e.data.privacy_declarations})(await p(s))},b=async(e,t)=>{if(!(t.id!==e.id&&f(t)))return g(a.privacy_declarations.map(a=>a.id===e.id?t:a))},_=async e=>{if(f(e))return;m.closeAll();let a=[...j,e],t=await g(a);return t&&v(t.filter(a=>(!a.name||a.name===e.name)&&a.data_use===e.data_use)[0]),t},D=async e=>g(a.privacy_declarations.filter(a=>a.id!==e.id),!0),S=async e=>{let a=await D(e);return a&&(x(!1),v(void 0)),a};return(0,l.useEffect)(()=>{x(!1)},[a.fides_key]),(0,i.jsxs)(s.Kqy,{spacing:3,children:[(0,i.jsx)(I,{privacyDeclarations:j,onEdit:b,onDelete:D,includeCustomFields:t,...r}),h?(0,i.jsx)(s.xuv,{backgroundColor:"gray.50",p:4,"data-testid":"new-declaration-form",children:(0,i.jsx)(k,{initialValues:y,onSubmit:_,onDelete:S,includeCustomFields:t,...r})}):null,0===a.privacy_declarations.length?(0,i.jsx)(s.xvT,{fontSize:"sm",lineHeight:5,fontWeight:"medium",pl:2,children:"No data uses"}):null]})},T=t(19043);let V=e=>{let[a]=(0,c.dB)(),t=(0,s.pmc)();return{handleUpsertSystem:async(i,s)=>{let l=[{...e,name:i.name,description:i.description}],n=await a(l);(0,T.D4)(n)?t((0,o.Vo)((0,d.e$)(n.error))):(t((0,o.t5)("Successfully saved system info")),s.resetForm({values:i}))},validationSchema:x.Ry().shape({name:x.Z_().required().label("Name"),description:x.Z_().required().label("Description")})}},R={name:"",description:""};var q=e=>{let{system:a}=e,t="/systems/configure/".concat(a.fides_key),{handleUpsertSystem:l,validationSchema:n}=V(a);return(0,i.jsxs)(s.xuv,{children:[(0,i.jsxs)(s.kCb,{alignItems:"center",children:[(0,i.jsx)(s.xvT,{color:"gray.600",size:"md",lineHeight:6,fontWeight:"semibold",marginBottom:2,children:"System details"}),(0,i.jsx)(s.LZC,{}),(0,i.jsxs)(s._pl,{color:"complimentary.500",href:t,children:["View more",(0,i.jsx)(s.h0n,{ml:2})]})]}),(0,i.jsx)(s.xuv,{width:"100%",padding:4,borderTop:"1px solid",borderColor:"gray.200",children:(0,i.jsx)(m.J9,{enableReinitialize:!0,initialValues:null!=a?a:R,validationSchema:n,onSubmit:l,children:()=>(0,i.jsxs)(m.l0,{children:[(0,i.jsx)(p.Gt,{id:"SystemInfoDrawer",name:"System Info"}),(0,i.jsx)(s.xuv,{marginTop:3,children:(0,i.jsx)(j.j0,{label:"System name",name:"name",variant:"stacked",disabled:!0})}),(0,i.jsx)(s.xuv,{marginTop:3,children:(0,i.jsx)(j.Ks,{label:"System description",name:"description",variant:"stacked",disabled:!0})})]})})})]})},F=e=>{var a;let{selectedSystemId:t,resetSelectedSystemId:d}=e,o=(0,l.useMemo)(()=>!!t,[t]),{...u}=(0,r.f)({includeDatasets:!1,includeDisabled:!1}),{data:m,isLoading:p}=(0,c.rn)(t,{skip:!t});return(0,i.jsx)(s.To0,{open:o,onClose:d,placement:"right",width:480,title:null!==(a=null==m?void 0:m.name)&&void 0!==a?a:"System Information",loading:p,children:m?(0,i.jsxs)("div",{"data-testid":"datamap-drawer",children:[(0,i.jsx)(q,{system:m}),(0,i.jsx)(s.xvT,{size:"md",color:"gray.600",lineHeight:6,fontWeight:"semibold",mt:"10px",mb:2,children:"Data uses"}),(0,i.jsx)(s.xuv,{borderTop:"1px solid",borderColor:"gray.200",children:(0,i.jsx)(s.xuv,{pb:3,children:(0,i.jsx)(w,{system:m,...u})})}),(0,i.jsx)(s.xvT,{size:"md",color:"gray.600",lineHeight:6,fontWeight:"semibold",mt:"10px",mb:2,paddingBottom:2,children:"Data flow"}),(0,i.jsx)(n.q,{system:m})]}):null})}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5487],{624:function(e,t,n){var i=n(24246),a=n(39158),r=n(27378);let s=e=>{let t=e.split("."),n=[];return t.forEach(e=>{let t=n.length>0?n[n.length-1]:null;t?n.push("".concat(t,".").concat(e)):n.push(e)}),n},l=(e,t)=>{let n=s(t).filter(e=>e!==t);return e.filter(e=>n.includes(e)).length>0},o=(e,t)=>!!(e===t||e.startsWith("".concat(t,"."))),c=(e,t,n)=>{let i=null!=n?n:[];return e.forEach(e=>{e.children&&c(e.children,t,i),o(e.value,t)&&i.push(e)}),i},d=e=>{let{node:t,isChecked:n,onChecked:r,isExpanded:s,onExpanded:l,isIndeterminate:o,isDisabled:c,children:d}=e,{value:u,label:g}=t,f=!!t.children&&t.children.length>0;return(0,i.jsxs)(a.xuv,{children:[(0,i.jsxs)(a.xuv,{display:"flex",justifyContent:"space-between",_hover:{backgroundColor:"gray.100",cursor:"pointer"},onClick:()=>l(t),minHeight:8,children:[(0,i.jsx)(a.XZJ,{colorScheme:"complimentary",value:u,isChecked:!o&&n,isIndeterminate:o,isDisabled:c,onChange:()=>r(t),mx:2,"data-testid":"checkbox-".concat(g),children:g}),f?(0,i.jsx)(a.wpx,{"data-testid":"expand-".concat(g),"aria-label":s?"collapse":"expand",icon:(0,i.jsx)(a.v4q,{boxSize:5}),type:"text",onClick:()=>l(t),className:s?"rotate-180":void 0}):null]}),d&&(0,i.jsx)(a.xuv,{ml:5,children:d})]})};t.ZP=e=>{let{nodes:t,selected:n,onSelected:u,...g}=e,[f,h]=(0,r.useState)([]),[p,x]=(0,r.useState)([]);(0,r.useEffect)(()=>{let e=Array.from(new Set([...n.map(e=>s(e)).reduce((e,t)=>e.concat(t),[]),...n.map(e=>c(t,e)).reduce((e,t)=>e.concat(t),[]).map(e=>e.value)]));x(e),h(e)},[n,t]);let m=e=>{let i=[],a=[];f.indexOf(e.value)>=0?(i=f.filter(t=>!o(t,e.value)),a=n.filter(t=>!o(t,e.value))):(i=[...f,...c(t,e.value).map(e=>e.value)],a=[...n,e.value]),h(i),u(a)},C=e=>{p.indexOf(e.value)>=0?x(p.filter(t=>!o(t,e.value))):x([...p,e.value])},y=e=>{if(e.children){let a=f.indexOf(e.value)>=0,s=p.indexOf(e.value)>=0,o=c(t,e.value),u=a&&e.children.length>0&&f.filter(t=>t.startsWith("".concat(e.value,"."))).length+1!==o.length,g=l(n,e.value);return(0,i.jsx)(d,{node:e,isChecked:a,onChecked:m,isExpanded:s,onExpanded:C,isDisabled:g,isIndeterminate:u,children:s?e.children.map(e=>(0,i.jsx)(r.Fragment,{children:y(e)},e.value)):void 0})}return null};return(0,i.jsx)(a.xuv,{...g,children:t.map(e=>(0,i.jsx)(a.xuv,{children:y(e)},e.value))})}},79806:function(e,t,n){n.d(t,{Gn:function(){return l},zR:function(){return s}});var i=n(24246),a=n(39158),r=n(56358);let s=e=>{let{title:t}=e;return(0,i.jsx)(a.OXI,{py:0,display:"flex",alignItems:"flex-start",children:(0,i.jsx)(a.xvT,{mr:"2",color:"gray.700",fontSize:"lg",lineHeight:1.8,children:t})})},l=e=>{let{onDelete:t,onEditYaml:n,formId:s,isSaving:l}=e;return(0,i.jsxs)(a.zeN,{justifyContent:"space-between",children:[t?(0,i.jsx)(a.wpx,{"aria-label":"delete",icon:(0,i.jsx)(r.q,{fontSize:"small"}),onClick:t,"data-testid":"delete-btn"}):null,(0,i.jsxs)("div",{className:"flex gap-2",children:[n&&(0,i.jsx)(a.wpx,{onClick:n,"data-testid":"edit-yaml-btn",children:"Edit YAML"}),(0,i.jsx)(a.wpx,{htmlType:"submit",type:"primary","data-testid":"save-btn",form:s,loading:l,children:"Save"})]})]})};t.ZP=e=>{let{header:t,description:n,isOpen:r,onClose:s,children:l,footer:o}=e;return(0,i.jsxs)(a.dys,{placement:"right",isOpen:r,onClose:s,size:"md",children:[(0,i.jsx)(a.P1B,{}),(0,i.jsxs)(a.scA,{"data-testid":"edit-drawer-content",py:2,children:[(0,i.jsxs)(a.xuv,{display:"flex",justifyContent:"space-between",alignItems:"top",mr:2,py:2,gap:2,children:[(0,i.jsx)(a.xuv,{flex:1,minH:8,children:t}),(0,i.jsx)(a.xuv,{display:"flex",justifyContent:"flex-end",mr:2,children:(0,i.jsx)(a.wpx,{"aria-label":"Close editor",onClick:s,"data-testid":"close-drawer-btn",icon:(0,i.jsx)(a.Two,{fontSize:"smaller"})})})]}),(0,i.jsxs)(a.Ng0,{pt:1,children:[n?(0,i.jsx)(a.xvT,{fontSize:"sm",mb:4,color:"gray.600",children:n}):null,l]}),o]})]})}},56358:function(e,t,n){n.d(t,{q:function(){return a}});var i=n(24246);let a=(0,n(39158).IUT)({displayName:"TrashCanOutlineIcon",viewBox:"0 0 11 12",path:(0,i.jsx)("path",{d:"M4.5166 1.60859L4.1084 2.21875H7.22363L6.81543 1.60859C6.7832 1.56133 6.72949 1.53125 6.67148 1.53125H4.6584C4.60039 1.53125 4.54668 1.55918 4.51445 1.60859H4.5166ZM7.6748 1.03711L8.46328 2.21875H8.75977H9.79102H9.96289C10.2486 2.21875 10.4785 2.44863 10.4785 2.73438C10.4785 3.02012 10.2486 3.25 9.96289 3.25H9.79102V9.78125C9.79102 10.7309 9.02188 11.5 8.07227 11.5H3.25977C2.31016 11.5 1.54102 10.7309 1.54102 9.78125V3.25H1.36914C1.0834 3.25 0.853516 3.02012 0.853516 2.73438C0.853516 2.44863 1.0834 2.21875 1.36914 2.21875H1.54102H2.57227H2.86875L3.65723 1.03496C3.88066 0.701953 4.25664 0.5 4.6584 0.5H6.67148C7.07324 0.5 7.44922 0.701953 7.67266 1.03496L7.6748 1.03711ZM2.57227 3.25V9.78125C2.57227 10.1615 2.87949 10.4688 3.25977 10.4688H8.07227C8.45254 10.4688 8.75977 10.1615 8.75977 9.78125V3.25H2.57227ZM4.29102 4.625V9.09375C4.29102 9.28281 4.13633 9.4375 3.94727 9.4375C3.7582 9.4375 3.60352 9.28281 3.60352 9.09375V4.625C3.60352 4.43594 3.7582 4.28125 3.94727 4.28125C4.13633 4.28125 4.29102 4.43594 4.29102 4.625ZM6.00977 4.625V9.09375C6.00977 9.28281 5.85508 9.4375 5.66602 9.4375C5.47695 9.4375 5.32227 9.28281 5.32227 9.09375V4.625C5.32227 4.43594 5.47695 4.28125 5.66602 4.28125C5.85508 4.28125 6.00977 4.43594 6.00977 4.625ZM7.72852 4.625V9.09375C7.72852 9.28281 7.57383 9.4375 7.38477 9.4375C7.1957 9.4375 7.04102 9.28281 7.04102 9.09375V4.625C7.04102 4.43594 7.1957 4.28125 7.38477 4.28125C7.57383 4.28125 7.72852 4.43594 7.72852 4.625Z",fill:"currentColor"})})},77213:function(e,t,n){n.d(t,{Z:function(){return f}});var i=n(24246),a=n(39158),r=n(88038),s=n.n(r),l=n(86677);n(27378);var o=n(25980),c=n(90867),d=n(42478),u=n(77830),g=()=>{let e=(0,l.useRouter)();return(0,i.jsx)(a.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,i.jsxs)(a.xuv,{children:[(0,i.jsxs)(a.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,i.jsx)(a.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,i.jsx)(a.wpx,{onClick:()=>{e.push(u.AD)},children:"Configure"})]}),(0,i.jsxs)(a.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},f=e=>{let{children:t,title:n,padded:r=!0,mainProps:u}=e,f=(0,o.hz)(),h=(0,l.useRouter)(),p="/privacy-requests"===h.pathname||"/datastore-connection"===h.pathname,x=!(f.flags.messagingConfiguration&&p),{data:m}=(0,d.JE)(void 0,{skip:x}),{data:C}=(0,c.PW)(void 0,{skip:x}),y=f.flags.messagingConfiguration&&(!m||!C)&&p;return(0,i.jsxs)(a.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,i.jsxs)(s(),{children:[(0,i.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,i.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,i.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,i.jsxs)(a.kCb,{as:"main",direction:"column",py:r?6:0,px:r?10:0,h:r?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...u,children:[y?(0,i.jsx)(g,{}):null,t]})]})}},58754:function(e,t,n){var i=n(24246),a=n(39158),r=n(70788);t.Z=e=>{let{heading:t,breadcrumbItems:n,isSticky:s=!0,children:l,rightContent:o,style:c,...d}=e;return(0,i.jsxs)("div",{...d,style:s?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...c}:{paddingBottom:"24px",...c},children:[(0,i.jsxs)(a.jqI,{justify:"space-between",children:["string"==typeof t?(0,i.jsx)(a.lQT,{className:n||l?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,o&&(0,i.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!n&&(0,i.jsx)(r.m,{className:l?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),l]})}},20987:function(e,t,n){var i,a,r,s;n.d(t,{H:function(){return i},J:function(){return a}}),(r=i||(i={})).STRING="string",r.STRING_ARRAY="string[]",(s=a||(a={})).SYSTEM="system",s.DATA_USE="data use",s.DATA_CATEGORY="data category",s.DATA_SUBJECT="data subject",s.PRIVACY_DECLARATION="privacy declaration"},70788:function(e,t,n){n.d(t,{m:function(){return c}});var i=n(24246),a=n(39158),r=n(79894),s=n.n(r),l=n(27378);let{Text:o}=a.AntTypography,c=e=>{let{items:t,...n}=e,r=(0,l.useMemo)(()=>null==t?void 0:t.map((e,n)=>{let r=n===t.length-1,l={...e},c=l.onClick&&!l.href;return("string"==typeof l.title&&(l.title=(0,i.jsx)(o,{style:{color:"inherit",maxWidth:r?void 0:400},ellipsis:!r,id:r?"breadcrumb-current-page":void 0,children:l.title})),c)?l.title=(0,i.jsx)(a.wpx,{type:"text",size:"small",icon:l.icon,onClick:l.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:l.title}):(l.icon&&(l.title=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"anticon align-text-bottom",children:l.icon}),l.title]})),l.href&&l.title&&(l.title=(0,i.jsx)(s(),{href:l.href,className:"ant-breadcrumb-link",children:l.title}),delete l.href)),l}),[t]);return(0,i.jsx)(a.zrq,{items:r,...n})}},69828:function(e,t,n){n.d(t,{Y:function(){return s}});var i=n(24246),a=n(39158),r=n(70788);let s=[(0,i.jsx)(a.PJP.S9g,{},"layers"),(0,i.jsx)(a.PJP.ehp,{},"dataset"),(0,i.jsx)(a.PJP.iA_,{},"table"),(0,i.jsx)(a.PJP.$4y,{style:{transform:"rotate(-90deg)"}},"field")];t.Z=e=>{let{resourceUrn:t,parentLink:n,onPathClick:a=()=>{}}=e,l=[];if(t||l.push({title:"All activity"}),t){l.push({title:"All activity",href:n});let e=t.split(".");e.forEach((t,n)=>{0!==n&&l.push({title:t,icon:s[n-1],onClick:t=>{t.preventDefault(),a(e.slice(0,n+1).join("."))}})})}return(0,i.jsx)(r.m,{"data-testid":"results-breadcrumb",items:l})}},63927:function(e,t,n){n.d(t,{e:function(){return x},Z:function(){return m}});var i=n(24246),a=n(39158),r=n(34090),s=n(27378),l=n(16125),o=n(40324),c=n(5785),d=n(56026),u=n(46238),g=n(624),f=n(90673),h=e=>{let{dataCategories:t,checked:n,onChecked:r,buttonLabel:l}=e,o=(0,s.useMemo)(()=>(0,f.Cd)(t),[t]);return(0,i.jsxs)(a.v2r,{closeOnSelect:!0,children:[(0,i.jsx)(a.j2t,{as:a.wpx,icon:(0,i.jsx)(a.mCO,{}),className:"!bg-transparent",block:!0,"data-testid":"data-category-dropdown",children:null!=l?l:"Select data categories"}),(0,i.jsx)(a.qyq,{children:(0,i.jsxs)(a.xuv,{maxHeight:"50vh",minWidth:"300px",maxW:"full",overflowY:"scroll",children:[(0,i.jsxs)(a.xuv,{position:"sticky",top:0,zIndex:1,backgroundColor:"white",pt:1,children:[(0,i.jsx)(a.__7,{children:(0,i.jsxs)(a.xuv,{display:"flex",justifyContent:"space-between",px:2,mb:2,children:[(0,i.jsx)(a.sNh,{as:a.wpx,size:"small",className:"mr-2 !w-auto",onClick:()=>r([]),closeOnSelect:!1,"data-testid":"data-category-clear-btn",children:"Clear"}),(0,i.jsx)(a.xvT,{mr:2,children:"Data Categories"}),(0,i.jsx)(a.sNh,{as:a.wpx,size:"small",className:"!w-auto","data-testid":"data-category-done-btn",children:"Done"})]})}),(0,i.jsx)(a.RaW,{})]}),(0,i.jsx)(a.xuv,{px:2,"data-testid":"data-category-checkbox-tree",children:(0,i.jsx)(g.ZP,{nodes:o,selected:n,onSelected:r})})]})})]})},p=e=>{let{dataCategories:t,checked:n,onChecked:r,tooltip:s}=e,l=e=>{r(n.filter(t=>t!==e))},o=n.slice().sort((e,t)=>e.localeCompare(t));return(0,i.jsxs)(a.rjZ,{templateColumns:"1fr 3fr",children:[(0,i.jsx)(a.lXp,{children:"Data Categories"}),(0,i.jsxs)(a.vyj,{direction:"vertical",size:"small",children:[(0,i.jsxs)(a.xuv,{display:"flex",alignItems:"center",children:[(0,i.jsx)(a.xuv,{mr:"2",width:"100%",children:(0,i.jsx)(h,{dataCategories:t,checked:n,onChecked:r})}),(0,i.jsx)(u.b,{label:s})]}),(0,i.jsx)(a.vyj,{direction:"vertical",size:2,"data-testid":"selected-categories",children:o.map(e=>(0,i.jsx)(a.j8w,{closable:!0,onClose:()=>{l(e)},children:e},e))})]})]})};let x="edit-collection-or-field-form";var m=e=>{var t;let{values:n,onSubmit:u,dataType:g,showDataCategories:f=!0}=e,h={description:null!==(t=n.description)&&void 0!==t?t:"",data_categories:n.data_categories},m=(0,l.v9)(c.qb).filter(e=>e.active),[C,y]=(0,s.useState)(h.data_categories||[]),E="collection"===g?d.du.description.tooltip:d.QL.description.tooltip,v="collection"===g?d.du.data_categories.tooltip:d.QL.data_categories.tooltip;return(0,i.jsx)(r.J9,{initialValues:h,onSubmit:e=>{u({...e,data_categories:C})},children:(0,i.jsx)(r.l0,{id:x,children:(0,i.jsxs)(a.Kqy,{children:[(0,i.jsx)(o.j0,{name:"description",label:"Description",tooltip:E,"data-testid":"description-input"}),f&&(0,i.jsx)(p,{dataCategories:m,checked:C,onChecked:y,tooltip:v})]})})})}},56026:function(e,t,n){n.d(t,{QL:function(){return r},du:function(){return a},tz:function(){return i}});let i={name:{tooltip:"A UI-friendly label for the Dataset."},description:{tooltip:"A human-readable description of the Dataset."},data_categories:{tooltip:"Arrays of Data Category resources, identified by fides_key, that apply to all collections in the Dataset."}},a={description:{tooltip:"A human-readable description of the collection."},data_categories:{tooltip:"Arrays of Data Category resources, identified by fides_key, that apply to all fields in the collection."}},r={description:{tooltip:"A human-readable description of the field."},data_categories:{tooltip:"Arrays of Data Category resources, identified by fides_key, that apply to this field."}}},69435:function(e,t,n){n.d(t,{Fk:function(){return c},_n:function(){return l},jC:function(){return r},qe:function(){return o}});var i=n(99729),a=n.n(i);let r=(e,t,n)=>{let i=e.collections.map((e,i)=>i===n?t:e);return{...e,collections:i}},s=(e,t,n)=>{let i=e.fields.map((e,i)=>i===n?t:e);return{...e,fields:i}},l=(e,t,n,i)=>{let a=s(e.collections[n],t,i);return r(e,a,n)},o=(e,t)=>{let n=e.collections.filter((e,n)=>n!==t);return{...e,collections:n}},c=e=>{let{dataset:t,collectionName:n,subfields:i}=e,r="",s=t.collections.findIndex(e=>e.name===n);return r+="collections[".concat(s,"]"),i&&i.forEach(e=>{let n=a()(t,r).fields.findIndex(t=>t.name===e);r+=".fields[".concat(n,"]")}),r}},42478:function(e,t,n){n.d(t,{FU:function(){return c},JE:function(){return a},Ki:function(){return u},SU:function(){return g},W:function(){return f},h9:function(){return r},jc:function(){return i},qt:function(){return o},sn:function(){return d}});let{useGetEmailInviteStatusQuery:i,useGetActiveMessagingProviderQuery:a,useCreateMessagingConfigurationMutation:r,useCreateMessagingConfigurationSecretsMutation:s,useGetMessagingConfigurationDetailsQuery:l,useGetMessagingConfigurationsQuery:o,useGetMessagingConfigurationByKeyQuery:c,useUpdateMessagingConfigurationByKeyMutation:d,useUpdateMessagingConfigurationSecretsByKeyMutation:u,useCreateTestConnectionMessageMutation:g,useDeleteMessagingConfigurationByKeyMutation:f}=n(78780).u.injectEndpoints({endpoints:e=>({getEmailInviteStatus:e.query({query:()=>({url:"/messaging/email-invite/status"}),providesTags:()=>["Email Invite Status"]}),createMessagingConfiguration:e.mutation({query:e=>({url:"messaging/config",method:"POST",body:e}),invalidatesTags:["Messaging Config","Configuration Settings"]}),getActiveMessagingProvider:e.query({queryFn:async(e,t,n,i)=>{let a=await i({url:"messaging/default/active"});return a.error&&404===a.error.status?{data:null}:a},providesTags:["Messaging Config"]}),createMessagingConfigurationSecrets:e.mutation({query:e=>({url:"messaging/default/".concat(e.service_type,"/secret"),method:"PUT",body:e.details}),invalidatesTags:["Messaging Config","Configuration Settings"]}),getMessagingConfigurationDetails:e.query({query:e=>({url:"messaging/default/".concat(e.type)}),providesTags:["Messaging Config"]}),getMessagingConfigurations:e.query({query:()=>({url:"messaging/config"}),providesTags:["Messaging Config"]}),getMessagingConfigurationByKey:e.query({query:e=>({url:"messaging/config/".concat(e.key)}),providesTags:["Messaging Config"]}),createTestConnectionMessage:e.mutation({query:e=>({url:"messaging/test/".concat(e.service_type),method:"POST",body:e.details}),invalidatesTags:["Messaging Config"]}),updateMessagingConfigurationByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key),method:"PATCH",body:e.config}),invalidatesTags:["Messaging Config","Configuration Settings"]}),updateMessagingConfigurationSecretsByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key,"/secret"),method:"PUT",body:e.secrets}),invalidatesTags:["Messaging Config","Configuration Settings"]}),deleteMessagingConfigurationByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key),method:"DELETE"}),invalidatesTags:["Messaging Config","Configuration Settings"]})})})},59001:function(e,t,n){n.d(t,{Ch:function(){return o},Lo:function(){return s},_g:function(){return c},ac:function(){return r},aq:function(){return d}});var i,a,r,s,l=n(60240);let o="root";(i=r||(r={})).DATA_CATEGORY="data_category",i.DATA_USE="data_use",i.DATA_SUBJECT="data_subject",i.SYSTEM_GROUP="system_group",(a=s||(s={})).DATA_CATEGORIES="Data categories",a.DATA_USES="Data uses",a.DATA_SUBJECTS="Data subjects",a.SYSTEM_GROUPS="System groups";let c=e=>{switch(e){case"data_category":return"Data categories";case"data_use":return"Data uses";case"data_subject":return"Data subjects";case"system_group":return"System groups";default:return e}},d=e=>{switch(e){case"data_category":return{UPDATE:l.Sh.DATA_CATEGORY_UPDATE,CREATE:l.Sh.DATA_CATEGORY_CREATE,DELETE:l.Sh.DATA_CATEGORY_DELETE,READ:l.Sh.DATA_CATEGORY_READ};case"data_use":return{UPDATE:l.Sh.DATA_USE_UPDATE,CREATE:l.Sh.DATA_USE_CREATE,DELETE:l.Sh.DATA_USE_DELETE,READ:l.Sh.DATA_USE_READ};case"data_subject":return{UPDATE:l.Sh.DATA_SUBJECT_UPDATE,CREATE:l.Sh.DATA_SUBJECT_CREATE,DELETE:l.Sh.DATA_SUBJECT_DELETE,READ:l.Sh.DATA_SUBJECT_READ};case"system_group":return{UPDATE:l.Sh.SYSTEM_GROUP_UPDATE,CREATE:l.Sh.SYSTEM_GROUP_CREATE,DELETE:l.Sh.SYSTEM_GROUP_DELETE,READ:l.Sh.SYSTEM_GROUP_READ};default:return{UPDATE:l.Sh.TAXONOMY_UPDATE,CREATE:l.Sh.TAXONOMY_CREATE,DELETE:l.Sh.TAXONOMY_DELETE,READ:l.Sh.TAXONOMY_READ}}}},90673:function(e,t,n){n.d(t,{Cd:function(){return r},Xl:function(){return s}});var i=n(20987),a=n(59001);let r=(e,t)=>{let n;if(null==t&&e.every(e=>void 0===e.parent_key))n=e;else{let i=null!=t?t:null;n=e.filter(e=>e.parent_key===i)}return n.map(t=>{var n,i;let a=t.fides_key;return{value:t.fides_key,label:t.name||t.fides_key,description:t.description,children:r(e,a),is_default:null!==(n=t.is_default)&&void 0!==n&&n,active:null!==(i=t.active)&&void 0!==i&&i}})},s=e=>{switch(e){case a.ac.DATA_CATEGORY:return i.J.DATA_CATEGORY;case a.ac.DATA_SUBJECT:return i.J.DATA_SUBJECT;case a.ac.DATA_USE:return i.J.DATA_USE;default:return e}}}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[549],{95372:function(e){e.exports=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return -1}},74833:function(e,t,n){var r=n(56127),o=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},80396:function(e,t,n){var r=n(79867),o=n(78859);e.exports=function(e,t,n,i){return o(e,t,n(r(e,t)),i)}},62079:function(e,t,n){var r=n(31137);e.exports=function(e){return"function"==typeof e?e:r}},56632:function(e,t,n){var r=n(89278),o=n(80068),i=n(50098);e.exports=function(e){return function(t,n,a){var s=Object(t);if(!o(t)){var l=r(n,3);t=i(t),n=function(e){return l(s[e],e,s)}}var u=e(t,n,a);return u>-1?s[l?t[u]:u]:void 0}}},56127:function(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},64925:function(e,t,n){var r=n(56632)(n(66259));e.exports=r},66259:function(e,t,n){var r=n(95372),o=n(89278),i=n(47991),a=Math.max;e.exports=function(e,t,n){var s=null==e?0:e.length;if(!s)return -1;var l=null==n?0:i(n);return l<0&&(l=a(s+l,0)),r(e,o(t,3),l)}},47215:function(e,t,n){var r=n(78859);e.exports=function(e,t,n){return null==e?e:r(e,t,n)}},94919:function(e,t,n){var r=n(91936),o=1/0;e.exports=function(e){return e?(e=r(e))===o||e===-o?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}},47991:function(e,t,n){var r=n(94919);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},91936:function(e,t,n){var r=n(74833),o=n(11611),i=n(55193),a=0/0,s=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return a;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=l.test(e);return n||u.test(e)?c(e.slice(2),n?2:8):s.test(e)?a:+e}},90271:function(e,t,n){var r=n(80396),o=n(62079);e.exports=function(e,t,n){return null==e?e:r(e,t,o(n))}},12627:function(e,t,n){"use strict";var r=n(24246),o=n(79283),i=n(34929);t.Z=e=>{let{selectedTaxonomies:t,showDisabled:n=!1,...a}=e,{getDataCategoryDisplayNameProps:s,getDataCategories:l}=(0,i.Z)(),u=(n?l():l().filter(e=>e.active)).filter(e=>!(null==t?void 0: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||"",label:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("strong",{children:n||t}),n&&": ".concat(t)]}),title:e.fides_key}});return(0,r.jsx)(o.l,{options:u,...a})}},79283:function(e,t,n){"use strict";n.d(t,{l:function(){return c}});var r=n(24246),o=n(39158),i=n(72707),a=n.n(i);let s=e=>{let{data:{formattedTitle:t,description:n,name:i,primaryName:a}}=e;return(0,r.jsxs)(o.jqI,{gap:12,title:"".concat(t," - ").concat(n),children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("strong",{children:a||i}),a&&": ".concat(i)]}),(0,r.jsx)("em",{className:"overflow-hidden text-ellipsis",children:n})]})},l=e=>"options"in e&&Array.isArray(e.options),u=e=>({...e,className:a().option,formattedTitle:e.formattedTitle||[e.primaryName,e.name].filter(e=>e).join(": ")}),c=e=>{let{options:t,...n}=e,i=null==t?void 0:t.map(e=>l(e)?{...e,options:e.options.map(u)}:u(e));return(0,r.jsx)(o.WPr,{options:i,filterOption:(e,t)=>{var n,r;return(null==t?void 0:null===(n=t.formattedTitle)||void 0===n?void 0:n.toLowerCase().includes(e.toLowerCase()))||(null==t?void 0:null===(r=t.value)||void 0===r?void 0:r.toLowerCase().includes(e.toLowerCase()))||!1},optionFilterProp:"label",autoFocus:!0,variant:"borderless",optionRender:s,styles:{popup:{root:{minWidth:"500px"}}},className:"w-full p-0","data-testid":"taxonomy-select",...n})}},34929:function(e,t,n){"use strict";var r=n(24246),o=n(64925),i=n.n(o),a=n(27378),s=n(16134),l=n(30002),u=n(28079),c=n(57072);let d=()=>{let{isLoading:e}=(0,u.fd)(),t=(0,s.C)(u.U3),{isLoading:n}=(0,c.MO)(),r=(0,s.C)(c.qb),{isLoading:o}=(0,l.te)();return{dataUses:t,dataSubjects:(0,s.C)(l.ZL),dataCategories:r,isLoading:e||n||o}};t.Z=()=>{let{dataUses:e,dataCategories:t,dataSubjects:n,isLoading:o}=d(),s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e.split(".").slice(0,t).join(".")},l=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=t(e);if(!r)return{};let o=t(s(e,n)),i=!!r.parent_key;return{name:r.name||void 0,primaryName:i&&(null==o?void 0:o.name)!==r.name&&(null==o?void 0:o.name)||void 0}},u=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,{name:o,primaryName:i}=l(e,t,n);return o?i?(0,r.jsxs)(a.Fragment,{children:[(0,r.jsxs)("strong",{children:[i,":"]})," ",o]},e):(0,r.jsx)("strong",{children:o},e):e},c=t=>i()(e,{fides_key:t}),f=e=>i()(t,{fides_key:e}),p=e=>i()(n,{fides_key:e});return{getDataUses:()=>e,getDataUseByKey:c,getDataUseDisplayName:e=>u(e,c,1),getDataUseDisplayNameProps:e=>l(e,c,1),getDataCategories:()=>t,getDataCategoryByKey:f,getDataCategoryDisplayName:e=>u(e,f,2),getDataCategoryDisplayNameProps:e=>l(e,f,2),getDataSubjects:()=>n,getDataSubjectByKey:p,getDataSubjectDisplayName:e=>{let t=p(e);return t?t.name:e},getDataSubjectDisplayNameProps:e=>{let t=p(e);return t?{name:t.name||e}:{}},getPrimaryKey:s,isLoading:o}}},66112:function(e,t,n){"use strict";var r=n(24246),o=n(39158),i=n(27378),a=n(12627),s=n(34929),l=n(26183);t.Z=e=>{let{selectedTaxonomies:t,onAddTaxonomy:n,onRemoveTaxonomy:u}=e,[c,d]=(0,i.useState)(!1),{getDataCategoryDisplayName:f}=(0,s.Z)();return(0,r.jsxs)(l.Z,{children:[t.map(e=>(0,r.jsx)(o.j8w,{"data-testid":"classification-".concat(e),color:"white",closable:!0,onClose:()=>u(e),closeButtonLabel:"Remove category",children:f(e)},e)),(0,r.jsx)(o.j8w,{onClick:()=>d(!0),"data-testid":"add-category-btn",addable:!0,"aria-label":"Add category"}),c&&(0,r.jsx)(o.xuv,{className:"select-wrapper",position:"absolute",zIndex:10,top:"0",left:"0",width:"100%",height:"max",bgColor:"#fff",children:(0,r.jsx)(a.Z,{selectedTaxonomies:t,onChange:e=>{d(!1),n(e)},onBlur:()=>d(!1),open:c})})]})}},26183:function(e,t,n){"use strict";var r=n(24246);n(27378),t.Z=e=>{let{children:t,className:n,...o}=e;return(0,r.jsx)("div",{className:"relative flex w-full flex-wrap items-center gap-2 overflow-x-auto py-2 ".concat(n||""),...o,children:t})}},76252:function(e,t,n){"use strict";var r=n(24246),o=n(39158),i=n(30454),a=n.n(i),s=n(47215),l=n.n(s),u=n(90271),c=n.n(u),d=n(79806),f=n(20386),p=n(63927),v=n(69435);t.Z=e=>{let{field:t,isOpen:n,onClose:i,dataset:s,collectionName:u,subfields:m}=e,[x]=(0,f.TG)(),{isOpen:h,onOpen:g,onClose:y}=(0,o.qY0)();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d.ZP,{isOpen:n,onClose:i,description:"Fields are an array of objects that describe the collection's fields. Provide additional context to this field by filling out the fields below.",header:(0,r.jsx)(d.zR,{title:"Field Name: ".concat(null==t?void 0:t.name)}),footer:(0,r.jsx)(d.Gn,{onClose:i,onDelete:g,formId:p.e}),children:(0,r.jsx)(p.Z,{values:t,onSubmit:e=>{let n=(0,v.Fk)({dataset:s,collectionName:u,subfields:m?[...m,(null==t?void 0:t.name)||""]:[(null==t?void 0:t.name)||""]}),r={...t,...e},o=a()(s);l()(o,n,r),x(o),i()},dataType:"field"})}),(0,r.jsx)(o.cVQ,{isOpen:h,onClose:y,onConfirm:()=>{let e=(0,v.Fk)({dataset:s,collectionName:u,subfields:m}),n=a()(s);c()(n,e,e=>({...e,fields:e.fields.filter(e=>e.name!==(null==t?void 0:t.name))})),x(n),i(),y()},title:"Delete Field",message:(0,r.jsxs)(o.xvT,{children:["You are about to permanently delete the field named"," ",(0,r.jsx)(o.xvT,{color:"complimentary.500",as:"span",fontWeight:"bold",children:null==t?void 0:t.name})," ","from this dataset. Are you sure you would like to continue?"]})})]})}},57072:function(e,t,n){"use strict";n.d(t,{Bd:function(){return r.Bd},L5:function(){return r.L5},MO:function(){return r.MO},qb:function(){return r.qb}});var r=n(5785)},72707:function(e){e.exports={option:"TaxonomySelect_option__vY6v2"}}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5505],{74833:function(e,t,r){var n=r(56127),o=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(o,""):e}},56127:function(e){var t=/\s/;e.exports=function(e){for(var r=e.length;r--&&t.test(e.charAt(r)););return r}},66726:function(e,t,r){var n=r(11611),o=r(82846),i=r(91936),a=Math.max,s=Math.min;e.exports=function(e,t,r){var u,c,l,p,d,f,m=0,g=!1,v=!1,L=!0;if("function"!=typeof e)throw TypeError("Expected a function");function A(t){var r=u,n=c;return u=c=void 0,m=t,p=e.apply(n,r)}function h(e){var r=e-f,n=e-m;return void 0===f||r>=t||r<0||v&&n>=l}function O(){var e,r,n,i=o();if(h(i))return I(i);d=setTimeout(O,(e=i-f,r=i-m,n=t-e,v?s(n,l-r):n))}function I(e){return(d=void 0,L&&u)?A(e):(u=c=void 0,p)}function y(){var e,r=o(),n=h(r);if(u=arguments,c=this,f=r,n){if(void 0===d)return m=e=f,d=setTimeout(O,t),g?A(e):p;if(v)return clearTimeout(d),d=setTimeout(O,t),A(f)}return void 0===d&&(d=setTimeout(O,t)),p}return t=i(t)||0,n(r)&&(g=!!r.leading,l=(v="maxWait"in r)?a(i(r.maxWait)||0,t):l,L="trailing"in r?!!r.trailing:L),y.cancel=function(){void 0!==d&&clearTimeout(d),m=0,u=f=c=d=void 0},y.flush=function(){return void 0===d?p:I(o())},y}},82846:function(e,t,r){var n=r(77400);e.exports=function(){return n.Date.now()}},91936:function(e,t,r){var n=r(74833),o=r(11611),i=r(55193),a=0/0,s=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return a;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var r=u.test(e);return r||c.test(e)?l(e.slice(2),r?2:8):s.test(e)?a:+e}},58754:function(e,t,r){"use strict";var n=r(24246),o=r(39158),i=r(70788);t.Z=e=>{let{heading:t,breadcrumbItems:r,isSticky:a=!0,children:s,rightContent:u,style:c,...l}=e;return(0,n.jsxs)("div",{...l,style:a?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...c}:{paddingBottom:"24px",...c},children:[(0,n.jsxs)(o.jqI,{justify:"space-between",children:["string"==typeof t?(0,n.jsx)(o.lQT,{className:r||s?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,u&&(0,n.jsx)("div",{"data-testid":"page-header-right-content",children:u})]}),!!r&&(0,n.jsx)(i.m,{className:s?"pb-4":void 0,items:r,"data-testid":"page-breadcrumb"}),s]})}},70788:function(e,t,r){"use strict";r.d(t,{m:function(){return c}});var n=r(24246),o=r(39158),i=r(79894),a=r.n(i),s=r(27378);let{Text:u}=o.AntTypography,c=e=>{let{items:t,...r}=e,i=(0,s.useMemo)(()=>null==t?void 0:t.map((e,r)=>{let i=r===t.length-1,s={...e},c=s.onClick&&!s.href;return("string"==typeof s.title&&(s.title=(0,n.jsx)(u,{style:{color:"inherit",maxWidth:i?void 0:400},ellipsis:!i,id:i?"breadcrumb-current-page":void 0,children:s.title})),c)?s.title=(0,n.jsx)(o.wpx,{type:"text",size:"small",icon:s.icon,onClick:s.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:s.title}):(s.icon&&(s.title=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"anticon align-text-bottom",children:s.icon}),s.title]})),s.href&&s.title&&(s.title=(0,n.jsx)(a(),{href:s.href,className:"ant-breadcrumb-link",children:s.title}),delete s.href)),s}),[t]);return(0,n.jsx)(o.zrq,{items:i,...r})}},9270:function(e,t,r){"use strict";r.d(t,{S:function(){return i}});var n=r(27378),o=r(36866);let i=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,o.h)(e),{pageIndex:r,pageSize:i,updatePageIndex:a,updatePageSize:s,pageSizeOptions:u,showSizeChanger:c}=t,l=(0,n.useMemo)(()=>({current:r,pageSize:i,showSizeChanger:c,pageSizeOptions:u.map(String),onChange:a,onShowSizeChange:(e,t)=>{s(t)}}),[r,i,c,u,a,s]);return{...t,paginationProps:l}}},9110:function(e,t,r){"use strict";r.d(t,{D:function(){return c}});var n=r(24246),o=r(39158);let i={percentPosition:{align:"start",type:"outer"},steps:3,strokeLinecap:"round",size:{width:24,height:8},rounding:Math.ceil},a={low:"var(--fidesui-error)",medium:"var(--fidesui-warning)",high:"var(--fidesui-success)"},s={low:30,medium:60,high:100},u=e=>({percent:s[e],strokeColor:a[e]}),c=e=>{let{severity:t,labels:r={low:"Low",medium:"Medium",high:"High"},...a}=e;return(0,n.jsx)(o.HwE,{...i,...u(t),format:()=>(0,n.jsx)(o.lKn,{size:"sm",type:"secondary",className:"font-normal",children:r[t]}),...a})}},99824:function(e,t,r){"use strict";r.d(t,{$k:function(){return T},Me:function(){return f},T0:function(){return m},Vr:function(){return I},W3:function(){return R},Z8:function(){return y},Zu:function(){return L},aK:function(){return A},b_:function(){return S},e_:function(){return _},i7:function(){return E},km:function(){return h},sB:function(){return v},tP:function(){return g}});var n=r(24246),o=r(39158),i=r(16394),a=r(60240);let{APPROVE:s,CLASSIFY:u,PROMOTE:c,MUTE:l,UN_MUTE:p,PROMOTE_REMOVALS:d}=r(62678).FieldActionType,f={approve:"Approve","assign-categories":"Assign categories",classify:"Classify",mute:"Ignore",promote:"Confirm","promote-removals":"Remove","un-approve":"Un-approve","un-mute":"Restore"},m={approve:"Approving","assign-categories":"Updating data categories",classify:"Classifying",mute:"Ignoring",promote:"Confirming","promote-removals":"Removing","un-approve":"Un-approving","un-mute":"Restoring"},g={approve:"Approved","assign-categories":"Data category updated",classify:"Classified",mute:"Ignored",promote:"Confirmed","promote-removals":"Removed","un-approve":"Un-approved","un-mute":"Restored"},v=[s,c],L={addition:v,approved:v,classification_addition:v,classification_error:v,classification_queued:v,classification_update:v,classifying:v,monitored:v,muted:[p],promoting:v,promotion_error:v,removal:[l,d],removal_promotion_error:[l,d],removing:[l,d]},A=[u,s,c,l,p,d],h=[d,u],O=[u,c],I={addition:O,approved:O,classification_addition:O,classification_error:O,classification_queued:O,classification_update:O,classifying:O,monitored:O,muted:[p],promoting:O,promotion_error:O,removal:[d],removal_promotion_error:[d],removing:[d]},y={[s]:"You can only approve resources with a data category applied",[u]:"You cannot classify resources that are already in classification or ignored",[l]:"You cannot ignore resources that are already ignored",[c]:"You can only confirm resources that have a data category applied",[p]:"You can only restore resources that are ignored",[d]:"You can only remove resources that are in a removed status"},T={classify:[a.LL.ADDITION,a.LL.CLASSIFICATION_ADDITION,a.LL.CLASSIFICATION_UPDATE,a.LL.CLASSIFICATION_ERROR],approve:[a.LL.CLASSIFICATION_ADDITION,a.LL.CLASSIFICATION_UPDATE,a.LL.APPROVED],"un-approve":[a.LL.APPROVED],promote:[a.LL.CLASSIFICATION_ADDITION,a.LL.CLASSIFICATION_UPDATE,a.LL.APPROVED,a.LL.PROMOTION_ERROR],"promote-removals":[a.LL.REMOVAL,a.LL.REMOVAL_PROMOTION_ERROR],mute:[a.LL.ADDITION,a.LL.CLASSIFICATION_ADDITION,a.LL.CLASSIFICATION_UPDATE,a.LL.APPROVED,a.LL.REMOVAL,a.LL.CLASSIFICATION_ERROR,a.LL.PROMOTION_ERROR,a.LL.REMOVAL_PROMOTION_ERROR],"un-mute":[a.LL.MUTED],"assign-categories":[a.LL.ADDITION,a.LL.CLASSIFICATION_ADDITION,a.LL.CLASSIFICATION_UPDATE,a.LL.APPROVED,a.LL.CLASSIFICATION_ERROR,a.LL.PROMOTION_ERROR]},R={"assign-categories":null,"promote-removals":(0,n.jsx)(o.PJP.ZNm,{}),"un-approve":null,"un-mute":(0,n.jsx)(o.PJP.G7x,{}),approve:(0,n.jsx)(o.PJP.MCw,{}),classify:(0,n.jsx)(o.QMR,{size:14}),mute:(0,n.jsx)(o.PJP.uzw,{}),promote:(0,n.jsx)(o.PJP.MCw,{})},S={APPROVE:"a",PROMOTE:"c",MUTE:"i",REFRESH:"r",TOGGLE_DRAWER:"o",OPEN_CLASSIFICATION_SELECT:"e"},_={"assign-categories":e=>null,"promote-removals":e=>"Are you sure you want to remove ".concat(e.toLocaleString()," ").concat((0,i._6)(e,"resource","resources"),"?"),"un-approve":e=>null,"un-mute":e=>"Are you sure you want to restore ".concat(e.toLocaleString()," ").concat((0,i._6)(e,"resource","resources"),"?"),approve:e=>"Are you sure you want to approve ".concat(e.toLocaleString()," ").concat((0,i._6)(e,"resource","resources"),"?"),classify:e=>"Are you sure you want to run the classifier and apply data categories to ".concat(e.toLocaleString()," unlabeled ").concat((0,i._6)(e,"resource","resources"),"?"),mute:e=>"Are you sure you want to ignore ".concat(e.toLocaleString()," ").concat((0,i._6)(e,"resource","resources"),"? After ignoring, these resources may reappear in future scans."),promote:e=>"Are you sure you want to confirm ".concat(e.toLocaleString()," ").concat((0,i._6)(e,"resource","resources"),"? After confirming this data can be used for policy automation and DSRs. ")},E={onCancel:async()=>!1,onOk:async()=>!0,icon:null,width:542}},99089:function(e,t,r){"use strict";r.d(t,{Fp:function(){return a},Nz:function(){return s},rL:function(){return i}});var n=r(78780),o=r(16394);let{useFieldActionsMutation:i,useGetMonitorFieldsQuery:a,useLazyGetAllowedActionsQuery:s}=n.u.injectEndpoints({endpoints:e=>({getMonitorFields:e.query({query:e=>{let{path:{monitor_config_id:t},query:{page:r=1,size:n=20,search:i,diff_status:a,confidence_bucket:s,...u}}=e,c=(0,o.$J)({...u,...i?{search:[i]}:{},...a?{diff_status:a}:{},...s?{confidence_bucket:s}:{}});return{url:"/plus/discovery-monitor/".concat(t,"/fields?").concat(null==c?void 0:c.toString()),params:{page:r,size:n}}},providesTags:["Monitor Field Results"]}),fieldActions:e.mutation({query:e=>{let{path:{monitor_config_id:t,action_type:r},query:{search:n,diff_status:i,confidence_bucket:a,...s},body:u}=e,c=(0,o.$J)({...s,...n?{search:[n]}:{},...i?{diff_status:i}:{},...a?{confidence_bucket:a}:{}});return{url:"/plus/discovery-monitor/".concat(t,"/fields/").concat(r,"?").concat(c.toString()),method:"POST",body:u}},invalidatesTags:["Monitor Field Results","Monitor Field Details","Discovery Monitor Results"]}),getAllowedActions:e.query({query:e=>{let{path:{monitor_config_id:t},query:{search:r,diff_status:n,confidence_bucket:i,...a},...s}=e,u=(0,o.$J)({...a,...r?{search:[r]}:{},...n?{diff_status:n}:{},...i?{confidence_bucket:i}:{}});return{url:"/plus/discovery-monitor/".concat(t,"/fields/allowed-actions?").concat(u.toString()),method:"POST",body:s}},providesTags:["Allowed Monitor Field Actions"]})})})},63537:function(e,t,r){"use strict";r.d(t,{NM:function(){return s},Oq:function(){return l},io:function(){return p},nB:function(){return a},v_:function(){return u}});var n=r(16394),o=r(62678),i=r(99824);let a=(e,t)=>({title:e,okText:e,content:t,...i.i7}),s=(e,t)=>"".concat(i.tP[e]).concat((0,n._6)(null!=t?t:0,"","".concat(e===o.FieldActionType.ASSIGN_CATEGORIES?" for":""," ").concat(null==t?void 0:t.toLocaleString()," resources"))),u=e=>"".concat(i.tP[e]," failed").concat(e===o.FieldActionType.CLASSIFY||e===o.FieldActionType.PROMOTE?": View summary in the activity tab":""),c={high:"high",medium:"medium",low:"low",manual:void 0};function l(e){return c[e]}let p=e=>e.reduce((e,t)=>{switch(e){case"high":return e;case"medium":return"high"===t?t:e;default:return t||e}},void 0)},83158:function(e,t,r){"use strict";var n,o;r.d(t,{$:function(){return n}}),(o=n||(n={})).LOW="low",o.HIGH="high",o.MEDIUM="medium",o.MANUAL="manual"},62678:function(e,t,r){"use strict";var n,o;r.d(t,{FieldActionType:function(){return n}}),(o=n||(n={})).CLASSIFY="classify",o.APPROVE="approve",o.UN_APPROVE="un-approve",o.PROMOTE="promote",o.PROMOTE_REMOVALS="promote-removals",o.MUTE="mute",o.UN_MUTE="un-mute",o.ASSIGN_CATEGORIES="assign-categories"},31883:function(e,t,r){"use strict";r.d(t,{Bw:function(){return n.Bw},D4:function(){return n.D4}});var n=r(19043)}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5783],{56358:function(e,t,s){s.d(t,{q:function(){return i}});var a=s(24246);let i=(0,s(98227).IUT)({displayName:"TrashCanOutlineIcon",viewBox:"0 0 11 12",path:(0,a.jsx)("path",{d:"M4.5166 1.60859L4.1084 2.21875H7.22363L6.81543 1.60859C6.7832 1.56133 6.72949 1.53125 6.67148 1.53125H4.6584C4.60039 1.53125 4.54668 1.55918 4.51445 1.60859H4.5166ZM7.6748 1.03711L8.46328 2.21875H8.75977H9.79102H9.96289C10.2486 2.21875 10.4785 2.44863 10.4785 2.73438C10.4785 3.02012 10.2486 3.25 9.96289 3.25H9.79102V9.78125C9.79102 10.7309 9.02188 11.5 8.07227 11.5H3.25977C2.31016 11.5 1.54102 10.7309 1.54102 9.78125V3.25H1.36914C1.0834 3.25 0.853516 3.02012 0.853516 2.73438C0.853516 2.44863 1.0834 2.21875 1.36914 2.21875H1.54102H2.57227H2.86875L3.65723 1.03496C3.88066 0.701953 4.25664 0.5 4.6584 0.5H6.67148C7.07324 0.5 7.44922 0.701953 7.67266 1.03496L7.6748 1.03711ZM2.57227 3.25V9.78125C2.57227 10.1615 2.87949 10.4688 3.25977 10.4688H8.07227C8.45254 10.4688 8.75977 10.1615 8.75977 9.78125V3.25H2.57227ZM4.29102 4.625V9.09375C4.29102 9.28281 4.13633 9.4375 3.94727 9.4375C3.7582 9.4375 3.60352 9.28281 3.60352 9.09375V4.625C3.60352 4.43594 3.7582 4.28125 3.94727 4.28125C4.13633 4.28125 4.29102 4.43594 4.29102 4.625ZM6.00977 4.625V9.09375C6.00977 9.28281 5.85508 9.4375 5.66602 9.4375C5.47695 9.4375 5.32227 9.28281 5.32227 9.09375V4.625C5.32227 4.43594 5.47695 4.28125 5.66602 4.28125C5.85508 4.28125 6.00977 4.43594 6.00977 4.625ZM7.72852 4.625V9.09375C7.72852 9.28281 7.57383 9.4375 7.38477 9.4375C7.1957 9.4375 7.04102 9.28281 7.04102 9.09375V4.625C7.04102 4.43594 7.1957 4.28125 7.38477 4.28125C7.57383 4.28125 7.72852 4.43594 7.72852 4.625Z",fill:"currentColor"})})},25783:function(e,t,s){s.d(t,{V:function(){return _}});var a=s(24246),i=s(92222),r=s(59003),n=s(47935),o=s(98227),l=s(98784),c=s.n(l),p=s(86677),d=s(27378),x=s(77830),u=s(19904),h=s(32885),g=s(98795),j=s(65735),C=e=>{let{buttonLabel:t,buttonProps:s}=e,i=(0,p.useRouter)();return(0,a.jsx)(o.wpx,{onClick:()=>i.push(x.B9),"data-testid":"add-property-button",...s,children:t})},y=s(56358),m=s(88340),b=s(25980),f=s(14048);let v="{privacy-center-hostname-and-path}",P="{property-unique-id}",R='<script src="https://'.concat(v,"/fides.js?property_id=").concat(P,'"></script>'),w="<script>Fides.gtm()</script>";var T=e=>{let{property:t}=e,s=(0,o.qY0)(),i=(0,d.useRef)(null),{fidesCloud:r}=(0,b.hz)(),{data:n,isSuccess:l}=(0,h.Vh)(void 0,{skip:!r}),c=(0,d.useMemo)(()=>{let e=R.replace(P,t.id.toString());return r&&l&&(null==n?void 0:n.privacy_center_url)&&e.replace(v,n.privacy_center_url),e},[null==n?void 0:n.privacy_center_url,r,l,t]);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.wpx,{"aria-label":"Install property",size:"small",className:"mr-[10px]",icon:(0,a.jsx)(f.A5,{}),onClick:e=>{e.stopPropagation(),s.onOpen()}}),(0,a.jsxs)(o.u_l,{isOpen:s.isOpen,onClose:s.onClose,isCentered:!0,size:"xl",initialFocusRef:i,children:[(0,a.jsx)(o.ZAr,{}),(0,a.jsxs)(o.hzk,{"data-testid":"copy-js-tag-modal",children:[(0,a.jsx)(o.xBx,{tabIndex:-1,ref:i,pb:0,children:"Install Fides Consent Manager"}),(0,a.jsx)(o.fef,{pt:3,pb:6,fontSize:"14px",fontWeight:500,children:(0,a.jsxs)(o.Kqy,{spacing:3,children:[(0,a.jsxs)(o.xvT,{children:["Copy the code below and paste it onto every page of the"," ",t.name," property."]}),(0,a.jsxs)(o.xvT,{children:["1. Paste this code as high in the ",(0,a.jsx)("b",{children:"<head>"})," of the page as possible:"]}),(0,a.jsxs)(o.EKh,{display:"flex",justifyContent:"space-between",alignItems:"top",p:0,children:[(0,a.jsx)(o.xvT,{p:4,children:c}),(0,a.jsx)(m.Z,{copyText:c})]}),(0,a.jsx)(o.xvT,{children:"2. Optionally, you can enable Google Tag Manager for managing tags on your website by including the script tag below along with the Fides.js tag. Place it below the Fides.js script tag."}),(0,a.jsxs)(o.EKh,{display:"flex",justifyContent:"space-between",alignItems:"center",p:0,children:[(0,a.jsx)(o.xvT,{p:4,children:w}),(0,a.jsx)(m.Z,{copyText:w})]}),(0,a.jsxs)(o.xvT,{children:["For more information about adding a JavaScript tag to your website, please visit"," ",(0,a.jsx)(o.rUS,{color:"complimentary.500",href:"https://docs.ethyca.com/tutorials/consent-management-configuration/install-fides#install-fidesjs-script-on-your-website",isExternal:!0,children:"docs.ethyca.com"})]})]})})]})]})]})},E=s(3642),H=e=>{let{property:t}=e,s=(0,p.useRouter)(),i=()=>{s.push("".concat(x.ru,"/").concat(t.id))};return(0,a.jsxs)(o.xuv,{py:2,children:[(0,a.jsx)(T,{property:t}),(0,a.jsx)(u.ZP,{scopes:[j.Sh.PROPERTY_UPDATE],children:(0,a.jsx)(o.wpx,{"aria-label":"Edit property","data-testid":"edit-property-button",size:"small",className:"mr-[10px]",icon:(0,a.jsx)(o.dY8,{}),onClick:e=>{e.stopPropagation(),i()}})}),(0,a.jsx)(E.Z,{property:t,triggerComponent:(0,a.jsx)(o.wpx,{"aria-label":"Delete property","data-testid":"delete-property-button",size:"small",className:"mr-[10px]",icon:(0,a.jsx)(y.q,{})})})]})};let z=(0,i.Cl)(),M={items:[],total:0,page:1,size:25,pages:1},V=()=>(0,a.jsx)(o.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",children:(0,a.jsxs)(o.gCW,{children:[(0,a.jsx)(o.xvT,{fontSize:"md",fontWeight:"600",children:"No properties found."}),(0,a.jsxs)(u.ZP,{scopes:[j.Sh.PROPERTY_CREATE],children:[(0,a.jsx)(o.xvT,{fontSize:"sm",children:"Click “Add property” to add your first property to Fides."}),(0,a.jsx)(C,{buttonLabel:"Add property",buttonProps:{type:"primary"}})]})]})}),_=()=>{let{isLoading:e}=(0,h.x8)(),t=(0,u.Tg)([j.Sh.PROPERTY_UPDATE]),{PAGE_SIZES:s,pageSize:l,setPageSize:y,onPreviousPageClick:m,isPreviousPageDisabled:b,onNextPageClick:f,isNextPageDisabled:v,startRange:P,endRange:R,pageIndex:w,setTotalPages:T,resetPageIndexToDefault:E}=(0,n.oi)(),_=(0,p.useRouter)(),[k,S]=(0,d.useState)(),Z=(0,d.useCallback)(e=>{E(),S(e)},[E,S]),{isFetching:A,isLoading:F,data:I}=(0,g.gz)({page:w,size:l,search:k}),{items:N,total:O,pages:L}=(0,d.useMemo)(()=>I||M,[I]);(0,d.useEffect)(()=>{T(L)},[L,T]);let q=(0,d.useMemo)(()=>[z.accessor(e=>e.name,{id:"name",cell:e=>(0,a.jsx)(n.G3,{value:e.getValue()}),header:e=>(0,a.jsx)(n.Rr,{value:"Property",...e})}),z.accessor(e=>e.type,{id:"type",cell:e=>(0,a.jsx)(n.G3,{value:c().capitalize(e.getValue())}),header:e=>(0,a.jsx)(n.Rr,{value:"Type",...e})}),z.accessor(e=>e.experiences.map(e=>e.name),{id:"experiences",cell:e=>(0,a.jsx)(n.WP,{suffix:"experiences",value:e.getValue(),...e}),header:e=>(0,a.jsx)(n.Rr,{value:"Experience",...e}),meta:{showHeaderMenu:!0}}),z.display({id:"actions",header:"Actions",cell:e=>{let{row:t}=e;return(0,a.jsx)(H,{property:t.original})}})],[]),D=(0,r.b7)({getCoreRowModel:(0,i.sC)(),getGroupedRowModel:(0,i.qe)(),getExpandedRowModel:(0,i.rV)(),columns:q,manualPagination:!0,data:N,state:{expanded:!0},columnResizeMode:"onChange"});return F||e?(0,a.jsx)(n.I4,{rowHeight:36,numRows:15}):(0,a.jsx)("div",{children:(0,a.jsxs)(o.kCb,{flex:1,direction:"column",overflow:"auto",children:[(0,a.jsxs)(n.Q$,{children:[(0,a.jsx)(n.HO,{globalFilter:k,setGlobalFilter:Z,placeholder:"Search property"}),(0,a.jsx)(o.Ugi,{alignItems:"center",spacing:4,children:(0,a.jsx)(u.ZP,{scopes:[j.Sh.PROPERTY_CREATE],children:(0,a.jsx)(C,{buttonLabel:"Add property"})})})]}),(0,a.jsx)(n.ZK,{tableInstance:D,onRowClick:e=>{t&&_.push({pathname:x.D3,query:{id:e.id}})},emptyTableNotice:(0,a.jsx)(V,{})}),(0,a.jsx)(n.s8,{totalRows:O||0,pageSizes:s,setPageSize:y,onPreviousPageClick:m,isPreviousPageDisabled:b||A,onNextPageClick:f,isNextPageDisabled:v||A,startRange:P,endRange:R})]})})}}}]);
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5783],{56358:function(e,t,s){s.d(t,{q:function(){return i}});var a=s(24246);let i=(0,s(39158).IUT)({displayName:"TrashCanOutlineIcon",viewBox:"0 0 11 12",path:(0,a.jsx)("path",{d:"M4.5166 1.60859L4.1084 2.21875H7.22363L6.81543 1.60859C6.7832 1.56133 6.72949 1.53125 6.67148 1.53125H4.6584C4.60039 1.53125 4.54668 1.55918 4.51445 1.60859H4.5166ZM7.6748 1.03711L8.46328 2.21875H8.75977H9.79102H9.96289C10.2486 2.21875 10.4785 2.44863 10.4785 2.73438C10.4785 3.02012 10.2486 3.25 9.96289 3.25H9.79102V9.78125C9.79102 10.7309 9.02188 11.5 8.07227 11.5H3.25977C2.31016 11.5 1.54102 10.7309 1.54102 9.78125V3.25H1.36914C1.0834 3.25 0.853516 3.02012 0.853516 2.73438C0.853516 2.44863 1.0834 2.21875 1.36914 2.21875H1.54102H2.57227H2.86875L3.65723 1.03496C3.88066 0.701953 4.25664 0.5 4.6584 0.5H6.67148C7.07324 0.5 7.44922 0.701953 7.67266 1.03496L7.6748 1.03711ZM2.57227 3.25V9.78125C2.57227 10.1615 2.87949 10.4688 3.25977 10.4688H8.07227C8.45254 10.4688 8.75977 10.1615 8.75977 9.78125V3.25H2.57227ZM4.29102 4.625V9.09375C4.29102 9.28281 4.13633 9.4375 3.94727 9.4375C3.7582 9.4375 3.60352 9.28281 3.60352 9.09375V4.625C3.60352 4.43594 3.7582 4.28125 3.94727 4.28125C4.13633 4.28125 4.29102 4.43594 4.29102 4.625ZM6.00977 4.625V9.09375C6.00977 9.28281 5.85508 9.4375 5.66602 9.4375C5.47695 9.4375 5.32227 9.28281 5.32227 9.09375V4.625C5.32227 4.43594 5.47695 4.28125 5.66602 4.28125C5.85508 4.28125 6.00977 4.43594 6.00977 4.625ZM7.72852 4.625V9.09375C7.72852 9.28281 7.57383 9.4375 7.38477 9.4375C7.1957 9.4375 7.04102 9.28281 7.04102 9.09375V4.625C7.04102 4.43594 7.1957 4.28125 7.38477 4.28125C7.57383 4.28125 7.72852 4.43594 7.72852 4.625Z",fill:"currentColor"})})},25783:function(e,t,s){s.d(t,{V:function(){return _}});var a=s(24246),i=s(92222),r=s(59003),n=s(47935),o=s(39158),l=s(98784),c=s.n(l),p=s(86677),d=s(27378),x=s(77830),u=s(19904),h=s(32885),g=s(98795),j=s(60240),C=e=>{let{buttonLabel:t,buttonProps:s}=e,i=(0,p.useRouter)();return(0,a.jsx)(o.wpx,{onClick:()=>i.push(x.B9),"data-testid":"add-property-button",...s,children:t})},y=s(56358),m=s(88340),b=s(25980),f=s(14048);let v="{privacy-center-hostname-and-path}",P="{property-unique-id}",R='<script src="https://'.concat(v,"/fides.js?property_id=").concat(P,'"></script>'),w="<script>Fides.gtm()</script>";var T=e=>{let{property:t}=e,s=(0,o.qY0)(),i=(0,d.useRef)(null),{fidesCloud:r}=(0,b.hz)(),{data:n,isSuccess:l}=(0,h.Vh)(void 0,{skip:!r}),c=(0,d.useMemo)(()=>{let e=R.replace(P,t.id.toString());return r&&l&&(null==n?void 0:n.privacy_center_url)&&e.replace(v,n.privacy_center_url),e},[null==n?void 0:n.privacy_center_url,r,l,t]);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.wpx,{"aria-label":"Install property",size:"small",className:"mr-[10px]",icon:(0,a.jsx)(f.A5,{}),onClick:e=>{e.stopPropagation(),s.onOpen()}}),(0,a.jsxs)(o.u_l,{isOpen:s.isOpen,onClose:s.onClose,isCentered:!0,size:"xl",initialFocusRef:i,children:[(0,a.jsx)(o.ZAr,{}),(0,a.jsxs)(o.hzk,{"data-testid":"copy-js-tag-modal",children:[(0,a.jsx)(o.xBx,{tabIndex:-1,ref:i,pb:0,children:"Install Fides Consent Manager"}),(0,a.jsx)(o.fef,{pt:3,pb:6,fontSize:"14px",fontWeight:500,children:(0,a.jsxs)(o.Kqy,{spacing:3,children:[(0,a.jsxs)(o.xvT,{children:["Copy the code below and paste it onto every page of the"," ",t.name," property."]}),(0,a.jsxs)(o.xvT,{children:["1. Paste this code as high in the ",(0,a.jsx)("b",{children:"<head>"})," of the page as possible:"]}),(0,a.jsxs)(o.EKh,{display:"flex",justifyContent:"space-between",alignItems:"top",p:0,children:[(0,a.jsx)(o.xvT,{p:4,children:c}),(0,a.jsx)(m.Z,{copyText:c})]}),(0,a.jsx)(o.xvT,{children:"2. Optionally, you can enable Google Tag Manager for managing tags on your website by including the script tag below along with the Fides.js tag. Place it below the Fides.js script tag."}),(0,a.jsxs)(o.EKh,{display:"flex",justifyContent:"space-between",alignItems:"center",p:0,children:[(0,a.jsx)(o.xvT,{p:4,children:w}),(0,a.jsx)(m.Z,{copyText:w})]}),(0,a.jsxs)(o.xvT,{children:["For more information about adding a JavaScript tag to your website, please visit"," ",(0,a.jsx)(o.rUS,{color:"complimentary.500",href:"https://docs.ethyca.com/tutorials/consent-management-configuration/install-fides#install-fidesjs-script-on-your-website",isExternal:!0,children:"docs.ethyca.com"})]})]})})]})]})]})},E=s(3642),H=e=>{let{property:t}=e,s=(0,p.useRouter)(),i=()=>{s.push("".concat(x.ru,"/").concat(t.id))};return(0,a.jsxs)(o.xuv,{py:2,children:[(0,a.jsx)(T,{property:t}),(0,a.jsx)(u.ZP,{scopes:[j.Sh.PROPERTY_UPDATE],children:(0,a.jsx)(o.wpx,{"aria-label":"Edit property","data-testid":"edit-property-button",size:"small",className:"mr-[10px]",icon:(0,a.jsx)(o.dY8,{}),onClick:e=>{e.stopPropagation(),i()}})}),(0,a.jsx)(E.Z,{property:t,triggerComponent:(0,a.jsx)(o.wpx,{"aria-label":"Delete property","data-testid":"delete-property-button",size:"small",className:"mr-[10px]",icon:(0,a.jsx)(y.q,{})})})]})};let z=(0,i.Cl)(),M={items:[],total:0,page:1,size:25,pages:1},V=()=>(0,a.jsx)(o.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",children:(0,a.jsxs)(o.gCW,{children:[(0,a.jsx)(o.xvT,{fontSize:"md",fontWeight:"600",children:"No properties found."}),(0,a.jsxs)(u.ZP,{scopes:[j.Sh.PROPERTY_CREATE],children:[(0,a.jsx)(o.xvT,{fontSize:"sm",children:"Click “Add property” to add your first property to Fides."}),(0,a.jsx)(C,{buttonLabel:"Add property",buttonProps:{type:"primary"}})]})]})}),_=()=>{let{isLoading:e}=(0,h.x8)(),t=(0,u.Tg)([j.Sh.PROPERTY_UPDATE]),{PAGE_SIZES:s,pageSize:l,setPageSize:y,onPreviousPageClick:m,isPreviousPageDisabled:b,onNextPageClick:f,isNextPageDisabled:v,startRange:P,endRange:R,pageIndex:w,setTotalPages:T,resetPageIndexToDefault:E}=(0,n.oi)(),_=(0,p.useRouter)(),[k,S]=(0,d.useState)(),Z=(0,d.useCallback)(e=>{E(),S(e)},[E,S]),{isFetching:A,isLoading:F,data:I}=(0,g.gz)({page:w,size:l,search:k}),{items:N,total:O,pages:L}=(0,d.useMemo)(()=>I||M,[I]);(0,d.useEffect)(()=>{T(L)},[L,T]);let q=(0,d.useMemo)(()=>[z.accessor(e=>e.name,{id:"name",cell:e=>(0,a.jsx)(n.G3,{value:e.getValue()}),header:e=>(0,a.jsx)(n.Rr,{value:"Property",...e})}),z.accessor(e=>e.type,{id:"type",cell:e=>(0,a.jsx)(n.G3,{value:c().capitalize(e.getValue())}),header:e=>(0,a.jsx)(n.Rr,{value:"Type",...e})}),z.accessor(e=>e.experiences.map(e=>e.name),{id:"experiences",cell:e=>(0,a.jsx)(n.WP,{suffix:"experiences",value:e.getValue(),...e}),header:e=>(0,a.jsx)(n.Rr,{value:"Experience",...e}),meta:{showHeaderMenu:!0}}),z.display({id:"actions",header:"Actions",cell:e=>{let{row:t}=e;return(0,a.jsx)(H,{property:t.original})}})],[]),D=(0,r.b7)({getCoreRowModel:(0,i.sC)(),getGroupedRowModel:(0,i.qe)(),getExpandedRowModel:(0,i.rV)(),columns:q,manualPagination:!0,data:N,state:{expanded:!0},columnResizeMode:"onChange"});return F||e?(0,a.jsx)(n.I4,{rowHeight:36,numRows:15}):(0,a.jsx)("div",{children:(0,a.jsxs)(o.kCb,{flex:1,direction:"column",overflow:"auto",children:[(0,a.jsxs)(n.Q$,{children:[(0,a.jsx)(n.HO,{globalFilter:k,setGlobalFilter:Z,placeholder:"Search property"}),(0,a.jsx)(o.Ugi,{alignItems:"center",spacing:4,children:(0,a.jsx)(u.ZP,{scopes:[j.Sh.PROPERTY_CREATE],children:(0,a.jsx)(C,{buttonLabel:"Add property"})})})]}),(0,a.jsx)(n.ZK,{tableInstance:D,onRowClick:e=>{t&&_.push({pathname:x.D3,query:{id:e.id}})},emptyTableNotice:(0,a.jsx)(V,{})}),(0,a.jsx)(n.s8,{totalRows:O||0,pageSizes:s,setPageSize:y,onPreviousPageClick:m,isPreviousPageDisabled:b||A,onNextPageClick:f,isNextPageDisabled:v||A,startRange:P,endRange:R})]})})}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5826],{15826:function(e,t,l){l.d(t,{$:function(){return k}});var s=l(24246),n=l(92222),i=l(59003),o=l(25980),a=l(812),r=l(47935),d=l(46628),c=l(39158),g=l(86677),u=l(27378),h=l(16134),x=l(58452),m=l(77830),C=l(23923),j=l(32885);let p=e=>{let{onChange:t,displayText:l,isChecked:n,value:i}=e;return(0,s.jsx)(c.XZJ,{id:"checkbox-".concat(i),value:i,height:"20px",mb:3,isChecked:n,onChange:t,colorScheme:"complimentary",mr:5,children:(0,s.jsx)(c.xvT,{fontSize:"sm",lineHeight:5,height:"20px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",children:l})},i)},b={GVL:!1,AC:!1,COMPASS:!1};var w=e=>{let{isOpen:t,onClose:l,tableInstance:n}=e,[i,o]=(0,u.useState)(b);return(0,u.useMemo)(()=>{let e={id:"vendor_id",value:[]};i.GVL&&e.value.push("gvl"),i.AC&&e.value.push("gacp"),n.setColumnFilters([e])},[i,n]),(0,s.jsxs)(c.u_l,{isOpen:t,onClose:l,isCentered:!0,size:"2xl",children:[(0,s.jsx)(c.ZAr,{}),(0,s.jsxs)(c.hzk,{children:[(0,s.jsx)(c.xBx,{children:"Filters"}),(0,s.jsx)(c.olH,{}),(0,s.jsx)(c.izJ,{}),(0,s.jsxs)(c.fef,{maxH:"85vh",px:6,py:4,overflowX:"auto",children:[(0,s.jsx)(c.xvT,{fontSize:"md",fontWeight:"bold",mb:2,children:"Sources"}),(0,s.jsx)(p,{onChange:()=>{o(e=>({...e,GVL:!e.GVL}))},displayText:a.iC.gvl.fullName,isChecked:i.GVL,value:"gvl"}),(0,s.jsx)(p,{onChange:()=>{o(e=>({...e,AC:!e.AC}))},displayText:a.iC.gacp.fullName,isChecked:i.AC,value:"gacp"})]}),(0,s.jsx)(c.mzw,{children:(0,s.jsxs)(c.xuv,{display:"flex",justifyContent:"space-between",width:"100%",children:[(0,s.jsx)(c.wpx,{onClick:()=>{n.setColumnFilters([]),o(b)},className:"mr-3 grow",children:"Reset Filters"}),(0,s.jsx)(c.wpx,{"data-testid":"filter-done-btn",type:"primary",onClick:l,className:"grow",children:"Done"})]})})]})]})};let f=e=>{var t;let{value:l}=e,n=(0,a.cj)(l),i=null!==(t=a.iC[n])&&void 0!==t?t:{label:"",fullName:""};return(0,s.jsx)(c.kCb,{alignItems:"center",justifyContent:"center",height:"100%",mr:"2",children:(0,s.jsx)(c.esZ,{title:i.fullName,children:(0,s.jsx)(c.j8w,{children:i.label})})})},v=(0,n.Cl)(),S=()=>(0,s.jsxs)(c.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",children:[(0,s.jsxs)(c.gCW,{children:[(0,s.jsx)(c.xvT,{fontSize:"md",fontWeight:"600",children:"No results found."}),(0,s.jsx)(c.xvT,{fontSize:"sm",children:'Can\'t find the vendor you are looking for? Add custom systems or unlisted\n vendors by selecting the "Add custom vendor" button below.'})]}),(0,s.jsx)(C.Z,{buttonLabel:"Add custom vendor",buttonProps:{type:"primary"}})]}),y="Vendor",k=e=>{let{redirectRoute:t}=e,l=(0,c.pmc)(),{dictionaryService:p,tcf:b}=(0,o.hz)(),{isLoading:k}=(0,j.x8)(),R=(0,g.useRouter)(),{isLoading:L}=(0,j.iN)(void 0,{skip:!p}),[A,{isLoading:I,isSuccess:_}]=(0,j.Qk)(),z=(0,h.C)(j.gG),[N,F]=(0,u.useState)(),{isOpen:M,onOpen:P,onClose:G}=(0,c.qY0)(),{isOpen:T,onClose:V,onOpen:O}=(0,c.qY0)(),[W,Z]=(0,u.useState)(!1),D=z.every(e=>e.linked_system),H=(0,u.useMemo)(()=>[v.display({id:"select",header:e=>{let{table:t}=e;return(0,s.jsx)(r.k,{dataTestId:"select-page-checkbox",isChecked:t.getIsAllPageRowsSelected(),isDisabled:D||t.getPaginationRowModel().rows.filter(e=>e.original.linked_system).length===t.getState().pagination.pageSize,isIndeterminate:t.getPaginationRowModel().rows.filter(e=>e.getCanSelect()).some(e=>!e.getIsSelected()),onChange:()=>{t.setRowSelection(e=>{let l={...e};return t.getRowModel().rows.forEach(e=>{e.getCanSelect()&&(l[e.id]=!l[e.id])}),l}),Z(e=>!e)}})},cell:e=>{let{row:t}=e;return(0,s.jsx)(r.k,{isChecked:t.getIsSelected(),isDisabled:!t.getCanSelect(),isIndeterminate:t.getIsSomeSelected(),onChange:t.getToggleSelectedHandler()})}}),v.accessor(e=>e.vendor_id,{id:"id",cell:e=>(0,s.jsx)(r.G3,{value:e.getValue()}),header:e=>(0,s.jsx)(r.Rr,{value:"ID",...e}),enableColumnFilter:b}),v.accessor(e=>e.name,{id:"name",cell:e=>(0,s.jsx)(r.G3,{value:e.getValue()}),header:e=>(0,s.jsx)(r.Rr,{value:"Name",...e})}),v.accessor(e=>e.vendor_id,{id:"source",cell:e=>(0,s.jsx)(f,{value:e.getValue()}),header:e=>(0,s.jsx)(r.Rr,{value:"Source",...e}),enableColumnFilter:b,filterFn:"arrIncludesSome"})],[D,b]),E=(0,i.b7)({columns:H,data:z,getCoreRowModel:(0,n.sC)(),getSortedRowModel:(0,n.tj)(),getFilteredRowModel:(0,n.vL)(),getPaginationRowModel:(0,n.G_)(),onGlobalFilterChange:F,enableRowSelection:e=>!e.original.linked_system,enableSorting:!0,enableGlobalFilter:!0,state:{globalFilter:N,columnVisibility:{id:b,source:b}},initialState:{pagination:{pageSize:r.W3[0]},columnSizing:{select:0,id:0,source:0,name:0}},enableColumnResizing:!0,columnResizeMode:"onChange"});(0,u.useEffect)(()=>{let e={};z.forEach((t,l)=>{t.linked_system&&(e[l]=!0)}),Object.keys(e).length&&E.setRowSelection(e)},[z,E]);let{totalRows:Y,onPreviousPageClick:$,isPreviousPageDisabled:X,onNextPageClick:q,isNextPageDisabled:B,setPageSize:J,startRange:Q,endRange:K}=(0,r.bX)(E),U=async()=>{let e=E.getSelectedRowModel().rows.filter(e=>!e.original.linked_system).map(e=>e.original.vendor_id);if(e.length>0){let s=await A(e);R.push(t),(0,a.D4)(s)?l((0,d.Vo)((0,a.e$)(s.error))):l((0,d.t5)("Successfully added ".concat(e.length," ").concat(y.toLocaleLowerCase()).concat(e.length>1?"s":"")))}},ee=E.getSelectedRowModel().rows.some(e=>!e.original.linked_system);if(!p&&!k)return R.push(m.gp),null;if(I||_)return(0,s.jsx)(c.kCb,{height:"100%",justifyContent:"center",alignItems:"center",children:(0,s.jsx)(c.$jN,{})});if(L)return(0,s.jsx)(r.I4,{rowHeight:36,numRows:15});let et=D?"All ".concat(y.toLocaleLowerCase(),"s have already been added"):"Select a ".concat(y.toLocaleLowerCase()," "),el=E.getSelectedRowModel().rows.filter(e=>!e.original.linked_system).length,es=E.getState().columnFilters.find(e=>"vendor_id"===e.id),en=es&&Array.isArray(es.value)?es.value.length:0;return(0,s.jsxs)(c.kCb,{flex:1,direction:"column",overflow:"auto","data-testid":"add-multiple-systems-tbl",children:[(0,s.jsx)(x.Z,{isOpen:T,isCentered:!0,onCancel:V,onClose:V,onConfirm:U,title:"Confirmation",message:"You are about to add ".concat(el.toLocaleString("en")," ").concat(y.toLocaleLowerCase()).concat(el>1?"s":"")}),(0,s.jsx)(w,{isOpen:M,onClose:G,tableInstance:E}),(0,s.jsxs)(r.Q$,{children:[(0,s.jsxs)(c.kCb,{alignItems:"center",grow:1,children:[(0,s.jsx)(c.xuv,{maxW:"420px",width:"100%",children:(0,s.jsx)(r.HO,{globalFilter:N,setGlobalFilter:F,placeholder:"Search"})}),el>0?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(c.xvT,{fontWeight:"700",fontSize:"sm",lineHeight:"2",ml:4,children:[el.toLocaleString("en")," selected"]}),(0,s.jsx)(c.esZ,{title:et,children:(0,s.jsx)(c.wpx,{onClick:O,"data-testid":"add-multiple-systems-btn",disabled:!ee,className:"ml-4",children:"Add"})})]}):null]}),(0,s.jsxs)(c.Ugi,{spacing:4,alignItems:"center",children:[(0,s.jsx)(C.Z,{buttonLabel:"Add custom vendor"}),b?(0,s.jsx)("span",{children:(0,s.jsxs)(c.wpx,{onClick:P,"data-testid":"filter-multiple-systems-btn",children:["Filter",en>0?(0,s.jsx)(c.j8w,{className:"mr-0",children:en}):null]})}):null]})]}),(0,s.jsx)(r.ZK,{tableInstance:E,rowActionBar:(0,s.jsx)(r.AA,{tableInstance:E,selectedRows:el,isOpen:W}),renderRowTooltipLabel:e=>{if(!e.getCanSelect())return"This vendor has already been added. You can view the properties of this vendor by going to the System Inventory."},emptyTableNotice:(0,s.jsx)(S,{})}),(0,s.jsx)(r.s8,{pageSizes:r.W3,totalRows:Y||0,onPreviousPageClick:$,isPreviousPageDisabled:X,onNextPageClick:q,isNextPageDisabled:B,setPageSize:J,startRange:Q,endRange:K})]})}}}]);