ethyca-fides 2.73.0rc3__py2.py3-none-any.whl → 2.73.1b0__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 (258) hide show
  1. {ethyca_fides-2.73.0rc3.dist-info → ethyca_fides-2.73.1b0.dist-info}/METADATA +1 -1
  2. {ethyca_fides-2.73.0rc3.dist-info → ethyca_fides-2.73.1b0.dist-info}/RECORD +251 -247
  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/xx_2025_10_17_1603_5093e92e2a5a_add_consent_data_v3_to_the_database.py +72 -0
  7. fides/api/api/v1/endpoints/privacy_request_endpoints.py +27 -0
  8. fides/api/db/database.py +33 -2
  9. fides/api/service/connectors/query_configs/saas_query_config.py +4 -1
  10. fides/api/service/connectors/saas_connector.py +24 -10
  11. fides/common/api/v1/urn_registry.py +1 -0
  12. fides/service/privacy_request/privacy_request_service.py +96 -38
  13. fides/ui-build/static/admin/404.html +1 -1
  14. fides/ui-build/static/admin/_next/static/XSgYbMHjEskI5VguCfcBR/_buildManifest.js +1 -0
  15. fides/ui-build/static/admin/_next/static/chunks/{1099-fa8b82f521b23cce.js → 1099-31f9d973bc287df8.js} +1 -1
  16. fides/ui-build/static/admin/_next/static/chunks/{1115-d7ce851b36722c41.js → 1115-26393b586775ea29.js} +1 -1
  17. fides/ui-build/static/admin/_next/static/chunks/{1437-9dd64c20d38667df.js → 1437-f0a5939b876d9c17.js} +1 -1
  18. fides/ui-build/static/admin/_next/static/chunks/{155-1c80b19f58f44a0c.js → 155-ac6ad9b8dcca4838.js} +1 -1
  19. fides/ui-build/static/admin/_next/static/chunks/{1817-0de0312294019817.js → 1817-e6bc6adb2c7fa009.js} +1 -1
  20. fides/ui-build/static/admin/_next/static/chunks/{1975.6ca0e76b5a3d1955.js → 1975.afe8cad52f904fcf.js} +1 -1
  21. fides/ui-build/static/admin/_next/static/chunks/{2040-a18cc21821e2d121.js → 2040-7c4bf37c65dd7efa.js} +1 -1
  22. fides/ui-build/static/admin/_next/static/chunks/{2397-16820a09e8ebfe33.js → 2397-d015b0f3da9292ea.js} +1 -1
  23. fides/ui-build/static/admin/_next/static/chunks/{2921-a5dac2eacdcc32ff.js → 2921-34a43f2f8f5e5e69.js} +1 -1
  24. fides/ui-build/static/admin/_next/static/chunks/{3377-c2c9eb177bec8719.js → 3377-988ac2f3a2e8d5d4.js} +1 -1
  25. fides/ui-build/static/admin/_next/static/chunks/{3696-21e3dec6c2023875.js → 3696-06bce0f3d97a4253.js} +1 -1
  26. fides/ui-build/static/admin/_next/static/chunks/{3700-a2903cd95b8a27cb.js → 3700-33ae8d975461a592.js} +1 -1
  27. fides/ui-build/static/admin/_next/static/chunks/{3772-bb84842df51d3f3f.js → 3772-9f1713f9d5f97a10.js} +1 -1
  28. fides/ui-build/static/admin/_next/static/chunks/{3873-d759bbe7137ae8c2.js → 3873-a20fdd3e4dc02037.js} +1 -1
  29. fides/ui-build/static/admin/_next/static/chunks/{3923-7f0aa36c9e09cedf.js → 3923-724809b7b01193c5.js} +1 -1
  30. fides/ui-build/static/admin/_next/static/chunks/{401-874303feb3899562.js → 401-7c345d019bb9bcbd.js} +1 -1
  31. fides/ui-build/static/admin/_next/static/chunks/{4496-903c81292ffd8f91.js → 4496-bad79edfbd60c0aa.js} +1 -1
  32. fides/ui-build/static/admin/_next/static/chunks/{4817-d0cc100f259b3c2e.js → 4817-1f3e6ea38625d8d5.js} +1 -1
  33. fides/ui-build/static/admin/_next/static/chunks/{5185-fc171b6acce9f915.js → 5185-950138b6e2ea9189.js} +1 -1
  34. fides/ui-build/static/admin/_next/static/chunks/{5258-cf0d2c4c4d55a94b.js → 5258-99ddc37f9293e654.js} +1 -1
  35. fides/ui-build/static/admin/_next/static/chunks/{5279-8637d735471ec7f1.js → 5279-a5ad59b09569d4a6.js} +1 -1
  36. fides/ui-build/static/admin/_next/static/chunks/{549-2d9bde37e5fe13eb.js → 549-28537a6de666944b.js} +1 -1
  37. fides/ui-build/static/admin/_next/static/chunks/{5643-48a5e0ad8b9fc3f7.js → 5643-3f88087bcb270f9d.js} +1 -1
  38. fides/ui-build/static/admin/_next/static/chunks/{5783-63912bab7f80b0f8.js → 5783-e4683535810bf833.js} +1 -1
  39. fides/ui-build/static/admin/_next/static/chunks/{6277-ec0e3fa4e4614098.js → 6277-0948f689ad31baf5.js} +1 -1
  40. fides/ui-build/static/admin/_next/static/chunks/{6315-79a1506e01f2f92b.js → 6315-14862cf3c0926cc4.js} +1 -1
  41. fides/ui-build/static/admin/_next/static/chunks/{6853-c348f6e95f987cbf.js → 6853-3545785c1264ac62.js} +1 -1
  42. fides/ui-build/static/admin/_next/static/chunks/{6954-c44ac4e70e777c2f.js → 6954-750d97672d7f236c.js} +1 -1
  43. fides/ui-build/static/admin/_next/static/chunks/7059-5bd586186ec0b048.js +1 -0
  44. fides/ui-build/static/admin/_next/static/chunks/{7245-120f536e09decb85.js → 7245-10e52bfd2268d1ea.js} +1 -1
  45. fides/ui-build/static/admin/_next/static/chunks/{7476-4234fb244676ec13.js → 7476-a0cb2b5987d5f06b.js} +1 -1
  46. fides/ui-build/static/admin/_next/static/chunks/{7488-2db0992474f8056e.js → 7488-a3181357c4cce471.js} +1 -1
  47. fides/ui-build/static/admin/_next/static/chunks/{7630-d7bd74d0cfdb22df.js → 7630-a11610c2b31ab2ca.js} +1 -1
  48. fides/ui-build/static/admin/_next/static/chunks/{7773-6dce6187fe2c6984.js → 7773-9ae233109bc64ec2.js} +1 -1
  49. fides/ui-build/static/admin/_next/static/chunks/{796-fae64888b8b2f369.js → 796-e36d610066135f8c.js} +1 -1
  50. fides/ui-build/static/admin/_next/static/chunks/{8011-6e40c969c9fa7d35.js → 8011-da0efcd90c1af2f9.js} +1 -1
  51. fides/ui-build/static/admin/_next/static/chunks/{8212-18d8da0f9208f978.js → 8212-4e17ad3e2b18b1b2.js} +1 -1
  52. fides/ui-build/static/admin/_next/static/chunks/{8373-24379b7d98e6922e.js → 8373-eddc22623b904f77.js} +1 -1
  53. fides/ui-build/static/admin/_next/static/chunks/{9046-6428eac9f38b3886.js → 9046-37cc2a63e11821cf.js} +1 -1
  54. fides/ui-build/static/admin/_next/static/chunks/{9330-540a113903cb3c28.js → 9330-a40d1db55b2a3b38.js} +1 -1
  55. fides/ui-build/static/admin/_next/static/chunks/{9676.704cc210f59d0083.js → 9676.7d029a5383595b69.js} +1 -1
  56. fides/ui-build/static/admin/_next/static/chunks/{9682-a3b2fb1a2df1c948.js → 9682-095307ea3955935a.js} +1 -1
  57. fides/ui-build/static/admin/_next/static/chunks/{9826-aecc5ddec86989dc.js → 9826-a737a9956c1d0905.js} +1 -1
  58. fides/ui-build/static/admin/_next/static/chunks/{9899-303921e3d0697960.js → 9899-977da69f7dcc79a4.js} +1 -1
  59. fides/ui-build/static/admin/_next/static/chunks/{9965-6906ffdaef0f0d69.js → 9965-f175f3cbf6c01945.js} +1 -1
  60. fides/ui-build/static/admin/_next/static/chunks/pages/{404-c31cef0ce3fbeebf.js → 404-eb019192ce498f32.js} +1 -1
  61. fides/ui-build/static/admin/_next/static/chunks/pages/{_app-527b536ec8d40054.js → _app-0390fd020ce63363.js} +62 -62
  62. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/{manual-a5865f42aafbe1f8.js → manual-7081e0e49f67716c.js} +1 -1
  63. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/{multiple-f706664770dd3e7f.js → multiple-a188f84239f4b2a8.js} +1 -1
  64. fides/ui-build/static/admin/_next/static/chunks/pages/{add-systems-3f0d8698f01aabc5.js → add-systems-4fa95c55c0d9a9fa.js} +1 -1
  65. fides/ui-build/static/admin/_next/static/chunks/pages/consent/configure/{add-vendors-fcd031b2b775e4f3.js → add-vendors-4f9cf087fcee87e6.js} +1 -1
  66. fides/ui-build/static/admin/_next/static/chunks/pages/consent/{configure-0bd2eb0110873c4d.js → configure-9af75caefc74eaca.js} +1 -1
  67. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience/{[id]-0dd17c74a6cc17ff.js → [id]-1b02a4991201b7e4.js} +1 -1
  68. fides/ui-build/static/admin/_next/static/chunks/pages/consent/{privacy-experience-ae8dff75e1c6c413.js → privacy-experience-a218f663656c1c1f.js} +1 -1
  69. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{[id]-84ba8b9947b9af0a.js → [id]-8c164c4b8310214e.js} +1 -1
  70. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{new-f03d1d0df4661a33.js → new-db789002d84c8829.js} +1 -1
  71. fides/ui-build/static/admin/_next/static/chunks/pages/consent/{privacy-notices-5a553b4bdbf85aa9.js → privacy-notices-1f8fd945fbc47ddf.js} +1 -1
  72. fides/ui-build/static/admin/_next/static/chunks/pages/consent/{properties-5cba88e6839a087d.js → properties-5cba30eba1e97e56.js} +1 -1
  73. fides/ui-build/static/admin/_next/static/chunks/pages/consent/{reporting-f2690c381c1d1a52.js → reporting-c84cb8f86e537d05.js} +1 -1
  74. fides/ui-build/static/admin/_next/static/chunks/pages/{consent-289d21aa6c42828b.js → consent-614af0a2c2ba966c.js} +1 -1
  75. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/{[projectUrn]-cb56d56b9d918682.js → [projectUrn]-d60761c20382b259.js} +1 -1
  76. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/{projects-ccb66ba6d1ad93fc.js → projects-f4f4a8d135573e7d.js} +1 -1
  77. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/{resources-ecb2d925d75dfe1e.js → resources-aed94957009eb3fd.js} +1 -1
  78. fides/ui-build/static/admin/_next/static/chunks/pages/{data-catalog-75403467491a251b.js → data-catalog-00fde32bfe883f11.js} +1 -1
  79. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/datastore/[monitorId]-40b499229d5c2092.js +1 -0
  80. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/website/[monitorId]/{[systemId]-71cf0b06b3d5a326.js → [systemId]-3f0665ea305feb9a.js} +1 -1
  81. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/website/{[monitorId]-cc6b359fb4968bf0.js → [monitorId]-83aaac4f203d4e1e.js} +1 -1
  82. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center-179cb2673fb04f82.js +1 -0
  83. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{activity-7dded115499a4a4a.js → activity-5cecc3db1b476419.js} +1 -1
  84. fides/ui-build/static/admin/_next/static/chunks/pages/{datamap-d1bb19fe4ef393dc.js → datamap-3b100c44ea9e3988.js} +1 -1
  85. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]/{[...subfieldNames]-58c3f4c0b490264b.js → [...subfieldNames]-5f88280db168083e.js} +1 -1
  86. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/{[collectionName]-74290432e74fcdc5.js → [collectionName]-bfbcf19c28c794ae.js} +1 -1
  87. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/{[datasetId]-8dad45f070a06609.js → [datasetId]-6fbe2b584a509226.js} +1 -1
  88. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/{new-6aed6dc24c3be001.js → new-cc39d61f64dccdc8.js} +1 -1
  89. fides/ui-build/static/admin/_next/static/chunks/pages/{dataset-fdaec997c1b0753f.js → dataset-116b92a622ed7191.js} +1 -1
  90. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/{[id]-63c4805e40673c60.js → [id]-f40921f41ea86a4d.js} +1 -1
  91. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/{new-b5a49743387eecef.js → new-48204230f9b28f9a.js} +1 -1
  92. fides/ui-build/static/admin/_next/static/chunks/pages/{datastore-connection-8f0804d9a38688a4.js → datastore-connection-5c660814b844888d.js} +1 -1
  93. fides/ui-build/static/admin/_next/static/chunks/pages/{index-363b091a4d1d70ad.js → index-1be29ec61e36ca69.js} +1 -1
  94. fides/ui-build/static/admin/_next/static/chunks/pages/integrations/{[id]-3b7f47985452e01d.js → [id]-d9fa9283fcffdbad.js} +1 -1
  95. fides/ui-build/static/admin/_next/static/chunks/pages/{integrations-b0da32fe3564c129.js → integrations-88588fd42ec4b8c6.js} +1 -1
  96. fides/ui-build/static/admin/_next/static/chunks/pages/new-privacy-requests-f5e954e44cac8c21.js +1 -0
  97. fides/ui-build/static/admin/_next/static/chunks/pages/notifications/digests/{[id]-0e4e4e7110362022.js → [id]-aa358be796271bf9.js} +1 -1
  98. fides/ui-build/static/admin/_next/static/chunks/pages/notifications/digests/{new-2e15f6272e9aaeb6.js → new-09b57c415163db68.js} +1 -1
  99. fides/ui-build/static/admin/_next/static/chunks/pages/notifications/{digests-65626dfcfacdc605.js → digests-fc9c9c88e86d73ec.js} +1 -1
  100. fides/ui-build/static/admin/_next/static/chunks/pages/notifications/providers/{[key]-768c4e2f6b05304c.js → [key]-720cde29f81db47f.js} +1 -1
  101. fides/ui-build/static/admin/_next/static/chunks/pages/notifications/providers/{new-2d57a70e4d32e651.js → new-3668866076b53016.js} +1 -1
  102. fides/ui-build/static/admin/_next/static/chunks/pages/notifications/{providers-83f78354fa34bffe.js → providers-617d0754570a09e8.js} +1 -1
  103. fides/ui-build/static/admin/_next/static/chunks/pages/notifications/templates/{[id]-1b31764f520fbbc5.js → [id]-8063dceb32310c85.js} +1 -1
  104. fides/ui-build/static/admin/_next/static/chunks/pages/notifications/templates/{add-template-4c74456b6677bf07.js → add-template-4931c70bee62232f.js} +1 -1
  105. fides/ui-build/static/admin/_next/static/chunks/pages/notifications/{templates-5deb80abd6156f7f.js → templates-e57aba990f23b454.js} +1 -1
  106. fides/ui-build/static/admin/_next/static/chunks/pages/{notifications-8d8716dda9a6f277.js → notifications-93af719dab3bd053.js} +1 -1
  107. fides/ui-build/static/admin/_next/static/chunks/pages/poc/{ant-components-52b1572442a20ab4.js → ant-components-9cfb469de7b4aeab.js} +1 -1
  108. fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{AntForm-a0437ba647d59799.js → AntForm-e715cc654fb6a5cd.js} +1 -1
  109. fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{FormikAntFormItem-87285c544450ec46.js → FormikAntFormItem-72ae299bcb6adae6.js} +1 -1
  110. fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{FormikControlled-57997dbd451a6eed.js → FormikControlled-2337f8c81a766eb0.js} +1 -1
  111. fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{FormikField-65009783e0404153.js → FormikField-0af454f55494f6fa.js} +1 -1
  112. fides/ui-build/static/admin/_next/static/chunks/pages/poc/{forms-eafef007c179340f.js → forms-d1b90ffa996fbd89.js} +1 -1
  113. fides/ui-build/static/admin/_next/static/chunks/pages/poc/{table-migration-7933a824a45d0ee6.js → table-migration-19724b9e0581b96d.js} +1 -1
  114. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/{[id]-27c56466eab98b15.js → [id]-0f0f63b84617792e.js} +1 -1
  115. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/{storage-16f77a6291bb02fe.js → storage-696222c67a086ddd.js} +1 -1
  116. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/{configure-d2b3293ab496f7bc.js → configure-fa82cffba448ccd8.js} +1 -1
  117. fides/ui-build/static/admin/_next/static/chunks/pages/{privacy-requests-af4f48d10926e4a4.js → privacy-requests-6d9569f5c2da2aa4.js} +1 -1
  118. fides/ui-build/static/admin/_next/static/chunks/pages/properties/{[id]-dd3c3d780533a9c2.js → [id]-bc1c289647e52c48.js} +1 -1
  119. fides/ui-build/static/admin/_next/static/chunks/pages/properties/{add-property-d1af260c3ddbf68b.js → add-property-cbfaa23d96f5ed0b.js} +1 -1
  120. fides/ui-build/static/admin/_next/static/chunks/pages/{properties-9bb7fe3577402008.js → properties-a15a3fd0ed88f39c.js} +1 -1
  121. fides/ui-build/static/admin/_next/static/chunks/pages/reporting/{datamap-33ce744d07982c0f.js → datamap-3d499c861a0c2913.js} +1 -1
  122. fides/ui-build/static/admin/_next/static/chunks/pages/sandbox/privacy-notices-afe921f6e2a526fb.js +1 -0
  123. fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent/[configuration_id]/{[purpose_id]-35626e9d8e0a3ca2.js → [purpose_id]-971b628eec9d84d3.js} +1 -1
  124. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{consent-39b5142099ed8705.js → consent-1702f4d95e93c1a2.js} +1 -1
  125. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{custom-fields-64c638ea33bb3ff9.js → custom-fields-181b9b545ad38141.js} +1 -1
  126. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{domain-records-3843fbaf5bc433f1.js → domain-records-3b87002753b23ca5.js} +1 -1
  127. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{domains-ea549fabce96fde4.js → domains-aacd9d0ad47082d4.js} +1 -1
  128. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{email-templates-0fe318a9dfc1f593.js → email-templates-3cdd0b39901190ba.js} +1 -1
  129. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{locations-c42c856510cad6fd.js → locations-5763dd57a6e15292.js} +1 -1
  130. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{organization-e4c552a5797c3fa5.js → organization-2d98e0170bc33490.js} +1 -1
  131. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{privacy-requests-2790d31b59cc3c74.js → privacy-requests-084a2b4431d35322.js} +1 -1
  132. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{regulations-3c608512c415fca4.js → regulations-b7c0d3b1b754e70f.js} +1 -1
  133. fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]/{test-datasets-e0e1a5142e41e9f2.js → test-datasets-7e62b3024a7c668c.js} +1 -1
  134. fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/{[id]-9e815520adb3e580.js → [id]-59c89489fa32a4cb.js} +1 -1
  135. fides/ui-build/static/admin/_next/static/chunks/pages/{systems-d8ce572ad07ed28c.js → systems-1db858c1a3d0fcd7.js} +1 -1
  136. fides/ui-build/static/admin/_next/static/chunks/pages/taxonomy-3248059d6f6060e6.js +1 -0
  137. fides/ui-build/static/admin/_next/static/chunks/pages/user-management/profile/{[id]-75d96422db98196f.js → [id]-0f66bab70f303524.js} +1 -1
  138. fides/ui-build/static/admin/_next/static/chunks/pages/{user-management-598f98fd88505e1e.js → user-management-f172e96aed81651b.js} +1 -1
  139. fides/ui-build/static/admin/_next/static/chunks/{webpack-0a3b419ab682b8f9.js → webpack-c2c11809187b9f84.js} +1 -1
  140. fides/ui-build/static/admin/_next/static/css/598d88c40c789cbd.css +1 -0
  141. fides/ui-build/static/admin/_next/static/css/d41a048a166d50e4.css +1 -0
  142. fides/ui-build/static/admin/add-systems/manual.html +1 -1
  143. fides/ui-build/static/admin/add-systems/multiple.html +1 -1
  144. fides/ui-build/static/admin/add-systems.html +1 -1
  145. fides/ui-build/static/admin/consent/configure/add-vendors.html +1 -1
  146. fides/ui-build/static/admin/consent/configure.html +1 -1
  147. fides/ui-build/static/admin/consent/privacy-experience/[id].html +1 -1
  148. fides/ui-build/static/admin/consent/privacy-experience/new.html +1 -1
  149. fides/ui-build/static/admin/consent/privacy-experience.html +1 -1
  150. fides/ui-build/static/admin/consent/privacy-notices/[id].html +1 -1
  151. fides/ui-build/static/admin/consent/privacy-notices/new.html +1 -1
  152. fides/ui-build/static/admin/consent/privacy-notices.html +1 -1
  153. fides/ui-build/static/admin/consent/properties.html +1 -1
  154. fides/ui-build/static/admin/consent/reporting.html +1 -1
  155. fides/ui-build/static/admin/consent.html +1 -1
  156. fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn].html +1 -1
  157. fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn].html +1 -1
  158. fides/ui-build/static/admin/data-catalog/[systemId]/projects.html +1 -1
  159. fides/ui-build/static/admin/data-catalog/[systemId]/resources/[resourceUrn].html +1 -1
  160. fides/ui-build/static/admin/data-catalog/[systemId]/resources.html +1 -1
  161. fides/ui-build/static/admin/data-catalog.html +1 -1
  162. fides/ui-build/static/admin/data-discovery/action-center/datastore/[monitorId].html +1 -1
  163. fides/ui-build/static/admin/data-discovery/action-center/datastore.html +1 -1
  164. fides/ui-build/static/admin/data-discovery/action-center/website/[monitorId]/[systemId].html +1 -1
  165. fides/ui-build/static/admin/data-discovery/action-center/website/[monitorId].html +1 -1
  166. fides/ui-build/static/admin/data-discovery/action-center/website.html +1 -1
  167. fides/ui-build/static/admin/data-discovery/action-center.html +1 -1
  168. fides/ui-build/static/admin/data-discovery/activity.html +1 -1
  169. fides/ui-build/static/admin/data-discovery/detection/[resourceUrn].html +1 -1
  170. fides/ui-build/static/admin/data-discovery/detection.html +1 -1
  171. fides/ui-build/static/admin/data-discovery/discovery/[resourceUrn].html +1 -1
  172. fides/ui-build/static/admin/data-discovery/discovery.html +1 -1
  173. fides/ui-build/static/admin/datamap.html +1 -1
  174. fides/ui-build/static/admin/dataset/[datasetId]/[collectionName]/[...subfieldNames].html +1 -1
  175. fides/ui-build/static/admin/dataset/[datasetId]/[collectionName].html +1 -1
  176. fides/ui-build/static/admin/dataset/[datasetId].html +1 -1
  177. fides/ui-build/static/admin/dataset/new.html +1 -1
  178. fides/ui-build/static/admin/dataset.html +1 -1
  179. fides/ui-build/static/admin/datastore-connection/[id].html +1 -1
  180. fides/ui-build/static/admin/datastore-connection/new.html +1 -1
  181. fides/ui-build/static/admin/datastore-connection.html +1 -1
  182. fides/ui-build/static/admin/index.html +1 -1
  183. fides/ui-build/static/admin/integrations/[id].html +1 -1
  184. fides/ui-build/static/admin/integrations.html +1 -1
  185. fides/ui-build/static/admin/login/[provider].html +1 -1
  186. fides/ui-build/static/admin/login.html +1 -1
  187. fides/ui-build/static/admin/new-privacy-requests.html +1 -1
  188. fides/ui-build/static/admin/notifications/digests/[id].html +1 -1
  189. fides/ui-build/static/admin/notifications/digests/new.html +1 -1
  190. fides/ui-build/static/admin/notifications/digests.html +1 -1
  191. fides/ui-build/static/admin/notifications/providers/[key].html +1 -1
  192. fides/ui-build/static/admin/notifications/providers/new.html +1 -1
  193. fides/ui-build/static/admin/notifications/providers.html +1 -1
  194. fides/ui-build/static/admin/notifications/templates/[id].html +1 -1
  195. fides/ui-build/static/admin/notifications/templates/add-template.html +1 -1
  196. fides/ui-build/static/admin/notifications/templates.html +1 -1
  197. fides/ui-build/static/admin/notifications.html +1 -1
  198. fides/ui-build/static/admin/poc/ant-components.html +1 -1
  199. fides/ui-build/static/admin/poc/form-experiments/AntForm.html +1 -1
  200. fides/ui-build/static/admin/poc/form-experiments/FormikAntFormItem.html +1 -1
  201. fides/ui-build/static/admin/poc/form-experiments/FormikControlled.html +1 -1
  202. fides/ui-build/static/admin/poc/form-experiments/FormikField.html +1 -1
  203. fides/ui-build/static/admin/poc/form-experiments/FormikSpreadField.html +1 -1
  204. fides/ui-build/static/admin/poc/forms.html +1 -1
  205. fides/ui-build/static/admin/poc/table-migration.html +1 -1
  206. fides/ui-build/static/admin/privacy-requests/[id].html +1 -1
  207. fides/ui-build/static/admin/privacy-requests/configure/storage.html +1 -1
  208. fides/ui-build/static/admin/privacy-requests/configure.html +1 -1
  209. fides/ui-build/static/admin/privacy-requests.html +1 -1
  210. fides/ui-build/static/admin/properties/[id].html +1 -1
  211. fides/ui-build/static/admin/properties/add-property.html +1 -1
  212. fides/ui-build/static/admin/properties.html +1 -1
  213. fides/ui-build/static/admin/reporting/datamap.html +1 -1
  214. fides/ui-build/static/admin/sandbox/privacy-notices.html +1 -0
  215. fides/ui-build/static/admin/settings/about/alpha.html +1 -1
  216. fides/ui-build/static/admin/settings/about.html +1 -1
  217. fides/ui-build/static/admin/settings/consent/[configuration_id]/[purpose_id].html +1 -1
  218. fides/ui-build/static/admin/settings/consent.html +1 -1
  219. fides/ui-build/static/admin/settings/custom-fields/[id].html +1 -1
  220. fides/ui-build/static/admin/settings/custom-fields/new.html +1 -1
  221. fides/ui-build/static/admin/settings/custom-fields.html +1 -1
  222. fides/ui-build/static/admin/settings/domain-records.html +1 -1
  223. fides/ui-build/static/admin/settings/domains.html +1 -1
  224. fides/ui-build/static/admin/settings/email-templates.html +1 -1
  225. fides/ui-build/static/admin/settings/locations.html +1 -1
  226. fides/ui-build/static/admin/settings/organization.html +1 -1
  227. fides/ui-build/static/admin/settings/privacy-requests.html +1 -1
  228. fides/ui-build/static/admin/settings/regulations.html +1 -1
  229. fides/ui-build/static/admin/systems/configure/[id]/test-datasets.html +1 -1
  230. fides/ui-build/static/admin/systems/configure/[id].html +1 -1
  231. fides/ui-build/static/admin/systems.html +1 -1
  232. fides/ui-build/static/admin/taxonomy.html +1 -1
  233. fides/ui-build/static/admin/user-management/new.html +1 -1
  234. fides/ui-build/static/admin/user-management/profile/[id].html +1 -1
  235. fides/ui-build/static/admin/user-management.html +1 -1
  236. fides/ui-build/static/admin/_next/static/chunks/7059-3f2641e3130b4ef8.js +0 -1
  237. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/datastore/[monitorId]-e46e017a3919f94e.js +0 -1
  238. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center-cbff5db86e6951c4.js +0 -1
  239. fides/ui-build/static/admin/_next/static/chunks/pages/new-privacy-requests-d1152cbc3c1bbbbb.js +0 -1
  240. fides/ui-build/static/admin/_next/static/chunks/pages/taxonomy-0cae23a599830708.js +0 -1
  241. fides/ui-build/static/admin/_next/static/css/919f947a862d28cd.css +0 -1
  242. fides/ui-build/static/admin/_next/static/iSH8D4nDpVZCfB-o7en4n/_buildManifest.js +0 -1
  243. {ethyca_fides-2.73.0rc3.dist-info → ethyca_fides-2.73.1b0.dist-info}/WHEEL +0 -0
  244. {ethyca_fides-2.73.0rc3.dist-info → ethyca_fides-2.73.1b0.dist-info}/entry_points.txt +0 -0
  245. {ethyca_fides-2.73.0rc3.dist-info → ethyca_fides-2.73.1b0.dist-info}/licenses/LICENSE +0 -0
  246. {ethyca_fides-2.73.0rc3.dist-info → ethyca_fides-2.73.1b0.dist-info}/top_level.txt +0 -0
  247. /fides/ui-build/static/admin/_next/static/{iSH8D4nDpVZCfB-o7en4n → XSgYbMHjEskI5VguCfcBR}/_ssgManifest.js +0 -0
  248. /fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]/{[resourceUrn]-5d133ec635cd716c.js → [resourceUrn]-32bd7a7c990e5bf6.js} +0 -0
  249. /fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/resources/{[resourceUrn]-9d8efe43b69a285d.js → [resourceUrn]-b07a0707f8c2ec0d.js} +0 -0
  250. /fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/{datastore-1b0ed3b3ceedfd94.js → datastore-4498881c26f1458d.js} +0 -0
  251. /fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/{website-60ad14c879b4fe27.js → website-5b3e0009d442bc3f.js} +0 -0
  252. /fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/detection/{[resourceUrn]-2df143c1e1f79040.js → [resourceUrn]-b072cf25aefc98f6.js} +0 -0
  253. /fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{detection-e37c800313e2a422.js → detection-fd3e8817d8e6dee4.js} +0 -0
  254. /fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/discovery/{[resourceUrn]-7022ca5fa834b633.js → [resourceUrn]-146624cf59792bf7.js} +0 -0
  255. /fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{discovery-6178e22397f20f92.js → discovery-9695cc9c85592ec5.js} +0 -0
  256. /fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields/{[id]-b5140de4431a7ff5.js → [id]-8634aae3259def37.js} +0 -0
  257. /fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields/{new-dcc16459e754fbbd.js → new-2d9dcca17965dc57.js} +0 -0
  258. /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([[4502],{22814:function(e,i,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/notifications/digests/[id]",function(){return t(31363)}])},31363:function(e,i,t){"use strict";t.r(i);var n=t(24246),s=t(87949),d=t(86677),r=t(77213),a=t(77830),o=t(58754),u=t(19904),_=t(4496),c=t(40822),l=t(65735);i.default=()=>{let{id:e}=(0,d.useRouter)().query,{data:i,isLoading:t}=(0,c.nZ)({config_id:e},{skip:!e});return t?(0,n.jsx)(r.Z,{title:"Edit digest",children:(0,n.jsx)(s.xuv,{className:"flex justify-center py-12",children:(0,n.jsx)(s.$jN,{})})}):(0,n.jsx)(r.Z,{title:"Edit digest",children:(0,n.jsx)(u.ZP,{scopes:[l.Sh.DIGEST_CONFIG_CREATE,l.Sh.DIGEST_CONFIG_UPDATE],children:(0,n.jsxs)(s.xuv,{"data-testid":"edit-digest-config",children:[(0,n.jsx)(o.Z,{heading:(null==i?void 0:i.name)||"Edit Digest Configuration",breadcrumbItems:[{title:"Digests",href:a.DN},{title:(null==i?void 0:i.name)||"Edit"}]}),(0,n.jsx)(_.Z,{initialValues:i?{id:i.id,name:i.name,digest_type:i.digest_type,enabled:i.enabled,messaging_service_type:i.messaging_service_type,cron_expression:i.cron_expression,timezone:i.timezone}:void 0,isLoading:t})]})})})}}},function(e){e.O(0,[8212,4496,2888,9774,179],function(){return e(e.s=22814)}),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4502],{22814:function(e,i,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/notifications/digests/[id]",function(){return t(31363)}])},31363:function(e,i,t){"use strict";t.r(i);var n=t(24246),s=t(98227),d=t(86677),r=t(77213),a=t(77830),o=t(58754),u=t(19904),_=t(4496),c=t(40822),l=t(65735);i.default=()=>{let{id:e}=(0,d.useRouter)().query,{data:i,isLoading:t}=(0,c.nZ)({config_id:e},{skip:!e});return t?(0,n.jsx)(r.Z,{title:"Edit digest",children:(0,n.jsx)(s.xuv,{className:"flex justify-center py-12",children:(0,n.jsx)(s.$jN,{})})}):(0,n.jsx)(r.Z,{title:"Edit digest",children:(0,n.jsx)(u.ZP,{scopes:[l.Sh.DIGEST_CONFIG_CREATE,l.Sh.DIGEST_CONFIG_UPDATE],children:(0,n.jsxs)(s.xuv,{"data-testid":"edit-digest-config",children:[(0,n.jsx)(o.Z,{heading:(null==i?void 0:i.name)||"Edit Digest Configuration",breadcrumbItems:[{title:"Digests",href:a.DN},{title:(null==i?void 0:i.name)||"Edit"}]}),(0,n.jsx)(_.Z,{initialValues:i?{id:i.id,name:i.name,digest_type:i.digest_type,enabled:i.enabled,messaging_service_type:i.messaging_service_type,cron_expression:i.cron_expression,timezone:i.timezone}:void 0,isLoading:t})]})})})}}},function(e){e.O(0,[8212,4496,2888,9774,179],function(){return e(e.s=22814)}),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3524],{98763:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/notifications/digests/new",function(){return s(48799)}])},48799:function(e,t,s){"use strict";s.r(t);var i=s(24246),n=s(87949),r=s(77213),c=s(77830),a=s(58754),u=s(19904),d=s(4496),l=s(65735);let{Text:o}=n.AntTypography;t.default=()=>(0,i.jsx)(r.Z,{title:"Create digest",children:(0,i.jsx)(u.ZP,{scopes:[l.Sh.DIGEST_CONFIG_CREATE,l.Sh.DIGEST_CONFIG_UPDATE],children:(0,i.jsxs)(n.xuv,{"data-testid":"new-digest-config",children:[(0,i.jsx)(a.Z,{heading:"Create digest",breadcrumbItems:[{title:"Digests",href:c.DN},{title:"New"}]}),(0,i.jsx)(o,{className:"mb-6 block text-sm",children:"Configure a new digest to receive email summaries on a regular schedule."}),(0,i.jsx)(d.Z,{})]})})})}},function(e){e.O(0,[8212,4496,2888,9774,179],function(){return e(e.s=98763)}),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3524],{98763:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/notifications/digests/new",function(){return s(48799)}])},48799:function(e,t,s){"use strict";s.r(t);var i=s(24246),n=s(98227),r=s(77213),c=s(77830),a=s(58754),u=s(19904),d=s(4496),l=s(65735);let{Text:o}=n.AntTypography;t.default=()=>(0,i.jsx)(r.Z,{title:"Create digest",children:(0,i.jsx)(u.ZP,{scopes:[l.Sh.DIGEST_CONFIG_CREATE,l.Sh.DIGEST_CONFIG_UPDATE],children:(0,i.jsxs)(n.xuv,{"data-testid":"new-digest-config",children:[(0,i.jsx)(a.Z,{heading:"Create digest",breadcrumbItems:[{title:"Digests",href:c.DN},{title:"New"}]}),(0,i.jsx)(o,{className:"mb-6 block text-sm",children:"Configure a new digest to receive email summaries on a regular schedule."}),(0,i.jsx)(d.Z,{})]})})})}},function(e){e.O(0,[8212,4496,2888,9774,179],function(){return e(e.s=98763)}),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7984],{69453:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/notifications/digests",function(){return s(80181)}])},129:function(e,t,s){"use strict";var i=s(24246),a=s(87949),n=s(86677),r=s(16134),l=s(25980),d=s(77830),c=s(65735),o=s(31793);t.Z=()=>{let e=(0,n.useRouter)(),t=e.pathname,{plus:s}=(0,l.hz)(),u="providers";t.startsWith(d.AD)?u="providers":t.startsWith(d.Wi)?u="templates":t.startsWith(d.DN)&&(u="digests");let h=[{key:"templates",label:"Templates",requiresPlus:!0,scopes:[c.Sh.MESSAGING_TEMPLATE_UPDATE],path:d.Wi},{key:"digests",label:"Digests",requiresPlus:!0,scopes:[c.Sh.DIGEST_CONFIG_READ],path:d.DN},{key:"providers",label:"Providers",requiresPlus:!1,scopes:[c.Sh.MESSAGING_CREATE_OR_UPDATE],path:d.AD}];s||(h=h.filter(e=>!e.requiresPlus));let p=(0,r.C)(o.uu);h=h.filter(e=>e.scopes.some(e=>p.includes(e)));let g=t=>{let s=h.find(e=>e.key===t);s&&e.push(s.path)},_=h.map(e=>({label:e.label,key:e.key}));return(0,i.jsx)("div",{className:"mb-6",children:(0,i.jsx)(a.Niu,{mode:"horizontal",selectedKeys:[u],onClick:e=>{let{key:t}=e;return g(t)},items:_})})}},80181:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return E}});var i=s(24246),a=s(87949),n=s(77213),r=s(129),l=s(58754),d=s(86677),c=s(812),o=s(77830),u=s(19904),h=s(65735),p=s(35493),g=s(40822),_=s(81179),m=s(27378);let x=()=>{var e;let t=(0,d.useRouter)(),[s,i]=(0,m.useState)(""),[a,n]=(0,m.useState)(1),[r,l]=(0,m.useState)(50),c=h.tB.MANUAL_TASKS,p=(0,u.Tg)([h.Sh.DIGEST_CONFIG_CREATE,h.Sh.DIGEST_CONFIG_UPDATE]),_=(0,u.Tg)([h.Sh.DIGEST_CONFIG_DELETE]),{data:x,isLoading:j,refetch:y}=(0,g.Q6)({digest_config_type:c,page:a,size:r}),[E,{isLoading:f}]=(0,g.yG)(),[S,T]=(0,m.useState)(!1),[v,C]=(0,m.useState)(null),N=(0,m.useMemo)(()=>{if(!(null==x?void 0:x.items))return[];if(!s)return x.items;let e=s.toLowerCase();return x.items.filter(t=>{var s;return t.name.toLowerCase().includes(e)||(null===(s=t.description)||void 0===s?void 0:s.toLowerCase().includes(e))})},[null==x?void 0:x.items,s]),A=async()=>{v&&(await E({config_id:v.id,digest_config_type:c}),T(!1),C(null),y())};return{data:N,total:null!==(e=null==x?void 0:x.total)&&void 0!==e?e:0,isLoading:j,page:a,pageSize:r,searchQuery:s,setPage:n,setPageSize:l,setSearchQuery:i,refetch:y,handleEdit:e=>{t.push(o.xn.replace("[id]",e.id))},handleDeleteClick:e=>{C(e),T(!0)},deleteModalOpen:S,configToDelete:v,confirmDelete:A,cancelDelete:()=>{T(!1),C(null)},isDeleting:f,canUpdate:p,canDelete:_}},{Search:j}=a.AntInput;var y=()=>{let e=(0,d.useRouter)(),[t,s]=a.Pg3.useMessage(),{data:n,total:r,isLoading:l,page:m,pageSize:y,searchQuery:E,setPage:f,setPageSize:S,setSearchQuery:T,handleEdit:v,canUpdate:C}=x(),[N]=(0,g.zb)(),A=(0,u.Tg)([h.Sh.DIGEST_CONFIG_CREATE]),w=async e=>{let s=await N({config_id:e.id,digest_config_type:h.tB.MANUAL_TASKS,data:{name:e.name,description:e.description,digest_type:e.digest_type,enabled:!e.enabled,messaging_service_type:e.messaging_service_type,cron_expression:e.cron_expression,timezone:e.timezone,config_metadata:e.config_metadata}});if((0,c.D4)(s)){t.error((0,c.e$)(s.error));return}t.success('Digest "'.concat(e.name,'" ').concat(e.enabled?"disabled":"enabled"," successfully"))};return(0,i.jsxs)("div",{children:[s,(0,i.jsxs)(a.jqI,{justify:"space-between",align:"center",className:"mb-4",children:[(0,i.jsx)("div",{className:"w-1/3",children:(0,i.jsx)(j,{placeholder:"Search digests...",allowClear:!0,value:E,onChange:e=>T(e.target.value),"data-testid":"search-input"})}),A&&(0,i.jsx)(a.wpx,{type:"primary",onClick:()=>{e.push(o.dx)},"data-testid":"add-digest-btn",children:"Create digest"})]}),(0,i.jsx)(a.krs,{loading:l,itemLayout:"horizontal",dataSource:n,locale:{emptyText:(0,i.jsx)("div",{className:"px-4 py-8 text-center",children:(0,i.jsxs)(a.AntTypography.Paragraph,{type:"secondary",children:["No digest configurations yet. ",(0,i.jsx)("br",{}),(0,i.jsx)(u.ZP,{scopes:[h.Sh.DIGEST_CONFIG_CREATE],children:'Click "Create digest" to get started.'})]})})},renderItem:e=>(0,i.jsxs)(a.krs.Item,{actions:C?[(0,i.jsx)(a.wpx,{type:"link",onClick:()=>v(e),"data-testid":"edit-list-btn",className:"px-1",children:"Edit"},"edit")]:[],children:[(0,i.jsx)(a.krs.Item.Meta,{title:e.name,description:(0,i.jsx)(a.vyj,{direction:"vertical",size:4,children:(0,i.jsxs)(a.vyj,{size:4,children:[(0,i.jsx)(a.j8w,{children:p.Um[e.digest_type]}),(0,i.jsx)(a.j8w,{children:p.oU[e.messaging_service_type]})]})})}),(0,i.jsxs)(a.jqI,{align:"center",gap:24,children:[(0,i.jsx)(a.AntTypography.Text,{children:(0,_.uw)(e.cron_expression)}),C&&(0,i.jsx)(a.rAg,{checked:e.enabled,onChange:()=>w(e),size:"small","data-testid":"toggle-enabled-switch"})]})]},e.id)}),r>y&&(0,i.jsx)(a.jqI,{justify:"end",className:"mt-4",children:(0,i.jsx)(a.B7X,{current:m,total:r,pageSize:y,onChange:(e,t)=>{f(e),t!==y&&S(t)},showSizeChanger:!0,showTotal:e=>"Total ".concat(e," items")})})]})},E=()=>(0,i.jsx)(n.Z,{title:"Notifications",children:(0,i.jsxs)(a.xuv,{"data-testid":"digests-management",children:[(0,i.jsx)(l.Z,{heading:"Notifications"}),(0,i.jsx)(r.Z,{}),(0,i.jsx)(a.xuv,{maxWidth:"1200px",children:(0,i.jsx)(y,{})})]})})}},function(e){e.O(0,[8212,2888,9774,179],function(){return e(e.s=69453)}),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7984],{69453:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/notifications/digests",function(){return s(80181)}])},129:function(e,t,s){"use strict";var i=s(24246),a=s(98227),n=s(86677),r=s(16134),l=s(25980),d=s(77830),c=s(65735),o=s(31793);t.Z=()=>{let e=(0,n.useRouter)(),t=e.pathname,{plus:s}=(0,l.hz)(),u="providers";t.startsWith(d.AD)?u="providers":t.startsWith(d.Wi)?u="templates":t.startsWith(d.DN)&&(u="digests");let h=[{key:"templates",label:"Templates",requiresPlus:!0,scopes:[c.Sh.MESSAGING_TEMPLATE_UPDATE],path:d.Wi},{key:"digests",label:"Digests",requiresPlus:!0,scopes:[c.Sh.DIGEST_CONFIG_READ],path:d.DN},{key:"providers",label:"Providers",requiresPlus:!1,scopes:[c.Sh.MESSAGING_CREATE_OR_UPDATE],path:d.AD}];s||(h=h.filter(e=>!e.requiresPlus));let p=(0,r.C)(o.uu);h=h.filter(e=>e.scopes.some(e=>p.includes(e)));let g=t=>{let s=h.find(e=>e.key===t);s&&e.push(s.path)},_=h.map(e=>({label:e.label,key:e.key}));return(0,i.jsx)("div",{className:"mb-6",children:(0,i.jsx)(a.Niu,{mode:"horizontal",selectedKeys:[u],onClick:e=>{let{key:t}=e;return g(t)},items:_})})}},80181:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return E}});var i=s(24246),a=s(98227),n=s(77213),r=s(129),l=s(58754),d=s(86677),c=s(812),o=s(77830),u=s(19904),h=s(65735),p=s(35493),g=s(40822),_=s(81179),m=s(27378);let x=()=>{var e;let t=(0,d.useRouter)(),[s,i]=(0,m.useState)(""),[a,n]=(0,m.useState)(1),[r,l]=(0,m.useState)(50),c=h.tB.MANUAL_TASKS,p=(0,u.Tg)([h.Sh.DIGEST_CONFIG_CREATE,h.Sh.DIGEST_CONFIG_UPDATE]),_=(0,u.Tg)([h.Sh.DIGEST_CONFIG_DELETE]),{data:x,isLoading:j,refetch:y}=(0,g.Q6)({digest_config_type:c,page:a,size:r}),[E,{isLoading:f}]=(0,g.yG)(),[S,T]=(0,m.useState)(!1),[v,C]=(0,m.useState)(null),N=(0,m.useMemo)(()=>{if(!(null==x?void 0:x.items))return[];if(!s)return x.items;let e=s.toLowerCase();return x.items.filter(t=>{var s;return t.name.toLowerCase().includes(e)||(null===(s=t.description)||void 0===s?void 0:s.toLowerCase().includes(e))})},[null==x?void 0:x.items,s]),A=async()=>{v&&(await E({config_id:v.id,digest_config_type:c}),T(!1),C(null),y())};return{data:N,total:null!==(e=null==x?void 0:x.total)&&void 0!==e?e:0,isLoading:j,page:a,pageSize:r,searchQuery:s,setPage:n,setPageSize:l,setSearchQuery:i,refetch:y,handleEdit:e=>{t.push(o.xn.replace("[id]",e.id))},handleDeleteClick:e=>{C(e),T(!0)},deleteModalOpen:S,configToDelete:v,confirmDelete:A,cancelDelete:()=>{T(!1),C(null)},isDeleting:f,canUpdate:p,canDelete:_}},{Search:j}=a.AntInput;var y=()=>{let e=(0,d.useRouter)(),[t,s]=a.Pg3.useMessage(),{data:n,total:r,isLoading:l,page:m,pageSize:y,searchQuery:E,setPage:f,setPageSize:S,setSearchQuery:T,handleEdit:v,canUpdate:C}=x(),[N]=(0,g.zb)(),A=(0,u.Tg)([h.Sh.DIGEST_CONFIG_CREATE]),w=async e=>{let s=await N({config_id:e.id,digest_config_type:h.tB.MANUAL_TASKS,data:{name:e.name,description:e.description,digest_type:e.digest_type,enabled:!e.enabled,messaging_service_type:e.messaging_service_type,cron_expression:e.cron_expression,timezone:e.timezone,config_metadata:e.config_metadata}});if((0,c.D4)(s)){t.error((0,c.e$)(s.error));return}t.success('Digest "'.concat(e.name,'" ').concat(e.enabled?"disabled":"enabled"," successfully"))};return(0,i.jsxs)("div",{children:[s,(0,i.jsxs)(a.jqI,{justify:"space-between",align:"center",className:"mb-4",children:[(0,i.jsx)("div",{className:"w-1/3",children:(0,i.jsx)(j,{placeholder:"Search digests...",allowClear:!0,value:E,onChange:e=>T(e.target.value),"data-testid":"search-input"})}),A&&(0,i.jsx)(a.wpx,{type:"primary",onClick:()=>{e.push(o.dx)},"data-testid":"add-digest-btn",children:"Create digest"})]}),(0,i.jsx)(a.krs,{loading:l,itemLayout:"horizontal",dataSource:n,locale:{emptyText:(0,i.jsx)("div",{className:"px-4 py-8 text-center",children:(0,i.jsxs)(a.AntTypography.Paragraph,{type:"secondary",children:["No digest configurations yet. ",(0,i.jsx)("br",{}),(0,i.jsx)(u.ZP,{scopes:[h.Sh.DIGEST_CONFIG_CREATE],children:'Click "Create digest" to get started.'})]})})},renderItem:e=>(0,i.jsxs)(a.krs.Item,{actions:C?[(0,i.jsx)(a.wpx,{type:"link",onClick:()=>v(e),"data-testid":"edit-list-btn",className:"px-1",children:"Edit"},"edit")]:[],children:[(0,i.jsx)(a.krs.Item.Meta,{title:e.name,description:(0,i.jsx)(a.vyj,{direction:"vertical",size:4,children:(0,i.jsxs)(a.vyj,{size:4,children:[(0,i.jsx)(a.j8w,{children:p.Um[e.digest_type]}),(0,i.jsx)(a.j8w,{children:p.oU[e.messaging_service_type]})]})})}),(0,i.jsxs)(a.jqI,{align:"center",gap:24,children:[(0,i.jsx)(a.AntTypography.Text,{children:(0,_.uw)(e.cron_expression)}),C&&(0,i.jsx)(a.rAg,{checked:e.enabled,onChange:()=>w(e),size:"small","data-testid":"toggle-enabled-switch"})]})]},e.id)}),r>y&&(0,i.jsx)(a.jqI,{justify:"end",className:"mt-4",children:(0,i.jsx)(a.B7X,{current:m,total:r,pageSize:y,onChange:(e,t)=>{f(e),t!==y&&S(t)},showSizeChanger:!0,showTotal:e=>"Total ".concat(e," items")})})]})},E=()=>(0,i.jsx)(n.Z,{title:"Notifications",children:(0,i.jsxs)(a.xuv,{"data-testid":"digests-management",children:[(0,i.jsx)(l.Z,{heading:"Notifications"}),(0,i.jsx)(r.Z,{}),(0,i.jsx)(a.xuv,{maxWidth:"1200px",children:(0,i.jsx)(y,{})})]})})}},function(e){e.O(0,[8212,2888,9774,179],function(){return e(e.s=69453)}),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[77],{91971:function(e,i,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/notifications/providers/[key]",function(){return n(75474)}])},75474:function(e,i,n){"use strict";n.r(i),n.d(i,{default:function(){return g}});var t=n(24246),r=n(86677),s=n(77213),c=n(90980),o=n(77830),d=n(87949),u=n(27378),l=n(17245),a=n(90710),f=n(42478),x=n(10792);let h=e=>{let{configKey:i}=e,{handleError:n}=(0,l.HK)(),{data:r,isLoading:s,error:c}=(0,f.FU)({key:i});if((0,u.useEffect)(()=>{c&&n(c)},[c,n]),s)return(0,t.jsx)(d.xuv,{display:"flex",justifyContent:"center",alignItems:"center",height:"200px",children:(0,t.jsx)(d.$jN,{})});if(!r)return(0,t.jsx)(d.V4A,{children:(0,t.jsxs)(d.xvT,{color:"red.500",children:["Messaging configuration not found for key: ",i]})});let o=r.service_type;return(0,t.jsxs)(d.xuv,{children:[(0,t.jsx)(d.X6q,{fontSize:"2xl",fontWeight:"semibold",mb:6,children:"Edit messaging provider"}),Object.values(a.q).includes(o)?(0,t.jsx)(x.Z,{configKey:i,initialProviderType:o}):(0,t.jsxs)(d.xvT,{color:"red.500",children:["Unsupported service type: ",o]})]})};var g=()=>{let{key:e}=(0,r.useRouter)().query;return e&&"string"==typeof e?(0,t.jsxs)(s.Z,{title:"Edit Messaging Provider - ".concat(e),children:[(0,t.jsx)(c.Z,{backPath:o.AD}),(0,t.jsx)(h,{configKey:e})]}):(0,t.jsxs)(s.Z,{title:"Edit Messaging Provider",children:[(0,t.jsx)(c.Z,{backPath:o.AD}),(0,t.jsx)("div",{children:"Invalid messaging provider key"})]})}}},function(e){e.O(0,[431,8765,9278,3662,9037,7245,3377,2888,9774,179],function(){return e(e.s=91971)}),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[77],{91971:function(e,i,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/notifications/providers/[key]",function(){return n(75474)}])},75474:function(e,i,n){"use strict";n.r(i),n.d(i,{default:function(){return g}});var t=n(24246),r=n(86677),s=n(77213),c=n(90980),o=n(77830),d=n(98227),u=n(27378),l=n(17245),a=n(90710),f=n(42478),x=n(10792);let h=e=>{let{configKey:i}=e,{handleError:n}=(0,l.HK)(),{data:r,isLoading:s,error:c}=(0,f.FU)({key:i});if((0,u.useEffect)(()=>{c&&n(c)},[c,n]),s)return(0,t.jsx)(d.xuv,{display:"flex",justifyContent:"center",alignItems:"center",height:"200px",children:(0,t.jsx)(d.$jN,{})});if(!r)return(0,t.jsx)(d.V4A,{children:(0,t.jsxs)(d.xvT,{color:"red.500",children:["Messaging configuration not found for key: ",i]})});let o=r.service_type;return(0,t.jsxs)(d.xuv,{children:[(0,t.jsx)(d.X6q,{fontSize:"2xl",fontWeight:"semibold",mb:6,children:"Edit messaging provider"}),Object.values(a.q).includes(o)?(0,t.jsx)(x.Z,{configKey:i,initialProviderType:o}):(0,t.jsxs)(d.xvT,{color:"red.500",children:["Unsupported service type: ",o]})]})};var g=()=>{let{key:e}=(0,r.useRouter)().query;return e&&"string"==typeof e?(0,t.jsxs)(s.Z,{title:"Edit Messaging Provider - ".concat(e),children:[(0,t.jsx)(c.Z,{backPath:o.AD}),(0,t.jsx)(h,{configKey:e})]}):(0,t.jsxs)(s.Z,{title:"Edit Messaging Provider",children:[(0,t.jsx)(c.Z,{backPath:o.AD}),(0,t.jsx)("div",{children:"Invalid messaging provider key"})]})}}},function(e){e.O(0,[431,8765,9278,3662,9037,7245,3377,2888,9774,179],function(){return e(e.s=91971)}),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9716],{27328:function(n,i,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/notifications/providers/new",function(){return e(46071)}])},46071:function(n,i,e){"use strict";e.r(i),e.d(i,{default:function(){return a}});var t=e(24246),r=e(87949),s=e(77213),o=e(90980),u=e(77830),f=e(10792);let c=()=>(0,t.jsxs)(s.Z,{title:"Create Messaging Configuration",children:[(0,t.jsx)(o.Z,{backPath:u.AD}),(0,t.jsx)(r.X6q,{fontSize:"2xl",fontWeight:"semibold",mb:6,children:"Configure your messaging provider"}),(0,t.jsx)(f.Z,{})]});var a=()=>(0,t.jsx)(c,{})}},function(n){n.O(0,[431,8765,9278,3662,9037,7245,3377,2888,9774,179],function(){return n(n.s=27328)}),_N_E=n.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9716],{27328:function(n,i,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/notifications/providers/new",function(){return e(46071)}])},46071:function(n,i,e){"use strict";e.r(i),e.d(i,{default:function(){return a}});var t=e(24246),r=e(98227),s=e(77213),o=e(90980),u=e(77830),f=e(10792);let c=()=>(0,t.jsxs)(s.Z,{title:"Create Messaging Configuration",children:[(0,t.jsx)(o.Z,{backPath:u.AD}),(0,t.jsx)(r.X6q,{fontSize:"2xl",fontWeight:"semibold",mb:6,children:"Configure your messaging provider"}),(0,t.jsx)(f.Z,{})]});var a=()=>(0,t.jsx)(c,{})}},function(n){n.O(0,[431,8765,9278,3662,9037,7245,3377,2888,9774,179],function(){return n(n.s=27328)}),_N_E=n.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1537],{30890:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/notifications/providers",function(){return i(66605)}])},77213:function(e,t,i){"use strict";i.d(t,{Z:function(){return p}});var n=i(24246),s=i(87949),a=i(88038),r=i.n(a),l=i(86677);i(27378);var o=i(25980),d=i(90867),c=i(42478),u=i(77830),g=()=>{let e=(0,l.useRouter)();return(0,n.jsx)(s.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,n.jsxs)(s.xuv,{children:[(0,n.jsxs)(s.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,n.jsx)(s.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,n.jsx)(s.wpx,{onClick:()=>{e.push(u.AD)},children:"Configure"})]}),(0,n.jsxs)(s.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},p=e=>{let{children:t,title:i,padded:a=!0,mainProps:u}=e,p=(0,o.hz)(),f=(0,l.useRouter)(),h="/privacy-requests"===f.pathname||"/datastore-connection"===f.pathname,m=!(p.flags.messagingConfiguration&&h),{data:x}=(0,c.JE)(void 0,{skip:m}),{data:v}=(0,d.PW)(void 0,{skip:m}),y=p.flags.messagingConfiguration&&(!x||!v)&&h;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",...u,children:[y?(0,n.jsx)(g,{}):null,t]})]})}},129:function(e,t,i){"use strict";var n=i(24246),s=i(87949),a=i(86677),r=i(16134),l=i(25980),o=i(77830),d=i(65735),c=i(31793);t.Z=()=>{let e=(0,a.useRouter)(),t=e.pathname,{plus:i}=(0,l.hz)(),u="providers";t.startsWith(o.AD)?u="providers":t.startsWith(o.Wi)?u="templates":t.startsWith(o.DN)&&(u="digests");let g=[{key:"templates",label:"Templates",requiresPlus:!0,scopes:[d.Sh.MESSAGING_TEMPLATE_UPDATE],path:o.Wi},{key:"digests",label:"Digests",requiresPlus:!0,scopes:[d.Sh.DIGEST_CONFIG_READ],path:o.DN},{key:"providers",label:"Providers",requiresPlus:!1,scopes:[d.Sh.MESSAGING_CREATE_OR_UPDATE],path:o.AD}];i||(g=g.filter(e=>!e.requiresPlus));let p=(0,r.C)(c.uu);g=g.filter(e=>e.scopes.some(e=>p.includes(e)));let f=t=>{let i=g.find(e=>e.key===t);i&&e.push(i.path)},h=g.map(e=>({label:e.label,key:e.key}));return(0,n.jsx)("div",{className:"mb-6",children:(0,n.jsx)(s.Niu,{mode:"horizontal",selectedKeys:[u],onClick:e=>{let{key:t}=e;return f(t)},items:h})})}},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:l,rightContent:o,style:d,...c}=e;return(0,n.jsxs)("div",{...c,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",...d}:{paddingBottom:"24px",...d},children:[(0,n.jsxs)(s.jqI,{justify:"space-between",children:["string"==typeof t?(0,n.jsx)(s.lQT,{className:i||l?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,o&&(0,n.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!i&&(0,n.jsx)(a.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 r}});var n=i(24246),s=i(16134),a=i(31793);let r=e=>(0,s.C)(a.uu).filter(t=>e.includes(t)).length>0;t.ZP=e=>{let{scopes:t,children:i}=e;return r(t)?(0,n.jsx)(n.Fragment,{children:i}):null}},70788:function(e,t,i){"use strict";i.d(t,{m:function(){return d}});var n=i(24246),s=i(87949),a=i(79894),r=i.n(a),l=i(27378);let{Text:o}=s.AntTypography,d=e=>{let{items:t,...i}=e,a=(0,l.useMemo)(()=>null==t?void 0:t.map((e,i)=>{let a=i===t.length-1,l={...e},d=l.onClick&&!l.href;return("string"==typeof l.title&&(l.title=(0,n.jsx)(o,{style:{color:"inherit",maxWidth:a?void 0:400},ellipsis:!a,id:a?"breadcrumb-current-page":void 0,children:l.title})),d)?l.title=(0,n.jsx)(s.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,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"anticon align-text-bottom",children:l.icon}),l.title]})),l.href&&l.title&&(l.title=(0,n.jsx)(r(),{href:l.href,className:"ant-breadcrumb-link",children:l.title}),delete l.href)),l}),[t]);return(0,n.jsx)(s.zrq,{items:a,...i})}},8125:function(e,t,i){"use strict";i.d(t,{V:function(){return a},o:function(){return d}});var n=i(27378),s=i(32735);let a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{enableSelection:i=!1,getRowKey:a,bulkActions:r,isLoading:l=!1,isFetching:o=!1,dataSource:d=[],totalRows:c=0,currentPage:u,pageSize:g,customTableProps:p={}}=t,f=(0,n.useCallback)(e=>{if(e&&"object"==typeof e){if(e.id)return String(e.id);if(e.key)return String(e.key)}return String(e)},[]),h=a||f,[m,x]=(0,n.useState)([]),[v,y]=(0,n.useState)([]),j=(0,n.useCallback)(()=>{x([]),y([])},[]),C=(0,n.useMemo)(()=>({selectedRowKeys:m,selectedRows:v,resetSelections:j}),[m,v,j]),b=(0,n.useMemo)(()=>{if(i)return{selectedRowKeys:m,onChange:(e,t)=>{x(e),y(t)}}},[i,m]),S=(0,n.useCallback)((t,i,n)=>{var s,a;let r=null!==(s=t.current)&&void 0!==s?s:e.pageIndex,l=null!==(a=t.pageSize)&&void 0!==a?a:e.pageSize,o=r!==e.pageIndex||l!==e.pageSize;o?(t.current&&t.current!==e.pageIndex&&e.updatePageIndex(t.current),t.pageSize&&t.pageSize!==e.pageSize&&e.updatePageSize(t.pageSize)):e.updateFilters(i||{});let d=n&&!Array.isArray(n)?n.field:void 0,c=n&&!Array.isArray(n)&&null!==n.order?n.order:void 0;o||e.updateSorting(d,c)},[e]),w=(0,n.useMemo)(()=>{var t,i,n,a,r;return{current:null!=u?u:e.pageIndex,pageSize:null!=g?g:e.pageSize,total:c,showSizeChanger:null===(a=null===(t=e.paginationConfig)||void 0===t?void 0:t.showSizeChanger)||void 0===a||a,pageSizeOptions:null!==(r=null===(n=e.paginationConfig)||void 0===n?void 0:null===(i=n.pageSizeOptions)||void 0===i?void 0:i.map(String))&&void 0!==r?r:s.VZ}},[u,e.pageIndex,g,e.pageSize,c,e.paginationConfig]),k=(0,n.useMemo)(()=>({dataSource:d,loading:l||o,pagination:w,onChange:S,rowKey:h,scroll:{x:"max-content",scrollToFirstRowOnChange:!0},size:"small",bordered:!0,...p}),[d,l,o,w,S,h,p]),_=m.map(String),T=v.length>0,z=(0,n.useCallback)(e=>{let t=null==r?void 0:r.actions.find(t=>t.key===e);return t?{disabled:!T||!!t.disabled&&t.disabled(v),loading:t.loading||!1,onClick:()=>t.onClick(v)}:{disabled:!0,loading:!1}},[r,T,v]);return(0,n.useMemo)(()=>({tableProps:k,selectionProps:b,selectionState:C,selectedRows:v,selectedKeys:_,hasSelectedRows:T,resetSelections:j,getBulkActionProps:z,isLoadingOrFetching:l||o,hasData:d.length>0}),[k,b,C,v,_,T,j,z,l,o,d.length])};var r=i(40431),l=i(17245);let o=()=>({filters:(0,r.WJ)(e=>e).withDefault({})}),d=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{pagination:t={},sorting:i={},search:s={},onStateChange:a,disableUrlState:d=!1}=e,{pageIndex:c,pageSize:u,resetPagination:g,updatePageIndex:p,updatePageSize:f,pageSizeOptions:h,showSizeChanger:m}=(0,l.h0)({...t,disableUrlState:d}),{sortKey:x,sortOrder:v,updateSorting:y,resetSorting:j}=(0,l.rK)({...i,disableUrlState:d}),{searchQuery:C,updateSearch:b,resetSearch:S}=(0,l.Rx)({...s,disableUrlState:d}),[w,k]=(0,n.useState)({}),_=(0,n.useMemo)(()=>d?null:o(),[d]),[T,z]=(0,r.XI)(null!=_?_:{},{history:"push"}),M=(0,n.useMemo)(()=>{var e;return{pageIndex:c,pageSize:u,sortKey:x,sortOrder:v,columnFilters:d?w:null!==(e=T.filters)&&void 0!==e?e:{},searchQuery:C}},[d,w,T,c,u,x,v,C]),E=(0,n.useCallback)((e,t)=>{y(e,t),g()},[y,g]),P=(0,n.useCallback)(e=>{if(d)k(e);else{let t=Object.fromEntries(Object.entries(e).filter(e=>{let[,t]=e;return null!=t}));z({filters:Object.keys(t).length>0?t:null})}g()},[d,z,g]),A=(0,n.useCallback)(e=>{b(e),g()},[b,g]),q=(0,n.useCallback)(()=>{d?k({}):z({filters:null}),g(),j(),S()},[d,z,g,j,S]);return(0,n.useEffect)(()=>{a&&a(M)},[M,a]),{state:M,pageIndex:M.pageIndex,pageSize:M.pageSize,updatePageIndex:p,updatePageSize:f,sortKey:M.sortKey,sortOrder:M.sortOrder,updateSorting:E,columnFilters:M.columnFilters,updateFilters:P,searchQuery:M.searchQuery,updateSearch:A,resetState:q,paginationConfig:{pageSizeOptions:h,showSizeChanger:m}}}},17828:function(e,t,i){"use strict";var n=i(24246);i(27378),t.Z=()=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 74.375 85",width:"20",height:"20",fill:"#fff",fillRule:"evenodd",stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,n.jsx)("use",{xlinkHref:"#A",x:"2.188",y:"2.5"}),(0,n.jsx)("symbol",{id:"A",overflow:"visible",children:(0,n.jsxs)("g",{stroke:"none",children:[(0,n.jsx)("path",{d:"M16.558 12.75L0 38.591l16.558 25.841 13.227-3.324.654-44.869-13.881-3.489z",fill:"#876929"}),(0,n.jsx)("path",{d:"M35.049 59.786l-18.491 4.645V12.75l18.491 4.645v42.391z",fill:"#d9a741"}),(0,n.jsxs)("g",{fill:"#876929",children:[(0,n.jsx)("path",{d:"M32.849 21.614L35.05 80 70 62.867l-.01-43.615-8.914 1.448-28.228.913z"}),(0,n.jsx)("path",{d:"M46.184 33.149l10.906-.632 10.778-19.164L40.612 0 30.439 4.364l15.745 28.785z"})]}),(0,n.jsx)("path",{d:"M40.612 0l27.256 13.353-10.778 19.164L40.612 0z",fill:"#d9a741"}),(0,n.jsx)("path",{d:"M35.049 5.539L57.09 44.742l3.788 22.595L35.049 80l-10.46-5.131V9.64l10.45-4.101h.01z",fill:"#876929"}),(0,n.jsx)("path",{d:"M69.991 19.251L70 62.867 35.05 80V5.539l22.041 39.203 12.899-25.491z",fill:"#d9a741"})]})})]})},44907:function(e,t,i){"use strict";var n=i(24246);i(27378),t.Z=()=>(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",preserveAspectRatio:"xMidYMid",viewBox:"-0.5 0 257 257",children:(0,n.jsx)("path",{fill:"#C02428",d:"M128.418 80.526c-26.51 0-48.884 21.475-48.884 48.728a48.197 48.197 0 0014.187 34.579 48.532 48.532 0 0034.697 14.14c26.511 0 48.875-21.476 48.875-48.719 0-27.253-22.364-48.728-48.875-48.728zm-76.22 47.895c0-41.285 33.968-75.138 75.395-75.138 41.417 0 75.385 33.853 75.385 75.138 0 2.478 0 5.788-.825 8.266-.835 7.422 4.972 13.2 12.43 13.2 12.43 0 14.08-15.678 14.08-21.466 0-55.328-45.573-100.746-101.07-100.746-55.518 0-101.07 45.418-101.07 100.746 0 55.339 45.552 100.747 101.07 100.747 29.822 0 56.333-12.388 74.56-33.03l20.703 17.342c-22.364 26.43-57.158 42.952-94.448 42.952-34.097.105-66.827-13.35-90.932-37.384C13.37 195.016-.118 162.392 0 128.411 0 58.228 57.159.432 128.418.432 198.832.432 256 58.238 256 128.432c0 28.075-13.256 51.205-40.591 51.205-11.605 0-19.053-5.787-23.2-11.565-13.255 21.476-37.29 35.508-64.626 35.508-20.017.068-39.234-7.827-53.388-21.933a74.755 74.755 0 01-22.008-53.205l.01-.02zm76.21-22.297c12.43 0 22.374 9.91 22.374 22.297 0 12.388-9.944 22.298-22.364 22.298a22.322 22.322 0 01-15.848-6.504 22.169 22.169 0 01-6.526-15.794c0-12.387 9.944-22.297 22.374-22.297h-.01z"})})},5144:function(e,t,i){"use strict";var n=i(24246);t.Z=()=>(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",preserveAspectRatio:"xMidYMid",viewBox:"0 0 256 256",children:(0,n.jsx)("path",{fill:"#F12E45",d:"M128 0c70.656 0 128 57.344 128 128s-57.344 128-128 128S0 198.656 0 128 57.344 0 128 0zm0 33.792c-52.224 0-94.208 41.984-94.208 94.208S75.776 222.208 128 222.208s94.208-41.984 94.208-94.208S180.224 33.792 128 33.792zm31.744 99.328c14.704 0 26.624 11.92 26.624 26.624 0 14.704-11.92 26.624-26.624 26.624-14.704 0-26.624-11.92-26.624-26.624 0-14.704 11.92-26.624 26.624-26.624zm-63.488 0c14.704 0 26.624 11.92 26.624 26.624 0 14.704-11.92 26.624-26.624 26.624-14.704 0-26.624-11.92-26.624-26.624 0-14.704 11.92-26.624 26.624-26.624zm63.488-63.488c14.704 0 26.624 11.92 26.624 26.624 0 14.704-11.92 26.624-26.624 26.624-14.704 0-26.624-11.92-26.624-26.624 0-14.704 11.92-26.624 26.624-26.624zm-63.488 0c14.704 0 26.624 11.92 26.624 26.624 0 14.704-11.92 26.624-26.624 26.624-14.704 0-26.624-11.92-26.624-26.624 0-14.704 11.92-26.624 26.624-26.624z"})})},42478:function(e,t,i){"use strict";i.d(t,{FU:function(){return d},JE:function(){return s},Ki:function(){return u},SU:function(){return g},W:function(){return p},h9:function(){return a},jc:function(){return n},qt:function(){return o},sn:function(){return c}});let{useGetEmailInviteStatusQuery:n,useGetActiveMessagingProviderQuery:s,useCreateMessagingConfigurationMutation:a,useCreateMessagingConfigurationSecretsMutation:r,useGetMessagingConfigurationDetailsQuery:l,useGetMessagingConfigurationsQuery:o,useGetMessagingConfigurationByKeyQuery:d,useUpdateMessagingConfigurationByKeyMutation:c,useUpdateMessagingConfigurationSecretsByKeyMutation:u,useCreateTestConnectionMessageMutation:g,useDeleteMessagingConfigurationByKeyMutation:p}=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"]})})})},66605:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return E}});var n,s,a=i(24246),r=i(77213),l=i(129),o=i(58754),d=i(19904),c=i(87949),u=i(86677),g=i(77830),p=i(47935),f=i(812),h=i(17245),m=i(27378),x=i(8125),v=i(7426),y=i(65735),j=i(17828),C=i(44907),b=i(5144),S=i(42478),w=i(51980),k=i(16394),_=e=>{let{messagingConfig:t}=e,{last_test_succeeded:i,last_test_timestamp:n}=t;if(!n)return(0,a.jsx)(c.j8w,{children:"Verify configuration"});let s=new Date(n),r=(0,k.p6)(s),l=(0,w.B)(s,new Date,{addSuffix:!0});return(0,a.jsx)(c.esZ,{title:"Last verified: ".concat(r),children:(0,a.jsxs)(c.j8w,{color:i?"success":"error","data-testid":i?"test-success":"test-error",children:[i?"Succeeded":"Failed"," ",l]})})};(n=s||(s={})).NAME="name",n.VERIFICATION_STATUS="verification_status",n.ENABLED="enabled",n.ACTIONS="actions";let T=()=>{let e=(0,u.useRouter)(),{handleError:t}=(0,h.HK)(),[i,n]=(0,m.useState)(null),[r]=(0,v.L)(),[l]=(0,S.W)(),o=(0,d.Tg)([y.Sh.MESSAGING_CREATE_OR_UPDATE]),[p,w]=(0,m.useState)(!1),[k,T]=(0,m.useState)(null),z=(0,x.o)({pagination:{defaultPageSize:25,pageSizeOptions:[25,50,100]},sorting:{validColumns:Object.values(s),defaultSortKey:"name",defaultSortOrder:"ascend"}}),{data:M,isLoading:E}=(0,S.JE)(),{data:P,isLoading:A}=(0,S.qt)();(0,m.useEffect)(()=>{M?n(M.service_type):n(null)},[M]);let q=(0,m.useCallback)(async e=>{try{let i=await r({notifications:{notification_service_type:e}});(0,f.D4)(i)?t(i.error):(n(e),c.Pg3.success(e?"Updated active messaging config":"Disabled active messaging config"))}catch(e){t(e)}},[r,t,n]),I=(0,m.useCallback)(t=>{var i,n;let s=g.GE.replace("[key]",t.key);e.push({pathname:s,query:{last_test_succeeded:null!==(i=t.last_test_succeeded)&&void 0!==i?i:"",last_test_timestamp:null!==(n=t.last_test_timestamp)&&void 0!==n?n:""}})},[e]),N=(0,m.useCallback)((e,t)=>{T({key:e,name:t}),w(!0)},[]),D=(0,m.useCallback)(async()=>{if(k)try{let e=await l({key:k.key});(0,f.D4)(e)?t(e.error):c.Pg3.success("Messaging configuration successfully deleted")}catch(e){t(e)}finally{w(!1),T(null)}},[k,l,t]),R=(0,m.useCallback)(()=>{w(!1),T(null)},[]),O=(0,m.useMemo)(()=>({enableSelection:!1,getRowKey:e=>e.key,isLoading:A||E,dataSource:(null==P?void 0:P.items)||[],totalRows:(null==P?void 0:P.total)||0,customTableProps:{size:"small",pagination:{hideOnSinglePage:!0,showSizeChanger:!0,pageSizeOptions:["25","50","100"]}}}),[A,E,null==P?void 0:P.items,null==P?void 0:P.total]),L=(0,x.V)(z,O),F=(0,m.useMemo)(()=>[{title:"Provider type",dataIndex:"name",key:"name",render:(e,t)=>(0,a.jsxs)(c.Ugi,{children:[(()=>{switch(t.service_type){case"mailgun":return(0,a.jsx)(C.Z,{});case"twilio_text":case"twilio_email":default:return(0,a.jsx)(b.Z,{});case"aws_ses":return(0,a.jsx)(j.Z,{})}})(),(0,a.jsx)(c.xvT,{children:e})]})},{title:"Verification status",key:"verification_status",render:(e,t)=>(0,a.jsx)(_,{messagingConfig:t})},{title:"Enabled",key:"enabled",width:100,render:(e,t)=>{let n=t.service_type===i,s=!!t.last_test_timestamp&&""!==t.last_test_timestamp&&!1===t.last_test_succeeded&&!n,r=(0,a.jsx)(c.rAg,{checked:n,disabled:s,onChange:e=>{e?q(t.service_type):q(null)}});return s?(0,a.jsx)(c.esZ,{title:"This provider cannot be enabled because its last test failed. Please fix the configuration and test again.",children:r}):r}},{title:"Actions",key:"actions",render:(e,t)=>(0,a.jsxs)(c.Ugi,{children:[o&&(0,a.jsx)(c.wpx,{onClick:e=>{e.stopPropagation(),I(t)},size:"small",icon:(0,a.jsx)(c.PJP.I8b,{}),title:"Edit","aria-label":"Edit messaging configuration","data-testid":"edit-messaging-config-btn"}),o&&(0,a.jsx)(c.wpx,{onClick:e=>{e.stopPropagation(),N(t.key,t.name)},size:"small",icon:(0,a.jsx)(c.PJP.ZNm,{}),title:"Delete","aria-label":"Delete messaging configuration","data-testid":"delete-messaging-config-btn"})]})}],[o,i,I,N,q]),Z=(0,m.useMemo)(()=>(0,a.jsx)(c.$zI,{title:"Delete messaging configuration",open:p,onCancel:R,footer:[(0,a.jsx)(c.wpx,{onClick:R,children:"Cancel"},"cancel"),(0,a.jsx)(c.wpx,{type:"primary",danger:!0,onClick:D,children:"Delete"},"delete")],children:(0,a.jsxs)(c.vyj,{direction:"vertical",children:[(0,a.jsxs)(c.xvT,{children:['Are you sure you want to delete "',(0,a.jsx)("strong",{children:null==k?void 0:k.name}),'" messaging configuration?']}),(0,a.jsx)(c.xvT,{children:"This action cannot be undone."})]})}),[p,null==k?void 0:k.name,R,D]);return{columns:F,tableProps:L.tableProps,selectionProps:L.selectionProps,userCanUpdate:o,isLoading:A||E,deleteModal:Z,handleEditConfiguration:I,handleDeleteConfiguration:N,setActiveServiceType:q}},z=()=>(0,a.jsx)(c.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",children:(0,a.jsxs)(c.gCW,{children:[(0,a.jsx)(c.xvT,{fontSize:"md",fontWeight:"600",children:"No messaging providers found."}),(0,a.jsx)(c.xvT,{fontSize:"sm",children:'Click "Add a messaging provider" to add your first messaging provider to Fides.'})]})}),M=()=>{let{columns:e,tableProps:t,userCanUpdate:i,isLoading:n,deleteModal:s}=T(),r=(0,u.useRouter)();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(c.xvT,{fontSize:"sm",mb:8,width:{base:"100%",lg:"70%"},children:["Fides requires a messaging provider for sending processing notices to privacy request subjects, and allows for Subject Identity Verification in privacy requests. Please follow the"," ",(0,a.jsx)(c.xvT,{as:"span",color:"complimentary.500",children:"documentation"})," ","to setup a messaging service that Fides supports. Ensure you have completed the setup for the preferred messaging provider and have the details handy prior to the following steps."]}),(0,a.jsxs)(c.kCb,{flex:1,direction:"column",overflow:"auto",children:[i&&(0,a.jsx)(c.vyj,{direction:"horizontal",style:{width:"100%",justifyContent:"flex-end",marginBottom:16},children:(0,a.jsx)(c.wpx,{onClick:()=>{r.push(g.Nu)},role:"link",type:"primary",icon:(0,a.jsx)(c.PJP.mm_,{}),iconPosition:"end","data-testid":"add-messaging-provider-btn",children:"Add a messaging provider"})}),n?(0,a.jsx)(p.I4,{rowHeight:36,numRows:5}):(0,a.jsx)(c.V5H,{...t,columns:e,locale:{emptyText:(0,a.jsx)(z,{})}})]}),s]})};var E=()=>(0,a.jsx)(r.Z,{title:"Notifications",children:(0,a.jsxs)(d.ZP,{scopes:[y.Sh.MESSAGING_CREATE_OR_UPDATE],children:[(0,a.jsx)(o.Z,{heading:"Notifications"}),(0,a.jsx)(l.Z,{}),(0,a.jsx)(M,{})]})})}},function(e){e.O(0,[431,7245,2888,9774,179],function(){return e(e.s=30890)}),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1537],{30890:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/notifications/providers",function(){return i(66605)}])},77213:function(e,t,i){"use strict";i.d(t,{Z:function(){return p}});var n=i(24246),s=i(98227),a=i(88038),r=i.n(a),l=i(86677);i(27378);var o=i(25980),d=i(90867),c=i(42478),u=i(77830),g=()=>{let e=(0,l.useRouter)();return(0,n.jsx)(s.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,n.jsxs)(s.xuv,{children:[(0,n.jsxs)(s.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,n.jsx)(s.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,n.jsx)(s.wpx,{onClick:()=>{e.push(u.AD)},children:"Configure"})]}),(0,n.jsxs)(s.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},p=e=>{let{children:t,title:i,padded:a=!0,mainProps:u}=e,p=(0,o.hz)(),f=(0,l.useRouter)(),h="/privacy-requests"===f.pathname||"/datastore-connection"===f.pathname,m=!(p.flags.messagingConfiguration&&h),{data:x}=(0,c.JE)(void 0,{skip:m}),{data:v}=(0,d.PW)(void 0,{skip:m}),y=p.flags.messagingConfiguration&&(!x||!v)&&h;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",...u,children:[y?(0,n.jsx)(g,{}):null,t]})]})}},129:function(e,t,i){"use strict";var n=i(24246),s=i(98227),a=i(86677),r=i(16134),l=i(25980),o=i(77830),d=i(65735),c=i(31793);t.Z=()=>{let e=(0,a.useRouter)(),t=e.pathname,{plus:i}=(0,l.hz)(),u="providers";t.startsWith(o.AD)?u="providers":t.startsWith(o.Wi)?u="templates":t.startsWith(o.DN)&&(u="digests");let g=[{key:"templates",label:"Templates",requiresPlus:!0,scopes:[d.Sh.MESSAGING_TEMPLATE_UPDATE],path:o.Wi},{key:"digests",label:"Digests",requiresPlus:!0,scopes:[d.Sh.DIGEST_CONFIG_READ],path:o.DN},{key:"providers",label:"Providers",requiresPlus:!1,scopes:[d.Sh.MESSAGING_CREATE_OR_UPDATE],path:o.AD}];i||(g=g.filter(e=>!e.requiresPlus));let p=(0,r.C)(c.uu);g=g.filter(e=>e.scopes.some(e=>p.includes(e)));let f=t=>{let i=g.find(e=>e.key===t);i&&e.push(i.path)},h=g.map(e=>({label:e.label,key:e.key}));return(0,n.jsx)("div",{className:"mb-6",children:(0,n.jsx)(s.Niu,{mode:"horizontal",selectedKeys:[u],onClick:e=>{let{key:t}=e;return f(t)},items:h})})}},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:l,rightContent:o,style:d,...c}=e;return(0,n.jsxs)("div",{...c,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",...d}:{paddingBottom:"24px",...d},children:[(0,n.jsxs)(s.jqI,{justify:"space-between",children:["string"==typeof t?(0,n.jsx)(s.lQT,{className:i||l?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,o&&(0,n.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!i&&(0,n.jsx)(a.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 r}});var n=i(24246),s=i(16134),a=i(31793);let r=e=>(0,s.C)(a.uu).filter(t=>e.includes(t)).length>0;t.ZP=e=>{let{scopes:t,children:i}=e;return r(t)?(0,n.jsx)(n.Fragment,{children:i}):null}},70788:function(e,t,i){"use strict";i.d(t,{m:function(){return d}});var n=i(24246),s=i(98227),a=i(79894),r=i.n(a),l=i(27378);let{Text:o}=s.AntTypography,d=e=>{let{items:t,...i}=e,a=(0,l.useMemo)(()=>null==t?void 0:t.map((e,i)=>{let a=i===t.length-1,l={...e},d=l.onClick&&!l.href;return("string"==typeof l.title&&(l.title=(0,n.jsx)(o,{style:{color:"inherit",maxWidth:a?void 0:400},ellipsis:!a,id:a?"breadcrumb-current-page":void 0,children:l.title})),d)?l.title=(0,n.jsx)(s.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,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"anticon align-text-bottom",children:l.icon}),l.title]})),l.href&&l.title&&(l.title=(0,n.jsx)(r(),{href:l.href,className:"ant-breadcrumb-link",children:l.title}),delete l.href)),l}),[t]);return(0,n.jsx)(s.zrq,{items:a,...i})}},8125:function(e,t,i){"use strict";i.d(t,{V:function(){return a},o:function(){return d}});var n=i(27378),s=i(32735);let a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{enableSelection:i=!1,getRowKey:a,bulkActions:r,isLoading:l=!1,isFetching:o=!1,dataSource:d=[],totalRows:c=0,currentPage:u,pageSize:g,customTableProps:p={}}=t,f=(0,n.useCallback)(e=>{if(e&&"object"==typeof e){if(e.id)return String(e.id);if(e.key)return String(e.key)}return String(e)},[]),h=a||f,[m,x]=(0,n.useState)([]),[v,y]=(0,n.useState)([]),j=(0,n.useCallback)(()=>{x([]),y([])},[]),C=(0,n.useMemo)(()=>({selectedRowKeys:m,selectedRows:v,resetSelections:j}),[m,v,j]),b=(0,n.useMemo)(()=>{if(i)return{selectedRowKeys:m,onChange:(e,t)=>{x(e),y(t)}}},[i,m]),S=(0,n.useCallback)((t,i,n)=>{var s,a;let r=null!==(s=t.current)&&void 0!==s?s:e.pageIndex,l=null!==(a=t.pageSize)&&void 0!==a?a:e.pageSize,o=r!==e.pageIndex||l!==e.pageSize;o?(t.current&&t.current!==e.pageIndex&&e.updatePageIndex(t.current),t.pageSize&&t.pageSize!==e.pageSize&&e.updatePageSize(t.pageSize)):e.updateFilters(i||{});let d=n&&!Array.isArray(n)?n.field:void 0,c=n&&!Array.isArray(n)&&null!==n.order?n.order:void 0;o||e.updateSorting(d,c)},[e]),w=(0,n.useMemo)(()=>{var t,i,n,a,r;return{current:null!=u?u:e.pageIndex,pageSize:null!=g?g:e.pageSize,total:c,showSizeChanger:null===(a=null===(t=e.paginationConfig)||void 0===t?void 0:t.showSizeChanger)||void 0===a||a,pageSizeOptions:null!==(r=null===(n=e.paginationConfig)||void 0===n?void 0:null===(i=n.pageSizeOptions)||void 0===i?void 0:i.map(String))&&void 0!==r?r:s.VZ}},[u,e.pageIndex,g,e.pageSize,c,e.paginationConfig]),k=(0,n.useMemo)(()=>({dataSource:d,loading:l||o,pagination:w,onChange:S,rowKey:h,scroll:{x:"max-content",scrollToFirstRowOnChange:!0},size:"small",bordered:!0,...p}),[d,l,o,w,S,h,p]),_=m.map(String),T=v.length>0,z=(0,n.useCallback)(e=>{let t=null==r?void 0:r.actions.find(t=>t.key===e);return t?{disabled:!T||!!t.disabled&&t.disabled(v),loading:t.loading||!1,onClick:()=>t.onClick(v)}:{disabled:!0,loading:!1}},[r,T,v]);return(0,n.useMemo)(()=>({tableProps:k,selectionProps:b,selectionState:C,selectedRows:v,selectedKeys:_,hasSelectedRows:T,resetSelections:j,getBulkActionProps:z,isLoadingOrFetching:l||o,hasData:d.length>0}),[k,b,C,v,_,T,j,z,l,o,d.length])};var r=i(40431),l=i(17245);let o=()=>({filters:(0,r.WJ)(e=>e).withDefault({})}),d=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{pagination:t={},sorting:i={},search:s={},onStateChange:a,disableUrlState:d=!1}=e,{pageIndex:c,pageSize:u,resetPagination:g,updatePageIndex:p,updatePageSize:f,pageSizeOptions:h,showSizeChanger:m}=(0,l.h0)({...t,disableUrlState:d}),{sortKey:x,sortOrder:v,updateSorting:y,resetSorting:j}=(0,l.rK)({...i,disableUrlState:d}),{searchQuery:C,updateSearch:b,resetSearch:S}=(0,l.Rx)({...s,disableUrlState:d}),[w,k]=(0,n.useState)({}),_=(0,n.useMemo)(()=>d?null:o(),[d]),[T,z]=(0,r.XI)(null!=_?_:{},{history:"push"}),M=(0,n.useMemo)(()=>{var e;return{pageIndex:c,pageSize:u,sortKey:x,sortOrder:v,columnFilters:d?w:null!==(e=T.filters)&&void 0!==e?e:{},searchQuery:C}},[d,w,T,c,u,x,v,C]),E=(0,n.useCallback)((e,t)=>{y(e,t),g()},[y,g]),P=(0,n.useCallback)(e=>{if(d)k(e);else{let t=Object.fromEntries(Object.entries(e).filter(e=>{let[,t]=e;return null!=t}));z({filters:Object.keys(t).length>0?t:null})}g()},[d,z,g]),A=(0,n.useCallback)(e=>{b(e),g()},[b,g]),q=(0,n.useCallback)(()=>{d?k({}):z({filters:null}),g(),j(),S()},[d,z,g,j,S]);return(0,n.useEffect)(()=>{a&&a(M)},[M,a]),{state:M,pageIndex:M.pageIndex,pageSize:M.pageSize,updatePageIndex:p,updatePageSize:f,sortKey:M.sortKey,sortOrder:M.sortOrder,updateSorting:E,columnFilters:M.columnFilters,updateFilters:P,searchQuery:M.searchQuery,updateSearch:A,resetState:q,paginationConfig:{pageSizeOptions:h,showSizeChanger:m}}}},17828:function(e,t,i){"use strict";var n=i(24246);i(27378),t.Z=()=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 74.375 85",width:"20",height:"20",fill:"#fff",fillRule:"evenodd",stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,n.jsx)("use",{xlinkHref:"#A",x:"2.188",y:"2.5"}),(0,n.jsx)("symbol",{id:"A",overflow:"visible",children:(0,n.jsxs)("g",{stroke:"none",children:[(0,n.jsx)("path",{d:"M16.558 12.75L0 38.591l16.558 25.841 13.227-3.324.654-44.869-13.881-3.489z",fill:"#876929"}),(0,n.jsx)("path",{d:"M35.049 59.786l-18.491 4.645V12.75l18.491 4.645v42.391z",fill:"#d9a741"}),(0,n.jsxs)("g",{fill:"#876929",children:[(0,n.jsx)("path",{d:"M32.849 21.614L35.05 80 70 62.867l-.01-43.615-8.914 1.448-28.228.913z"}),(0,n.jsx)("path",{d:"M46.184 33.149l10.906-.632 10.778-19.164L40.612 0 30.439 4.364l15.745 28.785z"})]}),(0,n.jsx)("path",{d:"M40.612 0l27.256 13.353-10.778 19.164L40.612 0z",fill:"#d9a741"}),(0,n.jsx)("path",{d:"M35.049 5.539L57.09 44.742l3.788 22.595L35.049 80l-10.46-5.131V9.64l10.45-4.101h.01z",fill:"#876929"}),(0,n.jsx)("path",{d:"M69.991 19.251L70 62.867 35.05 80V5.539l22.041 39.203 12.899-25.491z",fill:"#d9a741"})]})})]})},44907:function(e,t,i){"use strict";var n=i(24246);i(27378),t.Z=()=>(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",preserveAspectRatio:"xMidYMid",viewBox:"-0.5 0 257 257",children:(0,n.jsx)("path",{fill:"#C02428",d:"M128.418 80.526c-26.51 0-48.884 21.475-48.884 48.728a48.197 48.197 0 0014.187 34.579 48.532 48.532 0 0034.697 14.14c26.511 0 48.875-21.476 48.875-48.719 0-27.253-22.364-48.728-48.875-48.728zm-76.22 47.895c0-41.285 33.968-75.138 75.395-75.138 41.417 0 75.385 33.853 75.385 75.138 0 2.478 0 5.788-.825 8.266-.835 7.422 4.972 13.2 12.43 13.2 12.43 0 14.08-15.678 14.08-21.466 0-55.328-45.573-100.746-101.07-100.746-55.518 0-101.07 45.418-101.07 100.746 0 55.339 45.552 100.747 101.07 100.747 29.822 0 56.333-12.388 74.56-33.03l20.703 17.342c-22.364 26.43-57.158 42.952-94.448 42.952-34.097.105-66.827-13.35-90.932-37.384C13.37 195.016-.118 162.392 0 128.411 0 58.228 57.159.432 128.418.432 198.832.432 256 58.238 256 128.432c0 28.075-13.256 51.205-40.591 51.205-11.605 0-19.053-5.787-23.2-11.565-13.255 21.476-37.29 35.508-64.626 35.508-20.017.068-39.234-7.827-53.388-21.933a74.755 74.755 0 01-22.008-53.205l.01-.02zm76.21-22.297c12.43 0 22.374 9.91 22.374 22.297 0 12.388-9.944 22.298-22.364 22.298a22.322 22.322 0 01-15.848-6.504 22.169 22.169 0 01-6.526-15.794c0-12.387 9.944-22.297 22.374-22.297h-.01z"})})},5144:function(e,t,i){"use strict";var n=i(24246);t.Z=()=>(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",preserveAspectRatio:"xMidYMid",viewBox:"0 0 256 256",children:(0,n.jsx)("path",{fill:"#F12E45",d:"M128 0c70.656 0 128 57.344 128 128s-57.344 128-128 128S0 198.656 0 128 57.344 0 128 0zm0 33.792c-52.224 0-94.208 41.984-94.208 94.208S75.776 222.208 128 222.208s94.208-41.984 94.208-94.208S180.224 33.792 128 33.792zm31.744 99.328c14.704 0 26.624 11.92 26.624 26.624 0 14.704-11.92 26.624-26.624 26.624-14.704 0-26.624-11.92-26.624-26.624 0-14.704 11.92-26.624 26.624-26.624zm-63.488 0c14.704 0 26.624 11.92 26.624 26.624 0 14.704-11.92 26.624-26.624 26.624-14.704 0-26.624-11.92-26.624-26.624 0-14.704 11.92-26.624 26.624-26.624zm63.488-63.488c14.704 0 26.624 11.92 26.624 26.624 0 14.704-11.92 26.624-26.624 26.624-14.704 0-26.624-11.92-26.624-26.624 0-14.704 11.92-26.624 26.624-26.624zm-63.488 0c14.704 0 26.624 11.92 26.624 26.624 0 14.704-11.92 26.624-26.624 26.624-14.704 0-26.624-11.92-26.624-26.624 0-14.704 11.92-26.624 26.624-26.624z"})})},42478:function(e,t,i){"use strict";i.d(t,{FU:function(){return d},JE:function(){return s},Ki:function(){return u},SU:function(){return g},W:function(){return p},h9:function(){return a},jc:function(){return n},qt:function(){return o},sn:function(){return c}});let{useGetEmailInviteStatusQuery:n,useGetActiveMessagingProviderQuery:s,useCreateMessagingConfigurationMutation:a,useCreateMessagingConfigurationSecretsMutation:r,useGetMessagingConfigurationDetailsQuery:l,useGetMessagingConfigurationsQuery:o,useGetMessagingConfigurationByKeyQuery:d,useUpdateMessagingConfigurationByKeyMutation:c,useUpdateMessagingConfigurationSecretsByKeyMutation:u,useCreateTestConnectionMessageMutation:g,useDeleteMessagingConfigurationByKeyMutation:p}=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"]})})})},66605:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return E}});var n,s,a=i(24246),r=i(77213),l=i(129),o=i(58754),d=i(19904),c=i(98227),u=i(86677),g=i(77830),p=i(47935),f=i(812),h=i(17245),m=i(27378),x=i(8125),v=i(7426),y=i(65735),j=i(17828),C=i(44907),b=i(5144),S=i(42478),w=i(51980),k=i(16394),_=e=>{let{messagingConfig:t}=e,{last_test_succeeded:i,last_test_timestamp:n}=t;if(!n)return(0,a.jsx)(c.j8w,{children:"Verify configuration"});let s=new Date(n),r=(0,k.p6)(s),l=(0,w.B)(s,new Date,{addSuffix:!0});return(0,a.jsx)(c.esZ,{title:"Last verified: ".concat(r),children:(0,a.jsxs)(c.j8w,{color:i?"success":"error","data-testid":i?"test-success":"test-error",children:[i?"Succeeded":"Failed"," ",l]})})};(n=s||(s={})).NAME="name",n.VERIFICATION_STATUS="verification_status",n.ENABLED="enabled",n.ACTIONS="actions";let T=()=>{let e=(0,u.useRouter)(),{handleError:t}=(0,h.HK)(),[i,n]=(0,m.useState)(null),[r]=(0,v.L)(),[l]=(0,S.W)(),o=(0,d.Tg)([y.Sh.MESSAGING_CREATE_OR_UPDATE]),[p,w]=(0,m.useState)(!1),[k,T]=(0,m.useState)(null),z=(0,x.o)({pagination:{defaultPageSize:25,pageSizeOptions:[25,50,100]},sorting:{validColumns:Object.values(s),defaultSortKey:"name",defaultSortOrder:"ascend"}}),{data:M,isLoading:E}=(0,S.JE)(),{data:P,isLoading:A}=(0,S.qt)();(0,m.useEffect)(()=>{M?n(M.service_type):n(null)},[M]);let q=(0,m.useCallback)(async e=>{try{let i=await r({notifications:{notification_service_type:e}});(0,f.D4)(i)?t(i.error):(n(e),c.Pg3.success(e?"Updated active messaging config":"Disabled active messaging config"))}catch(e){t(e)}},[r,t,n]),I=(0,m.useCallback)(t=>{var i,n;let s=g.GE.replace("[key]",t.key);e.push({pathname:s,query:{last_test_succeeded:null!==(i=t.last_test_succeeded)&&void 0!==i?i:"",last_test_timestamp:null!==(n=t.last_test_timestamp)&&void 0!==n?n:""}})},[e]),N=(0,m.useCallback)((e,t)=>{T({key:e,name:t}),w(!0)},[]),D=(0,m.useCallback)(async()=>{if(k)try{let e=await l({key:k.key});(0,f.D4)(e)?t(e.error):c.Pg3.success("Messaging configuration successfully deleted")}catch(e){t(e)}finally{w(!1),T(null)}},[k,l,t]),R=(0,m.useCallback)(()=>{w(!1),T(null)},[]),O=(0,m.useMemo)(()=>({enableSelection:!1,getRowKey:e=>e.key,isLoading:A||E,dataSource:(null==P?void 0:P.items)||[],totalRows:(null==P?void 0:P.total)||0,customTableProps:{size:"small",pagination:{hideOnSinglePage:!0,showSizeChanger:!0,pageSizeOptions:["25","50","100"]}}}),[A,E,null==P?void 0:P.items,null==P?void 0:P.total]),L=(0,x.V)(z,O),F=(0,m.useMemo)(()=>[{title:"Provider type",dataIndex:"name",key:"name",render:(e,t)=>(0,a.jsxs)(c.Ugi,{children:[(()=>{switch(t.service_type){case"mailgun":return(0,a.jsx)(C.Z,{});case"twilio_text":case"twilio_email":default:return(0,a.jsx)(b.Z,{});case"aws_ses":return(0,a.jsx)(j.Z,{})}})(),(0,a.jsx)(c.xvT,{children:e})]})},{title:"Verification status",key:"verification_status",render:(e,t)=>(0,a.jsx)(_,{messagingConfig:t})},{title:"Enabled",key:"enabled",width:100,render:(e,t)=>{let n=t.service_type===i,s=!!t.last_test_timestamp&&""!==t.last_test_timestamp&&!1===t.last_test_succeeded&&!n,r=(0,a.jsx)(c.rAg,{checked:n,disabled:s,onChange:e=>{e?q(t.service_type):q(null)}});return s?(0,a.jsx)(c.esZ,{title:"This provider cannot be enabled because its last test failed. Please fix the configuration and test again.",children:r}):r}},{title:"Actions",key:"actions",render:(e,t)=>(0,a.jsxs)(c.Ugi,{children:[o&&(0,a.jsx)(c.wpx,{onClick:e=>{e.stopPropagation(),I(t)},size:"small",icon:(0,a.jsx)(c.PJP.I8b,{}),title:"Edit","aria-label":"Edit messaging configuration","data-testid":"edit-messaging-config-btn"}),o&&(0,a.jsx)(c.wpx,{onClick:e=>{e.stopPropagation(),N(t.key,t.name)},size:"small",icon:(0,a.jsx)(c.PJP.ZNm,{}),title:"Delete","aria-label":"Delete messaging configuration","data-testid":"delete-messaging-config-btn"})]})}],[o,i,I,N,q]),Z=(0,m.useMemo)(()=>(0,a.jsx)(c.$zI,{title:"Delete messaging configuration",open:p,onCancel:R,footer:[(0,a.jsx)(c.wpx,{onClick:R,children:"Cancel"},"cancel"),(0,a.jsx)(c.wpx,{type:"primary",danger:!0,onClick:D,children:"Delete"},"delete")],children:(0,a.jsxs)(c.vyj,{direction:"vertical",children:[(0,a.jsxs)(c.xvT,{children:['Are you sure you want to delete "',(0,a.jsx)("strong",{children:null==k?void 0:k.name}),'" messaging configuration?']}),(0,a.jsx)(c.xvT,{children:"This action cannot be undone."})]})}),[p,null==k?void 0:k.name,R,D]);return{columns:F,tableProps:L.tableProps,selectionProps:L.selectionProps,userCanUpdate:o,isLoading:A||E,deleteModal:Z,handleEditConfiguration:I,handleDeleteConfiguration:N,setActiveServiceType:q}},z=()=>(0,a.jsx)(c.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",children:(0,a.jsxs)(c.gCW,{children:[(0,a.jsx)(c.xvT,{fontSize:"md",fontWeight:"600",children:"No messaging providers found."}),(0,a.jsx)(c.xvT,{fontSize:"sm",children:'Click "Add a messaging provider" to add your first messaging provider to Fides.'})]})}),M=()=>{let{columns:e,tableProps:t,userCanUpdate:i,isLoading:n,deleteModal:s}=T(),r=(0,u.useRouter)();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(c.xvT,{fontSize:"sm",mb:8,width:{base:"100%",lg:"70%"},children:["Fides requires a messaging provider for sending processing notices to privacy request subjects, and allows for Subject Identity Verification in privacy requests. Please follow the"," ",(0,a.jsx)(c.xvT,{as:"span",color:"complimentary.500",children:"documentation"})," ","to setup a messaging service that Fides supports. Ensure you have completed the setup for the preferred messaging provider and have the details handy prior to the following steps."]}),(0,a.jsxs)(c.kCb,{flex:1,direction:"column",overflow:"auto",children:[i&&(0,a.jsx)(c.vyj,{direction:"horizontal",style:{width:"100%",justifyContent:"flex-end",marginBottom:16},children:(0,a.jsx)(c.wpx,{onClick:()=>{r.push(g.Nu)},role:"link",type:"primary",icon:(0,a.jsx)(c.PJP.mm_,{}),iconPosition:"end","data-testid":"add-messaging-provider-btn",children:"Add a messaging provider"})}),n?(0,a.jsx)(p.I4,{rowHeight:36,numRows:5}):(0,a.jsx)(c.V5H,{...t,columns:e,locale:{emptyText:(0,a.jsx)(z,{})}})]}),s]})};var E=()=>(0,a.jsx)(r.Z,{title:"Notifications",children:(0,a.jsxs)(d.ZP,{scopes:[y.Sh.MESSAGING_CREATE_OR_UPDATE],children:[(0,a.jsx)(o.Z,{heading:"Notifications"}),(0,a.jsx)(l.Z,{}),(0,a.jsx)(M,{})]})})}},function(e){e.O(0,[431,7245,2888,9774,179],function(){return e(e.s=30890)}),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8927],{84445:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/notifications/templates/[id]",function(){return s(77053)}])},77053:function(e,t,s){"use strict";s.r(t);var n=s(24246),a=s(812),i=s(87949),l=s(86677),r=s(77213),o=s(77830),u=s(58754),d=s(46628),p=s(67810),c=s(47466),m=s(5058),f=s(20149),h=s(31883);t.default=()=>{let e=(0,i.pmc)(),t=(0,l.useRouter)(),s=t.query.id,{data:_,isLoading:g}=(0,c.gQ)(s),[b]=(0,m.pS)(),[x]=(0,c.ew)(),y=async t=>{var n;let i={is_enabled:t.is_enabled,content:{subject:t.content.subject,body:t.content.body},properties:[]};null===(n=t.properties)||void 0===n||n.forEach(e=>{var t;return null===(t=i.properties)||void 0===t?void 0:t.push(e.id)});let l=await b({templateId:s,template:i});if((0,h.D4)(l)){e((0,d.Vo)((0,a.e$)(l.error)));return}e((0,d.t5)("Messaging template updated successfully"))},{isOpen:j,onOpen:w,onClose:v}=(0,i.qY0)(),C=async()=>{let n=await x(s);if((0,h.D4)(n)){e((0,d.Vo)((0,a.e$)(n.error)));return}e((0,d.t5)("Messaging template deleted successfully")),t.push(o.Wi)};return _?g?(0,n.jsx)(i.$jN,{}):(0,n.jsxs)(r.Z,{title:"Configure Message",children:[(0,n.jsx)(u.Z,{heading:"Templates",breadcrumbItems:[{title:"Templates",href:o.Wi},{title:"".concat(p.Z[_.type])}]}),(0,n.jsx)(i.xuv,{"data-testid":"add-messaging-template",maxWidth:"720px",children:(0,n.jsx)(f.Z,{template:_,handleSubmit:y,handleDelete:w})}),(0,n.jsx)(i.cVQ,{isOpen:j,onClose:v,onConfirm:C,title:"Delete message template",message:(0,n.jsx)(i.xvT,{children:"You are about to permanently delete this template message. Are you sure you would like to continue?"})})]}):null}}},function(e){e.O(0,[7630,2888,9774,179],function(){return e(e.s=84445)}),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8927],{84445:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/notifications/templates/[id]",function(){return s(77053)}])},77053:function(e,t,s){"use strict";s.r(t);var n=s(24246),a=s(812),i=s(98227),l=s(86677),r=s(77213),o=s(77830),u=s(58754),d=s(46628),p=s(67810),c=s(47466),m=s(5058),f=s(20149),h=s(31883);t.default=()=>{let e=(0,i.pmc)(),t=(0,l.useRouter)(),s=t.query.id,{data:_,isLoading:g}=(0,c.gQ)(s),[b]=(0,m.pS)(),[x]=(0,c.ew)(),y=async t=>{var n;let i={is_enabled:t.is_enabled,content:{subject:t.content.subject,body:t.content.body},properties:[]};null===(n=t.properties)||void 0===n||n.forEach(e=>{var t;return null===(t=i.properties)||void 0===t?void 0:t.push(e.id)});let l=await b({templateId:s,template:i});if((0,h.D4)(l)){e((0,d.Vo)((0,a.e$)(l.error)));return}e((0,d.t5)("Messaging template updated successfully"))},{isOpen:j,onOpen:w,onClose:v}=(0,i.qY0)(),C=async()=>{let n=await x(s);if((0,h.D4)(n)){e((0,d.Vo)((0,a.e$)(n.error)));return}e((0,d.t5)("Messaging template deleted successfully")),t.push(o.Wi)};return _?g?(0,n.jsx)(i.$jN,{}):(0,n.jsxs)(r.Z,{title:"Configure Message",children:[(0,n.jsx)(u.Z,{heading:"Templates",breadcrumbItems:[{title:"Templates",href:o.Wi},{title:"".concat(p.Z[_.type])}]}),(0,n.jsx)(i.xuv,{"data-testid":"add-messaging-template",maxWidth:"720px",children:(0,n.jsx)(f.Z,{template:_,handleSubmit:y,handleDelete:w})}),(0,n.jsx)(i.cVQ,{isOpen:j,onClose:v,onConfirm:C,title:"Delete message template",message:(0,n.jsx)(i.xvT,{children:"You are about to permanently delete this template message. Are you sure you would like to continue?"})})]}):null}}},function(e){e.O(0,[7630,2888,9774,179],function(){return e(e.s=84445)}),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3747],{38397:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/notifications/templates/add-template",function(){return n(6016)}])},6016:function(e,t,n){"use strict";n.r(t);var i=n(24246),r=n(812),s=n(77830),a=n(87949),u=n(86677),l=n(77213),c=n(58754),o=n(46628),d=n(67810),p=n(47466),h=n(5058),f=n(20149),_=n(31883);t.default=()=>{let e=(0,a.pmc)(),t=(0,u.useRouter)(),{templateType:n}=t.query,[m]=(0,h.Vw)(),{data:b,isLoading:x}=(0,p.KC)(n),j=async i=>{var a;let u={is_enabled:i.is_enabled,content:{subject:i.content.subject,body:i.content.body},properties:[]};null===(a=i.properties)||void 0===a||a.forEach(e=>{var t;return null===(t=u.properties)||void 0===t?void 0:t.push(e.id)});let l=await m({templateType:n,template:u});if((0,_.D4)(l)){e((0,o.Vo)((0,r.e$)(l.error)));return}e((0,o.t5)("Messaging template created successfully")),t.push(s.Wi)};return b?x?(0,i.jsx)(a.$jN,{}):(0,i.jsx)(l.Z,{title:"Configure Message",children:(0,i.jsx)(c.Z,{heading:"Templates",breadcrumbItems:[{title:"Templates",href:s.Wi},{title:"".concat(d.Z[b.type])}],children:(0,i.jsx)(a.xuv,{maxWidth:"720px",children:(0,i.jsx)(a.xuv,{padding:2,children:(0,i.jsx)(f.Z,{template:b,handleSubmit:j})})})})}):null}}},function(e){e.O(0,[7630,2888,9774,179],function(){return e(e.s=38397)}),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3747],{38397:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/notifications/templates/add-template",function(){return n(6016)}])},6016:function(e,t,n){"use strict";n.r(t);var i=n(24246),r=n(812),s=n(77830),a=n(98227),u=n(86677),l=n(77213),c=n(58754),o=n(46628),d=n(67810),p=n(47466),h=n(5058),f=n(20149),_=n(31883);t.default=()=>{let e=(0,a.pmc)(),t=(0,u.useRouter)(),{templateType:n}=t.query,[m]=(0,h.Vw)(),{data:b,isLoading:x}=(0,p.KC)(n),j=async i=>{var a;let u={is_enabled:i.is_enabled,content:{subject:i.content.subject,body:i.content.body},properties:[]};null===(a=i.properties)||void 0===a||a.forEach(e=>{var t;return null===(t=u.properties)||void 0===t?void 0:t.push(e.id)});let l=await m({templateType:n,template:u});if((0,_.D4)(l)){e((0,o.Vo)((0,r.e$)(l.error)));return}e((0,o.t5)("Messaging template created successfully")),t.push(s.Wi)};return b?x?(0,i.jsx)(a.$jN,{}):(0,i.jsx)(l.Z,{title:"Configure Message",children:(0,i.jsx)(c.Z,{heading:"Templates",breadcrumbItems:[{title:"Templates",href:s.Wi},{title:"".concat(d.Z[b.type])}],children:(0,i.jsx)(a.xuv,{maxWidth:"720px",children:(0,i.jsx)(a.xuv,{padding:2,children:(0,i.jsx)(f.Z,{template:b,handleSubmit:j})})})})}):null}}},function(e){e.O(0,[7630,2888,9774,179],function(){return e(e.s=38397)}),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6781],{42944:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/notifications/templates",function(){return s(46632)}])},35287:function(e,t,s){"use strict";var i=s(24246),a=s(87949),n=s(88038),r=s.n(n);s(27378),t.Z=e=>{let{children:t,title:s,fullHeight:n,fullWidth:l,mainProps:o}=e;return(0,i.jsxs)(a.kCb,{"data-testid":s,direction:"column",height:n?"100vh":"calc(100vh - 48px)",width:l?"100vw":"calc(100vw - 240px)",children:[(0,i.jsxs)(r(),{children:[(0,i.jsxs)("title",{children:["Fides Admin UI - ",s]}),(0,i.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,i.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,i.jsx)(a.kCb,{px:10,py:6,as:"main",overflow:"auto",direction:"column",flex:1,minWidth:0,...o,children:t})]})}},87361:function(e,t,s){"use strict";var i=s(24246),a=s(87949);t.Z=e=>{let{title:t,text:s,onClose:n}=e;return(0,i.jsxs)(a.Ugi,{backgroundColor:"gray.50",border:"1px solid",borderRadius:"md",justifyContent:"space-between",py:4,pr:6,pl:3,"data-testid":"empty-state",gap:2,position:"relative",children:[n&&(0,i.jsx)(a.Two,{boxSize:5,position:"absolute",right:3,top:3,zIndex:1,cursor:"pointer",p:1,onClick:n}),(0,i.jsx)(a.iid,{alignSelf:"start",color:"minos",mt:.5,flexGrow:0}),(0,i.jsxs)(a.kCb,{direction:"column",gap:2,flexGrow:1,children:[(0,i.jsx)(a.X6q,{fontSize:"md",children:t}),(0,i.jsx)(a.xvT,{fontSize:"sm",color:"gray.600",lineHeight:"5",children:s})]})]})}},129:function(e,t,s){"use strict";var i=s(24246),a=s(87949),n=s(86677),r=s(16134),l=s(25980),o=s(77830),c=s(65735),d=s(31793);t.Z=()=>{let e=(0,n.useRouter)(),t=e.pathname,{plus:s}=(0,l.hz)(),p="providers";t.startsWith(o.AD)?p="providers":t.startsWith(o.Wi)?p="templates":t.startsWith(o.DN)&&(p="digests");let u=[{key:"templates",label:"Templates",requiresPlus:!0,scopes:[c.Sh.MESSAGING_TEMPLATE_UPDATE],path:o.Wi},{key:"digests",label:"Digests",requiresPlus:!0,scopes:[c.Sh.DIGEST_CONFIG_READ],path:o.DN},{key:"providers",label:"Providers",requiresPlus:!1,scopes:[c.Sh.MESSAGING_CREATE_OR_UPDATE],path:o.AD}];s||(u=u.filter(e=>!e.requiresPlus));let m=(0,r.C)(d.uu);u=u.filter(e=>e.scopes.some(e=>m.includes(e)));let g=t=>{let s=u.find(e=>e.key===t);s&&e.push(s.path)},h=u.map(e=>({label:e.label,key:e.key}));return(0,i.jsx)("div",{className:"mb-6",children:(0,i.jsx)(a.Niu,{mode:"horizontal",selectedKeys:[p],onClick:e=>{let{key:t}=e;return g(t)},items:h})})}},58754:function(e,t,s){"use strict";var i=s(24246),a=s(87949),n=s(70788);t.Z=e=>{let{heading:t,breadcrumbItems:s,isSticky:r=!0,children:l,rightContent:o,style:c,...d}=e;return(0,i.jsxs)("div",{...d,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",...c}:{paddingBottom:"24px",...c},children:[(0,i.jsxs)(a.jqI,{justify:"space-between",children:["string"==typeof t?(0,i.jsx)(a.lQT,{className:s||l?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,o&&(0,i.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!s&&(0,i.jsx)(n.m,{className:l?"pb-4":void 0,items:s,"data-testid":"page-breadcrumb"}),l]})}},70788:function(e,t,s){"use strict";s.d(t,{m:function(){return c}});var i=s(24246),a=s(87949),n=s(79894),r=s.n(n),l=s(27378);let{Text:o}=a.AntTypography,c=e=>{let{items:t,...s}=e,n=(0,l.useMemo)(()=>null==t?void 0:t.map((e,s)=>{let n=s===t.length-1,l={...e},c=l.onClick&&!l.href;return("string"==typeof l.title&&(l.title=(0,i.jsx)(o,{style:{color:"inherit",maxWidth:n?void 0:400},ellipsis:!n,id:n?"breadcrumb-current-page":void 0,children:l.title})),c)?l.title=(0,i.jsx)(a.wpx,{type:"text",size:"small",icon:l.icon,onClick:l.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:l.title}):(l.icon&&(l.title=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"anticon align-text-bottom",children:l.icon}),l.title]})),l.href&&l.title&&(l.title=(0,i.jsx)(r(),{href:l.href,className:"ant-breadcrumb-link",children:l.title}),delete l.href)),l}),[t]);return(0,i.jsx)(a.zrq,{items:n,...s})}},67810:function(e,t,s){"use strict";s.d(t,{Z:function(){return n}}),(i=a||(a={})).PRIVACY_REQUEST_REVIEW_APPROVE="privacy_request_review_approve",i.PRIVACY_REQUEST_REVIEW_DENY="privacy_request_review_deny",i.PRIVACY_REQUEST_RECEIPT="privacy_request_receipt",i.PRIVACY_REQUEST_COMPLETE_ACCESS="privacy_request_complete_access",i.PRIVACY_REQUEST_COMPLETE_DELETION="privacy_request_complete_deletion",i.SUBJECT_IDENTITY_VERIFICATION="subject_identity_verification",i.MANUAL_TASK_DIGEST="manual_task_digest";var i,a,n={[a.PRIVACY_REQUEST_COMPLETE_ACCESS]:"Access request completed",[a.PRIVACY_REQUEST_COMPLETE_DELETION]:"Erasure request completed",[a.PRIVACY_REQUEST_RECEIPT]:"Privacy request received",[a.PRIVACY_REQUEST_REVIEW_APPROVE]:"Privacy request approved",[a.PRIVACY_REQUEST_REVIEW_DENY]:"Privacy request denied",[a.SUBJECT_IDENTITY_VERIFICATION]:"Subject identity verification",[a.MANUAL_TASK_DIGEST]:"Manual task digest"}},5058:function(e,t,s){"use strict";s.d(t,{Vw:function(){return n},ms:function(){return i},pS:function(){return a},vm:function(){return r}});let{useGetSummaryMessagingTemplatesQuery:i,usePutMessagingTemplateByIdMutation:a,useCreateMessagingTemplateByTypeMutation:n,usePatchMessagingTemplateByIdMutation:r}=s(78780).u.injectEndpoints({endpoints:e=>({getSummaryMessagingTemplates:e.query({query:e=>({method:"GET",url:"plus/messaging/templates/summary",params:e}),providesTags:()=>["Property-Specific Messaging Templates"]}),putMessagingTemplateById:e.mutation({query:e=>{let{templateId:t,template:s}=e;return{url:"plus/messaging/templates/".concat(t),method:"PUT",body:s}},invalidatesTags:()=>["Property-Specific Messaging Templates"]}),patchMessagingTemplateById:e.mutation({query:e=>{let{templateId:t,template:s}=e;return{url:"plus/messaging/templates/".concat(t),method:"PATCH",body:s}},invalidatesTags:()=>["Property-Specific Messaging Templates"]}),createMessagingTemplateByType:e.mutation({query:e=>{let{templateType:t,template:s}=e;return{url:"plus/messaging/templates/".concat(t),method:"POST",body:s}},invalidatesTags:()=>["Property-Specific Messaging Templates"]})})})},46632:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return M}});var i=s(24246),a=s(92222),n=s(59003),r=s(87949),l=s(95099),o=s.n(l),c=s(86677),d=s(27378),p=s(35287),u=s(71795),m=s(87361),g=s(46238),h=s(77830),x=s(129),f=s(58754),j=s(47935),_=s(42904),v=s(7426),y=s(67810),E=e=>{let{isOpen:t,onClose:s,onAccept:a}=e,[n,l]=(0,d.useState)(void 0),o=Object.keys(y.Z).map(e=>({value:e,label:y.Z[e]}));return(0,i.jsxs)(r.u_l,{isOpen:t,onClose:s,size:"2xl",isCentered:!0,children:[(0,i.jsx)(r.ZAr,{}),(0,i.jsxs)(r.hzk,{"data-testid":"add-messaging-template-modal",children:[(0,i.jsx)(r.xBx,{borderBottomWidth:1,fontWeight:"bold",children:"Select message template"}),(0,i.jsxs)(r.fef,{children:[(0,i.jsx)(r.xvT,{color:"gray.700",fontWeight:"medium",fontSize:"sm",marginBottom:3,marginTop:1,children:"Add a new email message by selecting a template below and clicking accept."}),(0,i.jsx)(r.xvT,{color:"gray.700",fontSize:"sm",fontWeight:"medium",marginBottom:2,children:"Choose template:"}),(0,i.jsx)(r.xuv,{"data-testid":"template-type-selector",children:(0,i.jsx)(r.WPr,{options:o,onChange:e=>{l(e)},className:"w-full","aria-label":"Select a template"})})]}),(0,i.jsx)(r.mzw,{justifyContent:"flex-start",children:(0,i.jsxs)("div",{className:"flex w-full gap-4",children:[(0,i.jsx)(r.wpx,{onClick:s,"data-testid":"cancel-btn",className:"grow",children:"Cancel"}),(0,i.jsx)(r.wpx,{onClick:()=>a(n),type:"primary","data-testid":"confirm-btn",disabled:!n,className:"grow",children:"Next"})]})})]})]})},b=s(5058),T=s(812),C=s(46628),S=s(31883),P=()=>{let e=(0,r.pmc)(),[t]=(0,b.vm)();return{toggleIsTemplateEnabled:(0,d.useCallback)(async s=>{let{isEnabled:i,templateId:a}=s,n=await t({templateId:a,template:{is_enabled:i}});if((0,S.D4)(n)){e((0,C.Vo)((0,T.e$)(n.error)));return}e((0,C.t5)("Messaging template ".concat(i?"enabled":"disabled")))},[t,e])}},R=s(64826);let w=(0,a.Cl)(),I={items:[],total:0,page:1,size:50,pages:1},A=()=>(0,i.jsx)(r.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",textAlign:"center",children:(0,i.jsxs)(r.gCW,{children:[(0,i.jsx)(r.xvT,{fontSize:"md",fontWeight:"600",children:"It looks like it's your first time here!"}),(0,i.jsxs)(r.xvT,{fontSize:"sm",children:['Add new email templates with the "Add message +" button.',(0,i.jsx)("br",{})]})]})}),k=()=>{let{isLoading:e,data:t}=(0,R.gz)({page:1,size:100}),s=null==t?void 0:t.items.filter(e=>!e.messaging_templates||0===e.messaging_templates.length),a=!!(!e&&(null==s?void 0:s.length)),n="missing-messages-notice-".concat(null==s?void 0:s.map(e=>e.id).join("-")),[l,o]=(0,u._)("notices.dismissedMessageNoticeId",""),c=n===l;return a&&!c?(0,i.jsx)(r.xuv,{mb:6,"data-testid":"notice-properties-without-messaging-templates",children:(0,i.jsx)(m.Z,{title:"Not all properties have messages configured.",text:(0,i.jsxs)(r.xvT,{as:"span",children:["You have properties that do not have messages configured. Users who submit privacy requests for these properties may not receive the necessary emails regarding their requests."," ",(0,i.jsx)(r.xuv,{as:"span",children:(0,i.jsx)(g.b,{label:null==s?void 0:s.map(e=>e.name).join(", ")})})]}),onClose:()=>{o(n)}})}):null},N=()=>{let{data:e}=(0,v.tB)({api_set:!1});return(null==e?void 0:e.notifications.enable_property_specific_messaging)?null:(0,i.jsx)(r.xuv,{mb:6,"data-testid":"notice-properties-without-messaging-templates",children:(0,i.jsx)(m.Z,{title:"Basic messaging enabled",text:(0,i.jsxs)(r.xvT,{as:"span",children:['In basic messaging mode, you can edit the content of your messages from this screen. Please note that in basic messaging, the "Enable" toggle does not apply. Fides also supports property specific messaging mode. Read our'," ",(0,i.jsx)(r.rUS,{href:"https://fid.es/property-specific-messaging",target:"_blank",rel:"nofollow",textDecoration:"underline",children:"docs"})," ","for more information about property specific mode or contact"," ",(0,i.jsx)(r.rUS,{href:"mailto:support@ethyca.com",textDecoration:"underline",children:"Ethyca support"})," ","to enable this mode on your Fides instance."]})})})};var M=()=>{let e=(0,c.useRouter)(),{toggleIsTemplateEnabled:t}=P(),{PAGE_SIZES:s,pageSize:l,setPageSize:u,onPreviousPageClick:m,isPreviousPageDisabled:g,onNextPageClick:v,isNextPageDisabled:T,startRange:C,endRange:S,pageIndex:R,setTotalPages:M}=(0,j.oi)(),{data:q,isLoading:z,isFetching:D}=(0,b.ms)({page:R,size:l}),{items:U,total:V,pages:W}=(0,d.useMemo)(()=>null!=q?q:I,[q]);(0,d.useEffect)(()=>{M(W)},[W,M]);let[O,B]=(0,d.useState)(!1),Y=(0,d.useMemo)(()=>[w.accessor(e=>e.type,{id:"message",cell:e=>(0,i.jsx)(j.G3,{value:y.Z[e.getValue()]}),header:e=>(0,i.jsx)(j.Rr,{value:"Message",...e}),size:150}),w.accessor(e=>(e.properties||[]).map(e=>e.name),{id:"properties",cell:e=>(0,i.jsx)(j.WP,{suffix:"properties",value:e.getValue(),...e}),header:e=>(0,i.jsx)(j.Rr,{value:"Properties",...e}),meta:{showHeaderMenu:!0},size:250}),w.accessor(e=>e.is_enabled,{id:"is_enabled",cell:e=>(0,i.jsx)(r.kCb,{align:"center",justifyContent:"flex-start",w:"full",h:"full",children:(0,i.jsx)(r.rAg,{checked:e.getValue(),onChange:s=>{t({isEnabled:s,templateId:e.row.original.id})}})}),header:e=>(0,i.jsx)(j.Rr,{value:"Enable",...e}),size:200,meta:{disableRowClick:!0}})],[t]),Z=(0,d.useMemo)(()=>o()(U,"id"),[U]),L=(0,n.b7)({getCoreRowModel:(0,a.sC)(),getFilteredRowModel:(0,a.vL)(),getSortedRowModel:(0,a.tj)(),columns:Y,data:Z,columnResizeMode:"onChange"});return(0,i.jsxs)(p.Z,{title:"Notifications",children:[(0,i.jsx)(f.Z,{heading:"Notifications"}),(0,i.jsx)(x.Z,{}),(0,i.jsx)(N,{}),(0,i.jsx)(k,{}),(0,i.jsx)(j.Q$,{children:(0,i.jsx)(r.Ugi,{alignItems:"center",spacing:4,marginLeft:"auto",children:(0,i.jsx)(r.wpx,{type:"primary","data-testid":"add-message-btn",onClick:()=>B(!0),children:"Add message +"})})}),z?(0,i.jsx)(j.I4,{rowHeight:36,numRows:15}):(0,i.jsx)(j.ZK,{tableInstance:L,onRowClick:t=>{e.push({pathname:h.mf,query:{id:t.id}})},emptyTableNotice:(0,i.jsx)(A,{})}),(0,i.jsx)(_.s8,{totalRows:V||0,pageSizes:s,setPageSize:u,onPreviousPageClick:m,isPreviousPageDisabled:g||D,onNextPageClick:v,isNextPageDisabled:T||D,startRange:C,endRange:S}),(0,i.jsx)(E,{isOpen:O,onClose:()=>B(!1),onAccept:t=>{e.push({pathname:h.fO,query:{templateType:t}})}})]})}},31883:function(e,t,s){"use strict";s.d(t,{Bw:function(){return i.Bw},D4:function(){return i.D4}});var i=s(19043)}},function(e){e.O(0,[8765,9278,346,2888,9774,179],function(){return e(e.s=42944)}),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6781],{42944:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/notifications/templates",function(){return s(46632)}])},35287:function(e,t,s){"use strict";var i=s(24246),a=s(98227),n=s(88038),r=s.n(n);s(27378),t.Z=e=>{let{children:t,title:s,fullHeight:n,fullWidth:l,mainProps:o}=e;return(0,i.jsxs)(a.kCb,{"data-testid":s,direction:"column",height:n?"100vh":"calc(100vh - 48px)",width:l?"100vw":"calc(100vw - 240px)",children:[(0,i.jsxs)(r(),{children:[(0,i.jsxs)("title",{children:["Fides Admin UI - ",s]}),(0,i.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,i.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,i.jsx)(a.kCb,{px:10,py:6,as:"main",overflow:"auto",direction:"column",flex:1,minWidth:0,...o,children:t})]})}},87361:function(e,t,s){"use strict";var i=s(24246),a=s(98227);t.Z=e=>{let{title:t,text:s,onClose:n}=e;return(0,i.jsxs)(a.Ugi,{backgroundColor:"gray.50",border:"1px solid",borderRadius:"md",justifyContent:"space-between",py:4,pr:6,pl:3,"data-testid":"empty-state",gap:2,position:"relative",children:[n&&(0,i.jsx)(a.Two,{boxSize:5,position:"absolute",right:3,top:3,zIndex:1,cursor:"pointer",p:1,onClick:n}),(0,i.jsx)(a.iid,{alignSelf:"start",color:"minos",mt:.5,flexGrow:0}),(0,i.jsxs)(a.kCb,{direction:"column",gap:2,flexGrow:1,children:[(0,i.jsx)(a.X6q,{fontSize:"md",children:t}),(0,i.jsx)(a.xvT,{fontSize:"sm",color:"gray.600",lineHeight:"5",children:s})]})]})}},129:function(e,t,s){"use strict";var i=s(24246),a=s(98227),n=s(86677),r=s(16134),l=s(25980),o=s(77830),c=s(65735),d=s(31793);t.Z=()=>{let e=(0,n.useRouter)(),t=e.pathname,{plus:s}=(0,l.hz)(),p="providers";t.startsWith(o.AD)?p="providers":t.startsWith(o.Wi)?p="templates":t.startsWith(o.DN)&&(p="digests");let u=[{key:"templates",label:"Templates",requiresPlus:!0,scopes:[c.Sh.MESSAGING_TEMPLATE_UPDATE],path:o.Wi},{key:"digests",label:"Digests",requiresPlus:!0,scopes:[c.Sh.DIGEST_CONFIG_READ],path:o.DN},{key:"providers",label:"Providers",requiresPlus:!1,scopes:[c.Sh.MESSAGING_CREATE_OR_UPDATE],path:o.AD}];s||(u=u.filter(e=>!e.requiresPlus));let m=(0,r.C)(d.uu);u=u.filter(e=>e.scopes.some(e=>m.includes(e)));let g=t=>{let s=u.find(e=>e.key===t);s&&e.push(s.path)},h=u.map(e=>({label:e.label,key:e.key}));return(0,i.jsx)("div",{className:"mb-6",children:(0,i.jsx)(a.Niu,{mode:"horizontal",selectedKeys:[p],onClick:e=>{let{key:t}=e;return g(t)},items:h})})}},58754:function(e,t,s){"use strict";var i=s(24246),a=s(98227),n=s(70788);t.Z=e=>{let{heading:t,breadcrumbItems:s,isSticky:r=!0,children:l,rightContent:o,style:c,...d}=e;return(0,i.jsxs)("div",{...d,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",...c}:{paddingBottom:"24px",...c},children:[(0,i.jsxs)(a.jqI,{justify:"space-between",children:["string"==typeof t?(0,i.jsx)(a.lQT,{className:s||l?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,o&&(0,i.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!s&&(0,i.jsx)(n.m,{className:l?"pb-4":void 0,items:s,"data-testid":"page-breadcrumb"}),l]})}},70788:function(e,t,s){"use strict";s.d(t,{m:function(){return c}});var i=s(24246),a=s(98227),n=s(79894),r=s.n(n),l=s(27378);let{Text:o}=a.AntTypography,c=e=>{let{items:t,...s}=e,n=(0,l.useMemo)(()=>null==t?void 0:t.map((e,s)=>{let n=s===t.length-1,l={...e},c=l.onClick&&!l.href;return("string"==typeof l.title&&(l.title=(0,i.jsx)(o,{style:{color:"inherit",maxWidth:n?void 0:400},ellipsis:!n,id:n?"breadcrumb-current-page":void 0,children:l.title})),c)?l.title=(0,i.jsx)(a.wpx,{type:"text",size:"small",icon:l.icon,onClick:l.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:l.title}):(l.icon&&(l.title=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"anticon align-text-bottom",children:l.icon}),l.title]})),l.href&&l.title&&(l.title=(0,i.jsx)(r(),{href:l.href,className:"ant-breadcrumb-link",children:l.title}),delete l.href)),l}),[t]);return(0,i.jsx)(a.zrq,{items:n,...s})}},67810:function(e,t,s){"use strict";s.d(t,{Z:function(){return n}}),(i=a||(a={})).PRIVACY_REQUEST_REVIEW_APPROVE="privacy_request_review_approve",i.PRIVACY_REQUEST_REVIEW_DENY="privacy_request_review_deny",i.PRIVACY_REQUEST_RECEIPT="privacy_request_receipt",i.PRIVACY_REQUEST_COMPLETE_ACCESS="privacy_request_complete_access",i.PRIVACY_REQUEST_COMPLETE_DELETION="privacy_request_complete_deletion",i.SUBJECT_IDENTITY_VERIFICATION="subject_identity_verification",i.MANUAL_TASK_DIGEST="manual_task_digest";var i,a,n={[a.PRIVACY_REQUEST_COMPLETE_ACCESS]:"Access request completed",[a.PRIVACY_REQUEST_COMPLETE_DELETION]:"Erasure request completed",[a.PRIVACY_REQUEST_RECEIPT]:"Privacy request received",[a.PRIVACY_REQUEST_REVIEW_APPROVE]:"Privacy request approved",[a.PRIVACY_REQUEST_REVIEW_DENY]:"Privacy request denied",[a.SUBJECT_IDENTITY_VERIFICATION]:"Subject identity verification",[a.MANUAL_TASK_DIGEST]:"Manual task digest"}},5058:function(e,t,s){"use strict";s.d(t,{Vw:function(){return n},ms:function(){return i},pS:function(){return a},vm:function(){return r}});let{useGetSummaryMessagingTemplatesQuery:i,usePutMessagingTemplateByIdMutation:a,useCreateMessagingTemplateByTypeMutation:n,usePatchMessagingTemplateByIdMutation:r}=s(78780).u.injectEndpoints({endpoints:e=>({getSummaryMessagingTemplates:e.query({query:e=>({method:"GET",url:"plus/messaging/templates/summary",params:e}),providesTags:()=>["Property-Specific Messaging Templates"]}),putMessagingTemplateById:e.mutation({query:e=>{let{templateId:t,template:s}=e;return{url:"plus/messaging/templates/".concat(t),method:"PUT",body:s}},invalidatesTags:()=>["Property-Specific Messaging Templates"]}),patchMessagingTemplateById:e.mutation({query:e=>{let{templateId:t,template:s}=e;return{url:"plus/messaging/templates/".concat(t),method:"PATCH",body:s}},invalidatesTags:()=>["Property-Specific Messaging Templates"]}),createMessagingTemplateByType:e.mutation({query:e=>{let{templateType:t,template:s}=e;return{url:"plus/messaging/templates/".concat(t),method:"POST",body:s}},invalidatesTags:()=>["Property-Specific Messaging Templates"]})})})},46632:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return M}});var i=s(24246),a=s(92222),n=s(59003),r=s(98227),l=s(95099),o=s.n(l),c=s(86677),d=s(27378),p=s(35287),u=s(71795),m=s(87361),g=s(46238),h=s(77830),x=s(129),f=s(58754),j=s(47935),_=s(42904),v=s(7426),y=s(67810),E=e=>{let{isOpen:t,onClose:s,onAccept:a}=e,[n,l]=(0,d.useState)(void 0),o=Object.keys(y.Z).map(e=>({value:e,label:y.Z[e]}));return(0,i.jsxs)(r.u_l,{isOpen:t,onClose:s,size:"2xl",isCentered:!0,children:[(0,i.jsx)(r.ZAr,{}),(0,i.jsxs)(r.hzk,{"data-testid":"add-messaging-template-modal",children:[(0,i.jsx)(r.xBx,{borderBottomWidth:1,fontWeight:"bold",children:"Select message template"}),(0,i.jsxs)(r.fef,{children:[(0,i.jsx)(r.xvT,{color:"gray.700",fontWeight:"medium",fontSize:"sm",marginBottom:3,marginTop:1,children:"Add a new email message by selecting a template below and clicking accept."}),(0,i.jsx)(r.xvT,{color:"gray.700",fontSize:"sm",fontWeight:"medium",marginBottom:2,children:"Choose template:"}),(0,i.jsx)(r.xuv,{"data-testid":"template-type-selector",children:(0,i.jsx)(r.WPr,{options:o,onChange:e=>{l(e)},className:"w-full","aria-label":"Select a template"})})]}),(0,i.jsx)(r.mzw,{justifyContent:"flex-start",children:(0,i.jsxs)("div",{className:"flex w-full gap-4",children:[(0,i.jsx)(r.wpx,{onClick:s,"data-testid":"cancel-btn",className:"grow",children:"Cancel"}),(0,i.jsx)(r.wpx,{onClick:()=>a(n),type:"primary","data-testid":"confirm-btn",disabled:!n,className:"grow",children:"Next"})]})})]})]})},b=s(5058),T=s(812),C=s(46628),S=s(31883),P=()=>{let e=(0,r.pmc)(),[t]=(0,b.vm)();return{toggleIsTemplateEnabled:(0,d.useCallback)(async s=>{let{isEnabled:i,templateId:a}=s,n=await t({templateId:a,template:{is_enabled:i}});if((0,S.D4)(n)){e((0,C.Vo)((0,T.e$)(n.error)));return}e((0,C.t5)("Messaging template ".concat(i?"enabled":"disabled")))},[t,e])}},R=s(64826);let w=(0,a.Cl)(),I={items:[],total:0,page:1,size:50,pages:1},A=()=>(0,i.jsx)(r.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",textAlign:"center",children:(0,i.jsxs)(r.gCW,{children:[(0,i.jsx)(r.xvT,{fontSize:"md",fontWeight:"600",children:"It looks like it's your first time here!"}),(0,i.jsxs)(r.xvT,{fontSize:"sm",children:['Add new email templates with the "Add message +" button.',(0,i.jsx)("br",{})]})]})}),k=()=>{let{isLoading:e,data:t}=(0,R.gz)({page:1,size:100}),s=null==t?void 0:t.items.filter(e=>!e.messaging_templates||0===e.messaging_templates.length),a=!!(!e&&(null==s?void 0:s.length)),n="missing-messages-notice-".concat(null==s?void 0:s.map(e=>e.id).join("-")),[l,o]=(0,u._)("notices.dismissedMessageNoticeId",""),c=n===l;return a&&!c?(0,i.jsx)(r.xuv,{mb:6,"data-testid":"notice-properties-without-messaging-templates",children:(0,i.jsx)(m.Z,{title:"Not all properties have messages configured.",text:(0,i.jsxs)(r.xvT,{as:"span",children:["You have properties that do not have messages configured. Users who submit privacy requests for these properties may not receive the necessary emails regarding their requests."," ",(0,i.jsx)(r.xuv,{as:"span",children:(0,i.jsx)(g.b,{label:null==s?void 0:s.map(e=>e.name).join(", ")})})]}),onClose:()=>{o(n)}})}):null},N=()=>{let{data:e}=(0,v.tB)({api_set:!1});return(null==e?void 0:e.notifications.enable_property_specific_messaging)?null:(0,i.jsx)(r.xuv,{mb:6,"data-testid":"notice-properties-without-messaging-templates",children:(0,i.jsx)(m.Z,{title:"Basic messaging enabled",text:(0,i.jsxs)(r.xvT,{as:"span",children:['In basic messaging mode, you can edit the content of your messages from this screen. Please note that in basic messaging, the "Enable" toggle does not apply. Fides also supports property specific messaging mode. Read our'," ",(0,i.jsx)(r.rUS,{href:"https://fid.es/property-specific-messaging",target:"_blank",rel:"nofollow",textDecoration:"underline",children:"docs"})," ","for more information about property specific mode or contact"," ",(0,i.jsx)(r.rUS,{href:"mailto:support@ethyca.com",textDecoration:"underline",children:"Ethyca support"})," ","to enable this mode on your Fides instance."]})})})};var M=()=>{let e=(0,c.useRouter)(),{toggleIsTemplateEnabled:t}=P(),{PAGE_SIZES:s,pageSize:l,setPageSize:u,onPreviousPageClick:m,isPreviousPageDisabled:g,onNextPageClick:v,isNextPageDisabled:T,startRange:C,endRange:S,pageIndex:R,setTotalPages:M}=(0,j.oi)(),{data:q,isLoading:z,isFetching:D}=(0,b.ms)({page:R,size:l}),{items:U,total:V,pages:W}=(0,d.useMemo)(()=>null!=q?q:I,[q]);(0,d.useEffect)(()=>{M(W)},[W,M]);let[O,B]=(0,d.useState)(!1),Y=(0,d.useMemo)(()=>[w.accessor(e=>e.type,{id:"message",cell:e=>(0,i.jsx)(j.G3,{value:y.Z[e.getValue()]}),header:e=>(0,i.jsx)(j.Rr,{value:"Message",...e}),size:150}),w.accessor(e=>(e.properties||[]).map(e=>e.name),{id:"properties",cell:e=>(0,i.jsx)(j.WP,{suffix:"properties",value:e.getValue(),...e}),header:e=>(0,i.jsx)(j.Rr,{value:"Properties",...e}),meta:{showHeaderMenu:!0},size:250}),w.accessor(e=>e.is_enabled,{id:"is_enabled",cell:e=>(0,i.jsx)(r.kCb,{align:"center",justifyContent:"flex-start",w:"full",h:"full",children:(0,i.jsx)(r.rAg,{checked:e.getValue(),onChange:s=>{t({isEnabled:s,templateId:e.row.original.id})}})}),header:e=>(0,i.jsx)(j.Rr,{value:"Enable",...e}),size:200,meta:{disableRowClick:!0}})],[t]),Z=(0,d.useMemo)(()=>o()(U,"id"),[U]),L=(0,n.b7)({getCoreRowModel:(0,a.sC)(),getFilteredRowModel:(0,a.vL)(),getSortedRowModel:(0,a.tj)(),columns:Y,data:Z,columnResizeMode:"onChange"});return(0,i.jsxs)(p.Z,{title:"Notifications",children:[(0,i.jsx)(f.Z,{heading:"Notifications"}),(0,i.jsx)(x.Z,{}),(0,i.jsx)(N,{}),(0,i.jsx)(k,{}),(0,i.jsx)(j.Q$,{children:(0,i.jsx)(r.Ugi,{alignItems:"center",spacing:4,marginLeft:"auto",children:(0,i.jsx)(r.wpx,{type:"primary","data-testid":"add-message-btn",onClick:()=>B(!0),children:"Add message +"})})}),z?(0,i.jsx)(j.I4,{rowHeight:36,numRows:15}):(0,i.jsx)(j.ZK,{tableInstance:L,onRowClick:t=>{e.push({pathname:h.mf,query:{id:t.id}})},emptyTableNotice:(0,i.jsx)(A,{})}),(0,i.jsx)(_.s8,{totalRows:V||0,pageSizes:s,setPageSize:u,onPreviousPageClick:m,isPreviousPageDisabled:g||D,onNextPageClick:v,isNextPageDisabled:T||D,startRange:C,endRange:S}),(0,i.jsx)(E,{isOpen:O,onClose:()=>B(!1),onAccept:t=>{e.push({pathname:h.fO,query:{templateType:t}})}})]})}},31883:function(e,t,s){"use strict";s.d(t,{Bw:function(){return i.Bw},D4:function(){return i.D4}});var i=s(19043)}},function(e){e.O(0,[8765,9278,346,2888,9774,179],function(){return e(e.s=42944)}),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8769],{33274:function(e,n,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/notifications",function(){return i(77061)}])},77213:function(e,n,i){"use strict";i.d(n,{Z:function(){return f}});var t=i(24246),s=i(87949),r=i(88038),a=i.n(r),o=i(86677);i(27378);var g=i(25980),u=i(90867),c=i(42478),d=i(77830),l=()=>{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(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:r=!0,mainProps:d}=e,f=(0,g.hz)(),m=(0,o.useRouter)(),y="/privacy-requests"===m.pathname||"/datastore-connection"===m.pathname,C=!(f.flags.messagingConfiguration&&y),{data:h}=(0,c.JE)(void 0,{skip:C}),{data:v}=(0,u.PW)(void 0,{skip:C}),p=f.flags.messagingConfiguration&&(!h||!v)&&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:r?6:0,px:r?10:0,h:r?"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 r},jc:function(){return t},qt:function(){return g},sn:function(){return c}});let{useGetEmailInviteStatusQuery:t,useGetActiveMessagingProviderQuery:s,useCreateMessagingConfigurationMutation:r,useCreateMessagingConfigurationSecretsMutation:a,useGetMessagingConfigurationDetailsQuery:o,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"]})})})},77061:function(e,n,i){"use strict";i.r(n);var t=i(24246),s=i(87949),r=i(86677),a=i(27378),o=i(25980),g=i(77213),u=i(77830);n.default=()=>{let e=(0,r.useRouter)(),{plus:n}=(0,o.hz)();return(0,a.useEffect)(()=>{let i=n?u.Wi:u.AD;e.push(i)},[e,n]),(0,t.jsx)(g.Z,{title:"Notifications",children:(0,t.jsx)("div",{className:"flex h-screen items-center justify-center",children:(0,t.jsx)(s.$jN,{})})})}}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=33274)}),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8769],{33274:function(e,n,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/notifications",function(){return i(77061)}])},77213:function(e,n,i){"use strict";i.d(n,{Z:function(){return f}});var t=i(24246),s=i(98227),r=i(88038),a=i.n(r),o=i(86677);i(27378);var g=i(25980),u=i(90867),c=i(42478),d=i(77830),l=()=>{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(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:r=!0,mainProps:d}=e,f=(0,g.hz)(),m=(0,o.useRouter)(),y="/privacy-requests"===m.pathname||"/datastore-connection"===m.pathname,C=!(f.flags.messagingConfiguration&&y),{data:h}=(0,c.JE)(void 0,{skip:C}),{data:v}=(0,u.PW)(void 0,{skip:C}),p=f.flags.messagingConfiguration&&(!h||!v)&&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:r?6:0,px:r?10:0,h:r?"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 r},jc:function(){return t},qt:function(){return g},sn:function(){return c}});let{useGetEmailInviteStatusQuery:t,useGetActiveMessagingProviderQuery:s,useCreateMessagingConfigurationMutation:r,useCreateMessagingConfigurationSecretsMutation:a,useGetMessagingConfigurationDetailsQuery:o,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"]})})})},77061:function(e,n,i){"use strict";i.r(n);var t=i(24246),s=i(98227),r=i(86677),a=i(27378),o=i(25980),g=i(77213),u=i(77830);n.default=()=>{let e=(0,r.useRouter)(),{plus:n}=(0,o.hz)();return(0,a.useEffect)(()=>{let i=n?u.Wi:u.AD;e.push(i)},[e,n]),(0,t.jsx)(g.Z,{title:"Notifications",children:(0,t.jsx)("div",{className:"flex h-screen items-center justify-center",children:(0,t.jsx)(s.$jN,{})})})}}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=33274)}),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1921],{76985:function(e,l,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/poc/ant-components",function(){return s(37525)}])},58754:function(e,l,s){"use strict";var t=s(24246),i=s(87949),a=s(70788);l.Z=e=>{let{heading:l,breadcrumbItems:s,isSticky:n=!0,children:r,rightContent:c,style:o,...d}=e;return(0,t.jsxs)("div",{...d,style:n?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...o}:{paddingBottom:"24px",...o},children:[(0,t.jsxs)(i.jqI,{justify:"space-between",children:["string"==typeof l?(0,t.jsx)(i.lQT,{className:s||r?"pb-4":void 0,level:1,"data-testid":"page-heading",children:l}):l,c&&(0,t.jsx)("div",{"data-testid":"page-header-right-content",children:c})]}),!!s&&(0,t.jsx)(a.m,{className:r?"pb-4":void 0,items:s,"data-testid":"page-breadcrumb"}),r]})}},70788:function(e,l,s){"use strict";s.d(l,{m:function(){return o}});var t=s(24246),i=s(87949),a=s(79894),n=s.n(a),r=s(27378);let{Text:c}=i.AntTypography,o=e=>{let{items:l,...s}=e,a=(0,r.useMemo)(()=>null==l?void 0:l.map((e,s)=>{let a=s===l.length-1,r={...e},o=r.onClick&&!r.href;return("string"==typeof r.title&&(r.title=(0,t.jsx)(c,{style:{color:"inherit",maxWidth:a?void 0:400},ellipsis:!a,id:a?"breadcrumb-current-page":void 0,children:r.title})),o)?r.title=(0,t.jsx)(i.wpx,{type:"text",size:"small",icon:r.icon,onClick:r.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:r.title}):(r.icon&&(r.title=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"anticon align-text-bottom",children:r.icon}),r.title]})),r.href&&r.title&&(r.title=(0,t.jsx)(n(),{href:r.href,className:"ant-breadcrumb-link",children:r.title}),delete r.href)),r}),[l]);return(0,t.jsx)(i.zrq,{items:a,...s})}},37525:function(e,l,s){"use strict";s.r(l),s.d(l,{default:function(){return g}});var t=s(24246),i=s(87949),a=s(27378),n=s(46238),r=s(58754);let c=[{key:"1",title:"Item One",description:"First item description",status:"active"},{key:"2",title:"Item Two",description:"Second item description",status:"completed"},{key:"3",title:"Item Three",description:"Third item description",status:"completed"},{key:"4",title:"Item Four (Locked)",description:"This item is locked",status:"active",locked:!0},{key:"5",title:"Item Five",description:"Fifth item description",status:"active"}],o=e=>{let{form:l}=e;return(0,t.jsxs)(i.jqI,{vertical:!0,gap:4,children:[(0,t.jsx)(i.FUI,{children:"This is a sample form modal. Fill out the fields below and click confirm."}),(0,t.jsx)(i.PPS,{form:l,layout:"vertical",children:(0,t.jsx)(i.PPS.Item,{name:"name",label:"Name",rules:[{required:!0,message:"Please enter your name"}],children:(0,t.jsx)(i.AntInput,{placeholder:"Enter your name"})})})]})},d=()=>{let[e,l]=i.$zI.useModal(),s=e=>(0,t.jsx)(o,{form:e}),{openFormModal:a}=(0,i.U8S)(e),n=async()=>{let l=await a({title:"Custom form modal",content:s,okText:"Submit",cancelText:"Cancel",width:500,centered:!0});l&&e.success({title:"Form submitted",content:"Form submitted successfully with name: ".concat(l.name),okText:"OK"})};return(0,t.jsxs)(t.Fragment,{children:[l,(0,t.jsx)(i.V4A,{title:"Modal methods",variant:"borderless",children:(0,t.jsxs)(i.jqI,{gap:8,children:[(0,t.jsx)(i.wpx,{onClick:n,children:"Show custom form modal"}),(0,t.jsx)(i.wpx,{onClick:()=>{e.info({title:"Info modal",content:"This is an info modal with some information for the user.",okText:"Got it"})},children:"Show info modal"}),(0,t.jsx)(i.wpx,{onClick:()=>{e.success({title:"Success modal",content:"Operation completed successfully!",okText:"Great"})},children:"Show success modal"}),(0,t.jsx)(i.wpx,{onClick:()=>{e.error({title:"Error modal",content:"Something went wrong. Please try again.",okText:"OK"})},children:"Show error modal"}),(0,t.jsx)(i.wpx,{onClick:()=>{e.warning({title:"Warning modal",content:"Please be careful with this action.",okText:"Understood"})},children:"Show warning modal"}),(0,t.jsx)(i.wpx,{onClick:()=>{e.confirm({title:"Confirm modal",content:"Are you sure you want to proceed with this action?",okText:"Yes",cancelText:"No"})},type:"default",children:"Show confirm modal"})]})})]})},{Content:h}=i.AntLayout,{Link:u,Paragraph:x,Text:p,Title:j}=i.AntTypography,m=[];for(let e=10;e<36;e+=1)m.push({label:e.toString(36)+e,value:e.toString(36)+e});var g=()=>{let[e,l]=(0,a.useState)(["1","3"]);return(0,t.jsx)(i.AntLayout,{children:(0,t.jsxs)(h,{className:"overflow-auto px-10 py-6",children:[(0,t.jsx)(r.Z,{heading:"Ant Design Proof of Concept"}),(0,t.jsxs)(i.bue,{gutter:16,className:"mt-6",children:[(0,t.jsx)(i.JGx,{span:8,children:(0,t.jsx)(i.V4A,{title:"Button",variant:"borderless",className:"h-full",children:(0,t.jsxs)(i.vyj,{direction:"vertical",children:[(0,t.jsx)(i.wpx,{type:"primary",children:"Primary Button"}),(0,t.jsx)(i.wpx,{children:"Default Button"}),(0,t.jsx)(i.wpx,{type:"dashed",children:"Dashed Button"}),(0,t.jsx)(i.wpx,{type:"text",children:"Text Button"}),(0,t.jsx)(i.wpx,{type:"link",children:"Link Button"}),(0,t.jsx)(i.wpx,{type:"primary",loading:!0,children:"Loading Button"}),(0,t.jsx)(i.wpx,{type:"primary",disabled:!0,children:"Disabled Button"})]})})}),(0,t.jsx)(i.JGx,{span:8,children:(0,t.jsx)(i.V4A,{title:"Switch",variant:"borderless",className:"h-full",children:(0,t.jsxs)(i.vyj,{direction:"vertical",children:[(0,t.jsx)(i.rAg,{defaultChecked:!0}),(0,t.jsx)(i.rAg,{size:"small",defaultChecked:!0}),(0,t.jsx)(i.rAg,{loading:!0,defaultChecked:!0})]})})}),(0,t.jsx)(i.JGx,{span:8,children:(0,t.jsx)(i.V4A,{title:"Select",variant:"borderless",className:"h-full",children:(0,t.jsxs)(i.vyj,{direction:"vertical",children:[(0,t.jsx)(i.WPr,{defaultValue:"lucy",className:"w-32",options:[{value:"jack",label:"Jack"},{value:"lucy",label:"Lucy"},{value:"Yiminghe",label:"yiminghe"},{value:"disabled",label:"Disabled",disabled:!0}],"aria-label":"Select"}),(0,t.jsx)(i.WPr,{defaultValue:"lucy",className:"w-32",disabled:!0,options:[{value:"lucy",label:"Lucy"}],"aria-label":"Select"}),(0,t.jsx)(i.WPr,{defaultValue:"lucy",className:"w-32",loading:!0,options:[{value:"lucy",label:"Lucy"}],"aria-label":"Select"}),(0,t.jsx)(i.WPr,{defaultValue:"lucy",className:"w-32",allowClear:!0,options:[{value:"lucy",label:"Lucy"}],"aria-label":"Select"}),(0,t.jsx)(i.WPr,{mode:"multiple",allowClear:!0,className:"w-full",placeholder:"Please select","aria-label":"Select",defaultValue:["a10","c12"],options:m}),(0,t.jsx)(i.WPr,{mode:"multiple",disabled:!0,className:"w-full",placeholder:"Please select","aria-label":"Select",defaultValue:["a10","c12"],options:m})]})})})]}),(0,t.jsx)("br",{}),(0,t.jsxs)(i.bue,{gutter:16,children:[(0,t.jsx)(i.JGx,{span:8,children:(0,t.jsx)(i.V4A,{title:"Checkbox",variant:"borderless",className:"h-full",children:(0,t.jsxs)(i.vyj,{direction:"vertical",children:[(0,t.jsx)(i.E_O,{children:"Checkbox"}),(0,t.jsx)(i.E_O,{defaultChecked:!0,children:"Checkbox"}),(0,t.jsx)(i.E_O,{disabled:!0,children:"Disabled"}),(0,t.jsx)(i.E_O,{indeterminate:!0,children:"Indeterminate"}),(0,t.jsx)(i.E_O.Group,{options:[{label:"Apple",value:"Apple"},{label:"Pear",value:"Pear"},{label:"Orange",value:"Orange",disabled:!0}],defaultValue:["Apple"]})]})})}),(0,t.jsx)(i.JGx,{span:8,children:(0,t.jsx)(i.V4A,{title:"Radio",variant:"borderless",className:"h-full",children:(0,t.jsxs)(i.vyj,{direction:"vertical",children:[(0,t.jsx)(i.y02,{children:"Radio"}),(0,t.jsx)(i.y02,{defaultChecked:!0,children:"Radio"}),(0,t.jsx)(i.y02,{disabled:!0,children:"Disabled"}),(0,t.jsx)(i.y02.Group,{options:[{label:"Apple",value:"Apple"},{label:"Pear",value:"Pear"},{label:"Orange",value:"Orange",disabled:!0}],defaultValue:"Apple"}),(0,t.jsx)(i.y02.Group,{options:[{label:"Apple",value:"Apple"},{label:"Pear",value:"Pear"},{label:"Orange",value:"Orange"}],defaultValue:"Apple",optionType:"button"}),(0,t.jsx)(i.y02.Group,{options:[{label:"Apple",value:"Apple"},{label:"Pear",value:"Pear"},{label:"Orange",value:"Orange"}],defaultValue:"Apple",optionType:"button",buttonStyle:"solid"})]})})}),(0,t.jsx)(i.JGx,{span:8,children:(0,t.jsx)(i.V4A,{title:"Input",variant:"borderless",className:"h-full",children:(0,t.jsxs)(i.vyj,{direction:"vertical",size:"middle",children:[(0,t.jsx)(i.vyj.Compact,{children:(0,t.jsx)(i.AntInput,{defaultValue:"26888888","aria-label":"Input"})}),(0,t.jsxs)(i.vyj.Compact,{children:[(0,t.jsx)(i.AntInput,{className:"w-1/5",defaultValue:"0571","aria-label":"Input"}),(0,t.jsx)(i.AntInput,{className:"w-4/5",defaultValue:"26888888","aria-label":"Input"})]}),(0,t.jsx)(i.vyj.Compact,{children:(0,t.jsx)(i.AntInput.Search,{addonBefore:"https://",placeholder:"input search text",allowClear:!0,"aria-label":"Input"})}),(0,t.jsxs)(i.vyj.Compact,{className:"w-full",children:[(0,t.jsx)(i.AntInput,{defaultValue:"Combine input and button","aria-label":"Input"}),(0,t.jsx)(i.wpx,{type:"primary",children:"Submit"})]}),(0,t.jsxs)(i.vyj.Compact,{children:[(0,t.jsx)(i.WPr,{defaultValue:"Zhejiang",options:m,"aria-label":"Select"}),(0,t.jsx)(i.AntInput,{defaultValue:"Xihu District, Hangzhou","aria-label":"Input"})]})]})})})]}),(0,t.jsx)("br",{}),(0,t.jsxs)(i.bue,{gutter:16,children:[(0,t.jsx)(i.JGx,{span:8,children:(0,t.jsx)(i.V4A,{title:"Tooltip",variant:"borderless",className:"h-full",children:(0,t.jsxs)(i.vyj,{direction:"vertical",children:[(0,t.jsx)(i.esZ,{title:"I'm a tooltip",children:"Hover or focus this text"}),(0,t.jsx)(n.b,{label:"Tooltip will show on mouse enter or focus."}),(0,t.jsx)(i.esZ,{title:"Focus styles don't change for naturally focusable elements like buttons",children:(0,t.jsx)(i.wpx,{children:"Button with tooltip"})})]})})}),(0,t.jsx)(i.JGx,{span:8,children:(0,t.jsx)(i.V4A,{title:"Alert",variant:"borderless",className:"h-full",children:(0,t.jsxs)(i.vyj,{direction:"vertical",children:[(0,t.jsx)(i.DUx,{message:"Success Tips",type:"success",showIcon:!0}),(0,t.jsx)(i.DUx,{message:"Informational Notes",type:"info",showIcon:!0}),(0,t.jsx)(i.DUx,{message:"Warning",type:"warning",showIcon:!0,closable:!0}),(0,t.jsx)(i.DUx,{message:"Error",type:"error",showIcon:!0})]})})}),(0,t.jsx)(i.JGx,{span:8,children:(0,t.jsx)(i.V4A,{title:"Tag",variant:"borderless",className:"h-full",children:(0,t.jsxs)(i.jqI,{wrap:!0,gap:"small",children:[(0,t.jsx)(i.j8w,{color:"default",children:"default"}),(0,t.jsx)(i.j8w,{color:"corinth",children:"corinth"}),(0,t.jsx)(i.j8w,{color:"minos",children:"minos"}),(0,t.jsx)(i.j8w,{color:"terracotta",children:"terracotta"}),(0,t.jsx)(i.j8w,{color:"olive",children:"olive"}),(0,t.jsx)(i.j8w,{color:"marble",children:"marble"}),(0,t.jsx)(i.j8w,{color:"sandstone",children:"sandstone"}),(0,t.jsx)(i.j8w,{color:"nectar",children:"nectar"}),(0,t.jsx)(i.j8w,{color:"error",children:"error"}),(0,t.jsx)(i.j8w,{color:"warning",children:"warning"}),(0,t.jsx)(i.j8w,{color:"caution",children:"caution"}),(0,t.jsx)(i.j8w,{color:"success",children:"success"}),(0,t.jsx)(i.j8w,{color:"info",children:"info"}),(0,t.jsx)(i.j8w,{color:"alert",children:"alert"}),(0,t.jsx)(i.j8w,{color:"white",children:"white"}),(0,t.jsx)(i.j8w,{closable:!0,onClose:()=>console.log("closed"),children:"Closable Tag"}),(0,t.jsx)(i.j8w,{onClick:()=>console.log("clicked"),addable:!0}),(0,t.jsx)(i.j8w,{onClick:()=>console.log("clicked"),addable:!0,children:"Add More"}),(0,t.jsxs)(i.j8w,{hasSparkle:!0,onClick:()=>console.log("clicked"),children:["Data Use",(0,t.jsx)(i.PJP.I8b,{})]}),(0,t.jsx)(i.j8w,{hasSparkle:!0,onClick:()=>console.log("clicked"),closable:!0,onClose:()=>console.log("closed"),children:"Data Category"})]})})})]}),(0,t.jsx)("br",{}),(0,t.jsxs)(i.bue,{gutter:16,children:[(0,t.jsx)(i.JGx,{span:8,children:(0,t.jsx)(i.V4A,{title:"Typography Headings",variant:"borderless",className:"h-full",children:(0,t.jsxs)(i.vyj,{direction:"vertical",children:[(0,t.jsx)(j,{level:1,children:"H1 default"}),(0,t.jsx)(j,{level:1,headingSize:2,children:"H1 sized as H2"}),(0,t.jsx)(j,{level:1,headingSize:3,children:"H1 sized as H3"}),(0,t.jsx)(i.htM,{style:{margin:0}}),(0,t.jsx)(j,{level:2,children:"H2 default"}),(0,t.jsx)(j,{level:2,headingSize:1,children:"H2 sized as H1"}),(0,t.jsx)(j,{level:2,headingSize:3,children:"H2 sized as H3"}),(0,t.jsx)(i.htM,{style:{margin:0}}),(0,t.jsx)(j,{level:3,children:"H3 default"}),(0,t.jsx)(j,{level:3,headingSize:1,children:"H3 sized as H1"}),(0,t.jsx)(j,{level:3,headingSize:2,children:"H3 sized as H2"})]})})}),(0,t.jsx)(i.JGx,{span:8,children:(0,t.jsx)(i.V4A,{title:"Typography Paragraphs",variant:"borderless",className:"h-full",children:(0,t.jsxs)(i.AntTypography,{children:[(0,t.jsx)(x,{children:"This paragraph has a bottom margin. Imperdiet ex curae laoreet turpis adipiscing pulvinar erat conubia rhoncus, faucibus dictum porta integer tincidunt iaculis pharetra. Dis praesent egestas curae tortor primis volutpat metus ridiculus sit rutrum vitae ac aenean, nisi dolor a per molestie etiam ad tristique magnis fames laoreet."}),(0,t.jsx)(x,{children:"This paragraph has no bottom margin. Imperdiet ex curae laoreet turpis adipiscing pulvinar erat conubia rhoncus, faucibus dictum porta integer tincidunt iaculis pharetra."}),(0,t.jsx)(x,{type:"secondary",children:"This paragraph uses secondary color. laoreet turpis adipiscing pulvinar erat conubia rhoncus, faucibus dictum porta integer tincidunt iaculis pharetra."})]})})}),(0,t.jsx)(i.JGx,{span:8,children:(0,t.jsx)(i.V4A,{title:"Typography Text & Link",variant:"borderless",className:"h-full",children:(0,t.jsxs)(i.vyj,{direction:"vertical",children:[(0,t.jsx)(p,{children:"Ant Design (default)"}),(0,t.jsx)(p,{size:"sm",children:"Ant Design (small)"}),(0,t.jsx)(p,{size:"lg",children:"Ant Design (large)"}),(0,t.jsx)(p,{type:"secondary",children:"Ant Design (secondary)"}),(0,t.jsx)(p,{type:"success",children:"Ant Design (success)"}),(0,t.jsx)(p,{type:"warning",children:"Ant Design (warning)"}),(0,t.jsx)(p,{type:"danger",children:"Ant Design (danger)"}),(0,t.jsx)(p,{disabled:!0,children:"Ant Design (disabled)"}),(0,t.jsx)(p,{mark:!0,children:"Ant Design (mark)"}),(0,t.jsx)(p,{code:!0,children:"Ant Design (code)"}),(0,t.jsx)(p,{keyboard:!0,children:"Ant Design (keyboard)"}),(0,t.jsx)(p,{underline:!0,children:"Ant Design (underline)"}),(0,t.jsx)(p,{delete:!0,children:"Ant Design (delete)"}),(0,t.jsx)(p,{strong:!0,children:"Ant Design (strong)"}),(0,t.jsx)(p,{italic:!0,children:"Ant Design (italic)"}),(0,t.jsx)(u,{href:"https://ant.design",target:"_blank",children:"Ant Design (Link)"})]})})})]}),(0,t.jsx)("br",{}),(0,t.jsx)(i.bue,{gutter:16,children:(0,t.jsx)(i.JGx,{span:24,children:(0,t.jsx)(i.V4A,{title:"List with rowSelection",variant:"borderless",className:"h-full",children:(0,t.jsxs)(i.vyj,{direction:"vertical",className:"w-full",children:[(0,t.jsxs)(p,{children:["CustomList supports rowSelection similar to Table, with checkboxes in the avatar position. Selected items:"," ",(0,t.jsx)(p,{strong:!0,children:e.length})]}),(0,t.jsx)(i.krs,{dataSource:c,rowSelection:{selectedRowKeys:e,onChange:(e,s)=>{console.log("Selected keys:",e),console.log("Selected rows:",s),l(e)},getCheckboxProps:e=>({disabled:e.locked})},renderItem:(e,l,s)=>(0,t.jsxs)(i.krs.Item,{actions:[(0,t.jsx)(i.wpx,{type:"link",size:"small",onClick:()=>console.log("View clicked for:",e.title),children:"View"},"view")],children:[(0,t.jsx)(i.krs.Item.Meta,{title:e.title,description:e.description,avatar:s}),(0,t.jsx)(i.j8w,{color:"completed"===e.status?"success":"info",children:e.status})]})}),e.length>0&&(0,t.jsx)(i.DUx,{message:"".concat(e.length," item(s) selected"),description:(0,t.jsxs)(i.vyj,{direction:"vertical",size:"small",children:[(0,t.jsx)(p,{children:"You can perform bulk actions on selected items."}),(0,t.jsxs)(i.vyj,{children:[(0,t.jsx)(i.wpx,{size:"small",onClick:()=>console.log("Bulk action on:",e),children:"Bulk action"}),(0,t.jsx)(i.wpx,{size:"small",onClick:()=>l([]),children:"Clear selection"})]})]}),type:"info",showIcon:!0})]})})})}),(0,t.jsx)("br",{}),(0,t.jsx)(i.bue,{gutter:16,children:(0,t.jsx)(i.JGx,{span:24,children:(0,t.jsx)(d,{})})})]})})}}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=76985)}),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1921],{76985:function(e,l,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/poc/ant-components",function(){return s(37525)}])},58754:function(e,l,s){"use strict";var t=s(24246),i=s(98227),a=s(70788);l.Z=e=>{let{heading:l,breadcrumbItems:s,isSticky:n=!0,children:r,rightContent:c,style:o,...d}=e;return(0,t.jsxs)("div",{...d,style:n?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...o}:{paddingBottom:"24px",...o},children:[(0,t.jsxs)(i.jqI,{justify:"space-between",children:["string"==typeof l?(0,t.jsx)(i.lQT,{className:s||r?"pb-4":void 0,level:1,"data-testid":"page-heading",children:l}):l,c&&(0,t.jsx)("div",{"data-testid":"page-header-right-content",children:c})]}),!!s&&(0,t.jsx)(a.m,{className:r?"pb-4":void 0,items:s,"data-testid":"page-breadcrumb"}),r]})}},70788:function(e,l,s){"use strict";s.d(l,{m:function(){return o}});var t=s(24246),i=s(98227),a=s(79894),n=s.n(a),r=s(27378);let{Text:c}=i.AntTypography,o=e=>{let{items:l,...s}=e,a=(0,r.useMemo)(()=>null==l?void 0:l.map((e,s)=>{let a=s===l.length-1,r={...e},o=r.onClick&&!r.href;return("string"==typeof r.title&&(r.title=(0,t.jsx)(c,{style:{color:"inherit",maxWidth:a?void 0:400},ellipsis:!a,id:a?"breadcrumb-current-page":void 0,children:r.title})),o)?r.title=(0,t.jsx)(i.wpx,{type:"text",size:"small",icon:r.icon,onClick:r.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:r.title}):(r.icon&&(r.title=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"anticon align-text-bottom",children:r.icon}),r.title]})),r.href&&r.title&&(r.title=(0,t.jsx)(n(),{href:r.href,className:"ant-breadcrumb-link",children:r.title}),delete r.href)),r}),[l]);return(0,t.jsx)(i.zrq,{items:a,...s})}},37525:function(e,l,s){"use strict";s.r(l),s.d(l,{default:function(){return g}});var t=s(24246),i=s(98227),a=s(27378),n=s(46238),r=s(58754);let c=[{key:"1",title:"Item One",description:"First item description",status:"active"},{key:"2",title:"Item Two",description:"Second item description",status:"completed"},{key:"3",title:"Item Three",description:"Third item description",status:"completed"},{key:"4",title:"Item Four (Locked)",description:"This item is locked",status:"active",locked:!0},{key:"5",title:"Item Five",description:"Fifth item description",status:"active"}],o=e=>{let{form:l}=e;return(0,t.jsxs)(i.jqI,{vertical:!0,gap:4,children:[(0,t.jsx)(i.FUI,{children:"This is a sample form modal. Fill out the fields below and click confirm."}),(0,t.jsx)(i.PPS,{form:l,layout:"vertical",children:(0,t.jsx)(i.PPS.Item,{name:"name",label:"Name",rules:[{required:!0,message:"Please enter your name"}],children:(0,t.jsx)(i.AntInput,{placeholder:"Enter your name"})})})]})},d=()=>{let[e,l]=i.$zI.useModal(),s=e=>(0,t.jsx)(o,{form:e}),{openFormModal:a}=(0,i.U8S)(e),n=async()=>{let l=await a({title:"Custom form modal",content:s,okText:"Submit",cancelText:"Cancel",width:500,centered:!0});l&&e.success({title:"Form submitted",content:"Form submitted successfully with name: ".concat(l.name),okText:"OK"})};return(0,t.jsxs)(t.Fragment,{children:[l,(0,t.jsx)(i.V4A,{title:"Modal methods",variant:"borderless",children:(0,t.jsxs)(i.jqI,{gap:8,children:[(0,t.jsx)(i.wpx,{onClick:n,children:"Show custom form modal"}),(0,t.jsx)(i.wpx,{onClick:()=>{e.info({title:"Info modal",content:"This is an info modal with some information for the user.",okText:"Got it"})},children:"Show info modal"}),(0,t.jsx)(i.wpx,{onClick:()=>{e.success({title:"Success modal",content:"Operation completed successfully!",okText:"Great"})},children:"Show success modal"}),(0,t.jsx)(i.wpx,{onClick:()=>{e.error({title:"Error modal",content:"Something went wrong. Please try again.",okText:"OK"})},children:"Show error modal"}),(0,t.jsx)(i.wpx,{onClick:()=>{e.warning({title:"Warning modal",content:"Please be careful with this action.",okText:"Understood"})},children:"Show warning modal"}),(0,t.jsx)(i.wpx,{onClick:()=>{e.confirm({title:"Confirm modal",content:"Are you sure you want to proceed with this action?",okText:"Yes",cancelText:"No"})},type:"default",children:"Show confirm modal"})]})})]})},{Content:h}=i.AntLayout,{Link:u,Paragraph:x,Text:p,Title:j}=i.AntTypography,m=[];for(let e=10;e<36;e+=1)m.push({label:e.toString(36)+e,value:e.toString(36)+e});var g=()=>{let[e,l]=(0,a.useState)(["1","3"]);return(0,t.jsx)(i.AntLayout,{children:(0,t.jsxs)(h,{className:"overflow-auto px-10 py-6",children:[(0,t.jsx)(r.Z,{heading:"Ant Design Proof of Concept"}),(0,t.jsxs)(i.bue,{gutter:16,className:"mt-6",children:[(0,t.jsx)(i.JGx,{span:8,children:(0,t.jsx)(i.V4A,{title:"Button",variant:"borderless",className:"h-full",children:(0,t.jsxs)(i.vyj,{direction:"vertical",children:[(0,t.jsx)(i.wpx,{type:"primary",children:"Primary Button"}),(0,t.jsx)(i.wpx,{children:"Default Button"}),(0,t.jsx)(i.wpx,{type:"dashed",children:"Dashed Button"}),(0,t.jsx)(i.wpx,{type:"text",children:"Text Button"}),(0,t.jsx)(i.wpx,{type:"link",children:"Link Button"}),(0,t.jsx)(i.wpx,{type:"primary",loading:!0,children:"Loading Button"}),(0,t.jsx)(i.wpx,{type:"primary",disabled:!0,children:"Disabled Button"})]})})}),(0,t.jsx)(i.JGx,{span:8,children:(0,t.jsx)(i.V4A,{title:"Switch",variant:"borderless",className:"h-full",children:(0,t.jsxs)(i.vyj,{direction:"vertical",children:[(0,t.jsx)(i.rAg,{defaultChecked:!0}),(0,t.jsx)(i.rAg,{size:"small",defaultChecked:!0}),(0,t.jsx)(i.rAg,{loading:!0,defaultChecked:!0})]})})}),(0,t.jsx)(i.JGx,{span:8,children:(0,t.jsx)(i.V4A,{title:"Select",variant:"borderless",className:"h-full",children:(0,t.jsxs)(i.vyj,{direction:"vertical",children:[(0,t.jsx)(i.WPr,{defaultValue:"lucy",className:"w-32",options:[{value:"jack",label:"Jack"},{value:"lucy",label:"Lucy"},{value:"Yiminghe",label:"yiminghe"},{value:"disabled",label:"Disabled",disabled:!0}],"aria-label":"Select"}),(0,t.jsx)(i.WPr,{defaultValue:"lucy",className:"w-32",disabled:!0,options:[{value:"lucy",label:"Lucy"}],"aria-label":"Select"}),(0,t.jsx)(i.WPr,{defaultValue:"lucy",className:"w-32",loading:!0,options:[{value:"lucy",label:"Lucy"}],"aria-label":"Select"}),(0,t.jsx)(i.WPr,{defaultValue:"lucy",className:"w-32",allowClear:!0,options:[{value:"lucy",label:"Lucy"}],"aria-label":"Select"}),(0,t.jsx)(i.WPr,{mode:"multiple",allowClear:!0,className:"w-full",placeholder:"Please select","aria-label":"Select",defaultValue:["a10","c12"],options:m}),(0,t.jsx)(i.WPr,{mode:"multiple",disabled:!0,className:"w-full",placeholder:"Please select","aria-label":"Select",defaultValue:["a10","c12"],options:m})]})})})]}),(0,t.jsx)("br",{}),(0,t.jsxs)(i.bue,{gutter:16,children:[(0,t.jsx)(i.JGx,{span:8,children:(0,t.jsx)(i.V4A,{title:"Checkbox",variant:"borderless",className:"h-full",children:(0,t.jsxs)(i.vyj,{direction:"vertical",children:[(0,t.jsx)(i.E_O,{children:"Checkbox"}),(0,t.jsx)(i.E_O,{defaultChecked:!0,children:"Checkbox"}),(0,t.jsx)(i.E_O,{disabled:!0,children:"Disabled"}),(0,t.jsx)(i.E_O,{indeterminate:!0,children:"Indeterminate"}),(0,t.jsx)(i.E_O.Group,{options:[{label:"Apple",value:"Apple"},{label:"Pear",value:"Pear"},{label:"Orange",value:"Orange",disabled:!0}],defaultValue:["Apple"]})]})})}),(0,t.jsx)(i.JGx,{span:8,children:(0,t.jsx)(i.V4A,{title:"Radio",variant:"borderless",className:"h-full",children:(0,t.jsxs)(i.vyj,{direction:"vertical",children:[(0,t.jsx)(i.y02,{children:"Radio"}),(0,t.jsx)(i.y02,{defaultChecked:!0,children:"Radio"}),(0,t.jsx)(i.y02,{disabled:!0,children:"Disabled"}),(0,t.jsx)(i.y02.Group,{options:[{label:"Apple",value:"Apple"},{label:"Pear",value:"Pear"},{label:"Orange",value:"Orange",disabled:!0}],defaultValue:"Apple"}),(0,t.jsx)(i.y02.Group,{options:[{label:"Apple",value:"Apple"},{label:"Pear",value:"Pear"},{label:"Orange",value:"Orange"}],defaultValue:"Apple",optionType:"button"}),(0,t.jsx)(i.y02.Group,{options:[{label:"Apple",value:"Apple"},{label:"Pear",value:"Pear"},{label:"Orange",value:"Orange"}],defaultValue:"Apple",optionType:"button",buttonStyle:"solid"})]})})}),(0,t.jsx)(i.JGx,{span:8,children:(0,t.jsx)(i.V4A,{title:"Input",variant:"borderless",className:"h-full",children:(0,t.jsxs)(i.vyj,{direction:"vertical",size:"middle",children:[(0,t.jsx)(i.vyj.Compact,{children:(0,t.jsx)(i.AntInput,{defaultValue:"26888888","aria-label":"Input"})}),(0,t.jsxs)(i.vyj.Compact,{children:[(0,t.jsx)(i.AntInput,{className:"w-1/5",defaultValue:"0571","aria-label":"Input"}),(0,t.jsx)(i.AntInput,{className:"w-4/5",defaultValue:"26888888","aria-label":"Input"})]}),(0,t.jsx)(i.vyj.Compact,{children:(0,t.jsx)(i.AntInput.Search,{addonBefore:"https://",placeholder:"input search text",allowClear:!0,"aria-label":"Input"})}),(0,t.jsxs)(i.vyj.Compact,{className:"w-full",children:[(0,t.jsx)(i.AntInput,{defaultValue:"Combine input and button","aria-label":"Input"}),(0,t.jsx)(i.wpx,{type:"primary",children:"Submit"})]}),(0,t.jsxs)(i.vyj.Compact,{children:[(0,t.jsx)(i.WPr,{defaultValue:"Zhejiang",options:m,"aria-label":"Select"}),(0,t.jsx)(i.AntInput,{defaultValue:"Xihu District, Hangzhou","aria-label":"Input"})]})]})})})]}),(0,t.jsx)("br",{}),(0,t.jsxs)(i.bue,{gutter:16,children:[(0,t.jsx)(i.JGx,{span:8,children:(0,t.jsx)(i.V4A,{title:"Tooltip",variant:"borderless",className:"h-full",children:(0,t.jsxs)(i.vyj,{direction:"vertical",children:[(0,t.jsx)(i.esZ,{title:"I'm a tooltip",children:"Hover or focus this text"}),(0,t.jsx)(n.b,{label:"Tooltip will show on mouse enter or focus."}),(0,t.jsx)(i.esZ,{title:"Focus styles don't change for naturally focusable elements like buttons",children:(0,t.jsx)(i.wpx,{children:"Button with tooltip"})})]})})}),(0,t.jsx)(i.JGx,{span:8,children:(0,t.jsx)(i.V4A,{title:"Alert",variant:"borderless",className:"h-full",children:(0,t.jsxs)(i.vyj,{direction:"vertical",children:[(0,t.jsx)(i.DUx,{message:"Success Tips",type:"success",showIcon:!0}),(0,t.jsx)(i.DUx,{message:"Informational Notes",type:"info",showIcon:!0}),(0,t.jsx)(i.DUx,{message:"Warning",type:"warning",showIcon:!0,closable:!0}),(0,t.jsx)(i.DUx,{message:"Error",type:"error",showIcon:!0})]})})}),(0,t.jsx)(i.JGx,{span:8,children:(0,t.jsx)(i.V4A,{title:"Tag",variant:"borderless",className:"h-full",children:(0,t.jsxs)(i.jqI,{wrap:!0,gap:"small",children:[(0,t.jsx)(i.j8w,{color:"default",children:"default"}),(0,t.jsx)(i.j8w,{color:"corinth",children:"corinth"}),(0,t.jsx)(i.j8w,{color:"minos",children:"minos"}),(0,t.jsx)(i.j8w,{color:"terracotta",children:"terracotta"}),(0,t.jsx)(i.j8w,{color:"olive",children:"olive"}),(0,t.jsx)(i.j8w,{color:"marble",children:"marble"}),(0,t.jsx)(i.j8w,{color:"sandstone",children:"sandstone"}),(0,t.jsx)(i.j8w,{color:"nectar",children:"nectar"}),(0,t.jsx)(i.j8w,{color:"error",children:"error"}),(0,t.jsx)(i.j8w,{color:"warning",children:"warning"}),(0,t.jsx)(i.j8w,{color:"caution",children:"caution"}),(0,t.jsx)(i.j8w,{color:"success",children:"success"}),(0,t.jsx)(i.j8w,{color:"info",children:"info"}),(0,t.jsx)(i.j8w,{color:"alert",children:"alert"}),(0,t.jsx)(i.j8w,{color:"white",children:"white"}),(0,t.jsx)(i.j8w,{closable:!0,onClose:()=>console.log("closed"),children:"Closable Tag"}),(0,t.jsx)(i.j8w,{onClick:()=>console.log("clicked"),addable:!0}),(0,t.jsx)(i.j8w,{onClick:()=>console.log("clicked"),addable:!0,children:"Add More"}),(0,t.jsxs)(i.j8w,{hasSparkle:!0,onClick:()=>console.log("clicked"),children:["Data Use",(0,t.jsx)(i.PJP.I8b,{})]}),(0,t.jsx)(i.j8w,{hasSparkle:!0,onClick:()=>console.log("clicked"),closable:!0,onClose:()=>console.log("closed"),children:"Data Category"})]})})})]}),(0,t.jsx)("br",{}),(0,t.jsxs)(i.bue,{gutter:16,children:[(0,t.jsx)(i.JGx,{span:8,children:(0,t.jsx)(i.V4A,{title:"Typography Headings",variant:"borderless",className:"h-full",children:(0,t.jsxs)(i.vyj,{direction:"vertical",children:[(0,t.jsx)(j,{level:1,children:"H1 default"}),(0,t.jsx)(j,{level:1,headingSize:2,children:"H1 sized as H2"}),(0,t.jsx)(j,{level:1,headingSize:3,children:"H1 sized as H3"}),(0,t.jsx)(i.htM,{style:{margin:0}}),(0,t.jsx)(j,{level:2,children:"H2 default"}),(0,t.jsx)(j,{level:2,headingSize:1,children:"H2 sized as H1"}),(0,t.jsx)(j,{level:2,headingSize:3,children:"H2 sized as H3"}),(0,t.jsx)(i.htM,{style:{margin:0}}),(0,t.jsx)(j,{level:3,children:"H3 default"}),(0,t.jsx)(j,{level:3,headingSize:1,children:"H3 sized as H1"}),(0,t.jsx)(j,{level:3,headingSize:2,children:"H3 sized as H2"})]})})}),(0,t.jsx)(i.JGx,{span:8,children:(0,t.jsx)(i.V4A,{title:"Typography Paragraphs",variant:"borderless",className:"h-full",children:(0,t.jsxs)(i.AntTypography,{children:[(0,t.jsx)(x,{children:"This paragraph has a bottom margin. Imperdiet ex curae laoreet turpis adipiscing pulvinar erat conubia rhoncus, faucibus dictum porta integer tincidunt iaculis pharetra. Dis praesent egestas curae tortor primis volutpat metus ridiculus sit rutrum vitae ac aenean, nisi dolor a per molestie etiam ad tristique magnis fames laoreet."}),(0,t.jsx)(x,{children:"This paragraph has no bottom margin. Imperdiet ex curae laoreet turpis adipiscing pulvinar erat conubia rhoncus, faucibus dictum porta integer tincidunt iaculis pharetra."}),(0,t.jsx)(x,{type:"secondary",children:"This paragraph uses secondary color. laoreet turpis adipiscing pulvinar erat conubia rhoncus, faucibus dictum porta integer tincidunt iaculis pharetra."})]})})}),(0,t.jsx)(i.JGx,{span:8,children:(0,t.jsx)(i.V4A,{title:"Typography Text & Link",variant:"borderless",className:"h-full",children:(0,t.jsxs)(i.vyj,{direction:"vertical",children:[(0,t.jsx)(p,{children:"Ant Design (default)"}),(0,t.jsx)(p,{size:"sm",children:"Ant Design (small)"}),(0,t.jsx)(p,{size:"lg",children:"Ant Design (large)"}),(0,t.jsx)(p,{type:"secondary",children:"Ant Design (secondary)"}),(0,t.jsx)(p,{type:"success",children:"Ant Design (success)"}),(0,t.jsx)(p,{type:"warning",children:"Ant Design (warning)"}),(0,t.jsx)(p,{type:"danger",children:"Ant Design (danger)"}),(0,t.jsx)(p,{disabled:!0,children:"Ant Design (disabled)"}),(0,t.jsx)(p,{mark:!0,children:"Ant Design (mark)"}),(0,t.jsx)(p,{code:!0,children:"Ant Design (code)"}),(0,t.jsx)(p,{keyboard:!0,children:"Ant Design (keyboard)"}),(0,t.jsx)(p,{underline:!0,children:"Ant Design (underline)"}),(0,t.jsx)(p,{delete:!0,children:"Ant Design (delete)"}),(0,t.jsx)(p,{strong:!0,children:"Ant Design (strong)"}),(0,t.jsx)(p,{italic:!0,children:"Ant Design (italic)"}),(0,t.jsx)(u,{href:"https://ant.design",target:"_blank",children:"Ant Design (Link)"})]})})})]}),(0,t.jsx)("br",{}),(0,t.jsx)(i.bue,{gutter:16,children:(0,t.jsx)(i.JGx,{span:24,children:(0,t.jsx)(i.V4A,{title:"List with rowSelection",variant:"borderless",className:"h-full",children:(0,t.jsxs)(i.vyj,{direction:"vertical",className:"w-full",children:[(0,t.jsxs)(p,{children:["CustomList supports rowSelection similar to Table, with checkboxes in the avatar position. Selected items:"," ",(0,t.jsx)(p,{strong:!0,children:e.length})]}),(0,t.jsx)(i.krs,{dataSource:c,rowSelection:{selectedRowKeys:e,onChange:(e,s)=>{console.log("Selected keys:",e),console.log("Selected rows:",s),l(e)},getCheckboxProps:e=>({disabled:e.locked})},renderItem:(e,l,s)=>(0,t.jsxs)(i.krs.Item,{actions:[(0,t.jsx)(i.wpx,{type:"link",size:"small",onClick:()=>console.log("View clicked for:",e.title),children:"View"},"view")],children:[(0,t.jsx)(i.krs.Item.Meta,{title:e.title,description:e.description,avatar:s}),(0,t.jsx)(i.j8w,{color:"completed"===e.status?"success":"info",children:e.status})]})}),e.length>0&&(0,t.jsx)(i.DUx,{message:"".concat(e.length," item(s) selected"),description:(0,t.jsxs)(i.vyj,{direction:"vertical",size:"small",children:[(0,t.jsx)(p,{children:"You can perform bulk actions on selected items."}),(0,t.jsxs)(i.vyj,{children:[(0,t.jsx)(i.wpx,{size:"small",onClick:()=>console.log("Bulk action on:",e),children:"Bulk action"}),(0,t.jsx)(i.wpx,{size:"small",onClick:()=>l([]),children:"Clear selection"})]})]}),type:"info",showIcon:!0})]})})})}),(0,t.jsx)("br",{}),(0,t.jsx)(i.bue,{gutter:16,children:(0,t.jsx)(i.JGx,{span:24,children:(0,t.jsx)(d,{})})})]})})}}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=76985)}),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5970],{6920:function(e,l,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/poc/form-experiments/AntForm",function(){return n(33396)}])},95813:function(e,l,n){"use strict";n.d(l,{S:function(){return a}});let a={input:"default text",radio:"2",checkbox:!0,switch:!0,select:"2",multiselect:["2"],tags:["1"],date:"",number:12}},33396:function(e,l,n){"use strict";n.r(l),n.d(l,{AntFormPOC:function(){return u}});var a=n(24246),t=n(87949),s=n(3124),c=n.n(s),r=n(27378),i=n(95813);let{Title:o}=t.AntTypography,u=()=>{let[e]=t.PPS.useForm(),[l,n]=(0,r.useState)(i.S);return(0,a.jsxs)(t.bue,{children:[(0,a.jsxs)(t.JGx,{span:12,children:[(0,a.jsx)(o,{level:2,children:"Pure Ant"}),(0,a.jsxs)("div",{className:"mb-4",children:[(0,a.jsx)(t.j8w,{color:"success",children:"functional"}),(0,a.jsx)(t.j8w,{color:"success",children:"low effort"})]}),(0,a.jsxs)(t.PPS,{initialValues:{...i.S},form:e,layout:"vertical",onValuesChange:(e,l)=>{n(l)},children:[(0,a.jsx)(t.PPS.Item,{label:"Input",name:"input",children:(0,a.jsx)(t.AntInput,{"aria-label":"Input"})}),(0,a.jsx)(t.PPS.Item,{name:"radio",children:(0,a.jsxs)(t.y02.Group,{name:"radio",children:[(0,a.jsx)(t.y02,{value:"1",children:"Radio 1"}),(0,a.jsx)(t.y02,{value:"2",children:"Radio 2"})]})}),(0,a.jsx)(t.PPS.Item,{name:"checkbox",valuePropName:"checked",children:(0,a.jsx)(t.E_O,{children:"Checkbox"})}),(0,a.jsx)(t.PPS.Item,{label:"Switch",name:"switch",valuePropName:"checked",children:(0,a.jsx)(t.rAg,{})}),(0,a.jsx)(t.PPS.Item,{label:"Select",name:"select",children:(0,a.jsx)(t.WPr,{allowClear:!0,className:"w-full",options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"}],"aria-label":"Select"})}),(0,a.jsx)(t.PPS.Item,{label:"Multiselect",name:"multiselect",children:(0,a.jsx)(t.WPr,{mode:"multiple",allowClear:!0,className:"w-full",options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"}],"aria-label":"Select"})}),(0,a.jsx)(t.PPS.Item,{label:"Tags",name:"tags",children:(0,a.jsx)(t.WPr,{mode:"tags",allowClear:!0,className:"w-full",options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"}],"aria-label":"Select"})}),(0,a.jsx)(t.PPS.Item,{label:"Date",name:"date",children:(0,a.jsx)(t.cv2,{})}),(0,a.jsx)(t.PPS.Item,{label:"Number",name:"number",children:(0,a.jsx)(t.W7D,{"aria-label":"InputNumber"})})]})]}),(0,a.jsxs)(t.JGx,{span:8,offset:4,children:[(0,a.jsx)(o,{level:4,children:"Controlled Values"}),(0,a.jsx)(t.V4A,{style:{backgroundColor:c().FIDESUI_MINOS,color:c().FIDESUI_CORINTH},children:(0,a.jsx)("pre",{children:(0,a.jsxs)("code",{children:["{\n",Object.keys(l).map(e=>" ".concat(e.toString(),": ").concat(l[e],"\n")),"}"]})})})]})]})};l.default=u}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=6920)}),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5970],{6920:function(e,l,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/poc/form-experiments/AntForm",function(){return n(33396)}])},95813:function(e,l,n){"use strict";n.d(l,{S:function(){return a}});let a={input:"default text",radio:"2",checkbox:!0,switch:!0,select:"2",multiselect:["2"],tags:["1"],date:"",number:12}},33396:function(e,l,n){"use strict";n.r(l),n.d(l,{AntFormPOC:function(){return u}});var a=n(24246),t=n(98227),s=n(3124),c=n.n(s),r=n(27378),i=n(95813);let{Title:o}=t.AntTypography,u=()=>{let[e]=t.PPS.useForm(),[l,n]=(0,r.useState)(i.S);return(0,a.jsxs)(t.bue,{children:[(0,a.jsxs)(t.JGx,{span:12,children:[(0,a.jsx)(o,{level:2,children:"Pure Ant"}),(0,a.jsxs)("div",{className:"mb-4",children:[(0,a.jsx)(t.j8w,{color:"success",children:"functional"}),(0,a.jsx)(t.j8w,{color:"success",children:"low effort"})]}),(0,a.jsxs)(t.PPS,{initialValues:{...i.S},form:e,layout:"vertical",onValuesChange:(e,l)=>{n(l)},children:[(0,a.jsx)(t.PPS.Item,{label:"Input",name:"input",children:(0,a.jsx)(t.AntInput,{"aria-label":"Input"})}),(0,a.jsx)(t.PPS.Item,{name:"radio",children:(0,a.jsxs)(t.y02.Group,{name:"radio",children:[(0,a.jsx)(t.y02,{value:"1",children:"Radio 1"}),(0,a.jsx)(t.y02,{value:"2",children:"Radio 2"})]})}),(0,a.jsx)(t.PPS.Item,{name:"checkbox",valuePropName:"checked",children:(0,a.jsx)(t.E_O,{children:"Checkbox"})}),(0,a.jsx)(t.PPS.Item,{label:"Switch",name:"switch",valuePropName:"checked",children:(0,a.jsx)(t.rAg,{})}),(0,a.jsx)(t.PPS.Item,{label:"Select",name:"select",children:(0,a.jsx)(t.WPr,{allowClear:!0,className:"w-full",options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"}],"aria-label":"Select"})}),(0,a.jsx)(t.PPS.Item,{label:"Multiselect",name:"multiselect",children:(0,a.jsx)(t.WPr,{mode:"multiple",allowClear:!0,className:"w-full",options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"}],"aria-label":"Select"})}),(0,a.jsx)(t.PPS.Item,{label:"Tags",name:"tags",children:(0,a.jsx)(t.WPr,{mode:"tags",allowClear:!0,className:"w-full",options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"}],"aria-label":"Select"})}),(0,a.jsx)(t.PPS.Item,{label:"Date",name:"date",children:(0,a.jsx)(t.cv2,{})}),(0,a.jsx)(t.PPS.Item,{label:"Number",name:"number",children:(0,a.jsx)(t.W7D,{"aria-label":"InputNumber"})})]})]}),(0,a.jsxs)(t.JGx,{span:8,offset:4,children:[(0,a.jsx)(o,{level:4,children:"Controlled Values"}),(0,a.jsx)(t.V4A,{style:{backgroundColor:c().FIDESUI_MINOS,color:c().FIDESUI_CORINTH},children:(0,a.jsx)("pre",{children:(0,a.jsxs)("code",{children:["{\n",Object.keys(l).map(e=>" ".concat(e.toString(),": ").concat(l[e],"\n")),"}"]})})})]})]})};l.default=u}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=6920)}),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[840],{71850:function(e,l,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/poc/form-experiments/FormikAntFormItem",function(){return t(35716)}])},95813:function(e,l,t){"use strict";t.d(l,{S:function(){return n}});let n={input:"default text",radio:"2",checkbox:!0,switch:!0,select:"2",multiselect:["2"],tags:["1"],date:"",number:12}},35716:function(e,l,t){"use strict";t.r(l),t.d(l,{FormikAntFormItemPOC:function(){return u}});var n=t(24246),a=t(87949),c=t(3124),s=t.n(c),i=t(34090),o=t(95813);let{Title:r}=a.AntTypography,u=()=>(0,n.jsx)(i.J9,{initialValues:{...o.S},onSubmit:console.log,children:e=>{let{values:l,setFieldValue:t}=e;return(0,n.jsxs)(a.bue,{children:[(0,n.jsxs)(a.JGx,{span:12,children:[(0,n.jsx)(r,{level:2,children:"<Formik> + Controlled + Ant's <Form.Item>"}),(0,n.jsxs)("div",{className:"mb-4",children:[(0,n.jsx)(a.j8w,{color:"success",children:"functional"}),(0,n.jsx)(a.j8w,{color:"warning",children:"mid effort"})]}),(0,n.jsx)(i.l0,{children:(0,n.jsxs)(a.jqI,{vertical:!0,children:[(0,n.jsx)(a.PPS.Item,{label:"Input",name:"input",layout:"vertical",children:(0,n.jsx)(a.AntInput,{onChange:e=>t("input",e.target.value),defaultValue:l.input})}),(0,n.jsxs)(a.y02.Group,{name:"radio",onChange:e=>t("radio",e.target.value),defaultValue:l.radio,children:[(0,n.jsx)(a.y02,{value:"1",children:"Radio 1"}),(0,n.jsx)(a.y02,{value:"2",children:"Radio 2"})]}),(0,n.jsx)(a.PPS.Item,{name:"checkbox",children:(0,n.jsx)(a.E_O,{onChange:e=>t("checkbox",e.target.checked),defaultChecked:l.checkbox,children:"Checkbox"})}),(0,n.jsx)(a.PPS.Item,{label:"Switch",name:"switch",layout:"vertical",children:(0,n.jsx)(a.rAg,{onChange:e=>t("switch",e),defaultChecked:l.switch})}),(0,n.jsx)(a.PPS.Item,{label:"Select",name:"select",layout:"vertical",children:(0,n.jsx)(a.WPr,{allowClear:!0,className:"w-full",defaultValue:l.select,onChange:e=>t("select",e),options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"}]})}),(0,n.jsx)(a.PPS.Item,{label:"Multiselect",name:"multiselect",layout:"vertical",children:(0,n.jsx)(a.WPr,{mode:"multiple",allowClear:!0,className:"w-full",defaultValue:l.multiselect,onChange:e=>t("multiselect",e),options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"}]})}),(0,n.jsx)(a.PPS.Item,{label:"Tags",name:"tags",layout:"vertical",children:(0,n.jsx)(a.WPr,{mode:"tags",allowClear:!0,className:"w-full",defaultValue:l.tags,onChange:e=>t("tags",e),options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"}]})}),(0,n.jsx)(a.PPS.Item,{label:"Date",name:"date",layout:"vertical",children:(0,n.jsx)(a.cv2,{onChange:e=>t("date",e.toISOString())})}),(0,n.jsx)(a.PPS.Item,{label:"Number",name:"number",layout:"vertical",children:(0,n.jsx)(a.W7D,{defaultValue:l.number,onChange:e=>t("number",e)})})]})})]}),(0,n.jsxs)(a.JGx,{span:8,offset:4,children:[(0,n.jsx)(r,{level:4,children:"Controlled Values"}),(0,n.jsx)(a.V4A,{style:{backgroundColor:s().FIDESUI_MINOS,color:s().FIDESUI_CORINTH},children:(0,n.jsx)("pre",{children:(0,n.jsxs)("code",{children:["{\n",Object.keys(l).map(e=>" ".concat(e,": ").concat(l[e],"\n")),"}"]})})})]})]})}});l.default=u}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=71850)}),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[840],{71850:function(e,l,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/poc/form-experiments/FormikAntFormItem",function(){return t(35716)}])},95813:function(e,l,t){"use strict";t.d(l,{S:function(){return n}});let n={input:"default text",radio:"2",checkbox:!0,switch:!0,select:"2",multiselect:["2"],tags:["1"],date:"",number:12}},35716:function(e,l,t){"use strict";t.r(l),t.d(l,{FormikAntFormItemPOC:function(){return u}});var n=t(24246),a=t(98227),c=t(3124),s=t.n(c),i=t(34090),o=t(95813);let{Title:r}=a.AntTypography,u=()=>(0,n.jsx)(i.J9,{initialValues:{...o.S},onSubmit:console.log,children:e=>{let{values:l,setFieldValue:t}=e;return(0,n.jsxs)(a.bue,{children:[(0,n.jsxs)(a.JGx,{span:12,children:[(0,n.jsx)(r,{level:2,children:"<Formik> + Controlled + Ant's <Form.Item>"}),(0,n.jsxs)("div",{className:"mb-4",children:[(0,n.jsx)(a.j8w,{color:"success",children:"functional"}),(0,n.jsx)(a.j8w,{color:"warning",children:"mid effort"})]}),(0,n.jsx)(i.l0,{children:(0,n.jsxs)(a.jqI,{vertical:!0,children:[(0,n.jsx)(a.PPS.Item,{label:"Input",name:"input",layout:"vertical",children:(0,n.jsx)(a.AntInput,{onChange:e=>t("input",e.target.value),defaultValue:l.input})}),(0,n.jsxs)(a.y02.Group,{name:"radio",onChange:e=>t("radio",e.target.value),defaultValue:l.radio,children:[(0,n.jsx)(a.y02,{value:"1",children:"Radio 1"}),(0,n.jsx)(a.y02,{value:"2",children:"Radio 2"})]}),(0,n.jsx)(a.PPS.Item,{name:"checkbox",children:(0,n.jsx)(a.E_O,{onChange:e=>t("checkbox",e.target.checked),defaultChecked:l.checkbox,children:"Checkbox"})}),(0,n.jsx)(a.PPS.Item,{label:"Switch",name:"switch",layout:"vertical",children:(0,n.jsx)(a.rAg,{onChange:e=>t("switch",e),defaultChecked:l.switch})}),(0,n.jsx)(a.PPS.Item,{label:"Select",name:"select",layout:"vertical",children:(0,n.jsx)(a.WPr,{allowClear:!0,className:"w-full",defaultValue:l.select,onChange:e=>t("select",e),options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"}]})}),(0,n.jsx)(a.PPS.Item,{label:"Multiselect",name:"multiselect",layout:"vertical",children:(0,n.jsx)(a.WPr,{mode:"multiple",allowClear:!0,className:"w-full",defaultValue:l.multiselect,onChange:e=>t("multiselect",e),options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"}]})}),(0,n.jsx)(a.PPS.Item,{label:"Tags",name:"tags",layout:"vertical",children:(0,n.jsx)(a.WPr,{mode:"tags",allowClear:!0,className:"w-full",defaultValue:l.tags,onChange:e=>t("tags",e),options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"}]})}),(0,n.jsx)(a.PPS.Item,{label:"Date",name:"date",layout:"vertical",children:(0,n.jsx)(a.cv2,{onChange:e=>t("date",e.toISOString())})}),(0,n.jsx)(a.PPS.Item,{label:"Number",name:"number",layout:"vertical",children:(0,n.jsx)(a.W7D,{defaultValue:l.number,onChange:e=>t("number",e)})})]})})]}),(0,n.jsxs)(a.JGx,{span:8,offset:4,children:[(0,n.jsx)(r,{level:4,children:"Controlled Values"}),(0,n.jsx)(a.V4A,{style:{backgroundColor:s().FIDESUI_MINOS,color:s().FIDESUI_CORINTH},children:(0,n.jsx)("pre",{children:(0,n.jsxs)("code",{children:["{\n",Object.keys(l).map(e=>" ".concat(e,": ").concat(l[e],"\n")),"}"]})})})]})]})}});l.default=u}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=71850)}),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[611],{84093:function(e,l,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/poc/form-experiments/FormikControlled",function(){return n(15957)}])},95813:function(e,l,n){"use strict";n.d(l,{S:function(){return i}});let i={input:"default text",radio:"2",checkbox:!0,switch:!0,select:"2",multiselect:["2"],tags:["1"],date:"",number:12}},15957:function(e,l,n){"use strict";n.r(l),n.d(l,{FormikControlledPOC:function(){return o}});var i=n(24246),s=n(87949),t=n(3124),r=n.n(t),c=n(34090),a=n(95813);let{Title:d}=s.AntTypography,o=()=>(0,i.jsx)(c.J9,{initialValues:{...a.S},onSubmit:console.log,children:e=>{let{values:l,setFieldValue:n}=e;return(0,i.jsxs)(s.bue,{children:[(0,i.jsxs)(s.JGx,{span:12,children:[(0,i.jsx)(d,{level:2,children:"<Formik> + Controlled"}),(0,i.jsxs)("div",{className:"mb-4",children:[(0,i.jsx)(s.j8w,{color:"success",children:"functional"}),(0,i.jsx)(s.j8w,{color:"error",children:"high effort"})]}),(0,i.jsx)(c.l0,{children:(0,i.jsxs)(s.jqI,{vertical:!0,gap:16,children:[(0,i.jsxs)("div",{children:[(0,i.jsx)("label",{htmlFor:"input",children:"Input"}),(0,i.jsx)("div",{children:(0,i.jsx)(s.AntInput,{id:"input",onChange:e=>n("input",e.target.value),defaultValue:l.input})})]}),(0,i.jsx)("div",{children:(0,i.jsxs)(s.y02.Group,{name:"radio",onChange:e=>n("radio",e.target.value),defaultValue:l.radio,children:[(0,i.jsx)(s.y02,{value:"1",children:"Radio 1"}),(0,i.jsx)(s.y02,{value:"2",children:"Radio 2"})]})}),(0,i.jsx)("div",{children:(0,i.jsx)(s.E_O,{onChange:e=>n("checkbox",e.target.checked),defaultChecked:l.checkbox,children:"Checkbox"})}),(0,i.jsxs)("div",{children:[(0,i.jsx)("label",{htmlFor:"switch",children:"Switch"}),(0,i.jsx)("div",{children:(0,i.jsx)(s.rAg,{id:"switch",onChange:e=>n("switch",e),defaultChecked:l.switch})})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)("label",{htmlFor:"select",children:"Select"}),(0,i.jsx)("div",{children:(0,i.jsx)(s.WPr,{allowClear:!0,id:"select",defaultValue:l.select,onChange:e=>n("select",e),className:"w-full",options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"}]})})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)("label",{htmlFor:"multiselect",children:"Multiselect"}),(0,i.jsx)("div",{children:(0,i.jsx)(s.WPr,{mode:"multiple",allowClear:!0,id:"multiselect",defaultValue:l.multiselect,onChange:e=>n("multiselect",e),className:"w-full",options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"}]})})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)("label",{htmlFor:"tags",children:"Tags"}),(0,i.jsx)("div",{children:(0,i.jsx)(s.WPr,{mode:"tags",allowClear:!0,id:"tags",defaultValue:l.tags,onChange:e=>n("tags",e),className:"w-full",options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"}]})})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)("label",{htmlFor:"date",children:"Date"}),(0,i.jsx)("div",{children:(0,i.jsx)(s.cv2,{id:"date",onChange:e=>n("date",e.toISOString())})})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)("label",{htmlFor:"number",children:"Number"}),(0,i.jsx)("div",{children:(0,i.jsx)(s.W7D,{id:"number",defaultValue:l.number,onChange:e=>n("number",e)})})]})]})})]}),(0,i.jsxs)(s.JGx,{span:8,offset:4,children:[(0,i.jsx)(d,{level:4,children:"Controlled Values"}),(0,i.jsx)(s.V4A,{style:{backgroundColor:r().FIDESUI_MINOS,color:r().FIDESUI_CORINTH},children:(0,i.jsx)("pre",{children:(0,i.jsxs)("code",{children:["{\n",Object.keys(l).map(e=>" ".concat(e,": ").concat(l[e],"\n")),"}"]})})})]})]})}});l.default=o}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=84093)}),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[611],{84093:function(e,l,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/poc/form-experiments/FormikControlled",function(){return n(15957)}])},95813:function(e,l,n){"use strict";n.d(l,{S:function(){return i}});let i={input:"default text",radio:"2",checkbox:!0,switch:!0,select:"2",multiselect:["2"],tags:["1"],date:"",number:12}},15957:function(e,l,n){"use strict";n.r(l),n.d(l,{FormikControlledPOC:function(){return o}});var i=n(24246),s=n(98227),t=n(3124),r=n.n(t),c=n(34090),a=n(95813);let{Title:d}=s.AntTypography,o=()=>(0,i.jsx)(c.J9,{initialValues:{...a.S},onSubmit:console.log,children:e=>{let{values:l,setFieldValue:n}=e;return(0,i.jsxs)(s.bue,{children:[(0,i.jsxs)(s.JGx,{span:12,children:[(0,i.jsx)(d,{level:2,children:"<Formik> + Controlled"}),(0,i.jsxs)("div",{className:"mb-4",children:[(0,i.jsx)(s.j8w,{color:"success",children:"functional"}),(0,i.jsx)(s.j8w,{color:"error",children:"high effort"})]}),(0,i.jsx)(c.l0,{children:(0,i.jsxs)(s.jqI,{vertical:!0,gap:16,children:[(0,i.jsxs)("div",{children:[(0,i.jsx)("label",{htmlFor:"input",children:"Input"}),(0,i.jsx)("div",{children:(0,i.jsx)(s.AntInput,{id:"input",onChange:e=>n("input",e.target.value),defaultValue:l.input})})]}),(0,i.jsx)("div",{children:(0,i.jsxs)(s.y02.Group,{name:"radio",onChange:e=>n("radio",e.target.value),defaultValue:l.radio,children:[(0,i.jsx)(s.y02,{value:"1",children:"Radio 1"}),(0,i.jsx)(s.y02,{value:"2",children:"Radio 2"})]})}),(0,i.jsx)("div",{children:(0,i.jsx)(s.E_O,{onChange:e=>n("checkbox",e.target.checked),defaultChecked:l.checkbox,children:"Checkbox"})}),(0,i.jsxs)("div",{children:[(0,i.jsx)("label",{htmlFor:"switch",children:"Switch"}),(0,i.jsx)("div",{children:(0,i.jsx)(s.rAg,{id:"switch",onChange:e=>n("switch",e),defaultChecked:l.switch})})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)("label",{htmlFor:"select",children:"Select"}),(0,i.jsx)("div",{children:(0,i.jsx)(s.WPr,{allowClear:!0,id:"select",defaultValue:l.select,onChange:e=>n("select",e),className:"w-full",options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"}]})})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)("label",{htmlFor:"multiselect",children:"Multiselect"}),(0,i.jsx)("div",{children:(0,i.jsx)(s.WPr,{mode:"multiple",allowClear:!0,id:"multiselect",defaultValue:l.multiselect,onChange:e=>n("multiselect",e),className:"w-full",options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"}]})})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)("label",{htmlFor:"tags",children:"Tags"}),(0,i.jsx)("div",{children:(0,i.jsx)(s.WPr,{mode:"tags",allowClear:!0,id:"tags",defaultValue:l.tags,onChange:e=>n("tags",e),className:"w-full",options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"}]})})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)("label",{htmlFor:"date",children:"Date"}),(0,i.jsx)("div",{children:(0,i.jsx)(s.cv2,{id:"date",onChange:e=>n("date",e.toISOString())})})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)("label",{htmlFor:"number",children:"Number"}),(0,i.jsx)("div",{children:(0,i.jsx)(s.W7D,{id:"number",defaultValue:l.number,onChange:e=>n("number",e)})})]})]})})]}),(0,i.jsxs)(s.JGx,{span:8,offset:4,children:[(0,i.jsx)(d,{level:4,children:"Controlled Values"}),(0,i.jsx)(s.V4A,{style:{backgroundColor:r().FIDESUI_MINOS,color:r().FIDESUI_CORINTH},children:(0,i.jsx)("pre",{children:(0,i.jsxs)("code",{children:["{\n",Object.keys(l).map(e=>" ".concat(e,": ").concat(l[e],"\n")),"}"]})})})]})]})}});l.default=o}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=84093)}),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4266],{93102:function(e,l,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/poc/form-experiments/FormikField",function(){return i(82252)}])},95813:function(e,l,i){"use strict";i.d(l,{S:function(){return n}});let n={input:"default text",radio:"2",checkbox:!0,switch:!0,select:"2",multiselect:["2"],tags:["1"],date:"",number:12}},82252:function(e,l,i){"use strict";i.r(l),i.d(l,{FormikFieldPOC:function(){return h}});var n=i(24246),r=i(87949),s=i(3124),t=i.n(s),o=i(34090),d=i(95813);let{Text:a,Title:c}=r.AntTypography,h=()=>(0,n.jsx)(o.J9,{initialValues:{...d.S},onSubmit:console.log,children:e=>{let{values:l}=e;return(0,n.jsxs)(r.bue,{children:[(0,n.jsxs)(r.JGx,{span:12,children:[(0,n.jsx)(c,{level:2,children:"<Formik> + <Field>"}),(0,n.jsxs)("div",{className:"mb-4",children:[(0,n.jsx)(r.j8w,{color:"error",children:"non functional"}),(0,n.jsx)(r.j8w,{color:"error",children:"high effort"})]}),(0,n.jsx)(o.l0,{children:(0,n.jsxs)(r.jqI,{vertical:!0,gap:16,children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{htmlFor:"input",children:"Input"}),(0,n.jsx)("div",{children:(0,n.jsx)(o.gN,{as:r.AntInput,id:"input",name:"input",type:"text"})})]}),(0,n.jsx)("div",{children:(0,n.jsxs)(o.gN,{as:r.y02.Group,name:"radio",children:[(0,n.jsx)(r.y02,{value:"1",children:"Radio 1"}),(0,n.jsx)(r.y02,{value:"2",children:"Radio 2"})]})}),(0,n.jsxs)("div",{children:[(0,n.jsx)(o.gN,{as:r.E_O,defaultChecked:l.checkbox,name:"checkbox",children:"Checkbox"}),(0,n.jsx)(a,{type:"warning",children:"Requires additional logic to handle default state"})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{htmlFor:"switch",children:"Switch"}),(0,n.jsx)("div",{children:(0,n.jsx)(o.gN,{as:r.rAg,id:"switch",name:"switch"})}),(0,n.jsxs)(a,{type:"danger",children:["Ant Switch's onChange is too different from Formik, requires to be fully controlled. This will not work with"," ","<Field>"," alone"]})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{htmlFor:"select",children:"Select"}),(0,n.jsx)("div",{children:(0,n.jsx)(o.gN,{as:r.WPr,allowClear:!0,id:"select",name:"select",className:"w-full",status:"error",options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"}]})}),(0,n.jsxs)(a,{type:"danger",children:["Ant Select's onChange is too different from Formik, requires to be fully controlled. This will not work with"," ","<Field>"," alone"]})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{htmlFor:"multiselect",children:"Multiselect"}),(0,n.jsx)("div",{children:(0,n.jsx)(o.gN,{as:r.WPr,mode:"multiple",allowClear:!0,id:"multiselect",name:"multiselect",className:"w-full",status:"error",options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"}]})}),(0,n.jsxs)(a,{type:"danger",children:["Ant Select's onChange is too different from Formik, requires to be fully controlled. This will not work with"," ","<Field>"," alone"]})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{htmlFor:"multiselect",children:"Tags"}),(0,n.jsx)("div",{children:(0,n.jsx)(o.gN,{as:r.WPr,mode:"tags",allowClear:!0,id:"tags",name:"tags",className:"w-full",status:"error",options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"}]})}),(0,n.jsxs)(a,{type:"danger",children:["Ant Select's onChange is too different from Formik, requires to be fully controlled. This will not work with"," ","<Field>"," alone"]})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{htmlFor:"date",children:"Date"}),(0,n.jsx)("div",{children:(0,n.jsx)(o.gN,{as:r.cv2,id:"date",name:"date",status:"error"})}),(0,n.jsxs)(a,{type:"danger",children:["Ant DatePicker's onChange is different from Formik, requires to be fully controlled. This will not work with"," ","<Field>"," alone"]})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{htmlFor:"number",children:"Number"}),(0,n.jsx)("div",{children:(0,n.jsx)(o.gN,{as:r.W7D,id:"number",name:"number",status:"error"})}),(0,n.jsxs)(a,{type:"danger",children:["Ant InputNumber's onChange is different from Formik, requires to be fully controlled. This will not work with"," ","<Field>"," alone"]})]})]})})]}),(0,n.jsxs)(r.JGx,{span:8,offset:4,children:[(0,n.jsx)(c,{level:4,children:"Controlled Values"}),(0,n.jsx)(r.V4A,{style:{backgroundColor:t().FIDESUI_MINOS,color:t().FIDESUI_CORINTH},children:(0,n.jsx)("pre",{children:(0,n.jsxs)("code",{children:["{\n",Object.keys(l).map(e=>" ".concat(e,": ").concat(l[e],"\n")),"}"]})})})]})]})}});l.default=h}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=93102)}),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4266],{93102:function(e,l,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/poc/form-experiments/FormikField",function(){return i(82252)}])},95813:function(e,l,i){"use strict";i.d(l,{S:function(){return n}});let n={input:"default text",radio:"2",checkbox:!0,switch:!0,select:"2",multiselect:["2"],tags:["1"],date:"",number:12}},82252:function(e,l,i){"use strict";i.r(l),i.d(l,{FormikFieldPOC:function(){return h}});var n=i(24246),r=i(98227),s=i(3124),t=i.n(s),o=i(34090),d=i(95813);let{Text:a,Title:c}=r.AntTypography,h=()=>(0,n.jsx)(o.J9,{initialValues:{...d.S},onSubmit:console.log,children:e=>{let{values:l}=e;return(0,n.jsxs)(r.bue,{children:[(0,n.jsxs)(r.JGx,{span:12,children:[(0,n.jsx)(c,{level:2,children:"<Formik> + <Field>"}),(0,n.jsxs)("div",{className:"mb-4",children:[(0,n.jsx)(r.j8w,{color:"error",children:"non functional"}),(0,n.jsx)(r.j8w,{color:"error",children:"high effort"})]}),(0,n.jsx)(o.l0,{children:(0,n.jsxs)(r.jqI,{vertical:!0,gap:16,children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{htmlFor:"input",children:"Input"}),(0,n.jsx)("div",{children:(0,n.jsx)(o.gN,{as:r.AntInput,id:"input",name:"input",type:"text"})})]}),(0,n.jsx)("div",{children:(0,n.jsxs)(o.gN,{as:r.y02.Group,name:"radio",children:[(0,n.jsx)(r.y02,{value:"1",children:"Radio 1"}),(0,n.jsx)(r.y02,{value:"2",children:"Radio 2"})]})}),(0,n.jsxs)("div",{children:[(0,n.jsx)(o.gN,{as:r.E_O,defaultChecked:l.checkbox,name:"checkbox",children:"Checkbox"}),(0,n.jsx)(a,{type:"warning",children:"Requires additional logic to handle default state"})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{htmlFor:"switch",children:"Switch"}),(0,n.jsx)("div",{children:(0,n.jsx)(o.gN,{as:r.rAg,id:"switch",name:"switch"})}),(0,n.jsxs)(a,{type:"danger",children:["Ant Switch's onChange is too different from Formik, requires to be fully controlled. This will not work with"," ","<Field>"," alone"]})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{htmlFor:"select",children:"Select"}),(0,n.jsx)("div",{children:(0,n.jsx)(o.gN,{as:r.WPr,allowClear:!0,id:"select",name:"select",className:"w-full",status:"error",options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"}]})}),(0,n.jsxs)(a,{type:"danger",children:["Ant Select's onChange is too different from Formik, requires to be fully controlled. This will not work with"," ","<Field>"," alone"]})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{htmlFor:"multiselect",children:"Multiselect"}),(0,n.jsx)("div",{children:(0,n.jsx)(o.gN,{as:r.WPr,mode:"multiple",allowClear:!0,id:"multiselect",name:"multiselect",className:"w-full",status:"error",options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"}]})}),(0,n.jsxs)(a,{type:"danger",children:["Ant Select's onChange is too different from Formik, requires to be fully controlled. This will not work with"," ","<Field>"," alone"]})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{htmlFor:"multiselect",children:"Tags"}),(0,n.jsx)("div",{children:(0,n.jsx)(o.gN,{as:r.WPr,mode:"tags",allowClear:!0,id:"tags",name:"tags",className:"w-full",status:"error",options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"}]})}),(0,n.jsxs)(a,{type:"danger",children:["Ant Select's onChange is too different from Formik, requires to be fully controlled. This will not work with"," ","<Field>"," alone"]})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{htmlFor:"date",children:"Date"}),(0,n.jsx)("div",{children:(0,n.jsx)(o.gN,{as:r.cv2,id:"date",name:"date",status:"error"})}),(0,n.jsxs)(a,{type:"danger",children:["Ant DatePicker's onChange is different from Formik, requires to be fully controlled. This will not work with"," ","<Field>"," alone"]})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{htmlFor:"number",children:"Number"}),(0,n.jsx)("div",{children:(0,n.jsx)(o.gN,{as:r.W7D,id:"number",name:"number",status:"error"})}),(0,n.jsxs)(a,{type:"danger",children:["Ant InputNumber's onChange is different from Formik, requires to be fully controlled. This will not work with"," ","<Field>"," alone"]})]})]})})]}),(0,n.jsxs)(r.JGx,{span:8,offset:4,children:[(0,n.jsx)(c,{level:4,children:"Controlled Values"}),(0,n.jsx)(r.V4A,{style:{backgroundColor:t().FIDESUI_MINOS,color:t().FIDESUI_CORINTH},children:(0,n.jsx)("pre",{children:(0,n.jsxs)("code",{children:["{\n",Object.keys(l).map(e=>" ".concat(e,": ").concat(l[e],"\n")),"}"]})})})]})]})}});l.default=h}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=93102)}),_N_E=e.O()}]);