@argusoft/medplat-core 1.0.28 → 1.0.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (229) hide show
  1. package/dist/AccessRights-xrday-L1.js +1023 -0
  2. package/dist/AccessRights-xrday-L1.js.map +1 -0
  3. package/dist/AddEditQueryBuilder-D-iQiVIe.js +365 -0
  4. package/dist/AddEditQueryBuilder-D-iQiVIe.js.map +1 -0
  5. package/dist/{AddFeatures-C0Z29oSd.js → AddFeatures-D1sU8RjY.js} +2 -2
  6. package/dist/{AddFeatures-C0Z29oSd.js.map → AddFeatures-D1sU8RjY.js.map} +1 -1
  7. package/dist/AddLabelModal-Bq-wRqv9.js +631 -0
  8. package/dist/AddLabelModal-Bq-wRqv9.js.map +1 -0
  9. package/dist/AddMenuConfiguration-e5BVXhmw.js +8547 -0
  10. package/dist/AddMenuConfiguration-e5BVXhmw.js.map +1 -0
  11. package/dist/{AddRoleDrawer-CQdzQZLb.js → AddRoleDrawer-0gqAK8N0.js} +62 -63
  12. package/dist/AddRoleDrawer-0gqAK8N0.js.map +1 -0
  13. package/dist/AppModal-CCtrQ5Tr.js +394 -0
  14. package/dist/AppModal-CCtrQ5Tr.js.map +1 -0
  15. package/dist/BrandsPage-DmRW5bhm-Bk1szrjI.js +387 -0
  16. package/dist/BrandsPage-DmRW5bhm-Bk1szrjI.js.map +1 -0
  17. package/dist/CategoriesPage-BsS5IQh3-B03lWRY5.js +391 -0
  18. package/dist/CategoriesPage-BsS5IQh3-B03lWRY5.js.map +1 -0
  19. package/dist/{ChangePasswordModalCore-CDxkeIIM.js → ChangePasswordModalCore-BPsJquTS.js} +1606 -1611
  20. package/dist/ChangePasswordModalCore-BPsJquTS.js.map +1 -0
  21. package/dist/{ConditionConfig-DSsgGEXS.js → ConditionConfig-Ddz9halE.js} +2 -2
  22. package/dist/ConditionConfig-Ddz9halE.js.map +1 -0
  23. package/dist/DashboardPage-C3bKc5na-sBd9Yqbi.js +435 -0
  24. package/dist/DashboardPage-C3bKc5na-sBd9Yqbi.js.map +1 -0
  25. package/dist/{EntityManagement-GaYsBTvf.js → EntityManagement-CPQL6qBj.js} +2 -2
  26. package/dist/{EntityManagement-GaYsBTvf.js.map → EntityManagement-CPQL6qBj.js.map} +1 -1
  27. package/dist/EventConfig-BmLemzX3.js +26 -0
  28. package/dist/EventConfig-BmLemzX3.js.map +1 -0
  29. package/dist/{EventConfigurations-kNtAj_WM.js → EventConfigurations-Bzh1qWXU.js} +31 -30
  30. package/dist/{EventConfigurations-kNtAj_WM.js.map → EventConfigurations-Bzh1qWXU.js.map} +1 -1
  31. package/dist/{EventsExceptionModal-D4Bf1ilS.js → EventsExceptionModal-B2SRrnB1.js} +2 -2
  32. package/dist/{EventsExceptionModal-D4Bf1ilS.js.map → EventsExceptionModal-B2SRrnB1.js.map} +1 -1
  33. package/dist/EventsSkeleton-BIcPks4T.js +61 -0
  34. package/dist/EventsSkeleton-BIcPks4T.js.map +1 -0
  35. package/dist/FacilityPicker-BiZeupmP-CyPHmj6b.js +79 -0
  36. package/dist/FacilityPicker-BiZeupmP-CyPHmj6b.js.map +1 -0
  37. package/dist/FeatureMenu-DYJmDt7q.js +521 -0
  38. package/dist/FeatureMenu-DYJmDt7q.js.map +1 -0
  39. package/dist/Features-Dne21RWu.js +14 -0
  40. package/dist/Features-Dne21RWu.js.map +1 -0
  41. package/dist/{FhirServerList-Dkq7Kbes.js → FhirServerList-DuTwnngN.js} +19 -19
  42. package/dist/{FhirServerList-Dkq7Kbes.js.map → FhirServerList-DuTwnngN.js.map} +1 -1
  43. package/dist/{FhirServerWizard-Db6Hm4bQ.js → FhirServerWizard-DZI8Olku.js} +15 -15
  44. package/dist/{FhirServerWizard-Db6Hm4bQ.js.map → FhirServerWizard-DZI8Olku.js.map} +1 -1
  45. package/dist/FlywayQuery-CQygj51V.js +179 -0
  46. package/dist/FlywayQuery-CQygj51V.js.map +1 -0
  47. package/dist/{ManageNotification-CaBAOhji.js → Google-DQxMfbaL.js} +1725 -2652
  48. package/dist/{ManageNotification-CaBAOhji.js.map → Google-DQxMfbaL.js.map} +1 -1
  49. package/dist/GrantPermissionModal-BDN66Atn.js +236 -0
  50. package/dist/GrantPermissionModal-BDN66Atn.js.map +1 -0
  51. package/dist/ImmunizationConfigurationBase-Di1KO3oW.js +7639 -0
  52. package/dist/ImmunizationConfigurationBase-Di1KO3oW.js.map +1 -0
  53. package/dist/ImmunizationConfigurationBase.css +1 -1
  54. package/dist/ImmunizationConfigurationsList-TZcLDEci.js +369 -0
  55. package/dist/ImmunizationConfigurationsList-TZcLDEci.js.map +1 -0
  56. package/dist/InventoryPage-C_AxSy7A-QLvlL4rE.js +665 -0
  57. package/dist/InventoryPage-C_AxSy7A-QLvlL4rE.js.map +1 -0
  58. package/dist/LanguagesModal-B3NTebYT.js +352 -0
  59. package/dist/LanguagesModal-B3NTebYT.js.map +1 -0
  60. package/dist/ManageDynamicFeature-BU0I45dd.js +4475 -0
  61. package/dist/ManageDynamicFeature-BU0I45dd.js.map +1 -0
  62. package/dist/{ManageEventConfiguration-DV3I5POA.js → ManageEventConfiguration-CoYcpjR9.js} +465 -397
  63. package/dist/ManageEventConfiguration-CoYcpjR9.js.map +1 -0
  64. package/dist/ManageNotification-C5MhV77Q.js +934 -0
  65. package/dist/ManageNotification-C5MhV77Q.js.map +1 -0
  66. package/dist/{ManageRole-CGYfglpo.js → ManageRole-CNZBRKGU.js} +32 -30
  67. package/dist/ManageRole-CNZBRKGU.js.map +1 -0
  68. package/dist/ManageTranslation-vRiptUAP.js +833 -0
  69. package/dist/ManageTranslation-vRiptUAP.js.map +1 -0
  70. package/dist/ManageTranslation.css +1 -1
  71. package/dist/{ManageUser-AY1EUDLI.js → ManageUser-DCFkUMV9.js} +1722 -1586
  72. package/dist/ManageUser-DCFkUMV9.js.map +1 -0
  73. package/dist/MemberProfileCard-BdUNgHRB-VywqQdFF.js +272 -0
  74. package/dist/MemberProfileCard-BdUNgHRB-VywqQdFF.js.map +1 -0
  75. package/dist/MobileAnalytics-pQoE8cG1.js +16888 -0
  76. package/dist/MobileAnalytics-pQoE8cG1.js.map +1 -0
  77. package/dist/MobileMenuManagement-Cf8IZlla.js +108 -0
  78. package/dist/MobileMenuManagement-Cf8IZlla.js.map +1 -0
  79. package/dist/{MobileTypeEventConfigModal-BxLympIO.js → MobileTypeEventConfigModal-BeveaX0C.js} +2 -2
  80. package/dist/MobileTypeEventConfigModal-BeveaX0C.js.map +1 -0
  81. package/dist/NotificationFlywayQuery-BAHVjf6N.js +247 -0
  82. package/dist/NotificationFlywayQuery-BAHVjf6N.js.map +1 -0
  83. package/dist/{NotificationList-C3Vb_jKU.js → NotificationList-DEyRZEuM.js} +109 -110
  84. package/dist/NotificationList-DEyRZEuM.js.map +1 -0
  85. package/dist/{OtherTypeEventConfigModal-BeG1GrUi.js → OtherTypeEventConfigModal-CM6VkdmY.js} +570 -478
  86. package/dist/OtherTypeEventConfigModal-CM6VkdmY.js.map +1 -0
  87. package/dist/PaymentCreatePage-CIVe0P0p-25BQVpOX.js +482 -0
  88. package/dist/PaymentCreatePage-CIVe0P0p-25BQVpOX.js.map +1 -0
  89. package/dist/PaymentsPage-BvPe5Q9F-D2gfziwW.js +157 -0
  90. package/dist/PaymentsPage-BvPe5Q9F-D2gfziwW.js.map +1 -0
  91. package/dist/PermissionsModal-CCYkcKlC.js +151 -0
  92. package/dist/PermissionsModal-CCYkcKlC.js.map +1 -0
  93. package/dist/PickupBatchLinesEditor-DHmcAG23-DL2p6IKJ.js +119 -0
  94. package/dist/PickupBatchLinesEditor-DHmcAG23-DL2p6IKJ.js.map +1 -0
  95. package/dist/PickupCreatePage-CB0Sl0Hb-Mmj7zESG.js +783 -0
  96. package/dist/PickupCreatePage-CB0Sl0Hb-Mmj7zESG.js.map +1 -0
  97. package/dist/PickupsPage-Ctpghavs-CUp4uIZq.js +818 -0
  98. package/dist/PickupsPage-Ctpghavs-CUp4uIZq.js.map +1 -0
  99. package/dist/PmGuard-b10TGXEi-G3N0G_Wg.js +599 -0
  100. package/dist/PmGuard-b10TGXEi-G3N0G_Wg.js.map +1 -0
  101. package/dist/ProductEditPage-C1thoKHu-URQaZ6st.js +1302 -0
  102. package/dist/ProductEditPage-C1thoKHu-URQaZ6st.js.map +1 -0
  103. package/dist/ProductsPage-CupVmOD4-D45a_hf-.js +252 -0
  104. package/dist/ProductsPage-CupVmOD4-D45a_hf-.js.map +1 -0
  105. package/dist/PurchaseCreatePage-YD3NmhPQ-2j4etSjM.js +648 -0
  106. package/dist/PurchaseCreatePage-YD3NmhPQ-2j4etSjM.js.map +1 -0
  107. package/dist/PurchaseRequestDetailPage-Dg_MRY_N-D1bgTEAn.js +1577 -0
  108. package/dist/PurchaseRequestDetailPage-Dg_MRY_N-D1bgTEAn.js.map +1 -0
  109. package/dist/PurchaseRequestsPage-DPAPzpmm-mDH2IrTl.js +279 -0
  110. package/dist/PurchaseRequestsPage-DPAPzpmm-mDH2IrTl.js.map +1 -0
  111. package/dist/PurchasesPage-It1GHiXl-eH4IsF_U.js +293 -0
  112. package/dist/PurchasesPage-It1GHiXl-eH4IsF_U.js.map +1 -0
  113. package/dist/QueryBuilder-CXaBe6sr.js +478 -0
  114. package/dist/QueryBuilder-CXaBe6sr.js.map +1 -0
  115. package/dist/{RoleManagement-BPl2cE27.js → RoleManagement-s8iNx2Mu.js} +131 -142
  116. package/dist/RoleManagement-s8iNx2Mu.js.map +1 -0
  117. package/dist/Roles-BIyiic67.js +14 -0
  118. package/dist/Roles-BIyiic67.js.map +1 -0
  119. package/dist/SaleCreatePage-C9kFmTvm-B3Y0o4CX.js +544 -0
  120. package/dist/SaleCreatePage-C9kFmTvm-B3Y0o4CX.js.map +1 -0
  121. package/dist/SalesPage-D18DCseD-BxktGDRQ.js +315 -0
  122. package/dist/SalesPage-D18DCseD-BxktGDRQ.js.map +1 -0
  123. package/dist/{ServerSyncModal-D_oFpv3C.js → ServerSyncModal-92U3xtqI.js} +84 -85
  124. package/dist/ServerSyncModal-92U3xtqI.js.map +1 -0
  125. package/dist/SettingsPage-VsxI-ano-DcmtUUEj.js +747 -0
  126. package/dist/SettingsPage-VsxI-ano-DcmtUUEj.js.map +1 -0
  127. package/dist/ShowFlywayQuery-D10Olk5Z.js +154 -0
  128. package/dist/ShowFlywayQuery-D10Olk5Z.js.map +1 -0
  129. package/dist/{ShowFlywayQuery-DVRCd384.js → ShowFlywayQuery-D1y_4A1u.js} +161 -121
  130. package/dist/ShowFlywayQuery-D1y_4A1u.js.map +1 -0
  131. package/dist/ShowQueryHistory-DRBKYDKk.js +313 -0
  132. package/dist/ShowQueryHistory-DRBKYDKk.js.map +1 -0
  133. package/dist/StorageUnitsPage-7EqwuMOI-BwUso1Th.js +721 -0
  134. package/dist/StorageUnitsPage-7EqwuMOI-BwUso1Th.js.map +1 -0
  135. package/dist/SubMenu-eEDhZUvh.js +317 -0
  136. package/dist/SubMenu-eEDhZUvh.js.map +1 -0
  137. package/dist/{TableDetails-Cf_YfnY2.js → TableDetails-BtafRxXb.js} +1069 -831
  138. package/dist/TableDetails-BtafRxXb.js.map +1 -0
  139. package/dist/{TableList-D6jnIbnz.js → TableList-Dpo6dO7S.js} +2 -2
  140. package/dist/{TableList-D6jnIbnz.js.map → TableList-Dpo6dO7S.js.map} +1 -1
  141. package/dist/TransactionsPage-DrH53pVS-BkhIGB6C.js +746 -0
  142. package/dist/TransactionsPage-DrH53pVS-BkhIGB6C.js.map +1 -0
  143. package/dist/TransferCreatePage-CuvoMrYH-DTTfHjz-.js +315 -0
  144. package/dist/TransferCreatePage-CuvoMrYH-DTTfHjz-.js.map +1 -0
  145. package/dist/TransfersPage-Cf701t8s-BBbN7cBf.js +476 -0
  146. package/dist/TransfersPage-Cf701t8s-BBbN7cBf.js.map +1 -0
  147. package/dist/{TypeConfiguration-37wp-gsl.js → TypeConfiguration-3O6ABrK-.js} +2 -2
  148. package/dist/{TypeConfiguration-37wp-gsl.js.map → TypeConfiguration-3O6ABrK-.js.map} +1 -1
  149. package/dist/{UserList-Bc8gYxRL.js → UserList-DgPxsnj2.js} +253 -236
  150. package/dist/{UserList-Bc8gYxRL.js.map → UserList-DgPxsnj2.js.map} +1 -1
  151. package/dist/Users-Bpc4Sazd.js +41 -0
  152. package/dist/Users-Bpc4Sazd.js.map +1 -0
  153. package/dist/VialsPage-8oAc1yFv-Cl3FUXBJ.js +321 -0
  154. package/dist/VialsPage-8oAc1yFv-Cl3FUXBJ.js.map +1 -0
  155. package/dist/{WidgetList-Dw_FmbbE.js → WidgetList-D7YuWfDD.js} +2 -2
  156. package/dist/{WidgetList-Dw_FmbbE.js.map → WidgetList-D7YuWfDD.js.map} +1 -1
  157. package/dist/constants-ClZJY2x1-MkSWn6TZ.js +434 -0
  158. package/dist/constants-ClZJY2x1-MkSWn6TZ.js.map +1 -0
  159. package/dist/dashboardLayoutUtils-D1xCAxp3.js +405 -0
  160. package/dist/dashboardLayoutUtils-D1xCAxp3.js.map +1 -0
  161. package/dist/format-UOyOu75i-D0GyylyQ.js +63 -0
  162. package/dist/format-UOyOu75i-D0GyylyQ.js.map +1 -0
  163. package/dist/index.css +1 -1
  164. package/dist/index.js +4 -752
  165. package/dist/index.js.map +1 -1
  166. package/dist/index.lib-Dn8PMkeD.js +862 -0
  167. package/dist/index.lib-Dn8PMkeD.js.map +1 -0
  168. package/dist/useFieldErrors-hDG8ox_x-DbSAzrGo.js +28 -0
  169. package/dist/useFieldErrors-hDG8ox_x-DbSAzrGo.js.map +1 -0
  170. package/dist/validation-BzlHnL-r-CCJm2utQ.js +125 -0
  171. package/dist/validation-BzlHnL-r-CCJm2utQ.js.map +1 -0
  172. package/package.json +5 -4
  173. package/dist/AccessRights-CHu27ZOw.js +0 -1262
  174. package/dist/AccessRights-CHu27ZOw.js.map +0 -1
  175. package/dist/AddEditQueryBuilder-Brdnm6rQ.js +0 -313
  176. package/dist/AddEditQueryBuilder-Brdnm6rQ.js.map +0 -1
  177. package/dist/AddLabelModal-DFllBVcd.js +0 -734
  178. package/dist/AddLabelModal-DFllBVcd.js.map +0 -1
  179. package/dist/AddMenuConfiguration-BSQLl88V.js +0 -6570
  180. package/dist/AddMenuConfiguration-BSQLl88V.js.map +0 -1
  181. package/dist/AddRoleDrawer-CQdzQZLb.js.map +0 -1
  182. package/dist/AppModal-CtG2GjD_.js +0 -428
  183. package/dist/AppModal-CtG2GjD_.js.map +0 -1
  184. package/dist/ChangePasswordModalCore-CDxkeIIM.js.map +0 -1
  185. package/dist/ConditionConfig-DSsgGEXS.js.map +0 -1
  186. package/dist/EventsSkeleton-8iiETGcf.js +0 -76
  187. package/dist/EventsSkeleton-8iiETGcf.js.map +0 -1
  188. package/dist/FeatureMenu-jl7-Tk6y.js +0 -265
  189. package/dist/FeatureMenu-jl7-Tk6y.js.map +0 -1
  190. package/dist/Features-CObdzJp_.js +0 -13
  191. package/dist/Features-CObdzJp_.js.map +0 -1
  192. package/dist/FlywayQuery-Cx2sly6g.js +0 -169
  193. package/dist/FlywayQuery-Cx2sly6g.js.map +0 -1
  194. package/dist/ImmunizationConfigurationBase-DZGqwda2.js +0 -5910
  195. package/dist/ImmunizationConfigurationBase-DZGqwda2.js.map +0 -1
  196. package/dist/ImmunizationConfigurationsList-DdSZicTP.js +0 -344
  197. package/dist/ImmunizationConfigurationsList-DdSZicTP.js.map +0 -1
  198. package/dist/LanguagesModal-D6VfaGrl.js +0 -394
  199. package/dist/LanguagesModal-D6VfaGrl.js.map +0 -1
  200. package/dist/ManageDynamicFeature-BhONvfC_.js +0 -4189
  201. package/dist/ManageDynamicFeature-BhONvfC_.js.map +0 -1
  202. package/dist/ManageEventConfiguration-DV3I5POA.js.map +0 -1
  203. package/dist/ManageRole-CGYfglpo.js.map +0 -1
  204. package/dist/ManageTranslation-B4C9-lWD.js +0 -625
  205. package/dist/ManageTranslation-B4C9-lWD.js.map +0 -1
  206. package/dist/ManageUser-AY1EUDLI.js.map +0 -1
  207. package/dist/MobileMenuManagement-CVAKyKDa.js +0 -112
  208. package/dist/MobileMenuManagement-CVAKyKDa.js.map +0 -1
  209. package/dist/MobileTypeEventConfigModal-BxLympIO.js.map +0 -1
  210. package/dist/NotificationFlywayQuery-BY8Zzml_.js +0 -244
  211. package/dist/NotificationFlywayQuery-BY8Zzml_.js.map +0 -1
  212. package/dist/NotificationList-C3Vb_jKU.js.map +0 -1
  213. package/dist/OtherTypeEventConfigModal-BeG1GrUi.js.map +0 -1
  214. package/dist/QueryBuilder-z7eqfd7D.js +0 -383
  215. package/dist/QueryBuilder-z7eqfd7D.js.map +0 -1
  216. package/dist/RoleManagement-BPl2cE27.js.map +0 -1
  217. package/dist/ServerSyncModal-D_oFpv3C.js.map +0 -1
  218. package/dist/ShowFlywayQuery-DVRCd384.js.map +0 -1
  219. package/dist/ShowFlywayQuery-tj42YQAS.js +0 -130
  220. package/dist/ShowFlywayQuery-tj42YQAS.js.map +0 -1
  221. package/dist/ShowQueryHistory-BDN0tzHg.js +0 -190
  222. package/dist/ShowQueryHistory-BDN0tzHg.js.map +0 -1
  223. package/dist/SubMenu-DYxAPH2Z.js +0 -191
  224. package/dist/SubMenu-DYxAPH2Z.js.map +0 -1
  225. package/dist/TableDetails-Cf_YfnY2.js.map +0 -1
  226. package/dist/Users-CsJ08Kjm.js +0 -40
  227. package/dist/Users-CsJ08Kjm.js.map +0 -1
  228. package/dist/dashboardLayoutUtils-Bt5HA96J.js +0 -265
  229. package/dist/dashboardLayoutUtils-Bt5HA96J.js.map +0 -1
