ethyca-fides 2.65.1b1__py2.py3-none-any.whl → 2.65.1b2__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 (237) hide show
  1. {ethyca_fides-2.65.1b1.dist-info → ethyca_fides-2.65.1b2.dist-info}/METADATA +1 -1
  2. {ethyca_fides-2.65.1b1.dist-info → ethyca_fides-2.65.1b2.dist-info}/RECORD +218 -215
  3. fides/_version.py +3 -3
  4. fides/api/alembic/migrations/versions/3b0f4905378c_change_asset_with_consent_to_asset_.py +47 -0
  5. fides/api/alembic/migrations/versions/9e3dab26f75f_add_test_website_to_connectiontype.py +51 -0
  6. fides/api/alembic/migrations/versions/d45dec7e541d_add_consent_indexes_to_stagedresource.py +64 -0
  7. fides/api/api/v1/endpoints/privacy_request_endpoints.py +24 -1
  8. fides/api/migrations/post_upgrade_index_creation.py +12 -0
  9. fides/api/models/asset.py +19 -2
  10. fides/api/models/connectionconfig.py +4 -0
  11. fides/api/models/detection_discovery/core.py +17 -0
  12. fides/api/oauth/roles.py +2 -0
  13. fides/api/schemas/api.py +6 -0
  14. fides/api/schemas/connection_configuration/__init__.py +1 -0
  15. fides/api/service/connectors/__init__.py +1 -0
  16. fides/api/service/connectors/base_email_connector.py +1 -1
  17. fides/api/service/connectors/base_erasure_email_connector.py +39 -2
  18. fides/api/service/connectors/consent_email_connector.py +1 -1
  19. fides/api/service/connectors/dynamic_erasure_email_connector.py +14 -48
  20. fides/api/service/connectors/erasure_email_connector.py +14 -8
  21. fides/api/service/privacy_request/email_batch_service.py +68 -52
  22. fides/api/tasks/scheduled/scheduler.py +5 -0
  23. fides/api/util/connection_type.py +1 -0
  24. fides/api/util/lock.py +3 -0
  25. fides/common/api/scope_registry.py +4 -0
  26. fides/common/api/v1/urn_registry.py +3 -0
  27. fides/config/execution_settings.py +8 -0
  28. fides/ui-build/static/admin/404.html +1 -1
  29. fides/ui-build/static/admin/_next/static/FyEBF3yHHs8bgX7Ko0ZD_/_buildManifest.js +1 -0
  30. fides/ui-build/static/admin/_next/static/chunks/{1817-f2f34b8bd569ae1d.js → 1817-e2c599fb2c47dbc4.js} +1 -1
  31. fides/ui-build/static/admin/_next/static/chunks/{2921-c19da1016b81bda3.js → 2921-93228aa02364bb48.js} +1 -1
  32. fides/ui-build/static/admin/_next/static/chunks/3450-ebcffdd4fb437a2e.js +1 -0
  33. fides/ui-build/static/admin/_next/static/chunks/{3855-44e1171660633b6f.js → 3855-a0783ba28c644d09.js} +1 -1
  34. fides/ui-build/static/admin/_next/static/chunks/{3872-a7ee651751f5e145.js → 3872-18e5da8bda649ddb.js} +1 -1
  35. fides/ui-build/static/admin/_next/static/chunks/{3923-5a82816119f8f907.js → 3923-536e8bbbea5b7328.js} +1 -1
  36. fides/ui-build/static/admin/_next/static/chunks/{3988-046b3a2866b5cb99.js → 3988-4b0f160b0969dbd2.js} +1 -1
  37. fides/ui-build/static/admin/_next/static/chunks/{401-7fa53f1e774e02fb.js → 401-002f393dae03f8f4.js} +1 -1
  38. fides/ui-build/static/admin/_next/static/chunks/{409-e80a4e415c04dd92.js → 409-6b1b506d59a0399a.js} +1 -1
  39. fides/ui-build/static/admin/_next/static/chunks/4121-23ac086c1aa6a43a.js +1 -0
  40. fides/ui-build/static/admin/_next/static/chunks/{4230-864eac33691cd299.js → 4230-c4c596fb5534e1b1.js} +1 -1
  41. fides/ui-build/static/admin/_next/static/chunks/431-24380873201c3e1b.js +1 -0
  42. fides/ui-build/static/admin/_next/static/chunks/4608-0cd97892fd0b0e41.js +1 -0
  43. fides/ui-build/static/admin/_next/static/chunks/5309-c8b5165efcc5469f.js +1 -0
  44. fides/ui-build/static/admin/_next/static/chunks/{5574-48d7c9a526a3a0fe.js → 5574-1fad13b944f0c4fc.js} +1 -1
  45. fides/ui-build/static/admin/_next/static/chunks/{6084-4a1964e1b20c9eee.js → 6084-5bfa390a4c8fad43.js} +1 -1
  46. fides/ui-build/static/admin/_next/static/chunks/{6662-94dbe989cbe548d9.js → 6662-79eee0bf18775b40.js} +1 -1
  47. fides/ui-build/static/admin/_next/static/chunks/6780-8b5772a3a2ef1ca6.js +1 -0
  48. fides/ui-build/static/admin/_next/static/chunks/{6853-19268388843a58f5.js → 6853-7a089a9fad286bb8.js} +1 -1
  49. fides/ui-build/static/admin/_next/static/chunks/{6882-f807b643776c8d47.js → 6882-5a251351689ea74b.js} +1 -1
  50. fides/ui-build/static/admin/_next/static/chunks/6954-3a7b166c8f3b66b4.js +1 -0
  51. fides/ui-build/static/admin/_next/static/chunks/{7476-7fc24f19a2cc563a.js → 7476-d7071697bc665a4f.js} +1 -1
  52. fides/ui-build/static/admin/_next/static/chunks/{7630-e0e04e495732ae8f.js → 7630-731324d74b20b80e.js} +1 -1
  53. fides/ui-build/static/admin/_next/static/chunks/{787-0c18bf9acef937de.js → 787-cb0154eaf6114c7e.js} +1 -1
  54. fides/ui-build/static/admin/_next/static/chunks/{79-d4c8900a83eb83bc.js → 79-f08e91084d10d6dc.js} +1 -1
  55. fides/ui-build/static/admin/_next/static/chunks/{796-a98f370ec9b5cbf9.js → 796-e33122908c5e28ce.js} +1 -1
  56. fides/ui-build/static/admin/_next/static/chunks/9046-d4c806aa81ab0bad.js +1 -0
  57. fides/ui-build/static/admin/_next/static/chunks/{9226-a5904e64ab72cb18.js → 9226-f4e70e6f9619e9a9.js} +1 -1
  58. fides/ui-build/static/admin/_next/static/chunks/{9392.bb5a989efef5b329.js → 9392.f4520f66206d347d.js} +1 -1
  59. fides/ui-build/static/admin/_next/static/chunks/{9676.549c72c3eb3df912.js → 9676.7fbcb6b554cda098.js} +1 -1
  60. fides/ui-build/static/admin/_next/static/chunks/{9826-7b769d4863df242a.js → 9826-065b7cd0784d6912.js} +1 -1
  61. fides/ui-build/static/admin/_next/static/chunks/{9951-27d79500acfefdd2.js → 9951-5e744e8addb6e090.js} +1 -1
  62. fides/ui-build/static/admin/_next/static/chunks/pages/{404-ac335065bc49f818.js → 404-beb4bf835acb4386.js} +1 -1
  63. fides/ui-build/static/admin/_next/static/chunks/pages/{_app-3e486cab9a918260.js → _app-ae72c7442ecd3e50.js} +8 -8
  64. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/manual-12073578f764815e.js +1 -0
  65. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/{multiple-a2ae50c2f0e7608e.js → multiple-943479665698c6d2.js} +1 -1
  66. fides/ui-build/static/admin/_next/static/chunks/pages/{add-systems-4f20f18ec01fd15a.js → add-systems-e5ef5be6566f9432.js} +1 -1
  67. fides/ui-build/static/admin/_next/static/chunks/pages/consent/configure/{add-vendors-4957c0b6fa498f6e.js → add-vendors-1bde4adc6d2a6dfa.js} +1 -1
  68. fides/ui-build/static/admin/_next/static/chunks/pages/consent/{configure-3ede98dedea9f621.js → configure-e72c1feeb24bdb73.js} +1 -1
  69. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience/{[id]-f285b2dca83711ba.js → [id]-cc858383bb1bbd36.js} +1 -1
  70. fides/ui-build/static/admin/_next/static/chunks/pages/consent/{privacy-experience-efa0f3e3991dc139.js → privacy-experience-5f2d060952814353.js} +1 -1
  71. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{[id]-21c96b42424c33bc.js → [id]-bfca5064b33116b9.js} +1 -1
  72. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{new-e494f14ce371390c.js → new-e4a9393b7572e591.js} +1 -1
  73. fides/ui-build/static/admin/_next/static/chunks/pages/consent/{privacy-notices-25cb30b4585622d6.js → privacy-notices-232e9ef135b838cf.js} +1 -1
  74. fides/ui-build/static/admin/_next/static/chunks/pages/consent/{properties-78ba4553dd12d0d3.js → properties-a05600d9e3e8735e.js} +1 -1
  75. fides/ui-build/static/admin/_next/static/chunks/pages/consent/{reporting-b65b5ab73dfcb801.js → reporting-5fcacc8e4baf3d03.js} +1 -1
  76. fides/ui-build/static/admin/_next/static/chunks/pages/{consent-87c06e0daf2b2e87.js → consent-bd0fbeabe84d3c8f.js} +1 -1
  77. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/{[projectUrn]-c956a3faed9f922c.js → [projectUrn]-00bbbfb19c15c48d.js} +1 -1
  78. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/{projects-691e19bdd29b8c3b.js → projects-be252cac70aa63dd.js} +1 -1
  79. fides/ui-build/static/admin/_next/static/chunks/pages/{data-catalog-b1616ecfd86a2e2e.js → data-catalog-29cde3b7d27b22cf.js} +1 -1
  80. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]/[systemId]-3ae1ae3844a6e03a.js +1 -0
  81. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]-e8dc8320e826e91c.js +1 -0
  82. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{action-center-a694e71d11bed653.js → action-center-22fe027966edb092.js} +1 -1
  83. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{activity-312edbab3c17f26a.js → activity-f79ec067d906e67f.js} +1 -1
  84. fides/ui-build/static/admin/_next/static/chunks/pages/{datamap-e8bfa1a3a8b84b6d.js → datamap-639ac9cf51750635.js} +1 -1
  85. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]/{[...subfieldNames]-f976632b92911072.js → [...subfieldNames]-d69aff79e77c5464.js} +1 -1
  86. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/{[collectionName]-9ffa34d7ee7b2872.js → [collectionName]-9df954c65a9fe023.js} +1 -1
  87. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/{[datasetId]-6e65dcdd692b4625.js → [datasetId]-0e90202b2db3797c.js} +1 -1
  88. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/{new-423f08db5d9adc9a.js → new-403dc361bffe644d.js} +1 -1
  89. fides/ui-build/static/admin/_next/static/chunks/pages/{dataset-2bd2b941ad8f87b1.js → dataset-52506e743c73fc7d.js} +1 -1
  90. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/[id]-7d492050fc33a57a.js +1 -0
  91. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/new-6f68e65f01beb8af.js +1 -0
  92. fides/ui-build/static/admin/_next/static/chunks/pages/{datastore-connection-6b02666ce735e092.js → datastore-connection-36eeca2fe22be33a.js} +1 -1
  93. fides/ui-build/static/admin/_next/static/chunks/pages/{index-99ad22eddbb6b7f2.js → index-e92db8bb8c719abc.js} +1 -1
  94. fides/ui-build/static/admin/_next/static/chunks/pages/integrations/[id]-c245f0b0fd7810c0.js +1 -0
  95. fides/ui-build/static/admin/_next/static/chunks/pages/integrations-ea492832424a9619.js +1 -0
  96. fides/ui-build/static/admin/_next/static/chunks/pages/messaging/{[id]-8970d29f1710f486.js → [id]-78606d74f82f5edc.js} +1 -1
  97. fides/ui-build/static/admin/_next/static/chunks/pages/messaging/{add-template-db905b79b189989c.js → add-template-9dff500113f0710f.js} +1 -1
  98. fides/ui-build/static/admin/_next/static/chunks/pages/{messaging-10084105bae43a19.js → messaging-c17efc84c54e4fdb.js} +1 -1
  99. fides/ui-build/static/admin/_next/static/chunks/pages/poc/{ant-components-cf7c0b3782c0c7a6.js → ant-components-74348d35e92a2a3c.js} +1 -1
  100. fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{AntForm-8cf5c6bb7f4595eb.js → AntForm-ac613f99cd57d7b3.js} +1 -1
  101. fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{FormikAntFormItem-01904c9c8521ef1c.js → FormikAntFormItem-44605674baae28e2.js} +1 -1
  102. fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{FormikControlled-ed8c23307b2b6868.js → FormikControlled-86761304f1da7172.js} +1 -1
  103. fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{FormikField-3ec8e1811906a1d2.js → FormikField-fadf4e866aa8ea22.js} +1 -1
  104. fides/ui-build/static/admin/_next/static/chunks/pages/poc/{forms-18fc8b3a8ccfc80b.js → forms-be9bc54243141257.js} +1 -1
  105. fides/ui-build/static/admin/_next/static/chunks/pages/poc/{table-migration-372166dc1d6268ea.js → table-migration-69a9e346e32fde53.js} +1 -1
  106. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/{[id]-104f33c424613732.js → [id]-61e32a7b8ef6569c.js} +1 -1
  107. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/{messaging-a29479bc35b00f45.js → messaging-1f57e4d5715dd5cf.js} +1 -1
  108. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/{storage-10e2886bc4d4f62b.js → storage-378db5585b89ab5e.js} +1 -1
  109. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/{configure-340150cac5bf8e4a.js → configure-6935d3c1655ecbbe.js} +1 -1
  110. fides/ui-build/static/admin/_next/static/chunks/pages/{privacy-requests-b1772281866cb827.js → privacy-requests-d3299d80983c3587.js} +1 -1
  111. fides/ui-build/static/admin/_next/static/chunks/pages/properties/{[id]-d9cdc82249593440.js → [id]-3a7b2edeb6f6c7a2.js} +1 -1
  112. fides/ui-build/static/admin/_next/static/chunks/pages/properties/{add-property-d2e0236ab65b1fb9.js → add-property-971657cbd5e5490f.js} +1 -1
  113. fides/ui-build/static/admin/_next/static/chunks/pages/{properties-156bd0e36831ed04.js → properties-be3668cbd03e086e.js} +1 -1
  114. fides/ui-build/static/admin/_next/static/chunks/pages/reporting/{datamap-49e5607055db1bee.js → datamap-dc3afcf514d7219a.js} +1 -1
  115. fides/ui-build/static/admin/_next/static/chunks/pages/settings/about/{alpha-68697c49b290ba50.js → alpha-fb0c7974234d93ee.js} +1 -1
  116. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{about-a45a5b9f78c64e27.js → about-a91bf9cf821bcdcb.js} +1 -1
  117. fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent/[configuration_id]/{[purpose_id]-c54d90dd4ac04de3.js → [purpose_id]-aaa2d02b9be2acb1.js} +1 -1
  118. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{consent-2ecf179f6587e3b3.js → consent-bed42ecfab4896af.js} +1 -1
  119. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{custom-fields-80bf043deb37a20c.js → custom-fields-82882bc16052ae5b.js} +1 -1
  120. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{domain-records-c2ef327dc49618e9.js → domain-records-9455a95901d7d223.js} +1 -1
  121. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{domains-bdc7ee59802c2e4a.js → domains-57fd9412882c4ab2.js} +1 -1
  122. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{email-templates-6af619d1d57bb99c.js → email-templates-63a5da14576722a4.js} +1 -1
  123. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{locations-09cb08245844c601.js → locations-068724e9c574974d.js} +1 -1
  124. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{organization-d9e7feee568f6e35.js → organization-f556688c5fb35f41.js} +1 -1
  125. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{regulations-7cfbb9149f96961a.js → regulations-3ddf2001f4605949.js} +1 -1
  126. fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]/{test-datasets-9f5912cb2f471fdf.js → test-datasets-7ce5dbabf7f1026b.js} +1 -1
  127. fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]-ed809e0961891c0c.js +1 -0
  128. fides/ui-build/static/admin/_next/static/chunks/pages/{systems-5332864c5e8595dc.js → systems-b5f68d37abaa8844.js} +1 -1
  129. fides/ui-build/static/admin/_next/static/chunks/pages/{taxonomy-80f4ab8b7b6e7f5e.js → taxonomy-103618fab50dfd0d.js} +1 -1
  130. fides/ui-build/static/admin/_next/static/chunks/pages/user-management/profile/{[id]-e607e07bd1ef2da0.js → [id]-564f87da93e398d0.js} +1 -1
  131. fides/ui-build/static/admin/_next/static/chunks/pages/{user-management-d539f1c4e6adf73a.js → user-management-f552cb870f8a6a17.js} +1 -1
  132. fides/ui-build/static/admin/_next/static/chunks/webpack-c97e8d65bd9739ff.js +1 -0
  133. fides/ui-build/static/admin/_next/static/css/0ba8f1215e9015ff.css +1 -0
  134. fides/ui-build/static/admin/add-systems/manual.html +1 -1
  135. fides/ui-build/static/admin/add-systems/multiple.html +1 -1
  136. fides/ui-build/static/admin/add-systems.html +1 -1
  137. fides/ui-build/static/admin/consent/configure/add-vendors.html +1 -1
  138. fides/ui-build/static/admin/consent/configure.html +1 -1
  139. fides/ui-build/static/admin/consent/privacy-experience/[id].html +1 -1
  140. fides/ui-build/static/admin/consent/privacy-experience/new.html +1 -1
  141. fides/ui-build/static/admin/consent/privacy-experience.html +1 -1
  142. fides/ui-build/static/admin/consent/privacy-notices/[id].html +1 -1
  143. fides/ui-build/static/admin/consent/privacy-notices/new.html +1 -1
  144. fides/ui-build/static/admin/consent/privacy-notices.html +1 -1
  145. fides/ui-build/static/admin/consent/properties.html +1 -1
  146. fides/ui-build/static/admin/consent/reporting.html +1 -1
  147. fides/ui-build/static/admin/consent.html +1 -1
  148. fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn].html +1 -1
  149. fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn].html +1 -1
  150. fides/ui-build/static/admin/data-catalog/[systemId]/projects.html +1 -1
  151. fides/ui-build/static/admin/data-catalog/[systemId]/resources/[resourceUrn].html +1 -1
  152. fides/ui-build/static/admin/data-catalog/[systemId]/resources.html +1 -1
  153. fides/ui-build/static/admin/data-catalog.html +1 -1
  154. fides/ui-build/static/admin/data-discovery/action-center/[monitorId]/[systemId].html +1 -1
  155. fides/ui-build/static/admin/data-discovery/action-center/[monitorId].html +1 -1
  156. fides/ui-build/static/admin/data-discovery/action-center.html +1 -1
  157. fides/ui-build/static/admin/data-discovery/activity.html +1 -1
  158. fides/ui-build/static/admin/data-discovery/detection/[resourceUrn].html +1 -1
  159. fides/ui-build/static/admin/data-discovery/detection.html +1 -1
  160. fides/ui-build/static/admin/data-discovery/discovery/[resourceUrn].html +1 -1
  161. fides/ui-build/static/admin/data-discovery/discovery.html +1 -1
  162. fides/ui-build/static/admin/datamap.html +1 -1
  163. fides/ui-build/static/admin/dataset/[datasetId]/[collectionName]/[...subfieldNames].html +1 -1
  164. fides/ui-build/static/admin/dataset/[datasetId]/[collectionName].html +1 -1
  165. fides/ui-build/static/admin/dataset/[datasetId].html +1 -1
  166. fides/ui-build/static/admin/dataset/new.html +1 -1
  167. fides/ui-build/static/admin/dataset.html +1 -1
  168. fides/ui-build/static/admin/datastore-connection/[id].html +1 -1
  169. fides/ui-build/static/admin/datastore-connection/new.html +1 -1
  170. fides/ui-build/static/admin/datastore-connection.html +1 -1
  171. fides/ui-build/static/admin/index.html +1 -1
  172. fides/ui-build/static/admin/integrations/[id].html +1 -1
  173. fides/ui-build/static/admin/integrations.html +1 -1
  174. fides/ui-build/static/admin/login/[provider].html +1 -1
  175. fides/ui-build/static/admin/login.html +1 -1
  176. fides/ui-build/static/admin/messaging/[id].html +1 -1
  177. fides/ui-build/static/admin/messaging/add-template.html +1 -1
  178. fides/ui-build/static/admin/messaging.html +1 -1
  179. fides/ui-build/static/admin/poc/ant-components.html +1 -1
  180. fides/ui-build/static/admin/poc/form-experiments/AntForm.html +1 -1
  181. fides/ui-build/static/admin/poc/form-experiments/FormikAntFormItem.html +1 -1
  182. fides/ui-build/static/admin/poc/form-experiments/FormikControlled.html +1 -1
  183. fides/ui-build/static/admin/poc/form-experiments/FormikField.html +1 -1
  184. fides/ui-build/static/admin/poc/form-experiments/FormikSpreadField.html +1 -1
  185. fides/ui-build/static/admin/poc/forms.html +1 -1
  186. fides/ui-build/static/admin/poc/table-migration.html +1 -1
  187. fides/ui-build/static/admin/privacy-requests/[id].html +1 -1
  188. fides/ui-build/static/admin/privacy-requests/configure/messaging.html +1 -1
  189. fides/ui-build/static/admin/privacy-requests/configure/storage.html +1 -1
  190. fides/ui-build/static/admin/privacy-requests/configure.html +1 -1
  191. fides/ui-build/static/admin/privacy-requests.html +1 -1
  192. fides/ui-build/static/admin/properties/[id].html +1 -1
  193. fides/ui-build/static/admin/properties/add-property.html +1 -1
  194. fides/ui-build/static/admin/properties.html +1 -1
  195. fides/ui-build/static/admin/reporting/datamap.html +1 -1
  196. fides/ui-build/static/admin/settings/about/alpha.html +1 -1
  197. fides/ui-build/static/admin/settings/about.html +1 -1
  198. fides/ui-build/static/admin/settings/consent/[configuration_id]/[purpose_id].html +1 -1
  199. fides/ui-build/static/admin/settings/consent.html +1 -1
  200. fides/ui-build/static/admin/settings/custom-fields.html +1 -1
  201. fides/ui-build/static/admin/settings/domain-records.html +1 -1
  202. fides/ui-build/static/admin/settings/domains.html +1 -1
  203. fides/ui-build/static/admin/settings/email-templates.html +1 -1
  204. fides/ui-build/static/admin/settings/locations.html +1 -1
  205. fides/ui-build/static/admin/settings/organization.html +1 -1
  206. fides/ui-build/static/admin/settings/regulations.html +1 -1
  207. fides/ui-build/static/admin/systems/configure/[id]/test-datasets.html +1 -1
  208. fides/ui-build/static/admin/systems/configure/[id].html +1 -1
  209. fides/ui-build/static/admin/systems.html +1 -1
  210. fides/ui-build/static/admin/taxonomy.html +1 -1
  211. fides/ui-build/static/admin/user-management/new.html +1 -1
  212. fides/ui-build/static/admin/user-management/profile/[id].html +1 -1
  213. fides/ui-build/static/admin/user-management.html +1 -1
  214. fides/ui-build/static/admin/_next/static/chunks/1040-94f81c731c29246d.js +0 -1
  215. fides/ui-build/static/admin/_next/static/chunks/3450-84ea89e7a0f95470.js +0 -1
  216. fides/ui-build/static/admin/_next/static/chunks/4121-536e7e853d0833c0.js +0 -1
  217. fides/ui-build/static/admin/_next/static/chunks/431-458946a2cae21b5d.js +0 -1
  218. fides/ui-build/static/admin/_next/static/chunks/5309-018fe2068151d699.js +0 -1
  219. fides/ui-build/static/admin/_next/static/chunks/6954-ec0697d355730f74.js +0 -1
  220. fides/ui-build/static/admin/_next/static/chunks/9046-b3dccae317a7bae5.js +0 -1
  221. fides/ui-build/static/admin/_next/static/chunks/9767-9afc910b855d913a.js +0 -1
  222. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/manual-3964f3039ce3f18c.js +0 -1
  223. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]/[systemId]-052028439e802c76.js +0 -1
  224. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]-99d3a2197ab8a9b0.js +0 -1
  225. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/[id]-1b7bfb005fd8e4e1.js +0 -1
  226. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/new-b737165f7752f039.js +0 -1
  227. fides/ui-build/static/admin/_next/static/chunks/pages/integrations/[id]-97f9e9b2822d2576.js +0 -1
  228. fides/ui-build/static/admin/_next/static/chunks/pages/integrations-4ce156e73fe3608f.js +0 -1
  229. fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]-0252e5f648c5e3f8.js +0 -1
  230. fides/ui-build/static/admin/_next/static/chunks/webpack-8fc1c717e1c0f7ae.js +0 -1
  231. fides/ui-build/static/admin/_next/static/css/5f8af79f94072e0f.css +0 -1
  232. fides/ui-build/static/admin/_next/static/nlHJ2XI_Rq9Lg0rOXnZXC/_buildManifest.js +0 -1
  233. {ethyca_fides-2.65.1b1.dist-info → ethyca_fides-2.65.1b2.dist-info}/WHEEL +0 -0
  234. {ethyca_fides-2.65.1b1.dist-info → ethyca_fides-2.65.1b2.dist-info}/entry_points.txt +0 -0
  235. {ethyca_fides-2.65.1b1.dist-info → ethyca_fides-2.65.1b2.dist-info}/licenses/LICENSE +0 -0
  236. {ethyca_fides-2.65.1b1.dist-info → ethyca_fides-2.65.1b2.dist-info}/top_level.txt +0 -0
  237. /fides/ui-build/static/admin/_next/static/{nlHJ2XI_Rq9Lg0rOXnZXC → FyEBF3yHHs8bgX7Ko0ZD_}/_ssgManifest.js +0 -0
