@argusoft/medplat-core 1.0.31 → 1.0.32

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 (199) hide show
  1. package/dist/{AccessRights-DUgY6ewy.js → AccessRights-DBjTQA1-.js} +421 -424
  2. package/dist/AccessRights-DBjTQA1-.js.map +1 -0
  3. package/dist/{AddFeatures-D1sU8RjY.js → AddFeatures-COj4ZTIM.js} +2 -2
  4. package/dist/{AddFeatures-D1sU8RjY.js.map → AddFeatures-COj4ZTIM.js.map} +1 -1
  5. package/dist/AddMenuConfiguration-Creeib5X.js +11223 -0
  6. package/dist/AddMenuConfiguration-Creeib5X.js.map +1 -0
  7. package/dist/AddMenuConfiguration.css +1 -1
  8. package/dist/{BrandsPage-DMw2vT0u-BVhvhc6J.js → BrandsPage-CdcAvaml-ZtVTX6vX.js} +45 -45
  9. package/dist/{BrandsPage-DMw2vT0u-BVhvhc6J.js.map → BrandsPage-CdcAvaml-ZtVTX6vX.js.map} +1 -1
  10. package/dist/{CategoriesPage-D3ihx9Gi-CT58g0ry.js → CategoriesPage-BprQEYJw-CclreTv1.js} +43 -43
  11. package/dist/{CategoriesPage-D3ihx9Gi-CT58g0ry.js.map → CategoriesPage-BprQEYJw-CclreTv1.js.map} +1 -1
  12. package/dist/{ChangePasswordModalCore-lQ9GamH1.js → ChangePasswordModalCore-DZGOkbRY.js} +3 -3
  13. package/dist/{ChangePasswordModalCore-lQ9GamH1.js.map → ChangePasswordModalCore-DZGOkbRY.js.map} +1 -1
  14. package/dist/{ConditionConfig-BQBmBHaM.js → ConditionConfig-Bpm6OoV5.js} +3 -3
  15. package/dist/{ConditionConfig-BQBmBHaM.js.map → ConditionConfig-Bpm6OoV5.js.map} +1 -1
  16. package/dist/{DashboardPage-asr2XDRu-uOOlX9Vq.js → DashboardPage-CTiGSx71-CsYohJ5e.js} +29 -29
  17. package/dist/{DashboardPage-asr2XDRu-uOOlX9Vq.js.map → DashboardPage-CTiGSx71-CsYohJ5e.js.map} +1 -1
  18. package/dist/EntityManagement-BGwJGl9k.js +62 -0
  19. package/dist/EntityManagement-BGwJGl9k.js.map +1 -0
  20. package/dist/{EventConfigurations-CUPEN5BV.js → EventConfigurations-B-z7xHh_.js} +3 -3
  21. package/dist/{EventConfigurations-CUPEN5BV.js.map → EventConfigurations-B-z7xHh_.js.map} +1 -1
  22. package/dist/{EventsExceptionModal-BX-ArkBE.js → EventsExceptionModal-DafomIv6.js} +2 -2
  23. package/dist/{EventsExceptionModal-BX-ArkBE.js.map → EventsExceptionModal-DafomIv6.js.map} +1 -1
  24. package/dist/{EventsUi-D6O9S7BK.js → EventsUi-Dl_yckSA.js} +37 -32
  25. package/dist/EventsUi-Dl_yckSA.js.map +1 -0
  26. package/dist/FacilityPicker-BXa2VF7i-Dab_Jwa5.js +112 -0
  27. package/dist/FacilityPicker-BXa2VF7i-Dab_Jwa5.js.map +1 -0
  28. package/dist/{FeatureMenu-CHsBbw3W.js → FeatureMenu-Kc73yPHH.js} +2 -2
  29. package/dist/{FeatureMenu-CHsBbw3W.js.map → FeatureMenu-Kc73yPHH.js.map} +1 -1
  30. package/dist/{FhirServerList-iXBPkRVF.js → FhirServerList-CrIHMAxz.js} +19 -19
  31. package/dist/{FhirServerList-iXBPkRVF.js.map → FhirServerList-CrIHMAxz.js.map} +1 -1
  32. package/dist/{FhirServerProfile-CUOwC6Wb.js → FhirServerProfile-D3aYcpwY.js} +8 -8
  33. package/dist/{FhirServerProfile-CUOwC6Wb.js.map → FhirServerProfile-D3aYcpwY.js.map} +1 -1
  34. package/dist/{FhirServerWizard-DZI8Olku.js → FhirServerWizard-Db6Hm4bQ.js} +15 -15
  35. package/dist/{FhirServerWizard-DZI8Olku.js.map → FhirServerWizard-Db6Hm4bQ.js.map} +1 -1
  36. package/dist/{ImmunizationConfigurationBase-aUtx0JEe.js → ImmunizationConfigurationBase-lKsJZMak.js} +1342 -1301
  37. package/dist/ImmunizationConfigurationBase-lKsJZMak.js.map +1 -0
  38. package/dist/InventoryPage-JadYMCzU-CzJQfQ2A.js +1017 -0
  39. package/dist/InventoryPage-JadYMCzU-CzJQfQ2A.js.map +1 -0
  40. package/dist/LocationWiseExpectedTargetPage-CjKk1aTF.js +1344 -0
  41. package/dist/LocationWiseExpectedTargetPage-CjKk1aTF.js.map +1 -0
  42. package/dist/{ManageDynamicFeature-BU0I45dd.js → ManageDynamicFeature-CuyYfx_P.js} +104 -97
  43. package/dist/ManageDynamicFeature-CuyYfx_P.js.map +1 -0
  44. package/dist/{ManageEventConfiguration-DqW3krT6.js → ManageEventConfiguration-DqPbn3Oi.js} +5 -5
  45. package/dist/{ManageEventConfiguration-DqW3krT6.js.map → ManageEventConfiguration-DqPbn3Oi.js.map} +1 -1
  46. package/dist/ManageRole-CyfpySt9.js +981 -0
  47. package/dist/ManageRole-CyfpySt9.js.map +1 -0
  48. package/dist/{ManageUser-DZltBina.js → ManageUser-Dm0l833u.js} +172 -172
  49. package/dist/{ManageUser-DZltBina.js.map → ManageUser-Dm0l833u.js.map} +1 -1
  50. package/dist/{MemberProfileCard-D5CgkTdJ-D2NgDJl3.js → MemberProfileCard-01d_jz3w-DYHtbgMX.js} +37 -37
  51. package/dist/{MemberProfileCard-D5CgkTdJ-D2NgDJl3.js.map → MemberProfileCard-01d_jz3w-DYHtbgMX.js.map} +1 -1
  52. package/dist/MobileAnalytics-C9oc2yAo.js +18399 -0
  53. package/dist/MobileAnalytics-C9oc2yAo.js.map +1 -0
  54. package/dist/MobileMenuManagement-BmzTPXy7.js +231 -0
  55. package/dist/MobileMenuManagement-BmzTPXy7.js.map +1 -0
  56. package/dist/{MobileTypeEventConfigModal-CMcj7Ozp.js → MobileTypeEventConfigModal-DodU3beR.js} +3 -3
  57. package/dist/{MobileTypeEventConfigModal-CMcj7Ozp.js.map → MobileTypeEventConfigModal-DodU3beR.js.map} +1 -1
  58. package/dist/{NewServerManagement-Cxe0dV0O.js → NewServerManagement-BdayO78D.js} +368 -352
  59. package/dist/NewServerManagement-BdayO78D.js.map +1 -0
  60. package/dist/OtherTypeEventConfigModal-D_9S50aI.js +1414 -0
  61. package/dist/OtherTypeEventConfigModal-D_9S50aI.js.map +1 -0
  62. package/dist/{PaymentCreatePage-DfvSZ-kB-CckogYoe.js → PaymentCreatePage-D6NZBUC3-DxXf2kvH.js} +56 -56
  63. package/dist/{PaymentCreatePage-DfvSZ-kB-CckogYoe.js.map → PaymentCreatePage-D6NZBUC3-DxXf2kvH.js.map} +1 -1
  64. package/dist/{PaymentsPage-DMNjYWAJ-ChO9IXmk.js → PaymentsPage-CHieGNrn-BnYCtqHd.js} +38 -38
  65. package/dist/{PaymentsPage-DMNjYWAJ-ChO9IXmk.js.map → PaymentsPage-CHieGNrn-BnYCtqHd.js.map} +1 -1
  66. package/dist/{PermissionsModal-CCYkcKlC.js → PermissionsModal-Dxbkkrqe.js} +18 -18
  67. package/dist/PermissionsModal-Dxbkkrqe.js.map +1 -0
  68. package/dist/{PickupBatchLinesEditor-CE2RuyJT-BPceiJr8.js → PickupBatchLinesEditor-QPaqFtUO-CY7BShYh.js} +2 -2
  69. package/dist/{PickupBatchLinesEditor-CE2RuyJT-BPceiJr8.js.map → PickupBatchLinesEditor-QPaqFtUO-CY7BShYh.js.map} +1 -1
  70. package/dist/PickupCreatePage-C7_67u_u-OId8-e2a.js +801 -0
  71. package/dist/PickupCreatePage-C7_67u_u-OId8-e2a.js.map +1 -0
  72. package/dist/{PickupsPage-D7zyioJB-bHKnARYw.js → PickupsPage-BWblMlic-CWkgeBw0.js} +122 -122
  73. package/dist/PickupsPage-BWblMlic-CWkgeBw0.js.map +1 -0
  74. package/dist/PmGuard-BvUUbU80-BpYNaDzl.js +641 -0
  75. package/dist/PmGuard-BvUUbU80-BpYNaDzl.js.map +1 -0
  76. package/dist/ProductEditPage-Dbq4vUAA-BoBmTPPL.js +1523 -0
  77. package/dist/ProductEditPage-Dbq4vUAA-BoBmTPPL.js.map +1 -0
  78. package/dist/{ProductsPage-DvNHIeZt-BoOOJJtk.js → ProductsPage-BI22nPb4-CQBjnc-n.js} +29 -29
  79. package/dist/{ProductsPage-DvNHIeZt-BoOOJJtk.js.map → ProductsPage-BI22nPb4-CQBjnc-n.js.map} +1 -1
  80. package/dist/PurchaseCreatePage-C0EK9z4w-BQMTsjE7.js +724 -0
  81. package/dist/PurchaseCreatePage-C0EK9z4w-BQMTsjE7.js.map +1 -0
  82. package/dist/{PurchaseRequestDetailPage-CA9KFOfE-CtjG4Gx6.js → PurchaseRequestDetailPage-DhBuOGHZ-CWZPqzt9.js} +446 -436
  83. package/dist/PurchaseRequestDetailPage-DhBuOGHZ-CWZPqzt9.js.map +1 -0
  84. package/dist/{PurchaseRequestsPage-DS9i4o0--TpoxA5Kd.js → PurchaseRequestsPage-Bj9HUMxb-B7-AxT8m.js} +55 -55
  85. package/dist/{PurchaseRequestsPage-DS9i4o0--TpoxA5Kd.js.map → PurchaseRequestsPage-Bj9HUMxb-B7-AxT8m.js.map} +1 -1
  86. package/dist/{PurchasesPage-DgL5T6BY-DePUuE9l.js → PurchasesPage-Djl1AqD_-DXeYFMrX.js} +61 -61
  87. package/dist/{PurchasesPage-DgL5T6BY-DePUuE9l.js.map → PurchasesPage-Djl1AqD_-DXeYFMrX.js.map} +1 -1
  88. package/dist/{RoleManagement-s8iNx2Mu.js → RoleManagement-DVYufwy-.js} +3 -3
  89. package/dist/{RoleManagement-s8iNx2Mu.js.map → RoleManagement-DVYufwy-.js.map} +1 -1
  90. package/dist/Roles-BoNGJhtR.js +19 -0
  91. package/dist/Roles-BoNGJhtR.js.map +1 -0
  92. package/dist/{SaleCreatePage-CZnIOydv-DKBw-qp7.js → SaleCreatePage-DHBLmlBr-BlgjVsq6.js} +33 -33
  93. package/dist/{SaleCreatePage-CZnIOydv-DKBw-qp7.js.map → SaleCreatePage-DHBLmlBr-BlgjVsq6.js.map} +1 -1
  94. package/dist/{SalesPage-DPIRrC_O-M8rqnK7z.js → SalesPage-eF9Yr42z-BQ9FlXC3.js} +34 -34
  95. package/dist/SalesPage-eF9Yr42z-BQ9FlXC3.js.map +1 -0
  96. package/dist/SettingsPage-Cre-UE3r-9ntnLYsQ.js +741 -0
  97. package/dist/SettingsPage-Cre-UE3r-9ntnLYsQ.js.map +1 -0
  98. package/dist/{StorageUnitsPage-BDRkdCjW-UF64rf7q.js → StorageUnitsPage-CTEVuemZ-B4osG74N.js} +213 -190
  99. package/dist/StorageUnitsPage-CTEVuemZ-B4osG74N.js.map +1 -0
  100. package/dist/{SubMenu-BdMTYtC1.js → SubMenu-OO2zhKiu.js} +2 -2
  101. package/dist/{SubMenu-BdMTYtC1.js.map → SubMenu-OO2zhKiu.js.map} +1 -1
  102. package/dist/{TableDetails-BtafRxXb.js → TableDetails-Cc40dEUs.js} +272 -267
  103. package/dist/TableDetails-Cc40dEUs.js.map +1 -0
  104. package/dist/{TableList-Dpo6dO7S.js → TableList-B5tX4wII.js} +316 -312
  105. package/dist/TableList-B5tX4wII.js.map +1 -0
  106. package/dist/{TransactionsPage-CqWTMNU8-Df6eGFDW.js → TransactionsPage-Zuu7sjID-B-ACzvd1.js} +185 -170
  107. package/dist/TransactionsPage-Zuu7sjID-B-ACzvd1.js.map +1 -0
  108. package/dist/TransferCreatePage-DlT0nCDj-B2SdPgYB.js +635 -0
  109. package/dist/TransferCreatePage-DlT0nCDj-B2SdPgYB.js.map +1 -0
  110. package/dist/TransfersPage-DqaSvHda-G2tFa5Jq.js +600 -0
  111. package/dist/TransfersPage-DqaSvHda-G2tFa5Jq.js.map +1 -0
  112. package/dist/{TypeConfiguration-JbRCN6GR.js → TypeConfiguration-EaFiOzRE.js} +3 -3
  113. package/dist/{TypeConfiguration-JbRCN6GR.js.map → TypeConfiguration-EaFiOzRE.js.map} +1 -1
  114. package/dist/UserList-Cf5B-o_1.js +1904 -0
  115. package/dist/UserList-Cf5B-o_1.js.map +1 -0
  116. package/dist/Users-MC7txo1V.js +43 -0
  117. package/dist/{Users-CsJ08Kjm.js.map → Users-MC7txo1V.js.map} +1 -1
  118. package/dist/VaccineEducation-T_UE57Ef.js +231 -0
  119. package/dist/VaccineEducation-T_UE57Ef.js.map +1 -0
  120. package/dist/VaccineEducation.css +1 -0
  121. package/dist/VaccineEducationConfigurator-CWc20_rv.js +50948 -0
  122. package/dist/VaccineEducationConfigurator-CWc20_rv.js.map +1 -0
  123. package/dist/VaccineEducationConfigurator.css +4 -0
  124. package/dist/VaccineEducationList-Ok7_5EFb.js +334 -0
  125. package/dist/VaccineEducationList-Ok7_5EFb.js.map +1 -0
  126. package/dist/VialsPage-LoDaUqVv-DmMXbK8j.js +457 -0
  127. package/dist/VialsPage-LoDaUqVv-DmMXbK8j.js.map +1 -0
  128. package/dist/{constants-DpXnLsAB-D6lN5cjK.js → constants-BTpJFQe_-CYPZIqQF.js} +160 -61
  129. package/dist/constants-BTpJFQe_-CYPZIqQF.js.map +1 -0
  130. package/dist/dashboardLayoutUtils--xUnoKPa.js +615 -0
  131. package/dist/dashboardLayoutUtils--xUnoKPa.js.map +1 -0
  132. package/dist/index-mfoqII2U.js +524 -0
  133. package/dist/index-mfoqII2U.js.map +1 -0
  134. package/dist/{index-D9YNFPn9.js → index-o8Pyt1Bt.js} +445 -439
  135. package/dist/index-o8Pyt1Bt.js.map +1 -0
  136. package/dist/index.css +1 -1
  137. package/dist/index.js +1 -1
  138. package/dist/{index.lib-ETRQOzvE.js → index.lib-BySa9-Z-.js} +302 -260
  139. package/dist/index.lib-BySa9-Z-.js.map +1 -0
  140. package/dist/listValueStore-5d4vNGQM-WclZ5nBG.js +43 -0
  141. package/dist/listValueStore-5d4vNGQM-WclZ5nBG.js.map +1 -0
  142. package/package.json +5 -1
  143. package/dist/AccessRights-DUgY6ewy.js.map +0 -1
  144. package/dist/AddMenuConfiguration-c6ZKiN0i.js +0 -8898
  145. package/dist/AddMenuConfiguration-c6ZKiN0i.js.map +0 -1
  146. package/dist/EntityManagement-CPQL6qBj.js +0 -50
  147. package/dist/EntityManagement-CPQL6qBj.js.map +0 -1
  148. package/dist/EventsUi-D6O9S7BK.js.map +0 -1
  149. package/dist/FacilityPicker-DYl_PDyt-Cbwo2tAY.js +0 -79
  150. package/dist/FacilityPicker-DYl_PDyt-Cbwo2tAY.js.map +0 -1
  151. package/dist/ImmunizationConfigurationBase-aUtx0JEe.js.map +0 -1
  152. package/dist/InventoryPage-DOotGZrj-CoPjOJEI.js +0 -665
  153. package/dist/InventoryPage-DOotGZrj-CoPjOJEI.js.map +0 -1
  154. package/dist/ManageDynamicFeature-BU0I45dd.js.map +0 -1
  155. package/dist/ManageRole-CNZBRKGU.js +0 -776
  156. package/dist/ManageRole-CNZBRKGU.js.map +0 -1
  157. package/dist/MobileAnalytics-BLOionG_.js +0 -17301
  158. package/dist/MobileAnalytics-BLOionG_.js.map +0 -1
  159. package/dist/MobileMenuManagement-68Wijb0X.js +0 -220
  160. package/dist/MobileMenuManagement-68Wijb0X.js.map +0 -1
  161. package/dist/NewServerManagement-Cxe0dV0O.js.map +0 -1
  162. package/dist/OtherTypeEventConfigModal-stNmuSv_.js +0 -1812
  163. package/dist/OtherTypeEventConfigModal-stNmuSv_.js.map +0 -1
  164. package/dist/PermissionsModal-CCYkcKlC.js.map +0 -1
  165. package/dist/PickupCreatePage-B4O_-vE5-DoOo9nJO.js +0 -783
  166. package/dist/PickupCreatePage-B4O_-vE5-DoOo9nJO.js.map +0 -1
  167. package/dist/PickupsPage-D7zyioJB-bHKnARYw.js.map +0 -1
  168. package/dist/PmGuard-BZE-y4In-D_pUm5MP.js +0 -599
  169. package/dist/PmGuard-BZE-y4In-D_pUm5MP.js.map +0 -1
  170. package/dist/ProductEditPage-BVlVUCtD-BR-tJ5Wb.js +0 -1305
  171. package/dist/ProductEditPage-BVlVUCtD-BR-tJ5Wb.js.map +0 -1
  172. package/dist/PurchaseCreatePage-Cq_i9snz-DRtHHFWw.js +0 -675
  173. package/dist/PurchaseCreatePage-Cq_i9snz-DRtHHFWw.js.map +0 -1
  174. package/dist/PurchaseRequestDetailPage-CA9KFOfE-CtjG4Gx6.js.map +0 -1
  175. package/dist/Roles-BIyiic67.js +0 -14
  176. package/dist/Roles-BIyiic67.js.map +0 -1
  177. package/dist/SalesPage-DPIRrC_O-M8rqnK7z.js.map +0 -1
  178. package/dist/SettingsPage-BC_R6Z-Q-CKNt9zRu.js +0 -676
  179. package/dist/SettingsPage-BC_R6Z-Q-CKNt9zRu.js.map +0 -1
  180. package/dist/StorageUnitsPage-BDRkdCjW-UF64rf7q.js.map +0 -1
  181. package/dist/TableDetails-BtafRxXb.js.map +0 -1
  182. package/dist/TableList-Dpo6dO7S.js.map +0 -1
  183. package/dist/TransactionsPage-CqWTMNU8-Df6eGFDW.js.map +0 -1
  184. package/dist/TransferCreatePage-DF7FZaTJ-CL79V3aR.js +0 -315
  185. package/dist/TransferCreatePage-DF7FZaTJ-CL79V3aR.js.map +0 -1
  186. package/dist/TransfersPage-CGrRFaBF-cTwBUv0o.js +0 -476
  187. package/dist/TransfersPage-CGrRFaBF-cTwBUv0o.js.map +0 -1
  188. package/dist/UserList-L41Xw0Q6.js +0 -1129
  189. package/dist/UserList-L41Xw0Q6.js.map +0 -1
  190. package/dist/Users-CsJ08Kjm.js +0 -40
  191. package/dist/VialsPage-rvvXjgZG-Oqo1v6kQ.js +0 -321
  192. package/dist/VialsPage-rvvXjgZG-Oqo1v6kQ.js.map +0 -1
  193. package/dist/constants-DpXnLsAB-D6lN5cjK.js.map +0 -1
  194. package/dist/dashboardLayoutUtils-CJivzaU1.js +0 -408
  195. package/dist/dashboardLayoutUtils-CJivzaU1.js.map +0 -1
  196. package/dist/index-D9YNFPn9.js.map +0 -1
  197. package/dist/index.lib-ETRQOzvE.js.map +0 -1
  198. package/dist/listValueStore-BFQtDYIR-Bj0yX145.js +0 -36
  199. package/dist/listValueStore-BFQtDYIR-Bj0yX145.js.map +0 -1
