@argusoft/medplat-core 1.0.31 → 1.0.33
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.
- package/dist/AccessRights-BC43Jhml.js +1093 -0
- package/dist/AccessRights-BC43Jhml.js.map +1 -0
- package/dist/{AddFeatures-D1sU8RjY.js → AddFeatures-COj4ZTIM.js} +2 -2
- package/dist/{AddFeatures-D1sU8RjY.js.map → AddFeatures-COj4ZTIM.js.map} +1 -1
- package/dist/AddMenuConfiguration-Creeib5X.js +11223 -0
- package/dist/AddMenuConfiguration-Creeib5X.js.map +1 -0
- package/dist/AddMenuConfiguration.css +1 -1
- package/dist/{BrandsPage-DMw2vT0u-BVhvhc6J.js → BrandsPage-CdcAvaml-CYT80CMH.js} +45 -45
- package/dist/{BrandsPage-DMw2vT0u-BVhvhc6J.js.map → BrandsPage-CdcAvaml-CYT80CMH.js.map} +1 -1
- package/dist/{CategoriesPage-D3ihx9Gi-CT58g0ry.js → CategoriesPage-BprQEYJw-BRAukJB1.js} +43 -43
- package/dist/{CategoriesPage-D3ihx9Gi-CT58g0ry.js.map → CategoriesPage-BprQEYJw-BRAukJB1.js.map} +1 -1
- package/dist/ChangePasswordModalCore-rypTxA2O.js +238 -0
- package/dist/ChangePasswordModalCore-rypTxA2O.js.map +1 -0
- package/dist/{ConditionConfig-BQBmBHaM.js → ConditionConfig-Bpm6OoV5.js} +3 -3
- package/dist/{ConditionConfig-BQBmBHaM.js.map → ConditionConfig-Bpm6OoV5.js.map} +1 -1
- package/dist/{DashboardPage-asr2XDRu-uOOlX9Vq.js → DashboardPage-CTiGSx71-DX-TzGOH.js} +29 -29
- package/dist/{DashboardPage-asr2XDRu-uOOlX9Vq.js.map → DashboardPage-CTiGSx71-DX-TzGOH.js.map} +1 -1
- package/dist/EntityManagement-BGwJGl9k.js +62 -0
- package/dist/EntityManagement-BGwJGl9k.js.map +1 -0
- package/dist/{EventConfigurations-CUPEN5BV.js → EventConfigurations-B-z7xHh_.js} +3 -3
- package/dist/{EventConfigurations-CUPEN5BV.js.map → EventConfigurations-B-z7xHh_.js.map} +1 -1
- package/dist/{EventsExceptionModal-BX-ArkBE.js → EventsExceptionModal-DafomIv6.js} +2 -2
- package/dist/{EventsExceptionModal-BX-ArkBE.js.map → EventsExceptionModal-DafomIv6.js.map} +1 -1
- package/dist/{EventsUi-D6O9S7BK.js → EventsUi-Dl_yckSA.js} +37 -32
- package/dist/EventsUi-Dl_yckSA.js.map +1 -0
- package/dist/FacilityPicker-BXa2VF7i-D0JUIqLv.js +112 -0
- package/dist/FacilityPicker-BXa2VF7i-D0JUIqLv.js.map +1 -0
- package/dist/FaqList-CeDEuhU_.js +237 -0
- package/dist/FaqList-CeDEuhU_.js.map +1 -0
- package/dist/FaqSkeletons-hLCEcRr-.js +19 -0
- package/dist/FaqSkeletons-hLCEcRr-.js.map +1 -0
- package/dist/FaqView-sDzBVyXV.js +617 -0
- package/dist/FaqView-sDzBVyXV.js.map +1 -0
- package/dist/{FeatureMenu-CHsBbw3W.js → FeatureMenu-CaI-ZhSZ.js} +2 -2
- package/dist/{FeatureMenu-CHsBbw3W.js.map → FeatureMenu-CaI-ZhSZ.js.map} +1 -1
- package/dist/{FhirServerList-iXBPkRVF.js → FhirServerList-CrIHMAxz.js} +19 -19
- package/dist/{FhirServerList-iXBPkRVF.js.map → FhirServerList-CrIHMAxz.js.map} +1 -1
- package/dist/{FhirServerProfile-CUOwC6Wb.js → FhirServerProfile-D3aYcpwY.js} +8 -8
- package/dist/{FhirServerProfile-CUOwC6Wb.js.map → FhirServerProfile-D3aYcpwY.js.map} +1 -1
- package/dist/{FhirServerWizard-DZI8Olku.js → FhirServerWizard-Db6Hm4bQ.js} +15 -15
- package/dist/{FhirServerWizard-DZI8Olku.js.map → FhirServerWizard-Db6Hm4bQ.js.map} +1 -1
- package/dist/{ImmunizationConfigurationBase-aUtx0JEe.js → ImmunizationConfigurationBase-Clkk0-n6.js} +2638 -2577
- package/dist/ImmunizationConfigurationBase-Clkk0-n6.js.map +1 -0
- package/dist/InventoryPage-JadYMCzU-CWcCauMI.js +1017 -0
- package/dist/InventoryPage-JadYMCzU-CWcCauMI.js.map +1 -0
- package/dist/LocationWiseExpectedTargetPage-CjKk1aTF.js +1344 -0
- package/dist/LocationWiseExpectedTargetPage-CjKk1aTF.js.map +1 -0
- package/dist/{ManageDynamicFeature-BU0I45dd.js → ManageDynamicFeature-CuyYfx_P.js} +104 -97
- package/dist/ManageDynamicFeature-CuyYfx_P.js.map +1 -0
- package/dist/{ManageEventConfiguration-DqW3krT6.js → ManageEventConfiguration-DqPbn3Oi.js} +5 -5
- package/dist/{ManageEventConfiguration-DqW3krT6.js.map → ManageEventConfiguration-DqPbn3Oi.js.map} +1 -1
- package/dist/ManageFaq-4cT6bntx.js +1583 -0
- package/dist/ManageFaq-4cT6bntx.js.map +1 -0
- package/dist/ManageFaq.css +1 -0
- package/dist/ManageRole-CyfpySt9.js +981 -0
- package/dist/ManageRole-CyfpySt9.js.map +1 -0
- package/dist/{ManageUser-DZltBina.js → ManageUser-DchUMAyC.js} +172 -172
- package/dist/{ManageUser-DZltBina.js.map → ManageUser-DchUMAyC.js.map} +1 -1
- package/dist/{MemberProfileCard-D5CgkTdJ-D2NgDJl3.js → MemberProfileCard-01d_jz3w-CQi_zu6x.js} +37 -37
- package/dist/{MemberProfileCard-D5CgkTdJ-D2NgDJl3.js.map → MemberProfileCard-01d_jz3w-CQi_zu6x.js.map} +1 -1
- package/dist/MobileAnalytics-C9oc2yAo.js +18399 -0
- package/dist/MobileAnalytics-C9oc2yAo.js.map +1 -0
- package/dist/MobileMenuManagement-BmzTPXy7.js +231 -0
- package/dist/MobileMenuManagement-BmzTPXy7.js.map +1 -0
- package/dist/{MobileTypeEventConfigModal-CMcj7Ozp.js → MobileTypeEventConfigModal-DodU3beR.js} +3 -3
- package/dist/{MobileTypeEventConfigModal-CMcj7Ozp.js.map → MobileTypeEventConfigModal-DodU3beR.js.map} +1 -1
- package/dist/{NewServerManagement-Cxe0dV0O.js → NewServerManagement-BdayO78D.js} +368 -352
- package/dist/NewServerManagement-BdayO78D.js.map +1 -0
- package/dist/OtherTypeEventConfigModal-D_9S50aI.js +1414 -0
- package/dist/OtherTypeEventConfigModal-D_9S50aI.js.map +1 -0
- package/dist/{PaymentCreatePage-DfvSZ-kB-CckogYoe.js → PaymentCreatePage-D6NZBUC3-_98S21Sa.js} +56 -56
- package/dist/{PaymentCreatePage-DfvSZ-kB-CckogYoe.js.map → PaymentCreatePage-D6NZBUC3-_98S21Sa.js.map} +1 -1
- package/dist/{PaymentsPage-DMNjYWAJ-ChO9IXmk.js → PaymentsPage-CHieGNrn-ChCXEyck.js} +38 -38
- package/dist/{PaymentsPage-DMNjYWAJ-ChO9IXmk.js.map → PaymentsPage-CHieGNrn-ChCXEyck.js.map} +1 -1
- package/dist/{PermissionsModal-CCYkcKlC.js → PermissionsModal-Dxbkkrqe.js} +18 -18
- package/dist/PermissionsModal-Dxbkkrqe.js.map +1 -0
- package/dist/{PickupBatchLinesEditor-CE2RuyJT-BPceiJr8.js → PickupBatchLinesEditor-QPaqFtUO-BEtI5mIU.js} +2 -2
- package/dist/{PickupBatchLinesEditor-CE2RuyJT-BPceiJr8.js.map → PickupBatchLinesEditor-QPaqFtUO-BEtI5mIU.js.map} +1 -1
- package/dist/PickupCreatePage-C7_67u_u-DbDIZ1WC.js +801 -0
- package/dist/PickupCreatePage-C7_67u_u-DbDIZ1WC.js.map +1 -0
- package/dist/{PickupsPage-D7zyioJB-bHKnARYw.js → PickupsPage-BWblMlic-KehDMebm.js} +122 -122
- package/dist/PickupsPage-BWblMlic-KehDMebm.js.map +1 -0
- package/dist/PmGuard-BvUUbU80-DJipZoSg.js +641 -0
- package/dist/PmGuard-BvUUbU80-DJipZoSg.js.map +1 -0
- package/dist/ProductEditPage-Dbq4vUAA-DusAdAvm.js +1523 -0
- package/dist/ProductEditPage-Dbq4vUAA-DusAdAvm.js.map +1 -0
- package/dist/{ProductsPage-DvNHIeZt-BoOOJJtk.js → ProductsPage-BI22nPb4-D3GnWz34.js} +29 -29
- package/dist/{ProductsPage-DvNHIeZt-BoOOJJtk.js.map → ProductsPage-BI22nPb4-D3GnWz34.js.map} +1 -1
- package/dist/PurchaseCreatePage-C0EK9z4w-D4PlZsOH.js +724 -0
- package/dist/PurchaseCreatePage-C0EK9z4w-D4PlZsOH.js.map +1 -0
- package/dist/{PurchaseRequestDetailPage-CA9KFOfE-CtjG4Gx6.js → PurchaseRequestDetailPage-DhBuOGHZ-CAmlL4fP.js} +446 -436
- package/dist/PurchaseRequestDetailPage-DhBuOGHZ-CAmlL4fP.js.map +1 -0
- package/dist/{PurchaseRequestsPage-DS9i4o0--TpoxA5Kd.js → PurchaseRequestsPage-Bj9HUMxb-BCAhEEkL.js} +55 -55
- package/dist/{PurchaseRequestsPage-DS9i4o0--TpoxA5Kd.js.map → PurchaseRequestsPage-Bj9HUMxb-BCAhEEkL.js.map} +1 -1
- package/dist/{PurchasesPage-DgL5T6BY-DePUuE9l.js → PurchasesPage-Djl1AqD_-DxBRFRDy.js} +61 -61
- package/dist/{PurchasesPage-DgL5T6BY-DePUuE9l.js.map → PurchasesPage-Djl1AqD_-DxBRFRDy.js.map} +1 -1
- package/dist/{RoleManagement-s8iNx2Mu.js → RoleManagement-DVYufwy-.js} +3 -3
- package/dist/{RoleManagement-s8iNx2Mu.js.map → RoleManagement-DVYufwy-.js.map} +1 -1
- package/dist/Roles-BoNGJhtR.js +19 -0
- package/dist/Roles-BoNGJhtR.js.map +1 -0
- package/dist/{SaleCreatePage-CZnIOydv-DKBw-qp7.js → SaleCreatePage-DHBLmlBr-aEGmvJQq.js} +33 -33
- package/dist/{SaleCreatePage-CZnIOydv-DKBw-qp7.js.map → SaleCreatePage-DHBLmlBr-aEGmvJQq.js.map} +1 -1
- package/dist/{SalesPage-DPIRrC_O-M8rqnK7z.js → SalesPage-eF9Yr42z-CvOr82vo.js} +34 -34
- package/dist/SalesPage-eF9Yr42z-CvOr82vo.js.map +1 -0
- package/dist/SettingsPage-Cre-UE3r-CGTVp5Zw.js +741 -0
- package/dist/SettingsPage-Cre-UE3r-CGTVp5Zw.js.map +1 -0
- package/dist/{StorageUnitsPage-BDRkdCjW-UF64rf7q.js → StorageUnitsPage-CTEVuemZ-C7zkwKMz.js} +213 -190
- package/dist/StorageUnitsPage-CTEVuemZ-C7zkwKMz.js.map +1 -0
- package/dist/{SubMenu-BdMTYtC1.js → SubMenu-DZIhur09.js} +2 -2
- package/dist/{SubMenu-BdMTYtC1.js.map → SubMenu-DZIhur09.js.map} +1 -1
- package/dist/{TableDetails-BtafRxXb.js → TableDetails-Cc40dEUs.js} +272 -267
- package/dist/TableDetails-Cc40dEUs.js.map +1 -0
- package/dist/{TableList-Dpo6dO7S.js → TableList-B5tX4wII.js} +316 -312
- package/dist/TableList-B5tX4wII.js.map +1 -0
- package/dist/{TransactionsPage-CqWTMNU8-Df6eGFDW.js → TransactionsPage-Zuu7sjID-BDmUK7s1.js} +185 -170
- package/dist/TransactionsPage-Zuu7sjID-BDmUK7s1.js.map +1 -0
- package/dist/TransferCreatePage-DlT0nCDj-evHPJc99.js +635 -0
- package/dist/TransferCreatePage-DlT0nCDj-evHPJc99.js.map +1 -0
- package/dist/TransfersPage-DqaSvHda-DAUn5SSr.js +600 -0
- package/dist/TransfersPage-DqaSvHda-DAUn5SSr.js.map +1 -0
- package/dist/{TypeConfiguration-JbRCN6GR.js → TypeConfiguration-EaFiOzRE.js} +3 -3
- package/dist/{TypeConfiguration-JbRCN6GR.js.map → TypeConfiguration-EaFiOzRE.js.map} +1 -1
- package/dist/UserList-Cf5B-o_1.js +1904 -0
- package/dist/UserList-Cf5B-o_1.js.map +1 -0
- package/dist/Users-MC7txo1V.js +43 -0
- package/dist/{Users-CsJ08Kjm.js.map → Users-MC7txo1V.js.map} +1 -1
- package/dist/VaccineEducation-DWkNNasF.js +231 -0
- package/dist/VaccineEducation-DWkNNasF.js.map +1 -0
- package/dist/VaccineEducation.css +1 -0
- package/dist/VaccineEducationConfigurator-BFCvu5Mw.js +1450 -0
- package/dist/VaccineEducationConfigurator-BFCvu5Mw.js.map +1 -0
- package/dist/VaccineEducationConfigurator.css +1 -0
- package/dist/VaccineEducationList-BxZHahCh.js +334 -0
- package/dist/VaccineEducationList-BxZHahCh.js.map +1 -0
- package/dist/VialsPage-LoDaUqVv-Dw00Zc06.js +457 -0
- package/dist/VialsPage-LoDaUqVv-Dw00Zc06.js.map +1 -0
- package/dist/ckeditor5-_x14lrzc.js +49590 -0
- package/dist/ckeditor5-_x14lrzc.js.map +1 -0
- package/dist/ckeditor5.css +4 -0
- package/dist/{constants-DpXnLsAB-D6lN5cjK.js → constants-BTpJFQe_-CYPZIqQF.js} +160 -61
- package/dist/constants-BTpJFQe_-CYPZIqQF.js.map +1 -0
- package/dist/dashboardLayoutUtils--xUnoKPa.js +615 -0
- package/dist/dashboardLayoutUtils--xUnoKPa.js.map +1 -0
- package/dist/faqMedia-FDpje7v0.js +234 -0
- package/dist/faqMedia-FDpje7v0.js.map +1 -0
- package/dist/index-mfoqII2U.js +524 -0
- package/dist/index-mfoqII2U.js.map +1 -0
- package/dist/{index-D9YNFPn9.js → index-o8Pyt1Bt.js} +445 -439
- package/dist/index-o8Pyt1Bt.js.map +1 -0
- package/dist/index.css +1 -1
- package/dist/index.js +1 -1
- package/dist/{index.lib-ETRQOzvE.js → index.lib-QDEODnRT.js} +409 -327
- package/dist/index.lib-QDEODnRT.js.map +1 -0
- package/dist/listValueStore-5d4vNGQM-DB08drLf.js +43 -0
- package/dist/listValueStore-5d4vNGQM-DB08drLf.js.map +1 -0
- package/dist/proxy-C4gcRXzG.js +5265 -0
- package/dist/proxy-C4gcRXzG.js.map +1 -0
- package/package.json +7 -2
- package/dist/AccessRights-DUgY6ewy.js +0 -1031
- package/dist/AccessRights-DUgY6ewy.js.map +0 -1
- package/dist/AddMenuConfiguration-c6ZKiN0i.js +0 -8898
- package/dist/AddMenuConfiguration-c6ZKiN0i.js.map +0 -1
- package/dist/ChangePasswordModalCore-lQ9GamH1.js +0 -5494
- package/dist/ChangePasswordModalCore-lQ9GamH1.js.map +0 -1
- package/dist/EntityManagement-CPQL6qBj.js +0 -50
- package/dist/EntityManagement-CPQL6qBj.js.map +0 -1
- package/dist/EventsUi-D6O9S7BK.js.map +0 -1
- package/dist/FacilityPicker-DYl_PDyt-Cbwo2tAY.js +0 -79
- package/dist/FacilityPicker-DYl_PDyt-Cbwo2tAY.js.map +0 -1
- package/dist/ImmunizationConfigurationBase-aUtx0JEe.js.map +0 -1
- package/dist/InventoryPage-DOotGZrj-CoPjOJEI.js +0 -665
- package/dist/InventoryPage-DOotGZrj-CoPjOJEI.js.map +0 -1
- package/dist/ManageDynamicFeature-BU0I45dd.js.map +0 -1
- package/dist/ManageRole-CNZBRKGU.js +0 -776
- package/dist/ManageRole-CNZBRKGU.js.map +0 -1
- package/dist/MobileAnalytics-BLOionG_.js +0 -17301
- package/dist/MobileAnalytics-BLOionG_.js.map +0 -1
- package/dist/MobileMenuManagement-68Wijb0X.js +0 -220
- package/dist/MobileMenuManagement-68Wijb0X.js.map +0 -1
- package/dist/NewServerManagement-Cxe0dV0O.js.map +0 -1
- package/dist/OtherTypeEventConfigModal-stNmuSv_.js +0 -1812
- package/dist/OtherTypeEventConfigModal-stNmuSv_.js.map +0 -1
- package/dist/PermissionsModal-CCYkcKlC.js.map +0 -1
- package/dist/PickupCreatePage-B4O_-vE5-DoOo9nJO.js +0 -783
- package/dist/PickupCreatePage-B4O_-vE5-DoOo9nJO.js.map +0 -1
- package/dist/PickupsPage-D7zyioJB-bHKnARYw.js.map +0 -1
- package/dist/PmGuard-BZE-y4In-D_pUm5MP.js +0 -599
- package/dist/PmGuard-BZE-y4In-D_pUm5MP.js.map +0 -1
- package/dist/ProductEditPage-BVlVUCtD-BR-tJ5Wb.js +0 -1305
- package/dist/ProductEditPage-BVlVUCtD-BR-tJ5Wb.js.map +0 -1
- package/dist/PurchaseCreatePage-Cq_i9snz-DRtHHFWw.js +0 -675
- package/dist/PurchaseCreatePage-Cq_i9snz-DRtHHFWw.js.map +0 -1
- package/dist/PurchaseRequestDetailPage-CA9KFOfE-CtjG4Gx6.js.map +0 -1
- package/dist/Roles-BIyiic67.js +0 -14
- package/dist/Roles-BIyiic67.js.map +0 -1
- package/dist/SalesPage-DPIRrC_O-M8rqnK7z.js.map +0 -1
- package/dist/SettingsPage-BC_R6Z-Q-CKNt9zRu.js +0 -676
- package/dist/SettingsPage-BC_R6Z-Q-CKNt9zRu.js.map +0 -1
- package/dist/StorageUnitsPage-BDRkdCjW-UF64rf7q.js.map +0 -1
- package/dist/TableDetails-BtafRxXb.js.map +0 -1
- package/dist/TableList-Dpo6dO7S.js.map +0 -1
- package/dist/TransactionsPage-CqWTMNU8-Df6eGFDW.js.map +0 -1
- package/dist/TransferCreatePage-DF7FZaTJ-CL79V3aR.js +0 -315
- package/dist/TransferCreatePage-DF7FZaTJ-CL79V3aR.js.map +0 -1
- package/dist/TransfersPage-CGrRFaBF-cTwBUv0o.js +0 -476
- package/dist/TransfersPage-CGrRFaBF-cTwBUv0o.js.map +0 -1
- package/dist/UserList-L41Xw0Q6.js +0 -1129
- package/dist/UserList-L41Xw0Q6.js.map +0 -1
- package/dist/Users-CsJ08Kjm.js +0 -40
- package/dist/VialsPage-rvvXjgZG-Oqo1v6kQ.js +0 -321
- package/dist/VialsPage-rvvXjgZG-Oqo1v6kQ.js.map +0 -1
- package/dist/constants-DpXnLsAB-D6lN5cjK.js.map +0 -1
- package/dist/dashboardLayoutUtils-CJivzaU1.js +0 -408
- package/dist/dashboardLayoutUtils-CJivzaU1.js.map +0 -1
- package/dist/index-D9YNFPn9.js.map +0 -1
- package/dist/index.lib-ETRQOzvE.js.map +0 -1
- package/dist/listValueStore-BFQtDYIR-Bj0yX145.js +0 -36
- package/dist/listValueStore-BFQtDYIR-Bj0yX145.js.map +0 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { B as
|
|
2
|
-
import {
|
|
1
|
+
import { B as Ae, G as se, z as Te, V as We, U as ze, X as Oe, O as Pe, a as S, Y as Ve, Z as je } from "./ImmunizationConfigurationBase-Clkk0-n6.js";
|
|
2
|
+
import { A as le, M as De, V as Fe, D as Me } from "./constants-BTpJFQe_-CYPZIqQF.js";
|
|
3
3
|
import { n as ce, t as Ue, o as Ge } from "./format-UOyOu75i-D0GyylyQ.js";
|
|
4
|
-
import {
|
|
5
|
-
import { d as de, p as Ke, m as _e, f as et } from "./PickupBatchLinesEditor-
|
|
4
|
+
import { Q as Ye, Z as He, $ as Ze, e as Xe, Y as Je } from "./PmGuard-BvUUbU80-DJipZoSg.js";
|
|
5
|
+
import { d as de, p as Ke, m as _e, f as et } from "./PickupBatchLinesEditor-QPaqFtUO-BEtI5mIU.js";
|
|
6
6
|
import { useState as m, useMemo as $ } from "react";
|
|
7
7
|
import { jsxs as a, jsx as t, Fragment as ue } from "react/jsx-runtime";
|
|
8
|
-
import { Box as h, Alert as tt, Stack as p, TextField as
|
|
8
|
+
import { Box as h, Alert as tt, Stack as p, TextField as E, InputAdornment as nt, TableHead as it, TableRow as U, TableCell as d, TableBody as rt, Skeleton as at, Button as y, Chip as G, Typography as l, Tooltip as ot, Dialog as pe, DialogTitle as me, DialogContent as he, Divider as st, DialogActions as ye } from "@mui/material";
|
|
9
9
|
import { alpha as z } from "@mui/material/styles";
|
|
10
10
|
import { v4 as ge } from "uuid";
|
|
11
11
|
import O from "@mui/icons-material/AddRounded";
|
|
12
|
-
import
|
|
12
|
+
import lt from "@mui/icons-material/RefreshRounded";
|
|
13
13
|
import { useNavigate as ct } from "react-router-dom";
|
|
14
14
|
import dt from "@mui/icons-material/MoveDownRounded";
|
|
15
15
|
import ut from "@mui/icons-material/SearchRounded";
|
|
@@ -17,8 +17,8 @@ import pt from "@mui/icons-material/GroupsRounded";
|
|
|
17
17
|
import mt from "@mui/icons-material/PersonRounded";
|
|
18
18
|
import ht from "@mui/icons-material/AssignmentReturnRounded";
|
|
19
19
|
import yt from "@mui/icons-material/ScienceRounded";
|
|
20
|
-
function gt(
|
|
21
|
-
switch (
|
|
20
|
+
function gt(s) {
|
|
21
|
+
switch (s) {
|
|
22
22
|
case "OPEN":
|
|
23
23
|
return "info";
|
|
24
24
|
case "RETURNED":
|
|
@@ -29,30 +29,30 @@ function gt(l) {
|
|
|
29
29
|
return "default";
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
|
-
function g(
|
|
33
|
-
return
|
|
34
|
-
id:
|
|
35
|
-
productName:
|
|
36
|
-
lotNumber:
|
|
37
|
-
expiryDate:
|
|
38
|
-
pickedQty:
|
|
39
|
-
sourceBatchQtyRemaining:
|
|
40
|
-
expectedRemainingQty:
|
|
41
|
-
openVials:
|
|
32
|
+
function g(s) {
|
|
33
|
+
return s != null && s.lines && s.lines.length > 0 ? s.lines : [{
|
|
34
|
+
id: s.id,
|
|
35
|
+
productName: s.productName,
|
|
36
|
+
lotNumber: s.lotNumber,
|
|
37
|
+
expiryDate: s.expiryDate,
|
|
38
|
+
pickedQty: s.pickedQty,
|
|
39
|
+
sourceBatchQtyRemaining: s.sourceBatchQtyRemaining,
|
|
40
|
+
expectedRemainingQty: s.expectedRemainingQty,
|
|
41
|
+
openVials: s.openVials ?? []
|
|
42
42
|
}];
|
|
43
43
|
}
|
|
44
|
-
function fe(
|
|
45
|
-
if (
|
|
46
|
-
let x = `${
|
|
44
|
+
function fe(s, f) {
|
|
45
|
+
if (s <= 0) return "";
|
|
46
|
+
let x = `${s} open vial${s === 1 ? "" : "s"}`;
|
|
47
47
|
return f > 0 ? `${x} with ${Ge(f, 1)} ml left` : x;
|
|
48
48
|
}
|
|
49
|
-
function ft(
|
|
50
|
-
let N =
|
|
49
|
+
function ft(s, f, x) {
|
|
50
|
+
let N = s != null && s > 0 ? `${s} sealed unit${s === 1 ? "" : "s"} will be wasted` : "", v = f > 0 ? `${fe(f, x)} will be closed as wastage` : "";
|
|
51
51
|
return N && v ? `${N}, and ${v}.` : N ? `${N}.` : v ? `All sealed units are coming back, but ${v}.` : "";
|
|
52
52
|
}
|
|
53
53
|
function zt() {
|
|
54
54
|
var re, ae;
|
|
55
|
-
let
|
|
55
|
+
let s = ct(), f = Ye().has("update.manage.productManagement.pickup"), [x, N] = m([]), [v, Y] = m(!0), [H, Z] = m(""), [C, be] = m(""), [R, we] = m("OPEN"), [b, X] = m({
|
|
56
56
|
open: !1,
|
|
57
57
|
pickup: null
|
|
58
58
|
}), [B, P] = m({
|
|
@@ -61,41 +61,41 @@ function zt() {
|
|
|
61
61
|
}), [c, J] = m({
|
|
62
62
|
open: !1,
|
|
63
63
|
pickup: null
|
|
64
|
-
}), [u,
|
|
64
|
+
}), [u, L] = m({
|
|
65
65
|
qty: {},
|
|
66
66
|
newLines: [],
|
|
67
67
|
notes: ""
|
|
68
68
|
}), [V, ke] = m([]), [w, q] = m(!1);
|
|
69
|
-
async function
|
|
69
|
+
async function A() {
|
|
70
70
|
var e, n;
|
|
71
|
-
|
|
71
|
+
Y(!0), Z("");
|
|
72
72
|
try {
|
|
73
73
|
let [i, r] = await Promise.all([Oe(), Pe().catch(() => [])]);
|
|
74
74
|
N(i), ke(r);
|
|
75
75
|
} catch (i) {
|
|
76
76
|
let r = ((n = (e = i == null ? void 0 : i.response) == null ? void 0 : e.data) == null ? void 0 : n.message) ?? (i == null ? void 0 : i.message) ?? "Failed to load pickups";
|
|
77
|
-
|
|
77
|
+
Z(r), S({
|
|
78
78
|
message: r,
|
|
79
79
|
type: "error"
|
|
80
80
|
});
|
|
81
81
|
} finally {
|
|
82
|
-
|
|
82
|
+
Y(!1);
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
|
-
|
|
86
|
-
|
|
85
|
+
He("view.manage.productManagement.pickup", () => {
|
|
86
|
+
A();
|
|
87
87
|
}, []);
|
|
88
|
-
let
|
|
89
|
-
let e =
|
|
88
|
+
let T = $(() => {
|
|
89
|
+
let e = C.trim().toLowerCase();
|
|
90
90
|
return x.filter((n) => {
|
|
91
91
|
if (R !== "ALL" && n.status !== R) return !1;
|
|
92
92
|
if (!e) return !0;
|
|
93
93
|
let i = g(n).map((o) => o.productName ?? "").join(" "), r = (n.members ?? []).map((o) => o.name ?? "").join(" ");
|
|
94
|
-
return `${n.sessionName ?? ""} ${n.sessionSite ?? ""} ${i} ${n.facilityName ?? ""} ${n.userName ?? ""} ${r} ${n.notes ?? ""}`.toLowerCase().includes(e);
|
|
94
|
+
return `${n.sessionName ?? ""} ${n.sessionSiteLabel ?? n.sessionSite ?? ""} ${i} ${n.facilityName ?? ""} ${n.userName ?? ""} ${r} ${n.notes ?? ""}`.toLowerCase().includes(e);
|
|
95
95
|
});
|
|
96
96
|
}, [
|
|
97
97
|
x,
|
|
98
|
-
|
|
98
|
+
C,
|
|
99
99
|
R
|
|
100
100
|
]);
|
|
101
101
|
function xe(e) {
|
|
@@ -108,22 +108,22 @@ function zt() {
|
|
|
108
108
|
}), P({
|
|
109
109
|
lines: n,
|
|
110
110
|
notes: ""
|
|
111
|
-
}),
|
|
111
|
+
}), X({
|
|
112
112
|
open: !0,
|
|
113
113
|
pickup: e
|
|
114
114
|
});
|
|
115
115
|
}
|
|
116
116
|
function j() {
|
|
117
|
-
w ||
|
|
117
|
+
w || X({
|
|
118
118
|
open: !1,
|
|
119
119
|
pickup: null
|
|
120
120
|
});
|
|
121
121
|
}
|
|
122
|
-
let
|
|
122
|
+
let Q = $(() => b.pickup ? g(b.pickup).map((e) => {
|
|
123
123
|
let n = Number(e.expectedRemainingQty ?? 0), i = B.lines[e.id] || {
|
|
124
124
|
returnedQty: "",
|
|
125
125
|
wastageReason: ""
|
|
126
|
-
}, r = Number(i.returnedQty), o = e.openVials ?? [], k = Number.isInteger(r) && r >= 0 && r <= n, W = k ? n - r : null, oe = W != null && W > 0 || o.length > 0,
|
|
126
|
+
}, r = Number(i.returnedQty), o = e.openVials ?? [], k = Number.isInteger(r) && r >= 0 && r <= n, W = k ? n - r : null, oe = W != null && W > 0 || o.length > 0, Se = k ? "" : n === 0 ? "Nothing is due back, so this must stay 0." : `Enter 0 to ${n}.`, Ee = oe && !i.wastageReason ? "Reason required." : "", M = o.reduce((Be, qe) => Be + Number(qe.volumeRemainingMl ?? 0), 0);
|
|
127
127
|
return {
|
|
128
128
|
line: e,
|
|
129
129
|
expected: n,
|
|
@@ -135,10 +135,10 @@ function zt() {
|
|
|
135
135
|
openVialLabel: fe(o.length, M),
|
|
136
136
|
reasonRequired: oe,
|
|
137
137
|
reasonBecause: ft(W, o.length, M),
|
|
138
|
-
qtyError:
|
|
139
|
-
reasonError:
|
|
138
|
+
qtyError: Se,
|
|
139
|
+
reasonError: Ee
|
|
140
140
|
};
|
|
141
|
-
}) : [], [b.pickup, B]), K =
|
|
141
|
+
}) : [], [b.pickup, B]), K = Q.length > 0 && Q.every((e) => !e.qtyError && !e.reasonError);
|
|
142
142
|
function _(e, n, i) {
|
|
143
143
|
P((r) => ({
|
|
144
144
|
...r,
|
|
@@ -157,20 +157,20 @@ function zt() {
|
|
|
157
157
|
q(!0);
|
|
158
158
|
try {
|
|
159
159
|
await Ve(b.pickup.id, {
|
|
160
|
-
lines:
|
|
160
|
+
lines: Q.map((o) => ({
|
|
161
161
|
lineId: o.line.id,
|
|
162
162
|
returnedQty: o.returnedQty,
|
|
163
163
|
wastageReason: o.reasonRequired ? o.entry.wastageReason : null
|
|
164
164
|
})),
|
|
165
165
|
notes: B.notes || null
|
|
166
166
|
});
|
|
167
|
-
let i =
|
|
168
|
-
|
|
167
|
+
let i = Q.reduce((o, k) => o + k.returnedQty, 0), r = Q.reduce((o, k) => o + (k.wastedQty ?? 0), 0);
|
|
168
|
+
S({
|
|
169
169
|
message: r > 0 ? `Returned ${i}, wasted ${r}.` : `Returned ${i} unit${i === 1 ? "" : "s"}.`,
|
|
170
170
|
type: "success"
|
|
171
|
-
}), j(), await
|
|
171
|
+
}), j(), await A();
|
|
172
172
|
} catch (i) {
|
|
173
|
-
|
|
173
|
+
S({
|
|
174
174
|
message: ((n = (e = i == null ? void 0 : i.response) == null ? void 0 : e.data) == null ? void 0 : n.message) ?? (i == null ? void 0 : i.message) ?? "Failed to record return",
|
|
175
175
|
type: "error"
|
|
176
176
|
});
|
|
@@ -183,7 +183,7 @@ function zt() {
|
|
|
183
183
|
let n = {};
|
|
184
184
|
g(e).forEach((i) => {
|
|
185
185
|
n[i.id] = "";
|
|
186
|
-
}),
|
|
186
|
+
}), L({
|
|
187
187
|
qty: n,
|
|
188
188
|
newLines: [],
|
|
189
189
|
notes: ""
|
|
@@ -199,7 +199,7 @@ function zt() {
|
|
|
199
199
|
});
|
|
200
200
|
}
|
|
201
201
|
function Ne(e, n) {
|
|
202
|
-
|
|
202
|
+
L((i) => ({
|
|
203
203
|
...i,
|
|
204
204
|
qty: {
|
|
205
205
|
...i.qty,
|
|
@@ -208,7 +208,7 @@ function zt() {
|
|
|
208
208
|
}));
|
|
209
209
|
}
|
|
210
210
|
function Re(e, n, i) {
|
|
211
|
-
|
|
211
|
+
L((r) => {
|
|
212
212
|
let o = r.newLines.slice();
|
|
213
213
|
return o[e] = {
|
|
214
214
|
...o[e],
|
|
@@ -219,19 +219,19 @@ function zt() {
|
|
|
219
219
|
};
|
|
220
220
|
});
|
|
221
221
|
}
|
|
222
|
-
function
|
|
223
|
-
|
|
222
|
+
function Le() {
|
|
223
|
+
L((e) => ({
|
|
224
224
|
...e,
|
|
225
225
|
newLines: [...e.newLines, et(ge)]
|
|
226
226
|
}));
|
|
227
227
|
}
|
|
228
|
-
function
|
|
229
|
-
|
|
228
|
+
function Qe(e) {
|
|
229
|
+
L((n) => ({
|
|
230
230
|
...n,
|
|
231
231
|
newLines: n.newLines.filter((i, r) => r !== e)
|
|
232
232
|
}));
|
|
233
233
|
}
|
|
234
|
-
let F = $(() => c.pickup ? V.filter(de).filter((e) => e.ownerId === c.pickup.facilityId) : [], [V, c.pickup]),
|
|
234
|
+
let F = $(() => c.pickup ? V.filter(de).filter((e) => e.ownerId === c.pickup.facilityId) : [], [V, c.pickup]), Ie = $(() => c.pickup ? new Set(g(c.pickup).map((e) => e.sourceBatchId).filter(Boolean)) : /* @__PURE__ */ new Set(), [c.pickup]), ee = $(() => {
|
|
235
235
|
if (!c.pickup) return {};
|
|
236
236
|
let e = {};
|
|
237
237
|
return g(c.pickup).forEach((n) => {
|
|
@@ -240,7 +240,7 @@ function zt() {
|
|
|
240
240
|
let r = Number(i), o = n.sourceBatchQtyRemaining ?? 0;
|
|
241
241
|
!Number.isInteger(r) || r <= 0 ? e[n.id] = "Enter a whole number greater than 0." : r > o && (e[n.id] = `Only ${o} left at the source.`);
|
|
242
242
|
}), e;
|
|
243
|
-
}, [c.pickup, u.qty]), te = $(() => Ke(u.newLines, F), [u.newLines, F]),
|
|
243
|
+
}, [c.pickup, u.qty]), te = $(() => Ke(u.newLines, F), [u.newLines, F]), I = $(() => c.pickup ? {
|
|
244
244
|
topups: g(c.pickup).map((e) => ({
|
|
245
245
|
lineId: e.id,
|
|
246
246
|
additionalQty: Number(u.qty[e.id])
|
|
@@ -253,25 +253,25 @@ function zt() {
|
|
|
253
253
|
} : {
|
|
254
254
|
topups: [],
|
|
255
255
|
newLines: []
|
|
256
|
-
}, [c.pickup, u]), ne = Object.keys(ee).length === 0 && te.every((e) => Object.keys(e).length === 0) && (
|
|
257
|
-
async function
|
|
256
|
+
}, [c.pickup, u]), ne = Object.keys(ee).length === 0 && te.every((e) => Object.keys(e).length === 0) && (I.topups.length > 0 || I.newLines.length > 0);
|
|
257
|
+
async function Ce() {
|
|
258
258
|
var e, n;
|
|
259
259
|
if (!(!ne || !c.pickup)) {
|
|
260
260
|
q(!0);
|
|
261
261
|
try {
|
|
262
262
|
await je(c.pickup.id, {
|
|
263
263
|
id: ge(),
|
|
264
|
-
topups:
|
|
265
|
-
newLines:
|
|
264
|
+
topups: I.topups,
|
|
265
|
+
newLines: I.newLines,
|
|
266
266
|
notes: u.notes || null
|
|
267
267
|
});
|
|
268
|
-
let i =
|
|
269
|
-
|
|
268
|
+
let i = I.topups.reduce((r, o) => r + o.additionalQty, 0) + I.newLines.reduce((r, o) => r + o.pickedQty, 0);
|
|
269
|
+
S({
|
|
270
270
|
message: `Added ${i} unit${i === 1 ? "" : "s"} to the session.`,
|
|
271
271
|
type: "success"
|
|
272
|
-
}), D(), await
|
|
272
|
+
}), D(), await A();
|
|
273
273
|
} catch (i) {
|
|
274
|
-
|
|
274
|
+
S({
|
|
275
275
|
message: ((n = (e = i == null ? void 0 : i.response) == null ? void 0 : e.data) == null ? void 0 : n.message) ?? (i == null ? void 0 : i.message) ?? "Failed to top up",
|
|
276
276
|
type: "error"
|
|
277
277
|
});
|
|
@@ -284,8 +284,8 @@ function zt() {
|
|
|
284
284
|
return g(e).some((n) => (n.sourceBatchQtyRemaining ?? 0) > 0) ? !0 : V.some((n) => de(n) && n.ownerId === e.facilityId);
|
|
285
285
|
}
|
|
286
286
|
return /* @__PURE__ */ a(h, { children: [
|
|
287
|
-
/* @__PURE__ */ t(
|
|
288
|
-
/* @__PURE__ */ t(
|
|
287
|
+
/* @__PURE__ */ t(Ze, {}),
|
|
288
|
+
/* @__PURE__ */ t(Xe, {
|
|
289
289
|
perm: "view.manage.productManagement.pickup",
|
|
290
290
|
children: /* @__PURE__ */ a(Je, {
|
|
291
291
|
title: "Stock Pickups",
|
|
@@ -295,24 +295,24 @@ function zt() {
|
|
|
295
295
|
spacing: 1,
|
|
296
296
|
children: [/* @__PURE__ */ t(y, {
|
|
297
297
|
variant: "outlined",
|
|
298
|
-
startIcon: /* @__PURE__ */ t(
|
|
299
|
-
onClick: () => void
|
|
298
|
+
startIcon: /* @__PURE__ */ t(lt, {}),
|
|
299
|
+
onClick: () => void A(),
|
|
300
300
|
children: "Refresh"
|
|
301
301
|
}), f ? /* @__PURE__ */ t(y, {
|
|
302
302
|
variant: "contained",
|
|
303
303
|
startIcon: /* @__PURE__ */ t(O, {}),
|
|
304
|
-
onClick: () =>
|
|
304
|
+
onClick: () => s("/ui/medplat/manage/pm/pickups/new"),
|
|
305
305
|
children: "New Session"
|
|
306
306
|
}) : null]
|
|
307
307
|
}),
|
|
308
|
-
children: [
|
|
308
|
+
children: [H ? /* @__PURE__ */ t(tt, {
|
|
309
309
|
severity: "error",
|
|
310
310
|
sx: { mb: 2 },
|
|
311
|
-
children:
|
|
312
|
-
}) : null, /* @__PURE__ */ a(
|
|
311
|
+
children: H
|
|
312
|
+
}) : null, /* @__PURE__ */ a(Ae, {
|
|
313
313
|
eyebrow: "Operations",
|
|
314
314
|
title: "Sessions",
|
|
315
|
-
subtitle: v ? "Loading…" : `${
|
|
315
|
+
subtitle: v ? "Loading…" : `${T.length} ${T.length === 1 ? "session" : "sessions"}`,
|
|
316
316
|
children: [/* @__PURE__ */ a(p, {
|
|
317
317
|
direction: {
|
|
318
318
|
xs: "column",
|
|
@@ -321,11 +321,11 @@ function zt() {
|
|
|
321
321
|
spacing: 1.5,
|
|
322
322
|
sx: { mb: 2 },
|
|
323
323
|
alignItems: { md: "center" },
|
|
324
|
-
children: [/* @__PURE__ */ t(
|
|
324
|
+
children: [/* @__PURE__ */ t(E, {
|
|
325
325
|
size: "small",
|
|
326
326
|
fullWidth: !0,
|
|
327
327
|
placeholder: "Search by session, product, facility, user, member, notes…",
|
|
328
|
-
value:
|
|
328
|
+
value: C,
|
|
329
329
|
onChange: (e) => be(e.target.value),
|
|
330
330
|
InputProps: { startAdornment: /* @__PURE__ */ t(nt, {
|
|
331
331
|
position: "start",
|
|
@@ -339,17 +339,17 @@ function zt() {
|
|
|
339
339
|
md: "auto"
|
|
340
340
|
}
|
|
341
341
|
},
|
|
342
|
-
children: /* @__PURE__ */ t(
|
|
342
|
+
children: /* @__PURE__ */ t(se, {
|
|
343
343
|
label: "Status",
|
|
344
344
|
value: R,
|
|
345
345
|
onChange: we,
|
|
346
346
|
options: [{
|
|
347
347
|
value: "ALL",
|
|
348
348
|
label: "All statuses"
|
|
349
|
-
}, ...
|
|
349
|
+
}, ...le]
|
|
350
350
|
})
|
|
351
351
|
})]
|
|
352
|
-
}), /* @__PURE__ */ a(
|
|
352
|
+
}), /* @__PURE__ */ a(Te, {
|
|
353
353
|
dense: !0,
|
|
354
354
|
children: [/* @__PURE__ */ t(it, { children: /* @__PURE__ */ a(U, { children: [
|
|
355
355
|
/* @__PURE__ */ t(d, { children: "Ref" }),
|
|
@@ -367,19 +367,19 @@ function zt() {
|
|
|
367
367
|
align: "right",
|
|
368
368
|
children: "Action"
|
|
369
369
|
})
|
|
370
|
-
] }) }), /* @__PURE__ */ t(rt, { children: v ? Array.from({ length: 4 }).map((e, n) => /* @__PURE__ */ t(U, { children: Array.from({ length: 9 }).map((i, r) => /* @__PURE__ */ t(d, { children: /* @__PURE__ */ t(at, { height: 22 }) }, r)) }, n)) :
|
|
370
|
+
] }) }), /* @__PURE__ */ t(rt, { children: v ? Array.from({ length: 4 }).map((e, n) => /* @__PURE__ */ t(U, { children: Array.from({ length: 9 }).map((i, r) => /* @__PURE__ */ t(d, { children: /* @__PURE__ */ t(at, { height: 22 }) }, r)) }, n)) : T.length === 0 ? /* @__PURE__ */ t(We, {
|
|
371
371
|
colSpan: 9,
|
|
372
372
|
icon: dt,
|
|
373
|
-
title:
|
|
374
|
-
hint: R === "OPEN" &&
|
|
373
|
+
title: C.trim() !== "" || R !== "ALL" ? "No sessions match your filters" : "No sessions yet",
|
|
374
|
+
hint: R === "OPEN" && C.trim() === "" ? "No active sessions. Switch Status to see returned or cancelled ones." : "Check out stock from a facility to use in the field.",
|
|
375
375
|
action: f ? /* @__PURE__ */ t(y, {
|
|
376
376
|
variant: "contained",
|
|
377
377
|
size: "small",
|
|
378
378
|
startIcon: /* @__PURE__ */ t(O, {}),
|
|
379
|
-
onClick: () =>
|
|
379
|
+
onClick: () => s("/ui/medplat/manage/pm/pickups/new"),
|
|
380
380
|
children: "Start first session"
|
|
381
381
|
}) : null
|
|
382
|
-
}) :
|
|
382
|
+
}) : T.map((e) => {
|
|
383
383
|
let n = g(e), i = n.reduce((o, k) => o + Number(k.expectedRemainingQty ?? 0), 0), r = e.sessionType === "GROUP";
|
|
384
384
|
return /* @__PURE__ */ a(U, {
|
|
385
385
|
hover: !0,
|
|
@@ -401,7 +401,7 @@ function zt() {
|
|
|
401
401
|
color: r ? "secondary" : "default"
|
|
402
402
|
})
|
|
403
403
|
}),
|
|
404
|
-
/* @__PURE__ */ t(
|
|
404
|
+
/* @__PURE__ */ t(l, {
|
|
405
405
|
variant: "body2",
|
|
406
406
|
sx: {
|
|
407
407
|
fontWeight: 700,
|
|
@@ -409,16 +409,16 @@ function zt() {
|
|
|
409
409
|
},
|
|
410
410
|
children: e.sessionName ?? "—"
|
|
411
411
|
}),
|
|
412
|
-
e.sessionSite ? /* @__PURE__ */ t(
|
|
412
|
+
e.sessionSiteLabel ?? e.sessionSite ? /* @__PURE__ */ t(l, {
|
|
413
413
|
variant: "caption",
|
|
414
414
|
color: "text.secondary",
|
|
415
415
|
sx: {
|
|
416
416
|
display: "block",
|
|
417
417
|
wordBreak: "break-word"
|
|
418
418
|
},
|
|
419
|
-
children: e.sessionSite
|
|
419
|
+
children: e.sessionSiteLabel ?? e.sessionSite
|
|
420
420
|
}) : null,
|
|
421
|
-
e.sessionStartTime ? /* @__PURE__ */ a(
|
|
421
|
+
e.sessionStartTime ? /* @__PURE__ */ a(l, {
|
|
422
422
|
variant: "caption",
|
|
423
423
|
color: "text.secondary",
|
|
424
424
|
sx: {
|
|
@@ -431,22 +431,22 @@ function zt() {
|
|
|
431
431
|
}),
|
|
432
432
|
/* @__PURE__ */ t(d, {
|
|
433
433
|
sx: { maxWidth: 220 },
|
|
434
|
-
children: n.length === 1 ? /* @__PURE__ */ a(ue, { children: [/* @__PURE__ */ t(
|
|
434
|
+
children: n.length === 1 ? /* @__PURE__ */ a(ue, { children: [/* @__PURE__ */ t(l, {
|
|
435
435
|
variant: "body2",
|
|
436
436
|
sx: { fontWeight: 700 },
|
|
437
437
|
children: n[0].productName ?? "—"
|
|
438
|
-
}), n[0].lotNumber ? /* @__PURE__ */ t(
|
|
438
|
+
}), n[0].lotNumber ? /* @__PURE__ */ t(l, {
|
|
439
439
|
variant: "caption",
|
|
440
440
|
sx: {
|
|
441
441
|
fontFamily: "monospace",
|
|
442
442
|
color: "text.secondary"
|
|
443
443
|
},
|
|
444
444
|
children: n[0].lotNumber
|
|
445
|
-
}) : null] }) : /* @__PURE__ */ a(ue, { children: [/* @__PURE__ */ a(
|
|
445
|
+
}) : null] }) : /* @__PURE__ */ a(ue, { children: [/* @__PURE__ */ a(l, {
|
|
446
446
|
variant: "body2",
|
|
447
447
|
sx: { fontWeight: 700 },
|
|
448
448
|
children: [n.length, " batches"]
|
|
449
|
-
}), /* @__PURE__ */ a(
|
|
449
|
+
}), /* @__PURE__ */ a(l, {
|
|
450
450
|
variant: "caption",
|
|
451
451
|
color: "text.secondary",
|
|
452
452
|
sx: {
|
|
@@ -460,17 +460,17 @@ function zt() {
|
|
|
460
460
|
/* @__PURE__ */ t(d, { children: e.userName ?? "—" }),
|
|
461
461
|
/* @__PURE__ */ a(d, {
|
|
462
462
|
align: "right",
|
|
463
|
-
children: [/* @__PURE__ */ t(
|
|
463
|
+
children: [/* @__PURE__ */ t(l, {
|
|
464
464
|
sx: {
|
|
465
465
|
fontWeight: 700,
|
|
466
466
|
fontVariantNumeric: "tabular-nums"
|
|
467
467
|
},
|
|
468
468
|
children: e.pickedQty
|
|
469
|
-
}), e.status === "OPEN" ? /* @__PURE__ */ a(
|
|
469
|
+
}), e.status === "OPEN" ? /* @__PURE__ */ a(l, {
|
|
470
470
|
variant: "caption",
|
|
471
471
|
color: "text.secondary",
|
|
472
472
|
children: [i, " left"]
|
|
473
|
-
}) : e.status === "RETURNED" ? /* @__PURE__ */ a(
|
|
473
|
+
}) : e.status === "RETURNED" ? /* @__PURE__ */ a(l, {
|
|
474
474
|
variant: "caption",
|
|
475
475
|
color: "text.secondary",
|
|
476
476
|
children: [
|
|
@@ -480,7 +480,7 @@ function zt() {
|
|
|
480
480
|
]
|
|
481
481
|
}) : null]
|
|
482
482
|
}),
|
|
483
|
-
/* @__PURE__ */ t(d, { children: /* @__PURE__ */ t(
|
|
483
|
+
/* @__PURE__ */ t(d, { children: /* @__PURE__ */ t(l, {
|
|
484
484
|
variant: "body2",
|
|
485
485
|
children: Ue(e.pickedOn)
|
|
486
486
|
}) }),
|
|
@@ -490,7 +490,7 @@ function zt() {
|
|
|
490
490
|
color: "error"
|
|
491
491
|
}) : /* @__PURE__ */ t(G, {
|
|
492
492
|
size: "small",
|
|
493
|
-
label: Fe(
|
|
493
|
+
label: Fe(le, e.status),
|
|
494
494
|
color: gt(e.status)
|
|
495
495
|
}) }),
|
|
496
496
|
/* @__PURE__ */ t(d, {
|
|
@@ -516,11 +516,11 @@ function zt() {
|
|
|
516
516
|
onClick: () => xe(e),
|
|
517
517
|
children: "End Session"
|
|
518
518
|
})]
|
|
519
|
-
}) : e.status === "OPEN" && !e.isCreator ? /* @__PURE__ */ t(
|
|
519
|
+
}) : e.status === "OPEN" && !e.isCreator ? /* @__PURE__ */ t(l, {
|
|
520
520
|
variant: "caption",
|
|
521
521
|
color: "text.disabled",
|
|
522
522
|
children: "Creator only"
|
|
523
|
-
}) : /* @__PURE__ */ t(
|
|
523
|
+
}) : /* @__PURE__ */ t(l, {
|
|
524
524
|
variant: "caption",
|
|
525
525
|
color: "text.disabled",
|
|
526
526
|
children: "—"
|
|
@@ -544,7 +544,7 @@ function zt() {
|
|
|
544
544
|
spacing: 2,
|
|
545
545
|
sx: { mt: 1 },
|
|
546
546
|
children: [
|
|
547
|
-
/* @__PURE__ */ a(
|
|
547
|
+
/* @__PURE__ */ a(l, {
|
|
548
548
|
variant: "body2",
|
|
549
549
|
color: "text.secondary",
|
|
550
550
|
children: [
|
|
@@ -561,7 +561,7 @@ function zt() {
|
|
|
561
561
|
},
|
|
562
562
|
children: /* @__PURE__ */ t(p, {
|
|
563
563
|
spacing: 1.5,
|
|
564
|
-
children:
|
|
564
|
+
children: Q.map((e) => /* @__PURE__ */ a(h, {
|
|
565
565
|
sx: (n) => ({
|
|
566
566
|
p: 1.5,
|
|
567
567
|
borderRadius: 1.5,
|
|
@@ -569,10 +569,10 @@ function zt() {
|
|
|
569
569
|
border: `1px solid ${z(n.palette.primary.main, 0.12)}`
|
|
570
570
|
}),
|
|
571
571
|
children: [
|
|
572
|
-
/* @__PURE__ */ a(
|
|
572
|
+
/* @__PURE__ */ a(l, {
|
|
573
573
|
variant: "body2",
|
|
574
574
|
sx: { fontWeight: 700 },
|
|
575
|
-
children: [e.line.productName, e.line.lotNumber ? /* @__PURE__ */ t(
|
|
575
|
+
children: [e.line.productName, e.line.lotNumber ? /* @__PURE__ */ t(l, {
|
|
576
576
|
component: "span",
|
|
577
577
|
variant: "caption",
|
|
578
578
|
sx: {
|
|
@@ -583,7 +583,7 @@ function zt() {
|
|
|
583
583
|
children: e.line.lotNumber
|
|
584
584
|
}) : null]
|
|
585
585
|
}),
|
|
586
|
-
/* @__PURE__ */ a(
|
|
586
|
+
/* @__PURE__ */ a(l, {
|
|
587
587
|
variant: "caption",
|
|
588
588
|
color: "text.secondary",
|
|
589
589
|
sx: { display: "block" },
|
|
@@ -597,7 +597,7 @@ function zt() {
|
|
|
597
597
|
children: [/* @__PURE__ */ t(yt, { sx: {
|
|
598
598
|
fontSize: 16,
|
|
599
599
|
color: "warning.main"
|
|
600
|
-
} }), /* @__PURE__ */ a(
|
|
600
|
+
} }), /* @__PURE__ */ a(l, {
|
|
601
601
|
variant: "caption",
|
|
602
602
|
sx: {
|
|
603
603
|
color: "warning.main",
|
|
@@ -614,7 +614,7 @@ function zt() {
|
|
|
614
614
|
spacing: 1.5,
|
|
615
615
|
alignItems: { sm: "flex-start" },
|
|
616
616
|
sx: { mt: 1 },
|
|
617
|
-
children: [/* @__PURE__ */ t(
|
|
617
|
+
children: [/* @__PURE__ */ t(E, {
|
|
618
618
|
required: !0,
|
|
619
619
|
size: "small",
|
|
620
620
|
type: "number",
|
|
@@ -634,7 +634,7 @@ function zt() {
|
|
|
634
634
|
flex: 1,
|
|
635
635
|
minWidth: 180
|
|
636
636
|
},
|
|
637
|
-
children: /* @__PURE__ */ t(
|
|
637
|
+
children: /* @__PURE__ */ t(se, {
|
|
638
638
|
label: `Wastage reason${e.reasonRequired ? " *" : ""}`,
|
|
639
639
|
disabled: !e.reasonRequired,
|
|
640
640
|
error: !!e.reasonError,
|
|
@@ -649,8 +649,8 @@ function zt() {
|
|
|
649
649
|
}, e.line.id))
|
|
650
650
|
})
|
|
651
651
|
}),
|
|
652
|
-
/* @__PURE__ */ t(
|
|
653
|
-
/* @__PURE__ */ t(
|
|
652
|
+
/* @__PURE__ */ t(st, {}),
|
|
653
|
+
/* @__PURE__ */ t(E, {
|
|
654
654
|
size: "small",
|
|
655
655
|
multiline: !0,
|
|
656
656
|
minRows: 2,
|
|
@@ -686,7 +686,7 @@ function zt() {
|
|
|
686
686
|
spacing: 2.5,
|
|
687
687
|
sx: { mt: 1 },
|
|
688
688
|
children: [
|
|
689
|
-
/* @__PURE__ */ a(
|
|
689
|
+
/* @__PURE__ */ a(l, {
|
|
690
690
|
variant: "body2",
|
|
691
691
|
color: "text.secondary",
|
|
692
692
|
children: [
|
|
@@ -695,7 +695,7 @@ function zt() {
|
|
|
695
695
|
". Leave a quantity blank to skip that batch."
|
|
696
696
|
]
|
|
697
697
|
}),
|
|
698
|
-
/* @__PURE__ */ a(h, { children: [/* @__PURE__ */ t(
|
|
698
|
+
/* @__PURE__ */ a(h, { children: [/* @__PURE__ */ t(l, {
|
|
699
699
|
variant: "overline",
|
|
700
700
|
color: "text.secondary",
|
|
701
701
|
children: "Batches already out"
|
|
@@ -719,11 +719,11 @@ function zt() {
|
|
|
719
719
|
spacing: 1.5,
|
|
720
720
|
justifyContent: "space-between",
|
|
721
721
|
alignItems: { sm: "center" },
|
|
722
|
-
children: [/* @__PURE__ */ a(h, { children: [/* @__PURE__ */ t(
|
|
722
|
+
children: [/* @__PURE__ */ a(h, { children: [/* @__PURE__ */ t(l, {
|
|
723
723
|
variant: "body2",
|
|
724
724
|
sx: { fontWeight: 700 },
|
|
725
725
|
children: e.productName
|
|
726
|
-
}), /* @__PURE__ */ a(
|
|
726
|
+
}), /* @__PURE__ */ a(l, {
|
|
727
727
|
variant: "caption",
|
|
728
728
|
color: "text.secondary",
|
|
729
729
|
children: [
|
|
@@ -731,7 +731,7 @@ function zt() {
|
|
|
731
731
|
n,
|
|
732
732
|
" left at the source"
|
|
733
733
|
]
|
|
734
|
-
})] }), /* @__PURE__ */ t(
|
|
734
|
+
})] }), /* @__PURE__ */ t(E, {
|
|
735
735
|
size: "small",
|
|
736
736
|
type: "number",
|
|
737
737
|
sx: { width: { sm: 170 } },
|
|
@@ -754,7 +754,7 @@ function zt() {
|
|
|
754
754
|
direction: "row",
|
|
755
755
|
justifyContent: "space-between",
|
|
756
756
|
alignItems: "center",
|
|
757
|
-
children: [/* @__PURE__ */ t(
|
|
757
|
+
children: [/* @__PURE__ */ t(l, {
|
|
758
758
|
variant: "overline",
|
|
759
759
|
color: "text.secondary",
|
|
760
760
|
children: "Add another batch"
|
|
@@ -762,10 +762,10 @@ function zt() {
|
|
|
762
762
|
size: "small",
|
|
763
763
|
variant: "outlined",
|
|
764
764
|
startIcon: /* @__PURE__ */ t(O, {}),
|
|
765
|
-
onClick:
|
|
765
|
+
onClick: Le,
|
|
766
766
|
children: "Add Batch"
|
|
767
767
|
})]
|
|
768
|
-
}), u.newLines.length === 0 ? /* @__PURE__ */ t(
|
|
768
|
+
}), u.newLines.length === 0 ? /* @__PURE__ */ t(l, {
|
|
769
769
|
variant: "caption",
|
|
770
770
|
color: "text.secondary",
|
|
771
771
|
sx: {
|
|
@@ -779,19 +779,19 @@ function zt() {
|
|
|
779
779
|
lines: u.newLines,
|
|
780
780
|
batches: F,
|
|
781
781
|
errors: te,
|
|
782
|
-
excludeBatchIds:
|
|
782
|
+
excludeBatchIds: Ie,
|
|
783
783
|
onPatch: Re,
|
|
784
|
-
onRemove:
|
|
784
|
+
onRemove: Qe,
|
|
785
785
|
allowRemoveLast: !0
|
|
786
786
|
})
|
|
787
787
|
})] }),
|
|
788
|
-
/* @__PURE__ */ t(
|
|
788
|
+
/* @__PURE__ */ t(E, {
|
|
789
789
|
size: "small",
|
|
790
790
|
multiline: !0,
|
|
791
791
|
minRows: 2,
|
|
792
792
|
label: "Notes (optional)",
|
|
793
793
|
value: u.notes,
|
|
794
|
-
onChange: (e) =>
|
|
794
|
+
onChange: (e) => L((n) => ({
|
|
795
795
|
...n,
|
|
796
796
|
notes: e.target.value
|
|
797
797
|
}))
|
|
@@ -804,7 +804,7 @@ function zt() {
|
|
|
804
804
|
children: "Cancel"
|
|
805
805
|
}), /* @__PURE__ */ t(y, {
|
|
806
806
|
variant: "contained",
|
|
807
|
-
onClick: () => void
|
|
807
|
+
onClick: () => void Ce(),
|
|
808
808
|
disabled: !ne || w,
|
|
809
809
|
children: w ? "Submitting…" : "Top Up"
|
|
810
810
|
})] })
|
|
@@ -815,4 +815,4 @@ function zt() {
|
|
|
815
815
|
export {
|
|
816
816
|
zt as default
|
|
817
817
|
};
|
|
818
|
-
//# sourceMappingURL=PickupsPage-
|
|
818
|
+
//# sourceMappingURL=PickupsPage-BWblMlic-KehDMebm.js.map
|