@@ -1,57 +1,58 @@
1
- import { jsxs as r, Fragment as nt, jsx as t } from "react/jsx-runtime";
2
- import { b as it, c as rt, d as lt, M as ot, u as st, s as ct } from "./EventsSkeleton-8iiETGcf.js";
3
- import { retrieveAllNotifications as dt, getReportsList as ut } from "@/common/services/GlobalApis";
4
- import { showToast as F } from "@/common/toaster/toaster";
5
- import Ce from "@/views/custom-components/CustomTextArea";
6
- import _ from "@/views/custom-components/CustomTextField";
7
- import { yupResolver as mt } from "@hookform/resolvers/yup";
8
- import ft from "@/views/custom-components/CustomDropdown";
9
- import { Card as gt, CardHeader as ht, CardContent as pt, FormControl as T, Typography as c, Box as x, Select as B, MenuItem as p, Divider as G, Button as W, TableContainer as vt, Paper as yt, Table as bt, TableHead as Ct, TableRow as Te, TableCell as O, TableBody as Tt, CardActions as Nt } from "@mui/material";
10
- import h from "@mui/material/Grid2";
11
- import { useRef as Ne, useState as u, useEffect as Ee, Suspense as we, lazy as X } from "react";
12
- import { useForm as Et, Controller as Y } from "react-hook-form";
13
- import { useNavigate as wt } from "react-router";
14
- import { useParams as xt } from "react-router-dom";
15
- import * as I from "yup";
16
- import { useTranslateProvider as It } from "@/common/languageTranslator/TranslationContext";
17
- import Mt from "@/hooks/useTrackEvent";
1
+ import { jsxs as l, Fragment as ct, jsx as t } from "react/jsx-runtime";
2
+ import { b as dt, c as ut, d as mt, u as ft, s as gt } from "./EventConfig-BmLemzX3.js";
3
+ import { retrieveAllNotifications as ht, getReportsList as pt } from "@/common/services/GlobalApis";
4
+ import { showToast as Y } from "@/common/toaster/toaster";
5
+ import Ie from "@/views/custom-components/CustomTextArea";
6
+ import k from "@/views/custom-components/CustomTextField";
7
+ import { yupResolver as vt } from "@hookform/resolvers/yup";
8
+ import yt from "@/views/custom-components/CustomDropdown";
9
+ import { Card as bt, CardHeader as Ct, CardContent as Nt, FormControl as E, Typography as m, Box as w, Select as H, MenuItem as b, Divider as ae, Button as j, TableContainer as Tt, Paper as Et, Table as wt, TableHead as xt, TableRow as Me, TableCell as _, TableBody as It, CardActions as Mt } from "@mui/material";
10
+ import v from "@mui/material/Grid2";
11
+ import { useRef as De, useState as g, useEffect as Re, Suspense as qe, lazy as ne } from "react";
12
+ import { useForm as Dt, Controller as V } from "react-hook-form";
13
+ import { useNavigate as Rt } from "react-router";
14
+ import { useParams as qt } from "react-router-dom";
15
+ import * as x from "yup";
16
+ import { useTranslateProvider as St } from "@/common/languageTranslator/TranslationContext";
17
+ import At from "@/hooks/useTrackEvent";
18
+ import { M as Ot } from "./EventsSkeleton-BIcPks4T.js";
18
19
  import { FontAwesomeIcon as $ } from "@fortawesome/react-fontawesome";