@@ -1,3 +1,4 @@
1
+ import uuid
1
2
  from enum import Enum
2
3
 
3
4
  from loguru import logger
@@ -14,12 +15,15 @@ from fides.api.service.privacy_request.request_runner_service import (
14
15
  get_erasure_email_connection_configs,
15
16
  )
16
17
  from fides.api.tasks import DatabaseTask, celery_app
17
- from fides.api.tasks.scheduled.scheduler import scheduler
18
+ from fides.api.tasks.scheduled.scheduler import create_cron_trigger, scheduler
19
+ from fides.api.util.lock import redis_lock
18
20
  from fides.config import get_config
19
21
  from fides.service.privacy_request.privacy_request_service import queue_privacy_request
20
22
 
21
23
  CONFIG = get_config()
22
24
  BATCH_EMAIL_SEND = "batch_email_send"
25
+ BATCH_EMAIL_SEND_LOCK = "batch_email_send_lock"
26
+ BATCH_EMAIL_SEND_LOCK_TIMEOUT = 600
23
27
 
24
28
 
25
29
  class EmailExitState(Enum):
@@ -31,63 +35,74 @@ class EmailExitState(Enum):
31
35
  missing_required_data = "missing_required_data"
32
36
  email_send_failed = "email_send_failed"
33
37
  complete = "complete"
