@argusoft/medplat-core 1.0.30 → 1.0.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (226) hide show
  1. package/dist/{AccessRights-xrday-L1.js → AccessRights-DBjTQA1-.js} +395 -390
  2. package/dist/AccessRights-DBjTQA1-.js.map +1 -0
  3. package/dist/{AddFeatures-D1sU8RjY.js → AddFeatures-COj4ZTIM.js} +2 -2
  4. package/dist/{AddFeatures-D1sU8RjY.js.map → AddFeatures-COj4ZTIM.js.map} +1 -1
  5. package/dist/AddMenuConfiguration-Creeib5X.js +11223 -0
  6. package/dist/AddMenuConfiguration-Creeib5X.js.map +1 -0
  7. package/dist/AddMenuConfiguration.css +1 -1
  8. package/dist/{BrandsPage-DmRW5bhm-Bk1szrjI.js → BrandsPage-CdcAvaml-ZtVTX6vX.js} +43 -43
  9. package/dist/{BrandsPage-DmRW5bhm-Bk1szrjI.js.map → BrandsPage-CdcAvaml-ZtVTX6vX.js.map} +1 -1
  10. package/dist/{CategoriesPage-BsS5IQh3-B03lWRY5.js → CategoriesPage-BprQEYJw-CclreTv1.js} +109 -102
  11. package/dist/CategoriesPage-BprQEYJw-CclreTv1.js.map +1 -0
  12. package/dist/{ChangePasswordModalCore-BPsJquTS.js → ChangePasswordModalCore-DZGOkbRY.js} +3 -3
  13. package/dist/{ChangePasswordModalCore-BPsJquTS.js.map → ChangePasswordModalCore-DZGOkbRY.js.map} +1 -1
  14. package/dist/ConditionConfig-Bpm6OoV5.js +408 -0
  15. package/dist/ConditionConfig-Bpm6OoV5.js.map +1 -0
  16. package/dist/{DashboardPage-C3bKc5na-sBd9Yqbi.js → DashboardPage-CTiGSx71-CsYohJ5e.js} +32 -32
  17. package/dist/{DashboardPage-C3bKc5na-sBd9Yqbi.js.map → DashboardPage-CTiGSx71-CsYohJ5e.js.map} +1 -1
  18. package/dist/EntityManagement-BGwJGl9k.js +62 -0
  19. package/dist/EntityManagement-BGwJGl9k.js.map +1 -0
  20. package/dist/EventConfig-BY2cgGyx.js +27 -0
  21. package/dist/{EventConfig-BmLemzX3.js.map → EventConfig-BY2cgGyx.js.map} +1 -1
  22. package/dist/EventConfigurations-B-z7xHh_.js +544 -0
  23. package/dist/EventConfigurations-B-z7xHh_.js.map +1 -0
  24. package/dist/EventConfigurations.css +1 -1
  25. package/dist/EventsExceptionModal-DafomIv6.js +188 -0
  26. package/dist/EventsExceptionModal-DafomIv6.js.map +1 -0
  27. package/dist/EventsUi-Dl_yckSA.js +263 -0
  28. package/dist/EventsUi-Dl_yckSA.js.map +1 -0
  29. package/dist/FacilityPicker-BXa2VF7i-Dab_Jwa5.js +112 -0
  30. package/dist/FacilityPicker-BXa2VF7i-Dab_Jwa5.js.map +1 -0
  31. package/dist/{FeatureMenu-DYJmDt7q.js → FeatureMenu-Kc73yPHH.js} +9 -5
  32. package/dist/FeatureMenu-Kc73yPHH.js.map +1 -0
  33. package/dist/{FhirServerList-DuTwnngN.js → FhirServerList-CrIHMAxz.js} +16 -16
  34. package/dist/{FhirServerList-DuTwnngN.js.map → FhirServerList-CrIHMAxz.js.map} +1 -1
  35. package/dist/{FhirServerProfile-CUOwC6Wb.js → FhirServerProfile-D3aYcpwY.js} +8 -8
  36. package/dist/{FhirServerProfile-CUOwC6Wb.js.map → FhirServerProfile-D3aYcpwY.js.map} +1 -1
  37. package/dist/{FhirServerWizard-DZI8Olku.js → FhirServerWizard-Db6Hm4bQ.js} +15 -15
  38. package/dist/{FhirServerWizard-DZI8Olku.js.map → FhirServerWizard-Db6Hm4bQ.js.map} +1 -1
  39. package/dist/{GrantPermissionModal-BDN66Atn.js → GrantPermissionModal-D7iNZd0M.js} +54 -51
  40. package/dist/GrantPermissionModal-D7iNZd0M.js.map +1 -0
  41. package/dist/ImmunizationConfigurationBase-lKsJZMak.js +8060 -0
  42. package/dist/ImmunizationConfigurationBase-lKsJZMak.js.map +1 -0
  43. package/dist/InventoryPage-JadYMCzU-CzJQfQ2A.js +1017 -0
  44. package/dist/InventoryPage-JadYMCzU-CzJQfQ2A.js.map +1 -0
  45. package/dist/LocationWiseExpectedTargetPage-CjKk1aTF.js +1344 -0
  46. package/dist/LocationWiseExpectedTargetPage-CjKk1aTF.js.map +1 -0
  47. package/dist/{ManageDynamicFeature-BU0I45dd.js → ManageDynamicFeature-CuyYfx_P.js} +104 -97
  48. package/dist/ManageDynamicFeature-CuyYfx_P.js.map +1 -0
  49. package/dist/ManageEventConfiguration-DqPbn3Oi.js +1216 -0
  50. package/dist/ManageEventConfiguration-DqPbn3Oi.js.map +1 -0
  51. package/dist/ManageEventConfiguration.css +1 -1
  52. package/dist/ManageRole-CyfpySt9.js +981 -0
  53. package/dist/ManageRole-CyfpySt9.js.map +1 -0
  54. package/dist/{ManageUser-DCFkUMV9.js → ManageUser-Dm0l833u.js} +286 -286
  55. package/dist/{ManageUser-DCFkUMV9.js.map → ManageUser-Dm0l833u.js.map} +1 -1
  56. package/dist/{MemberProfileCard-BdUNgHRB-VywqQdFF.js → MemberProfileCard-01d_jz3w-DYHtbgMX.js} +46 -46
  57. package/dist/{MemberProfileCard-BdUNgHRB-VywqQdFF.js.map → MemberProfileCard-01d_jz3w-DYHtbgMX.js.map} +1 -1
  58. package/dist/MobileAnalytics-C9oc2yAo.js +18399 -0
  59. package/dist/MobileAnalytics-C9oc2yAo.js.map +1 -0
  60. package/dist/MobileMenuManagement-BmzTPXy7.js +231 -0
  61. package/dist/MobileMenuManagement-BmzTPXy7.js.map +1 -0
  62. package/dist/MobileTypeEventConfigModal-DodU3beR.js +752 -0
  63. package/dist/MobileTypeEventConfigModal-DodU3beR.js.map +1 -0
  64. package/dist/{NewServerManagement-Cxe0dV0O.js → NewServerManagement-BdayO78D.js} +368 -352
  65. package/dist/NewServerManagement-BdayO78D.js.map +1 -0
  66. package/dist/OtherTypeEventConfigModal-D_9S50aI.js +1414 -0
  67. package/dist/OtherTypeEventConfigModal-D_9S50aI.js.map +1 -0
  68. package/dist/{PaymentCreatePage-CIVe0P0p-25BQVpOX.js → PaymentCreatePage-D6NZBUC3-DxXf2kvH.js} +58 -58
  69. package/dist/{PaymentCreatePage-CIVe0P0p-25BQVpOX.js.map → PaymentCreatePage-D6NZBUC3-DxXf2kvH.js.map} +1 -1
  70. package/dist/{PaymentsPage-BvPe5Q9F-D2gfziwW.js → PaymentsPage-CHieGNrn-BnYCtqHd.js} +37 -37
  71. package/dist/{PaymentsPage-BvPe5Q9F-D2gfziwW.js.map → PaymentsPage-CHieGNrn-BnYCtqHd.js.map} +1 -1
  72. package/dist/{PermissionsModal-CCYkcKlC.js → PermissionsModal-Dxbkkrqe.js} +18 -18
  73. package/dist/PermissionsModal-Dxbkkrqe.js.map +1 -0
  74. package/dist/{PickupBatchLinesEditor-DHmcAG23-DL2p6IKJ.js → PickupBatchLinesEditor-QPaqFtUO-CY7BShYh.js} +2 -2
  75. package/dist/{PickupBatchLinesEditor-DHmcAG23-DL2p6IKJ.js.map → PickupBatchLinesEditor-QPaqFtUO-CY7BShYh.js.map} +1 -1
  76. package/dist/PickupCreatePage-C7_67u_u-OId8-e2a.js +801 -0
  77. package/dist/PickupCreatePage-C7_67u_u-OId8-e2a.js.map +1 -0
  78. package/dist/{PickupsPage-Ctpghavs-CUp4uIZq.js → PickupsPage-BWblMlic-CWkgeBw0.js} +132 -132
  79. package/dist/PickupsPage-BWblMlic-CWkgeBw0.js.map +1 -0
  80. package/dist/PmGuard-BvUUbU80-BpYNaDzl.js +641 -0
  81. package/dist/PmGuard-BvUUbU80-BpYNaDzl.js.map +1 -0
  82. package/dist/ProductEditPage-Dbq4vUAA-BoBmTPPL.js +1523 -0
  83. package/dist/ProductEditPage-Dbq4vUAA-BoBmTPPL.js.map +1 -0
  84. package/dist/{ProductsPage-CupVmOD4-D45a_hf-.js → ProductsPage-BI22nPb4-CQBjnc-n.js} +44 -43
  85. package/dist/ProductsPage-BI22nPb4-CQBjnc-n.js.map +1 -0
  86. package/dist/PurchaseCreatePage-C0EK9z4w-BQMTsjE7.js +724 -0
  87. package/dist/PurchaseCreatePage-C0EK9z4w-BQMTsjE7.js.map +1 -0
  88. package/dist/{PurchaseRequestDetailPage-Dg_MRY_N-D1bgTEAn.js → PurchaseRequestDetailPage-DhBuOGHZ-CWZPqzt9.js} +428 -418
  89. package/dist/PurchaseRequestDetailPage-DhBuOGHZ-CWZPqzt9.js.map +1 -0
  90. package/dist/{PurchaseRequestsPage-DPAPzpmm-mDH2IrTl.js → PurchaseRequestsPage-Bj9HUMxb-B7-AxT8m.js} +65 -65
  91. package/dist/{PurchaseRequestsPage-DPAPzpmm-mDH2IrTl.js.map → PurchaseRequestsPage-Bj9HUMxb-B7-AxT8m.js.map} +1 -1
  92. package/dist/{PurchasesPage-It1GHiXl-eH4IsF_U.js → PurchasesPage-Djl1AqD_-DXeYFMrX.js} +55 -55
  93. package/dist/{PurchasesPage-It1GHiXl-eH4IsF_U.js.map → PurchasesPage-Djl1AqD_-DXeYFMrX.js.map} +1 -1
  94. package/dist/{RoleManagement-s8iNx2Mu.js → RoleManagement-DVYufwy-.js} +3 -3
  95. package/dist/{RoleManagement-s8iNx2Mu.js.map → RoleManagement-DVYufwy-.js.map} +1 -1
  96. package/dist/Roles-BoNGJhtR.js +19 -0
  97. package/dist/Roles-BoNGJhtR.js.map +1 -0
  98. package/dist/{SaleCreatePage-C9kFmTvm-B3Y0o4CX.js → SaleCreatePage-DHBLmlBr-BlgjVsq6.js} +39 -39
  99. package/dist/{SaleCreatePage-C9kFmTvm-B3Y0o4CX.js.map → SaleCreatePage-DHBLmlBr-BlgjVsq6.js.map} +1 -1
  100. package/dist/{SalesPage-D18DCseD-BxktGDRQ.js → SalesPage-eF9Yr42z-BQ9FlXC3.js} +61 -61
  101. package/dist/{SalesPage-D18DCseD-BxktGDRQ.js.map → SalesPage-eF9Yr42z-BQ9FlXC3.js.map} +1 -1
  102. package/dist/SettingsPage-Cre-UE3r-9ntnLYsQ.js +741 -0
  103. package/dist/SettingsPage-Cre-UE3r-9ntnLYsQ.js.map +1 -0
  104. package/dist/{ShowFlywayQuery-D1y_4A1u.js → ShowFlywayQuery-DIOUdYfG.js} +26 -19
  105. package/dist/{ShowFlywayQuery-D1y_4A1u.js.map → ShowFlywayQuery-DIOUdYfG.js.map} +1 -1
  106. package/dist/{StorageUnitsPage-7EqwuMOI-BwUso1Th.js → StorageUnitsPage-CTEVuemZ-B4osG74N.js} +253 -223
  107. package/dist/StorageUnitsPage-CTEVuemZ-B4osG74N.js.map +1 -0
  108. package/dist/{SubMenu-eEDhZUvh.js → SubMenu-OO2zhKiu.js} +5 -3
  109. package/dist/SubMenu-OO2zhKiu.js.map +1 -0
  110. package/dist/{TableDetails-BtafRxXb.js → TableDetails-Cc40dEUs.js} +272 -267
  111. package/dist/TableDetails-Cc40dEUs.js.map +1 -0
  112. package/dist/{TableList-Dpo6dO7S.js → TableList-B5tX4wII.js} +316 -312
  113. package/dist/TableList-B5tX4wII.js.map +1 -0
  114. package/dist/{TransactionsPage-DrH53pVS-BkhIGB6C.js → TransactionsPage-Zuu7sjID-B-ACzvd1.js} +195 -180
  115. package/dist/TransactionsPage-Zuu7sjID-B-ACzvd1.js.map +1 -0
  116. package/dist/TransferCreatePage-DlT0nCDj-B2SdPgYB.js +635 -0
  117. package/dist/TransferCreatePage-DlT0nCDj-B2SdPgYB.js.map +1 -0
  118. package/dist/TransfersPage-DqaSvHda-G2tFa5Jq.js +600 -0
  119. package/dist/TransfersPage-DqaSvHda-G2tFa5Jq.js.map +1 -0
  120. package/dist/TypeConfiguration-EaFiOzRE.js +114 -0
  121. package/dist/TypeConfiguration-EaFiOzRE.js.map +1 -0
  122. package/dist/UserList-Cf5B-o_1.js +1904 -0
  123. package/dist/UserList-Cf5B-o_1.js.map +1 -0
  124. package/dist/Users-MC7txo1V.js +43 -0
  125. package/dist/{Users-Bpc4Sazd.js.map → Users-MC7txo1V.js.map} +1 -1
  126. package/dist/VaccineEducation-T_UE57Ef.js +231 -0
  127. package/dist/VaccineEducation-T_UE57Ef.js.map +1 -0
  128. package/dist/VaccineEducation.css +1 -0
  129. package/dist/VaccineEducationConfigurator-CWc20_rv.js +50948 -0
  130. package/dist/VaccineEducationConfigurator-CWc20_rv.js.map +1 -0
  131. package/dist/VaccineEducationConfigurator.css +4 -0
  132. package/dist/VaccineEducationList-Ok7_5EFb.js +334 -0
  133. package/dist/VaccineEducationList-Ok7_5EFb.js.map +1 -0
  134. package/dist/VialsPage-LoDaUqVv-DmMXbK8j.js +457 -0
  135. package/dist/VialsPage-LoDaUqVv-DmMXbK8j.js.map +1 -0
  136. package/dist/{constants-ClZJY2x1-MkSWn6TZ.js → constants-BTpJFQe_-CYPZIqQF.js} +166 -56
  137. package/dist/constants-BTpJFQe_-CYPZIqQF.js.map +1 -0
  138. package/dist/dashboardLayoutUtils--xUnoKPa.js +615 -0
  139. package/dist/dashboardLayoutUtils--xUnoKPa.js.map +1 -0
  140. package/dist/index-mfoqII2U.js +524 -0
  141. package/dist/index-mfoqII2U.js.map +1 -0
  142. package/dist/{index-D9YNFPn9.js → index-o8Pyt1Bt.js} +445 -439
  143. package/dist/index-o8Pyt1Bt.js.map +1 -0
  144. package/dist/index.css +1 -1
  145. package/dist/index.js +1 -1
  146. package/dist/index.lib-BySa9-Z-.js +936 -0
  147. package/dist/index.lib-BySa9-Z-.js.map +1 -0
  148. package/dist/listValueStore-5d4vNGQM-WclZ5nBG.js +43 -0
  149. package/dist/listValueStore-5d4vNGQM-WclZ5nBG.js.map +1 -0
  150. package/package.json +5 -1
  151. package/dist/AccessRights-xrday-L1.js.map +0 -1
  152. package/dist/AddMenuConfiguration-e5BVXhmw.js +0 -8547
  153. package/dist/AddMenuConfiguration-e5BVXhmw.js.map +0 -1
  154. package/dist/CategoriesPage-BsS5IQh3-B03lWRY5.js.map +0 -1
  155. package/dist/ConditionConfig-Ddz9halE.js +0 -395
  156. package/dist/ConditionConfig-Ddz9halE.js.map +0 -1
  157. package/dist/ConditionConfig.css +0 -1
  158. package/dist/EntityManagement-CPQL6qBj.js +0 -50
  159. package/dist/EntityManagement-CPQL6qBj.js.map +0 -1
  160. package/dist/EventConfig-BmLemzX3.js +0 -26
  161. package/dist/EventConfigurations-Bzh1qWXU.js +0 -450
  162. package/dist/EventConfigurations-Bzh1qWXU.js.map +0 -1
  163. package/dist/EventsExceptionModal-B2SRrnB1.js +0 -200
  164. package/dist/EventsExceptionModal-B2SRrnB1.js.map +0 -1
  165. package/dist/EventsSkeleton-BIcPks4T.js +0 -61
  166. package/dist/EventsSkeleton-BIcPks4T.js.map +0 -1
  167. package/dist/FacilityPicker-BiZeupmP-CyPHmj6b.js +0 -79
  168. package/dist/FacilityPicker-BiZeupmP-CyPHmj6b.js.map +0 -1
  169. package/dist/FeatureMenu-DYJmDt7q.js.map +0 -1
  170. package/dist/GrantPermissionModal-BDN66Atn.js.map +0 -1
  171. package/dist/ImmunizationConfigurationBase-Di1KO3oW.js +0 -7639
  172. package/dist/ImmunizationConfigurationBase-Di1KO3oW.js.map +0 -1
  173. package/dist/InventoryPage-C_AxSy7A-QLvlL4rE.js +0 -665
  174. package/dist/InventoryPage-C_AxSy7A-QLvlL4rE.js.map +0 -1
  175. package/dist/ManageDynamicFeature-BU0I45dd.js.map +0 -1
  176. package/dist/ManageEventConfiguration-CoYcpjR9.js +0 -1085
  177. package/dist/ManageEventConfiguration-CoYcpjR9.js.map +0 -1
  178. package/dist/ManageRole-CNZBRKGU.js +0 -776
  179. package/dist/ManageRole-CNZBRKGU.js.map +0 -1
  180. package/dist/MobileAnalytics-pQoE8cG1.js +0 -16888
  181. package/dist/MobileAnalytics-pQoE8cG1.js.map +0 -1
  182. package/dist/MobileMenuManagement-Cf8IZlla.js +0 -108
  183. package/dist/MobileMenuManagement-Cf8IZlla.js.map +0 -1
  184. package/dist/MobileTypeEventConfigModal-BeveaX0C.js +0 -783
  185. package/dist/MobileTypeEventConfigModal-BeveaX0C.js.map +0 -1
  186. package/dist/NewServerManagement-Cxe0dV0O.js.map +0 -1
  187. package/dist/OtherTypeEventConfigModal-CM6VkdmY.js +0 -2046
  188. package/dist/OtherTypeEventConfigModal-CM6VkdmY.js.map +0 -1
  189. package/dist/PermissionsModal-CCYkcKlC.js.map +0 -1
  190. package/dist/PickupCreatePage-CB0Sl0Hb-Mmj7zESG.js +0 -783
  191. package/dist/PickupCreatePage-CB0Sl0Hb-Mmj7zESG.js.map +0 -1
  192. package/dist/PickupsPage-Ctpghavs-CUp4uIZq.js.map +0 -1
  193. package/dist/PmGuard-b10TGXEi-G3N0G_Wg.js +0 -599
  194. package/dist/PmGuard-b10TGXEi-G3N0G_Wg.js.map +0 -1
  195. package/dist/ProductEditPage-C1thoKHu-URQaZ6st.js +0 -1302
  196. package/dist/ProductEditPage-C1thoKHu-URQaZ6st.js.map +0 -1
  197. package/dist/ProductsPage-CupVmOD4-D45a_hf-.js.map +0 -1
  198. package/dist/PurchaseCreatePage-YD3NmhPQ-2j4etSjM.js +0 -648
  199. package/dist/PurchaseCreatePage-YD3NmhPQ-2j4etSjM.js.map +0 -1
  200. package/dist/PurchaseRequestDetailPage-Dg_MRY_N-D1bgTEAn.js.map +0 -1
  201. package/dist/Roles-BIyiic67.js +0 -14
  202. package/dist/Roles-BIyiic67.js.map +0 -1
  203. package/dist/SettingsPage-VsxI-ano-DcmtUUEj.js +0 -747
  204. package/dist/SettingsPage-VsxI-ano-DcmtUUEj.js.map +0 -1
  205. package/dist/StorageUnitsPage-7EqwuMOI-BwUso1Th.js.map +0 -1
  206. package/dist/SubMenu-eEDhZUvh.js.map +0 -1
  207. package/dist/TableDetails-BtafRxXb.js.map +0 -1
  208. package/dist/TableList-Dpo6dO7S.js.map +0 -1
  209. package/dist/TransactionsPage-DrH53pVS-BkhIGB6C.js.map +0 -1
  210. package/dist/TransferCreatePage-CuvoMrYH-DTTfHjz-.js +0 -315
  211. package/dist/TransferCreatePage-CuvoMrYH-DTTfHjz-.js.map +0 -1
  212. package/dist/TransfersPage-Cf701t8s-BBbN7cBf.js +0 -476
  213. package/dist/TransfersPage-Cf701t8s-BBbN7cBf.js.map +0 -1
  214. package/dist/TypeConfiguration-3O6ABrK-.js +0 -117
  215. package/dist/TypeConfiguration-3O6ABrK-.js.map +0 -1
  216. package/dist/UserList-DgPxsnj2.js +0 -1129
  217. package/dist/UserList-DgPxsnj2.js.map +0 -1
  218. package/dist/Users-Bpc4Sazd.js +0 -41
  219. package/dist/VialsPage-8oAc1yFv-Cl3FUXBJ.js +0 -321
  220. package/dist/VialsPage-8oAc1yFv-Cl3FUXBJ.js.map +0 -1
  221. package/dist/constants-ClZJY2x1-MkSWn6TZ.js.map +0 -1
  222. package/dist/dashboardLayoutUtils-D1xCAxp3.js +0 -405
  223. package/dist/dashboardLayoutUtils-D1xCAxp3.js.map +0 -1
  224. package/dist/index-D9YNFPn9.js.map +0 -1
  225. package/dist/index.lib-Dn8PMkeD.js +0 -862
  226. package/dist/index.lib-Dn8PMkeD.js.map +0 -1
