@argusoft/medplat-core 1.0.31 → 1.0.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (199) hide show
  1. package/dist/{AccessRights-DUgY6ewy.js → AccessRights-DBjTQA1-.js} +421 -424
  2. package/dist/AccessRights-DBjTQA1-.js.map +1 -0
  3. package/dist/{AddFeatures-D1sU8RjY.js → AddFeatures-COj4ZTIM.js} +2 -2
  4. package/dist/{AddFeatures-D1sU8RjY.js.map → AddFeatures-COj4ZTIM.js.map} +1 -1
  5. package/dist/AddMenuConfiguration-Creeib5X.js +11223 -0
  6. package/dist/AddMenuConfiguration-Creeib5X.js.map +1 -0
  7. package/dist/AddMenuConfiguration.css +1 -1
  8. package/dist/{BrandsPage-DMw2vT0u-BVhvhc6J.js → BrandsPage-CdcAvaml-ZtVTX6vX.js} +45 -45
  9. package/dist/{BrandsPage-DMw2vT0u-BVhvhc6J.js.map → BrandsPage-CdcAvaml-ZtVTX6vX.js.map} +1 -1
  10. package/dist/{CategoriesPage-D3ihx9Gi-CT58g0ry.js → CategoriesPage-BprQEYJw-CclreTv1.js} +43 -43
  11. package/dist/{CategoriesPage-D3ihx9Gi-CT58g0ry.js.map → CategoriesPage-BprQEYJw-CclreTv1.js.map} +1 -1
  12. package/dist/{ChangePasswordModalCore-lQ9GamH1.js → ChangePasswordModalCore-DZGOkbRY.js} +3 -3
  13. package/dist/{ChangePasswordModalCore-lQ9GamH1.js.map → ChangePasswordModalCore-DZGOkbRY.js.map} +1 -1
  14. package/dist/{ConditionConfig-BQBmBHaM.js → ConditionConfig-Bpm6OoV5.js} +3 -3
  15. package/dist/{ConditionConfig-BQBmBHaM.js.map → ConditionConfig-Bpm6OoV5.js.map} +1 -1
  16. package/dist/{DashboardPage-asr2XDRu-uOOlX9Vq.js → DashboardPage-CTiGSx71-CsYohJ5e.js} +29 -29
  17. package/dist/{DashboardPage-asr2XDRu-uOOlX9Vq.js.map → DashboardPage-CTiGSx71-CsYohJ5e.js.map} +1 -1
  18. package/dist/EntityManagement-BGwJGl9k.js +62 -0
  19. package/dist/EntityManagement-BGwJGl9k.js.map +1 -0
  20. package/dist/{EventConfigurations-CUPEN5BV.js → EventConfigurations-B-z7xHh_.js} +3 -3
  21. package/dist/{EventConfigurations-CUPEN5BV.js.map → EventConfigurations-B-z7xHh_.js.map} +1 -1
  22. package/dist/{EventsExceptionModal-BX-ArkBE.js → EventsExceptionModal-DafomIv6.js} +2 -2
  23. package/dist/{EventsExceptionModal-BX-ArkBE.js.map → EventsExceptionModal-DafomIv6.js.map} +1 -1
  24. package/dist/{EventsUi-D6O9S7BK.js → EventsUi-Dl_yckSA.js} +37 -32
  25. package/dist/EventsUi-Dl_yckSA.js.map +1 -0
  26. package/dist/FacilityPicker-BXa2VF7i-Dab_Jwa5.js +112 -0
  27. package/dist/FacilityPicker-BXa2VF7i-Dab_Jwa5.js.map +1 -0
  28. package/dist/{FeatureMenu-CHsBbw3W.js → FeatureMenu-Kc73yPHH.js} +2 -2
  29. package/dist/{FeatureMenu-CHsBbw3W.js.map → FeatureMenu-Kc73yPHH.js.map} +1 -1
  30. package/dist/{FhirServerList-iXBPkRVF.js → FhirServerList-CrIHMAxz.js} +19 -19
  31. package/dist/{FhirServerList-iXBPkRVF.js.map → FhirServerList-CrIHMAxz.js.map} +1 -1
  32. package/dist/{FhirServerProfile-CUOwC6Wb.js → FhirServerProfile-D3aYcpwY.js} +8 -8
  33. package/dist/{FhirServerProfile-CUOwC6Wb.js.map → FhirServerProfile-D3aYcpwY.js.map} +1 -1
  34. package/dist/{FhirServerWizard-DZI8Olku.js → FhirServerWizard-Db6Hm4bQ.js} +15 -15
  35. package/dist/{FhirServerWizard-DZI8Olku.js.map → FhirServerWizard-Db6Hm4bQ.js.map} +1 -1
  36. package/dist/{ImmunizationConfigurationBase-aUtx0JEe.js → ImmunizationConfigurationBase-lKsJZMak.js} +1342 -1301
  37. package/dist/ImmunizationConfigurationBase-lKsJZMak.js.map +1 -0
  38. package/dist/InventoryPage-JadYMCzU-CzJQfQ2A.js +1017 -0
  39. package/dist/InventoryPage-JadYMCzU-CzJQfQ2A.js.map +1 -0
  40. package/dist/LocationWiseExpectedTargetPage-CjKk1aTF.js +1344 -0
  41. package/dist/LocationWiseExpectedTargetPage-CjKk1aTF.js.map +1 -0
  42. package/dist/{ManageDynamicFeature-BU0I45dd.js → ManageDynamicFeature-CuyYfx_P.js} +104 -97
  43. package/dist/ManageDynamicFeature-CuyYfx_P.js.map +1 -0
  44. package/dist/{ManageEventConfiguration-DqW3krT6.js → ManageEventConfiguration-DqPbn3Oi.js} +5 -5
  45. package/dist/{ManageEventConfiguration-DqW3krT6.js.map → ManageEventConfiguration-DqPbn3Oi.js.map} +1 -1
  46. package/dist/ManageRole-CyfpySt9.js +981 -0
  47. package/dist/ManageRole-CyfpySt9.js.map +1 -0
  48. package/dist/{ManageUser-DZltBina.js → ManageUser-Dm0l833u.js} +172 -172
  49. package/dist/{ManageUser-DZltBina.js.map → ManageUser-Dm0l833u.js.map} +1 -1
  50. package/dist/{MemberProfileCard-D5CgkTdJ-D2NgDJl3.js → MemberProfileCard-01d_jz3w-DYHtbgMX.js} +37 -37
  51. package/dist/{MemberProfileCard-D5CgkTdJ-D2NgDJl3.js.map → MemberProfileCard-01d_jz3w-DYHtbgMX.js.map} +1 -1
  52. package/dist/MobileAnalytics-C9oc2yAo.js +18399 -0
  53. package/dist/MobileAnalytics-C9oc2yAo.js.map +1 -0
  54. package/dist/MobileMenuManagement-BmzTPXy7.js +231 -0
  55. package/dist/MobileMenuManagement-BmzTPXy7.js.map +1 -0
  56. package/dist/{MobileTypeEventConfigModal-CMcj7Ozp.js → MobileTypeEventConfigModal-DodU3beR.js} +3 -3
  57. package/dist/{MobileTypeEventConfigModal-CMcj7Ozp.js.map → MobileTypeEventConfigModal-DodU3beR.js.map} +1 -1
  58. package/dist/{NewServerManagement-Cxe0dV0O.js → NewServerManagement-BdayO78D.js} +368 -352
  59. package/dist/NewServerManagement-BdayO78D.js.map +1 -0
  60. package/dist/OtherTypeEventConfigModal-D_9S50aI.js +1414 -0
  61. package/dist/OtherTypeEventConfigModal-D_9S50aI.js.map +1 -0
  62. package/dist/{PaymentCreatePage-DfvSZ-kB-CckogYoe.js → PaymentCreatePage-D6NZBUC3-DxXf2kvH.js} +56 -56
  63. package/dist/{PaymentCreatePage-DfvSZ-kB-CckogYoe.js.map → PaymentCreatePage-D6NZBUC3-DxXf2kvH.js.map} +1 -1
  64. package/dist/{PaymentsPage-DMNjYWAJ-ChO9IXmk.js → PaymentsPage-CHieGNrn-BnYCtqHd.js} +38 -38
  65. package/dist/{PaymentsPage-DMNjYWAJ-ChO9IXmk.js.map → PaymentsPage-CHieGNrn-BnYCtqHd.js.map} +1 -1
  66. package/dist/{PermissionsModal-CCYkcKlC.js → PermissionsModal-Dxbkkrqe.js} +18 -18
  67. package/dist/PermissionsModal-Dxbkkrqe.js.map +1 -0
  68. package/dist/{PickupBatchLinesEditor-CE2RuyJT-BPceiJr8.js → PickupBatchLinesEditor-QPaqFtUO-CY7BShYh.js} +2 -2
  69. package/dist/{PickupBatchLinesEditor-CE2RuyJT-BPceiJr8.js.map → PickupBatchLinesEditor-QPaqFtUO-CY7BShYh.js.map} +1 -1
  70. package/dist/PickupCreatePage-C7_67u_u-OId8-e2a.js +801 -0
  71. package/dist/PickupCreatePage-C7_67u_u-OId8-e2a.js.map +1 -0
  72. package/dist/{PickupsPage-D7zyioJB-bHKnARYw.js → PickupsPage-BWblMlic-CWkgeBw0.js} +122 -122
  73. package/dist/PickupsPage-BWblMlic-CWkgeBw0.js.map +1 -0
  74. package/dist/PmGuard-BvUUbU80-BpYNaDzl.js +641 -0
  75. package/dist/PmGuard-BvUUbU80-BpYNaDzl.js.map +1 -0
  76. package/dist/ProductEditPage-Dbq4vUAA-BoBmTPPL.js +1523 -0
  77. package/dist/ProductEditPage-Dbq4vUAA-BoBmTPPL.js.map +1 -0
  78. package/dist/{ProductsPage-DvNHIeZt-BoOOJJtk.js → ProductsPage-BI22nPb4-CQBjnc-n.js} +29 -29
  79. package/dist/{ProductsPage-DvNHIeZt-BoOOJJtk.js.map → ProductsPage-BI22nPb4-CQBjnc-n.js.map} +1 -1
  80. package/dist/PurchaseCreatePage-C0EK9z4w-BQMTsjE7.js +724 -0
  81. package/dist/PurchaseCreatePage-C0EK9z4w-BQMTsjE7.js.map +1 -0
  82. package/dist/{PurchaseRequestDetailPage-CA9KFOfE-CtjG4Gx6.js → PurchaseRequestDetailPage-DhBuOGHZ-CWZPqzt9.js} +446 -436
  83. package/dist/PurchaseRequestDetailPage-DhBuOGHZ-CWZPqzt9.js.map +1 -0
  84. package/dist/{PurchaseRequestsPage-DS9i4o0--TpoxA5Kd.js → PurchaseRequestsPage-Bj9HUMxb-B7-AxT8m.js} +55 -55
  85. package/dist/{PurchaseRequestsPage-DS9i4o0--TpoxA5Kd.js.map → PurchaseRequestsPage-Bj9HUMxb-B7-AxT8m.js.map} +1 -1
  86. package/dist/{PurchasesPage-DgL5T6BY-DePUuE9l.js → PurchasesPage-Djl1AqD_-DXeYFMrX.js} +61 -61
  87. package/dist/{PurchasesPage-DgL5T6BY-DePUuE9l.js.map → PurchasesPage-Djl1AqD_-DXeYFMrX.js.map} +1 -1
  88. package/dist/{RoleManagement-s8iNx2Mu.js → RoleManagement-DVYufwy-.js} +3 -3
  89. package/dist/{RoleManagement-s8iNx2Mu.js.map → RoleManagement-DVYufwy-.js.map} +1 -1
  90. package/dist/Roles-BoNGJhtR.js +19 -0
  91. package/dist/Roles-BoNGJhtR.js.map +1 -0
  92. package/dist/{SaleCreatePage-CZnIOydv-DKBw-qp7.js → SaleCreatePage-DHBLmlBr-BlgjVsq6.js} +33 -33
  93. package/dist/{SaleCreatePage-CZnIOydv-DKBw-qp7.js.map → SaleCreatePage-DHBLmlBr-BlgjVsq6.js.map} +1 -1
  94. package/dist/{SalesPage-DPIRrC_O-M8rqnK7z.js → SalesPage-eF9Yr42z-BQ9FlXC3.js} +34 -34
  95. package/dist/SalesPage-eF9Yr42z-BQ9FlXC3.js.map +1 -0
  96. package/dist/SettingsPage-Cre-UE3r-9ntnLYsQ.js +741 -0
  97. package/dist/SettingsPage-Cre-UE3r-9ntnLYsQ.js.map +1 -0
  98. package/dist/{StorageUnitsPage-BDRkdCjW-UF64rf7q.js → StorageUnitsPage-CTEVuemZ-B4osG74N.js} +213 -190
  99. package/dist/StorageUnitsPage-CTEVuemZ-B4osG74N.js.map +1 -0
  100. package/dist/{SubMenu-BdMTYtC1.js → SubMenu-OO2zhKiu.js} +2 -2
  101. package/dist/{SubMenu-BdMTYtC1.js.map → SubMenu-OO2zhKiu.js.map} +1 -1
  102. package/dist/{TableDetails-BtafRxXb.js → TableDetails-Cc40dEUs.js} +272 -267
  103. package/dist/TableDetails-Cc40dEUs.js.map +1 -0
  104. package/dist/{TableList-Dpo6dO7S.js → TableList-B5tX4wII.js} +316 -312
  105. package/dist/TableList-B5tX4wII.js.map +1 -0
  106. package/dist/{TransactionsPage-CqWTMNU8-Df6eGFDW.js → TransactionsPage-Zuu7sjID-B-ACzvd1.js} +185 -170
  107. package/dist/TransactionsPage-Zuu7sjID-B-ACzvd1.js.map +1 -0
  108. package/dist/TransferCreatePage-DlT0nCDj-B2SdPgYB.js +635 -0
  109. package/dist/TransferCreatePage-DlT0nCDj-B2SdPgYB.js.map +1 -0
  110. package/dist/TransfersPage-DqaSvHda-G2tFa5Jq.js +600 -0
  111. package/dist/TransfersPage-DqaSvHda-G2tFa5Jq.js.map +1 -0
  112. package/dist/{TypeConfiguration-JbRCN6GR.js → TypeConfiguration-EaFiOzRE.js} +3 -3
  113. package/dist/{TypeConfiguration-JbRCN6GR.js.map → TypeConfiguration-EaFiOzRE.js.map} +1 -1
  114. package/dist/UserList-Cf5B-o_1.js +1904 -0
  115. package/dist/UserList-Cf5B-o_1.js.map +1 -0
  116. package/dist/Users-MC7txo1V.js +43 -0
  117. package/dist/{Users-CsJ08Kjm.js.map → Users-MC7txo1V.js.map} +1 -1
  118. package/dist/VaccineEducation-T_UE57Ef.js +231 -0
  119. package/dist/VaccineEducation-T_UE57Ef.js.map +1 -0
  120. package/dist/VaccineEducation.css +1 -0
  121. package/dist/VaccineEducationConfigurator-CWc20_rv.js +50948 -0
  122. package/dist/VaccineEducationConfigurator-CWc20_rv.js.map +1 -0
  123. package/dist/VaccineEducationConfigurator.css +4 -0
  124. package/dist/VaccineEducationList-Ok7_5EFb.js +334 -0
  125. package/dist/VaccineEducationList-Ok7_5EFb.js.map +1 -0
  126. package/dist/VialsPage-LoDaUqVv-DmMXbK8j.js +457 -0
  127. package/dist/VialsPage-LoDaUqVv-DmMXbK8j.js.map +1 -0
  128. package/dist/{constants-DpXnLsAB-D6lN5cjK.js → constants-BTpJFQe_-CYPZIqQF.js} +160 -61
  129. package/dist/constants-BTpJFQe_-CYPZIqQF.js.map +1 -0
  130. package/dist/dashboardLayoutUtils--xUnoKPa.js +615 -0
  131. package/dist/dashboardLayoutUtils--xUnoKPa.js.map +1 -0
  132. package/dist/index-mfoqII2U.js +524 -0
  133. package/dist/index-mfoqII2U.js.map +1 -0
  134. package/dist/{index-D9YNFPn9.js → index-o8Pyt1Bt.js} +445 -439
  135. package/dist/index-o8Pyt1Bt.js.map +1 -0
  136. package/dist/index.css +1 -1
  137. package/dist/index.js +1 -1
  138. package/dist/{index.lib-ETRQOzvE.js → index.lib-BySa9-Z-.js} +302 -260
  139. package/dist/index.lib-BySa9-Z-.js.map +1 -0
  140. package/dist/listValueStore-5d4vNGQM-WclZ5nBG.js +43 -0
  141. package/dist/listValueStore-5d4vNGQM-WclZ5nBG.js.map +1 -0
  142. package/package.json +5 -1
  143. package/dist/AccessRights-DUgY6ewy.js.map +0 -1
  144. package/dist/AddMenuConfiguration-c6ZKiN0i.js +0 -8898
  145. package/dist/AddMenuConfiguration-c6ZKiN0i.js.map +0 -1
  146. package/dist/EntityManagement-CPQL6qBj.js +0 -50
  147. package/dist/EntityManagement-CPQL6qBj.js.map +0 -1
  148. package/dist/EventsUi-D6O9S7BK.js.map +0 -1
  149. package/dist/FacilityPicker-DYl_PDyt-Cbwo2tAY.js +0 -79
  150. package/dist/FacilityPicker-DYl_PDyt-Cbwo2tAY.js.map +0 -1
  151. package/dist/ImmunizationConfigurationBase-aUtx0JEe.js.map +0 -1
  152. package/dist/InventoryPage-DOotGZrj-CoPjOJEI.js +0 -665
  153. package/dist/InventoryPage-DOotGZrj-CoPjOJEI.js.map +0 -1
  154. package/dist/ManageDynamicFeature-BU0I45dd.js.map +0 -1
  155. package/dist/ManageRole-CNZBRKGU.js +0 -776
  156. package/dist/ManageRole-CNZBRKGU.js.map +0 -1
  157. package/dist/MobileAnalytics-BLOionG_.js +0 -17301
  158. package/dist/MobileAnalytics-BLOionG_.js.map +0 -1
  159. package/dist/MobileMenuManagement-68Wijb0X.js +0 -220
  160. package/dist/MobileMenuManagement-68Wijb0X.js.map +0 -1
  161. package/dist/NewServerManagement-Cxe0dV0O.js.map +0 -1
  162. package/dist/OtherTypeEventConfigModal-stNmuSv_.js +0 -1812
  163. package/dist/OtherTypeEventConfigModal-stNmuSv_.js.map +0 -1
  164. package/dist/PermissionsModal-CCYkcKlC.js.map +0 -1
  165. package/dist/PickupCreatePage-B4O_-vE5-DoOo9nJO.js +0 -783
  166. package/dist/PickupCreatePage-B4O_-vE5-DoOo9nJO.js.map +0 -1
  167. package/dist/PickupsPage-D7zyioJB-bHKnARYw.js.map +0 -1
  168. package/dist/PmGuard-BZE-y4In-D_pUm5MP.js +0 -599
  169. package/dist/PmGuard-BZE-y4In-D_pUm5MP.js.map +0 -1
  170. package/dist/ProductEditPage-BVlVUCtD-BR-tJ5Wb.js +0 -1305
  171. package/dist/ProductEditPage-BVlVUCtD-BR-tJ5Wb.js.map +0 -1
  172. package/dist/PurchaseCreatePage-Cq_i9snz-DRtHHFWw.js +0 -675
  173. package/dist/PurchaseCreatePage-Cq_i9snz-DRtHHFWw.js.map +0 -1
  174. package/dist/PurchaseRequestDetailPage-CA9KFOfE-CtjG4Gx6.js.map +0 -1
  175. package/dist/Roles-BIyiic67.js +0 -14
  176. package/dist/Roles-BIyiic67.js.map +0 -1
  177. package/dist/SalesPage-DPIRrC_O-M8rqnK7z.js.map +0 -1
  178. package/dist/SettingsPage-BC_R6Z-Q-CKNt9zRu.js +0 -676
  179. package/dist/SettingsPage-BC_R6Z-Q-CKNt9zRu.js.map +0 -1
  180. package/dist/StorageUnitsPage-BDRkdCjW-UF64rf7q.js.map +0 -1
  181. package/dist/TableDetails-BtafRxXb.js.map +0 -1
  182. package/dist/TableList-Dpo6dO7S.js.map +0 -1
  183. package/dist/TransactionsPage-CqWTMNU8-Df6eGFDW.js.map +0 -1
  184. package/dist/TransferCreatePage-DF7FZaTJ-CL79V3aR.js +0 -315
  185. package/dist/TransferCreatePage-DF7FZaTJ-CL79V3aR.js.map +0 -1
  186. package/dist/TransfersPage-CGrRFaBF-cTwBUv0o.js +0 -476
  187. package/dist/TransfersPage-CGrRFaBF-cTwBUv0o.js.map +0 -1
  188. package/dist/UserList-L41Xw0Q6.js +0 -1129
  189. package/dist/UserList-L41Xw0Q6.js.map +0 -1
  190. package/dist/Users-CsJ08Kjm.js +0 -40
  191. package/dist/VialsPage-rvvXjgZG-Oqo1v6kQ.js +0 -321
  192. package/dist/VialsPage-rvvXjgZG-Oqo1v6kQ.js.map +0 -1
  193. package/dist/constants-DpXnLsAB-D6lN5cjK.js.map +0 -1
  194. package/dist/dashboardLayoutUtils-CJivzaU1.js +0 -408
  195. package/dist/dashboardLayoutUtils-CJivzaU1.js.map +0 -1
  196. package/dist/index-D9YNFPn9.js.map +0 -1
  197. package/dist/index.lib-ETRQOzvE.js.map +0 -1
  198. package/dist/listValueStore-BFQtDYIR-Bj0yX145.js +0 -36
  199. package/dist/listValueStore-BFQtDYIR-Bj0yX145.js.map +0 -1