38
+ email_send_already_running = "email_send_already_running"
34
39
 
35
40
 
36
41
  @celery_app.task(base=DatabaseTask, bind=True)
37
42
  def send_email_batch(self: DatabaseTask) -> EmailExitState:
38
43
  """Sends emails for each relevant connector with applicable user details batched together."""
39
-
40
- logger.info("Starting batched email send...")
41
- with self.get_new_session() as session:
42
- privacy_requests: Query = (
43
- session.query(PrivacyRequest)
44
- .filter(PrivacyRequest.status == PrivacyRequestStatus.awaiting_email_send)
45
- .filter(PrivacyRequest.deleted_at.is_(None))
46
- .order_by(PrivacyRequest.created_at.asc()) # oldest first
47
- )
48
- if not privacy_requests.first():
49
- logger.info(
50
- "Skipping batch email send with status: {}",
51
- EmailExitState.no_applicable_privacy_requests.value,
52
- )
53
- return EmailExitState.no_applicable_privacy_requests
54
-
55
- consent_configs: Query = get_consent_email_connection_configs(session)
56
- erasure_configs: Query = get_erasure_email_connection_configs(session)
57
- combined_configs = consent_configs.union_all(erasure_configs)
58
- if not combined_configs.first():
59
- requeue_privacy_requests_after_email_send(privacy_requests, session)
60
- logger.info(
61
- "Skipping batch email send with status: {}",
62
- EmailExitState.no_applicable_connectors.value,
44
+ with redis_lock(
45
+ lock_key=BATCH_EMAIL_SEND_LOCK, timeout=BATCH_EMAIL_SEND_LOCK_TIMEOUT
46
+ ) as lock:
47
+ if not lock:
48
+ return EmailExitState.email_send_already_running
49
+
50
+ batch_id = str(uuid.uuid4())
51
+ logger.info("Starting batch email send {}...", batch_id)
52
+ with self.get_new_session() as session:
53
+ privacy_requests: Query = (
54
+ session.query(PrivacyRequest)
55
+ .filter(
56
+ PrivacyRequest.status == PrivacyRequestStatus.awaiting_email_send
57
+ )
58
+ .filter(PrivacyRequest.deleted_at.is_(None))
59
+ .order_by(PrivacyRequest.created_at.asc()) # oldest first
63
60
  )
64
- return EmailExitState.no_applicable_connectors
65
-
66
- try:
67
- # erasure
68
- for connection_config in erasure_configs:
69
- get_connector(connection_config).batch_email_send( # type: ignore
70
- filter_privacy_requests_by_action_type(
71
- privacy_requests, ActionType.erasure
72
- )
61
+ if not privacy_requests.first():
62
+ logger.info(
63
+ "Skipping batch email send with status: {}",
64
+ EmailExitState.no_applicable_privacy_requests.value,
73
65
  )
66
+ return EmailExitState.no_applicable_privacy_requests
67
+
68
+ consent_configs: Query = get_consent_email_connection_configs(session)
69
+ erasure_configs: Query = get_erasure_email_connection_configs(session)
70
+ combined_configs = consent_configs.union_all(erasure_configs)
71
+ if not combined_configs.first():
72
+ requeue_privacy_requests_after_email_send(privacy_requests, session)
73
+ logger.info(
74
+ "Skipping batch email send with status: {}",
75
+ EmailExitState.no_applicable_connectors.value,
76
+ )
77
+ return EmailExitState.no_applicable_connectors
78
+
79
+ try:
80
+ # erasure
81
+ for connection_config in erasure_configs:
82
+ get_connector(connection_config).batch_email_send( # type: ignore
83
+ filter_privacy_requests_by_action_type(
84
+ privacy_requests, ActionType.erasure
85
+ ),
86
+ batch_id,
87
+ )
74
88
 
75
- # consent
76
- for connection_config in consent_configs:
77
- get_connector(connection_config).batch_email_send( # type: ignore
78
- filter_privacy_requests_by_action_type(
79
- privacy_requests, ActionType.consent
89
+ # consent
90
+ for connection_config in consent_configs:
91
+ get_connector(connection_config).batch_email_send( # type: ignore
92
+ filter_privacy_requests_by_action_type(
93
+ privacy_requests, ActionType.consent
94
+ ),
95
+ batch_id,
80
96
  )
97
+ except MessageDispatchException as exc:
98
+ logger.error(
99
+ "Batch email send for connector failed with exception: '{}'",
100
+ exc,
81
101
  )
82
- except MessageDispatchException as exc:
83
- logger.error(
84
- "Batch email send for connector failed with exception: '{}'",
85
- exc,
86
- )
87
- return EmailExitState.email_send_failed
102
+ return EmailExitState.email_send_failed
88
103
 
89
- requeue_privacy_requests_after_email_send(privacy_requests, session)
90
- return EmailExitState.complete
104
+ requeue_privacy_requests_after_email_send(privacy_requests, session)
105
+ return EmailExitState.complete
91
106
 
92
107
 
93
108
  def filter_privacy_requests_by_action_type(
@@ -135,6 +150,11 @@ def initiate_scheduled_batch_email_send() -> None:
135
150
 
136
151
  assert scheduler.running, "Scheduler is not running! Cannot add Batch Email job."
137
152
 
153
+ cron_trigger = create_cron_trigger(
154
+ cron_expression=CONFIG.execution.email_send_cron_expression,
155
+ timezone=CONFIG.execution.email_send_timezone,
156
+ )
157
+
138
158
  logger.info("Initiating scheduler for batch email send")
139
159
  scheduler.add_job(
140
160
  func=send_email_batch,
@@ -142,9 +162,5 @@ def initiate_scheduled_batch_email_send() -> None:
142
162
  id=BATCH_EMAIL_SEND,
143
163
  coalesce=False,
144
164
  replace_existing=True,
145
- trigger="cron",
146
- minute="0",
147
- hour="12",
148
- day_of_week="mon",
149
- timezone="US/Eastern",
165
+ trigger=cron_trigger,
150
166
  )
@@ -1,5 +1,10 @@
1
1
  from apscheduler.schedulers.asyncio import AsyncIOScheduler
2
2
  from apscheduler.schedulers.background import BackgroundScheduler
3
+ from apscheduler.triggers.cron import CronTrigger
3
4
 
4
5
  scheduler = BackgroundScheduler()
5
6
  async_scheduler = AsyncIOScheduler()
7
+
8
+
9
+ def create_cron_trigger(cron_expression: str, timezone: str) -> CronTrigger:
10
+ return CronTrigger.from_crontab(cron_expression, timezone=timezone)
@@ -236,6 +236,7 @@ def get_connection_types(
236
236
  ConnectionType.manual_webhook,
237
237
  ConnectionType.saas,
238
238
  ConnectionType.sovrn,
239
+ ConnectionType.test_website,
239
240
  ]
240
241
  and is_match(conn_type.value)
241
242
  ],
fides/api/util/lock.py CHANGED
@@ -24,6 +24,9 @@ def redis_lock(lock_key: str, timeout: int) -> Generator[Lock | None, None, None
24
24
  If the lock is acquired, it yields the lock object.
25
25
  If the lock is not acquired, it yields None.
26
26
  The lock is automatically released on exiting the context.
27
+
28
+ Timeout is the maximum number of seconds for the lock to be held,
29
+ after which the lock will be released.
27
30
  """
28
31
  lock = get_redis_lock(lock_key, timeout)
29
32
 
@@ -48,6 +48,7 @@ PRIVACY_NOTICE = "privacy-notice"
48
48
  PRIVACY_PREFERENCE_HISTORY = "privacy-preference-history"
49
49
  PRIVACY_REQUEST = "privacy-request"
50
50
  PRIVACY_REQUEST_ACCESS_RESULTS = "privacy-request-access-results"
51
+ PRIVACY_REQUEST_EMAIL_INTEGRATIONS = "privacy-request-email-integrations"
51
52
  PRIVACY_REQUEST_NOTIFICATIONS = "privacy-request-notifications"
52
53
  READ = "read"
53
54
  REGISTER = "register"
@@ -58,6 +59,7 @@ REVIEW = "review"
58
59
  RULE = "rule"
59
60
  SAAS_CONFIG = "saas_config"
60
61
  SCOPE = "scope"
62
+ SEND = "send"
61
63
  STORAGE = "storage"
62
64
  SYSTEM = "system"
63
65
  SYSTEM_MANAGER = "system_manager"
@@ -176,6 +178,7 @@ PRIVACY_PREFERENCE_HISTORY_READ = f"{PRIVACY_PREFERENCE_HISTORY}:{READ}"
176
178
  PRIVACY_REQUEST_CALLBACK_RESUME = f"{PRIVACY_REQUEST}:{RESUME}" # User has permission to restart a paused privacy request
177
179
  PRIVACY_REQUEST_CREATE = f"{PRIVACY_REQUEST}:{CREATE}"
178
180
  PRIVACY_REQUEST_DELETE = f"{PRIVACY_REQUEST}:{DELETE}"
181
+ PRIVACY_REQUEST_EMAIL_INTEGRATIONS_SEND = f"{PRIVACY_REQUEST_EMAIL_INTEGRATIONS}:{SEND}"
179
182
  PRIVACY_REQUEST_MANUAL_STEPS_REVIEW = f"{PRIVACY_REQUEST}:{MANUAL_STEPS}:{REVIEW}"
180
183
  PRIVACY_REQUEST_MANUAL_STEPS_RESPOND = f"{PRIVACY_REQUEST}:{MANUAL_STEPS}:{RESPOND}"
181
184
  PRIVACY_REQUEST_NOTIFICATIONS_CREATE_OR_UPDATE = (
@@ -316,6 +319,7 @@ SCOPE_DOCS = {
316
319
  PRIVACY_REQUEST_CALLBACK_RESUME: "Restart paused privacy requests",
317
320
  PRIVACY_REQUEST_READ_ACCESS_RESULTS: "Download access data for the privacy request",
318
321
  PRIVACY_REQUEST_DELETE: "Remove privacy requests",
322
+ PRIVACY_REQUEST_EMAIL_INTEGRATIONS_SEND: "Send email for email integrations for the privacy request",
319
323
  PRIVACY_REQUEST_MANUAL_STEPS_RESPOND: "Respond to manual steps for the privacy request",
320
324
  PRIVACY_REQUEST_MANUAL_STEPS_REVIEW: "Review manual steps for the privacy request",
321
325
  PRIVACY_REQUEST_NOTIFICATIONS_CREATE_OR_UPDATE: "",
@@ -76,6 +76,9 @@ POLICY_DETAIL = "/dsr/policy/{policy_key}"
76
76
  # Privacy request URLs
77
77
  PRIVACY_REQUESTS = "/privacy-request"
78
78
  PRIVACY_REQUEST_APPROVE = "/privacy-request/administrate/approve"
79
+ PRIVACY_REQUEST_BATCH_EMAIL_SEND = (
80
+ "/privacy-request/administrate/process-awaiting-email-send"
81
+ )
79
82
  PRIVACY_REQUEST_AUTHENTICATED = "/privacy-request/authenticated"
80
83
  PRIVACY_REQUEST_BULK_RETRY = "/privacy-request/bulk/retry"
81
84
  PRIVACY_REQUEST_BULK_SOFT_DELETE = "/privacy-request/bulk/soft-delete"
@@ -65,4 +65,12 @@ class ExecutionSettings(FidesSettings):
65
65
  default=True,
66
66
  description="Whether fuzzy search is enabled for privacy request lookups.",
67
67
  )
68
+ email_send_cron_expression: str = Field(
69
+ default="0 12 * * mon",
70
+ description="The cron expression to send batch emails for DSR email integration. Defaults to weekly on Mondays at 12pm (noon).",
71
+ )
72
+ email_send_timezone: str = Field(
73
+ default="US/Eastern",
74
+ description="The timezone to send batch emails for DSR email integration.",
75
+ )
68
76
  model_config = SettingsConfigDict(env_prefix=ENV_PREFIX)
@@ -1 +1 @@
1
- <!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link data-next-font="" rel="preconnect" href="/" crossorigin="anonymous"/><link rel="preload" href="/_next/static/css/5f8af79f94072e0f.css" as="style"/><link rel="stylesheet" href="/_next/static/css/5f8af79f94072e0f.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-8fc1c717e1c0f7ae.js" defer=""></script><script src="/_next/static/chunks/framework-c92fc3344e6fd165.js" defer=""></script><script src="/_next/static/chunks/main-090643377c8254e6.js" defer=""></script><script src="/_next/static/chunks/pages/_app-3e486cab9a918260.js" defer=""></script><script src="/_next/static/chunks/pages/404-ac335065bc49f818.js" defer=""></script><script src="/_next/static/nlHJ2XI_Rq9Lg0rOXnZXC/_buildManifest.js" defer=""></script><script src="/_next/static/nlHJ2XI_Rq9Lg0rOXnZXC/_ssgManifest.js" defer=""></script><style>.data-ant-cssinjs-cache-path{content:"";}</style></head><body><div id="__next"><div style="height:100%;display:flex"></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/404","query":{},"buildId":"nlHJ2XI_Rq9Lg0rOXnZXC","nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
1
+ <!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link data-next-font="" rel="preconnect" href="/" crossorigin="anonymous"/><link rel="preload" href="/_next/static/css/0ba8f1215e9015ff.css" as="style"/><link rel="stylesheet" href="/_next/static/css/0ba8f1215e9015ff.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-c97e8d65bd9739ff.js" defer=""></script><script src="/_next/static/chunks/framework-c92fc3344e6fd165.js" defer=""></script><script src="/_next/static/chunks/main-090643377c8254e6.js" defer=""></script><script src="/_next/static/chunks/pages/_app-ae72c7442ecd3e50.js" defer=""></script><script src="/_next/static/chunks/pages/404-beb4bf835acb4386.js" defer=""></script><script src="/_next/static/FyEBF3yHHs8bgX7Ko0ZD_/_buildManifest.js" defer=""></script><script src="/_next/static/FyEBF3yHHs8bgX7Ko0ZD_/_ssgManifest.js" defer=""></script><style>.data-ant-cssinjs-cache-path{content:"";}</style></head><body><div id="__next"><div style="height:100%;display:flex"></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/404","query":{},"buildId":"FyEBF3yHHs8bgX7Ko0ZD_","nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
@@ -0,0 +1 @@
1
+ self.__BUILD_MANIFEST=function(s,e,t,a,c,n,i,d,o,r,p,u,g,f,b,m,j,k,h,y,l,v,I,F,x,_,U,w,q,N,A,S,B,C,z,D,E,L,M,T,P,G,H,J,K,O){return{__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},"/":[l,"static/chunks/pages/index-e92db8bb8c719abc.js"],"/404":["static/chunks/pages/404-beb4bf835acb4386.js"],"/_error":["static/chunks/pages/_error-bede3a8288930dcf.js"],"/add-systems":[l,"static/chunks/pages/add-systems-e5ef5be6566f9432.js"],"/add-systems/manual":[s,e,t,c,p,a,i,u,m,v,I,"static/chunks/pages/add-systems/manual-12073578f764815e.js"],"/add-systems/multiple":[i,g,F,"static/chunks/pages/add-systems/multiple-943479665698c6d2.js"],"/consent":["static/chunks/pages/consent-bd0fbeabe84d3c8f.js"],"/consent/configure":[i,g,"static/chunks/pages/consent/configure-e72c1feeb24bdb73.js"],"/consent/configure/add-vendors":[i,g,F,"static/chunks/pages/consent/configure/add-vendors-1bde4adc6d2a6dfa.js"],"/consent/privacy-experience":[p,x,"static/chunks/pages/consent/privacy-experience-5f2d060952814353.js"],"/consent/privacy-experience/new":[s,e,d,_,f,U,"static/chunks/pages/consent/privacy-experience/new-06bb3b0bf097fcdb.js"],"/consent/privacy-experience/[id]":[s,e,d,_,f,U,"static/chunks/pages/consent/privacy-experience/[id]-cc858383bb1bbd36.js"],"/consent/privacy-notices":[x,"static/chunks/pages/consent/privacy-notices-232e9ef135b838cf.js"],"/consent/privacy-notices/new":[s,e,d,w,f,q,"static/chunks/pages/consent/privacy-notices/new-e4a9393b7572e591.js"],"/consent/privacy-notices/[id]":[s,e,d,w,f,q,"static/chunks/pages/consent/privacy-notices/[id]-bfca5064b33116b9.js"],"/consent/properties":[N,"static/chunks/pages/consent/properties-a05600d9e3e8735e.js"],"/consent/reporting":[s,"static/chunks/pages/consent/reporting-5fcacc8e4baf3d03.js"],"/data-catalog":[s,e,t,a,"static/css/95ac327e5d70148d.css","static/chunks/pages/data-catalog-29cde3b7d27b22cf.js"],"/data-catalog/[systemId]/projects":[s,e,t,a,j,n,"static/chunks/pages/data-catalog/[systemId]/projects-be252cac70aa63dd.js"],"/data-catalog/[systemId]/projects/[projectUrn]":[A,"static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]-00bbbfb19c15c48d.js"],"/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn]":[s,e,t,a,j,S,n,"static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn]-11d52f1570759c4d.js"],"/data-catalog/[systemId]/resources":[A,"static/chunks/pages/data-catalog/[systemId]/resources-7648bbd4f6711e4d.js"],"/data-catalog/[systemId]/resources/[resourceUrn]":[s,e,t,a,j,S,n,"static/chunks/pages/data-catalog/[systemId]/resources/[resourceUrn]-b83afa5565d0c84e.js"],"/data-discovery/action-center":["static/chunks/pages/data-discovery/action-center-22fe027966edb092.js"],"/data-discovery/action-center/[monitorId]":[s,e,t,k,"static/chunks/pages/data-discovery/action-center/[monitorId]-e8dc8320e826e91c.js"],"/data-discovery/action-center/[monitorId]/[systemId]":[s,e,t,a,i,m,"static/css/81642473e38c67a5.css","static/chunks/pages/data-discovery/action-center/[monitorId]/[systemId]-3ae1ae3844a6e03a.js"],"/data-discovery/activity":[r,"static/chunks/pages/data-discovery/activity-f79ec067d906e67f.js"],"/data-discovery/detection":[r,B,"static/chunks/pages/data-discovery/detection-8733807dad4bc96e.js"],"/data-discovery/detection/[resourceUrn]":[r,B,"static/chunks/pages/data-discovery/detection/[resourceUrn]-393e20924c83373e.js"],"/data-discovery/discovery":[s,e,t,a,r,C,n,"static/chunks/pages/data-discovery/discovery-9e7dfd5a6acc2e8f.js"],"/data-discovery/discovery/[resourceUrn]":[s,e,t,a,r,C,n,"static/chunks/pages/data-discovery/discovery/[resourceUrn]-14bd7500362ff224.js"],"/datamap":["static/chunks/255-7db55b0e3a0f9dea.js",u,z,"static/chunks/pages/datamap-639ac9cf51750635.js"],"/dataset":[o,b,"static/chunks/pages/dataset-52506e743c73fc7d.js"],"/dataset/new":[o,b,"static/chunks/pages/dataset/new-403dc361bffe644d.js"],"/dataset/[datasetId]":["static/chunks/9729-fcf6ff4e3534e4a8.js",h,"static/chunks/pages/dataset/[datasetId]-0e90202b2db3797c.js"],"/dataset/[datasetId]/[collectionName]":[s,e,t,c,a,h,n,"static/chunks/pages/dataset/[datasetId]/[collectionName]-9df954c65a9fe023.js"],"/dataset/[datasetId]/[collectionName]/[...subfieldNames]":[s,e,t,c,a,h,n,"static/chunks/pages/dataset/[datasetId]/[collectionName]/[...subfieldNames]-d69aff79e77c5464.js"],"/datastore-connection":["static/css/5f393dea1c0d031c.css","static/chunks/pages/datastore-connection-36eeca2fe22be33a.js"],"/datastore-connection/new":[s,c,o,p,D,b,E,"static/chunks/pages/datastore-connection/new-6f68e65f01beb8af.js"],"/datastore-connection/[id]":[s,c,o,D,b,E,"static/chunks/pages/datastore-connection/[id]-7d492050fc33a57a.js"],"/fides-js-docs":["static/chunks/2fbcc6de-a6c61724c327e9fa.js","static/chunks/e3251fe7-5777b5d778e6fffa.js",s,e,t,c,o,L,"static/css/ab65b8cc3144bfc8.css","static/chunks/905-ffdbd0b14167e8bd.js","static/chunks/pages/fides-js-docs-5d8fd1af75f19e2f.js"],"/integrations":[s,e,t,c,d,M,T,n,"static/chunks/pages/integrations-ea492832424a9619.js"],"/integrations/[id]":[s,e,t,c,d,M,T,n,"static/chunks/pages/integrations/[id]-c245f0b0fd7810c0.js"],"/login":["static/chunks/pages/login-0cb0eb44bf2dd24c.js"],"/login/[provider]":["static/chunks/pages/login/[provider]-c58beef131c3a82d.js"],"/messaging":[s,e,t,"static/chunks/pages/messaging-c17efc84c54e4fdb.js"],"/messaging/add-template":[P,"static/chunks/pages/messaging/add-template-9dff500113f0710f.js"],"/messaging/[id]":[P,"static/chunks/pages/messaging/[id]-78606d74f82f5edc.js"],"/poc/ant-components":["static/chunks/pages/poc/ant-components-74348d35e92a2a3c.js"],"/poc/form-experiments/AntForm":["static/chunks/pages/poc/form-experiments/AntForm-ac613f99cd57d7b3.js"],"/poc/form-experiments/FormikAntFormItem":["static/chunks/pages/poc/form-experiments/FormikAntFormItem-44605674baae28e2.js"],"/poc/form-experiments/FormikControlled":["static/chunks/pages/poc/form-experiments/FormikControlled-86761304f1da7172.js"],"/poc/form-experiments/FormikField":["static/chunks/pages/poc/form-experiments/FormikField-fadf4e866aa8ea22.js"],"/poc/form-experiments/FormikSpreadField":[G,"static/chunks/pages/poc/form-experiments/FormikSpreadField-af097d661f6abcf4.js"],"/poc/forms":[G,"static/chunks/pages/poc/forms-be9bc54243141257.js"],"/poc/table-migration":[i,g,"static/chunks/pages/poc/table-migration-69a9e346e32fde53.js"],"/privacy-requests":[H,"static/chunks/pages/privacy-requests-d3299d80983c3587.js"],"/privacy-requests/configure":["static/chunks/pages/privacy-requests/configure-6935d3c1655ecbbe.js"],"/privacy-requests/configure/messaging":["static/chunks/pages/privacy-requests/configure/messaging-1f57e4d5715dd5cf.js"],"/privacy-requests/configure/storage":["static/chunks/pages/privacy-requests/configure/storage-378db5585b89ab5e.js"],"/privacy-requests/[id]":[H,"static/css/399d4757862a3982.css","static/chunks/pages/privacy-requests/[id]-61e32a7b8ef6569c.js"],"/properties":[N,"static/chunks/pages/properties-be3668cbd03e086e.js"],"/properties/add-property":[J,"static/chunks/pages/properties/add-property-971657cbd5e5490f.js"],"/properties/[id]":[J,"static/chunks/pages/properties/[id]-3a7b2edeb6f6c7a2.js"],"/reporting/datamap":[s,e,t,L,u,z,"static/chunks/pages/reporting/datamap-dc3afcf514d7219a.js"],"/settings/about":["static/chunks/pages/settings/about-a91bf9cf821bcdcb.js"],"/settings/about/alpha":["static/chunks/pages/settings/about/alpha-fb0c7974234d93ee.js"],"/settings/consent":["static/chunks/pages/settings/consent-bed42ecfab4896af.js"],"/settings/consent/[configuration_id]/[purpose_id]":["static/chunks/pages/settings/consent/[configuration_id]/[purpose_id]-aaa2d02b9be2acb1.js"],"/settings/custom-fields":["static/chunks/pages/settings/custom-fields-82882bc16052ae5b.js"],"/settings/domain-records":["static/chunks/pages/settings/domain-records-9455a95901d7d223.js"],"/settings/domains":["static/chunks/pages/settings/domains-57fd9412882c4ab2.js"],"/settings/email-templates":["static/chunks/pages/settings/email-templates-63a5da14576722a4.js"],"/settings/locations":[K,k,"static/chunks/pages/settings/locations-068724e9c574974d.js"],"/settings/organization":["static/chunks/pages/settings/organization-f556688c5fb35f41.js"],"/settings/regulations":[K,k,"static/chunks/pages/settings/regulations-3ddf2001f4605949.js"],"/systems":["static/chunks/pages/systems-b5f68d37abaa8844.js"],"/systems/configure/[id]":[s,e,t,c,p,a,i,u,m,v,I,"static/chunks/pages/systems/configure/[id]-ed809e0961891c0c.js"],"/systems/configure/[id]/test-datasets":[o,"static/chunks/pages/systems/configure/[id]/test-datasets-7ce5dbabf7f1026b.js"],"/taxonomy":["static/chunks/678d4732-50255cc09048e643.js",s,e,t,d,"static/chunks/570-c99f07161bd339cd.js","static/css/34a7eb08b86ddb57.css","static/chunks/pages/taxonomy-103618fab50dfd0d.js"],"/user-management":[y,"static/chunks/pages/user-management-f552cb870f8a6a17.js"],"/user-management/new":[y,O,"static/chunks/pages/user-management/new-a2524414e968f862.js"],"/user-management/profile/[id]":[y,O,"static/chunks/pages/user-management/profile/[id]-564f87da93e398d0.js"],sortedPages:["/","/404","/_app","/_error","/add-systems","/add-systems/manual","/add-systems/multiple","/consent","/consent/configure","/consent/configure/add-vendors","/consent/privacy-experience","/consent/privacy-experience/new","/consent/privacy-experience/[id]","/consent/privacy-notices","/consent/privacy-notices/new","/consent/privacy-notices/[id]","/consent/properties","/consent/reporting","/data-catalog","/data-catalog/[systemId]/projects","/data-catalog/[systemId]/projects/[projectUrn]","/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn]","/data-catalog/[systemId]/resources","/data-catalog/[systemId]/resources/[resourceUrn]","/data-discovery/action-center","/data-discovery/action-center/[monitorId]","/data-discovery/action-center/[monitorId]/[systemId]","/data-discovery/activity","/data-discovery/detection","/data-discovery/detection/[resourceUrn]","/data-discovery/discovery","/data-discovery/discovery/[resourceUrn]","/datamap","/dataset","/dataset/new","/dataset/[datasetId]","/dataset/[datasetId]/[collectionName]","/dataset/[datasetId]/[collectionName]/[...subfieldNames]","/datastore-connection","/datastore-connection/new","/datastore-connection/[id]","/fides-js-docs","/integrations","/integrations/[id]","/login","/login/[provider]","/messaging","/messaging/add-template","/messaging/[id]","/poc/ant-components","/poc/form-experiments/AntForm","/poc/form-experiments/FormikAntFormItem","/poc/form-experiments/FormikControlled","/poc/form-experiments/FormikField","/poc/form-experiments/FormikSpreadField","/poc/forms","/poc/table-migration","/privacy-requests","/privacy-requests/configure","/privacy-requests/configure/messaging","/privacy-requests/configure/storage","/privacy-requests/[id]","/properties","/properties/add-property","/properties/[id]","/reporting/datamap","/settings/about","/settings/about/alpha","/settings/consent","/settings/consent/[configuration_id]/[purpose_id]","/settings/custom-fields","/settings/domain-records","/settings/domains","/settings/email-templates","/settings/locations","/settings/organization","/settings/regulations","/systems","/systems/configure/[id]","/systems/configure/[id]/test-datasets","/taxonomy","/user-management","/user-management/new","/user-management/profile/[id]"]}}("static/chunks/2858-0b44609b6be7850b.js","static/chunks/2866-a73888c17a195cbe.js","static/chunks/9278-9b1b5970f0702668.js","static/chunks/409-6b1b506d59a0399a.js","static/chunks/699-8ca44b0de9fa20f0.js","static/css/d2d4e9a6923e6730.css","static/chunks/401-002f393dae03f8f4.js","static/chunks/3662-f6a1ddca5ee42076.js","static/chunks/6527-0eed08abe252a918.js","static/chunks/431-24380873201c3e1b.js","static/chunks/5277-e8a036319456127f.js","static/chunks/9951-5e744e8addb6e090.js","static/chunks/3923-536e8bbbea5b7328.js","static/chunks/6084-5bfa390a4c8fad43.js","static/chunks/5574-1fad13b944f0c4fc.js","static/chunks/6780-8b5772a3a2ef1ca6.js","static/chunks/6882-5a251351689ea74b.js","static/css/eb46b504bb5d980d.css","static/chunks/9226-f4e70e6f9619e9a9.js","static/chunks/7476-d7071697bc665a4f.js","static/css/972dc7eef106ee7c.css","static/chunks/3450-ebcffdd4fb437a2e.js","static/css/92fc10cc7ed1aba3.css","static/chunks/796-e33122908c5e28ce.js","static/chunks/6853-7a089a9fad286bb8.js","static/chunks/9014-eeae6f581158e645.js","static/chunks/1817-e2c599fb2c47dbc4.js","static/chunks/3615-5e2d062d684b8fa1.js","static/chunks/6954-3a7b166c8f3b66b4.js","static/chunks/79-f08e91084d10d6dc.js","static/chunks/3872-18e5da8bda649ddb.js","static/chunks/3855-a0783ba28c644d09.js","static/chunks/5309-c8b5165efcc5469f.js","static/chunks/9046-d4c806aa81ab0bad.js","static/chunks/4230-c4c596fb5534e1b1.js","static/chunks/1807-3beab149351d5ded.js","static/chunks/4608-0cd97892fd0b0e41.js","static/chunks/2599-6c4d22e75028d8b6.js","static/chunks/1316-6cc72a45ebf7ff81.js","static/chunks/6662-79eee0bf18775b40.js","static/chunks/7630-731324d74b20b80e.js","static/chunks/2921-93228aa02364bb48.js","static/chunks/3988-4b0f160b0969dbd2.js","static/chunks/787-cb0154eaf6114c7e.js","static/chunks/9826-065b7cd0784d6912.js","static/chunks/4121-23ac086c1aa6a43a.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB();
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1817],{11817:function(e,n,i){i.d(n,{Z:function(){return U}});var t=i(24246),o=i(86920),a=i(34090),l=i(86677),r=i(27378),s=i(55484),d=i(16134),c=i(812);let p=(0,o.IUT)({displayName:"DesktopIcon",viewBox:"0 0 24 24",path:(0,t.jsx)("path",{fill:"currentColor",d:"M20.5556 4.05556H3.44444C3.10833 4.05556 2.83333 4.33056 2.83333 4.66667V12H21.1667V4.66667C21.1667 4.33056 20.8917 4.05556 20.5556 4.05556ZM23 12V13.8333V15.6667C23 17.0149 21.9038 18.1111 20.5556 18.1111H14.9142L15.2198 19.9445H17.1944C17.7024 19.9445 18.1111 20.3531 18.1111 20.8611C18.1111 21.3691 17.7024 21.7778 17.1944 21.7778H14.4444H9.55556H6.80556C6.29757 21.7778 5.88889 21.3691 5.88889 20.8611C5.88889 20.3531 6.29757 19.9445 6.80556 19.9445H8.78021L9.08576 18.1111H3.44444C2.09618 18.1111 1 17.0149 1 15.6667V13.8333V12V4.66667C1 3.31841 2.09618 2.22223 3.44444 2.22223H20.5556C21.9038 2.22223 23 3.31841 23 4.66667V12ZM2.83333 13.8333V15.6667C2.83333 16.0028 3.10833 16.2778 3.44444 16.2778H10.1476C10.159 16.2778 10.1705 16.2778 10.1781 16.2778H13.8142C13.8257 16.2778 13.8372 16.2778 13.8448 16.2778H20.5556C20.8917 16.2778 21.1667 16.0028 21.1667 15.6667V13.8333H2.83333ZM10.6365 19.9445H13.3597L13.0542 18.1111H10.942L10.6365 19.9445Z"})}),u=(0,o.IUT)({displayName:"MobileIcon",viewBox:"0 0 24 24",path:(0,t.jsx)("path",{fill:"currentColor",d:"M6.5 20.25C6.5 20.6281 6.80938 20.9375 7.1875 20.9375H16.8125C17.1906 20.9375 17.5 20.6281 17.5 20.25V16.8125H6.5V20.25ZM6.5 14.75H17.5V3.75C17.5 3.37188 17.1906 3.0625 16.8125 3.0625H7.1875C6.80938 3.0625 6.5 3.37188 6.5 3.75V14.75ZM4.4375 3.75C4.4375 2.2332 5.6707 1 7.1875 1H16.8125C18.3293 1 19.5625 2.2332 19.5625 3.75V20.25C19.5625 21.7668 18.3293 23 16.8125 23H7.1875C5.6707 23 4.4375 21.7668 4.4375 20.25V3.75ZM12 17.8438C12.2735 17.8438 12.5358 17.9524 12.7292 18.1458C12.9226 18.3392 13.0312 18.6015 13.0312 18.875C13.0312 19.1485 12.9226 19.4108 12.7292 19.6042C12.5358 19.7976 12.2735 19.9062 12 19.9062C11.7265 19.9062 11.4642 19.7976 11.2708 19.6042C11.0774 19.4108 10.9688 19.1485 10.9688 18.875C10.9688 18.6015 11.0774 18.3392 11.2708 18.1458C11.4642 17.9524 11.7265 17.8438 12 17.8438Z"})});var v=i(77830),m=i(46628),_=i(7426),f=i(60325);let b={language:{label:"Language",validation:s.Z_()},title:{label:"Title",validation:s.Z_()},description:{label:"Description",validation:s.Z_()},accept_button_label:{label:"Accept button label",validation:s.Z_()},reject_button_label:{label:"Reject button label",validation:s.Z_()},save_button_label:{label:"Save button label",validation:s.Z_()},acknowledge_button_label:{label:"Acknowledge button label",validation:s.Z_()},privacy_policy_url:{label:"Privacy policy URL",validation:s.Z_().url()},privacy_preferences_link_label:{label:"Privacy preferences link label",validation:s.Z_()},banner_title:{label:"Banner title",validation:s.Z_()},banner_description:{label:"Banner description",validation:s.Z_()},purpose_header:{label:"Purpose header",validation:s.Z_()},privacy_policy_link_label:{label:"Privacy policy link label",validation:s.Z_()},modal_link_label:{label:"Modal link label",validation:s.Z_()},is_default:{label:"Default language",validation:s.O7()}};var g=i(34334),y=i(13083),x=i.n(y),h=i(43218),w=i.n(h),C=i(52253),j=i(32885),V=i(68309);let k={language:V.eU.EN,accept_button_label:"Accept",acknowledge_button_label:"OK",banner_description:"",banner_title:"",purpose_header:"",description:"Description",privacy_policy_link_label:"",privacy_policy_url:"",modal_link_label:"",privacy_preferences_link_label:"Privacy preferences",reject_button_label:"Reject All",save_button_label:"Save",title:"Manage your consent preferences",is_default:!0},A=e=>({...k,...e.translations?e.translations[0]:{}}),O=(e,n)=>{var i,t,o,a;let l={options:{allowHTMLDescription:!0,base64Cookie:!1,debug:!1,fidesApiUrl:"http://localhost:8080/api/v1",fidesClearCookie:!0,fidesDisableSaveApi:!0,fidesDisableNoticesServedApi:!0,fidesJsBaseUrl:"",fidesLocale:null===(t=e.translations)||void 0===t?void 0:null===(i=t[0])||void 0===i?void 0:i.language,fidesString:null,geolocationApiUrl:"",isGeolocationEnabled:!1,isOverlayEnabled:!0,isPrefetchEnabled:!1,modalLinkId:null,overlayParentId:C.Vk,preventDismissal:null!==(a=e.dismissable)&&void 0!==a&&a,privacyCenterUrl:"http://localhost:3000",showFidesBrandLink:!0},experience:{available_locales:null===(o=e.translations)||void 0===o?void 0:o.map(e=>e.language),component:e.component,experience_config:{allow_language_selection:!0,auto_detect_language:!0,auto_subdomain_cookie_deletion:!0,component:e.component,disabled:!1,dismissable:e.dismissable,id:"pri_222",is_default:!0,language:"en",layer1_button_options:V.Of.OPT_IN_OPT_OUT,properties:[],regions:["us_ca"],show_layer1_notices:!1,translations:[A(e)]},id:"pri_111",privacy_notices:n,region:"us_ca"},geolocation:{country:"US",location:"US-CA",region:"CA"}};return e.component===V.re.TCF_OVERLAY&&(l.options.fidesTcfGdprApplies=!0,l.options.tcf_enabled=!0,l.geolocation={location:"eea",country:"eea"},l.experience.experience_config.regions=["eea"],l.experience={...l.experience,region:"eea",minimal_tcf:!0,gvl:{vendors:{}},tcf_purpose_names:["Store and/or access information on a device","Use limited data to select advertising","Create profiles for personalised advertising","Use profiles to select personalised advertising","Create profiles to personalise content","Use profiles to select personalised content","Measure advertising performance","Measure content performance","Understand audiences through statistics or combinations of data from different sources","Develop and improve services","Use limited data to select content"]},l.options.apiOptions={getPrivacyExperienceFn:async()=>l.experience}),l},E=e=>{let{language:n,is_default:i,...t}=k,o=Object.keys(t).map(n=>{let i=e[n];return{[n]:void 0!==i?i:k[n]}}).reduce((e,n)=>({...e,...n}),{});return{language:e.language,is_default:e.is_default,...o}},T=(e,n,i)=>e?e.map(e=>i.find(n=>(null==n?void 0:n.id)===e)).map(e=>n===V.re.TCF_OVERLAY&&void 0!==e?{...e,translations:[{language:"en",text:null==e?void 0:e.name}]}:e).filter(e=>void 0!==e):[];var L=i(74022),Z=i(32222);let N=e=>{let{title:n,description:i}=e;return(0,t.jsx)(o.jqI,{className:"h-full items-center justify-center",children:(0,t.jsxs)(o.jqI,{className:"items-center gap-2 rounded-md p-6",style:{backgroundColor:L.Z.colors.white,boxShadow:L.Z.shadows.md,maxWidth:512},vertical:!0,"data-testid":"no-preview-notice",children:[(0,t.jsx)(o.xvT,{fontSize:"lg",fontWeight:"500",align:"center",children:n}),(0,t.jsx)(o.xvT,{color:"gray.500",align:"center",children:i})]})})};var P=e=>{var n,i;let{allPrivacyNotices:s,initialValues:d,translation:c,isMobilePreview:p}=e,u=(0,l.useRouter)().pathname.includes("/new"),{values:v}=(0,a.u6)(),[m,_]=(0,r.useState)([]),[f,b]=(0,r.useState)(!1),[g,y]=(0,r.useState)(),h=[V.re.BANNER_AND_MODAL,V.re.MODAL,V.re.TCF_OVERLAY].includes(v.component),{data:k}=(0,j.de)({pageIndex:1,pageSize:1}),A=(0,r.useMemo)(()=>(null==k?void 0:k.total)||0,[null==k?void 0:k.total]);(0,r.useEffect)(()=>{var e,n;return h&&f&&window.FidesPreview&&v.component&&((null===(e=v.privacy_notice_ids)||void 0===e?void 0:e.length)||v.component===V.re.TCF_OVERLAY)?v.component===V.re.TCF_OVERLAY?(window.FidesPreview("tcf"),y("tcf")):(window.FidesPreview("standard"),y("standard")):window.FidesPreview&&(null===(n=window.FidesPreview)||void 0===n||n.cleanup()),()=>{var e;null===(e=window.FidesPreview)||void 0===e||e.cleanup()}},[v.component,f,h,null===(n=v.privacy_notice_ids)||void 0===n?void 0:n.length,u]),(0,r.useEffect)(()=>{d&&v.component&&s&&(v.privacy_notice_ids?_(T(v.privacy_notice_ids,v.component,s)):_([]))},[v.privacy_notice_ids,s,v.component,d]);let L=(0,r.useMemo)(()=>v.component?O({...d,component:v.component},m):null,[d,m,v.component]);(0,r.useEffect)(()=>{var e,n,i,t;if(!h||!f||!window.FidesPreview||!window.Fides||!(null===(e=v.privacy_notice_ids)||void 0===e?void 0:e.length)&&v.component!==V.re.TCF_OVERLAY)return;v.component===V.re.MODAL&&(L.experience.experience_config.component=V.re.MODAL);let o=null===(n=v.translations)||void 0===n?void 0:n.find(e=>e.language===(null==c?void 0:c.language));(null===(i=v.translations)||void 0===i?void 0:i.length)&&(o?(L.experience.available_locales=[...L.experience.available_locales||[],o.language],L.experience.experience_config.translations[0]=E(o),L.options.fidesLocale=o.language):v.translations&&(L.experience.experience_config.translations[0]=E(v.translations[0]),L.options.fidesLocale=v.translations[0].language)),L.experience.experience_config.show_layer1_notices=!!(null===(t=v.privacy_notice_ids)||void 0===t?void 0:t.length)&&!!v.show_layer1_notices,L.experience.experience_config.layer1_button_options=(v.component===V.re.BANNER_AND_MODAL||v.component===V.re.TCF_OVERLAY)&&v.layer1_button_options?v.layer1_button_options:V.Of.OPT_IN_OPT_OUT,L.options.preventDismissal=!v.dismissable,L.experience.vendor_count=A,L.experience.experience_config.component=v.component,window.Fides.init(L)},[c,L,s,h,A,f,g,v.privacy_notice_ids,v.component,v.translations,v.show_layer1_notices,v.layer1_button_options,v.dismissable,d,m]);let P=document.getElementById("fides-modal");return(P&&P.removeAttribute("tabindex"),v.component)?h?(null===(i=v.privacy_notice_ids)||void 0===i?void 0:i.length)||v.component===V.re.TCF_OVERLAY?(0,t.jsxs)(o.jqI,{className:"size-full items-center justify-center overflow-scroll",children:[(0,t.jsx)(x(),{id:"4b2ec2183c5a567e",dynamic:[C.Vk,v.component!==V.re.TCF_OVERLAY?"padding-bottom: 45px;":""],children:"div#fides-overlay{z-index:5000!important}div#".concat(C.Vk,"{width:100%;padding-top:45px;").concat(v.component!==V.re.TCF_OVERLAY?"padding-bottom: 45px;":""," margin: auto;pointer-events:none}div#fides-banner-container{position:static!important;-webkit-transform:none!important;-moz-transform:none!important;-ms-transform:none!important;-o-transform:none!important;transform:none!important;-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;transition:none!important}div#fides-banner-container.fides-banner-hidden{display:none}.fides-modal-container{background-color:unset!important;position:static!important;display:none!important}.fides-modal-overlay{background-color:inherit!important;position:static!important;display:none!important}div.fides-modal-content{position:relative!important;-webkit-transform:none!important;-moz-transform:none!important;-ms-transform:none!important;-o-transform:none!important;transform:none!important;left:initial!important;top:initial!important}div.fides-modal-footer{width:unset}")}),h?(0,t.jsx)("style",{children:"div#fides-modal {\n display: flex !important;\n justify-content: center;\n background-color: unset;\n ".concat(v.component===V.re.BANNER_AND_MODAL||v.component===V.re.TCF_OVERLAY?"padding-bottom: 3rem;":"","\n }")}):null,p?(0,t.jsx)("style",{children:"\n div#fides-overlay-wrapper {\n max-width: 400px;\n margin: auto;\n }\n div.fides-modal-button-group {\n flex-direction: column !important;\n }\n div#fides-banner {\n padding: 24px;\n width: 100%;\n }\n\n div#fides-banner-description {\n margin-bottom: 0px;\n }\n\n div#fides-banner-inner div#fides-button-group {\n flex-direction: column;\n align-items: flex-start;\n gap: 12px;\n padding-top: 24px;\n }\n\n .fides-banner-button-group {\n flex-direction: column;\n width: 100%;\n }\n\n button.fides-banner-button {\n margin: 0px;\n width: 100%;\n }\n\n div#fides-banner-inner-container {\n display: flex;\n flex-direction: column;\n max-height: 50vh;\n overflow-y: auto;\n scrollbar-gutter: stable;\n }\n\n div#fides-privacy-policy-link {\n order: 1;\n width: 100%;\n }\n .fides-modal-footer {\n max-width: 100%;\n }\n .fides-banner-secondary-actions {\n flex-direction: column-reverse;\n gap: 12px;\n }\n "}):(0,t.jsx)("style",{children:"\n div#fides-banner {\n width: 60%;\n }\n @media (min-width: 768px) {\n div#fides-banner {\n width: 100%;\n }\n }\n @media (min-width: 1155px) {\n div#fides-banner {\n width: 90%;\n }\n }\n @media (min-width: 1440px) {\n div#fides-banner {\n width: 60%;\n }\n }\n "}),(0,t.jsx)(w(),{id:"fides-js-script",src:"/lib/fides-preview.js",onReady:()=>{b(!0)}}),(0,t.jsx)("div",{id:C.Vk,className:x().dynamic([["4b2ec2183c5a567e",[C.Vk,v.component!==V.re.TCF_OVERLAY?"padding-bottom: 45px;":""]]])},v.component)]}):(0,t.jsx)(N,{title:"No privacy notices added",description:'To view a preview of this experience, add a privacy notice under "Privacy Notices" to the left.'}):(0,t.jsx)(N,{title:"".concat(Z.J.get(v.component)," preview not available"),description:"There is no preview available for ".concat(Z.J.get(v.component),". You can edit the available settings\n and languages to the left.")}):(0,t.jsx)(N,{title:"No privacy experience type selected",description:"Please select a privacy experience type to preview."})},D=i(94315),M=i(5331),R=i(16277),F=i(71922),H=i(31883);let S=e=>{let n=(0,f.y3)(e),i={};return Object.entries(n).forEach(e=>{let[n,t]=e;if(t.included){let e=b[n];i[n]=t.required?e.validation.required().label(e.label):e.validation.nullable().label(e.label)}}),s.Ry().shape(i)},B=e=>{let{componentType:n}=e;return S(n)},I=s.Ry().shape({name:s.Z_().required().label("Experience name"),component:s.Z_().required().label("Experience type"),translations:s.IX().when("component",(e,n)=>{let[i]=e;return n.of(B({componentType:i}))})});var U=e=>{var n;let{passedInExperience:i,passedInTranslations:s}=e,[b]=(0,D.mJ)(),[y]=(0,D.$d)(),x=(0,o.pmc)(),[h,w]=(0,r.useState)(!1),C=(0,l.useRouter)(),{data:j}=(0,_.tB)({api_set:!1}),V=null==j?void 0:null===(n=j.plus_consent_settings)||void 0===n?void 0:n.enable_translations,k=(0,d.C)(g.Zp),A=(0,d.C)(g.G1);(0,g.Ah)({page:k,size:A});let O=(0,d.C)(g.fJ),E=(0,d.C)(F.sX),T=i?{...f.DD,...(0,f.Uv)(i)}:f.DD,L=async e=>{var n,t;let o;e.privacy_notice_ids=null===(n=e.privacy_notice_ids)||void 0===n?void 0:n.filter(e=>"tcf_purposes_placeholder"!==e),T.tcf_configuration_id&&!e.tcf_configuration_id&&(e.tcf_configuration_id=null);let a={...e,disabled:null===(t=null==i?void 0:i.disabled)||void 0===t||t,allow_language_selection:e.translations&&e.translations.length>1};if(i){let{component:e,...n}=a;o=await y({...n,id:i.id})}else o=await b(a);(0,H.D4)(o)?x((0,m.Vo)((0,c.e$)(o.error))):(x((0,m.t5)("Privacy experience successfully ".concat(i?"updated":"created"))),C.push(v.w0))},[Z,N]=(0,r.useState)(void 0),[S,B]=(0,r.useState)(!1);return(0,t.jsx)(a.J9,{initialValues:T,enableReinitialize:!0,onSubmit:L,validationSchema:I,children:(0,t.jsx)(a.l0,{style:{height:"100vh"},children:(0,t.jsxs)(o.jqI,{className:"size-full","data-testid":"privacy-experience-detail-page",children:[Z?(0,t.jsx)(R.Z,{translation:Z,translationsEnabled:V,isOOB:S,onReturnToMainForm:()=>{N(void 0),B(!1)}}):(0,t.jsx)(M.d0,{allPrivacyNotices:E,translationsEnabled:V,onSelectTranslation:e=>{N({...e,name:(0,f.Go)(e,O)})},onCreateTranslation:e=>{let n=null==s?void 0:s.find(n=>n.language===e);return n&&B(!0),null!=n?n:{language:e,is_default:!1}}}),(0,t.jsxs)(o.jqI,{vertical:!0,className:"w-full overflow-y-hidden",style:{backgroundColor:o.rSc.colors.gray[50]},children:[(0,t.jsxs)(o.jqI,{className:"flex-row items-center p-4",style:{backgroundColor:o.rSc.colors.white,borderBottom:"1px solid ".concat(o.rSc.colors.gray[100])},children:[(0,t.jsx)(o.xvT,{fontSize:"md",fontWeight:"semibold",children:"PREVIEW"}),(0,t.jsx)(o.LZC,{}),(0,t.jsxs)(o.y02.Group,{onChange:e=>w(e.target.value),defaultValue:!1,children:[(0,t.jsx)(o.y02.Button,{value:!0,title:"View mobile preview",children:(0,t.jsx)(u,{})}),(0,t.jsx)(o.y02.Button,{value:!1,title:"View desktop preview",children:(0,t.jsx)(p,{})})]})]}),(0,t.jsx)(P,{allPrivacyNotices:E,initialValues:T,translation:Z,isMobilePreview:h})]})]})})})}},32222:function(e,n,i){i.d(n,{J:function(){return t}});let t=new Map([["overlay","Overlay"],["privacy_center","Privacy center"],["tcf_overlay","TCF overlay"],["modal","Modal"],["banner_and_modal","Banner and modal"],["headless","Headless"]])},31883:function(e,n,i){i.d(n,{Bw:function(){return t.Bw},D4:function(){return t.D4}});var t=i(19043)}}]);
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1817],{11817:function(e,n,i){i.d(n,{Z:function(){return U}});var t=i(24246),o=i(13577),a=i(34090),l=i(86677),r=i(27378),s=i(55484),d=i(16134),c=i(812);let p=(0,o.IUT)({displayName:"DesktopIcon",viewBox:"0 0 24 24",path:(0,t.jsx)("path",{fill:"currentColor",d:"M20.5556 4.05556H3.44444C3.10833 4.05556 2.83333 4.33056 2.83333 4.66667V12H21.1667V4.66667C21.1667 4.33056 20.8917 4.05556 20.5556 4.05556ZM23 12V13.8333V15.6667C23 17.0149 21.9038 18.1111 20.5556 18.1111H14.9142L15.2198 19.9445H17.1944C17.7024 19.9445 18.1111 20.3531 18.1111 20.8611C18.1111 21.3691 17.7024 21.7778 17.1944 21.7778H14.4444H9.55556H6.80556C6.29757 21.7778 5.88889 21.3691 5.88889 20.8611C5.88889 20.3531 6.29757 19.9445 6.80556 19.9445H8.78021L9.08576 18.1111H3.44444C2.09618 18.1111 1 17.0149 1 15.6667V13.8333V12V4.66667C1 3.31841 2.09618 2.22223 3.44444 2.22223H20.5556C21.9038 2.22223 23 3.31841 23 4.66667V12ZM2.83333 13.8333V15.6667C2.83333 16.0028 3.10833 16.2778 3.44444 16.2778H10.1476C10.159 16.2778 10.1705 16.2778 10.1781 16.2778H13.8142C13.8257 16.2778 13.8372 16.2778 13.8448 16.2778H20.5556C20.8917 16.2778 21.1667 16.0028 21.1667 15.6667V13.8333H2.83333ZM10.6365 19.9445H13.3597L13.0542 18.1111H10.942L10.6365 19.9445Z"})}),u=(0,o.IUT)({displayName:"MobileIcon",viewBox:"0 0 24 24",path:(0,t.jsx)("path",{fill:"currentColor",d:"M6.5 20.25C6.5 20.6281 6.80938 20.9375 7.1875 20.9375H16.8125C17.1906 20.9375 17.5 20.6281 17.5 20.25V16.8125H6.5V20.25ZM6.5 14.75H17.5V3.75C17.5 3.37188 17.1906 3.0625 16.8125 3.0625H7.1875C6.80938 3.0625 6.5 3.37188 6.5 3.75V14.75ZM4.4375 3.75C4.4375 2.2332 5.6707 1 7.1875 1H16.8125C18.3293 1 19.5625 2.2332 19.5625 3.75V20.25C19.5625 21.7668 18.3293 23 16.8125 23H7.1875C5.6707 23 4.4375 21.7668 4.4375 20.25V3.75ZM12 17.8438C12.2735 17.8438 12.5358 17.9524 12.7292 18.1458C12.9226 18.3392 13.0312 18.6015 13.0312 18.875C13.0312 19.1485 12.9226 19.4108 12.7292 19.6042C12.5358 19.7976 12.2735 19.9062 12 19.9062C11.7265 19.9062 11.4642 19.7976 11.2708 19.6042C11.0774 19.4108 10.9688 19.1485 10.9688 18.875C10.9688 18.6015 11.0774 18.3392 11.2708 18.1458C11.4642 17.9524 11.7265 17.8438 12 17.8438Z"})});var v=i(77830),m=i(46628),_=i(7426),f=i(60325);let b={language:{label:"Language",validation:s.Z_()},title:{label:"Title",validation:s.Z_()},description:{label:"Description",validation:s.Z_()},accept_button_label:{label:"Accept button label",validation:s.Z_()},reject_button_label:{label:"Reject button label",validation:s.Z_()},save_button_label:{label:"Save button label",validation:s.Z_()},acknowledge_button_label:{label:"Acknowledge button label",validation:s.Z_()},privacy_policy_url:{label:"Privacy policy URL",validation:s.Z_().url()},privacy_preferences_link_label:{label:"Privacy preferences link label",validation:s.Z_()},banner_title:{label:"Banner title",validation:s.Z_()},banner_description:{label:"Banner description",validation:s.Z_()},purpose_header:{label:"Purpose header",validation:s.Z_()},privacy_policy_link_label:{label:"Privacy policy link label",validation:s.Z_()},modal_link_label:{label:"Modal link label",validation:s.Z_()},is_default:{label:"Default language",validation:s.O7()}};var g=i(34334),y=i(13083),x=i.n(y),h=i(43218),w=i.n(h),C=i(52253),j=i(32885),V=i(68309);let k={language:V.eU.EN,accept_button_label:"Accept",acknowledge_button_label:"OK",banner_description:"",banner_title:"",purpose_header:"",description:"Description",privacy_policy_link_label:"",privacy_policy_url:"",modal_link_label:"",privacy_preferences_link_label:"Privacy preferences",reject_button_label:"Reject All",save_button_label:"Save",title:"Manage your consent preferences",is_default:!0},A=e=>({...k,...e.translations?e.translations[0]:{}}),O=(e,n)=>{var i,t,o,a;let l={options:{allowHTMLDescription:!0,base64Cookie:!1,debug:!1,fidesApiUrl:"http://localhost:8080/api/v1",fidesClearCookie:!0,fidesDisableSaveApi:!0,fidesDisableNoticesServedApi:!0,fidesJsBaseUrl:"",fidesLocale:null===(t=e.translations)||void 0===t?void 0:null===(i=t[0])||void 0===i?void 0:i.language,fidesString:null,geolocationApiUrl:"",isGeolocationEnabled:!1,isOverlayEnabled:!0,isPrefetchEnabled:!1,modalLinkId:null,overlayParentId:C.Vk,preventDismissal:null!==(a=e.dismissable)&&void 0!==a&&a,privacyCenterUrl:"http://localhost:3000",showFidesBrandLink:!0},experience:{available_locales:null===(o=e.translations)||void 0===o?void 0:o.map(e=>e.language),component:e.component,experience_config:{allow_language_selection:!0,auto_detect_language:!0,auto_subdomain_cookie_deletion:!0,component:e.component,disabled:!1,dismissable:e.dismissable,id:"pri_222",is_default:!0,language:"en",layer1_button_options:V.Of.OPT_IN_OPT_OUT,properties:[],regions:["us_ca"],show_layer1_notices:!1,translations:[A(e)]},id:"pri_111",privacy_notices:n,region:"us_ca"},geolocation:{country:"US",location:"US-CA",region:"CA"}};return e.component===V.re.TCF_OVERLAY&&(l.options.fidesTcfGdprApplies=!0,l.options.tcf_enabled=!0,l.geolocation={location:"eea",country:"eea"},l.experience.experience_config.regions=["eea"],l.experience={...l.experience,region:"eea",minimal_tcf:!0,gvl:{vendors:{}},tcf_purpose_names:["Store and/or access information on a device","Use limited data to select advertising","Create profiles for personalised advertising","Use profiles to select personalised advertising","Create profiles to personalise content","Use profiles to select personalised content","Measure advertising performance","Measure content performance","Understand audiences through statistics or combinations of data from different sources","Develop and improve services","Use limited data to select content"]},l.options.apiOptions={getPrivacyExperienceFn:async()=>l.experience}),l},E=e=>{let{language:n,is_default:i,...t}=k,o=Object.keys(t).map(n=>{let i=e[n];return{[n]:void 0!==i?i:k[n]}}).reduce((e,n)=>({...e,...n}),{});return{language:e.language,is_default:e.is_default,...o}},T=(e,n,i)=>e?e.map(e=>i.find(n=>(null==n?void 0:n.id)===e)).map(e=>n===V.re.TCF_OVERLAY&&void 0!==e?{...e,translations:[{language:"en",text:null==e?void 0:e.name}]}:e).filter(e=>void 0!==e):[];var L=i(74022),Z=i(32222);let N=e=>{let{title:n,description:i}=e;return(0,t.jsx)(o.jqI,{className:"h-full items-center justify-center",children:(0,t.jsxs)(o.jqI,{className:"items-center gap-2 rounded-md p-6",style:{backgroundColor:L.Z.colors.white,boxShadow:L.Z.shadows.md,maxWidth:512},vertical:!0,"data-testid":"no-preview-notice",children:[(0,t.jsx)(o.xvT,{fontSize:"lg",fontWeight:"500",align:"center",children:n}),(0,t.jsx)(o.xvT,{color:"gray.500",align:"center",children:i})]})})};var P=e=>{var n,i;let{allPrivacyNotices:s,initialValues:d,translation:c,isMobilePreview:p}=e,u=(0,l.useRouter)().pathname.includes("/new"),{values:v}=(0,a.u6)(),[m,_]=(0,r.useState)([]),[f,b]=(0,r.useState)(!1),[g,y]=(0,r.useState)(),h=[V.re.BANNER_AND_MODAL,V.re.MODAL,V.re.TCF_OVERLAY].includes(v.component),{data:k}=(0,j.de)({pageIndex:1,pageSize:1}),A=(0,r.useMemo)(()=>(null==k?void 0:k.total)||0,[null==k?void 0:k.total]);(0,r.useEffect)(()=>{var e,n;return h&&f&&window.FidesPreview&&v.component&&((null===(e=v.privacy_notice_ids)||void 0===e?void 0:e.length)||v.component===V.re.TCF_OVERLAY)?v.component===V.re.TCF_OVERLAY?(window.FidesPreview("tcf"),y("tcf")):(window.FidesPreview("standard"),y("standard")):window.FidesPreview&&(null===(n=window.FidesPreview)||void 0===n||n.cleanup()),()=>{var e;null===(e=window.FidesPreview)||void 0===e||e.cleanup()}},[v.component,f,h,null===(n=v.privacy_notice_ids)||void 0===n?void 0:n.length,u]),(0,r.useEffect)(()=>{d&&v.component&&s&&(v.privacy_notice_ids?_(T(v.privacy_notice_ids,v.component,s)):_([]))},[v.privacy_notice_ids,s,v.component,d]);let L=(0,r.useMemo)(()=>v.component?O({...d,component:v.component},m):null,[d,m,v.component]);(0,r.useEffect)(()=>{var e,n,i,t;if(!h||!f||!window.FidesPreview||!window.Fides||!(null===(e=v.privacy_notice_ids)||void 0===e?void 0:e.length)&&v.component!==V.re.TCF_OVERLAY)return;v.component===V.re.MODAL&&(L.experience.experience_config.component=V.re.MODAL);let o=null===(n=v.translations)||void 0===n?void 0:n.find(e=>e.language===(null==c?void 0:c.language));(null===(i=v.translations)||void 0===i?void 0:i.length)&&(o?(L.experience.available_locales=[...L.experience.available_locales||[],o.language],L.experience.experience_config.translations[0]=E(o),L.options.fidesLocale=o.language):v.translations&&(L.experience.experience_config.translations[0]=E(v.translations[0]),L.options.fidesLocale=v.translations[0].language)),L.experience.experience_config.show_layer1_notices=!!(null===(t=v.privacy_notice_ids)||void 0===t?void 0:t.length)&&!!v.show_layer1_notices,L.experience.experience_config.layer1_button_options=(v.component===V.re.BANNER_AND_MODAL||v.component===V.re.TCF_OVERLAY)&&v.layer1_button_options?v.layer1_button_options:V.Of.OPT_IN_OPT_OUT,L.options.preventDismissal=!v.dismissable,L.experience.vendor_count=A,L.experience.experience_config.component=v.component,window.Fides.init(L)},[c,L,s,h,A,f,g,v.privacy_notice_ids,v.component,v.translations,v.show_layer1_notices,v.layer1_button_options,v.dismissable,d,m]);let P=document.getElementById("fides-modal");return(P&&P.removeAttribute("tabindex"),v.component)?h?(null===(i=v.privacy_notice_ids)||void 0===i?void 0:i.length)||v.component===V.re.TCF_OVERLAY?(0,t.jsxs)(o.jqI,{className:"size-full items-center justify-center overflow-scroll",children:[(0,t.jsx)(x(),{id:"4b2ec2183c5a567e",dynamic:[C.Vk,v.component!==V.re.TCF_OVERLAY?"padding-bottom: 45px;":""],children:"div#fides-overlay{z-index:5000!important}div#".concat(C.Vk,"{width:100%;padding-top:45px;").concat(v.component!==V.re.TCF_OVERLAY?"padding-bottom: 45px;":""," margin: auto;pointer-events:none}div#fides-banner-container{position:static!important;-webkit-transform:none!important;-moz-transform:none!important;-ms-transform:none!important;-o-transform:none!important;transform:none!important;-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;transition:none!important}div#fides-banner-container.fides-banner-hidden{display:none}.fides-modal-container{background-color:unset!important;position:static!important;display:none!important}.fides-modal-overlay{background-color:inherit!important;position:static!important;display:none!important}div.fides-modal-content{position:relative!important;-webkit-transform:none!important;-moz-transform:none!important;-ms-transform:none!important;-o-transform:none!important;transform:none!important;left:initial!important;top:initial!important}div.fides-modal-footer{width:unset}")}),h?(0,t.jsx)("style",{children:"div#fides-modal {\n display: flex !important;\n justify-content: center;\n background-color: unset;\n ".concat(v.component===V.re.BANNER_AND_MODAL||v.component===V.re.TCF_OVERLAY?"padding-bottom: 3rem;":"","\n }")}):null,p?(0,t.jsx)("style",{children:"\n div#fides-overlay-wrapper {\n max-width: 400px;\n margin: auto;\n }\n div.fides-modal-button-group {\n flex-direction: column !important;\n }\n div#fides-banner {\n padding: 24px;\n width: 100%;\n }\n\n div#fides-banner-description {\n margin-bottom: 0px;\n }\n\n div#fides-banner-inner div#fides-button-group {\n flex-direction: column;\n align-items: flex-start;\n gap: 12px;\n padding-top: 24px;\n }\n\n .fides-banner-button-group {\n flex-direction: column;\n width: 100%;\n }\n\n button.fides-banner-button {\n margin: 0px;\n width: 100%;\n }\n\n div#fides-banner-inner-container {\n display: flex;\n flex-direction: column;\n max-height: 50vh;\n overflow-y: auto;\n scrollbar-gutter: stable;\n }\n\n div#fides-privacy-policy-link {\n order: 1;\n width: 100%;\n }\n .fides-modal-footer {\n max-width: 100%;\n }\n .fides-banner-secondary-actions {\n flex-direction: column-reverse;\n gap: 12px;\n }\n "}):(0,t.jsx)("style",{children:"\n div#fides-banner {\n width: 60%;\n }\n @media (min-width: 768px) {\n div#fides-banner {\n width: 100%;\n }\n }\n @media (min-width: 1155px) {\n div#fides-banner {\n width: 90%;\n }\n }\n @media (min-width: 1440px) {\n div#fides-banner {\n width: 60%;\n }\n }\n "}),(0,t.jsx)(w(),{id:"fides-js-script",src:"/lib/fides-preview.js",onReady:()=>{b(!0)}}),(0,t.jsx)("div",{id:C.Vk,className:x().dynamic([["4b2ec2183c5a567e",[C.Vk,v.component!==V.re.TCF_OVERLAY?"padding-bottom: 45px;":""]]])},v.component)]}):(0,t.jsx)(N,{title:"No privacy notices added",description:'To view a preview of this experience, add a privacy notice under "Privacy Notices" to the left.'}):(0,t.jsx)(N,{title:"".concat(Z.J.get(v.component)," preview not available"),description:"There is no preview available for ".concat(Z.J.get(v.component),". You can edit the available settings\n and languages to the left.")}):(0,t.jsx)(N,{title:"No privacy experience type selected",description:"Please select a privacy experience type to preview."})},D=i(94315),M=i(5331),R=i(16277),F=i(71922),H=i(31883);let S=e=>{let n=(0,f.y3)(e),i={};return Object.entries(n).forEach(e=>{let[n,t]=e;if(t.included){let e=b[n];i[n]=t.required?e.validation.required().label(e.label):e.validation.nullable().label(e.label)}}),s.Ry().shape(i)},B=e=>{let{componentType:n}=e;return S(n)},I=s.Ry().shape({name:s.Z_().required().label("Experience name"),component:s.Z_().required().label("Experience type"),translations:s.IX().when("component",(e,n)=>{let[i]=e;return n.of(B({componentType:i}))})});var U=e=>{var n;let{passedInExperience:i,passedInTranslations:s}=e,[b]=(0,D.mJ)(),[y]=(0,D.$d)(),x=(0,o.pmc)(),[h,w]=(0,r.useState)(!1),C=(0,l.useRouter)(),{data:j}=(0,_.tB)({api_set:!1}),V=null==j?void 0:null===(n=j.plus_consent_settings)||void 0===n?void 0:n.enable_translations,k=(0,d.C)(g.Zp),A=(0,d.C)(g.G1);(0,g.Ah)({page:k,size:A});let O=(0,d.C)(g.fJ),E=(0,d.C)(F.sX),T=i?{...f.DD,...(0,f.Uv)(i)}:f.DD,L=async e=>{var n,t;let o;e.privacy_notice_ids=null===(n=e.privacy_notice_ids)||void 0===n?void 0:n.filter(e=>"tcf_purposes_placeholder"!==e),T.tcf_configuration_id&&!e.tcf_configuration_id&&(e.tcf_configuration_id=null);let a={...e,disabled:null===(t=null==i?void 0:i.disabled)||void 0===t||t,allow_language_selection:e.translations&&e.translations.length>1};if(i){let{component:e,...n}=a;o=await y({...n,id:i.id})}else o=await b(a);(0,H.D4)(o)?x((0,m.Vo)((0,c.e$)(o.error))):(x((0,m.t5)("Privacy experience successfully ".concat(i?"updated":"created"))),C.push(v.w0))},[Z,N]=(0,r.useState)(void 0),[S,B]=(0,r.useState)(!1);return(0,t.jsx)(a.J9,{initialValues:T,enableReinitialize:!0,onSubmit:L,validationSchema:I,children:(0,t.jsx)(a.l0,{style:{height:"100vh"},children:(0,t.jsxs)(o.jqI,{className:"size-full","data-testid":"privacy-experience-detail-page",children:[Z?(0,t.jsx)(R.Z,{translation:Z,translationsEnabled:V,isOOB:S,onReturnToMainForm:()=>{N(void 0),B(!1)}}):(0,t.jsx)(M.d0,{allPrivacyNotices:E,translationsEnabled:V,onSelectTranslation:e=>{N({...e,name:(0,f.Go)(e,O)})},onCreateTranslation:e=>{let n=null==s?void 0:s.find(n=>n.language===e);return n&&B(!0),null!=n?n:{language:e,is_default:!1}}}),(0,t.jsxs)(o.jqI,{vertical:!0,className:"w-full overflow-y-hidden",style:{backgroundColor:o.rSc.colors.gray[50]},children:[(0,t.jsxs)(o.jqI,{className:"flex-row items-center p-4",style:{backgroundColor:o.rSc.colors.white,borderBottom:"1px solid ".concat(o.rSc.colors.gray[100])},children:[(0,t.jsx)(o.xvT,{fontSize:"md",fontWeight:"semibold",children:"PREVIEW"}),(0,t.jsx)(o.LZC,{}),(0,t.jsxs)(o.y02.Group,{onChange:e=>w(e.target.value),defaultValue:!1,children:[(0,t.jsx)(o.y02.Button,{value:!0,title:"View mobile preview",children:(0,t.jsx)(u,{})}),(0,t.jsx)(o.y02.Button,{value:!1,title:"View desktop preview",children:(0,t.jsx)(p,{})})]})]}),(0,t.jsx)(P,{allPrivacyNotices:E,initialValues:T,translation:Z,isMobilePreview:h})]})]})})})}},32222:function(e,n,i){i.d(n,{J:function(){return t}});let t=new Map([["overlay","Overlay"],["privacy_center","Privacy center"],["tcf_overlay","TCF overlay"],["modal","Modal"],["banner_and_modal","Banner and modal"],["headless","Headless"]])},31883:function(e,n,i){i.d(n,{Bw:function(){return t.Bw},D4:function(){return t.D4}});var t=i(19043)}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2921],{95813:function(e,l,r){r.d(l,{S:function(){return t}});let t={input:"default text",radio:"2",checkbox:!0,switch:!0,select:"2",multiselect:["2"],tags:["1"],date:"",number:12}},12921:function(e,l,r){r.r(l),r.d(l,{FormikSpreadFieldPOC:function(){return u}});var t=r(24246),n=r(86920),i=r(3124),s=r.n(i),d=r(34090),c=r(95813);let{Text:o,Title:a}=n.AntTypography,u=()=>(0,t.jsx)(d.J9,{initialValues:{...c.S},onSubmit:console.log,children:e=>{let{values:l}=e;return(0,t.jsxs)(n.bue,{children:[(0,t.jsxs)(n.JGx,{span:12,children:[(0,t.jsx)(a,{level:2,children:"<Formik> + <Form> + {...field}"}),(0,t.jsxs)("div",{className:"mb-4",children:[(0,t.jsx)(n.j8w,{color:"red",children:"non functional"}),(0,t.jsx)(n.j8w,{color:"red",children:"high effort"})]}),(0,t.jsx)(d.l0,{children:(0,t.jsxs)(n.jqI,{vertical:!0,gap:16,children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"input",children:"Input"}),(0,t.jsx)("div",{children:(0,t.jsx)(d.gN,{name:"input",children:e=>{let{field:l}=e;return(0,t.jsx)(n.uFc,{...l,id:"input",type:"text"})}})})]}),(0,t.jsx)("div",{children:(0,t.jsx)(d.gN,{name:"radio",children:e=>{let{field:l}=e;return(0,t.jsxs)(n.y02.Group,{...l,children:[(0,t.jsx)(n.y02,{value:"1",children:"Radio 1"}),(0,t.jsx)(n.y02,{value:"2",children:"Radio 2"})]})}})}),(0,t.jsxs)("div",{children:[(0,t.jsx)(d.gN,{name:"checkbox",children:e=>{let{field:r}=e;return(0,t.jsx)(n.E_O,{...r,defaultChecked:l.checkbox,children:"Checkbox"})}}),(0,t.jsx)(o,{type:"warning",children:"Requires additional logic to handle default state"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"switch",children:"Switch"}),(0,t.jsx)("div",{children:(0,t.jsx)(d.gN,{name:"switch",children:e=>{let{field:l}=e;return(0,t.jsx)(n.rAg,{id:"switch",...l})}})}),(0,t.jsx)(o,{type:"danger",children:"Ant Switch's onChange is too different from Formik, requires to be fully controlled."})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"select",children:"Select"}),(0,t.jsx)("div",{children:(0,t.jsx)(d.gN,{name:"select",children:e=>{let{field:r}=e;return(0,t.jsx)(n.WPr,{allowClear:!0,id:"select",className:"w-full",defaultValue:l.select,status:"error",...r,options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"}]})}})}),(0,t.jsx)(o,{type:"danger",children:"Ant Select's onChange is too different from Formik, requires to be fully controlled."})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"multiselect",children:"Multiselect"}),(0,t.jsx)("div",{children:(0,t.jsx)(d.gN,{name:"multiselect",children:e=>{let{field:r}=e;return(0,t.jsx)(n.WPr,{mode:"multiple",allowClear:!0,id:"multiselect",className:"w-full",defaultValue:l.multiselect,status:"error",...r,options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"}]})}})}),(0,t.jsx)(o,{type:"danger",children:"Ant Select's onChange is too different from Formik, requires to be fully controlled."})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"tags",children:"Tags"}),(0,t.jsx)("div",{children:(0,t.jsx)(d.gN,{name:"tags",children:e=>{let{field:r}=e;return(0,t.jsx)(n.WPr,{mode:"tags",allowClear:!0,id:"tags",className:"w-full",defaultValue:l.tags,status:"error",...r,options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"}]})}})}),(0,t.jsx)(o,{type:"danger",children:"Ant Select's onChange is too different from Formik, requires to be fully controlled."})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"date",children:"Date"}),(0,t.jsx)("div",{children:(0,t.jsx)(d.gN,{name:"date",children:e=>{let{field:l}=e;return(0,t.jsx)(n.cv2,{id:"date",status:"error",...l})}})}),(0,t.jsx)(o,{type:"danger",children:"Ant DatePicker's onChange is different from Formik, requires to be fully controlled."})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"number",children:"Number"}),(0,t.jsx)("div",{children:(0,t.jsx)(d.gN,{name:"number",children:e=>{let{field:r}=e;return(0,t.jsx)(n.W7D,{id:"number",defaultValue:l.number,status:"error",...r})}})}),(0,t.jsx)(o,{type:"danger",children:"Ant InputNumber's onChange is different from Formik, requires to be fully controlled."})]})]})})]}),(0,t.jsxs)(n.JGx,{span:8,offset:4,children:[(0,t.jsx)(a,{level:4,children:"Controlled Values"}),(0,t.jsx)(n.V4A,{style:{backgroundColor:s().FIDESUI_MINOS,color:s().FIDESUI_CORINTH},children:(0,t.jsx)("pre",{children:(0,t.jsxs)("code",{children:["{\n",Object.keys(l).map(e=>" ".concat(e,": ").concat(l[e],"\n")),"}"]})})})]})]})}});l.default=u}}]);
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2921],{95813:function(e,l,r){r.d(l,{S:function(){return t}});let t={input:"default text",radio:"2",checkbox:!0,switch:!0,select:"2",multiselect:["2"],tags:["1"],date:"",number:12}},12921:function(e,l,r){r.r(l),r.d(l,{FormikSpreadFieldPOC:function(){return u}});var t=r(24246),n=r(13577),i=r(3124),s=r.n(i),d=r(34090),c=r(95813);let{Text:o,Title:a}=n.AntTypography,u=()=>(0,t.jsx)(d.J9,{initialValues:{...c.S},onSubmit:console.log,children:e=>{let{values:l}=e;return(0,t.jsxs)(n.bue,{children:[(0,t.jsxs)(n.JGx,{span:12,children:[(0,t.jsx)(a,{level:2,children:"<Formik> + <Form> + {...field}"}),(0,t.jsxs)("div",{className:"mb-4",children:[(0,t.jsx)(n.j8w,{color:"red",children:"non functional"}),(0,t.jsx)(n.j8w,{color:"red",children:"high effort"})]}),(0,t.jsx)(d.l0,{children:(0,t.jsxs)(n.jqI,{vertical:!0,gap:16,children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"input",children:"Input"}),(0,t.jsx)("div",{children:(0,t.jsx)(d.gN,{name:"input",children:e=>{let{field:l}=e;return(0,t.jsx)(n.uFc,{...l,id:"input",type:"text"})}})})]}),(0,t.jsx)("div",{children:(0,t.jsx)(d.gN,{name:"radio",children:e=>{let{field:l}=e;return(0,t.jsxs)(n.y02.Group,{...l,children:[(0,t.jsx)(n.y02,{value:"1",children:"Radio 1"}),(0,t.jsx)(n.y02,{value:"2",children:"Radio 2"})]})}})}),(0,t.jsxs)("div",{children:[(0,t.jsx)(d.gN,{name:"checkbox",children:e=>{let{field:r}=e;return(0,t.jsx)(n.E_O,{...r,defaultChecked:l.checkbox,children:"Checkbox"})}}),(0,t.jsx)(o,{type:"warning",children:"Requires additional logic to handle default state"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"switch",children:"Switch"}),(0,t.jsx)("div",{children:(0,t.jsx)(d.gN,{name:"switch",children:e=>{let{field:l}=e;return(0,t.jsx)(n.rAg,{id:"switch",...l})}})}),(0,t.jsx)(o,{type:"danger",children:"Ant Switch's onChange is too different from Formik, requires to be fully controlled."})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"select",children:"Select"}),(0,t.jsx)("div",{children:(0,t.jsx)(d.gN,{name:"select",children:e=>{let{field:r}=e;return(0,t.jsx)(n.WPr,{allowClear:!0,id:"select",className:"w-full",defaultValue:l.select,status:"error",...r,options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"}]})}})}),(0,t.jsx)(o,{type:"danger",children:"Ant Select's onChange is too different from Formik, requires to be fully controlled."})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"multiselect",children:"Multiselect"}),(0,t.jsx)("div",{children:(0,t.jsx)(d.gN,{name:"multiselect",children:e=>{let{field:r}=e;return(0,t.jsx)(n.WPr,{mode:"multiple",allowClear:!0,id:"multiselect",className:"w-full",defaultValue:l.multiselect,status:"error",...r,options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"}]})}})}),(0,t.jsx)(o,{type:"danger",children:"Ant Select's onChange is too different from Formik, requires to be fully controlled."})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"tags",children:"Tags"}),(0,t.jsx)("div",{children:(0,t.jsx)(d.gN,{name:"tags",children:e=>{let{field:r}=e;return(0,t.jsx)(n.WPr,{mode:"tags",allowClear:!0,id:"tags",className:"w-full",defaultValue:l.tags,status:"error",...r,options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"}]})}})}),(0,t.jsx)(o,{type:"danger",children:"Ant Select's onChange is too different from Formik, requires to be fully controlled."})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"date",children:"Date"}),(0,t.jsx)("div",{children:(0,t.jsx)(d.gN,{name:"date",children:e=>{let{field:l}=e;return(0,t.jsx)(n.cv2,{id:"date",status:"error",...l})}})}),(0,t.jsx)(o,{type:"danger",children:"Ant DatePicker's onChange is different from Formik, requires to be fully controlled."})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"number",children:"Number"}),(0,t.jsx)("div",{children:(0,t.jsx)(d.gN,{name:"number",children:e=>{let{field:r}=e;return(0,t.jsx)(n.W7D,{id:"number",defaultValue:l.number,status:"error",...r})}})}),(0,t.jsx)(o,{type:"danger",children:"Ant InputNumber's onChange is different from Formik, requires to be fully controlled."})]})]})})]}),(0,t.jsxs)(n.JGx,{span:8,offset:4,children:[(0,t.jsx)(a,{level:4,children:"Controlled Values"}),(0,t.jsx)(n.V4A,{style:{backgroundColor:s().FIDESUI_MINOS,color:s().FIDESUI_CORINTH},children:(0,t.jsx)("pre",{children:(0,t.jsxs)("code",{children:["{\n",Object.keys(l).map(e=>" ".concat(e,": ").concat(l[e],"\n")),"}"]})})})]})]})}});l.default=u}}]);