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
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2369],{1565:function(e,t,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/privacy-requests",function(){return l(69635)}])},96718:function(e,t,l){"use strict";l.d(t,{z:function(){return s}});var r=l(24246),a=l(39158);let s=e=>{let{...t}=e;return(0,r.jsx)(a.WPr,{defaultActiveFirstOption:!1,maxTagCount:"responsive",allowClear:!0,styles:t.mode?void 0:{popup:{root:{width:"auto",minWidth:"200px"}}},className:"w-auto","data-testid":"filter-select",...t})}},69635:function(e,t,l){"use strict";l.r(t),l.d(t,{default:function(){return Z}});var r,a,s=l(24246),i=l(35287),n=l(39158),o=l(65218),d=l.n(o),c=l(27378),u=l(25980),h=l(19904),p=l(28686),x=l(59003),v=l(92222),m=l(86677),j=l(40431),b=l(16125),g=l(47935),y=l(90867),C=l(16394),R=l(71784),E=l(60240);let A={approved:{colorScheme:n.tAb.SUCCESS,label:"Approved"},complete:{label:"Completed",colorScheme:n.tAb.SUCCESS},awaiting_email_send:{label:"Awaiting Email Send",colorScheme:n.tAb.MARBLE},denied:{label:"Denied",colorScheme:n.tAb.WARNING},canceled:{label:"Canceled",colorScheme:n.tAb.MARBLE},error:{label:"Error",colorScheme:n.tAb.ERROR},in_processing:{label:"In Progress",colorScheme:n.tAb.CAUTION},paused:{label:"Paused",colorScheme:n.tAb.MARBLE},pending:{label:"New",colorScheme:n.tAb.INFO},identity_unverified:{label:"Unverified",colorScheme:n.tAb.MARBLE},requires_input:{colorScheme:n.tAb.MINOS,label:"Requires Input"},requires_manual_finalization:{colorScheme:n.tAb.MINOS,label:"Requires Finalization"},duplicate:{colorScheme:n.tAb.DEFAULT,label:"Duplicate"}},S=e=>{let{value:t}=e;return(0,s.jsx)(g.A4,{color:A[t].colorScheme,value:A[t].label,"data-testid":"request-status-badge"})},_=e=>{let t,{daysLeft:l,timeframe:r=45,status:a,includeText:i=!1}=e;if(null==l||a===E.q2.COMPLETE||a===E.q2.CANCELED||a===E.q2.DENIED||a===E.q2.IDENTITY_UNVERIFIED)return null;let o=100*l/r;return o<25?t=n.tAb.ERROR:o>=75?t=n.tAb.SUCCESS:o>=25&&(t=n.tAb.WARNING),(0,s.jsx)(g.A4,{value:i?"".concat(l," days left"):l.toString(),color:t})},q=e=>Array.from(new Set(e.filter(e=>Object.values(E.Us).includes(e.action_type)).map(e=>e.action_type))),w=e=>{let{value:t}=e,l=q(t).map(e=>R.rE.get(e));return(0,s.jsx)(g.WP,{value:l,cellState:{isExpanded:!0}})};var f=l(98855);(r=a||(a={})).STATUS="status",r.DAYS_LEFT="due_date",r.SOURCE="source",r.REQUEST_TYPE="request_type",r.SUBJECT_IDENTITY="subject_identity",r.TIME_RECEIVED="created_at",r.CREATED_BY="created_by",r.REVIEWER="reviewer",r.ID="id",r.LOCATION="location",r.ACTIONS="actions";let I=(0,v.Cl)(),T=()=>[I.accessor(e=>e.status,{id:"status",cell:e=>{let{getValue:t}=e;return(0,s.jsx)(S,{value:t()})},header:e=>(0,s.jsx)(g.Rr,{value:"Status",...e}),size:120}),I.accessor(e=>e.days_left,{id:"due_date",cell:e=>{let{row:t,getValue:l}=e;return(0,s.jsx)(_,{daysLeft:l(),timeframe:t.original.policy.execution_timeframe,status:t.original.status})},header:e=>(0,s.jsx)(g.Rr,{value:"Days left",...e}),size:80}),I.accessor(e=>e.source,{id:"source",cell:e=>e.getValue()?(0,s.jsx)(g.A4,{value:e.getValue()}):(0,s.jsx)(g.G3,{value:void 0}),header:e=>(0,s.jsx)(g.Rr,{value:"Source",...e}),enableSorting:!1}),I.accessor(e=>e.policy.rules,{id:"request_type",cell:e=>{let{getValue:t}=e;return(0,s.jsx)(w,{value:t()})},header:e=>(0,s.jsx)(g.Rr,{value:"Request type",...e}),enableSorting:!1,size:100}),I.accessor(e=>{var t,l;return(null===(t=e.identity)||void 0===t?void 0:t.email.value)||(null===(l=e.identity)||void 0===l?void 0:l.phone_number.value)||""},{id:"subject_identity",cell:e=>{let{getValue:t}=e;return(0,s.jsx)(g.G3,{value:t()})},header:e=>(0,s.jsx)(g.Rr,{value:"Subject identity",...e}),enableSorting:!1}),I.accessor(e=>e.created_at,{id:"created_at",cell:e=>{let{getValue:t}=e;return(0,s.jsx)(g.G3,{value:(0,C.p6)(t())})},header:e=>(0,s.jsx)(g.Rr,{value:"Time received",...e}),size:120}),I.accessor(e=>{var t;return(null===(t=e.reviewer)||void 0===t?void 0:t.username)||""},{id:"reviewer",cell:e=>{let{getValue:t}=e;return(0,s.jsx)(g.G3,{value:t()})},header:e=>(0,s.jsx)(g.Rr,{value:"Reviewed by",...e}),enableSorting:!1}),I.accessor(e=>e.id,{id:"id",cell:e=>{let{getValue:t}=e;return(0,s.jsx)(g.G3,{value:t()})},header:e=>(0,s.jsx)(g.Rr,{value:"Request ID",...e}),enableSorting:!1}),I.accessor(e=>e.location,{id:"location",cell:e=>{let{getValue:t}=e,l=t(),r=l?(0,n.QCN)(l):void 0,a=r?(0,n.c1K)({isoEntry:r,showFlag:!0}):l;return(0,s.jsx)(g.G3,{value:a})},header:e=>(0,s.jsx)(g.Rr,{value:"Location",...e}),enableSorting:!1}),I.display({id:"actions",cell:e=>{let{row:t}=e;return(0,s.jsx)(f.q,{subjectRequest:t.original})},header:e=>(0,s.jsx)(g.Rr,{value:"Actions",...e}),meta:{disableRowClick:!0}})],U=e=>{let t=(0,b.v9)(y.dp),l=(0,b.I0)();return{handleStatusChange:t=>{l((0,y.CI)(t)),e()},handleActionTypeChange:t=>{l((0,y.aM)(t)),e()},handleFromChange:t=>{l((0,y.su)(null==t?void 0:t.target.value)),e()},handleToChange:t=>{l((0,y.Ue)(null==t?void 0:t.target.value)),e()},handleClearAllFilters:()=>{l((0,y.Mk)()),e()},anyFiltersApplied:(0,c.useMemo)(()=>{var e,l;return(null===(e=t.action_type)||void 0===e?void 0:e.length)||""!==t.from||""!==t.to||(null===(l=t.status)||void 0===l?void 0:l.length)||void 0!==t.sort_field||void 0!==t.sort_direction},[t]),...t}};var N=l(96718);let k=e=>{let{onClose:t,onFilterChange:l,...r}=e,{handleStatusChange:a,handleActionTypeChange:i,handleFromChange:o,handleToChange:d,handleClearAllFilters:c,from:u,to:h,status:p,action_type:x}=U(l);return(0,s.jsxs)(n.u_l,{onClose:t,size:"xl",...r,children:[(0,s.jsx)(n.ZAr,{}),(0,s.jsxs)(n.hzk,{children:[(0,s.jsx)(n.xBx,{borderBottomWidth:1,borderBottomColor:"gray.200",children:"All Filters"}),(0,s.jsx)(n.olH,{}),(0,s.jsx)(n.fef,{py:4,sx:{"& label":{mb:0}},children:(0,s.jsxs)(n.Kqy,{gap:4,children:[(0,s.jsxs)(n.Kqy,{children:[(0,s.jsx)(n.lXp,{size:"md",id:"request-date-range-label",children:"Date range"}),(0,s.jsxs)(n.Ugi,{gap:3,children:[(0,s.jsxs)(n.BZy,{size:"sm",flex:1,children:[(0,s.jsx)(n.UiE,{as:"label",htmlFor:"from-date",borderRadius:"md",children:"From"}),(0,s.jsx)(n.IIB,{type:"date",name:"From",value:u,max:h||void 0,onChange:o,borderRadius:"md",id:"from-date","aria-describedby":"request-date-range-label"})]}),(0,s.jsxs)(n.BZy,{size:"sm",flex:1,children:[(0,s.jsx)(n.UiE,{as:"label",htmlFor:"to-date",borderRadius:"md",children:"To"}),(0,s.jsx)(n.IIB,{type:"date",borderRadius:"md",name:"To",value:h,min:u||void 0,onChange:d,id:"to-date","aria-describedby":"request-date-range-label"})]})]})]}),(0,s.jsxs)(n.Kqy,{children:[(0,s.jsx)(n.lXp,{size:"md",htmlFor:"request-status",children:"Status"}),(0,s.jsx)(N.z,{id:"request-status",mode:"multiple",options:R.I3,value:p,onChange:a,"data-testid":"request-status-filter"})]}),(0,s.jsxs)(n.Kqy,{children:[(0,s.jsx)(n.lXp,{size:"md",htmlFor:"request-action-type",children:"Request Type"}),(0,s.jsx)(N.z,{id:"request-action-type",mode:"multiple",options:R.kN,value:x,onChange:i,"data-testid":"request-action-type-filter"})]})]})}),(0,s.jsxs)(n.mzw,{justifyContent:"space-between",children:[(0,s.jsx)(n.wpx,{type:"text",onClick:c,children:"Clear all"}),(0,s.jsx)(n.wpx,{type:"primary",onClick:t,children:"Done"})]})]})]})};var z=l(9270);let D=e=>{var t,l;let{className:r,onFilterChange:a}=e,i=(0,b.I0)(),o=(0,b.v9)(y.dp),{data:d}=(0,y.QA)({status:[E.q2.DUPLICATE],page:1,size:1}),c=null!==(l=null==d?void 0:d.total)&&void 0!==l?l:0;return(null===(t=o.status)||void 0===t?void 0:t.length)===1&&o.status[0]===E.q2.DUPLICATE||0===c?null:(0,s.jsxs)(n.wpx,{type:"text",onClick:()=>{i((0,y.CI)([E.q2.DUPLICATE])),null==a||a()},className:r,"data-testid":"duplicate-requests-button",children:[c," duplicate"," ",(0,C._6)(c,"request","requests")]})};var F=l(812),P=()=>{let e=(0,n.pmc)(),[t,{isFetching:l}]=(0,y.ZU)();return{downloadReport:async l=>{let r=await t(l);if(r.isError)e({status:"error",description:(0,F.e$)(r.error,"A problem occurred while generating your privacy request report. Please try again.")});else{let t=document.createElement("a"),l=new Blob([r.data],{type:"text/csv"}),a=window.URL.createObjectURL(l);t.href=a,t.download="privacy-request-report.csv",t.click(),t.remove(),window.URL.revokeObjectURL(a),e({status:"success",description:"Successfully downloaded Privacy Request report."})}},isDownloadingReport:l}};let O=e=>{let{...t}=e,[l,r]=(0,j.v1)("search",j.Oi.withDefault("").withOptions({throttleMs:100})),a=(0,b.v9)(y.dp),i=(0,n.pmc)(),o=(0,m.useRouter)(),d=(0,b.I0)(),u=(0,z.S)(),{pageIndex:h,pageSize:p,resetPagination:C}=u,{anyFiltersApplied:R,handleClearAllFilters:E}=U(C),{isOpen:A,onOpen:S,onClose:_}=(0,n.qY0)(),{data:q,isLoading:w,isFetching:f}=(0,y.QA)({...a,page:h,size:p,fuzzy_search_str:l}),{items:I,total:N}=(0,c.useMemo)(()=>q||{items:[],total:0,pages:0},[q]),{downloadReport:F}=P(),O=(0,c.useCallback)(e=>{r(null!=e?e:""),C()},[C,r]),L=async()=>{let e;try{await F(a)}catch(t){e=t instanceof Error?t.message:"Unknown error occurred"}e&&i({description:"".concat(e),duration:5e3,status:"error"})},M=e=>{o.push("/privacy-requests/".concat(e))},B=(0,x.b7)({getCoreRowModel:(0,v.sC)(),data:I,columns:(0,c.useMemo)(()=>T(),[]),getRowId:e=>"".concat(e.status,"-").concat(e.id),manualPagination:!0,columnResizeMode:"onChange"});return(0,s.jsxs)(n.xuv,{...t,children:[(0,s.jsxs)(g.Q$,{children:[(0,s.jsx)(g.HO,{globalFilter:l,setGlobalFilter:O,placeholder:"Search by request ID or identity value"}),(0,s.jsxs)(n.Ugi,{alignItems:"center",spacing:2,children:[(0,s.jsx)(D,{className:"-mr-2",onFilterChange:C}),R&&(0,s.jsx)(n.wpx,{type:"text",onClick:E,children:"Clear filters"}),(0,s.jsx)(n.wpx,{"data-testid":"filter-btn",onClick:S,children:"Filter"}),(0,s.jsx)(n.wpx,{"aria-label":"Export report","data-testid":"export-btn",icon:(0,s.jsx)(n.PJP.UWx,{}),onClick:L})]}),(0,s.jsx)(n.h_i,{children:(0,s.jsx)(k,{isOpen:A,onClose:_,onFilterChange:C})})]}),w?(0,s.jsx)(n.xuv,{p:2,borderWidth:1,children:(0,s.jsx)(g.I4,{rowHeight:26,numRows:10})}):(0,s.jsxs)(n.jqI,{vertical:!0,gap:"middle",children:[(0,s.jsx)(g.ZK,{tableInstance:B,onRowClick:e=>M(e.id),onSort:e=>{if(!e){d((0,y.PS)());return}let{id:t,desc:l}=e;d((0,y.WR)(t)),d((0,y.iX)(l?"desc":"asc")),C()},loading:f}),(0,s.jsx)(n.B7X,{...u.paginationProps,showTotal:(e,t)=>"".concat(t[0],"-").concat(t[1]," of ").concat(e," items"),total:null!=N?N:0,align:"end"})]})]})};var L=l(86291),M=l(58754),B=l(88152),G=l(72281);let W=d()(()=>l.e(9676).then(l.bind(l,59676)),{loadableGenerated:{webpack:()=>[59676]},loading:()=>(0,s.jsx)("div",{children:"Loading..."})});var Y=()=>{let{processing:e}=(0,B.Y)(),{plus:t}=(0,u.hz)(),{activeTab:l,handleTabChange:r,availableTabs:a}=(0,G.d)();(0,c.useEffect)(()=>{e()},[e]);let i=(0,c.useMemo)(()=>{let e=[];return a.request&&e.push({key:G.G.REQUEST,label:"Request",children:(0,s.jsx)(O,{})}),a.manualTask&&e.push({key:G.G.MANUAL_TASK,label:"Manual tasks",children:(0,s.jsx)(p.m,{})}),e},[a.manualTask,a.request]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(M.Z,{heading:"Privacy Requests",breadcrumbItems:[{title:"All requests"}],rightContent:(0,s.jsxs)(n.vyj,{children:[t&&(0,s.jsx)(h.ZP,{scopes:[E.Sh.PRIVACY_REQUEST_CREATE],children:(0,s.jsx)(L.Z,{})}),(0,s.jsx)(W,{})]}),"data-testid":"privacy-requests"}),(0,s.jsx)(n.A5g,{activeKey:l,onChange:r,items:i})]})},Z=()=>(0,s.jsx)(i.Z,{title:"Privacy Requests",mainProps:{overflowY:"scroll"},children:(0,s.jsx)(Y,{})})}},function(e){e.O(0,[431,7245,1840,3655,7654,2888,9774,179],function(){return e(e.s=1565)}),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8161],{23321:function(e,r,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/properties/[id]",function(){return t(56041)}])},56041:function(e,r,t){"use strict";t.r(r);var n=t(24246),u=t(98227),i=t(86677),s=t(812),c=t(77213),l=t(77830),o=t(58754),p=t(46628),a=t(98795),d=t(18880),f=t(31883);r.default=()=>{let e=(0,u.pmc)(),{id:r}=(0,i.useRouter)().query,{data:t}=(0,a.J6)(r),[_]=(0,a.f2)(),h=async r=>{let{id:t,messaging_templates:n,...u}=r,i=await _({id:t,property:u});if((0,f.D4)(i)){e((0,p.Vo)((0,s.e$)(i.error)));return}e((0,p.t5)("Property ".concat(r.name," updated successfully")))};return t?(0,n.jsxs)(c.Z,{title:t.name,children:[(0,n.jsx)(o.Z,{heading:"Properties",breadcrumbItems:[{title:"All properties",href:l.ru},{title:t.name}]}),(0,n.jsx)(u.xuv,{maxWidth:"720px",children:(0,n.jsx)(d.Z,{property:t,handleSubmit:h})})]}):null}}},function(e){e.O(0,[2040,5185,2888,9774,179],function(){return e(e.s=23321)}),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8161],{23321:function(e,r,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/properties/[id]",function(){return t(56041)}])},56041:function(e,r,t){"use strict";t.r(r);var n=t(24246),u=t(39158),i=t(86677),s=t(812),c=t(77213),l=t(77830),o=t(58754),p=t(46628),a=t(98795),d=t(18880),f=t(31883);r.default=()=>{let e=(0,u.pmc)(),{id:r}=(0,i.useRouter)().query,{data:t}=(0,a.J6)(r),[_]=(0,a.f2)(),h=async r=>{let{id:t,messaging_templates:n,...u}=r,i=await _({id:t,property:u});if((0,f.D4)(i)){e((0,p.Vo)((0,s.e$)(i.error)));return}e((0,p.t5)("Property ".concat(r.name," updated successfully")))};return t?(0,n.jsxs)(c.Z,{title:t.name,children:[(0,n.jsx)(o.Z,{heading:"Properties",breadcrumbItems:[{title:"All properties",href:l.ru},{title:t.name}]}),(0,n.jsx)(u.xuv,{maxWidth:"720px",children:(0,n.jsx)(d.Z,{property:t,handleSubmit:h})})]}):null}}},function(e){e.O(0,[2040,5185,2888,9774,179],function(){return e(e.s=23321)}),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1855],{89772:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/properties/add-property",function(){return r(59575)}])},59575:function(e,t,r){"use strict";r.r(t);var n=r(24246),u=r(98227),c=r(86677),i=r(812),s=r(77213),o=r(77830),a=r(58754),d=r(46628),p=r(98795),l=r(18880),_=r(31883);t.default=()=>{let e=(0,u.pmc)(),t=(0,c.useRouter)(),[r]=(0,p.dX)(),f=async n=>{let u=await r(n);if((0,_.D4)(u)){e((0,d.Vo)((0,i.e$)(u.error)));return}let c=u.data;e((0,d.t5)("Property ".concat(n.name," created successfully"))),t.push("".concat(o.ru,"/").concat(c.id))};return(0,n.jsxs)(s.Z,{title:"Add property",children:[(0,n.jsx)(a.Z,{heading:"Properties",breadcrumbItems:[{title:"All properties",href:o.ru},{title:"Add property"}]}),(0,n.jsx)(u.xuv,{maxWidth:"720px",children:(0,n.jsx)(l.Z,{handleSubmit:f})})]})}}},function(e){e.O(0,[2040,5185,2888,9774,179],function(){return e(e.s=89772)}),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1855],{89772:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/properties/add-property",function(){return r(59575)}])},59575:function(e,t,r){"use strict";r.r(t);var n=r(24246),u=r(39158),c=r(86677),i=r(812),s=r(77213),o=r(77830),a=r(58754),d=r(46628),p=r(98795),l=r(18880),_=r(31883);t.default=()=>{let e=(0,u.pmc)(),t=(0,c.useRouter)(),[r]=(0,p.dX)(),f=async n=>{let u=await r(n);if((0,_.D4)(u)){e((0,d.Vo)((0,i.e$)(u.error)));return}let c=u.data;e((0,d.t5)("Property ".concat(n.name," created successfully"))),t.push("".concat(o.ru,"/").concat(c.id))};return(0,n.jsxs)(s.Z,{title:"Add property",children:[(0,n.jsx)(a.Z,{heading:"Properties",breadcrumbItems:[{title:"All properties",href:o.ru},{title:"Add property"}]}),(0,n.jsx)(u.xuv,{maxWidth:"720px",children:(0,n.jsx)(l.Z,{handleSubmit:f})})]})}}},function(e){e.O(0,[2040,5185,2888,9774,179],function(){return e(e.s=89772)}),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7322],{29303:function(e,n,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/properties",function(){return i(42652)}])},42652:function(e,n,i){"use strict";i.r(n);var r=i(24246),s=i(98227),t=i(77213),o=i(58754),a=i(25783);n.default=()=>(0,r.jsxs)(t.Z,{title:"Properties",children:[(0,r.jsx)(o.Z,{heading:"Properties",children:(0,r.jsx)(s.xvT,{fontSize:"sm",width:{base:"100%",lg:"60%"},children:"Review and manage your properties below. Properties are the locations you have configured for consent management such as a website or mobile app."})}),(0,r.jsx)(a.V,{})]})}},function(e){e.O(0,[2040,5783,2888,9774,179],function(){return e(e.s=29303)}),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7322],{29303:function(e,n,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/properties",function(){return i(42652)}])},42652:function(e,n,i){"use strict";i.r(n);var r=i(24246),s=i(39158),t=i(77213),o=i(58754),a=i(25783);n.default=()=>(0,r.jsxs)(t.Z,{title:"Properties",children:[(0,r.jsx)(o.Z,{heading:"Properties",children:(0,r.jsx)(s.xvT,{fontSize:"sm",width:{base:"100%",lg:"60%"},children:"Review and manage your properties below. Properties are the locations you have configured for consent management such as a website or mobile app."})}),(0,r.jsx)(a.V,{})]})}},function(e){e.O(0,[2040,5783,2888,9774,179],function(){return e(e.s=29303)}),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9196],{6446:function(e){e.exports=function(e,t,a,s){var r=-1,i=null==e?0:e.length;for(s&&i&&(a=e[++r]);++r<i;)a=t(a,e[r],r,e);return a}},67375:function(e,t,a){var s=a(52033),r=a(80068);e.exports=function(e,t){var a=-1,i=r(e)?Array(e.length):[];return s(e,function(e,s,r){i[++a]=t(e,s,r)}),i}},74833:function(e,t,a){var s=a(56127),r=/^\s+/;e.exports=function(e){return e?e.slice(0,s(e)+1).replace(r,""):e}},56632:function(e,t,a){var s=a(89278),r=a(80068),i=a(50098);e.exports=function(e){return function(t,a,l){var n=Object(t);if(!r(t)){var o=s(a,3);t=i(t),a=function(e){return o(n[e],e,n)}}var c=e(t,a,l);return c>-1?n[o?t[c]:c]:void 0}}},56127:function(e){var t=/\s/;e.exports=function(e){for(var a=e.length;a--&&t.test(e.charAt(a)););return a}},64925:function(e,t,a){var s=a(56632)(a(66259));e.exports=s},66259:function(e,t,a){var s=a(95372),r=a(89278),i=a(47991),l=Math.max;e.exports=function(e,t,a){var n=null==e?0:e.length;if(!n)return -1;var o=null==a?0:i(a);return o<0&&(o=l(n+o,0)),s(e,r(t,3),o)}},55807:function(e,t,a){var s=a(66070),r=a(89278),i=a(67375),l=a(19785);e.exports=function(e,t){return(l(e)?s:i)(e,r(t,3))}},82846:function(e,t,a){var s=a(77400);e.exports=function(){return s.Date.now()}},32526:function(e,t,a){var s=a(68267)(function(e,t,a){return e+(a?"_":"")+t.toLowerCase()});e.exports=s},94919:function(e,t,a){var s=a(91936),r=1/0;e.exports=function(e){return e?(e=s(e))===r||e===-r?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}},47991:function(e,t,a){var s=a(94919);e.exports=function(e){var t=s(e),a=t%1;return t==t?a?t-a:t:0}},91936:function(e,t,a){var s=a(74833),r=a(11611),i=a(55193),l=0/0,n=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,c=/^0o[0-7]+$/i,d=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return l;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=s(e);var a=o.test(e);return a||c.test(e)?d(e.slice(2),a?2:8):n.test(e)?l:+e}},86548:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/reporting/datamap",function(){return a(27901)}])},624:function(e,t,a){"use strict";var s=a(24246),r=a(39158),i=a(27378);let l=e=>{let t=e.split("."),a=[];return t.forEach(e=>{let t=a.length>0?a[a.length-1]:null;t?a.push("".concat(t,".").concat(e)):a.push(e)}),a},n=(e,t)=>{let a=l(t).filter(e=>e!==t);return e.filter(e=>a.includes(e)).length>0},o=(e,t)=>!!(e===t||e.startsWith("".concat(t,"."))),c=(e,t,a)=>{let s=null!=a?a:[];return e.forEach(e=>{e.children&&c(e.children,t,s),o(e.value,t)&&s.push(e)}),s},d=e=>{let{node:t,isChecked:a,onChecked:i,isExpanded:l,onExpanded:n,isIndeterminate:o,isDisabled:c,children:d}=e,{value:u,label:_}=t,p=!!t.children&&t.children.length>0;return(0,s.jsxs)(r.xuv,{children:[(0,s.jsxs)(r.xuv,{display:"flex",justifyContent:"space-between",_hover:{backgroundColor:"gray.100",cursor:"pointer"},onClick:()=>n(t),minHeight:8,children:[(0,s.jsx)(r.XZJ,{colorScheme:"complimentary",value:u,isChecked:!o&&a,isIndeterminate:o,isDisabled:c,onChange:()=>i(t),mx:2,"data-testid":"checkbox-".concat(_),children:_}),p?(0,s.jsx)(r.wpx,{"data-testid":"expand-".concat(_),"aria-label":l?"collapse":"expand",icon:(0,s.jsx)(r.v4q,{boxSize:5}),type:"text",onClick:()=>n(t),className:l?"rotate-180":void 0}):null]}),d&&(0,s.jsx)(r.xuv,{ml:5,children:d})]})};t.ZP=e=>{let{nodes:t,selected:a,onSelected:u,..._}=e,[p,m]=(0,i.useState)([]),[E,S]=(0,i.useState)([]);(0,i.useEffect)(()=>{let e=Array.from(new Set([...a.map(e=>l(e)).reduce((e,t)=>e.concat(t),[]),...a.map(e=>c(t,e)).reduce((e,t)=>e.concat(t),[]).map(e=>e.value)]));S(e),m(e)},[a,t]);let g=e=>{let s=[],r=[];p.indexOf(e.value)>=0?(s=p.filter(t=>!o(t,e.value)),r=a.filter(t=>!o(t,e.value))):(s=[...p,...c(t,e.value).map(e=>e.value)],r=[...a,e.value]),m(s),u(r)},h=e=>{E.indexOf(e.value)>=0?S(E.filter(t=>!o(t,e.value))):S([...E,e.value])},f=e=>{if(e.children){let r=p.indexOf(e.value)>=0,l=E.indexOf(e.value)>=0,o=c(t,e.value),u=r&&e.children.length>0&&p.filter(t=>t.startsWith("".concat(e.value,"."))).length+1!==o.length,_=n(a,e.value);return(0,s.jsx)(d,{node:e,isChecked:r,onChecked:g,isExpanded:l,onExpanded:h,isDisabled:_,isIndeterminate:u,children:l?e.children.map(e=>(0,s.jsx)(i.Fragment,{children:f(e)},e.value)):void 0})}return null};return(0,s.jsx)(r.xuv,{..._,children:t.map(e=>(0,s.jsx)(r.xuv,{children:f(e)},e.value))})}},35287:function(e,t,a){"use strict";var s=a(24246),r=a(39158),i=a(88038),l=a.n(i);a(27378),t.Z=e=>{let{children:t,title:a,fullHeight:i,fullWidth:n,mainProps:o}=e;return(0,s.jsxs)(r.kCb,{"data-testid":a,direction:"column",height:i?"100vh":"calc(100vh - 48px)",width:n?"100vw":"calc(100vw - 240px)",children:[(0,s.jsxs)(l(),{children:[(0,s.jsxs)("title",{children:["Fides Admin UI - ",a]}),(0,s.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,s.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,s.jsx)(r.kCb,{px:10,py:6,as:"main",overflow:"auto",direction:"column",flex:1,minWidth:0,...o,children:t})]})}},58754:function(e,t,a){"use strict";var s=a(24246),r=a(39158),i=a(70788);t.Z=e=>{let{heading:t,breadcrumbItems:a,isSticky:l=!0,children:n,rightContent:o,style:c,...d}=e;return(0,s.jsxs)("div",{...d,style:l?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...c}:{paddingBottom:"24px",...c},children:[(0,s.jsxs)(r.jqI,{justify:"space-between",children:["string"==typeof t?(0,s.jsx)(r.lQT,{className:a||n?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,o&&(0,s.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!a&&(0,s.jsx)(i.m,{className:n?"pb-4":void 0,items:a,"data-testid":"page-breadcrumb"}),n]})}},19904:function(e,t,a){"use strict";a.d(t,{Tg:function(){return l}});var s=a(24246),r=a(16134),i=a(31793);let l=e=>(0,r.C)(i.uu).filter(t=>e.includes(t)).length>0;t.ZP=e=>{let{scopes:t,children:a}=e;return l(t)?(0,s.jsx)(s.Fragment,{children:a}):null}},34929:function(e,t,a){"use strict";var s=a(24246),r=a(64925),i=a.n(r),l=a(27378),n=a(16134),o=a(30002),c=a(28079),d=a(57072);let u=()=>{let{isLoading:e}=(0,c.fd)(),t=(0,n.C)(c.U3),{isLoading:a}=(0,d.MO)(),s=(0,n.C)(d.qb),{isLoading:r}=(0,o.te)();return{dataUses:t,dataSubjects:(0,n.C)(o.ZL),dataCategories:s,isLoading:e||a||r}};t.Z=()=>{let{dataUses:e,dataCategories:t,dataSubjects:a,isLoading:r}=u(),n=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e.split(".").slice(0,t).join(".")},o=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,s=t(e);if(!s)return{};let r=t(n(e,a)),i=!!s.parent_key;return{name:s.name||void 0,primaryName:i&&(null==r?void 0:r.name)!==s.name&&(null==r?void 0:r.name)||void 0}},c=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,{name:r,primaryName:i}=o(e,t,a);return r?i?(0,s.jsxs)(l.Fragment,{children:[(0,s.jsxs)("strong",{children:[i,":"]})," ",r]},e):(0,s.jsx)("strong",{children:r},e):e},d=t=>i()(e,{fides_key:t}),_=e=>i()(t,{fides_key:e}),p=e=>i()(a,{fides_key:e});return{getDataUses:()=>e,getDataUseByKey:d,getDataUseDisplayName:e=>c(e,d,1),getDataUseDisplayNameProps:e=>o(e,d,1),getDataCategories:()=>t,getDataCategoryByKey:_,getDataCategoryDisplayName:e=>c(e,_,2),getDataCategoryDisplayNameProps:e=>o(e,_,2),getDataSubjects:()=>a,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:n,isLoading:r}}},70788:function(e,t,a){"use strict";a.d(t,{m:function(){return c}});var s=a(24246),r=a(39158),i=a(79894),l=a.n(i),n=a(27378);let{Text:o}=r.AntTypography,c=e=>{let{items:t,...a}=e,i=(0,n.useMemo)(()=>null==t?void 0:t.map((e,a)=>{let i=a===t.length-1,n={...e},c=n.onClick&&!n.href;return("string"==typeof n.title&&(n.title=(0,s.jsx)(o,{style:{color:"inherit",maxWidth:i?void 0:400},ellipsis:!i,id:i?"breadcrumb-current-page":void 0,children:n.title})),c)?n.title=(0,s.jsx)(r.wpx,{type:"text",size:"small",icon:n.icon,onClick:n.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:n.title}):(n.icon&&(n.title=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"anticon align-text-bottom",children:n.icon}),n.title]})),n.href&&n.title&&(n.title=(0,s.jsx)(l(),{href:n.href,className:"ant-breadcrumb-link",children:n.title}),delete n.href)),n}),[t]);return(0,s.jsx)(r.zrq,{items:i,...a})}},2525:function(e,t,a){"use strict";a.d(t,{Q:function(){return n}});var s=a(24246),r=a(39158),i=a(27378),l=a(3110);let n=e=>{let{values:t,columnState:a,tagProps:n,onTagClose:o,onStateChange:c,...d}=e,{isExpanded:u,isWrapped:_,version:p}=a||{},[m,E]=(0,i.useState)(!u),[S,g]=(0,i.useState)(!!_),[h,f]=(0,i.useState)(u?t:null==t?void 0:t.slice(0,2));(0,i.useEffect)(()=>{E(!u)},[u,p]),(0,i.useEffect)(()=>{g(!!_)},[_]),(0,i.useEffect)(()=>{(null==t?void 0:t.length)?f(m?t.slice(0,2):t):f(t)},[m,t,c]),(0,i.useEffect)(()=>{(null==t?void 0:t.length)&&t.length<=2&&!m&&(E(!0),null==c||c(!1))},[t,c,m]);let A=(0,i.useCallback)(()=>{f(null==t?void 0:t.slice(0,2)),E(!0),null==c||c(!1)},[t,c]),x=(0,i.useCallback)(()=>{E(!1),null==c||c(!0)},[c]),T=(0,i.useCallback)(()=>{m?x():A()},[m,x,A]);return(0,i.useMemo)(()=>(null==h?void 0:h.length)?(0,s.jsxs)(r.jqI,{align:m?"center":"start",wrap:S?"wrap":"nowrap",vertical:!m,gap:"small","data-testid":"tag-expandable-cell",style:{overflowX:"auto",...d.style},...d,children:[h.map(e=>(0,s.jsx)(r.j8w,{color:"white","data-testid":e.key,onClose:o?()=>o(e.key):void 0,...n,...e.tagProps,children:(0,s.jsx)(r.lKn,{ellipsis:!!m&&{tooltip:!0},style:{color:"inherit",maxWidth:m?l.TD:void 0},children:e.label})},e.key)),t&&t.length>2&&(0,s.jsx)(r.wpx,{type:"link",size:"small",onClick:e=>{e.stopPropagation(),T()},className:"h-auto p-0",style:{fontSize:"var(--ant-font-size)"},children:m?"+".concat(t.length-2," more"):l.T5})]}):(0,s.jsx)("span",{"data-testid":"tag-expandable-cell-empty"}),[h,m,S,d,t,n,o,T])}},3110:function(e,t,a){"use strict";a.d(t,{DI:function(){return n},T5:function(){return i},TD:function(){return l}});var s=a(24246),r=a(39158);let i="show less",l=150,n=[{key:"expand-all",label:"Expand all",icon:(0,s.jsx)(r.PJP.jbG,{})},{key:"collapse-all",label:"Collapse all",icon:(0,s.jsx)(r.PJP.MVB,{})}]},26070:function(e,t,a){"use strict";a.d(t,{v:function(){return o},Q:function(){return c.Q}});var s=a(24246),r=a(39158),i=a(27378),l=a(3110);let{Text:n}=r.AntTypography,o=e=>{let{values:t,valueSuffix:a,columnState:o,containerProps:c}=e,{isExpanded:d,version:u}=o||{},[_,p]=(0,i.useState)(!d);(0,i.useEffect)(()=>{p(!d)},[d,u]);let m=(0,i.useCallback)(()=>{p(!0)},[]),E=(0,i.useCallback)(()=>{p(!1)},[]),S=(0,i.useCallback)(()=>{_?E():m()},[_,E,m]);return(0,i.useMemo)(()=>(null==t?void 0:t.length)?1===t.length?(0,s.jsx)(r.jqI,{...c,children:(0,s.jsx)(n,{ellipsis:!0,"data-testid":"list-expandable-cell-single",children:t[0]})}):(0,s.jsxs)(r.jqI,{align:_?"center":"flex-start",vertical:!_,gap:_?"small":"none","data-testid":"list-expandable-cell",...c,children:[_?(0,s.jsxs)(n,{ellipsis:!0,children:[t.length," ",a]}):(0,s.jsx)(r.krs,{dataSource:t,renderItem:e=>(0,s.jsx)("li",{children:e})}),(0,s.jsx)(r.wpx,{type:"link",size:"small",onClick:e=>{e.stopPropagation(),S()},className:"h-auto p-0",style:{fontSize:"var(--ant-font-size)"},children:_?"view":l.T5})]}):null,[_,t,a,S,c])};var c=a(2525)},22583:function(e,t,a){"use strict";a.d(t,{j:function(){return i}});var s=a(39158),r=a(60240);let i={[r.Ej.TAXONOMY_WHITE]:s.tAb.DEFAULT,[r.Ej.TAXONOMY_RED]:s.tAb.ERROR,[r.Ej.TAXONOMY_ORANGE]:s.tAb.WARNING,[r.Ej.TAXONOMY_YELLOW]:s.tAb.CAUTION,[r.Ej.TAXONOMY_GREEN]:s.tAb.SUCCESS,[r.Ej.TAXONOMY_BLUE]:s.tAb.INFO,[r.Ej.TAXONOMY_PURPLE]:s.tAb.ALERT,[r.Ej.SANDSTONE]:s.tAb.SANDSTONE,[r.Ej.MINOS]:s.tAb.MINOS}},59001:function(e,t,a){"use strict";a.d(t,{Ch:function(){return o},Lo:function(){return l},_g:function(){return c},ac:function(){return i},aq:function(){return d}});var s,r,i,l,n=a(60240);let o="root";(s=i||(i={})).DATA_CATEGORY="data_category",s.DATA_USE="data_use",s.DATA_SUBJECT="data_subject",s.SYSTEM_GROUP="system_group",(r=l||(l={})).DATA_CATEGORIES="Data categories",r.DATA_USES="Data uses",r.DATA_SUBJECTS="Data subjects",r.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:n.Sh.DATA_CATEGORY_UPDATE,CREATE:n.Sh.DATA_CATEGORY_CREATE,DELETE:n.Sh.DATA_CATEGORY_DELETE,READ:n.Sh.DATA_CATEGORY_READ};case"data_use":return{UPDATE:n.Sh.DATA_USE_UPDATE,CREATE:n.Sh.DATA_USE_CREATE,DELETE:n.Sh.DATA_USE_DELETE,READ:n.Sh.DATA_USE_READ};case"data_subject":return{UPDATE:n.Sh.DATA_SUBJECT_UPDATE,CREATE:n.Sh.DATA_SUBJECT_CREATE,DELETE:n.Sh.DATA_SUBJECT_DELETE,READ:n.Sh.DATA_SUBJECT_READ};case"system_group":return{UPDATE:n.Sh.SYSTEM_GROUP_UPDATE,CREATE:n.Sh.SYSTEM_GROUP_CREATE,DELETE:n.Sh.SYSTEM_GROUP_DELETE,READ:n.Sh.SYSTEM_GROUP_READ};default:return{UPDATE:n.Sh.TAXONOMY_UPDATE,CREATE:n.Sh.TAXONOMY_CREATE,DELETE:n.Sh.TAXONOMY_DELETE,READ:n.Sh.TAXONOMY_READ}}}},90673:function(e,t,a){"use strict";a.d(t,{Cd:function(){return i},Xl:function(){return l}});var s=a(20987),r=a(59001);let i=(e,t)=>{let a;if(null==t&&e.every(e=>void 0===e.parent_key))a=e;else{let s=null!=t?t:null;a=e.filter(e=>e.parent_key===s)}return a.map(t=>{var a,s;let r=t.fides_key;return{value:t.fides_key,label:t.name||t.fides_key,description:t.description,children:i(e,r),is_default:null!==(a=t.is_default)&&void 0!==a&&a,active:null!==(s=t.active)&&void 0!==s&&s}})},l=e=>{switch(e){case r.ac.DATA_CATEGORY:return s.J.DATA_CATEGORY;case r.ac.DATA_SUBJECT:return s.J.DATA_SUBJECT;case r.ac.DATA_USE:return s.J.DATA_USE;default:return e}}},27901:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return eC}});var s,r,i,l,n=a(24246),o=a(27378),c=a(35287),d=a(58754),u=a(71795),_=a(60240);(s=i||(i={})).COLUMN_EXPANSION_STATE="datamap-column-expansion-state",s.COLUMN_NAMES="datamap-column-names",s.COLUMN_ORDER="datamap-column-order",s.COLUMN_SIZING="datamap-column-sizing",s.COLUMN_VISIBILITY="datamap-column-visibility",s.CUSTOM_REPORT_ID="datamap-custom-report-id",s.FILTERS="datamap-filters",s.GROUP_BY="datamap-group-by",s.SORTING_STATE="datamap-sorting-state",s.WRAPPING_COLUMNS="datamap-wrapping-columns",(r=l||(l={})).SYSTEM_NAME="system_name",r.DATA_USE="data_uses",r.DATA_CATEGORY="data_categories",r.DATA_SUBJECT="data_subjects",r.LEGAL_NAME="legal_name",r.DPO="dpo",r.LEGAL_BASIS_FOR_PROCESSING="legal_basis_for_processing",r.ADMINISTRATING_DEPARTMENT="administrating_department",r.COOKIE_MAX_AGE_SECONDS="cookie_max_age_seconds",r.PRIVACY_POLICY="privacy_policy",r.LEGAL_ADDRESS="legal_address",r.COOKIE_REFRESH="cookie_refresh",r.DATA_SECURITY_PRACTICES="data_security_practices",r.DATA_SHARED_WITH_THIRD_PARTIES="data_shared_with_third_parties",r.DATA_STEWARDS="data_stewards",r.DECLARATION_NAME="declaration_name",r.DOES_INTERNATIONAL_TRANSFERS="does_international_transfers",r.DPA_LOCATION="dpa_location",r.DESTINATIONS="egress",r.EXEMPT_FROM_PRIVACY_REGULATIONS="exempt_from_privacy_regulations",r.FEATURES="features",r.FIDES_KEY="fides_key",r.FLEXIBLE_LEGAL_BASIS_FOR_PROCESSING="flexible_legal_basis_for_processing",r.IMPACT_ASSESSMENT_LOCATION="impact_assessment_location",r.SOURCES="ingress",r.JOINT_CONTROLLER_INFO="joint_controller_info",r.LEGAL_BASIS_FOR_PROFILING="legal_basis_for_profiling",r.LEGAL_BASIS_FOR_TRANSFERS="legal_basis_for_transfers",r.LEGITIMATE_INTEREST_DISCLOSURE_URL="legitimate_interest_disclosure_url",r.PROCESSES_PERSONAL_DATA="processes_personal_data",r.REASON_FOR_EXEMPTION="reason_for_exemption",r.REQUIRES_DATA_PROTECTION_ASSESSMENTS="requires_data_protection_assessments",r.RESPONSIBILITY="responsibility",r.RETENTION_PERIOD="retention_period",r.SHARED_CATEGORIES="shared_categories",r.SPECIAL_CATEGORY_LEGAL_BASIS="special_category_legal_basis",r.THIRD_PARTIES="third_parties",r.COOKIES="cookies",r.USES_COOKIES="uses_cookies",r.USES_NON_COOKIE_ACCESS="uses_non_cookie_access",r.USES_PROFILING="uses_profiling",r.SYSTEM_UNDECLARED_DATA_CATEGORIES="system_undeclared_data_categories",r.DATA_USE_UNDECLARED_DATA_CATEGORIES="data_use_undeclared_data_categories",r.PROCESSES_SPECIAL_CATEGORY_DATA="processes_special_category_data",r.SYSTEM_GROUPS="system_groups",r.SYSTEM_GROUP="system_group_fides_key",r.SYSTEM_GROUP_DATA_USES="system_group_data_uses";let p={system_name:"System",data_uses:"Data use",data_categories:"Data categories",data_subjects:"Data subject",legal_name:"Legal name",dpo:"Data privacy officer",legal_basis_for_processing:"Legal basis for processing",administrating_department:"Administrating department",cookie_max_age_seconds:"Cookie max age seconds",privacy_policy:"Privacy policy",legal_address:"Legal address",cookie_refresh:"Cookie refresh",data_security_practices:"Data security practices",data_shared_with_third_parties:"Data shared with third parties",data_stewards:"Data stewards",declaration_name:"Declaration name",does_international_transfers:"Does international transfers",dpa_location:"DPA location",egress:"Destination",exempt_from_privacy_regulations:"Exempt from privacy regulations",features:"Features",fides_key:"Fides key",flexible_legal_basis_for_processing:"Flexible legal basis for processing",impact_assessment_location:"Impact assessment location",ingress:"Source",joint_controller_info:"Joint controller info",legal_basis_for_profiling:"Legal basis for profiling",legal_basis_for_transfers:"Legal basis for transfers",legitimate_interest_disclosure_url:"Legitimate interest disclosure URL",processes_personal_data:"Processes personal data",reason_for_exemption:"Reason for exemption",requires_data_protection_assessments:"Requires data protection assessments",responsibility:"Responsibility",retention_period:"Retention period",shared_categories:"Shared categories",special_category_legal_basis:"Special category legal basis",third_parties:"Third parties",system_undeclared_data_categories:"System undeclared data categories",data_use_undeclared_data_categories:"Data use undeclared data categories",cookies:"Cookies",uses_cookies:"Uses cookies",uses_non_cookie_access:"Uses non-cookie access",uses_profiling:"Uses profiling",processes_special_category_data:"Processes special category data",system_groups:"System groups",system_group_fides_key:"System group",system_group_data_uses:"Data uses"},m={[l.SYSTEM_UNDECLARED_DATA_CATEGORIES]:!1,[l.DATA_USE_UNDECLARED_DATA_CATEGORIES]:!1},E={dataUses:[],dataSubjects:[],dataCategories:[]},S=(0,o.createContext)({}),g=e=>{let{children:t}=e,[a,s]=(0,u._)(i.CUSTOM_REPORT_ID,""),[r,l]=(0,u._)(i.GROUP_BY,_.fI.SYSTEM_DATA_USE),[c,d]=(0,u._)(i.FILTERS,E),[p,g]=(0,u._)(i.COLUMN_ORDER,[]),[h,f]=(0,u._)(i.COLUMN_VISIBILITY,m),[A,x]=(0,u._)(i.COLUMN_SIZING,{}),[T,C]=(0,u._)(i.COLUMN_NAMES,{}),v=(0,o.useMemo)(()=>({savedCustomReportId:a,setSavedCustomReportId:s,groupBy:r,setGroupBy:l,selectedFilters:c,setSelectedFilters:d,columnOrder:p,setColumnOrder:g,columnVisibility:h,setColumnVisibility:f,columnSizing:A,setColumnSizing:x,columnNameMapOverrides:T,setColumnNameMapOverrides:C}),[a,s,r,l,c,d,p,g,h,f,A,x,T,C]);return(0,n.jsx)(S.Provider,{value:v,children:t})},h=()=>{let e=(0,o.useContext)(S);if(!e||0===Object.keys(e).length)throw Error("useDatamapReport must be used within a DatamapReportProvider");return e};var f=a(59003),A=a(92222),x=a(47935),T=a(39158),C=a(34090),v=a(66726),O=a.n(v),y=a(16134),R=a(34929),j=a(14048),b=a(19904),D=a(16394),I=a(38943),N=a(35258),P=e=>{let{children:t,heading:a,onCancel:s,onConfirm:r,isLoading:i,cancelButtonText:l,continueButtonText:o,"data-testid":c="standard-dialog",...d}=e,{onClose:u}=d;return(0,n.jsxs)(T.u_l,{closeOnOverlayClick:i,...d,children:[(0,n.jsx)(T.ZAr,{}),(0,n.jsxs)(T.hzk,{"data-testid":c,children:[a&&(0,n.jsx)(T.xBx,{children:a}),(0,n.jsx)(T.olH,{isDisabled:i,"data-testid":"standard-dialog-close-btn"}),t&&(0,n.jsx)(T.fef,{children:t}),(0,n.jsxs)(T.mzw,{gap:3,width:"100%",sx:{"& button":{width:"100%"}},children:[(0,n.jsx)(T.wpx,{onClick:()=>{s&&s(),u()},"data-testid":"".concat(c?"".concat(c,"-"):"","cancel-btn"),disabled:i,children:l||"Cancel"}),(0,n.jsx)(T.wpx,{onClick:r,type:"primary","data-testid":"".concat(c?"".concat(c,"-"):"","continue-btn"),loading:i,children:o||"Continue"})]})]})]})},M=a(22968),w=e=>{let[t,a]=(0,o.useState)(M.T2.csv),{onConfirm:s}=e;return(0,n.jsx)(P,{heading:"Export report",continueButtonText:"Download",size:"xl",...e,onConfirm:()=>s(t),"data-testid":"export-modal",children:(0,n.jsxs)(T.kCb,{direction:"column",gap:3,pb:3,children:[(0,n.jsx)(T.xvT,{textAlign:"left",children:"Export your data map report using the options below. Depending on the number of rows, the file may take a few minutes to process."}),(0,n.jsxs)(T.NIc,{children:[(0,n.jsx)(T.lXp,{htmlFor:"format",children:"Choose Format"}),(0,n.jsx)(T.WPr,{id:"format",value:t,onChange:a,"data-testid":"export-format-select",options:[{value:M.T2.csv,label:"CSV"},{value:M.T2.xlsx,label:"XLSX"}],className:"w-full"})]})]})})},U=a(624),L=a(30002),k=a(28079),G=a(5785),Y=a(90673);let F=e=>{let{label:t,children:a,...s}=e;return(0,n.jsxs)(T.Qdk,{...s,children:[(0,n.jsx)(T.X6q,{children:(0,n.jsxs)(T.KFZ,{height:"100%","data-testid":"filter-modal-accordion-button",textAlign:"left",fontWeight:600,children:[(0,n.jsx)(T.xuv,{flex:1,children:t}),(0,n.jsx)(T.XEm,{boxSize:7})]})}),(0,n.jsx)(T.Hk3,{children:a})]})},z=e=>{let{columnNameMap:t,selectedFilters:a,onFilterChange:s,onClose:r,...i}=e;(0,k.fd)(),(0,L.te)(),(0,G.MO)();let{dataUses:l,dataSubjects:c,dataCategories:d}=a,u=(0,y.C)(k.U3),_=(0,y.C)(L.ZL),p=(0,y.C)(G.qb),[m,E]=(0,o.useState)(l),[S,g]=(0,o.useState)(c),[h,f]=(0,o.useState)(d);(0,o.useEffect)(()=>{E(l)},[l]),(0,o.useEffect)(()=>{g(c)},[c]),(0,o.useEffect)(()=>{f(d)},[d]);let A=(0,o.useMemo)(()=>(0,Y.Cd)(u),[u]),x=(0,o.useMemo)(()=>(0,Y.Cd)(_),[_]),C=(0,o.useMemo)(()=>(0,Y.Cd)(p),[p]);return(0,n.jsx)(P,{heading:"Filter Datamap Report",...i,onCancel:()=>{E([]),g([]),f([]),s({dataUses:[],dataSubjects:[],dataCategories:[]}),r()},onConfirm:()=>{s({dataUses:m,dataSubjects:S,dataCategories:h}),r()},onClose:r,cancelButtonText:"Reset filters",continueButtonText:"Done","data-testid":"datamap-report-filter-modal",children:(0,n.jsxs)(T.UQy,{allowToggle:!0,children:[(0,n.jsx)(F,{label:t.data_uses,children:(0,n.jsx)(U.ZP,{nodes:A,selected:m,onSelected:E,"data-testid":"filter-modal-checkbox-tree-uses"})}),(0,n.jsx)(F,{label:t.data_categories,children:(0,n.jsx)(U.ZP,{nodes:C,selected:h,onSelected:f,"data-testid":"filter-modal-checkbox-tree-categories"})}),(0,n.jsx)(F,{label:t.data_subjects,children:(0,n.jsx)(U.ZP,{nodes:x,selected:S,onSelected:g,"data-testid":"filter-modal-checkbox-tree-subjects"})})]})})};var H=a(32885),B=a(69353),V=a(812);let{useGetMinimalCustomReportsQuery:Z,useLazyGetCustomReportByIdQuery:q,usePostCustomReportMutation:W,useDeleteCustomReportMutation:X}=a(78780).u.injectEndpoints({endpoints:e=>({getMinimalCustomReports:e.query({query:e=>{let{pageIndex:t=1,pageSize:a=50,report_type:s=_.C2.DATAMAP}=e,r="page=".concat(t,"&size=").concat(a,"&report_type=").concat(s);return{url:"plus/custom-report/minimal?".concat(r)}},providesTags:["Custom Reports"]}),getCustomReportById:e.query({query:e=>({url:"plus/custom-report/".concat(e)}),providesTags:(e,t,a)=>[{type:"Custom Reports",id:a}]}),postCustomReport:e.mutation({query:e=>({method:"POST",url:"plus/custom-report",body:e}),invalidatesTags:["Custom Reports"]}),deleteCustomReport:e.mutation({query:e=>({method:"DELETE",url:"plus/custom-report/".concat(e)}),invalidatesTags:["Custom Reports"]})})});var J=a(55484),K=a(40324);let Q="Report name",$=e=>{let{isOpen:t,handleClose:a,tableStateToSave:s,columnMapToSave:r={},unavailableNames:i,onCreateCustomReport:l}=e,c=(0,T.pmc)(),[d]=W(),u=(0,o.useMemo)(()=>J.Ry().shape({reportName:J.Z_().label(Q).required("Please provide a name for this report").test("is-unique","",async(e,t)=>null==i||!i.includes(e)||t.createError({message:"This name already exists"})).max(80,"Report name is too long (max 80 characters)")}),[i]),p=async e=>{var t;let i={};Object.entries(r).forEach(e=>{let[t,a]=e;i[t]={label:a,enabled:!0}}),Object.entries(null!==(t=null==s?void 0:s.columnVisibility)&&void 0!==t?t:{}).forEach(e=>{let[t,a]=e;i[t]||(i[t]={}),i[t].enabled=a});try{let t={name:e.trim(),type:_.C2.DATAMAP,config:{column_map:i,table_state:s}},r=await d(t);if((0,V.D4)(r))throw r.error;l(r.data),a()}catch(e){c({status:"error",description:(0,V.e$)(e,"A problem occurred while creating the report.")})}};return(0,n.jsxs)(T.u_l,{size:"lg",isOpen:t,onClose:a,motionPreset:"none",children:[(0,n.jsx)(T.ZAr,{}),(0,n.jsxs)(T.hzk,{children:[(0,n.jsx)(T.xBx,{pb:0,children:"Create a report"}),(0,n.jsx)(C.J9,{initialValues:{reportName:""},onSubmit:e=>p(e.reportName),onReset:a,validateOnBlur:!1,validationSchema:u,children:e=>{let{dirty:t,isValid:a}=e;return(0,n.jsxs)(C.l0,{"data-testid":"custom-report-form",children:[(0,n.jsxs)(T.fef,{children:[(0,n.jsx)(T.xvT,{fontSize:"sm",color:"gray.600",pb:6,children:"Customize and save your current filter settings for easy access in the future. This saved report will include the column layout and currently applied filter settings."}),(0,n.jsx)(K.j0,{id:"reportName",name:"reportName",isRequired:!0,label:Q,placeholder:"Enter a name for the report...",variant:"stacked",maxLength:80})]}),(0,n.jsxs)(T.mzw,{gap:2,children:[(0,n.jsx)(T.wpx,{size:"small",htmlType:"reset",children:"Cancel"}),(0,n.jsx)(T.wpx,{size:"small",disabled:!t||!a,type:"primary","data-testid":"custom-report-form-submit",htmlType:"submit",children:"Save"})]})]})}})]})]})},ee="Report",et="Reports",ea=e=>{var t;let{reportType:a,savedReportId:s,tableStateToSave:r,currentColumnMap:i,onCustomReportSaved:l,onSavedReportDeleted:c}=e,d=(0,b.Tg)([_.Sh.CUSTOM_REPORT_CREATE]),u=(0,b.Tg)([_.Sh.CUSTOM_REPORT_DELETE]),p=(0,T.pmc)({id:"custom-report-toast"}),{data:m,isLoading:E}=Z({report_type:a}),[S,g]=(0,o.useState)(),[h]=q(),[f]=X(),{isOpen:A,onOpen:x,onClose:v}=(0,T.qY0)(),{isOpen:O,onOpen:y,onClose:R}=(0,T.qY0)(),{isOpen:j,onOpen:D,onClose:I}=(0,T.qY0)(),[N,P]=(0,o.useState)(),[M,w]=(0,o.useState)(),[U,L]=(0,o.useState)(),[k,G]=(0,o.useState)(!1),{resetForm:Y}=(0,C.u6)(),F=(0,o.useMemo)(()=>{var e;let t=null==m?void 0:null===(e=m.items.find(e=>e.id===s))||void 0===e?void 0:e.name;return null!=t?t:et},[null==m?void 0:m.items,s]),z=!E&&!(null==m?void 0:null===(t=m.items)||void 0===t?void 0:t.length),H=e=>{g(null==m?void 0:m.items.filter(t=>t.name.toLowerCase().includes(e.toLowerCase())))},B=async e=>{P(e);let{data:t,isError:a,error:s}=await h(e);if(a){let e=(0,V.e$)(s,"A problem occurred while fetching the ".concat(ee,"."));e.includes("not found")&&c(),p({status:"error",description:e})}else w(t)},W=()=>{P(""),w(void 0),G(!1)},J=()=>{M?(G(!1),M.id!==s&&l(M,Y),v()):N?G(!0):(l(null,Y),v())},K=async e=>{e===(null==M?void 0:M.id)&&(W(),c()),f(e)};(0,o.useEffect)(()=>{m&&g(m.items)},[m]),(0,o.useEffect)(()=>{k&&(G(!1),J())},[M]),(0,o.useEffect)(()=>{s?B(s):W()},[s]),(0,o.useEffect)(()=>{U&&D()},[D,U]);let Q=!M&&!s||(null==M?void 0:M.id)===s,ea=(0,n.jsx)("div",{"data-testid":"custom-reports-popover",children:(0,n.jsx)(C.J9,{initialValues:{},onSubmit:J,onReset:W,children:(0,n.jsxs)(C.l0,{children:[(0,n.jsxs)("div",{className:"relative p-3",style:{borderBottom:"var(--ant-popover-title-border-bottom)"},children:[(0,n.jsx)(T.wpx,{size:"small",disabled:z,htmlType:"reset",className:"absolute left-3 top-3","data-testid":"custom-reports-reset-button",children:"Reset"}),(0,n.jsx)(T.wpx,{type:"text",size:"small","aria-label":"Cancel",icon:(0,n.jsx)(T.PJP.x8P,{}),className:"absolute right-3 top-3",onClick:()=>{s?B(s):W(),v()},"data-testid":"custom-report-popover-cancel"}),(0,n.jsx)("div",{className:"text-center",style:{color:"var(--ant-color-text-heading)",fontWeight:"var(--ant-font-weight-strong)"},children:et}),(0,n.jsx)("div",{className:"mt-3",children:(0,n.jsx)(T.uFc,{size:"small",placeholder:"Search...",onChange:e=>H(e.target.value)})})]}),(0,n.jsxs)("div",{className:"px-5 pb-1 pt-3",children:[z&&(0,n.jsx)(T.oj8,{image:(0,n.jsx)(T.wpx,{type:"primary",shape:"circle",size:"small","aria-label":"add ".concat(ee),icon:(0,n.jsx)(T.PJP.mm_,{}),onClick:y,"data-testid":"add-report-button"}),description:"No ".concat(et.toLowerCase()," have been created. Start by applying your preferred filter and column settings, then create a ").concat(ee.toLowerCase()," for easy access later."),styles:{image:{height:"24px"}},"data-testid":"custom-reports-empty-state"}),!z&&(E?(0,n.jsx)(T.N_L,{active:!0,paragraph:{rows:3,width:"100%"},title:!1,className:"pt-2"}):(0,n.jsx)(T.y02.Group,{onChange:e=>B(e.target.value),value:N,style:{width:"100%"},children:(0,n.jsx)(T.vyj,{direction:"vertical",className:"w-full",size:"small",children:null==S?void 0:S.map(e=>(0,n.jsxs)(T.jqI,{justify:u?"space-between":"flex-start",align:"center",children:[(0,n.jsx)(T.y02,{value:e.id,name:"custom-report-id","data-testid":"custom-report-item",children:e.name}),u&&(0,n.jsx)(T.wpx,{type:"text",size:"small",icon:(0,n.jsx)(T.PJP.ZNm,{}),onClick:()=>L(e),"data-testid":"delete-report-button","aria-label":"Delete"})]},e.id))})}))]}),(0,n.jsxs)(T.jqI,{className:"px-5 py-4",gap:"small",children:[d&&r&&(0,n.jsxs)(T.wpx,{size:"small",onClick:y,className:"flex-1 gap-1 pl-0","data-testid":"create-report-button",htmlType:"button",icon:(0,n.jsx)(T.PJP.mm_,{}),iconPosition:"start",children:["Create ",ee.toLowerCase()]}),(0,n.jsx)(T.wpx,{size:"small",type:"primary",loading:k,disabled:Q,className:"flex-1","data-testid":"apply-report-button",htmlType:"submit",children:"Apply"})]})]})})});return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(T.bPF,{content:ea,trigger:"click",placement:"bottomRight",open:A,onOpenChange:e=>{e?x():J()},styles:{root:{width:"320px"}},zIndex:1400,children:(0,n.jsx)(T.wpx,{className:"max-w-40",icon:(0,n.jsx)(T.v4q,{}),iconPosition:"end","data-testid":"custom-reports-trigger",children:(0,n.jsx)(T.lKn,{ellipsis:!0,children:F})})}),(0,n.jsx)($,{isOpen:O,handleClose:()=>{R(),setTimeout(()=>{x()},100)},tableStateToSave:r,columnMapToSave:i,unavailableNames:null==m?void 0:m.items.map(e=>e.name),onCreateCustomReport:e=>l(e,Y)}),(0,n.jsx)(T.cVQ,{isOpen:j,onClose:()=>{L(void 0),I()},onConfirm:()=>{U&&K(U.id),I()},title:"Delete ".concat(ee),message:(0,n.jsxs)(T.lKn,{children:["You are about to permanently delete the"," ",ee.toLowerCase()," named"," ",(0,n.jsx)("strong",{children:null==U?void 0:U.name}),". Are you sure you would like to continue?"]})})]})};var es=a(19785),er=a.n(es),ei=a(55807),el=a.n(ei),en=a(32526),eo=a.n(en),ec=a(26070),ed=a(72625),eu=a(43862),e_=a(22583);let ep=(0,A.Cl)(),em=(e,t)=>({cell:e=>(0,n.jsx)(x.G3,{value:e.getValue()}),header:a=>{let s={};return Object.keys(e).forEach(t=>{"string"==typeof e[t]?s[t]=e[t]:e[t].label&&(s[t]=e[t].label||"")}),(0,n.jsx)(ed.Hm,{value:(0,eu.AH)({columnId:a.column.id,columnNameMap:s}),defaultValue:p[a.column.id]||(0,eu.AH)({columnId:a.column.id}),isEditing:t,...a})}}),eE=(e,t)=>{var a;let s=(null==e?void 0:null===(a=e.items)||void 0===a?void 0:a.length)?Object.keys(e.items[0]):[],r=Object.values(l);return s.filter(e=>!r.includes(e)).filter(e=>e.startsWith("privacy_declaration_")||e.startsWith("system_")).map(e=>{let a=t.find(t=>e.includes(eo()(t.name)));return ep.accessor(t=>t[e],{id:e,cell:e=>Array.isArray(e.getValue())?(0,n.jsx)(x.WP,{value:e.getValue(),ignoreZero:!0,...e}):(0,n.jsx)(x.G3,{value:e.getValue()}),meta:{showHeaderMenu:(null==a?void 0:a.field_type)==="string[]"}})})},eS=e=>{let{onSelectRow:t,getDataUseDisplayName:a,getDataCategoryDisplayName:s,getDataSubjectDisplayName:r,datamapReport:i,customFields:o,systemGroups:c=[],isRenaming:d=!1,groupBy:u}=e,p=eE(i,o),m=e=>{let t=c.find(t=>t.fides_key===e);return(null==t?void 0:t.label_color)?e_.j[t.label_color]:void 0},E=e=>{if(e&&0!==e.length&&1===e.length)return m(e[0])},S=[ep.accessor(e=>e.system_name,{enableGrouping:!0,id:l.SYSTEM_NAME,meta:{onCellClick:t}}),ep.accessor(e=>e.data_uses,{id:l.DATA_USE,cell:e=>{let t=e.getValue();return(0,n.jsx)(x.WP,{suffix:"data uses",ignoreZero:!0,value:er()(t)?el()(t,a):a(t||""),tagProps:{color:"white"},...e})},meta:{width:"auto"}}),ep.accessor(e=>e.data_categories,{id:l.DATA_CATEGORY,cell:e=>{let t=e.getValue();if(!t||0===t.length)return null;let a=er()(t)?t.map(e=>({label:s(e),key:e})):[{label:s(t),key:t}];return(0,n.jsx)(ed.mb,{values:a,cellProps:e})},meta:{showHeaderMenu:!d,showHeaderMenuWrapOption:!0,width:"auto",overflow:"hidden"}}),ep.accessor(e=>e.data_subjects,{id:l.DATA_SUBJECT,cell:e=>{let t=e.getValue();return(0,n.jsx)(x.WP,{suffix:"data subjects",ignoreZero:!0,value:er()(t)?el()(t,r):r(t||""),tagProps:{color:"white"},...e})},meta:{showHeaderMenu:!d}}),ep.accessor(e=>e.legal_name,{id:l.LEGAL_NAME}),ep.accessor(e=>e.dpo,{id:l.DPO}),ep.accessor(e=>e.legal_basis_for_processing,{id:l.LEGAL_BASIS_FOR_PROCESSING}),ep.accessor(e=>e.administrating_department,{id:l.ADMINISTRATING_DEPARTMENT}),ep.accessor(e=>e.cookie_max_age_seconds,{id:l.COOKIE_MAX_AGE_SECONDS}),ep.accessor(e=>e.privacy_policy,{id:l.PRIVACY_POLICY}),ep.accessor(e=>e.legal_address,{id:l.LEGAL_ADDRESS}),ep.accessor(e=>e.cookie_refresh,{id:l.COOKIE_REFRESH}),ep.accessor(e=>e.data_security_practices,{id:l.DATA_SECURITY_PRACTICES}),ep.accessor(e=>e.data_shared_with_third_parties,{id:l.DATA_SHARED_WITH_THIRD_PARTIES}),ep.accessor(e=>e.processes_special_category_data,{id:l.PROCESSES_SPECIAL_CATEGORY_DATA}),ep.accessor(e=>e.data_stewards,{id:l.DATA_STEWARDS,cell:e=>(0,n.jsx)(x.WP,{suffix:"data stewards",ignoreZero:!0,value:e.getValue(),...e}),meta:{showHeaderMenu:!d,width:"auto"}}),ep.accessor(e=>e.declaration_name,{id:l.DECLARATION_NAME}),ep.accessor(e=>e.does_international_transfers,{id:l.DOES_INTERNATIONAL_TRANSFERS}),ep.accessor(e=>e.dpa_location,{id:l.DPA_LOCATION}),ep.accessor(e=>e.egress,{id:l.DESTINATIONS,cell:e=>(0,n.jsx)(x.WP,{suffix:"destinations",ignoreZero:!0,value:e.getValue(),...e}),meta:{showHeaderMenu:!d,width:"auto"}}),ep.accessor(e=>e.exempt_from_privacy_regulations,{id:l.EXEMPT_FROM_PRIVACY_REGULATIONS}),ep.accessor(e=>e.features,{id:l.FEATURES,cell:e=>(0,n.jsx)(x.WP,{suffix:"features",ignoreZero:!0,value:e.getValue(),...e}),meta:{showHeaderMenu:!d,width:"auto"}}),ep.accessor(e=>e.fides_key,{id:l.FIDES_KEY}),ep.accessor(e=>e.flexible_legal_basis_for_processing,{id:l.FLEXIBLE_LEGAL_BASIS_FOR_PROCESSING}),ep.accessor(e=>e.impact_assessment_location,{id:l.IMPACT_ASSESSMENT_LOCATION}),ep.accessor(e=>e.ingress,{id:l.SOURCES,cell:e=>(0,n.jsx)(x.WP,{suffix:"sources",ignoreZero:!0,value:e.getValue(),...e}),meta:{showHeaderMenu:!d,width:"auto"}}),ep.accessor(e=>e.joint_controller_info,{id:l.JOINT_CONTROLLER_INFO}),ep.accessor(e=>e.legal_basis_for_profiling,{id:l.LEGAL_BASIS_FOR_PROFILING,cell:e=>(0,n.jsx)(x.WP,{suffix:"profiles",ignoreZero:!0,value:e.getValue(),...e}),meta:{showHeaderMenu:!d,width:"auto"}}),ep.accessor(e=>e.legal_basis_for_transfers,{id:l.LEGAL_BASIS_FOR_TRANSFERS,cell:e=>(0,n.jsx)(x.WP,{suffix:"transfers",ignoreZero:!0,value:e.getValue(),...e}),meta:{showHeaderMenu:!d,width:"auto"}}),ep.accessor(e=>e.legitimate_interest_disclosure_url,{id:l.LEGITIMATE_INTEREST_DISCLOSURE_URL}),ep.accessor(e=>e.processes_personal_data,{id:l.PROCESSES_PERSONAL_DATA}),ep.accessor(e=>e.reason_for_exemption,{id:l.REASON_FOR_EXEMPTION}),ep.accessor(e=>e.requires_data_protection_assessments,{id:l.REQUIRES_DATA_PROTECTION_ASSESSMENTS}),ep.accessor(e=>e.responsibility,{id:l.RESPONSIBILITY,cell:e=>(0,n.jsx)(x.WP,{suffix:"responsibilities",ignoreZero:!0,value:e.getValue(),...e}),meta:{showHeaderMenu:!d,width:"auto"}}),ep.accessor(e=>e.retention_period,{id:l.RETENTION_PERIOD}),ep.accessor(e=>e.shared_categories,{id:l.SHARED_CATEGORIES,cell:e=>(0,n.jsx)(x.WP,{suffix:"shared categories",ignoreZero:!0,value:e.getValue(),tagProps:{color:"white"},...e}),meta:{showHeaderMenu:!d,width:"auto"}}),ep.accessor(e=>e.special_category_legal_basis,{id:l.SPECIAL_CATEGORY_LEGAL_BASIS}),ep.accessor(e=>e.third_parties,{id:l.THIRD_PARTIES}),ep.accessor(e=>e.system_undeclared_data_categories,{id:l.SYSTEM_UNDECLARED_DATA_CATEGORIES,cell:e=>{let t=e.getValue();if(!t||0===t.length)return null;let a=er()(t)?t.map(e=>({label:s(e),key:e})):[{label:s(t),key:t}];return(0,n.jsx)(ed.mb,{values:a,cellProps:e})},meta:{showHeaderMenu:!d,showHeaderMenuWrapOption:!0,width:"auto",overflow:"hidden"}}),ep.accessor(e=>e.data_use_undeclared_data_categories,{id:l.DATA_USE_UNDECLARED_DATA_CATEGORIES,cell:e=>{let t=e.getValue();if(!t||0===t.length)return null;let a=er()(t)?t.map(e=>({label:s(e),key:e})):[{label:s(t),key:t}];return(0,n.jsx)(ed.mb,{values:a,cellProps:e})},meta:{showHeaderMenu:!d,showHeaderMenuWrapOption:!0,width:"auto",overflow:"hidden"}}),ep.accessor(e=>e.cookies,{id:l.COOKIES,cell:e=>(0,n.jsx)(x.WP,{ignoreZero:!0,suffix:"cookies",value:e.getValue(),...e}),meta:{showHeaderMenu:!d,width:"auto"}}),ep.accessor(e=>e.uses_cookies,{id:l.USES_COOKIES}),ep.accessor(e=>e.uses_non_cookie_access,{id:l.USES_NON_COOKIE_ACCESS}),ep.accessor(e=>e.uses_profiling,{id:l.USES_PROFILING}),ep.accessor(e=>e.system_groups,{id:l.SYSTEM_GROUPS,cell:e=>{let t=e.getValue();if(!t||Array.isArray(t)&&0===t.length)return null;let a=(Array.isArray(t)?t:[t]).map(e=>{let t=c.find(t=>t.fides_key===e);return{label:(null==t?void 0:t.name)||e,key:e,tagProps:{color:(null==t?void 0:t.label_color)?e_.j[t.label_color]:void 0,bordered:!1}}});return(0,n.jsx)(ec.Q,{values:a})},meta:{width:"auto"}}),...p],g=[];return u===_.fI.SYSTEM_GROUP&&g.push(ep.accessor(e=>e.system_group_fides_key,{id:l.SYSTEM_GROUP,cell:e=>{var t;let a=e.getValue();if(!a||Array.isArray(a)&&0===a.length)return null;let s=Array.isArray(a)?a.map(e=>{var t;return(null===(t=c.find(t=>t.fides_key===e))||void 0===t?void 0:t.name)||e}):[(null===(t=c.find(e=>e.fides_key===a))||void 0===t?void 0:t.name)||a],r=E(Array.isArray(a)?a:[a]);return(0,n.jsx)(x.WP,{suffix:"system group",ignoreZero:!0,value:s,tagProps:{color:null!=r?r:T.tAb.WHITE,bordered:!1},...e})},meta:{width:"auto",showHeaderMenu:!d}}),ep.accessor(e=>e.system_group_data_uses,{id:l.SYSTEM_GROUP_DATA_USES,cell:e=>{let t=e.getValue();return!t||Array.isArray(t)&&0===t.length?null:(0,n.jsx)(x.WP,{suffix:"data uses",ignoreZero:!0,value:er()(t)?el()(t,a):a(t||""),tagProps:{color:"white"},...e})},meta:{width:"auto",showHeaderMenu:!d}})),[...S,...g]},eg=e=>{let{columnNameMapOverrides:t,setColumnNameMapOverrides:a,setSavedCustomReportId:s,setIsRenamingColumns:r}=e,{submitForm:i,resetForm:l}=(0,C.u6)();return(0,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsx)(T.wpx,{size:"small","data-testid":"rename-columns-reset-btn",onClick:()=>{a({}),s(""),l({values:{}}),r(!1)},children:"Reset all"}),(0,n.jsx)(T.wpx,{size:"small","data-testid":"rename-columns-cancel-btn",onClick:()=>{l({values:t}),r(!1)},children:"Cancel"}),(0,n.jsx)(T.wpx,{size:"small",type:"primary",htmlType:"submit","data-testid":"rename-columns-apply-btn",onClick:i,children:"Apply"})]})},eh=e=>{switch(e){case _.fI.DATA_USE_SYSTEM:return[l.DATA_USE];case _.fI.SYSTEM_GROUP:return[l.SYSTEM_GROUP];default:return[l.SYSTEM_NAME]}},ef=e=>{let t=[];return _.fI.SYSTEM_DATA_USE===e&&(t=[l.SYSTEM_NAME,l.DATA_USE]),_.fI.DATA_USE_SYSTEM===e&&(t=[l.DATA_USE,l.SYSTEM_NAME]),_.fI.SYSTEM_GROUP===e&&(t=[l.SYSTEM_GROUP,l.SYSTEM_GROUP_DATA_USES,l.SYSTEM_NAME,l.DATA_USE]),t},eA=(e,t)=>{let a=ef(e),s=new Set(a);return[...a,...t.filter(e=>!s.has(e))]},ex={items:[],total:0,page:1,size:25,pages:1},eT=()=>{let e=(0,b.Tg)([_.Sh.CUSTOM_REPORT_READ]),{isLoading:t}=(0,H.x8)(),{data:a}=(0,B.QD)(),{PAGE_SIZES:s,pageSize:r,setPageSize:c,onPreviousPageClick:d,isPreviousPageDisabled:u,onNextPageClick:S,isNextPageDisabled:g,startRange:v,endRange:P,pageIndex:M,setTotalPages:U,resetPageIndexToDefault:L}=(0,x.oi)(),k=(0,T.pmc)({id:"datamap-report-toast"}),{isOpen:G,onClose:Y,onOpen:F}=(0,T.qY0)(),{getDataUseDisplayName:V,getDataCategoryDisplayName:Z,getDataSubjectDisplayName:q,isLoading:W}=(0,R.Z)(),[X,J]=(0,o.useState)(),{savedCustomReportId:K,setSavedCustomReportId:Q,groupBy:$,setGroupBy:ee,selectedFilters:et,setSelectedFilters:es,columnOrder:er,setColumnOrder:ei,columnVisibility:el,setColumnVisibility:en,columnSizing:eo,setColumnSizing:ec,columnNameMapOverrides:ed,setColumnNameMapOverrides:eu}=h(),[e_,ep]=(0,o.useState)(!1),eE=e=>{Q(""),ee(e),ep(!0),L()},[eT,eC]=(0,o.useState)(""),ev=(0,o.useCallback)(e=>{L(),eC(e)},[L,eC]),eO={pageIndex:M,pageSize:r,groupBy:$,search:eT,dataUses:(0,D.du)(et.dataUses,"data_uses"),dataSubjects:(0,D.du)(et.dataSubjects,"data_subjects"),dataCategories:(0,D.du)(et.dataCategories,"data_categories")},{data:ey,isLoading:eR,isFetching:ej}=(0,I.tH)(eO),[eb,{isLoading:eD,isError:eI}]=(0,I.Eo)(),{data:eN,totalRows:eP}=(0,o.useMemo)(()=>{let e=ey||ex,t=e.items;return e_&&ep(!1),U(e.pages),{totalRows:e.total,data:t}},[ey]);(0,H.GH)();let eM=(0,y.C)(H.fN),[ew,eU]=(0,o.useState)(!1),eL=(0,o.useMemo)(()=>ey?eS({onSelectRow:e=>J(e.fides_key),getDataUseDisplayName:V,getDataCategoryDisplayName:Z,getDataSubjectDisplayName:q,datamapReport:ey,customFields:eM,systemGroups:a,isRenaming:ew,groupBy:$}):[],[V,q,Z,ey,eM,a,ew,$]),{isOpen:ek,onOpen:eG,onClose:eY}=(0,T.qY0)(),{isOpen:eF,onOpen:ez,onClose:eH}=(0,T.qY0)(),eB=(0,f.b7)({getCoreRowModel:(0,A.sC)(),getGroupedRowModel:(0,A.qe)(),getExpandedRowModel:(0,A.rV)(),manualPagination:!0,enableColumnResizing:!0,columnResizeMode:"onChange",columns:eL,defaultColumn:em({...p,...ed},ew),data:eN,initialState:{expanded:!0,columnSizing:eo,columnOrder:er,columnVisibility:el,grouping:eh($)}});(0,o.useEffect)(()=>{$&&eB&&ey&&(0===eB.getState().columnOrder.length?ei(eA($,eB.getAllColumns().map(e=>e.id))):ei(eA($,eB.getState().columnOrder)))},[$,eB,ey]),(0,o.useEffect)(()=>{let e=eh($);ey&&eB.setGrouping(e)},[ey]);let eV=(0,o.useMemo)(()=>O()(ec,300),[ec]);(0,o.useEffect)(()=>{let e=eB.getState().columnSizing;e&&eV(e)},[eB.getState().columnSizing]);let eZ=()=>ed[l.SYSTEM_GROUP]||"System group",eq=(e,t)=>{if(e||K){if(!e){try{Q(""),en(m),eB.toggleAllColumnsVisible(!0),eB.setColumnVisibility(m),ei([]),eB.setColumnOrder([]),ee(_.fI.SYSTEM_DATA_USE),es(E),eu({}),t({values:{}})}catch(e){k({status:"error",description:"There was a problem resetting the report."})}return}try{var a,s,r,i;if(null===(a=e.config)||void 0===a?void 0:a.table_state){let{groupBy:t,filters:a,columnOrder:s}=e.config.table_state,i={};Object.entries(null!==(r=e.config.column_map)&&void 0!==r?r:{}).forEach(e=>{let[t,a]=e;i[t]=a.enabled||!1}),t&&ee(t),a&&es(a),s&&(ei(s),eB.setColumnOrder(s)),i&&(en(i),eB.setColumnVisibility(i))}if(null===(s=e.config)||void 0===s?void 0:s.column_map){let a={};Object.entries(null!==(i=e.config.column_map)&&void 0!==i?i:{}).forEach(e=>{let[t,s]=e;s.label&&(a[t]=s.label)}),eu(a),t({values:a})}Q(e.id),k({status:"success",description:"Report applied successfully."})}catch(e){k({status:"error",description:"There was a problem applying report."})}}};return eR||t||W?(0,n.jsx)(x.I4,{rowHeight:36,numRows:15}):(0,n.jsxs)(T.kCb,{flex:1,direction:"column",overflow:"auto",children:[(0,n.jsx)(z,{columnNameMap:{...p,...ed},selectedFilters:et,isOpen:G,onClose:Y,onFilterChange:e=>{Q(""),es(e)}}),(0,n.jsx)(x.F1,{isOpen:ek,onClose:eY,headerText:"Columns",columnNameMap:{...p,...ed},prefixColumns:ef($),tableInstance:eB,savedCustomReportId:K,onColumnOrderChange:e=>{Q(""),eB.setColumnOrder(e),ei(e)},onColumnVisibilityChange:e=>{Q(""),eB.setColumnVisibility(e),en(e)}}),(0,n.jsx)(w,{isOpen:eF,onClose:eH,onConfirm:e=>{let t={};Object.entries(el).forEach(e=>{let[a,s]=e;t[a]={enabled:s}}),Object.entries(ed).forEach(e=>{let[a,s]=e;if(t[a])t[a].label=s;else{var r;t[a]={label:s,enabled:null===(r=el[a])||void 0===r||r}}}),eb({...eO,format:e,report_id:K,report:{name:"",type:"datamap",config:{column_map:t,table_state:{groupBy:$,filters:et,columnOrder:er}}}}).then(()=>{eI||eH()})},isLoading:eD}),(0,n.jsx)(C.J9,{initialValues:ed,onSubmit:e=>{Q(""),eu(e),eU(!1)},children:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(x.Q$,{children:[(0,n.jsx)(x.HO,{globalFilter:eT,setGlobalFilter:ev,placeholder:"System name, Fides key, or ID"}),(0,n.jsxs)(T.kCb,{alignItems:"center",gap:2,children:[e&&(0,n.jsx)(ea,{reportType:_.C2.DATAMAP,savedReportId:K,tableStateToSave:{groupBy:$,filters:et,columnOrder:er,columnVisibility:el},currentColumnMap:ed,onCustomReportSaved:(e,t)=>eq(e,t),onSavedReportDeleted:()=>{Q("")}}),(0,n.jsxs)(T.v2r,{children:[(0,n.jsxs)(T.j2t,{as:T.wpx,icon:(0,n.jsx)(T.v4q,{}),iconPosition:"end",loading:e_,"data-testid":"group-by-menu",children:["Group by ",(()=>{switch($){case _.fI.SYSTEM_DATA_USE:return"system";case _.fI.DATA_USE_SYSTEM:return"data use";case _.fI.SYSTEM_GROUP:{let e=eZ();return e.charAt(0).toLowerCase()+e.slice(1)}default:return"system"}})()]}),(0,n.jsxs)(T.qyq,{zIndex:11,"data-testid":"group-by-menu-list",children:[(0,n.jsx)(T.iiZ,{onClick:()=>{eE(_.fI.SYSTEM_DATA_USE)},isChecked:_.fI.SYSTEM_DATA_USE===$,value:_.fI.SYSTEM_DATA_USE,"data-testid":"group-by-system-data-use",children:"System"}),(0,n.jsx)(T.iiZ,{onClick:()=>{eE(_.fI.DATA_USE_SYSTEM)},isChecked:_.fI.DATA_USE_SYSTEM===$,value:_.fI.DATA_USE_SYSTEM,"data-testid":"group-by-data-use-system",children:"Data use"}),(0,n.jsx)(T.iiZ,{onClick:()=>{eE(_.fI.SYSTEM_GROUP)},isChecked:_.fI.SYSTEM_GROUP===$,value:_.fI.SYSTEM_GROUP,"data-testid":"group-by-system-group",children:eZ()})]})]}),(0,n.jsx)(T.wpx,{"data-testid":"filter-multiple-systems-btn",onClick:F,children:"Filter"}),(0,n.jsx)(T.wpx,{"aria-label":"Export report","data-testid":"export-btn",onClick:ez,icon:(0,n.jsx)(j.nM,{ml:"1.5px"})}),(0,n.jsxs)(T.v2r,{placement:"bottom-end",children:[(0,n.jsx)(T.j2t,{as:T.wpx,icon:(0,n.jsx)(T.nXP,{className:"rotate-90"}),"data-testid":"more-menu","aria-label":"More options",className:"w-6 gap-0"}),(0,n.jsxs)(T.qyq,{"data-testid":"more-menu-list",children:[(0,n.jsx)(T.sNh,{onClick:eG,"data-testid":"edit-columns-btn",children:"Edit columns"}),(0,n.jsx)(T.sNh,{onClick:()=>eU(!0),"data-testid":"rename-columns-btn",children:"Rename columns"})]})]}),ew&&(0,n.jsx)(eg,{columnNameMapOverrides:ed,setColumnNameMapOverrides:eu,setSavedCustomReportId:Q,setIsRenamingColumns:eU})]})]}),(0,n.jsx)(C.l0,{children:(0,n.jsx)(x.ZK,{tableInstance:eB,columnExpandStorageKey:i.COLUMN_EXPANSION_STATE,columnWrapStorageKey:i.WRAPPING_COLUMNS})})]})}),(0,n.jsx)(x.s8,{totalRows:eP||0,pageSizes:s,setPageSize:c,onPreviousPageClick:d,isPreviousPageDisabled:u||ej,onNextPageClick:S,isNextPageDisabled:g||ej,startRange:v,endRange:P}),(0,n.jsx)(N.Z,{selectedSystemId:X,resetSelectedSystemId:()=>J(void 0)})]})};var eC=()=>(0,n.jsxs)(c.Z,{title:"Datamap Report",children:[(0,n.jsx)(d.Z,{"data-testid":"datamap-report-heading",heading:"Data map report"}),(0,n.jsx)(g,{children:(0,n.jsx)(eT,{})})]})}},function(e){e.O(0,[431,3214,7245,7218,5258,2888,9774,179],function(){return e(e.s=86548)}),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7093],{16207:function(e,t,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/sandbox/privacy-notices",function(){return l(52640)}])},58754:function(e,t,l){"use strict";var n=l(24246),a=l(39158),r=l(70788);t.Z=e=>{let{heading:t,breadcrumbItems:l,isSticky:i=!0,children:s,rightContent:c,style:o,...d}=e;return(0,n.jsxs)("div",{...d,style:i?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...o}:{paddingBottom:"24px",...o},children:[(0,n.jsxs)(a.jqI,{justify:"space-between",children:["string"==typeof t?(0,n.jsx)(a.lQT,{className:l||s?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,c&&(0,n.jsx)("div",{"data-testid":"page-header-right-content",children:c})]}),!!l&&(0,n.jsx)(r.m,{className:s?"pb-4":void 0,items:l,"data-testid":"page-breadcrumb"}),s]})}},70788:function(e,t,l){"use strict";l.d(t,{m:function(){return o}});var n=l(24246),a=l(39158),r=l(79894),i=l.n(r),s=l(27378);let{Text:c}=a.AntTypography,o=e=>{let{items:t,...l}=e,r=(0,s.useMemo)(()=>null==t?void 0:t.map((e,l)=>{let r=l===t.length-1,s={...e},o=s.onClick&&!s.href;return("string"==typeof s.title&&(s.title=(0,n.jsx)(c,{style:{color:"inherit",maxWidth:r?void 0:400},ellipsis:!r,id:r?"breadcrumb-current-page":void 0,children:s.title})),o)?s.title=(0,n.jsx)(a.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)(i(),{href:s.href,className:"ant-breadcrumb-link",children:s.title}),delete s.href)),s}),[t]);return(0,n.jsx)(a.zrq,{items:r,...l})}},52640:function(e,t,l){"use strict";l.r(t),l.d(t,{default:function(){return S}});var n,a,r=l(24246),i=l(39158),s=l(58754),c=l(27378),o=l(812),d=l(18850),p=l(64705),h=l(3124),y=l.n(h),u=e=>{let{title:t,height:l="400px",header:n,headerColor:a,body:s,emptyMessage:c,children:o}=e;return(0,r.jsxs)("div",{children:[(0,r.jsx)(i.AntTypography.Text,{strong:!0,className:"mb-4 block",children:t}),(0,r.jsx)(i.V4A,{className:"bg-gray-50 font-mono text-xs",styles:{body:{padding:"18px"}},children:(0,r.jsxs)("div",{className:"overflow-auto",style:{height:l},children:[n&&(0,r.jsx)(i.AntTypography.Text,{strong:!0,size:"sm",className:"mb-2 block",style:{color:a},children:n}),o||(null!=s?(0,r.jsx)("pre",{className:"m-0 whitespace-pre-wrap",children:JSON.stringify(s,null,2)}):c?(0,r.jsx)(i.jqI,{vertical:!0,align:"center",justify:"center",className:"h-full",children:(0,r.jsx)(i.AntTypography.Text,{type:"secondary",children:c})}):null)]})})]})};let x=e=>{let{privacyNotices:t}=e;return 0===t.length?null:(0,r.jsx)("div",{className:"max-h-60 overflow-y-auto",children:(0,r.jsx)("ul",{className:"m-0 list-inside list-disc pl-2",children:t.map(e=>(0,r.jsx)("li",{className:"list-none",children:(0,r.jsxs)("ul",{className:"m-0 list-inside list-disc",children:[(0,r.jsx)("li",{className:"py-1",children:e.name}),e.children&&e.children.length>0&&e.children.map(e=>(0,r.jsx)("li",{className:"py-1 pl-5",children:e.name},e.id))]})},e.id))})})};var g=e=>{let{region:t,onRegionChange:l,propertyId:n,onPropertyIdChange:a,onFetchExperience:s,isLoading:c,errorMessage:o,privacyNotices:d}=e;return(0,r.jsxs)(i.jqI,{vertical:!0,gap:"small",children:[(0,r.jsx)(i.AntTypography.Title,{level:3,children:"Configuration"}),(0,r.jsxs)(i.jqI,{gap:"large",children:[(0,r.jsxs)(i.jqI,{vertical:!0,flex:1,style:{minWidth:0},children:[(0,r.jsx)(i.AntTypography.Text,{strong:!0,className:"mb-2 block",children:"Experience region"}),(0,r.jsxs)(i.jqI,{gap:"small",className:"mb-4",children:[(0,r.jsx)(i.uFc,{placeholder:"Enter region (e.g., us_ca)",value:t,onChange:e=>l(e.target.value),className:"w-64"}),(0,r.jsx)(i.wpx,{type:"primary",onClick:s,loading:c,disabled:!t,children:"Fetch experience"})]}),(0,r.jsx)(i.AntTypography.Text,{strong:!0,className:"mb-2 block",children:"Property ID (optional)"}),(0,r.jsx)(i.AntTypography.Text,{type:"secondary",className:"mb-2 block",children:"Leave empty to retrieve experience with no property"}),(0,r.jsx)(i.jqI,{gap:"small",className:"mb-4",children:(0,r.jsx)(i.uFc,{placeholder:"Property ID (e.g. FDS-1234)",value:n,onChange:e=>a(e.target.value),className:"w-64"})}),o&&(0,r.jsx)(i.AntTypography.Text,{type:"danger",className:"mb-4 block",children:o})]}),(0,r.jsx)(i.jqI,{vertical:!0,flex:1,children:(0,r.jsx)(u,{title:"Available notices",height:"200px",headerColor:y().FIDESUI_MINOS,emptyMessage:"Available notices will appear here after fetching experience",children:d.length>0?(0,r.jsx)(x,{privacyNotices:d}):null})})]})]})},m=e=>{let{email:t,onEmailChange:l,selectedNoticeKeys:n,onSelectedNoticeKeysChange:a,parentNoticeKeys:s,onFetchCurrentPreferences:c,isLoading:o,isError:d,error:p,getCurrentResponse:h}=e;return(0,r.jsxs)(i.jqI,{gap:"large",children:[(0,r.jsx)(i.jqI,{vertical:!0,flex:1,children:(0,r.jsxs)(i.jqI,{vertical:!0,className:"pr-24",children:[(0,r.jsx)(i.AntTypography.Text,{strong:!0,className:"mb-2 block",children:"User email (identity)"}),(0,r.jsx)(i.uFc,{placeholder:"Enter email address",value:t,onChange:e=>l(e.target.value),className:"mb-4"}),(0,r.jsx)(i.AntTypography.Text,{strong:!0,className:"mb-2 block",children:"Notice keys"}),(0,r.jsx)(i.WPr,{mode:"multiple",placeholder:"All notices",value:n,onChange:a,options:s,className:"mb-4 w-full",allowClear:!0,"aria-label":"Notice keys"}),(0,r.jsx)(i.wpx,{type:"primary",onClick:c,loading:o,disabled:!t,className:"mb-4 self-start",children:"Fetch current preferences"}),d&&(0,r.jsxs)(i.AntTypography.Text,{type:"danger",className:"mb-4 block",children:["Error fetching current preferences: ",p||"Unknown error"]})]})}),(0,r.jsx)(i.jqI,{vertical:!0,flex:1,className:"min-w-0",children:(0,r.jsx)(u,{title:"GET response",header:h?"GET /api/v3/privacy-preferences/current?identity.email=".concat(t).concat(n.length>0?"&notice_keys=".concat(n.join(",")):""):null,headerColor:y().FIDESUI_SUCCESS,body:h,emptyMessage:"GET response will appear here after fetching preferences"})})]})};let j=e=>{let t=[],l=e=>e.map(e=>{var n,a;let r=(null===(a=e.translations)||void 0===a?void 0:null===(n=a[0])||void 0===n?void 0:n.privacy_notice_history_id)||e.id,i={title:e.name,key:e.notice_key,noticeHistoryId:r,noticeKey:e.notice_key};return t.push(i.key),e.children&&e.children.length>0&&(i.children=l(e.children)),i});return{treeData:l(e),allKeys:t}};var v=e=>{let{privacyNotices:t,checkedKeys:l,onCheckedKeysChange:n,onExplicitChange:a}=e,{treeData:s,allKeys:o}=(0,c.useMemo)(()=>j(t),[t]),[d,p]=(0,c.useState)(o),[h,y]=(0,c.useState)(!0);(0,c.useEffect)(()=>{p(o)},[o]);let u=(0,c.useCallback)(e=>{p(e),y(!1)},[]),x=(0,c.useCallback)(e=>{let t=Array.isArray(e)?e:e.checked,r=t.filter(e=>!l.includes(e)),i=l.filter(e=>!t.includes(e)),s=r.length>0?r[0]:i[0];void 0!==s&&a&&a(s),n(t)},[l,n,a]);return(0,r.jsx)("div",{className:"max-w-lg",children:(0,r.jsx)(i.a$q,{checkable:!0,checkStrictly:!0,onExpand:u,expandedKeys:d,autoExpandParent:h,onCheck:x,checkedKeys:l,selectable:!1,treeData:s})})};(n=a||(a={})).SYSTEM_ENFORCED="system_enforced",n.CASCADE_DOWN="cascade_down",n.CASCADE_UP="cascade_up",n.CASCADE_UP_AND_DOWN="cascade_up_and_down";var f=e=>{let{value:t,onChange:l}=e,n=[{value:a.SYSTEM_ENFORCED,label:"System enforced"},{value:a.CASCADE_DOWN,label:"Cascade down"},{value:a.CASCADE_UP,label:"Cascade up"},{value:a.CASCADE_UP_AND_DOWN,label:"Cascade up and down"}];return(0,r.jsxs)(i.jqI,{align:"center",gap:3,className:"mb-4",children:[(0,r.jsx)("label",{htmlFor:"policy-select",id:"policy-select-label",children:(0,r.jsx)(i.AntTypography.Text,{strong:!0,style:{whiteSpace:"nowrap"},children:"Propagation policy:"})}),(0,r.jsx)(i.WPr,{id:"policy-select",value:null!=t?t:void 0,onChange:e=>{l(void 0===e?null:e)},style:{width:200},placeholder:"System enforced",allowClear:!0,options:n,"aria-labelledby":"policy-select-label"})]})},_=e=>{let{policy:t,onPolicyChange:l,privacyNotices:n,preferenceState:a,noticeMappings:s,experienceConfigHistoryId:h,email:x,hasCurrentResponse:g,explicitlyChangedKeys:m,onExplicitlyChangedKeysChange:j}=e,{checkedKeys:_,fetchedCheckedKeys:N,onCheckedKeysChange:b,onFetchedKeysChange:C}=a,{noticeKeyToHistoryMap:S}=s,[T,k]=(0,c.useState)(null),[A,{isLoading:E,isError:w,error:I}]=(0,d.ZR)(),D=(0,c.useCallback)(()=>({fetchedSet:new Set(N.map(e=>e.toString())),currentSet:new Set(_.map(e=>e.toString()))}),[N,_]),P=(0,c.useMemo)(()=>{let{fetchedSet:e,currentSet:t}=D();return Array.from(S.keys()).some(l=>e.has(l)!==t.has(l))},[D,S]),O=(0,c.useCallback)(async()=>{let{fetchedSet:e,currentSet:l}=D(),n=Array.from(S.keys()).filter(t=>e.has(t)!==l.has(t));if(0===n.length)return;let a=m.filter(e=>n.includes(String(e))).map(e=>{let t=String(e),n=S.get(t)||"",a=l.has(t);return{notice_key:t,notice_history_id:n,value:a?p.p.OPT_IN:p.p.OPT_OUT,collected_at:new Date().toISOString(),meta:{fides:{experience_config_history_id:h}}}});try{let e=await A({body:{identity:{email:{value:x}},preferences:a},policy:t}).unwrap();k(e);let l=e.preferences.filter(e=>e.value===p.p.OPT_IN).map(e=>e.notice_key);b(l),C(l),j([])}catch(e){}},[D,S,t,h,x,A,b,C,m,j]);return(0,r.jsxs)(i.jqI,{gap:"large",children:[(0,r.jsxs)(i.jqI,{vertical:!0,flex:1,children:[(0,r.jsx)(i.AntTypography.Title,{level:4,style:{fontSize:14,marginBottom:8},children:"Current preferences"}),g?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(f,{value:t,onChange:l}),(0,r.jsx)(v,{privacyNotices:n,checkedKeys:_,onCheckedKeysChange:b,onExplicitChange:e=>{j([...m.filter(t=>t!==e),e])}}),(0,r.jsx)(i.wpx,{type:"primary",onClick:O,loading:E,disabled:!P,className:"mt-4 self-start",children:"Save preferences"}),w&&I&&(0,r.jsxs)(i.AntTypography.Text,{type:"danger",className:"mt-2 block",children:["Error saving preferences: ",(0,o.e$)(I)]})]}):(0,r.jsx)(i.jqI,{vertical:!0,align:"center",justify:"center",flex:1,children:(0,r.jsx)(i.oj8,{description:"Fetch current preferences to manage user consent"})})]}),(0,r.jsx)(i.jqI,{vertical:!0,flex:1,className:"min-w-0",children:(0,r.jsx)(u,{title:"POST response",header:T?"POST /api/v3/privacy-preferences".concat(t?"?policy=".concat(t):""):null,headerColor:y().FIDESUI_ALERT,body:T,emptyMessage:"POST response will appear here after saving preferences"})})]})};let N={REGION:"us_ca",SHOW_DISABLED:!1};var b=()=>{let[e,t]=(0,c.useState)(N.REGION),[l,n]=(0,c.useState)(""),[a,s]=(0,c.useState)(""),[h,y]=(0,c.useState)(null),[u,x]=(0,c.useState)([]),[j,v]=(0,c.useState)([]),[f,b]=(0,c.useState)([]),[C,S]=(0,c.useState)([]),[T,k]=(0,c.useState)([]),[A,E]=(0,c.useState)(null),[w,I]=(0,c.useState)(null),[D,P]=(0,c.useState)(""),[O,{isLoading:F}]=(0,d.nU)(),[q,{isLoading:L,isError:M,error:U}]=(0,d.Lg)(),{noticeKeyToHistoryMap:K,parentNoticeKeys:R}=(0,c.useMemo)(()=>{let e=new Map,t=[],l=(n,a)=>{n.forEach(n=>{var r,i,s;let c=(null===(i=n.translations)||void 0===i?void 0:null===(r=i[0])||void 0===r?void 0:r.privacy_notice_history_id)||n.id;e.set(n.notice_key,c),a||t.push({label:n.name,value:n.notice_key}),(null===(s=n.children)||void 0===s?void 0:s.length)&&l(n.children,n.notice_key)})};return l(T),{noticeKeyToHistoryMap:e,parentNoticeKeys:t}},[T]),W=(0,c.useCallback)(async()=>{if(P(""),!e){P("Please enter a region");return}try{let r=await O({region:e,show_disabled:N.SHOW_DISABLED,...l&&{property_id:l}}).unwrap();if(r.items&&r.items.length>0){let e=r.items[0];if("privacy_notices"in e&&e.privacy_notices&&e.privacy_notices.length>0){var t,n,a;k(e.privacy_notices);let l=(null===(a=e.experience_config)||void 0===a?void 0:null===(n=a.translations)||void 0===n?void 0:null===(t=n[0])||void 0===t?void 0:t.privacy_experience_config_history_id)||null;E(l),x([]),v([]),S([])}}}catch(e){P("Failed to fetch privacy experience")}},[O,e,l]),B=(0,c.useCallback)(async()=>{try{let e={"identity.email":a};C.length>0&&(e.notice_keys=C);let t=await q(e).unwrap();I(t);let l=t.filter(e=>e.value===p.p.OPT_IN).map(e=>e.notice_key);x(l),v(l),b([])}catch(e){}},[a,C,q]);return(0,r.jsxs)("div",{className:"mt-5 space-y-8",children:[(0,r.jsx)(i.DUx,{type:"info",message:"This page makes real API calls to the Consent V3 API.",description:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.AntTypography.Paragraph,{className:"mb-0 mt-3",children:"Before using this sandbox, ensure you have:"}),(0,r.jsxs)("ul",{className:"mb-0 ml-6 mt-2 space-y-1",children:[(0,r.jsxs)("li",{children:["The consent v3 API enabled via the env var"," ",(0,r.jsx)(i.AntTypography.Text,{code:!0,children:"FIDESPLUS__EXPERIMENTAL__CONSENT_V3_ENABLED=true"})]}),(0,r.jsx)("li",{children:"An email identity definition configured in your system"}),(0,r.jsx)("li",{children:"A privacy experience set up with at least one privacy notice in the selected region"})]})]}),showIcon:!0}),(0,r.jsx)(g,{region:e,onRegionChange:t,propertyId:l,onPropertyIdChange:n,onFetchExperience:W,isLoading:F,errorMessage:D,privacyNotices:T}),(0,r.jsx)(i.htM,{}),(0,r.jsxs)(i.jqI,{vertical:!0,gap:"small",children:[(0,r.jsx)(i.AntTypography.Title,{level:3,children:"User preferences"}),0===T.length&&(0,r.jsx)(i.oj8,{description:"Load an experience in order to manage user preferences"}),T.length>0&&(0,r.jsxs)("div",{className:"space-y-6",children:[(0,r.jsx)(m,{email:a,onEmailChange:s,selectedNoticeKeys:C,onSelectedNoticeKeysChange:S,parentNoticeKeys:R,onFetchCurrentPreferences:B,isLoading:L,isError:M,error:U?(0,o.e$)(U):null,getCurrentResponse:w}),(0,r.jsx)(_,{policy:h,onPolicyChange:y,privacyNotices:T,preferenceState:{checkedKeys:u,fetchedCheckedKeys:j,onCheckedKeysChange:x,onFetchedKeysChange:v},noticeMappings:{noticeKeyToHistoryMap:K},experienceConfigHistoryId:A,email:a,hasCurrentResponse:null!==w,explicitlyChangedKeys:f,onExplicitlyChangedKeysChange:b})]})]})]})};let{Content:C}=i.AntLayout;var S=()=>(0,r.jsx)(i.AntLayout,{children:(0,r.jsxs)(C,{className:"overflow-auto px-10 py-6",children:[(0,r.jsx)(s.Z,{heading:"Privacy Notices Sandbox"}),(0,r.jsx)(b,{})]})})}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=16207)}),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5135],{77713:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/consent/[configuration_id]/[purpose_id]",function(){return i(80758)}])},59301:function(e,t,i){"use strict";var r=i(24246);let{Link:n}=i(98227).AntTypography;t.Z=e=>{let{children:t,...i}=e;return(0,r.jsx)(n,{target:"_blank",rel:"noopener noreferrer",...i,children:t})}},35287:function(e,t,i){"use strict";var r=i(24246),n=i(98227),s=i(88038),o=i.n(s);i(27378),t.Z=e=>{let{children:t,title:i,fullHeight:s,fullWidth:d,mainProps:l}=e;return(0,r.jsxs)(n.kCb,{"data-testid":i,direction:"column",height:s?"100vh":"calc(100vh - 48px)",width:d?"100vw":"calc(100vw - 240px)",children:[(0,r.jsxs)(o(),{children:[(0,r.jsxs)("title",{children:["Fides Admin UI - ",i]}),(0,r.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,r.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,r.jsx)(n.kCb,{px:10,py:6,as:"main",overflow:"auto",direction:"column",flex:1,minWidth:0,...l,children:t})]})}},58754:function(e,t,i){"use strict";var r=i(24246),n=i(98227),s=i(70788);t.Z=e=>{let{heading:t,breadcrumbItems:i,isSticky:o=!0,children:d,rightContent:l,style:a,...c}=e;return(0,r.jsxs)("div",{...c,style:o?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...a}:{paddingBottom:"24px",...a},children:[(0,r.jsxs)(n.jqI,{justify:"space-between",children:["string"==typeof t?(0,r.jsx)(n.lQT,{className:i||d?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,l&&(0,r.jsx)("div",{"data-testid":"page-header-right-content",children:l})]}),!!i&&(0,r.jsx)(s.m,{className:d?"pb-4":void 0,items:i,"data-testid":"page-breadcrumb"}),d]})}},97181:function(e,t,i){"use strict";i.d(t,{d:function(){return a}});var r=i(24246),n=i(98227),s=i(34090),o=i(27378),d=i(46238),l=i(40324);let a=e=>{let{name:t,label:i,labelProps:a,tooltip:c,isRequired:u,layout:p="inline",helperText:h,...v}=e,[_,m,{setValue:x}]=(0,s.U$)(t),f=!!(m.touched&&m.error),[g,R]=(0,o.useState)("");_.value||"tags"!==v.mode&&"multiple"!==v.mode||(_.value=[]),"tags"===v.mode&&"string"==typeof _.value&&(_.value=[_.value]);let j="tags"===v.mode?(e,t)=>e?e.value!==g||_.value.includes(g)?v.optionRender?v.optionRender(e,t):e.label:'Create "'.concat(g,'"'):void 0:v.optionRender||void 0,I=e=>{R(e),v.onSearch&&v.onSearch(e)},E=(e,t)=>{x(e),v.onChange&&v.onChange(e,t)};return"inline"===p?(0,r.jsx)(n.NIc,{isInvalid:f,isRequired:u,children:(0,r.jsxs)(n.rjZ,{templateColumns:i?"1fr 3fr":"1fr",children:[i?(0,r.jsx)(l.__,{htmlFor:v.id||t,...a,children:i}):null,(0,r.jsxs)(n.jqI,{align:"center",children:[(0,r.jsxs)(n.jqI,{vertical:!0,flex:1,className:"mr-2",children:[(0,r.jsx)(n.WPr,{..._,id:v.id||t,"data-testid":"controlled-select-".concat(_.name),...v,optionRender:j,onSearch:"tags"===v.mode?I:void 0,onChange:E,value:_.value||void 0,status:f?"error":void 0}),h&&(0,r.jsx)(n.Q6r,{children:h}),(0,r.jsx)(l.Bc,{isInvalid:f,message:m.error,fieldName:_.name})]}),(0,r.jsx)(d.b,{label:c,className:f?"mt-2 self-start":void 0})]})]})}):(0,r.jsx)(n.NIc,{isInvalid:f,isRequired:u,children:(0,r.jsxs)(n.gCW,{alignItems:"start",children:[(0,r.jsxs)(n.jqI,{align:"center",children:[i?(0,r.jsx)(l.__,{htmlFor:v.id||t,fontSize:"xs",my:0,mr:1,...a,children:i}):null,(0,r.jsx)(d.b,{label:c})]}),(0,r.jsx)(n.WPr,{..._,id:v.id||t,"data-testid":"controlled-select-".concat(_.name),...v,optionRender:j,onSearch:"tags"===v.mode?I:void 0,onChange:E,value:_.value||void 0,status:f?"error":void 0}),h&&(0,r.jsx)(n.Q6r,{style:{marginTop:0},children:h}),(0,r.jsx)(l.Bc,{isInvalid:f,message:m.error,fieldName:_.name})]})})}},8133:function(e,t,i){"use strict";var r=i(24246),n=i(98227);t.Z=e=>{let{title:t,children:i,isOpen:s,onClose:o,modalContentProps:d,showCloseButton:l=!1,footer:a,...c}=e;return(0,r.jsxs)(n.u_l,{isOpen:s,onClose:o,isCentered:!0,scrollBehavior:"inside",size:"xl",id:"add-modal",...c,children:[(0,r.jsx)(n.ZAr,{}),(0,r.jsxs)(n.hzk,{textAlign:"left",p:0,"data-testid":"add-modal-content",...d,children:[l&&(0,r.jsx)(n.olH,{}),(0,r.jsx)(n.xBx,{p:0,children:(0,r.jsx)(n.xuv,{backgroundColor:"gray.50",px:6,py:4,border:"1px",borderColor:"gray.200",borderTopRadius:6,display:"flex",justifyContent:"space-between",alignItems:"center",children:(0,r.jsx)(n.X6q,{as:"h3",size:"sm",children:t})})}),(0,r.jsx)(n.fef,{pb:4,overflow:"auto",children:i}),a&&(0,r.jsx)(n.mzw,{children:a})]})]})}},70788:function(e,t,i){"use strict";i.d(t,{m:function(){return a}});var r=i(24246),n=i(98227),s=i(79894),o=i.n(s),d=i(27378);let{Text:l}=n.AntTypography,a=e=>{let{items:t,...i}=e,s=(0,d.useMemo)(()=>null==t?void 0:t.map((e,i)=>{let s=i===t.length-1,d={...e},a=d.onClick&&!d.href;return("string"==typeof d.title&&(d.title=(0,r.jsx)(l,{style:{color:"inherit",maxWidth:s?void 0:400},ellipsis:!s,id:s?"breadcrumb-current-page":void 0,children:d.title})),a)?d.title=(0,r.jsx)(n.wpx,{type:"text",size:"small",icon:d.icon,onClick:d.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:d.title}):(d.icon&&(d.title=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"anticon align-text-bottom",children:d.icon}),d.title]})),d.href&&d.title&&(d.title=(0,r.jsx)(o(),{href:d.href,className:"ant-breadcrumb-link",children:d.title}),delete d.href)),d}),[t]);return(0,r.jsx)(n.zrq,{items:s,...i})}},6675:function(e,t,i){"use strict";i.d(t,{ZS:function(){return d},a4:function(){return s}});var r=i(3228);let n=i(78780).u.injectEndpoints({endpoints:e=>({getPurposes:e.query({query:()=>"purposes"})})}),{useGetPurposesQuery:s}=n,o={purposes:{},special_purposes:{}},d=(0,r.P1)(n.endpoints.getPurposes.select(),e=>{let{data:t}=e;return t||o})},51263:function(e,t,i){"use strict";var r=i(24246),n=i(98227);t.Z=e=>{let{title:t,children:i,...s}=e;return(0,r.jsxs)(n.xuv,{backgroundColor:"var(--fidesui-bg-corinth)",borderRadius:"4px",padding:"3","data-testid":"setting-".concat(t),...s,children:[(0,r.jsx)(n.xvT,{as:"h3",fontSize:"md",fontWeight:"bold",lineHeight:5,color:"gray.700",mb:3,children:t}),i]})}},59512:function(e,t,i){"use strict";i.d(t,{Cu:function(){return d},Py:function(){return n},fj:function(){return o},uh:function(){return s}});var r=i(65735);let n=[1,3,4,5,6],s="https://ethyca.com/docs/tutorials/consent-management/consent-management-configuration/configure-tcf#vendor-overrides",o={[r.FF.PURPOSE_RESTRICTION]:"Purpose restriction",[r.FF.REQUIRE_CONSENT]:"Require consent",[r.FF.REQUIRE_LEGITIMATE_INTEREST]:"Require legitimate interest"},d={[r.PY.RESTRICT_ALL_VENDORS]:"Restrict all vendors",[r.PY.RESTRICT_SPECIFIC_VENDORS]:"Restrict specific vendors",[r.PY.ALLOW_SPECIFIC_VENDORS]:"Allow specific vendors"}},80758:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return Z}});var r=i(24246),n=i(98227),s=i(86677),o=i(27378),d=i(59301),l=i(35287),a=i(58754),c=i(6675),u=i(51263),p=i(59512),h=i(59003),v=i(92222),_=i(47935),m=i(65735),x=i(34090),f=i(55484),g=i(97181),R=i(812),j=i(8133),I=i(46628),E=i(52955);let y=e=>{if(/^\d+$/.test(e))return!0;let t=e.match(/^(\d+)-(\d+)$/);return!!t&&parseInt(t[1],10)<parseInt(t[2],10)},C=e=>{if(/^\d+$/.test(e)){let t=parseInt(e,10);return{start:t,end:t}}let t=e.match(/^(\d+)-(\d+)$/);return t?{start:parseInt(t[1],10),end:parseInt(t[2],10)}:null},T=(e,t)=>e.end===e.start?e.start>=t.start&&(null===t.end||e.start<=t.end):t.end===t.start?t.start>=e.start&&(null===e.end||t.start<=e.end):null===e.end&&null!==t.end?e.start<=t.end:null===t.end&&null!==e.end?t.start<=e.end:null===e.end&&null===t.end||e.start<=t.end&&e.end>=t.start||t.start<=e.end&&t.end>=e.start,b=(e,t)=>e.end===e.start?e.start>=t.start&&(null===t.end||e.start<=t.end):null===t.end?e.start>=t.start:null!==e.end&&e.start>=t.start&&e.end<=t.end,S=(e,t,i,r)=>{var n;let s=t.filter(e=>e.purpose_id===i&&e.id!==r);if(!(null===(n=e.vendor_ids)||void 0===n?void 0:n.length))return!1;let o=e.vendor_ids.map(C).filter(e=>null!==e);return 0!==o.length&&s.some(t=>{let i=e.vendor_restriction===m.PY.RESTRICT_SPECIFIC_VENDORS&&t.vendor_restriction===m.PY.ALLOW_SPECIFIC_VENDORS||e.vendor_restriction===m.PY.ALLOW_SPECIFIC_VENDORS&&t.vendor_restriction===m.PY.RESTRICT_SPECIFIC_VENDORS,r=t.vendor_ids.map(C).filter(e=>null!==e);return i?e.vendor_restriction===m.PY.ALLOW_SPECIFIC_VENDORS?r.some(e=>o.some(t=>!b(e,t))):o.some(e=>r.some(t=>!b(e,t))):t.vendor_restriction===e.vendor_restriction&&o.some(e=>r.some(t=>T(e,t)))})},N=e=>{if(/^\d+$/.test(e))return{start_vendor_id:parseInt(e,10),end_vendor_id:null};let t=e.match(/^(\d+)-(\d+)$/);if(t){let e=parseInt(t[1],10),i=parseInt(t[2],10);if(e<i)return{start_vendor_id:e,end_vendor_id:i}}return null},w=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map(N).filter(e=>null!==e)},F="This restriction type is already in use for this purpose",P={restriction_type:"",vendor_restriction:"",vendor_ids:[]},O=e=>{let{isOpen:t,onClose:i,initialValues:s=P,existingRestrictions:o=[],purposeId:d,restrictionId:l,configurationId:a}=e,c=(0,n.pmc)(),[u]=(0,E.a_)(),[h]=(0,E.h3)(),v=!(d&&p.Py.includes(+d)),_=o.filter(e=>e.id!==l).map(e=>e.restriction_type),C=[{value:m.FF.PURPOSE_RESTRICTION,label:p.fj[m.FF.PURPOSE_RESTRICTION],disabled:_.includes(m.FF.PURPOSE_RESTRICTION),title:_.includes(m.FF.PURPOSE_RESTRICTION)?F:void 0},{value:m.FF.REQUIRE_CONSENT,label:p.fj[m.FF.REQUIRE_CONSENT],disabled:_.includes(m.FF.REQUIRE_CONSENT),title:_.includes(m.FF.REQUIRE_CONSENT)?F:void 0},{value:m.FF.REQUIRE_LEGITIMATE_INTEREST,label:p.fj[m.FF.REQUIRE_LEGITIMATE_INTEREST],disabled:_.includes(m.FF.REQUIRE_LEGITIMATE_INTEREST),title:_.includes(m.FF.REQUIRE_LEGITIMATE_INTEREST)?F:void 0}],T=[{value:m.PY.RESTRICT_ALL_VENDORS,label:p.Cu[m.PY.RESTRICT_ALL_VENDORS],disabled:_.length>0,title:_.length>0?"Cannot restrict all vendors when other restrictions exist":void 0},{value:m.PY.RESTRICT_SPECIFIC_VENDORS,label:p.Cu[m.PY.RESTRICT_SPECIFIC_VENDORS]},{value:m.PY.ALLOW_SPECIFIC_VENDORS,label:p.Cu[m.PY.ALLOW_SPECIFIC_VENDORS]}],b=f.Ry().shape({restriction_type:f.Z_().required("Restriction type is required"),vendor_restriction:f.Z_().required("Vendor restriction is required"),vendor_ids:f.IX().when("vendor_restriction",{is:e=>e!==m.PY.RESTRICT_ALL_VENDORS,then:e=>e.required("At least one vendor ID is required").min(1,"At least one vendor ID is required").test("valid-format","Vendor IDs must be numbers or ranges (e.g., 10 or 15-300)",e=>{var t;return null===(t=null==e?void 0:e.every(e=>y(e)))||void 0===t||t}).test("no-conflicts","One or more of these vendors already have a restriction for this purpose. Please update the existing restriction or remove duplicates.",(e,t)=>!S({...t.parent,vendor_ids:e},o,d,l))})}),N=async e=>{try{let t={restriction_type:e.restriction_type,vendor_restriction:e.vendor_restriction,range_entries:e.vendor_restriction!==m.PY.RESTRICT_ALL_VENDORS?w(e.vendor_ids):[]},r={...t,purpose_id:null!=d?d:0};if(l){let e=await h({configuration_id:a,restriction_id:l,restriction:t});if((0,R.D4)(e)){c((0,I.Vo)("Failed to update restriction"));return}c((0,I.t5)("Restriction updated successfully"))}else{let e=await u({configuration_id:a,restriction:r});if((0,R.D4)(e)){c((0,I.Vo)("Failed to create restriction"));return}c((0,I.t5)("Restriction created successfully"))}i()}catch(e){c((0,I.Vo)("Failed to save restriction"))}};return(0,r.jsx)(j.Z,{isOpen:t,onClose:i,title:"Edit restriction",children:(0,r.jsx)(x.J9,{initialValues:{...s,restriction_type:v?s.restriction_type:m.FF.PURPOSE_RESTRICTION},onSubmit:N,validationSchema:b,children:e=>{let{values:t,validateField:s,setTouched:o}=e;return(0,r.jsx)(x.l0,{children:(0,r.jsxs)(n.jqI,{vertical:!0,className:"gap-6",children:[(0,r.jsx)(n.xvT,{className:"text-sm",children:"Define how specific vendors are restricted from processing data for this purpose. Select a restriction type, set whether the listed vendors are restricted or allowed, and specify which vendor IDs the restriction applies to."}),(0,r.jsx)(n.esZ,{title:v?void 0:"Non-flexible purposes only support Purpose restrictions and cannot be restricted by consent or legitimate interest settings.",children:(0,r.jsx)(g.d,{name:"restriction_type",label:"Restriction type",options:C,layout:"stacked",tooltip:"Choose how vendors are permitted to process data for this purpose. This setting overrides the vendor's declared legal basis in the Global Vendor List.",isRequired:!0,disabled:!v,className:"w-full"})}),(0,r.jsx)(g.d,{name:"vendor_restriction",label:"Vendor restriction",options:T,layout:"stacked",tooltip:"Decide if the restriction applies to all vendors, specific vendors, or if only certain vendors are allowed.",isRequired:!0}),(0,r.jsx)(n.UO1,{in:!!t.restriction_type&&!!t.vendor_restriction&&t.vendor_restriction!==m.PY.RESTRICT_ALL_VENDORS,animateOpacity:!0,children:(0,r.jsx)(g.d,{name:"vendor_ids",label:"Vendor IDs",mode:"tags",options:[],layout:"stacked",placeholder:"Enter vendor IDs",open:!1,suffixIcon:(0,r.jsx)("span",{}),tooltip:"List the specific vendors that are restricted or allowed from processing data for this purpose.",disabled:t.vendor_restriction===m.PY.RESTRICT_ALL_VENDORS,tokenSeparators:[","," "],onBlur:()=>{setTimeout(()=>{o({vendor_ids:!0}),s("vendor_ids")},100)},helperText:"Enter IDs (e.g. 123) or ranges (e.g. 1-10) and press enter",isRequired:!0})}),(0,r.jsxs)(n.jqI,{justify:"flex-end",className:"gap-3 pt-4",children:[(0,r.jsx)(n.wpx,{onClick:i,"data-testid":"cancel-restriction-button",children:"Cancel"}),(0,r.jsx)(n.wpx,{type:"primary",htmlType:"submit","data-testid":"save-restriction-button",children:"Save"})]})]})})}})})};var L=i(72625),q=i(58452);let A=e=>{let{currentValues:t,existingRestrictions:i}=e,[d,l]=(0,o.useState)(!1),[a,c]=(0,o.useState)(!1),u=(0,s.useRouter)(),p=(0,n.pmc)(),[h]=(0,E.FC)(),v=u.query.purpose_id?parseInt(u.query.purpose_id,10):void 0,_=u.query.configuration_id,m=async()=>{try{if(!(null==t?void 0:t.id))return;let e=await h({configuration_id:_,restriction_id:t.id});if((0,R.D4)(e)){p((0,I.Vo)("Failed to delete publisher restriction"));return}l(!1),p((0,I.t5)("Publisher restriction deleted successfully"))}catch(e){p((0,I.Vo)("Failed to delete publisher restriction"))}};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(n.vyj,{children:[(0,r.jsx)(n.wpx,{size:"small",onClick:()=>c(!0),"data-testid":"edit-restriction-button",children:"Edit"}),(0,r.jsx)(n.wpx,{size:"small",onClick:()=>l(!0),"data-testid":"delete-restriction-button",children:"Delete"})]}),(0,r.jsx)(O,{isOpen:a,onClose:()=>c(!1),initialValues:t,existingRestrictions:i,purposeId:v,restrictionId:null==t?void 0:t.id,configurationId:_}),(0,r.jsx)(q.Z,{isOpen:d,onClose:()=>l(!1),onConfirm:m,title:"Confirm deletion",message:"Are you sure you want to delete this publisher restriction? This action cannot be undone.",cancelButtonText:"Cancel",continueButtonText:"Delete"})]})},D=(0,v.Cl)(),V=()=>(0,o.useMemo)(()=>[D.accessor(e=>e.restriction_type,{id:"restriction_type",cell:e=>{let{getValue:t}=e,i=t();return(0,r.jsx)(_.G3,{value:p.fj[i]})},header:e=>(0,r.jsx)(_.Rr,{value:"Restriction type",...e})}),D.accessor(e=>e.vendor_restriction,{id:"vendor_restriction",cell:e=>{let{getValue:t}=e,i=t();return(0,r.jsx)(_.G3,{value:p.Cu[i]})},header:e=>(0,r.jsx)(_.Rr,{value:"Vendor restriction",...e})}),D.accessor(e=>e.vendor_ids,{id:"vendor_ids",cell:e=>{let{getValue:t}=e;return(0,r.jsx)(_.G3,{value:t().join(", ")||"All vendors"})},header:e=>(0,r.jsx)(L.vs,{value:"Vendors",helperText:"Specify which vendors the restriction applies to. You can apply restrictions to all vendors, specific vendors by their IDs, or allow only certain vendors while restricting the rest.",...e})}),D.display({id:"actions",cell:e=>(0,r.jsx)(A,{currentValues:e.row.original,existingRestrictions:e.table.getRowModel().rows.map(e=>e.original)}),header:"Actions",size:154,meta:{disableRowClick:!0}})],[]),k=e=>{let{onAdd:t}=e;return(0,r.jsxs)(n.jqI,{vertical:!0,align:"center",className:"mt-6 w-full gap-3 self-center whitespace-normal py-10","data-testid":"empty-table-notice",children:[(0,r.jsx)(n.xvT,{fontSize:"md",fontWeight:"semibold",children:"Add a restriction"}),(0,r.jsx)(n.xvT,{fontSize:"sm",className:"max-w-[70%]",children:"No restrictions have been added. By default, all vendors follow their declared legal basis unless a restriction is applied—add a restriction to override this behavior."}),(0,r.jsx)(n.wpx,{type:"primary",onClick:t,children:"Add +"})]})},U=()=>{let[e,t]=(0,o.useState)(!1),i=V(),d=(0,s.useRouter)(),l=d.query.purpose_id?parseInt(d.query.purpose_id,10):void 0,a=d.query.configuration_id,{data:c,isFetching:u}=(0,E.a9)({configuration_id:a,purpose_id:null!=l?l:0},{skip:!a||!l}),p=((null==c?void 0:c.items)||[]).map(e=>{var t;return{id:e.id,restriction_type:e.restriction_type,vendor_restriction:e.vendor_restriction,vendor_ids:(null===(t=e.range_entries)||void 0===t?void 0:t.map(e=>e.end_vendor_id?"".concat(e.start_vendor_id,"-").concat(e.end_vendor_id):e.start_vendor_id.toString()))||[],purpose_id:e.purpose_id}}),x=p.some(e=>e.vendor_restriction===m.PY.RESTRICT_ALL_VENDORS),f=Object.values(m.FF).every(e=>p.some(t=>t.restriction_type===e)),g=(0,h.b7)({getCoreRowModel:(0,v.sC)(),columns:i,data:p,columnResizeMode:"onChange",manualPagination:!0}),R=()=>{t(!0)};return(0,r.jsxs)(n.jqI,{vertical:!0,className:"overflow-auto",children:[(0,r.jsxs)(_.Q$,{children:[(0,r.jsx)(n.LZC,{}),(0,r.jsx)(n.esZ,{title:x?'Each vendor must have a unique restriction type. When "Restrict all vendors" is active for any restriction type, no other restrictions can be added.':f?"Each purpose must have a unique restriction type. When all restriction types are active, no other restrictions can be added. Use the 'Edit' button to change the vendor restrictions on each type.":void 0,children:(0,r.jsx)(n.wpx,{type:"primary",onClick:R,disabled:x||f,"data-testid":"add-restriction-button",children:"Add restriction +"})})]}),u?(0,r.jsx)(_.I4,{rowHeight:36,numRows:3}):(0,r.jsx)(_.ZK,{tableInstance:g,emptyTableNotice:(0,r.jsx)(k,{onAdd:R})}),(0,r.jsx)(O,{isOpen:e,onClose:()=>{t(!1)},existingRestrictions:p,purposeId:l,configurationId:a})]})};var Z=()=>{let e=(0,s.useRouter)(),t=decodeURIComponent(e.query.configuration_id),i=decodeURIComponent(e.query.purpose_id),{data:h,isLoading:v}=(0,c.a4)(),{data:_}=(0,E.NZ)(t),m=(0,o.useMemo)(()=>null==h?void 0:h.purposes[i],[h,i]);return(0,r.jsxs)(l.Z,{title:"Consent Configuration",children:[(0,r.jsx)(a.Z,{heading:"Consent configuration",breadcrumbItems:[{title:"Consent settings",href:"/settings/consent"},{title:(null==_?void 0:_.name)||"Configuration"},{title:"TCF purpose ".concat(i)}]}),(0,r.jsxs)(n.vyj,{direction:"vertical",size:"middle",children:[(0,r.jsxs)(n.vyj,{direction:"vertical",size:"middle",children:[(0,r.jsx)(u.Z,{title:"TCF purpose ".concat(i).concat((null==m?void 0:m.name)?": ".concat(null==m?void 0:m.name):""),children:v?(0,r.jsxs)(n.jqI,{vertical:!0,className:"gap-1.5",children:[(0,r.jsx)(n.OdW,{height:"16px",width:"100%"}),(0,r.jsx)(n.OdW,{height:"16px",width:"100%"}),(0,r.jsx)(n.OdW,{height:"16px",width:"30%"})]}):!!m&&(0,r.jsx)(n.xvT,{fontSize:"sm",children:null==m?void 0:m.description})}),(0,r.jsx)(u.Z,{title:(null==_?void 0:_.name)||"Configuration",children:(0,r.jsx)(n.vyj,{direction:"vertical",className:"gap-3",children:(0,r.jsxs)(n.xvT,{fontSize:"sm",children:["Add restrictions to control how vendors process data for specific purposes. For each restriction, choose a restriction type. Then, decide whether the restriction applies to all vendors, specific vendors, or only to a limited set of allowed vendors. You can add multiple restrictions—they'll appear in the table below."," ",(0,r.jsx)(d.Z,{href:p.uh,children:"Learn more about publisher restrictions"})," ","in our docs."]})})})]}),(0,r.jsx)(U,{})]})]})}}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=77713)}),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5135],{77713:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/consent/[configuration_id]/[purpose_id]",function(){return i(80758)}])},59301:function(e,t,i){"use strict";var r=i(24246);let{Link:n}=i(39158).AntTypography;t.Z=e=>{let{children:t,...i}=e;return(0,r.jsx)(n,{target:"_blank",rel:"noopener noreferrer",...i,children:t})}},35287:function(e,t,i){"use strict";var r=i(24246),n=i(39158),s=i(88038),o=i.n(s);i(27378),t.Z=e=>{let{children:t,title:i,fullHeight:s,fullWidth:d,mainProps:l}=e;return(0,r.jsxs)(n.kCb,{"data-testid":i,direction:"column",height:s?"100vh":"calc(100vh - 48px)",width:d?"100vw":"calc(100vw - 240px)",children:[(0,r.jsxs)(o(),{children:[(0,r.jsxs)("title",{children:["Fides Admin UI - ",i]}),(0,r.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,r.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,r.jsx)(n.kCb,{px:10,py:6,as:"main",overflow:"auto",direction:"column",flex:1,minWidth:0,...l,children:t})]})}},58754:function(e,t,i){"use strict";var r=i(24246),n=i(39158),s=i(70788);t.Z=e=>{let{heading:t,breadcrumbItems:i,isSticky:o=!0,children:d,rightContent:l,style:a,...c}=e;return(0,r.jsxs)("div",{...c,style:o?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...a}:{paddingBottom:"24px",...a},children:[(0,r.jsxs)(n.jqI,{justify:"space-between",children:["string"==typeof t?(0,r.jsx)(n.lQT,{className:i||d?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,l&&(0,r.jsx)("div",{"data-testid":"page-header-right-content",children:l})]}),!!i&&(0,r.jsx)(s.m,{className:d?"pb-4":void 0,items:i,"data-testid":"page-breadcrumb"}),d]})}},97181:function(e,t,i){"use strict";i.d(t,{d:function(){return a}});var r=i(24246),n=i(39158),s=i(34090),o=i(27378),d=i(46238),l=i(40324);let a=e=>{let{name:t,label:i,labelProps:a,tooltip:c,isRequired:u,layout:p="inline",helperText:h,...v}=e,[_,m,{setValue:x}]=(0,s.U$)(t),f=!!(m.touched&&m.error),[g,R]=(0,o.useState)("");_.value||"tags"!==v.mode&&"multiple"!==v.mode||(_.value=[]),"tags"===v.mode&&"string"==typeof _.value&&(_.value=[_.value]);let j="tags"===v.mode?(e,t)=>e?e.value!==g||_.value.includes(g)?v.optionRender?v.optionRender(e,t):e.label:'Create "'.concat(g,'"'):void 0:v.optionRender||void 0,I=e=>{R(e),v.onSearch&&v.onSearch(e)},E=(e,t)=>{x(e),v.onChange&&v.onChange(e,t)};return"inline"===p?(0,r.jsx)(n.NIc,{isInvalid:f,isRequired:u,children:(0,r.jsxs)(n.rjZ,{templateColumns:i?"1fr 3fr":"1fr",children:[i?(0,r.jsx)(l.__,{htmlFor:v.id||t,...a,children:i}):null,(0,r.jsxs)(n.jqI,{align:"center",children:[(0,r.jsxs)(n.jqI,{vertical:!0,flex:1,className:"mr-2",children:[(0,r.jsx)(n.WPr,{..._,id:v.id||t,"data-testid":"controlled-select-".concat(_.name),...v,optionRender:j,onSearch:"tags"===v.mode?I:void 0,onChange:E,value:_.value||void 0,status:f?"error":void 0}),h&&(0,r.jsx)(n.Q6r,{children:h}),(0,r.jsx)(l.Bc,{isInvalid:f,message:m.error,fieldName:_.name})]}),(0,r.jsx)(d.b,{label:c,className:f?"mt-2 self-start":void 0})]})]})}):(0,r.jsx)(n.NIc,{isInvalid:f,isRequired:u,children:(0,r.jsxs)(n.gCW,{alignItems:"start",children:[(0,r.jsxs)(n.jqI,{align:"center",children:[i?(0,r.jsx)(l.__,{htmlFor:v.id||t,fontSize:"xs",my:0,mr:1,...a,children:i}):null,(0,r.jsx)(d.b,{label:c})]}),(0,r.jsx)(n.WPr,{..._,id:v.id||t,"data-testid":"controlled-select-".concat(_.name),...v,optionRender:j,onSearch:"tags"===v.mode?I:void 0,onChange:E,value:_.value||void 0,status:f?"error":void 0}),h&&(0,r.jsx)(n.Q6r,{style:{marginTop:0},children:h}),(0,r.jsx)(l.Bc,{isInvalid:f,message:m.error,fieldName:_.name})]})})}},8133:function(e,t,i){"use strict";var r=i(24246),n=i(39158);t.Z=e=>{let{title:t,children:i,isOpen:s,onClose:o,modalContentProps:d,showCloseButton:l=!1,footer:a,...c}=e;return(0,r.jsxs)(n.u_l,{isOpen:s,onClose:o,isCentered:!0,scrollBehavior:"inside",size:"xl",id:"add-modal",...c,children:[(0,r.jsx)(n.ZAr,{}),(0,r.jsxs)(n.hzk,{textAlign:"left",p:0,"data-testid":"add-modal-content",...d,children:[l&&(0,r.jsx)(n.olH,{}),(0,r.jsx)(n.xBx,{p:0,children:(0,r.jsx)(n.xuv,{backgroundColor:"gray.50",px:6,py:4,border:"1px",borderColor:"gray.200",borderTopRadius:6,display:"flex",justifyContent:"space-between",alignItems:"center",children:(0,r.jsx)(n.X6q,{as:"h3",size:"sm",children:t})})}),(0,r.jsx)(n.fef,{pb:4,overflow:"auto",children:i}),a&&(0,r.jsx)(n.mzw,{children:a})]})]})}},70788:function(e,t,i){"use strict";i.d(t,{m:function(){return a}});var r=i(24246),n=i(39158),s=i(79894),o=i.n(s),d=i(27378);let{Text:l}=n.AntTypography,a=e=>{let{items:t,...i}=e,s=(0,d.useMemo)(()=>null==t?void 0:t.map((e,i)=>{let s=i===t.length-1,d={...e},a=d.onClick&&!d.href;return("string"==typeof d.title&&(d.title=(0,r.jsx)(l,{style:{color:"inherit",maxWidth:s?void 0:400},ellipsis:!s,id:s?"breadcrumb-current-page":void 0,children:d.title})),a)?d.title=(0,r.jsx)(n.wpx,{type:"text",size:"small",icon:d.icon,onClick:d.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:d.title}):(d.icon&&(d.title=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"anticon align-text-bottom",children:d.icon}),d.title]})),d.href&&d.title&&(d.title=(0,r.jsx)(o(),{href:d.href,className:"ant-breadcrumb-link",children:d.title}),delete d.href)),d}),[t]);return(0,r.jsx)(n.zrq,{items:s,...i})}},6675:function(e,t,i){"use strict";i.d(t,{ZS:function(){return d},a4:function(){return s}});var r=i(3228);let n=i(78780).u.injectEndpoints({endpoints:e=>({getPurposes:e.query({query:()=>"purposes"})})}),{useGetPurposesQuery:s}=n,o={purposes:{},special_purposes:{}},d=(0,r.P1)(n.endpoints.getPurposes.select(),e=>{let{data:t}=e;return t||o})},51263:function(e,t,i){"use strict";var r=i(24246),n=i(39158);t.Z=e=>{let{title:t,children:i,...s}=e;return(0,r.jsxs)(n.xuv,{backgroundColor:"var(--fidesui-bg-corinth)",borderRadius:"4px",padding:"3","data-testid":"setting-".concat(t),...s,children:[(0,r.jsx)(n.xvT,{as:"h3",fontSize:"md",fontWeight:"bold",lineHeight:5,color:"gray.700",mb:3,children:t}),i]})}},59512:function(e,t,i){"use strict";i.d(t,{Cu:function(){return d},Py:function(){return n},fj:function(){return o},uh:function(){return s}});var r=i(60240);let n=[1,3,4,5,6],s="https://ethyca.com/docs/tutorials/consent-management/consent-management-configuration/configure-tcf#vendor-overrides",o={[r.FF.PURPOSE_RESTRICTION]:"Purpose restriction",[r.FF.REQUIRE_CONSENT]:"Require consent",[r.FF.REQUIRE_LEGITIMATE_INTEREST]:"Require legitimate interest"},d={[r.PY.RESTRICT_ALL_VENDORS]:"Restrict all vendors",[r.PY.RESTRICT_SPECIFIC_VENDORS]:"Restrict specific vendors",[r.PY.ALLOW_SPECIFIC_VENDORS]:"Allow specific vendors"}},80758:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return Z}});var r=i(24246),n=i(39158),s=i(86677),o=i(27378),d=i(59301),l=i(35287),a=i(58754),c=i(6675),u=i(51263),p=i(59512),h=i(59003),v=i(92222),_=i(47935),m=i(60240),x=i(34090),f=i(55484),g=i(97181),R=i(812),j=i(8133),I=i(46628),E=i(52955);let y=e=>{if(/^\d+$/.test(e))return!0;let t=e.match(/^(\d+)-(\d+)$/);return!!t&&parseInt(t[1],10)<parseInt(t[2],10)},C=e=>{if(/^\d+$/.test(e)){let t=parseInt(e,10);return{start:t,end:t}}let t=e.match(/^(\d+)-(\d+)$/);return t?{start:parseInt(t[1],10),end:parseInt(t[2],10)}:null},T=(e,t)=>e.end===e.start?e.start>=t.start&&(null===t.end||e.start<=t.end):t.end===t.start?t.start>=e.start&&(null===e.end||t.start<=e.end):null===e.end&&null!==t.end?e.start<=t.end:null===t.end&&null!==e.end?t.start<=e.end:null===e.end&&null===t.end||e.start<=t.end&&e.end>=t.start||t.start<=e.end&&t.end>=e.start,b=(e,t)=>e.end===e.start?e.start>=t.start&&(null===t.end||e.start<=t.end):null===t.end?e.start>=t.start:null!==e.end&&e.start>=t.start&&e.end<=t.end,S=(e,t,i,r)=>{var n;let s=t.filter(e=>e.purpose_id===i&&e.id!==r);if(!(null===(n=e.vendor_ids)||void 0===n?void 0:n.length))return!1;let o=e.vendor_ids.map(C).filter(e=>null!==e);return 0!==o.length&&s.some(t=>{let i=e.vendor_restriction===m.PY.RESTRICT_SPECIFIC_VENDORS&&t.vendor_restriction===m.PY.ALLOW_SPECIFIC_VENDORS||e.vendor_restriction===m.PY.ALLOW_SPECIFIC_VENDORS&&t.vendor_restriction===m.PY.RESTRICT_SPECIFIC_VENDORS,r=t.vendor_ids.map(C).filter(e=>null!==e);return i?e.vendor_restriction===m.PY.ALLOW_SPECIFIC_VENDORS?r.some(e=>o.some(t=>!b(e,t))):o.some(e=>r.some(t=>!b(e,t))):t.vendor_restriction===e.vendor_restriction&&o.some(e=>r.some(t=>T(e,t)))})},N=e=>{if(/^\d+$/.test(e))return{start_vendor_id:parseInt(e,10),end_vendor_id:null};let t=e.match(/^(\d+)-(\d+)$/);if(t){let e=parseInt(t[1],10),i=parseInt(t[2],10);if(e<i)return{start_vendor_id:e,end_vendor_id:i}}return null},w=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map(N).filter(e=>null!==e)},F="This restriction type is already in use for this purpose",P={restriction_type:"",vendor_restriction:"",vendor_ids:[]},O=e=>{let{isOpen:t,onClose:i,initialValues:s=P,existingRestrictions:o=[],purposeId:d,restrictionId:l,configurationId:a}=e,c=(0,n.pmc)(),[u]=(0,E.a_)(),[h]=(0,E.h3)(),v=!(d&&p.Py.includes(+d)),_=o.filter(e=>e.id!==l).map(e=>e.restriction_type),C=[{value:m.FF.PURPOSE_RESTRICTION,label:p.fj[m.FF.PURPOSE_RESTRICTION],disabled:_.includes(m.FF.PURPOSE_RESTRICTION),title:_.includes(m.FF.PURPOSE_RESTRICTION)?F:void 0},{value:m.FF.REQUIRE_CONSENT,label:p.fj[m.FF.REQUIRE_CONSENT],disabled:_.includes(m.FF.REQUIRE_CONSENT),title:_.includes(m.FF.REQUIRE_CONSENT)?F:void 0},{value:m.FF.REQUIRE_LEGITIMATE_INTEREST,label:p.fj[m.FF.REQUIRE_LEGITIMATE_INTEREST],disabled:_.includes(m.FF.REQUIRE_LEGITIMATE_INTEREST),title:_.includes(m.FF.REQUIRE_LEGITIMATE_INTEREST)?F:void 0}],T=[{value:m.PY.RESTRICT_ALL_VENDORS,label:p.Cu[m.PY.RESTRICT_ALL_VENDORS],disabled:_.length>0,title:_.length>0?"Cannot restrict all vendors when other restrictions exist":void 0},{value:m.PY.RESTRICT_SPECIFIC_VENDORS,label:p.Cu[m.PY.RESTRICT_SPECIFIC_VENDORS]},{value:m.PY.ALLOW_SPECIFIC_VENDORS,label:p.Cu[m.PY.ALLOW_SPECIFIC_VENDORS]}],b=f.Ry().shape({restriction_type:f.Z_().required("Restriction type is required"),vendor_restriction:f.Z_().required("Vendor restriction is required"),vendor_ids:f.IX().when("vendor_restriction",{is:e=>e!==m.PY.RESTRICT_ALL_VENDORS,then:e=>e.required("At least one vendor ID is required").min(1,"At least one vendor ID is required").test("valid-format","Vendor IDs must be numbers or ranges (e.g., 10 or 15-300)",e=>{var t;return null===(t=null==e?void 0:e.every(e=>y(e)))||void 0===t||t}).test("no-conflicts","One or more of these vendors already have a restriction for this purpose. Please update the existing restriction or remove duplicates.",(e,t)=>!S({...t.parent,vendor_ids:e},o,d,l))})}),N=async e=>{try{let t={restriction_type:e.restriction_type,vendor_restriction:e.vendor_restriction,range_entries:e.vendor_restriction!==m.PY.RESTRICT_ALL_VENDORS?w(e.vendor_ids):[]},r={...t,purpose_id:null!=d?d:0};if(l){let e=await h({configuration_id:a,restriction_id:l,restriction:t});if((0,R.D4)(e)){c((0,I.Vo)("Failed to update restriction"));return}c((0,I.t5)("Restriction updated successfully"))}else{let e=await u({configuration_id:a,restriction:r});if((0,R.D4)(e)){c((0,I.Vo)("Failed to create restriction"));return}c((0,I.t5)("Restriction created successfully"))}i()}catch(e){c((0,I.Vo)("Failed to save restriction"))}};return(0,r.jsx)(j.Z,{isOpen:t,onClose:i,title:"Edit restriction",children:(0,r.jsx)(x.J9,{initialValues:{...s,restriction_type:v?s.restriction_type:m.FF.PURPOSE_RESTRICTION},onSubmit:N,validationSchema:b,children:e=>{let{values:t,validateField:s,setTouched:o}=e;return(0,r.jsx)(x.l0,{children:(0,r.jsxs)(n.jqI,{vertical:!0,className:"gap-6",children:[(0,r.jsx)(n.xvT,{className:"text-sm",children:"Define how specific vendors are restricted from processing data for this purpose. Select a restriction type, set whether the listed vendors are restricted or allowed, and specify which vendor IDs the restriction applies to."}),(0,r.jsx)(n.esZ,{title:v?void 0:"Non-flexible purposes only support Purpose restrictions and cannot be restricted by consent or legitimate interest settings.",children:(0,r.jsx)(g.d,{name:"restriction_type",label:"Restriction type",options:C,layout:"stacked",tooltip:"Choose how vendors are permitted to process data for this purpose. This setting overrides the vendor's declared legal basis in the Global Vendor List.",isRequired:!0,disabled:!v,className:"w-full"})}),(0,r.jsx)(g.d,{name:"vendor_restriction",label:"Vendor restriction",options:T,layout:"stacked",tooltip:"Decide if the restriction applies to all vendors, specific vendors, or if only certain vendors are allowed.",isRequired:!0}),(0,r.jsx)(n.UO1,{in:!!t.restriction_type&&!!t.vendor_restriction&&t.vendor_restriction!==m.PY.RESTRICT_ALL_VENDORS,animateOpacity:!0,children:(0,r.jsx)(g.d,{name:"vendor_ids",label:"Vendor IDs",mode:"tags",options:[],layout:"stacked",placeholder:"Enter vendor IDs",open:!1,suffixIcon:(0,r.jsx)("span",{}),tooltip:"List the specific vendors that are restricted or allowed from processing data for this purpose.",disabled:t.vendor_restriction===m.PY.RESTRICT_ALL_VENDORS,tokenSeparators:[","," "],onBlur:()=>{setTimeout(()=>{o({vendor_ids:!0}),s("vendor_ids")},100)},helperText:"Enter IDs (e.g. 123) or ranges (e.g. 1-10) and press enter",isRequired:!0})}),(0,r.jsxs)(n.jqI,{justify:"flex-end",className:"gap-3 pt-4",children:[(0,r.jsx)(n.wpx,{onClick:i,"data-testid":"cancel-restriction-button",children:"Cancel"}),(0,r.jsx)(n.wpx,{type:"primary",htmlType:"submit","data-testid":"save-restriction-button",children:"Save"})]})]})})}})})};var L=i(72625),q=i(58452);let A=e=>{let{currentValues:t,existingRestrictions:i}=e,[d,l]=(0,o.useState)(!1),[a,c]=(0,o.useState)(!1),u=(0,s.useRouter)(),p=(0,n.pmc)(),[h]=(0,E.FC)(),v=u.query.purpose_id?parseInt(u.query.purpose_id,10):void 0,_=u.query.configuration_id,m=async()=>{try{if(!(null==t?void 0:t.id))return;let e=await h({configuration_id:_,restriction_id:t.id});if((0,R.D4)(e)){p((0,I.Vo)("Failed to delete publisher restriction"));return}l(!1),p((0,I.t5)("Publisher restriction deleted successfully"))}catch(e){p((0,I.Vo)("Failed to delete publisher restriction"))}};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(n.vyj,{children:[(0,r.jsx)(n.wpx,{size:"small",onClick:()=>c(!0),"data-testid":"edit-restriction-button",children:"Edit"}),(0,r.jsx)(n.wpx,{size:"small",onClick:()=>l(!0),"data-testid":"delete-restriction-button",children:"Delete"})]}),(0,r.jsx)(O,{isOpen:a,onClose:()=>c(!1),initialValues:t,existingRestrictions:i,purposeId:v,restrictionId:null==t?void 0:t.id,configurationId:_}),(0,r.jsx)(q.Z,{isOpen:d,onClose:()=>l(!1),onConfirm:m,title:"Confirm deletion",message:"Are you sure you want to delete this publisher restriction? This action cannot be undone.",cancelButtonText:"Cancel",continueButtonText:"Delete"})]})},D=(0,v.Cl)(),V=()=>(0,o.useMemo)(()=>[D.accessor(e=>e.restriction_type,{id:"restriction_type",cell:e=>{let{getValue:t}=e,i=t();return(0,r.jsx)(_.G3,{value:p.fj[i]})},header:e=>(0,r.jsx)(_.Rr,{value:"Restriction type",...e})}),D.accessor(e=>e.vendor_restriction,{id:"vendor_restriction",cell:e=>{let{getValue:t}=e,i=t();return(0,r.jsx)(_.G3,{value:p.Cu[i]})},header:e=>(0,r.jsx)(_.Rr,{value:"Vendor restriction",...e})}),D.accessor(e=>e.vendor_ids,{id:"vendor_ids",cell:e=>{let{getValue:t}=e;return(0,r.jsx)(_.G3,{value:t().join(", ")||"All vendors"})},header:e=>(0,r.jsx)(L.vs,{value:"Vendors",helperText:"Specify which vendors the restriction applies to. You can apply restrictions to all vendors, specific vendors by their IDs, or allow only certain vendors while restricting the rest.",...e})}),D.display({id:"actions",cell:e=>(0,r.jsx)(A,{currentValues:e.row.original,existingRestrictions:e.table.getRowModel().rows.map(e=>e.original)}),header:"Actions",size:154,meta:{disableRowClick:!0}})],[]),k=e=>{let{onAdd:t}=e;return(0,r.jsxs)(n.jqI,{vertical:!0,align:"center",className:"mt-6 w-full gap-3 self-center whitespace-normal py-10","data-testid":"empty-table-notice",children:[(0,r.jsx)(n.xvT,{fontSize:"md",fontWeight:"semibold",children:"Add a restriction"}),(0,r.jsx)(n.xvT,{fontSize:"sm",className:"max-w-[70%]",children:"No restrictions have been added. By default, all vendors follow their declared legal basis unless a restriction is applied—add a restriction to override this behavior."}),(0,r.jsx)(n.wpx,{type:"primary",onClick:t,children:"Add +"})]})},U=()=>{let[e,t]=(0,o.useState)(!1),i=V(),d=(0,s.useRouter)(),l=d.query.purpose_id?parseInt(d.query.purpose_id,10):void 0,a=d.query.configuration_id,{data:c,isFetching:u}=(0,E.a9)({configuration_id:a,purpose_id:null!=l?l:0},{skip:!a||!l}),p=((null==c?void 0:c.items)||[]).map(e=>{var t;return{id:e.id,restriction_type:e.restriction_type,vendor_restriction:e.vendor_restriction,vendor_ids:(null===(t=e.range_entries)||void 0===t?void 0:t.map(e=>e.end_vendor_id?"".concat(e.start_vendor_id,"-").concat(e.end_vendor_id):e.start_vendor_id.toString()))||[],purpose_id:e.purpose_id}}),x=p.some(e=>e.vendor_restriction===m.PY.RESTRICT_ALL_VENDORS),f=Object.values(m.FF).every(e=>p.some(t=>t.restriction_type===e)),g=(0,h.b7)({getCoreRowModel:(0,v.sC)(),columns:i,data:p,columnResizeMode:"onChange",manualPagination:!0}),R=()=>{t(!0)};return(0,r.jsxs)(n.jqI,{vertical:!0,className:"overflow-auto",children:[(0,r.jsxs)(_.Q$,{children:[(0,r.jsx)(n.LZC,{}),(0,r.jsx)(n.esZ,{title:x?'Each vendor must have a unique restriction type. When "Restrict all vendors" is active for any restriction type, no other restrictions can be added.':f?"Each purpose must have a unique restriction type. When all restriction types are active, no other restrictions can be added. Use the 'Edit' button to change the vendor restrictions on each type.":void 0,children:(0,r.jsx)(n.wpx,{type:"primary",onClick:R,disabled:x||f,"data-testid":"add-restriction-button",children:"Add restriction +"})})]}),u?(0,r.jsx)(_.I4,{rowHeight:36,numRows:3}):(0,r.jsx)(_.ZK,{tableInstance:g,emptyTableNotice:(0,r.jsx)(k,{onAdd:R})}),(0,r.jsx)(O,{isOpen:e,onClose:()=>{t(!1)},existingRestrictions:p,purposeId:l,configurationId:a})]})};var Z=()=>{let e=(0,s.useRouter)(),t=decodeURIComponent(e.query.configuration_id),i=decodeURIComponent(e.query.purpose_id),{data:h,isLoading:v}=(0,c.a4)(),{data:_}=(0,E.NZ)(t),m=(0,o.useMemo)(()=>null==h?void 0:h.purposes[i],[h,i]);return(0,r.jsxs)(l.Z,{title:"Consent Configuration",children:[(0,r.jsx)(a.Z,{heading:"Consent configuration",breadcrumbItems:[{title:"Consent settings",href:"/settings/consent"},{title:(null==_?void 0:_.name)||"Configuration"},{title:"TCF purpose ".concat(i)}]}),(0,r.jsxs)(n.vyj,{direction:"vertical",size:"middle",children:[(0,r.jsxs)(n.vyj,{direction:"vertical",size:"middle",children:[(0,r.jsx)(u.Z,{title:"TCF purpose ".concat(i).concat((null==m?void 0:m.name)?": ".concat(null==m?void 0:m.name):""),children:v?(0,r.jsxs)(n.jqI,{vertical:!0,className:"gap-1.5",children:[(0,r.jsx)(n.OdW,{height:"16px",width:"100%"}),(0,r.jsx)(n.OdW,{height:"16px",width:"100%"}),(0,r.jsx)(n.OdW,{height:"16px",width:"30%"})]}):!!m&&(0,r.jsx)(n.xvT,{fontSize:"sm",children:null==m?void 0:m.description})}),(0,r.jsx)(u.Z,{title:(null==_?void 0:_.name)||"Configuration",children:(0,r.jsx)(n.vyj,{direction:"vertical",className:"gap-3",children:(0,r.jsxs)(n.xvT,{fontSize:"sm",children:["Add restrictions to control how vendors process data for specific purposes. For each restriction, choose a restriction type. Then, decide whether the restriction applies to all vendors, specific vendors, or only to a limited set of allowed vendors. You can add multiple restrictions—they'll appear in the table below."," ",(0,r.jsx)(d.Z,{href:p.uh,children:"Learn more about publisher restrictions"})," ","in our docs."]})})})]}),(0,r.jsx)(U,{})]})]})}}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=77713)}),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[210],{53748:function(e,i,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/consent",function(){return t(96236)}])},59301:function(e,i,t){"use strict";var n=t(24246);let{Link:s}=t(39158).AntTypography;i.Z=e=>{let{children:i,...t}=e;return(0,n.jsx)(s,{target:"_blank",rel:"noopener noreferrer",...t,children:i})}},56358:function(e,i,t){"use strict";t.d(i,{q:function(){return s}});var n=t(24246);let s=(0,t(39158).IUT)({displayName:"TrashCanOutlineIcon",viewBox:"0 0 11 12",path:(0,n.jsx)("path",{d:"M4.5166 1.60859L4.1084 2.21875H7.22363L6.81543 1.60859C6.7832 1.56133 6.72949 1.53125 6.67148 1.53125H4.6584C4.60039 1.53125 4.54668 1.55918 4.51445 1.60859H4.5166ZM7.6748 1.03711L8.46328 2.21875H8.75977H9.79102H9.96289C10.2486 2.21875 10.4785 2.44863 10.4785 2.73438C10.4785 3.02012 10.2486 3.25 9.96289 3.25H9.79102V9.78125C9.79102 10.7309 9.02188 11.5 8.07227 11.5H3.25977C2.31016 11.5 1.54102 10.7309 1.54102 9.78125V3.25H1.36914C1.0834 3.25 0.853516 3.02012 0.853516 2.73438C0.853516 2.44863 1.0834 2.21875 1.36914 2.21875H1.54102H2.57227H2.86875L3.65723 1.03496C3.88066 0.701953 4.25664 0.5 4.6584 0.5H6.67148C7.07324 0.5 7.44922 0.701953 7.67266 1.03496L7.6748 1.03711ZM2.57227 3.25V9.78125C2.57227 10.1615 2.87949 10.4688 3.25977 10.4688H8.07227C8.45254 10.4688 8.75977 10.1615 8.75977 9.78125V3.25H2.57227ZM4.29102 4.625V9.09375C4.29102 9.28281 4.13633 9.4375 3.94727 9.4375C3.7582 9.4375 3.60352 9.28281 3.60352 9.09375V4.625C3.60352 4.43594 3.7582 4.28125 3.94727 4.28125C4.13633 4.28125 4.29102 4.43594 4.29102 4.625ZM6.00977 4.625V9.09375C6.00977 9.28281 5.85508 9.4375 5.66602 9.4375C5.47695 9.4375 5.32227 9.28281 5.32227 9.09375V4.625C5.32227 4.43594 5.47695 4.28125 5.66602 4.28125C5.85508 4.28125 6.00977 4.43594 6.00977 4.625ZM7.72852 4.625V9.09375C7.72852 9.28281 7.57383 9.4375 7.38477 9.4375C7.1957 9.4375 7.04102 9.28281 7.04102 9.09375V4.625C7.04102 4.43594 7.1957 4.28125 7.38477 4.28125C7.57383 4.28125 7.72852 4.43594 7.72852 4.625Z",fill:"currentColor"})})},77213:function(e,i,t){"use strict";t.d(i,{Z:function(){return g}});var n=t(24246),s=t(39158),r=t(88038),l=t.n(r),o=t(86677);t(27378);var a=t(25980),d=t(90867),c=t(42478),u=t(77830),p=()=>{let e=(0,o.useRouter)();return(0,n.jsx)(s.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,n.jsxs)(s.xuv,{children:[(0,n.jsxs)(s.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,n.jsx)(s.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,n.jsx)(s.wpx,{onClick:()=>{e.push(u.AD)},children:"Configure"})]}),(0,n.jsxs)(s.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},g=e=>{let{children:i,title:t,padded:r=!0,mainProps:u}=e,g=(0,a.hz)(),h=(0,o.useRouter)(),x="/privacy-requests"===h.pathname||"/datastore-connection"===h.pathname,m=!(g.flags.messagingConfiguration&&x),{data:v}=(0,c.JE)(void 0,{skip:m}),{data:f}=(0,d.PW)(void 0,{skip:m}),b=g.flags.messagingConfiguration&&(!v||!f)&&x;return(0,n.jsxs)(s.kCb,{"data-testid":t,direction:"column",h:"100vh",children:[(0,n.jsxs)(l(),{children:[(0,n.jsxs)("title",{children:["Fides Admin UI - ",t]}),(0,n.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,n.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,n.jsxs)(s.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:[b?(0,n.jsx)(p,{}):null,i]})]})}},58754:function(e,i,t){"use strict";var n=t(24246),s=t(39158),r=t(70788);i.Z=e=>{let{heading:i,breadcrumbItems:t,isSticky:l=!0,children:o,rightContent:a,style:d,...c}=e;return(0,n.jsxs)("div",{...c,style:l?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...d}:{paddingBottom:"24px",...d},children:[(0,n.jsxs)(s.jqI,{justify:"space-between",children:["string"==typeof i?(0,n.jsx)(s.lQT,{className:t||o?"pb-4":void 0,level:1,"data-testid":"page-heading",children:i}):i,a&&(0,n.jsx)("div",{"data-testid":"page-header-right-content",children:a})]}),!!t&&(0,n.jsx)(r.m,{className:o?"pb-4":void 0,items:t,"data-testid":"page-breadcrumb"}),o]})}},19904:function(e,i,t){"use strict";t.d(i,{Tg:function(){return l}});var n=t(24246),s=t(16134),r=t(31793);let l=e=>(0,s.C)(r.uu).filter(i=>e.includes(i)).length>0;i.ZP=e=>{let{scopes:i,children:t}=e;return l(i)?(0,n.jsx)(n.Fragment,{children:t}):null}},8133:function(e,i,t){"use strict";var n=t(24246),s=t(39158);i.Z=e=>{let{title:i,children:t,isOpen:r,onClose:l,modalContentProps:o,showCloseButton:a=!1,footer:d,...c}=e;return(0,n.jsxs)(s.u_l,{isOpen:r,onClose:l,isCentered:!0,scrollBehavior:"inside",size:"xl",id:"add-modal",...c,children:[(0,n.jsx)(s.ZAr,{}),(0,n.jsxs)(s.hzk,{textAlign:"left",p:0,"data-testid":"add-modal-content",...o,children:[a&&(0,n.jsx)(s.olH,{}),(0,n.jsx)(s.xBx,{p:0,children:(0,n.jsx)(s.xuv,{backgroundColor:"gray.50",px:6,py:4,border:"1px",borderColor:"gray.200",borderTopRadius:6,display:"flex",justifyContent:"space-between",alignItems:"center",children:(0,n.jsx)(s.X6q,{as:"h3",size:"sm",children:i})})}),(0,n.jsx)(s.fef,{pb:4,overflow:"auto",children:t}),d&&(0,n.jsx)(s.mzw,{children:d})]})]})}},70788:function(e,i,t){"use strict";t.d(i,{m:function(){return d}});var n=t(24246),s=t(39158),r=t(79894),l=t.n(r),o=t(27378);let{Text:a}=s.AntTypography,d=e=>{let{items:i,...t}=e,r=(0,o.useMemo)(()=>null==i?void 0:i.map((e,t)=>{let r=t===i.length-1,o={...e},d=o.onClick&&!o.href;return("string"==typeof o.title&&(o.title=(0,n.jsx)(a,{style:{color:"inherit",maxWidth:r?void 0:400},ellipsis:!r,id:r?"breadcrumb-current-page":void 0,children:o.title})),d)?o.title=(0,n.jsx)(s.wpx,{type:"text",size:"small",icon:o.icon,onClick:o.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:o.title}):(o.icon&&(o.title=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"anticon align-text-bottom",children:o.icon}),o.title]})),o.href&&o.title&&(o.title=(0,n.jsx)(l(),{href:o.href,className:"ant-breadcrumb-link",children:o.title}),delete o.href)),o}),[i]);return(0,n.jsx)(s.zrq,{items:r,...t})}},6675:function(e,i,t){"use strict";t.d(i,{ZS:function(){return o},a4:function(){return r}});var n=t(3228);let s=t(78780).u.injectEndpoints({endpoints:e=>({getPurposes:e.query({query:()=>"purposes"})})}),{useGetPurposesQuery:r}=s,l={purposes:{},special_purposes:{}},o=(0,n.P1)(s.endpoints.getPurposes.select(),e=>{let{data:i}=e;return i||l})},51263:function(e,i,t){"use strict";var n=t(24246),s=t(39158);i.Z=e=>{let{title:i,children:t,...r}=e;return(0,n.jsxs)(s.xuv,{backgroundColor:"var(--fidesui-bg-corinth)",borderRadius:"4px",padding:"3","data-testid":"setting-".concat(i),...r,children:[(0,n.jsx)(s.xvT,{as:"h3",fontSize:"md",fontWeight:"bold",lineHeight:5,color:"gray.700",mb:3,children:i}),t]})}},59512:function(e,i,t){"use strict";t.d(i,{Cu:function(){return o},Py:function(){return s},fj:function(){return l},uh:function(){return r}});var n=t(60240);let s=[1,3,4,5,6],r="https://ethyca.com/docs/tutorials/consent-management/consent-management-configuration/configure-tcf#vendor-overrides",l={[n.FF.PURPOSE_RESTRICTION]:"Purpose restriction",[n.FF.REQUIRE_CONSENT]:"Require consent",[n.FF.REQUIRE_LEGITIMATE_INTEREST]:"Require legitimate interest"},o={[n.PY.RESTRICT_ALL_VENDORS]:"Restrict all vendors",[n.PY.RESTRICT_SPECIFIC_VENDORS]:"Restrict specific vendors",[n.PY.ALLOW_SPECIFIC_VENDORS]:"Allow specific vendors"}},42478:function(e,i,t){"use strict";t.d(i,{FU:function(){return d},JE:function(){return s},Ki:function(){return u},SU:function(){return p},W:function(){return g},h9:function(){return r},jc:function(){return n},qt:function(){return a},sn:function(){return c}});let{useGetEmailInviteStatusQuery:n,useGetActiveMessagingProviderQuery:s,useCreateMessagingConfigurationMutation:r,useCreateMessagingConfigurationSecretsMutation:l,useGetMessagingConfigurationDetailsQuery:o,useGetMessagingConfigurationsQuery:a,useGetMessagingConfigurationByKeyQuery:d,useUpdateMessagingConfigurationByKeyMutation:c,useUpdateMessagingConfigurationSecretsByKeyMutation:u,useCreateTestConnectionMessageMutation:p,useDeleteMessagingConfigurationByKeyMutation:g}=t(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,i,t,n)=>{let s=await n({url:"messaging/default/active"});return s.error&&404===s.error.status?{data:null}:s},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"]})})})},60325:function(e,i,t){"use strict";t.d(i,{DD:function(){return o},Go:function(){return a},TK:function(){return s},Uv:function(){return c},k1:function(){return r},y3:function(){return u}});var n=t(60240);let s=e=>{var i;return null!==(i=null==e?void 0:e.filter(e=>e.selected).map(e=>e.id))&&void 0!==i?i:[]},r=e=>{var i;return null!==(i=null==e?void 0:e.filter(e=>e.selected))&&void 0!==i?i:[]},l=[{language:n.eU.EN,is_default:!0,title:"Title",description:"Description",accept_button_label:"Accept",reject_button_label:"Reject",save_button_label:"Save",acknowledge_button_label:"OK",privacy_preferences_link_label:"Privacy Preferences"}],o={name:"",disabled:!1,dismissable:!0,allow_language_selection:!1,show_layer1_notices:!1,layer1_button_options:n.Of.OPT_IN_OPT_OUT,regions:[],translations:l,auto_detect_language:!0,auto_subdomain_cookie_deletion:!0,cookie_deletion_based_on_host_domain:!0,allow_vendor_asset_disclosure:!1,asset_disclosure_include_types:[]},a=(e,i)=>{let t=i.find(i=>i.id===e.language);return t?t.name:e.language},d=e=>{var i,t,n,s,r,l,o,a,d;let{language:c,is_default:u,accept_button_label:p,reject_button_label:g}=e;return{language:c,is_default:u,accept_button_label:p,reject_button_label:g,title:e.title,description:e.description,acknowledge_button_label:null!==(i=e.acknowledge_button_label)&&void 0!==i?i:void 0,banner_title:null!==(t=e.banner_title)&&void 0!==t?t:void 0,banner_description:null!==(n=e.banner_description)&&void 0!==n?n:void 0,purpose_header:null!==(s=e.purpose_header)&&void 0!==s?s:void 0,privacy_policy_link_label:null!==(r=e.privacy_policy_link_label)&&void 0!==r?r:void 0,privacy_policy_url:null!==(l=e.privacy_policy_url)&&void 0!==l?l:void 0,privacy_preferences_link_label:null!==(o=e.privacy_preferences_link_label)&&void 0!==o?o:void 0,save_button_label:null!==(a=e.save_button_label)&&void 0!==a?a:void 0,modal_link_label:null!==(d=e.modal_link_label)&&void 0!==d?d:void 0}},c=e=>{let{created_at:i,updated_at:t,privacy_notices:s,origin:r,id:l,...o}=e,a={...o,privacy_notice_ids:s?s.map(e=>e.id):[],translations:e.translations?e.translations.map(e=>d(e)):[]};return(a.component===n.re.BANNER_AND_MODAL||a.component===n.re.MODAL)&&a.allow_vendor_asset_disclosure&&(!a.asset_disclosure_include_types||0===a.asset_disclosure_include_types.length)&&(a.allow_vendor_asset_disclosure=!1),a},u=e=>e===n.re.PRIVACY_CENTER?{title:{included:!0,required:!0},description:{included:!0,required:!0},save_button_label:{included:!0,required:!0},accept_button_label:{included:!0,required:!0},reject_button_label:{included:!0,required:!0},privacy_policy_link_label:{included:!0},privacy_policy_url:{included:!0},modal_link_label:{included:!0}}:e===n.re.MODAL?{title:{included:!0,required:!0},description:{included:!0,required:!0},accept_button_label:{included:!0,required:!0},reject_button_label:{included:!0,required:!0},save_button_label:{included:!0,required:!0},acknowledge_button_label:{included:!0,required:!0},privacy_policy_link_label:{included:!0},privacy_policy_url:{included:!0},privacy_preferences_link_label:{included:!0},modal_link_label:{included:!0}}:e===n.re.BANNER_AND_MODAL?{title:{included:!0,required:!0},banner_title:{included:!0},description:{included:!0,required:!0},banner_description:{included:!0},accept_button_label:{included:!0,required:!0},reject_button_label:{included:!0,required:!0},save_button_label:{included:!0,required:!0},acknowledge_button_label:{included:!0,required:!0},privacy_policy_link_label:{included:!0},privacy_policy_url:{included:!0},privacy_preferences_link_label:{included:!0,required:!0},modal_link_label:{included:!0}}:e===n.re.TCF_OVERLAY?{title:{included:!0,required:!0},banner_title:{included:!0},description:{included:!0,required:!0},banner_description:{included:!0},purpose_header:{included:!0},accept_button_label:{included:!0,required:!0},reject_button_label:{included:!0,required:!0},save_button_label:{included:!0,required:!0},acknowledge_button_label:{included:!0,required:!0},privacy_policy_link_label:{included:!0},privacy_policy_url:{included:!0},privacy_preferences_link_label:{included:!0,required:!0},modal_link_label:{included:!0}}:{title:{included:!0,required:!0},description:{included:!0,required:!0},accept_button_label:{included:!0,required:!0},reject_button_label:{included:!0,required:!0},save_button_label:{included:!0,required:!0},acknowledge_button_label:{included:!0,required:!0},privacy_policy_link_label:{included:!0},privacy_policy_url:{included:!0},privacy_preferences_link_label:{included:!0,required:!0},modal_link_label:{included:!0}}},96236:function(e,i,t){"use strict";t.r(i),t.d(i,{default:function(){return Q}});var n=t(24246),s=t(39158),r=t(34090),l=t(27378),o=t(16134),a=t(25980),d=t(812),c=t(77213),u=t(58754),p=t(6675),g=t(46628),h=t(7426),x=t(40324);let m=e=>{let{children:i,purpose:t,endCol:r}=e;return(0,n.jsx)(s.kCb,{flex:"1",justifyContent:"center",alignItems:"center",borderLeft:"solid 1px",borderRight:r?"solid 1px":"unset",borderColor:"gray.200",height:"100%",minWidth:"36px",children:[1,3,4,5,6].includes(t)?null:(0,n.jsx)(s.xuv,{children:i})})};var v=()=>{let{values:e,setFieldValue:i}=(0,r.u6)(),{purposes:t}=(0,o.C)(p.ZS);return(0,n.jsx)(r.F2,{name:"purposeOverrides",render:()=>(0,n.jsxs)(s.kCb,{flexDirection:"column",minWidth:"944px",children:[(0,n.jsxs)(s.kCb,{width:"100%",border:"solid 1px",borderColor:"gray.200",backgroundColor:"gray.50",height:"36px",children:[(0,n.jsx)(s.kCb,{width:"600px",pl:"4",fontSize:"xs",fontWeight:"medium",lineHeight:"4",alignItems:"center",borderRight:"solid 1px",borderColor:"gray.200",children:"TCF purpose"}),(0,n.jsx)(s.kCb,{flex:"1",alignItems:"center",borderRight:"solid 1px",borderColor:"gray.200",minWidth:"36px",children:(0,n.jsx)(s.xvT,{pl:"4",fontSize:"xs",fontWeight:"medium",lineHeight:"4",children:"Allowed"})}),(0,n.jsx)(s.kCb,{flex:"1",alignItems:"center",borderRight:"solid 1px",borderColor:"gray.200",children:(0,n.jsx)(s.xvT,{pl:"4",fontSize:"xs",fontWeight:"medium",lineHeight:"4",children:"Consent"})}),(0,n.jsx)(s.kCb,{flex:"1",alignItems:"center",children:(0,n.jsx)(s.xvT,{pl:"4",fontSize:"xs",fontWeight:"medium",lineHeight:"4",children:"Legitimate interest"})})]}),e.purposeOverrides.map((r,l)=>(0,n.jsxs)(s.kCb,{width:"100%",height:"36px",alignItems:"center",borderBottom:"solid 1px",borderColor:"gray.200",backgroundColor:"#fff",children:[(0,n.jsxs)(s.kCb,{width:"600px",borderLeft:"solid 1px",borderColor:"gray.200",p:0,alignItems:"center",height:"100%",pl:"4",fontSize:"xs",fontWeight:"normal",lineHeight:"4",children:["Purpose ",r.purpose,": ",t[r.purpose].name]}),(0,n.jsx)(s.kCb,{flex:"1",justifyContent:"center",alignItems:"center",borderLeft:"solid 1px",borderColor:"gray.200",height:"100%",children:(0,n.jsx)(s.xuv,{children:(0,n.jsx)(x.w8,{name:"purposeOverrides[".concat(l,"].is_included"),onChange:e=>{e||(i("purposeOverrides[".concat(l,"].is_consent"),!1),i("purposeOverrides[".concat(l,"].is_legitimate_interest"),!1))}})})}),(0,n.jsx)(m,{purpose:r.purpose,children:(0,n.jsx)(x.w8,{isDisabled:!e.purposeOverrides[l].is_included||e.purposeOverrides[l].is_legitimate_interest,name:"purposeOverrides[".concat(l,"].is_consent")})}),(0,n.jsx)(m,{purpose:r.purpose,endCol:!0,children:(0,n.jsx)(x.w8,{isDisabled:!e.purposeOverrides[l].is_included||e.purposeOverrides[l].is_consent,name:"purposeOverrides[".concat(l,"].is_legitimate_interest")})})]},r.purpose))]})})},f=t(59301),b=e=>{let{name:i,enabled:t}=e;return(0,n.jsxs)(s.Kqy,{spacing:2,fontSize:"sm",lineHeight:"5",fontWeight:"medium",color:"gray.700",children:[(0,n.jsxs)(s.xvT,{children:[i," status"," ",t?(0,n.jsx)(s.j8w,{color:"success",children:"Enabled"}):(0,n.jsx)(s.j8w,{color:"error",children:"Disabled"})]}),(0,n.jsxs)(s.xvT,{children:["To ",t?"disable":"enable"," ",i,", please contact your Fides administrator or"," ",(0,n.jsx)(f.Z,{href:"mailto:support@ethyca.com",children:"Ethyca support"}),"."]})]})},_=t(46238),j=e=>{var i,t;let{label:l,options:o,layout:a,defaultFirstSelected:d=!0,...c}=e,[u,p]=(0,r.U$)(c),g={...u,value:null!==(i=u.value)&&void 0!==i?i:""},h=!!(p.touched&&p.error),m=d?o[0]:void 0,v=null!==(t=o.find(e=>e.value===g.value))&&void 0!==t?t:m,f=e=>{g.onChange(c.name)(e.target.value)};return"stacked"===a?(0,n.jsxs)(s.NIc,{isInvalid:h,children:[(0,n.jsxs)(s.jqI,{className:"w-fit",children:[l?(0,n.jsx)(x.__,{children:l}):null,(0,n.jsx)(s.y02.Group,{onChange:f,value:null==v?void 0:v.value,"data-testid":"input-".concat(g.name),children:(0,n.jsx)(s.jqI,{className:"flex-col gap-3",children:o.map(e=>{let{value:i,label:t,tooltip:r}=e;return(0,n.jsx)(s.y02,{value:i,"data-testid":"option-".concat(i),children:(0,n.jsxs)(s.jqI,{className:"items-center gap-2",children:[(0,n.jsx)(s.xvT,{fontSize:"sm",fontWeight:"medium",children:t}),r?(0,n.jsx)(_.b,{label:r}):null]})},i)})})})]}),(0,n.jsx)(x.Bc,{isInvalid:h,message:p.error,fieldName:g.name})]}):(0,n.jsxs)(s.NIc,{isInvalid:h,children:[(0,n.jsxs)(s.rjZ,{templateColumns:"1fr 3fr",children:[(0,n.jsx)(x.__,{children:l}),(0,n.jsx)(s.y02.Group,{onChange:f,value:null==v?void 0:v.value,"data-testid":"input-".concat(g.name),children:(0,n.jsx)(s.jqI,{children:o.map(e=>(0,n.jsx)(s.y02,{value:e.value,"data-testid":"option-".concat(e.value),children:e.label},e.value))})})]}),(0,n.jsx)(x.Bc,{isInvalid:h,message:p.error,fieldName:g.name})]})},y=t(60240),C=t(51263);let w=e=>{let{title:i,children:t}=e;return(0,n.jsxs)(s.Kqy,{spacing:3,mb:3,"data-testid":"section-".concat(i),children:[(0,n.jsx)(s.xvT,{fontSize:"sm",fontWeight:"bold",lineHeight:5,color:"gray.700",children:i}),t]})};var T=()=>{let{tcf:e}=(0,a.hz)(),i=!!(0,o.C)(h.D2).enabled,{values:t,setFieldValue:l}=(0,r.u6)(),d=!!t.gpp.us_approach;return(0,n.jsx)(C.Z,{title:"Global Privacy Platform",children:(0,n.jsxs)(s.Kqy,{spacing:6,children:[(0,n.jsx)(b,{name:"GPP",enabled:i}),i?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(w,{title:"GPP U.S.",children:(0,n.jsx)(j,{name:"gpp.us_approach",layout:"stacked",defaultFirstSelected:!1,options:[{label:"Enable U.S. National",value:y.en.NATIONAL,tooltip:"When US National is selected, Fides will present the same privacy notices to all consumers located anywhere in the United States."},{label:"Enable U.S. State-by-State",value:y.en.STATE,tooltip:"When state-by-state is selected, Fides will only present consent to consumers and save their preferences if they are located in a state that is supported by the GPP. The consent options presented to consumers will vary depending on the regulations in each state."},{label:"Enable US National and State-by-State notices",value:y.en.ALL,tooltip:"When enabled, Fides can be configured to serve the National and U.S. state notices. This mode is intended to provide consent coverage to U.S. states with new privacy laws where GPP support lags behind the effective date of state laws."}]})}),d?(0,n.jsxs)(w,{title:"MSPA",children:[(0,n.jsx)(x.Xl,{name:"gpp.mspa_covered_transactions",label:"All transactions covered by MSPA",tooltip:"When selected, the Fides CMP will communicate to downstream vendors that all preferences are covered under the MSPA.",onChange:e=>{e||(l("gpp.mspa_service_provider_mode",!1),l("gpp.mspa_opt_out_option_mode",!1))}}),(0,n.jsx)(x.w8,{label:"Enable MSPA service provider mode",name:"gpp.mspa_service_provider_mode",variant:"switchFirst",tooltip:"Enable service provider mode if you do not engage in any sales or sharing of personal information.",isDisabled:!!t.gpp.mspa_opt_out_option_mode||!t.gpp.mspa_covered_transactions}),(0,n.jsx)(x.w8,{label:"Enable MSPA opt-out option mode",name:"gpp.mspa_opt_out_option_mode",variant:"switchFirst",tooltip:"Enable opt-out option mode if you engage or may engage in the sales or sharing of personal information, or process any information for the purpose of targeted advertising.",isDisabled:!!t.gpp.mspa_service_provider_mode||!t.gpp.mspa_covered_transactions})]}):null]}):null,e?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.izJ,{color:"gray.200"}),(0,n.jsxs)(w,{title:"GPP Europe",children:[(0,n.jsx)(s.xvT,{fontSize:"sm",fontWeight:"medium",children:"Configure TCF string for Global Privacy Platform"}),(0,n.jsx)(x.w8,{label:"Enable TC string",name:"gpp.enable_tcfeu_string",variant:"switchFirst",tooltip:"When enabled, the GPP API will include a TCF EU consent string for users who are in regions where TCF applies."})]})]}):null]})})},S=t(64781),k=t(60325),q=()=>{var e,i,t;let{tcf:l}=(0,a.hz)(),{values:o,setFieldValue:d}=(0,r.u6)(),{data:c,isLoading:u}=(0,S.gT)(),p=[...(0,k.k1)(null!==(i=null==c?void 0:c.locations)&&void 0!==i?i:[]),...(0,k.k1)(null!==(t=null==c?void 0:c.location_groups)&&void 0!==t?t:[])].sort((e,i)=>e.name<i.name?-1:1);return l?(0,n.jsxs)(C.Z,{title:"Publisher settings",children:[(0,n.jsx)(s.AntTypography.Paragraph,{className:"mb-3",children:"Specify the country in which your organization operates for TCF compliance. This setting will determine the 'Publisher Country Code ' transmitted in the Transparency and Consent (TC) Data."}),(0,n.jsx)(s.PPS.Item,{label:"Publisher country",htmlFor:"publisher_country_code",children:(0,n.jsx)(s.AOh,{"data-testid":"input-publisher_settings.publisher_country_code",id:"publisher_country_code",loading:u,allowClear:!0,options:(0,s.Ky_)(null==p?void 0:p.map(e=>e.id)),placeholder:"Select a country",value:null===(e=o.tcfPublisherSettings.publisher_country_code)||void 0===e?void 0:e.replace("_","-").toUpperCase(),onChange:e=>d("tcfPublisherSettings.publisher_country_code",null==e?void 0:e.toLowerCase()),className:"!w-80"})})]}):null},E=t(52955),N=t(71795),I=t(59512),P=t(55484),O=t(8133),F=t(31883);let L=P.Ry().shape({name:P.Z_().required().label("Name")}),R=e=>{let{isOpen:i,onClose:t,onSuccess:l}=e,o=(0,s.pmc)(),[a]=(0,E.LK)(),c=async e=>{let i=await a({name:e.name});(0,F.D4)(i)?o((0,g.Vo)((0,d.e$)(i.error))):(o((0,g.t5)("Successfully created TCF configuration")),null==l||l(i.data.id),t())};return(0,n.jsx)(O.Z,{title:"Create a new TCF configuration",isOpen:i,onClose:t,children:(0,n.jsx)(r.J9,{initialValues:{name:""},onSubmit:c,validationSchema:L,children:e=>{let{isValid:i,dirty:l}=e;return(0,n.jsx)(r.l0,{children:(0,n.jsxs)(s.vyj,{direction:"vertical",size:"small",className:"w-full",children:[(0,n.jsx)(s.xvT,{children:"TCF configurations allow you to define unique sets of publisher restrictions. These configurations can be added to privacy experiences."}),(0,n.jsx)(x.j0,{id:"name",name:"name",label:"Name",isRequired:!0,variant:"stacked"}),(0,n.jsxs)(s.vyj,{className:"w-full justify-end pt-6",children:[(0,n.jsx)(s.wpx,{onClick:t,children:"Cancel"}),(0,n.jsx)(s.wpx,{type:"primary",htmlType:"submit",disabled:!i||!l,"data-testid":"save-config-button",children:"Save"})]})]})})}})})};var A=t(79894),M=t.n(A);let z=e=>{let{width:i,style:t,borderLeft:r=!1,borderRight:l=!1,...o}=e;return(0,n.jsx)(s.jqI,{align:"center",className:"h-full px-4",...o,style:{borderLeft:r?"solid 1px":"none",borderRight:l?"solid 1px":"none",borderColor:"var(--ant-color-border)",width:i,...t},role:"cell"})},D=e=>{let{width:i,style:t,borderLeft:r=!1,children:l,...o}=e;return(0,n.jsx)(s.jqI,{align:"center",role:"columnheader",className:"px-4",...o,style:{borderLeft:r?"solid 1px":"none",borderColor:"var(--ant-color-border)",fontWeight:500,whiteSpace:"nowrap",width:i,...t},children:l})},W=e=>{let{isHeader:i=!1,isLastRow:t=!1,style:r,...l}=e;return(0,n.jsx)(s.jqI,{role:i?"rowheader":"row",className:"h-9 w-full",...l,style:{backgroundColor:i?"var(--fidesui-bg-default)":void 0,borderBottom:t?"none":"solid 1px",borderColor:"var(--ant-color-border)",...r}})},Z=e=>{let{config:i,isLoading:t,style:r,...l}=e,{purposes:a}=(0,o.C)(p.ZS);return(0,n.jsxs)(s.jqI,{vertical:!0,...l,style:{maxWidth:"1200px",border:"solid 1px",borderColor:"var(--ant-color-border)",backgroundColor:"var(--ant-color-bg-base)",fontSize:"12px",...r},"aria-label":"Publisher restrictions table",role:"table","data-testid":"publisher-restrictions-table",children:[(0,n.jsxs)(W,{isHeader:!0,style:{width:"100%"},children:[(0,n.jsx)(D,{width:"600px",children:"TCF purpose"}),(0,n.jsxs)(D,{flex:1,gap:3,borderLeft:!0,children:["Restrictions",(0,n.jsx)(_.b,{label:"Restrictions control how vendors are permitted to process data for specific purposes. Fides supports three restriction types: Purpose Restriction to completely disallow data processing for a purpose, Require Consent to allow processing only with explicit user consent, and Require Legitimate Interest to allow processing based on legitimate business interest unless the user objects."})]}),(0,n.jsxs)(D,{width:"100px",gap:3,borderLeft:!0,children:["Flexible",(0,n.jsx)(_.b,{label:'Indicates whether the legal basis for this purpose can be overridden by publisher restrictions. If marked "No," the purpose has a fixed legal basis defined by the TCF and cannot be changed.'})]}),(0,n.jsx)(D,{width:"100px",borderLeft:!0,children:"Actions"})]}),Object.values(a).map((e,r)=>(0,n.jsxs)(W,{isLastRow:r===Object.values(a).length-1,children:[(0,n.jsxs)(z,{width:"600px",children:["Purpose ",e.id,": ",e.name]}),(0,n.jsx)(z,{flex:1,borderLeft:!0,"data-testid":"restriction-type-cell-".concat(e.id),children:t?(0,n.jsx)(s.OdW,{height:"16px",width:"100%"}):(()=>{var t;let r=(null==i?void 0:null===(t=i.restriction_types_per_purpose)||void 0===t?void 0:t[e.id])||[];return 0===r.length?"none":1===r.length?(0,n.jsx)(s.xvT,{size:"sm",whiteSpace:"nowrap",children:I.fj[r[0]]}):(0,n.jsxs)(s.xvT,{children:[r.length," restrictions"]})})()}),(0,n.jsx)(z,{width:"100px",borderLeft:!0,children:I.Py.includes(e.id)?(0,n.jsx)(s.j8w,{color:"error","data-testid":"flexibility-tag-".concat(e.id),children:"No"}):(0,n.jsx)(s.j8w,{color:"success","data-testid":"flexibility-tag-".concat(e.id),children:"Yes"})}),(0,n.jsx)(z,{width:"100px",borderLeft:!0,children:(0,n.jsx)(M(),{href:"/settings/consent/".concat(null==i?void 0:i.id,"/").concat(e.id),passHref:!0,legacyBehavior:!0,children:(0,n.jsx)(s.wpx,{size:"small","data-testid":"edit-restriction-btn-".concat(e.id),children:"Edit"})})})]},e.id))]})};var H=t(56358),V=t(19904);let U=()=>(0,n.jsxs)(s.vyj,{direction:"vertical",size:"small",children:[(0,n.jsx)(s.OdW,{width:"100%",className:"h-4"}),(0,n.jsx)(s.OdW,{width:"100%",className:"h-4"}),(0,n.jsx)(s.OdW,{width:"100%",className:"h-4"})]}),B=e=>{let{searchResults:i,selectedConfigId:t,handleSelection:r,userCanDeleteConfigs:l,onDeleteOpen:o,setConfigToDelete:a}=e;return(0,n.jsx)(s.y02.Group,{onChange:e=>r(e.target.value),value:t,className:"flex flex-col gap-2",children:i.map(e=>(0,n.jsxs)(s.jqI,{className:l?"justify-between":"justify-start","data-testid":"tcf-config-item-".concat(e.id),children:[(0,n.jsx)(s.y02,{value:e.id,name:"tcf-config-id","data-testid":"tcf-config-item",children:(0,n.jsx)(s.xvT,{className:"text-sm",children:e.name})}),l&&(0,n.jsx)(s.wpx,{type:"text",size:"small","aria-label":"Delete",icon:(0,n.jsx)(H.q,{fontSize:16}),onClick:i=>{i.stopPropagation(),a(e),o()},"data-testid":"delete-config-button"})]},e.id))})},G=e=>{let i,{searchTerm:t,setSearchTerm:r,searchResults:o,selectedConfigId:a,handleSelection:d,userCanCreateConfigs:c,userCanDeleteConfigs:u,modalOnOpen:p,onDeleteOpen:g,setConfigToDelete:h,isLoading:x,setDropdownOpen:m,configurations:v}=e,[f,b]=(0,l.useState)(a);return(0,l.useEffect)(()=>{b(a)},[a]),i=x?(0,n.jsx)(U,{}):0===o.length?(0,n.jsx)(s.xvT,{className:"text-center",children:"No configurations found."}):(0,n.jsx)(B,{searchResults:o,selectedConfigId:f,handleSelection:e=>{b(e)},userCanDeleteConfigs:u,onDeleteOpen:g,setConfigToDelete:h}),(0,n.jsxs)(s.V4A,{title:"TCF configurations",className:"min-w-[300px]",extra:(0,n.jsx)(s.wpx,{type:"text",size:"small","aria-label":"Close",icon:(0,n.jsx)(s.Two,{}),onClick:()=>m(!1),"data-testid":"close-config-dropdown"}),style:{boxShadow:"var(--ant-box-shadow)"},children:[v.length>10&&(0,n.jsx)(s.BZy,{size:"sm",children:(0,n.jsx)(s.uFc,{className:"mb-4",placeholder:"Search...",onChange:e=>r(e.target.value),value:t})}),i,(0,n.jsxs)(s.jqI,{gap:"small",className:"mt-4",children:[c&&(0,n.jsx)(s.wpx,{size:"small",onClick:()=>{p(),m(!1)},className:"flex-1","data-testid":"create-config-button",children:"+ Create"}),(0,n.jsx)(s.wpx,{size:"small",onClick:()=>d(f),className:"flex-1","data-testid":"apply-config-button",disabled:f===a,children:"Apply"})]})]})},K=e=>(0,n.jsx)(G,{...e}),$=e=>{var i;let{selectedConfigId:t,configurations:r,isLoading:o=!1,onConfigurationSelect:a,onConfigurationDelete:c}=e,u=(0,V.Tg)([y.Sh.PRIVACY_EXPERIENCE_CREATE]),p=(0,V.Tg)([y.Sh.PRIVACY_EXPERIENCE_CREATE]),g=(0,s.pmc)({id:"tcf-config-toast"}),[h]=(0,E.Cm)(),{isOpen:x,onOpen:m,onClose:v}=(0,s.qY0)(),{isOpen:f,onOpen:b,onClose:_}=(0,s.qY0)(),[j,C]=(0,l.useState)(""),[w,T]=(0,l.useState)(),[S,k]=(0,l.useState)(!1),q=(0,l.useMemo)(()=>j?r.filter(e=>e.name.toLowerCase().includes(j.toLowerCase())):r,[r,j]),N=(0,l.useMemo)(()=>r.find(e=>e.id===t),[r,t]),I=null!==(i=null==N?void 0:N.name)&&void 0!==i?i:"Select Configuration",P=e=>{a(e),k(!1)},O=async e=>{try{await h(e).unwrap(),null==c||c(e),T(void 0),_(),g({status:"success",description:'Configuration "'.concat(null==w?void 0:w.name,'" was successfully deleted.')})}catch(e){g({status:"error",description:(0,d.e$)(e,"A problem occurred while deleting the configuration.")})}};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.S0p,{open:S,onOpenChange:k,trigger:["click"],overlayStyle:{zIndex:999},dropdownRender:()=>K({searchTerm:j,setSearchTerm:C,searchResults:q,selectedConfigId:t,handleSelection:P,userCanCreateConfigs:u,userCanDeleteConfigs:p,modalOnOpen:m,onDeleteOpen:b,setConfigToDelete:T,isLoading:o,setDropdownOpen:k,configurations:r}),children:(0,n.jsx)(s.wpx,{icon:(0,n.jsx)(s.v4q,{}),iconPosition:"end","data-testid":"tcf-config-dropdown-trigger",children:I})}),(0,n.jsx)(R,{isOpen:x,onClose:v,onSuccess:e=>{a(e)}}),(0,n.jsx)(s.cVQ,{isOpen:f,onClose:()=>{T(void 0),_()},onConfirm:()=>{w&&O(w.id)},title:"Delete configuration",message:"Are you sure you want to delete this configuration? This action cannot be undone."})]})};var Y=t(32885);let X=e=>{let{defaultChecked:i,onChange:t,...r}=e,o=(0,s.pmc)(),[a,c]=(0,l.useState)(i),[u,p]=(0,l.useState)(!1),{isLoading:x}=(0,Y.x8)(),[m,{isLoading:v}]=(0,h.L)(),[f]=(0,Y.M7)(),{data:b}=(0,Y.n3)(void 0,{skip:x}),j=async e=>{let i=await m({consent:{override_vendor_purposes:e}});e&&b&&await f(b.map(e=>({...e,is_included:!0,required_legal_basis:void 0}))),(i=>{if(o.closeAll(),null==t||t(e),(0,F.D4)(i)){let e=(0,d.e$)(i.error,"An unexpected error occurred while saving vendor override settings. Please try again.");null==t||t(!1),o((0,g.Vo)(e))}})(i)};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(s.vyj,{direction:"vertical",size:"small",children:[(0,n.jsx)(s.xvT,{children:"Configure overrides for TCF related purposes."}),(0,n.jsxs)(s.vyj,{size:"small",children:[(0,n.jsx)(s.rAg,{size:"small",disabled:v,loading:v,...r,checked:a,defaultChecked:i,onClick:e=>{e?(c(e),j(e)):p(!0)},"data-testid":"tcf-override-toggle"}),(0,n.jsx)(s.xvT,{children:"Override vendor purposes"}),(0,n.jsx)(_.b,{label:"Toggle on if you want to globally change any flexible legal bases or remove TCF purposes from your CMP"})]})]}),(0,n.jsx)(s.cVQ,{isOpen:u,onClose:()=>p(!1),onConfirm:()=>{c(!1),j(!1),p(!1)},title:"Disable Vendor Overrides",message:"Are you sure you want to disable vendor overrides? Clicking 'Continue' will immediately remove any custom configurations you have set for TCF purposes for all experiences."})]})},J=e=>{var i;let{isTCFOverrideEnabled:t}=e,[r,o]=(0,l.useState)(t),[a,d]=(0,l.useState)(!1),[c,u]=(0,N._)("selectedTCFConfigId",null),{data:p,isLoading:g}=(0,E.LS)({page:1,size:50},{skip:!t}),{data:h,isFetching:x}=(0,E.NZ)(c||"",{skip:!c});return(0,l.useEffect)(()=>{var e,i;!g&&(null==p?void 0:null===(e=p.items)||void 0===e?void 0:e.length)&&!c&&u(p.items[0].id),g||!c||(null==p?void 0:null===(i=p.items)||void 0===i?void 0:i.length)||u(null)},[g,null==p?void 0:p.items,c,u]),(0,n.jsxs)(C.Z,{title:"Publisher restrictions",fontSize:"sm",children:[(0,n.jsxs)(s.vyj,{direction:"vertical",size:"small",style:{width:"100%"},children:[(0,n.jsx)(X,{defaultChecked:r,onChange:e=>o(e)}),r&&(0,n.jsxs)(n.Fragment,{children:[g&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.OdW,{height:"20px"}),(0,n.jsx)(s.OdW,{height:"20px"}),(0,n.jsx)(s.OdW,{height:"32px",width:"200px"})]}),!g&&(null==p?void 0:null===(i=p.items)||void 0===i?void 0:i.length)?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.xvT,{children:"The table below allows you to adjust which TCF purposes you allow as part of your user facing notices and business activities."}),(0,n.jsxs)(s.xvT,{children:["To configure this section, select a TCF purpose to edit the restriction type and vendors."," ",(0,n.jsx)(f.Z,{href:I.uh,children:"Learn more about publisher restrictions"})," ","in our docs."]}),(0,n.jsx)($,{selectedConfigId:c||"",configurations:(null==p?void 0:p.items)||[],onConfigurationSelect:u})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(s.xvT,{children:['To define custom publisher restrictions select "create configuration" below.'," ",(0,n.jsx)(f.Z,{href:I.uh,children:"Learn more about publisher restrictions"})," ","in our docs."]}),(0,n.jsx)(s.wpx,{onClick:()=>d(!0),"data-testid":"create-config-button",children:"Create configuration +"})]})]})]}),(0,n.jsx)(R,{isOpen:a,onClose:()=>d(!1),onSuccess:e=>{u(e)}}),r&&c&&(0,n.jsx)(Z,{className:"mt-3",config:h,isLoading:x})]})};var Q=()=>{var e,i;let{isLoading:t}=(0,Y.x8)(),{tcf:x}=(0,a.hz)(),{data:m,isLoading:f}=(0,Y.n3)(void 0,{skip:t||!x}),[_,{isLoading:j}]=(0,Y.M7)(),{data:w,isLoading:S}=(0,h.tB)({api_set:!0}),{data:k,isLoading:E}=(0,h.tB)({api_set:!1}),[N]=(0,h.L)(),I=(0,o.C)(h.D2),P=(0,o.C)(h.Yh),O=(0,l.useMemo)(()=>w&&(null==w?void 0:w.consent)&&"override_vendor_purposes"in w.consent?w.consent.override_vendor_purposes:!!k&&null!=k&&!!k.consent&&"override_vendor_purposes"in k.consent&&k.consent.override_vendor_purposes,[w,k]),{isLoading:F}=(0,p.a4)(),L=(0,s.pmc)(),R=async e=>{var i;let t=e=>{if(L.closeAll(),(0,d.D4)(e)){let i=(0,d.e$)(e.error,"An unexpected error occurred while saving. Please try again.");L((0,g.Vo)(i))}else L((0,g.t5)("Settings saved successfully"))},n=[...e.purposeOverrides.map(e=>{let i;return e.is_consent&&(i=y.I$.CONSENT),e.is_legitimate_interest&&(i=y.I$.LEGITIMATE_INTERESTS),{purpose:e.purpose,is_included:e.is_included,required_legal_basis:i}})];if(O){let e=await _(n);if((0,d.D4)(e)){t(e);return}}let{enabled:s,...r}=e.gpp;t(await N({gpp:r,plus_consent_settings:{tcf_publisher_country_code:null!==(i=e.tcfPublisherSettings.publisher_country_code)&&void 0!==i?i:null}}))},A=(0,l.useMemo)(()=>({purposeOverrides:m?m.map(e=>({purpose:e.purpose,is_included:e.is_included,is_consent:e.required_legal_basis===y.I$.CONSENT,is_legitimate_interest:e.required_legal_basis===y.I$.LEGITIMATE_INTERESTS})):[],gpp:I,tcfPublisherSettings:{publisher_country_code:P.tcf_publisher_country_code}}),[m,I,P]),M=(0,l.useMemo)(()=>(null==m?void 0:m.some(e=>!e.is_included||e.required_legal_basis===y.I$.CONSENT||e.required_legal_basis===y.I$.LEGITIMATE_INTERESTS))||!1,[m]),z=null===(i=(0,a.hz)())||void 0===i?void 0:null===(e=i.flags)||void 0===e?void 0:e.publisherRestrictions;return(0,n.jsx)(c.Z,{title:"Consent Configuration",children:t||F||f||S||E?(0,n.jsx)(s.kCb,{justifyContent:"center",alignItems:"center",height:"100%",children:(0,n.jsx)(s.$jN,{})}):(0,n.jsxs)(s.xuv,{"data-testid":"consent-configuration",children:[(0,n.jsx)(u.Z,{heading:"Consent settings"}),(0,n.jsxs)(s.Kqy,{spacing:3,mb:3,children:[(0,n.jsx)(C.Z,{title:"Transparency & Consent Framework settings",children:(0,n.jsx)(b,{name:"TCF",enabled:x})}),x&&!M&&z&&(0,n.jsx)(J,{isTCFOverrideEnabled:O})]}),(0,n.jsx)(r.J9,{initialValues:A,enableReinitialize:!0,onSubmit:R,children:e=>{let{dirty:i,isValid:t,isSubmitting:l}=e;return(0,n.jsx)(r.l0,{children:(0,n.jsxs)(s.Kqy,{spacing:6,children:[x&&(M||!z)&&(0,n.jsxs)(C.Z,{title:"Vendor overrides",fontSize:"sm",children:[(0,n.jsx)(X,{defaultChecked:O,disabled:j}),O&&(0,n.jsxs)(s.Kqy,{mt:2,spacing:2,children:[(0,n.jsx)(s.xvT,{children:"The table below allows you to adjust which TCF purposes you allow as part of your user facing notices and business activites."}),(0,n.jsx)(s.xvT,{children:"To configure this section, select the purposes you allow and where available, the appropriate legal bases (either Consent or Legitimate Interest)."}),(0,n.jsx)(v,{})]})]}),(0,n.jsx)(q,{}),(0,n.jsx)(T,{}),(0,n.jsx)(s.wpx,{htmlType:"submit",type:"primary",disabled:!i||!t,loading:l,"data-testid":"save-btn",className:"self-start",children:"Save"})]})})}})]})})}},31883:function(e,i,t){"use strict";t.d(i,{Bw:function(){return n.Bw},D4:function(){return n.D4}});var n=t(19043)}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=53748)}),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[845],{13910:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/custom-fields/[id]",function(){return s(63730)}])},34435:function(e,t,s){"use strict";var i=s(24246),n=s(39158),l=s(86677),r=s(27378),a=s(812),o=s(77830),d=s(19904),u=s(8917),c=s(67522),p=s(66006),m=s(66236),P=s(32885),x=s(60240),_=s(31883);let h=()=>(0,i.jsxs)(n.N_L,{active:!0,children:[(0,i.jsx)(n.N_L.Input,{}),(0,i.jsx)(n.N_L.Input,{}),(0,i.jsx)(n.N_L.Input,{}),(0,i.jsx)(n.N_L.Input,{}),(0,i.jsx)(n.N_L.Button,{})]}),y=e=>u.uP.has(e)?u.uP.get(e):e.startsWith("taxonomy:")||e.startsWith("system:")?e:"taxonomy:".concat(e);t.Z=e=>{var t;let{initialField:s,isLoading:v}=e,[j]=n.PPS.useForm(),f=n.PPS.useWatch("value_type",j),E=n.PPS.useWatch("name",j),g=(0,l.useRouter)(),{resource_type:S}=g.query,L=(0,n.UD8)(),{createOrUpdate:C}=(0,c.Z)(),{data:T,isLoading:b}=(0,P.vA)(null==s?void 0:s.allow_list_id,{skip:!(null==s?void 0:s.allow_list_id)}),[I,{isLoading:w}]=(0,P.UF)(),{data:N,isLoading:U}=(0,P.Az)(),{valueTypeOptions:F}=(0,p.Z)(),A=(0,d.Tg)([x.Sh.CUSTOM_FIELD_DELETE])&&!!s,q=async()=>{let e=await I({id:null==s?void 0:s.id});if((0,_.D4)(e)){L.error((0,a.e$)(e.error));return}L.success("Custom field deleted successfully",void 0,()=>{g.push(o.WC)})},[W,k]=(0,r.useState)(!1),O=async e=>{let t=await C(e,s,T);if(!t){L.error("An unexpected error occurred");return}if((0,_.D4)(t)){L.error((0,a.e$)(t.error));return}L.success("Custom field ".concat(s?"updated":"created"," successfully")),g.push(o.WC)},D=(e=>{var t;if(e)return{...e,value_type:e.field_type,field_type:(0,m._)(e),resource_type:y(e.resource_type),options:null!==(t=null==T?void 0:T.allowed_values)&&void 0!==t?t:[]}})(s),R=S?{...D,resource_type:"taxonomy:".concat(S)}:D;if(v||b||U)return(0,i.jsx)(h,{});let Z=F.some(e=>e.value===f);return(0,i.jsxs)(n.PPS,{form:j,layout:"vertical",initialValues:R||{},validateTrigger:["onBlur","onChange"],onFinish:O,children:[(0,i.jsx)(n.PPS.Item,{label:"Name",name:"name",rules:[{required:!0,message:"Please enter a name"}],children:(0,i.jsx)(n.I6N,{options:F,onSelect:(e,t)=>{j.setFieldsValue({name:t.label,value_type:t.value})},disabled:Z,"data-testid":"input-name-autocomplete",children:(0,i.jsx)(n.uFc,{"data-testid":"input-name",suffix:Z?(0,i.jsx)(n.wpx,{size:"small",type:"text",icon:(0,i.jsx)(n.PJP.x8P,{}),onClick:()=>{j.setFieldsValue({name:void 0,value_type:void 0})}}):void 0})})}),(0,i.jsx)(n.PPS.Item,{label:"Type",name:"value_type",hidden:!0,children:(0,i.jsx)(n.WPr,{options:F,getPopupContainer:e=>e.parentElement||document.body,"data-testid":"select-value-type"})}),!!E&&!Z&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.PPS.Item,{label:"Description",name:"description",children:(0,i.jsx)(n.uFc.TextArea,{rows:2,"data-testid":"input-description"})}),(0,i.jsx)(n.PPS.Item,{label:"Field type",name:"field_type",rules:[{required:!0,message:"Please select a field type"}],children:(0,i.jsx)(n.WPr,{options:u.TY,getPopupContainer:e=>e.parentElement||document.body,"data-testid":"select-field-type"})}),(0,i.jsx)(n.PPS.Item,{noStyle:!0,shouldUpdate:(e,t)=>e.field_type!==t.field_type,children:e=>{let{getFieldValue:t}=e,s=t("field_type");return(s===u.Uv.SINGLE_SELECT||s===u.Uv.MULTIPLE_SELECT)&&(0,i.jsx)(n.PPS.List,{name:"options",rules:[{validator:async(e,t)=>!t||t.length<1?Promise.reject(Error("At least one option is required for selects")):Promise.resolve()}],children:(e,s,l)=>{let{add:r,remove:a}=s,{errors:o}=l;return(0,i.jsxs)(i.Fragment,{children:[e.map((s,l)=>(0,i.jsx)(n.PPS.Item,{required:!1,label:0===l?"Options":"","data-testid":"options-form-item",children:(0,i.jsxs)(n.jqI,{gap:"middle",children:[(0,i.jsx)(n.PPS.Item,{...s,validateTrigger:["onChange","onBlur"],rules:[{required:!0,whitespace:!0,message:"Options cannot be empty"},()=>({validator:(e,s)=>t("options").filter(e=>e===s).length>1?Promise.reject(Error("Option values must be unique")):Promise.resolve()})],noStyle:!0,children:(0,i.jsx)(n.uFc,{placeholder:"Enter option value","data-testid":"input-option-".concat(l)})}),e.length>1&&(0,i.jsx)(n.wpx,{icon:(0,i.jsx)(n.PJP.ZNm,{}),onClick:()=>a(s.name),"aria-label":"Remove option"})]})},s.key)),(0,i.jsx)(n.PPS.Item,{children:(0,i.jsx)(n.wpx,{type:"dashed",onClick:()=>r(),icon:(0,i.jsx)(n.PJP.mm_,{}),"data-testid":"add-option-btn",children:"Add select option"})}),(0,i.jsx)(n.PPS.ErrorList,{errors:o,className:"-mt-4 mb-4"})]})}})}})]}),(0,i.jsx)(n.PPS.Item,{label:"Applies to",name:"resource_type",rules:[{required:!0,message:"Please select a location"}],tooltip:"Choose where this field applies, including taxonomies",children:(0,i.jsx)(n.WPr,{options:null!==(t=null==N?void 0:N.map(e=>({label:e,value:e})))&&void 0!==t?t:[],getPopupContainer:e=>e.parentElement||document.body,disabled:!!s,"data-testid":"select-resource-type"})}),(0,i.jsxs)(n.jqI,{justify:"space-between",children:[A&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.wpx,{danger:!0,onClick:()=>k(!0),loading:w,"data-testid":"delete-btn",children:"Delete"}),(0,i.jsx)(n.cVQ,{isOpen:W,onClose:()=>k(!1),onConfirm:q,title:"Delete custom field",message:(0,i.jsxs)(n.AntTypography.Paragraph,{children:["Are you sure you want to delete"," ",(0,i.jsx)("strong",{children:null==s?void 0:s.name}),"? This action cannot be undone."]}),isCentered:!0,"data-testid":"delete-modal"})]}),(0,i.jsx)(n.wpx,{type:"primary",htmlType:"submit","data-testid":"save-btn",children:"Save"})]})]})}},66236:function(e,t,s){"use strict";s.d(t,{S:function(){return r},_:function(){return l}});var i=s(20987),n=s(8917);let l=e=>e.field_type===i.H.STRING_ARRAY?n.Uv.MULTIPLE_SELECT:e.allow_list_id?n.Uv.SINGLE_SELECT:e.field_type===i.H.STRING?n.Uv.OPEN_TEXT:e.field_type,r=e=>{let t=l(e);return t===n.Uv.OPEN_TEXT||t===n.Uv.SINGLE_SELECT||t===n.Uv.MULTIPLE_SELECT?n.P3[t]:t}},63730:function(e,t,s){"use strict";s.r(t);var i=s(24246),n=s(86677),l=s(77213),r=s(77830),a=s(58754),o=s(34435),d=s(32885);t.default=()=>{var e;let{id:t}=(0,n.useRouter)().query,{data:s,isLoading:u}=(0,d.s0)({id:t});return(0,i.jsxs)(l.Z,{title:"Edit custom field",mainProps:{maxWidth:"720px"},children:[(0,i.jsx)(a.Z,{heading:"Custom fields",breadcrumbItems:[{title:"All custom fields",href:r.WC},{title:null!==(e=null==s?void 0:s.name)&&void 0!==e?e:t}]}),(0,i.jsx)(o.Z,{initialField:s,isLoading:u})]})}}},function(e){e.O(0,[590,2888,9774,179],function(){return e(e.s=13910)}),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9914],{92973:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/custom-fields/new",function(){return s(85127)}])},34435:function(e,t,s){"use strict";var i=s(24246),n=s(39158),l=s(86677),r=s(27378),a=s(812),o=s(77830),d=s(19904),u=s(8917),c=s(67522),p=s(66006),m=s(66236),P=s(32885),x=s(60240),_=s(31883);let h=()=>(0,i.jsxs)(n.N_L,{active:!0,children:[(0,i.jsx)(n.N_L.Input,{}),(0,i.jsx)(n.N_L.Input,{}),(0,i.jsx)(n.N_L.Input,{}),(0,i.jsx)(n.N_L.Input,{}),(0,i.jsx)(n.N_L.Button,{})]}),y=e=>u.uP.has(e)?u.uP.get(e):e.startsWith("taxonomy:")||e.startsWith("system:")?e:"taxonomy:".concat(e);t.Z=e=>{var t;let{initialField:s,isLoading:j}=e,[v]=n.PPS.useForm(),f=n.PPS.useWatch("value_type",v),E=n.PPS.useWatch("name",v),g=(0,l.useRouter)(),{resource_type:S}=g.query,C=(0,n.UD8)(),{createOrUpdate:L}=(0,c.Z)(),{data:T,isLoading:b}=(0,P.vA)(null==s?void 0:s.allow_list_id,{skip:!(null==s?void 0:s.allow_list_id)}),[I,{isLoading:w}]=(0,P.UF)(),{data:N,isLoading:U}=(0,P.Az)(),{valueTypeOptions:F}=(0,p.Z)(),A=(0,d.Tg)([x.Sh.CUSTOM_FIELD_DELETE])&&!!s,W=async()=>{let e=await I({id:null==s?void 0:s.id});if((0,_.D4)(e)){C.error((0,a.e$)(e.error));return}C.success("Custom field deleted successfully",void 0,()=>{g.push(o.WC)})},[k,q]=(0,r.useState)(!1),O=async e=>{let t=await L(e,s,T);if(!t){C.error("An unexpected error occurred");return}if((0,_.D4)(t)){C.error((0,a.e$)(t.error));return}C.success("Custom field ".concat(s?"updated":"created"," successfully")),g.push(o.WC)},D=(e=>{var t;if(e)return{...e,value_type:e.field_type,field_type:(0,m._)(e),resource_type:y(e.resource_type),options:null!==(t=null==T?void 0:T.allowed_values)&&void 0!==t?t:[]}})(s),Z=S?{...D,resource_type:"taxonomy:".concat(S)}:D;if(j||b||U)return(0,i.jsx)(h,{});let R=F.some(e=>e.value===f);return(0,i.jsxs)(n.PPS,{form:v,layout:"vertical",initialValues:Z||{},validateTrigger:["onBlur","onChange"],onFinish:O,children:[(0,i.jsx)(n.PPS.Item,{label:"Name",name:"name",rules:[{required:!0,message:"Please enter a name"}],children:(0,i.jsx)(n.I6N,{options:F,onSelect:(e,t)=>{v.setFieldsValue({name:t.label,value_type:t.value})},disabled:R,"data-testid":"input-name-autocomplete",children:(0,i.jsx)(n.uFc,{"data-testid":"input-name",suffix:R?(0,i.jsx)(n.wpx,{size:"small",type:"text",icon:(0,i.jsx)(n.PJP.x8P,{}),onClick:()=>{v.setFieldsValue({name:void 0,value_type:void 0})}}):void 0})})}),(0,i.jsx)(n.PPS.Item,{label:"Type",name:"value_type",hidden:!0,children:(0,i.jsx)(n.WPr,{options:F,getPopupContainer:e=>e.parentElement||document.body,"data-testid":"select-value-type"})}),!!E&&!R&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.PPS.Item,{label:"Description",name:"description",children:(0,i.jsx)(n.uFc.TextArea,{rows:2,"data-testid":"input-description"})}),(0,i.jsx)(n.PPS.Item,{label:"Field type",name:"field_type",rules:[{required:!0,message:"Please select a field type"}],children:(0,i.jsx)(n.WPr,{options:u.TY,getPopupContainer:e=>e.parentElement||document.body,"data-testid":"select-field-type"})}),(0,i.jsx)(n.PPS.Item,{noStyle:!0,shouldUpdate:(e,t)=>e.field_type!==t.field_type,children:e=>{let{getFieldValue:t}=e,s=t("field_type");return(s===u.Uv.SINGLE_SELECT||s===u.Uv.MULTIPLE_SELECT)&&(0,i.jsx)(n.PPS.List,{name:"options",rules:[{validator:async(e,t)=>!t||t.length<1?Promise.reject(Error("At least one option is required for selects")):Promise.resolve()}],children:(e,s,l)=>{let{add:r,remove:a}=s,{errors:o}=l;return(0,i.jsxs)(i.Fragment,{children:[e.map((s,l)=>(0,i.jsx)(n.PPS.Item,{required:!1,label:0===l?"Options":"","data-testid":"options-form-item",children:(0,i.jsxs)(n.jqI,{gap:"middle",children:[(0,i.jsx)(n.PPS.Item,{...s,validateTrigger:["onChange","onBlur"],rules:[{required:!0,whitespace:!0,message:"Options cannot be empty"},()=>({validator:(e,s)=>t("options").filter(e=>e===s).length>1?Promise.reject(Error("Option values must be unique")):Promise.resolve()})],noStyle:!0,children:(0,i.jsx)(n.uFc,{placeholder:"Enter option value","data-testid":"input-option-".concat(l)})}),e.length>1&&(0,i.jsx)(n.wpx,{icon:(0,i.jsx)(n.PJP.ZNm,{}),onClick:()=>a(s.name),"aria-label":"Remove option"})]})},s.key)),(0,i.jsx)(n.PPS.Item,{children:(0,i.jsx)(n.wpx,{type:"dashed",onClick:()=>r(),icon:(0,i.jsx)(n.PJP.mm_,{}),"data-testid":"add-option-btn",children:"Add select option"})}),(0,i.jsx)(n.PPS.ErrorList,{errors:o,className:"-mt-4 mb-4"})]})}})}})]}),(0,i.jsx)(n.PPS.Item,{label:"Applies to",name:"resource_type",rules:[{required:!0,message:"Please select a location"}],tooltip:"Choose where this field applies, including taxonomies",children:(0,i.jsx)(n.WPr,{options:null!==(t=null==N?void 0:N.map(e=>({label:e,value:e})))&&void 0!==t?t:[],getPopupContainer:e=>e.parentElement||document.body,disabled:!!s,"data-testid":"select-resource-type"})}),(0,i.jsxs)(n.jqI,{justify:"space-between",children:[A&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.wpx,{danger:!0,onClick:()=>q(!0),loading:w,"data-testid":"delete-btn",children:"Delete"}),(0,i.jsx)(n.cVQ,{isOpen:k,onClose:()=>q(!1),onConfirm:W,title:"Delete custom field",message:(0,i.jsxs)(n.AntTypography.Paragraph,{children:["Are you sure you want to delete"," ",(0,i.jsx)("strong",{children:null==s?void 0:s.name}),"? This action cannot be undone."]}),isCentered:!0,"data-testid":"delete-modal"})]}),(0,i.jsx)(n.wpx,{type:"primary",htmlType:"submit","data-testid":"save-btn",children:"Save"})]})]})}},66236:function(e,t,s){"use strict";s.d(t,{S:function(){return r},_:function(){return l}});var i=s(20987),n=s(8917);let l=e=>e.field_type===i.H.STRING_ARRAY?n.Uv.MULTIPLE_SELECT:e.allow_list_id?n.Uv.SINGLE_SELECT:e.field_type===i.H.STRING?n.Uv.OPEN_TEXT:e.field_type,r=e=>{let t=l(e);return t===n.Uv.OPEN_TEXT||t===n.Uv.SINGLE_SELECT||t===n.Uv.MULTIPLE_SELECT?n.P3[t]:t}},85127:function(e,t,s){"use strict";s.r(t);var i=s(24246),n=s(77213),l=s(77830),r=s(58754),a=s(34435);t.default=()=>(0,i.jsxs)(n.Z,{title:"New custom field",mainProps:{maxWidth:"720px"},children:[(0,i.jsx)(r.Z,{heading:"Custom fields",breadcrumbItems:[{title:"All custom fields",href:l.WC},{title:"Create new"}]}),(0,i.jsx)(a.Z,{})]})}},function(e){e.O(0,[590,2888,9774,179],function(){return e(e.s=92973)}),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4065],{74833:function(e,t,n){var i=n(56127),a=/^\s+/;e.exports=function(e){return e?e.slice(0,i(e)+1).replace(a,""):e}},56127:function(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},66726:function(e,t,n){var i=n(11611),a=n(82846),s=n(91936),r=Math.max,o=Math.min;e.exports=function(e,t,n){var u,c,l,d,g,f,m=0,p=!1,y=!1,v=!0;if("function"!=typeof e)throw TypeError("Expected a function");function h(t){var n=u,i=c;return u=c=void 0,m=t,d=e.apply(i,n)}function T(e){var n=e-f,i=e-m;return void 0===f||n>=t||n<0||y&&i>=l}function x(){var e,n,i,s=a();if(T(s))return C(s);g=setTimeout(x,(e=s-f,n=s-m,i=t-e,y?o(i,l-n):i))}function C(e){return(g=void 0,v&&u)?h(e):(u=c=void 0,d)}function E(){var e,n=a(),i=T(n);if(u=arguments,c=this,f=n,i){if(void 0===g)return m=e=f,g=setTimeout(x,t),p?h(e):d;if(y)return clearTimeout(g),g=setTimeout(x,t),h(f)}return void 0===g&&(g=setTimeout(x,t)),d}return t=s(t)||0,i(n)&&(p=!!n.leading,l=(y="maxWait"in n)?r(s(n.maxWait)||0,t):l,v="trailing"in n?!!n.trailing:v),E.cancel=function(){void 0!==g&&clearTimeout(g),m=0,u=f=c=g=void 0},E.flush=function(){return void 0===g?d:C(a())},E}},82846:function(e,t,n){var i=n(77400);e.exports=function(){return i.Date.now()}},91936:function(e,t,n){var i=n(74833),a=n(11611),s=n(55193),r=0/0,o=/^[-+]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(s(e))return r;if(a(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=a(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=i(e);var n=u.test(e);return n||c.test(e)?l(e.slice(2),n?2:8):o.test(e)?r:+e}},1770:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/custom-fields",function(){return n(5810)}])},30952:function(e,t,n){"use strict";n.d(t,{f:function(){return u}});var i=n(24246),a=n(66726),s=n.n(a),r=n(27378),o=n(26917);let u=e=>{let{value:t,onChange:n,placeholder:a,...u}=e,[c,l]=(0,r.useState)(t);(0,r.useEffect)(()=>{l(t||"")},[t]);let d=s()(n,500),g=(0,r.useCallback)(e=>{l(e),d(e)},[]);return(0,i.jsx)(o.Z,{value:c,onChange:g,onClear:()=>{l(""),n("")},placeholder:a,...u})}},77213:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var i=n(24246),a=n(39158),s=n(88038),r=n.n(s),o=n(86677);n(27378);var u=n(25980),c=n(90867),l=n(42478),d=n(77830),g=()=>{let e=(0,o.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(d.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:s=!0,mainProps:d}=e,f=(0,u.hz)(),m=(0,o.useRouter)(),p="/privacy-requests"===m.pathname||"/datastore-connection"===m.pathname,y=!(f.flags.messagingConfiguration&&p),{data:v}=(0,l.JE)(void 0,{skip:y}),{data:h}=(0,c.PW)(void 0,{skip:y}),T=f.flags.messagingConfiguration&&(!v||!h)&&p;return(0,i.jsxs)(a.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,i.jsxs)(r(),{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:s?6:0,px:s?10:0,h:s?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...d,children:[T?(0,i.jsx)(g,{}):null,t]})]})}},19904:function(e,t,n){"use strict";n.d(t,{Tg:function(){return r}});var i=n(24246),a=n(16134),s=n(31793);let r=e=>(0,a.C)(s.uu).filter(t=>e.includes(t)).length>0;t.ZP=e=>{let{scopes:t,children:n}=e;return r(t)?(0,i.jsx)(i.Fragment,{children:n}):null}},20987:function(e,t,n){"use strict";var i,a,s,r;n.d(t,{H:function(){return i},J:function(){return a}}),(s=i||(i={})).STRING="string",s.STRING_ARRAY="string[]",(r=a||(a={})).SYSTEM="system",r.DATA_USE="data use",r.DATA_CATEGORY="data category",r.DATA_SUBJECT="data subject",r.PRIVACY_DECLARATION="privacy declaration"},8917:function(e,t,n){"use strict";n.d(t,{P3:function(){return u},TY:function(){return o},Uv:function(){return a},uP:function(){return r}});var i,a,s=n(20987);let r=new Map([[s.J.SYSTEM,"system:information"],[s.J.DATA_USE,"taxonomy:data use"],[s.J.DATA_CATEGORY,"taxonomy:data category"],[s.J.DATA_SUBJECT,"taxonomy:data subject"],[s.J.PRIVACY_DECLARATION,"system:data use"]]);(i=a||(a={})).SINGLE_SELECT="singleSelect",i.MULTIPLE_SELECT="multipleSelect",i.OPEN_TEXT="openText";let o=[{label:"Single select",value:"singleSelect"},{label:"Multiple select",value:"multipleSelect"},{label:"Open text",value:"openText"}],u={singleSelect:"Single-value select",multipleSelect:"Multi-value select",openText:"Open text"}},66236:function(e,t,n){"use strict";n.d(t,{S:function(){return r},_:function(){return s}});var i=n(20987),a=n(8917);let s=e=>e.field_type===i.H.STRING_ARRAY?a.Uv.MULTIPLE_SELECT:e.allow_list_id?a.Uv.SINGLE_SELECT:e.field_type===i.H.STRING?a.Uv.OPEN_TEXT:e.field_type,r=e=>{let t=s(e);return t===a.Uv.OPEN_TEXT||t===a.Uv.SINGLE_SELECT||t===a.Uv.MULTIPLE_SELECT?a.P3[t]:t}},42478:function(e,t,n){"use strict";n.d(t,{FU:function(){return c},JE:function(){return a},Ki:function(){return d},SU:function(){return g},W:function(){return f},h9:function(){return s},jc:function(){return i},qt:function(){return u},sn:function(){return l}});let{useGetEmailInviteStatusQuery:i,useGetActiveMessagingProviderQuery:a,useCreateMessagingConfigurationMutation:s,useCreateMessagingConfigurationSecretsMutation:r,useGetMessagingConfigurationDetailsQuery:o,useGetMessagingConfigurationsQuery:u,useGetMessagingConfigurationByKeyQuery:c,useUpdateMessagingConfigurationByKeyMutation:l,useUpdateMessagingConfigurationSecretsByKeyMutation:d,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"]})})})},5810:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return C}});var i=n(24246),a=n(77213),s=n(39158),r=n(27378),o=n(58754),u=n(30952),c=n(86677),l=n(77830),d=n(19904),g=n(8125),f=n(8917),m=n(72625),p=n(32885),y=e=>{var t;let{field:n,isDisabled:a}=e,[s,{isLoading:r}]=(0,p.yM)(),o=async e=>s({...n,active:e});return(0,i.jsx)(m.S1,{enabled:null!==(t=n.active)&&void 0!==t&&t,onToggle:o,title:"Disable custom field",message:"Are you sure you want to disable this custom field?",isDisabled:a,"aria-label":n.active?"Disable custom field":"Enable custom field",loading:r})},v=n(66236),h=n(60240),T=()=>{let e=(0,g.o)({pagination:{defaultPageSize:25,pageSizeOptions:[10,25,50]},search:{defaultSearchQuery:""}}),t=(0,c.useRouter)(),{data:n,isLoading:a}=(0,p.GH)(),{tableProps:o}=(0,g.V)(e,{dataSource:n||[],totalRows:(null==n?void 0:n.length)||0,isLoading:a,customTableProps:{layout:"fixed",sticky:{offsetHeader:40}}}),u=(0,d.Tg)([h.Sh.CUSTOM_FIELD_UPDATE]);return{tableProps:o,columns:(0,r.useMemo)(()=>[{title:"Name",dataIndex:"name",key:"name",filteredValue:e.searchQuery?[e.searchQuery]:null,onFilter:(e,t)=>t.name.toLowerCase().includes(e.toString().toLowerCase())},{title:"Description",dataIndex:"description",key:"description",render:e=>(0,i.jsx)(s.AntTypography.Text,{ellipsis:{tooltip:e},className:"w-96",children:e}),width:384},{title:"Type",dataIndex:"field_type",key:"field_type",render:(e,t)=>(0,v.S)(t)},{title:"Applies to",dataIndex:"resource_type",key:"resource_type",render:e=>f.uP.get(e)||e},{title:"Enabled",dataIndex:"active",key:"active",hidden:!u,render:(e,t)=>(0,i.jsx)(y,{field:t,isDisabled:!u}),width:96},{title:"Actions",key:"actions",render:(e,n)=>(0,i.jsx)(s.jqI,{gap:"middle",children:(0,i.jsx)(s.wpx,{size:"small",onClick:()=>t.push("".concat(l.WC,"/").concat(n.id)),"data-testid":"edit-btn",children:"Edit"})}),hidden:!u,width:96}],[t,u,e.searchQuery,u]),searchQuery:e.searchQuery,updateSearch:e.updateSearch,onAddClick:()=>t.push("".concat(l.WC,"/new"))}},x=()=>{let{tableProps:e,columns:t,searchQuery:n,updateSearch:a,onAddClick:r}=T();return(0,i.jsxs)(s.jqI,{vertical:!0,gap:"middle","data-testid":"custom-fields-management",children:[(0,i.jsxs)(s.jqI,{justify:"space-between",className:"sticky -top-6 z-10 bg-white py-4",children:[(0,i.jsx)(u.f,{value:n,onChange:a,placeholder:"Search custom fields..."}),(0,i.jsx)(s.wpx,{onClick:r,type:"primary","data-testid":"add-custom-field-btn",children:"Add custom field"})]}),(0,i.jsx)(s.V5H,{...e,columns:t,className:"-mt-4"})]})},C=()=>(0,i.jsxs)(a.Z,{title:"Custom fields",children:[(0,i.jsx)(o.Z,{heading:"Custom fields",isSticky:!1,className:"pb-0",children:(0,i.jsx)(s.AntTypography.Paragraph,{className:"max-w-screen-md",children:"Custom fields provide organizations with the capability to capture metrics that are unique to their specific needs, allowing them to create customized reports. These fields can be added to either systems or elements within a taxonomy, and once added, they become reportable fields that are visible on the data map."})}),(0,i.jsx)(x,{})]})}},function(e){e.O(0,[431,7245,3931,2888,9774,179],function(){return e(e.s=1770)}),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1051],{55342:function(e,n,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/domain-records",function(){return i(64872)}])},77213:function(e,n,i){"use strict";i.d(n,{Z:function(){return f}});var t=i(24246),s=i(98227),o=i(88038),a=i.n(o),r=i(86677);i(27378);var g=i(25980),u=i(90867),c=i(42478),d=i(77830),l=()=>{let e=(0,r.useRouter)();return(0,t.jsx)(s.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,t.jsxs)(s.xuv,{children:[(0,t.jsxs)(s.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,t.jsx)(s.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,t.jsx)(s.wpx,{onClick:()=>{e.push(d.AD)},children:"Configure"})]}),(0,t.jsxs)(s.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:n,title:i,padded:o=!0,mainProps:d}=e,f=(0,g.hz)(),m=(0,r.useRouter)(),y="/privacy-requests"===m.pathname||"/datastore-connection"===m.pathname,h=!(f.flags.messagingConfiguration&&y),{data:v}=(0,c.JE)(void 0,{skip:h}),{data:x}=(0,u.PW)(void 0,{skip:h}),p=f.flags.messagingConfiguration&&(!v||!x)&&y;return(0,t.jsxs)(s.kCb,{"data-testid":i,direction:"column",h:"100vh",children:[(0,t.jsxs)(a(),{children:[(0,t.jsxs)("title",{children:["Fides Admin UI - ",i]}),(0,t.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,t.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,t.jsxs)(s.kCb,{as:"main",direction:"column",py:o?6:0,px:o?10:0,h:o?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...d,children:[p?(0,t.jsx)(l,{}):null,n]})]})}},42478:function(e,n,i){"use strict";i.d(n,{FU:function(){return u},JE:function(){return s},Ki:function(){return d},SU:function(){return l},W:function(){return f},h9:function(){return o},jc:function(){return t},qt:function(){return g},sn:function(){return c}});let{useGetEmailInviteStatusQuery:t,useGetActiveMessagingProviderQuery:s,useCreateMessagingConfigurationMutation:o,useCreateMessagingConfigurationSecretsMutation:a,useGetMessagingConfigurationDetailsQuery:r,useGetMessagingConfigurationsQuery:g,useGetMessagingConfigurationByKeyQuery:u,useUpdateMessagingConfigurationByKeyMutation:c,useUpdateMessagingConfigurationSecretsByKeyMutation:d,useCreateTestConnectionMessageMutation:l,useDeleteMessagingConfigurationByKeyMutation:f}=i(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,n,i,t)=>{let s=await t({url:"messaging/default/active"});return s.error&&404===s.error.status?{data:null}:s},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"]})})})},64872:function(e,n,i){"use strict";i.r(n);var t=i(24246),s=i(92222),o=i(59003),a=i(98227),r=i(27378),g=i(88340),u=i(77213),c=i(47935),d=i(32885);let l=(0,s.Cl)();n.default=()=>{let e=(0,r.useMemo)(()=>[l.accessor(e=>e.hostName,{header:"Name",cell:e=>(0,t.jsx)(c.G3,{value:e.getValue()})}),l.accessor(e=>e.type,{header:"Type",cell:e=>(0,t.jsx)(c.G3,{value:e.getValue()})}),l.accessor(e=>e.data,{header:"Value",cell:e=>(0,t.jsx)(c.G3,{value:e.getValue()})}),l.display({id:"actions",cell:e=>{let{row:n}=e;return(0,t.jsx)(g.Z,{copyText:n.original.data,type:"default",size:"small"})},header:"Actions",maxSize:65})],[]),{data:n,isLoading:i}=(0,d.Vh)(),f=(0,r.useMemo)(()=>(null==n?void 0:n.domain_verification_records)?n.domain_verification_records.map(e=>({hostName:"www",type:"CNAME",data:e})):[],[n]),m=(0,o.b7)({getCoreRowModel:(0,s.sC)(),columns:e,data:f,columnResizeMode:"onChange"});return(0,t.jsx)(u.Z,{title:"Domain records",children:(0,t.jsxs)(a.xuv,{"data-testid":"domain-records",children:[(0,t.jsx)(a.X6q,{marginBottom:4,fontSize:"2xl",children:"Domain records"}),(0,t.jsxs)(a.xuv,{maxWidth:"600px",children:[(0,t.jsx)(a.xvT,{marginBottom:2,fontSize:"md",children:"Set the following record on your DNS provider to continue."}),(0,t.jsxs)(a.xvT,{mb:10,fontSize:"sm",children:["Please visit"," ",(0,t.jsx)(a.rUS,{color:"complimentary.500",href:"https://fid.es/manage-dns",isExternal:!0,children:"docs.ethyca.com"})," ","for more information on how to configure Domain records."]}),i?(0,t.jsx)(a.xuv,{p:2,borderWidth:1,children:(0,t.jsx)(c.I4,{rowHeight:26,numRows:5})}):(0,t.jsx)(c.ZK,{tableInstance:m})]})]})})}}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=55342)}),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1051],{55342:function(e,n,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/domain-records",function(){return i(64872)}])},77213:function(e,n,i){"use strict";i.d(n,{Z:function(){return f}});var t=i(24246),s=i(39158),o=i(88038),a=i.n(o),r=i(86677);i(27378);var g=i(25980),u=i(90867),c=i(42478),d=i(77830),l=()=>{let e=(0,r.useRouter)();return(0,t.jsx)(s.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,t.jsxs)(s.xuv,{children:[(0,t.jsxs)(s.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,t.jsx)(s.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,t.jsx)(s.wpx,{onClick:()=>{e.push(d.AD)},children:"Configure"})]}),(0,t.jsxs)(s.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:n,title:i,padded:o=!0,mainProps:d}=e,f=(0,g.hz)(),m=(0,r.useRouter)(),y="/privacy-requests"===m.pathname||"/datastore-connection"===m.pathname,h=!(f.flags.messagingConfiguration&&y),{data:v}=(0,c.JE)(void 0,{skip:h}),{data:x}=(0,u.PW)(void 0,{skip:h}),p=f.flags.messagingConfiguration&&(!v||!x)&&y;return(0,t.jsxs)(s.kCb,{"data-testid":i,direction:"column",h:"100vh",children:[(0,t.jsxs)(a(),{children:[(0,t.jsxs)("title",{children:["Fides Admin UI - ",i]}),(0,t.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,t.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,t.jsxs)(s.kCb,{as:"main",direction:"column",py:o?6:0,px:o?10:0,h:o?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...d,children:[p?(0,t.jsx)(l,{}):null,n]})]})}},42478:function(e,n,i){"use strict";i.d(n,{FU:function(){return u},JE:function(){return s},Ki:function(){return d},SU:function(){return l},W:function(){return f},h9:function(){return o},jc:function(){return t},qt:function(){return g},sn:function(){return c}});let{useGetEmailInviteStatusQuery:t,useGetActiveMessagingProviderQuery:s,useCreateMessagingConfigurationMutation:o,useCreateMessagingConfigurationSecretsMutation:a,useGetMessagingConfigurationDetailsQuery:r,useGetMessagingConfigurationsQuery:g,useGetMessagingConfigurationByKeyQuery:u,useUpdateMessagingConfigurationByKeyMutation:c,useUpdateMessagingConfigurationSecretsByKeyMutation:d,useCreateTestConnectionMessageMutation:l,useDeleteMessagingConfigurationByKeyMutation:f}=i(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,n,i,t)=>{let s=await t({url:"messaging/default/active"});return s.error&&404===s.error.status?{data:null}:s},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"]})})})},64872:function(e,n,i){"use strict";i.r(n);var t=i(24246),s=i(92222),o=i(59003),a=i(39158),r=i(27378),g=i(88340),u=i(77213),c=i(47935),d=i(32885);let l=(0,s.Cl)();n.default=()=>{let e=(0,r.useMemo)(()=>[l.accessor(e=>e.hostName,{header:"Name",cell:e=>(0,t.jsx)(c.G3,{value:e.getValue()})}),l.accessor(e=>e.type,{header:"Type",cell:e=>(0,t.jsx)(c.G3,{value:e.getValue()})}),l.accessor(e=>e.data,{header:"Value",cell:e=>(0,t.jsx)(c.G3,{value:e.getValue()})}),l.display({id:"actions",cell:e=>{let{row:n}=e;return(0,t.jsx)(g.Z,{copyText:n.original.data,type:"default",size:"small"})},header:"Actions",maxSize:65})],[]),{data:n,isLoading:i}=(0,d.Vh)(),f=(0,r.useMemo)(()=>(null==n?void 0:n.domain_verification_records)?n.domain_verification_records.map(e=>({hostName:"www",type:"CNAME",data:e})):[],[n]),m=(0,o.b7)({getCoreRowModel:(0,s.sC)(),columns:e,data:f,columnResizeMode:"onChange"});return(0,t.jsx)(u.Z,{title:"Domain records",children:(0,t.jsxs)(a.xuv,{"data-testid":"domain-records",children:[(0,t.jsx)(a.X6q,{marginBottom:4,fontSize:"2xl",children:"Domain records"}),(0,t.jsxs)(a.xuv,{maxWidth:"600px",children:[(0,t.jsx)(a.xvT,{marginBottom:2,fontSize:"md",children:"Set the following record on your DNS provider to continue."}),(0,t.jsxs)(a.xvT,{mb:10,fontSize:"sm",children:["Please visit"," ",(0,t.jsx)(a.rUS,{color:"complimentary.500",href:"https://fid.es/manage-dns",isExternal:!0,children:"docs.ethyca.com"})," ","for more information on how to configure Domain records."]}),i?(0,t.jsx)(a.xuv,{p:2,borderWidth:1,children:(0,t.jsx)(c.I4,{rowHeight:26,numRows:5})}):(0,t.jsx)(c.ZK,{tableInstance:m})]})]})})}}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=55342)}),_N_E=e.O()}]);