ethyca-fides 2.73.0rc4__py2.py3-none-any.whl → 2.73.1__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.

Potentially problematic release.


This version of ethyca-fides might be problematic. Click here for more details.

Files changed (275) hide show
  1. {ethyca_fides-2.73.0rc4.dist-info → ethyca_fides-2.73.1.dist-info}/METADATA +1 -1
  2. {ethyca_fides-2.73.0rc4.dist-info → ethyca_fides-2.73.1.dist-info}/RECORD +264 -254
  3. fides/_version.py +3 -3
  4. fides/api/alembic/alembic.ini +5 -1
  5. fides/api/alembic/migrations/env.py +7 -1
  6. fides/api/alembic/migrations/versions/c09e76282dd1_add_privacy_request_duplication_cols.py +64 -0
  7. fides/api/alembic/migrations/versions/xx_2025_10_17_1603_5093e92e2a5a_add_consent_data_v3_to_the_database.py +72 -0
  8. fides/api/alembic/migrations/versions/xx_2025_10_27_1834_67f0f2f4748e_adding_identity_definition_model.py +45 -0
  9. fides/api/api/v1/endpoints/privacy_request_endpoints.py +27 -0
  10. fides/api/db/base.py +2 -0
  11. fides/api/db/database.py +32 -2
  12. fides/api/models/identity_definition.py +65 -0
  13. fides/api/models/privacy_request/privacy_request.py +3 -0
  14. fides/api/models/v3/__init__.py +0 -0
  15. fides/api/models/v3/privacy_preferences.py +85 -0
  16. fides/api/schemas/application_config.py +28 -0
  17. fides/api/schemas/privacy_request.py +2 -0
  18. fides/api/service/connectors/query_configs/saas_query_config.py +4 -1
  19. fides/api/service/connectors/saas_connector.py +4 -5
  20. fides/common/api/v1/urn_registry.py +1 -0
  21. fides/config/__init__.py +3 -0
  22. fides/config/config_proxy.py +10 -0
  23. fides/config/duplicate_detection_settings.py +31 -0
  24. fides/config/utils.py +5 -0
  25. fides/service/privacy_request/privacy_request_service.py +96 -38
  26. fides/ui-build/static/admin/404.html +1 -1
  27. fides/ui-build/static/admin/_next/static/BcQzR23eIPTcIJtpdoKEA/_buildManifest.js +1 -0
  28. fides/ui-build/static/admin/_next/static/chunks/{1099-fa8b82f521b23cce.js → 1099-31f9d973bc287df8.js} +1 -1
  29. fides/ui-build/static/admin/_next/static/chunks/{1115-d7ce851b36722c41.js → 1115-26393b586775ea29.js} +1 -1
  30. fides/ui-build/static/admin/_next/static/chunks/{1437-9dd64c20d38667df.js → 1437-8b1f6c8797c68bfd.js} +1 -1
  31. fides/ui-build/static/admin/_next/static/chunks/{155-1c80b19f58f44a0c.js → 155-f6302d32cba4cab6.js} +1 -1
  32. fides/ui-build/static/admin/_next/static/chunks/{1817-0de0312294019817.js → 1817-2d5cf537a2992c79.js} +1 -1
  33. fides/ui-build/static/admin/_next/static/chunks/{1975.6ca0e76b5a3d1955.js → 1975.afe8cad52f904fcf.js} +1 -1
  34. fides/ui-build/static/admin/_next/static/chunks/{2040-a18cc21821e2d121.js → 2040-7eed8491ca7276ed.js} +1 -1
  35. fides/ui-build/static/admin/_next/static/chunks/{2397-16820a09e8ebfe33.js → 2397-083fc511acb6105d.js} +1 -1
  36. fides/ui-build/static/admin/_next/static/chunks/{2921-a5dac2eacdcc32ff.js → 2921-34a43f2f8f5e5e69.js} +1 -1
  37. fides/ui-build/static/admin/_next/static/chunks/{3377-c2c9eb177bec8719.js → 3377-988ac2f3a2e8d5d4.js} +1 -1
  38. fides/ui-build/static/admin/_next/static/chunks/{3696-21e3dec6c2023875.js → 3696-6f90e41a53d22920.js} +1 -1
  39. fides/ui-build/static/admin/_next/static/chunks/{3700-a2903cd95b8a27cb.js → 3700-f695f2f6b8251971.js} +1 -1
  40. fides/ui-build/static/admin/_next/static/chunks/{3772-bb84842df51d3f3f.js → 3772-9f1713f9d5f97a10.js} +1 -1
  41. fides/ui-build/static/admin/_next/static/chunks/{3873-d759bbe7137ae8c2.js → 3873-d18e47b327445db5.js} +1 -1
  42. fides/ui-build/static/admin/_next/static/chunks/{3923-7f0aa36c9e09cedf.js → 3923-f0a85dc5c3684fa0.js} +1 -1
  43. fides/ui-build/static/admin/_next/static/chunks/{401-874303feb3899562.js → 401-7c345d019bb9bcbd.js} +1 -1
  44. fides/ui-build/static/admin/_next/static/chunks/{4496-903c81292ffd8f91.js → 4496-4ff19366c597ec16.js} +1 -1
  45. fides/ui-build/static/admin/_next/static/chunks/{4817-d0cc100f259b3c2e.js → 4817-1f3e6ea38625d8d5.js} +1 -1
  46. fides/ui-build/static/admin/_next/static/chunks/{5185-fc171b6acce9f915.js → 5185-e7f8b81dd3dfbe0b.js} +1 -1
  47. fides/ui-build/static/admin/_next/static/chunks/{5258-cf0d2c4c4d55a94b.js → 5258-62d6bc19add60aa6.js} +1 -1
  48. fides/ui-build/static/admin/_next/static/chunks/{5279-8637d735471ec7f1.js → 5279-bd6cccabdd6ca447.js} +1 -1
  49. fides/ui-build/static/admin/_next/static/chunks/{549-2d9bde37e5fe13eb.js → 549-28537a6de666944b.js} +1 -1
  50. fides/ui-build/static/admin/_next/static/chunks/{5643-48a5e0ad8b9fc3f7.js → 5643-3459282d296a3c59.js} +1 -1
  51. fides/ui-build/static/admin/_next/static/chunks/{5783-63912bab7f80b0f8.js → 5783-21775c232dce7af7.js} +1 -1
  52. fides/ui-build/static/admin/_next/static/chunks/{6277-ec0e3fa4e4614098.js → 6277-3759894435cb8569.js} +1 -1
  53. fides/ui-build/static/admin/_next/static/chunks/{6315-79a1506e01f2f92b.js → 6315-e2fb5ea77179a871.js} +1 -1
  54. fides/ui-build/static/admin/_next/static/chunks/{6853-c348f6e95f987cbf.js → 6853-de9905d28e5b19b3.js} +1 -1
  55. fides/ui-build/static/admin/_next/static/chunks/{6954-c44ac4e70e777c2f.js → 6954-84789a4e4fb04eb9.js} +1 -1
  56. fides/ui-build/static/admin/_next/static/chunks/7059-2bb7c38578549703.js +1 -0
  57. fides/ui-build/static/admin/_next/static/chunks/{7245-120f536e09decb85.js → 7245-c9bc628d078c2170.js} +1 -1
  58. fides/ui-build/static/admin/_next/static/chunks/{7476-4234fb244676ec13.js → 7476-a02d970ea4d3f7d0.js} +1 -1
  59. fides/ui-build/static/admin/_next/static/chunks/7488-cf92601852e3c509.js +1 -0
  60. fides/ui-build/static/admin/_next/static/chunks/{7630-d7bd74d0cfdb22df.js → 7630-a11610c2b31ab2ca.js} +1 -1
  61. fides/ui-build/static/admin/_next/static/chunks/{7773-6dce6187fe2c6984.js → 7773-9ae233109bc64ec2.js} +1 -1
  62. fides/ui-build/static/admin/_next/static/chunks/{796-fae64888b8b2f369.js → 796-e36d610066135f8c.js} +1 -1
  63. fides/ui-build/static/admin/_next/static/chunks/{8011-6e40c969c9fa7d35.js → 8011-75af8b480fa114e6.js} +1 -1
  64. fides/ui-build/static/admin/_next/static/chunks/{8212-18d8da0f9208f978.js → 8212-393420e5a9751791.js} +1 -1
  65. fides/ui-build/static/admin/_next/static/chunks/{8373-24379b7d98e6922e.js → 8373-22b4d20e8cc06b3a.js} +1 -1
  66. fides/ui-build/static/admin/_next/static/chunks/{9046-6428eac9f38b3886.js → 9046-d9c6498368b993d1.js} +1 -1
  67. fides/ui-build/static/admin/_next/static/chunks/{9330-540a113903cb3c28.js → 9330-f753636a31c4ea04.js} +1 -1
  68. fides/ui-build/static/admin/_next/static/chunks/{9676.704cc210f59d0083.js → 9676.7d029a5383595b69.js} +1 -1
  69. fides/ui-build/static/admin/_next/static/chunks/{9682-a3b2fb1a2df1c948.js → 9682-d1a3afa1394f8304.js} +1 -1
  70. fides/ui-build/static/admin/_next/static/chunks/{9826-aecc5ddec86989dc.js → 9826-a737a9956c1d0905.js} +1 -1
  71. fides/ui-build/static/admin/_next/static/chunks/{9899-303921e3d0697960.js → 9899-addc35c81190203d.js} +1 -1
  72. fides/ui-build/static/admin/_next/static/chunks/{9965-6906ffdaef0f0d69.js → 9965-25621dd507e0cfd6.js} +1 -1
  73. fides/ui-build/static/admin/_next/static/chunks/pages/{404-c31cef0ce3fbeebf.js → 404-eb019192ce498f32.js} +1 -1
  74. fides/ui-build/static/admin/_next/static/chunks/pages/{_app-5fd4e06224960492.js → _app-ee588a308812715d.js} +11 -11
  75. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/{manual-a5865f42aafbe1f8.js → manual-7081e0e49f67716c.js} +1 -1
  76. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/{multiple-f706664770dd3e7f.js → multiple-a188f84239f4b2a8.js} +1 -1
  77. fides/ui-build/static/admin/_next/static/chunks/pages/{add-systems-3f0d8698f01aabc5.js → add-systems-ee9df33ebd471099.js} +1 -1
  78. fides/ui-build/static/admin/_next/static/chunks/pages/consent/configure/{add-vendors-fcd031b2b775e4f3.js → add-vendors-4f9cf087fcee87e6.js} +1 -1
  79. fides/ui-build/static/admin/_next/static/chunks/pages/consent/{configure-0bd2eb0110873c4d.js → configure-9af75caefc74eaca.js} +1 -1
  80. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience/{[id]-0dd17c74a6cc17ff.js → [id]-1b02a4991201b7e4.js} +1 -1
  81. fides/ui-build/static/admin/_next/static/chunks/pages/consent/{privacy-experience-ae8dff75e1c6c413.js → privacy-experience-b08abefec298ccf1.js} +1 -1
  82. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{[id]-84ba8b9947b9af0a.js → [id]-8c164c4b8310214e.js} +1 -1
  83. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{new-f03d1d0df4661a33.js → new-db789002d84c8829.js} +1 -1
  84. fides/ui-build/static/admin/_next/static/chunks/pages/consent/{privacy-notices-5a553b4bdbf85aa9.js → privacy-notices-6528eb24165aceb6.js} +1 -1
  85. fides/ui-build/static/admin/_next/static/chunks/pages/consent/{properties-5cba88e6839a087d.js → properties-5cba30eba1e97e56.js} +1 -1
  86. fides/ui-build/static/admin/_next/static/chunks/pages/consent/{reporting-f2690c381c1d1a52.js → reporting-11f1683aa15e1a62.js} +1 -1
  87. fides/ui-build/static/admin/_next/static/chunks/pages/{consent-289d21aa6c42828b.js → consent-614af0a2c2ba966c.js} +1 -1
  88. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/{[projectUrn]-cb56d56b9d918682.js → [projectUrn]-d60761c20382b259.js} +1 -1
  89. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/{projects-ccb66ba6d1ad93fc.js → projects-07e7d38ce34e1e6c.js} +1 -1
  90. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/{resources-ecb2d925d75dfe1e.js → resources-aed94957009eb3fd.js} +1 -1
  91. fides/ui-build/static/admin/_next/static/chunks/pages/{data-catalog-75403467491a251b.js → data-catalog-127c114dd8f102ed.js} +1 -1
  92. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/datastore/[monitorId]-21a0f5f1b5450976.js +1 -0
  93. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/website/[monitorId]/{[systemId]-71cf0b06b3d5a326.js → [systemId]-899bf30dde8b3292.js} +1 -1
  94. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/website/{[monitorId]-cc6b359fb4968bf0.js → [monitorId]-73085f50abb775c0.js} +1 -1
  95. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center-823d0dd77e66585b.js +1 -0
  96. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{activity-7dded115499a4a4a.js → activity-24a82e07a0008516.js} +1 -1
  97. fides/ui-build/static/admin/_next/static/chunks/pages/{datamap-d1bb19fe4ef393dc.js → datamap-3b100c44ea9e3988.js} +1 -1
  98. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]/{[...subfieldNames]-58c3f4c0b490264b.js → [...subfieldNames]-5f88280db168083e.js} +1 -1
  99. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/{[collectionName]-74290432e74fcdc5.js → [collectionName]-bfbcf19c28c794ae.js} +1 -1
  100. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/{[datasetId]-8dad45f070a06609.js → [datasetId]-6fbe2b584a509226.js} +1 -1
  101. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/{new-6aed6dc24c3be001.js → new-3d1e48f4b95d7f6b.js} +1 -1
  102. fides/ui-build/static/admin/_next/static/chunks/pages/{dataset-fdaec997c1b0753f.js → dataset-d3c6ecf7f29bea6e.js} +1 -1
  103. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/{[id]-63c4805e40673c60.js → [id]-0a4aa42be2da0255.js} +1 -1
  104. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/{new-b5a49743387eecef.js → new-14313e441a13192c.js} +1 -1
  105. fides/ui-build/static/admin/_next/static/chunks/pages/{datastore-connection-8f0804d9a38688a4.js → datastore-connection-f139d1ce26404f30.js} +1 -1
  106. fides/ui-build/static/admin/_next/static/chunks/pages/{index-363b091a4d1d70ad.js → index-1343fa525a206571.js} +1 -1
  107. fides/ui-build/static/admin/_next/static/chunks/pages/integrations/[id]-b2d3d28b10a758e6.js +1 -0
  108. fides/ui-build/static/admin/_next/static/chunks/pages/{integrations-b0da32fe3564c129.js → integrations-a733e5d7c3ce9bb8.js} +1 -1
  109. fides/ui-build/static/admin/_next/static/chunks/pages/new-privacy-requests-df0c95e408c54c7e.js +1 -0
  110. fides/ui-build/static/admin/_next/static/chunks/pages/notifications/digests/{[id]-0e4e4e7110362022.js → [id]-63b3be660fb12c0f.js} +1 -1
  111. fides/ui-build/static/admin/_next/static/chunks/pages/notifications/digests/{new-2e15f6272e9aaeb6.js → new-d3b577962dd33266.js} +1 -1
  112. fides/ui-build/static/admin/_next/static/chunks/pages/notifications/{digests-65626dfcfacdc605.js → digests-aed9afd988a48acf.js} +1 -1
  113. fides/ui-build/static/admin/_next/static/chunks/pages/notifications/providers/{[key]-768c4e2f6b05304c.js → [key]-720cde29f81db47f.js} +1 -1
  114. fides/ui-build/static/admin/_next/static/chunks/pages/notifications/providers/{new-2d57a70e4d32e651.js → new-3668866076b53016.js} +1 -1
  115. fides/ui-build/static/admin/_next/static/chunks/pages/notifications/{providers-83f78354fa34bffe.js → providers-36a0ac36062abd02.js} +1 -1
  116. fides/ui-build/static/admin/_next/static/chunks/pages/notifications/templates/{[id]-1b31764f520fbbc5.js → [id]-8063dceb32310c85.js} +1 -1
  117. fides/ui-build/static/admin/_next/static/chunks/pages/notifications/templates/{add-template-4c74456b6677bf07.js → add-template-4931c70bee62232f.js} +1 -1
  118. fides/ui-build/static/admin/_next/static/chunks/pages/notifications/{templates-5deb80abd6156f7f.js → templates-a14c876b49422597.js} +1 -1
  119. fides/ui-build/static/admin/_next/static/chunks/pages/{notifications-8d8716dda9a6f277.js → notifications-93af719dab3bd053.js} +1 -1
  120. fides/ui-build/static/admin/_next/static/chunks/pages/poc/{ant-components-52b1572442a20ab4.js → ant-components-9cfb469de7b4aeab.js} +1 -1
  121. fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{AntForm-a0437ba647d59799.js → AntForm-e715cc654fb6a5cd.js} +1 -1
  122. fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{FormikAntFormItem-87285c544450ec46.js → FormikAntFormItem-72ae299bcb6adae6.js} +1 -1
  123. fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{FormikControlled-57997dbd451a6eed.js → FormikControlled-2337f8c81a766eb0.js} +1 -1
  124. fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{FormikField-65009783e0404153.js → FormikField-0af454f55494f6fa.js} +1 -1
  125. fides/ui-build/static/admin/_next/static/chunks/pages/poc/{forms-eafef007c179340f.js → forms-d1b90ffa996fbd89.js} +1 -1
  126. fides/ui-build/static/admin/_next/static/chunks/pages/poc/{table-migration-7933a824a45d0ee6.js → table-migration-19724b9e0581b96d.js} +1 -1
  127. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/[id]-cdd3754289a28317.js +1 -0
  128. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/{storage-16f77a6291bb02fe.js → storage-cc41ae605f2b55ae.js} +1 -1
  129. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/{configure-d2b3293ab496f7bc.js → configure-fa82cffba448ccd8.js} +1 -1
  130. fides/ui-build/static/admin/_next/static/chunks/pages/{privacy-requests-af4f48d10926e4a4.js → privacy-requests-6e4c535b6d614596.js} +1 -1
  131. fides/ui-build/static/admin/_next/static/chunks/pages/properties/{[id]-dd3c3d780533a9c2.js → [id]-bc1c289647e52c48.js} +1 -1
  132. fides/ui-build/static/admin/_next/static/chunks/pages/properties/{add-property-d1af260c3ddbf68b.js → add-property-cbfaa23d96f5ed0b.js} +1 -1
  133. fides/ui-build/static/admin/_next/static/chunks/pages/{properties-9bb7fe3577402008.js → properties-a15a3fd0ed88f39c.js} +1 -1
  134. fides/ui-build/static/admin/_next/static/chunks/pages/reporting/datamap-632b3ee563d070f2.js +1 -0
  135. fides/ui-build/static/admin/_next/static/chunks/pages/sandbox/privacy-notices-afe921f6e2a526fb.js +1 -0
  136. fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent/[configuration_id]/{[purpose_id]-35626e9d8e0a3ca2.js → [purpose_id]-19de0024418a4924.js} +1 -1
  137. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{consent-39b5142099ed8705.js → consent-5b6807dced8d03c5.js} +1 -1
  138. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{custom-fields-64c638ea33bb3ff9.js → custom-fields-7dce52bfc1b2652c.js} +1 -1
  139. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{domain-records-3843fbaf5bc433f1.js → domain-records-3b87002753b23ca5.js} +1 -1
  140. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{domains-ea549fabce96fde4.js → domains-aacd9d0ad47082d4.js} +1 -1
  141. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{email-templates-0fe318a9dfc1f593.js → email-templates-3cdd0b39901190ba.js} +1 -1
  142. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{locations-c42c856510cad6fd.js → locations-61076eedbfd137b9.js} +1 -1
  143. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{organization-e4c552a5797c3fa5.js → organization-b07b11d6002f8c8c.js} +1 -1
  144. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{privacy-requests-2790d31b59cc3c74.js → privacy-requests-084a2b4431d35322.js} +1 -1
  145. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{regulations-3c608512c415fca4.js → regulations-b7c0d3b1b754e70f.js} +1 -1
  146. fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]/{test-datasets-e0e1a5142e41e9f2.js → test-datasets-b72d36243a0a545c.js} +1 -1
  147. fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/{[id]-9e815520adb3e580.js → [id]-59c89489fa32a4cb.js} +1 -1
  148. fides/ui-build/static/admin/_next/static/chunks/pages/{systems-d8ce572ad07ed28c.js → systems-cfaa37a0df83674b.js} +1 -1
  149. fides/ui-build/static/admin/_next/static/chunks/pages/taxonomy-d2eb5a81d4a19c7d.js +1 -0
  150. fides/ui-build/static/admin/_next/static/chunks/pages/user-management/profile/{[id]-75d96422db98196f.js → [id]-5d5a68e555d18693.js} +1 -1
  151. fides/ui-build/static/admin/_next/static/chunks/pages/{user-management-598f98fd88505e1e.js → user-management-e6a211d8a0401086.js} +1 -1
  152. fides/ui-build/static/admin/_next/static/chunks/{webpack-0a3b419ab682b8f9.js → webpack-c2c11809187b9f84.js} +1 -1
  153. fides/ui-build/static/admin/_next/static/css/d41a048a166d50e4.css +1 -0
  154. fides/ui-build/static/admin/_next/static/css/d78390d6134d8328.css +1 -0
  155. fides/ui-build/static/admin/add-systems/manual.html +1 -1
  156. fides/ui-build/static/admin/add-systems/multiple.html +1 -1
  157. fides/ui-build/static/admin/add-systems.html +1 -1
  158. fides/ui-build/static/admin/consent/configure/add-vendors.html +1 -1
  159. fides/ui-build/static/admin/consent/configure.html +1 -1
  160. fides/ui-build/static/admin/consent/privacy-experience/[id].html +1 -1
  161. fides/ui-build/static/admin/consent/privacy-experience/new.html +1 -1
  162. fides/ui-build/static/admin/consent/privacy-experience.html +1 -1
  163. fides/ui-build/static/admin/consent/privacy-notices/[id].html +1 -1
  164. fides/ui-build/static/admin/consent/privacy-notices/new.html +1 -1
  165. fides/ui-build/static/admin/consent/privacy-notices.html +1 -1
  166. fides/ui-build/static/admin/consent/properties.html +1 -1
  167. fides/ui-build/static/admin/consent/reporting.html +1 -1
  168. fides/ui-build/static/admin/consent.html +1 -1
  169. fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn].html +1 -1
  170. fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn].html +1 -1
  171. fides/ui-build/static/admin/data-catalog/[systemId]/projects.html +1 -1
  172. fides/ui-build/static/admin/data-catalog/[systemId]/resources/[resourceUrn].html +1 -1
  173. fides/ui-build/static/admin/data-catalog/[systemId]/resources.html +1 -1
  174. fides/ui-build/static/admin/data-catalog.html +1 -1
  175. fides/ui-build/static/admin/data-discovery/action-center/datastore/[monitorId].html +1 -1
  176. fides/ui-build/static/admin/data-discovery/action-center/datastore.html +1 -1
  177. fides/ui-build/static/admin/data-discovery/action-center/website/[monitorId]/[systemId].html +1 -1
  178. fides/ui-build/static/admin/data-discovery/action-center/website/[monitorId].html +1 -1
  179. fides/ui-build/static/admin/data-discovery/action-center/website.html +1 -1
  180. fides/ui-build/static/admin/data-discovery/action-center.html +1 -1
  181. fides/ui-build/static/admin/data-discovery/activity.html +1 -1
  182. fides/ui-build/static/admin/data-discovery/detection/[resourceUrn].html +1 -1
  183. fides/ui-build/static/admin/data-discovery/detection.html +1 -1
  184. fides/ui-build/static/admin/data-discovery/discovery/[resourceUrn].html +1 -1
  185. fides/ui-build/static/admin/data-discovery/discovery.html +1 -1
  186. fides/ui-build/static/admin/datamap.html +1 -1
  187. fides/ui-build/static/admin/dataset/[datasetId]/[collectionName]/[...subfieldNames].html +1 -1
  188. fides/ui-build/static/admin/dataset/[datasetId]/[collectionName].html +1 -1
  189. fides/ui-build/static/admin/dataset/[datasetId].html +1 -1
  190. fides/ui-build/static/admin/dataset/new.html +1 -1
  191. fides/ui-build/static/admin/dataset.html +1 -1
  192. fides/ui-build/static/admin/datastore-connection/[id].html +1 -1
  193. fides/ui-build/static/admin/datastore-connection/new.html +1 -1
  194. fides/ui-build/static/admin/datastore-connection.html +1 -1
  195. fides/ui-build/static/admin/index.html +1 -1
  196. fides/ui-build/static/admin/integrations/[id].html +1 -1
  197. fides/ui-build/static/admin/integrations.html +1 -1
  198. fides/ui-build/static/admin/login/[provider].html +1 -1
  199. fides/ui-build/static/admin/login.html +1 -1
  200. fides/ui-build/static/admin/new-privacy-requests.html +1 -1
  201. fides/ui-build/static/admin/notifications/digests/[id].html +1 -1
  202. fides/ui-build/static/admin/notifications/digests/new.html +1 -1
  203. fides/ui-build/static/admin/notifications/digests.html +1 -1
  204. fides/ui-build/static/admin/notifications/providers/[key].html +1 -1
  205. fides/ui-build/static/admin/notifications/providers/new.html +1 -1
  206. fides/ui-build/static/admin/notifications/providers.html +1 -1
  207. fides/ui-build/static/admin/notifications/templates/[id].html +1 -1
  208. fides/ui-build/static/admin/notifications/templates/add-template.html +1 -1
  209. fides/ui-build/static/admin/notifications/templates.html +1 -1
  210. fides/ui-build/static/admin/notifications.html +1 -1
  211. fides/ui-build/static/admin/poc/ant-components.html +1 -1
  212. fides/ui-build/static/admin/poc/form-experiments/AntForm.html +1 -1
  213. fides/ui-build/static/admin/poc/form-experiments/FormikAntFormItem.html +1 -1
  214. fides/ui-build/static/admin/poc/form-experiments/FormikControlled.html +1 -1
  215. fides/ui-build/static/admin/poc/form-experiments/FormikField.html +1 -1
  216. fides/ui-build/static/admin/poc/form-experiments/FormikSpreadField.html +1 -1
  217. fides/ui-build/static/admin/poc/forms.html +1 -1
  218. fides/ui-build/static/admin/poc/table-migration.html +1 -1
  219. fides/ui-build/static/admin/privacy-requests/[id].html +1 -1
  220. fides/ui-build/static/admin/privacy-requests/configure/storage.html +1 -1
  221. fides/ui-build/static/admin/privacy-requests/configure.html +1 -1
  222. fides/ui-build/static/admin/privacy-requests.html +1 -1
  223. fides/ui-build/static/admin/properties/[id].html +1 -1
  224. fides/ui-build/static/admin/properties/add-property.html +1 -1
  225. fides/ui-build/static/admin/properties.html +1 -1
  226. fides/ui-build/static/admin/reporting/datamap.html +1 -1
  227. fides/ui-build/static/admin/sandbox/privacy-notices.html +1 -0
  228. fides/ui-build/static/admin/settings/about/alpha.html +1 -1
  229. fides/ui-build/static/admin/settings/about.html +1 -1
  230. fides/ui-build/static/admin/settings/consent/[configuration_id]/[purpose_id].html +1 -1
  231. fides/ui-build/static/admin/settings/consent.html +1 -1
  232. fides/ui-build/static/admin/settings/custom-fields/[id].html +1 -1
  233. fides/ui-build/static/admin/settings/custom-fields/new.html +1 -1
  234. fides/ui-build/static/admin/settings/custom-fields.html +1 -1
  235. fides/ui-build/static/admin/settings/domain-records.html +1 -1
  236. fides/ui-build/static/admin/settings/domains.html +1 -1
  237. fides/ui-build/static/admin/settings/email-templates.html +1 -1
  238. fides/ui-build/static/admin/settings/locations.html +1 -1
  239. fides/ui-build/static/admin/settings/organization.html +1 -1
  240. fides/ui-build/static/admin/settings/privacy-requests.html +1 -1
  241. fides/ui-build/static/admin/settings/regulations.html +1 -1
  242. fides/ui-build/static/admin/systems/configure/[id]/test-datasets.html +1 -1
  243. fides/ui-build/static/admin/systems/configure/[id].html +1 -1
  244. fides/ui-build/static/admin/systems.html +1 -1
  245. fides/ui-build/static/admin/taxonomy.html +1 -1
  246. fides/ui-build/static/admin/user-management/new.html +1 -1
  247. fides/ui-build/static/admin/user-management/profile/[id].html +1 -1
  248. fides/ui-build/static/admin/user-management.html +1 -1
  249. fides/ui-build/static/admin/_next/static/V6C1Uu1MRQoBEyjy_BoEr/_buildManifest.js +0 -1
  250. fides/ui-build/static/admin/_next/static/chunks/7059-3f2641e3130b4ef8.js +0 -1
  251. fides/ui-build/static/admin/_next/static/chunks/7488-2db0992474f8056e.js +0 -1
  252. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/datastore/[monitorId]-e46e017a3919f94e.js +0 -1
  253. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center-cbff5db86e6951c4.js +0 -1
  254. fides/ui-build/static/admin/_next/static/chunks/pages/integrations/[id]-3b7f47985452e01d.js +0 -1
  255. fides/ui-build/static/admin/_next/static/chunks/pages/new-privacy-requests-d1152cbc3c1bbbbb.js +0 -1
  256. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/[id]-27c56466eab98b15.js +0 -1
  257. fides/ui-build/static/admin/_next/static/chunks/pages/reporting/datamap-33ce744d07982c0f.js +0 -1
  258. fides/ui-build/static/admin/_next/static/chunks/pages/taxonomy-0cae23a599830708.js +0 -1
  259. fides/ui-build/static/admin/_next/static/css/919f947a862d28cd.css +0 -1
  260. {ethyca_fides-2.73.0rc4.dist-info → ethyca_fides-2.73.1.dist-info}/WHEEL +0 -0
  261. {ethyca_fides-2.73.0rc4.dist-info → ethyca_fides-2.73.1.dist-info}/entry_points.txt +0 -0
  262. {ethyca_fides-2.73.0rc4.dist-info → ethyca_fides-2.73.1.dist-info}/licenses/LICENSE +0 -0
  263. {ethyca_fides-2.73.0rc4.dist-info → ethyca_fides-2.73.1.dist-info}/top_level.txt +0 -0
  264. /fides/ui-build/static/admin/_next/static/{V6C1Uu1MRQoBEyjy_BoEr → BcQzR23eIPTcIJtpdoKEA}/_ssgManifest.js +0 -0
  265. /fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]/{[resourceUrn]-5d133ec635cd716c.js → [resourceUrn]-32bd7a7c990e5bf6.js} +0 -0
  266. /fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/resources/{[resourceUrn]-9d8efe43b69a285d.js → [resourceUrn]-b07a0707f8c2ec0d.js} +0 -0
  267. /fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/{datastore-1b0ed3b3ceedfd94.js → datastore-4498881c26f1458d.js} +0 -0
  268. /fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/{website-60ad14c879b4fe27.js → website-5b3e0009d442bc3f.js} +0 -0
  269. /fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/detection/{[resourceUrn]-2df143c1e1f79040.js → [resourceUrn]-b072cf25aefc98f6.js} +0 -0
  270. /fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{detection-e37c800313e2a422.js → detection-fd3e8817d8e6dee4.js} +0 -0
  271. /fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/discovery/{[resourceUrn]-7022ca5fa834b633.js → [resourceUrn]-146624cf59792bf7.js} +0 -0
  272. /fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{discovery-6178e22397f20f92.js → discovery-9695cc9c85592ec5.js} +0 -0
  273. /fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields/{[id]-b5140de4431a7ff5.js → [id]-8634aae3259def37.js} +0 -0
  274. /fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields/{new-dcc16459e754fbbd.js → new-2d9dcca17965dc57.js} +0 -0
  275. /fides/ui-build/static/admin/_next/static/chunks/pages/user-management/{new-bc1568bb47d198a9.js → new-7dce2916cc589c54.js} +0 -0
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[210],{53748:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/consent",function(){return i(96236)}])},59301:function(e,t,i){"use strict";var s=i(24246);let{Link:n}=i(87949).AntTypography;t.Z=e=>{let{children:t,...i}=e;return(0,s.jsx)(n,{target:"_blank",rel:"noopener noreferrer",...i,children:t})}},56358:function(e,t,i){"use strict";i.d(t,{q:function(){return n}});var s=i(24246);let n=(0,i(87949).IUT)({displayName:"TrashCanOutlineIcon",viewBox:"0 0 11 12",path:(0,s.jsx)("path",{d:"M4.5166 1.60859L4.1084 2.21875H7.22363L6.81543 1.60859C6.7832 1.56133 6.72949 1.53125 6.67148 1.53125H4.6584C4.60039 1.53125 4.54668 1.55918 4.51445 1.60859H4.5166ZM7.6748 1.03711L8.46328 2.21875H8.75977H9.79102H9.96289C10.2486 2.21875 10.4785 2.44863 10.4785 2.73438C10.4785 3.02012 10.2486 3.25 9.96289 3.25H9.79102V9.78125C9.79102 10.7309 9.02188 11.5 8.07227 11.5H3.25977C2.31016 11.5 1.54102 10.7309 1.54102 9.78125V3.25H1.36914C1.0834 3.25 0.853516 3.02012 0.853516 2.73438C0.853516 2.44863 1.0834 2.21875 1.36914 2.21875H1.54102H2.57227H2.86875L3.65723 1.03496C3.88066 0.701953 4.25664 0.5 4.6584 0.5H6.67148C7.07324 0.5 7.44922 0.701953 7.67266 1.03496L7.6748 1.03711ZM2.57227 3.25V9.78125C2.57227 10.1615 2.87949 10.4688 3.25977 10.4688H8.07227C8.45254 10.4688 8.75977 10.1615 8.75977 9.78125V3.25H2.57227ZM4.29102 4.625V9.09375C4.29102 9.28281 4.13633 9.4375 3.94727 9.4375C3.7582 9.4375 3.60352 9.28281 3.60352 9.09375V4.625C3.60352 4.43594 3.7582 4.28125 3.94727 4.28125C4.13633 4.28125 4.29102 4.43594 4.29102 4.625ZM6.00977 4.625V9.09375C6.00977 9.28281 5.85508 9.4375 5.66602 9.4375C5.47695 9.4375 5.32227 9.28281 5.32227 9.09375V4.625C5.32227 4.43594 5.47695 4.28125 5.66602 4.28125C5.85508 4.28125 6.00977 4.43594 6.00977 4.625ZM7.72852 4.625V9.09375C7.72852 9.28281 7.57383 9.4375 7.38477 9.4375C7.1957 9.4375 7.04102 9.28281 7.04102 9.09375V4.625C7.04102 4.43594 7.1957 4.28125 7.38477 4.28125C7.57383 4.28125 7.72852 4.43594 7.72852 4.625Z",fill:"currentColor"})})},58754:function(e,t,i){"use strict";var s=i(24246),n=i(87949),r=i(70788);t.Z=e=>{let{heading:t,breadcrumbItems:i,isSticky:o=!0,children:l,rightContent:a,style:d,...c}=e;return(0,s.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",...d}:{paddingBottom:"24px",...d},children:[(0,s.jsxs)(n.jqI,{justify:"space-between",children:["string"==typeof t?(0,s.jsx)(n.lQT,{className:i||l?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,a&&(0,s.jsx)("div",{"data-testid":"page-header-right-content",children:a})]}),!!i&&(0,s.jsx)(r.m,{className:l?"pb-4":void 0,items:i,"data-testid":"page-breadcrumb"}),l]})}},19904:function(e,t,i){"use strict";i.d(t,{Tg:function(){return o}});var s=i(24246),n=i(16134),r=i(31793);let o=e=>(0,n.C)(r.uu).filter(t=>e.includes(t)).length>0;t.ZP=e=>{let{scopes:t,children:i}=e;return o(t)?(0,s.jsx)(s.Fragment,{children:i}):null}},8133:function(e,t,i){"use strict";var s=i(24246),n=i(87949);t.Z=e=>{let{title:t,children:i,isOpen:r,onClose:o,modalContentProps:l,showCloseButton:a=!1,footer:d,...c}=e;return(0,s.jsxs)(n.u_l,{isOpen:r,onClose:o,isCentered:!0,scrollBehavior:"inside",size:"xl",id:"add-modal",...c,children:[(0,s.jsx)(n.ZAr,{}),(0,s.jsxs)(n.hzk,{textAlign:"left",p:0,"data-testid":"add-modal-content",...l,children:[a&&(0,s.jsx)(n.olH,{}),(0,s.jsx)(n.xBx,{p:0,children:(0,s.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,s.jsx)(n.X6q,{as:"h3",size:"sm",children:t})})}),(0,s.jsx)(n.fef,{pb:4,overflow:"auto",children:i}),d&&(0,s.jsx)(n.mzw,{children:d})]})]})}},70788:function(e,t,i){"use strict";i.d(t,{m:function(){return d}});var s=i(24246),n=i(87949),r=i(79894),o=i.n(r),l=i(27378);let{Text:a}=n.AntTypography,d=e=>{let{items:t,...i}=e,r=(0,l.useMemo)(()=>null==t?void 0:t.map((e,i)=>{let r=i===t.length-1,l={...e},d=l.onClick&&!l.href;return("string"==typeof l.title&&(l.title=(0,s.jsx)(a,{style:{color:"inherit",maxWidth:r?void 0:400},ellipsis:!r,id:r?"breadcrumb-current-page":void 0,children:l.title})),d)?l.title=(0,s.jsx)(n.wpx,{type:"text",size:"small",icon:l.icon,onClick:l.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:l.title}):(l.icon&&(l.title=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"anticon align-text-bottom",children:l.icon}),l.title]})),l.href&&l.title&&(l.title=(0,s.jsx)(o(),{href:l.href,className:"ant-breadcrumb-link",children:l.title}),delete l.href)),l}),[t]);return(0,s.jsx)(n.zrq,{items:r,...i})}},6675:function(e,t,i){"use strict";i.d(t,{ZS:function(){return l},a4:function(){return r}});var s=i(3228);let n=i(78780).u.injectEndpoints({endpoints:e=>({getPurposes:e.query({query:()=>"purposes"})})}),{useGetPurposesQuery:r}=n,o={purposes:{},special_purposes:{}},l=(0,s.P1)(n.endpoints.getPurposes.select(),e=>{let{data:t}=e;return t||o})},51263:function(e,t,i){"use strict";var s=i(24246),n=i(87949);t.Z=e=>{let{title:t,children:i,...r}=e;return(0,s.jsxs)(n.xuv,{backgroundColor:"var(--fidesui-bg-corinth)",borderRadius:"4px",padding:"3","data-testid":"setting-".concat(t),...r,children:[(0,s.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 l},Py:function(){return n},fj:function(){return o},uh:function(){return r}});var s=i(65735);let n=[1,3,4,5,6],r="https://ethyca.com/docs/tutorials/consent-management/consent-management-configuration/configure-tcf#vendor-overrides",o={[s.FF.PURPOSE_RESTRICTION]:"Purpose restriction",[s.FF.REQUIRE_CONSENT]:"Require consent",[s.FF.REQUIRE_LEGITIMATE_INTEREST]:"Require legitimate interest"},l={[s.PY.RESTRICT_ALL_VENDORS]:"Restrict all vendors",[s.PY.RESTRICT_SPECIFIC_VENDORS]:"Restrict specific vendors",[s.PY.ALLOW_SPECIFIC_VENDORS]:"Allow specific vendors"}},96236:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return J}});var s=i(24246),n=i(87949),r=i(34090),o=i(27378),l=i(16134),a=i(25980),d=i(812),c=i(77213),u=i(58754),p=i(6675),h=i(46628),x=i(7426),g=i(40324);let m=e=>{let{children:t,purpose:i,endCol:r}=e;return(0,s.jsx)(n.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(i)?null:(0,s.jsx)(n.xuv,{children:t})})};var f=()=>{let{values:e,setFieldValue:t}=(0,r.u6)(),{purposes:i}=(0,l.C)(p.ZS);return(0,s.jsx)(r.F2,{name:"purposeOverrides",render:()=>(0,s.jsxs)(n.kCb,{flexDirection:"column",minWidth:"944px",children:[(0,s.jsxs)(n.kCb,{width:"100%",border:"solid 1px",borderColor:"gray.200",backgroundColor:"gray.50",height:"36px",children:[(0,s.jsx)(n.kCb,{width:"600px",pl:"4",fontSize:"xs",fontWeight:"medium",lineHeight:"4",alignItems:"center",borderRight:"solid 1px",borderColor:"gray.200",children:"TCF purpose"}),(0,s.jsx)(n.kCb,{flex:"1",alignItems:"center",borderRight:"solid 1px",borderColor:"gray.200",minWidth:"36px",children:(0,s.jsx)(n.xvT,{pl:"4",fontSize:"xs",fontWeight:"medium",lineHeight:"4",children:"Allowed"})}),(0,s.jsx)(n.kCb,{flex:"1",alignItems:"center",borderRight:"solid 1px",borderColor:"gray.200",children:(0,s.jsx)(n.xvT,{pl:"4",fontSize:"xs",fontWeight:"medium",lineHeight:"4",children:"Consent"})}),(0,s.jsx)(n.kCb,{flex:"1",alignItems:"center",children:(0,s.jsx)(n.xvT,{pl:"4",fontSize:"xs",fontWeight:"medium",lineHeight:"4",children:"Legitimate interest"})})]}),e.purposeOverrides.map((r,o)=>(0,s.jsxs)(n.kCb,{width:"100%",height:"36px",alignItems:"center",borderBottom:"solid 1px",borderColor:"gray.200",backgroundColor:"#fff",children:[(0,s.jsxs)(n.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,": ",i[r.purpose].name]}),(0,s.jsx)(n.kCb,{flex:"1",justifyContent:"center",alignItems:"center",borderLeft:"solid 1px",borderColor:"gray.200",height:"100%",children:(0,s.jsx)(n.xuv,{children:(0,s.jsx)(g.w8,{name:"purposeOverrides[".concat(o,"].is_included"),onChange:e=>{e||(t("purposeOverrides[".concat(o,"].is_consent"),!1),t("purposeOverrides[".concat(o,"].is_legitimate_interest"),!1))}})})}),(0,s.jsx)(m,{purpose:r.purpose,children:(0,s.jsx)(g.w8,{isDisabled:!e.purposeOverrides[o].is_included||e.purposeOverrides[o].is_legitimate_interest,name:"purposeOverrides[".concat(o,"].is_consent")})}),(0,s.jsx)(m,{purpose:r.purpose,endCol:!0,children:(0,s.jsx)(g.w8,{isDisabled:!e.purposeOverrides[o].is_included||e.purposeOverrides[o].is_consent,name:"purposeOverrides[".concat(o,"].is_legitimate_interest")})})]},r.purpose))]})})},v=i(59301),j=e=>{let{name:t,enabled:i}=e;return(0,s.jsxs)(n.Kqy,{spacing:2,fontSize:"sm",lineHeight:"5",fontWeight:"medium",color:"gray.700",children:[(0,s.jsxs)(n.xvT,{children:[t," status"," ",i?(0,s.jsx)(n.j8w,{color:"success",children:"Enabled"}):(0,s.jsx)(n.j8w,{color:"error",children:"Disabled"})]}),(0,s.jsxs)(n.xvT,{children:["To ",i?"disable":"enable"," ",t,", please contact your Fides administrator or"," ",(0,s.jsx)(v.Z,{href:"mailto:support@ethyca.com",children:"Ethyca support"}),"."]})]})},b=i(46238),C=e=>{var t,i;let{label:o,options:l,layout:a,defaultFirstSelected:d=!0,...c}=e,[u,p]=(0,r.U$)(c),h={...u,value:null!==(t=u.value)&&void 0!==t?t:""},x=!!(p.touched&&p.error),m=d?l[0]:void 0,f=null!==(i=l.find(e=>e.value===h.value))&&void 0!==i?i:m,v=e=>{h.onChange(c.name)(e.target.value)};return"stacked"===a?(0,s.jsxs)(n.NIc,{isInvalid:x,children:[(0,s.jsxs)(n.jqI,{className:"w-fit",children:[o?(0,s.jsx)(g.__,{children:o}):null,(0,s.jsx)(n.y02.Group,{onChange:v,value:null==f?void 0:f.value,"data-testid":"input-".concat(h.name),children:(0,s.jsx)(n.jqI,{className:"flex-col gap-3",children:l.map(e=>{let{value:t,label:i,tooltip:r}=e;return(0,s.jsx)(n.y02,{value:t,"data-testid":"option-".concat(t),children:(0,s.jsxs)(n.jqI,{className:"items-center gap-2",children:[(0,s.jsx)(n.xvT,{fontSize:"sm",fontWeight:"medium",children:i}),r?(0,s.jsx)(b.b,{label:r}):null]})},t)})})})]}),(0,s.jsx)(g.Bc,{isInvalid:x,message:p.error,fieldName:h.name})]}):(0,s.jsxs)(n.NIc,{isInvalid:x,children:[(0,s.jsxs)(n.rjZ,{templateColumns:"1fr 3fr",children:[(0,s.jsx)(g.__,{children:o}),(0,s.jsx)(n.y02.Group,{onChange:v,value:null==f?void 0:f.value,"data-testid":"input-".concat(h.name),children:(0,s.jsx)(n.jqI,{children:l.map(e=>(0,s.jsx)(n.y02,{value:e.value,"data-testid":"option-".concat(e.value),children:e.label},e.value))})})]}),(0,s.jsx)(g.Bc,{isInvalid:x,message:p.error,fieldName:h.name})]})},y=i(65735),_=i(51263);let w=e=>{let{title:t,children:i}=e;return(0,s.jsxs)(n.Kqy,{spacing:3,mb:3,"data-testid":"section-".concat(t),children:[(0,s.jsx)(n.xvT,{fontSize:"sm",fontWeight:"bold",lineHeight:5,color:"gray.700",children:t}),i]})};var T=()=>{let{tcf:e}=(0,a.hz)(),t=!!(0,l.C)(x.D2).enabled,{values:i,setFieldValue:o}=(0,r.u6)(),d=!!i.gpp.us_approach;return(0,s.jsx)(_.Z,{title:"Global Privacy Platform",children:(0,s.jsxs)(n.Kqy,{spacing:6,children:[(0,s.jsx)(j,{name:"GPP",enabled:t}),t?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(w,{title:"GPP U.S.",children:(0,s.jsx)(C,{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,s.jsxs)(w,{title:"MSPA",children:[(0,s.jsx)(g.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||(o("gpp.mspa_service_provider_mode",!1),o("gpp.mspa_opt_out_option_mode",!1))}}),(0,s.jsx)(g.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:!!i.gpp.mspa_opt_out_option_mode||!i.gpp.mspa_covered_transactions}),(0,s.jsx)(g.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:!!i.gpp.mspa_service_provider_mode||!i.gpp.mspa_covered_transactions})]}):null]}):null,e?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.izJ,{color:"gray.200"}),(0,s.jsxs)(w,{title:"GPP Europe",children:[(0,s.jsx)(n.xvT,{fontSize:"sm",fontWeight:"medium",children:"Configure TCF string for Global Privacy Platform"}),(0,s.jsx)(g.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=i(64781),I=i(60325),N=()=>{var e,t,i;let{tcf:o}=(0,a.hz)(),{values:l,setFieldValue:d}=(0,r.u6)(),{data:c,isLoading:u}=(0,S.gT)(),p=[...(0,I.k1)(null!==(t=null==c?void 0:c.locations)&&void 0!==t?t:[]),...(0,I.k1)(null!==(i=null==c?void 0:c.location_groups)&&void 0!==i?i:[])].sort((e,t)=>e.name<t.name?-1:1);return o?(0,s.jsxs)(_.Z,{title:"Publisher settings",children:[(0,s.jsx)(n.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,s.jsx)(n.PPS.Item,{label:"Publisher country",htmlFor:"publisher_country_code",children:(0,s.jsx)(n.AOh,{"data-testid":"input-publisher_settings.publisher_country_code",id:"publisher_country_code",loading:u,allowClear:!0,options:(0,n.Ky_)(null==p?void 0:p.map(e=>e.id)),placeholder:"Select a country",value:null===(e=l.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=i(52955),P=i(71795),k=i(59512),F=i(55484),L=i(8133),O=i(31883);let R=F.Ry().shape({name:F.Z_().required().label("Name")}),z=e=>{let{isOpen:t,onClose:i,onSuccess:o}=e,l=(0,n.pmc)(),[a]=(0,E.LK)(),c=async e=>{let t=await a({name:e.name});(0,O.D4)(t)?l((0,h.Vo)((0,d.e$)(t.error))):(l((0,h.t5)("Successfully created TCF configuration")),null==o||o(t.data.id),i())};return(0,s.jsx)(L.Z,{title:"Create a new TCF configuration",isOpen:t,onClose:i,children:(0,s.jsx)(r.J9,{initialValues:{name:""},onSubmit:c,validationSchema:R,children:e=>{let{isValid:t,dirty:o}=e;return(0,s.jsx)(r.l0,{children:(0,s.jsxs)(n.vyj,{direction:"vertical",size:"small",className:"w-full",children:[(0,s.jsx)(n.xvT,{children:"TCF configurations allow you to define unique sets of publisher restrictions. These configurations can be added to privacy experiences."}),(0,s.jsx)(g.j0,{id:"name",name:"name",label:"Name",isRequired:!0,variant:"stacked"}),(0,s.jsxs)(n.vyj,{className:"w-full justify-end pt-6",children:[(0,s.jsx)(n.wpx,{onClick:i,children:"Cancel"}),(0,s.jsx)(n.wpx,{type:"primary",htmlType:"submit",disabled:!t||!o,"data-testid":"save-config-button",children:"Save"})]})]})})}})})};var A=i(79894),q=i.n(A);let Z=e=>{let{width:t,style:i,borderLeft:r=!1,borderRight:o=!1,...l}=e;return(0,s.jsx)(n.jqI,{align:"center",className:"h-full px-4",...l,style:{borderLeft:r?"solid 1px":"none",borderRight:o?"solid 1px":"none",borderColor:"var(--ant-color-border)",width:t,...i},role:"cell"})},W=e=>{let{width:t,style:i,borderLeft:r=!1,children:o,...l}=e;return(0,s.jsx)(n.jqI,{align:"center",role:"columnheader",className:"px-4",...l,style:{borderLeft:r?"solid 1px":"none",borderColor:"var(--ant-color-border)",fontWeight:500,whiteSpace:"nowrap",width:t,...i},children:o})},H=e=>{let{isHeader:t=!1,isLastRow:i=!1,style:r,...o}=e;return(0,s.jsx)(n.jqI,{role:t?"rowheader":"row",className:"h-9 w-full",...o,style:{backgroundColor:t?"var(--fidesui-bg-default)":void 0,borderBottom:i?"none":"solid 1px",borderColor:"var(--ant-color-border)",...r}})},M=e=>{let{config:t,isLoading:i,style:r,...o}=e,{purposes:a}=(0,l.C)(p.ZS);return(0,s.jsxs)(n.jqI,{vertical:!0,...o,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,s.jsxs)(H,{isHeader:!0,style:{width:"100%"},children:[(0,s.jsx)(W,{width:"600px",children:"TCF purpose"}),(0,s.jsxs)(W,{flex:1,gap:3,borderLeft:!0,children:["Restrictions",(0,s.jsx)(b.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,s.jsxs)(W,{width:"100px",gap:3,borderLeft:!0,children:["Flexible",(0,s.jsx)(b.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,s.jsx)(W,{width:"100px",borderLeft:!0,children:"Actions"})]}),Object.values(a).map((e,r)=>(0,s.jsxs)(H,{isLastRow:r===Object.values(a).length-1,children:[(0,s.jsxs)(Z,{width:"600px",children:["Purpose ",e.id,": ",e.name]}),(0,s.jsx)(Z,{flex:1,borderLeft:!0,"data-testid":"restriction-type-cell-".concat(e.id),children:i?(0,s.jsx)(n.OdW,{height:"16px",width:"100%"}):(()=>{var i;let r=(null==t?void 0:null===(i=t.restriction_types_per_purpose)||void 0===i?void 0:i[e.id])||[];return 0===r.length?"none":1===r.length?(0,s.jsx)(n.xvT,{size:"sm",whiteSpace:"nowrap",children:k.fj[r[0]]}):(0,s.jsxs)(n.xvT,{children:[r.length," restrictions"]})})()}),(0,s.jsx)(Z,{width:"100px",borderLeft:!0,children:k.Py.includes(e.id)?(0,s.jsx)(n.j8w,{color:"error","data-testid":"flexibility-tag-".concat(e.id),children:"No"}):(0,s.jsx)(n.j8w,{color:"success","data-testid":"flexibility-tag-".concat(e.id),children:"Yes"})}),(0,s.jsx)(Z,{width:"100px",borderLeft:!0,children:(0,s.jsx)(q(),{href:"/settings/consent/".concat(null==t?void 0:t.id,"/").concat(e.id),passHref:!0,legacyBehavior:!0,children:(0,s.jsx)(n.wpx,{size:"small","data-testid":"edit-restriction-btn-".concat(e.id),children:"Edit"})})})]},e.id))]})};var V=i(56358),D=i(19904);let B=()=>(0,s.jsxs)(n.vyj,{direction:"vertical",size:"small",children:[(0,s.jsx)(n.OdW,{width:"100%",className:"h-4"}),(0,s.jsx)(n.OdW,{width:"100%",className:"h-4"}),(0,s.jsx)(n.OdW,{width:"100%",className:"h-4"})]}),G=e=>{let{searchResults:t,selectedConfigId:i,handleSelection:r,userCanDeleteConfigs:o,onDeleteOpen:l,setConfigToDelete:a}=e;return(0,s.jsx)(n.y02.Group,{onChange:e=>r(e.target.value),value:i,className:"flex flex-col gap-2",children:t.map(e=>(0,s.jsxs)(n.jqI,{className:o?"justify-between":"justify-start","data-testid":"tcf-config-item-".concat(e.id),children:[(0,s.jsx)(n.y02,{value:e.id,name:"tcf-config-id","data-testid":"tcf-config-item",children:(0,s.jsx)(n.xvT,{className:"text-sm",children:e.name})}),o&&(0,s.jsx)(n.wpx,{type:"text",size:"small","aria-label":"Delete",icon:(0,s.jsx)(V.q,{fontSize:16}),onClick:t=>{t.stopPropagation(),a(e),l()},"data-testid":"delete-config-button"})]},e.id))})},U=e=>{let t,{searchTerm:i,setSearchTerm:r,searchResults:l,selectedConfigId:a,handleSelection:d,userCanCreateConfigs:c,userCanDeleteConfigs:u,modalOnOpen:p,onDeleteOpen:h,setConfigToDelete:x,isLoading:g,setDropdownOpen:m,configurations:f}=e,[v,j]=(0,o.useState)(a);return(0,o.useEffect)(()=>{j(a)},[a]),t=g?(0,s.jsx)(B,{}):0===l.length?(0,s.jsx)(n.xvT,{className:"text-center",children:"No configurations found."}):(0,s.jsx)(G,{searchResults:l,selectedConfigId:v,handleSelection:e=>{j(e)},userCanDeleteConfigs:u,onDeleteOpen:h,setConfigToDelete:x}),(0,s.jsxs)(n.V4A,{title:"TCF configurations",className:"min-w-[300px]",extra:(0,s.jsx)(n.wpx,{type:"text",size:"small","aria-label":"Close",icon:(0,s.jsx)(n.Two,{}),onClick:()=>m(!1),"data-testid":"close-config-dropdown"}),style:{boxShadow:"var(--ant-box-shadow)"},children:[f.length>10&&(0,s.jsx)(n.BZy,{size:"sm",children:(0,s.jsx)(n.AntInput,{className:"mb-4",placeholder:"Search...",onChange:e=>r(e.target.value),value:i})}),t,(0,s.jsxs)(n.jqI,{gap:"small",className:"mt-4",children:[c&&(0,s.jsx)(n.wpx,{size:"small",onClick:()=>{p(),m(!1)},className:"flex-1","data-testid":"create-config-button",children:"+ Create"}),(0,s.jsx)(n.wpx,{size:"small",onClick:()=>d(v),className:"flex-1","data-testid":"apply-config-button",disabled:v===a,children:"Apply"})]})]})},$=e=>(0,s.jsx)(U,{...e}),Y=e=>{var t;let{selectedConfigId:i,configurations:r,isLoading:l=!1,onConfigurationSelect:a,onConfigurationDelete:c}=e,u=(0,D.Tg)([y.Sh.PRIVACY_EXPERIENCE_CREATE]),p=(0,D.Tg)([y.Sh.PRIVACY_EXPERIENCE_CREATE]),h=(0,n.pmc)({id:"tcf-config-toast"}),[x]=(0,E.Cm)(),{isOpen:g,onOpen:m,onClose:f}=(0,n.qY0)(),{isOpen:v,onOpen:j,onClose:b}=(0,n.qY0)(),[C,_]=(0,o.useState)(""),[w,T]=(0,o.useState)(),[S,I]=(0,o.useState)(!1),N=(0,o.useMemo)(()=>C?r.filter(e=>e.name.toLowerCase().includes(C.toLowerCase())):r,[r,C]),P=(0,o.useMemo)(()=>r.find(e=>e.id===i),[r,i]),k=null!==(t=null==P?void 0:P.name)&&void 0!==t?t:"Select Configuration",F=e=>{a(e),I(!1)},L=async e=>{try{await x(e).unwrap(),null==c||c(e),T(void 0),b(),h({status:"success",description:'Configuration "'.concat(null==w?void 0:w.name,'" was successfully deleted.')})}catch(e){h({status:"error",description:(0,d.e$)(e,"A problem occurred while deleting the configuration.")})}};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.S0p,{open:S,onOpenChange:I,trigger:["click"],overlayStyle:{zIndex:999},dropdownRender:()=>$({searchTerm:C,setSearchTerm:_,searchResults:N,selectedConfigId:i,handleSelection:F,userCanCreateConfigs:u,userCanDeleteConfigs:p,modalOnOpen:m,onDeleteOpen:j,setConfigToDelete:T,isLoading:l,setDropdownOpen:I,configurations:r}),children:(0,s.jsx)(n.wpx,{icon:(0,s.jsx)(n.v4q,{}),iconPosition:"end","data-testid":"tcf-config-dropdown-trigger",children:k})}),(0,s.jsx)(z,{isOpen:g,onClose:f,onSuccess:e=>{a(e)}}),(0,s.jsx)(n.cVQ,{isOpen:v,onClose:()=>{T(void 0),b()},onConfirm:()=>{w&&L(w.id)},title:"Delete configuration",message:"Are you sure you want to delete this configuration? This action cannot be undone."})]})};var K=i(32885);let X=e=>{let{defaultChecked:t,onChange:i,...r}=e,l=(0,n.pmc)(),[a,c]=(0,o.useState)(t),[u,p]=(0,o.useState)(!1),{isLoading:g}=(0,K.x8)(),[m,{isLoading:f}]=(0,x.L)(),[v]=(0,K.M7)(),{data:j}=(0,K.n3)(void 0,{skip:g}),C=async e=>{let t=await m({consent:{override_vendor_purposes:e}});e&&j&&await v(j.map(e=>({...e,is_included:!0,required_legal_basis:void 0}))),(t=>{if(l.closeAll(),null==i||i(e),(0,O.D4)(t)){let e=(0,d.e$)(t.error,"An unexpected error occurred while saving vendor override settings. Please try again.");null==i||i(!1),l((0,h.Vo)(e))}})(t)};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(n.vyj,{direction:"vertical",size:"small",children:[(0,s.jsx)(n.xvT,{children:"Configure overrides for TCF related purposes."}),(0,s.jsxs)(n.vyj,{size:"small",children:[(0,s.jsx)(n.rAg,{size:"small",disabled:f,loading:f,...r,checked:a,defaultChecked:t,onClick:e=>{e?(c(e),C(e)):p(!0)},"data-testid":"tcf-override-toggle"}),(0,s.jsx)(n.xvT,{children:"Override vendor purposes"}),(0,s.jsx)(b.b,{label:"Toggle on if you want to globally change any flexible legal bases or remove TCF purposes from your CMP"})]})]}),(0,s.jsx)(n.cVQ,{isOpen:u,onClose:()=>p(!1),onConfirm:()=>{c(!1),C(!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."})]})},Q=e=>{var t;let{isTCFOverrideEnabled:i}=e,[r,l]=(0,o.useState)(i),[a,d]=(0,o.useState)(!1),[c,u]=(0,P._)("selectedTCFConfigId",null),{data:p,isLoading:h}=(0,E.LS)({page:1,size:50},{skip:!i}),{data:x,isFetching:g}=(0,E.NZ)(c||"",{skip:!c});return(0,o.useEffect)(()=>{var e,t;!h&&(null==p?void 0:null===(e=p.items)||void 0===e?void 0:e.length)&&!c&&u(p.items[0].id),h||!c||(null==p?void 0:null===(t=p.items)||void 0===t?void 0:t.length)||u(null)},[h,null==p?void 0:p.items,c,u]),(0,s.jsxs)(_.Z,{title:"Publisher restrictions",fontSize:"sm",children:[(0,s.jsxs)(n.vyj,{direction:"vertical",size:"small",style:{width:"100%"},children:[(0,s.jsx)(X,{defaultChecked:r,onChange:e=>l(e)}),r&&(0,s.jsxs)(s.Fragment,{children:[h&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.OdW,{height:"20px"}),(0,s.jsx)(n.OdW,{height:"20px"}),(0,s.jsx)(n.OdW,{height:"32px",width:"200px"})]}),!h&&(null==p?void 0:null===(t=p.items)||void 0===t?void 0:t.length)?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.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,s.jsxs)(n.xvT,{children:["To configure this section, select a TCF purpose to edit the restriction type and vendors."," ",(0,s.jsx)(v.Z,{href:k.uh,children:"Learn more about publisher restrictions"})," ","in our docs."]}),(0,s.jsx)(Y,{selectedConfigId:c||"",configurations:(null==p?void 0:p.items)||[],onConfigurationSelect:u})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(n.xvT,{children:['To define custom publisher restrictions select "create configuration" below.'," ",(0,s.jsx)(v.Z,{href:k.uh,children:"Learn more about publisher restrictions"})," ","in our docs."]}),(0,s.jsx)(n.wpx,{onClick:()=>d(!0),"data-testid":"create-config-button",children:"Create configuration +"})]})]})]}),(0,s.jsx)(z,{isOpen:a,onClose:()=>d(!1),onSuccess:e=>{u(e)}}),r&&c&&(0,s.jsx)(M,{className:"mt-3",config:x,isLoading:g})]})};var J=()=>{var e,t;let{isLoading:i}=(0,K.x8)(),{tcf:g}=(0,a.hz)(),{data:m,isLoading:v}=(0,K.n3)(void 0,{skip:i||!g}),[b,{isLoading:C}]=(0,K.M7)(),{data:w,isLoading:S}=(0,x.tB)({api_set:!0}),{data:I,isLoading:E}=(0,x.tB)({api_set:!1}),[P]=(0,x.L)(),k=(0,l.C)(x.D2),F=(0,l.C)(x.Yh),L=(0,o.useMemo)(()=>w&&(null==w?void 0:w.consent)&&"override_vendor_purposes"in w.consent?w.consent.override_vendor_purposes:!!I&&null!=I&&!!I.consent&&"override_vendor_purposes"in I.consent&&I.consent.override_vendor_purposes,[w,I]),{isLoading:O}=(0,p.a4)(),R=(0,n.pmc)(),z=async e=>{var t;let i=e=>{if(R.closeAll(),(0,d.D4)(e)){let t=(0,d.e$)(e.error,"An unexpected error occurred while saving. Please try again.");R((0,h.Vo)(t))}else R((0,h.t5)("Settings saved successfully"))},s=[...e.purposeOverrides.map(e=>{let t;return e.is_consent&&(t=y.I$.CONSENT),e.is_legitimate_interest&&(t=y.I$.LEGITIMATE_INTERESTS),{purpose:e.purpose,is_included:e.is_included,required_legal_basis:t}})];if(L){let e=await b(s);if((0,d.D4)(e)){i(e);return}}let{enabled:n,...r}=e.gpp;i(await P({gpp:r,plus_consent_settings:{tcf_publisher_country_code:null!==(t=e.tcfPublisherSettings.publisher_country_code)&&void 0!==t?t:null}}))},A=(0,o.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:k,tcfPublisherSettings:{publisher_country_code:F.tcf_publisher_country_code}}),[m,k,F]),q=(0,o.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===(t=(0,a.hz)())||void 0===t?void 0:null===(e=t.flags)||void 0===e?void 0:e.publisherRestrictions;return(0,s.jsx)(c.Z,{title:"Consent Configuration",children:i||O||v||S||E?(0,s.jsx)(n.kCb,{justifyContent:"center",alignItems:"center",height:"100%",children:(0,s.jsx)(n.$jN,{})}):(0,s.jsxs)(n.xuv,{"data-testid":"consent-configuration",children:[(0,s.jsx)(u.Z,{heading:"Consent settings"}),(0,s.jsxs)(n.Kqy,{spacing:3,mb:3,children:[(0,s.jsx)(_.Z,{title:"Transparency & Consent Framework settings",children:(0,s.jsx)(j,{name:"TCF",enabled:g})}),g&&!q&&Z&&(0,s.jsx)(Q,{isTCFOverrideEnabled:L})]}),(0,s.jsx)(r.J9,{initialValues:A,enableReinitialize:!0,onSubmit:z,children:e=>{let{dirty:t,isValid:i,isSubmitting:o}=e;return(0,s.jsx)(r.l0,{children:(0,s.jsxs)(n.Kqy,{spacing:6,children:[g&&(q||!Z)&&(0,s.jsxs)(_.Z,{title:"Vendor overrides",fontSize:"sm",children:[(0,s.jsx)(X,{defaultChecked:L,disabled:C}),L&&(0,s.jsxs)(n.Kqy,{mt:2,spacing:2,children:[(0,s.jsx)(n.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,s.jsx)(n.xvT,{children:"To configure this section, select the purposes you allow and where available, the appropriate legal bases (either Consent or Legitimate Interest)."}),(0,s.jsx)(f,{})]})]}),(0,s.jsx)(N,{}),(0,s.jsx)(T,{}),(0,s.jsx)(n.wpx,{htmlType:"submit",type:"primary",disabled:!t||!i,loading:o,"data-testid":"save-btn",className:"self-start",children:"Save"})]})})}})]})})}},31883:function(e,t,i){"use strict";i.d(t,{Bw:function(){return s.Bw},D4:function(){return s.D4}});var s=i(19043)}},function(e){e.O(0,[5279,2888,9774,179],function(){return e(e.s=53748)}),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[210],{53748:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/consent",function(){return i(96236)}])},59301:function(e,t,i){"use strict";var s=i(24246);let{Link:n}=i(98227).AntTypography;t.Z=e=>{let{children:t,...i}=e;return(0,s.jsx)(n,{target:"_blank",rel:"noopener noreferrer",...i,children:t})}},56358:function(e,t,i){"use strict";i.d(t,{q:function(){return n}});var s=i(24246);let n=(0,i(98227).IUT)({displayName:"TrashCanOutlineIcon",viewBox:"0 0 11 12",path:(0,s.jsx)("path",{d:"M4.5166 1.60859L4.1084 2.21875H7.22363L6.81543 1.60859C6.7832 1.56133 6.72949 1.53125 6.67148 1.53125H4.6584C4.60039 1.53125 4.54668 1.55918 4.51445 1.60859H4.5166ZM7.6748 1.03711L8.46328 2.21875H8.75977H9.79102H9.96289C10.2486 2.21875 10.4785 2.44863 10.4785 2.73438C10.4785 3.02012 10.2486 3.25 9.96289 3.25H9.79102V9.78125C9.79102 10.7309 9.02188 11.5 8.07227 11.5H3.25977C2.31016 11.5 1.54102 10.7309 1.54102 9.78125V3.25H1.36914C1.0834 3.25 0.853516 3.02012 0.853516 2.73438C0.853516 2.44863 1.0834 2.21875 1.36914 2.21875H1.54102H2.57227H2.86875L3.65723 1.03496C3.88066 0.701953 4.25664 0.5 4.6584 0.5H6.67148C7.07324 0.5 7.44922 0.701953 7.67266 1.03496L7.6748 1.03711ZM2.57227 3.25V9.78125C2.57227 10.1615 2.87949 10.4688 3.25977 10.4688H8.07227C8.45254 10.4688 8.75977 10.1615 8.75977 9.78125V3.25H2.57227ZM4.29102 4.625V9.09375C4.29102 9.28281 4.13633 9.4375 3.94727 9.4375C3.7582 9.4375 3.60352 9.28281 3.60352 9.09375V4.625C3.60352 4.43594 3.7582 4.28125 3.94727 4.28125C4.13633 4.28125 4.29102 4.43594 4.29102 4.625ZM6.00977 4.625V9.09375C6.00977 9.28281 5.85508 9.4375 5.66602 9.4375C5.47695 9.4375 5.32227 9.28281 5.32227 9.09375V4.625C5.32227 4.43594 5.47695 4.28125 5.66602 4.28125C5.85508 4.28125 6.00977 4.43594 6.00977 4.625ZM7.72852 4.625V9.09375C7.72852 9.28281 7.57383 9.4375 7.38477 9.4375C7.1957 9.4375 7.04102 9.28281 7.04102 9.09375V4.625C7.04102 4.43594 7.1957 4.28125 7.38477 4.28125C7.57383 4.28125 7.72852 4.43594 7.72852 4.625Z",fill:"currentColor"})})},58754:function(e,t,i){"use strict";var s=i(24246),n=i(98227),r=i(70788);t.Z=e=>{let{heading:t,breadcrumbItems:i,isSticky:o=!0,children:l,rightContent:a,style:d,...c}=e;return(0,s.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",...d}:{paddingBottom:"24px",...d},children:[(0,s.jsxs)(n.jqI,{justify:"space-between",children:["string"==typeof t?(0,s.jsx)(n.lQT,{className:i||l?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,a&&(0,s.jsx)("div",{"data-testid":"page-header-right-content",children:a})]}),!!i&&(0,s.jsx)(r.m,{className:l?"pb-4":void 0,items:i,"data-testid":"page-breadcrumb"}),l]})}},19904:function(e,t,i){"use strict";i.d(t,{Tg:function(){return o}});var s=i(24246),n=i(16134),r=i(31793);let o=e=>(0,n.C)(r.uu).filter(t=>e.includes(t)).length>0;t.ZP=e=>{let{scopes:t,children:i}=e;return o(t)?(0,s.jsx)(s.Fragment,{children:i}):null}},8133:function(e,t,i){"use strict";var s=i(24246),n=i(98227);t.Z=e=>{let{title:t,children:i,isOpen:r,onClose:o,modalContentProps:l,showCloseButton:a=!1,footer:d,...c}=e;return(0,s.jsxs)(n.u_l,{isOpen:r,onClose:o,isCentered:!0,scrollBehavior:"inside",size:"xl",id:"add-modal",...c,children:[(0,s.jsx)(n.ZAr,{}),(0,s.jsxs)(n.hzk,{textAlign:"left",p:0,"data-testid":"add-modal-content",...l,children:[a&&(0,s.jsx)(n.olH,{}),(0,s.jsx)(n.xBx,{p:0,children:(0,s.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,s.jsx)(n.X6q,{as:"h3",size:"sm",children:t})})}),(0,s.jsx)(n.fef,{pb:4,overflow:"auto",children:i}),d&&(0,s.jsx)(n.mzw,{children:d})]})]})}},70788:function(e,t,i){"use strict";i.d(t,{m:function(){return d}});var s=i(24246),n=i(98227),r=i(79894),o=i.n(r),l=i(27378);let{Text:a}=n.AntTypography,d=e=>{let{items:t,...i}=e,r=(0,l.useMemo)(()=>null==t?void 0:t.map((e,i)=>{let r=i===t.length-1,l={...e},d=l.onClick&&!l.href;return("string"==typeof l.title&&(l.title=(0,s.jsx)(a,{style:{color:"inherit",maxWidth:r?void 0:400},ellipsis:!r,id:r?"breadcrumb-current-page":void 0,children:l.title})),d)?l.title=(0,s.jsx)(n.wpx,{type:"text",size:"small",icon:l.icon,onClick:l.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:l.title}):(l.icon&&(l.title=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"anticon align-text-bottom",children:l.icon}),l.title]})),l.href&&l.title&&(l.title=(0,s.jsx)(o(),{href:l.href,className:"ant-breadcrumb-link",children:l.title}),delete l.href)),l}),[t]);return(0,s.jsx)(n.zrq,{items:r,...i})}},6675:function(e,t,i){"use strict";i.d(t,{ZS:function(){return l},a4:function(){return r}});var s=i(3228);let n=i(78780).u.injectEndpoints({endpoints:e=>({getPurposes:e.query({query:()=>"purposes"})})}),{useGetPurposesQuery:r}=n,o={purposes:{},special_purposes:{}},l=(0,s.P1)(n.endpoints.getPurposes.select(),e=>{let{data:t}=e;return t||o})},51263:function(e,t,i){"use strict";var s=i(24246),n=i(98227);t.Z=e=>{let{title:t,children:i,...r}=e;return(0,s.jsxs)(n.xuv,{backgroundColor:"var(--fidesui-bg-corinth)",borderRadius:"4px",padding:"3","data-testid":"setting-".concat(t),...r,children:[(0,s.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 l},Py:function(){return n},fj:function(){return o},uh:function(){return r}});var s=i(65735);let n=[1,3,4,5,6],r="https://ethyca.com/docs/tutorials/consent-management/consent-management-configuration/configure-tcf#vendor-overrides",o={[s.FF.PURPOSE_RESTRICTION]:"Purpose restriction",[s.FF.REQUIRE_CONSENT]:"Require consent",[s.FF.REQUIRE_LEGITIMATE_INTEREST]:"Require legitimate interest"},l={[s.PY.RESTRICT_ALL_VENDORS]:"Restrict all vendors",[s.PY.RESTRICT_SPECIFIC_VENDORS]:"Restrict specific vendors",[s.PY.ALLOW_SPECIFIC_VENDORS]:"Allow specific vendors"}},96236:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return J}});var s=i(24246),n=i(98227),r=i(34090),o=i(27378),l=i(16134),a=i(25980),d=i(812),c=i(77213),u=i(58754),p=i(6675),h=i(46628),x=i(7426),g=i(40324);let m=e=>{let{children:t,purpose:i,endCol:r}=e;return(0,s.jsx)(n.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(i)?null:(0,s.jsx)(n.xuv,{children:t})})};var f=()=>{let{values:e,setFieldValue:t}=(0,r.u6)(),{purposes:i}=(0,l.C)(p.ZS);return(0,s.jsx)(r.F2,{name:"purposeOverrides",render:()=>(0,s.jsxs)(n.kCb,{flexDirection:"column",minWidth:"944px",children:[(0,s.jsxs)(n.kCb,{width:"100%",border:"solid 1px",borderColor:"gray.200",backgroundColor:"gray.50",height:"36px",children:[(0,s.jsx)(n.kCb,{width:"600px",pl:"4",fontSize:"xs",fontWeight:"medium",lineHeight:"4",alignItems:"center",borderRight:"solid 1px",borderColor:"gray.200",children:"TCF purpose"}),(0,s.jsx)(n.kCb,{flex:"1",alignItems:"center",borderRight:"solid 1px",borderColor:"gray.200",minWidth:"36px",children:(0,s.jsx)(n.xvT,{pl:"4",fontSize:"xs",fontWeight:"medium",lineHeight:"4",children:"Allowed"})}),(0,s.jsx)(n.kCb,{flex:"1",alignItems:"center",borderRight:"solid 1px",borderColor:"gray.200",children:(0,s.jsx)(n.xvT,{pl:"4",fontSize:"xs",fontWeight:"medium",lineHeight:"4",children:"Consent"})}),(0,s.jsx)(n.kCb,{flex:"1",alignItems:"center",children:(0,s.jsx)(n.xvT,{pl:"4",fontSize:"xs",fontWeight:"medium",lineHeight:"4",children:"Legitimate interest"})})]}),e.purposeOverrides.map((r,o)=>(0,s.jsxs)(n.kCb,{width:"100%",height:"36px",alignItems:"center",borderBottom:"solid 1px",borderColor:"gray.200",backgroundColor:"#fff",children:[(0,s.jsxs)(n.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,": ",i[r.purpose].name]}),(0,s.jsx)(n.kCb,{flex:"1",justifyContent:"center",alignItems:"center",borderLeft:"solid 1px",borderColor:"gray.200",height:"100%",children:(0,s.jsx)(n.xuv,{children:(0,s.jsx)(g.w8,{name:"purposeOverrides[".concat(o,"].is_included"),onChange:e=>{e||(t("purposeOverrides[".concat(o,"].is_consent"),!1),t("purposeOverrides[".concat(o,"].is_legitimate_interest"),!1))}})})}),(0,s.jsx)(m,{purpose:r.purpose,children:(0,s.jsx)(g.w8,{isDisabled:!e.purposeOverrides[o].is_included||e.purposeOverrides[o].is_legitimate_interest,name:"purposeOverrides[".concat(o,"].is_consent")})}),(0,s.jsx)(m,{purpose:r.purpose,endCol:!0,children:(0,s.jsx)(g.w8,{isDisabled:!e.purposeOverrides[o].is_included||e.purposeOverrides[o].is_consent,name:"purposeOverrides[".concat(o,"].is_legitimate_interest")})})]},r.purpose))]})})},v=i(59301),j=e=>{let{name:t,enabled:i}=e;return(0,s.jsxs)(n.Kqy,{spacing:2,fontSize:"sm",lineHeight:"5",fontWeight:"medium",color:"gray.700",children:[(0,s.jsxs)(n.xvT,{children:[t," status"," ",i?(0,s.jsx)(n.j8w,{color:"success",children:"Enabled"}):(0,s.jsx)(n.j8w,{color:"error",children:"Disabled"})]}),(0,s.jsxs)(n.xvT,{children:["To ",i?"disable":"enable"," ",t,", please contact your Fides administrator or"," ",(0,s.jsx)(v.Z,{href:"mailto:support@ethyca.com",children:"Ethyca support"}),"."]})]})},b=i(46238),C=e=>{var t,i;let{label:o,options:l,layout:a,defaultFirstSelected:d=!0,...c}=e,[u,p]=(0,r.U$)(c),h={...u,value:null!==(t=u.value)&&void 0!==t?t:""},x=!!(p.touched&&p.error),m=d?l[0]:void 0,f=null!==(i=l.find(e=>e.value===h.value))&&void 0!==i?i:m,v=e=>{h.onChange(c.name)(e.target.value)};return"stacked"===a?(0,s.jsxs)(n.NIc,{isInvalid:x,children:[(0,s.jsxs)(n.jqI,{className:"w-fit",children:[o?(0,s.jsx)(g.__,{children:o}):null,(0,s.jsx)(n.y02.Group,{onChange:v,value:null==f?void 0:f.value,"data-testid":"input-".concat(h.name),children:(0,s.jsx)(n.jqI,{className:"flex-col gap-3",children:l.map(e=>{let{value:t,label:i,tooltip:r}=e;return(0,s.jsx)(n.y02,{value:t,"data-testid":"option-".concat(t),children:(0,s.jsxs)(n.jqI,{className:"items-center gap-2",children:[(0,s.jsx)(n.xvT,{fontSize:"sm",fontWeight:"medium",children:i}),r?(0,s.jsx)(b.b,{label:r}):null]})},t)})})})]}),(0,s.jsx)(g.Bc,{isInvalid:x,message:p.error,fieldName:h.name})]}):(0,s.jsxs)(n.NIc,{isInvalid:x,children:[(0,s.jsxs)(n.rjZ,{templateColumns:"1fr 3fr",children:[(0,s.jsx)(g.__,{children:o}),(0,s.jsx)(n.y02.Group,{onChange:v,value:null==f?void 0:f.value,"data-testid":"input-".concat(h.name),children:(0,s.jsx)(n.jqI,{children:l.map(e=>(0,s.jsx)(n.y02,{value:e.value,"data-testid":"option-".concat(e.value),children:e.label},e.value))})})]}),(0,s.jsx)(g.Bc,{isInvalid:x,message:p.error,fieldName:h.name})]})},y=i(65735),_=i(51263);let w=e=>{let{title:t,children:i}=e;return(0,s.jsxs)(n.Kqy,{spacing:3,mb:3,"data-testid":"section-".concat(t),children:[(0,s.jsx)(n.xvT,{fontSize:"sm",fontWeight:"bold",lineHeight:5,color:"gray.700",children:t}),i]})};var T=()=>{let{tcf:e}=(0,a.hz)(),t=!!(0,l.C)(x.D2).enabled,{values:i,setFieldValue:o}=(0,r.u6)(),d=!!i.gpp.us_approach;return(0,s.jsx)(_.Z,{title:"Global Privacy Platform",children:(0,s.jsxs)(n.Kqy,{spacing:6,children:[(0,s.jsx)(j,{name:"GPP",enabled:t}),t?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(w,{title:"GPP U.S.",children:(0,s.jsx)(C,{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,s.jsxs)(w,{title:"MSPA",children:[(0,s.jsx)(g.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||(o("gpp.mspa_service_provider_mode",!1),o("gpp.mspa_opt_out_option_mode",!1))}}),(0,s.jsx)(g.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:!!i.gpp.mspa_opt_out_option_mode||!i.gpp.mspa_covered_transactions}),(0,s.jsx)(g.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:!!i.gpp.mspa_service_provider_mode||!i.gpp.mspa_covered_transactions})]}):null]}):null,e?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.izJ,{color:"gray.200"}),(0,s.jsxs)(w,{title:"GPP Europe",children:[(0,s.jsx)(n.xvT,{fontSize:"sm",fontWeight:"medium",children:"Configure TCF string for Global Privacy Platform"}),(0,s.jsx)(g.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=i(64781),I=i(60325),N=()=>{var e,t,i;let{tcf:o}=(0,a.hz)(),{values:l,setFieldValue:d}=(0,r.u6)(),{data:c,isLoading:u}=(0,S.gT)(),p=[...(0,I.k1)(null!==(t=null==c?void 0:c.locations)&&void 0!==t?t:[]),...(0,I.k1)(null!==(i=null==c?void 0:c.location_groups)&&void 0!==i?i:[])].sort((e,t)=>e.name<t.name?-1:1);return o?(0,s.jsxs)(_.Z,{title:"Publisher settings",children:[(0,s.jsx)(n.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,s.jsx)(n.PPS.Item,{label:"Publisher country",htmlFor:"publisher_country_code",children:(0,s.jsx)(n.AOh,{"data-testid":"input-publisher_settings.publisher_country_code",id:"publisher_country_code",loading:u,allowClear:!0,options:(0,n.Ky_)(null==p?void 0:p.map(e=>e.id)),placeholder:"Select a country",value:null===(e=l.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=i(52955),P=i(71795),k=i(59512),F=i(55484),L=i(8133),O=i(31883);let R=F.Ry().shape({name:F.Z_().required().label("Name")}),z=e=>{let{isOpen:t,onClose:i,onSuccess:o}=e,l=(0,n.pmc)(),[a]=(0,E.LK)(),c=async e=>{let t=await a({name:e.name});(0,O.D4)(t)?l((0,h.Vo)((0,d.e$)(t.error))):(l((0,h.t5)("Successfully created TCF configuration")),null==o||o(t.data.id),i())};return(0,s.jsx)(L.Z,{title:"Create a new TCF configuration",isOpen:t,onClose:i,children:(0,s.jsx)(r.J9,{initialValues:{name:""},onSubmit:c,validationSchema:R,children:e=>{let{isValid:t,dirty:o}=e;return(0,s.jsx)(r.l0,{children:(0,s.jsxs)(n.vyj,{direction:"vertical",size:"small",className:"w-full",children:[(0,s.jsx)(n.xvT,{children:"TCF configurations allow you to define unique sets of publisher restrictions. These configurations can be added to privacy experiences."}),(0,s.jsx)(g.j0,{id:"name",name:"name",label:"Name",isRequired:!0,variant:"stacked"}),(0,s.jsxs)(n.vyj,{className:"w-full justify-end pt-6",children:[(0,s.jsx)(n.wpx,{onClick:i,children:"Cancel"}),(0,s.jsx)(n.wpx,{type:"primary",htmlType:"submit",disabled:!t||!o,"data-testid":"save-config-button",children:"Save"})]})]})})}})})};var A=i(79894),q=i.n(A);let Z=e=>{let{width:t,style:i,borderLeft:r=!1,borderRight:o=!1,...l}=e;return(0,s.jsx)(n.jqI,{align:"center",className:"h-full px-4",...l,style:{borderLeft:r?"solid 1px":"none",borderRight:o?"solid 1px":"none",borderColor:"var(--ant-color-border)",width:t,...i},role:"cell"})},W=e=>{let{width:t,style:i,borderLeft:r=!1,children:o,...l}=e;return(0,s.jsx)(n.jqI,{align:"center",role:"columnheader",className:"px-4",...l,style:{borderLeft:r?"solid 1px":"none",borderColor:"var(--ant-color-border)",fontWeight:500,whiteSpace:"nowrap",width:t,...i},children:o})},H=e=>{let{isHeader:t=!1,isLastRow:i=!1,style:r,...o}=e;return(0,s.jsx)(n.jqI,{role:t?"rowheader":"row",className:"h-9 w-full",...o,style:{backgroundColor:t?"var(--fidesui-bg-default)":void 0,borderBottom:i?"none":"solid 1px",borderColor:"var(--ant-color-border)",...r}})},M=e=>{let{config:t,isLoading:i,style:r,...o}=e,{purposes:a}=(0,l.C)(p.ZS);return(0,s.jsxs)(n.jqI,{vertical:!0,...o,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,s.jsxs)(H,{isHeader:!0,style:{width:"100%"},children:[(0,s.jsx)(W,{width:"600px",children:"TCF purpose"}),(0,s.jsxs)(W,{flex:1,gap:3,borderLeft:!0,children:["Restrictions",(0,s.jsx)(b.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,s.jsxs)(W,{width:"100px",gap:3,borderLeft:!0,children:["Flexible",(0,s.jsx)(b.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,s.jsx)(W,{width:"100px",borderLeft:!0,children:"Actions"})]}),Object.values(a).map((e,r)=>(0,s.jsxs)(H,{isLastRow:r===Object.values(a).length-1,children:[(0,s.jsxs)(Z,{width:"600px",children:["Purpose ",e.id,": ",e.name]}),(0,s.jsx)(Z,{flex:1,borderLeft:!0,"data-testid":"restriction-type-cell-".concat(e.id),children:i?(0,s.jsx)(n.OdW,{height:"16px",width:"100%"}):(()=>{var i;let r=(null==t?void 0:null===(i=t.restriction_types_per_purpose)||void 0===i?void 0:i[e.id])||[];return 0===r.length?"none":1===r.length?(0,s.jsx)(n.xvT,{size:"sm",whiteSpace:"nowrap",children:k.fj[r[0]]}):(0,s.jsxs)(n.xvT,{children:[r.length," restrictions"]})})()}),(0,s.jsx)(Z,{width:"100px",borderLeft:!0,children:k.Py.includes(e.id)?(0,s.jsx)(n.j8w,{color:"error","data-testid":"flexibility-tag-".concat(e.id),children:"No"}):(0,s.jsx)(n.j8w,{color:"success","data-testid":"flexibility-tag-".concat(e.id),children:"Yes"})}),(0,s.jsx)(Z,{width:"100px",borderLeft:!0,children:(0,s.jsx)(q(),{href:"/settings/consent/".concat(null==t?void 0:t.id,"/").concat(e.id),passHref:!0,legacyBehavior:!0,children:(0,s.jsx)(n.wpx,{size:"small","data-testid":"edit-restriction-btn-".concat(e.id),children:"Edit"})})})]},e.id))]})};var V=i(56358),D=i(19904);let B=()=>(0,s.jsxs)(n.vyj,{direction:"vertical",size:"small",children:[(0,s.jsx)(n.OdW,{width:"100%",className:"h-4"}),(0,s.jsx)(n.OdW,{width:"100%",className:"h-4"}),(0,s.jsx)(n.OdW,{width:"100%",className:"h-4"})]}),G=e=>{let{searchResults:t,selectedConfigId:i,handleSelection:r,userCanDeleteConfigs:o,onDeleteOpen:l,setConfigToDelete:a}=e;return(0,s.jsx)(n.y02.Group,{onChange:e=>r(e.target.value),value:i,className:"flex flex-col gap-2",children:t.map(e=>(0,s.jsxs)(n.jqI,{className:o?"justify-between":"justify-start","data-testid":"tcf-config-item-".concat(e.id),children:[(0,s.jsx)(n.y02,{value:e.id,name:"tcf-config-id","data-testid":"tcf-config-item",children:(0,s.jsx)(n.xvT,{className:"text-sm",children:e.name})}),o&&(0,s.jsx)(n.wpx,{type:"text",size:"small","aria-label":"Delete",icon:(0,s.jsx)(V.q,{fontSize:16}),onClick:t=>{t.stopPropagation(),a(e),l()},"data-testid":"delete-config-button"})]},e.id))})},U=e=>{let t,{searchTerm:i,setSearchTerm:r,searchResults:l,selectedConfigId:a,handleSelection:d,userCanCreateConfigs:c,userCanDeleteConfigs:u,modalOnOpen:p,onDeleteOpen:h,setConfigToDelete:x,isLoading:g,setDropdownOpen:m,configurations:f}=e,[v,j]=(0,o.useState)(a);return(0,o.useEffect)(()=>{j(a)},[a]),t=g?(0,s.jsx)(B,{}):0===l.length?(0,s.jsx)(n.xvT,{className:"text-center",children:"No configurations found."}):(0,s.jsx)(G,{searchResults:l,selectedConfigId:v,handleSelection:e=>{j(e)},userCanDeleteConfigs:u,onDeleteOpen:h,setConfigToDelete:x}),(0,s.jsxs)(n.V4A,{title:"TCF configurations",className:"min-w-[300px]",extra:(0,s.jsx)(n.wpx,{type:"text",size:"small","aria-label":"Close",icon:(0,s.jsx)(n.Two,{}),onClick:()=>m(!1),"data-testid":"close-config-dropdown"}),style:{boxShadow:"var(--ant-box-shadow)"},children:[f.length>10&&(0,s.jsx)(n.BZy,{size:"sm",children:(0,s.jsx)(n.AntInput,{className:"mb-4",placeholder:"Search...",onChange:e=>r(e.target.value),value:i})}),t,(0,s.jsxs)(n.jqI,{gap:"small",className:"mt-4",children:[c&&(0,s.jsx)(n.wpx,{size:"small",onClick:()=>{p(),m(!1)},className:"flex-1","data-testid":"create-config-button",children:"+ Create"}),(0,s.jsx)(n.wpx,{size:"small",onClick:()=>d(v),className:"flex-1","data-testid":"apply-config-button",disabled:v===a,children:"Apply"})]})]})},$=e=>(0,s.jsx)(U,{...e}),Y=e=>{var t;let{selectedConfigId:i,configurations:r,isLoading:l=!1,onConfigurationSelect:a,onConfigurationDelete:c}=e,u=(0,D.Tg)([y.Sh.PRIVACY_EXPERIENCE_CREATE]),p=(0,D.Tg)([y.Sh.PRIVACY_EXPERIENCE_CREATE]),h=(0,n.pmc)({id:"tcf-config-toast"}),[x]=(0,E.Cm)(),{isOpen:g,onOpen:m,onClose:f}=(0,n.qY0)(),{isOpen:v,onOpen:j,onClose:b}=(0,n.qY0)(),[C,_]=(0,o.useState)(""),[w,T]=(0,o.useState)(),[S,I]=(0,o.useState)(!1),N=(0,o.useMemo)(()=>C?r.filter(e=>e.name.toLowerCase().includes(C.toLowerCase())):r,[r,C]),P=(0,o.useMemo)(()=>r.find(e=>e.id===i),[r,i]),k=null!==(t=null==P?void 0:P.name)&&void 0!==t?t:"Select Configuration",F=e=>{a(e),I(!1)},L=async e=>{try{await x(e).unwrap(),null==c||c(e),T(void 0),b(),h({status:"success",description:'Configuration "'.concat(null==w?void 0:w.name,'" was successfully deleted.')})}catch(e){h({status:"error",description:(0,d.e$)(e,"A problem occurred while deleting the configuration.")})}};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.S0p,{open:S,onOpenChange:I,trigger:["click"],overlayStyle:{zIndex:999},dropdownRender:()=>$({searchTerm:C,setSearchTerm:_,searchResults:N,selectedConfigId:i,handleSelection:F,userCanCreateConfigs:u,userCanDeleteConfigs:p,modalOnOpen:m,onDeleteOpen:j,setConfigToDelete:T,isLoading:l,setDropdownOpen:I,configurations:r}),children:(0,s.jsx)(n.wpx,{icon:(0,s.jsx)(n.v4q,{}),iconPosition:"end","data-testid":"tcf-config-dropdown-trigger",children:k})}),(0,s.jsx)(z,{isOpen:g,onClose:f,onSuccess:e=>{a(e)}}),(0,s.jsx)(n.cVQ,{isOpen:v,onClose:()=>{T(void 0),b()},onConfirm:()=>{w&&L(w.id)},title:"Delete configuration",message:"Are you sure you want to delete this configuration? This action cannot be undone."})]})};var K=i(32885);let X=e=>{let{defaultChecked:t,onChange:i,...r}=e,l=(0,n.pmc)(),[a,c]=(0,o.useState)(t),[u,p]=(0,o.useState)(!1),{isLoading:g}=(0,K.x8)(),[m,{isLoading:f}]=(0,x.L)(),[v]=(0,K.M7)(),{data:j}=(0,K.n3)(void 0,{skip:g}),C=async e=>{let t=await m({consent:{override_vendor_purposes:e}});e&&j&&await v(j.map(e=>({...e,is_included:!0,required_legal_basis:void 0}))),(t=>{if(l.closeAll(),null==i||i(e),(0,O.D4)(t)){let e=(0,d.e$)(t.error,"An unexpected error occurred while saving vendor override settings. Please try again.");null==i||i(!1),l((0,h.Vo)(e))}})(t)};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(n.vyj,{direction:"vertical",size:"small",children:[(0,s.jsx)(n.xvT,{children:"Configure overrides for TCF related purposes."}),(0,s.jsxs)(n.vyj,{size:"small",children:[(0,s.jsx)(n.rAg,{size:"small",disabled:f,loading:f,...r,checked:a,defaultChecked:t,onClick:e=>{e?(c(e),C(e)):p(!0)},"data-testid":"tcf-override-toggle"}),(0,s.jsx)(n.xvT,{children:"Override vendor purposes"}),(0,s.jsx)(b.b,{label:"Toggle on if you want to globally change any flexible legal bases or remove TCF purposes from your CMP"})]})]}),(0,s.jsx)(n.cVQ,{isOpen:u,onClose:()=>p(!1),onConfirm:()=>{c(!1),C(!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."})]})},Q=e=>{var t;let{isTCFOverrideEnabled:i}=e,[r,l]=(0,o.useState)(i),[a,d]=(0,o.useState)(!1),[c,u]=(0,P._)("selectedTCFConfigId",null),{data:p,isLoading:h}=(0,E.LS)({page:1,size:50},{skip:!i}),{data:x,isFetching:g}=(0,E.NZ)(c||"",{skip:!c});return(0,o.useEffect)(()=>{var e,t;!h&&(null==p?void 0:null===(e=p.items)||void 0===e?void 0:e.length)&&!c&&u(p.items[0].id),h||!c||(null==p?void 0:null===(t=p.items)||void 0===t?void 0:t.length)||u(null)},[h,null==p?void 0:p.items,c,u]),(0,s.jsxs)(_.Z,{title:"Publisher restrictions",fontSize:"sm",children:[(0,s.jsxs)(n.vyj,{direction:"vertical",size:"small",style:{width:"100%"},children:[(0,s.jsx)(X,{defaultChecked:r,onChange:e=>l(e)}),r&&(0,s.jsxs)(s.Fragment,{children:[h&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.OdW,{height:"20px"}),(0,s.jsx)(n.OdW,{height:"20px"}),(0,s.jsx)(n.OdW,{height:"32px",width:"200px"})]}),!h&&(null==p?void 0:null===(t=p.items)||void 0===t?void 0:t.length)?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.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,s.jsxs)(n.xvT,{children:["To configure this section, select a TCF purpose to edit the restriction type and vendors."," ",(0,s.jsx)(v.Z,{href:k.uh,children:"Learn more about publisher restrictions"})," ","in our docs."]}),(0,s.jsx)(Y,{selectedConfigId:c||"",configurations:(null==p?void 0:p.items)||[],onConfigurationSelect:u})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(n.xvT,{children:['To define custom publisher restrictions select "create configuration" below.'," ",(0,s.jsx)(v.Z,{href:k.uh,children:"Learn more about publisher restrictions"})," ","in our docs."]}),(0,s.jsx)(n.wpx,{onClick:()=>d(!0),"data-testid":"create-config-button",children:"Create configuration +"})]})]})]}),(0,s.jsx)(z,{isOpen:a,onClose:()=>d(!1),onSuccess:e=>{u(e)}}),r&&c&&(0,s.jsx)(M,{className:"mt-3",config:x,isLoading:g})]})};var J=()=>{var e,t;let{isLoading:i}=(0,K.x8)(),{tcf:g}=(0,a.hz)(),{data:m,isLoading:v}=(0,K.n3)(void 0,{skip:i||!g}),[b,{isLoading:C}]=(0,K.M7)(),{data:w,isLoading:S}=(0,x.tB)({api_set:!0}),{data:I,isLoading:E}=(0,x.tB)({api_set:!1}),[P]=(0,x.L)(),k=(0,l.C)(x.D2),F=(0,l.C)(x.Yh),L=(0,o.useMemo)(()=>w&&(null==w?void 0:w.consent)&&"override_vendor_purposes"in w.consent?w.consent.override_vendor_purposes:!!I&&null!=I&&!!I.consent&&"override_vendor_purposes"in I.consent&&I.consent.override_vendor_purposes,[w,I]),{isLoading:O}=(0,p.a4)(),R=(0,n.pmc)(),z=async e=>{var t;let i=e=>{if(R.closeAll(),(0,d.D4)(e)){let t=(0,d.e$)(e.error,"An unexpected error occurred while saving. Please try again.");R((0,h.Vo)(t))}else R((0,h.t5)("Settings saved successfully"))},s=[...e.purposeOverrides.map(e=>{let t;return e.is_consent&&(t=y.I$.CONSENT),e.is_legitimate_interest&&(t=y.I$.LEGITIMATE_INTERESTS),{purpose:e.purpose,is_included:e.is_included,required_legal_basis:t}})];if(L){let e=await b(s);if((0,d.D4)(e)){i(e);return}}let{enabled:n,...r}=e.gpp;i(await P({gpp:r,plus_consent_settings:{tcf_publisher_country_code:null!==(t=e.tcfPublisherSettings.publisher_country_code)&&void 0!==t?t:null}}))},A=(0,o.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:k,tcfPublisherSettings:{publisher_country_code:F.tcf_publisher_country_code}}),[m,k,F]),q=(0,o.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===(t=(0,a.hz)())||void 0===t?void 0:null===(e=t.flags)||void 0===e?void 0:e.publisherRestrictions;return(0,s.jsx)(c.Z,{title:"Consent Configuration",children:i||O||v||S||E?(0,s.jsx)(n.kCb,{justifyContent:"center",alignItems:"center",height:"100%",children:(0,s.jsx)(n.$jN,{})}):(0,s.jsxs)(n.xuv,{"data-testid":"consent-configuration",children:[(0,s.jsx)(u.Z,{heading:"Consent settings"}),(0,s.jsxs)(n.Kqy,{spacing:3,mb:3,children:[(0,s.jsx)(_.Z,{title:"Transparency & Consent Framework settings",children:(0,s.jsx)(j,{name:"TCF",enabled:g})}),g&&!q&&Z&&(0,s.jsx)(Q,{isTCFOverrideEnabled:L})]}),(0,s.jsx)(r.J9,{initialValues:A,enableReinitialize:!0,onSubmit:z,children:e=>{let{dirty:t,isValid:i,isSubmitting:o}=e;return(0,s.jsx)(r.l0,{children:(0,s.jsxs)(n.Kqy,{spacing:6,children:[g&&(q||!Z)&&(0,s.jsxs)(_.Z,{title:"Vendor overrides",fontSize:"sm",children:[(0,s.jsx)(X,{defaultChecked:L,disabled:C}),L&&(0,s.jsxs)(n.Kqy,{mt:2,spacing:2,children:[(0,s.jsx)(n.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,s.jsx)(n.xvT,{children:"To configure this section, select the purposes you allow and where available, the appropriate legal bases (either Consent or Legitimate Interest)."}),(0,s.jsx)(f,{})]})]}),(0,s.jsx)(N,{}),(0,s.jsx)(T,{}),(0,s.jsx)(n.wpx,{htmlType:"submit",type:"primary",disabled:!t||!i,loading:o,"data-testid":"save-btn",className:"self-start",children:"Save"})]})})}})]})})}},31883:function(e,t,i){"use strict";i.d(t,{Bw:function(){return s.Bw},D4:function(){return s.D4}});var s=i(19043)}},function(e){e.O(0,[5279,2888,9774,179],function(){return e(e.s=53748)}),_N_E=e.O()}]);
@@ -1 +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),r=n(91936),s=Math.max,o=Math.min;e.exports=function(e,t,n){var l,u,c,d,g,f,p=0,m=!1,h=!1,y=!0;if("function"!=typeof e)throw TypeError("Expected a function");function v(t){var n=l,i=u;return l=u=void 0,p=t,d=e.apply(i,n)}function x(e){var n=e-f,i=e-p;return void 0===f||n>=t||n<0||h&&i>=c}function C(){var e,n,i,r=a();if(x(r))return b(r);g=setTimeout(C,(e=r-f,n=r-p,i=t-e,h?o(i,c-n):i))}function b(e){return(g=void 0,y&&l)?v(e):(l=u=void 0,d)}function S(){var e,n=a(),i=x(n);if(l=arguments,u=this,f=n,i){if(void 0===g)return p=e=f,g=setTimeout(C,t),m?v(e):d;if(h)return clearTimeout(g),g=setTimeout(C,t),v(f)}return void 0===g&&(g=setTimeout(C,t)),d}return t=r(t)||0,i(n)&&(m=!!n.leading,c=(h="maxWait"in n)?s(r(n.maxWait)||0,t):c,y="trailing"in n?!!n.trailing:y),S.cancel=function(){void 0!==g&&clearTimeout(g),p=0,l=f=u=g=void 0},S.flush=function(){return void 0===g?d:b(a())},S}},11611:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},55193:function(e,t,n){var i=n(99736),a=n(92360);e.exports=function(e){return"symbol"==typeof e||a(e)&&"[object Symbol]"==i(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),r=n(55193),s=0/0,o=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(r(e))return s;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=l.test(e);return n||u.test(e)?c(e.slice(2),n?2:8):o.test(e)?s:+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 l}});var i=n(24246),a=n(66726),r=n.n(a),s=n(27378),o=n(26917);let l=e=>{let{value:t,onChange:n,placeholder:a,...l}=e,[u,c]=(0,s.useState)(t);(0,s.useEffect)(()=>{c(t||"")},[t]);let d=r()(n,500),g=(0,s.useCallback)(e=>{c(e),d(e)},[]);return(0,i.jsx)(o.Z,{value:u,onChange:g,onClear:()=>{c(""),n("")},placeholder:a,...l})}},77213:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var i=n(24246),a=n(87949),r=n(88038),s=n.n(r),o=n(86677);n(27378);var l=n(25980),u=n(90867),c=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:r=!0,mainProps:d}=e,f=(0,l.hz)(),p=(0,o.useRouter)(),m="/privacy-requests"===p.pathname||"/datastore-connection"===p.pathname,h=!(f.flags.messagingConfiguration&&m),{data:y}=(0,c.JE)(void 0,{skip:h}),{data:v}=(0,u.PW)(void 0,{skip:h}),x=f.flags.messagingConfiguration&&(!y||!v)&&m;return(0,i.jsxs)(a.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,i.jsxs)(s(),{children:[(0,i.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,i.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,i.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,i.jsxs)(a.kCb,{as:"main",direction:"column",py:r?6:0,px:r?10:0,h:r?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...d,children:[x?(0,i.jsx)(g,{}):null,t]})]})}},58754:function(e,t,n){"use strict";var i=n(24246),a=n(87949),r=n(70788);t.Z=e=>{let{heading:t,breadcrumbItems:n,isSticky:s=!0,children:o,rightContent:l,style:u,...c}=e;return(0,i.jsxs)("div",{...c,style:s?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...u}:{paddingBottom:"24px",...u},children:[(0,i.jsxs)(a.jqI,{justify:"space-between",children:["string"==typeof t?(0,i.jsx)(a.lQT,{className:n||o?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,l&&(0,i.jsx)("div",{"data-testid":"page-header-right-content",children:l})]}),!!n&&(0,i.jsx)(r.m,{className:o?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),o]})}},19904:function(e,t,n){"use strict";n.d(t,{Tg:function(){return s}});var i=n(24246),a=n(16134),r=n(31793);let s=e=>(0,a.C)(r.uu).filter(t=>e.includes(t)).length>0;t.ZP=e=>{let{scopes:t,children:n}=e;return s(t)?(0,i.jsx)(i.Fragment,{children:n}):null}},70788:function(e,t,n){"use strict";n.d(t,{m:function(){return u}});var i=n(24246),a=n(87949),r=n(79894),s=n.n(r),o=n(27378);let{Text:l}=a.AntTypography,u=e=>{let{items:t,...n}=e,r=(0,o.useMemo)(()=>null==t?void 0:t.map((e,n)=>{let r=n===t.length-1,o={...e},u=o.onClick&&!o.href;return("string"==typeof o.title&&(o.title=(0,i.jsx)(l,{style:{color:"inherit",maxWidth:r?void 0:400},ellipsis:!r,id:r?"breadcrumb-current-page":void 0,children:o.title})),u)?o.title=(0,i.jsx)(a.wpx,{type:"text",size:"small",icon:o.icon,onClick:o.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:o.title}):(o.icon&&(o.title=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"anticon align-text-bottom",children:o.icon}),o.title]})),o.href&&o.title&&(o.title=(0,i.jsx)(s(),{href:o.href,className:"ant-breadcrumb-link",children:o.title}),delete o.href)),o}),[t]);return(0,i.jsx)(a.zrq,{items:r,...n})}},8125:function(e,t,n){"use strict";n.d(t,{V:function(){return r},o:function(){return u}});var i=n(27378),a=n(32735);let r=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{enableSelection:n=!1,getRowKey:r,bulkActions:s,isLoading:o=!1,isFetching:l=!1,dataSource:u=[],totalRows:c=0,currentPage:d,pageSize:g,customTableProps:f={}}=t,p=(0,i.useCallback)(e=>{if(e&&"object"==typeof e){if(e.id)return String(e.id);if(e.key)return String(e.key)}return String(e)},[]),m=r||p,[h,y]=(0,i.useState)([]),[v,x]=(0,i.useState)([]),C=(0,i.useCallback)(()=>{y([]),x([])},[]),b=(0,i.useMemo)(()=>({selectedRowKeys:h,selectedRows:v,resetSelections:C}),[h,v,C]),S=(0,i.useMemo)(()=>{if(n)return{selectedRowKeys:h,onChange:(e,t)=>{y(e),x(t)}}},[n,h]),T=(0,i.useCallback)((t,n,i)=>{var a,r;let s=null!==(a=t.current)&&void 0!==a?a:e.pageIndex,o=null!==(r=t.pageSize)&&void 0!==r?r:e.pageSize,l=s!==e.pageIndex||o!==e.pageSize;l?(t.current&&t.current!==e.pageIndex&&e.updatePageIndex(t.current),t.pageSize&&t.pageSize!==e.pageSize&&e.updatePageSize(t.pageSize)):e.updateFilters(n||{});let u=i&&!Array.isArray(i)?i.field:void 0,c=i&&!Array.isArray(i)&&null!==i.order?i.order:void 0;l||e.updateSorting(u,c)},[e]),j=(0,i.useMemo)(()=>{var t,n,i,r,s;return{current:null!=d?d:e.pageIndex,pageSize:null!=g?g:e.pageSize,total:c,showSizeChanger:null===(r=null===(t=e.paginationConfig)||void 0===t?void 0:t.showSizeChanger)||void 0===r||r,pageSizeOptions:null!==(s=null===(i=e.paginationConfig)||void 0===i?void 0:null===(n=i.pageSizeOptions)||void 0===n?void 0:n.map(String))&&void 0!==s?s:a.VZ}},[d,e.pageIndex,g,e.pageSize,c,e.paginationConfig]),E=(0,i.useMemo)(()=>({dataSource:u,loading:o||l,pagination:j,onChange:T,rowKey:m,scroll:{x:"max-content",scrollToFirstRowOnChange:!0},size:"small",bordered:!0,...f}),[u,o,l,j,T,m,f]),A=h.map(String),k=v.length>0,w=(0,i.useCallback)(e=>{let t=null==s?void 0:s.actions.find(t=>t.key===e);return t?{disabled:!k||!!t.disabled&&t.disabled(v),loading:t.loading||!1,onClick:()=>t.onClick(v)}:{disabled:!0,loading:!1}},[s,k,v]);return(0,i.useMemo)(()=>({tableProps:E,selectionProps:S,selectionState:b,selectedRows:v,selectedKeys:A,hasSelectedRows:k,resetSelections:C,getBulkActionProps:w,isLoadingOrFetching:o||l,hasData:u.length>0}),[E,S,b,v,A,k,C,w,o,l,u.length])};var s=n(40431),o=n(17245);let l=()=>({filters:(0,s.WJ)(e=>e).withDefault({})}),u=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{pagination:t={},sorting:n={},search:a={},onStateChange:r,disableUrlState:u=!1}=e,{pageIndex:c,pageSize:d,resetPagination:g,updatePageIndex:f,updatePageSize:p,pageSizeOptions:m,showSizeChanger:h}=(0,o.h0)({...t,disableUrlState:u}),{sortKey:y,sortOrder:v,updateSorting:x,resetSorting:C}=(0,o.rK)({...n,disableUrlState:u}),{searchQuery:b,updateSearch:S,resetSearch:T}=(0,o.Rx)({...a,disableUrlState:u}),[j,E]=(0,i.useState)({}),A=(0,i.useMemo)(()=>u?null:l(),[u]),[k,w]=(0,s.XI)(null!=A?A:{},{history:"push"}),P=(0,i.useMemo)(()=>{var e;return{pageIndex:c,pageSize:d,sortKey:y,sortOrder:v,columnFilters:u?j:null!==(e=k.filters)&&void 0!==e?e:{},searchQuery:b}},[u,j,k,c,d,y,v,b]),_=(0,i.useCallback)((e,t)=>{x(e,t),g()},[x,g]),M=(0,i.useCallback)(e=>{if(u)E(e);else{let t=Object.fromEntries(Object.entries(e).filter(e=>{let[,t]=e;return null!=t}));w({filters:Object.keys(t).length>0?t:null})}g()},[u,w,g]),I=(0,i.useCallback)(e=>{S(e),g()},[S,g]),z=(0,i.useCallback)(()=>{u?E({}):w({filters:null}),g(),C(),T()},[u,w,g,C,T]);return(0,i.useEffect)(()=>{r&&r(P)},[P,r]),{state:P,pageIndex:P.pageIndex,pageSize:P.pageSize,updatePageIndex:f,updatePageSize:p,sortKey:P.sortKey,sortOrder:P.sortOrder,updateSorting:_,columnFilters:P.columnFilters,updateFilters:M,searchQuery:P.searchQuery,updateSearch:I,resetState:z,paginationConfig:{pageSizeOptions:m,showSizeChanger:h}}}},8917:function(e,t,n){"use strict";n.d(t,{C7:function(){return o},P3:function(){return u},TY:function(){return l},Uv:function(){return a},uP:function(){return s}});var i,a,r=n(65735);let s=new Map([[r.P6.SYSTEM,"system:information"],[r.P6.DATA_USE,"taxonomy:data use"],[r.P6.DATA_CATEGORY,"taxonomy:data category"],[r.P6.DATA_SUBJECT,"taxonomy:data subject"],[r.P6.PRIVACY_DECLARATION,"system:data use"]]);(i=a||(a={})).SINGLE_SELECT="singleSelect",i.MULTIPLE_SELECT="multipleSelect",i.OPEN_TEXT="openText";let o=[{label:"taxonomy:".concat(r.P6.DATA_CATEGORY),value:r.P6.DATA_CATEGORY},{label:"taxonomy:".concat(r.P6.DATA_SUBJECT),value:r.P6.DATA_SUBJECT},{label:"taxonomy:".concat(r.P6.DATA_USE),value:r.P6.DATA_USE},{label:"".concat(r.P6.SYSTEM,":information"),value:r.P6.SYSTEM},{label:"system:data use",value:r.P6.PRIVACY_DECLARATION}],l=[{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 s},_:function(){return r}});var i=n(8917),a=n(65735);let r=e=>e.field_type===a.AL.STRING_?i.Uv.MULTIPLE_SELECT:e.allow_list_id?i.Uv.SINGLE_SELECT:i.Uv.OPEN_TEXT,s=e=>i.P3[r(e)]},42478:function(e,t,n){"use strict";n.d(t,{FU:function(){return u},JE:function(){return a},Ki:function(){return d},SU:function(){return g},W:function(){return f},h9:function(){return r},jc:function(){return i},qt:function(){return l},sn:function(){return c}});let{useGetEmailInviteStatusQuery:i,useGetActiveMessagingProviderQuery:a,useCreateMessagingConfigurationMutation:r,useCreateMessagingConfigurationSecretsMutation:s,useGetMessagingConfigurationDetailsQuery:o,useGetMessagingConfigurationsQuery:l,useGetMessagingConfigurationByKeyQuery:u,useUpdateMessagingConfigurationByKeyMutation:c,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 b}});var i=n(24246),a=n(77213),r=n(87949),s=n(27378),o=n(58754),l=n(30952),u=n(86677),c=n(77830),d=n(19904),g=n(8125),f=n(8917),p=n(72625),m=n(32885),h=e=>{var t;let{field:n,isDisabled:a}=e,[r,{isLoading:s}]=(0,m.yM)(),o=async e=>r({...n,active:e});return(0,i.jsx)(p.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:s})},y=n(66236),v=n(65735),x=()=>{let e=(0,g.o)({pagination:{defaultPageSize:25,pageSizeOptions:[10,25,50]},search:{defaultSearchQuery:""}}),t=(0,u.useRouter)(),{data:n,isLoading:a}=(0,m.GH)(),{tableProps:o}=(0,g.V)(e,{dataSource:n||[],totalRows:(null==n?void 0:n.length)||0,isLoading:a,customTableProps:{layout:"fixed"}}),l=(0,d.Tg)([v.Sh.CUSTOM_FIELD_UPDATE]);return{tableProps:o,columns:(0,s.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)(r.AntTypography.Text,{ellipsis:{tooltip:e},className:"w-96",children:e}),width:384},{title:"Type",dataIndex:"field_type",key:"field_type",render:(e,t)=>(0,y.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:!l,render:(e,t)=>(0,i.jsx)(h,{field:t,isDisabled:!l}),width:96},{title:"Actions",key:"actions",render:(e,n)=>(0,i.jsx)(r.jqI,{gap:"middle",children:(0,i.jsx)(r.wpx,{size:"small",onClick:()=>t.push("".concat(c.WC,"/").concat(n.id)),"data-testid":"edit-btn",children:"Edit"})}),hidden:!l,width:96}],[t,l,e.searchQuery,l]),searchQuery:e.searchQuery,updateSearch:e.updateSearch,onAddClick:()=>t.push("".concat(c.WC,"/new"))}},C=()=>{let{tableProps:e,columns:t,searchQuery:n,updateSearch:a,onAddClick:s}=x();return(0,i.jsxs)(r.jqI,{vertical:!0,gap:"middle",children:[(0,i.jsxs)(r.jqI,{justify:"space-between",children:[(0,i.jsx)(l.f,{value:n,onChange:a,placeholder:"Search custom fields..."}),(0,i.jsx)(r.wpx,{onClick:s,type:"primary","data-testid":"add-custom-field-btn",children:"Add custom field"})]}),(0,i.jsx)(r.V5H,{...e,columns:t})]})},b=()=>(0,i.jsx)(a.Z,{title:"Custom fields",children:(0,i.jsxs)(r.xuv,{"data-testid":"custom-fields-management",children:[(0,i.jsx)(o.Z,{heading:"Custom fields",children:(0,i.jsx)(r.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)(C,{})]})})}},function(e){e.O(0,[431,7245,2888,9774,179],function(){return e(e.s=1770)}),_N_E=e.O()}]);
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),r=n(91936),s=Math.max,o=Math.min;e.exports=function(e,t,n){var l,u,c,d,g,f,p=0,m=!1,h=!1,y=!0;if("function"!=typeof e)throw TypeError("Expected a function");function v(t){var n=l,i=u;return l=u=void 0,p=t,d=e.apply(i,n)}function x(e){var n=e-f,i=e-p;return void 0===f||n>=t||n<0||h&&i>=c}function C(){var e,n,i,r=a();if(x(r))return b(r);g=setTimeout(C,(e=r-f,n=r-p,i=t-e,h?o(i,c-n):i))}function b(e){return(g=void 0,y&&l)?v(e):(l=u=void 0,d)}function S(){var e,n=a(),i=x(n);if(l=arguments,u=this,f=n,i){if(void 0===g)return p=e=f,g=setTimeout(C,t),m?v(e):d;if(h)return clearTimeout(g),g=setTimeout(C,t),v(f)}return void 0===g&&(g=setTimeout(C,t)),d}return t=r(t)||0,i(n)&&(m=!!n.leading,c=(h="maxWait"in n)?s(r(n.maxWait)||0,t):c,y="trailing"in n?!!n.trailing:y),S.cancel=function(){void 0!==g&&clearTimeout(g),p=0,l=f=u=g=void 0},S.flush=function(){return void 0===g?d:b(a())},S}},11611:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},55193:function(e,t,n){var i=n(99736),a=n(92360);e.exports=function(e){return"symbol"==typeof e||a(e)&&"[object Symbol]"==i(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),r=n(55193),s=0/0,o=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(r(e))return s;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=l.test(e);return n||u.test(e)?c(e.slice(2),n?2:8):o.test(e)?s:+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 l}});var i=n(24246),a=n(66726),r=n.n(a),s=n(27378),o=n(26917);let l=e=>{let{value:t,onChange:n,placeholder:a,...l}=e,[u,c]=(0,s.useState)(t);(0,s.useEffect)(()=>{c(t||"")},[t]);let d=r()(n,500),g=(0,s.useCallback)(e=>{c(e),d(e)},[]);return(0,i.jsx)(o.Z,{value:u,onChange:g,onClear:()=>{c(""),n("")},placeholder:a,...l})}},77213:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var i=n(24246),a=n(98227),r=n(88038),s=n.n(r),o=n(86677);n(27378);var l=n(25980),u=n(90867),c=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:r=!0,mainProps:d}=e,f=(0,l.hz)(),p=(0,o.useRouter)(),m="/privacy-requests"===p.pathname||"/datastore-connection"===p.pathname,h=!(f.flags.messagingConfiguration&&m),{data:y}=(0,c.JE)(void 0,{skip:h}),{data:v}=(0,u.PW)(void 0,{skip:h}),x=f.flags.messagingConfiguration&&(!y||!v)&&m;return(0,i.jsxs)(a.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,i.jsxs)(s(),{children:[(0,i.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,i.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,i.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,i.jsxs)(a.kCb,{as:"main",direction:"column",py:r?6:0,px:r?10:0,h:r?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...d,children:[x?(0,i.jsx)(g,{}):null,t]})]})}},58754:function(e,t,n){"use strict";var i=n(24246),a=n(98227),r=n(70788);t.Z=e=>{let{heading:t,breadcrumbItems:n,isSticky:s=!0,children:o,rightContent:l,style:u,...c}=e;return(0,i.jsxs)("div",{...c,style:s?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...u}:{paddingBottom:"24px",...u},children:[(0,i.jsxs)(a.jqI,{justify:"space-between",children:["string"==typeof t?(0,i.jsx)(a.lQT,{className:n||o?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,l&&(0,i.jsx)("div",{"data-testid":"page-header-right-content",children:l})]}),!!n&&(0,i.jsx)(r.m,{className:o?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),o]})}},19904:function(e,t,n){"use strict";n.d(t,{Tg:function(){return s}});var i=n(24246),a=n(16134),r=n(31793);let s=e=>(0,a.C)(r.uu).filter(t=>e.includes(t)).length>0;t.ZP=e=>{let{scopes:t,children:n}=e;return s(t)?(0,i.jsx)(i.Fragment,{children:n}):null}},70788:function(e,t,n){"use strict";n.d(t,{m:function(){return u}});var i=n(24246),a=n(98227),r=n(79894),s=n.n(r),o=n(27378);let{Text:l}=a.AntTypography,u=e=>{let{items:t,...n}=e,r=(0,o.useMemo)(()=>null==t?void 0:t.map((e,n)=>{let r=n===t.length-1,o={...e},u=o.onClick&&!o.href;return("string"==typeof o.title&&(o.title=(0,i.jsx)(l,{style:{color:"inherit",maxWidth:r?void 0:400},ellipsis:!r,id:r?"breadcrumb-current-page":void 0,children:o.title})),u)?o.title=(0,i.jsx)(a.wpx,{type:"text",size:"small",icon:o.icon,onClick:o.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:o.title}):(o.icon&&(o.title=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"anticon align-text-bottom",children:o.icon}),o.title]})),o.href&&o.title&&(o.title=(0,i.jsx)(s(),{href:o.href,className:"ant-breadcrumb-link",children:o.title}),delete o.href)),o}),[t]);return(0,i.jsx)(a.zrq,{items:r,...n})}},8125:function(e,t,n){"use strict";n.d(t,{V:function(){return r},o:function(){return u}});var i=n(27378),a=n(32735);let r=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{enableSelection:n=!1,getRowKey:r,bulkActions:s,isLoading:o=!1,isFetching:l=!1,dataSource:u=[],totalRows:c=0,currentPage:d,pageSize:g,customTableProps:f={}}=t,p=(0,i.useCallback)(e=>{if(e&&"object"==typeof e){if(e.id)return String(e.id);if(e.key)return String(e.key)}return String(e)},[]),m=r||p,[h,y]=(0,i.useState)([]),[v,x]=(0,i.useState)([]),C=(0,i.useCallback)(()=>{y([]),x([])},[]),b=(0,i.useMemo)(()=>({selectedRowKeys:h,selectedRows:v,resetSelections:C}),[h,v,C]),S=(0,i.useMemo)(()=>{if(n)return{selectedRowKeys:h,onChange:(e,t)=>{y(e),x(t)}}},[n,h]),T=(0,i.useCallback)((t,n,i)=>{var a,r;let s=null!==(a=t.current)&&void 0!==a?a:e.pageIndex,o=null!==(r=t.pageSize)&&void 0!==r?r:e.pageSize,l=s!==e.pageIndex||o!==e.pageSize;l?(t.current&&t.current!==e.pageIndex&&e.updatePageIndex(t.current),t.pageSize&&t.pageSize!==e.pageSize&&e.updatePageSize(t.pageSize)):e.updateFilters(n||{});let u=i&&!Array.isArray(i)?i.field:void 0,c=i&&!Array.isArray(i)&&null!==i.order?i.order:void 0;l||e.updateSorting(u,c)},[e]),j=(0,i.useMemo)(()=>{var t,n,i,r,s;return{current:null!=d?d:e.pageIndex,pageSize:null!=g?g:e.pageSize,total:c,showSizeChanger:null===(r=null===(t=e.paginationConfig)||void 0===t?void 0:t.showSizeChanger)||void 0===r||r,pageSizeOptions:null!==(s=null===(i=e.paginationConfig)||void 0===i?void 0:null===(n=i.pageSizeOptions)||void 0===n?void 0:n.map(String))&&void 0!==s?s:a.VZ}},[d,e.pageIndex,g,e.pageSize,c,e.paginationConfig]),E=(0,i.useMemo)(()=>({dataSource:u,loading:o||l,pagination:j,onChange:T,rowKey:m,scroll:{x:"max-content",scrollToFirstRowOnChange:!0},size:"small",bordered:!0,...f}),[u,o,l,j,T,m,f]),A=h.map(String),k=v.length>0,w=(0,i.useCallback)(e=>{let t=null==s?void 0:s.actions.find(t=>t.key===e);return t?{disabled:!k||!!t.disabled&&t.disabled(v),loading:t.loading||!1,onClick:()=>t.onClick(v)}:{disabled:!0,loading:!1}},[s,k,v]);return(0,i.useMemo)(()=>({tableProps:E,selectionProps:S,selectionState:b,selectedRows:v,selectedKeys:A,hasSelectedRows:k,resetSelections:C,getBulkActionProps:w,isLoadingOrFetching:o||l,hasData:u.length>0}),[E,S,b,v,A,k,C,w,o,l,u.length])};var s=n(40431),o=n(17245);let l=()=>({filters:(0,s.WJ)(e=>e).withDefault({})}),u=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{pagination:t={},sorting:n={},search:a={},onStateChange:r,disableUrlState:u=!1}=e,{pageIndex:c,pageSize:d,resetPagination:g,updatePageIndex:f,updatePageSize:p,pageSizeOptions:m,showSizeChanger:h}=(0,o.h0)({...t,disableUrlState:u}),{sortKey:y,sortOrder:v,updateSorting:x,resetSorting:C}=(0,o.rK)({...n,disableUrlState:u}),{searchQuery:b,updateSearch:S,resetSearch:T}=(0,o.Rx)({...a,disableUrlState:u}),[j,E]=(0,i.useState)({}),A=(0,i.useMemo)(()=>u?null:l(),[u]),[k,w]=(0,s.XI)(null!=A?A:{},{history:"push"}),P=(0,i.useMemo)(()=>{var e;return{pageIndex:c,pageSize:d,sortKey:y,sortOrder:v,columnFilters:u?j:null!==(e=k.filters)&&void 0!==e?e:{},searchQuery:b}},[u,j,k,c,d,y,v,b]),_=(0,i.useCallback)((e,t)=>{x(e,t),g()},[x,g]),M=(0,i.useCallback)(e=>{if(u)E(e);else{let t=Object.fromEntries(Object.entries(e).filter(e=>{let[,t]=e;return null!=t}));w({filters:Object.keys(t).length>0?t:null})}g()},[u,w,g]),I=(0,i.useCallback)(e=>{S(e),g()},[S,g]),z=(0,i.useCallback)(()=>{u?E({}):w({filters:null}),g(),C(),T()},[u,w,g,C,T]);return(0,i.useEffect)(()=>{r&&r(P)},[P,r]),{state:P,pageIndex:P.pageIndex,pageSize:P.pageSize,updatePageIndex:f,updatePageSize:p,sortKey:P.sortKey,sortOrder:P.sortOrder,updateSorting:_,columnFilters:P.columnFilters,updateFilters:M,searchQuery:P.searchQuery,updateSearch:I,resetState:z,paginationConfig:{pageSizeOptions:m,showSizeChanger:h}}}},8917:function(e,t,n){"use strict";n.d(t,{C7:function(){return o},P3:function(){return u},TY:function(){return l},Uv:function(){return a},uP:function(){return s}});var i,a,r=n(65735);let s=new Map([[r.P6.SYSTEM,"system:information"],[r.P6.DATA_USE,"taxonomy:data use"],[r.P6.DATA_CATEGORY,"taxonomy:data category"],[r.P6.DATA_SUBJECT,"taxonomy:data subject"],[r.P6.PRIVACY_DECLARATION,"system:data use"]]);(i=a||(a={})).SINGLE_SELECT="singleSelect",i.MULTIPLE_SELECT="multipleSelect",i.OPEN_TEXT="openText";let o=[{label:"taxonomy:".concat(r.P6.DATA_CATEGORY),value:r.P6.DATA_CATEGORY},{label:"taxonomy:".concat(r.P6.DATA_SUBJECT),value:r.P6.DATA_SUBJECT},{label:"taxonomy:".concat(r.P6.DATA_USE),value:r.P6.DATA_USE},{label:"".concat(r.P6.SYSTEM,":information"),value:r.P6.SYSTEM},{label:"system:data use",value:r.P6.PRIVACY_DECLARATION}],l=[{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 s},_:function(){return r}});var i=n(8917),a=n(65735);let r=e=>e.field_type===a.AL.STRING_?i.Uv.MULTIPLE_SELECT:e.allow_list_id?i.Uv.SINGLE_SELECT:i.Uv.OPEN_TEXT,s=e=>i.P3[r(e)]},42478:function(e,t,n){"use strict";n.d(t,{FU:function(){return u},JE:function(){return a},Ki:function(){return d},SU:function(){return g},W:function(){return f},h9:function(){return r},jc:function(){return i},qt:function(){return l},sn:function(){return c}});let{useGetEmailInviteStatusQuery:i,useGetActiveMessagingProviderQuery:a,useCreateMessagingConfigurationMutation:r,useCreateMessagingConfigurationSecretsMutation:s,useGetMessagingConfigurationDetailsQuery:o,useGetMessagingConfigurationsQuery:l,useGetMessagingConfigurationByKeyQuery:u,useUpdateMessagingConfigurationByKeyMutation:c,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 b}});var i=n(24246),a=n(77213),r=n(98227),s=n(27378),o=n(58754),l=n(30952),u=n(86677),c=n(77830),d=n(19904),g=n(8125),f=n(8917),p=n(72625),m=n(32885),h=e=>{var t;let{field:n,isDisabled:a}=e,[r,{isLoading:s}]=(0,m.yM)(),o=async e=>r({...n,active:e});return(0,i.jsx)(p.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:s})},y=n(66236),v=n(65735),x=()=>{let e=(0,g.o)({pagination:{defaultPageSize:25,pageSizeOptions:[10,25,50]},search:{defaultSearchQuery:""}}),t=(0,u.useRouter)(),{data:n,isLoading:a}=(0,m.GH)(),{tableProps:o}=(0,g.V)(e,{dataSource:n||[],totalRows:(null==n?void 0:n.length)||0,isLoading:a,customTableProps:{layout:"fixed"}}),l=(0,d.Tg)([v.Sh.CUSTOM_FIELD_UPDATE]);return{tableProps:o,columns:(0,s.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)(r.AntTypography.Text,{ellipsis:{tooltip:e},className:"w-96",children:e}),width:384},{title:"Type",dataIndex:"field_type",key:"field_type",render:(e,t)=>(0,y.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:!l,render:(e,t)=>(0,i.jsx)(h,{field:t,isDisabled:!l}),width:96},{title:"Actions",key:"actions",render:(e,n)=>(0,i.jsx)(r.jqI,{gap:"middle",children:(0,i.jsx)(r.wpx,{size:"small",onClick:()=>t.push("".concat(c.WC,"/").concat(n.id)),"data-testid":"edit-btn",children:"Edit"})}),hidden:!l,width:96}],[t,l,e.searchQuery,l]),searchQuery:e.searchQuery,updateSearch:e.updateSearch,onAddClick:()=>t.push("".concat(c.WC,"/new"))}},C=()=>{let{tableProps:e,columns:t,searchQuery:n,updateSearch:a,onAddClick:s}=x();return(0,i.jsxs)(r.jqI,{vertical:!0,gap:"middle",children:[(0,i.jsxs)(r.jqI,{justify:"space-between",children:[(0,i.jsx)(l.f,{value:n,onChange:a,placeholder:"Search custom fields..."}),(0,i.jsx)(r.wpx,{onClick:s,type:"primary","data-testid":"add-custom-field-btn",children:"Add custom field"})]}),(0,i.jsx)(r.V5H,{...e,columns:t})]})},b=()=>(0,i.jsx)(a.Z,{title:"Custom fields",children:(0,i.jsxs)(r.xuv,{"data-testid":"custom-fields-management",children:[(0,i.jsx)(o.Z,{heading:"Custom fields",children:(0,i.jsx)(r.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)(C,{})]})})}},function(e){e.O(0,[431,7245,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(87949),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(87949),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(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 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9252],{98648:function(e,i,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/domains",function(){return n(76974)}])},59301:function(e,i,n){"use strict";var t=n(24246);let{Link:s}=n(87949).AntTypography;i.Z=e=>{let{children:i,...n}=e;return(0,t.jsx)(s,{target:"_blank",rel:"noopener noreferrer",...n,children:i})}},77213:function(e,i,n){"use strict";n.d(i,{Z:function(){return m}});var t=n(24246),s=n(87949),r=n(88038),a=n.n(r),o=n(86677);n(27378);var c=n(25980),d=n(90867),l=n(42478),g=n(77830),u=()=>{let e=(0,o.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(g.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."," "]})]})})},m=e=>{let{children:i,title:n,padded:r=!0,mainProps:g}=e,m=(0,c.hz)(),p=(0,o.useRouter)(),h="/privacy-requests"===p.pathname||"/datastore-connection"===p.pathname,x=!(m.flags.messagingConfiguration&&h),{data:f}=(0,l.JE)(void 0,{skip:x}),{data:y}=(0,d.PW)(void 0,{skip:x}),v=m.flags.messagingConfiguration&&(!f||!y)&&h;return(0,t.jsxs)(s.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,t.jsxs)(a(),{children:[(0,t.jsxs)("title",{children:["Fides Admin UI - ",n]}),(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:r?6:0,px:r?10:0,h:r?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...g,children:[v?(0,t.jsx)(u,{}):null,i]})]})}},58754:function(e,i,n){"use strict";var t=n(24246),s=n(87949),r=n(70788);i.Z=e=>{let{heading:i,breadcrumbItems:n,isSticky:a=!0,children:o,rightContent:c,style:d,...l}=e;return(0,t.jsxs)("div",{...l,style:a?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...d}:{paddingBottom:"24px",...d},children:[(0,t.jsxs)(s.jqI,{justify:"space-between",children:["string"==typeof i?(0,t.jsx)(s.lQT,{className:n||o?"pb-4":void 0,level:1,"data-testid":"page-heading",children:i}):i,c&&(0,t.jsx)("div",{"data-testid":"page-header-right-content",children:c})]}),!!n&&(0,t.jsx)(r.m,{className:o?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),o]})}},10342:function(e,i,n){"use strict";var t=n(24246),s=n(87949),r=n(46238);i.Z=e=>{let{title:i,tooltip:n,children:a,...o}=e;return(0,t.jsxs)(s.xuv,{borderRadius:"md",border:"1px solid",borderColor:"gray.200",...o,children:[(0,t.jsxs)(s.X6q,{as:"h3",fontSize:"sm",fontWeight:"semibold",color:"gray.700",py:4,px:6,backgroundColor:"gray.50",borderRadius:"md",textAlign:"left",children:[i,n?(0,t.jsx)(s.xvT,{as:"span",mx:1,children:(0,t.jsx)(r.b,{label:n})}):void 0]}),(0,t.jsx)(s.Kqy,{p:6,spacing:6,children:a})]})}},70788:function(e,i,n){"use strict";n.d(i,{m:function(){return d}});var t=n(24246),s=n(87949),r=n(79894),a=n.n(r),o=n(27378);let{Text:c}=s.AntTypography,d=e=>{let{items:i,...n}=e,r=(0,o.useMemo)(()=>null==i?void 0:i.map((e,n)=>{let r=n===i.length-1,o={...e},d=o.onClick&&!o.href;return("string"==typeof o.title&&(o.title=(0,t.jsx)(c,{style:{color:"inherit",maxWidth:r?void 0:400},ellipsis:!r,id:r?"breadcrumb-current-page":void 0,children:o.title})),d)?o.title=(0,t.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,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"anticon align-text-bottom",children:o.icon}),o.title]})),o.href&&o.title&&(o.title=(0,t.jsx)(a(),{href:o.href,className:"ant-breadcrumb-link",children:o.title}),delete o.href)),o}),[i]);return(0,t.jsx)(s.zrq,{items:r,...n})}},42478:function(e,i,n){"use strict";n.d(i,{FU:function(){return d},JE:function(){return s},Ki:function(){return g},SU:function(){return u},W:function(){return m},h9:function(){return r},jc:function(){return t},qt:function(){return c},sn:function(){return l}});let{useGetEmailInviteStatusQuery:t,useGetActiveMessagingProviderQuery:s,useCreateMessagingConfigurationMutation:r,useCreateMessagingConfigurationSecretsMutation:a,useGetMessagingConfigurationDetailsQuery:o,useGetMessagingConfigurationsQuery:c,useGetMessagingConfigurationByKeyQuery:d,useUpdateMessagingConfigurationByKeyMutation:l,useUpdateMessagingConfigurationSecretsByKeyMutation:g,useCreateTestConnectionMessageMutation:u,useDeleteMessagingConfigurationByKeyMutation:m}=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,i,n,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"]})})})},76974:function(e,i,n){"use strict";n.r(i);var t=n(24246),s=n(87949),r=n(34090),a=n(55484),o=n(16134),c=n(59301),d=n(10342),l=n(40324),g=n(812),u=n(77213),m=n(58754),p=n(46628),h=n(7426);i.default=()=>{var e;let{isLoading:i}=(0,h.tB)({api_set:!0}),{isLoading:n}=(0,h.tB)({api_set:!1}),x=(0,o.C)(h.ak),f=x.apiSet,y=x.configSet,v=!!((null===(e=y.cors_origins)||void 0===e?void 0:e.length)||y.cors_origin_regex),j=(0,o.C)((0,h.U7)()),[b,{isLoading:C}]=(0,h.km)(),_=(0,s.pmc)(),w=e=>{if(!e||!(e.startsWith("https://")||e.startsWith("http://")))return!1;try{new URL(e)}catch(e){return!1}return!0},k=e=>!!e&&!e.includes("*"),T=e=>{if(!e)return!1;try{let i=new URL(e);return"/"===i.pathname&&!e.endsWith("/")}catch(e){return!1}},q=a.Ry().shape({cors_origins:a.IX().nullable().of(a.Z_().required().trim().test("is-valid-url",e=>{let{label:i}=e;return"".concat(i," must be a valid URL (e.g. https://example.com)")},e=>w(e)).test("has-no-wildcard",e=>{let{label:i}=e;return"".concat(i," cannot contain a wildcard (e.g. https://*.example.com)")},e=>k(e)).test("has-no-path",e=>{let{label:i}=e;return"".concat(i," cannot contain a path (e.g. https://example.com/path)")},e=>T(e)).label("Domain"))}),M=async(e,i)=>{let n=e.cors_origins&&e.cors_origins.length>0?e.cors_origins:void 0,t={...j,security:{cors_origins:n}};(n=>{if(_.closeAll(),(0,g.D4)(n)){let e=(0,g.e$)(n.error,"An unexpected error occurred while saving domains. Please try again.");_((0,p.Vo)(e))}else _((0,p.t5)("Domains saved successfully")),i.resetForm({values:e})})(await b(t))};return(0,t.jsx)(u.Z,{title:"Domains",children:(0,t.jsxs)(s.xuv,{"data-testid":"management-domains",children:[(0,t.jsx)(m.Z,{heading:"Domains"}),(0,t.jsxs)(s.xuv,{maxW:"600px",children:[(0,t.jsxs)(s.xvT,{fontSize:"sm",pb:6,children:["For Fides to work on your website(s), each of your domains must be listed below. You can add and remove domains at any time up to the quantity included in your license. For more information on managing domains"," ",(0,t.jsx)(c.Z,{href:"https://fid.es/domain-configuration",children:"read here"}),"."]}),(0,t.jsx)(d.Z,{"data-testid":"api-set-domains-form",title:"Organization domains",tooltip:"Fides uses these domains to enforce cross-origin resource sharing (CORS), a browser-based security standard. Each domain must be a valid URL (e.g. https://example.com) without any wildcards '*' or paths '/blog'",children:i||C?(0,t.jsx)(s.kCb,{justifyContent:"center",children:(0,t.jsx)(s.$jN,{})}):(0,t.jsx)(r.J9,{initialValues:f,enableReinitialize:!0,onSubmit:M,validationSchema:q,validateOnChange:!0,children:e=>{let{dirty:i,values:n,isValid:a}=e;return(0,t.jsxs)(r.l0,{children:[(0,t.jsx)(r.F2,{name:"cors_origins",render:e=>(0,t.jsxs)(s.kCb,{flexDir:"column",children:[n.cors_origins.map((i,n)=>(0,t.jsxs)(s.kCb,{flexDir:"row",my:3,children:[(0,t.jsx)(l.j0,{variant:"stacked",name:"cors_origins[".concat(n,"]"),placeholder:"https://subdomain.example.com:9090"}),(0,t.jsx)(s.wpx,{"aria-label":"delete-domain",className:"z-[2] ml-4",icon:(0,t.jsx)(s.pJl,{}),onClick:()=>{e.remove(n)}})]},n)),(0,t.jsx)(s.kCb,{justifyContent:"center",mt:3,children:(0,t.jsx)(s.wpx,{"aria-label":"add-domain",className:"w-full",onClick:()=>{e.push("")},children:"Add domain"})})]})}),(0,t.jsx)(s.xuv,{mt:6,children:(0,t.jsx)(s.wpx,{htmlType:"submit",type:"primary",disabled:C||!i||!a,loading:C,"data-testid":"save-btn",children:"Save"})})]})}})})]}),(0,t.jsx)(s.xuv,{maxW:"600px",marginY:3,children:(0,t.jsx)(d.Z,{"data-testid":"config-set-domains-form",title:"Advanced settings",tooltip:"These domains are configured by an administrator with access to Fides security settings and can support more advanced options such as wildcards and regex.",children:n?(0,t.jsx)(s.kCb,{justifyContent:"center",children:(0,t.jsx)(s.$jN,{})}):(0,t.jsxs)(s.kCb,{flexDir:"column",children:[y.cors_origins.map((e,i)=>(0,t.jsx)(l.oi,{"data-testid":"input-config_cors_origins[".concat(i,"]"),marginY:3,value:e,isDisabled:!0,isPassword:!1},i)),y.cors_origin_regex?(0,t.jsx)(l.oi,{"data-testid":"input-config_cors_origin_regex",marginY:3,value:y.cors_origin_regex,isDisabled:!0,isPassword:!1},"cors_origin_regex"):void 0,v?void 0:(0,t.jsx)(s.xvT,{fontSize:"xs",color:"gray.500",children:"No advanced domain settings configured."})]})})})]})})}}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=98648)}),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9252],{98648:function(e,i,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/domains",function(){return n(76974)}])},59301:function(e,i,n){"use strict";var t=n(24246);let{Link:s}=n(98227).AntTypography;i.Z=e=>{let{children:i,...n}=e;return(0,t.jsx)(s,{target:"_blank",rel:"noopener noreferrer",...n,children:i})}},77213:function(e,i,n){"use strict";n.d(i,{Z:function(){return m}});var t=n(24246),s=n(98227),r=n(88038),a=n.n(r),o=n(86677);n(27378);var c=n(25980),d=n(90867),l=n(42478),g=n(77830),u=()=>{let e=(0,o.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(g.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."," "]})]})})},m=e=>{let{children:i,title:n,padded:r=!0,mainProps:g}=e,m=(0,c.hz)(),p=(0,o.useRouter)(),h="/privacy-requests"===p.pathname||"/datastore-connection"===p.pathname,x=!(m.flags.messagingConfiguration&&h),{data:f}=(0,l.JE)(void 0,{skip:x}),{data:y}=(0,d.PW)(void 0,{skip:x}),v=m.flags.messagingConfiguration&&(!f||!y)&&h;return(0,t.jsxs)(s.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,t.jsxs)(a(),{children:[(0,t.jsxs)("title",{children:["Fides Admin UI - ",n]}),(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:r?6:0,px:r?10:0,h:r?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...g,children:[v?(0,t.jsx)(u,{}):null,i]})]})}},58754:function(e,i,n){"use strict";var t=n(24246),s=n(98227),r=n(70788);i.Z=e=>{let{heading:i,breadcrumbItems:n,isSticky:a=!0,children:o,rightContent:c,style:d,...l}=e;return(0,t.jsxs)("div",{...l,style:a?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...d}:{paddingBottom:"24px",...d},children:[(0,t.jsxs)(s.jqI,{justify:"space-between",children:["string"==typeof i?(0,t.jsx)(s.lQT,{className:n||o?"pb-4":void 0,level:1,"data-testid":"page-heading",children:i}):i,c&&(0,t.jsx)("div",{"data-testid":"page-header-right-content",children:c})]}),!!n&&(0,t.jsx)(r.m,{className:o?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),o]})}},10342:function(e,i,n){"use strict";var t=n(24246),s=n(98227),r=n(46238);i.Z=e=>{let{title:i,tooltip:n,children:a,...o}=e;return(0,t.jsxs)(s.xuv,{borderRadius:"md",border:"1px solid",borderColor:"gray.200",...o,children:[(0,t.jsxs)(s.X6q,{as:"h3",fontSize:"sm",fontWeight:"semibold",color:"gray.700",py:4,px:6,backgroundColor:"gray.50",borderRadius:"md",textAlign:"left",children:[i,n?(0,t.jsx)(s.xvT,{as:"span",mx:1,children:(0,t.jsx)(r.b,{label:n})}):void 0]}),(0,t.jsx)(s.Kqy,{p:6,spacing:6,children:a})]})}},70788:function(e,i,n){"use strict";n.d(i,{m:function(){return d}});var t=n(24246),s=n(98227),r=n(79894),a=n.n(r),o=n(27378);let{Text:c}=s.AntTypography,d=e=>{let{items:i,...n}=e,r=(0,o.useMemo)(()=>null==i?void 0:i.map((e,n)=>{let r=n===i.length-1,o={...e},d=o.onClick&&!o.href;return("string"==typeof o.title&&(o.title=(0,t.jsx)(c,{style:{color:"inherit",maxWidth:r?void 0:400},ellipsis:!r,id:r?"breadcrumb-current-page":void 0,children:o.title})),d)?o.title=(0,t.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,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"anticon align-text-bottom",children:o.icon}),o.title]})),o.href&&o.title&&(o.title=(0,t.jsx)(a(),{href:o.href,className:"ant-breadcrumb-link",children:o.title}),delete o.href)),o}),[i]);return(0,t.jsx)(s.zrq,{items:r,...n})}},42478:function(e,i,n){"use strict";n.d(i,{FU:function(){return d},JE:function(){return s},Ki:function(){return g},SU:function(){return u},W:function(){return m},h9:function(){return r},jc:function(){return t},qt:function(){return c},sn:function(){return l}});let{useGetEmailInviteStatusQuery:t,useGetActiveMessagingProviderQuery:s,useCreateMessagingConfigurationMutation:r,useCreateMessagingConfigurationSecretsMutation:a,useGetMessagingConfigurationDetailsQuery:o,useGetMessagingConfigurationsQuery:c,useGetMessagingConfigurationByKeyQuery:d,useUpdateMessagingConfigurationByKeyMutation:l,useUpdateMessagingConfigurationSecretsByKeyMutation:g,useCreateTestConnectionMessageMutation:u,useDeleteMessagingConfigurationByKeyMutation:m}=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,i,n,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"]})})})},76974:function(e,i,n){"use strict";n.r(i);var t=n(24246),s=n(98227),r=n(34090),a=n(55484),o=n(16134),c=n(59301),d=n(10342),l=n(40324),g=n(812),u=n(77213),m=n(58754),p=n(46628),h=n(7426);i.default=()=>{var e;let{isLoading:i}=(0,h.tB)({api_set:!0}),{isLoading:n}=(0,h.tB)({api_set:!1}),x=(0,o.C)(h.ak),f=x.apiSet,y=x.configSet,v=!!((null===(e=y.cors_origins)||void 0===e?void 0:e.length)||y.cors_origin_regex),j=(0,o.C)((0,h.U7)()),[b,{isLoading:C}]=(0,h.km)(),_=(0,s.pmc)(),w=e=>{if(!e||!(e.startsWith("https://")||e.startsWith("http://")))return!1;try{new URL(e)}catch(e){return!1}return!0},k=e=>!!e&&!e.includes("*"),T=e=>{if(!e)return!1;try{let i=new URL(e);return"/"===i.pathname&&!e.endsWith("/")}catch(e){return!1}},q=a.Ry().shape({cors_origins:a.IX().nullable().of(a.Z_().required().trim().test("is-valid-url",e=>{let{label:i}=e;return"".concat(i," must be a valid URL (e.g. https://example.com)")},e=>w(e)).test("has-no-wildcard",e=>{let{label:i}=e;return"".concat(i," cannot contain a wildcard (e.g. https://*.example.com)")},e=>k(e)).test("has-no-path",e=>{let{label:i}=e;return"".concat(i," cannot contain a path (e.g. https://example.com/path)")},e=>T(e)).label("Domain"))}),M=async(e,i)=>{let n=e.cors_origins&&e.cors_origins.length>0?e.cors_origins:void 0,t={...j,security:{cors_origins:n}};(n=>{if(_.closeAll(),(0,g.D4)(n)){let e=(0,g.e$)(n.error,"An unexpected error occurred while saving domains. Please try again.");_((0,p.Vo)(e))}else _((0,p.t5)("Domains saved successfully")),i.resetForm({values:e})})(await b(t))};return(0,t.jsx)(u.Z,{title:"Domains",children:(0,t.jsxs)(s.xuv,{"data-testid":"management-domains",children:[(0,t.jsx)(m.Z,{heading:"Domains"}),(0,t.jsxs)(s.xuv,{maxW:"600px",children:[(0,t.jsxs)(s.xvT,{fontSize:"sm",pb:6,children:["For Fides to work on your website(s), each of your domains must be listed below. You can add and remove domains at any time up to the quantity included in your license. For more information on managing domains"," ",(0,t.jsx)(c.Z,{href:"https://fid.es/domain-configuration",children:"read here"}),"."]}),(0,t.jsx)(d.Z,{"data-testid":"api-set-domains-form",title:"Organization domains",tooltip:"Fides uses these domains to enforce cross-origin resource sharing (CORS), a browser-based security standard. Each domain must be a valid URL (e.g. https://example.com) without any wildcards '*' or paths '/blog'",children:i||C?(0,t.jsx)(s.kCb,{justifyContent:"center",children:(0,t.jsx)(s.$jN,{})}):(0,t.jsx)(r.J9,{initialValues:f,enableReinitialize:!0,onSubmit:M,validationSchema:q,validateOnChange:!0,children:e=>{let{dirty:i,values:n,isValid:a}=e;return(0,t.jsxs)(r.l0,{children:[(0,t.jsx)(r.F2,{name:"cors_origins",render:e=>(0,t.jsxs)(s.kCb,{flexDir:"column",children:[n.cors_origins.map((i,n)=>(0,t.jsxs)(s.kCb,{flexDir:"row",my:3,children:[(0,t.jsx)(l.j0,{variant:"stacked",name:"cors_origins[".concat(n,"]"),placeholder:"https://subdomain.example.com:9090"}),(0,t.jsx)(s.wpx,{"aria-label":"delete-domain",className:"z-[2] ml-4",icon:(0,t.jsx)(s.pJl,{}),onClick:()=>{e.remove(n)}})]},n)),(0,t.jsx)(s.kCb,{justifyContent:"center",mt:3,children:(0,t.jsx)(s.wpx,{"aria-label":"add-domain",className:"w-full",onClick:()=>{e.push("")},children:"Add domain"})})]})}),(0,t.jsx)(s.xuv,{mt:6,children:(0,t.jsx)(s.wpx,{htmlType:"submit",type:"primary",disabled:C||!i||!a,loading:C,"data-testid":"save-btn",children:"Save"})})]})}})})]}),(0,t.jsx)(s.xuv,{maxW:"600px",marginY:3,children:(0,t.jsx)(d.Z,{"data-testid":"config-set-domains-form",title:"Advanced settings",tooltip:"These domains are configured by an administrator with access to Fides security settings and can support more advanced options such as wildcards and regex.",children:n?(0,t.jsx)(s.kCb,{justifyContent:"center",children:(0,t.jsx)(s.$jN,{})}):(0,t.jsxs)(s.kCb,{flexDir:"column",children:[y.cors_origins.map((e,i)=>(0,t.jsx)(l.oi,{"data-testid":"input-config_cors_origins[".concat(i,"]"),marginY:3,value:e,isDisabled:!0,isPassword:!1},i)),y.cors_origin_regex?(0,t.jsx)(l.oi,{"data-testid":"input-config_cors_origin_regex",marginY:3,value:y.cors_origin_regex,isDisabled:!0,isPassword:!1},"cors_origin_regex"):void 0,v?void 0:(0,t.jsx)(s.xvT,{fontSize:"xs",color:"gray.500",children:"No advanced domain settings configured."})]})})})]})})}}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=98648)}),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4966],{18193:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/email-templates",function(){return i(43104)}])},77213:function(e,t,i){"use strict";i.d(t,{Z:function(){return m}});var n=i(24246),s=i(87949),a=i(88038),r=i.n(a),o=i(86677);i(27378);var l=i(25980),g=i(90867),u=i(42478),d=i(77830),c=()=>{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(d.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."," "]})]})})},m=e=>{let{children:t,title:i,padded:a=!0,mainProps:d}=e,m=(0,l.hz)(),p=(0,o.useRouter)(),f="/privacy-requests"===p.pathname||"/datastore-connection"===p.pathname,h=!(m.flags.messagingConfiguration&&f),{data:y}=(0,u.JE)(void 0,{skip:h}),{data:x}=(0,g.PW)(void 0,{skip:h}),j=m.flags.messagingConfiguration&&(!y||!x)&&f;return(0,n.jsxs)(s.kCb,{"data-testid":i,direction:"column",h:"100vh",children:[(0,n.jsxs)(r(),{children:[(0,n.jsxs)("title",{children:["Fides Admin UI - ",i]}),(0,n.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,n.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,n.jsxs)(s.kCb,{as:"main",direction:"column",py:a?6:0,px:a?10:0,h:a?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...d,children:[j?(0,n.jsx)(c,{}):null,t]})]})}},58754:function(e,t,i){"use strict";var n=i(24246),s=i(87949),a=i(70788);t.Z=e=>{let{heading:t,breadcrumbItems:i,isSticky:r=!0,children:o,rightContent:l,style:g,...u}=e;return(0,n.jsxs)("div",{...u,style:r?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...g}:{paddingBottom:"24px",...g},children:[(0,n.jsxs)(s.jqI,{justify:"space-between",children:["string"==typeof t?(0,n.jsx)(s.lQT,{className:i||o?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,l&&(0,n.jsx)("div",{"data-testid":"page-header-right-content",children:l})]}),!!i&&(0,n.jsx)(a.m,{className:o?"pb-4":void 0,items:i,"data-testid":"page-breadcrumb"}),o]})}},10342:function(e,t,i){"use strict";var n=i(24246),s=i(87949),a=i(46238);t.Z=e=>{let{title:t,tooltip:i,children:r,...o}=e;return(0,n.jsxs)(s.xuv,{borderRadius:"md",border:"1px solid",borderColor:"gray.200",...o,children:[(0,n.jsxs)(s.X6q,{as:"h3",fontSize:"sm",fontWeight:"semibold",color:"gray.700",py:4,px:6,backgroundColor:"gray.50",borderRadius:"md",textAlign:"left",children:[t,i?(0,n.jsx)(s.xvT,{as:"span",mx:1,children:(0,n.jsx)(a.b,{label:i})}):void 0]}),(0,n.jsx)(s.Kqy,{p:6,spacing:6,children:r})]})}},70788:function(e,t,i){"use strict";i.d(t,{m:function(){return g}});var n=i(24246),s=i(87949),a=i(79894),r=i.n(a),o=i(27378);let{Text:l}=s.AntTypography,g=e=>{let{items:t,...i}=e,a=(0,o.useMemo)(()=>null==t?void 0:t.map((e,i)=>{let a=i===t.length-1,o={...e},g=o.onClick&&!o.href;return("string"==typeof o.title&&(o.title=(0,n.jsx)(l,{style:{color:"inherit",maxWidth:a?void 0:400},ellipsis:!a,id:a?"breadcrumb-current-page":void 0,children:o.title})),g)?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)(r(),{href:o.href,className:"ant-breadcrumb-link",children:o.title}),delete o.href)),o}),[t]);return(0,n.jsx)(s.zrq,{items:a,...i})}},47466:function(e,t,i){"use strict";i.d(t,{KC:function(){return r},ew:function(){return o},gQ:function(){return a},jM:function(){return n},lE:function(){return s}});let{useGetMessagingTemplatesQuery:n,useUpdateMessagingTemplatesMutation:s,useGetMessagingTemplateByIdQuery:a,useGetMessagingTemplateDefaultQuery:r,useDeleteMessagingTemplateByIdMutation:o}=i(78780).u.injectEndpoints({endpoints:e=>({getMessagingTemplates:e.query({query:()=>({url:"messaging/templates"}),providesTags:()=>["Messaging Templates"]}),updateMessagingTemplates:e.mutation({query:e=>({url:"messaging/templates",method:"PUT",body:e}),invalidatesTags:()=>["Messaging Templates"]}),getMessagingTemplateById:e.query({query:e=>({url:"/messaging/templates/".concat(e)}),providesTags:()=>["Property-Specific Messaging Templates"]}),getMessagingTemplateDefault:e.query({query:e=>({url:"/messaging/templates/default/".concat(e)})}),deleteMessagingTemplateById:e.mutation({query:e=>({url:"/messaging/templates/".concat(e),method:"DELETE"}),invalidatesTags:()=>["Property-Specific Messaging Templates"]})})})},42478:function(e,t,i){"use strict";i.d(t,{FU:function(){return g},JE:function(){return s},Ki:function(){return d},SU:function(){return c},W:function(){return m},h9:function(){return a},jc:function(){return n},qt:function(){return l},sn:function(){return u}});let{useGetEmailInviteStatusQuery:n,useGetActiveMessagingProviderQuery:s,useCreateMessagingConfigurationMutation:a,useCreateMessagingConfigurationSecretsMutation:r,useGetMessagingConfigurationDetailsQuery:o,useGetMessagingConfigurationsQuery:l,useGetMessagingConfigurationByKeyQuery:g,useUpdateMessagingConfigurationByKeyMutation:u,useUpdateMessagingConfigurationSecretsByKeyMutation:d,useCreateTestConnectionMessageMutation:c,useDeleteMessagingConfigurationByKeyMutation:m}=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,t,i,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"]})})})},43104:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return p}});var n=i(24246),s=i(87949),a=i(77213),r=i(58754),o=i(34090),l=i(10342),g=i(40324),u=i(812),d=i(46628),c=i(47466),m=e=>{let{emailTemplates:t}=e,[i,{isLoading:a}]=(0,c.lE)(),r=(0,s.pmc)(),m=async(e,t)=>{let n=Object.entries(e).map(e=>{let[t,{content:i}]=e;return{type:t,content:i}});(i=>{if((0,u.D4)(i)){let e=(0,u.e$)(i.error,"An unexpected error occurred while editing the email templates. Please try again.");r((0,d.Vo)(e))}else r((0,d.t5)("Email templates saved.")),t.resetForm({values:e})})(await i(n))},p=t.reduce((e,t)=>({...e,[t.type]:{label:t.label,content:t.content}}),{});return(0,n.jsx)(o.J9,{enableReinitialize:!0,initialValues:p,onSubmit:m,children:()=>(0,n.jsxs)(o.l0,{style:{paddingTop:"12px",paddingBottom:"12px"},children:[Object.entries(p).map(e=>{let[t,i]=e;return(0,n.jsx)(s.xuv,{py:3,children:(0,n.jsxs)(l.Z,{title:i.label,children:[(0,n.jsx)(g.j0,{label:"Message subject",name:"".concat(t,".content.subject"),variant:"stacked"}),(0,n.jsx)(g.Ks,{label:"Message body",name:"".concat(t,".content.body"),variant:"stacked",resize:!0})]})},t)}),(0,n.jsx)(s.kCb,{justifyContent:"right",width:"100%",paddingTop:2,children:(0,n.jsx)(s.wpx,{htmlType:"submit",type:"primary",loading:a,children:"Save"})})]})})},p=()=>{let{data:e,isLoading:t}=(0,c.jM)();return t?(0,n.jsx)(a.Z,{title:"Email templates",children:(0,n.jsx)(s.$jN,{})}):(0,n.jsx)(a.Z,{title:"Email templates",children:(0,n.jsxs)(s.xuv,{"data-testid":"email-templates",children:[(0,n.jsx)(r.Z,{heading:"Email Templates"}),(0,n.jsxs)(s.xuv,{maxWidth:"720px",children:[(0,n.jsx)(s.xvT,{fontSize:"sm",children:"When privacy requests are submitted, Fides emails the data subject to confirm their identity and keep them updated on the status of the request. The templates below allow you to configure the subject and body of the email to suit your business needs. To change the appearance of the email, you may use the editors within your messaging provider (e.g. Mailgun, SendGrid, Twilio)."}),(0,n.jsx)(s.xuv,{padding:2,children:(0,n.jsx)(m,{emailTemplates:e})})]})]})})}}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=18193)}),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4966],{18193:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/email-templates",function(){return i(43104)}])},77213:function(e,t,i){"use strict";i.d(t,{Z:function(){return m}});var n=i(24246),s=i(98227),a=i(88038),r=i.n(a),o=i(86677);i(27378);var l=i(25980),g=i(90867),u=i(42478),d=i(77830),c=()=>{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(d.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."," "]})]})})},m=e=>{let{children:t,title:i,padded:a=!0,mainProps:d}=e,m=(0,l.hz)(),p=(0,o.useRouter)(),f="/privacy-requests"===p.pathname||"/datastore-connection"===p.pathname,h=!(m.flags.messagingConfiguration&&f),{data:y}=(0,u.JE)(void 0,{skip:h}),{data:x}=(0,g.PW)(void 0,{skip:h}),j=m.flags.messagingConfiguration&&(!y||!x)&&f;return(0,n.jsxs)(s.kCb,{"data-testid":i,direction:"column",h:"100vh",children:[(0,n.jsxs)(r(),{children:[(0,n.jsxs)("title",{children:["Fides Admin UI - ",i]}),(0,n.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,n.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,n.jsxs)(s.kCb,{as:"main",direction:"column",py:a?6:0,px:a?10:0,h:a?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...d,children:[j?(0,n.jsx)(c,{}):null,t]})]})}},58754:function(e,t,i){"use strict";var n=i(24246),s=i(98227),a=i(70788);t.Z=e=>{let{heading:t,breadcrumbItems:i,isSticky:r=!0,children:o,rightContent:l,style:g,...u}=e;return(0,n.jsxs)("div",{...u,style:r?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...g}:{paddingBottom:"24px",...g},children:[(0,n.jsxs)(s.jqI,{justify:"space-between",children:["string"==typeof t?(0,n.jsx)(s.lQT,{className:i||o?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,l&&(0,n.jsx)("div",{"data-testid":"page-header-right-content",children:l})]}),!!i&&(0,n.jsx)(a.m,{className:o?"pb-4":void 0,items:i,"data-testid":"page-breadcrumb"}),o]})}},10342:function(e,t,i){"use strict";var n=i(24246),s=i(98227),a=i(46238);t.Z=e=>{let{title:t,tooltip:i,children:r,...o}=e;return(0,n.jsxs)(s.xuv,{borderRadius:"md",border:"1px solid",borderColor:"gray.200",...o,children:[(0,n.jsxs)(s.X6q,{as:"h3",fontSize:"sm",fontWeight:"semibold",color:"gray.700",py:4,px:6,backgroundColor:"gray.50",borderRadius:"md",textAlign:"left",children:[t,i?(0,n.jsx)(s.xvT,{as:"span",mx:1,children:(0,n.jsx)(a.b,{label:i})}):void 0]}),(0,n.jsx)(s.Kqy,{p:6,spacing:6,children:r})]})}},70788:function(e,t,i){"use strict";i.d(t,{m:function(){return g}});var n=i(24246),s=i(98227),a=i(79894),r=i.n(a),o=i(27378);let{Text:l}=s.AntTypography,g=e=>{let{items:t,...i}=e,a=(0,o.useMemo)(()=>null==t?void 0:t.map((e,i)=>{let a=i===t.length-1,o={...e},g=o.onClick&&!o.href;return("string"==typeof o.title&&(o.title=(0,n.jsx)(l,{style:{color:"inherit",maxWidth:a?void 0:400},ellipsis:!a,id:a?"breadcrumb-current-page":void 0,children:o.title})),g)?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)(r(),{href:o.href,className:"ant-breadcrumb-link",children:o.title}),delete o.href)),o}),[t]);return(0,n.jsx)(s.zrq,{items:a,...i})}},47466:function(e,t,i){"use strict";i.d(t,{KC:function(){return r},ew:function(){return o},gQ:function(){return a},jM:function(){return n},lE:function(){return s}});let{useGetMessagingTemplatesQuery:n,useUpdateMessagingTemplatesMutation:s,useGetMessagingTemplateByIdQuery:a,useGetMessagingTemplateDefaultQuery:r,useDeleteMessagingTemplateByIdMutation:o}=i(78780).u.injectEndpoints({endpoints:e=>({getMessagingTemplates:e.query({query:()=>({url:"messaging/templates"}),providesTags:()=>["Messaging Templates"]}),updateMessagingTemplates:e.mutation({query:e=>({url:"messaging/templates",method:"PUT",body:e}),invalidatesTags:()=>["Messaging Templates"]}),getMessagingTemplateById:e.query({query:e=>({url:"/messaging/templates/".concat(e)}),providesTags:()=>["Property-Specific Messaging Templates"]}),getMessagingTemplateDefault:e.query({query:e=>({url:"/messaging/templates/default/".concat(e)})}),deleteMessagingTemplateById:e.mutation({query:e=>({url:"/messaging/templates/".concat(e),method:"DELETE"}),invalidatesTags:()=>["Property-Specific Messaging Templates"]})})})},42478:function(e,t,i){"use strict";i.d(t,{FU:function(){return g},JE:function(){return s},Ki:function(){return d},SU:function(){return c},W:function(){return m},h9:function(){return a},jc:function(){return n},qt:function(){return l},sn:function(){return u}});let{useGetEmailInviteStatusQuery:n,useGetActiveMessagingProviderQuery:s,useCreateMessagingConfigurationMutation:a,useCreateMessagingConfigurationSecretsMutation:r,useGetMessagingConfigurationDetailsQuery:o,useGetMessagingConfigurationsQuery:l,useGetMessagingConfigurationByKeyQuery:g,useUpdateMessagingConfigurationByKeyMutation:u,useUpdateMessagingConfigurationSecretsByKeyMutation:d,useCreateTestConnectionMessageMutation:c,useDeleteMessagingConfigurationByKeyMutation:m}=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,t,i,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"]})})})},43104:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return p}});var n=i(24246),s=i(98227),a=i(77213),r=i(58754),o=i(34090),l=i(10342),g=i(40324),u=i(812),d=i(46628),c=i(47466),m=e=>{let{emailTemplates:t}=e,[i,{isLoading:a}]=(0,c.lE)(),r=(0,s.pmc)(),m=async(e,t)=>{let n=Object.entries(e).map(e=>{let[t,{content:i}]=e;return{type:t,content:i}});(i=>{if((0,u.D4)(i)){let e=(0,u.e$)(i.error,"An unexpected error occurred while editing the email templates. Please try again.");r((0,d.Vo)(e))}else r((0,d.t5)("Email templates saved.")),t.resetForm({values:e})})(await i(n))},p=t.reduce((e,t)=>({...e,[t.type]:{label:t.label,content:t.content}}),{});return(0,n.jsx)(o.J9,{enableReinitialize:!0,initialValues:p,onSubmit:m,children:()=>(0,n.jsxs)(o.l0,{style:{paddingTop:"12px",paddingBottom:"12px"},children:[Object.entries(p).map(e=>{let[t,i]=e;return(0,n.jsx)(s.xuv,{py:3,children:(0,n.jsxs)(l.Z,{title:i.label,children:[(0,n.jsx)(g.j0,{label:"Message subject",name:"".concat(t,".content.subject"),variant:"stacked"}),(0,n.jsx)(g.Ks,{label:"Message body",name:"".concat(t,".content.body"),variant:"stacked",resize:!0})]})},t)}),(0,n.jsx)(s.kCb,{justifyContent:"right",width:"100%",paddingTop:2,children:(0,n.jsx)(s.wpx,{htmlType:"submit",type:"primary",loading:a,children:"Save"})})]})})},p=()=>{let{data:e,isLoading:t}=(0,c.jM)();return t?(0,n.jsx)(a.Z,{title:"Email templates",children:(0,n.jsx)(s.$jN,{})}):(0,n.jsx)(a.Z,{title:"Email templates",children:(0,n.jsxs)(s.xuv,{"data-testid":"email-templates",children:[(0,n.jsx)(r.Z,{heading:"Email Templates"}),(0,n.jsxs)(s.xuv,{maxWidth:"720px",children:[(0,n.jsx)(s.xvT,{fontSize:"sm",children:"When privacy requests are submitted, Fides emails the data subject to confirm their identity and keep them updated on the status of the request. The templates below allow you to configure the subject and body of the email to suit your business needs. To change the appearance of the email, you may use the editors within your messaging provider (e.g. Mailgun, SendGrid, Twilio)."}),(0,n.jsx)(s.xuv,{padding:2,children:(0,n.jsx)(m,{emailTemplates:e})})]})]})})}}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=18193)}),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2462],{40135:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/locations",function(){return n(36956)}])},36956:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return Z}});var i=n(24246),l=n(87949),s=n(16134),o=n(77213),a=n(58754),r=n(98784),d=n.n(r),c=n(86677),u=n(27378),h=n(812),g=n(58452),m=n(26917),x=n(46628),p=n(65735),j=n(31883),f=n(77830),v=n(26089),C=n(61524),y=n(46238),w=e=>{let{id:t,isChecked:n,onChange:s}=e;return(0,i.jsxs)(l.kCb,{alignItems:"center",gap:"8px",children:[(0,i.jsx)(l.rAg,{checked:n,size:"small",onChange:s,id:t,"data-testid":"regulated-toggle"}),(0,i.jsx)(l.lXp,{fontSize:"sm",m:0,htmlFor:t,children:"Regulated"}),(0,i.jsx)(y.b,{label:"Toggle on to see only locations in this region with privacy regulations supported by Fides"})]})},b=n(67991),k=n(12282),S=n(85759),_=e=>{let{groups:t,locations:n,isOpen:s,onClose:o,selected:a,onChange:r}=e,[d,c]=(0,u.useState)(a),[h,g]=(0,u.useState)(!1),{filteredLocations:m,locationsByGroup:x}=(0,u.useMemo)(()=>{let e=h?n.filter(e=>{var t;return null===(t=e.regulation)||void 0===t?void 0:t.length}):n;return{locationsByGroup:(0,S.VT)(e),filteredLocations:e}},[n,h]),{allSelected:p,handleToggleAll:j,handleToggleSelection:f}=(0,b.QZ)({items:m,selected:d,onChange:c}),v=d.filter(e=>!Object.keys(x).includes(e)).length,C=n[0].continent,y=Object.keys(x),_=!(1===y.length&&"Other"===y[0]);return(0,i.jsxs)(l.u_l,{size:"2xl",isOpen:s,onClose:o,isCentered:!0,children:[(0,i.jsx)(l.ZAr,{}),(0,i.jsxs)(l.hzk,{"data-testid":"subgroup-modal",children:[(0,i.jsx)(k.h4,{title:"Select locations"}),(0,i.jsxs)(l.fef,{p:6,maxHeight:"70vh",overflowY:"auto",children:[(0,i.jsx)(k.x$,{title:C,allSelected:p,onToggleAll:j,numSelected:v,children:(0,i.jsx)(w,{id:"".concat(C,"-modal-regulated"),isChecked:h,onChange:()=>g(!h)})}),_?(0,i.jsx)(l.UQy,{allowToggle:!0,allowMultiple:!0,children:Object.entries(x).map(e=>{let[n,s]=e,o=t.find(e=>n===e.id),a=o?o.name:n;return(0,i.jsxs)(l.Qdk,{"data-testid":"".concat(a,"-accordion"),children:[(0,i.jsx)("h2",{children:(0,i.jsxs)(l.KFZ,{children:[(0,i.jsx)(l.xuv,{as:"span",flex:"1",textAlign:"left",fontWeight:"semibold",fontSize:"sm",children:a}),(0,i.jsx)(l.XEm,{})]})}),(0,i.jsx)(l.Hk3,{pb:4,children:(0,i.jsx)(l.MIq,{columns:3,spacing:6,children:s.map(e=>(0,i.jsx)(l.XZJ,{size:"sm",colorScheme:"complimentary",isChecked:d.includes(e.id),onChange:()=>f(e.id),"data-testid":"".concat(e.name,"-checkbox"),children:e.name},e.id))})})]},n)})}):(0,i.jsx)(l.MIq,{columns:3,spacing:6,paddingInline:4,children:m.map(e=>(0,i.jsx)(l.XZJ,{size:"sm",colorScheme:"complimentary",isChecked:d.includes(e.id),onChange:()=>f(e.id),"data-testid":"".concat(e.name,"-checkbox"),children:e.name},e.id))})]}),(0,i.jsx)(k.$_,{onApply:()=>{let e=new Set(d);Object.entries(x).forEach(t=>{let[n,i]=t;i.every(e=>d.includes(e.id))?e.add(n):e.delete(n)}),r(Array.from(e)),o()},onClose:o})]})]})};let O=(e,t)=>{var n;return null===(n=e.name)||void 0===n?void 0:n.toLocaleLowerCase().includes(t.toLocaleLowerCase())};var E=e=>{let{title:t,groups:n,locations:s,selected:o,onChange:a,search:r}=e,d=(0,l.qY0)(),[c,h]=(0,u.useState)(!1),g=!!(null==r?void 0:r.length),m=n.length>0,x=s;n.length&&(x=n),g&&(x=[...s,...n].sort((e,t)=>e.name.localeCompare(t.name)));let p=c?x.filter(e=>(0,S.$q)(e,s)):x,j=r?p.filter(e=>O(e,r)):p,f=n.filter(e=>"checked"===(0,S.ji)({group:e,selected:o,locations:s})).map(e=>e.id),v=n.filter(e=>"indeterminate"===(0,S.ji)({group:e,selected:o,locations:s})).map(e=>e.id),y=m?[...f,...o]:o,b=o.length,k=e=>{a(s.map(t=>e.includes(t.id)?{...t,selected:!0}:{...t,selected:!1}))};return 0===j.length&&r?null:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(C.ZP,{title:t,items:j,selected:y,indeterminate:m?v:[],onChange:e=>{let t=new Set(e),i=new Set(y);e.forEach(e=>{!i.has(e)&&n.find(t=>t.id===e)&&s.filter(t=>{var n;return null===(n=t.belongs_to)||void 0===n?void 0:n.includes(e)}).forEach(e=>{t.add(e.id)})}),i.forEach(e=>{!t.has(e)&&n.find(t=>t.id===e)&&s.filter(t=>{var n;return null===(n=t.belongs_to)||void 0===n?void 0:n.includes(e)}).forEach(e=>{t.delete(e.id)})}),k(Array.from(t))},onViewMore:()=>{d.onOpen()},numSelected:b,toggle:(0,i.jsx)(w,{id:"".concat(t,"-regulated"),isChecked:c,onChange:()=>h(!c)})}),(0,i.jsx)(_,{groups:n,locations:s,isOpen:d.isOpen,onClose:d.onClose,selected:o,onChange:k},"subgroup-modal-selected-".concat(y.length))]})},L=n(64781),A=e=>{var t,n;let{data:s}=e,o=(0,l.pmc)(),a=(0,l.qY0)(),[r,C]=(0,u.useState)(null!==(n=null===(t=s.locations)||void 0===t?void 0:t.filter(e=>e.id!==p._F.GLOBAL))&&void 0!==n?n:[]),[y,w]=(0,u.useState)(""),[b,{isLoading:k}]=(0,L.WA)(),_=(0,u.useMemo)(()=>(0,S.Il)((s.locations||[]).filter(e=>e.id!==p._F.GLOBAL),s.location_groups||[]),[s]),O=!d().isEqual(r,s.locations),A=(0,c.useRouter)(),Z=()=>{A.push(f.vY).then(()=>{o.closeAll()})},F=async()=>{let e=await b({locations:r.map(e=>({id:e.id,selected:e.selected})),regulations:[]});(0,j.D4)(e)?o((0,x.Vo)((0,h.e$)(e.error))):o((0,x.t5)((0,i.jsxs)(l.xvT,{display:"inline",children:["Fides has automatically associated the relevant regulations with your location choices."," ",(0,i.jsx)(v.Z,{onClick:Z,children:"View regulations here."})]})))},M=e=>{C(r.map(t=>{let n=e.find(e=>e.id===t.id);return null!=n?n:t}))};return(0,i.jsxs)(l.gCW,{alignItems:"start",spacing:4,children:[(0,i.jsx)(l.xuv,{maxWidth:"510px",width:"100%",children:(0,i.jsx)(m.Z,{onChange:w,placeholder:"Search",value:y,onClear:()=>w("")})}),(0,i.jsx)(l.MIq,{columns:{base:1,md:2,xl:3},spacing:6,width:"100%",children:Object.entries(_).map(e=>{let[t,n]=e;return(0,i.jsx)(E,{title:t,groups:n.locationGroups,locations:n.locations,selected:r.filter(e=>n.locations.find(t=>t.id===e.id)&&e.selected).map(e=>e.id),onChange:M,search:y},t)})}),(0,i.jsx)(g.Z,{isOpen:a.isOpen,onClose:a.onClose,onConfirm:()=>{F(),a.onClose()},title:"Regulation updates",message:"Modifications in your location settings may also affect your regulation settings to simplify management. You can override any Fides-initiated changes directly in the regulation settings.",isCentered:!0,icon:(0,i.jsx)(l.aNP,{color:"orange"})}),O?(0,i.jsx)(l.wpx,{type:"primary",onClick:a.onOpen,loading:k,"data-testid":"save-btn",children:"Save"}):null]})},Z=()=>{let{isLoading:e}=(0,L.QM)(),t=(0,s.C)(L.P8);return(0,i.jsx)(o.Z,{title:"Locations",children:(0,i.jsxs)(l.xuv,{"data-testid":"location-management",children:[(0,i.jsx)(a.Z,{heading:"Locations"}),(0,i.jsx)(l.xvT,{fontSize:"sm",maxWidth:"720px",pb:6,children:"Select the locations that you operate in and Fides will make sure that you are automatically presented with the relevant regulatory guidelines and global frameworks for your locations."}),(0,i.jsx)(l.xuv,{children:e?(0,i.jsx)(l.$jN,{}):(0,i.jsx)(A,{data:t})})]})})}}},function(e){e.O(0,[9826,2888,9774,179],function(){return e(e.s=40135)}),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2462],{40135:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/locations",function(){return n(36956)}])},36956:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return Z}});var i=n(24246),l=n(98227),s=n(16134),o=n(77213),a=n(58754),r=n(98784),d=n.n(r),c=n(86677),u=n(27378),h=n(812),g=n(58452),m=n(26917),x=n(46628),p=n(65735),j=n(31883),f=n(77830),v=n(26089),C=n(61524),y=n(46238),w=e=>{let{id:t,isChecked:n,onChange:s}=e;return(0,i.jsxs)(l.kCb,{alignItems:"center",gap:"8px",children:[(0,i.jsx)(l.rAg,{checked:n,size:"small",onChange:s,id:t,"data-testid":"regulated-toggle"}),(0,i.jsx)(l.lXp,{fontSize:"sm",m:0,htmlFor:t,children:"Regulated"}),(0,i.jsx)(y.b,{label:"Toggle on to see only locations in this region with privacy regulations supported by Fides"})]})},b=n(67991),k=n(12282),S=n(85759),_=e=>{let{groups:t,locations:n,isOpen:s,onClose:o,selected:a,onChange:r}=e,[d,c]=(0,u.useState)(a),[h,g]=(0,u.useState)(!1),{filteredLocations:m,locationsByGroup:x}=(0,u.useMemo)(()=>{let e=h?n.filter(e=>{var t;return null===(t=e.regulation)||void 0===t?void 0:t.length}):n;return{locationsByGroup:(0,S.VT)(e),filteredLocations:e}},[n,h]),{allSelected:p,handleToggleAll:j,handleToggleSelection:f}=(0,b.QZ)({items:m,selected:d,onChange:c}),v=d.filter(e=>!Object.keys(x).includes(e)).length,C=n[0].continent,y=Object.keys(x),_=!(1===y.length&&"Other"===y[0]);return(0,i.jsxs)(l.u_l,{size:"2xl",isOpen:s,onClose:o,isCentered:!0,children:[(0,i.jsx)(l.ZAr,{}),(0,i.jsxs)(l.hzk,{"data-testid":"subgroup-modal",children:[(0,i.jsx)(k.h4,{title:"Select locations"}),(0,i.jsxs)(l.fef,{p:6,maxHeight:"70vh",overflowY:"auto",children:[(0,i.jsx)(k.x$,{title:C,allSelected:p,onToggleAll:j,numSelected:v,children:(0,i.jsx)(w,{id:"".concat(C,"-modal-regulated"),isChecked:h,onChange:()=>g(!h)})}),_?(0,i.jsx)(l.UQy,{allowToggle:!0,allowMultiple:!0,children:Object.entries(x).map(e=>{let[n,s]=e,o=t.find(e=>n===e.id),a=o?o.name:n;return(0,i.jsxs)(l.Qdk,{"data-testid":"".concat(a,"-accordion"),children:[(0,i.jsx)("h2",{children:(0,i.jsxs)(l.KFZ,{children:[(0,i.jsx)(l.xuv,{as:"span",flex:"1",textAlign:"left",fontWeight:"semibold",fontSize:"sm",children:a}),(0,i.jsx)(l.XEm,{})]})}),(0,i.jsx)(l.Hk3,{pb:4,children:(0,i.jsx)(l.MIq,{columns:3,spacing:6,children:s.map(e=>(0,i.jsx)(l.XZJ,{size:"sm",colorScheme:"complimentary",isChecked:d.includes(e.id),onChange:()=>f(e.id),"data-testid":"".concat(e.name,"-checkbox"),children:e.name},e.id))})})]},n)})}):(0,i.jsx)(l.MIq,{columns:3,spacing:6,paddingInline:4,children:m.map(e=>(0,i.jsx)(l.XZJ,{size:"sm",colorScheme:"complimentary",isChecked:d.includes(e.id),onChange:()=>f(e.id),"data-testid":"".concat(e.name,"-checkbox"),children:e.name},e.id))})]}),(0,i.jsx)(k.$_,{onApply:()=>{let e=new Set(d);Object.entries(x).forEach(t=>{let[n,i]=t;i.every(e=>d.includes(e.id))?e.add(n):e.delete(n)}),r(Array.from(e)),o()},onClose:o})]})]})};let O=(e,t)=>{var n;return null===(n=e.name)||void 0===n?void 0:n.toLocaleLowerCase().includes(t.toLocaleLowerCase())};var E=e=>{let{title:t,groups:n,locations:s,selected:o,onChange:a,search:r}=e,d=(0,l.qY0)(),[c,h]=(0,u.useState)(!1),g=!!(null==r?void 0:r.length),m=n.length>0,x=s;n.length&&(x=n),g&&(x=[...s,...n].sort((e,t)=>e.name.localeCompare(t.name)));let p=c?x.filter(e=>(0,S.$q)(e,s)):x,j=r?p.filter(e=>O(e,r)):p,f=n.filter(e=>"checked"===(0,S.ji)({group:e,selected:o,locations:s})).map(e=>e.id),v=n.filter(e=>"indeterminate"===(0,S.ji)({group:e,selected:o,locations:s})).map(e=>e.id),y=m?[...f,...o]:o,b=o.length,k=e=>{a(s.map(t=>e.includes(t.id)?{...t,selected:!0}:{...t,selected:!1}))};return 0===j.length&&r?null:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(C.ZP,{title:t,items:j,selected:y,indeterminate:m?v:[],onChange:e=>{let t=new Set(e),i=new Set(y);e.forEach(e=>{!i.has(e)&&n.find(t=>t.id===e)&&s.filter(t=>{var n;return null===(n=t.belongs_to)||void 0===n?void 0:n.includes(e)}).forEach(e=>{t.add(e.id)})}),i.forEach(e=>{!t.has(e)&&n.find(t=>t.id===e)&&s.filter(t=>{var n;return null===(n=t.belongs_to)||void 0===n?void 0:n.includes(e)}).forEach(e=>{t.delete(e.id)})}),k(Array.from(t))},onViewMore:()=>{d.onOpen()},numSelected:b,toggle:(0,i.jsx)(w,{id:"".concat(t,"-regulated"),isChecked:c,onChange:()=>h(!c)})}),(0,i.jsx)(_,{groups:n,locations:s,isOpen:d.isOpen,onClose:d.onClose,selected:o,onChange:k},"subgroup-modal-selected-".concat(y.length))]})},L=n(64781),A=e=>{var t,n;let{data:s}=e,o=(0,l.pmc)(),a=(0,l.qY0)(),[r,C]=(0,u.useState)(null!==(n=null===(t=s.locations)||void 0===t?void 0:t.filter(e=>e.id!==p._F.GLOBAL))&&void 0!==n?n:[]),[y,w]=(0,u.useState)(""),[b,{isLoading:k}]=(0,L.WA)(),_=(0,u.useMemo)(()=>(0,S.Il)((s.locations||[]).filter(e=>e.id!==p._F.GLOBAL),s.location_groups||[]),[s]),O=!d().isEqual(r,s.locations),A=(0,c.useRouter)(),Z=()=>{A.push(f.vY).then(()=>{o.closeAll()})},F=async()=>{let e=await b({locations:r.map(e=>({id:e.id,selected:e.selected})),regulations:[]});(0,j.D4)(e)?o((0,x.Vo)((0,h.e$)(e.error))):o((0,x.t5)((0,i.jsxs)(l.xvT,{display:"inline",children:["Fides has automatically associated the relevant regulations with your location choices."," ",(0,i.jsx)(v.Z,{onClick:Z,children:"View regulations here."})]})))},M=e=>{C(r.map(t=>{let n=e.find(e=>e.id===t.id);return null!=n?n:t}))};return(0,i.jsxs)(l.gCW,{alignItems:"start",spacing:4,children:[(0,i.jsx)(l.xuv,{maxWidth:"510px",width:"100%",children:(0,i.jsx)(m.Z,{onChange:w,placeholder:"Search",value:y,onClear:()=>w("")})}),(0,i.jsx)(l.MIq,{columns:{base:1,md:2,xl:3},spacing:6,width:"100%",children:Object.entries(_).map(e=>{let[t,n]=e;return(0,i.jsx)(E,{title:t,groups:n.locationGroups,locations:n.locations,selected:r.filter(e=>n.locations.find(t=>t.id===e.id)&&e.selected).map(e=>e.id),onChange:M,search:y},t)})}),(0,i.jsx)(g.Z,{isOpen:a.isOpen,onClose:a.onClose,onConfirm:()=>{F(),a.onClose()},title:"Regulation updates",message:"Modifications in your location settings may also affect your regulation settings to simplify management. You can override any Fides-initiated changes directly in the regulation settings.",isCentered:!0,icon:(0,i.jsx)(l.aNP,{color:"orange"})}),O?(0,i.jsx)(l.wpx,{type:"primary",onClick:a.onOpen,loading:k,"data-testid":"save-btn",children:"Save"}):null]})},Z=()=>{let{isLoading:e}=(0,L.QM)(),t=(0,s.C)(L.P8);return(0,i.jsx)(o.Z,{title:"Locations",children:(0,i.jsxs)(l.xuv,{"data-testid":"location-management",children:[(0,i.jsx)(a.Z,{heading:"Locations"}),(0,i.jsx)(l.xvT,{fontSize:"sm",maxWidth:"720px",pb:6,children:"Select the locations that you operate in and Fides will make sure that you are automatically presented with the relevant regulatory guidelines and global frameworks for your locations."}),(0,i.jsx)(l.xuv,{children:e?(0,i.jsx)(l.$jN,{}):(0,i.jsx)(A,{data:t})})]})})}}},function(e){e.O(0,[9826,2888,9774,179],function(){return e(e.s=40135)}),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2828],{85082:function(e,i,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/organization",function(){return t(5417)}])},77213:function(e,i,t){"use strict";t.d(i,{Z:function(){return m}});var n=t(24246),r=t(87949),a=t(88038),s=t.n(a),o=t(86677);t(27378);var l=t(25980),d=t(90867),c=t(42478),u=t(77830),g=()=>{let e=(0,o.useRouter)();return(0,n.jsx)(r.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,n.jsxs)(r.xuv,{children:[(0,n.jsxs)(r.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,n.jsx)(r.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,n.jsx)(r.wpx,{onClick:()=>{e.push(u.AD)},children:"Configure"})]}),(0,n.jsxs)(r.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},m=e=>{let{children:i,title:t,padded:a=!0,mainProps:u}=e,m=(0,l.hz)(),p=(0,o.useRouter)(),x="/privacy-requests"===p.pathname||"/datastore-connection"===p.pathname,f=!(m.flags.messagingConfiguration&&x),{data:v}=(0,c.JE)(void 0,{skip:f}),{data:h}=(0,d.PW)(void 0,{skip:f}),j=m.flags.messagingConfiguration&&(!v||!h)&&x;return(0,n.jsxs)(r.kCb,{"data-testid":t,direction:"column",h:"100vh",children:[(0,n.jsxs)(s(),{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)(r.kCb,{as:"main",direction:"column",py:a?6:0,px:a?10:0,h:a?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...u,children:[j?(0,n.jsx)(g,{}):null,i]})]})}},58754:function(e,i,t){"use strict";var n=t(24246),r=t(87949),a=t(70788);i.Z=e=>{let{heading:i,breadcrumbItems:t,isSticky:s=!0,children:o,rightContent:l,style:d,...c}=e;return(0,n.jsxs)("div",{...c,style:s?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...d}:{paddingBottom:"24px",...d},children:[(0,n.jsxs)(r.jqI,{justify:"space-between",children:["string"==typeof i?(0,n.jsx)(r.lQT,{className:t||o?"pb-4":void 0,level:1,"data-testid":"page-heading",children:i}):i,l&&(0,n.jsx)("div",{"data-testid":"page-header-right-content",children:l})]}),!!t&&(0,n.jsx)(a.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 s}});var n=t(24246),r=t(16134),a=t(31793);let s=e=>(0,r.C)(a.uu).filter(i=>e.includes(i)).length>0;i.ZP=e=>{let{scopes:i,children:t}=e;return s(i)?(0,n.jsx)(n.Fragment,{children:t}):null}},97181:function(e,i,t){"use strict";t.d(i,{d:function(){return d}});var n=t(24246),r=t(87949),a=t(34090),s=t(27378),o=t(46238),l=t(40324);let d=e=>{let{name:i,label:t,labelProps:d,tooltip:c,isRequired:u,layout:g="inline",helperText:m,...p}=e,[x,f,{setValue:v}]=(0,a.U$)(i),h=!!(f.touched&&f.error),[j,y]=(0,s.useState)("");x.value||"tags"!==p.mode&&"multiple"!==p.mode||(x.value=[]),"tags"===p.mode&&"string"==typeof x.value&&(x.value=[x.value]);let b="tags"===p.mode?(e,i)=>e?e.value!==j||x.value.includes(j)?p.optionRender?p.optionRender(e,i):e.label:'Create "'.concat(j,'"'):void 0:p.optionRender||void 0,C=e=>{y(e),p.onSearch&&p.onSearch(e)},k=(e,i)=>{v(e),p.onChange&&p.onChange(e,i)};return"inline"===g?(0,n.jsx)(r.NIc,{isInvalid:h,isRequired:u,children:(0,n.jsxs)(r.rjZ,{templateColumns:t?"1fr 3fr":"1fr",children:[t?(0,n.jsx)(l.__,{htmlFor:p.id||i,...d,children:t}):null,(0,n.jsxs)(r.jqI,{align:"center",children:[(0,n.jsxs)(r.jqI,{vertical:!0,flex:1,className:"mr-2",children:[(0,n.jsx)(r.WPr,{...x,id:p.id||i,"data-testid":"controlled-select-".concat(x.name),...p,optionRender:b,onSearch:"tags"===p.mode?C:void 0,onChange:k,value:x.value||void 0,status:h?"error":void 0}),m&&(0,n.jsx)(r.Q6r,{children:m}),(0,n.jsx)(l.Bc,{isInvalid:h,message:f.error,fieldName:x.name})]}),(0,n.jsx)(o.b,{label:c,className:h?"mt-2 self-start":void 0})]})]})}):(0,n.jsx)(r.NIc,{isInvalid:h,isRequired:u,children:(0,n.jsxs)(r.gCW,{alignItems:"start",children:[(0,n.jsxs)(r.jqI,{align:"center",children:[t?(0,n.jsx)(l.__,{htmlFor:p.id||i,fontSize:"xs",my:0,mr:1,...d,children:t}):null,(0,n.jsx)(o.b,{label:c})]}),(0,n.jsx)(r.WPr,{...x,id:p.id||i,"data-testid":"controlled-select-".concat(x.name),...p,optionRender:b,onSearch:"tags"===p.mode?C:void 0,onChange:k,value:x.value||void 0,status:h?"error":void 0}),m&&(0,n.jsx)(r.Q6r,{style:{marginTop:0},children:m}),(0,n.jsx)(l.Bc,{isInvalid:h,message:f.error,fieldName:x.name})]})})}},8133:function(e,i,t){"use strict";var n=t(24246),r=t(87949);i.Z=e=>{let{title:i,children:t,isOpen:a,onClose:s,modalContentProps:o,showCloseButton:l=!1,footer:d,...c}=e;return(0,n.jsxs)(r.u_l,{isOpen:a,onClose:s,isCentered:!0,scrollBehavior:"inside",size:"xl",id:"add-modal",...c,children:[(0,n.jsx)(r.ZAr,{}),(0,n.jsxs)(r.hzk,{textAlign:"left",p:0,"data-testid":"add-modal-content",...o,children:[l&&(0,n.jsx)(r.olH,{}),(0,n.jsx)(r.xBx,{p:0,children:(0,n.jsx)(r.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)(r.X6q,{as:"h3",size:"sm",children:i})})}),(0,n.jsx)(r.fef,{pb:4,overflow:"auto",children:t}),d&&(0,n.jsx)(r.mzw,{children:d})]})]})}},70788:function(e,i,t){"use strict";t.d(i,{m:function(){return d}});var n=t(24246),r=t(87949),a=t(79894),s=t.n(a),o=t(27378);let{Text:l}=r.AntTypography,d=e=>{let{items:i,...t}=e,a=(0,o.useMemo)(()=>null==i?void 0:i.map((e,t)=>{let a=t===i.length-1,o={...e},d=o.onClick&&!o.href;return("string"==typeof o.title&&(o.title=(0,n.jsx)(l,{style:{color:"inherit",maxWidth:a?void 0:400},ellipsis:!a,id:a?"breadcrumb-current-page":void 0,children:o.title})),d)?o.title=(0,n.jsx)(r.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)(s(),{href:o.href,className:"ant-breadcrumb-link",children:o.title}),delete o.href)),o}),[i]);return(0,n.jsx)(r.zrq,{items:a,...t})}},42478:function(e,i,t){"use strict";t.d(i,{FU:function(){return d},JE:function(){return r},Ki:function(){return u},SU:function(){return g},W:function(){return m},h9:function(){return a},jc:function(){return n},qt:function(){return l},sn:function(){return c}});let{useGetEmailInviteStatusQuery:n,useGetActiveMessagingProviderQuery:r,useCreateMessagingConfigurationMutation:a,useCreateMessagingConfigurationSecretsMutation:s,useGetMessagingConfigurationDetailsQuery:o,useGetMessagingConfigurationsQuery:l,useGetMessagingConfigurationByKeyQuery:d,useUpdateMessagingConfigurationByKeyMutation:c,useUpdateMessagingConfigurationSecretsByKeyMutation:u,useCreateTestConnectionMessageMutation:g,useDeleteMessagingConfigurationByKeyMutation:m}=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 r=await n({url:"messaging/default/active"});return r.error&&404===r.error.status?{data:null}:r},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"]})})})},5417:function(e,i,t){"use strict";t.r(i),t.d(i,{default:function(){return I}});var n=t(24246),r=t(19904),a=t(87949),s=t(25980),o=t(77213),l=t(58754),d=t(8133),c=t(34090),u=t(27378),g=t(55484),m=t(40324),p=t(812),x=t(46628),f=t(76174),v=t(97181);let h={identifier:"",name:"",client_id:"",client_secret:""},j=e=>({...e}),y=g.Ry().shape({provider:g.Z_().required().label("Provider"),name:g.Z_().required().label("Name"),client_id:g.Z_().required().label("Client ID"),client_secret:g.Z_().required().label("Client Secret")});var b=e=>{let{openIDProvider:i,onSuccess:t,onClose:r}=e,[s]=(0,f.Qc)(),[o]=(0,f.oP)(),l=(0,u.useMemo)(()=>i?j(i):h,[i]),d=(0,a.pmc)(),g=async(e,i)=>{(e=>{if((0,p.D4)(e)){let i=(0,p.e$)(e.error,"An unexpected error occurred while editing the SSO provider. Please try again.");d((0,x.Vo)(i))}else d((0,x.t5)("SSO provider configuration saved.")),r(),i.resetForm({}),t&&t(e.data)})(l.id?await o(e):await s(e))},b=[{label:"Azure",value:"azure"},{label:"Google",value:"google"},{label:"Okta",value:"okta"},{label:"Custom",value:"custom"}],C=()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(m.j0,{id:"authorization_url",name:"authorization_url",label:"Authorization URL",tooltip:"Authorization URL for your provider",variant:"stacked",isRequired:!0}),(0,n.jsx)(m.j0,{id:"token_url",name:"token_url",label:"Token URL",tooltip:"Token URL for your provider",variant:"stacked",isRequired:!0})]}),k=()=>(0,n.jsx)(m.j0,{id:"domain",name:"domain",label:"Domain",tooltip:"Domain for your Okta provider",variant:"stacked",isRequired:!0}),q=()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(m.j0,{id:"authorization_url",name:"authorization_url",label:"Authorization URL",tooltip:"Authorization URL for your provider",variant:"stacked",isRequired:!0}),(0,n.jsx)(m.j0,{id:"token_url",name:"token_url",label:"Token URL",tooltip:"Token URL for your provider",variant:"stacked",isRequired:!0}),(0,n.jsx)(m.j0,{id:"userinfo_url",name:"user_info_url",label:"User Info URL",tooltip:"User Info URL for your provider",variant:"stacked",isRequired:!0})]});return(0,n.jsx)(c.J9,{initialValues:l,enableReinitialize:!0,onSubmit:g,validationSchema:y,children:e=>{let{dirty:i,isValid:t,values:s}=e;return(0,n.jsx)(c.l0,{"data-testid":"openIDProvider-form",children:(0,n.jsxs)(a.Kqy,{spacing:4,children:[(0,n.jsx)(v.d,{name:"provider",label:"Provider",options:b,layout:"stacked",isRequired:!0}),(0,n.jsx)(m.j0,{id:"identifier",name:"identifier",label:"Identifier",tooltip:"Unique identifier for your provider",variant:"stacked",isRequired:!0,disabled:!!l.id}),(0,n.jsx)(m.j0,{id:"name",name:"name",label:"Name",tooltip:"Display name for your provider",variant:"stacked",isRequired:!0}),(0,n.jsx)(m.j0,{id:"client_id",name:"client_id",label:"Client ID",type:"password",tooltip:"Client ID for your provider",variant:"stacked",isRequired:!0}),(0,n.jsx)(m.j0,{id:"client_secret",name:"client_secret",label:"Client secret",type:"password",tooltip:"Client secret for your provider",variant:"stacked",isRequired:!0}),"azure"===s.provider&&C(),"okta"===s.provider&&k(),"custom"===s.provider&&q(),(0,n.jsxs)(a.xuv,{textAlign:"right",children:[(0,n.jsx)(a.wpx,{htmlType:"button","data-testid":"cancel-btn",className:"mr-3",onClick:r,children:"Cancel"}),(0,n.jsx)(a.wpx,{htmlType:"submit",type:"primary",disabled:!i||!t,"data-testid":"save-btn",children:"Save"})]})]})})}})},C=e=>{let{isOpen:i,onClose:t}=e;return(0,n.jsx)(d.Z,{isOpen:i,onClose:t,title:"Add SSO Provider",children:(0,n.jsx)(b,{onClose:t})})},k=e=>{let{isOpen:i,onClose:t,openIDProvider:r}=e;return(0,n.jsx)(d.Z,{isOpen:i,onClose:t,title:"Edit SSO Provider",children:(0,n.jsx)(b,{openIDProvider:r,onClose:t})})},q=e=>{let{openIDProvider:i}=e,{onOpen:t,isOpen:r,onClose:s}=(0,a.qY0)(),{onOpen:o,isOpen:l,onClose:d}=(0,a.qY0)(),c=(0,a.pmc)(),[u]=(0,f.rB)(),g=async()=>{let e=await u(i.identifier);if((0,p.D4)(e)){c((0,x.Vo)((0,p.e$)(e.error))),d();return}c((0,x.t5)("SSO provider deleted successfully")),d()};return(0,n.jsxs)(a.xuv,{alignItems:"center",borderRadius:"lg",borderWidth:"1px",display:"flex",height:"74px",marginBottom:"24px",padding:2,children:[(0,n.jsxs)(a.xuv,{display:"flex",alignItems:"center",children:[(0,n.jsx)(a.Eep,{src:"/images/oauth-login/".concat(i.provider,".svg"),alt:"".concat(i.provider," icon"),width:"40px",height:"40px"}),(0,n.jsxs)(a.xuv,{display:"flex",flexDirection:"column",children:[(0,n.jsx)(a.xvT,{fontSize:"medium",fontWeight:"bold",marginLeft:"16px",children:i.name}),(0,n.jsx)(a.xvT,{fontSize:"medium",marginLeft:"16px",children:i.identifier})]})]}),(0,n.jsxs)(a.xuv,{flexGrow:1,display:"flex",justifyContent:"flex-end",children:[(0,n.jsx)(a.wpx,{className:"mr-3",onClick:o,"data-testid":"remove-sso-provider-btn",children:"Remove"}),(0,n.jsx)(a.wpx,{className:"mr-3",onClick:t,"data-testid":"edit-sso-provider-btn",children:"Edit"})]}),(0,n.jsx)(k,{isOpen:r,onClose:s,openIDProvider:i}),(0,n.jsx)(a.cVQ,{isOpen:l,onClose:d,onConfirm:g,title:"Remove SSO provider",message:(0,n.jsx)(a.xvT,{children:"You are about to permanently remove this SSO provider. Are you sure you would like to continue?"})})]})},S=()=>{let{onOpen:e,isOpen:i,onClose:t}=(0,a.qY0)(),{data:r}=(0,f.qv)();return(0,n.jsxs)(a.xuv,{maxWidth:"600px",marginTop:"40px",children:[(0,n.jsxs)(a.X6q,{marginBottom:4,fontSize:"lg",display:"flex",justifyContent:"space-between",children:["SSO Providers",r&&r.length<5&&(0,n.jsx)(a.wpx,{onClick:e,"data-testid":"add-sso-provider-btn",children:"Add SSO Provider"})]}),(0,n.jsx)(a.xvT,{marginBottom:"30px",fontSize:"sm",children:"Use this area to add and manage SSO providers for you organization. Select “Add SSO provider” to add a new provider."}),null==r?void 0:r.map(e=>(0,n.jsx)(q,{openIDProvider:e},e.identifier)),(0,n.jsx)(C,{isOpen:i,onClose:t})]})},_=t(83265);let R={description:"",fides_key:_.Av,name:""},T=e=>({...e}),z=e=>({description:e.description,fides_key:e.fides_key,name:e.name}),w=g.Ry().shape({description:g.Z_().required().label("Description"),fides_key:g.Z_().required().label("Organization Fides Key"),name:g.Z_().required().label("Name")}),O=e=>{let{organization:i,onSuccess:t}=e,[r,s]=(0,_.$f)(),o=(0,u.useMemo)(()=>i?T(i):R,[i]),l=(0,a.pmc)(),d=async(e,i)=>{let n=z(e);(r=>{if((0,p.D4)(r)){let e=(0,p.e$)(r.error,"An unexpected error occurred while editing the organization. Please try again.");l((0,x.Vo)(e))}else l((0,x.t5)("Organization configuration saved.")),i.resetForm({values:e}),t&&t(n)})(await r(n))},g=!i||s.isLoading;return(0,n.jsx)(c.J9,{initialValues:o,enableReinitialize:!0,onSubmit:d,validationSchema:w,children:e=>{let{dirty:i,isValid:t}=e;return(0,n.jsx)(c.l0,{"data-testid":"organization-form",children:(0,n.jsxs)(a.Kqy,{spacing:4,children:[(0,n.jsx)(m.j0,{id:"fides_key",name:"fides_key",label:"Fides Key",disabled:!0,tooltip:"A unique key that identifies your organization. Not editable via UI.",variant:"stacked"}),(0,n.jsx)(m.j0,{id:"name",name:"name",label:"Name",disabled:g,tooltip:"User-friendly name for your organization, used in messaging to end-users and other public locations.",variant:"stacked"}),(0,n.jsx)(m.j0,{id:"description",name:"description",label:"Description",disabled:g,tooltip:"Short description of your organization, your services, etc.",variant:"stacked"}),(0,n.jsx)(a.xuv,{textAlign:"right",children:(0,n.jsx)(a.wpx,{htmlType:"submit",type:"primary",disabled:g||!i||!t,loading:g,"data-testid":"save-btn",children:"Save"})})]})})}})};var P=t(65735),I=()=>{let{data:e}=(0,_.GQ)(_.Av),{plus:i}=(0,s.hz)();return(0,n.jsx)(o.Z,{title:"Organization",children:(0,n.jsxs)(a.xuv,{"data-testid":"organization-management",children:[(0,n.jsx)(l.Z,{heading:"Organization Management"}),(0,n.jsxs)(a.xuv,{maxWidth:"600px",children:[(0,n.jsx)(a.xvT,{pb:6,fontSize:"sm",children:"Please use this section to manage your organization‘s details, including key information that will be recorded in the RoPA (Record of Processing Activities)."}),(0,n.jsx)(a.xuv,{background:"gray.50",padding:2,children:(0,n.jsx)(O,{organization:e})}),i&&(0,n.jsx)(r.ZP,{scopes:[P.Sh.OPENID_PROVIDER_CREATE],children:(0,n.jsx)(S,{})})]})]})})}}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=85082)}),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2828],{85082:function(e,i,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/organization",function(){return t(5417)}])},77213:function(e,i,t){"use strict";t.d(i,{Z:function(){return m}});var n=t(24246),r=t(98227),a=t(88038),s=t.n(a),o=t(86677);t(27378);var l=t(25980),d=t(90867),c=t(42478),u=t(77830),g=()=>{let e=(0,o.useRouter)();return(0,n.jsx)(r.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,n.jsxs)(r.xuv,{children:[(0,n.jsxs)(r.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,n.jsx)(r.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,n.jsx)(r.wpx,{onClick:()=>{e.push(u.AD)},children:"Configure"})]}),(0,n.jsxs)(r.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},m=e=>{let{children:i,title:t,padded:a=!0,mainProps:u}=e,m=(0,l.hz)(),p=(0,o.useRouter)(),x="/privacy-requests"===p.pathname||"/datastore-connection"===p.pathname,f=!(m.flags.messagingConfiguration&&x),{data:v}=(0,c.JE)(void 0,{skip:f}),{data:h}=(0,d.PW)(void 0,{skip:f}),j=m.flags.messagingConfiguration&&(!v||!h)&&x;return(0,n.jsxs)(r.kCb,{"data-testid":t,direction:"column",h:"100vh",children:[(0,n.jsxs)(s(),{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)(r.kCb,{as:"main",direction:"column",py:a?6:0,px:a?10:0,h:a?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...u,children:[j?(0,n.jsx)(g,{}):null,i]})]})}},58754:function(e,i,t){"use strict";var n=t(24246),r=t(98227),a=t(70788);i.Z=e=>{let{heading:i,breadcrumbItems:t,isSticky:s=!0,children:o,rightContent:l,style:d,...c}=e;return(0,n.jsxs)("div",{...c,style:s?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...d}:{paddingBottom:"24px",...d},children:[(0,n.jsxs)(r.jqI,{justify:"space-between",children:["string"==typeof i?(0,n.jsx)(r.lQT,{className:t||o?"pb-4":void 0,level:1,"data-testid":"page-heading",children:i}):i,l&&(0,n.jsx)("div",{"data-testid":"page-header-right-content",children:l})]}),!!t&&(0,n.jsx)(a.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 s}});var n=t(24246),r=t(16134),a=t(31793);let s=e=>(0,r.C)(a.uu).filter(i=>e.includes(i)).length>0;i.ZP=e=>{let{scopes:i,children:t}=e;return s(i)?(0,n.jsx)(n.Fragment,{children:t}):null}},97181:function(e,i,t){"use strict";t.d(i,{d:function(){return d}});var n=t(24246),r=t(98227),a=t(34090),s=t(27378),o=t(46238),l=t(40324);let d=e=>{let{name:i,label:t,labelProps:d,tooltip:c,isRequired:u,layout:g="inline",helperText:m,...p}=e,[x,f,{setValue:v}]=(0,a.U$)(i),h=!!(f.touched&&f.error),[j,y]=(0,s.useState)("");x.value||"tags"!==p.mode&&"multiple"!==p.mode||(x.value=[]),"tags"===p.mode&&"string"==typeof x.value&&(x.value=[x.value]);let b="tags"===p.mode?(e,i)=>e?e.value!==j||x.value.includes(j)?p.optionRender?p.optionRender(e,i):e.label:'Create "'.concat(j,'"'):void 0:p.optionRender||void 0,C=e=>{y(e),p.onSearch&&p.onSearch(e)},k=(e,i)=>{v(e),p.onChange&&p.onChange(e,i)};return"inline"===g?(0,n.jsx)(r.NIc,{isInvalid:h,isRequired:u,children:(0,n.jsxs)(r.rjZ,{templateColumns:t?"1fr 3fr":"1fr",children:[t?(0,n.jsx)(l.__,{htmlFor:p.id||i,...d,children:t}):null,(0,n.jsxs)(r.jqI,{align:"center",children:[(0,n.jsxs)(r.jqI,{vertical:!0,flex:1,className:"mr-2",children:[(0,n.jsx)(r.WPr,{...x,id:p.id||i,"data-testid":"controlled-select-".concat(x.name),...p,optionRender:b,onSearch:"tags"===p.mode?C:void 0,onChange:k,value:x.value||void 0,status:h?"error":void 0}),m&&(0,n.jsx)(r.Q6r,{children:m}),(0,n.jsx)(l.Bc,{isInvalid:h,message:f.error,fieldName:x.name})]}),(0,n.jsx)(o.b,{label:c,className:h?"mt-2 self-start":void 0})]})]})}):(0,n.jsx)(r.NIc,{isInvalid:h,isRequired:u,children:(0,n.jsxs)(r.gCW,{alignItems:"start",children:[(0,n.jsxs)(r.jqI,{align:"center",children:[t?(0,n.jsx)(l.__,{htmlFor:p.id||i,fontSize:"xs",my:0,mr:1,...d,children:t}):null,(0,n.jsx)(o.b,{label:c})]}),(0,n.jsx)(r.WPr,{...x,id:p.id||i,"data-testid":"controlled-select-".concat(x.name),...p,optionRender:b,onSearch:"tags"===p.mode?C:void 0,onChange:k,value:x.value||void 0,status:h?"error":void 0}),m&&(0,n.jsx)(r.Q6r,{style:{marginTop:0},children:m}),(0,n.jsx)(l.Bc,{isInvalid:h,message:f.error,fieldName:x.name})]})})}},8133:function(e,i,t){"use strict";var n=t(24246),r=t(98227);i.Z=e=>{let{title:i,children:t,isOpen:a,onClose:s,modalContentProps:o,showCloseButton:l=!1,footer:d,...c}=e;return(0,n.jsxs)(r.u_l,{isOpen:a,onClose:s,isCentered:!0,scrollBehavior:"inside",size:"xl",id:"add-modal",...c,children:[(0,n.jsx)(r.ZAr,{}),(0,n.jsxs)(r.hzk,{textAlign:"left",p:0,"data-testid":"add-modal-content",...o,children:[l&&(0,n.jsx)(r.olH,{}),(0,n.jsx)(r.xBx,{p:0,children:(0,n.jsx)(r.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)(r.X6q,{as:"h3",size:"sm",children:i})})}),(0,n.jsx)(r.fef,{pb:4,overflow:"auto",children:t}),d&&(0,n.jsx)(r.mzw,{children:d})]})]})}},70788:function(e,i,t){"use strict";t.d(i,{m:function(){return d}});var n=t(24246),r=t(98227),a=t(79894),s=t.n(a),o=t(27378);let{Text:l}=r.AntTypography,d=e=>{let{items:i,...t}=e,a=(0,o.useMemo)(()=>null==i?void 0:i.map((e,t)=>{let a=t===i.length-1,o={...e},d=o.onClick&&!o.href;return("string"==typeof o.title&&(o.title=(0,n.jsx)(l,{style:{color:"inherit",maxWidth:a?void 0:400},ellipsis:!a,id:a?"breadcrumb-current-page":void 0,children:o.title})),d)?o.title=(0,n.jsx)(r.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)(s(),{href:o.href,className:"ant-breadcrumb-link",children:o.title}),delete o.href)),o}),[i]);return(0,n.jsx)(r.zrq,{items:a,...t})}},42478:function(e,i,t){"use strict";t.d(i,{FU:function(){return d},JE:function(){return r},Ki:function(){return u},SU:function(){return g},W:function(){return m},h9:function(){return a},jc:function(){return n},qt:function(){return l},sn:function(){return c}});let{useGetEmailInviteStatusQuery:n,useGetActiveMessagingProviderQuery:r,useCreateMessagingConfigurationMutation:a,useCreateMessagingConfigurationSecretsMutation:s,useGetMessagingConfigurationDetailsQuery:o,useGetMessagingConfigurationsQuery:l,useGetMessagingConfigurationByKeyQuery:d,useUpdateMessagingConfigurationByKeyMutation:c,useUpdateMessagingConfigurationSecretsByKeyMutation:u,useCreateTestConnectionMessageMutation:g,useDeleteMessagingConfigurationByKeyMutation:m}=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 r=await n({url:"messaging/default/active"});return r.error&&404===r.error.status?{data:null}:r},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"]})})})},5417:function(e,i,t){"use strict";t.r(i),t.d(i,{default:function(){return I}});var n=t(24246),r=t(19904),a=t(98227),s=t(25980),o=t(77213),l=t(58754),d=t(8133),c=t(34090),u=t(27378),g=t(55484),m=t(40324),p=t(812),x=t(46628),f=t(76174),v=t(97181);let h={identifier:"",name:"",client_id:"",client_secret:""},j=e=>({...e}),y=g.Ry().shape({provider:g.Z_().required().label("Provider"),name:g.Z_().required().label("Name"),client_id:g.Z_().required().label("Client ID"),client_secret:g.Z_().required().label("Client Secret")});var b=e=>{let{openIDProvider:i,onSuccess:t,onClose:r}=e,[s]=(0,f.Qc)(),[o]=(0,f.oP)(),l=(0,u.useMemo)(()=>i?j(i):h,[i]),d=(0,a.pmc)(),g=async(e,i)=>{(e=>{if((0,p.D4)(e)){let i=(0,p.e$)(e.error,"An unexpected error occurred while editing the SSO provider. Please try again.");d((0,x.Vo)(i))}else d((0,x.t5)("SSO provider configuration saved.")),r(),i.resetForm({}),t&&t(e.data)})(l.id?await o(e):await s(e))},b=[{label:"Azure",value:"azure"},{label:"Google",value:"google"},{label:"Okta",value:"okta"},{label:"Custom",value:"custom"}],C=()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(m.j0,{id:"authorization_url",name:"authorization_url",label:"Authorization URL",tooltip:"Authorization URL for your provider",variant:"stacked",isRequired:!0}),(0,n.jsx)(m.j0,{id:"token_url",name:"token_url",label:"Token URL",tooltip:"Token URL for your provider",variant:"stacked",isRequired:!0})]}),k=()=>(0,n.jsx)(m.j0,{id:"domain",name:"domain",label:"Domain",tooltip:"Domain for your Okta provider",variant:"stacked",isRequired:!0}),q=()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(m.j0,{id:"authorization_url",name:"authorization_url",label:"Authorization URL",tooltip:"Authorization URL for your provider",variant:"stacked",isRequired:!0}),(0,n.jsx)(m.j0,{id:"token_url",name:"token_url",label:"Token URL",tooltip:"Token URL for your provider",variant:"stacked",isRequired:!0}),(0,n.jsx)(m.j0,{id:"userinfo_url",name:"user_info_url",label:"User Info URL",tooltip:"User Info URL for your provider",variant:"stacked",isRequired:!0})]});return(0,n.jsx)(c.J9,{initialValues:l,enableReinitialize:!0,onSubmit:g,validationSchema:y,children:e=>{let{dirty:i,isValid:t,values:s}=e;return(0,n.jsx)(c.l0,{"data-testid":"openIDProvider-form",children:(0,n.jsxs)(a.Kqy,{spacing:4,children:[(0,n.jsx)(v.d,{name:"provider",label:"Provider",options:b,layout:"stacked",isRequired:!0}),(0,n.jsx)(m.j0,{id:"identifier",name:"identifier",label:"Identifier",tooltip:"Unique identifier for your provider",variant:"stacked",isRequired:!0,disabled:!!l.id}),(0,n.jsx)(m.j0,{id:"name",name:"name",label:"Name",tooltip:"Display name for your provider",variant:"stacked",isRequired:!0}),(0,n.jsx)(m.j0,{id:"client_id",name:"client_id",label:"Client ID",type:"password",tooltip:"Client ID for your provider",variant:"stacked",isRequired:!0}),(0,n.jsx)(m.j0,{id:"client_secret",name:"client_secret",label:"Client secret",type:"password",tooltip:"Client secret for your provider",variant:"stacked",isRequired:!0}),"azure"===s.provider&&C(),"okta"===s.provider&&k(),"custom"===s.provider&&q(),(0,n.jsxs)(a.xuv,{textAlign:"right",children:[(0,n.jsx)(a.wpx,{htmlType:"button","data-testid":"cancel-btn",className:"mr-3",onClick:r,children:"Cancel"}),(0,n.jsx)(a.wpx,{htmlType:"submit",type:"primary",disabled:!i||!t,"data-testid":"save-btn",children:"Save"})]})]})})}})},C=e=>{let{isOpen:i,onClose:t}=e;return(0,n.jsx)(d.Z,{isOpen:i,onClose:t,title:"Add SSO Provider",children:(0,n.jsx)(b,{onClose:t})})},k=e=>{let{isOpen:i,onClose:t,openIDProvider:r}=e;return(0,n.jsx)(d.Z,{isOpen:i,onClose:t,title:"Edit SSO Provider",children:(0,n.jsx)(b,{openIDProvider:r,onClose:t})})},q=e=>{let{openIDProvider:i}=e,{onOpen:t,isOpen:r,onClose:s}=(0,a.qY0)(),{onOpen:o,isOpen:l,onClose:d}=(0,a.qY0)(),c=(0,a.pmc)(),[u]=(0,f.rB)(),g=async()=>{let e=await u(i.identifier);if((0,p.D4)(e)){c((0,x.Vo)((0,p.e$)(e.error))),d();return}c((0,x.t5)("SSO provider deleted successfully")),d()};return(0,n.jsxs)(a.xuv,{alignItems:"center",borderRadius:"lg",borderWidth:"1px",display:"flex",height:"74px",marginBottom:"24px",padding:2,children:[(0,n.jsxs)(a.xuv,{display:"flex",alignItems:"center",children:[(0,n.jsx)(a.Eep,{src:"/images/oauth-login/".concat(i.provider,".svg"),alt:"".concat(i.provider," icon"),width:"40px",height:"40px"}),(0,n.jsxs)(a.xuv,{display:"flex",flexDirection:"column",children:[(0,n.jsx)(a.xvT,{fontSize:"medium",fontWeight:"bold",marginLeft:"16px",children:i.name}),(0,n.jsx)(a.xvT,{fontSize:"medium",marginLeft:"16px",children:i.identifier})]})]}),(0,n.jsxs)(a.xuv,{flexGrow:1,display:"flex",justifyContent:"flex-end",children:[(0,n.jsx)(a.wpx,{className:"mr-3",onClick:o,"data-testid":"remove-sso-provider-btn",children:"Remove"}),(0,n.jsx)(a.wpx,{className:"mr-3",onClick:t,"data-testid":"edit-sso-provider-btn",children:"Edit"})]}),(0,n.jsx)(k,{isOpen:r,onClose:s,openIDProvider:i}),(0,n.jsx)(a.cVQ,{isOpen:l,onClose:d,onConfirm:g,title:"Remove SSO provider",message:(0,n.jsx)(a.xvT,{children:"You are about to permanently remove this SSO provider. Are you sure you would like to continue?"})})]})},S=()=>{let{onOpen:e,isOpen:i,onClose:t}=(0,a.qY0)(),{data:r}=(0,f.qv)();return(0,n.jsxs)(a.xuv,{maxWidth:"600px",marginTop:"40px",children:[(0,n.jsxs)(a.X6q,{marginBottom:4,fontSize:"lg",display:"flex",justifyContent:"space-between",children:["SSO Providers",r&&r.length<5&&(0,n.jsx)(a.wpx,{onClick:e,"data-testid":"add-sso-provider-btn",children:"Add SSO Provider"})]}),(0,n.jsx)(a.xvT,{marginBottom:"30px",fontSize:"sm",children:"Use this area to add and manage SSO providers for you organization. Select “Add SSO provider” to add a new provider."}),null==r?void 0:r.map(e=>(0,n.jsx)(q,{openIDProvider:e},e.identifier)),(0,n.jsx)(C,{isOpen:i,onClose:t})]})},_=t(83265);let R={description:"",fides_key:_.Av,name:""},T=e=>({...e}),z=e=>({description:e.description,fides_key:e.fides_key,name:e.name}),w=g.Ry().shape({description:g.Z_().required().label("Description"),fides_key:g.Z_().required().label("Organization Fides Key"),name:g.Z_().required().label("Name")}),O=e=>{let{organization:i,onSuccess:t}=e,[r,s]=(0,_.$f)(),o=(0,u.useMemo)(()=>i?T(i):R,[i]),l=(0,a.pmc)(),d=async(e,i)=>{let n=z(e);(r=>{if((0,p.D4)(r)){let e=(0,p.e$)(r.error,"An unexpected error occurred while editing the organization. Please try again.");l((0,x.Vo)(e))}else l((0,x.t5)("Organization configuration saved.")),i.resetForm({values:e}),t&&t(n)})(await r(n))},g=!i||s.isLoading;return(0,n.jsx)(c.J9,{initialValues:o,enableReinitialize:!0,onSubmit:d,validationSchema:w,children:e=>{let{dirty:i,isValid:t}=e;return(0,n.jsx)(c.l0,{"data-testid":"organization-form",children:(0,n.jsxs)(a.Kqy,{spacing:4,children:[(0,n.jsx)(m.j0,{id:"fides_key",name:"fides_key",label:"Fides Key",disabled:!0,tooltip:"A unique key that identifies your organization. Not editable via UI.",variant:"stacked"}),(0,n.jsx)(m.j0,{id:"name",name:"name",label:"Name",disabled:g,tooltip:"User-friendly name for your organization, used in messaging to end-users and other public locations.",variant:"stacked"}),(0,n.jsx)(m.j0,{id:"description",name:"description",label:"Description",disabled:g,tooltip:"Short description of your organization, your services, etc.",variant:"stacked"}),(0,n.jsx)(a.xuv,{textAlign:"right",children:(0,n.jsx)(a.wpx,{htmlType:"submit",type:"primary",disabled:g||!i||!t,loading:g,"data-testid":"save-btn",children:"Save"})})]})})}})};var P=t(65735),I=()=>{let{data:e}=(0,_.GQ)(_.Av),{plus:i}=(0,s.hz)();return(0,n.jsx)(o.Z,{title:"Organization",children:(0,n.jsxs)(a.xuv,{"data-testid":"organization-management",children:[(0,n.jsx)(l.Z,{heading:"Organization Management"}),(0,n.jsxs)(a.xuv,{maxWidth:"600px",children:[(0,n.jsx)(a.xvT,{pb:6,fontSize:"sm",children:"Please use this section to manage your organization‘s details, including key information that will be recorded in the RoPA (Record of Processing Activities)."}),(0,n.jsx)(a.xuv,{background:"gray.50",padding:2,children:(0,n.jsx)(O,{organization:e})}),i&&(0,n.jsx)(r.ZP,{scopes:[P.Sh.OPENID_PROVIDER_CREATE],children:(0,n.jsx)(S,{})})]})]})})}}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=85082)}),_N_E=e.O()}]);