@@ -0,0 +1,936 @@
1
+ import { jsx as l } from "react/jsx-runtime";
2
+ import { lazy as m } from "react";
3
+ import { createSlice as Z } from "@reduxjs/toolkit";
4
+ import { execute as f, executeAll as Q } from "@/common/services/GlobalApis";
5
+ import { api as U } from "@/common/interceptors/AxiosInterceptor";
6
+ import './index.css';const s = m(
7
+ () => import("@/views/feature-components/VerifyRoute.jsx")
8
+ ), J = m(() => import("./RoleManagement-DVYufwy-.js")), K = m(
9
+ () => import("./QueryBuilder-CXaBe6sr.js").then((e) => e.Q)
10
+ ), Y = m(() => import("./UserList-Cf5B-o_1.js")), V = m(() => import("./ManageUser-Dm0l833u.js").then((e) => e.M)), ee = m(
11
+ () => import("./QueryManagement-BIhEDKuA.js")
12
+ ), te = m(() => import("./FeatureMenu-Kc73yPHH.js").then((e) => e.F)), ie = m(() => import("./index-o8Pyt1Bt.js")), ne = m(
13
+ () => import("./NewServerManagement-BdayO78D.js")
14
+ ), G = m(
15
+ () => import("./ManageDynamicFeature-CuyYfx_P.js")
16
+ ), ae = m(
17
+ () => import("./SecurityAuditLogList-Dod711KT.js")
18
+ ), re = m(
19
+ () => import("./EventConfigurations-B-z7xHh_.js")
20
+ ), C = m(
21
+ () => import("./ManageEventConfiguration-DqPbn3Oi.js")
22
+ ), oe = m(
23
+ () => import("./EntityManagement-BGwJGl9k.js")
24
+ ), le = m(
25
+ () => import("./MobileAnalytics-C9oc2yAo.js")
26
+ ), se = m(
27
+ () => import("./MobileMenuManagement-BmzTPXy7.js")
28
+ ), ce = m(
29
+ () => import("./AddMenuConfiguration-Creeib5X.js")
30
+ ), de = m(
31
+ () => import("./ManageTranslation-vRiptUAP.js").then((e) => e.j)
32
+ ), me = m(
33
+ () => import("./WidgetList-D7YuWfDD.js")
34
+ ), ue = m(
35
+ () => import("./NotificationList-DEyRZEuM.js").then((e) => e.N)
36
+ ), pe = m(
37
+ () => import("./ImmunizationConfigurationsList-TZcLDEci.js")
38
+ ), O = m(
39
+ () => import("./manageImmunization-B4swS745.js")
40
+ ), ge = m(
41
+ () => import("./ImmunizationConfigurationBase-lKsJZMak.js").then((e) => e.aq)
42
+ ), Te = m(
43
+ () => import("./VaccineEducationList-Ok7_5EFb.js")
44
+ ), fe = m(
45
+ () => import("./VaccineEducationConfigurator-CWc20_rv.js")
46
+ ), Ie = m(
47
+ () => import("./FhirServerList-CrIHMAxz.js")
48
+ ), be = m(
49
+ () => import("./FhirServerWizard-Db6Hm4bQ.js")
50
+ ), he = m(
51
+ () => import("./FhirServerProfile-D3aYcpwY.js")
52
+ ), ye = m(
53
+ () => import("./FhirRawResourceList-ZZFd7gTX.js")
54
+ ), Ee = m(
55
+ () => import("./LocationWiseExpectedTargetPage-CjKk1aTF.js")
56
+ ), rt = [
57
+ {
58
+ path: "medplat/manage/role",
59
+ element: /* @__PURE__ */ l(
60
+ s,
61
+ {
62
+ headerTitle: "Roles",
63
+ pageTitle: "General",
64
+ url: "medplat/manage/role",
65
+ component: J
66
+ }
67
+ )
68
+ },
69
+ {
70
+ path: "medplat/manage/query",
71
+ element: /* @__PURE__ */ l(
72
+ s,
73
+ {
74
+ headerTitle: "Query Master",
75
+ pageTitle: "General",
76
+ url: "medplat/manage/query",
77
+ component: K
78
+ }
79
+ )
80
+ },
81
+ {
82
+ path: "medplat/manage/users",
83
+ element: /* @__PURE__ */ l(
84
+ s,
85
+ {
86
+ headerTitle: "Users",
87
+ pageTitle: "UserList",
88
+ url: "medplat/manage/users",
89
+ component: Y
90
+ }
91
+ )
92
+ },
93
+ {
94
+ path: "medplat/manage/user",
95
+ element: /* @__PURE__ */ l(
96
+ s,
97
+ {
98
+ headerTitle: "Users",
99
+ pageTitle: "ManageUser",
100
+ url: "medplat/manage/users",
101
+ component: V
102
+ }
103
+ )
104
+ },
105
+ {
106
+ path: "medplat/manage/user/:id",
107
+ element: /* @__PURE__ */ l(
108
+ s,
109
+ {
110
+ headerTitle: "Users",
111
+ pageTitle: "General",
112
+ url: "medplat/manage/users",
113
+ component: V
114
+ }
115
+ )
116
+ },
117
+ {
118
+ path: "medplat/querymanagement",
119
+ element: /* @__PURE__ */ l(
120
+ s,
121
+ {
122
+ headerTitle: "Query Management",
123
+ pageTitle: "General",
124
+ url: "medplat/querymanagement",
125
+ component: ee
126
+ }
127
+ )
128
+ },
129
+ {
130
+ path: "medplat/manage/menu",
131
+ element: /* @__PURE__ */ l(
132
+ s,
133
+ {
134
+ headerTitle: "Features",
135
+ pageTitle: "General",
136
+ url: "medplat/manage/menu",
137
+ component: te
138
+ }
139
+ )
140
+ },
141
+ {
142
+ path: "medplat/manage/menu/addfeature",
143
+ element: /* @__PURE__ */ l(
144
+ s,
145
+ {
146
+ headerTitle: "Features",
147
+ pageTitle: "General",
148
+ url: "medplat/manage/menu",
149
+ component: G
150
+ }
151
+ )
152
+ },
153
+ {
154
+ path: "medplat/manage/menu/addDynamicFeature",
155
+ element: /* @__PURE__ */ l(
156
+ s,
157
+ {
158
+ headerTitle: "Features",
159
+ pageTitle: "General",
160
+ url: "medplat/manage/menu",
161
+ component: G
162
+ }
163
+ )
164
+ },
165
+ {
166
+ path: "medplat/notification/all",
167
+ element: /* @__PURE__ */ l(
168
+ s,
169
+ {
170
+ headerTitle: "Event Configuration",
171
+ pageTitle: "General",
172
+ url: "medplat/notification/all",
173
+ component: re
174
+ }
175
+ )
176
+ },
177
+ {
178
+ path: "medplat/views/config",
179
+ element: /* @__PURE__ */ l(
180
+ s,
181
+ {
182
+ headerTitle: "Event Configuration",
183
+ pageTitle: "General",
184
+ url: "medplat/notification",
185
+ component: C
186
+ }
187
+ )
188
+ },
189
+ {
190
+ path: "medplat/views/config/:id",
191
+ element: /* @__PURE__ */ l(
192
+ s,
193
+ {
194
+ headerTitle: "Event Configuration",
195
+ pageTitle: "General",
196
+ url: "medplat/notification",
197
+ component: C
198
+ }
199
+ )
200
+ },
201
+ {
202
+ path: "medplat/admin/newServerManagement",
203
+ element: /* @__PURE__ */ l(
204
+ s,
205
+ {
206
+ headerTitle: "Server Management",
207
+ url: "medplat/admin/newServerManagement",
208
+ component: ne
209
+ }
210
+ )
211
+ },
212
+ {
213
+ path: "medplat/admin/mobileEntityManagement",
214
+ element: /* @__PURE__ */ l(
215
+ s,
216
+ {
217
+ pageTitle: "General",
218
+ url: "medplat/admin/mobileEntityManagement",
219
+ component: oe,
220
+ headerTitle: "Mobile Database Management"
221
+ }
222
+ )
223
+ },
224
+ {
225
+ path: "medplat/admin/mobileAnalytics",
226
+ element: /* @__PURE__ */ l(
227
+ s,
228
+ {
229
+ url: "medplat/admin/mobileAnalytics",
230
+ component: le,
231
+ headerTitle: "Mobile Analytics"
232
+ }
233
+ )
234
+ },
235
+ {
236
+ path: "medplat/admin/mobileMenuManagement",
237
+ element: /* @__PURE__ */ l(
238
+ s,
239
+ {
240
+ url: "medplat/admin/mobileMenuManagement",
241
+ component: /* @__PURE__ */ l(se, {}),
242
+ headerTitle: "Mobile Menu Management"
243
+ }
244
+ )
245
+ },
246
+ {
247
+ path: "medplat/admin/mobileMenuManagement/addMenuConfiguration",
248
+ element: /* @__PURE__ */ l(ce, {})
249
+ },
250
+ {
251
+ path: "medplat/manage/manageTranslation",
252
+ element: /* @__PURE__ */ l(
253
+ s,
254
+ {
255
+ headerTitle: "Manage Translation",
256
+ pageTitle: "General",
257
+ url: "medplat/manage/manageTranslation",
258
+ component: de
259
+ }
260
+ )
261
+ },
262
+ {
263
+ path: "medplat/manage/managewidgets",
264
+ element: /* @__PURE__ */ l(
265
+ s,
266
+ {
267
+ headerTitle: "Widgets",
268
+ pageTitle: "General",
269
+ url: "medplat/manage/manage-widgets",
270
+ component: me
271
+ }
272
+ )
273
+ },
274
+ {
275
+ path: "medplat/manage/notification",
276
+ element: /* @__PURE__ */ l(
277
+ s,
278
+ {
279
+ headerTitle: "Notification Configuration",
280
+ pageTitle: "General",
281
+ url: "medplat/manage/notification",
282
+ component: ue
283
+ }
284
+ )
285
+ },
286
+ {
287
+ path: "medplat/manage/immunizationConfiguratorList",
288
+ element: /* @__PURE__ */ l(
289
+ s,
290
+ {
291
+ headerTitle: "Immunizations",
292
+ pageTitle: "General",
293
+ url: "medplat/manage/manageTranslation",
294
+ component: pe
295
+ }
296
+ )
297
+ },
298
+ {
299
+ path: "medplat/manage/manageImmunization",
300
+ element: /* @__PURE__ */ l(
301
+ s,
302
+ {
303
+ headerTitle: "Immunizations",
304
+ pageTitle: "General",
305
+ url: "medplat/training/question",
306
+ component: O
307
+ }
308
+ )
309
+ },
310
+ {
311
+ path: "medplat/manage/manageImmunization/:id",
312
+ element: /* @__PURE__ */ l(
313
+ s,
314
+ {
315
+ headerTitle: "Immunizations",
316
+ pageTitle: "General",
317
+ url: "medplat/training/question",
318
+ component: O
319
+ }
320
+ )
321
+ },
322
+ {
323
+ path: "medplat/manage/immunizationConfiguration",
324
+ element: /* @__PURE__ */ l(
325
+ s,
326
+ {
327
+ headerTitle: "Immunization Configuration",
328
+ pageTitle: "General",
329
+ url: "medplat/manage/immunizationConfiguration",
330
+ component: ge
331
+ }
332
+ )
333
+ },
334
+ {
335
+ path: "medplat/manage/vaccineEducation",
336
+ element: /* @__PURE__ */ l(
337
+ s,
338
+ {
339
+ headerTitle: "Vaccine Education",
340
+ pageTitle: "General",
341
+ url: "medplat/manage/immunizationConfiguration",
342
+ component: Te
343
+ }
344
+ )
345
+ },
346
+ {
347
+ path: "medplat/manage/vaccineEducation/:vaccineId",
348
+ element: /* @__PURE__ */ l(
349
+ s,
350
+ {
351
+ headerTitle: "Vaccine Education",
352
+ pageTitle: "General",
353
+ url: "medplat/manage/immunizationConfiguration",
354
+ component: fe
355
+ }
356
+ )
357
+ },
358
+ {
359
+ path: "medplat/manage/securityAuditLogs",
360
+ element: /* @__PURE__ */ l(
361
+ s,
362
+ {
363
+ headerTitle: "Security Audit Logs",
364
+ pageTitle: "Security Audit Logs",
365
+ url: "medplat/manage/securityAuditLogs",
366
+ component: ae
367
+ }
368
+ )
369
+ },
370
+ {
371
+ path: "medplat/manage/activityAnalytics",
372
+ element: /* @__PURE__ */ l(
373
+ s,
374
+ {
375
+ headerTitle: "Activity Analytics",
376
+ url: "medplat/manage/activityAnalytics",
377
+ component: ie
378
+ }
379
+ )
380
+ },
381
+ {
382
+ path: "medplat/admin/fhirResource",
383
+ element: /* @__PURE__ */ l(
384
+ s,
385
+ {
386
+ headerTitle: "FHIR Sync",
387
+ pageTitle: "General",
388
+ url: "medplat/admin/fhirResource",
389
+ component: Ie
390
+ }
391
+ )
392
+ },
393
+ {
394
+ path: "medplat/admin/fhirResource/new",
395
+ element: /* @__PURE__ */ l(
396
+ s,
397
+ {
398
+ headerTitle: "Connect FHIR Server",
399
+ pageTitle: "General",
400
+ url: "medplat/admin/fhirResource",
401
+ component: be
402
+ }
403
+ )
404
+ },
405
+ {
406
+ path: "medplat/admin/fhirResource/:serverId",
407
+ element: /* @__PURE__ */ l(
408
+ s,
409
+ {
410
+ headerTitle: "FHIR Server",
411
+ pageTitle: "General",
412
+ url: "medplat/admin/fhirResource",
413
+ component: he
414
+ }
415
+ )
416
+ },
417
+ {
418
+ path: "medplat/admin/fhirResource/:serverId/staging",
419
+ element: /* @__PURE__ */ l(
420
+ s,
421
+ {
422
+ headerTitle: "FHIR Staging Inbox",
423
+ pageTitle: "General",
424
+ url: "medplat/admin/fhirResource",
425
+ component: ye
426
+ }
427
+ )
428
+ },
429
+ {
430
+ path: "medplat/manage/locationWiseExpectedTarget",
431
+ element: /* @__PURE__ */ l(
432
+ s,
433
+ {
434
+ headerTitle: "Location Wise Expected Target",
435
+ pageTitle: "General",
436
+ url: "medplat/manage/locationWiseExpectedTarget",
437
+ component: Ee
438
+ }
439
+ )
440
+ }
441
+ ], z = () => ({
442
+ vaccines: [],
443
+ selectedVaccineIds: [],
444
+ views: [
445
+ {
446
+ id: "landing",
447
+ name: "Dashboard"
448
+ },
449
+ {
450
+ id: "schedule-config",
451
+ name: "Schedule Config"
452
+ },
453
+ {
454
+ id: "summary",
455
+ name: "Configuration Summary"
456
+ }
457
+ ],
458
+ currentViewId: "summary",
459
+ scheduledVaccines: [],
460
+ baseDateMaster: [],
461
+ recipientMaster: [],
462
+ dbTablesMaster: [],
463
+ filtersMaster: [],
464
+ featureRights: {},
465
+ isConfigLoaded: !1,
466
+ validationErrors: {}
467
+ }), Me = z(), L = (e = [], t = {}) => {
468
+ const n = e.findIndex(
469
+ (i) => t.id !== void 0 && (i == null ? void 0 : i.id) === t.id || t.code && (i == null ? void 0 : i.code) === t.code
470
+ );
471
+ return n === -1 ? [...e, t] : e.map(
472
+ (i, r) => r === n ? {
473
+ ...i,
474
+ ...t
475
+ } : i
476
+ );
477
+ }, w = Z({
478
+ name: "immunization",
479
+ initialState: Me,
480
+ reducers: {
481
+ toggleVaccine: (e, t) => {
482
+ const n = t.payload;
483
+ Array.isArray(e.selectedVaccineIds) || (e.selectedVaccineIds = []);
484
+ const i = e.selectedVaccineIds.indexOf(n);
485
+ i > -1 ? e.selectedVaccineIds.splice(i, 1) : e.selectedVaccineIds.push(n);
486
+ },
487
+ setVaccines: (e, t) => {
488
+ const n = Array.isArray(t.payload) ? t.payload : [];
489
+ e.vaccines = n, e.selectedVaccineIds.length === 0 && (e.selectedVaccineIds = n.filter((i) => i.isActive).map((i) => i.id));
490
+ },
491
+ setSelectedVaccineIds: (e, t) => {
492
+ e.selectedVaccineIds = t.payload;
493
+ },
494
+ addCustomVaccine: (e, t) => {
495
+ const n = t.payload || {}, {
496
+ name: i,
497
+ vaccine_name: r,
498
+ disease: a,
499
+ target_prevention: d,
500
+ id: g,
501
+ baseDateCode: u,
502
+ base_date_code: I,
503
+ recipientType: c,
504
+ recipient_type: b
505
+ } = n, T = i || r || "Unnamed Vaccine", N = a || d || "General", y = (Array.isArray(e.vaccines) ? e.vaccines : []).map((h) => Number(h == null ? void 0 : h.id)).filter((h) => !Number.isNaN(h)), p = y.length > 0 ? Math.max(...y) + 1 : 1, v = {
506
+ id: g || p,
507
+ name: T,
508
+ category: N,
509
+ doses: 0,
510
+ doseType: "FIXED",
511
+ scheduleType: "ROUTINE",
512
+ doseDetails: {},
513
+ regions: [],
514
+ dependencies: [],
515
+ isActive: n.isActive !== void 0 ? n.isActive : !1,
516
+ baseDateCode: u || I || null,
517
+ recipientType: c || b || ""
518
+ };
519
+ Array.isArray(e.vaccines) || (e.vaccines = []), e.vaccines.push(v);
520
+ },
521
+ setCurrentView: (e, t) => {
522
+ e.currentViewId = t.payload;
523
+ },
524
+ updateScheduledVaccine: (e, t) => {
525
+ const n = t.payload, i = e.scheduledVaccines.findIndex((r) => r.id === n.id);
526
+ i !== -1 ? e.scheduledVaccines[i] = {
527
+ ...e.scheduledVaccines[i],
528
+ ...n
529
+ } : e.scheduledVaccines.push(n);
530
+ },
531
+ setBaseDatesMaster: (e, t) => {
532
+ e.baseDateMaster = t.payload;
533
+ },
534
+ setRecipientMaster: (e, t) => {
535
+ e.recipientMaster = t.payload;
536
+ },
537
+ setDbTablesMaster: (e, t) => {
538
+ e.dbTablesMaster = t.payload;
539
+ },
540
+ setFiltersMaster: (e, t) => {
541
+ e.filtersMaster = t.payload;
542
+ },
543
+ upsertBaseDateMasterItem: (e, t) => {
544
+ e.baseDateMaster = L(e.baseDateMaster, t.payload);
545
+ },
546
+ upsertRecipientMasterItem: (e, t) => {
547
+ e.recipientMaster = L(e.recipientMaster, t.payload);
548
+ },
549
+ updateBaseDateMasterStatus: (e, t) => {
550
+ const { code: n, is_active: i } = t.payload;
551
+ e.baseDateMaster = e.baseDateMaster.map(
552
+ (r) => r.code === n ? { ...r, is_active: i } : r
553
+ );
554
+ },
555
+ upsertFilterMasterItem: (e, t) => {
556
+ e.filtersMaster = L(e.filtersMaster, t.payload);
557
+ },
558
+ updateFilterMasterStatus: (e, t) => {
559
+ const { code: n, is_active: i } = t.payload;
560
+ e.filtersMaster = e.filtersMaster.map(
561
+ (r) => r.code === n ? { ...r, is_active: i } : r
562
+ );
563
+ },
564
+ setFeatureRights: (e, t) => {
565
+ e.featureRights = t.payload || {};
566
+ },
567
+ setImmunizationConfigLoaded: (e, t) => {
568
+ e.isConfigLoaded = t.payload;
569
+ },
570
+ resetImmunizationState: () => z(),
571
+ activateSelectedVaccines: (e) => {
572
+ e.vaccines = e.vaccines.map((t) => ({
573
+ ...t,
574
+ isActive: e.selectedVaccineIds.includes(t.id)
575
+ }));
576
+ },
577
+ setVaccineStatus: (e, t) => {
578
+ const { vaccineId: n, status: i } = t.payload, r = e.vaccines.findIndex((d) => d.id === n);
579
+ r !== -1 && (e.vaccines[r].isActive = i), Array.isArray(e.selectedVaccineIds) || (e.selectedVaccineIds = []);
580
+ const a = e.selectedVaccineIds.indexOf(n);
581
+ i && a === -1 ? e.selectedVaccineIds.push(n) : !i && a !== -1 && e.selectedVaccineIds.splice(a, 1);
582
+ },
583
+ setValidationErrors: (e, t) => {
584
+ const { vaccineId: n, errors: i } = t.payload;
585
+ e.validationErrors[n] = i;
586
+ },
587
+ clearValidationErrors: (e, t) => {
588
+ const n = t.payload;
589
+ n ? delete e.validationErrors[n] : e.validationErrors = {};
590
+ }
591
+ }
592
+ }), {
593
+ toggleVaccine: ot,
594
+ setVaccines: lt,
595
+ addCustomVaccine: st,
596
+ setCurrentView: ct,
597
+ updateScheduledVaccine: dt,
598
+ setBaseDatesMaster: mt,
599
+ setRecipientMaster: ut,
600
+ setDbTablesMaster: pt,
601
+ setFiltersMaster: gt,
602
+ upsertBaseDateMasterItem: Tt,
603
+ upsertRecipientMasterItem: ft,
604
+ updateBaseDateMasterStatus: It,
605
+ upsertFilterMasterItem: bt,
606
+ updateFilterMasterStatus: ht,
607
+ setFeatureRights: yt,
608
+ setImmunizationConfigLoaded: Et,
609
+ resetImmunizationState: Mt,
610
+ activateSelectedVaccines: At,
611
+ setSelectedVaccineIds: vt,
612
+ setValidationErrors: Ft,
613
+ clearValidationErrors: Nt,
614
+ setVaccineStatus: _t
615
+ } = w.actions, St = w.reducer, B = (e) => !e || typeof e == "string" && e.toLowerCase() === "birth" ? 0 : Number.parseInt(e) || 0, E = (e, t) => {
616
+ if (!e || typeof e == "string" && e.toLowerCase() === "birth") return 0;
617
+ const n = Number.parseInt(e) || 0;
618
+ return t === "weeks" ? n * 7 : t === "months" ? n * 30 : t === "years" ? n * 365 : n;
619
+ }, x = (e) => e == null || String(e).trim() === "", Rt = "lifelong", D = (e) => e === null, Ae = "LIFELONG", ve = (e, t = {}, n) => {
620
+ const i = {}, r = !x(e.overdueFrom), a = !x(e.overdueTill);
621
+ if (!r)
622
+ return a && (i.overdueTill = "Set Overdue From first"), i;
623
+ const d = E(e.overdueFrom, t.overdueFrom || "days"), g = E(e.overdueTill, t.overdueTill || "days");
624
+ return d <= 0 ? i.overdueFrom = "Must be greater than 0" : n > 0 && d >= n && (i.overdueFrom = "Must be within the eligibility window"), a ? g <= d ? i.overdueTill = "Must be greater than Overdue From" : n > 0 && g > n && (i.overdueTill = "Must be within the eligibility window") : i.overdueTill = "Overdue Till is required", i;
625
+ }, Fe = (e, t, n, i = {}) => {
626
+ if (n === 0) return null;
627
+ const r = [], a = Array.isArray(e) ? e : [e], d = i.eligibleFrom || "days", g = i.eligibleTo || "days", u = i.interval || "days", I = a.findIndex((c) => D(c == null ? void 0 : c.eligibleTo));
628
+ return a.forEach((c, b) => {
629
+ const T = c.units || {}, N = T.eligibleFrom || d, o = T.eligibleTo || g, y = T.interval || u, p = {}, A = E(c.eligibleFrom, N), v = E(c.eligibleTo, o), h = D(c.eligibleTo);
630
+ (c.eligibleFrom === void 0 || c.eligibleFrom === null || c.eligibleFrom === "") && b !== 0 && (p.eligibleFrom = "Eligible From is required"), !h && (c.eligibleTo === void 0 || c.eligibleTo === "" || E(c.eligibleTo, o) === 0) && (p.eligibleTo = "Eligible To is required");
631
+ const X = t === "FLEXIBLE" && b === a.length - 1;
632
+ if (t === "FIXED" && n > 1 || !X && t === "FLEXIBLE") {
633
+ const F = Number.parseInt(c.interval) || 0, _ = E(c.interval, y);
634
+ c.interval === void 0 || c.interval === null || c.interval === "" || F === 0 || c.interval === "0 days" ? p.interval = "Interval is required" : t === "FIXED" && n > 1 && // An open-ended window always has room for every dose.
635
+ !h && (n - 1) * _ > v - A && (p.interval = `Number of doses not possible in the window. Total interval exceeds available window (${v - A} days).`);
636
+ }
637
+ if (!h && v <= A && c.eligibleFrom && c.eligibleTo && (p.eligibleTo = "Must be strictly greater than ELIGIBLE FROM"), t === "FLEXIBLE" && !h && I !== -1 && b > I && (p.eligibleTo = "Doses after a lifelong dose must also be lifelong"), t === "FLEXIBLE" && Object.assign(p, ve(c, T, h ? null : v - A)), b > 0 && t === "FLEXIBLE") {
638
+ const F = a[b - 1], _ = F.units || {}, j = _.eligibleFrom || d, H = _.interval || u, k = E(F.eligibleFrom, j), W = E(F.interval, H);
639
+ A < k + W && (p.eligibleFrom = "Must be greater than previous ELIGIBLE FROM and INTERVAL"), F.isBooster && !c.isBooster && (p.isBooster = "A regular dose cannot follow a booster dose");
640
+ }
641
+ Object.keys(p).length > 0 && (r[b] = p);
642
+ }), r.length > 0 ? r : null;
643
+ }, Ne = (e) => {
644
+ const t = [], n = /* @__PURE__ */ new Set();
645
+ return e.forEach((i, r) => {
646
+ const a = {};
647
+ i.vaccine ? (n.has(i.vaccine) && (a.vaccine = "This vaccine is already added as a dependency"), n.add(i.vaccine)) : a.vaccine = "Vaccine selection is required";
648
+ const d = i.minGap === "" || i.minGap === null || i.minGap === void 0, g = i.maxGap === "" || i.maxGap === null || i.maxGap === void 0, u = B(i.minGap), I = B(i.maxGap);
649
+ i.requirement === "Should be given" || i.requirement === "Optional" ? (d ? a.minGap = "Gap cannot be empty" : u <= 0 && (a.minGap = "Must be greater than 0"), !d && !g && u > 0 && I > 0 && I <= u && (a.maxGap = "Max gap must be greater than Min Gap")) : (!d && u < 0 && (a.minGap = "Gap cannot be negative"), !g && I < 0 && (a.maxGap = "Gap cannot be negative")), Object.keys(a).length > 0 && (t[r] = a);
650
+ }), t.some((i) => i && Object.keys(i).length > 0) ? t : null;
651
+ }, _e = (e) => {
652
+ const t = [], n = /* @__PURE__ */ new Set();
653
+ return (e || []).forEach((i, r) => {
654
+ const a = {};
655
+ i.type ? (n.has(i.type) && (a.type = "This type is already added"), n.add(i.type)) : a.type = "Type is required", (!i.value || i.value.trim() === "") && (a.value = "Value is required"), Object.keys(a).length > 0 && (t[r] = a);
656
+ }), t.some((i) => i && Object.keys(i).length > 0) ? t : null;
657
+ }, q = (e) => {
658
+ const t = String(e ?? "").trim().split(/\s+/);
659
+ return E(e, t.length > 1 ? t[t.length - 1] : "days");
660
+ }, Se = (e) => {
661
+ const t = e.recurringBooster;
662
+ if (!t || e.doseType !== "FLEXIBLE")
663
+ return null;
664
+ const n = {}, i = Number.parseInt(t.eligibleFrom, 10), r = Number.parseInt(t.interval, 10);
665
+ return i >= 0 || (n.eligibleFrom = "Eligible From is required"), r > 0 || (n.interval = "Interval must be greater than 0"), D(t.eligibleTo) || (Number.parseInt(t.eligibleTo, 10) > 0 ? q(t.eligibleTo) <= q(t.eligibleFrom) && (n.eligibleTo = "Must be strictly greater than Eligible From") : n.eligibleTo = "Eligible To is required, or set it to No end"), Object.keys(n).length > 0 ? n : null;
666
+ }, Dt = (e, t = !0) => {
667
+ var I;
668
+ const n = {};
669
+ (!e.name || e.name.trim() === "") && (n.name = "Vaccine Name is required"), e.recipientType || (n.recipientType = "Recipient Type is required"), e.baseDateCode || (n.baseDateCode = "Base Date is required");
670
+ const i = _e(e.codeSets || []);
671
+ if (i && (n.codeSets = i), !t)
672
+ return Object.keys(n).length > 0 ? n : null;
673
+ const r = e.doseType === "RECURRING";
674
+ !r && (!e.doses || e.doses === 0) && (n.doses = "At least one dose is required");
675
+ const a = Fe(
676
+ e.doseDetails,
677
+ r ? "FIXED" : e.doseType,
678
+ r ? 1 : e.doses,
679
+ e.durationUnits
680
+ );
681
+ a && (n.doseDetails = a);
682
+ const d = Array.isArray(e.doseDetails) ? e.doseDetails[0] : e.doseDetails;
683
+ r && !(Number.parseInt(d == null ? void 0 : d.interval, 10) > 0) && (n.doseDetails = {
684
+ ...n.doseDetails || {},
685
+ 0: { ...((I = n.doseDetails) == null ? void 0 : I[0]) || {}, interval: "Interval must be greater than 0" }
686
+ });
687
+ const g = Se(e);
688
+ g && (n.recurringBooster = g);
689
+ const u = Ne(e.dependencies || []);
690
+ return u && (n.dependencies = u), Object.keys(n).length > 0 ? n : null;
691
+ }, M = (e, t) => {
692
+ if (e == null)
693
+ return t;
694
+ if (typeof e != "string")
695
+ return e;
696
+ try {
697
+ return JSON.parse(e);
698
+ } catch {
699
+ return t;
700
+ }
701
+ }, S = (...e) => e.filter(Boolean).join("_"), R = (e) => D(e) ? Ae : e === void 0 || e === "" || e === "N.A." || e === "null days" ? "N.A." : e, $ = (e, t = "FLEXIBLE", n = 1) => {
702
+ const i = t === "RECURRING";
703
+ if (n === 0 && !i || !e)
704
+ return "N.A.";
705
+ if (t === "FIXED" || i) {
706
+ const d = Array.isArray(e) ? e[0] : e;
707
+ if (!d)
708
+ return "N.A.";
709
+ const g = R(d.eligibleFrom), u = R(d.eligibleTo);
710
+ return g === "N.A." && u === "N.A." ? "N.A." : `${g} to ${u}`;
711
+ }
712
+ if (!Array.isArray(e) || e.length === 0)
713
+ return "N.A.";
714
+ const r = R(e[0].eligibleFrom), a = R(
715
+ e[e.length - 1].eligibleTo
716
+ );
717
+ return r === "N.A." && a === "N.A." ? "N.A." : `${r} to ${a}`;
718
+ }, P = {
719
+ eligibleFrom: "days",
720
+ eligibleTo: "days",
721
+ interval: "days"
722
+ }, Re = () => ({
723
+ productId: null,
724
+ noOfDoses: 0,
725
+ doseType: "FIXED",
726
+ doseEligibleFrom: void 0,
727
+ doseEligibleTo: void 0,
728
+ minGap: 0,
729
+ durationUnits: { ...P },
730
+ dose: [],
731
+ location: [],
732
+ validations: []
733
+ }), De = (e, t, n) => {
734
+ const i = String(e.doseType || "").toLowerCase(), r = i === "fixed" || i === "na" || i === "recurring" || !e.doseType, a = M(e.durationUnits, {
735
+ ...P
736
+ }), d = `${t}s${n}`, g = r ? [
737
+ {
738
+ id: S("fixed", d),
739
+ eligibleFrom: e.doseEligibleFrom !== void 0 && e.doseEligibleFrom !== null ? `${e.doseEligibleFrom} ${a.eligibleFrom || "days"}` : "",
740
+ // NULL is the stored form of a lifelong window — see the FLEXIBLE branch below.
741
+ eligibleTo: e.doseEligibleTo === null ? null : e.doseEligibleTo !== void 0 ? `${e.doseEligibleTo} ${a.eligibleTo || "days"}` : "",
742
+ interval: e.minGap || 0
743
+ }
744
+ ] : M(e.dose, []).map((o, y) => {
745
+ const p = {
746
+ eligibleFrom: o.eligible_from_unit || a.eligibleFrom || "days",
747
+ eligibleTo: o.eligible_to_unit || a.eligibleTo || "days",
748
+ interval: o.interval_unit || a.interval || "days",
749
+ overdueFrom: o.overdue_from_unit || "days",
750
+ overdueTill: o.overdue_till_unit || "days"
751
+ };
752
+ return {
753
+ id: o.id || S("dose", d, y),
754
+ isBooster: o.isBooster === !0 || o.is_booster === !0 || typeof o.dose == "string" && o.dose.toUpperCase().startsWith("B"),
755
+ alias: o.alias || o.booster_alias || "",
756
+ eligibleFrom: o.eligible_from !== void 0 ? `${o.eligible_from} ${p.eligibleFrom}` : "",
757
+ // NULL is the stored form of a lifelong window; it must survive as null rather
758
+ // than becoming the string "null days".
759
+ eligibleTo: o.eligible_to === null ? null : o.eligible_to !== void 0 ? `${o.eligible_to} ${p.eligibleTo}` : "",
760
+ overdueFrom: o.overdue_from !== void 0 && o.overdue_from !== null ? `${o.overdue_from} ${p.overdueFrom}` : "",
761
+ overdueTill: o.overdue_till !== void 0 && o.overdue_till !== null ? `${o.overdue_till} ${p.overdueTill}` : "",
762
+ interval: o.min_gap || 0,
763
+ units: p
764
+ };
765
+ }), u = M(e.location, []).filter((o) => o && typeof o == "object").map((o, y) => {
766
+ var p;
767
+ return {
768
+ id: S("region", d, y),
769
+ locationId: o.locationId,
770
+ locationIdArr: o.locationIdArr,
771
+ locationList: o.locationList,
772
+ fullPath: (p = o.locationList) == null ? void 0 : p.replaceAll(" => ", " → ")
773
+ };
774
+ }), I = M(e.validations, []).map(
775
+ (o, y) => ({
776
+ id: S("dep", d, y),
777
+ vaccine: o.vaccine || "",
778
+ requirement: o.requirement || "Should be given",
779
+ minGap: Number.parseInt(o.minGap, 10) || 0,
780
+ maxGap: Number.parseInt(o.maxGap, 10) || 0,
781
+ message: o.message || ""
782
+ })
783
+ ), c = e.noOfDoses || 0, b = e.doseType && e.doseType !== "NA" ? e.doseType : "FIXED", T = e.recurringBooster ? M(e.recurringBooster, null) : null, N = T && T.eligibleFrom !== void 0 && T.eligibleFrom !== null ? {
784
+ eligibleFrom: `${T.eligibleFrom} ${T.eligibleFromUnit || "days"}`,
785
+ // NULL is the stored form of a lifelong window, exactly as for a dose.
786
+ eligibleTo: T.eligibleTo === null || T.eligibleTo === void 0 ? null : `${T.eligibleTo} ${T.eligibleToUnit || "days"}`,
787
+ interval: `${T.interval ?? 0} ${T.intervalUnit || "days"}`
788
+ } : null;
789
+ return {
790
+ productId: e.productId ?? null,
791
+ doses: c,
792
+ doseType: b,
793
+ doseDetails: g,
794
+ durationUnits: a,
795
+ recurringBooster: N,
796
+ regions: u,
797
+ dependencies: I,
798
+ eligibility: $(g, b, c)
799
+ };
800
+ }, Le = (e) => {
801
+ const t = M(e.schedule, []), i = (Array.isArray(t) && t.length > 0 ? t : [Re()]).map(
802
+ (I, c) => De(I || {}, e.id, c)
803
+ ), r = M(e.filters, []), a = Array.isArray(r) ? r : (r == null ? void 0 : r.codes) || [], d = M(e.code_sets, []), g = Array.isArray(d) ? d : [], [u] = i;
804
+ return {
805
+ ...e,
806
+ name: e.vaccine_name || e.name || "N.A.",
807
+ category: e.target_prevention || e.disease || e.category || "N.A.",
808
+ productSchedules: i,
809
+ doses: u.doses,
810
+ doseType: u.doseType,
811
+ doseDetails: u.doseDetails,
812
+ eligibility: u.eligibility,
813
+ isActive: e.is_active !== void 0 ? e.is_active : !0,
814
+ // True while this vaccine has configuration saved but not yet published. Everything above
815
+ // is already the draft's values — FETCH_IMMUNISATION_MASTER prefers the draft — so this is
816
+ // the only thing telling the screen that what it is showing is not what members see.
817
+ hasUnpublishedChanges: !!e.has_unpublished_changes,
818
+ regions: u.regions,
819
+ dependencies: u.dependencies,
820
+ filters: a,
821
+ codeSets: g,
822
+ durationUnits: u.durationUnits,
823
+ baseDateCode: e.base_date_code,
824
+ recipientType: e.recipient_type || "",
825
+ scheduleType: e.schedule_type === "NON_ROUTINE" ? "NON_ROUTINE" : "ROUTINE"
826
+ };
827
+ }, Ue = () => f({
828
+ code: "FETCH_IMMUNISATION_MASTER",
829
+ parameters: {}
830
+ }), Ve = () => f({
831
+ code: "FETCH_IMMUNISATION_BASE_DATE",
832
+ parameters: {}
833
+ }), Ge = () => f({
834
+ code: "FETCH_IMMUNISATION_RECEPIENT_MASTER",
835
+ parameters: {}
836
+ }), Ce = () => Q([
837
+ {
838
+ code: "FETCH_IMMUNISATION_BASE_DATE",
839
+ parameters: {},
840
+ sequence: 1
841
+ },
842
+ {
843
+ code: "GET_ALL_IMMUNISATION_FILTERS",
844
+ parameters: {},
845
+ sequence: 2
846
+ },
847
+ {
848
+ code: "FETCH_IMMUNISATION_MASTER",
849
+ parameters: {},
850
+ sequence: 3
851
+ },
852
+ {
853
+ code: "FETCH_IMMUNISATION_RECEPIENT_MASTER",
854
+ parameters: {},
855
+ sequence: 4
856
+ }
857
+ ]), Oe = (e) => f({
858
+ code: "INSERT_IMMUNIZATION_MASTER",
859
+ parameters: e
860
+ }), Be = (e) => f({
861
+ code: "UPDATE_IMMUNIZATION_DOSE",
862
+ ...e
863
+ }), xe = (e) => f({
864
+ code: "CHECK_IMMUNIZATION_CONFIGURATION_INITIATION",
865
+ ...e
866
+ }), qe = (e) => f({
867
+ code: "UPDATE_IMMUNIZATION_STATUS",
868
+ ...e
869
+ }), ze = (e) => f({
870
+ code: "UPDATE_IMMUNIZATION_STATUS_FOR_ARRAY",
871
+ ...e
872
+ }), we = (e) => f({
873
+ code: "UPDATE_IMMUNIZATION_CONFIGURATION_INITIATION",
874
+ ...e
875
+ }), $e = (e) => f({
876
+ code: "SAVE_IMMUNISATION_BASE_DATE",
877
+ parameters: e
878
+ }), Pe = (e) => f({
879
+ code: "SAVE_IMMUNISATION_RECEPIENT_MASTER",
880
+ parameters: e
881
+ }), Xe = (e) => f({
882
+ code: "UPDATE_IMMUNISATION_RECEPIENT_MASTER",
883
+ parameters: e
884
+ }), je = (e) => f({
885
+ code: "UPDATE_IMMUNISATION_BASE_DATE",
886
+ parameters: e
887
+ }), He = () => f({
888
+ code: "retrieve_all_tables_and_columns",
889
+ parameters: {}
890
+ }), ke = () => f({
891
+ code: "GET_ALL_IMMUNISATION_FILTERS",
892
+ parameters: {}
893
+ }), We = (e) => f({
894
+ code: "ADD_IMMUNISATION_FILTER",
895
+ parameters: e
896
+ }), Ze = (e) => f({
897
+ code: "UPDATE_IMMUNISATION_FILTER",
898
+ parameters: e
899
+ }), Qe = (e) => U.post("/medplatform/v2/immunisation/list", e), Je = (e) => U.post("/medplatform/v2/immunisation/revalidate", e), Ke = (e) => U.post("/medplatform/v2/immunisation/config-change-notification", e), Lt = {
900
+ calculateOverallEligibility: $,
901
+ mapImmunizationVaccineConfig: Le,
902
+ getVaccines: Ue,
903
+ getBaseDates: Ve,
904
+ getRecipients: Ge,
905
+ getImmunizationReferenceData: Ce,
906
+ addImmunization: Oe,
907
+ updateImmunization: Be,
908
+ checkImmunizationConfigurationInitiation: xe,
909
+ updateVaccineStatus: qe,
910
+ updateVaccineStatusFromArray: ze,
911
+ updateImmunizationConfigurationInitiation: we,
912
+ saveBaseDate: $e,
913
+ saveRecipient: Pe,
914
+ updateRecipient: Xe,
915
+ updateBaseDate: je,
916
+ getAllTablesAndColumns: He,
917
+ getFilters: ke,
918
+ addFilter: We,
919
+ updateFilter: Ze,
920
+ getImmunisationV2List: Qe,
921
+ revalidateImmunisationV2List: Je,
922
+ notifyConfigChange: Ke
923
+ };
924
+ export {
925
+ Lt as I,
926
+ Rt as L,
927
+ x as a,
928
+ Dt as b,
929
+ Ae as c,
930
+ St as d,
931
+ rt as e,
932
+ E as g,
933
+ D as i,
934
+ ve as v
935
+ };
936
+ //# sourceMappingURL=index.lib-BySa9-Z-.js.map