@@ -0,0 +1,1414 @@
1
+ import { jsxs as r, jsx as o, Fragment as Ue } from "react/jsx-runtime";
2
+ import { useRef as j, useState as O, useEffect as pe, useMemo as Y } from "react";
3
+ import T from "prop-types";
4
+ import { useForm as Je, Controller as K } from "react-hook-form";
5
+ import { yupResolver as je } from "@hookform/resolvers/yup";
6
+ import { C as Ye } from "./index-mfoqII2U.js";
7
+ import b from "@mui/material/Grid2";
8
+ import * as I from "yup";
9
+ import { useTheme as He, Dialog as We, DialogTitle as Ke, Box as l, Typography as $, IconButton as be, DialogContent as Le, FormControlLabel as ae, Checkbox as le, Button as te, CircularProgress as Be, DialogActions as Qe, TextField as Xe } from "@mui/material";
10
+ import ie from "@/views/custom-components/CustomTextArea";
11
+ import v from "@/views/custom-components/CustomTextField";
12
+ import y from "@/views/custom-components/CustomDropdown";
13
+ import Ge from "@/views/custom-components/PostgresEditor";
14
+ import { retrieveAllConfigured as Ze, execute as oe, getNotificationTypeList as et } from "@/common/services/GlobalApis";
15
+ import { f as tt } from "./EventConfig-BY2cgGyx.js";
16
+ import { showToast as ne } from "@/common/toaster/toaster";
17
+ import it from "@/hooks/useTrackEvent";
18
+ import "./ManageEventConfiguration-DqPbn3Oi.js";
19
+ import { useTranslateProvider as ot } from "@/common/languageTranslator/TranslationContext";
20
+ import re from "@/common/fontAwesomeIcons/FontAwesomeIcons";
21
+ import nt from "@/views/custom-components/CkEditor/CkEditor";
22
+ import { l as rt, A as at, I as lt, F as h, h as st, e as H, f as xe, j as dt } from "./EventsUi-Dl_yckSA.js";
23
+ const ct = 5 * 1024 * 1024, A = (u) => u === "PUSH_NOTIFICATION" || u === "PUSH_NOTIFICATION_V2", W = ({
24
+ param: u,
25
+ index: F,
26
+ control: z,
27
+ translate: t,
28
+ setValue: x,
29
+ handleChange: M,
30
+ testIdPrefix: q,
31
+ valueTestIdSuffix: D,
32
+ checkboxTestId: w
33
+ }) => /* @__PURE__ */ r(
34
+ l,
35
+ {
36
+ sx: {
37
+ display: "flex",
38
+ flexDirection: "column",
39
+ gap: 0.5,
40
+ p: 1.5,
41
+ border: "1px solid",
42
+ borderColor: "divider",
43
+ borderRadius: (S) => `${S.shape.borderRadius}px`
44
+ },
45
+ children: [
46
+ /* @__PURE__ */ r(
47
+ l,
48
+ {
49
+ sx: {
50
+ display: "flex",
51
+ justifyContent: "space-between",
52
+ alignItems: "center",
53
+ gap: 2,
54
+ flexWrap: "wrap"
55
+ },
56
+ children: [
57
+ /* @__PURE__ */ o(
58
+ $,
59
+ {
60
+ variant: "body2",
61
+ sx: { fontWeight: 600, fontFamily: "monospace" },
62
+ children: u == null ? void 0 : u.parameterName
63
+ }
64
+ ),
65
+ /* @__PURE__ */ o(
66
+ K,
67
+ {
68
+ control: z,
69
+ name: `${u == null ? void 0 : u.parameterName}${F}isFixed`,
70
+ defaultValue: (u == null ? void 0 : u.isFixed) || !1,
71
+ render: ({ field: S }) => /* @__PURE__ */ o(
72
+ ae,
73
+ {
74
+ sx: { mr: 0 },
75
+ control: /* @__PURE__ */ o(
76
+ le,
77
+ {
78
+ size: "small",
79
+ checked: !!S.value,
80
+ onChange: (N) => {
81
+ S.onChange(N.target.checked), M(F, "isFixed", N.target.checked);
82
+ },
83
+ "data-testid": w
84
+ }
85
+ ),
86
+ label: /* @__PURE__ */ o($, { variant: "body2", children: t("Is Fixed Value") })
87
+ }
88
+ )
89
+ }
90
+ )
91
+ ]
92
+ }
93
+ ),
94
+ /* @__PURE__ */ o(
95
+ K,
96
+ {
97
+ control: z,
98
+ name: `${u == null ? void 0 : u.parameterName}${F}`,
99
+ defaultValue: (u == null ? void 0 : u.mappingValue) || "",
100
+ render: ({ field: S }) => /* @__PURE__ */ o(
101
+ Xe,
102
+ {
103
+ variant: "outlined",
104
+ size: "small",
105
+ ...S,
106
+ fullWidth: !0,
107
+ placeholder: t("Placeholder or fixed value"),
108
+ onChange: (N) => {
109
+ x(`${u == null ? void 0 : u.parameterName}${F}`, N.target.value), M(F, "mappingValue", N.target.value);
110
+ },
111
+ "data-testid": `${q}${u == null ? void 0 : u.parameterName}${F}${D}`
112
+ }
113
+ )
114
+ }
115
+ )
116
+ ]
117
+ }
118
+ );
119
+ W.propTypes = {
120
+ param: T.any,
121
+ index: T.number,
122
+ control: T.any,
123
+ translate: T.func,
124
+ setValue: T.func,
125
+ handleChange: T.func,
126
+ testIdPrefix: T.string,
127
+ valueTestIdSuffix: T.string,
128
+ checkboxTestId: T.string
129
+ };
130
+ const mt = ({
131
+ open: u,
132
+ handleClose: F,
133
+ handleClick: z,
134
+ type: t
135
+ }) => {
136
+ const x = He(), M = x.palette.mode === "dark", q = j(null), D = j(!1), w = j(!1), S = it(), [N, Te] = O([]), [L, Ie] = O([]), [B, Ne] = O([]), { translate: n } = ot(), [Q, ve] = O([]), [Ce, Fe] = O([]), V = j(null), [X, se] = O(!1), [de, R] = O(""), Se = I.object().shape({
137
+ excetionTypes: I.string().test(
138
+ "is-required",
139
+ "Execution type is required",
140
+ function(e) {
141
+ return (t == null ? void 0 : t.type) === "EXCEPTION" ? !!e : !0;
142
+ }
143
+ ),
144
+ mobileNumberFieldName: I.string().test(
145
+ "is-required",
146
+ "Enter Sms contact number field name",
147
+ function(e) {
148
+ return (t == null ? void 0 : t.type) === "SMS" ? !!e : !0;
149
+ }
150
+ ),
151
+ smsTypeField: I.string().test(
152
+ "is-required",
153
+ "Enter Sms Type Field",
154
+ function(e) {
155
+ return (t == null ? void 0 : t.type) === "SMS" ? !!e : !0;
156
+ }
157
+ ),
158
+ trigerWhen: I.string().test(
159
+ "is-required",
160
+ "trigerWhen is required",
161
+ function(e) {
162
+ return (t == null ? void 0 : t.type) != "EXCEPTION" && (t == null ? void 0 : t.type) != "SYSTEM_FUNCTION" ? !!e : !0;
163
+ }
164
+ ),
165
+ baseDateFieldName: I.string().test(
166
+ "is-required",
167
+ "Enter Email Id field name",
168
+ function(e) {
169
+ return (t == null ? void 0 : t.type) === "EMAIL" ? !!e : !0;
170
+ }
171
+ ),
172
+ emailSubject: I.string().test(
173
+ "is-required",
174
+ "Enter email subject",
175
+ function(e) {
176
+ return (t == null ? void 0 : t.type) === "EMAIL" ? !!e : !0;
177
+ }
178
+ ),
179
+ notificationTypeId: I.string().test(
180
+ "is-required",
181
+ "Select type",
182
+ function(e) {
183
+ return A(t == null ? void 0 : t.type) ? !!e : !0;
184
+ }
185
+ ),
186
+ userFieldName: I.string().test(
187
+ "is-required",
188
+ "Enter User Id field name",
189
+ function(e) {
190
+ return A(t == null ? void 0 : t.type) ? !!e : !0;
191
+ }
192
+ ),
193
+ recipientType: I.string().test(
194
+ "is-required",
195
+ "Select recipient type",
196
+ function(e) {
197
+ return (t == null ? void 0 : t.type) === "PUSH_NOTIFICATION_V2" ? !!e : !0;
198
+ }
199
+ ),
200
+ heading: I.string().test(
201
+ "is-required",
202
+ "Enter heading",
203
+ function(e) {
204
+ return A(t == null ? void 0 : t.type) && G ? !!e : !0;
205
+ }
206
+ ),
207
+ template: I.string().test(
208
+ "is-required",
209
+ "Enter Template",
210
+ function(e) {
211
+ return A(t == null ? void 0 : t.type) && G ? !!e : !0;
212
+ }
213
+ )
214
+ }), {
215
+ control: f,
216
+ handleSubmit: ke,
217
+ reset: U,
218
+ setValue: m,
219
+ unregister: ce,
220
+ getValues: me,
221
+ watch: C,
222
+ formState: { errors: g, isSubmitting: Ee }
223
+ } = Je({
224
+ defaultValues: {},
225
+ resolver: je(Se),
226
+ mode: "onChange"
227
+ });
228
+ pe(() => {
229
+ var i;
230
+ if (!w.current) return;
231
+ w.current = !1;
232
+ const e = (i = q.current) == null ? void 0 : i.querySelector(
233
+ '[aria-invalid="true"], textarea.error-textarea'
234
+ );
235
+ e == null || e.focus({ preventScroll: !0 }), e == null || e.scrollIntoView({ behavior: "smooth", block: "center" });
236
+ }, [g]), pe(() => {
237
+ var e;
238
+ t && (qe(), (e = Object.keys(t)) == null || e.forEach((i) => {
239
+ var a, s, d;
240
+ if (i === "index" && m(i, t[i]), i === "smsConfigJson" && t[i]) {
241
+ const c = t[i];
242
+ (a = Object.keys(c)) == null || a.forEach((p) => {
243
+ m(p, c[p]);
244
+ });
245
+ } else if (i === "pushNotificationConfigJson" && t[i]) {
246
+ const c = t[i];
247
+ (s = Object.keys(c)) == null || s.forEach((p) => {
248
+ m(p, c[p]);
249
+ });
250
+ } else if (i === "kafkaConfigJson" && t[i]) {
251
+ const c = t[i];
252
+ (d = Object.keys(c)) == null || d.forEach((p) => {
253
+ m(p, c[p]);
254
+ });
255
+ } else t[i] !== void 0 && t[i] !== null && (m(i, t[i]), i === "miniute" && m("minute", t[i]));
256
+ }), t != null && t.emailImageId && R(n("Attachment uploaded")));
257
+ }, [t]);
258
+ const k = C("queryMasterParamJson"), ue = C("queryCode"), Pe = C("systemFunctionId"), E = C("functionParams"), ye = C("trigerWhen"), G = C("notificationTypeId"), _ = C("kafkaParameterJson"), fe = C("formType"), _e = C("template"), Oe = async (e) => {
259
+ var s;
260
+ k && k.forEach((d, c) => {
261
+ m(`${d.parameterName}${c}`, ""), m(`${d.parameterName}${c}isFixed`, !1);
262
+ });
263
+ let i = [];
264
+ const a = N == null ? void 0 : N.find((d) => (d == null ? void 0 : d.code) === e);
265
+ if (a) {
266
+ const d = (s = a == null ? void 0 : a.params) == null ? void 0 : s.split(",");
267
+ Array.from(new Set(d)).forEach((p) => {
268
+ i.push({ parameterName: p });
269
+ });
270
+ }
271
+ m("queryMasterParamJson", i);
272
+ }, $e = (e) => {
273
+ E && E.forEach((s, d) => {
274
+ m(`${s.parameterName}${d}`, ""), m(`${s.parameterName}${d}isFixed`, !1);
275
+ });
276
+ let i = [];
277
+ const a = L.find((s) => s.id === e);
278
+ a && Array.from(new Set(a.parameters)).forEach((d) => {
279
+ i.push(d);
280
+ }), m("functionParams", i);
281
+ }, he = (e) => {
282
+ const i = Q.find(
283
+ (a) => a.id === e
284
+ );
285
+ i && (m("notificationType", i), m("template", i.message), m("heading", i.heading));
286
+ }, Z = (e, i, a) => {
287
+ if ((t == null ? void 0 : t.type) === "QUERY") {
288
+ const s = [...k];
289
+ s[e][i] = a, m("queryMasterParamJson", s);
290
+ }
291
+ if ((t == null ? void 0 : t.type) === "SYSTEM_FUNCTION") {
292
+ const s = [...E];
293
+ s[e][i] = a, m("functionParams", s);
294
+ }
295
+ if ((t == null ? void 0 : t.type) === "KAFKA_SYNC") {
296
+ const s = [..._];
297
+ s[e][i] = a, m("kafkaParameterJson", s);
298
+ }
299
+ }, Ae = (e) => {
300
+ const i = me("kafkaParameterJson");
301
+ i && Array.isArray(i) && (i.forEach((s, d) => {
302
+ ce(`${s.parameterName}${d}`), ce(`${s.parameterName}${d}isFixed`);
303
+ }), m("kafkaParameterJson", [], { shouldValidate: !0 }));
304
+ const a = B.find(
305
+ (s) => s.form_type === e
306
+ );
307
+ if (a && a.param_types) {
308
+ const s = JSON.parse(a.param_types), d = Object.keys(s).map((c) => ({
309
+ parameterName: c,
310
+ mappingValue: "",
311
+ isFixed: !1
312
+ }));
313
+ m("kafkaParameterJson", d, { shouldValidate: !0 });
314
+ } else
315
+ m("kafkaParameterJson", [], { shouldValidate: !0 });
316
+ }, qe = async () => {
317
+ var e, i, a, s, d;
318
+ try {
319
+ if ((t == null ? void 0 : t.type) === "QUERY") {
320
+ const c = await Ze(!0);
321
+ Te(c == null ? void 0 : c.data);
322
+ }
323
+ if ((t == null ? void 0 : t.type) === "SYSTEM_FUNCTION") {
324
+ const p = await oe({
325
+ code: "system_function_retrieve_all",
326
+ parameters: {}
327
+ }), P = (e = p == null ? void 0 : p.data) == null ? void 0 : e.result.map((ee) => (ee.parameters = JSON.parse(ee.parameters), ee));
328
+ Ie(P);
329
+ }
330
+ if (A(t == null ? void 0 : t.type)) {
331
+ const c = await et();
332
+ ve(c == null ? void 0 : c.data);
333
+ }
334
+ if ((t == null ? void 0 : t.type) === "PUSH_NOTIFICATION_V2") {
335
+ const c = await oe({
336
+ code: "retrieve_system_configuration_by_key",
337
+ parameters: { key: "PUSH_NOTIFICATION_RECIPIENT_TYPES" }
338
+ });
339
+ let p = [];
340
+ try {
341
+ p = JSON.parse(((s = (a = (i = c == null ? void 0 : c.data) == null ? void 0 : i.result) == null ? void 0 : a[0]) == null ? void 0 : s.value) || "[]");
342
+ } catch {
343
+ p = [];
344
+ }
345
+ Fe(
346
+ (p || []).map((P) => ({
347
+ value: P == null ? void 0 : P.code,
348
+ label: P == null ? void 0 : P.code
349
+ }))
350
+ );
351
+ }
352
+ if ((t == null ? void 0 : t.type) === "KAFKA_SYNC") {
353
+ const c = await oe({
354
+ code: "retrieve_all_kafka_configs",
355
+ parameters: {}
356
+ });
357
+ Ne(((d = c == null ? void 0 : c.data) == null ? void 0 : d.result) || []);
358
+ }
359
+ } catch {
360
+ ne({
361
+ message: "Could not load the options for this action. Please try again.",
362
+ type: "error"
363
+ });
364
+ }
365
+ }, J = () => {
366
+ S("conversion_event", {
367
+ form: q.current,
368
+ form_name: "Add Other Type Configuration",
369
+ submit: D.current
370
+ }), F();
371
+ }, we = () => {
372
+ w.current = !0;
373
+ }, Ve = (e) => {
374
+ e = JSON.parse(JSON.stringify(e)), e.minute = Number(e.minute || 0), e.miniute = Number(e.minute || 0), e.type = t == null ? void 0 : t.type, t.type === "SMS" && (e.smsConfigJson = {
375
+ mobileNumberFieldName: e.mobileNumberFieldName,
376
+ isPriority: e.isPriority,
377
+ isSmsTypeFixed: e.isSmsTypeFixed,
378
+ smsTypeField: e.smsTypeField
379
+ }, delete e.mobileNumberFieldName, delete e.isPriority, delete e.isSmsTypeFixed, delete e.smsTypeField), t.type === "PUSH_NOTIFICATION" && (e.pushNotificationConfigJson = {
380
+ notificationTypeId: e.notificationTypeId,
381
+ userFieldName: e.userFieldName,
382
+ heading: e.heading,
383
+ template: e.template
384
+ }, delete e.notificationTypeId, delete e.userFieldName, delete e.heading, delete e.template), t.type === "PUSH_NOTIFICATION_V2" && (e.pushNotificationConfigJson = {
385
+ notificationTypeId: e.notificationTypeId,
386
+ userFieldName: e.userFieldName,
387
+ recipientType: e.recipientType,
388
+ heading: e.heading,
389
+ template: e.template
390
+ }, delete e.notificationTypeId, delete e.userFieldName, delete e.recipientType, delete e.heading, delete e.template), t.type === "KAFKA_SYNC" && (e.kafkaConfigJson = {
391
+ formType: e.formType,
392
+ kafkaParameterJson: e.kafkaParameterJson
393
+ }), k == null || k.forEach((i, a) => {
394
+ delete e[`${i == null ? void 0 : i.parameterName}${a}`], delete e[`${i == null ? void 0 : i.parameterName}${a}isFixed`];
395
+ }), E == null || E.forEach((i, a) => {
396
+ delete e[`${i == null ? void 0 : i.parameterName}${a}`], delete e[`${i == null ? void 0 : i.parameterName}${a}isFixed`];
397
+ }), _ == null || _.forEach((i, a) => {
398
+ delete e[`${i == null ? void 0 : i.parameterName}${a}`], delete e[`${i == null ? void 0 : i.parameterName}${a}isFixed`];
399
+ }), z(e), D.current = !0, J(), R(""), U();
400
+ }, ze = Y(
401
+ () => (N || []).map((e) => ({
402
+ value: e == null ? void 0 : e.code,
403
+ label: e == null ? void 0 : e.code
404
+ })),
405
+ [N]
406
+ ), Me = Y(
407
+ () => (L || []).map((e) => ({
408
+ value: e == null ? void 0 : e.id,
409
+ label: `${e == null ? void 0 : e.name} (${e == null ? void 0 : e.className})`
410
+ })),
411
+ [L]
412
+ ), ge = Y(
413
+ () => (Q || []).map((e) => ({
414
+ value: e == null ? void 0 : e.id,
415
+ label: e == null ? void 0 : e.type
416
+ })),
417
+ [Q]
418
+ ), De = Y(
419
+ () => (B || []).map((e) => ({
420
+ value: e.form_type,
421
+ label: e.form_type
422
+ })),
423
+ [B]
424
+ ), Re = n(rt(at, t == null ? void 0 : t.type));
425
+ return /* @__PURE__ */ r(
426
+ We,
427
+ {
428
+ "data-testid": "othertypeeventconfigmodal-modal",
429
+ open: u,
430
+ fullWidth: !0,
431
+ maxWidth: "md",
432
+ onClose: () => {
433
+ J(), U();
434
+ },
435
+ children: [
436
+ /* @__PURE__ */ r(
437
+ Ke,
438
+ {
439
+ sx: {
440
+ display: "flex",
441
+ alignItems: "flex-start",
442
+ justifyContent: "space-between",
443
+ gap: 2,
444
+ pt: 2,
445
+ pb: 3,
446
+ borderBottom: "1px solid",
447
+ borderColor: "divider"
448
+ },
449
+ "data-testid": "othertypeeventconfigmodal-modal-header",
450
+ children: [
451
+ /* @__PURE__ */ r(l, { children: [
452
+ /* @__PURE__ */ r(
453
+ $,
454
+ {
455
+ variant: "subtitle1",
456
+ component: "span",
457
+ sx: { fontWeight: 700, display: "block" },
458
+ children: [
459
+ n("Add"),
460
+ " ",
461
+ Re,
462
+ " ",
463
+ n("Configuration")
464
+ ]
465
+ }
466
+ ),
467
+ /* @__PURE__ */ o($, { variant: "body2", color: "text.secondary", children: n(
468
+ "This action runs for every row the query returns that matches the condition."
469
+ ) })
470
+ ] }),
471
+ /* @__PURE__ */ o(
472
+ be,
473
+ {
474
+ size: "small",
475
+ onClick: () => {
476
+ J(), U();
477
+ },
478
+ "aria-label": n("Close"),
479
+ "data-testid": "othertypeeventconfigmodal-close-button",
480
+ children: /* @__PURE__ */ o(re, { iconName: "faXmark" })
481
+ }
482
+ )
483
+ ]
484
+ }
485
+ ),
486
+ /* @__PURE__ */ r(
487
+ l,
488
+ {
489
+ component: "form",
490
+ onSubmit: ke(Ve, we),
491
+ ref: q,
492
+ "data-testid": "othertypeeventconfigmodal-form",
493
+ sx: {
494
+ display: "flex",
495
+ flexDirection: "column",
496
+ minHeight: 0,
497
+ overflow: "hidden"
498
+ },
499
+ children: [
500
+ /* @__PURE__ */ o(
501
+ Le,
502
+ {
503
+ sx: { "&.MuiDialogContent-root": { pt: 3 } },
504
+ children: /* @__PURE__ */ r(l, { sx: { display: "flex", flexDirection: "column", gap: 3 }, children: [
505
+ /* @__PURE__ */ o(
506
+ lt,
507
+ {
508
+ params: t == null ? void 0 : t.implicitParam,
509
+ translate: n,
510
+ label: n("Available Implicit Parameters")
511
+ }
512
+ ),
513
+ (t == null ? void 0 : t.type) === "EXCEPTION" && /* @__PURE__ */ r(l, { sx: { display: "flex", flexDirection: "column", gap: 2 }, children: [
514
+ /* @__PURE__ */ r(l, { "data-testid": "othertypeeventconfigmodal-exceptionType", children: [
515
+ /* @__PURE__ */ r(h, { required: !0, children: [
516
+ n("Exception"),
517
+ " ",
518
+ n("Type")
519
+ ] }),
520
+ /* @__PURE__ */ o(
521
+ y,
522
+ {
523
+ control: f,
524
+ name: "excetionTypes",
525
+ options: st.map((e) => ({
526
+ value: e.value,
527
+ label: n(e.label)
528
+ })),
529
+ displayName: "label",
530
+ optionValue: "value",
531
+ errors: g,
532
+ dataTestId: "othertypeeventconfigmodal-excetionTypes-select"
533
+ }
534
+ )
535
+ ] }),
536
+ /* @__PURE__ */ r(l, { "data-testid": "othertypeeventconfigmodal-exceptionMessage", children: [
537
+ /* @__PURE__ */ o(
538
+ h,
539
+ {
540
+ hint: n("Shown to whoever looks at the failed run"),
541
+ children: n("Message")
542
+ }
543
+ ),
544
+ /* @__PURE__ */ o(
545
+ ie,
546
+ {
547
+ control: f,
548
+ id: "exceptionMessage",
549
+ name: "exceptionMessage",
550
+ errors: g,
551
+ label: "",
552
+ minRows: 4,
553
+ "data-testid": "othertypeeventconfigmodal-exceptionMessage-customtextarea"
554
+ }
555
+ )
556
+ ] })
557
+ ] }),
558
+ (t == null ? void 0 : t.type) === "SMS" && /* @__PURE__ */ r(l, { sx: { display: "flex", flexDirection: "column", gap: 2 }, children: [
559
+ /* @__PURE__ */ r(l, { "data-testid": "othertypeeventconfigmodal-mobileNumberFieldName", children: [
560
+ /* @__PURE__ */ r(h, { required: !0, children: [
561
+ n("SMS"),
562
+ " ",
563
+ n("Phone number"),
564
+ " ",
565
+ n("Field"),
566
+ " ",
567
+ n("Name")
568
+ ] }),
569
+ /* @__PURE__ */ o(
570
+ v,
571
+ {
572
+ control: f,
573
+ id: "mobileNumberFieldName",
574
+ name: "mobileNumberFieldName",
575
+ errors: g,
576
+ label: "",
577
+ size: "small",
578
+ dataTestId: "othertypeeventconfigmodal-mobileNumberFieldName-textfield"
579
+ }
580
+ )
581
+ ] }),
582
+ /* @__PURE__ */ r(l, { "data-testid": "othertypeeventconfigmodal-smsTypeField", children: [
583
+ /* @__PURE__ */ r(
584
+ l,
585
+ {
586
+ sx: {
587
+ display: "flex",
588
+ justifyContent: "space-between",
589
+ alignItems: "center",
590
+ gap: 2,
591
+ flexWrap: "wrap"
592
+ },
593
+ children: [
594
+ /* @__PURE__ */ r(h, { required: !0, children: [
595
+ n("SMS"),
596
+ " ",
597
+ n("Type"),
598
+ " ",
599
+ n("Field"),
600
+ " ",
601
+ n("Value")
602
+ ] }),
603
+ /* @__PURE__ */ r(l, { sx: { display: "flex", gap: 1, flexWrap: "wrap" }, children: [
604
+ /* @__PURE__ */ o(
605
+ K,
606
+ {
607
+ control: f,
608
+ name: "isPriority",
609
+ defaultValue: !1,
610
+ render: ({ field: e }) => /* @__PURE__ */ o(
611
+ ae,
612
+ {
613
+ sx: { mr: 0 },
614
+ control: /* @__PURE__ */ o(
615
+ le,
616
+ {
617
+ size: "small",
618
+ checked: !!e.value,
619
+ onChange: (i) => e.onChange(i.target.checked),
620
+ "data-testid": "othertypeeventconfigmodal-isPriority-checkbox"
621
+ }
622
+ ),
623
+ label: /* @__PURE__ */ o($, { variant: "body2", children: n("Is Priority") })
624
+ }
625
+ )
626
+ }
627
+ ),
628
+ /* @__PURE__ */ o(
629
+ K,
630
+ {
631
+ control: f,
632
+ name: "isSmsTypeFixed",
633
+ defaultValue: !1,
634
+ render: ({ field: e }) => /* @__PURE__ */ o(
635
+ ae,
636
+ {
637
+ sx: { mr: 0 },
638
+ control: /* @__PURE__ */ o(
639
+ le,
640
+ {
641
+ size: "small",
642
+ checked: !!e.value,
643
+ onChange: (i) => e.onChange(i.target.checked),
644
+ "data-testid": "othertypeeventconfigmodal-isSmsTypeFixed-checkbox"
645
+ }
646
+ ),
647
+ label: /* @__PURE__ */ o($, { variant: "body2", children: n("Is Fixed Value") })
648
+ }
649
+ )
650
+ }
651
+ )
652
+ ] })
653
+ ]
654
+ }
655
+ ),
656
+ /* @__PURE__ */ o(
657
+ v,
658
+ {
659
+ control: f,
660
+ id: "smsTypeField",
661
+ name: "smsTypeField",
662
+ errors: g,
663
+ label: "",
664
+ size: "small",
665
+ dataTestId: "othertypeeventconfigmodal-smsTypeField-textfield"
666
+ }
667
+ )
668
+ ] })
669
+ ] }),
670
+ (t == null ? void 0 : t.type) === "EMAIL" && /* @__PURE__ */ r(l, { sx: { display: "flex", flexDirection: "column", gap: 2 }, children: [
671
+ /* @__PURE__ */ r(b, { container: !0, spacing: 2, alignItems: "flex-start", children: [
672
+ /* @__PURE__ */ r(
673
+ b,
674
+ {
675
+ size: { xs: 12, md: 6 },
676
+ "data-testid": "othertypeeventconfigmodal-emailIdField",
677
+ children: [
678
+ /* @__PURE__ */ r(h, { required: !0, children: [
679
+ n("Email"),
680
+ " ",
681
+ n("Id"),
682
+ " ",
683
+ n("Field"),
684
+ " ",
685
+ n("Value")
686
+ ] }),
687
+ /* @__PURE__ */ o(
688
+ v,
689
+ {
690
+ control: f,
691
+ id: "baseDateFieldName",
692
+ name: "baseDateFieldName",
693
+ errors: g,
694
+ label: "",
695
+ size: "small",
696
+ dataTestId: "othertypeeventconfigmodal-baseDateFieldName-textfield"
697
+ }
698
+ )
699
+ ]
700
+ }
701
+ ),
702
+ /* @__PURE__ */ r(
703
+ b,
704
+ {
705
+ size: { xs: 12, md: 6 },
706
+ "data-testid": "othertypeeventconfigmodal-emailSubjectField",
707
+ children: [
708
+ /* @__PURE__ */ r(h, { required: !0, children: [
709
+ n("Email"),
710
+ " ",
711
+ n("Subject")
712
+ ] }),
713
+ /* @__PURE__ */ o(
714
+ v,
715
+ {
716
+ control: f,
717
+ id: "emailSubject",
718
+ name: "emailSubject",
719
+ errors: g,
720
+ label: "",
721
+ size: "small",
722
+ dataTestId: "othertypeeventconfigmodal-emailSubject-textfield"
723
+ }
724
+ )
725
+ ]
726
+ }
727
+ )
728
+ ] }),
729
+ /* @__PURE__ */ r(l, { "data-testid": "othertypeeventconfigmodal-emailImage", children: [
730
+ /* @__PURE__ */ o(
731
+ h,
732
+ {
733
+ hint: n("Image or PDF, max 5MB"),
734
+ children: n("Email Attachment")
735
+ }
736
+ ),
737
+ /* @__PURE__ */ r(l, { sx: { display: "flex", alignItems: "center", gap: 1.5, flexWrap: "wrap" }, children: [
738
+ /* @__PURE__ */ r(
739
+ te,
740
+ {
741
+ component: "label",
742
+ variant: "outlined",
743
+ size: "small",
744
+ startIcon: X ? /* @__PURE__ */ o(Be, { size: 14 }) : /* @__PURE__ */ o(re, { iconName: "faCloudArrowUp" }),
745
+ disabled: X,
746
+ "data-testid": "othertypeeventconfigmodal-emailImage-upload-button",
747
+ children: [
748
+ n(
749
+ X ? "Uploading..." : "Upload Attachment"
750
+ ),
751
+ /* @__PURE__ */ o(
752
+ "input",
753
+ {
754
+ ref: V,
755
+ type: "file",
756
+ hidden: !0,
757
+ accept: "image/jpeg,image/png,image/gif,image/webp,application/pdf",
758
+ onChange: async (e) => {
759
+ var a, s;
760
+ const i = (a = e.target.files) == null ? void 0 : a[0];
761
+ if (i) {
762
+ if (i.size > ct) {
763
+ ne({
764
+ message: n(
765
+ "File size must not exceed 5MB"
766
+ ),
767
+ type: "error"
768
+ }), V.current && (V.current.value = "");
769
+ return;
770
+ }
771
+ try {
772
+ se(!0);
773
+ const { data: d } = await tt(
774
+ i,
775
+ "EVENTS"
776
+ );
777
+ m("emailImageId", d.id), R(
778
+ d.actualFileName || d.fileName || i.name
779
+ ), V.current && (V.current.value = "");
780
+ } catch (d) {
781
+ console.error(
782
+ "Error uploading email attachment",
783
+ ((s = d == null ? void 0 : d.response) == null ? void 0 : s.data) || d
784
+ ), ne({
785
+ message: "Could not upload that attachment. Please try again.",
786
+ type: "error"
787
+ });
788
+ } finally {
789
+ se(!1);
790
+ }
791
+ }
792
+ }
793
+ }
794
+ )
795
+ ]
796
+ }
797
+ ),
798
+ de && /* @__PURE__ */ r(l, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
799
+ /* @__PURE__ */ o($, { variant: "caption", color: "text.secondary", children: de }),
800
+ /* @__PURE__ */ o(
801
+ be,
802
+ {
803
+ size: "small",
804
+ color: "error",
805
+ "aria-label": n("Remove attachment"),
806
+ onClick: () => {
807
+ m("emailImageId", null), R("");
808
+ },
809
+ "data-testid": "othertypeeventconfigmodal-emailImage-remove-button",
810
+ children: /* @__PURE__ */ o(re, { iconName: "faTrash", size: "sm" })
811
+ }
812
+ )
813
+ ] })
814
+ ] })
815
+ ] }),
816
+ /* @__PURE__ */ r(l, { "data-testid": "othertypeeventconfigmodal-template", children: [
817
+ /* @__PURE__ */ o(
818
+ h,
819
+ {
820
+ hint: n(
821
+ "Use the </> Source button in the toolbar to view or edit the raw HTML of this email"
822
+ ),
823
+ children: n("Template")
824
+ }
825
+ ),
826
+ /* @__PURE__ */ o(
827
+ l,
828
+ {
829
+ sx: {
830
+ borderRadius: (e) => `${e.shape.borderRadius}px`,
831
+ overflow: "hidden",
832
+ border: "1px solid",
833
+ borderColor: "divider",
834
+ // This targets the actual writing area
835
+ "& .ck-editor__main > .ck-editor__editable": {
836
+ backgroundColor: `${x.palette.background.paper} !important`,
837
+ color: `${x.palette.text.primary} !important`,
838
+ minHeight: "200px",
839
+ "&.ck-focused": {
840
+ borderColor: `${x.palette.primary.main} !important`
841
+ }
842
+ },
843
+ // This targets the toolbar
844
+ "& .ck.ck-toolbar": {
845
+ backgroundColor: M ? `${x.palette.background.default} !important` : "var(--color-gray4) !important",
846
+ borderColor: `${x.palette.divider} !important`
847
+ },
848
+ // This targets the buttons/icons inside the toolbar
849
+ "& .ck.ck-toolbar .ck-button": {
850
+ color: `${x.palette.text.primary} !important`,
851
+ cursor: "pointer",
852
+ "&:hover": {
853
+ backgroundColor: `${x.palette.action.hover} !important`
854
+ },
855
+ "&.ck-on": {
856
+ backgroundColor: `${x.palette.action.selected} !important`,
857
+ color: `${x.palette.primary.main} !important`
858
+ }
859
+ },
860
+ // This targets dropdowns and labels
861
+ "& .ck.ck-label": {
862
+ color: `${x.palette.text.secondary} !important`
863
+ }
864
+ },
865
+ children: /* @__PURE__ */ o(
866
+ Ye,
867
+ {
868
+ editor: nt,
869
+ data: me("template") || "",
870
+ config: {
871
+ toolbar: [
872
+ "heading",
873
+ "|",
874
+ "bold",
875
+ "italic",
876
+ "underline",
877
+ "link",
878
+ "|",
879
+ "cut",
880
+ "copy",
881
+ "|",
882
+ "bulletedList",
883
+ "numberedList",
884
+ "|",
885
+ "blockQuote",
886
+ "|",
887
+ "undo",
888
+ "redo",
889
+ "|",
890
+ "sourceEditing"
891
+ ]
892
+ },
893
+ onChange: (e, i) => {
894
+ const a = i.getData();
895
+ m("template", a);
896
+ },
897
+ "data-testid": "othertypeeventconfigmodal-template-ckeditor"
898
+ }
899
+ )
900
+ }
901
+ )
902
+ ] })
903
+ ] }),
904
+ (t == null ? void 0 : t.type) === "QUERY" && /* @__PURE__ */ r(l, { "data-testid": "othertypeeventconfigmodal-querySelect", children: [
905
+ /* @__PURE__ */ o(
906
+ h,
907
+ {
908
+ hint: n(
909
+ "Pick a configured query, or leave this empty to write one below."
910
+ ),
911
+ children: n("Query")
912
+ }
913
+ ),
914
+ /* @__PURE__ */ o(
915
+ y,
916
+ {
917
+ control: f,
918
+ name: "queryCode",
919
+ options: ze,
920
+ displayName: "label",
921
+ optionValue: "value",
922
+ errors: g,
923
+ isNullSelectDisabled: !1,
924
+ placeholder: n("Select"),
925
+ isSortedOptions: !0,
926
+ onChange: (e) => {
927
+ var i;
928
+ return Oe((i = e == null ? void 0 : e.target) == null ? void 0 : i.value);
929
+ },
930
+ dataTestId: "othertypeeventconfigmodal-queryCode-select"
931
+ }
932
+ )
933
+ ] }),
934
+ k && (t == null ? void 0 : t.type) === "QUERY" && ue && /* @__PURE__ */ r(l, { sx: { display: "flex", flexDirection: "column", gap: 1.5 }, children: [
935
+ /* @__PURE__ */ o(
936
+ H,
937
+ {
938
+ hint: n(
939
+ "Map each query parameter to a placeholder from the list above, or tick Is Fixed Value to type a constant."
940
+ ),
941
+ children: n("Parameters")
942
+ }
943
+ ),
944
+ k.map((e, i) => /* @__PURE__ */ o(
945
+ W,
946
+ {
947
+ param: e,
948
+ index: i,
949
+ control: f,
950
+ translate: n,
951
+ setValue: m,
952
+ handleChange: Z,
953
+ testIdPrefix: "othertypeeventconfigmodal-",
954
+ valueTestIdSuffix: "-textfiled",
955
+ checkboxTestId: "othertypeeventconfigmodal-isFixed-checkbox"
956
+ },
957
+ i + 1
958
+ ))
959
+ ] }),
960
+ (t == null ? void 0 : t.type) === "SYSTEM_FUNCTION" && /* @__PURE__ */ r(l, { "data-testid": "othertypeeventconfigmodal-systemFunction", children: [
961
+ /* @__PURE__ */ o(h, { children: n("System Function") }),
962
+ /* @__PURE__ */ o(
963
+ y,
964
+ {
965
+ control: f,
966
+ name: "systemFunctionId",
967
+ options: Me,
968
+ displayName: "label",
969
+ optionValue: "value",
970
+ errors: g,
971
+ isSortedOptions: !0,
972
+ onChange: (e) => {
973
+ var i;
974
+ return $e((i = e == null ? void 0 : e.target) == null ? void 0 : i.value);
975
+ },
976
+ dataTestId: "othertypeeventconfigmodal-systemFunctionId-select"
977
+ }
978
+ )
979
+ ] }),
980
+ E && (t == null ? void 0 : t.type) === "SYSTEM_FUNCTION" && Pe && /* @__PURE__ */ r(l, { sx: { display: "flex", flexDirection: "column", gap: 1.5 }, children: [
981
+ /* @__PURE__ */ o(H, { children: n("Parameters") }),
982
+ E.map((e, i) => /* @__PURE__ */ o(
983
+ W,
984
+ {
985
+ param: e,
986
+ index: i,
987
+ control: f,
988
+ translate: n,
989
+ setValue: m,
990
+ handleChange: Z,
991
+ testIdPrefix: "othertypeeventconfigmodal-",
992
+ valueTestIdSuffix: "-textfiled",
993
+ checkboxTestId: "othertypeeventconfigmodal-systemFunctionId-checkbox"
994
+ },
995
+ i + 1
996
+ ))
997
+ ] }),
998
+ (t == null ? void 0 : t.type) === "PUSH_NOTIFICATION" && /* @__PURE__ */ o(l, { sx: { display: "flex", flexDirection: "column", gap: 2 }, children: /* @__PURE__ */ r(b, { container: !0, spacing: 2, alignItems: "flex-start", children: [
999
+ /* @__PURE__ */ r(
1000
+ b,
1001
+ {
1002
+ size: { xs: 12, md: 6 },
1003
+ "data-testid": "othertypeeventconfigmodal-userIdFieldName",
1004
+ children: [
1005
+ /* @__PURE__ */ r(h, { required: !0, children: [
1006
+ n("User"),
1007
+ " ",
1008
+ n("Id"),
1009
+ " ",
1010
+ n("Field"),
1011
+ " ",
1012
+ n("Name")
1013
+ ] }),
1014
+ /* @__PURE__ */ o(
1015
+ v,
1016
+ {
1017
+ control: f,
1018
+ id: "userFieldName",
1019
+ name: "userFieldName",
1020
+ errors: g,
1021
+ label: "",
1022
+ size: "small",
1023
+ dataTestId: "othertypeeventconfigmodal-userFieldName-textfield"
1024
+ }
1025
+ )
1026
+ ]
1027
+ }
1028
+ ),
1029
+ /* @__PURE__ */ r(
1030
+ b,
1031
+ {
1032
+ size: { xs: 12, md: 6 },
1033
+ "data-testid": "othertypeeventconfigmodal-notificationType",
1034
+ children: [
1035
+ /* @__PURE__ */ r(h, { required: !0, children: [
1036
+ n("Notification"),
1037
+ " ",
1038
+ n("Type")
1039
+ ] }),
1040
+ /* @__PURE__ */ o(
1041
+ y,
1042
+ {
1043
+ control: f,
1044
+ name: "notificationTypeId",
1045
+ options: ge,
1046
+ displayName: "label",
1047
+ optionValue: "value",
1048
+ errors: g,
1049
+ onChange: (e) => {
1050
+ var i;
1051
+ return he((i = e == null ? void 0 : e.target) == null ? void 0 : i.value);
1052
+ },
1053
+ dataTestId: "othertypeeventconfigmodal-notificationtypeid-select"
1054
+ }
1055
+ )
1056
+ ]
1057
+ }
1058
+ )
1059
+ ] }) }),
1060
+ (t == null ? void 0 : t.type) === "PUSH_NOTIFICATION_V2" && /* @__PURE__ */ o(l, { sx: { display: "flex", flexDirection: "column", gap: 2 }, children: /* @__PURE__ */ r(b, { container: !0, spacing: 2, alignItems: "flex-start", children: [
1061
+ /* @__PURE__ */ r(
1062
+ b,
1063
+ {
1064
+ size: { xs: 12, md: 6 },
1065
+ "data-testid": "othertypeeventconfigmodal-recipientIdColumn",
1066
+ children: [
1067
+ /* @__PURE__ */ o(h, { required: !0, children: n("Recipient Id Column") }),
1068
+ /* @__PURE__ */ o(
1069
+ v,
1070
+ {
1071
+ control: f,
1072
+ id: "userFieldName",
1073
+ name: "userFieldName",
1074
+ errors: g,
1075
+ label: "",
1076
+ size: "small",
1077
+ dataTestId: "othertypeeventconfigmodal-recipientIdColumn-textfield"
1078
+ }
1079
+ ),
1080
+ /* @__PURE__ */ o(xe, { children: n(
1081
+ "Enter the column name without ##, e.g. user_id for #user_id#"
1082
+ ) })
1083
+ ]
1084
+ }
1085
+ ),
1086
+ /* @__PURE__ */ r(
1087
+ b,
1088
+ {
1089
+ size: { xs: 12, md: 6 },
1090
+ "data-testid": "othertypeeventconfigmodal-recipientType",
1091
+ children: [
1092
+ /* @__PURE__ */ o(h, { required: !0, children: n("Recipient Type") }),
1093
+ /* @__PURE__ */ o(
1094
+ y,
1095
+ {
1096
+ control: f,
1097
+ name: "recipientType",
1098
+ options: Ce,
1099
+ displayName: "label",
1100
+ optionValue: "value",
1101
+ errors: g,
1102
+ dataTestId: "othertypeeventconfigmodal-recipientType-select"
1103
+ }
1104
+ )
1105
+ ]
1106
+ }
1107
+ ),
1108
+ /* @__PURE__ */ r(
1109
+ b,
1110
+ {
1111
+ size: { xs: 12, md: 6 },
1112
+ "data-testid": "othertypeeventconfigmodal-notificationTypeV2",
1113
+ children: [
1114
+ /* @__PURE__ */ r(h, { required: !0, children: [
1115
+ n("Notification"),
1116
+ " ",
1117
+ n("Type")
1118
+ ] }),
1119
+ /* @__PURE__ */ o(
1120
+ y,
1121
+ {
1122
+ control: f,
1123
+ name: "notificationTypeId",
1124
+ options: ge,
1125
+ displayName: "label",
1126
+ optionValue: "value",
1127
+ errors: g,
1128
+ onChange: (e) => {
1129
+ var i;
1130
+ return he((i = e == null ? void 0 : e.target) == null ? void 0 : i.value);
1131
+ },
1132
+ dataTestId: "othertypeeventconfigmodal-notificationtypeidv2-select"
1133
+ }
1134
+ )
1135
+ ]
1136
+ }
1137
+ )
1138
+ ] }) }),
1139
+ A(t == null ? void 0 : t.type) && G && /* @__PURE__ */ r(l, { sx: { display: "flex", flexDirection: "column", gap: 2 }, children: [
1140
+ /* @__PURE__ */ r(l, { children: [
1141
+ /* @__PURE__ */ r(h, { required: !0, children: [
1142
+ n("Notification"),
1143
+ " ",
1144
+ n("Heading")
1145
+ ] }),
1146
+ /* @__PURE__ */ o(
1147
+ v,
1148
+ {
1149
+ control: f,
1150
+ id: "heading",
1151
+ name: "heading",
1152
+ errors: g,
1153
+ label: "",
1154
+ size: "small",
1155
+ dataTestId: "othertypeeventconfigmodal-heading-textfield"
1156
+ }
1157
+ )
1158
+ ] }),
1159
+ /* @__PURE__ */ r(l, { children: [
1160
+ /* @__PURE__ */ o(h, { children: n("Template") }),
1161
+ /* @__PURE__ */ o(
1162
+ ie,
1163
+ {
1164
+ control: f,
1165
+ id: "template",
1166
+ name: "template",
1167
+ errors: g,
1168
+ label: "",
1169
+ minRows: 4,
1170
+ "data-testid": "othertypeeventconfigmodal-template-customtextarea"
1171
+ }
1172
+ )
1173
+ ] })
1174
+ ] }),
1175
+ (t == null ? void 0 : t.type) === "KAFKA_SYNC" && /* @__PURE__ */ r(l, { "data-testid": "othertypeeventconfigmodal-kafkaConfig", children: [
1176
+ /* @__PURE__ */ o(h, { required: !0, children: n("Kafka Config") }),
1177
+ /* @__PURE__ */ o(
1178
+ y,
1179
+ {
1180
+ control: f,
1181
+ name: "formType",
1182
+ options: De,
1183
+ displayName: "label",
1184
+ optionValue: "value",
1185
+ errors: g,
1186
+ isNullSelectDisabled: !1,
1187
+ placeholder: n("Select"),
1188
+ onChange: (e) => {
1189
+ var i;
1190
+ return Ae((i = e == null ? void 0 : e.target) == null ? void 0 : i.value);
1191
+ },
1192
+ dataTestId: "othertypeeventconfigmodal-kafkaConfig-select"
1193
+ }
1194
+ )
1195
+ ] }),
1196
+ _ && (t == null ? void 0 : t.type) === "KAFKA_SYNC" && fe && _.length > 0 && /* @__PURE__ */ r(l, { sx: { display: "flex", flexDirection: "column", gap: 1.5 }, children: [
1197
+ /* @__PURE__ */ o(H, { children: n("Parameters") }),
1198
+ _.map((e, i) => /* @__PURE__ */ o(
1199
+ W,
1200
+ {
1201
+ param: e,
1202
+ index: i,
1203
+ control: f,
1204
+ translate: n,
1205
+ setValue: m,
1206
+ handleChange: Z,
1207
+ testIdPrefix: "othertypeeventconfigmodal-kafka-",
1208
+ valueTestIdSuffix: "-textfield",
1209
+ checkboxTestId: "othertypeeventconfigmodal-kafka-isFixed-checkbox"
1210
+ },
1211
+ `${fe}-${e == null ? void 0 : e.parameterName}-${i}`
1212
+ ))
1213
+ ] }),
1214
+ (t == null ? void 0 : t.type) == "QUERY" && !ue && /* @__PURE__ */ r(l, { "data-testid": "othertypeeventconfigmodal-queryArea", children: [
1215
+ /* @__PURE__ */ o(h, { children: n("Query") }),
1216
+ /* @__PURE__ */ o(
1217
+ l,
1218
+ {
1219
+ sx: {
1220
+ overflow: "hidden",
1221
+ borderRadius: (e) => `${e.shape.borderRadius}px`,
1222
+ border: "1px solid",
1223
+ borderColor: "divider"
1224
+ },
1225
+ "data-testid": "othertypeeventconfigmodal-template-customtextarea",
1226
+ children: /* @__PURE__ */ o(
1227
+ Ge,
1228
+ {
1229
+ height: "30vh",
1230
+ autoFocus: !1,
1231
+ defaultValue: _e || "",
1232
+ onChange: (e) => m("template", e)
1233
+ }
1234
+ )
1235
+ }
1236
+ ),
1237
+ /* @__PURE__ */ o(xe, { children: n(
1238
+ "Write the SQL this action runs. Placeholders from the list above are substituted before it executes."
1239
+ ) })
1240
+ ] }),
1241
+ (t == null ? void 0 : t.type) === "SMS" && /* @__PURE__ */ r(l, { "data-testid": "othertypeeventconfigmodal-template", children: [
1242
+ /* @__PURE__ */ o(h, { children: n("Template") }),
1243
+ /* @__PURE__ */ o(
1244
+ ie,
1245
+ {
1246
+ control: f,
1247
+ id: "template",
1248
+ name: "template",
1249
+ label: "",
1250
+ minRows: 4,
1251
+ "data-testid": "othertypeeventconfigmodal-template-customtextarea"
1252
+ }
1253
+ )
1254
+ ] }),
1255
+ (t == null ? void 0 : t.type) != "EXCEPTION" && (t == null ? void 0 : t.type) != "SYSTEM_FUNCTION" && /* @__PURE__ */ r(l, { sx: { display: "flex", flexDirection: "column", gap: 2 }, children: [
1256
+ /* @__PURE__ */ o(H, { children: n("Timing") }),
1257
+ /* @__PURE__ */ r(b, { container: !0, spacing: 2, alignItems: "flex-start", children: [
1258
+ /* @__PURE__ */ r(
1259
+ b,
1260
+ {
1261
+ size: { xs: 12, md: 6 },
1262
+ "data-testid": "othertypeeventconfigmodal-triggerWhen",
1263
+ children: [
1264
+ /* @__PURE__ */ r(h, { required: !0, children: [
1265
+ n("Trigger"),
1266
+ " ",
1267
+ n("When")
1268
+ ] }),
1269
+ /* @__PURE__ */ o(
1270
+ y,
1271
+ {
1272
+ control: f,
1273
+ name: "trigerWhen",
1274
+ options: dt.map((e) => ({
1275
+ value: e.value,
1276
+ label: n(e.label)
1277
+ })),
1278
+ displayName: "label",
1279
+ optionValue: "value",
1280
+ errors: g,
1281
+ isNullSelectDisabled: !1,
1282
+ placeholder: n("Select"),
1283
+ dataTestId: "othertypeeventconfigmodal-trigegrwhen-select"
1284
+ }
1285
+ )
1286
+ ]
1287
+ }
1288
+ ),
1289
+ ye === "AFTER" && /* @__PURE__ */ r(Ue, { children: [
1290
+ /* @__PURE__ */ r(
1291
+ b,
1292
+ {
1293
+ size: { xs: 12, sm: 4, md: 2 },
1294
+ "data-testid": "othertypeeventconfigmodal-dayField",
1295
+ children: [
1296
+ /* @__PURE__ */ o(h, { children: n("Day") }),
1297
+ /* @__PURE__ */ o(
1298
+ v,
1299
+ {
1300
+ control: f,
1301
+ id: "day",
1302
+ name: "day",
1303
+ errors: g,
1304
+ label: "",
1305
+ type: "number",
1306
+ size: "small",
1307
+ dataTestId: "othertypeeventconfigmodal-type-textfield"
1308
+ }
1309
+ )
1310
+ ]
1311
+ }
1312
+ ),
1313
+ /* @__PURE__ */ r(
1314
+ b,
1315
+ {
1316
+ size: { xs: 12, sm: 4, md: 2 },
1317
+ "data-testid": "othertypeeventconfigmodal-hourField",
1318
+ children: [
1319
+ /* @__PURE__ */ o(h, { children: n("Hour") }),
1320
+ /* @__PURE__ */ o(
1321
+ v,
1322
+ {
1323
+ control: f,
1324
+ id: "hour",
1325
+ name: "hour",
1326
+ errors: g,
1327
+ label: "",
1328
+ type: "number",
1329
+ size: "small",
1330
+ dataTestId: "othertypeeventconfigmodal-type-textfield"
1331
+ }
1332
+ )
1333
+ ]
1334
+ }
1335
+ ),
1336
+ /* @__PURE__ */ r(
1337
+ b,
1338
+ {
1339
+ size: { xs: 12, sm: 4, md: 2 },
1340
+ "data-testid": "othertypeeventconfigmodal-minuteField",
1341
+ children: [
1342
+ /* @__PURE__ */ o(h, { children: n("Minute") }),
1343
+ /* @__PURE__ */ o(
1344
+ v,
1345
+ {
1346
+ control: f,
1347
+ id: "minute",
1348
+ name: "minute",
1349
+ type: "number",
1350
+ errors: g,
1351
+ label: "",
1352
+ size: "small",
1353
+ dataTestId: "othertypeeventconfigmodal-type-textfield"
1354
+ }
1355
+ )
1356
+ ]
1357
+ }
1358
+ )
1359
+ ] })
1360
+ ] })
1361
+ ] })
1362
+ ] })
1363
+ }
1364
+ ),
1365
+ /* @__PURE__ */ r(
1366
+ Qe,
1367
+ {
1368
+ sx: { px: 3, py: 2, borderTop: "1px solid", borderColor: "divider" },
1369
+ children: [
1370
+ /* @__PURE__ */ o(
1371
+ te,
1372
+ {
1373
+ variant: "outlined",
1374
+ color: "inherit",
1375
+ size: "small",
1376
+ onClick: () => {
1377
+ J(), U();
1378
+ },
1379
+ "data-testid": "othertypeeventconfigmodal-cancel-button",
1380
+ children: n("Cancel")
1381
+ }
1382
+ ),
1383
+ /* @__PURE__ */ o(
1384
+ te,
1385
+ {
1386
+ size: "small",
1387
+ type: "submit",
1388
+ variant: "contained",
1389
+ color: "primary",
1390
+ disabled: Ee,
1391
+ "data-testid": "othertypeeventconfigmodal-submit-button",
1392
+ children: n("Submit")
1393
+ }
1394
+ )
1395
+ ]
1396
+ }
1397
+ )
1398
+ ]
1399
+ }
1400
+ )
1401
+ ]
1402
+ }
1403
+ );
1404
+ };
1405
+ mt.propTypes = {
1406
+ open: T.any,
1407
+ handleClose: T.any,
1408
+ handleClick: T.any,
1409
+ type: T.any
1410
+ };
1411
+ export {
1412
+ mt as default
1413
+ };
1414
+ //# sourceMappingURL=OtherTypeEventConfigModal-D_9S50aI.js.map