@argusoft/medplat-core 1.0.28 → 1.0.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (229) hide show
  1. package/dist/AccessRights-xrday-L1.js +1023 -0
  2. package/dist/AccessRights-xrday-L1.js.map +1 -0
  3. package/dist/AddEditQueryBuilder-D-iQiVIe.js +365 -0
  4. package/dist/AddEditQueryBuilder-D-iQiVIe.js.map +1 -0
  5. package/dist/{AddFeatures-C0Z29oSd.js → AddFeatures-D1sU8RjY.js} +2 -2
  6. package/dist/{AddFeatures-C0Z29oSd.js.map → AddFeatures-D1sU8RjY.js.map} +1 -1
  7. package/dist/AddLabelModal-Bq-wRqv9.js +631 -0
  8. package/dist/AddLabelModal-Bq-wRqv9.js.map +1 -0
  9. package/dist/AddMenuConfiguration-e5BVXhmw.js +8547 -0
  10. package/dist/AddMenuConfiguration-e5BVXhmw.js.map +1 -0
  11. package/dist/{AddRoleDrawer-CQdzQZLb.js → AddRoleDrawer-0gqAK8N0.js} +62 -63
  12. package/dist/AddRoleDrawer-0gqAK8N0.js.map +1 -0
  13. package/dist/AppModal-CCtrQ5Tr.js +394 -0
  14. package/dist/AppModal-CCtrQ5Tr.js.map +1 -0
  15. package/dist/BrandsPage-DmRW5bhm-Bk1szrjI.js +387 -0
  16. package/dist/BrandsPage-DmRW5bhm-Bk1szrjI.js.map +1 -0
  17. package/dist/CategoriesPage-BsS5IQh3-B03lWRY5.js +391 -0
  18. package/dist/CategoriesPage-BsS5IQh3-B03lWRY5.js.map +1 -0
  19. package/dist/{ChangePasswordModalCore-CDxkeIIM.js → ChangePasswordModalCore-BPsJquTS.js} +1606 -1611
  20. package/dist/ChangePasswordModalCore-BPsJquTS.js.map +1 -0
  21. package/dist/{ConditionConfig-DSsgGEXS.js → ConditionConfig-Ddz9halE.js} +2 -2
  22. package/dist/ConditionConfig-Ddz9halE.js.map +1 -0
  23. package/dist/DashboardPage-C3bKc5na-sBd9Yqbi.js +435 -0
  24. package/dist/DashboardPage-C3bKc5na-sBd9Yqbi.js.map +1 -0
  25. package/dist/{EntityManagement-GaYsBTvf.js → EntityManagement-CPQL6qBj.js} +2 -2
  26. package/dist/{EntityManagement-GaYsBTvf.js.map → EntityManagement-CPQL6qBj.js.map} +1 -1
  27. package/dist/EventConfig-BmLemzX3.js +26 -0
  28. package/dist/EventConfig-BmLemzX3.js.map +1 -0
  29. package/dist/{EventConfigurations-kNtAj_WM.js → EventConfigurations-Bzh1qWXU.js} +31 -30
  30. package/dist/{EventConfigurations-kNtAj_WM.js.map → EventConfigurations-Bzh1qWXU.js.map} +1 -1
  31. package/dist/{EventsExceptionModal-D4Bf1ilS.js → EventsExceptionModal-B2SRrnB1.js} +2 -2
  32. package/dist/{EventsExceptionModal-D4Bf1ilS.js.map → EventsExceptionModal-B2SRrnB1.js.map} +1 -1
  33. package/dist/EventsSkeleton-BIcPks4T.js +61 -0
  34. package/dist/EventsSkeleton-BIcPks4T.js.map +1 -0
  35. package/dist/FacilityPicker-BiZeupmP-CyPHmj6b.js +79 -0
  36. package/dist/FacilityPicker-BiZeupmP-CyPHmj6b.js.map +1 -0
  37. package/dist/FeatureMenu-DYJmDt7q.js +521 -0
  38. package/dist/FeatureMenu-DYJmDt7q.js.map +1 -0
  39. package/dist/Features-Dne21RWu.js +14 -0
  40. package/dist/Features-Dne21RWu.js.map +1 -0
  41. package/dist/{FhirServerList-Dkq7Kbes.js → FhirServerList-DuTwnngN.js} +19 -19
  42. package/dist/{FhirServerList-Dkq7Kbes.js.map → FhirServerList-DuTwnngN.js.map} +1 -1
  43. package/dist/{FhirServerWizard-Db6Hm4bQ.js → FhirServerWizard-DZI8Olku.js} +15 -15
  44. package/dist/{FhirServerWizard-Db6Hm4bQ.js.map → FhirServerWizard-DZI8Olku.js.map} +1 -1
  45. package/dist/FlywayQuery-CQygj51V.js +179 -0
  46. package/dist/FlywayQuery-CQygj51V.js.map +1 -0
  47. package/dist/{ManageNotification-CaBAOhji.js → Google-DQxMfbaL.js} +1725 -2652
  48. package/dist/{ManageNotification-CaBAOhji.js.map → Google-DQxMfbaL.js.map} +1 -1
  49. package/dist/GrantPermissionModal-BDN66Atn.js +236 -0
  50. package/dist/GrantPermissionModal-BDN66Atn.js.map +1 -0
  51. package/dist/ImmunizationConfigurationBase-Di1KO3oW.js +7639 -0
  52. package/dist/ImmunizationConfigurationBase-Di1KO3oW.js.map +1 -0
  53. package/dist/ImmunizationConfigurationBase.css +1 -1
  54. package/dist/ImmunizationConfigurationsList-TZcLDEci.js +369 -0
  55. package/dist/ImmunizationConfigurationsList-TZcLDEci.js.map +1 -0
  56. package/dist/InventoryPage-C_AxSy7A-QLvlL4rE.js +665 -0
  57. package/dist/InventoryPage-C_AxSy7A-QLvlL4rE.js.map +1 -0
  58. package/dist/LanguagesModal-B3NTebYT.js +352 -0
  59. package/dist/LanguagesModal-B3NTebYT.js.map +1 -0
  60. package/dist/ManageDynamicFeature-BU0I45dd.js +4475 -0
  61. package/dist/ManageDynamicFeature-BU0I45dd.js.map +1 -0
  62. package/dist/{ManageEventConfiguration-DV3I5POA.js → ManageEventConfiguration-CoYcpjR9.js} +465 -397
  63. package/dist/ManageEventConfiguration-CoYcpjR9.js.map +1 -0
  64. package/dist/ManageNotification-C5MhV77Q.js +934 -0
  65. package/dist/ManageNotification-C5MhV77Q.js.map +1 -0
  66. package/dist/{ManageRole-CGYfglpo.js → ManageRole-CNZBRKGU.js} +32 -30
  67. package/dist/ManageRole-CNZBRKGU.js.map +1 -0
  68. package/dist/ManageTranslation-vRiptUAP.js +833 -0
  69. package/dist/ManageTranslation-vRiptUAP.js.map +1 -0
  70. package/dist/ManageTranslation.css +1 -1
  71. package/dist/{ManageUser-AY1EUDLI.js → ManageUser-DCFkUMV9.js} +1722 -1586
  72. package/dist/ManageUser-DCFkUMV9.js.map +1 -0
  73. package/dist/MemberProfileCard-BdUNgHRB-VywqQdFF.js +272 -0
  74. package/dist/MemberProfileCard-BdUNgHRB-VywqQdFF.js.map +1 -0
  75. package/dist/MobileAnalytics-pQoE8cG1.js +16888 -0
  76. package/dist/MobileAnalytics-pQoE8cG1.js.map +1 -0
  77. package/dist/MobileMenuManagement-Cf8IZlla.js +108 -0
  78. package/dist/MobileMenuManagement-Cf8IZlla.js.map +1 -0
  79. package/dist/{MobileTypeEventConfigModal-BxLympIO.js → MobileTypeEventConfigModal-BeveaX0C.js} +2 -2
  80. package/dist/MobileTypeEventConfigModal-BeveaX0C.js.map +1 -0
  81. package/dist/NotificationFlywayQuery-BAHVjf6N.js +247 -0
  82. package/dist/NotificationFlywayQuery-BAHVjf6N.js.map +1 -0
  83. package/dist/{NotificationList-C3Vb_jKU.js → NotificationList-DEyRZEuM.js} +109 -110
  84. package/dist/NotificationList-DEyRZEuM.js.map +1 -0
  85. package/dist/{OtherTypeEventConfigModal-BeG1GrUi.js → OtherTypeEventConfigModal-CM6VkdmY.js} +570 -478
  86. package/dist/OtherTypeEventConfigModal-CM6VkdmY.js.map +1 -0
  87. package/dist/PaymentCreatePage-CIVe0P0p-25BQVpOX.js +482 -0
  88. package/dist/PaymentCreatePage-CIVe0P0p-25BQVpOX.js.map +1 -0
  89. package/dist/PaymentsPage-BvPe5Q9F-D2gfziwW.js +157 -0
  90. package/dist/PaymentsPage-BvPe5Q9F-D2gfziwW.js.map +1 -0
  91. package/dist/PermissionsModal-CCYkcKlC.js +151 -0
  92. package/dist/PermissionsModal-CCYkcKlC.js.map +1 -0
  93. package/dist/PickupBatchLinesEditor-DHmcAG23-DL2p6IKJ.js +119 -0
  94. package/dist/PickupBatchLinesEditor-DHmcAG23-DL2p6IKJ.js.map +1 -0
  95. package/dist/PickupCreatePage-CB0Sl0Hb-Mmj7zESG.js +783 -0
  96. package/dist/PickupCreatePage-CB0Sl0Hb-Mmj7zESG.js.map +1 -0
  97. package/dist/PickupsPage-Ctpghavs-CUp4uIZq.js +818 -0
  98. package/dist/PickupsPage-Ctpghavs-CUp4uIZq.js.map +1 -0
  99. package/dist/PmGuard-b10TGXEi-G3N0G_Wg.js +599 -0
  100. package/dist/PmGuard-b10TGXEi-G3N0G_Wg.js.map +1 -0
  101. package/dist/ProductEditPage-C1thoKHu-URQaZ6st.js +1302 -0
  102. package/dist/ProductEditPage-C1thoKHu-URQaZ6st.js.map +1 -0
  103. package/dist/ProductsPage-CupVmOD4-D45a_hf-.js +252 -0
  104. package/dist/ProductsPage-CupVmOD4-D45a_hf-.js.map +1 -0
  105. package/dist/PurchaseCreatePage-YD3NmhPQ-2j4etSjM.js +648 -0
  106. package/dist/PurchaseCreatePage-YD3NmhPQ-2j4etSjM.js.map +1 -0
  107. package/dist/PurchaseRequestDetailPage-Dg_MRY_N-D1bgTEAn.js +1577 -0
  108. package/dist/PurchaseRequestDetailPage-Dg_MRY_N-D1bgTEAn.js.map +1 -0
  109. package/dist/PurchaseRequestsPage-DPAPzpmm-mDH2IrTl.js +279 -0
  110. package/dist/PurchaseRequestsPage-DPAPzpmm-mDH2IrTl.js.map +1 -0
  111. package/dist/PurchasesPage-It1GHiXl-eH4IsF_U.js +293 -0
  112. package/dist/PurchasesPage-It1GHiXl-eH4IsF_U.js.map +1 -0
  113. package/dist/QueryBuilder-CXaBe6sr.js +478 -0
  114. package/dist/QueryBuilder-CXaBe6sr.js.map +1 -0
  115. package/dist/{RoleManagement-BPl2cE27.js → RoleManagement-s8iNx2Mu.js} +131 -142
  116. package/dist/RoleManagement-s8iNx2Mu.js.map +1 -0
  117. package/dist/Roles-BIyiic67.js +14 -0
  118. package/dist/Roles-BIyiic67.js.map +1 -0
  119. package/dist/SaleCreatePage-C9kFmTvm-B3Y0o4CX.js +544 -0
  120. package/dist/SaleCreatePage-C9kFmTvm-B3Y0o4CX.js.map +1 -0
  121. package/dist/SalesPage-D18DCseD-BxktGDRQ.js +315 -0
  122. package/dist/SalesPage-D18DCseD-BxktGDRQ.js.map +1 -0
  123. package/dist/{ServerSyncModal-D_oFpv3C.js → ServerSyncModal-92U3xtqI.js} +84 -85
  124. package/dist/ServerSyncModal-92U3xtqI.js.map +1 -0
  125. package/dist/SettingsPage-VsxI-ano-DcmtUUEj.js +747 -0
  126. package/dist/SettingsPage-VsxI-ano-DcmtUUEj.js.map +1 -0
  127. package/dist/ShowFlywayQuery-D10Olk5Z.js +154 -0
  128. package/dist/ShowFlywayQuery-D10Olk5Z.js.map +1 -0
  129. package/dist/{ShowFlywayQuery-DVRCd384.js → ShowFlywayQuery-D1y_4A1u.js} +161 -121
  130. package/dist/ShowFlywayQuery-D1y_4A1u.js.map +1 -0
  131. package/dist/ShowQueryHistory-DRBKYDKk.js +313 -0
  132. package/dist/ShowQueryHistory-DRBKYDKk.js.map +1 -0
  133. package/dist/StorageUnitsPage-7EqwuMOI-BwUso1Th.js +721 -0
  134. package/dist/StorageUnitsPage-7EqwuMOI-BwUso1Th.js.map +1 -0
  135. package/dist/SubMenu-eEDhZUvh.js +317 -0
  136. package/dist/SubMenu-eEDhZUvh.js.map +1 -0
  137. package/dist/{TableDetails-Cf_YfnY2.js → TableDetails-BtafRxXb.js} +1069 -831
  138. package/dist/TableDetails-BtafRxXb.js.map +1 -0
  139. package/dist/{TableList-D6jnIbnz.js → TableList-Dpo6dO7S.js} +2 -2
  140. package/dist/{TableList-D6jnIbnz.js.map → TableList-Dpo6dO7S.js.map} +1 -1
  141. package/dist/TransactionsPage-DrH53pVS-BkhIGB6C.js +746 -0
  142. package/dist/TransactionsPage-DrH53pVS-BkhIGB6C.js.map +1 -0
  143. package/dist/TransferCreatePage-CuvoMrYH-DTTfHjz-.js +315 -0
  144. package/dist/TransferCreatePage-CuvoMrYH-DTTfHjz-.js.map +1 -0
  145. package/dist/TransfersPage-Cf701t8s-BBbN7cBf.js +476 -0
  146. package/dist/TransfersPage-Cf701t8s-BBbN7cBf.js.map +1 -0
  147. package/dist/{TypeConfiguration-37wp-gsl.js → TypeConfiguration-3O6ABrK-.js} +2 -2
  148. package/dist/{TypeConfiguration-37wp-gsl.js.map → TypeConfiguration-3O6ABrK-.js.map} +1 -1
  149. package/dist/{UserList-Bc8gYxRL.js → UserList-DgPxsnj2.js} +253 -236
  150. package/dist/{UserList-Bc8gYxRL.js.map → UserList-DgPxsnj2.js.map} +1 -1
  151. package/dist/Users-Bpc4Sazd.js +41 -0
  152. package/dist/Users-Bpc4Sazd.js.map +1 -0
  153. package/dist/VialsPage-8oAc1yFv-Cl3FUXBJ.js +321 -0
  154. package/dist/VialsPage-8oAc1yFv-Cl3FUXBJ.js.map +1 -0
  155. package/dist/{WidgetList-Dw_FmbbE.js → WidgetList-D7YuWfDD.js} +2 -2
  156. package/dist/{WidgetList-Dw_FmbbE.js.map → WidgetList-D7YuWfDD.js.map} +1 -1
  157. package/dist/constants-ClZJY2x1-MkSWn6TZ.js +434 -0
  158. package/dist/constants-ClZJY2x1-MkSWn6TZ.js.map +1 -0
  159. package/dist/dashboardLayoutUtils-D1xCAxp3.js +405 -0
  160. package/dist/dashboardLayoutUtils-D1xCAxp3.js.map +1 -0
  161. package/dist/format-UOyOu75i-D0GyylyQ.js +63 -0
  162. package/dist/format-UOyOu75i-D0GyylyQ.js.map +1 -0
  163. package/dist/index.css +1 -1
  164. package/dist/index.js +4 -752
  165. package/dist/index.js.map +1 -1
  166. package/dist/index.lib-Dn8PMkeD.js +862 -0
  167. package/dist/index.lib-Dn8PMkeD.js.map +1 -0
  168. package/dist/useFieldErrors-hDG8ox_x-DbSAzrGo.js +28 -0
  169. package/dist/useFieldErrors-hDG8ox_x-DbSAzrGo.js.map +1 -0
  170. package/dist/validation-BzlHnL-r-CCJm2utQ.js +125 -0
  171. package/dist/validation-BzlHnL-r-CCJm2utQ.js.map +1 -0
  172. package/package.json +5 -4
  173. package/dist/AccessRights-CHu27ZOw.js +0 -1262
  174. package/dist/AccessRights-CHu27ZOw.js.map +0 -1
  175. package/dist/AddEditQueryBuilder-Brdnm6rQ.js +0 -313
  176. package/dist/AddEditQueryBuilder-Brdnm6rQ.js.map +0 -1
  177. package/dist/AddLabelModal-DFllBVcd.js +0 -734
  178. package/dist/AddLabelModal-DFllBVcd.js.map +0 -1
  179. package/dist/AddMenuConfiguration-BSQLl88V.js +0 -6570
  180. package/dist/AddMenuConfiguration-BSQLl88V.js.map +0 -1
  181. package/dist/AddRoleDrawer-CQdzQZLb.js.map +0 -1
  182. package/dist/AppModal-CtG2GjD_.js +0 -428
  183. package/dist/AppModal-CtG2GjD_.js.map +0 -1
  184. package/dist/ChangePasswordModalCore-CDxkeIIM.js.map +0 -1
  185. package/dist/ConditionConfig-DSsgGEXS.js.map +0 -1
  186. package/dist/EventsSkeleton-8iiETGcf.js +0 -76
  187. package/dist/EventsSkeleton-8iiETGcf.js.map +0 -1
  188. package/dist/FeatureMenu-jl7-Tk6y.js +0 -265
  189. package/dist/FeatureMenu-jl7-Tk6y.js.map +0 -1
  190. package/dist/Features-CObdzJp_.js +0 -13
  191. package/dist/Features-CObdzJp_.js.map +0 -1
  192. package/dist/FlywayQuery-Cx2sly6g.js +0 -169
  193. package/dist/FlywayQuery-Cx2sly6g.js.map +0 -1
  194. package/dist/ImmunizationConfigurationBase-DZGqwda2.js +0 -5910
  195. package/dist/ImmunizationConfigurationBase-DZGqwda2.js.map +0 -1
  196. package/dist/ImmunizationConfigurationsList-DdSZicTP.js +0 -344
  197. package/dist/ImmunizationConfigurationsList-DdSZicTP.js.map +0 -1
  198. package/dist/LanguagesModal-D6VfaGrl.js +0 -394
  199. package/dist/LanguagesModal-D6VfaGrl.js.map +0 -1
  200. package/dist/ManageDynamicFeature-BhONvfC_.js +0 -4189
  201. package/dist/ManageDynamicFeature-BhONvfC_.js.map +0 -1
  202. package/dist/ManageEventConfiguration-DV3I5POA.js.map +0 -1
  203. package/dist/ManageRole-CGYfglpo.js.map +0 -1
  204. package/dist/ManageTranslation-B4C9-lWD.js +0 -625
  205. package/dist/ManageTranslation-B4C9-lWD.js.map +0 -1
  206. package/dist/ManageUser-AY1EUDLI.js.map +0 -1
  207. package/dist/MobileMenuManagement-CVAKyKDa.js +0 -112
  208. package/dist/MobileMenuManagement-CVAKyKDa.js.map +0 -1
  209. package/dist/MobileTypeEventConfigModal-BxLympIO.js.map +0 -1
  210. package/dist/NotificationFlywayQuery-BY8Zzml_.js +0 -244
  211. package/dist/NotificationFlywayQuery-BY8Zzml_.js.map +0 -1
  212. package/dist/NotificationList-C3Vb_jKU.js.map +0 -1
  213. package/dist/OtherTypeEventConfigModal-BeG1GrUi.js.map +0 -1
  214. package/dist/QueryBuilder-z7eqfd7D.js +0 -383
  215. package/dist/QueryBuilder-z7eqfd7D.js.map +0 -1
  216. package/dist/RoleManagement-BPl2cE27.js.map +0 -1
  217. package/dist/ServerSyncModal-D_oFpv3C.js.map +0 -1
  218. package/dist/ShowFlywayQuery-DVRCd384.js.map +0 -1
  219. package/dist/ShowFlywayQuery-tj42YQAS.js +0 -130
  220. package/dist/ShowFlywayQuery-tj42YQAS.js.map +0 -1
  221. package/dist/ShowQueryHistory-BDN0tzHg.js +0 -190
  222. package/dist/ShowQueryHistory-BDN0tzHg.js.map +0 -1
  223. package/dist/SubMenu-DYxAPH2Z.js +0 -191
  224. package/dist/SubMenu-DYxAPH2Z.js.map +0 -1
  225. package/dist/TableDetails-Cf_YfnY2.js.map +0 -1
  226. package/dist/Users-CsJ08Kjm.js +0 -40
  227. package/dist/Users-CsJ08Kjm.js.map +0 -1
  228. package/dist/dashboardLayoutUtils-Bt5HA96J.js +0 -265
  229. package/dist/dashboardLayoutUtils-Bt5HA96J.js.map +0 -1