19
- import { faPen as Dt, faTrash as xe, faPlus as Ie } from "@fortawesome/free-solid-svg-icons";
20
- import './ManageEventConfiguration.css';const Rt = X(() => import("./ConditionConfig-DSsgGEXS.js")), qt = X(
21
- () => import("./MobileTypeEventConfigModal-BxLympIO.js")
22
- ), St = X(
23
- () => import("./OtherTypeEventConfigModal-BeG1GrUi.js")
20
+ import { faPen as _t, faTrash as Se, faPlus as Ae } from "@fortawesome/free-solid-svg-icons";
21
+ import './ManageEventConfiguration.css';const Lt = ne(() => import("./ConditionConfig-Ddz9halE.js")), zt = ne(
22
+ () => import("./MobileTypeEventConfigModal-BeveaX0C.js")
23
+ ), kt = ne(
24
+ () => import("./OtherTypeEventConfigModal-CM6VkdmY.js")
24
25
  );
25
- function Qt() {
26
- var ve, ye, be;
27
- const { translate: l } = It(), Z = Ne(null), ee = Ne(!1), { id: A } = xt(), te = wt(), [z, Me] = u(null), [ae, De] = u(null), [ne, Re] = u({}), [v, M] = u(
26
+ function ia() {
27
+ var Te, Ee, we;
28
+ const { translate: o } = St(), ie = De(null), re = De(!1), { id: O } = qt(), le = Rt(), [U, Oe] = g(null), [oe, _e] = g(null), [se, Le] = g({}), [C, I] = g(
28
29
  []
29
- ), [ie, qe] = u(null), [H, Se] = u(null), [Ae, re] = u(null), [Oe, Le] = u(null), [D, L] = u(null), [_e, le] = u(null), [$e, ze] = u(null), [R, q] = u(null), [oe, ke] = u(!1), [se, ce] = u(!1), [de, j] = u(!1), [k, S] = u([]), [Ue, U] = u(!1), [Pe, Fe] = u([]), Be = window.getComputedStyle(document.body).lineHeight, ue = () => ke(!oe), We = I.object().shape({
30
- name: I.string().required("Enter Name"),
31
- eventType: I.string().required("Select Event Type"),
32
- recursionInterval: I.number().typeError("Recursion Interval must be a number").when([], {
33
- is: () => m === "RECURSION",
30
+ ), [ce, ze] = g(null), [K, ke] = g(null), [$e, de] = g(null), [Ue, Pe] = g(null), [M, L] = g(null), [We, ue] = g(null), [Be, Fe] = g(null), [D, R] = g(null), [me, Ye] = g(!1), [fe, ge] = g(!1), [he, Q] = g(!1), [P, q] = g([]), [He, W] = g(!1), [je, Ve] = g([]), Ke = window.getComputedStyle(document.body).lineHeight, pe = () => Ye(!me), Qe = x.object().shape({
31
+ name: x.string().required("Enter Name"),
32
+ eventType: x.string().required("Select Event Type"),
33
+ recursionInterval: x.number().typeError("Recursion Interval must be a number").when([], {
34
+ is: () => h === "RECURSION",
34
35
  then: (e) => e.required("Recursion Interval is required").moreThan(0, "Recursion Interval must be greater than or equal to 1").lessThan(1441, "Recursion Interval must be less than or equal to 1440"),
35
36
  otherwise: (e) => e.notRequired()
36
37
  }),
37
- trigerWhen: I.string().test(
38
+ trigerWhen: x.string().test(
38
39
  "is-required",
39
40
  "trigerWhen is required",
40
41
  function(e) {
41
- return m === "TIMMER_BASED" ? !!e : !0;
42
+ return h === "TIMMER_BASED" ? !!e : !0;
42
43
  }
43
44
  ),
44
- day: I.string().test("is-required", "day is required", function(e) {
45
- return m === "TIMMER_BASED" && (f === "AFTER" || f === "MONTHLY") ? !!e : !0;
45
+ day: x.string().test("is-required", "day is required", function(e) {
46
+ return h === "TIMMER_BASED" && (p === "AFTER" || p === "MONTHLY") ? !!e : !0;
46
47
  }),
47
- hour: I.string().test(
48
+ hour: x.string().test(
48
49
  "is-required",
49
50
  "hour is required",
50
51
  function(e) {
51
- return m === "TIMMER_BASED" && (f === "AFTER" || f === "MONTHLY" || f === "DAILY") ? !!e : !0;
52
+ return h === "TIMMER_BASED" && (p === "AFTER" || p === "MONTHLY" || p === "DAILY") ? !!e : !0;
52
53
  }
53
54
  ),
54
- minute: I.string().notRequired()
55
+ minute: x.string().notRequired()
55
56
  // notificationConfigDetails: Yup.array().of(
56
57
  // Yup.object().shape({
57
58
  // query: Yup.string().required('Query is required'), // Ensure query is present
@@ -60,15 +61,15 @@ function Qt() {
60
61
  // })
61
62
  // ),
62
63
  }), {
63
- control: C,
64
- handleSubmit: Ye,
65
- setValue: P,
66
- setError: V,
67
- clearErrors: K,
68
- getValues: me,
69
- watch: fe,
70
- formState: { errors: s }
71
- } = Et({
64
+ control: N,
65
+ handleSubmit: Je,
66
+ setValue: B,
67
+ setError: J,
68
+ clearErrors: G,
69
+ getValues: ve,
70
+ watch: ye,
71
+ formState: { errors: d }
72
+ } = Dt({
72
73
  defaultValues: {
73
74
  name: "",
74
75
  description: "",
@@ -76,192 +77,259 @@ function Qt() {
76
77
  recursionInterval: 0,
77
78
  minute: 0
78
79
  },
79
- resolver: mt(We),
80
+ resolver: vt(Qe),
80
81
  mode: "onChange"
81
- }), m = fe("eventType");
82
- let f = fe("trigerWhen");
83
- Ee(() => {
84
- let e = Z.current;
82
+ }), h = ye("eventType");
83
+ let p = ye("trigerWhen");
84
+ Re(() => {
85
+ let e = ie.current;
85
86
  return () => {
86
- Q("conversion_event", {
87
+ Z("conversion_event", {
87
88
  form: e,
88
89
  form_name: "Manage Event Configuration",
89
- submit: ee.current
90
+ submit: re.current
90
91
  });
91
92
  };
92
93
  }, []);
93
- const He = async (e) => {
94
+ const Ge = async (e) => {
94
95
  try {
95
- if (v.length > 0) {
96
- e.minute = Number(e.minute || 0), e.notificationConfigDetails = v;
97
- const a = m === "TIMMER_BASED", i = m === "FORM_SUBMITTED", n = m === "MANUAL", o = m === "RECURSION";
98
- a || (delete e.trigerWhen, delete e.day, delete e.hour, delete e.minute), i || delete e.formTypeId, !i && !n && (delete e.eventTypeDetailCode, delete e.eventTypeDetailId), o ? (delete e.formTypeId, e.trigerWhen = "RECURSION") : delete e.recursionInterval;
99
- const g = ["AFTER", "MONTHLY", "WEEKLY"], E = ["AFTER", "MONTHLY", "DAILY", "WEEKLY"];
100
- g.includes(f) || delete e.day, E.includes(f) || (delete e.day, delete e.hour), f === "IMMEDIATELY" && (delete e.day, delete e.hour, delete e.minute);
101
- const w = v.map((y) => {
102
- var d;
96
+ if (C.length > 0) {
97
+ e.minute = Number(e.minute || 0), e.notificationConfigDetails = C;
98
+ const a = h === "TIMMER_BASED", i = h === "FORM_SUBMITTED", n = h === "MANUAL", c = h === "RECURSION";
99
+ a || (delete e.trigerWhen, delete e.day, delete e.hour, delete e.minute), i || delete e.formTypeId, !i && !n && (delete e.eventTypeDetailCode, delete e.eventTypeDetailId), c ? (delete e.formTypeId, e.trigerWhen = "RECURSION") : delete e.recursionInterval;
100
+ const y = ["AFTER", "MONTHLY", "WEEKLY"], T = ["AFTER", "MONTHLY", "DAILY", "WEEKLY"];
101
+ y.includes(p) || delete e.day, T.includes(p) || (delete e.day, delete e.hour), p === "IMMEDIATELY" && (delete e.day, delete e.hour, delete e.minute);
102
+ const S = C.map((s) => {
103
+ var r;
103
104
  return {
104
- ...y,
105
- conditions: (d = y.conditions) == null ? void 0 : d.map((b) => ({
106
- ...b,
107
- notificaitonConfigsType: b.notificaitonConfigsType ? b.notificaitonConfigsType.map((N) => ({
108
- ...N,
109
- queryCode: N.queryCode === "" ? null : N.queryCode
110
- })) : b.notificaitonConfigsType
105
+ ...s,
106
+ conditions: (r = s.conditions) == null ? void 0 : r.map((u) => ({
107
+ ...u,
108
+ notificaitonConfigsType: u.notificaitonConfigsType ? u.notificaitonConfigsType.map((f) => ({
109
+ ...f,
110
+ queryCode: f.queryCode === "" ? null : f.queryCode
111
+ })) : u.notificaitonConfigsType
111
112
  }))
112
113
  };
113
114
  });
114
- e.notificationConfigDetails = w, A ? await st(e) : await ct(e), Q("button_click", {
115
+ e.notificationConfigDetails = S, O ? await ft(e) : await gt(e), Z("button_click", {
115
116
  button_name: "manageeventconfiguration-save-button",
116
117
  button_type: "submit",
117
118
  button_id: "manageeventconfiguration-save-button"
118
- }), F({
119
- message: A ? "Event Configuration Updated successfully" : "submit successfully",
119
+ }), Y({
120
+ message: O ? "Event Configuration Updated successfully" : "submit successfully",
120
121
  type: "success"
121
- }), ee.current = !0, te("/ui/medplat/notification/all");
122
+ }), re.current = !0, le("/ui/medplat/notification/all");
122
123
  } else
123
- F({
124
+ Y({
124
125
  message: "Please add atleast query / condition for the configuration",
125
126
  type: "warn"
126
127
  });
127
128
  } catch {
128
- F({ message: "submit problem", type: "error" }), U((a) => !a);
129
+ Y({ message: "submit problem", type: "error" }), W((a) => !a);
129
130
  }
130
131
  };
131
- Ee(() => {
132
- je();
132
+ Re(() => {
133
+ Xe();
133
134
  }, []);
134
- const je = async () => {
135
+ const Xe = async () => {
135
136
  var e, a, i, n;
136
137
  try {
137
- U((d) => !d);
138
- const o = await it({ is_active: !0 });
139
- Me(o == null ? void 0 : o.data);
140
- const g = await rt();
141
- De(g == null ? void 0 : g.data);
142
- const E = await dt(!0);
143
- let w = {};
144
- (e = E == null ? void 0 : E.data) == null || e.forEach((d) => {
145
- w[d == null ? void 0 : d.id] = d == null ? void 0 : d.notificationName;
146
- }), Re(w);
147
- const { data: y } = await ut();
148
- if (Fe(y || []), A) {
149
- const d = await lt(A);
150
- (i = (a = d == null ? void 0 : d.data) == null ? void 0 : a.notificationConfigDetails) == null || i.forEach((N) => {
151
- ge(N);
138
+ W((r) => !r);
139
+ const c = await dt({ is_active: !0 });
140
+ Oe(c == null ? void 0 : c.data);
141
+ const y = await ut();
142
+ _e(y == null ? void 0 : y.data);
143
+ const T = await ht(!0);
144
+ let S = {};
145
+ (e = T == null ? void 0 : T.data) == null || e.forEach((r) => {
146
+ S[r == null ? void 0 : r.id] = r == null ? void 0 : r.notificationName;
147
+ }), Le(S);
148
+ const { data: s } = await pt();
149
+ if (Ve(s || []), O) {
150
+ const r = await mt(O);
151
+ (i = (a = r == null ? void 0 : r.data) == null ? void 0 : a.notificationConfigDetails) == null || i.forEach((f) => {
152
+ be(f);
152
153
  });
153
- let b = d == null ? void 0 : d.data;
154
- (n = Object.keys(b)) == null || n.forEach((N) => {
155
- b[N] !== void 0 && b[N] !== null && P(N, b[N]);
156
- }), M((b == null ? void 0 : b.notificationConfigDetails) || []);
154
+ let u = r == null ? void 0 : r.data;
155
+ (n = Object.keys(u)) == null || n.forEach((f) => {
156
+ u[f] !== void 0 && u[f] !== null && B(f, u[f]);
157
+ }), I((u == null ? void 0 : u.notificationConfigDetails) || []);
157
158
  }
158
- U((d) => !d);
159
- } catch (o) {
160
- F({
159
+ W((r) => !r);
160
+ } catch (c) {
161
+ Y({
161
162
  message: "Error in loading manage events",
162
- type: `Error:${o == null ? void 0 : o.message}`
163
- }), U((g) => !g);
163
+ type: `Error:${c == null ? void 0 : c.message}`
164
+ }), W((y) => !y);
164
165
  }
165
- }, ge = (e) => {
166
+ }, be = (e) => {
166
167
  e.implicitParam = ["#resourceId#"];
167
- const a = /\bFROM\b/gi, i = /\bSELECT\b/gi;
168
+ const a = [
169
+ "from",
170
+ "where",
171
+ "group",
172
+ "having",
173
+ "order",
174
+ "limit",
175
+ "offset",
176
+ "union",
177
+ "intersect",
178
+ "except",
179
+ "window",
180
+ "fetch",
181
+ "into",
182
+ "returning"
183
+ ];
168
184
  if (e != null && e.query) {
169
- const n = (e.query.match(a) || []).length, o = (e.query.match(i) || []).length;
170
- let g;
171
- if (o > 0) {
172
- n > 1 && n === o ? g = e.query.substring(6, e.query.search(/\bfrom\b(?!(.|\n)*(from))/i)).match(/(\w*\(.*?\) as \w*|[^\(\),]+)(?=\s*,|\s*$)/g) : n !== o ? g = e.query.substring(6).match(/(\w*\(.*?\) as \w*|[^\(\),]+)(?=\s*,|\s*$)/gi) : n === 1 && n === o ? g = e.query.substring(6, e.query.toLowerCase().indexOf("from")).match(/(\w*\(.*?\) as \w*|[^\(\),]+)(?=\s*,|\s*$)/gi) : g = e.query.substring(6).match(/(\w*\(.*?\) as \w*|[^\(\),]+)(?=\s*,|\s*$)/gi);
173
- const E = g == null ? void 0 : g.filter(
174
- (w) => w.trim().length > 0
175
- );
176
- E == null || E.forEach((w) => {
177
- let y = w.trim();
178
- if (y.toLowerCase().indexOf("as") === 0 && (y = w), y.endsWith(";") && (y = y.slice(0, -1)), y !== "*") {
179
- const d = y.toLowerCase().lastIndexOf(" as ");
180
- if (d >= 0) {
181
- const b = y.substring(d + 4).trim();
182
- e.implicitParam.push("#" + b + "#");
185
+ let i = "", n = null;
186
+ for (let s = 0; s < e.query.length; s++) {
187
+ const r = e.query[s], u = e.query[s + 1];
188
+ if (n)
189
+ i += r, r === n && (n = null);
190
+ else if (r === "'" || r === '"')
191
+ n = r, i += r;
192
+ else if (r === "-" && u === "-") {
193
+ for (; s < e.query.length && e.query[s] !== `
194
+ `; )
195
+ s++;
196
+ i += `
197
+ `;
198
+ } else if (r === "/" && u === "*") {
199
+ for (s += 2; s < e.query.length && !(e.query[s] === "*" && e.query[s + 1] === "/"); )
200
+ s++;
201
+ s++, i += " ";
202
+ } else
203
+ i += r;
204
+ }
205
+ let c = 0;
206
+ n = null;
207
+ let y = -1, T = -1;
208
+ const S = [];
209
+ for (let s = 0; s < i.length; s++) {
210
+ const r = i[s];
211
+ if (n)
212
+ r === n && (n = null);
213
+ else if (r === "'" || r === '"')
214
+ n = r;
215
+ else if (r === "(")
216
+ c++;
217
+ else if (r === ")")
218
+ c--;
219
+ else if (c === 0) {
220
+ if (r === ";" && y >= 0) {
221
+ T = s;
222
+ break;
223
+ } else if (r === "," && y >= 0)
224
+ S.push(s);
225
+ else if (/[a-z_]/i.test(r) && !/[\w.]/.test(i[s - 1] || "")) {
226
+ const u = (i.slice(s).match(/^[a-z_]+/i) || [""])[0];
227
+ if (y < 0)
228
+ u.toLowerCase() === "select" && (y = s + u.length), s += u.length - 1;
229
+ else if (a.includes(u.toLowerCase())) {
230
+ T = s;
231
+ break;
183
232
  } else
184
- e.implicitParam.push("#" + y + "#");
233
+ s += u.length - 1;
234
+ }
235
+ }
236
+ }
237
+ if (y >= 0) {
238
+ T < 0 && (T = i.length);
239
+ const s = [];
240
+ let r = y;
241
+ S.filter((u) => u < T).forEach((u) => {
242
+ s.push(i.substring(r, u)), r = u + 1;
243
+ }), s.push(i.substring(r, T)), s.forEach((u) => {
244
+ const f = u.replace(/^\s*(distinct\s+on\s*\([\s\S]*?\)|distinct|all)\s+/i, "").trim();
245
+ if (f && f !== "*" && !f.endsWith(".*")) {
246
+ let ee = 0, F = null, te = -1;
247
+ for (let z = 0; z < f.length; z++) {
248
+ const A = f[z];
249
+ F ? A === F && (F = null) : A === "'" || A === '"' ? F = A : A === "(" ? ee++ : A === ")" ? ee-- : ee === 0 && /\s/.test(A) && /^as\s/i.test(f.substring(z + 1)) && (te = z + 1);
250
+ }
251
+ const xe = (te >= 0 ? f.substring(te + 3).trim() : f.replace(/\s+/g, " ").trim()).replace(/^"|"$/g, "");
252
+ /^[a-z_][\w$]*(\.[a-z_][\w$]*)*$/i.test(xe) && e.implicitParam.push("#" + xe + "#");
185
253
  }
186
254
  });
187
255
  }
188
256
  }
189
- }, Ve = (e) => {
190
- const a = v == null ? void 0 : v.filter(
257
+ }, Ze = (e) => {
258
+ const a = C == null ? void 0 : C.filter(
191
259
  (i, n) => n !== e
192
260
  );
193
- M(a);
194
- }, Ke = (e, a) => {
195
- const i = [...v], n = i[e].conditions.filter((o, g) => g !== a);
196
- i[e].conditions = n, M(i);
197
- }, J = async (e, a, i, n) => {
198
- Se(e), qe(a), i ? (re(i), le(!0), L(JSON.parse(JSON.stringify(i))), S((i == null ? void 0 : i.notificaitonConfigsType) || []), Le(n)) : (re({}), L({}), S([]), le(!1)), q({}), ue();
199
- }, Je = (e, a) => {
200
- const i = [...v];
201
- i[e].query = a, M(i);
202
- }, Qe = async () => {
203
- let e = [...v], a = !0;
204
- v.forEach((i, n) => {
261
+ I(a);
262
+ }, et = (e, a) => {
263
+ const i = [...C], n = i[e].conditions.filter((c, y) => y !== a);
264
+ i[e].conditions = n, I(i);
265
+ }, X = async (e, a, i, n) => {
266
+ ke(e), ze(a), i ? (de(i), ue(!0), L(JSON.parse(JSON.stringify(i))), q((i == null ? void 0 : i.notificaitonConfigsType) || []), Pe(n)) : (de({}), L({}), q([]), ue(!1)), R({}), pe();
267
+ }, tt = (e, a) => {
268
+ const i = [...C];
269
+ i[e].query = a, I(i);
270
+ }, at = async () => {
271
+ let e = [...C], a = !0;
272
+ C.forEach((i, n) => {
205
273
  if (i.query === "") {
206
274
  a = !1;
207
- const o = `notificationConfigDetails.${n}.query`;
208
- V(o, { type: "manual", message: "Query Required" });
275
+ const c = `notificationConfigDetails.${n}.query`;
276
+ J(c, { type: "manual", message: "Query Required" });
209
277
  }
210
- }), a && (e.push({ query: "", conditions: [], queryParam: null }), M(e));
211
- }, he = async (e, a) => {
212
- e ? (e.index = a, ze(e), q({
278
+ }), a && (e.push({ query: "", conditions: [], queryParam: null }), I(e));
279
+ }, Ce = async (e, a) => {
280
+ e ? (e.index = a, Fe(e), R({
213
281
  ...JSON.parse(JSON.stringify(e)),
214
- implicitParam: H.implicitParam
215
- }), ce(!0)) : (q({ ...R, implicitParam: H.implicitParam }), ce(!1)), Ge();
216
- }, Ge = () => {
217
- j((e) => !e);
218
- }, pe = (e) => {
219
- if (se) {
220
- const a = k.map((i, n) => n === e.index ? { ...i, ...e } : i);
221
- S(a);
282
+ implicitParam: K.implicitParam
283
+ }), ge(!0)) : (R({ ...D, implicitParam: K.implicitParam }), ge(!1)), nt();
284
+ }, nt = () => {
285
+ Q((e) => !e);
286
+ }, Ne = (e) => {
287
+ if (fe) {
288
+ const a = P.map((i, n) => n === e.index ? { ...i, ...e } : i);
289
+ q(a);
222
290
  } else
223
- S([...k, e]);
224
- et(e);
225
- }, Xe = (e) => {
226
- S(
291
+ q([...P, e]);
292
+ lt(e);
293
+ }, it = (e) => {
294
+ q(
227
295
  (a) => a.filter((i, n) => n !== e)
228
296
  );
229
- }, Ze = (e) => {
230
- he(k[e], e);
231
- }, et = (e) => {
232
- let a = { ...D };
233
- D.notificaitonConfigsType || (a.notificaitonConfigsType = []), se ? a.notificaitonConfigsType[$e.index] = e : a.notificaitonConfigsType.push(e), L(a), q({});
234
- }, Q = Mt(), tt = (e) => {
235
- if (_e) {
236
- const a = [...v];
237
- L({ ...D, ...e });
238
- let i = { ...D, ...e };
239
- a[ie].conditions[Oe] = i, M(a), S([]);
297
+ }, rt = (e) => {
298
+ Ce(P[e], e);
299
+ }, lt = (e) => {
300
+ let a = { ...M };
301
+ M.notificaitonConfigsType || (a.notificaitonConfigsType = []), fe ? a.notificaitonConfigsType[Be.index] = e : a.notificaitonConfigsType.push(e), L(a), R({});
302
+ }, Z = At(), ot = (e) => {
303
+ if (We) {
304
+ const a = [...C];
305
+ L({ ...M, ...e });
306
+ let i = { ...M, ...e };
307
+ a[ce].conditions[Ue] = i, I(a), q([]);
240
308
  } else {
241
- const a = [...v];
242
- L({ ...D, ...e });
243
- let i = { ...D, ...e };
244
- a[ie].conditions.push(i), M(a), S([]);
309
+ const a = [...C];
310
+ L({ ...M, ...e });
311
+ let i = { ...M, ...e };
312
+ a[ce].conditions.push(i), I(a), q([]);
245
313
  }
246
- }, at = (e) => {
247
- q({ ...R, ...e });
314
+ }, st = (e) => {
315
+ R({ ...D, ...e });
248
316
  };
249
- return /* @__PURE__ */ r(nt, { children: [
250
- /* @__PURE__ */ t(ot, { isLoading: Ue, children: /* @__PURE__ */ r(
251
- gt,
317
+ return /* @__PURE__ */ l(ct, { children: [
318
+ /* @__PURE__ */ t(Ot, { isLoading: He, children: /* @__PURE__ */ l(
319
+ bt,
252
320
  {
253
321
  className: "manage-eventConfiguration-type-body",
254
322
  component: "form",
255
- ref: Z,
256
- onSubmit: Ye(He),
323
+ ref: ie,
324
+ onSubmit: Je(Ge),
257
325
  "data-testid": "manageeventconfiguration-form",
258
326
  children: [
259
327
  /* @__PURE__ */ t(
260
- ht,
328
+ Ct,
261
329
  {
262
330
  className: "p-2.5 px-5 flex border-b text-customBlue",
263
- subheader: l(
264
- `${A ? "UPDATE" : "ADD"} EVENT CONFIGURATION`
331
+ subheader: o(
332
+ `${O ? "UPDATE" : "ADD"} EVENT CONFIGURATION`
265
333
  ),
266
334
  slotProps: {
267
335
  subheader: { className: "font-medium text-lg text-customBlue" }
@@ -269,26 +337,26 @@ function Qt() {
269
337
  "data-testid": "manageeventconfiguration-cardheader-subheader"
270
338
  }
271
339
  ),
272
- /* @__PURE__ */ r(pt, { "data-testid": "manageeventconfiguration-cardcontent", children: [
273
- /* @__PURE__ */ r(h, { container: !0, spacing: 2, children: [
340
+ /* @__PURE__ */ l(Nt, { "data-testid": "manageeventconfiguration-cardcontent", children: [
341
+ /* @__PURE__ */ l(v, { container: !0, spacing: 2, children: [
274
342
  /* @__PURE__ */ t(
275
- h,
343
+ v,
276
344
  {
277
345
  item: !0,
278
346
  size: { xs: 12, sm: 6 },
279
347
  "data-testid": "manageeventconfiguration-name-field",
280
- children: /* @__PURE__ */ r(T, { variant: "outlined", className: "w-full", children: [
281
- /* @__PURE__ */ r(c, { variant: "body2", children: [
282
- l("Name"),
348
+ children: /* @__PURE__ */ l(E, { variant: "outlined", className: "w-full", children: [
349
+ /* @__PURE__ */ l(m, { variant: "body2", children: [
350
+ o("Name"),
283
351
  /* @__PURE__ */ t("span", { className: "text-red-500 ml-1", children: "*" })
284
352
  ] }),
285
- /* @__PURE__ */ t(x, { className: "w-full", children: /* @__PURE__ */ t(
286
- _,
353
+ /* @__PURE__ */ t(w, { className: "w-full", children: /* @__PURE__ */ t(
354
+ k,
287
355
  {
288
- control: C,
356
+ control: N,
289
357
  id: "name",
290
358
  name: "name",
291
- errors: s,
359
+ errors: d,
292
360
  label: "",
293
361
  size: "small",
294
362
  dataTestId: "manageeventconfiguration-name-textfield"
@@ -298,20 +366,20 @@ function Qt() {
298
366
  }
299
367
  ),
300
368
  /* @__PURE__ */ t(
301
- h,
369
+ v,
302
370
  {
303
371
  item: !0,
304
372
  size: { xs: 12, sm: 6 },
305
373
  "data-testid": "manageeventconfiguration-description-field",
306
- children: /* @__PURE__ */ r(T, { variant: "outlined", className: "w-full", children: [
307
- /* @__PURE__ */ t(c, { variant: "body2", children: l("Description") }),
308
- /* @__PURE__ */ t(x, { className: "w-full", children: /* @__PURE__ */ t(
309
- Ce,
374
+ children: /* @__PURE__ */ l(E, { variant: "outlined", className: "w-full", children: [
375
+ /* @__PURE__ */ t(m, { variant: "body2", children: o("Description") }),
376
+ /* @__PURE__ */ t(w, { className: "w-full", children: /* @__PURE__ */ t(
377
+ Ie,
310
378
  {
311
- control: C,
379
+ control: N,
312
380
  id: "description",
313
381
  name: "description",
314
- errors: s,
382
+ errors: d,
315
383
  label: "",
316
384
  minRows: 2,
317
385
  "data-testid": "manageeventconfiguration-description-textarea"
@@ -321,73 +389,73 @@ function Qt() {
321
389
  }
322
390
  ),
323
391
  /* @__PURE__ */ t(
324
- h,
392
+ v,
325
393
  {
326
394
  item: !0,
327
395
  size: { xs: 12, sm: 6 },
328
396
  "data-testid": "manageeventconfiguration-eventtype-field",
329
- children: /* @__PURE__ */ r(T, { variant: "outlined", className: "w-full", children: [
330
- /* @__PURE__ */ r(c, { variant: "body2", children: [
331
- l("Event Type"),
397
+ children: /* @__PURE__ */ l(E, { variant: "outlined", className: "w-full", children: [
398
+ /* @__PURE__ */ l(m, { variant: "body2", children: [
399
+ o("Event Type"),
332
400
  /* @__PURE__ */ t("span", { className: "text-red-500 ml-1", children: "*" })
333
401
  ] }),
334
- /* @__PURE__ */ r(x, { className: "w-full", children: [
402
+ /* @__PURE__ */ l(w, { className: "w-full", children: [
335
403
  /* @__PURE__ */ t(
336
- Y,
404
+ V,
337
405
  {
338
406
  name: "eventType",
339
- control: C,
407
+ control: N,
340
408
  defaultValue: "",
341
409
  className: "w-full",
342
- render: ({ field: e }) => /* @__PURE__ */ r(
343
- B,
410
+ render: ({ field: e }) => /* @__PURE__ */ l(
411
+ H,
344
412
  {
345
413
  className: "w-full",
346
414
  labelId: "event-type-label",
347
415
  id: "reportgroup",
348
416
  ...e,
349
- error: s.eventType,
417
+ error: d.eventType,
350
418
  size: "small",
351
419
  "data-testid": "manageeventconfiguration-eventtype-select",
352
420
  children: [
353
- /* @__PURE__ */ t(p, { value: "FORM_SUBMITTED", children: /* @__PURE__ */ t(c, { variant: "body2", children: l("Form Submitted") }) }),
354
- /* @__PURE__ */ t(p, { value: "TIMMER_BASED", children: /* @__PURE__ */ t(c, { variant: "body2", children: l("Timer Based") }) }),
355
- /* @__PURE__ */ t(p, { value: "MANUAL", children: /* @__PURE__ */ t(c, { variant: "body2", children: l("Manual") }) }),
356
- /* @__PURE__ */ t(p, { value: "RECURSION", children: /* @__PURE__ */ t(c, { variant: "body2", children: l("Recursion") }) })
421
+ /* @__PURE__ */ t(b, { value: "FORM_SUBMITTED", children: /* @__PURE__ */ t(m, { variant: "body2", children: o("Form Submitted") }) }),
422
+ /* @__PURE__ */ t(b, { value: "TIMMER_BASED", children: /* @__PURE__ */ t(m, { variant: "body2", children: o("Timer Based") }) }),
423
+ /* @__PURE__ */ t(b, { value: "MANUAL", children: /* @__PURE__ */ t(m, { variant: "body2", children: o("Manual") }) }),
424
+ /* @__PURE__ */ t(b, { value: "RECURSION", children: /* @__PURE__ */ t(m, { variant: "body2", children: o("Recursion") }) })
357
425
  ]
358
426
  }
359
427
  )
360
428
  }
361
429
  ),
362
- (s == null ? void 0 : s.eventType) && /* @__PURE__ */ t(
430
+ (d == null ? void 0 : d.eventType) && /* @__PURE__ */ t(
363
431
  "p",
364
432
  {
365
433
  className: "error-helper-manage-event",
366
434
  "data-testid": "custom-error-message",
367
- children: (ve = s == null ? void 0 : s.eventType) == null ? void 0 : ve.message
435
+ children: (Te = d == null ? void 0 : d.eventType) == null ? void 0 : Te.message
368
436
  }
369
437
  )
370
438
  ] })
371
439
  ] })
372
440
  }
373
441
  ),
374
- m === "FORM_SUBMITTED" && /* @__PURE__ */ t(
375
- h,
442
+ h === "FORM_SUBMITTED" && /* @__PURE__ */ t(
443
+ v,
376
444
  {
377
445
  item: !0,
378
446
  size: { xs: 12, sm: 6 },
379
447
  "data-testid": "manageeventconfiguration-formtype-field",
380
- children: /* @__PURE__ */ r(T, { variant: "outlined", className: "w-full", children: [
381
- /* @__PURE__ */ t(c, { variant: "body2", children: l("Form Type") }),
382
- /* @__PURE__ */ t(x, { className: "w-full", children: /* @__PURE__ */ t(
383
- Y,
448
+ children: /* @__PURE__ */ l(E, { variant: "outlined", className: "w-full", children: [
449
+ /* @__PURE__ */ t(m, { variant: "body2", children: o("Form Type") }),
450
+ /* @__PURE__ */ t(w, { className: "w-full", children: /* @__PURE__ */ t(
451
+ V,
384
452
  {
385
453
  className: "w-full",
386
454
  name: "formTypeId",
387
- control: C,
455
+ control: N,
388
456
  defaultValue: "",
389
- render: ({ field: e }) => /* @__PURE__ */ r(
390
- B,
457
+ render: ({ field: e }) => /* @__PURE__ */ l(
458
+ H,
391
459
  {
392
460
  ...e,
393
461
  className: "w-full",
@@ -397,21 +465,21 @@ function Qt() {
397
465
  onChange: (a) => {
398
466
  const i = a.target.value;
399
467
  e.onChange(i);
400
- const n = z.find(
401
- (o) => o.id === i
468
+ const n = U.find(
469
+ (c) => c.id === i
402
470
  );
403
- P(
471
+ B(
404
472
  "eventTypeDetailCode",
405
473
  n == null ? void 0 : n.code
406
- ), P(
474
+ ), B(
407
475
  "eventTypeDetailId",
408
476
  (n == null ? void 0 : n.detaiId) || null
409
477
  );
410
478
  },
411
479
  "data-testid": "manageeventconfiguration-formtype-select",
412
480
  children: [
413
- /* @__PURE__ */ t(p, { value: "", children: /* @__PURE__ */ t(c, { variant: "body2", children: l("Select") }) }),
414
- z == null ? void 0 : z.map((a) => /* @__PURE__ */ t(p, { value: a.id, children: /* @__PURE__ */ t(c, { variant: "body2", children: l(a.name) }) }, a.id))
481
+ /* @__PURE__ */ t(b, { value: "", children: /* @__PURE__ */ t(m, { variant: "body2", children: o("Select") }) }),
482
+ U == null ? void 0 : U.map((a) => /* @__PURE__ */ t(b, { value: a.id, children: /* @__PURE__ */ t(m, { variant: "body2", children: o(a.name) }) }, a.id))
415
483
  ]
416
484
  }
417
485
  )
@@ -420,78 +488,78 @@ function Qt() {
420
488
  ] })
421
489
  }
422
490
  ),
423
- m === "TIMMER_BASED" && /* @__PURE__ */ t(
424
- h,
491
+ h === "TIMMER_BASED" && /* @__PURE__ */ t(
492
+ v,
425
493
  {
426
494
  item: !0,
427
495
  size: { xs: 12, sm: 6 },
428
496
  "data-testid": "manageeventconfiguration-triggerwhen-field",
429
- children: /* @__PURE__ */ r(T, { variant: "outlined", className: "w-full", children: [
430
- /* @__PURE__ */ r(c, { variant: "body2", children: [
431
- l("Trigger When"),
497
+ children: /* @__PURE__ */ l(E, { variant: "outlined", className: "w-full", children: [
498
+ /* @__PURE__ */ l(m, { variant: "body2", children: [
499
+ o("Trigger When"),
432
500
  /* @__PURE__ */ t("span", { className: "text-red-500 ml-1", children: "*" })
433
501
  ] }),
434
- /* @__PURE__ */ r(x, { className: "w-full", children: [
502
+ /* @__PURE__ */ l(w, { className: "w-full", children: [
435
503
  /* @__PURE__ */ t(
436
- Y,
504
+ V,
437
505
  {
438
506
  name: "trigerWhen",
439
- control: C,
507
+ control: N,
440
508
  defaultValue: "",
441
509
  className: "w-full",
442
- render: ({ field: e }) => /* @__PURE__ */ r(
443
- B,
510
+ render: ({ field: e }) => /* @__PURE__ */ l(
511
+ H,
444
512
  {
445
513
  className: "w-full",
446
514
  ...e,
447
515
  value: e.value,
448
- error: s.trigerWhen,
516
+ error: d.trigerWhen,
449
517
  size: "small",
450
518
  "data-testid": "manageeventconfiguration-triggerwhen-select",
451
519
  children: [
452
- /* @__PURE__ */ t(p, { value: "", children: /* @__PURE__ */ t(c, { variant: "body2", children: l("Select") }) }),
453
- /* @__PURE__ */ t(p, { value: "IMMEDIATELY", children: /* @__PURE__ */ t(c, { variant: "body2", children: l("Immediately") }) }),
454
- /* @__PURE__ */ t(p, { value: "AFTER", children: /* @__PURE__ */ t(c, { variant: "body2", children: l("After") }) }),
455
- /* @__PURE__ */ t(p, { value: "MONTHLY", children: /* @__PURE__ */ t(c, { variant: "body2", children: l("Monthly") }) }),
456
- /* @__PURE__ */ t(p, { value: "WEEKLY", children: /* @__PURE__ */ t(c, { variant: "body2", children: l("Weekly") }) }),
457
- /* @__PURE__ */ t(p, { value: "DAILY", children: /* @__PURE__ */ t(c, { variant: "body2", children: l("Daily") }) }),
458
- /* @__PURE__ */ t(p, { value: "HOURLY", children: /* @__PURE__ */ t(c, { variant: "body2", children: l("Hourly") }) }),
459
- /* @__PURE__ */ t(p, { value: "MINUTE", children: /* @__PURE__ */ t(c, { variant: "body2", children: l("Minutely") }) })
520
+ /* @__PURE__ */ t(b, { value: "", children: /* @__PURE__ */ t(m, { variant: "body2", children: o("Select") }) }),
521
+ /* @__PURE__ */ t(b, { value: "IMMEDIATELY", children: /* @__PURE__ */ t(m, { variant: "body2", children: o("Immediately") }) }),
522
+ /* @__PURE__ */ t(b, { value: "AFTER", children: /* @__PURE__ */ t(m, { variant: "body2", children: o("After") }) }),
523
+ /* @__PURE__ */ t(b, { value: "MONTHLY", children: /* @__PURE__ */ t(m, { variant: "body2", children: o("Monthly") }) }),
524
+ /* @__PURE__ */ t(b, { value: "WEEKLY", children: /* @__PURE__ */ t(m, { variant: "body2", children: o("Weekly") }) }),
525
+ /* @__PURE__ */ t(b, { value: "DAILY", children: /* @__PURE__ */ t(m, { variant: "body2", children: o("Daily") }) }),
526
+ /* @__PURE__ */ t(b, { value: "HOURLY", children: /* @__PURE__ */ t(m, { variant: "body2", children: o("Hourly") }) }),
527
+ /* @__PURE__ */ t(b, { value: "MINUTE", children: /* @__PURE__ */ t(m, { variant: "body2", children: o("Minutely") }) })
460
528
  ]
461
529
  }
462
530
  )
463
531
  }
464
532
  ),
465
- (s == null ? void 0 : s.trigerWhen) && /* @__PURE__ */ t(
533
+ (d == null ? void 0 : d.trigerWhen) && /* @__PURE__ */ t(
466
534
  "p",
467
535
  {
468
536
  className: "error-helper-manage-event",
469
537
  "data-testid": "custom-error-message",
470
- children: (ye = s == null ? void 0 : s.trigerWhen) == null ? void 0 : ye.message
538
+ children: (Ee = d == null ? void 0 : d.trigerWhen) == null ? void 0 : Ee.message
471
539
  }
472
540
  )
473
541
  ] })
474
542
  ] })
475
543
  }
476
544
  ),
477
- m === "TIMMER_BASED" && (f === "AFTER" || f === "MONTHLY" || f === "WEEKLY") && /* @__PURE__ */ t(
478
- h,
545
+ h === "TIMMER_BASED" && (p === "AFTER" || p === "MONTHLY" || p === "WEEKLY") && /* @__PURE__ */ t(
546
+ v,
479
547
  {
480
548
  item: !0,
481
549
  size: { xs: 12, sm: 6 },
482
550
  "data-testid": "manageeventconfiguration-day-field",
483
- children: /* @__PURE__ */ r(T, { variant: "outlined", className: "w-full", children: [
484
- /* @__PURE__ */ r(c, { variant: "body2", children: [
485
- l("day"),
551
+ children: /* @__PURE__ */ l(E, { variant: "outlined", className: "w-full", children: [
552
+ /* @__PURE__ */ l(m, { variant: "body2", children: [
553
+ o("day"),
486
554
  /* @__PURE__ */ t("span", { className: "text-red-500 ml-1", children: "*" })
487
555
  ] }),
488
556
  /* @__PURE__ */ t(
489
- _,
557
+ k,
490
558
  {
491
- control: C,
559
+ control: N,
492
560
  id: "day",
493
561
  name: "day",
494
- errors: s,
562
+ errors: d,
495
563
  type: "number",
496
564
  label: "",
497
565
  size: "small",
@@ -501,25 +569,25 @@ function Qt() {
501
569
  ] })
502
570
  }
503
571
  ),
504
- m === "TIMMER_BASED" && (f === "AFTER" || f === "MONTHLY" || f === "DAILY" || f === "WEEKLY") && /* @__PURE__ */ t(
505
- h,
572
+ h === "TIMMER_BASED" && (p === "AFTER" || p === "MONTHLY" || p === "DAILY" || p === "WEEKLY") && /* @__PURE__ */ t(
573
+ v,
506
574
  {
507
575
  item: !0,
508
576
  size: { xs: 12, sm: 6 },
509
577
  "data-testid": "manageeventconfiguration-hour-field",
510
- children: /* @__PURE__ */ r(T, { variant: "outlined", className: "w-full", children: [
511
- /* @__PURE__ */ r(c, { variant: "body2", children: [
512
- l("Hour"),
578
+ children: /* @__PURE__ */ l(E, { variant: "outlined", className: "w-full", children: [
579
+ /* @__PURE__ */ l(m, { variant: "body2", children: [
580
+ o("Hour"),
513
581
  /* @__PURE__ */ t("span", { className: "text-red-500 ml-1", children: "*" })
514
582
  ] }),
515
583
  /* @__PURE__ */ t(
516
- _,
584
+ k,
517
585
  {
518
- control: C,
586
+ control: N,
519
587
  id: "hour",
520
588
  name: "hour",
521
589
  type: "number",
522
- errors: s,
590
+ errors: d,
523
591
  label: "",
524
592
  size: "small",
525
593
  dataTestId: "manageeventconfiguration-hour-textfield"
@@ -528,21 +596,21 @@ function Qt() {
528
596
  ] })
529
597
  }
530
598
  ),
531
- m === "TIMMER_BASED" && f && f !== "IMMEDIATELY" && /* @__PURE__ */ t(
532
- h,
599
+ h === "TIMMER_BASED" && p && p !== "IMMEDIATELY" && /* @__PURE__ */ t(
600
+ v,
533
601
  {
534
602
  item: !0,
535
603
  size: { xs: 12, sm: 6 },
536
604
  "data-testid": "manageeventconfiguration-minute-field",
537
- children: /* @__PURE__ */ r(T, { variant: "outlined", className: "w-full", children: [
538
- /* @__PURE__ */ t(c, { variant: "body2", children: l("Minute") }),
605
+ children: /* @__PURE__ */ l(E, { variant: "outlined", className: "w-full", children: [
606
+ /* @__PURE__ */ t(m, { variant: "body2", children: o("Minute") }),
539
607
  /* @__PURE__ */ t(
540
- _,
608
+ k,
541
609
  {
542
- control: C,
610
+ control: N,
543
611
  id: "minute",
544
612
  name: "minute",
545
- errors: s,
613
+ errors: d,
546
614
  type: "number",
547
615
  label: "",
548
616
  size: "small",
@@ -552,78 +620,78 @@ function Qt() {
552
620
  ] })
553
621
  }
554
622
  ),
555
- m === "RECURSION" && /* @__PURE__ */ t(h, { item: !0, size: { xs: 12, sm: 6 }, children: /* @__PURE__ */ r(T, { variant: "outlined", className: "w-full", children: [
556
- /* @__PURE__ */ r(c, { variant: "body2", children: [
557
- l("Recursion Interval (in Minutes)"),
623
+ h === "RECURSION" && /* @__PURE__ */ t(v, { item: !0, size: { xs: 12, sm: 6 }, children: /* @__PURE__ */ l(E, { variant: "outlined", className: "w-full", children: [
624
+ /* @__PURE__ */ l(m, { variant: "body2", children: [
625
+ o("Recursion Interval (in Minutes)"),
558
626
  /* @__PURE__ */ t("span", { className: "text-red-500 ml-1", children: "*" })
559
627
  ] }),
560
- /* @__PURE__ */ t(x, { className: "w-full", children: /* @__PURE__ */ t(
561
- _,
628
+ /* @__PURE__ */ t(w, { className: "w-full", children: /* @__PURE__ */ t(
629
+ k,
562
630
  {
563
631
  type: "number",
564
- control: C,
632
+ control: N,
565
633
  id: "recursionInterval",
566
634
  name: "recursionInterval",
567
- errors: s,
635
+ errors: d,
568
636
  label: "",
569
637
  size: "small",
570
638
  dataTestId: "manageeventconfiguration-recursionInterval-textfield"
571
639
  }
572
640
  ) })
573
641
  ] }) }),
574
- (m === "TIMMER_BASED" || m === "RECURSION") && /* @__PURE__ */ t(h, { item: !0, size: { xs: 12, sm: 6 }, children: /* @__PURE__ */ r(T, { variant: "outlined", className: "w-full", children: [
575
- /* @__PURE__ */ t(c, { variant: "body2", children: l("Reports") }),
576
- /* @__PURE__ */ t(x, { className: "w-full", children: /* @__PURE__ */ t(
577
- ft,
642
+ (h === "TIMMER_BASED" || h === "RECURSION") && /* @__PURE__ */ t(v, { item: !0, size: { xs: 12, sm: 6 }, children: /* @__PURE__ */ l(E, { variant: "outlined", className: "w-full", children: [
643
+ /* @__PURE__ */ t(m, { variant: "body2", children: o("Reports") }),
644
+ /* @__PURE__ */ t(w, { className: "w-full", children: /* @__PURE__ */ t(
645
+ yt,
578
646
  {
579
647
  id: "reportUUID",
580
648
  name: "reportUUID",
581
649
  displayName: "name",
582
650
  optionValue: "uuid",
583
651
  multiple: !0,
584
- control: C,
585
- options: Pe
652
+ control: N,
653
+ options: je
586
654
  }
587
655
  ) })
588
656
  ] }) }),
589
- m === "MANUAL" && /* @__PURE__ */ t(
590
- h,
657
+ h === "MANUAL" && /* @__PURE__ */ t(
658
+ v,
591
659
  {
592
660
  item: !0,
593
661
  size: { xs: 12, sm: 6 },
594
662
  "data-testid": "manageeventconfiguration-event-field",
595
- children: /* @__PURE__ */ r(T, { variant: "outlined", className: "w-full", children: [
596
- /* @__PURE__ */ t(c, { variant: "body2", children: l("Event") }),
597
- /* @__PURE__ */ r(x, { className: "w-full", children: [
663
+ children: /* @__PURE__ */ l(E, { variant: "outlined", className: "w-full", children: [
664
+ /* @__PURE__ */ t(m, { variant: "body2", children: o("Event") }),
665
+ /* @__PURE__ */ l(w, { className: "w-full", children: [
598
666
  /* @__PURE__ */ t(
599
- Y,
667
+ V,
600
668
  {
601
669
  name: "eventTypeDetailCode",
602
- control: C,
670
+ control: N,
603
671
  className: "w-full",
604
- render: ({ field: e }) => /* @__PURE__ */ r(
605
- B,
672
+ render: ({ field: e }) => /* @__PURE__ */ l(
673
+ H,
606
674
  {
607
675
  className: "w-full",
608
676
  ...e,
609
677
  value: e.value,
610
- error: s.eventTypeDetailCode,
678
+ error: d.eventTypeDetailCode,
611
679
  size: "small",
612
680
  "data-testid": "manageeventconfiguration-eventtype-detail-select",
613
681
  children: [
614
- /* @__PURE__ */ t(p, { value: "", children: l("None") }),
615
- ae && Object.entries(ae).map(([a, i]) => /* @__PURE__ */ t(p, { value: a, children: i }, a))
682
+ /* @__PURE__ */ t(b, { value: "", children: o("None") }),
683
+ oe && Object.entries(oe).map(([a, i]) => /* @__PURE__ */ t(b, { value: a, children: i }, a))
616
684
  ]
617
685
  }
618
686
  )
619
687
  }
620
688
  ),
621
- (s == null ? void 0 : s.eventTypeDetailCode) && /* @__PURE__ */ t(
689
+ (d == null ? void 0 : d.eventTypeDetailCode) && /* @__PURE__ */ t(
622
690
  "p",
623
691
  {
624
692
  className: "error-helper-manage-event",
625
693
  "data-testid": "manageeventconfiguration-eventtype-detail-error",
626
- children: (be = s == null ? void 0 : s.eventTypeDetailCode) == null ? void 0 : be.message
694
+ children: (we = d == null ? void 0 : d.eventTypeDetailCode) == null ? void 0 : we.message
627
695
  }
628
696
  )
629
697
  ] })
@@ -631,9 +699,9 @@ function Qt() {
631
699
  }
632
700
  )
633
701
  ] }),
634
- /* @__PURE__ */ t(G, { className: "m-[20px_3px]" }),
635
- /* @__PURE__ */ r(
636
- h,
702
+ /* @__PURE__ */ t(ae, { className: "m-[20px_3px]" }),
703
+ /* @__PURE__ */ l(
704
+ v,
637
705
  {
638
706
  container: !0,
639
707
  spacing: 5,
@@ -641,70 +709,70 @@ function Qt() {
641
709
  alignItems: "center",
642
710
  "data-testid": "manageeventconfiguration-add-configuration",
643
711
  children: [
644
- /* @__PURE__ */ t(h, { item: !0, children: /* @__PURE__ */ t(c, { variant: "body2", children: l("Add Configuration") }) }),
645
- /* @__PURE__ */ t(h, { item: !0, children: /* @__PURE__ */ t(
646
- W,
712
+ /* @__PURE__ */ t(v, { item: !0, children: /* @__PURE__ */ t(m, { variant: "body2", children: o("Add Configuration") }) }),
713
+ /* @__PURE__ */ t(v, { item: !0, children: /* @__PURE__ */ t(
714
+ j,
647
715
  {
648
716
  size: "small",
649
717
  variant: "contained",
650
- onClick: Qe,
718
+ onClick: at,
651
719
  "data-testid": "manageeventconfiguration-add-button",
652
- children: l("Add")
720
+ children: o("Add")
653
721
  }
654
722
  ) })
655
723
  ]
656
724
  }
657
725
  ),
658
- /* @__PURE__ */ t(h, { container: !0, className: "w-full mt-5", children: /* @__PURE__ */ t(h, { item: !0, className: "w-full", children: /* @__PURE__ */ t(
659
- vt,
726
+ /* @__PURE__ */ t(v, { container: !0, className: "w-full mt-5", children: /* @__PURE__ */ t(v, { item: !0, className: "w-full", children: /* @__PURE__ */ t(
727
+ Tt,
660
728
  {
661
- component: yt,
729
+ component: Et,
662
730
  className: "w-full",
663
731
  "data-testid": "manageeventconfiguration-table-container",
664
- children: /* @__PURE__ */ r(bt, { sx: { minWidth: 800 }, children: [
665
- /* @__PURE__ */ t(Ct, { children: /* @__PURE__ */ r(
666
- Te,
732
+ children: /* @__PURE__ */ l(wt, { sx: { minWidth: 800 }, children: [
733
+ /* @__PURE__ */ t(xt, { children: /* @__PURE__ */ l(
734
+ Me,
667
735
  {
668
736
  sx: {
669
737
  backgroundColor: (e) => e.palette.mode === "dark" ? e.palette.custom.tableHeader : "var(--color-gray4)"
670
738
  },
671
739
  children: [
672
740
  /* @__PURE__ */ t(
673
- O,
741
+ _,
674
742
  {
675
743
  className: "border border-gray-300 align-top text-[13px]",
676
744
  "data-testid": "manageeventconfiguration-table-header-query",
677
- children: l("Query")
745
+ children: o("Query")
678
746
  }
679
747
  ),
680
748
  /* @__PURE__ */ t(
681
- O,
749
+ _,
682
750
  {
683
751
  className: "border border-gray-300 align-top text-[13px]",
684
752
  "data-testid": "manageeventconfiguration-table-header-condition",
685
- children: l("Condition")
753
+ children: o("Condition")
686
754
  }
687
755
  ),
688
756
  /* @__PURE__ */ t(
689
- O,
757
+ _,
690
758
  {
691
759
  className: "border border-gray-300 align-top text-[13px]",
692
760
  "data-testid": "manageeventconfiguration-table-header-action",
693
- children: l("Actions")
761
+ children: o("Actions")
694
762
  }
695
763
  )
696
764
  ]
697
765
  }
698
766
  ) }),
699
- /* @__PURE__ */ t(Tt, { children: v == null ? void 0 : v.map((e, a) => {
767
+ /* @__PURE__ */ t(It, { children: C == null ? void 0 : C.map((e, a) => {
700
768
  var i;
701
- return /* @__PURE__ */ r(
702
- Te,
769
+ return /* @__PURE__ */ l(
770
+ Me,
703
771
  {
704
772
  sx: {
705
773
  backgroundColor: (n) => {
706
- const o = n.palette.mode === "dark";
707
- return a % 2 === 0 ? o ? n.palette.background.paper : "#fff" : o ? "#1C2128" : "var(--color-gray4)";
774
+ const c = n.palette.mode === "dark";
775
+ return a % 2 === 0 ? c ? n.palette.background.paper : "#fff" : c ? "#1C2128" : "var(--color-gray4)";
708
776
  },
709
777
  // Adding a hover state that works in both modes
710
778
  "&:hover": {
@@ -714,43 +782,43 @@ function Qt() {
714
782
  "data-testid": `manageeventconfiguration-table-row-${a}`,
715
783
  children: [
716
784
  /* @__PURE__ */ t(
717
- O,
785
+ _,
718
786
  {
719
787
  className: "border border-gray-300 align-top",
720
- style: { lineHeight: Be },
788
+ style: { lineHeight: Ke },
721
789
  "data-testid": `manageeventconfiguration-table-row-${a}-query`,
722
- children: /* @__PURE__ */ r("div", { className: "flex flex-col items-start min-w-[300px]", children: [
790
+ children: /* @__PURE__ */ l("div", { className: "flex flex-col items-start min-w-[300px]", children: [
723
791
  /* @__PURE__ */ t(
724
- T,
792
+ E,
725
793
  {
726
794
  variant: "outlined",
727
795
  className: "w-full",
728
- children: /* @__PURE__ */ t(x, { className: "w-full", children: /* @__PURE__ */ t(
729
- Ce,
796
+ children: /* @__PURE__ */ t(w, { className: "w-full", children: /* @__PURE__ */ t(
797
+ Ie,
730
798
  {
731
799
  required: !0,
732
- control: C,
800
+ control: N,
733
801
  id: `notificationConfigDetails.${a}.query`,
734
802
  name: `notificationConfigDetails.${a}.query`,
735
- errors: s,
803
+ errors: d,
736
804
  value: e.query,
737
805
  onChange: (n) => {
738
- P(
806
+ B(
739
807
  `notificationConfigDetails.${a}.query`,
740
808
  n.target.value
741
- ), Je(a, n.target.value);
742
- const o = `notificationConfigDetails.${a}.query`;
743
- me(o) === "" ? V(o, {
809
+ ), tt(a, n.target.value);
810
+ const c = `notificationConfigDetails.${a}.query`;
811
+ ve(c) === "" ? J(c, {
744
812
  type: "manual",
745
813
  message: "Query Required"
746
- }) : K(o);
814
+ }) : G(c);
747
815
  },
748
816
  onBlur: () => {
749
817
  const n = `notificationConfigDetails.${a}.query`;
750
- me(n) === "" ? V(n, {
818
+ ve(n) === "" ? J(n, {
751
819
  type: "manual",
752
820
  message: "Query Required"
753
- }) : K(n), ge(e);
821
+ }) : G(n), be(e);
754
822
  },
755
823
  label: "",
756
824
  minRows: 5,
@@ -775,7 +843,7 @@ function Qt() {
775
843
  }
776
844
  ),
777
845
  /* @__PURE__ */ t(
778
- O,
846
+ _,
779
847
  {
780
848
  className: "border border-gray-300 align-top",
781
849
  "data-testid": `manageeventconfiguration-table-row-${a}-condition`,
@@ -789,12 +857,12 @@ function Qt() {
789
857
  width: "100%"
790
858
  },
791
859
  children: ((i = e == null ? void 0 : e.conditions) == null ? void 0 : i.length) > 0 ? e == null ? void 0 : e.conditions.map(
792
- (n, o) => /* @__PURE__ */ r(
860
+ (n, c) => /* @__PURE__ */ l(
793
861
  "div",
794
862
  {
795
863
  style: { width: "100%" },
796
864
  children: [
797
- /* @__PURE__ */ r(
865
+ /* @__PURE__ */ l(
798
866
  "div",
799
867
  {
800
868
  style: {
@@ -805,7 +873,7 @@ function Qt() {
805
873
  "data-testid": "manageeventconfiguration-condition-rows",
806
874
  children: [
807
875
  /* @__PURE__ */ t(
808
- c,
876
+ m,
809
877
  {
810
878
  className: "mr-1",
811
879
  variant: "body2",
@@ -816,33 +884,33 @@ function Qt() {
816
884
  $,
817
885
  {
818
886
  className: "bg-[var(--color-gray3)] text-gray-600 rounded-full p-[10px] w-[14px] h-[14px] mx-1 cursor-pointer hover:bg-gray-300 hover:text-[#11B666] transition-all",
819
- icon: Dt,
820
- onClick: () => J(
887
+ icon: _t,
888
+ onClick: () => X(
821
889
  e,
822
890
  a,
823
891
  n,
824
- o
892
+ c
825
893
  ),
826
- "data-testid": `manageeventconfiguration-table-row-${a}-condition-edit-${o}`
894
+ "data-testid": `manageeventconfiguration-table-row-${a}-condition-edit-${c}`
827
895
  }
828
896
  ),
829
897
  /* @__PURE__ */ t(
830
898
  $,
831
899
  {
832
- icon: xe,
900
+ icon: Se,
833
901
  className: "bg-[var(--color-gray3)] text-gray-600 rounded-full p-[10px] w-[14px] h-[14px] mx-1 cursor-pointer hover:bg-gray-300 hover:text-[var(--color-error)] transition-all",
834
- onClick: () => Ke(
902
+ onClick: () => et(
835
903
  a,
836
- o
904
+ c
837
905
  ),
838
- "data-testid": `manageeventconfiguration-table-row-${a}-condition-delete-${o}`
906
+ "data-testid": `manageeventconfiguration-table-row-${a}-condition-delete-${c}`
839
907
  }
840
908
  ),
841
- o === (e == null ? void 0 : e.conditions.length) - 1 && /* @__PURE__ */ t(
909
+ c === (e == null ? void 0 : e.conditions.length) - 1 && /* @__PURE__ */ t(
842
910
  $,
843
911
  {
844
- icon: Ie,
845
- onClick: () => J(e, a),
912
+ icon: Ae,
913
+ onClick: () => X(e, a),
846
914
  className: "bg-[var(--color-gray3)] text-gray-600 rounded-full p-[10px] w-[14px] h-[14px] mx-1 cursor-pointer hover:bg-gray-300 hover:text-[var(--color-primary)] transition-all",
847
915
  "data-testid": `manageeventconfiguration-table-row-${a}-condition-add`
848
916
  }
@@ -850,22 +918,22 @@ function Qt() {
850
918
  ]
851
919
  }
852
920
  ),
853
- o < (e == null ? void 0 : e.conditions.length) - 1 && /* @__PURE__ */ t(G, { className: "w-full m-[10px_0px]" })
921
+ c < (e == null ? void 0 : e.conditions.length) - 1 && /* @__PURE__ */ t(ae, { className: "w-full m-[10px_0px]" })
854
922
  ]
855
923
  },
856
- o + 1
924
+ c + 1
857
925
  )
858
- ) : /* @__PURE__ */ r(
926
+ ) : /* @__PURE__ */ l(
859
927
  "div",
860
928
  {
861
929
  className: "flex flex-row items-center justify-between w-full mt-2 sm:mt-0 text-[14px]",
862
930
  children: [
863
- /* @__PURE__ */ t("span", { className: "mr-3 flex-1", children: l("No Condition Added") }),
931
+ /* @__PURE__ */ t("span", { className: "mr-3 flex-1", children: o("No Condition Added") }),
864
932
  /* @__PURE__ */ t("div", { className: "flex items-center gap-3", children: /* @__PURE__ */ t(
865
933
  $,
866
934
  {
867
- icon: Ie,
868
- onClick: () => J(e, a),
935
+ icon: Ae,
936
+ onClick: () => X(e, a),
869
937
  className: "bg-gray-200 text-gray-600 rounded-full p-2 w-[16px] h-[16px] cursor-pointer hover:bg-gray-300 hover:text-[var(--color-primary)] transition-all",
870
938
  "data-testid": `manageeventconfiguration-table-row-${a}-condition-add-empty`
871
939
  }
@@ -878,7 +946,7 @@ function Qt() {
878
946
  }
879
947
  ),
880
948
  /* @__PURE__ */ t(
881
- O,
949
+ _,
882
950
  {
883
951
  className: "border border-gray-300 align-top",
884
952
  "data-testid": `manageeventconfiguration-table-row-${a}-action`,
@@ -891,12 +959,12 @@ function Qt() {
891
959
  alignItems: "flex-start"
892
960
  },
893
961
  children: /* @__PURE__ */ t(
894
- W,
962
+ j,
895
963
  {
896
964
  onClick: () => {
897
- Ve(a);
965
+ Ze(a);
898
966
  const n = `notificationConfigDetails.${a}.query`;
899
- K(n);
967
+ G(n);
900
968
  },
901
969
  size: "small",
902
970
  "aria-label": "delete",
@@ -904,7 +972,7 @@ function Qt() {
904
972
  children: /* @__PURE__ */ t(
905
973
  $,
906
974
  {
907
- icon: xe,
975
+ icon: Se,
908
976
  className: "text-[19px] text-[var(--color-error)]"
909
977
  }
910
978
  )
@@ -923,15 +991,15 @@ function Qt() {
923
991
  }
924
992
  ) }) })
925
993
  ] }),
926
- /* @__PURE__ */ t(G, { className: "m-[8px_0px]" }),
927
- /* @__PURE__ */ r(
928
- Nt,
994
+ /* @__PURE__ */ t(ae, { className: "m-[8px_0px]" }),
995
+ /* @__PURE__ */ l(
996
+ Mt,
929
997
  {
930
998
  className: "flex flex-col sm:flex-row justify-end gap-2",
931
999
  "data-testid": "manageeventconfiguration-cardactions",
932
1000
  children: [
933
1001
  /* @__PURE__ */ t(
934
- W,
1002
+ j,
935
1003
  {
936
1004
  variant: "contained",
937
1005
  color: "secondary",
@@ -939,18 +1007,18 @@ function Qt() {
939
1007
  size: "small",
940
1008
  className: "w-full sm:w-auto",
941
1009
  onClick: () => {
942
- Q("button_click", {
1010
+ Z("button_click", {
943
1011
  button_name: "manageeventconfiguration-back-button",
944
1012
  button_type: "cancel",
945
1013
  button_id: "manageeventconfiguration-back-button"
946
- }), te("/ui/medplat/notification/all");
1014
+ }), le("/ui/medplat/notification/all");
947
1015
  },
948
1016
  "data-testid": "manageeventconfiguration-back-button",
949
- children: l("Cancel")
1017
+ children: o("Cancel")
950
1018
  }
951
1019
  ),
952
1020
  /* @__PURE__ */ t(
953
- W,
1021
+ j,
954
1022
  {
955
1023
  size: "small",
956
1024
  variant: "contained",
@@ -958,7 +1026,7 @@ function Qt() {
958
1026
  color: "primary",
959
1027
  className: "w-full sm:w-auto m-0",
960
1028
  "data-testid": "manageeventconfiguration-save-button",
961
- children: l(`${A ? "Update" : "Save"}`)
1029
+ children: o(`${O ? "Update" : "Save"}`)
962
1030
  }
963
1031
  )
964
1032
  ]
@@ -967,44 +1035,44 @@ function Qt() {
967
1035
  ]
968
1036
  }
969
1037
  ) }),
970
- /* @__PURE__ */ t(we, { children: /* @__PURE__ */ t(
971
- Rt,
1038
+ /* @__PURE__ */ t(qe, { children: /* @__PURE__ */ t(
1039
+ Lt,
972
1040
  {
973
- selectedConfig: H,
974
- notificationtypeMap: ne,
975
- selectedCondition: Ae,
976
- newCondition: D,
977
- handleTypeConfigurationDelete: Xe,
978
- handleTypeConfigurationEdit: Ze,
979
- addTypeConfig: he,
980
- setNewConditionData: tt,
981
- typeConfigurationData: k,
982
- setNewTypeData: at,
983
- overlayOpen: oe,
984
- handleOverlayState: ue,
1041
+ selectedConfig: K,
1042
+ notificationtypeMap: se,
1043
+ selectedCondition: $e,
1044
+ newCondition: M,
1045
+ handleTypeConfigurationDelete: it,
1046
+ handleTypeConfigurationEdit: rt,
1047
+ addTypeConfig: Ce,
1048
+ setNewConditionData: ot,
1049
+ typeConfigurationData: P,
1050
+ setNewTypeData: st,
1051
+ overlayOpen: me,
1052
+ handleOverlayState: pe,
985
1053
  "data-testid": "manageeventconfiguration-conditionconfig"
986
1054
  }
987
1055
  ) }),
988
- /* @__PURE__ */ t(we, { children: (R == null ? void 0 : R.type) === "MOBILE" ? /* @__PURE__ */ t(
989
- qt,
1056
+ /* @__PURE__ */ t(qe, { children: (D == null ? void 0 : D.type) === "MOBILE" ? /* @__PURE__ */ t(
1057
+ zt,
990
1058
  {
991
- type: R,
992
- open: de,
993
- notificationtypeMap: ne,
994
- handleClick: pe,
1059
+ type: D,
1060
+ open: he,
1061
+ notificationtypeMap: se,
1062
+ handleClick: Ne,
995
1063
  handleClose: () => {
996
- j((e) => !e), q({});
1064
+ Q((e) => !e), R({});
997
1065
  },
998
1066
  "data-testid": "manageeventconfiguration-mobiletypeeventconfigmodal"
999
1067
  }
1000
1068
  ) : /* @__PURE__ */ t(
1001
- St,
1069
+ kt,
1002
1070
  {
1003
- type: R,
1004
- open: de,
1005
- handleClick: pe,
1071
+ type: D,
1072
+ open: he,
1073
+ handleClick: Ne,
1006
1074
  handleClose: () => {
1007
- j((e) => !e), q({});
1075
+ Q((e) => !e), R({});
1008
1076
  },
1009
1077
  "data-testid": "manageeventconfiguration-othertypeeventconfigmodal"
1010
1078
  }
@@ -1012,6 +1080,6 @@ function Qt() {
1012
1080
  ] });
1013
1081
  }
1014
1082
  export {
1015
- Qt as default
1083
+ ia as default
1016
1084
  };
1017
- //# sourceMappingURL=ManageEventConfiguration-DV3I5POA.js.map
1085
+ //# sourceMappingURL=ManageEventConfiguration-CoYcpjR9.js.map