@@ -0,0 +1,641 @@
1
+ import { A as Y, $ as J } from "./ImmunizationConfigurationBase-lKsJZMak.js";
2
+ import { useMemo as L, useEffect as z, useState as E, useRef as P } from "react";
3
+ import { jsxs as v, jsx as n, Fragment as U } from "react/jsx-runtime";
4
+ import S from "prop-types";
5
+ import { Box as c, Stack as C, Tabs as j, Tab as K, Typography as I, LinearProgress as Q, Alert as V, Button as X, Chip as Z, Fade as _ } from "@mui/material";
6
+ import ee from "@mui/icons-material/VaccinesRounded";
7
+ import { useTheme as q, alpha as p } from "@mui/material/styles";
8
+ import te from "@mui/icons-material/SellRounded";
9
+ import { useNavigate as B, useLocation as H } from "react-router-dom";
10
+ import ae from "@mui/icons-material/SpaceDashboardRounded";
11
+ import ne from "@mui/icons-material/SettingsRounded";
12
+ import re from "@mui/icons-material/LayersRounded";
13
+ import ie from "@mui/icons-material/CategoryRounded";
14
+ import oe from "@mui/icons-material/Inventory2Rounded";
15
+ import se from "@mui/icons-material/WarehouseRounded";
16
+ import le from "@mui/icons-material/LocalShippingRounded";
17
+ import ce from "@mui/icons-material/WidgetsRounded";
18
+ import pe from "@mui/icons-material/ShoppingCartRounded";
19
+ import de from "@mui/icons-material/FactCheckRounded";
20
+ import me from "@mui/icons-material/MoveDownRounded";
21
+ import ue from "@mui/icons-material/SwapHorizRounded";
22
+ import he from "@mui/icons-material/PointOfSaleRounded";
23
+ import ge from "@mui/icons-material/PaymentsRounded";
24
+ import F from "@mui/icons-material/ReceiptLongRounded";
25
+ import { useSelector as N } from "react-redux";
26
+ import fe from "@mui/icons-material/LockOutlined";
27
+ var g = {
28
+ id: "dashboard",
29
+ label: "Dashboard",
30
+ path: "/ui/medplat/manage/pm",
31
+ icon: ae,
32
+ accent: "#6366f1",
33
+ accentDark: "#4338ca",
34
+ permissionId: "view.manage.productManagement"
35
+ }, f = {
36
+ id: "settings",
37
+ label: "Settings",
38
+ path: "/ui/medplat/manage/pm/settings",
39
+ icon: ne,
40
+ accent: "#64748b",
41
+ accentDark: "#334155",
42
+ permissionId: "view.manage.productManagement.settings"
43
+ }, R = [
44
+ {
45
+ id: "catalog",
46
+ label: "Catalog",
47
+ description: "Define what you sell and where you keep it. Master data — configured once, used everywhere.",
48
+ icon: re,
49
+ accent: "#8b5cf6",
50
+ accentDark: "#6d28d9",
51
+ accentSoft: "#ede9fe",
52
+ items: [
53
+ {
54
+ id: "categories",
55
+ label: "Categories",
56
+ path: "/ui/medplat/manage/pm/categories",
57
+ icon: ie,
58
+ permissionId: "view.manage.productManagement.category"
59
+ },
60
+ {
61
+ id: "brands",
62
+ label: "Brands",
63
+ path: "/ui/medplat/manage/pm/brands",
64
+ icon: te,
65
+ permissionId: "view.manage.productManagement.brand"
66
+ },
67
+ {
68
+ id: "products",
69
+ label: "Products",
70
+ path: "/ui/medplat/manage/pm/products",
71
+ icon: oe,
72
+ permissionId: "view.manage.productManagement.product"
73
+ },
74
+ {
75
+ id: "storage",
76
+ label: "Storage Units",
77
+ path: "/ui/medplat/manage/pm/storage-units",
78
+ icon: se,
79
+ permissionId: "view.manage.productManagement.storageUnit"
80
+ }
81
+ ]
82
+ },
83
+ {
84
+ id: "operations",
85
+ label: "Operations",
86
+ description: "Run the day — receive stock, sell to customers, administer vaccines, collect payments.",
87
+ icon: le,
88
+ accent: "#10b981",
89
+ accentDark: "#047857",
90
+ accentSoft: "#d1fae5",
91
+ items: [
92
+ {
93
+ id: "purchase-requests",
94
+ label: "Purchase Requests",
95
+ path: "/ui/medplat/manage/pm/purchase-requests",
96
+ icon: de,
97
+ anyOfPermissionIds: ["view.manage.productManagement.purchase", "approve.manage.productManagement.purchase"],
98
+ purchaseApprovalGroup: !0
99
+ },
100
+ {
101
+ id: "purchases",
102
+ label: "Purchases",
103
+ path: "/ui/medplat/manage/pm/purchases",
104
+ icon: pe,
105
+ permissionId: "view.manage.productManagement.purchase",
106
+ hiddenWhenConfirmationOn: !0
107
+ },
108
+ {
109
+ id: "inventory",
110
+ label: "Inventory",
111
+ path: "/ui/medplat/manage/pm/inventory",
112
+ icon: ce,
113
+ permissionId: "view.manage.productManagement.inventory"
114
+ },
115
+ {
116
+ id: "pickups",
117
+ label: "Pickups",
118
+ path: "/ui/medplat/manage/pm/pickups",
119
+ icon: me,
120
+ permissionId: "view.manage.productManagement.pickup"
121
+ },
122
+ {
123
+ id: "transfers",
124
+ label: "Transfers",
125
+ path: "/ui/medplat/manage/pm/transfers",
126
+ icon: ue,
127
+ permissionId: "view.manage.productManagement.transfer"
128
+ },
129
+ {
130
+ id: "sales",
131
+ label: "Sales",
132
+ path: "/ui/medplat/manage/pm/sales",
133
+ icon: he,
134
+ permissionId: "view.manage.productManagement.sale",
135
+ salesGroup: !0
136
+ },
137
+ {
138
+ id: "vials",
139
+ label: "Vial",
140
+ path: "/ui/medplat/manage/pm/vials",
141
+ icon: ee,
142
+ permissionId: "view.manage.productManagement.vial"
143
+ },
144
+ {
145
+ id: "payments",
146
+ label: "Payments",
147
+ path: "/ui/medplat/manage/pm/payments",
148
+ icon: ge,
149
+ permissionId: "view.manage.productManagement.payment",
150
+ salesGroup: !0
151
+ }
152
+ ]
153
+ },
154
+ {
155
+ id: "ledger",
156
+ label: "Ledger",
157
+ description: "Every stock and money movement, append-only, with full lot / volume / monetary detail.",
158
+ icon: F,
159
+ accent: "#f59e0b",
160
+ accentDark: "#b45309",
161
+ accentSoft: "#fef3c7",
162
+ items: [{
163
+ id: "transactions",
164
+ label: "Transactions",
165
+ path: "/ui/medplat/manage/pm/transactions",
166
+ icon: F,
167
+ permissionId: "view.manage.productManagement.ledger"
168
+ }]
169
+ }
170
+ ];
171
+ function be(t, a) {
172
+ let i = (a == null ? void 0 : a.manageSales) !== !1, d = (a == null ? void 0 : a.requirePurchaseConfirmation) === !0;
173
+ return R.map((l) => ({
174
+ ...l,
175
+ items: l.items.filter((e) => {
176
+ var u, o;
177
+ return (e.anyOfPermissionIds ? !!((u = t == null ? void 0 : t.hasAny) != null && u.call(t, e.anyOfPermissionIds)) : !!((o = t == null ? void 0 : t.has) != null && o.call(t, e.permissionId))) && (i || !e.salesGroup) && (d || !e.purchaseApprovalGroup) && (!d || !e.hiddenWhenConfirmationOn);
178
+ })
179
+ })).filter((l) => l.items.length > 0);
180
+ }
181
+ function xe(t) {
182
+ if (!t) return null;
183
+ for (let a of R) if (a.items.some((i) => t.startsWith(i.path))) return a;
184
+ return null;
185
+ }
186
+ function ve(t) {
187
+ if (!t) return null;
188
+ for (let a of R) {
189
+ let i = a.items.find((d) => t.startsWith(d.path));
190
+ if (i) return {
191
+ workspace: a,
192
+ item: i
193
+ };
194
+ }
195
+ return null;
196
+ }
197
+ function ye({ title: t, subtitle: a, chips: i = [], actions: d, children: l }) {
198
+ let e = q(), { pathname: u } = H();
199
+ z(() => {
200
+ J().catch(() => {
201
+ });
202
+ }, []);
203
+ let [o, A] = E(!1), $ = P(null), b = P(null), m = P(0), [O, W] = E(0);
204
+ z(() => {
205
+ let h = b.current;
206
+ if (!h || typeof ResizeObserver > "u") return;
207
+ let w = new ResizeObserver(([D]) => {
208
+ let G = D.target.offsetHeight;
209
+ o ? W(Math.max(0, m.current - G)) : (m.current = G, W(0));
210
+ });
211
+ return w.observe(h), () => w.disconnect();
212
+ }, [o]), z(() => {
213
+ let h = $.current;
214
+ if (!h || typeof IntersectionObserver > "u") return;
215
+ let w = new IntersectionObserver(([D]) => A(!D.isIntersecting), { threshold: 0 });
216
+ return w.observe(h), () => w.disconnect();
217
+ }, [u]);
218
+ let k = u.startsWith(g.path), y = u.startsWith(f.path), r = ve(u), s = r == null ? void 0 : r.workspace, x = k ? g.accent : y ? f.accent : (s == null ? void 0 : s.accent) ?? e.palette.primary.main, M = k ? g.accentDark : y ? f.accentDark : (s == null ? void 0 : s.accentDark) ?? e.palette.primary.dark;
219
+ return /* @__PURE__ */ v(c, {
220
+ sx: {
221
+ position: "relative",
222
+ px: {
223
+ xs: 1,
224
+ md: 2
225
+ },
226
+ py: {
227
+ xs: 1,
228
+ md: 2
229
+ }
230
+ },
231
+ children: [
232
+ /* @__PURE__ */ n(c, {
233
+ ref: $,
234
+ sx: { height: 0 }
235
+ }),
236
+ /* @__PURE__ */ v(c, {
237
+ sx: {
238
+ position: "absolute",
239
+ inset: 0,
240
+ pointerEvents: "none",
241
+ overflow: "hidden"
242
+ },
243
+ children: [/* @__PURE__ */ n(c, { sx: {
244
+ position: "absolute",
245
+ top: -60,
246
+ right: -40,
247
+ width: 260,
248
+ height: 260,
249
+ borderRadius: "50%",
250
+ background: `radial-gradient(circle, ${p(x, 0.18)} 0%, transparent 70%)`,
251
+ filter: "blur(2px)"
252
+ } }), /* @__PURE__ */ n(c, { sx: {
253
+ position: "absolute",
254
+ top: 40,
255
+ left: -50,
256
+ width: 200,
257
+ height: 200,
258
+ borderRadius: "50%",
259
+ background: `radial-gradient(circle, ${p(e.palette.info.main, 0.08)} 0%, transparent 72%)`,
260
+ filter: "blur(2px)"
261
+ } })]
262
+ }),
263
+ /* @__PURE__ */ n(c, {
264
+ ref: b,
265
+ sx: {
266
+ position: "sticky",
267
+ top: 0,
268
+ zIndex: 10,
269
+ mb: 2,
270
+ p: o ? {
271
+ xs: 1,
272
+ md: 1.25
273
+ } : {
274
+ xs: 2,
275
+ md: 2.5
276
+ },
277
+ borderRadius: 1.5,
278
+ border: `1px solid ${p(x, o ? 0.28 : 0.18)}`,
279
+ background: o ? e.palette.background.paper : `linear-gradient(135deg, ${p(e.palette.background.paper, 0.98)} 0%, ${p(x, 0.07)} 100%)`,
280
+ boxShadow: o ? `0 6px 18px ${p(e.palette.common.black, 0.1)}` : `0 18px 44px ${p(e.palette.common.black, 0.06)}`,
281
+ overflow: "hidden",
282
+ transition: e.transitions.create([
283
+ "padding",
284
+ "box-shadow",
285
+ "background"
286
+ ], { duration: e.transitions.duration.shortest }),
287
+ "&::before": {
288
+ content: '""',
289
+ position: "absolute",
290
+ left: 0,
291
+ top: 0,
292
+ bottom: 0,
293
+ width: 4,
294
+ background: `linear-gradient(180deg, ${x} 0%, ${M} 100%)`
295
+ }
296
+ },
297
+ children: /* @__PURE__ */ v(C, {
298
+ direction: o ? "row" : {
299
+ xs: "column",
300
+ md: "row"
301
+ },
302
+ justifyContent: "space-between",
303
+ alignItems: o ? "center" : {
304
+ xs: "flex-start",
305
+ md: "center"
306
+ },
307
+ spacing: 1.5,
308
+ children: [/* @__PURE__ */ v(c, {
309
+ sx: { minWidth: 0 },
310
+ children: [
311
+ !o && (s || k || y) ? /* @__PURE__ */ v(C, {
312
+ direction: "row",
313
+ alignItems: "center",
314
+ spacing: 0.75,
315
+ sx: { mb: 0.75 },
316
+ children: [
317
+ (() => {
318
+ let h = k ? g.icon : y ? f.icon : s.icon;
319
+ return h ? /* @__PURE__ */ n(h, { sx: {
320
+ fontSize: 16,
321
+ color: M
322
+ } }) : null;
323
+ })(),
324
+ /* @__PURE__ */ n(I, {
325
+ variant: "overline",
326
+ sx: {
327
+ color: M,
328
+ fontWeight: 800,
329
+ letterSpacing: 1.1,
330
+ lineHeight: 1
331
+ },
332
+ children: k ? "Overview" : y ? "Configuration" : s.label
333
+ }),
334
+ r != null && r.item ? /* @__PURE__ */ v(U, { children: [/* @__PURE__ */ n(c, { sx: {
335
+ width: 4,
336
+ height: 4,
337
+ borderRadius: "50%",
338
+ bgcolor: p(x, 0.4),
339
+ mx: 0.5
340
+ } }), /* @__PURE__ */ n(I, {
341
+ variant: "overline",
342
+ sx: {
343
+ color: e.palette.text.secondary,
344
+ fontWeight: 700,
345
+ letterSpacing: 0.8
346
+ },
347
+ children: r.item.label
348
+ })] }) : null
349
+ ]
350
+ }) : null,
351
+ /* @__PURE__ */ n(I, {
352
+ variant: "h5",
353
+ noWrap: o,
354
+ sx: {
355
+ fontWeight: 800,
356
+ color: e.palette.text.primary,
357
+ lineHeight: 1.2,
358
+ fontSize: o ? "1.05rem" : void 0,
359
+ transition: e.transitions.create("font-size", { duration: e.transitions.duration.shortest })
360
+ },
361
+ children: t
362
+ }),
363
+ a && !o ? /* @__PURE__ */ n(I, {
364
+ variant: "body2",
365
+ sx: {
366
+ mt: 0.75,
367
+ maxWidth: 900,
368
+ color: e.palette.text.secondary
369
+ },
370
+ children: a
371
+ }) : null,
372
+ i != null && i.length && !o ? /* @__PURE__ */ n(C, {
373
+ direction: "row",
374
+ spacing: 1,
375
+ useFlexGap: !0,
376
+ flexWrap: "wrap",
377
+ sx: { mt: 1.5 },
378
+ children: i.map((h) => /* @__PURE__ */ n(Z, {
379
+ label: h,
380
+ size: "small",
381
+ sx: {
382
+ borderRadius: 2,
383
+ backgroundColor: p(x, 0.1),
384
+ color: M,
385
+ fontWeight: 700,
386
+ border: `1px solid ${p(x, 0.2)}`
387
+ }
388
+ }, h))
389
+ }) : null
390
+ ]
391
+ }), d ? /* @__PURE__ */ n(c, {
392
+ sx: { flexShrink: 0 },
393
+ children: d
394
+ }) : null]
395
+ })
396
+ }),
397
+ o && O > 0 ? /* @__PURE__ */ n(c, {
398
+ "aria-hidden": !0,
399
+ sx: {
400
+ height: `${O}px`,
401
+ flexShrink: 0
402
+ }
403
+ }) : null,
404
+ /* @__PURE__ */ n(_, {
405
+ in: !0,
406
+ timeout: 360,
407
+ children: /* @__PURE__ */ n(c, {
408
+ sx: {
409
+ position: "relative",
410
+ zIndex: 1,
411
+ "& .MuiInputLabel-root": {
412
+ fontSize: "0.95rem",
413
+ color: e.palette.text.primary
414
+ },
415
+ "& .MuiInputLabel-root.Mui-focused": { color: e.palette.primary.main },
416
+ "& .MuiFormHelperText-root": {
417
+ fontSize: "0.78rem",
418
+ color: p(e.palette.text.primary, 0.7)
419
+ }
420
+ },
421
+ children: l
422
+ })
423
+ }, u)
424
+ ]
425
+ });
426
+ }
427
+ ye.propTypes = {
428
+ title: S.node,
429
+ subtitle: S.node,
430
+ chips: S.arrayOf(S.string),
431
+ actions: S.node,
432
+ children: S.node
433
+ };
434
+ var ke = "techo.manage.pm";
435
+ function Ke(t, a, i) {
436
+ let d = T(), l = Array.isArray(t) ? d.hasAny(t) : !!t && d.has(t);
437
+ z(() => {
438
+ if (l) return a();
439
+ }, [l, ...i ?? []]);
440
+ }
441
+ function T() {
442
+ let t = N((a) => {
443
+ var i;
444
+ return (i = a.Authenticate) == null ? void 0 : i.linearMenuItems;
445
+ });
446
+ return L(() => {
447
+ var l;
448
+ let a = (l = t == null ? void 0 : t[ke]) == null ? void 0 : l.featureJson;
449
+ if (typeof a == "string") try {
450
+ a = JSON.parse(a);
451
+ } catch {
452
+ a = {};
453
+ }
454
+ let i = a && typeof a == "object" ? a : {}, d = (e) => !!e && i[e] === !0;
455
+ return {
456
+ has: d,
457
+ hasAny: (e) => Array.isArray(e) && e.some(d)
458
+ };
459
+ }, [t]);
460
+ }
461
+ function Qe() {
462
+ let t = B(), a = H(), i = q(), d = Y(), l = T(), e = L(() => be(l, d), [l, d]), u = l.has(g.permissionId), o = l.has(f.permissionId), A = a.pathname.startsWith(g.path), $ = a.pathname.startsWith(f.path), b = xe(a.pathname), m = b ? e.find((r) => r.id === b.id) ?? null : null, O = A ? g.accent : $ ? f.accent : (b == null ? void 0 : b.accent) ?? i.palette.primary.main, W = m ? m.items.findIndex((r) => a.pathname.startsWith(r.path)) : -1;
463
+ function k(r, s) {
464
+ return {
465
+ px: 2,
466
+ py: 0.9,
467
+ borderRadius: 999,
468
+ cursor: "pointer",
469
+ display: "inline-flex",
470
+ alignItems: "center",
471
+ gap: 1,
472
+ fontWeight: 700,
473
+ fontSize: "0.875rem",
474
+ letterSpacing: 0.2,
475
+ transition: "all 220ms cubic-bezier(0.4, 0, 0.2, 1)",
476
+ color: r ? "#fff" : i.palette.text.secondary,
477
+ backgroundColor: r ? s : "transparent",
478
+ boxShadow: r ? `0 8px 22px ${p(s, 0.32)}` : "none",
479
+ "&:hover": {
480
+ color: r ? "#fff" : s,
481
+ backgroundColor: r ? s : p(s, 0.08),
482
+ transform: r ? "none" : "translateY(-1px)"
483
+ }
484
+ };
485
+ }
486
+ function y({ id: r, label: s, icon: x, active: M, onClick: h, hue: w }) {
487
+ return /* @__PURE__ */ v(c, {
488
+ role: "button",
489
+ onClick: h,
490
+ sx: k(M, w),
491
+ children: [x ? /* @__PURE__ */ n(x, { sx: { fontSize: 18 } }) : null, s]
492
+ }, r);
493
+ }
494
+ return /* @__PURE__ */ v(c, {
495
+ sx: { mb: 2 },
496
+ children: [/* @__PURE__ */ n(c, {
497
+ sx: {
498
+ position: "relative",
499
+ borderRadius: 1.5,
500
+ p: 1,
501
+ background: `linear-gradient(135deg, ${p(i.palette.background.paper, 0.96)} 0%, ${p(O, 0.06)} 100%)`,
502
+ border: `1px solid ${p(i.palette.divider, 0.7)}`,
503
+ boxShadow: `0 10px 28px ${p(i.palette.common.black, 0.04)}`
504
+ },
505
+ children: /* @__PURE__ */ v(C, {
506
+ direction: "row",
507
+ alignItems: "center",
508
+ spacing: 0.75,
509
+ flexWrap: "wrap",
510
+ useFlexGap: !0,
511
+ children: [
512
+ u ? y({
513
+ id: g.id,
514
+ label: g.label,
515
+ icon: g.icon,
516
+ active: A,
517
+ hue: g.accent,
518
+ onClick: () => t(g.path)
519
+ }) : null,
520
+ u && e.length > 0 ? /* @__PURE__ */ n(c, { sx: {
521
+ width: 1,
522
+ height: 22,
523
+ mx: 0.5,
524
+ bgcolor: "divider",
525
+ opacity: 0.7
526
+ } }) : null,
527
+ e.map((r) => y({
528
+ id: r.id,
529
+ label: r.label,
530
+ icon: r.icon,
531
+ active: (b == null ? void 0 : b.id) === r.id,
532
+ hue: r.accent,
533
+ onClick: () => r.items[0] && t(r.items[0].path)
534
+ })),
535
+ /* @__PURE__ */ n(c, { sx: { flexGrow: 1 } }),
536
+ o ? y({
537
+ id: f.id,
538
+ label: f.label,
539
+ icon: f.icon,
540
+ active: $,
541
+ hue: f.accent,
542
+ onClick: () => t(f.path)
543
+ }) : null
544
+ ]
545
+ })
546
+ }), m && m.items.length > 0 ? /* @__PURE__ */ n(c, {
547
+ sx: {
548
+ mt: 1,
549
+ borderRadius: 1.5,
550
+ px: 1,
551
+ bgcolor: p(m.accent, 0.04),
552
+ border: `1px solid ${p(m.accent, 0.12)}`
553
+ },
554
+ children: /* @__PURE__ */ n(j, {
555
+ value: W === -1 ? !1 : W,
556
+ onChange: (r, s) => t(m.items[s].path),
557
+ variant: "scrollable",
558
+ scrollButtons: "auto",
559
+ slotProps: { indicator: { sx: {
560
+ backgroundColor: m.accent,
561
+ height: 3,
562
+ borderRadius: 2
563
+ } } },
564
+ sx: {
565
+ minHeight: 44,
566
+ "& .MuiTab-root": {
567
+ minHeight: 44,
568
+ fontWeight: 700,
569
+ textTransform: "none",
570
+ fontSize: "0.85rem",
571
+ color: i.palette.text.secondary,
572
+ transition: "color 180ms ease",
573
+ "&:hover": { color: m.accentDark },
574
+ "&.Mui-selected": { color: m.accentDark }
575
+ }
576
+ },
577
+ children: m.items.map((r) => {
578
+ let s = r.icon;
579
+ return /* @__PURE__ */ n(K, {
580
+ iconPosition: "start",
581
+ icon: s ? /* @__PURE__ */ n(s, { sx: { fontSize: 18 } }) : void 0,
582
+ label: /* @__PURE__ */ n(I, {
583
+ component: "span",
584
+ sx: { fontWeight: 700 },
585
+ children: r.label
586
+ })
587
+ }, r.id);
588
+ })
589
+ })
590
+ }) : null]
591
+ });
592
+ }
593
+ function Ve({ perm: t, anyOf: a, children: i, title: d = "You don’t have access to this page" }) {
594
+ let l = T(), e = B();
595
+ return N((u) => {
596
+ var o;
597
+ return (o = u.Authenticate) == null ? void 0 : o.linearMenuItems;
598
+ }) == null ? /* @__PURE__ */ n(c, {
599
+ sx: { p: 3 },
600
+ children: /* @__PURE__ */ n(Q, {})
601
+ }) : (a ? l.hasAny(a) : l.has(t)) ? i : /* @__PURE__ */ n(c, {
602
+ sx: { p: 3 },
603
+ children: /* @__PURE__ */ n(V, {
604
+ severity: "warning",
605
+ icon: /* @__PURE__ */ n(fe, {}),
606
+ sx: {
607
+ borderRadius: 1.5,
608
+ alignItems: "flex-start"
609
+ },
610
+ children: /* @__PURE__ */ v(C, {
611
+ spacing: 1.25,
612
+ children: [
613
+ /* @__PURE__ */ n(I, {
614
+ sx: { fontWeight: 800 },
615
+ children: d
616
+ }),
617
+ /* @__PURE__ */ n(I, {
618
+ variant: "body2",
619
+ color: "text.secondary",
620
+ children: "Your account doesn’t have the required permission to view this section of Product Management. Ask an admin to grant it via the role / user permission assignment."
621
+ }),
622
+ /* @__PURE__ */ n(c, { children: /* @__PURE__ */ n(X, {
623
+ size: "small",
624
+ variant: "contained",
625
+ onClick: () => e("/ui/medplat/manage/pm"),
626
+ children: "Back to Dashboard"
627
+ }) })
628
+ ]
629
+ })
630
+ })
631
+ });
632
+ }
633
+ export {
634
+ Qe as $,
635
+ be as K,
636
+ T as Q,
637
+ ye as Y,
638
+ Ke as Z,
639
+ Ve as e
640
+ };
641
+ //# sourceMappingURL=PmGuard-BvUUbU80-BpYNaDzl.js.map