@@ -1,74 +1,75 @@
1
- import { jsx as i, jsxs as a, Fragment as Me } from "react/jsx-runtime";
2
- import O, { memo as Re, forwardRef as me, useRef as Q, useEffect as te, useState as B } from "react";
3
- import H from "prop-types";
4
- import { useForm as Ve, Controller as y } from "react-hook-form";
5
- import { yupResolver as Oe } from "@hookform/resolvers/yup";
1
+ import { jsx as i, jsxs as l, Fragment as De } from "react/jsx-runtime";
2
+ import V, { memo as Ke, forwardRef as we, useRef as j, useEffect as oe, useState as U } from "react";
3
+ import G from "prop-types";
4
+ import { useForm as je, Controller as y } from "react-hook-form";
5
+ import { yupResolver as Ye } from "@hookform/resolvers/yup";
6
6
  import d from "@mui/material/Grid2";
7
7
  import * as F from "yup";
8
- import { useTheme as Ae, Modal as Le, Typography as h, IconButton as Ue, Box as C, FormControl as N, Select as L, MenuItem as T, FormControlLabel as U, Checkbox as W, TextField as G, Stack as We, Button as ce } from "@mui/material";
9
- import Z from "@/views/custom-components/CustomTextArea";
10
- import M from "@/views/custom-components/CustomTextField";
11
- import { retrieveAllConfigured as De, execute as de, getNotificationTypeList as Ke } from "@/common/services/GlobalApis";
12
- import { showToast as je } from "@/common/toaster/toaster";
13
- import qe from "@/hooks/useTrackEvent";
14
- import "./ManageEventConfiguration-DV3I5POA.js";
15
- import { useTranslateProvider as Ye } from "@/common/languageTranslator/TranslationContext";
16
- import { faXmark as Je } from "@fortawesome/free-solid-svg-icons";
17
- import { FontAwesomeIcon as Be } from "@fortawesome/react-fontawesome";
18
- import He from "@/views/custom-components/CkEditor/CkEditor";
19
- function Qe() {
20
- const o = {
8
+ import { useTheme as qe, Modal as Je, Typography as h, IconButton as pe, Box as w, FormControl as p, Select as L, MenuItem as _, FormControlLabel as D, Checkbox as K, Button as te, CircularProgress as Be, TextField as ie, Stack as He } from "@mui/material";
9
+ import ne from "@/views/custom-components/CustomTextArea";
10
+ import P from "@/views/custom-components/CustomTextField";
11
+ import { retrieveAllConfigured as Qe, execute as ve, getNotificationTypeList as Xe } from "@/common/services/GlobalApis";
12
+ import { e as Ge } from "./EventConfig-BmLemzX3.js";
13
+ import { showToast as re } from "@/common/toaster/toaster";
14
+ import Ze from "@/hooks/useTrackEvent";
15
+ import "./ManageEventConfiguration-CoYcpjR9.js";
16
+ import { useTranslateProvider as et } from "@/common/languageTranslator/TranslationContext";
17
+ import { faXmark as tt, faCloudArrowUp as it, faTrash as nt } from "@fortawesome/free-solid-svg-icons";
18
+ import { FontAwesomeIcon as ae } from "@fortawesome/react-fontawesome";
19
+ import rt from "@/views/custom-components/CkEditor/CkEditor";
20
+ function at() {
21
+ const a = {
21
22
  resolve: null,
22
23
  promise: null
23
24
  };
24
- return o.promise = new Promise((r) => {
25
- o.resolve = r;
26
- }), o;
25
+ return a.promise = new Promise((r) => {
26
+ a.resolve = r;
27
+ }), a;
27
28
  }
28
- function Xe(o) {
29
+ function lt(a) {
29
30
  let r = null;
30
- return (...l) => (r || (r = {
31
- current: o(...l)
31
+ return (...o) => (r || (r = {
32
+ current: a(...o)
32
33
  }), r.current);
33
34
  }
34
- const I = new Array(256).fill("").map((o, r) => ("0" + r.toString(16)).slice(-2));
35
- function Ge() {
36
- const [o, r, l, e] = crypto.getRandomValues(new Uint32Array(4));
37
- return "e" + I[o >> 0 & 255] + I[o >> 8 & 255] + I[o >> 16 & 255] + I[o >> 24 & 255] + I[r >> 0 & 255] + I[r >> 8 & 255] + I[r >> 16 & 255] + I[r >> 24 & 255] + I[l >> 0 & 255] + I[l >> 8 & 255] + I[l >> 16 & 255] + I[l >> 24 & 255] + I[e >> 0 & 255] + I[e >> 8 & 255] + I[e >> 16 & 255] + I[e >> 24 & 255];
35
+ const T = new Array(256).fill("").map((a, r) => ("0" + r.toString(16)).slice(-2));
36
+ function ot() {
37
+ const [a, r, o, e] = crypto.getRandomValues(new Uint32Array(4));
38
+ return "e" + T[a >> 0 & 255] + T[a >> 8 & 255] + T[a >> 16 & 255] + T[a >> 24 & 255] + T[r >> 0 & 255] + T[r >> 8 & 255] + T[r >> 16 & 255] + T[r >> 24 & 255] + T[o >> 0 & 255] + T[o >> 8 & 255] + T[o >> 16 & 255] + T[o >> 24 & 255] + T[e >> 0 & 255] + T[e >> 8 & 255] + T[e >> 16 & 255] + T[e >> 24 & 255];
38
39
  }
39
- function he(o) {
40
- return !!o && /^\d+\.\d+\.\d+/.test(o);
40
+ function Ce(a) {
41
+ return !!a && /^\d+\.\d+\.\d+/.test(a);
41
42
  }
42
- function Ze(o) {
43
- if (!he(o))
44
- throw new Error(`Invalid semantic version: ${o || "<blank>"}.`);
45
- const [r, l, e] = o.split(".");
43
+ function st(a) {
44
+ if (!Ce(a))
45
+ throw new Error(`Invalid semantic version: ${a || "<blank>"}.`);
46
+ const [r, o, e] = a.split(".");
46
47
  return {
47
48
  major: Number.parseInt(r, 10),
48
- minor: Number.parseInt(l, 10),
49
+ minor: Number.parseInt(o, 10),
49
50
  patch: Number.parseInt(e, 10)
50
51
  };
51
52
  }
52
- function fe(o) {
53
- return o ? ["nightly", "alpha", "internal", "nightly-", "staging"].some((r) => o.includes(r)) : !1;
53
+ function Ie(a) {
54
+ return a ? ["nightly", "alpha", "internal", "nightly-", "staging"].some((r) => a.includes(r)) : !1;
54
55
  }
55
- function et(o) {
56
- return he(o) || fe(o);
56
+ function ct(a) {
57
+ return Ce(a) || Ie(a);
57
58
  }
58
- function tt(o, r) {
59
- const l = o.extraPlugins || [];
59
+ function dt(a, r) {
60
+ const o = a.extraPlugins || [];
60
61
  return {
61
- ...o,
62
+ ...a,
62
63
  extraPlugins: [
63
- ...l,
64
- ...r.filter((e) => !l.includes(e))
64
+ ...o,
65
+ ...r.filter((e) => !o.includes(e))
65
66
  ]
66
67
  };
67
68
  }
68
- function it(o) {
69
- if (fe(o))
69
+ function ut(a) {
70
+ if (Ie(a))
70
71
  return 3;
71
- const { major: r } = Ze(o);
72
+ const { major: r } = st(a);
72
73
  switch (!0) {
73
74
  case r >= 44:
74
75
  return 3;
@@ -78,57 +79,57 @@ function it(o) {
78
79
  return 1;
79
80
  }
80
81
  }
81
- function nt() {
82
- const { CKEDITOR_VERSION: o, CKEDITOR: r } = window;
83
- return et(o) ? {
82
+ function mt() {
83
+ const { CKEDITOR_VERSION: a, CKEDITOR: r } = window;
84
+ return ct(a) ? {
84
85
  source: r ? "cdn" : "npm",
85
- version: o
86
+ version: a
86
87
  } : null;
87
88
  }
88
- function rt() {
89
- const o = nt();
90
- return o ? it(o.version) : null;
89
+ function ht() {
90
+ const a = mt();
91
+ return a ? ut(a.version) : null;
91
92
  }
92
- function ge(o, r) {
93
- switch (r || (r = rt() || void 0), r) {
93
+ function Ee(a, r) {
94
+ switch (r || (r = ht() || void 0), r) {
94
95
  case 1:
95
96
  case 2:
96
- return o === void 0;
97
+ return a === void 0;
97
98
  case 3:
98
- return o === "GPL";
99
+ return a === "GPL";
99
100
  default:
100
101
  return !1;
101
102
  }
102
103
  }
103
- function ot(o, r) {
104
+ function ft(a, r) {
104
105
  return function(e) {
105
- ge(e.config.get("licenseKey")) || e.on("collectUsageData", (u, { setUsageData: p }) => {
106
- p(`integration.${o}`, r);
106
+ Ee(e.config.get("licenseKey")) || e.on("collectUsageData", (u, { setUsageData: C }) => {
107
+ C(`integration.${a}`, r);
107
108
  });
108
109
  };
109
110
  }
110
- var lt = Object.defineProperty, at = (o, r, l) => r in o ? lt(o, r, { enumerable: !0, configurable: !0, writable: !0, value: l }) : o[r] = l, S = (o, r, l) => at(o, typeof r != "symbol" ? r + "" : r, l);
111
+ var gt = Object.defineProperty, Nt = (a, r, o) => r in a ? gt(a, r, { enumerable: !0, configurable: !0, writable: !0, value: o }) : a[r] = o, S = (a, r, o) => Nt(a, typeof r != "symbol" ? r + "" : r, o);
111
112
  /**
112
113
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
113
114
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
114
115
  */
115
- const Ne = class ve {
116
- constructor(r, l) {
116
+ const xe = class Te {
117
+ constructor(r, o) {
117
118
  S(this, "_lifecycle"), S(this, "_element"), S(this, "_releaseLock", null), S(this, "_value", null), S(this, "_afterMountCallbacks", []), S(this, "_state", {
118
119
  destroyedBeforeInitialization: !1,
119
120
  mountingInProgress: null
120
- }), S(this, "release", Xe(() => {
121
- const { _releaseLock: e, _state: u, _element: p, _lifecycle: g } = this;
122
- u.mountingInProgress ? u.mountingInProgress.then(() => g.unmount({
123
- element: p,
121
+ }), S(this, "release", lt(() => {
122
+ const { _releaseLock: e, _state: u, _element: C, _lifecycle: N } = this;
123
+ u.mountingInProgress ? u.mountingInProgress.then(() => N.unmount({
124
+ element: C,
124
125
  // Mount result might be overridden by watchdog during restart so use instance variable.
125
126
  mountResult: this.value
126
- })).catch((E) => {
127
- console.error("Semaphore unmounting error:", E);
127
+ })).catch((I) => {
128
+ console.error("Semaphore unmounting error:", I);
128
129
  }).then(e.resolve).then(() => {
129
130
  this._value = null;
130
131
  }) : (u.destroyedBeforeInitialization = !0, e.resolve());
131
- })), this._element = r, this._lifecycle = l, this._lock();
132
+ })), this._element = r, this._lifecycle = o, this._lock();
132
133
  }
133
134
  /**
134
135
  * Getter for {@link #_value}.
@@ -142,7 +143,7 @@ const Ne = class ve {
142
143
  * with a different one.
143
144
  */
144
145
  unsafeSetValue(r) {
145
- this._value = r, this._afterMountCallbacks.forEach((l) => l(r)), this._afterMountCallbacks = [];
146
+ this._value = r, this._afterMountCallbacks.forEach((o) => o(r)), this._afterMountCallbacks = [];
146
147
  }
147
148
  /**
148
149
  * This registers a callback that will be triggered after the editor has been successfully mounted.
@@ -153,8 +154,8 @@ const Ne = class ve {
153
154
  * * If an exception is thrown within the callback, it will be re-thrown in the semaphore.
154
155
  */
155
156
  runAfterMount(r) {
156
- const { _value: l, _afterMountCallbacks: e } = this;
157
- l ? r(l) : e.push(r);
157
+ const { _value: o, _afterMountCallbacks: e } = this;
158
+ o ? r(o) : e.push(r);
158
159
  }
159
160
  /**
160
161
  * This method is used to inform other components that the {@link #_element} will be used by the editor,
@@ -175,72 +176,72 @@ const Ne = class ve {
175
176
  * it will cause problems when we’re trying to set up the {@link LifeCycleEditorElementSemaphore#_semaphores} map entries.
176
177
  */
177
178
  _lock() {
178
- const { _semaphores: r } = ve, { _state: l, _element: e, _lifecycle: u } = this, p = r.get(e) || Promise.resolve(null), g = Qe();
179
- this._releaseLock = g;
180
- const E = p.then(() => l.destroyedBeforeInitialization ? Promise.resolve(void 0) : (l.mountingInProgress = u.mount().then((_) => (_ && this.unsafeSetValue(_), _)), l.mountingInProgress)).then(async (_) => {
181
- _ && u.afterMount && await u.afterMount({
179
+ const { _semaphores: r } = Te, { _state: o, _element: e, _lifecycle: u } = this, C = r.get(e) || Promise.resolve(null), N = at();
180
+ this._releaseLock = N;
181
+ const I = C.then(() => o.destroyedBeforeInitialization ? Promise.resolve(void 0) : (o.mountingInProgress = u.mount().then((x) => (x && this.unsafeSetValue(x), x)), o.mountingInProgress)).then(async (x) => {
182
+ x && u.afterMount && await u.afterMount({
182
183
  element: e,
183
- mountResult: _
184
+ mountResult: x
184
185
  });
185
- }).then(() => g.promise).catch((_) => {
186
- console.error("Semaphore mounting error:", _);
186
+ }).then(() => N.promise).catch((x) => {
187
+ console.error("Semaphore mounting error:", x);
187
188
  }).then(() => {
188
- r.get(e) === E && r.delete(e);
189
+ r.get(e) === I && r.delete(e);
189
190
  });
190
- r.set(e, E);
191
+ r.set(e, I);
191
192
  }
192
193
  };
193
- S(Ne, "_semaphores", /* @__PURE__ */ new Map());
194
- let st = Ne;
194
+ S(xe, "_semaphores", /* @__PURE__ */ new Map());
195
+ let pt = xe;
195
196
  /**
196
197
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
197
198
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
198
199
  */
199
- const ct = "$__CKEditorReactContextMetadata";
200
- function dt(o, r) {
200
+ const vt = "$__CKEditorReactContextMetadata";
201
+ function bt(a, r) {
201
202
  return {
202
203
  ...r,
203
- [ct]: o
204
+ [vt]: a
204
205
  };
205
206
  }
206
207
  /**
207
208
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
208
209
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
209
210
  */
210
- const ut = O.createContext(null), mt = (o) => !!o && typeof o == "object" && "status" in o && ["initializing", "initialized", "error"].includes(o.status), be = (o) => (r) => mt(r) && r.status === o, ue = be("initializing"), ht = (o) => be("initialized")(o) && o.watchdog.state === "ready";
211
+ const wt = V.createContext(null), Ct = (a) => !!a && typeof a == "object" && "status" in a && ["initializing", "initialized", "error"].includes(a.status), _e = (a) => (r) => Ct(r) && r.status === a, be = _e("initializing"), It = (a) => _e("initialized")(a) && a.watchdog.state === "ready";
211
212
  /**
212
213
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
213
214
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
214
215
  */
215
- const ft = ot(
216
+ const Et = ft(
216
217
  "react",
217
218
  {
218
219
  version: "9.5.0",
219
- frameworkVersion: O.version
220
+ frameworkVersion: V.version
220
221
  }
221
222
  );
222
223
  /**
223
224
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
224
225
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
225
226
  */
226
- function gt(o) {
227
- return ge(o.licenseKey) ? o : tt(o, [
227
+ function xt(a) {
228
+ return Ee(a.licenseKey) ? a : dt(a, [
228
229
  /**
229
230
  * This part of the code is not executed in open-source implementations using a GPL key.
230
231
  * It only runs when a specific license key is provided. If you are uncertain whether
231
232
  * this applies to your installation, please contact our support team.
232
233
  */
233
- ft
234
+ Et
234
235
  ]);
235
236
  }
236
237
  /**
237
238
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
238
239
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
239
240
  */
240
- const ee = "Lock from React integration (@ckeditor/ckeditor5-react)";
241
- class pe extends O.Component {
241
+ const le = "Lock from React integration (@ckeditor/ckeditor5-react)";
242
+ class ye extends V.Component {
242
243
  constructor(r) {
243
- super(r), S(this, "domContainer", O.createRef()), S(this, "editorSemaphore", null), this._checkVersion();
244
+ super(r), S(this, "domContainer", V.createRef()), S(this, "editorSemaphore", null), this._checkVersion();
244
245
  }
245
246
  /**
246
247
  * Checks if the CKEditor version used in the application is compatible with the component.
@@ -249,8 +250,8 @@ class pe extends O.Component {
249
250
  const { CKEDITOR_VERSION: r } = window;
250
251
  if (!r)
251
252
  return console.warn('Cannot find the "CKEDITOR_VERSION" in the "window" scope.');
252
- const [l] = r.split(".").map(Number);
253
- l >= 42 || r.startsWith("0.0.0") || console.warn("The <CKEditor> component requires using CKEditor 5 in version 42+ or nightly build.");
253
+ const [o] = r.split(".").map(Number);
254
+ o >= 42 || r.startsWith("0.0.0") || console.warn("The <CKEditor> component requires using CKEditor 5 in version 42+ or nightly build.");
254
255
  }
255
256
  get _semaphoreValue() {
256
257
  const { editorSemaphore: r } = this;
@@ -275,24 +276,24 @@ class pe extends O.Component {
275
276
  * However, if the component identifier changes, the whole structure should be created once again.
276
277
  */
277
278
  shouldComponentUpdate(r) {
278
- const { props: l, editorSemaphore: e } = this;
279
- return r.id !== l.id || r.disableWatchdog !== l.disableWatchdog ? !0 : (e && (e.runAfterMount(({ instance: u }) => {
280
- this._shouldUpdateEditorData(l, r, u) && u.data.set(r.data);
279
+ const { props: o, editorSemaphore: e } = this;
280
+ return r.id !== o.id || r.disableWatchdog !== o.disableWatchdog ? !0 : (e && (e.runAfterMount(({ instance: u }) => {
281
+ this._shouldUpdateEditorData(o, r, u) && u.data.set(r.data);
281
282
  }), "disabled" in r && e.runAfterMount(({ instance: u }) => {
282
- r.disabled ? u.enableReadOnlyMode(ee) : u.disableReadOnlyMode(ee);
283
+ r.disabled ? u.enableReadOnlyMode(le) : u.disableReadOnlyMode(le);
283
284
  })), !1);
284
285
  }
285
286
  /**
286
287
  * Initialize the editor when the component is mounted.
287
288
  */
288
289
  componentDidMount() {
289
- ue(this.context) || this._initLifeCycleSemaphore();
290
+ be(this.context) || this._initLifeCycleSemaphore();
290
291
  }
291
292
  /**
292
293
  * Re-render the entire component once again. The old editor will be destroyed and the new one will be created.
293
294
  */
294
295
  componentDidUpdate() {
295
- ue(this.context) || this._initLifeCycleSemaphore();
296
+ be(this.context) || this._initLifeCycleSemaphore();
296
297
  }
297
298
  /**
298
299
  * Destroy the editor before unmounting the component.
@@ -310,18 +311,18 @@ class pe extends O.Component {
310
311
  * Unlocks previous editor semaphore and creates new one..
311
312
  */
312
313
  _initLifeCycleSemaphore() {
313
- this._unlockLifeCycleSemaphore(), this.editorSemaphore = new st(this.domContainer.current, {
314
+ this._unlockLifeCycleSemaphore(), this.editorSemaphore = new pt(this.domContainer.current, {
314
315
  mount: async () => this._initializeEditor(),
315
316
  afterMount: ({ mountResult: r }) => {
316
- const { onReady: l } = this.props;
317
- l && this.domContainer.current !== null && l(r.instance);
317
+ const { onReady: o } = this.props;
318
+ o && this.domContainer.current !== null && o(r.instance);
318
319
  },
319
- unmount: async ({ element: r, mountResult: l }) => {
320
+ unmount: async ({ element: r, mountResult: o }) => {
320
321
  const { onAfterDestroy: e } = this.props;
321
322
  try {
322
- await this._destroyEditor(l), r.innerHTML = "";
323
+ await this._destroyEditor(o), r.innerHTML = "";
323
324
  } finally {
324
- e && e(l.instance);
325
+ e && e(o.instance);
325
326
  }
326
327
  }
327
328
  });
@@ -330,7 +331,7 @@ class pe extends O.Component {
330
331
  * Render a <div> element which will be replaced by CKEditor.
331
332
  */
332
333
  render() {
333
- return /* @__PURE__ */ O.createElement("div", { ref: this.domContainer });
334
+ return /* @__PURE__ */ V.createElement("div", { ref: this.domContainer });
334
335
  }
335
336
  /**
336
337
  * Initializes the editor by creating a proper watchdog and initializing it with the editor's configuration.
@@ -341,22 +342,22 @@ class pe extends O.Component {
341
342
  instance: await this._createEditor(this.domContainer.current, this._getConfig()),
342
343
  watchdog: null
343
344
  };
344
- const r = ht(this.context) ? new Nt(this.context.watchdog) : new this.props.editor.EditorWatchdog(this.props.editor, this.props.watchdogConfig), l = {
345
+ const r = It(this.context) ? new Tt(this.context.watchdog) : new this.props.editor.EditorWatchdog(this.props.editor, this.props.watchdogConfig), o = {
345
346
  current: 0
346
347
  };
347
348
  return r.setCreator(async (e, u) => {
348
- var p;
349
- const { editorSemaphore: g } = this, { onAfterDestroy: E } = this.props;
350
- l.current > 0 && E && ((p = g == null ? void 0 : g.value) != null && p.instance) && E(g.value.instance);
351
- const _ = await this._createEditor(e, u);
352
- return g && l.current > 0 && (g.unsafeSetValue({
353
- instance: _,
349
+ var C;
350
+ const { editorSemaphore: N } = this, { onAfterDestroy: I } = this.props;
351
+ o.current > 0 && I && ((C = N == null ? void 0 : N.value) != null && C.instance) && I(N.value.instance);
352
+ const x = await this._createEditor(e, u);
353
+ return N && o.current > 0 && (N.unsafeSetValue({
354
+ instance: x,
354
355
  watchdog: r
355
356
  }), setTimeout(() => {
356
357
  this.props.onReady && this.props.onReady(r.editor);
357
- })), l.current++, _;
358
- }), r.on("error", (e, { error: u, causesRestart: p }) => {
359
- (this.props.onError || console.error)(u, { phase: "runtime", willEditorRestart: p });
358
+ })), o.current++, x;
359
+ }), r.on("error", (e, { error: u, causesRestart: C }) => {
360
+ (this.props.onError || console.error)(u, { phase: "runtime", willEditorRestart: C });
360
361
  }), await r.create(this.domContainer.current, this._getConfig()).catch((e) => {
361
362
  (this.props.onError || console.error)(e, { phase: "initialization", willEditorRestart: !1 });
362
363
  }), {
@@ -370,26 +371,26 @@ class pe extends O.Component {
370
371
  * @param element The source element.
371
372
  * @param config CKEditor 5 editor configuration.
372
373
  */
373
- _createEditor(r, l) {
374
+ _createEditor(r, o) {
374
375
  const { contextItemMetadata: e } = this.props;
375
- return e && (l = dt(e, l)), this.props.editor.create(
376
+ return e && (o = bt(e, o)), this.props.editor.create(
376
377
  r,
377
- gt(l)
378
+ xt(o)
378
379
  ).then((u) => {
379
380
  if ("disabled" in this.props) {
380
381
  /* istanbul ignore else -- @preserve */
381
- this.props.disabled && u.enableReadOnlyMode(ee);
382
+ this.props.disabled && u.enableReadOnlyMode(le);
382
383
  }
383
- const p = u.model.document, g = u.editing.view.document;
384
- return p.on("change:data", (E) => {
384
+ const C = u.model.document, N = u.editing.view.document;
385
+ return C.on("change:data", (I) => {
385
386
  /* istanbul ignore else -- @preserve */
386
- this.props.onChange && this.props.onChange(E, u);
387
- }), g.on("focus", (E) => {
387
+ this.props.onChange && this.props.onChange(I, u);
388
+ }), N.on("focus", (I) => {
388
389
  /* istanbul ignore else -- @preserve */
389
- this.props.onFocus && this.props.onFocus(E, u);
390
- }), g.on("blur", (E) => {
390
+ this.props.onFocus && this.props.onFocus(I, u);
391
+ }), N.on("blur", (I) => {
391
392
  /* istanbul ignore else -- @preserve */
392
- this.props.onBlur && this.props.onBlur(E, u);
393
+ this.props.onBlur && this.props.onBlur(I, u);
393
394
  }), u;
394
395
  });
395
396
  }
@@ -397,18 +398,18 @@ class pe extends O.Component {
397
398
  * Destroys the editor by destroying the watchdog.
398
399
  */
399
400
  async _destroyEditor(r) {
400
- const { watchdog: l, instance: e } = r;
401
- return new Promise((u, p) => {
401
+ const { watchdog: o, instance: e } = r;
402
+ return new Promise((u, C) => {
402
403
  /* istanbul ignore next -- @preserve */
403
404
  setTimeout(async () => {
404
405
  try {
405
- if (l)
406
- return await l.destroy(), u();
406
+ if (o)
407
+ return await o.destroy(), u();
407
408
  if (e)
408
409
  return await e.destroy(), u();
409
410
  u();
410
- } catch (g) {
411
- console.error(g), p(g);
411
+ } catch (N) {
412
+ console.error(N), C(N);
412
413
  }
413
414
  });
414
415
  });
@@ -420,8 +421,8 @@ class pe extends O.Component {
420
421
  * @param nextProps React's properties.
421
422
  * @param editor Current editor instance.
422
423
  */
423
- _shouldUpdateEditorData(r, l, e) {
424
- return !(r.data === l.data || e.data.get() === l.data);
424
+ _shouldUpdateEditorData(r, o, e) {
425
+ return !(r.data === o.data || e.data.get() === o.data);
425
426
  }
426
427
  /**
427
428
  * Returns the editor configuration.
@@ -436,13 +437,13 @@ class pe extends O.Component {
436
437
  };
437
438
  }
438
439
  }
439
- S(pe, "contextType", ut);
440
- class Nt {
440
+ S(ye, "contextType", wt);
441
+ class Tt {
441
442
  /**
442
443
  * @param contextWatchdog The context watchdog instance that will be wrapped into editor watchdog API.
443
444
  */
444
445
  constructor(r) {
445
- S(this, "_contextWatchdog"), S(this, "_id"), S(this, "_creator"), this._contextWatchdog = r, this._id = Ge();
446
+ S(this, "_contextWatchdog"), S(this, "_id"), S(this, "_creator"), this._contextWatchdog = r, this._id = ot();
446
447
  }
447
448
  /**
448
449
  * @param creator A watchdog's editor creator function.
@@ -456,10 +457,10 @@ class Nt {
456
457
  * @param sourceElementOrData A source element or data for the new editor.
457
458
  * @param config CKEditor 5 editor config.
458
459
  */
459
- create(r, l) {
460
+ create(r, o) {
460
461
  return this._contextWatchdog.add({
461
462
  sourceElementOrData: r,
462
- config: l,
463
+ config: o,
463
464
  creator: this._creator,
464
465
  id: this._id,
465
466
  type: "editor"
@@ -469,9 +470,9 @@ class Nt {
469
470
  * Creates a listener that is attached to context watchdog's item and run when the context watchdog fires.
470
471
  * Currently works only for the `error` event.
471
472
  */
472
- on(r, l) {
473
- this._contextWatchdog.on("itemError", (e, { itemId: u, error: p }) => {
474
- u === this._id && l(null, { error: p, causesRestart: void 0 });
473
+ on(r, o) {
474
+ this._contextWatchdog.on("itemError", (e, { itemId: u, error: C }) => {
475
+ u === this._id && o(null, { error: C, causesRestart: void 0 });
475
476
  });
476
477
  }
477
478
  destroy() {
@@ -488,61 +489,61 @@ class Nt {
488
489
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
489
490
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
490
491
  */
491
- function we(...o) {
492
+ function Se(...a) {
492
493
  return (r) => {
493
- o.forEach((l) => {
494
- typeof l == "function" ? l(r) : l != null && (l.current = r);
494
+ a.forEach((o) => {
495
+ typeof o == "function" ? o(r) : o != null && (o.current = r);
495
496
  });
496
497
  };
497
498
  }
498
- const vt = Re(me(({ id: o, semaphore: r, rootName: l }, e) => {
499
- const u = Q(null);
500
- return te(() => {
501
- let p, g;
502
- return r.runAfterMount(({ instance: E }) => {
499
+ const _t = Ke(we(({ id: a, semaphore: r, rootName: o }, e) => {
500
+ const u = j(null);
501
+ return oe(() => {
502
+ let C, N;
503
+ return r.runAfterMount(({ instance: I }) => {
503
504
  if (!u.current)
504
505
  return;
505
- g = E;
506
- const { ui: _, model: R } = g, D = R.document.getRoot(l);
507
- D && g.ui.getEditableElement(l) && g.detachEditable(D), p = _.view.createEditable(l, u.current), _.addEditable(p), E.editing.view.forceRender();
506
+ N = I;
507
+ const { ui: x, model: A } = N, Y = A.document.getRoot(o);
508
+ Y && N.ui.getEditableElement(o) && N.detachEditable(Y), C = x.view.createEditable(o, u.current), x.addEditable(C), I.editing.view.forceRender();
508
509
  }), () => {
509
- if (g && g.state !== "destroyed" && u.current) {
510
- const E = g.model.document.getRoot(l);
510
+ if (N && N.state !== "destroyed" && u.current) {
511
+ const I = N.model.document.getRoot(o);
511
512
  /* istanbul ignore else -- @preserve */
512
- E && g.detachEditable(E);
513
+ I && N.detachEditable(I);
513
514
  }
514
515
  };
515
- }, [r.revision]), /* @__PURE__ */ O.createElement(
516
+ }, [r.revision]), /* @__PURE__ */ V.createElement(
516
517
  "div",
517
518
  {
518
519
  key: r.revision,
519
- id: o,
520
- ref: we(e, u)
520
+ id: a,
521
+ ref: Se(e, u)
521
522
  }
522
523
  );
523
524
  }));
524
- vt.displayName = "EditorEditable";
525
- const bt = me(({ editor: o }, r) => {
526
- const l = Q(null);
527
- return te(() => {
528
- const e = l.current;
529
- if (!o || !e)
525
+ _t.displayName = "EditorEditable";
526
+ const yt = we(({ editor: a }, r) => {
527
+ const o = j(null);
528
+ return oe(() => {
529
+ const e = o.current;
530
+ if (!a || !e)
530
531
  return;
531
- const u = o.ui.view.toolbar.element;
532
+ const u = a.ui.view.toolbar.element;
532
533
  return e.appendChild(u), () => {
533
534
  e.contains(u) && e.removeChild(u);
534
535
  };
535
- }, [o && o.id]), /* @__PURE__ */ O.createElement("div", { ref: we(l, r) });
536
+ }, [a && a.id]), /* @__PURE__ */ V.createElement("div", { ref: Se(o, r) });
536
537
  });
537
- bt.displayName = "EditorToolbarWrapper";
538
- const pt = ({
539
- open: o,
538
+ yt.displayName = "EditorToolbarWrapper";
539
+ const St = 5 * 1024 * 1024, Ft = ({
540
+ open: a,
540
541
  handleClose: r,
541
- handleClick: l,
542
+ handleClick: o,
542
543
  type: e
543
544
  }) => {
544
- var le, ae, se;
545
- const u = Ae(), p = u.palette.mode === "dark", g = Q(null), E = Q(!1), _ = qe(), [R, D] = B([]), [K, Ce] = B([]), [j, Ee] = B([]), { translate: c } = Ye(), [q, xe] = B([]), _e = F.object().shape({
545
+ var fe, ge, Ne;
546
+ const u = qe(), C = u.palette.mode === "dark", N = j(null), I = j(!1), x = Ze(), [A, Y] = U([]), [q, Fe] = U([]), [J, ke] = U([]), { translate: c } = et(), [B, $e] = U([]), W = j(null), [Z, se] = U(!1), [ce, H] = U(""), ze = F.object().shape({
546
547
  excetionTypes: F.string().test(
547
548
  "is-required",
548
549
  "Execution type is required",
@@ -603,145 +604,145 @@ const pt = ({
603
604
  "is-required",
604
605
  "Enter heading",
605
606
  function(t) {
606
- return (e == null ? void 0 : e.type) === "PUSH_NOTIFICATION" && X ? !!t : !0;
607
+ return (e == null ? void 0 : e.type) === "PUSH_NOTIFICATION" && ee ? !!t : !0;
607
608
  }
608
609
  ),
609
610
  template: F.string().test(
610
611
  "is-required",
611
612
  "Enter Template",
612
613
  function(t) {
613
- return (e == null ? void 0 : e.type) === "PUSH_NOTIFICATION" && X ? !!t : !0;
614
+ return (e == null ? void 0 : e.type) === "PUSH_NOTIFICATION" && ee ? !!t : !0;
614
615
  }
615
616
  )
616
617
  }), {
617
- control: v,
618
- handleSubmit: Ie,
619
- reset: Y,
620
- setValue: b,
621
- unregister: ie,
622
- getValues: ne,
623
- watch: V,
618
+ control: b,
619
+ handleSubmit: Me,
620
+ reset: Q,
621
+ setValue: v,
622
+ unregister: de,
623
+ getValues: ue,
624
+ watch: R,
624
625
  formState: { errors: f }
625
- } = Ve({
626
+ } = je({
626
627
  defaultValues: {},
627
- resolver: Oe(_e),
628
+ resolver: Ye(ze),
628
629
  mode: "onChange"
629
630
  });
630
- te(() => {
631
+ oe(() => {
631
632
  var t;
632
- e && (Pe(), (t = Object.keys(e)) == null || t.forEach((n) => {
633
- var s, m, w;
634
- if (n === "index" && b(n, e[n]), n === "smsConfigJson" && e[n]) {
635
- const x = e[n];
636
- (s = Object.keys(x)) == null || s.forEach((P) => {
637
- b(P, x[P]);
633
+ e && (Le(), (t = Object.keys(e)) == null || t.forEach((n) => {
634
+ var s, m, g;
635
+ if (n === "index" && v(n, e[n]), n === "smsConfigJson" && e[n]) {
636
+ const E = e[n];
637
+ (s = Object.keys(E)) == null || s.forEach((z) => {
638
+ v(z, E[z]);
638
639
  });
639
640
  } else if (n === "pushNotificationConfigJson" && e[n]) {
640
- const x = e[n];
641
- (m = Object.keys(x)) == null || m.forEach((P) => {
642
- b(P, x[P]);
641
+ const E = e[n];
642
+ (m = Object.keys(E)) == null || m.forEach((z) => {
643
+ v(z, E[z]);
643
644
  });
644
645
  } else if (n === "kafkaConfigJson" && e[n]) {
645
- const x = e[n];
646
- (w = Object.keys(x)) == null || w.forEach((P) => {
647
- b(P, x[P]);
646
+ const E = e[n];
647
+ (g = Object.keys(E)) == null || g.forEach((z) => {
648
+ v(z, E[z]);
648
649
  });
649
- } else e[n] !== void 0 && e[n] !== null && (b(n, e[n]), n === "miniute" && b("minute", e[n]));
650
- }));
650
+ } else e[n] !== void 0 && e[n] !== null && (v(n, e[n]), n === "miniute" && v("minute", e[n]));
651
+ }), e != null && e.emailImageId && H(c("Attachment uploaded")));
651
652
  }, [e]);
652
- const k = V("queryMasterParamJson"), re = V("queryCode"), Te = V("systemFunctionId"), $ = V("functionParams"), ye = V("trigerWhen"), X = V("notificationTypeId"), z = V("kafkaParameterJson"), oe = V("formType"), Se = async (t) => {
653
+ const k = R("queryMasterParamJson"), me = R("queryCode"), Pe = R("systemFunctionId"), $ = R("functionParams"), Ae = R("trigerWhen"), ee = R("notificationTypeId"), M = R("kafkaParameterJson"), he = R("formType"), Re = async (t) => {
653
654
  var m;
654
- k && k.forEach((w, x) => {
655
- b(`${w.parameterName}${x}`, ""), b(`${w.parameterName}${x}isFixed`, !1);
655
+ k && k.forEach((g, E) => {
656
+ v(`${g.parameterName}${E}`, ""), v(`${g.parameterName}${E}isFixed`, !1);
656
657
  });
657
658
  let n = [];
658
- const s = R == null ? void 0 : R.find((w) => (w == null ? void 0 : w.code) === t);
659
+ const s = A == null ? void 0 : A.find((g) => (g == null ? void 0 : g.code) === t);
659
660
  if (s) {
660
- const w = (m = s == null ? void 0 : s.params) == null ? void 0 : m.split(",");
661
- Array.from(new Set(w)).forEach((P) => {
662
- n.push({ parameterName: P });
661
+ const g = (m = s == null ? void 0 : s.params) == null ? void 0 : m.split(",");
662
+ Array.from(new Set(g)).forEach((z) => {
663
+ n.push({ parameterName: z });
663
664
  });
664
665
  }
665
- b("queryMasterParamJson", n);
666
- }, Fe = (t) => {
667
- $ && $.forEach((m, w) => {
668
- b(`${m.parameterName}${w}`, ""), b(`${m.parameterName}${w}isFixed`, !1);
666
+ v("queryMasterParamJson", n);
667
+ }, Ve = (t) => {
668
+ $ && $.forEach((m, g) => {
669
+ v(`${m.parameterName}${g}`, ""), v(`${m.parameterName}${g}isFixed`, !1);
669
670
  });
670
671
  let n = [];
671
- const s = K.find((m) => m.id === t);
672
- s && Array.from(new Set(s.parameters)).forEach((w) => {
673
- n.push(w);
674
- }), b("functionParams", n);
675
- }, ke = (t) => {
676
- const n = q.find(
672
+ const s = q.find((m) => m.id === t);
673
+ s && Array.from(new Set(s.parameters)).forEach((g) => {
674
+ n.push(g);
675
+ }), v("functionParams", n);
676
+ }, Oe = (t) => {
677
+ const n = B.find(
677
678
  (s) => s.id === t
678
679
  );
679
- n && (b("notificationType", n), b("template", n.message), b("heading", n.heading));
680
- }, A = (t, n, s) => {
680
+ n && (v("notificationType", n), v("template", n.message), v("heading", n.heading));
681
+ }, O = (t, n, s) => {
681
682
  if ((e == null ? void 0 : e.type) === "QUERY") {
682
683
  const m = [...k];
683
- m[t][n] = s, b("queryMasterParamJson", m);
684
+ m[t][n] = s, v("queryMasterParamJson", m);
684
685
  }
685
686
  if ((e == null ? void 0 : e.type) === "SYSTEM_FUNCTION") {
686
687
  const m = [...$];
687
- m[t][n] = s, b("functionParams", m);
688
+ m[t][n] = s, v("functionParams", m);
688
689
  }
689
690
  if ((e == null ? void 0 : e.type) === "KAFKA_SYNC") {
690
- const m = [...z];
691
- m[t][n] = s, b("kafkaParameterJson", m);
691
+ const m = [...M];
692
+ m[t][n] = s, v("kafkaParameterJson", m);
692
693
  }
693
- }, $e = (t) => {
694
- const n = ne("kafkaParameterJson");
695
- n && Array.isArray(n) && (n.forEach((m, w) => {
696
- ie(`${m.parameterName}${w}`), ie(`${m.parameterName}${w}isFixed`);
697
- }), b("kafkaParameterJson", [], { shouldValidate: !0 }));
698
- const s = j.find(
694
+ }, Ue = (t) => {
695
+ const n = ue("kafkaParameterJson");
696
+ n && Array.isArray(n) && (n.forEach((m, g) => {
697
+ de(`${m.parameterName}${g}`), de(`${m.parameterName}${g}isFixed`);
698
+ }), v("kafkaParameterJson", [], { shouldValidate: !0 }));
699
+ const s = J.find(
699
700
  (m) => m.form_type === t
700
701
  );
701
702
  if (s && s.param_types) {
702
- const m = JSON.parse(s.param_types), w = Object.keys(m).map((x) => ({
703
- parameterName: x,
703
+ const m = JSON.parse(s.param_types), g = Object.keys(m).map((E) => ({
704
+ parameterName: E,
704
705
  mappingValue: "",
705
706
  isFixed: !1
706
707
  }));
707
- b("kafkaParameterJson", w, { shouldValidate: !0 });
708
+ v("kafkaParameterJson", g, { shouldValidate: !0 });
708
709
  } else
709
- b("kafkaParameterJson", [], { shouldValidate: !0 });
710
- }, Pe = async () => {
710
+ v("kafkaParameterJson", [], { shouldValidate: !0 });
711
+ }, Le = async () => {
711
712
  var t, n;
712
713
  try {
713
714
  if ((e == null ? void 0 : e.type) === "QUERY") {
714
- const s = await De(!0);
715
- D(s == null ? void 0 : s.data);
715
+ const s = await Qe(!0);
716
+ Y(s == null ? void 0 : s.data);
716
717
  }
717
718
  if ((e == null ? void 0 : e.type) === "SYSTEM_FUNCTION") {
718
- const m = await de({
719
+ const m = await ve({
719
720
  code: "system_function_retrieve_all",
720
721
  parameters: {}
721
- }), w = (t = m == null ? void 0 : m.data) == null ? void 0 : t.result.map((x) => (x.parameters = JSON.parse(x.parameters), x));
722
- Ce(w);
722
+ }), g = (t = m == null ? void 0 : m.data) == null ? void 0 : t.result.map((E) => (E.parameters = JSON.parse(E.parameters), E));
723
+ Fe(g);
723
724
  }
724
725
  if ((e == null ? void 0 : e.type) === "PUSH_NOTIFICATION") {
725
- const s = await Ke();
726
- xe(s == null ? void 0 : s.data);
726
+ const s = await Xe();
727
+ $e(s == null ? void 0 : s.data);
727
728
  }
728
729
  if ((e == null ? void 0 : e.type) === "KAFKA_SYNC") {
729
- const s = await de({
730
+ const s = await ve({
730
731
  code: "retrieve_all_kafka_configs",
731
732
  parameters: {}
732
733
  });
733
- Ee(((n = s == null ? void 0 : s.data) == null ? void 0 : n.result) || []);
734
+ ke(((n = s == null ? void 0 : s.data) == null ? void 0 : n.result) || []);
734
735
  }
735
736
  } catch {
736
- je({ message: "Error in loading", type: "error" });
737
+ re({ message: "Error in loading", type: "error" });
737
738
  }
738
- }, J = () => {
739
- _("conversion_event", {
740
- form: g.current,
739
+ }, X = () => {
740
+ x("conversion_event", {
741
+ form: N.current,
741
742
  form_name: "Add Other Type Configuration",
742
- submit: E.current
743
+ submit: I.current
743
744
  }), r();
744
- }, ze = (t) => {
745
+ }, We = (t) => {
745
746
  t = JSON.parse(JSON.stringify(t)), t.minute = Number(t.minute || 0), t.miniute = Number(t.minute || 0), t.type = e == null ? void 0 : e.type, e.type === "SMS" && (t.smsConfigJson = {
746
747
  mobileNumberFieldName: t.mobileNumberFieldName,
747
748
  isPriority: t.isPriority,
@@ -759,25 +760,25 @@ const pt = ({
759
760
  delete t[`${n == null ? void 0 : n.parameterName}${s}`], delete t[`${n == null ? void 0 : n.parameterName}${s}isFixed`];
760
761
  }), $ == null || $.forEach((n, s) => {
761
762
  delete t[`${n == null ? void 0 : n.parameterName}${s}`], delete t[`${n == null ? void 0 : n.parameterName}${s}isFixed`];
762
- }), z == null || z.forEach((n, s) => {
763
+ }), M == null || M.forEach((n, s) => {
763
764
  delete t[`${n == null ? void 0 : n.parameterName}${s}`], delete t[`${n == null ? void 0 : n.parameterName}${s}isFixed`];
764
- }), l(t), E.current = !0, J(), Y();
765
+ }), o(t), I.current = !0, X(), H(""), Q();
765
766
  };
766
767
  return /* @__PURE__ */ i(
767
- Le,
768
+ Je,
768
769
  {
769
770
  "data-testid": "othertypeeventconfigmodal-modal",
770
- open: o,
771
+ open: a,
771
772
  className: "flex items-center justify-center",
772
773
  onClose: () => {
773
- J(), Y();
774
+ X(), Q();
774
775
  },
775
776
  sx: {
776
777
  "& .MuiBackdrop-root": {
777
778
  backgroundColor: "rgba(0, 0, 0, 0.1)"
778
779
  }
779
780
  },
780
- children: /* @__PURE__ */ a(
781
+ children: /* @__PURE__ */ l(
781
782
  d,
782
783
  {
783
784
  container: !0,
@@ -796,13 +797,13 @@ const pt = ({
796
797
  // Keeps children inside the rounded corners
797
798
  },
798
799
  children: [
799
- /* @__PURE__ */ a(
800
+ /* @__PURE__ */ l(
800
801
  d,
801
802
  {
802
803
  className: "manageeventconfiguration-modal-header p-2.5 px-5 flex border-b",
803
804
  "data-testid": "othertypeeventconfigmodal-modal-header",
804
805
  children: [
805
- /* @__PURE__ */ a(
806
+ /* @__PURE__ */ l(
806
807
  h,
807
808
  {
808
809
  variant: "body1",
@@ -817,34 +818,34 @@ const pt = ({
817
818
  }
818
819
  ),
819
820
  /* @__PURE__ */ i(
820
- Ue,
821
+ pe,
821
822
  {
822
823
  size: "small",
823
824
  onClick: () => {
824
- J(), Y();
825
+ X(), Q();
825
826
  },
826
827
  "data-testid": "othertypeeventconfigmodal-close-button",
827
- children: /* @__PURE__ */ i(Be, { icon: Je })
828
+ children: /* @__PURE__ */ i(ae, { icon: tt })
828
829
  }
829
830
  )
830
831
  ]
831
832
  }
832
833
  ),
833
- /* @__PURE__ */ a(
834
+ /* @__PURE__ */ l(
834
835
  "form",
835
836
  {
836
- onSubmit: Ie(ze),
837
- ref: g,
837
+ onSubmit: Me(We),
838
+ ref: N,
838
839
  "data-testid": "othertypeeventconfigmodal-form",
839
840
  children: [
840
- /* @__PURE__ */ a(d, { container: !0, className: " max-h-[60vh] overflow-y-auto w-full", children: [
841
+ /* @__PURE__ */ l(d, { container: !0, className: " max-h-[60vh] overflow-y-auto w-full", children: [
841
842
  /* @__PURE__ */ i(
842
843
  d,
843
844
  {
844
845
  item: !0,
845
846
  className: "border-b border-gray-300 p-2.5 flex flex-col items-start",
846
847
  size: { xs: 12 },
847
- children: /* @__PURE__ */ i(C, { className: "whitespace-normal w-full break-all p-2.5 flex flex-col items-start", children: /* @__PURE__ */ a(h, { variant: "body2", className: "font-bold", children: [
848
+ children: /* @__PURE__ */ i(w, { className: "whitespace-normal w-full break-all p-2.5 flex flex-col items-start", children: /* @__PURE__ */ l(h, { variant: "body2", className: "font-bold", children: [
848
849
  c("Available Implicit Parameters"),
849
850
  ":",
850
851
  " ",
@@ -853,30 +854,30 @@ const pt = ({
853
854
  ] }) })
854
855
  }
855
856
  ),
856
- /* @__PURE__ */ a(d, { item: !0, className: "p-2.5 w-full", children: [
857
- (e == null ? void 0 : e.type) === "EXCEPTION" && /* @__PURE__ */ a(d, { container: !0, spacing: 2, children: [
858
- /* @__PURE__ */ i(d, { item: !0, size: { xs: 12 }, className: " w-full", children: /* @__PURE__ */ a(
859
- N,
857
+ /* @__PURE__ */ l(d, { item: !0, className: "p-2.5 w-full", children: [
858
+ (e == null ? void 0 : e.type) === "EXCEPTION" && /* @__PURE__ */ l(d, { container: !0, spacing: 2, children: [
859
+ /* @__PURE__ */ i(d, { item: !0, size: { xs: 12 }, className: " w-full", children: /* @__PURE__ */ l(
860
+ p,
860
861
  {
861
862
  variant: "outlined",
862
863
  className: " w-full",
863
864
  "data-testid": "othertypeeventconfigmodal-exceptionType",
864
865
  children: [
865
- /* @__PURE__ */ a(h, { variant: "body2", children: [
866
+ /* @__PURE__ */ l(h, { variant: "body2", children: [
866
867
  c("Exception"),
867
868
  " ",
868
869
  c("Type"),
869
870
  /* @__PURE__ */ i("span", { style: { color: "red", marginLeft: 4 }, children: "*" })
870
871
  ] }),
871
- /* @__PURE__ */ a(C, { className: " w-full", children: [
872
+ /* @__PURE__ */ l(w, { className: " w-full", children: [
872
873
  /* @__PURE__ */ i(
873
874
  y,
874
875
  {
875
876
  name: "excetionTypes",
876
- control: v,
877
+ control: b,
877
878
  defaultValue: "",
878
879
  className: " w-full",
879
- render: ({ field: t }) => /* @__PURE__ */ a(
880
+ render: ({ field: t }) => /* @__PURE__ */ l(
880
881
  L,
881
882
  {
882
883
  className: " w-full",
@@ -885,13 +886,13 @@ const pt = ({
885
886
  size: "small",
886
887
  "data-testid": "othertypeeventconfigmodal-excetionTypes-select",
887
888
  children: [
888
- /* @__PURE__ */ i(T, { value: "", children: /* @__PURE__ */ i(h, { variant: "body2", children: c("Select") }) }),
889
- /* @__PURE__ */ i(T, { value: "ImtechoUserException", children: /* @__PURE__ */ i(h, { variant: "body2", children: c("Imtecho User Exception") }) }),
890
- /* @__PURE__ */ i(T, { value: "ImtechoSystemException", children: /* @__PURE__ */ a(h, { variant: "body2", children: [
889
+ /* @__PURE__ */ i(_, { value: "", children: /* @__PURE__ */ i(h, { variant: "body2", children: c("Select") }) }),
890
+ /* @__PURE__ */ i(_, { value: "ImtechoUserException", children: /* @__PURE__ */ i(h, { variant: "body2", children: c("Imtecho User Exception") }) }),
891
+ /* @__PURE__ */ i(_, { value: "ImtechoSystemException", children: /* @__PURE__ */ l(h, { variant: "body2", children: [
891
892
  " ",
892
893
  c("Imtecho System Exception")
893
894
  ] }) }),
894
- /* @__PURE__ */ i(T, { value: "ImtechoMobileException", children: /* @__PURE__ */ i(h, { variant: "body2", children: c("Imtecho Mobile Exception") }) })
895
+ /* @__PURE__ */ i(_, { value: "ImtechoMobileException", children: /* @__PURE__ */ i(h, { variant: "body2", children: c("Imtecho Mobile Exception") }) })
895
896
  ]
896
897
  }
897
898
  )
@@ -902,27 +903,27 @@ const pt = ({
902
903
  {
903
904
  className: "error-helper",
904
905
  "data-testid": "custom-error-message",
905
- children: (le = f == null ? void 0 : f.excetionTypes) == null ? void 0 : le.message
906
+ children: (fe = f == null ? void 0 : f.excetionTypes) == null ? void 0 : fe.message
906
907
  }
907
908
  )
908
909
  ] })
909
910
  ]
910
911
  }
911
912
  ) }),
912
- /* @__PURE__ */ a(d, { item: !0, size: { xs: 12 }, className: " w-full", children: [
913
+ /* @__PURE__ */ l(d, { item: !0, size: { xs: 12 }, className: " w-full", children: [
913
914
  " ",
914
- /* @__PURE__ */ a(
915
- N,
915
+ /* @__PURE__ */ l(
916
+ p,
916
917
  {
917
918
  variant: "outlined",
918
919
  className: " w-full",
919
920
  "data-testid": "othertypeeventconfigmodal-exceptionMessage",
920
921
  children: [
921
922
  /* @__PURE__ */ i(h, { variant: "body2", children: c("Message") }),
922
- /* @__PURE__ */ i(C, { className: " w-full", children: /* @__PURE__ */ i(
923
- Z,
923
+ /* @__PURE__ */ i(w, { className: " w-full", children: /* @__PURE__ */ i(
924
+ ne,
924
925
  {
925
- control: v,
926
+ control: b,
926
927
  id: "exceptionMessage",
927
928
  name: "exceptionMessage",
928
929
  errors: f,
@@ -936,15 +937,15 @@ const pt = ({
936
937
  )
937
938
  ] })
938
939
  ] }),
939
- (e == null ? void 0 : e.type) === "SMS" && /* @__PURE__ */ a(d, { container: !0, spacing: 2, children: [
940
- /* @__PURE__ */ i(d, { item: !0, size: { xs: 12 }, className: " w-full", children: /* @__PURE__ */ a(
941
- N,
940
+ (e == null ? void 0 : e.type) === "SMS" && /* @__PURE__ */ l(d, { container: !0, spacing: 2, children: [
941
+ /* @__PURE__ */ i(d, { item: !0, size: { xs: 12 }, className: " w-full", children: /* @__PURE__ */ l(
942
+ p,
942
943
  {
943
944
  variant: "outlined",
944
945
  className: " w-full",
945
946
  "data-testid": "othertypeeventconfigmodal-mobileNumberFieldName",
946
947
  children: [
947
- /* @__PURE__ */ a(h, { variant: "body2", children: [
948
+ /* @__PURE__ */ l(h, { variant: "body2", children: [
948
949
  c("SMS"),
949
950
  " ",
950
951
  c("Phone number"),
@@ -954,10 +955,10 @@ const pt = ({
954
955
  c("Name"),
955
956
  /* @__PURE__ */ i("span", { style: { color: "red", marginLeft: 4 }, children: "*" })
956
957
  ] }),
957
- /* @__PURE__ */ i(C, { className: " w-full", children: /* @__PURE__ */ i(
958
- M,
958
+ /* @__PURE__ */ i(w, { className: " w-full", children: /* @__PURE__ */ i(
959
+ P,
959
960
  {
960
- control: v,
961
+ control: b,
961
962
  id: "mobileNumberFieldName",
962
963
  name: "mobileNumberFieldName",
963
964
  errors: f,
@@ -969,21 +970,21 @@ const pt = ({
969
970
  ]
970
971
  }
971
972
  ) }),
972
- /* @__PURE__ */ i(d, { item: !0, size: { xs: 12 }, className: " w-full", children: /* @__PURE__ */ a(
973
- N,
973
+ /* @__PURE__ */ i(d, { item: !0, size: { xs: 12 }, className: " w-full", children: /* @__PURE__ */ l(
974
+ p,
974
975
  {
975
976
  variant: "outlined",
976
977
  className: " w-full",
977
978
  "data-testid": "othertypeeventconfigmodal-smsTypeField",
978
979
  children: [
979
- /* @__PURE__ */ a(
980
+ /* @__PURE__ */ l(
980
981
  d,
981
982
  {
982
983
  container: !0,
983
984
  justifyContent: "space-between",
984
985
  alignItems: "center",
985
986
  children: [
986
- /* @__PURE__ */ i(d, { item: !0, xs: !0, children: /* @__PURE__ */ a(h, { variant: "body2", children: [
987
+ /* @__PURE__ */ i(d, { item: !0, xs: !0, children: /* @__PURE__ */ l(h, { variant: "body2", children: [
987
988
  c("SMS"),
988
989
  " ",
989
990
  c("Type"),
@@ -993,19 +994,19 @@ const pt = ({
993
994
  c("Value"),
994
995
  /* @__PURE__ */ i("span", { style: { color: "red", marginLeft: 4 }, children: "*" })
995
996
  ] }) }),
996
- /* @__PURE__ */ a(d, { container: !0, children: [
997
+ /* @__PURE__ */ l(d, { container: !0, children: [
997
998
  " ",
998
- /* @__PURE__ */ i(d, { item: !0, children: /* @__PURE__ */ i(N, { component: "fieldset", className: "mr-2", children: /* @__PURE__ */ i(
999
+ /* @__PURE__ */ i(d, { item: !0, children: /* @__PURE__ */ i(p, { component: "fieldset", className: "mr-2", children: /* @__PURE__ */ i(
999
1000
  y,
1000
1001
  {
1001
- control: v,
1002
+ control: b,
1002
1003
  name: "isPriority",
1003
1004
  defaultValue: !1,
1004
1005
  render: ({ field: t }) => /* @__PURE__ */ i(
1005
- U,
1006
+ D,
1006
1007
  {
1007
1008
  control: /* @__PURE__ */ i(
1008
- W,
1009
+ K,
1009
1010
  {
1010
1011
  checked: t.value,
1011
1012
  onChange: (n) => t.onChange(n.target.checked),
@@ -1017,17 +1018,17 @@ const pt = ({
1017
1018
  )
1018
1019
  }
1019
1020
  ) }) }),
1020
- /* @__PURE__ */ i(d, { item: !0, children: /* @__PURE__ */ i(N, { component: "fieldset", className: "mr-2", children: /* @__PURE__ */ i(
1021
+ /* @__PURE__ */ i(d, { item: !0, children: /* @__PURE__ */ i(p, { component: "fieldset", className: "mr-2", children: /* @__PURE__ */ i(
1021
1022
  y,
1022
1023
  {
1023
- control: v,
1024
+ control: b,
1024
1025
  name: "isSmsTypeFixed",
1025
1026
  defaultValue: !1,
1026
1027
  render: ({ field: t }) => /* @__PURE__ */ i(
1027
- U,
1028
+ D,
1028
1029
  {
1029
1030
  control: /* @__PURE__ */ i(
1030
- W,
1031
+ K,
1031
1032
  {
1032
1033
  checked: t.value,
1033
1034
  onChange: (n) => t.onChange(n.target.checked),
@@ -1043,10 +1044,10 @@ const pt = ({
1043
1044
  ]
1044
1045
  }
1045
1046
  ),
1046
- /* @__PURE__ */ i(C, { className: " w-full", children: /* @__PURE__ */ i(
1047
- M,
1047
+ /* @__PURE__ */ i(w, { className: " w-full", children: /* @__PURE__ */ i(
1048
+ P,
1048
1049
  {
1049
- control: v,
1050
+ control: b,
1050
1051
  id: "smsTypeField",
1051
1052
  name: "smsTypeField",
1052
1053
  errors: f,
@@ -1059,15 +1060,15 @@ const pt = ({
1059
1060
  }
1060
1061
  ) })
1061
1062
  ] }),
1062
- (e == null ? void 0 : e.type) === "EMAIL" && /* @__PURE__ */ a(d, { container: !0, spacing: 2, className: " w-full", children: [
1063
- /* @__PURE__ */ i(d, { item: !0, size: { xs: 12 }, className: " w-full", children: /* @__PURE__ */ a(
1064
- N,
1063
+ (e == null ? void 0 : e.type) === "EMAIL" && /* @__PURE__ */ l(d, { container: !0, spacing: 2, className: " w-full", children: [
1064
+ /* @__PURE__ */ i(d, { item: !0, size: { xs: 12 }, className: " w-full", children: /* @__PURE__ */ l(
1065
+ p,
1065
1066
  {
1066
1067
  variant: "outlined",
1067
1068
  className: " w-full",
1068
1069
  "data-testid": "othertypeeventconfigmodal-emailIdField",
1069
1070
  children: [
1070
- /* @__PURE__ */ a(h, { variant: "body2", children: [
1071
+ /* @__PURE__ */ l(h, { variant: "body2", children: [
1071
1072
  c("Email"),
1072
1073
  " ",
1073
1074
  c("Id"),
@@ -1077,10 +1078,10 @@ const pt = ({
1077
1078
  c("Value"),
1078
1079
  /* @__PURE__ */ i("span", { style: { color: "red", marginLeft: 4 }, children: "*" })
1079
1080
  ] }),
1080
- /* @__PURE__ */ i(C, { className: " w-full", children: /* @__PURE__ */ i(
1081
- M,
1081
+ /* @__PURE__ */ i(w, { className: " w-full", children: /* @__PURE__ */ i(
1082
+ P,
1082
1083
  {
1083
- control: v,
1084
+ control: b,
1084
1085
  id: "baseDateFieldName",
1085
1086
  name: "baseDateFieldName",
1086
1087
  errors: f,
@@ -1092,23 +1093,23 @@ const pt = ({
1092
1093
  ]
1093
1094
  }
1094
1095
  ) }),
1095
- /* @__PURE__ */ i(d, { item: !0, size: { xs: 12 }, className: " w-full", children: /* @__PURE__ */ a(
1096
- N,
1096
+ /* @__PURE__ */ i(d, { item: !0, size: { xs: 12 }, className: " w-full", children: /* @__PURE__ */ l(
1097
+ p,
1097
1098
  {
1098
1099
  variant: "outlined",
1099
1100
  className: " w-full",
1100
1101
  "data-testid": "othertypeeventconfigmodal-emailSubjectField",
1101
1102
  children: [
1102
- /* @__PURE__ */ a(h, { variant: "body2", children: [
1103
+ /* @__PURE__ */ l(h, { variant: "body2", children: [
1103
1104
  c("Email"),
1104
1105
  " ",
1105
1106
  c("Subject"),
1106
1107
  /* @__PURE__ */ i("span", { style: { color: "red", marginLeft: 4 }, children: "*" })
1107
1108
  ] }),
1108
- /* @__PURE__ */ i(C, { className: " w-full", children: /* @__PURE__ */ i(
1109
- M,
1109
+ /* @__PURE__ */ i(w, { className: " w-full", children: /* @__PURE__ */ i(
1110
+ P,
1110
1111
  {
1111
- control: v,
1112
+ control: b,
1112
1113
  id: "emailSubject",
1113
1114
  name: "emailSubject",
1114
1115
  errors: f,
@@ -1120,8 +1121,86 @@ const pt = ({
1120
1121
  ]
1121
1122
  }
1122
1123
  ) }),
1123
- /* @__PURE__ */ i(d, { item: !0, size: { xs: 12 }, className: " w-full", children: /* @__PURE__ */ a(
1124
- N,
1124
+ /* @__PURE__ */ i(d, { item: !0, size: { xs: 12 }, className: " w-full", children: /* @__PURE__ */ l(
1125
+ p,
1126
+ {
1127
+ variant: "outlined",
1128
+ className: " w-full",
1129
+ "data-testid": "othertypeeventconfigmodal-emailImage",
1130
+ children: [
1131
+ /* @__PURE__ */ l(h, { variant: "body2", className: "mb-1", children: [
1132
+ c("Email Attachment"),
1133
+ " (",
1134
+ c("Image or PDF, max 5MB"),
1135
+ ")"
1136
+ ] }),
1137
+ /* @__PURE__ */ l(w, { className: "flex items-center gap-3 flex-wrap", children: [
1138
+ /* @__PURE__ */ l(
1139
+ te,
1140
+ {
1141
+ component: "label",
1142
+ variant: "outlined",
1143
+ size: "small",
1144
+ startIcon: Z ? /* @__PURE__ */ i(Be, { size: 14 }) : /* @__PURE__ */ i(ae, { icon: it }),
1145
+ disabled: Z,
1146
+ "data-testid": "othertypeeventconfigmodal-emailImage-upload-button",
1147
+ children: [
1148
+ c(Z ? "Uploading..." : "Upload Attachment"),
1149
+ /* @__PURE__ */ i(
1150
+ "input",
1151
+ {
1152
+ ref: W,
1153
+ type: "file",
1154
+ hidden: !0,
1155
+ accept: "image/jpeg,image/png,image/gif,image/webp,application/pdf",
1156
+ onChange: async (t) => {
1157
+ var s, m;
1158
+ const n = (s = t.target.files) == null ? void 0 : s[0];
1159
+ if (n) {
1160
+ if (n.size > St) {
1161
+ re({
1162
+ message: c("File size must not exceed 5MB"),
1163
+ type: "error"
1164
+ }), W.current && (W.current.value = "");
1165
+ return;
1166
+ }
1167
+ try {
1168
+ se(!0);
1169
+ const { data: g } = await Ge(n, "EVENTS");
1170
+ v("emailImageId", g.id), H(g.actualFileName || g.fileName || n.name), W.current && (W.current.value = "");
1171
+ } catch (g) {
1172
+ console.error("Error uploading email attachment", ((m = g == null ? void 0 : g.response) == null ? void 0 : m.data) || g), re({ message: "Error uploading attachment", type: "error" });
1173
+ } finally {
1174
+ se(!1);
1175
+ }
1176
+ }
1177
+ }
1178
+ }
1179
+ )
1180
+ ]
1181
+ }
1182
+ ),
1183
+ ce && /* @__PURE__ */ l(w, { className: "flex items-center gap-2", children: [
1184
+ /* @__PURE__ */ i(h, { variant: "caption", color: "text.secondary", children: ce }),
1185
+ /* @__PURE__ */ i(
1186
+ pe,
1187
+ {
1188
+ size: "small",
1189
+ color: "error",
1190
+ onClick: () => {
1191
+ v("emailImageId", null), H("");
1192
+ },
1193
+ "data-testid": "othertypeeventconfigmodal-emailImage-remove-button",
1194
+ children: /* @__PURE__ */ i(ae, { icon: nt, className: "text-[14px]" })
1195
+ }
1196
+ )
1197
+ ] })
1198
+ ] })
1199
+ ]
1200
+ }
1201
+ ) }),
1202
+ /* @__PURE__ */ i(d, { item: !0, size: { xs: 12 }, className: " w-full", children: /* @__PURE__ */ l(
1203
+ p,
1125
1204
  {
1126
1205
  variant: "outlined",
1127
1206
  className: " w-[95%] md:w-full overflow-auto",
@@ -1129,7 +1208,18 @@ const pt = ({
1129
1208
  children: [
1130
1209
  /* @__PURE__ */ i(h, { variant: "body2", children: c("Template") }),
1131
1210
  /* @__PURE__ */ i(
1132
- C,
1211
+ h,
1212
+ {
1213
+ variant: "caption",
1214
+ color: "text.secondary",
1215
+ className: "mb-1",
1216
+ children: c(
1217
+ "Use the </> Source button in the toolbar to view or edit the raw HTML of this email"
1218
+ )
1219
+ }
1220
+ ),
1221
+ /* @__PURE__ */ i(
1222
+ w,
1133
1223
  {
1134
1224
  className: " w-full",
1135
1225
  sx: {
@@ -1147,7 +1237,7 @@ const pt = ({
1147
1237
  },
1148
1238
  // This targets the toolbar
1149
1239
  "& .ck.ck-toolbar": {
1150
- backgroundColor: p ? "#21262D !important" : "var(--color-gray4) !important",
1240
+ backgroundColor: C ? "#21262D !important" : "var(--color-gray4) !important",
1151
1241
  borderColor: `${u.palette.divider} !important`
1152
1242
  },
1153
1243
  // This targets the buttons/icons inside the toolbar
@@ -1155,10 +1245,10 @@ const pt = ({
1155
1245
  color: `${u.palette.text.primary} !important`,
1156
1246
  cursor: "pointer",
1157
1247
  "&:hover": {
1158
- backgroundColor: p ? "#30363D !important" : "var(--color-gray3) !important"
1248
+ backgroundColor: C ? "#30363D !important" : "var(--color-gray3) !important"
1159
1249
  },
1160
1250
  "&.ck-on": {
1161
- backgroundColor: p ? "#11B66633 !important" : "var(--color-gray3) !important",
1251
+ backgroundColor: C ? "#11B66633 !important" : "var(--color-gray3) !important",
1162
1252
  color: `${u.palette.primary.main} !important`
1163
1253
  }
1164
1254
  },
@@ -1168,10 +1258,10 @@ const pt = ({
1168
1258
  }
1169
1259
  },
1170
1260
  children: /* @__PURE__ */ i(
1171
- pe,
1261
+ ye,
1172
1262
  {
1173
- editor: He,
1174
- data: ne("template") || "",
1263
+ editor: rt,
1264
+ data: ue("template") || "",
1175
1265
  config: {
1176
1266
  toolbar: [
1177
1267
  "heading",
@@ -1191,12 +1281,14 @@ const pt = ({
1191
1281
  "blockQuote",
1192
1282
  "|",
1193
1283
  "undo",
1194
- "redo"
1284
+ "redo",
1285
+ "|",
1286
+ "sourceEditing"
1195
1287
  ]
1196
1288
  },
1197
1289
  onChange: (t, n) => {
1198
1290
  const s = n.getData();
1199
- b("template", s);
1291
+ v("template", s);
1200
1292
  },
1201
1293
  "data-testid": "othertypeeventconfigmodal-template-ckeditor"
1202
1294
  }
@@ -1207,22 +1299,22 @@ const pt = ({
1207
1299
  }
1208
1300
  ) })
1209
1301
  ] }),
1210
- (e == null ? void 0 : e.type) === "QUERY" && /* @__PURE__ */ i(d, { container: !0, children: /* @__PURE__ */ i(d, { item: !0, size: { xs: 12 }, className: " w-full", children: /* @__PURE__ */ a(
1211
- N,
1302
+ (e == null ? void 0 : e.type) === "QUERY" && /* @__PURE__ */ i(d, { container: !0, children: /* @__PURE__ */ i(d, { item: !0, size: { xs: 12 }, className: " w-full", children: /* @__PURE__ */ l(
1303
+ p,
1212
1304
  {
1213
1305
  variant: "outlined",
1214
1306
  className: " w-full",
1215
1307
  "data-testid": "othertypeeventconfigmodal-querySelect",
1216
1308
  children: [
1217
1309
  /* @__PURE__ */ i(h, { variant: "body2", children: c("Query") }),
1218
- /* @__PURE__ */ i(C, { className: " w-full", children: /* @__PURE__ */ i(
1310
+ /* @__PURE__ */ i(w, { className: " w-full", children: /* @__PURE__ */ i(
1219
1311
  y,
1220
1312
  {
1221
1313
  className: " w-full",
1222
1314
  name: "queryCode",
1223
- control: v,
1315
+ control: b,
1224
1316
  defaultValue: null,
1225
- render: ({ field: t }) => /* @__PURE__ */ a(
1317
+ render: ({ field: t }) => /* @__PURE__ */ l(
1226
1318
  L,
1227
1319
  {
1228
1320
  ...t,
@@ -1230,12 +1322,12 @@ const pt = ({
1230
1322
  size: "small",
1231
1323
  displayEmpty: !0,
1232
1324
  onChange: (n) => {
1233
- t.onChange(n), Se(n.target.value);
1325
+ t.onChange(n), Re(n.target.value);
1234
1326
  },
1235
1327
  "data-testid": "othertypeeventconfigmodal-queryCode-select",
1236
1328
  children: [
1237
- /* @__PURE__ */ i(T, { value: null, children: /* @__PURE__ */ i(h, { variant: "body2", children: c("Select") }) }),
1238
- R == null ? void 0 : R.map((n, s) => /* @__PURE__ */ i(T, { value: n == null ? void 0 : n.code, children: /* @__PURE__ */ a(h, { variant: "body2", children: [
1329
+ /* @__PURE__ */ i(_, { value: null, children: /* @__PURE__ */ i(h, { variant: "body2", children: c("Select") }) }),
1330
+ A == null ? void 0 : A.map((n, s) => /* @__PURE__ */ i(_, { value: n == null ? void 0 : n.code, children: /* @__PURE__ */ l(h, { variant: "body2", children: [
1239
1331
  " ",
1240
1332
  n == null ? void 0 : n.code
1241
1333
  ] }) }, s + 1))
@@ -1247,40 +1339,40 @@ const pt = ({
1247
1339
  ]
1248
1340
  }
1249
1341
  ) }) }),
1250
- k && (e == null ? void 0 : e.type) === "QUERY" && re && /* @__PURE__ */ i(d, { container: !0, className: " w-full", children: k == null ? void 0 : k.map((t, n) => /* @__PURE__ */ i(
1342
+ k && (e == null ? void 0 : e.type) === "QUERY" && me && /* @__PURE__ */ i(d, { container: !0, className: " w-full", children: k == null ? void 0 : k.map((t, n) => /* @__PURE__ */ i(
1251
1343
  d,
1252
1344
  {
1253
1345
  item: !0,
1254
1346
  size: { xs: 12 },
1255
1347
  className: " w-full",
1256
- children: /* @__PURE__ */ a(N, { variant: "outlined", className: " w-full", children: [
1257
- /* @__PURE__ */ a(
1348
+ children: /* @__PURE__ */ l(p, { variant: "outlined", className: " w-full", children: [
1349
+ /* @__PURE__ */ l(
1258
1350
  d,
1259
1351
  {
1260
1352
  container: !0,
1261
1353
  justifyContent: "space-between",
1262
1354
  alignItems: "center",
1263
1355
  children: [
1264
- /* @__PURE__ */ i(d, { item: !0, children: /* @__PURE__ */ a(h, { variant: "body1", children: [
1356
+ /* @__PURE__ */ i(d, { item: !0, children: /* @__PURE__ */ l(h, { variant: "body1", children: [
1265
1357
  t == null ? void 0 : t.parameterName,
1266
1358
  " ",
1267
1359
  c("Mapping")
1268
1360
  ] }) }),
1269
- /* @__PURE__ */ i(d, { item: !0, children: /* @__PURE__ */ i(N, { component: "fieldset", className: "mr-2", children: /* @__PURE__ */ i(
1361
+ /* @__PURE__ */ i(d, { item: !0, children: /* @__PURE__ */ i(p, { component: "fieldset", className: "mr-2", children: /* @__PURE__ */ i(
1270
1362
  y,
1271
1363
  {
1272
- control: v,
1364
+ control: b,
1273
1365
  name: `${t == null ? void 0 : t.parameterName}${n}isFixed`,
1274
1366
  defaultValue: (t == null ? void 0 : t.isFixed) || !1,
1275
1367
  render: ({ field: s }) => /* @__PURE__ */ i(
1276
- U,
1368
+ D,
1277
1369
  {
1278
1370
  control: /* @__PURE__ */ i(
1279
- W,
1371
+ K,
1280
1372
  {
1281
1373
  checked: s.value,
1282
1374
  onChange: (m) => {
1283
- s.onChange(m.target.checked), A(
1375
+ s.onChange(m.target.checked), O(
1284
1376
  n,
1285
1377
  "isFixed",
1286
1378
  m.target.checked
@@ -1297,15 +1389,15 @@ const pt = ({
1297
1389
  ]
1298
1390
  }
1299
1391
  ),
1300
- /* @__PURE__ */ i(C, { className: " w-full", children: /* @__PURE__ */ i(
1392
+ /* @__PURE__ */ i(w, { className: " w-full", children: /* @__PURE__ */ i(
1301
1393
  y,
1302
1394
  {
1303
- control: v,
1395
+ control: b,
1304
1396
  className: " w-full",
1305
1397
  name: `${t == null ? void 0 : t.parameterName}${n}`,
1306
1398
  defaultValue: t == null ? void 0 : t.mappingValue,
1307
1399
  render: ({ field: s }) => /* @__PURE__ */ i(
1308
- G,
1400
+ ie,
1309
1401
  {
1310
1402
  variant: "outlined",
1311
1403
  size: "small",
@@ -1313,10 +1405,10 @@ const pt = ({
1313
1405
  ...s,
1314
1406
  fullWidth: !0,
1315
1407
  onChange: (m) => {
1316
- b(
1408
+ v(
1317
1409
  `${t == null ? void 0 : t.parameterName}${n}`,
1318
1410
  m.target.value
1319
- ), A(
1411
+ ), O(
1320
1412
  n,
1321
1413
  "mappingValue",
1322
1414
  m.target.value
@@ -1331,29 +1423,29 @@ const pt = ({
1331
1423
  },
1332
1424
  n + 1
1333
1425
  )) }),
1334
- (e == null ? void 0 : e.type) === "SYSTEM_FUNCTION" && /* @__PURE__ */ i(d, { container: !0, children: /* @__PURE__ */ i(d, { item: !0, size: { xs: 12 }, className: " w-full", children: /* @__PURE__ */ a(
1335
- N,
1426
+ (e == null ? void 0 : e.type) === "SYSTEM_FUNCTION" && /* @__PURE__ */ i(d, { container: !0, children: /* @__PURE__ */ i(d, { item: !0, size: { xs: 12 }, className: " w-full", children: /* @__PURE__ */ l(
1427
+ p,
1336
1428
  {
1337
1429
  variant: "outlined",
1338
1430
  className: " w-full",
1339
1431
  "data-testid": "othertypeeventconfigmodal-systemFunction",
1340
1432
  children: [
1341
1433
  /* @__PURE__ */ i(h, { variant: "body2", children: c("System Function") }),
1342
- /* @__PURE__ */ i(C, { className: " w-full", children: /* @__PURE__ */ i(
1434
+ /* @__PURE__ */ i(w, { className: " w-full", children: /* @__PURE__ */ i(
1343
1435
  y,
1344
1436
  {
1345
1437
  className: " w-full",
1346
1438
  name: "systemFunctionId",
1347
- control: v,
1439
+ control: b,
1348
1440
  defaultValue: "",
1349
- render: ({ field: t }) => /* @__PURE__ */ a(
1441
+ render: ({ field: t }) => /* @__PURE__ */ l(
1350
1442
  L,
1351
1443
  {
1352
1444
  ...t,
1353
1445
  className: " w-full",
1354
1446
  size: "small",
1355
1447
  onChange: (n) => {
1356
- t.onChange(n), Fe(n.target.value);
1448
+ t.onChange(n), Ve(n.target.value);
1357
1449
  },
1358
1450
  "data-testid": "othertypeeventconfigmodal-systemFunctionId-select",
1359
1451
  sx: {
@@ -1375,8 +1467,8 @@ const pt = ({
1375
1467
  }
1376
1468
  },
1377
1469
  children: [
1378
- /* @__PURE__ */ i(T, { value: "", children: /* @__PURE__ */ i(h, { variant: "body2", children: c("None") }) }),
1379
- K == null ? void 0 : K.map((n, s) => /* @__PURE__ */ i(T, { value: n == null ? void 0 : n.id, children: /* @__PURE__ */ a(h, { variant: "body2", children: [
1470
+ /* @__PURE__ */ i(_, { value: "", children: /* @__PURE__ */ i(h, { variant: "body2", children: c("None") }) }),
1471
+ q == null ? void 0 : q.map((n, s) => /* @__PURE__ */ i(_, { value: n == null ? void 0 : n.id, children: /* @__PURE__ */ l(h, { variant: "body2", children: [
1380
1472
  " ",
1381
1473
  n == null ? void 0 : n.name,
1382
1474
  " (",
@@ -1391,45 +1483,45 @@ const pt = ({
1391
1483
  ]
1392
1484
  }
1393
1485
  ) }) }),
1394
- $ && (e == null ? void 0 : e.type) === "SYSTEM_FUNCTION" && Te && /* @__PURE__ */ i(d, { container: !0, children: $ == null ? void 0 : $.map((t, n) => /* @__PURE__ */ i(
1486
+ $ && (e == null ? void 0 : e.type) === "SYSTEM_FUNCTION" && Pe && /* @__PURE__ */ i(d, { container: !0, children: $ == null ? void 0 : $.map((t, n) => /* @__PURE__ */ i(
1395
1487
  d,
1396
1488
  {
1397
1489
  item: !0,
1398
1490
  size: { xs: 12 },
1399
1491
  className: " w-full",
1400
- children: /* @__PURE__ */ a(N, { variant: "outlined", className: " w-full", children: [
1401
- /* @__PURE__ */ a(
1492
+ children: /* @__PURE__ */ l(p, { variant: "outlined", className: " w-full", children: [
1493
+ /* @__PURE__ */ l(
1402
1494
  d,
1403
1495
  {
1404
1496
  container: !0,
1405
1497
  justifyContent: "space-between",
1406
1498
  alignItems: "center",
1407
1499
  children: [
1408
- /* @__PURE__ */ i(d, { item: !0, xs: !0, children: /* @__PURE__ */ a(h, { variant: "body2", children: [
1500
+ /* @__PURE__ */ i(d, { item: !0, xs: !0, children: /* @__PURE__ */ l(h, { variant: "body2", children: [
1409
1501
  t == null ? void 0 : t.parameterName,
1410
1502
  " ",
1411
1503
  c("Mapping")
1412
1504
  ] }) }),
1413
1505
  /* @__PURE__ */ i(d, { item: !0, children: /* @__PURE__ */ i(
1414
- N,
1506
+ p,
1415
1507
  {
1416
1508
  component: "fieldset",
1417
1509
  className: "mr-2",
1418
1510
  children: /* @__PURE__ */ i(
1419
1511
  y,
1420
1512
  {
1421
- control: v,
1513
+ control: b,
1422
1514
  name: `${t == null ? void 0 : t.parameterName}${n}isFixed`,
1423
1515
  defaultValue: (t == null ? void 0 : t.isFixed) || !1,
1424
1516
  render: ({ field: s }) => /* @__PURE__ */ i(
1425
- U,
1517
+ D,
1426
1518
  {
1427
1519
  control: /* @__PURE__ */ i(
1428
- W,
1520
+ K,
1429
1521
  {
1430
1522
  checked: s.value,
1431
1523
  onChange: (m) => {
1432
- s.onChange(m.target.checked), A(
1524
+ s.onChange(m.target.checked), O(
1433
1525
  n,
1434
1526
  "isFixed",
1435
1527
  m.target.checked
@@ -1448,15 +1540,15 @@ const pt = ({
1448
1540
  ]
1449
1541
  }
1450
1542
  ),
1451
- /* @__PURE__ */ i(C, { className: " w-full", children: /* @__PURE__ */ i(
1543
+ /* @__PURE__ */ i(w, { className: " w-full", children: /* @__PURE__ */ i(
1452
1544
  y,
1453
1545
  {
1454
- control: v,
1546
+ control: b,
1455
1547
  className: " w-full",
1456
1548
  name: `${t == null ? void 0 : t.parameterName}${n}`,
1457
1549
  defaultValue: t == null ? void 0 : t.mappingValue,
1458
1550
  render: ({ field: s }) => /* @__PURE__ */ i(
1459
- G,
1551
+ ie,
1460
1552
  {
1461
1553
  variant: "outlined",
1462
1554
  size: "small",
@@ -1464,10 +1556,10 @@ const pt = ({
1464
1556
  ...s,
1465
1557
  fullWidth: !0,
1466
1558
  onChange: (m) => {
1467
- b(
1559
+ v(
1468
1560
  `${t == null ? void 0 : t.parameterName}${n}`,
1469
1561
  m.target.value
1470
- ), A(
1562
+ ), O(
1471
1563
  n,
1472
1564
  "mappingValue",
1473
1565
  m.target.value
@@ -1482,15 +1574,15 @@ const pt = ({
1482
1574
  },
1483
1575
  n + 1
1484
1576
  )) }),
1485
- (e == null ? void 0 : e.type) === "PUSH_NOTIFICATION" && /* @__PURE__ */ a(d, { container: !0, spacing: 2, children: [
1486
- /* @__PURE__ */ i(d, { item: !0, size: { xs: 12 }, className: " w-full", children: /* @__PURE__ */ a(
1487
- N,
1577
+ (e == null ? void 0 : e.type) === "PUSH_NOTIFICATION" && /* @__PURE__ */ l(d, { container: !0, spacing: 2, children: [
1578
+ /* @__PURE__ */ i(d, { item: !0, size: { xs: 12 }, className: " w-full", children: /* @__PURE__ */ l(
1579
+ p,
1488
1580
  {
1489
1581
  variant: "outlined",
1490
1582
  className: " w-full",
1491
1583
  "data-testid": "othertypeeventconfigmodal-userIdFieldName",
1492
1584
  children: [
1493
- /* @__PURE__ */ a(h, { variant: "body2", children: [
1585
+ /* @__PURE__ */ l(h, { variant: "body2", children: [
1494
1586
  c("User"),
1495
1587
  " ",
1496
1588
  c("Id"),
@@ -1500,10 +1592,10 @@ const pt = ({
1500
1592
  c("Name"),
1501
1593
  /* @__PURE__ */ i("span", { style: { color: "red", marginLeft: 4 }, children: "*" })
1502
1594
  ] }),
1503
- /* @__PURE__ */ i(C, { className: " w-full", children: /* @__PURE__ */ i(
1504
- M,
1595
+ /* @__PURE__ */ i(w, { className: " w-full", children: /* @__PURE__ */ i(
1596
+ P,
1505
1597
  {
1506
- control: v,
1598
+ control: b,
1507
1599
  id: "userFieldName",
1508
1600
  name: "userFieldName",
1509
1601
  errors: f,
@@ -1515,28 +1607,28 @@ const pt = ({
1515
1607
  ]
1516
1608
  }
1517
1609
  ) }),
1518
- /* @__PURE__ */ i(d, { item: !0, size: { xs: 12 }, className: " w-full", children: /* @__PURE__ */ a(
1519
- N,
1610
+ /* @__PURE__ */ i(d, { item: !0, size: { xs: 12 }, className: " w-full", children: /* @__PURE__ */ l(
1611
+ p,
1520
1612
  {
1521
1613
  variant: "outlined",
1522
1614
  className: " w-full",
1523
1615
  "data-testid": "othertypeeventconfigmodal-notificationType",
1524
1616
  children: [
1525
- /* @__PURE__ */ a(h, { variant: "body2", children: [
1617
+ /* @__PURE__ */ l(h, { variant: "body2", children: [
1526
1618
  c("Notification"),
1527
1619
  " ",
1528
1620
  c("Type"),
1529
1621
  /* @__PURE__ */ i("span", { style: { color: "red", marginLeft: 4 }, children: "*" })
1530
1622
  ] }),
1531
- /* @__PURE__ */ a(C, { className: " w-full", children: [
1623
+ /* @__PURE__ */ l(w, { className: " w-full", children: [
1532
1624
  /* @__PURE__ */ i(
1533
1625
  y,
1534
1626
  {
1535
1627
  className: " w-full",
1536
1628
  name: "notificationTypeId",
1537
- control: v,
1629
+ control: b,
1538
1630
  defaultValue: "",
1539
- render: ({ field: t }) => /* @__PURE__ */ a(
1631
+ render: ({ field: t }) => /* @__PURE__ */ l(
1540
1632
  L,
1541
1633
  {
1542
1634
  ...t,
@@ -1544,12 +1636,12 @@ const pt = ({
1544
1636
  size: "small",
1545
1637
  error: f == null ? void 0 : f.notificationTypeId,
1546
1638
  onChange: (n) => {
1547
- t.onChange(n), ke(n.target.value);
1639
+ t.onChange(n), Oe(n.target.value);
1548
1640
  },
1549
1641
  "data-testid": "othertypeeventconfigmodal-notificationtypeid-select",
1550
1642
  children: [
1551
- /* @__PURE__ */ i(T, { value: "", children: /* @__PURE__ */ i(h, { variant: "body2", children: c("None") }) }),
1552
- q == null ? void 0 : q.map((n, s) => /* @__PURE__ */ i(T, { value: n == null ? void 0 : n.id, children: /* @__PURE__ */ i(h, { variant: "body2", children: n == null ? void 0 : n.type }) }, s + 1))
1643
+ /* @__PURE__ */ i(_, { value: "", children: /* @__PURE__ */ i(h, { variant: "body2", children: c("None") }) }),
1644
+ B == null ? void 0 : B.map((n, s) => /* @__PURE__ */ i(_, { value: n == null ? void 0 : n.id, children: /* @__PURE__ */ i(h, { variant: "body2", children: n == null ? void 0 : n.type }) }, s + 1))
1553
1645
  ]
1554
1646
  }
1555
1647
  )
@@ -1560,7 +1652,7 @@ const pt = ({
1560
1652
  {
1561
1653
  className: "error-helper",
1562
1654
  "data-testid": "custom-error-message",
1563
- children: (ae = f == null ? void 0 : f.notificationTypeId) == null ? void 0 : ae.message
1655
+ children: (ge = f == null ? void 0 : f.notificationTypeId) == null ? void 0 : ge.message
1564
1656
  }
1565
1657
  )
1566
1658
  ] })
@@ -1568,18 +1660,18 @@ const pt = ({
1568
1660
  }
1569
1661
  ) })
1570
1662
  ] }),
1571
- (e == null ? void 0 : e.type) === "PUSH_NOTIFICATION" && X && /* @__PURE__ */ a(d, { container: !0, spacing: 2, children: [
1572
- /* @__PURE__ */ i(d, { item: !0, size: { xs: 12 }, className: " w-full", children: /* @__PURE__ */ a(N, { variant: "outlined", className: " w-full", children: [
1573
- /* @__PURE__ */ a(h, { variant: "body2", children: [
1663
+ (e == null ? void 0 : e.type) === "PUSH_NOTIFICATION" && ee && /* @__PURE__ */ l(d, { container: !0, spacing: 2, children: [
1664
+ /* @__PURE__ */ i(d, { item: !0, size: { xs: 12 }, className: " w-full", children: /* @__PURE__ */ l(p, { variant: "outlined", className: " w-full", children: [
1665
+ /* @__PURE__ */ l(h, { variant: "body2", children: [
1574
1666
  c("Notification"),
1575
1667
  " ",
1576
1668
  c("Heading"),
1577
1669
  /* @__PURE__ */ i("span", { style: { color: "red", marginLeft: 4 }, children: "*" })
1578
1670
  ] }),
1579
- /* @__PURE__ */ i(C, { className: " w-full", children: /* @__PURE__ */ i(
1580
- M,
1671
+ /* @__PURE__ */ i(w, { className: " w-full", children: /* @__PURE__ */ i(
1672
+ P,
1581
1673
  {
1582
- control: v,
1674
+ control: b,
1583
1675
  id: "heading",
1584
1676
  name: "heading",
1585
1677
  errors: f,
@@ -1589,14 +1681,14 @@ const pt = ({
1589
1681
  }
1590
1682
  ) })
1591
1683
  ] }) }),
1592
- /* @__PURE__ */ a(d, { item: !0, size: { xs: 12 }, className: " w-full", children: [
1684
+ /* @__PURE__ */ l(d, { item: !0, size: { xs: 12 }, className: " w-full", children: [
1593
1685
  " ",
1594
- /* @__PURE__ */ a(N, { variant: "outlined", className: " w-full", children: [
1686
+ /* @__PURE__ */ l(p, { variant: "outlined", className: " w-full", children: [
1595
1687
  /* @__PURE__ */ i(h, { variant: "body2", children: c("Template") }),
1596
- /* @__PURE__ */ i(C, { className: " w-full", children: /* @__PURE__ */ i(
1597
- Z,
1688
+ /* @__PURE__ */ i(w, { className: " w-full", children: /* @__PURE__ */ i(
1689
+ ne,
1598
1690
  {
1599
- control: v,
1691
+ control: b,
1600
1692
  id: "template",
1601
1693
  name: "template",
1602
1694
  errors: f,
@@ -1608,26 +1700,26 @@ const pt = ({
1608
1700
  ] })
1609
1701
  ] })
1610
1702
  ] }),
1611
- (e == null ? void 0 : e.type) === "KAFKA_SYNC" && /* @__PURE__ */ i(d, { container: !0, children: /* @__PURE__ */ i(d, { item: !0, size: { xs: 12 }, className: " w-full", children: /* @__PURE__ */ a(
1612
- N,
1703
+ (e == null ? void 0 : e.type) === "KAFKA_SYNC" && /* @__PURE__ */ i(d, { container: !0, children: /* @__PURE__ */ i(d, { item: !0, size: { xs: 12 }, className: " w-full", children: /* @__PURE__ */ l(
1704
+ p,
1613
1705
  {
1614
1706
  variant: "outlined",
1615
1707
  className: " w-full",
1616
1708
  "data-testid": "othertypeeventconfigmodal-kafkaConfig",
1617
1709
  children: [
1618
- /* @__PURE__ */ a(h, { variant: "body2", children: [
1710
+ /* @__PURE__ */ l(h, { variant: "body2", children: [
1619
1711
  c("Kafka Config"),
1620
1712
  /* @__PURE__ */ i("span", { style: { color: "red", marginLeft: 4 }, children: "*" })
1621
1713
  ] }),
1622
- /* @__PURE__ */ i(C, { className: " w-full", children: /* @__PURE__ */ i(
1714
+ /* @__PURE__ */ i(w, { className: " w-full", children: /* @__PURE__ */ i(
1623
1715
  y,
1624
1716
  {
1625
1717
  className: " w-full",
1626
1718
  name: "formType",
1627
- control: v,
1719
+ control: b,
1628
1720
  defaultValue: "",
1629
1721
  error: f,
1630
- render: ({ field: t }) => /* @__PURE__ */ a(
1722
+ render: ({ field: t }) => /* @__PURE__ */ l(
1631
1723
  L,
1632
1724
  {
1633
1725
  ...t,
@@ -1635,12 +1727,12 @@ const pt = ({
1635
1727
  size: "small",
1636
1728
  displayEmpty: !0,
1637
1729
  onChange: (n) => {
1638
- t.onChange(n), $e(n.target.value);
1730
+ t.onChange(n), Ue(n.target.value);
1639
1731
  },
1640
1732
  "data-testid": "othertypeeventconfigmodal-kafkaConfig-select",
1641
1733
  children: [
1642
- /* @__PURE__ */ i(T, { value: "", children: /* @__PURE__ */ i(h, { variant: "body2", children: c("Select") }) }),
1643
- j == null ? void 0 : j.map((n, s) => /* @__PURE__ */ i(T, { value: n.form_type, children: /* @__PURE__ */ i(h, { variant: "body2", children: n.form_type }) }, s))
1734
+ /* @__PURE__ */ i(_, { value: "", children: /* @__PURE__ */ i(h, { variant: "body2", children: c("Select") }) }),
1735
+ J == null ? void 0 : J.map((n, s) => /* @__PURE__ */ i(_, { value: n.form_type, children: /* @__PURE__ */ i(h, { variant: "body2", children: n.form_type }) }, s))
1644
1736
  ]
1645
1737
  }
1646
1738
  )
@@ -1649,45 +1741,45 @@ const pt = ({
1649
1741
  ]
1650
1742
  }
1651
1743
  ) }) }),
1652
- z && (e == null ? void 0 : e.type) === "KAFKA_SYNC" && oe && z.length > 0 && /* @__PURE__ */ i(d, { container: !0, className: " w-full", children: z == null ? void 0 : z.map((t, n) => /* @__PURE__ */ i(
1744
+ M && (e == null ? void 0 : e.type) === "KAFKA_SYNC" && he && M.length > 0 && /* @__PURE__ */ i(d, { container: !0, className: " w-full", children: M == null ? void 0 : M.map((t, n) => /* @__PURE__ */ i(
1653
1745
  d,
1654
1746
  {
1655
1747
  item: !0,
1656
1748
  size: { xs: 12 },
1657
1749
  className: " w-full",
1658
- children: /* @__PURE__ */ a(N, { variant: "outlined", className: " w-full", children: [
1659
- /* @__PURE__ */ a(
1750
+ children: /* @__PURE__ */ l(p, { variant: "outlined", className: " w-full", children: [
1751
+ /* @__PURE__ */ l(
1660
1752
  d,
1661
1753
  {
1662
1754
  container: !0,
1663
1755
  justifyContent: "space-between",
1664
1756
  alignItems: "center",
1665
1757
  children: [
1666
- /* @__PURE__ */ i(d, { item: !0, xs: !0, children: /* @__PURE__ */ a(h, { variant: "body2", children: [
1758
+ /* @__PURE__ */ i(d, { item: !0, xs: !0, children: /* @__PURE__ */ l(h, { variant: "body2", children: [
1667
1759
  t == null ? void 0 : t.parameterName,
1668
1760
  " ",
1669
1761
  c("Mapping")
1670
1762
  ] }) }),
1671
1763
  /* @__PURE__ */ i(d, { item: !0, children: /* @__PURE__ */ i(
1672
- N,
1764
+ p,
1673
1765
  {
1674
1766
  component: "fieldset",
1675
1767
  className: "mr-2",
1676
1768
  children: /* @__PURE__ */ i(
1677
1769
  y,
1678
1770
  {
1679
- control: v,
1771
+ control: b,
1680
1772
  name: `${t == null ? void 0 : t.parameterName}${n}isFixed`,
1681
1773
  defaultValue: (t == null ? void 0 : t.isFixed) || !1,
1682
1774
  render: ({ field: s }) => /* @__PURE__ */ i(
1683
- U,
1775
+ D,
1684
1776
  {
1685
1777
  control: /* @__PURE__ */ i(
1686
- W,
1778
+ K,
1687
1779
  {
1688
1780
  checked: s.value,
1689
1781
  onChange: (m) => {
1690
- s.onChange(m.target.checked), A(
1782
+ s.onChange(m.target.checked), O(
1691
1783
  n,
1692
1784
  "isFixed",
1693
1785
  m.target.checked
@@ -1706,15 +1798,15 @@ const pt = ({
1706
1798
  ]
1707
1799
  }
1708
1800
  ),
1709
- /* @__PURE__ */ i(C, { className: " w-full", children: /* @__PURE__ */ i(
1801
+ /* @__PURE__ */ i(w, { className: " w-full", children: /* @__PURE__ */ i(
1710
1802
  y,
1711
1803
  {
1712
- control: v,
1804
+ control: b,
1713
1805
  className: " w-full",
1714
1806
  name: `${t == null ? void 0 : t.parameterName}${n}`,
1715
1807
  defaultValue: (t == null ? void 0 : t.mappingValue) || "",
1716
1808
  render: ({ field: s }) => /* @__PURE__ */ i(
1717
- G,
1809
+ ie,
1718
1810
  {
1719
1811
  variant: "outlined",
1720
1812
  size: "small",
@@ -1722,10 +1814,10 @@ const pt = ({
1722
1814
  ...s,
1723
1815
  fullWidth: !0,
1724
1816
  onChange: (m) => {
1725
- b(
1817
+ v(
1726
1818
  `${t == null ? void 0 : t.parameterName}${n}`,
1727
1819
  m.target.value
1728
- ), A(
1820
+ ), O(
1729
1821
  n,
1730
1822
  "mappingValue",
1731
1823
  m.target.value
@@ -1738,12 +1830,12 @@ const pt = ({
1738
1830
  ) })
1739
1831
  ] })
1740
1832
  },
1741
- `${oe}-${t == null ? void 0 : t.parameterName}-${n}`
1833
+ `${he}-${t == null ? void 0 : t.parameterName}-${n}`
1742
1834
  )) }),
1743
- ((e == null ? void 0 : e.type) === "SMS" || (e == null ? void 0 : e.type) == "QUERY" && !re) && /* @__PURE__ */ i(d, { container: !0, spacing: 2, children: /* @__PURE__ */ a(d, { item: !0, size: { xs: 12 }, className: " w-full", children: [
1835
+ ((e == null ? void 0 : e.type) === "SMS" || (e == null ? void 0 : e.type) == "QUERY" && !me) && /* @__PURE__ */ i(d, { container: !0, spacing: 2, children: /* @__PURE__ */ l(d, { item: !0, size: { xs: 12 }, className: " w-full", children: [
1744
1836
  " ",
1745
- /* @__PURE__ */ a(
1746
- N,
1837
+ /* @__PURE__ */ l(
1838
+ p,
1747
1839
  {
1748
1840
  variant: "outlined",
1749
1841
  className: " w-full",
@@ -1752,10 +1844,10 @@ const pt = ({
1752
1844
  /* @__PURE__ */ i(h, { variant: "body2", children: c(
1753
1845
  e.type === "QUERY" ? "Query" : "Template"
1754
1846
  ) }),
1755
- /* @__PURE__ */ i(C, { className: " w-full", children: /* @__PURE__ */ i(
1756
- Z,
1847
+ /* @__PURE__ */ i(w, { className: " w-full", children: /* @__PURE__ */ i(
1848
+ ne,
1757
1849
  {
1758
- control: v,
1850
+ control: b,
1759
1851
  id: "template",
1760
1852
  name: "template",
1761
1853
  label: "",
@@ -1767,29 +1859,29 @@ const pt = ({
1767
1859
  }
1768
1860
  )
1769
1861
  ] }) }),
1770
- (e == null ? void 0 : e.type) != "EXCEPTION" && (e == null ? void 0 : e.type) != "SYSTEM_FUNCTION" && /* @__PURE__ */ i(d, { container: !0, spacing: 2, children: /* @__PURE__ */ a(d, { item: !0, size: { xs: 12 }, className: "mt-2 w-full", children: [
1771
- /* @__PURE__ */ a(
1772
- N,
1862
+ (e == null ? void 0 : e.type) != "EXCEPTION" && (e == null ? void 0 : e.type) != "SYSTEM_FUNCTION" && /* @__PURE__ */ i(d, { container: !0, spacing: 2, children: /* @__PURE__ */ l(d, { item: !0, size: { xs: 12 }, className: "mt-2 w-full", children: [
1863
+ /* @__PURE__ */ l(
1864
+ p,
1773
1865
  {
1774
1866
  variant: "outlined",
1775
1867
  className: " w-full",
1776
1868
  "data-testid": "othertypeeventconfigmodal-triggerWhen",
1777
1869
  children: [
1778
- /* @__PURE__ */ a(h, { variant: "body2", children: [
1870
+ /* @__PURE__ */ l(h, { variant: "body2", children: [
1779
1871
  c("Trigger"),
1780
1872
  " ",
1781
1873
  c("When"),
1782
1874
  /* @__PURE__ */ i("span", { style: { color: "red", marginLeft: 4 }, children: "*" })
1783
1875
  ] }),
1784
- /* @__PURE__ */ a(C, { className: " w-full", children: [
1876
+ /* @__PURE__ */ l(w, { className: " w-full", children: [
1785
1877
  /* @__PURE__ */ i(
1786
1878
  y,
1787
1879
  {
1788
1880
  name: "trigerWhen",
1789
- control: v,
1881
+ control: b,
1790
1882
  defaultValue: "",
1791
1883
  className: " w-full",
1792
- render: ({ field: t }) => /* @__PURE__ */ a(
1884
+ render: ({ field: t }) => /* @__PURE__ */ l(
1793
1885
  L,
1794
1886
  {
1795
1887
  className: " w-full",
@@ -1799,9 +1891,9 @@ const pt = ({
1799
1891
  displayEmpty: !0,
1800
1892
  "data-testid": "othertypeeventconfigmodal-trigegrwhen-select",
1801
1893
  children: [
1802
- /* @__PURE__ */ i(T, { value: "", children: /* @__PURE__ */ i(h, { variant: "body2", children: c("Select") }) }),
1803
- /* @__PURE__ */ i(T, { value: "IMMEDIATELY", children: /* @__PURE__ */ i(h, { variant: "body2", children: c("Immediately") }) }),
1804
- /* @__PURE__ */ i(T, { value: "AFTER", children: /* @__PURE__ */ i(h, { variant: "body2", children: c("After") }) })
1894
+ /* @__PURE__ */ i(_, { value: "", children: /* @__PURE__ */ i(h, { variant: "body2", children: c("Select") }) }),
1895
+ /* @__PURE__ */ i(_, { value: "IMMEDIATELY", children: /* @__PURE__ */ i(h, { variant: "body2", children: c("Immediately") }) }),
1896
+ /* @__PURE__ */ i(_, { value: "AFTER", children: /* @__PURE__ */ i(h, { variant: "body2", children: c("After") }) })
1805
1897
  ]
1806
1898
  }
1807
1899
  )
@@ -1812,26 +1904,26 @@ const pt = ({
1812
1904
  {
1813
1905
  className: "error-helper",
1814
1906
  "data-testid": "custom-error-message",
1815
- children: (se = f == null ? void 0 : f.trigerWhen) == null ? void 0 : se.message
1907
+ children: (Ne = f == null ? void 0 : f.trigerWhen) == null ? void 0 : Ne.message
1816
1908
  }
1817
1909
  )
1818
1910
  ] })
1819
1911
  ]
1820
1912
  }
1821
1913
  ),
1822
- ye === "AFTER" && /* @__PURE__ */ a(Me, { children: [
1823
- /* @__PURE__ */ i(d, { item: !0, size: { xs: 12 }, children: /* @__PURE__ */ a(
1824
- N,
1914
+ Ae === "AFTER" && /* @__PURE__ */ l(De, { children: [
1915
+ /* @__PURE__ */ i(d, { item: !0, size: { xs: 12 }, children: /* @__PURE__ */ l(
1916
+ p,
1825
1917
  {
1826
1918
  variant: "outlined",
1827
1919
  className: " w-full",
1828
1920
  "data-testid": "othertypeeventconfigmodal-dayField",
1829
1921
  children: [
1830
1922
  /* @__PURE__ */ i(h, { variant: "body2", children: c("Day") }),
1831
- /* @__PURE__ */ i(C, { className: " w-full", children: /* @__PURE__ */ i(
1832
- M,
1923
+ /* @__PURE__ */ i(w, { className: " w-full", children: /* @__PURE__ */ i(
1924
+ P,
1833
1925
  {
1834
- control: v,
1926
+ control: b,
1835
1927
  id: "day",
1836
1928
  name: "day",
1837
1929
  errors: f,
@@ -1844,18 +1936,18 @@ const pt = ({
1844
1936
  ]
1845
1937
  }
1846
1938
  ) }),
1847
- /* @__PURE__ */ i(d, { item: !0, size: { xs: 12 }, children: /* @__PURE__ */ a(
1848
- N,
1939
+ /* @__PURE__ */ i(d, { item: !0, size: { xs: 12 }, children: /* @__PURE__ */ l(
1940
+ p,
1849
1941
  {
1850
1942
  variant: "outlined",
1851
1943
  className: " w-full",
1852
1944
  "data-testid": "othertypeeventconfigmodal-hourField",
1853
1945
  children: [
1854
1946
  /* @__PURE__ */ i(h, { variant: "body2", children: c("Hour") }),
1855
- /* @__PURE__ */ i(C, { className: " w-full", children: /* @__PURE__ */ i(
1856
- M,
1947
+ /* @__PURE__ */ i(w, { className: " w-full", children: /* @__PURE__ */ i(
1948
+ P,
1857
1949
  {
1858
- control: v,
1950
+ control: b,
1859
1951
  id: "hour",
1860
1952
  name: "hour",
1861
1953
  errors: f,
@@ -1868,18 +1960,18 @@ const pt = ({
1868
1960
  ]
1869
1961
  }
1870
1962
  ) }),
1871
- /* @__PURE__ */ i(d, { item: !0, size: { xs: 12 }, children: /* @__PURE__ */ a(
1872
- N,
1963
+ /* @__PURE__ */ i(d, { item: !0, size: { xs: 12 }, children: /* @__PURE__ */ l(
1964
+ p,
1873
1965
  {
1874
1966
  variant: "outlined",
1875
1967
  className: " w-full",
1876
1968
  "data-testid": "othertypeeventconfigmodal-minuteField",
1877
1969
  children: [
1878
1970
  /* @__PURE__ */ i(h, { variant: "body2", children: c("Minute") }),
1879
- /* @__PURE__ */ i(C, { className: " w-full", children: /* @__PURE__ */ i(
1880
- M,
1971
+ /* @__PURE__ */ i(w, { className: " w-full", children: /* @__PURE__ */ i(
1972
+ P,
1881
1973
  {
1882
- control: v,
1974
+ control: b,
1883
1975
  id: "minute",
1884
1976
  name: "minute",
1885
1977
  type: "number",
@@ -1896,8 +1988,8 @@ const pt = ({
1896
1988
  ] }) })
1897
1989
  ] })
1898
1990
  ] }),
1899
- /* @__PURE__ */ a(
1900
- We,
1991
+ /* @__PURE__ */ l(
1992
+ He,
1901
1993
  {
1902
1994
  direction: "row",
1903
1995
  className: "mr-5",
@@ -1907,20 +1999,20 @@ const pt = ({
1907
1999
  mb: 1,
1908
2000
  children: [
1909
2001
  /* @__PURE__ */ i(
1910
- ce,
2002
+ te,
1911
2003
  {
1912
2004
  variant: "contained",
1913
2005
  size: "small",
1914
2006
  color: "secondary",
1915
2007
  onClick: () => {
1916
- J(), Y();
2008
+ X(), Q();
1917
2009
  },
1918
2010
  "data-testid": "othertypeeventconfigmodal-cancel-button",
1919
2011
  children: /* @__PURE__ */ i(h, { variant: "body2", children: c("Cancel") })
1920
2012
  }
1921
2013
  ),
1922
2014
  /* @__PURE__ */ i(
1923
- ce,
2015
+ te,
1924
2016
  {
1925
2017
  size: "small",
1926
2018
  type: "submit",
@@ -1942,13 +2034,13 @@ const pt = ({
1942
2034
  }
1943
2035
  );
1944
2036
  };
1945
- pt.propTypes = {
1946
- open: H.any,
1947
- handleClose: H.any,
1948
- handleClick: H.any,
1949
- type: H.any
2037
+ Ft.propTypes = {
2038
+ open: G.any,
2039
+ handleClose: G.any,
2040
+ handleClick: G.any,
2041
+ type: G.any
1950
2042
  };
1951
2043
  export {
1952
- pt as default
2044
+ Ft as default
1953
2045
  };
1954
- //# sourceMappingURL=OtherTypeEventConfigModal-BeG1GrUi.js.map
2046
+ //# sourceMappingURL=OtherTypeEventConfigModal-CM6VkdmY.js.map