@argusoft/medplat-core 1.0.29 → 1.0.31

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 (217) hide show
  1. package/dist/AccessRights-DUgY6ewy.js +1031 -0
  2. package/dist/AccessRights-DUgY6ewy.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-v3TmGQee.js → AddFeatures-D1sU8RjY.js} +2 -2
  6. package/dist/{AddFeatures-v3TmGQee.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-c6ZKiN0i.js +8898 -0
  10. package/dist/AddMenuConfiguration-c6ZKiN0i.js.map +1 -0
  11. package/dist/AppModal-CCtrQ5Tr.js +394 -0
  12. package/dist/AppModal-CCtrQ5Tr.js.map +1 -0
  13. package/dist/BrandsPage-DMw2vT0u-BVhvhc6J.js +387 -0
  14. package/dist/BrandsPage-DMw2vT0u-BVhvhc6J.js.map +1 -0
  15. package/dist/CategoriesPage-D3ihx9Gi-CT58g0ry.js +398 -0
  16. package/dist/CategoriesPage-D3ihx9Gi-CT58g0ry.js.map +1 -0
  17. package/dist/{ChangePasswordModalCore-DutQAZOx.js → ChangePasswordModalCore-lQ9GamH1.js} +1605 -1610
  18. package/dist/ChangePasswordModalCore-lQ9GamH1.js.map +1 -0
  19. package/dist/ConditionConfig-BQBmBHaM.js +408 -0
  20. package/dist/ConditionConfig-BQBmBHaM.js.map +1 -0
  21. package/dist/DashboardPage-asr2XDRu-uOOlX9Vq.js +435 -0
  22. package/dist/DashboardPage-asr2XDRu-uOOlX9Vq.js.map +1 -0
  23. package/dist/EventConfig-BY2cgGyx.js +27 -0
  24. package/dist/EventConfig-BY2cgGyx.js.map +1 -0
  25. package/dist/EventConfigurations-CUPEN5BV.js +544 -0
  26. package/dist/EventConfigurations-CUPEN5BV.js.map +1 -0
  27. package/dist/EventConfigurations.css +1 -1
  28. package/dist/EventsExceptionModal-BX-ArkBE.js +188 -0
  29. package/dist/EventsExceptionModal-BX-ArkBE.js.map +1 -0
  30. package/dist/EventsUi-D6O9S7BK.js +258 -0
  31. package/dist/EventsUi-D6O9S7BK.js.map +1 -0
  32. package/dist/FacilityPicker-DYl_PDyt-Cbwo2tAY.js +79 -0
  33. package/dist/FacilityPicker-DYl_PDyt-Cbwo2tAY.js.map +1 -0
  34. package/dist/FeatureMenu-CHsBbw3W.js +525 -0
  35. package/dist/FeatureMenu-CHsBbw3W.js.map +1 -0
  36. package/dist/{FhirServerList-Dkq7Kbes.js → FhirServerList-iXBPkRVF.js} +22 -22
  37. package/dist/{FhirServerList-Dkq7Kbes.js.map → FhirServerList-iXBPkRVF.js.map} +1 -1
  38. package/dist/{FhirServerWizard-Db6Hm4bQ.js → FhirServerWizard-DZI8Olku.js} +15 -15
  39. package/dist/{FhirServerWizard-Db6Hm4bQ.js.map → FhirServerWizard-DZI8Olku.js.map} +1 -1
  40. package/dist/FlywayQuery-CQygj51V.js +179 -0
  41. package/dist/FlywayQuery-CQygj51V.js.map +1 -0
  42. package/dist/GrantPermissionModal-D7iNZd0M.js +239 -0
  43. package/dist/GrantPermissionModal-D7iNZd0M.js.map +1 -0
  44. package/dist/ImmunizationConfigurationBase-aUtx0JEe.js +8019 -0
  45. package/dist/ImmunizationConfigurationBase-aUtx0JEe.js.map +1 -0
  46. package/dist/ImmunizationConfigurationBase.css +1 -1
  47. package/dist/ImmunizationConfigurationsList-TZcLDEci.js +369 -0
  48. package/dist/ImmunizationConfigurationsList-TZcLDEci.js.map +1 -0
  49. package/dist/InventoryPage-DOotGZrj-CoPjOJEI.js +665 -0
  50. package/dist/InventoryPage-DOotGZrj-CoPjOJEI.js.map +1 -0
  51. package/dist/LanguagesModal-B3NTebYT.js +352 -0
  52. package/dist/LanguagesModal-B3NTebYT.js.map +1 -0
  53. package/dist/ManageDynamicFeature-BU0I45dd.js +4475 -0
  54. package/dist/ManageDynamicFeature-BU0I45dd.js.map +1 -0
  55. package/dist/ManageEventConfiguration-DqW3krT6.js +1216 -0
  56. package/dist/ManageEventConfiguration-DqW3krT6.js.map +1 -0
  57. package/dist/ManageEventConfiguration.css +1 -1
  58. package/dist/{ManageNotification-CfhHlfxA.js → ManageNotification-C5MhV77Q.js} +2 -2
  59. package/dist/{ManageNotification-CfhHlfxA.js.map → ManageNotification-C5MhV77Q.js.map} +1 -1
  60. package/dist/{ManageRole-4Y2PP4dQ.js → ManageRole-CNZBRKGU.js} +2 -2
  61. package/dist/{ManageRole-4Y2PP4dQ.js.map → ManageRole-CNZBRKGU.js.map} +1 -1
  62. package/dist/ManageTranslation-vRiptUAP.js +833 -0
  63. package/dist/ManageTranslation-vRiptUAP.js.map +1 -0
  64. package/dist/ManageTranslation.css +1 -1
  65. package/dist/{ManageUser-DDzyd9jm.js → ManageUser-DZltBina.js} +224 -224
  66. package/dist/{ManageUser-DDzyd9jm.js.map → ManageUser-DZltBina.js.map} +1 -1
  67. package/dist/MemberProfileCard-D5CgkTdJ-D2NgDJl3.js +272 -0
  68. package/dist/MemberProfileCard-D5CgkTdJ-D2NgDJl3.js.map +1 -0
  69. package/dist/MobileAnalytics-BLOionG_.js +17301 -0
  70. package/dist/MobileAnalytics-BLOionG_.js.map +1 -0
  71. package/dist/MobileMenuManagement-68Wijb0X.js +220 -0
  72. package/dist/MobileMenuManagement-68Wijb0X.js.map +1 -0
  73. package/dist/MobileTypeEventConfigModal-CMcj7Ozp.js +752 -0
  74. package/dist/MobileTypeEventConfigModal-CMcj7Ozp.js.map +1 -0
  75. package/dist/NotificationFlywayQuery-BAHVjf6N.js +247 -0
  76. package/dist/NotificationFlywayQuery-BAHVjf6N.js.map +1 -0
  77. package/dist/{NotificationList-BMFpNUJG.js → NotificationList-DEyRZEuM.js} +2 -2
  78. package/dist/{NotificationList-BMFpNUJG.js.map → NotificationList-DEyRZEuM.js.map} +1 -1
  79. package/dist/OtherTypeEventConfigModal-stNmuSv_.js +1812 -0
  80. package/dist/OtherTypeEventConfigModal-stNmuSv_.js.map +1 -0
  81. package/dist/PaymentCreatePage-DfvSZ-kB-CckogYoe.js +482 -0
  82. package/dist/PaymentCreatePage-DfvSZ-kB-CckogYoe.js.map +1 -0
  83. package/dist/PaymentsPage-DMNjYWAJ-ChO9IXmk.js +157 -0
  84. package/dist/PaymentsPage-DMNjYWAJ-ChO9IXmk.js.map +1 -0
  85. package/dist/PermissionsModal-CCYkcKlC.js +151 -0
  86. package/dist/PermissionsModal-CCYkcKlC.js.map +1 -0
  87. package/dist/PickupBatchLinesEditor-CE2RuyJT-BPceiJr8.js +119 -0
  88. package/dist/PickupBatchLinesEditor-CE2RuyJT-BPceiJr8.js.map +1 -0
  89. package/dist/PickupCreatePage-B4O_-vE5-DoOo9nJO.js +783 -0
  90. package/dist/PickupCreatePage-B4O_-vE5-DoOo9nJO.js.map +1 -0
  91. package/dist/PickupsPage-D7zyioJB-bHKnARYw.js +818 -0
  92. package/dist/PickupsPage-D7zyioJB-bHKnARYw.js.map +1 -0
  93. package/dist/PmGuard-BZE-y4In-D_pUm5MP.js +599 -0
  94. package/dist/PmGuard-BZE-y4In-D_pUm5MP.js.map +1 -0
  95. package/dist/ProductEditPage-BVlVUCtD-BR-tJ5Wb.js +1305 -0
  96. package/dist/ProductEditPage-BVlVUCtD-BR-tJ5Wb.js.map +1 -0
  97. package/dist/ProductsPage-DvNHIeZt-BoOOJJtk.js +253 -0
  98. package/dist/ProductsPage-DvNHIeZt-BoOOJJtk.js.map +1 -0
  99. package/dist/PurchaseCreatePage-Cq_i9snz-DRtHHFWw.js +675 -0
  100. package/dist/PurchaseCreatePage-Cq_i9snz-DRtHHFWw.js.map +1 -0
  101. package/dist/PurchaseRequestDetailPage-CA9KFOfE-CtjG4Gx6.js +1577 -0
  102. package/dist/PurchaseRequestDetailPage-CA9KFOfE-CtjG4Gx6.js.map +1 -0
  103. package/dist/PurchaseRequestsPage-DS9i4o0--TpoxA5Kd.js +279 -0
  104. package/dist/PurchaseRequestsPage-DS9i4o0--TpoxA5Kd.js.map +1 -0
  105. package/dist/PurchasesPage-DgL5T6BY-DePUuE9l.js +293 -0
  106. package/dist/PurchasesPage-DgL5T6BY-DePUuE9l.js.map +1 -0
  107. package/dist/QueryBuilder-CXaBe6sr.js +478 -0
  108. package/dist/QueryBuilder-CXaBe6sr.js.map +1 -0
  109. package/dist/{RoleManagement-DEiBNfT8.js → RoleManagement-s8iNx2Mu.js} +145 -155
  110. package/dist/RoleManagement-s8iNx2Mu.js.map +1 -0
  111. package/dist/Roles-BIyiic67.js +14 -0
  112. package/dist/Roles-BIyiic67.js.map +1 -0
  113. package/dist/SaleCreatePage-CZnIOydv-DKBw-qp7.js +544 -0
  114. package/dist/SaleCreatePage-CZnIOydv-DKBw-qp7.js.map +1 -0
  115. package/dist/SalesPage-DPIRrC_O-M8rqnK7z.js +315 -0
  116. package/dist/SalesPage-DPIRrC_O-M8rqnK7z.js.map +1 -0
  117. package/dist/SettingsPage-BC_R6Z-Q-CKNt9zRu.js +676 -0
  118. package/dist/SettingsPage-BC_R6Z-Q-CKNt9zRu.js.map +1 -0
  119. package/dist/ShowFlywayQuery-D10Olk5Z.js +154 -0
  120. package/dist/ShowFlywayQuery-D10Olk5Z.js.map +1 -0
  121. package/dist/{ShowFlywayQuery-DVRCd384.js → ShowFlywayQuery-DIOUdYfG.js} +170 -123
  122. package/dist/ShowFlywayQuery-DIOUdYfG.js.map +1 -0
  123. package/dist/ShowQueryHistory-DRBKYDKk.js +313 -0
  124. package/dist/ShowQueryHistory-DRBKYDKk.js.map +1 -0
  125. package/dist/StorageUnitsPage-BDRkdCjW-UF64rf7q.js +728 -0
  126. package/dist/StorageUnitsPage-BDRkdCjW-UF64rf7q.js.map +1 -0
  127. package/dist/SubMenu-BdMTYtC1.js +319 -0
  128. package/dist/SubMenu-BdMTYtC1.js.map +1 -0
  129. package/dist/TransactionsPage-CqWTMNU8-Df6eGFDW.js +746 -0
  130. package/dist/TransactionsPage-CqWTMNU8-Df6eGFDW.js.map +1 -0
  131. package/dist/TransferCreatePage-DF7FZaTJ-CL79V3aR.js +315 -0
  132. package/dist/TransferCreatePage-DF7FZaTJ-CL79V3aR.js.map +1 -0
  133. package/dist/TransfersPage-CGrRFaBF-cTwBUv0o.js +476 -0
  134. package/dist/TransfersPage-CGrRFaBF-cTwBUv0o.js.map +1 -0
  135. package/dist/TypeConfiguration-JbRCN6GR.js +114 -0
  136. package/dist/TypeConfiguration-JbRCN6GR.js.map +1 -0
  137. package/dist/{UserList-Bc8gYxRL.js → UserList-L41Xw0Q6.js} +253 -236
  138. package/dist/{UserList-Bc8gYxRL.js.map → UserList-L41Xw0Q6.js.map} +1 -1
  139. package/dist/Users-CsJ08Kjm.js.map +1 -1
  140. package/dist/VialsPage-rvvXjgZG-Oqo1v6kQ.js +321 -0
  141. package/dist/VialsPage-rvvXjgZG-Oqo1v6kQ.js.map +1 -0
  142. package/dist/constants-DpXnLsAB-D6lN5cjK.js +445 -0
  143. package/dist/constants-DpXnLsAB-D6lN5cjK.js.map +1 -0
  144. package/dist/{dashboardLayoutUtils-D1xCAxp3.js → dashboardLayoutUtils-CJivzaU1.js} +95 -92
  145. package/dist/dashboardLayoutUtils-CJivzaU1.js.map +1 -0
  146. package/dist/format-UOyOu75i-D0GyylyQ.js +63 -0
  147. package/dist/format-UOyOu75i-D0GyylyQ.js.map +1 -0
  148. package/dist/index.css +1 -1
  149. package/dist/index.js +1 -1
  150. package/dist/index.lib-ETRQOzvE.js +894 -0
  151. package/dist/index.lib-ETRQOzvE.js.map +1 -0
  152. package/dist/listValueStore-BFQtDYIR-Bj0yX145.js +36 -0
  153. package/dist/listValueStore-BFQtDYIR-Bj0yX145.js.map +1 -0
  154. package/dist/useFieldErrors-hDG8ox_x-DbSAzrGo.js +28 -0
  155. package/dist/useFieldErrors-hDG8ox_x-DbSAzrGo.js.map +1 -0
  156. package/dist/validation-BzlHnL-r-CCJm2utQ.js +125 -0
  157. package/dist/validation-BzlHnL-r-CCJm2utQ.js.map +1 -0
  158. package/package.json +4 -3
  159. package/dist/AccessRights-Zm8Obm4N.js +0 -1284
  160. package/dist/AccessRights-Zm8Obm4N.js.map +0 -1
  161. package/dist/AddEditQueryBuilder-Brdnm6rQ.js +0 -313
  162. package/dist/AddEditQueryBuilder-Brdnm6rQ.js.map +0 -1
  163. package/dist/AddLabelModal-DFllBVcd.js +0 -734
  164. package/dist/AddLabelModal-DFllBVcd.js.map +0 -1
  165. package/dist/AddMenuConfiguration-Ce91MhnU.js +0 -8547
  166. package/dist/AddMenuConfiguration-Ce91MhnU.js.map +0 -1
  167. package/dist/AppModal-CtG2GjD_.js +0 -428
  168. package/dist/AppModal-CtG2GjD_.js.map +0 -1
  169. package/dist/ChangePasswordModalCore-DutQAZOx.js.map +0 -1
  170. package/dist/ConditionConfig-B4Ffpgj3.js +0 -395
  171. package/dist/ConditionConfig-B4Ffpgj3.js.map +0 -1
  172. package/dist/ConditionConfig.css +0 -1
  173. package/dist/EventConfigurations-BJcURufo.js +0 -449
  174. package/dist/EventConfigurations-BJcURufo.js.map +0 -1
  175. package/dist/EventsExceptionModal-BlZtBQoR.js +0 -200
  176. package/dist/EventsExceptionModal-BlZtBQoR.js.map +0 -1
  177. package/dist/EventsSkeleton-DK6JDKAK.js +0 -83
  178. package/dist/EventsSkeleton-DK6JDKAK.js.map +0 -1
  179. package/dist/FeatureMenu-C3503UIX.js +0 -265
  180. package/dist/FeatureMenu-C3503UIX.js.map +0 -1
  181. package/dist/FlywayQuery-Cx2sly6g.js +0 -169
  182. package/dist/FlywayQuery-Cx2sly6g.js.map +0 -1
  183. package/dist/ImmunizationConfigurationBase-DLQVSNnt.js +0 -5895
  184. package/dist/ImmunizationConfigurationBase-DLQVSNnt.js.map +0 -1
  185. package/dist/ImmunizationConfigurationsList-DdSZicTP.js +0 -344
  186. package/dist/ImmunizationConfigurationsList-DdSZicTP.js.map +0 -1
  187. package/dist/LanguagesModal-D6VfaGrl.js +0 -394
  188. package/dist/LanguagesModal-D6VfaGrl.js.map +0 -1
  189. package/dist/ManageDynamicFeature-dt096fyj.js +0 -4189
  190. package/dist/ManageDynamicFeature-dt096fyj.js.map +0 -1
  191. package/dist/ManageEventConfiguration-BpSJszSX.js +0 -1017
  192. package/dist/ManageEventConfiguration-BpSJszSX.js.map +0 -1
  193. package/dist/ManageTranslation-B4C9-lWD.js +0 -625
  194. package/dist/ManageTranslation-B4C9-lWD.js.map +0 -1
  195. package/dist/MobileMenuManagement-Cf8IZlla.js +0 -108
  196. package/dist/MobileMenuManagement-Cf8IZlla.js.map +0 -1
  197. package/dist/MobileTypeEventConfigModal-DUkUYACe.js +0 -783
  198. package/dist/MobileTypeEventConfigModal-DUkUYACe.js.map +0 -1
  199. package/dist/NotificationFlywayQuery-BY8Zzml_.js +0 -244
  200. package/dist/NotificationFlywayQuery-BY8Zzml_.js.map +0 -1
  201. package/dist/OtherTypeEventConfigModal-CYBfr2XE.js +0 -2046
  202. package/dist/OtherTypeEventConfigModal-CYBfr2XE.js.map +0 -1
  203. package/dist/QueryBuilder-z7eqfd7D.js +0 -383
  204. package/dist/QueryBuilder-z7eqfd7D.js.map +0 -1
  205. package/dist/RoleManagement-DEiBNfT8.js.map +0 -1
  206. package/dist/ShowFlywayQuery-DVRCd384.js.map +0 -1
  207. package/dist/ShowFlywayQuery-tj42YQAS.js +0 -130
  208. package/dist/ShowFlywayQuery-tj42YQAS.js.map +0 -1
  209. package/dist/ShowQueryHistory-BDN0tzHg.js +0 -190
  210. package/dist/ShowQueryHistory-BDN0tzHg.js.map +0 -1
  211. package/dist/SubMenu-B072oEGb.js +0 -191
  212. package/dist/SubMenu-B072oEGb.js.map +0 -1
  213. package/dist/TypeConfiguration-C3xoP2Nb.js +0 -117
  214. package/dist/TypeConfiguration-C3xoP2Nb.js.map +0 -1
  215. package/dist/dashboardLayoutUtils-D1xCAxp3.js.map +0 -1
  216. package/dist/index.lib-C3fwoM3y.js +0 -820
  217. package/dist/index.lib-C3fwoM3y.js.map +0 -1
@@ -1,2046 +0,0 @@
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
- import d from "@mui/material/Grid2";
7
- import * as F from "yup";
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 { f as Ge } from "./EventsSkeleton-DK6JDKAK.js";
13
- import { showToast as re } from "@/common/toaster/toaster";
14
- import Ze from "@/hooks/useTrackEvent";
15
- import "./ManageEventConfiguration-BpSJszSX.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 = {
22
- resolve: null,
23
- promise: null
24
- };
25
- return a.promise = new Promise((r) => {
26
- a.resolve = r;
27
- }), a;
28
- }
29
- function lt(a) {
30
- let r = null;
31
- return (...o) => (r || (r = {
32
- current: a(...o)
33
- }), r.current);
34
- }
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];
39
- }
40
- function Ce(a) {
41
- return !!a && /^\d+\.\d+\.\d+/.test(a);
42
- }
43
- function st(a) {
44
- if (!Ce(a))
45
- throw new Error(`Invalid semantic version: ${a || "<blank>"}.`);
46
- const [r, o, e] = a.split(".");
47
- return {
48
- major: Number.parseInt(r, 10),
49
- minor: Number.parseInt(o, 10),
50
- patch: Number.parseInt(e, 10)
51
- };
52
- }
53
- function Ie(a) {
54
- return a ? ["nightly", "alpha", "internal", "nightly-", "staging"].some((r) => a.includes(r)) : !1;
55
- }
56
- function ct(a) {
57
- return Ce(a) || Ie(a);
58
- }
59
- function dt(a, r) {
60
- const o = a.extraPlugins || [];
61
- return {
62
- ...a,
63
- extraPlugins: [
64
- ...o,
65
- ...r.filter((e) => !o.includes(e))
66
- ]
67
- };
68
- }
69
- function ut(a) {
70
- if (Ie(a))
71
- return 3;
72
- const { major: r } = st(a);
73
- switch (!0) {
74
- case r >= 44:
75
- return 3;
76
- case r >= 38:
77
- return 2;
78
- default:
79
- return 1;
80
- }
81
- }
82
- function mt() {
83
- const { CKEDITOR_VERSION: a, CKEDITOR: r } = window;
84
- return ct(a) ? {
85
- source: r ? "cdn" : "npm",
86
- version: a
87
- } : null;
88
- }
89
- function ht() {
90
- const a = mt();
91
- return a ? ut(a.version) : null;
92
- }
93
- function Ee(a, r) {
94
- switch (r || (r = ht() || void 0), r) {
95
- case 1:
96
- case 2:
97
- return a === void 0;
98
- case 3:
99
- return a === "GPL";
100
- default:
101
- return !1;
102
- }
103
- }
104
- function ft(a, r) {
105
- return function(e) {
106
- Ee(e.config.get("licenseKey")) || e.on("collectUsageData", (u, { setUsageData: C }) => {
107
- C(`integration.${a}`, r);
108
- });
109
- };
110
- }
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);
112
- /**
113
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
114
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
115
- */
116
- const xe = class Te {
117
- constructor(r, o) {
118
- S(this, "_lifecycle"), S(this, "_element"), S(this, "_releaseLock", null), S(this, "_value", null), S(this, "_afterMountCallbacks", []), S(this, "_state", {
119
- destroyedBeforeInitialization: !1,
120
- mountingInProgress: null
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,
125
- // Mount result might be overridden by watchdog during restart so use instance variable.
126
- mountResult: this.value
127
- })).catch((I) => {
128
- console.error("Semaphore unmounting error:", I);
129
- }).then(e.resolve).then(() => {
130
- this._value = null;
131
- }) : (u.destroyedBeforeInitialization = !0, e.resolve());
132
- })), this._element = r, this._lifecycle = o, this._lock();
133
- }
134
- /**
135
- * Getter for {@link #_value}.
136
- */
137
- get value() {
138
- return this._value;
139
- }
140
- /**
141
- * Occasionally, the Watchdog restarts the editor instance, resulting in a new instance being assigned to the semaphore.
142
- * In terms of race conditions, it's generally safer to simply override the semaphore value rather than recreating it
143
- * with a different one.
144
- */
145
- unsafeSetValue(r) {
146
- this._value = r, this._afterMountCallbacks.forEach((o) => o(r)), this._afterMountCallbacks = [];
147
- }
148
- /**
149
- * This registers a callback that will be triggered after the editor has been successfully mounted.
150
- *
151
- * * If the editor is already mounted, the callback will be executed immediately.
152
- * * If the editor is in the process of mounting, the callback will be executed upon successful mounting.
153
- * * If the editor is never mounted, the passed callback will not be executed.
154
- * * If an exception is thrown within the callback, it will be re-thrown in the semaphore.
155
- */
156
- runAfterMount(r) {
157
- const { _value: o, _afterMountCallbacks: e } = this;
158
- o ? r(o) : e.push(r);
159
- }
160
- /**
161
- * This method is used to inform other components that the {@link #_element} will be used by the editor,
162
- * which is initialized by the {@link #_lifecycle} methods.
163
- *
164
- * * If an editor is already present on the provided element, the initialization of the current one
165
- * will be postponed until the previous one is destroyed.
166
- *
167
- * * If the element is empty and does not have an editor attached to it, the currently locked editor will
168
- * be mounted immediately.
169
- *
170
- * After the successful initialization of the editor and the assignment of the {@link #_value} member,
171
- * the `onReady` lifecycle method is called.
172
- *
173
- * *Important note:*
174
- *
175
- * It’s really important to keep this method *sync*. If we make this method *async*, it won’t work well because
176
- * it will cause problems when we’re trying to set up the {@link LifeCycleEditorElementSemaphore#_semaphores} map entries.
177
- */
178
- _lock() {
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({
183
- element: e,
184
- mountResult: x
185
- });
186
- }).then(() => N.promise).catch((x) => {
187
- console.error("Semaphore mounting error:", x);
188
- }).then(() => {
189
- r.get(e) === I && r.delete(e);
190
- });
191
- r.set(e, I);
192
- }
193
- };
194
- S(xe, "_semaphores", /* @__PURE__ */ new Map());
195
- let pt = xe;
196
- /**
197
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
198
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
199
- */
200
- const vt = "$__CKEditorReactContextMetadata";
201
- function bt(a, r) {
202
- return {
203
- ...r,
204
- [vt]: a
205
- };
206
- }
207
- /**
208
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
209
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
210
- */
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";
212
- /**
213
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
214
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
215
- */
216
- const Et = ft(
217
- "react",
218
- {
219
- version: "9.5.0",
220
- frameworkVersion: V.version
221
- }
222
- );
223
- /**
224
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
225
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
226
- */
227
- function xt(a) {
228
- return Ee(a.licenseKey) ? a : dt(a, [
229
- /**
230
- * This part of the code is not executed in open-source implementations using a GPL key.
231
- * It only runs when a specific license key is provided. If you are uncertain whether
232
- * this applies to your installation, please contact our support team.
233
- */
234
- Et
235
- ]);
236
- }
237
- /**
238
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
239
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
240
- */
241
- const le = "Lock from React integration (@ckeditor/ckeditor5-react)";
242
- class ye extends V.Component {
243
- constructor(r) {
244
- super(r), S(this, "domContainer", V.createRef()), S(this, "editorSemaphore", null), this._checkVersion();
245
- }
246
- /**
247
- * Checks if the CKEditor version used in the application is compatible with the component.
248
- */
249
- _checkVersion() {
250
- const { CKEDITOR_VERSION: r } = window;
251
- if (!r)
252
- return console.warn('Cannot find the "CKEDITOR_VERSION" in the "window" scope.');
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.");
255
- }
256
- get _semaphoreValue() {
257
- const { editorSemaphore: r } = this;
258
- return r ? r.value : null;
259
- }
260
- /**
261
- * An watchdog instance.
262
- */
263
- get watchdog() {
264
- const { _semaphoreValue: r } = this;
265
- return r ? r.watchdog : null;
266
- }
267
- /**
268
- * An editor instance.
269
- */
270
- get editor() {
271
- const { _semaphoreValue: r } = this;
272
- return r ? r.instance : null;
273
- }
274
- /**
275
- * The CKEditor component should not be updated by React itself.
276
- * However, if the component identifier changes, the whole structure should be created once again.
277
- */
278
- shouldComponentUpdate(r) {
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);
282
- }), "disabled" in r && e.runAfterMount(({ instance: u }) => {
283
- r.disabled ? u.enableReadOnlyMode(le) : u.disableReadOnlyMode(le);
284
- })), !1);
285
- }
286
- /**
287
- * Initialize the editor when the component is mounted.
288
- */
289
- componentDidMount() {
290
- be(this.context) || this._initLifeCycleSemaphore();
291
- }
292
- /**
293
- * Re-render the entire component once again. The old editor will be destroyed and the new one will be created.
294
- */
295
- componentDidUpdate() {
296
- be(this.context) || this._initLifeCycleSemaphore();
297
- }
298
- /**
299
- * Destroy the editor before unmounting the component.
300
- */
301
- componentWillUnmount() {
302
- this._unlockLifeCycleSemaphore();
303
- }
304
- /**
305
- * Async destroy attached editor and unlock element semaphore.
306
- */
307
- _unlockLifeCycleSemaphore() {
308
- this.editorSemaphore && (this.editorSemaphore.release(), this.editorSemaphore = null);
309
- }
310
- /**
311
- * Unlocks previous editor semaphore and creates new one..
312
- */
313
- _initLifeCycleSemaphore() {
314
- this._unlockLifeCycleSemaphore(), this.editorSemaphore = new pt(this.domContainer.current, {
315
- mount: async () => this._initializeEditor(),
316
- afterMount: ({ mountResult: r }) => {
317
- const { onReady: o } = this.props;
318
- o && this.domContainer.current !== null && o(r.instance);
319
- },
320
- unmount: async ({ element: r, mountResult: o }) => {
321
- const { onAfterDestroy: e } = this.props;
322
- try {
323
- await this._destroyEditor(o), r.innerHTML = "";
324
- } finally {
325
- e && e(o.instance);
326
- }
327
- }
328
- });
329
- }
330
- /**
331
- * Render a <div> element which will be replaced by CKEditor.
332
- */
333
- render() {
334
- return /* @__PURE__ */ V.createElement("div", { ref: this.domContainer });
335
- }
336
- /**
337
- * Initializes the editor by creating a proper watchdog and initializing it with the editor's configuration.
338
- */
339
- async _initializeEditor() {
340
- if (this.props.disableWatchdog)
341
- return {
342
- instance: await this._createEditor(this.domContainer.current, this._getConfig()),
343
- watchdog: null
344
- };
345
- const r = It(this.context) ? new Tt(this.context.watchdog) : new this.props.editor.EditorWatchdog(this.props.editor, this.props.watchdogConfig), o = {
346
- current: 0
347
- };
348
- return r.setCreator(async (e, u) => {
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,
355
- watchdog: r
356
- }), setTimeout(() => {
357
- this.props.onReady && this.props.onReady(r.editor);
358
- })), o.current++, x;
359
- }), r.on("error", (e, { error: u, causesRestart: C }) => {
360
- (this.props.onError || console.error)(u, { phase: "runtime", willEditorRestart: C });
361
- }), await r.create(this.domContainer.current, this._getConfig()).catch((e) => {
362
- (this.props.onError || console.error)(e, { phase: "initialization", willEditorRestart: !1 });
363
- }), {
364
- watchdog: r,
365
- instance: r.editor
366
- };
367
- }
368
- /**
369
- * Creates an editor from the element and configuration.
370
- *
371
- * @param element The source element.
372
- * @param config CKEditor 5 editor configuration.
373
- */
374
- _createEditor(r, o) {
375
- const { contextItemMetadata: e } = this.props;
376
- return e && (o = bt(e, o)), this.props.editor.create(
377
- r,
378
- xt(o)
379
- ).then((u) => {
380
- if ("disabled" in this.props) {
381
- /* istanbul ignore else -- @preserve */
382
- this.props.disabled && u.enableReadOnlyMode(le);
383
- }
384
- const C = u.model.document, N = u.editing.view.document;
385
- return C.on("change:data", (I) => {
386
- /* istanbul ignore else -- @preserve */
387
- this.props.onChange && this.props.onChange(I, u);
388
- }), N.on("focus", (I) => {
389
- /* istanbul ignore else -- @preserve */
390
- this.props.onFocus && this.props.onFocus(I, u);
391
- }), N.on("blur", (I) => {
392
- /* istanbul ignore else -- @preserve */
393
- this.props.onBlur && this.props.onBlur(I, u);
394
- }), u;
395
- });
396
- }
397
- /**
398
- * Destroys the editor by destroying the watchdog.
399
- */
400
- async _destroyEditor(r) {
401
- const { watchdog: o, instance: e } = r;
402
- return new Promise((u, C) => {
403
- /* istanbul ignore next -- @preserve */
404
- setTimeout(async () => {
405
- try {
406
- if (o)
407
- return await o.destroy(), u();
408
- if (e)
409
- return await e.destroy(), u();
410
- u();
411
- } catch (N) {
412
- console.error(N), C(N);
413
- }
414
- });
415
- });
416
- }
417
- /**
418
- * Returns true when the editor should be updated.
419
- *
420
- * @param prevProps Previous react's properties.
421
- * @param nextProps React's properties.
422
- * @param editor Current editor instance.
423
- */
424
- _shouldUpdateEditorData(r, o, e) {
425
- return !(r.data === o.data || e.data.get() === o.data);
426
- }
427
- /**
428
- * Returns the editor configuration.
429
- */
430
- _getConfig() {
431
- const r = this.props.config || {};
432
- return this.props.data && r.initialData && console.warn(
433
- "Editor data should be provided either using `config.initialData` or `content` property. The config value takes precedence over `content` property and will be used when both are specified."
434
- ), {
435
- ...r,
436
- initialData: r.initialData || this.props.data || ""
437
- };
438
- }
439
- }
440
- S(ye, "contextType", wt);
441
- class Tt {
442
- /**
443
- * @param contextWatchdog The context watchdog instance that will be wrapped into editor watchdog API.
444
- */
445
- constructor(r) {
446
- S(this, "_contextWatchdog"), S(this, "_id"), S(this, "_creator"), this._contextWatchdog = r, this._id = ot();
447
- }
448
- /**
449
- * @param creator A watchdog's editor creator function.
450
- */
451
- setCreator(r) {
452
- this._creator = r;
453
- }
454
- /**
455
- * Adds an editor configuration to the context watchdog registry. Creates an instance of it.
456
- *
457
- * @param sourceElementOrData A source element or data for the new editor.
458
- * @param config CKEditor 5 editor config.
459
- */
460
- create(r, o) {
461
- return this._contextWatchdog.add({
462
- sourceElementOrData: r,
463
- config: o,
464
- creator: this._creator,
465
- id: this._id,
466
- type: "editor"
467
- });
468
- }
469
- /**
470
- * Creates a listener that is attached to context watchdog's item and run when the context watchdog fires.
471
- * Currently works only for the `error` event.
472
- */
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 });
476
- });
477
- }
478
- destroy() {
479
- return this._contextWatchdog.state === "ready" ? this._contextWatchdog.remove(this._id) : Promise.resolve();
480
- }
481
- /**
482
- * An editor instance.
483
- */
484
- get editor() {
485
- return this._contextWatchdog.getItem(this._id);
486
- }
487
- }
488
- /**
489
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
490
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
491
- */
492
- function Se(...a) {
493
- return (r) => {
494
- a.forEach((o) => {
495
- typeof o == "function" ? o(r) : o != null && (o.current = r);
496
- });
497
- };
498
- }
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 }) => {
504
- if (!u.current)
505
- return;
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();
509
- }), () => {
510
- if (N && N.state !== "destroyed" && u.current) {
511
- const I = N.model.document.getRoot(o);
512
- /* istanbul ignore else -- @preserve */
513
- I && N.detachEditable(I);
514
- }
515
- };
516
- }, [r.revision]), /* @__PURE__ */ V.createElement(
517
- "div",
518
- {
519
- key: r.revision,
520
- id: a,
521
- ref: Se(e, u)
522
- }
523
- );
524
- }));
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)
531
- return;
532
- const u = a.ui.view.toolbar.element;
533
- return e.appendChild(u), () => {
534
- e.contains(u) && e.removeChild(u);
535
- };
536
- }, [a && a.id]), /* @__PURE__ */ V.createElement("div", { ref: Se(o, r) });
537
- });
538
- yt.displayName = "EditorToolbarWrapper";
539
- const St = 5 * 1024 * 1024, Ft = ({
540
- open: a,
541
- handleClose: r,
542
- handleClick: o,
543
- type: e
544
- }) => {
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({
547
- excetionTypes: F.string().test(
548
- "is-required",
549
- "Execution type is required",
550
- function(t) {
551
- return (e == null ? void 0 : e.type) === "EXCEPTION" ? !!t : !0;
552
- }
553
- ),
554
- mobileNumberFieldName: F.string().test(
555
- "is-required",
556
- "Enter Sms contact number field name",
557
- function(t) {
558
- return (e == null ? void 0 : e.type) === "SMS" ? !!t : !0;
559
- }
560
- ),
561
- smsTypeField: F.string().test(
562
- "is-required",
563
- "Enter Sms Type Field",
564
- function(t) {
565
- return (e == null ? void 0 : e.type) === "SMS" ? !!t : !0;
566
- }
567
- ),
568
- trigerWhen: F.string().test(
569
- "is-required",
570
- "trigerWhen is required",
571
- function(t) {
572
- return (e == null ? void 0 : e.type) != "EXCEPTION" && (e == null ? void 0 : e.type) != "SYSTEM_FUNCTION" ? !!t : !0;
573
- }
574
- ),
575
- baseDateFieldName: F.string().test(
576
- "is-required",
577
- "Enter Email Id field name",
578
- function(t) {
579
- return (e == null ? void 0 : e.type) === "EMAIL" ? !!t : !0;
580
- }
581
- ),
582
- emailSubject: F.string().test(
583
- "is-required",
584
- "Enter email subject",
585
- function(t) {
586
- return (e == null ? void 0 : e.type) === "EMAIL" ? !!t : !0;
587
- }
588
- ),
589
- notificationTypeId: F.string().test(
590
- "is-required",
591
- "Select type",
592
- function(t) {
593
- return (e == null ? void 0 : e.type) === "PUSH_NOTIFICATION" ? !!t : !0;
594
- }
595
- ),
596
- userFieldName: F.string().test(
597
- "is-required",
598
- "Enter User Id field name",
599
- function(t) {
600
- return (e == null ? void 0 : e.type) === "PUSH_NOTIFICATION" ? !!t : !0;
601
- }
602
- ),
603
- heading: F.string().test(
604
- "is-required",
605
- "Enter heading",
606
- function(t) {
607
- return (e == null ? void 0 : e.type) === "PUSH_NOTIFICATION" && ee ? !!t : !0;
608
- }
609
- ),
610
- template: F.string().test(
611
- "is-required",
612
- "Enter Template",
613
- function(t) {
614
- return (e == null ? void 0 : e.type) === "PUSH_NOTIFICATION" && ee ? !!t : !0;
615
- }
616
- )
617
- }), {
618
- control: b,
619
- handleSubmit: Me,
620
- reset: Q,
621
- setValue: v,
622
- unregister: de,
623
- getValues: ue,
624
- watch: R,
625
- formState: { errors: f }
626
- } = je({
627
- defaultValues: {},
628
- resolver: Ye(ze),
629
- mode: "onChange"
630
- });
631
- oe(() => {
632
- var t;
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]);
639
- });
640
- } else if (n === "pushNotificationConfigJson" && e[n]) {
641
- const E = e[n];
642
- (m = Object.keys(E)) == null || m.forEach((z) => {
643
- v(z, E[z]);
644
- });
645
- } else if (n === "kafkaConfigJson" && e[n]) {
646
- const E = e[n];
647
- (g = Object.keys(E)) == null || g.forEach((z) => {
648
- v(z, E[z]);
649
- });
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")));
652
- }, [e]);
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) => {
654
- var m;
655
- k && k.forEach((g, E) => {
656
- v(`${g.parameterName}${E}`, ""), v(`${g.parameterName}${E}isFixed`, !1);
657
- });
658
- let n = [];
659
- const s = A == null ? void 0 : A.find((g) => (g == null ? void 0 : g.code) === t);
660
- if (s) {
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 });
664
- });
665
- }
666
- v("queryMasterParamJson", n);
667
- }, Ve = (t) => {
668
- $ && $.forEach((m, g) => {
669
- v(`${m.parameterName}${g}`, ""), v(`${m.parameterName}${g}isFixed`, !1);
670
- });
671
- let n = [];
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(
678
- (s) => s.id === t
679
- );
680
- n && (v("notificationType", n), v("template", n.message), v("heading", n.heading));
681
- }, O = (t, n, s) => {
682
- if ((e == null ? void 0 : e.type) === "QUERY") {
683
- const m = [...k];
684
- m[t][n] = s, v("queryMasterParamJson", m);
685
- }
686
- if ((e == null ? void 0 : e.type) === "SYSTEM_FUNCTION") {
687
- const m = [...$];
688
- m[t][n] = s, v("functionParams", m);
689
- }
690
- if ((e == null ? void 0 : e.type) === "KAFKA_SYNC") {
691
- const m = [...M];
692
- m[t][n] = s, v("kafkaParameterJson", m);
693
- }
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(
700
- (m) => m.form_type === t
701
- );
702
- if (s && s.param_types) {
703
- const m = JSON.parse(s.param_types), g = Object.keys(m).map((E) => ({
704
- parameterName: E,
705
- mappingValue: "",
706
- isFixed: !1
707
- }));
708
- v("kafkaParameterJson", g, { shouldValidate: !0 });
709
- } else
710
- v("kafkaParameterJson", [], { shouldValidate: !0 });
711
- }, Le = async () => {
712
- var t, n;
713
- try {
714
- if ((e == null ? void 0 : e.type) === "QUERY") {
715
- const s = await Qe(!0);
716
- Y(s == null ? void 0 : s.data);
717
- }
718
- if ((e == null ? void 0 : e.type) === "SYSTEM_FUNCTION") {
719
- const m = await ve({
720
- code: "system_function_retrieve_all",
721
- parameters: {}
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);
724
- }
725
- if ((e == null ? void 0 : e.type) === "PUSH_NOTIFICATION") {
726
- const s = await Xe();
727
- $e(s == null ? void 0 : s.data);
728
- }
729
- if ((e == null ? void 0 : e.type) === "KAFKA_SYNC") {
730
- const s = await ve({
731
- code: "retrieve_all_kafka_configs",
732
- parameters: {}
733
- });
734
- ke(((n = s == null ? void 0 : s.data) == null ? void 0 : n.result) || []);
735
- }
736
- } catch {
737
- re({ message: "Error in loading", type: "error" });
738
- }
739
- }, X = () => {
740
- x("conversion_event", {
741
- form: N.current,
742
- form_name: "Add Other Type Configuration",
743
- submit: I.current
744
- }), r();
745
- }, We = (t) => {
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 = {
747
- mobileNumberFieldName: t.mobileNumberFieldName,
748
- isPriority: t.isPriority,
749
- isSmsTypeFixed: t.isSmsTypeFixed,
750
- smsTypeField: t.smsTypeField
751
- }, delete t.mobileNumberFieldName, delete t.isPriority, delete t.isSmsTypeFixed, delete t.smsTypeField), e.type === "PUSH_NOTIFICATION" && (t.pushNotificationConfigJson = {
752
- notificationTypeId: t.notificationTypeId,
753
- userFieldName: t.userFieldName,
754
- heading: t.heading,
755
- template: t.template
756
- }, delete t.notificationTypeId, delete t.userFieldName, delete t.heading, delete t.template), e.type === "KAFKA_SYNC" && (t.kafkaConfigJson = {
757
- formType: t.formType,
758
- kafkaParameterJson: t.kafkaParameterJson
759
- }), k == null || k.forEach((n, s) => {
760
- delete t[`${n == null ? void 0 : n.parameterName}${s}`], delete t[`${n == null ? void 0 : n.parameterName}${s}isFixed`];
761
- }), $ == null || $.forEach((n, s) => {
762
- delete t[`${n == null ? void 0 : n.parameterName}${s}`], delete t[`${n == null ? void 0 : n.parameterName}${s}isFixed`];
763
- }), M == null || M.forEach((n, s) => {
764
- delete t[`${n == null ? void 0 : n.parameterName}${s}`], delete t[`${n == null ? void 0 : n.parameterName}${s}isFixed`];
765
- }), o(t), I.current = !0, X(), H(""), Q();
766
- };
767
- return /* @__PURE__ */ i(
768
- Je,
769
- {
770
- "data-testid": "othertypeeventconfigmodal-modal",
771
- open: a,
772
- className: "flex items-center justify-center",
773
- onClose: () => {
774
- X(), Q();
775
- },
776
- sx: {
777
- "& .MuiBackdrop-root": {
778
- backgroundColor: "rgba(0, 0, 0, 0.1)"
779
- }
780
- },
781
- children: /* @__PURE__ */ l(
782
- d,
783
- {
784
- container: !0,
785
- className: "w-[90%] md:w-[80%] flex flex-col",
786
- sx: {
787
- // 1. Theme-aware background
788
- backgroundColor: (t) => t.palette.background.paper,
789
- // 2. Dynamic Border/Shadow for Dark Mode
790
- border: (t) => t.palette.mode === "dark" ? `1px solid ${t.palette.divider}` : "none",
791
- // 3. GitHub-style shadow (Soft in light, Deep in dark)
792
- boxShadow: (t) => t.palette.mode === "dark" ? "0 8px 24px rgba(0,0,0,0.4)" : t.shadows[2],
793
- // Standard MUI shadow for light mode
794
- borderRadius: "12px",
795
- // Matches your MuiCard configuration
796
- transition: "all 0.3s ease-in-out"
797
- // Keeps children inside the rounded corners
798
- },
799
- children: [
800
- /* @__PURE__ */ l(
801
- d,
802
- {
803
- className: "manageeventconfiguration-modal-header p-2.5 px-5 flex border-b",
804
- "data-testid": "othertypeeventconfigmodal-modal-header",
805
- children: [
806
- /* @__PURE__ */ l(
807
- h,
808
- {
809
- variant: "body1",
810
- className: "font-medium text-lg text-customBlue",
811
- children: [
812
- c("Add"),
813
- " ",
814
- c(e == null ? void 0 : e.type),
815
- " ",
816
- c("Configuration")
817
- ]
818
- }
819
- ),
820
- /* @__PURE__ */ i(
821
- pe,
822
- {
823
- size: "small",
824
- onClick: () => {
825
- X(), Q();
826
- },
827
- "data-testid": "othertypeeventconfigmodal-close-button",
828
- children: /* @__PURE__ */ i(ae, { icon: tt })
829
- }
830
- )
831
- ]
832
- }
833
- ),
834
- /* @__PURE__ */ l(
835
- "form",
836
- {
837
- onSubmit: Me(We),
838
- ref: N,
839
- "data-testid": "othertypeeventconfigmodal-form",
840
- children: [
841
- /* @__PURE__ */ l(d, { container: !0, className: " max-h-[60vh] overflow-y-auto w-full", children: [
842
- /* @__PURE__ */ i(
843
- d,
844
- {
845
- item: !0,
846
- className: "border-b border-gray-300 p-2.5 flex flex-col items-start",
847
- size: { xs: 12 },
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: [
849
- c("Available Implicit Parameters"),
850
- ":",
851
- " ",
852
- e == null ? void 0 : e.implicitParam,
853
- " "
854
- ] }) })
855
- }
856
- ),
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,
861
- {
862
- variant: "outlined",
863
- className: " w-full",
864
- "data-testid": "othertypeeventconfigmodal-exceptionType",
865
- children: [
866
- /* @__PURE__ */ l(h, { variant: "body2", children: [
867
- c("Exception"),
868
- " ",
869
- c("Type"),
870
- /* @__PURE__ */ i("span", { style: { color: "red", marginLeft: 4 }, children: "*" })
871
- ] }),
872
- /* @__PURE__ */ l(w, { className: " w-full", children: [
873
- /* @__PURE__ */ i(
874
- y,
875
- {
876
- name: "excetionTypes",
877
- control: b,
878
- defaultValue: "",
879
- className: " w-full",
880
- render: ({ field: t }) => /* @__PURE__ */ l(
881
- L,
882
- {
883
- className: " w-full",
884
- ...t,
885
- error: f.excetionTypes,
886
- size: "small",
887
- "data-testid": "othertypeeventconfigmodal-excetionTypes-select",
888
- 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: [
892
- " ",
893
- c("Imtecho System Exception")
894
- ] }) }),
895
- /* @__PURE__ */ i(_, { value: "ImtechoMobileException", children: /* @__PURE__ */ i(h, { variant: "body2", children: c("Imtecho Mobile Exception") }) })
896
- ]
897
- }
898
- )
899
- }
900
- ),
901
- (f == null ? void 0 : f.excetionTypes) && /* @__PURE__ */ i(
902
- "p",
903
- {
904
- className: "error-helper",
905
- "data-testid": "custom-error-message",
906
- children: (fe = f == null ? void 0 : f.excetionTypes) == null ? void 0 : fe.message
907
- }
908
- )
909
- ] })
910
- ]
911
- }
912
- ) }),
913
- /* @__PURE__ */ l(d, { item: !0, size: { xs: 12 }, className: " w-full", children: [
914
- " ",
915
- /* @__PURE__ */ l(
916
- p,
917
- {
918
- variant: "outlined",
919
- className: " w-full",
920
- "data-testid": "othertypeeventconfigmodal-exceptionMessage",
921
- children: [
922
- /* @__PURE__ */ i(h, { variant: "body2", children: c("Message") }),
923
- /* @__PURE__ */ i(w, { className: " w-full", children: /* @__PURE__ */ i(
924
- ne,
925
- {
926
- control: b,
927
- id: "exceptionMessage",
928
- name: "exceptionMessage",
929
- errors: f,
930
- label: "",
931
- minRows: 5,
932
- "data-testid": "othertypeeventconfigmodal-exceptionMessage-customtextarea"
933
- }
934
- ) })
935
- ]
936
- }
937
- )
938
- ] })
939
- ] }),
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,
943
- {
944
- variant: "outlined",
945
- className: " w-full",
946
- "data-testid": "othertypeeventconfigmodal-mobileNumberFieldName",
947
- children: [
948
- /* @__PURE__ */ l(h, { variant: "body2", children: [
949
- c("SMS"),
950
- " ",
951
- c("Phone number"),
952
- " ",
953
- c("Field"),
954
- " ",
955
- c("Name"),
956
- /* @__PURE__ */ i("span", { style: { color: "red", marginLeft: 4 }, children: "*" })
957
- ] }),
958
- /* @__PURE__ */ i(w, { className: " w-full", children: /* @__PURE__ */ i(
959
- P,
960
- {
961
- control: b,
962
- id: "mobileNumberFieldName",
963
- name: "mobileNumberFieldName",
964
- errors: f,
965
- label: "",
966
- size: "small",
967
- dataTestId: "othertypeeventconfigmodal-mobileNumberFieldName-textfield"
968
- }
969
- ) })
970
- ]
971
- }
972
- ) }),
973
- /* @__PURE__ */ i(d, { item: !0, size: { xs: 12 }, className: " w-full", children: /* @__PURE__ */ l(
974
- p,
975
- {
976
- variant: "outlined",
977
- className: " w-full",
978
- "data-testid": "othertypeeventconfigmodal-smsTypeField",
979
- children: [
980
- /* @__PURE__ */ l(
981
- d,
982
- {
983
- container: !0,
984
- justifyContent: "space-between",
985
- alignItems: "center",
986
- children: [
987
- /* @__PURE__ */ i(d, { item: !0, xs: !0, children: /* @__PURE__ */ l(h, { variant: "body2", children: [
988
- c("SMS"),
989
- " ",
990
- c("Type"),
991
- " ",
992
- c("Field"),
993
- " ",
994
- c("Value"),
995
- /* @__PURE__ */ i("span", { style: { color: "red", marginLeft: 4 }, children: "*" })
996
- ] }) }),
997
- /* @__PURE__ */ l(d, { container: !0, children: [
998
- " ",
999
- /* @__PURE__ */ i(d, { item: !0, children: /* @__PURE__ */ i(p, { component: "fieldset", className: "mr-2", children: /* @__PURE__ */ i(
1000
- y,
1001
- {
1002
- control: b,
1003
- name: "isPriority",
1004
- defaultValue: !1,
1005
- render: ({ field: t }) => /* @__PURE__ */ i(
1006
- D,
1007
- {
1008
- control: /* @__PURE__ */ i(
1009
- K,
1010
- {
1011
- checked: t.value,
1012
- onChange: (n) => t.onChange(n.target.checked),
1013
- "data-testid": "othertypeeventconfigmodal-isPriority-checkbox"
1014
- }
1015
- ),
1016
- label: "Is Priority"
1017
- }
1018
- )
1019
- }
1020
- ) }) }),
1021
- /* @__PURE__ */ i(d, { item: !0, children: /* @__PURE__ */ i(p, { component: "fieldset", className: "mr-2", children: /* @__PURE__ */ i(
1022
- y,
1023
- {
1024
- control: b,
1025
- name: "isSmsTypeFixed",
1026
- defaultValue: !1,
1027
- render: ({ field: t }) => /* @__PURE__ */ i(
1028
- D,
1029
- {
1030
- control: /* @__PURE__ */ i(
1031
- K,
1032
- {
1033
- checked: t.value,
1034
- onChange: (n) => t.onChange(n.target.checked),
1035
- "data-testid": "othertypeeventconfigmodal-isSmsTypeFixed-checkbox"
1036
- }
1037
- ),
1038
- label: c("Is Fixed Value")
1039
- }
1040
- )
1041
- }
1042
- ) }) })
1043
- ] })
1044
- ]
1045
- }
1046
- ),
1047
- /* @__PURE__ */ i(w, { className: " w-full", children: /* @__PURE__ */ i(
1048
- P,
1049
- {
1050
- control: b,
1051
- id: "smsTypeField",
1052
- name: "smsTypeField",
1053
- errors: f,
1054
- label: "",
1055
- size: "small",
1056
- dataTestId: "othertypeeventconfigmodal-smsTypeField-textfield"
1057
- }
1058
- ) })
1059
- ]
1060
- }
1061
- ) })
1062
- ] }),
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,
1066
- {
1067
- variant: "outlined",
1068
- className: " w-full",
1069
- "data-testid": "othertypeeventconfigmodal-emailIdField",
1070
- children: [
1071
- /* @__PURE__ */ l(h, { variant: "body2", children: [
1072
- c("Email"),
1073
- " ",
1074
- c("Id"),
1075
- " ",
1076
- c("Field"),
1077
- " ",
1078
- c("Value"),
1079
- /* @__PURE__ */ i("span", { style: { color: "red", marginLeft: 4 }, children: "*" })
1080
- ] }),
1081
- /* @__PURE__ */ i(w, { className: " w-full", children: /* @__PURE__ */ i(
1082
- P,
1083
- {
1084
- control: b,
1085
- id: "baseDateFieldName",
1086
- name: "baseDateFieldName",
1087
- errors: f,
1088
- label: "",
1089
- size: "small",
1090
- dataTestId: "othertypeeventconfigmodal-baseDateFieldName-textfield"
1091
- }
1092
- ) })
1093
- ]
1094
- }
1095
- ) }),
1096
- /* @__PURE__ */ i(d, { item: !0, size: { xs: 12 }, className: " w-full", children: /* @__PURE__ */ l(
1097
- p,
1098
- {
1099
- variant: "outlined",
1100
- className: " w-full",
1101
- "data-testid": "othertypeeventconfigmodal-emailSubjectField",
1102
- children: [
1103
- /* @__PURE__ */ l(h, { variant: "body2", children: [
1104
- c("Email"),
1105
- " ",
1106
- c("Subject"),
1107
- /* @__PURE__ */ i("span", { style: { color: "red", marginLeft: 4 }, children: "*" })
1108
- ] }),
1109
- /* @__PURE__ */ i(w, { className: " w-full", children: /* @__PURE__ */ i(
1110
- P,
1111
- {
1112
- control: b,
1113
- id: "emailSubject",
1114
- name: "emailSubject",
1115
- errors: f,
1116
- label: "",
1117
- size: "small",
1118
- dataTestId: "othertypeeventconfigmodal-emailSubject-textfield"
1119
- }
1120
- ) })
1121
- ]
1122
- }
1123
- ) }),
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,
1204
- {
1205
- variant: "outlined",
1206
- className: " w-[95%] md:w-full overflow-auto",
1207
- "data-testid": "othertypeeventconfigmodal-template",
1208
- children: [
1209
- /* @__PURE__ */ i(h, { variant: "body2", children: c("Template") }),
1210
- /* @__PURE__ */ i(
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,
1223
- {
1224
- className: " w-full",
1225
- sx: {
1226
- borderRadius: "8px",
1227
- overflow: "hidden",
1228
- border: `1px solid ${u.palette.divider}`,
1229
- // This targets the actual writing area
1230
- "& .ck-editor__main > .ck-editor__editable": {
1231
- backgroundColor: `${u.palette.background.paper} !important`,
1232
- color: `${u.palette.text.primary} !important`,
1233
- minHeight: "200px",
1234
- "&.ck-focused": {
1235
- borderColor: `${u.palette.primary.main} !important`
1236
- }
1237
- },
1238
- // This targets the toolbar
1239
- "& .ck.ck-toolbar": {
1240
- backgroundColor: C ? "#21262D !important" : "var(--color-gray4) !important",
1241
- borderColor: `${u.palette.divider} !important`
1242
- },
1243
- // This targets the buttons/icons inside the toolbar
1244
- "& .ck.ck-toolbar .ck-button": {
1245
- color: `${u.palette.text.primary} !important`,
1246
- cursor: "pointer",
1247
- "&:hover": {
1248
- backgroundColor: C ? "#30363D !important" : "var(--color-gray3) !important"
1249
- },
1250
- "&.ck-on": {
1251
- backgroundColor: C ? "#11B66633 !important" : "var(--color-gray3) !important",
1252
- color: `${u.palette.primary.main} !important`
1253
- }
1254
- },
1255
- // This targets dropdowns and labels
1256
- "& .ck.ck-label": {
1257
- color: `${u.palette.text.secondary} !important`
1258
- }
1259
- },
1260
- children: /* @__PURE__ */ i(
1261
- ye,
1262
- {
1263
- editor: rt,
1264
- data: ue("template") || "",
1265
- config: {
1266
- toolbar: [
1267
- "heading",
1268
- "|",
1269
- "bold",
1270
- "italic",
1271
- "underline",
1272
- "link",
1273
- "|",
1274
- "cut",
1275
- "copy",
1276
- "|",
1277
- // Added cut and copy
1278
- "bulletedList",
1279
- "numberedList",
1280
- "|",
1281
- "blockQuote",
1282
- "|",
1283
- "undo",
1284
- "redo",
1285
- "|",
1286
- "sourceEditing"
1287
- ]
1288
- },
1289
- onChange: (t, n) => {
1290
- const s = n.getData();
1291
- v("template", s);
1292
- },
1293
- "data-testid": "othertypeeventconfigmodal-template-ckeditor"
1294
- }
1295
- )
1296
- }
1297
- )
1298
- ]
1299
- }
1300
- ) })
1301
- ] }),
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,
1304
- {
1305
- variant: "outlined",
1306
- className: " w-full",
1307
- "data-testid": "othertypeeventconfigmodal-querySelect",
1308
- children: [
1309
- /* @__PURE__ */ i(h, { variant: "body2", children: c("Query") }),
1310
- /* @__PURE__ */ i(w, { className: " w-full", children: /* @__PURE__ */ i(
1311
- y,
1312
- {
1313
- className: " w-full",
1314
- name: "queryCode",
1315
- control: b,
1316
- defaultValue: null,
1317
- render: ({ field: t }) => /* @__PURE__ */ l(
1318
- L,
1319
- {
1320
- ...t,
1321
- className: " w-full",
1322
- size: "small",
1323
- displayEmpty: !0,
1324
- onChange: (n) => {
1325
- t.onChange(n), Re(n.target.value);
1326
- },
1327
- "data-testid": "othertypeeventconfigmodal-queryCode-select",
1328
- 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: [
1331
- " ",
1332
- n == null ? void 0 : n.code
1333
- ] }) }, s + 1))
1334
- ]
1335
- }
1336
- )
1337
- }
1338
- ) })
1339
- ]
1340
- }
1341
- ) }) }),
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(
1343
- d,
1344
- {
1345
- item: !0,
1346
- size: { xs: 12 },
1347
- className: " w-full",
1348
- children: /* @__PURE__ */ l(p, { variant: "outlined", className: " w-full", children: [
1349
- /* @__PURE__ */ l(
1350
- d,
1351
- {
1352
- container: !0,
1353
- justifyContent: "space-between",
1354
- alignItems: "center",
1355
- children: [
1356
- /* @__PURE__ */ i(d, { item: !0, children: /* @__PURE__ */ l(h, { variant: "body1", children: [
1357
- t == null ? void 0 : t.parameterName,
1358
- " ",
1359
- c("Mapping")
1360
- ] }) }),
1361
- /* @__PURE__ */ i(d, { item: !0, children: /* @__PURE__ */ i(p, { component: "fieldset", className: "mr-2", children: /* @__PURE__ */ i(
1362
- y,
1363
- {
1364
- control: b,
1365
- name: `${t == null ? void 0 : t.parameterName}${n}isFixed`,
1366
- defaultValue: (t == null ? void 0 : t.isFixed) || !1,
1367
- render: ({ field: s }) => /* @__PURE__ */ i(
1368
- D,
1369
- {
1370
- control: /* @__PURE__ */ i(
1371
- K,
1372
- {
1373
- checked: s.value,
1374
- onChange: (m) => {
1375
- s.onChange(m.target.checked), O(
1376
- n,
1377
- "isFixed",
1378
- m.target.checked
1379
- );
1380
- },
1381
- "data-testid": "othertypeeventconfigmodal-isFixed-checkbox"
1382
- }
1383
- ),
1384
- label: "Is Fixed Value"
1385
- }
1386
- )
1387
- }
1388
- ) }) })
1389
- ]
1390
- }
1391
- ),
1392
- /* @__PURE__ */ i(w, { className: " w-full", children: /* @__PURE__ */ i(
1393
- y,
1394
- {
1395
- control: b,
1396
- className: " w-full",
1397
- name: `${t == null ? void 0 : t.parameterName}${n}`,
1398
- defaultValue: t == null ? void 0 : t.mappingValue,
1399
- render: ({ field: s }) => /* @__PURE__ */ i(
1400
- ie,
1401
- {
1402
- variant: "outlined",
1403
- size: "small",
1404
- className: " w-full",
1405
- ...s,
1406
- fullWidth: !0,
1407
- onChange: (m) => {
1408
- v(
1409
- `${t == null ? void 0 : t.parameterName}${n}`,
1410
- m.target.value
1411
- ), O(
1412
- n,
1413
- "mappingValue",
1414
- m.target.value
1415
- );
1416
- },
1417
- "data-testid": `othertypeeventconfigmodal-${t == null ? void 0 : t.parameterName}${n}-textfiled`
1418
- }
1419
- )
1420
- }
1421
- ) })
1422
- ] })
1423
- },
1424
- n + 1
1425
- )) }),
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,
1428
- {
1429
- variant: "outlined",
1430
- className: " w-full",
1431
- "data-testid": "othertypeeventconfigmodal-systemFunction",
1432
- children: [
1433
- /* @__PURE__ */ i(h, { variant: "body2", children: c("System Function") }),
1434
- /* @__PURE__ */ i(w, { className: " w-full", children: /* @__PURE__ */ i(
1435
- y,
1436
- {
1437
- className: " w-full",
1438
- name: "systemFunctionId",
1439
- control: b,
1440
- defaultValue: "",
1441
- render: ({ field: t }) => /* @__PURE__ */ l(
1442
- L,
1443
- {
1444
- ...t,
1445
- className: " w-full",
1446
- size: "small",
1447
- onChange: (n) => {
1448
- t.onChange(n), Ve(n.target.value);
1449
- },
1450
- "data-testid": "othertypeeventconfigmodal-systemFunctionId-select",
1451
- sx: {
1452
- ".MuiSelect-select": {
1453
- whiteSpace: "pre-wrap",
1454
- // Allows line breaks
1455
- wordBreak: "break-word",
1456
- height: "auto",
1457
- minHeight: "1.4375em"
1458
- }
1459
- },
1460
- MenuProps: {
1461
- PaperProps: {
1462
- sx: {
1463
- maxHeight: 300,
1464
- overflow: "auto",
1465
- maxWidth: 410
1466
- }
1467
- }
1468
- },
1469
- 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: [
1472
- " ",
1473
- n == null ? void 0 : n.name,
1474
- " (",
1475
- n == null ? void 0 : n.className,
1476
- ")"
1477
- ] }) }, s + 1))
1478
- ]
1479
- }
1480
- )
1481
- }
1482
- ) })
1483
- ]
1484
- }
1485
- ) }) }),
1486
- $ && (e == null ? void 0 : e.type) === "SYSTEM_FUNCTION" && Pe && /* @__PURE__ */ i(d, { container: !0, children: $ == null ? void 0 : $.map((t, n) => /* @__PURE__ */ i(
1487
- d,
1488
- {
1489
- item: !0,
1490
- size: { xs: 12 },
1491
- className: " w-full",
1492
- children: /* @__PURE__ */ l(p, { variant: "outlined", className: " w-full", children: [
1493
- /* @__PURE__ */ l(
1494
- d,
1495
- {
1496
- container: !0,
1497
- justifyContent: "space-between",
1498
- alignItems: "center",
1499
- children: [
1500
- /* @__PURE__ */ i(d, { item: !0, xs: !0, children: /* @__PURE__ */ l(h, { variant: "body2", children: [
1501
- t == null ? void 0 : t.parameterName,
1502
- " ",
1503
- c("Mapping")
1504
- ] }) }),
1505
- /* @__PURE__ */ i(d, { item: !0, children: /* @__PURE__ */ i(
1506
- p,
1507
- {
1508
- component: "fieldset",
1509
- className: "mr-2",
1510
- children: /* @__PURE__ */ i(
1511
- y,
1512
- {
1513
- control: b,
1514
- name: `${t == null ? void 0 : t.parameterName}${n}isFixed`,
1515
- defaultValue: (t == null ? void 0 : t.isFixed) || !1,
1516
- render: ({ field: s }) => /* @__PURE__ */ i(
1517
- D,
1518
- {
1519
- control: /* @__PURE__ */ i(
1520
- K,
1521
- {
1522
- checked: s.value,
1523
- onChange: (m) => {
1524
- s.onChange(m.target.checked), O(
1525
- n,
1526
- "isFixed",
1527
- m.target.checked
1528
- );
1529
- },
1530
- "data-testid": "othertypeeventconfigmodal-systemFunctionId-checkbox"
1531
- }
1532
- ),
1533
- label: "Is Fixed Value"
1534
- }
1535
- )
1536
- }
1537
- )
1538
- }
1539
- ) })
1540
- ]
1541
- }
1542
- ),
1543
- /* @__PURE__ */ i(w, { className: " w-full", children: /* @__PURE__ */ i(
1544
- y,
1545
- {
1546
- control: b,
1547
- className: " w-full",
1548
- name: `${t == null ? void 0 : t.parameterName}${n}`,
1549
- defaultValue: t == null ? void 0 : t.mappingValue,
1550
- render: ({ field: s }) => /* @__PURE__ */ i(
1551
- ie,
1552
- {
1553
- variant: "outlined",
1554
- size: "small",
1555
- className: " w-full",
1556
- ...s,
1557
- fullWidth: !0,
1558
- onChange: (m) => {
1559
- v(
1560
- `${t == null ? void 0 : t.parameterName}${n}`,
1561
- m.target.value
1562
- ), O(
1563
- n,
1564
- "mappingValue",
1565
- m.target.value
1566
- );
1567
- },
1568
- "data-testid": `othertypeeventconfigmodal-${t == null ? void 0 : t.parameterName}${n}-textfiled`
1569
- }
1570
- )
1571
- }
1572
- ) })
1573
- ] })
1574
- },
1575
- n + 1
1576
- )) }),
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,
1580
- {
1581
- variant: "outlined",
1582
- className: " w-full",
1583
- "data-testid": "othertypeeventconfigmodal-userIdFieldName",
1584
- children: [
1585
- /* @__PURE__ */ l(h, { variant: "body2", children: [
1586
- c("User"),
1587
- " ",
1588
- c("Id"),
1589
- " ",
1590
- c("Field"),
1591
- " ",
1592
- c("Name"),
1593
- /* @__PURE__ */ i("span", { style: { color: "red", marginLeft: 4 }, children: "*" })
1594
- ] }),
1595
- /* @__PURE__ */ i(w, { className: " w-full", children: /* @__PURE__ */ i(
1596
- P,
1597
- {
1598
- control: b,
1599
- id: "userFieldName",
1600
- name: "userFieldName",
1601
- errors: f,
1602
- label: "",
1603
- size: "small",
1604
- dataTestId: "othertypeeventconfigmodal-userFieldName-textfield"
1605
- }
1606
- ) })
1607
- ]
1608
- }
1609
- ) }),
1610
- /* @__PURE__ */ i(d, { item: !0, size: { xs: 12 }, className: " w-full", children: /* @__PURE__ */ l(
1611
- p,
1612
- {
1613
- variant: "outlined",
1614
- className: " w-full",
1615
- "data-testid": "othertypeeventconfigmodal-notificationType",
1616
- children: [
1617
- /* @__PURE__ */ l(h, { variant: "body2", children: [
1618
- c("Notification"),
1619
- " ",
1620
- c("Type"),
1621
- /* @__PURE__ */ i("span", { style: { color: "red", marginLeft: 4 }, children: "*" })
1622
- ] }),
1623
- /* @__PURE__ */ l(w, { className: " w-full", children: [
1624
- /* @__PURE__ */ i(
1625
- y,
1626
- {
1627
- className: " w-full",
1628
- name: "notificationTypeId",
1629
- control: b,
1630
- defaultValue: "",
1631
- render: ({ field: t }) => /* @__PURE__ */ l(
1632
- L,
1633
- {
1634
- ...t,
1635
- className: " w-full",
1636
- size: "small",
1637
- error: f == null ? void 0 : f.notificationTypeId,
1638
- onChange: (n) => {
1639
- t.onChange(n), Oe(n.target.value);
1640
- },
1641
- "data-testid": "othertypeeventconfigmodal-notificationtypeid-select",
1642
- children: [
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))
1645
- ]
1646
- }
1647
- )
1648
- }
1649
- ),
1650
- (f == null ? void 0 : f.notificationTypeId) && /* @__PURE__ */ i(
1651
- "p",
1652
- {
1653
- className: "error-helper",
1654
- "data-testid": "custom-error-message",
1655
- children: (ge = f == null ? void 0 : f.notificationTypeId) == null ? void 0 : ge.message
1656
- }
1657
- )
1658
- ] })
1659
- ]
1660
- }
1661
- ) })
1662
- ] }),
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: [
1666
- c("Notification"),
1667
- " ",
1668
- c("Heading"),
1669
- /* @__PURE__ */ i("span", { style: { color: "red", marginLeft: 4 }, children: "*" })
1670
- ] }),
1671
- /* @__PURE__ */ i(w, { className: " w-full", children: /* @__PURE__ */ i(
1672
- P,
1673
- {
1674
- control: b,
1675
- id: "heading",
1676
- name: "heading",
1677
- errors: f,
1678
- label: "",
1679
- size: "small",
1680
- dataTestId: "othertypeeventconfigmodal-heading-textfield"
1681
- }
1682
- ) })
1683
- ] }) }),
1684
- /* @__PURE__ */ l(d, { item: !0, size: { xs: 12 }, className: " w-full", children: [
1685
- " ",
1686
- /* @__PURE__ */ l(p, { variant: "outlined", className: " w-full", children: [
1687
- /* @__PURE__ */ i(h, { variant: "body2", children: c("Template") }),
1688
- /* @__PURE__ */ i(w, { className: " w-full", children: /* @__PURE__ */ i(
1689
- ne,
1690
- {
1691
- control: b,
1692
- id: "template",
1693
- name: "template",
1694
- errors: f,
1695
- label: "",
1696
- minRows: 5,
1697
- "data-testid": "othertypeeventconfigmodal-template-customtextarea"
1698
- }
1699
- ) })
1700
- ] })
1701
- ] })
1702
- ] }),
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,
1705
- {
1706
- variant: "outlined",
1707
- className: " w-full",
1708
- "data-testid": "othertypeeventconfigmodal-kafkaConfig",
1709
- children: [
1710
- /* @__PURE__ */ l(h, { variant: "body2", children: [
1711
- c("Kafka Config"),
1712
- /* @__PURE__ */ i("span", { style: { color: "red", marginLeft: 4 }, children: "*" })
1713
- ] }),
1714
- /* @__PURE__ */ i(w, { className: " w-full", children: /* @__PURE__ */ i(
1715
- y,
1716
- {
1717
- className: " w-full",
1718
- name: "formType",
1719
- control: b,
1720
- defaultValue: "",
1721
- error: f,
1722
- render: ({ field: t }) => /* @__PURE__ */ l(
1723
- L,
1724
- {
1725
- ...t,
1726
- className: " w-full",
1727
- size: "small",
1728
- displayEmpty: !0,
1729
- onChange: (n) => {
1730
- t.onChange(n), Ue(n.target.value);
1731
- },
1732
- "data-testid": "othertypeeventconfigmodal-kafkaConfig-select",
1733
- children: [
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))
1736
- ]
1737
- }
1738
- )
1739
- }
1740
- ) })
1741
- ]
1742
- }
1743
- ) }) }),
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(
1745
- d,
1746
- {
1747
- item: !0,
1748
- size: { xs: 12 },
1749
- className: " w-full",
1750
- children: /* @__PURE__ */ l(p, { variant: "outlined", className: " w-full", children: [
1751
- /* @__PURE__ */ l(
1752
- d,
1753
- {
1754
- container: !0,
1755
- justifyContent: "space-between",
1756
- alignItems: "center",
1757
- children: [
1758
- /* @__PURE__ */ i(d, { item: !0, xs: !0, children: /* @__PURE__ */ l(h, { variant: "body2", children: [
1759
- t == null ? void 0 : t.parameterName,
1760
- " ",
1761
- c("Mapping")
1762
- ] }) }),
1763
- /* @__PURE__ */ i(d, { item: !0, children: /* @__PURE__ */ i(
1764
- p,
1765
- {
1766
- component: "fieldset",
1767
- className: "mr-2",
1768
- children: /* @__PURE__ */ i(
1769
- y,
1770
- {
1771
- control: b,
1772
- name: `${t == null ? void 0 : t.parameterName}${n}isFixed`,
1773
- defaultValue: (t == null ? void 0 : t.isFixed) || !1,
1774
- render: ({ field: s }) => /* @__PURE__ */ i(
1775
- D,
1776
- {
1777
- control: /* @__PURE__ */ i(
1778
- K,
1779
- {
1780
- checked: s.value,
1781
- onChange: (m) => {
1782
- s.onChange(m.target.checked), O(
1783
- n,
1784
- "isFixed",
1785
- m.target.checked
1786
- );
1787
- },
1788
- "data-testid": "othertypeeventconfigmodal-kafka-isFixed-checkbox"
1789
- }
1790
- ),
1791
- label: c("Is Fixed Value")
1792
- }
1793
- )
1794
- }
1795
- )
1796
- }
1797
- ) })
1798
- ]
1799
- }
1800
- ),
1801
- /* @__PURE__ */ i(w, { className: " w-full", children: /* @__PURE__ */ i(
1802
- y,
1803
- {
1804
- control: b,
1805
- className: " w-full",
1806
- name: `${t == null ? void 0 : t.parameterName}${n}`,
1807
- defaultValue: (t == null ? void 0 : t.mappingValue) || "",
1808
- render: ({ field: s }) => /* @__PURE__ */ i(
1809
- ie,
1810
- {
1811
- variant: "outlined",
1812
- size: "small",
1813
- className: " w-full",
1814
- ...s,
1815
- fullWidth: !0,
1816
- onChange: (m) => {
1817
- v(
1818
- `${t == null ? void 0 : t.parameterName}${n}`,
1819
- m.target.value
1820
- ), O(
1821
- n,
1822
- "mappingValue",
1823
- m.target.value
1824
- );
1825
- },
1826
- "data-testid": `othertypeeventconfigmodal-kafka-${t == null ? void 0 : t.parameterName}${n}-textfield`
1827
- }
1828
- )
1829
- }
1830
- ) })
1831
- ] })
1832
- },
1833
- `${he}-${t == null ? void 0 : t.parameterName}-${n}`
1834
- )) }),
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: [
1836
- " ",
1837
- /* @__PURE__ */ l(
1838
- p,
1839
- {
1840
- variant: "outlined",
1841
- className: " w-full",
1842
- "data-testid": e.type === "QUERY" ? "othertypeeventconfigmodal-queryArea" : "othertypeeventconfigmodal-template",
1843
- children: [
1844
- /* @__PURE__ */ i(h, { variant: "body2", children: c(
1845
- e.type === "QUERY" ? "Query" : "Template"
1846
- ) }),
1847
- /* @__PURE__ */ i(w, { className: " w-full", children: /* @__PURE__ */ i(
1848
- ne,
1849
- {
1850
- control: b,
1851
- id: "template",
1852
- name: "template",
1853
- label: "",
1854
- minRows: 5,
1855
- "data-testid": "othertypeeventconfigmodal-template-customtextarea"
1856
- }
1857
- ) })
1858
- ]
1859
- }
1860
- )
1861
- ] }) }),
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,
1865
- {
1866
- variant: "outlined",
1867
- className: " w-full",
1868
- "data-testid": "othertypeeventconfigmodal-triggerWhen",
1869
- children: [
1870
- /* @__PURE__ */ l(h, { variant: "body2", children: [
1871
- c("Trigger"),
1872
- " ",
1873
- c("When"),
1874
- /* @__PURE__ */ i("span", { style: { color: "red", marginLeft: 4 }, children: "*" })
1875
- ] }),
1876
- /* @__PURE__ */ l(w, { className: " w-full", children: [
1877
- /* @__PURE__ */ i(
1878
- y,
1879
- {
1880
- name: "trigerWhen",
1881
- control: b,
1882
- defaultValue: "",
1883
- className: " w-full",
1884
- render: ({ field: t }) => /* @__PURE__ */ l(
1885
- L,
1886
- {
1887
- className: " w-full",
1888
- ...t,
1889
- error: f.trigerWhen,
1890
- size: "small",
1891
- displayEmpty: !0,
1892
- "data-testid": "othertypeeventconfigmodal-trigegrwhen-select",
1893
- children: [
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") }) })
1897
- ]
1898
- }
1899
- )
1900
- }
1901
- ),
1902
- (f == null ? void 0 : f.trigerWhen) && /* @__PURE__ */ i(
1903
- "p",
1904
- {
1905
- className: "error-helper",
1906
- "data-testid": "custom-error-message",
1907
- children: (Ne = f == null ? void 0 : f.trigerWhen) == null ? void 0 : Ne.message
1908
- }
1909
- )
1910
- ] })
1911
- ]
1912
- }
1913
- ),
1914
- Ae === "AFTER" && /* @__PURE__ */ l(De, { children: [
1915
- /* @__PURE__ */ i(d, { item: !0, size: { xs: 12 }, children: /* @__PURE__ */ l(
1916
- p,
1917
- {
1918
- variant: "outlined",
1919
- className: " w-full",
1920
- "data-testid": "othertypeeventconfigmodal-dayField",
1921
- children: [
1922
- /* @__PURE__ */ i(h, { variant: "body2", children: c("Day") }),
1923
- /* @__PURE__ */ i(w, { className: " w-full", children: /* @__PURE__ */ i(
1924
- P,
1925
- {
1926
- control: b,
1927
- id: "day",
1928
- name: "day",
1929
- errors: f,
1930
- label: "",
1931
- type: "number",
1932
- size: "small",
1933
- dataTestId: "othertypeeventconfigmodal-type-textfield"
1934
- }
1935
- ) })
1936
- ]
1937
- }
1938
- ) }),
1939
- /* @__PURE__ */ i(d, { item: !0, size: { xs: 12 }, children: /* @__PURE__ */ l(
1940
- p,
1941
- {
1942
- variant: "outlined",
1943
- className: " w-full",
1944
- "data-testid": "othertypeeventconfigmodal-hourField",
1945
- children: [
1946
- /* @__PURE__ */ i(h, { variant: "body2", children: c("Hour") }),
1947
- /* @__PURE__ */ i(w, { className: " w-full", children: /* @__PURE__ */ i(
1948
- P,
1949
- {
1950
- control: b,
1951
- id: "hour",
1952
- name: "hour",
1953
- errors: f,
1954
- label: "",
1955
- type: "number",
1956
- size: "small",
1957
- dataTestId: "othertypeeventconfigmodal-type-textfield"
1958
- }
1959
- ) })
1960
- ]
1961
- }
1962
- ) }),
1963
- /* @__PURE__ */ i(d, { item: !0, size: { xs: 12 }, children: /* @__PURE__ */ l(
1964
- p,
1965
- {
1966
- variant: "outlined",
1967
- className: " w-full",
1968
- "data-testid": "othertypeeventconfigmodal-minuteField",
1969
- children: [
1970
- /* @__PURE__ */ i(h, { variant: "body2", children: c("Minute") }),
1971
- /* @__PURE__ */ i(w, { className: " w-full", children: /* @__PURE__ */ i(
1972
- P,
1973
- {
1974
- control: b,
1975
- id: "minute",
1976
- name: "minute",
1977
- type: "number",
1978
- errors: f,
1979
- label: "",
1980
- size: "small",
1981
- dataTestId: "othertypeeventconfigmodal-type-textfield"
1982
- }
1983
- ) })
1984
- ]
1985
- }
1986
- ) })
1987
- ] })
1988
- ] }) })
1989
- ] })
1990
- ] }),
1991
- /* @__PURE__ */ l(
1992
- He,
1993
- {
1994
- direction: "row",
1995
- className: "mr-5",
1996
- spacing: 2,
1997
- justifyContent: "flex-end",
1998
- mt: 1,
1999
- mb: 1,
2000
- children: [
2001
- /* @__PURE__ */ i(
2002
- te,
2003
- {
2004
- variant: "contained",
2005
- size: "small",
2006
- color: "secondary",
2007
- onClick: () => {
2008
- X(), Q();
2009
- },
2010
- "data-testid": "othertypeeventconfigmodal-cancel-button",
2011
- children: /* @__PURE__ */ i(h, { variant: "body2", children: c("Cancel") })
2012
- }
2013
- ),
2014
- /* @__PURE__ */ i(
2015
- te,
2016
- {
2017
- size: "small",
2018
- type: "submit",
2019
- variant: "contained",
2020
- color: "primary",
2021
- "data-testid": "othertypeeventconfigmodal-submit-button",
2022
- children: c("Submit")
2023
- }
2024
- )
2025
- ]
2026
- }
2027
- )
2028
- ]
2029
- }
2030
- )
2031
- ]
2032
- }
2033
- )
2034
- }
2035
- );
2036
- };
2037
- Ft.propTypes = {
2038
- open: G.any,
2039
- handleClose: G.any,
2040
- handleClick: G.any,
2041
- type: G.any
2042
- };
2043
- export {
2044
- Ft as default
2045
- };
2046
- //# sourceMappingURL=OtherTypeEventConfigModal-CYBfr2XE.js.map