@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
@@ -0,0 +1,862 @@
1
+ import { jsx as l } from "react/jsx-runtime";
2
+ import { lazy as d } from "react";
3
+ import { createSlice as Z } from "@reduxjs/toolkit";
4
+ import { execute as g, executeAll as Q } from "@/common/services/GlobalApis";
5
+ import { api as D } from "@/common/interceptors/AxiosInterceptor";
6
+ import './index.css';const c = d(
7
+ () => import("@/views/feature-components/VerifyRoute.jsx")
8
+ ), W = d(() => import("./RoleManagement-s8iNx2Mu.js")), J = d(
9
+ () => import("./QueryBuilder-CXaBe6sr.js").then((e) => e.Q)
10
+ ), K = d(() => import("./UserList-DgPxsnj2.js")), V = d(() => import("./ManageUser-DCFkUMV9.js").then((e) => e.M)), Y = d(
11
+ () => import("./QueryManagement-BIhEDKuA.js")
12
+ ), ee = d(() => import("./FeatureMenu-DYJmDt7q.js").then((e) => e.F)), te = d(() => import("./index-D9YNFPn9.js")), ie = d(
13
+ () => import("./NewServerManagement-Cxe0dV0O.js")
14
+ ), O = d(
15
+ () => import("./ManageDynamicFeature-BU0I45dd.js")
16
+ ), ae = d(
17
+ () => import("./SecurityAuditLogList-Dod711KT.js")
18
+ ), ne = d(
19
+ () => import("./EventConfigurations-Bzh1qWXU.js")
20
+ ), G = d(
21
+ () => import("./ManageEventConfiguration-CoYcpjR9.js")
22
+ ), re = d(
23
+ () => import("./EntityManagement-CPQL6qBj.js")
24
+ ), oe = d(
25
+ () => import("./MobileAnalytics-pQoE8cG1.js")
26
+ ), se = d(
27
+ () => import("./MobileMenuManagement-Cf8IZlla.js")
28
+ ), le = d(
29
+ () => import("./AddMenuConfiguration-e5BVXhmw.js")
30
+ ), ce = d(
31
+ () => import("./ManageTranslation-vRiptUAP.js").then((e) => e.j)
32
+ ), de = d(
33
+ () => import("./WidgetList-D7YuWfDD.js")
34
+ ), me = d(
35
+ () => import("./NotificationList-DEyRZEuM.js").then((e) => e.N)
36
+ ), ue = d(
37
+ () => import("./ImmunizationConfigurationsList-TZcLDEci.js")
38
+ ), C = d(
39
+ () => import("./manageImmunization-B4swS745.js")
40
+ ), pe = d(
41
+ () => import("./ImmunizationConfigurationBase-Di1KO3oW.js").then((e) => e.aj)
42
+ ), ge = d(
43
+ () => import("./FhirServerList-DuTwnngN.js")
44
+ ), Ie = d(
45
+ () => import("./FhirServerWizard-DZI8Olku.js")
46
+ ), fe = d(
47
+ () => import("./FhirServerProfile-CUOwC6Wb.js")
48
+ ), Te = d(
49
+ () => import("./FhirRawResourceList-ZZFd7gTX.js")
50
+ ), et = [
51
+ {
52
+ path: "medplat/manage/role",
53
+ element: /* @__PURE__ */ l(
54
+ c,
55
+ {
56
+ headerTitle: "Roles",
57
+ pageTitle: "General",
58
+ url: "medplat/manage/role",
59
+ component: W
60
+ }
61
+ )
62
+ },
63
+ {
64
+ path: "medplat/manage/query",
65
+ element: /* @__PURE__ */ l(
66
+ c,
67
+ {
68
+ headerTitle: "Query Master",
69
+ pageTitle: "General",
70
+ url: "medplat/manage/query",
71
+ component: J
72
+ }
73
+ )
74
+ },
75
+ {
76
+ path: "medplat/manage/users",
77
+ element: /* @__PURE__ */ l(
78
+ c,
79
+ {
80
+ headerTitle: "Users",
81
+ pageTitle: "UserList",
82
+ url: "medplat/manage/users",
83
+ component: K
84
+ }
85
+ )
86
+ },
87
+ {
88
+ path: "medplat/manage/user",
89
+ element: /* @__PURE__ */ l(
90
+ c,
91
+ {
92
+ headerTitle: "Users",
93
+ pageTitle: "ManageUser",
94
+ url: "medplat/manage/users",
95
+ component: V
96
+ }
97
+ )
98
+ },
99
+ {
100
+ path: "medplat/manage/user/:id",
101
+ element: /* @__PURE__ */ l(
102
+ c,
103
+ {
104
+ headerTitle: "Users",
105
+ pageTitle: "General",
106
+ url: "medplat/manage/users",
107
+ component: V
108
+ }
109
+ )
110
+ },
111
+ {
112
+ path: "medplat/querymanagement",
113
+ element: /* @__PURE__ */ l(
114
+ c,
115
+ {
116
+ headerTitle: "Query Management",
117
+ pageTitle: "General",
118
+ url: "medplat/querymanagement",
119
+ component: Y
120
+ }
121
+ )
122
+ },
123
+ {
124
+ path: "medplat/manage/menu",
125
+ element: /* @__PURE__ */ l(
126
+ c,
127
+ {
128
+ headerTitle: "Features",
129
+ pageTitle: "General",
130
+ url: "medplat/manage/menu",
131
+ component: ee
132
+ }
133
+ )
134
+ },
135
+ {
136
+ path: "medplat/manage/menu/addfeature",
137
+ element: /* @__PURE__ */ l(
138
+ c,
139
+ {
140
+ headerTitle: "Features",
141
+ pageTitle: "General",
142
+ url: "medplat/manage/menu",
143
+ component: O
144
+ }
145
+ )
146
+ },
147
+ {
148
+ path: "medplat/manage/menu/addDynamicFeature",
149
+ element: /* @__PURE__ */ l(
150
+ c,
151
+ {
152
+ headerTitle: "Features",
153
+ pageTitle: "General",
154
+ url: "medplat/manage/menu",
155
+ component: O
156
+ }
157
+ )
158
+ },
159
+ {
160
+ path: "medplat/notification/all",
161
+ element: /* @__PURE__ */ l(
162
+ c,
163
+ {
164
+ headerTitle: "Event Configuration",
165
+ pageTitle: "General",
166
+ url: "medplat/notification/all",
167
+ component: ne
168
+ }
169
+ )
170
+ },
171
+ {
172
+ path: "medplat/views/config",
173
+ element: /* @__PURE__ */ l(
174
+ c,
175
+ {
176
+ headerTitle: "Event Configuration",
177
+ pageTitle: "General",
178
+ url: "medplat/notification",
179
+ component: G
180
+ }
181
+ )
182
+ },
183
+ {
184
+ path: "medplat/views/config/:id",
185
+ element: /* @__PURE__ */ l(
186
+ c,
187
+ {
188
+ headerTitle: "Event Configuration",
189
+ pageTitle: "General",
190
+ url: "medplat/notification",
191
+ component: G
192
+ }
193
+ )
194
+ },
195
+ {
196
+ path: "medplat/admin/newServerManagement",
197
+ element: /* @__PURE__ */ l(
198
+ c,
199
+ {
200
+ headerTitle: "Server Management",
201
+ url: "medplat/admin/newServerManagement",
202
+ component: ie
203
+ }
204
+ )
205
+ },
206
+ {
207
+ path: "medplat/admin/mobileEntityManagement",
208
+ element: /* @__PURE__ */ l(
209
+ c,
210
+ {
211
+ pageTitle: "General",
212
+ url: "medplat/admin/mobileEntityManagement",
213
+ component: re,
214
+ headerTitle: "Mobile Database Management"
215
+ }
216
+ )
217
+ },
218
+ {
219
+ path: "medplat/admin/mobileAnalytics",
220
+ element: /* @__PURE__ */ l(
221
+ c,
222
+ {
223
+ url: "medplat/admin/mobileAnalytics",
224
+ component: oe,
225
+ headerTitle: "Mobile Analytics"
226
+ }
227
+ )
228
+ },
229
+ {
230
+ path: "medplat/admin/mobileMenuManagement",
231
+ element: /* @__PURE__ */ l(
232
+ c,
233
+ {
234
+ url: "medplat/admin/mobileMenuManagement",
235
+ component: /* @__PURE__ */ l(se, {}),
236
+ headerTitle: "Mobile Menu Management"
237
+ }
238
+ )
239
+ },
240
+ {
241
+ path: "medplat/admin/mobileMenuManagement/addMenuConfiguration",
242
+ element: /* @__PURE__ */ l(le, {})
243
+ },
244
+ {
245
+ path: "medplat/manage/manageTranslation",
246
+ element: /* @__PURE__ */ l(
247
+ c,
248
+ {
249
+ headerTitle: "Manage Translation",
250
+ pageTitle: "General",
251
+ url: "medplat/manage/manageTranslation",
252
+ component: ce
253
+ }
254
+ )
255
+ },
256
+ {
257
+ path: "medplat/manage/managewidgets",
258
+ element: /* @__PURE__ */ l(
259
+ c,
260
+ {
261
+ headerTitle: "Widgets",
262
+ pageTitle: "General",
263
+ url: "medplat/manage/manage-widgets",
264
+ component: de
265
+ }
266
+ )
267
+ },
268
+ {
269
+ path: "medplat/manage/notification",
270
+ element: /* @__PURE__ */ l(
271
+ c,
272
+ {
273
+ headerTitle: "Notification Configuration",
274
+ pageTitle: "General",
275
+ url: "medplat/manage/notification",
276
+ component: me
277
+ }
278
+ )
279
+ },
280
+ {
281
+ path: "medplat/manage/immunizationConfiguratorList",
282
+ element: /* @__PURE__ */ l(
283
+ c,
284
+ {
285
+ headerTitle: "Immunizations",
286
+ pageTitle: "General",
287
+ url: "medplat/manage/manageTranslation",
288
+ component: ue
289
+ }
290
+ )
291
+ },
292
+ {
293
+ path: "medplat/manage/manageImmunization",
294
+ element: /* @__PURE__ */ l(
295
+ c,
296
+ {
297
+ headerTitle: "Immunizations",
298
+ pageTitle: "General",
299
+ url: "medplat/training/question",
300
+ component: C
301
+ }
302
+ )
303
+ },
304
+ {
305
+ path: "medplat/manage/manageImmunization/:id",
306
+ element: /* @__PURE__ */ l(
307
+ c,
308
+ {
309
+ headerTitle: "Immunizations",
310
+ pageTitle: "General",
311
+ url: "medplat/training/question",
312
+ component: C
313
+ }
314
+ )
315
+ },
316
+ {
317
+ path: "medplat/manage/immunizationConfiguration",
318
+ element: /* @__PURE__ */ l(
319
+ c,
320
+ {
321
+ headerTitle: "Immunization Configuration",
322
+ pageTitle: "General",
323
+ url: "medplat/manage/immunizationConfiguration",
324
+ component: pe
325
+ }
326
+ )
327
+ },
328
+ {
329
+ path: "medplat/manage/securityAuditLogs",
330
+ element: /* @__PURE__ */ l(
331
+ c,
332
+ {
333
+ headerTitle: "Security Audit Logs",
334
+ pageTitle: "Security Audit Logs",
335
+ url: "medplat/manage/securityAuditLogs",
336
+ component: ae
337
+ }
338
+ )
339
+ },
340
+ {
341
+ path: "medplat/manage/activityAnalytics",
342
+ element: /* @__PURE__ */ l(
343
+ c,
344
+ {
345
+ headerTitle: "Activity Analytics",
346
+ url: "medplat/manage/activityAnalytics",
347
+ component: te
348
+ }
349
+ )
350
+ },
351
+ {
352
+ path: "medplat/admin/fhirResource",
353
+ element: /* @__PURE__ */ l(
354
+ c,
355
+ {
356
+ headerTitle: "FHIR Sync",
357
+ pageTitle: "General",
358
+ url: "medplat/admin/fhirResource",
359
+ component: ge
360
+ }
361
+ )
362
+ },
363
+ {
364
+ path: "medplat/admin/fhirResource/new",
365
+ element: /* @__PURE__ */ l(
366
+ c,
367
+ {
368
+ headerTitle: "Connect FHIR Server",
369
+ pageTitle: "General",
370
+ url: "medplat/admin/fhirResource",
371
+ component: Ie
372
+ }
373
+ )
374
+ },
375
+ {
376
+ path: "medplat/admin/fhirResource/:serverId",
377
+ element: /* @__PURE__ */ l(
378
+ c,
379
+ {
380
+ headerTitle: "FHIR Server",
381
+ pageTitle: "General",
382
+ url: "medplat/admin/fhirResource",
383
+ component: fe
384
+ }
385
+ )
386
+ },
387
+ {
388
+ path: "medplat/admin/fhirResource/:serverId/staging",
389
+ element: /* @__PURE__ */ l(
390
+ c,
391
+ {
392
+ headerTitle: "FHIR Staging Inbox",
393
+ pageTitle: "General",
394
+ url: "medplat/admin/fhirResource",
395
+ component: Te
396
+ }
397
+ )
398
+ }
399
+ ], w = () => ({
400
+ vaccines: [],
401
+ selectedVaccineIds: [],
402
+ views: [
403
+ {
404
+ id: "landing",
405
+ name: "Dashboard"
406
+ },
407
+ {
408
+ id: "schedule-config",
409
+ name: "Schedule Config"
410
+ },
411
+ {
412
+ id: "summary",
413
+ name: "Configuration Summary"
414
+ }
415
+ ],
416
+ currentViewId: "summary",
417
+ scheduledVaccines: [],
418
+ baseDateMaster: [],
419
+ recipientMaster: [],
420
+ dbTablesMaster: [],
421
+ filtersMaster: [],
422
+ featureRights: {},
423
+ isConfigLoaded: !1,
424
+ validationErrors: {}
425
+ }), he = w(), U = (e = [], t = {}) => {
426
+ const a = e.findIndex(
427
+ (i) => t.id !== void 0 && (i == null ? void 0 : i.id) === t.id || t.code && (i == null ? void 0 : i.code) === t.code
428
+ );
429
+ return a === -1 ? [...e, t] : e.map(
430
+ (i, o) => o === a ? {
431
+ ...i,
432
+ ...t
433
+ } : i
434
+ );
435
+ }, z = Z({
436
+ name: "immunization",
437
+ initialState: he,
438
+ reducers: {
439
+ toggleVaccine: (e, t) => {
440
+ const a = t.payload;
441
+ Array.isArray(e.selectedVaccineIds) || (e.selectedVaccineIds = []);
442
+ const i = e.selectedVaccineIds.indexOf(a);
443
+ i > -1 ? e.selectedVaccineIds.splice(i, 1) : e.selectedVaccineIds.push(a);
444
+ },
445
+ setVaccines: (e, t) => {
446
+ const a = Array.isArray(t.payload) ? t.payload : [];
447
+ e.vaccines = a, e.selectedVaccineIds.length === 0 && (e.selectedVaccineIds = a.filter((i) => i.isActive).map((i) => i.id));
448
+ },
449
+ setSelectedVaccineIds: (e, t) => {
450
+ e.selectedVaccineIds = t.payload;
451
+ },
452
+ addCustomVaccine: (e, t) => {
453
+ const a = t.payload || {}, {
454
+ name: i,
455
+ vaccine_name: o,
456
+ disease: r,
457
+ target_prevention: m,
458
+ id: p,
459
+ baseDateCode: u,
460
+ base_date_code: f,
461
+ recipientType: s,
462
+ recipient_type: h
463
+ } = a, n = i || o || "Unnamed Vaccine", y = r || m || "General", N = (Array.isArray(e.vaccines) ? e.vaccines : []).map((b) => Number(b == null ? void 0 : b.id)).filter((b) => !Number.isNaN(b)), I = N.length > 0 ? Math.max(...N) + 1 : 1, v = {
464
+ id: p || I,
465
+ name: n,
466
+ category: y,
467
+ doses: 0,
468
+ doseType: "FIXED",
469
+ scheduleType: "ROUTINE",
470
+ doseDetails: {},
471
+ regions: [],
472
+ dependencies: [],
473
+ isActive: a.isActive !== void 0 ? a.isActive : !1,
474
+ baseDateCode: u || f || null,
475
+ recipientType: s || h || ""
476
+ };
477
+ Array.isArray(e.vaccines) || (e.vaccines = []), e.vaccines.push(v);
478
+ },
479
+ setCurrentView: (e, t) => {
480
+ e.currentViewId = t.payload;
481
+ },
482
+ updateScheduledVaccine: (e, t) => {
483
+ const a = t.payload, i = e.scheduledVaccines.findIndex((o) => o.id === a.id);
484
+ i !== -1 ? e.scheduledVaccines[i] = {
485
+ ...e.scheduledVaccines[i],
486
+ ...a
487
+ } : e.scheduledVaccines.push(a);
488
+ },
489
+ setBaseDatesMaster: (e, t) => {
490
+ e.baseDateMaster = t.payload;
491
+ },
492
+ setRecipientMaster: (e, t) => {
493
+ e.recipientMaster = t.payload;
494
+ },
495
+ setDbTablesMaster: (e, t) => {
496
+ e.dbTablesMaster = t.payload;
497
+ },
498
+ setFiltersMaster: (e, t) => {
499
+ e.filtersMaster = t.payload;
500
+ },
501
+ upsertBaseDateMasterItem: (e, t) => {
502
+ e.baseDateMaster = U(e.baseDateMaster, t.payload);
503
+ },
504
+ upsertRecipientMasterItem: (e, t) => {
505
+ e.recipientMaster = U(e.recipientMaster, t.payload);
506
+ },
507
+ updateBaseDateMasterStatus: (e, t) => {
508
+ const { code: a, is_active: i } = t.payload;
509
+ e.baseDateMaster = e.baseDateMaster.map(
510
+ (o) => o.code === a ? { ...o, is_active: i } : o
511
+ );
512
+ },
513
+ upsertFilterMasterItem: (e, t) => {
514
+ e.filtersMaster = U(e.filtersMaster, t.payload);
515
+ },
516
+ updateFilterMasterStatus: (e, t) => {
517
+ const { code: a, is_active: i } = t.payload;
518
+ e.filtersMaster = e.filtersMaster.map(
519
+ (o) => o.code === a ? { ...o, is_active: i } : o
520
+ );
521
+ },
522
+ setFeatureRights: (e, t) => {
523
+ e.featureRights = t.payload || {};
524
+ },
525
+ setImmunizationConfigLoaded: (e, t) => {
526
+ e.isConfigLoaded = t.payload;
527
+ },
528
+ resetImmunizationState: () => w(),
529
+ activateSelectedVaccines: (e) => {
530
+ e.vaccines = e.vaccines.map((t) => ({
531
+ ...t,
532
+ isActive: e.selectedVaccineIds.includes(t.id)
533
+ }));
534
+ },
535
+ setVaccineStatus: (e, t) => {
536
+ const { vaccineId: a, status: i } = t.payload, o = e.vaccines.findIndex((m) => m.id === a);
537
+ o !== -1 && (e.vaccines[o].isActive = i), Array.isArray(e.selectedVaccineIds) || (e.selectedVaccineIds = []);
538
+ const r = e.selectedVaccineIds.indexOf(a);
539
+ i && r === -1 ? e.selectedVaccineIds.push(a) : !i && r !== -1 && e.selectedVaccineIds.splice(r, 1);
540
+ },
541
+ setValidationErrors: (e, t) => {
542
+ const { vaccineId: a, errors: i } = t.payload;
543
+ e.validationErrors[a] = i;
544
+ },
545
+ clearValidationErrors: (e, t) => {
546
+ const a = t.payload;
547
+ a ? delete e.validationErrors[a] : e.validationErrors = {};
548
+ }
549
+ }
550
+ }), {
551
+ toggleVaccine: tt,
552
+ setVaccines: it,
553
+ addCustomVaccine: at,
554
+ setCurrentView: nt,
555
+ updateScheduledVaccine: rt,
556
+ setBaseDatesMaster: ot,
557
+ setRecipientMaster: st,
558
+ setDbTablesMaster: lt,
559
+ setFiltersMaster: ct,
560
+ upsertBaseDateMasterItem: dt,
561
+ upsertRecipientMasterItem: mt,
562
+ updateBaseDateMasterStatus: ut,
563
+ upsertFilterMasterItem: pt,
564
+ updateFilterMasterStatus: gt,
565
+ setFeatureRights: It,
566
+ setImmunizationConfigLoaded: ft,
567
+ resetImmunizationState: Tt,
568
+ activateSelectedVaccines: ht,
569
+ setSelectedVaccineIds: bt,
570
+ setValidationErrors: yt,
571
+ clearValidationErrors: Et,
572
+ setVaccineStatus: Mt
573
+ } = z.actions, At = z.reducer, B = (e) => !e || typeof e == "string" && e.toLowerCase() === "birth" ? 0 : Number.parseInt(e) || 0, E = (e, t) => {
574
+ if (!e || typeof e == "string" && e.toLowerCase() === "birth") return 0;
575
+ const a = Number.parseInt(e) || 0;
576
+ return t === "weeks" ? a * 7 : t === "months" ? a * 30 : t === "years" ? a * 365 : a;
577
+ }, x = (e) => e == null || String(e).trim() === "", vt = "lifelong", R = (e) => e === null, be = "LIFELONG", ye = (e, t = {}, a) => {
578
+ const i = {}, o = !x(e.overdueFrom), r = !x(e.overdueTill);
579
+ if (!o)
580
+ return r && (i.overdueTill = "Set Overdue From first"), i;
581
+ const m = E(e.overdueFrom, t.overdueFrom || "days"), p = E(e.overdueTill, t.overdueTill || "days");
582
+ return m <= 0 ? i.overdueFrom = "Must be greater than 0" : a > 0 && m >= a && (i.overdueFrom = "Must be within the eligibility window"), r ? p <= m ? i.overdueTill = "Must be greater than Overdue From" : a > 0 && p > a && (i.overdueTill = "Must be within the eligibility window") : i.overdueTill = "Overdue Till is required", i;
583
+ }, Ee = (e, t, a, i = {}) => {
584
+ if (a === 0) return null;
585
+ const o = [], r = Array.isArray(e) ? e : [e], m = i.eligibleFrom || "days", p = i.eligibleTo || "days", u = i.interval || "days", f = r.findIndex((s) => R(s == null ? void 0 : s.eligibleTo));
586
+ return r.forEach((s, h) => {
587
+ const n = s.units || {}, y = n.eligibleFrom || m, T = n.eligibleTo || p, N = n.interval || u, I = {}, A = E(s.eligibleFrom, y), v = E(s.eligibleTo, T), b = R(s.eligibleTo);
588
+ (s.eligibleFrom === void 0 || s.eligibleFrom === null || s.eligibleFrom === "") && h !== 0 && (I.eligibleFrom = "Eligible From is required"), !b && (s.eligibleTo === void 0 || s.eligibleTo === "" || E(s.eligibleTo, T) === 0) && (I.eligibleTo = "Eligible To is required");
589
+ const P = t === "FLEXIBLE" && h === r.length - 1;
590
+ if (t === "FIXED" && a > 1 || !P && t === "FLEXIBLE") {
591
+ const _ = Number.parseInt(s.interval) || 0, F = E(s.interval, N);
592
+ s.interval === void 0 || s.interval === null || s.interval === "" || _ === 0 || s.interval === "0 days" ? I.interval = "Interval is required" : t === "FIXED" && a > 1 && // An open-ended window always has room for every dose.
593
+ !b && (a - 1) * F > v - A && (I.interval = `Number of doses not possible in the window. Total interval exceeds available window (${v - A} days).`);
594
+ }
595
+ if (!b && v <= A && s.eligibleFrom && s.eligibleTo && (I.eligibleTo = "Must be strictly greater than ELIGIBLE FROM"), t === "FLEXIBLE" && !b && f !== -1 && h > f && (I.eligibleTo = "Doses after a lifelong dose must also be lifelong"), t === "FLEXIBLE" && Object.assign(I, ye(s, n, b ? null : v - A)), h > 0 && t === "FLEXIBLE") {
596
+ const _ = r[h - 1], F = _.units || {}, X = F.eligibleFrom || m, j = F.interval || u, H = E(_.eligibleFrom, X), k = E(_.interval, j);
597
+ A < H + k && (I.eligibleFrom = "Must be greater than previous ELIGIBLE FROM and INTERVAL"), _.isBooster && !s.isBooster && (I.isBooster = "A regular dose cannot follow a booster dose");
598
+ }
599
+ Object.keys(I).length > 0 && (o[h] = I);
600
+ }), o.length > 0 ? o : null;
601
+ }, Me = (e) => {
602
+ const t = [], a = /* @__PURE__ */ new Set();
603
+ return e.forEach((i, o) => {
604
+ const r = {};
605
+ i.vaccine ? (a.has(i.vaccine) && (r.vaccine = "This vaccine is already added as a dependency"), a.add(i.vaccine)) : r.vaccine = "Vaccine selection is required";
606
+ const m = i.minGap === "" || i.minGap === null || i.minGap === void 0, p = i.maxGap === "" || i.maxGap === null || i.maxGap === void 0, u = B(i.minGap), f = B(i.maxGap);
607
+ i.requirement === "Should be given" || i.requirement === "Optional" ? (m ? r.minGap = "Gap cannot be empty" : u <= 0 && (r.minGap = "Must be greater than 0"), !m && !p && u > 0 && f > 0 && f <= u && (r.maxGap = "Max gap must be greater than Min Gap")) : (!m && u < 0 && (r.minGap = "Gap cannot be negative"), !p && f < 0 && (r.maxGap = "Gap cannot be negative")), Object.keys(r).length > 0 && (t[o] = r);
608
+ }), t.some((i) => i && Object.keys(i).length > 0) ? t : null;
609
+ }, Ae = (e) => {
610
+ const t = [], a = /* @__PURE__ */ new Set();
611
+ return (e || []).forEach((i, o) => {
612
+ const r = {};
613
+ i.type ? (a.has(i.type) && (r.type = "This type is already added"), a.add(i.type)) : r.type = "Type is required", (!i.value || i.value.trim() === "") && (r.value = "Value is required"), Object.keys(r).length > 0 && (t[o] = r);
614
+ }), t.some((i) => i && Object.keys(i).length > 0) ? t : null;
615
+ }, _t = (e) => {
616
+ const t = {};
617
+ (!e.name || e.name.trim() === "") && (t.name = "Vaccine Name is required"), e.recipientType || (t.recipientType = "Recipient Type is required"), e.baseDateCode || (t.baseDateCode = "Base Date is required"), (!e.doses || e.doses === 0) && (t.doses = "At least one dose is required"), e.scheduleType === "NON_ROUTINE" && e.doseType === "FLEXIBLE" && (t.doseType = "Non-routine vaccines support the FIXED dose type only");
618
+ const a = Ee(e.doseDetails, e.doseType, e.doses, e.durationUnits);
619
+ a && (t.doseDetails = a);
620
+ const i = Me(e.dependencies || []);
621
+ i && (t.dependencies = i);
622
+ const o = Ae(e.codeSets || []);
623
+ return o && (t.codeSets = o), Object.keys(t).length > 0 ? t : null;
624
+ }, M = (e, t) => {
625
+ if (e == null)
626
+ return t;
627
+ if (typeof e != "string")
628
+ return e;
629
+ try {
630
+ return JSON.parse(e);
631
+ } catch {
632
+ return t;
633
+ }
634
+ }, S = (...e) => e.filter(Boolean).join("_"), L = (e) => R(e) ? be : e === void 0 || e === "" || e === "N.A." || e === "null days" ? "N.A." : e, q = (e, t = "FLEXIBLE", a = 1) => {
635
+ if (a === 0 || !e)
636
+ return "N.A.";
637
+ if (t === "FIXED") {
638
+ const r = Array.isArray(e) ? e[0] : e;
639
+ if (!r)
640
+ return "N.A.";
641
+ const m = L(r.eligibleFrom), p = L(r.eligibleTo);
642
+ return m === "N.A." && p === "N.A." ? "N.A." : `${m} to ${p}`;
643
+ }
644
+ if (!Array.isArray(e) || e.length === 0)
645
+ return "N.A.";
646
+ const i = L(e[0].eligibleFrom), o = L(
647
+ e[e.length - 1].eligibleTo
648
+ );
649
+ return i === "N.A." && o === "N.A." ? "N.A." : `${i} to ${o}`;
650
+ }, $ = {
651
+ eligibleFrom: "days",
652
+ eligibleTo: "days",
653
+ interval: "days"
654
+ }, ve = () => ({
655
+ productId: null,
656
+ noOfDoses: 0,
657
+ doseType: "FIXED",
658
+ doseEligibleFrom: void 0,
659
+ doseEligibleTo: void 0,
660
+ minGap: 0,
661
+ durationUnits: { ...$ },
662
+ dose: [],
663
+ location: [],
664
+ validations: []
665
+ }), _e = (e, t, a) => {
666
+ const i = String(e.doseType || "").toLowerCase(), o = i === "fixed" || i === "na" || !e.doseType, r = M(e.durationUnits, {
667
+ ...$
668
+ }), m = `${t}s${a}`, p = o ? [
669
+ {
670
+ id: S("fixed", m),
671
+ eligibleFrom: e.doseEligibleFrom !== void 0 && e.doseEligibleFrom !== null ? `${e.doseEligibleFrom} ${r.eligibleFrom || "days"}` : "",
672
+ // NULL is the stored form of a lifelong window — see the FLEXIBLE branch below.
673
+ eligibleTo: e.doseEligibleTo === null ? null : e.doseEligibleTo !== void 0 ? `${e.doseEligibleTo} ${r.eligibleTo || "days"}` : "",
674
+ interval: e.minGap || 0
675
+ }
676
+ ] : M(e.dose, []).map((n, y) => {
677
+ const T = {
678
+ eligibleFrom: n.eligible_from_unit || r.eligibleFrom || "days",
679
+ eligibleTo: n.eligible_to_unit || r.eligibleTo || "days",
680
+ interval: n.interval_unit || r.interval || "days",
681
+ overdueFrom: n.overdue_from_unit || "days",
682
+ overdueTill: n.overdue_till_unit || "days"
683
+ };
684
+ return {
685
+ id: n.id || S("dose", m, y),
686
+ isBooster: n.isBooster === !0 || n.is_booster === !0 || typeof n.dose == "string" && n.dose.toUpperCase().startsWith("B"),
687
+ alias: n.alias || n.booster_alias || "",
688
+ eligibleFrom: n.eligible_from !== void 0 ? `${n.eligible_from} ${T.eligibleFrom}` : "",
689
+ // NULL is the stored form of a lifelong window; it must survive as null rather
690
+ // than becoming the string "null days".
691
+ eligibleTo: n.eligible_to === null ? null : n.eligible_to !== void 0 ? `${n.eligible_to} ${T.eligibleTo}` : "",
692
+ overdueFrom: n.overdue_from !== void 0 && n.overdue_from !== null ? `${n.overdue_from} ${T.overdueFrom}` : "",
693
+ overdueTill: n.overdue_till !== void 0 && n.overdue_till !== null ? `${n.overdue_till} ${T.overdueTill}` : "",
694
+ interval: n.min_gap || 0,
695
+ units: T
696
+ };
697
+ }), u = M(e.location, []).filter((n) => n && typeof n == "object").map((n, y) => {
698
+ var T;
699
+ return {
700
+ id: S("region", m, y),
701
+ locationId: n.locationId,
702
+ locationIdArr: n.locationIdArr,
703
+ locationList: n.locationList,
704
+ fullPath: (T = n.locationList) == null ? void 0 : T.replaceAll(" => ", " → ")
705
+ };
706
+ }), f = M(e.validations, []).map(
707
+ (n, y) => ({
708
+ id: S("dep", m, y),
709
+ vaccine: n.vaccine || "",
710
+ requirement: n.requirement || "Should be given",
711
+ minGap: Number.parseInt(n.minGap, 10) || 0,
712
+ maxGap: Number.parseInt(n.maxGap, 10) || 0,
713
+ message: n.message || ""
714
+ })
715
+ ), s = e.noOfDoses || 0, h = e.doseType && e.doseType !== "NA" ? e.doseType : "FIXED";
716
+ return {
717
+ productId: e.productId ?? null,
718
+ doses: s,
719
+ doseType: h,
720
+ doseDetails: p,
721
+ durationUnits: r,
722
+ regions: u,
723
+ dependencies: f,
724
+ eligibility: q(p, h, s)
725
+ };
726
+ }, Ne = (e) => {
727
+ const t = M(e.schedule, []), i = (Array.isArray(t) && t.length > 0 ? t : [ve()]).map(
728
+ (f, s) => _e(f || {}, e.id, s)
729
+ ), o = M(e.filters, []), r = Array.isArray(o) ? o : (o == null ? void 0 : o.codes) || [], m = M(e.code_sets, []), p = Array.isArray(m) ? m : [], [u] = i;
730
+ return {
731
+ ...e,
732
+ name: e.vaccine_name || e.name || "N.A.",
733
+ category: e.target_prevention || e.disease || e.category || "N.A.",
734
+ productSchedules: i,
735
+ doses: u.doses,
736
+ doseType: u.doseType,
737
+ doseDetails: u.doseDetails,
738
+ eligibility: u.eligibility,
739
+ isActive: e.is_active !== void 0 ? e.is_active : !0,
740
+ // True while this vaccine has configuration saved but not yet published. Everything above
741
+ // is already the draft's values — FETCH_IMMUNISATION_MASTER prefers the draft — so this is
742
+ // the only thing telling the screen that what it is showing is not what members see.
743
+ hasUnpublishedChanges: !!e.has_unpublished_changes,
744
+ regions: u.regions,
745
+ dependencies: u.dependencies,
746
+ filters: r,
747
+ codeSets: p,
748
+ durationUnits: u.durationUnits,
749
+ baseDateCode: e.base_date_code,
750
+ recipientType: e.recipient_type || "",
751
+ scheduleType: e.schedule_type === "NON_ROUTINE" ? "NON_ROUTINE" : "ROUTINE"
752
+ };
753
+ }, Fe = () => g({
754
+ code: "FETCH_IMMUNISATION_MASTER",
755
+ parameters: {}
756
+ }), Se = () => g({
757
+ code: "FETCH_IMMUNISATION_BASE_DATE",
758
+ parameters: {}
759
+ }), Le = () => g({
760
+ code: "FETCH_IMMUNISATION_RECEPIENT_MASTER",
761
+ parameters: {}
762
+ }), Ue = () => Q([
763
+ {
764
+ code: "FETCH_IMMUNISATION_BASE_DATE",
765
+ parameters: {},
766
+ sequence: 1
767
+ },
768
+ {
769
+ code: "GET_ALL_IMMUNISATION_FILTERS",
770
+ parameters: {},
771
+ sequence: 2
772
+ },
773
+ {
774
+ code: "FETCH_IMMUNISATION_MASTER",
775
+ parameters: {},
776
+ sequence: 3
777
+ },
778
+ {
779
+ code: "FETCH_IMMUNISATION_RECEPIENT_MASTER",
780
+ parameters: {},
781
+ sequence: 4
782
+ }
783
+ ]), Re = (e) => g({
784
+ code: "INSERT_IMMUNIZATION_MASTER",
785
+ parameters: e
786
+ }), De = (e) => g({
787
+ code: "UPDATE_IMMUNIZATION_DOSE",
788
+ ...e
789
+ }), Ve = (e) => g({
790
+ code: "CHECK_IMMUNIZATION_CONFIGURATION_INITIATION",
791
+ ...e
792
+ }), Oe = (e) => g({
793
+ code: "UPDATE_IMMUNIZATION_STATUS",
794
+ ...e
795
+ }), Ge = (e) => g({
796
+ code: "UPDATE_IMMUNIZATION_STATUS_FOR_ARRAY",
797
+ ...e
798
+ }), Ce = (e) => g({
799
+ code: "UPDATE_IMMUNIZATION_CONFIGURATION_INITIATION",
800
+ ...e
801
+ }), Be = (e) => g({
802
+ code: "SAVE_IMMUNISATION_BASE_DATE",
803
+ parameters: e
804
+ }), xe = (e) => g({
805
+ code: "SAVE_IMMUNISATION_RECEPIENT_MASTER",
806
+ parameters: e
807
+ }), we = (e) => g({
808
+ code: "UPDATE_IMMUNISATION_RECEPIENT_MASTER",
809
+ parameters: e
810
+ }), ze = (e) => g({
811
+ code: "UPDATE_IMMUNISATION_BASE_DATE",
812
+ parameters: e
813
+ }), qe = () => g({
814
+ code: "retrieve_all_tables_and_columns",
815
+ parameters: {}
816
+ }), $e = () => g({
817
+ code: "GET_ALL_IMMUNISATION_FILTERS",
818
+ parameters: {}
819
+ }), Pe = (e) => g({
820
+ code: "ADD_IMMUNISATION_FILTER",
821
+ parameters: e
822
+ }), Xe = (e) => g({
823
+ code: "UPDATE_IMMUNISATION_FILTER",
824
+ parameters: e
825
+ }), je = (e) => D.post("/medplatform/v2/immunisation/list", e), He = (e) => D.post("/medplatform/v2/immunisation/revalidate", e), ke = (e) => D.post("/medplatform/v2/immunisation/config-change-notification", e), Nt = {
826
+ calculateOverallEligibility: q,
827
+ mapImmunizationVaccineConfig: Ne,
828
+ getVaccines: Fe,
829
+ getBaseDates: Se,
830
+ getRecipients: Le,
831
+ getImmunizationReferenceData: Ue,
832
+ addImmunization: Re,
833
+ updateImmunization: De,
834
+ checkImmunizationConfigurationInitiation: Ve,
835
+ updateVaccineStatus: Oe,
836
+ updateVaccineStatusFromArray: Ge,
837
+ updateImmunizationConfigurationInitiation: Ce,
838
+ saveBaseDate: Be,
839
+ saveRecipient: xe,
840
+ updateRecipient: we,
841
+ updateBaseDate: ze,
842
+ getAllTablesAndColumns: qe,
843
+ getFilters: $e,
844
+ addFilter: Pe,
845
+ updateFilter: Xe,
846
+ getImmunisationV2List: je,
847
+ revalidateImmunisationV2List: He,
848
+ notifyConfigChange: ke
849
+ };
850
+ export {
851
+ Nt as I,
852
+ vt as L,
853
+ x as a,
854
+ _t as b,
855
+ be as c,
856
+ At as d,
857
+ et as e,
858
+ E as g,
859
+ R as i,
860
+ ye as v
861
+ };
862
+ //# sourceMappingURL=index.lib-Dn8PMkeD.js.map