@argusoft/medplat-core 1.0.30 → 1.0.31
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-xrday-L1.js → AccessRights-DUgY6ewy.js} +151 -143
- package/dist/AccessRights-DUgY6ewy.js.map +1 -0
- package/dist/AddMenuConfiguration-c6ZKiN0i.js +8898 -0
- package/dist/AddMenuConfiguration-c6ZKiN0i.js.map +1 -0
- package/dist/{BrandsPage-DmRW5bhm-Bk1szrjI.js → BrandsPage-DMw2vT0u-BVhvhc6J.js} +14 -14
- package/dist/{BrandsPage-DmRW5bhm-Bk1szrjI.js.map → BrandsPage-DMw2vT0u-BVhvhc6J.js.map} +1 -1
- package/dist/{CategoriesPage-BsS5IQh3-B03lWRY5.js → CategoriesPage-D3ihx9Gi-CT58g0ry.js} +112 -105
- package/dist/CategoriesPage-D3ihx9Gi-CT58g0ry.js.map +1 -0
- package/dist/{ChangePasswordModalCore-BPsJquTS.js → ChangePasswordModalCore-lQ9GamH1.js} +3 -3
- package/dist/{ChangePasswordModalCore-BPsJquTS.js.map → ChangePasswordModalCore-lQ9GamH1.js.map} +1 -1
- package/dist/ConditionConfig-BQBmBHaM.js +408 -0
- package/dist/ConditionConfig-BQBmBHaM.js.map +1 -0
- package/dist/{DashboardPage-C3bKc5na-sBd9Yqbi.js → DashboardPage-asr2XDRu-uOOlX9Vq.js} +29 -29
- package/dist/{DashboardPage-C3bKc5na-sBd9Yqbi.js.map → DashboardPage-asr2XDRu-uOOlX9Vq.js.map} +1 -1
- package/dist/EventConfig-BY2cgGyx.js +27 -0
- package/dist/{EventConfig-BmLemzX3.js.map → EventConfig-BY2cgGyx.js.map} +1 -1
- package/dist/EventConfigurations-CUPEN5BV.js +544 -0
- package/dist/EventConfigurations-CUPEN5BV.js.map +1 -0
- package/dist/EventConfigurations.css +1 -1
- package/dist/EventsExceptionModal-BX-ArkBE.js +188 -0
- package/dist/EventsExceptionModal-BX-ArkBE.js.map +1 -0
- package/dist/EventsUi-D6O9S7BK.js +258 -0
- package/dist/EventsUi-D6O9S7BK.js.map +1 -0
- package/dist/{FacilityPicker-BiZeupmP-CyPHmj6b.js → FacilityPicker-DYl_PDyt-Cbwo2tAY.js} +10 -10
- package/dist/{FacilityPicker-BiZeupmP-CyPHmj6b.js.map → FacilityPicker-DYl_PDyt-Cbwo2tAY.js.map} +1 -1
- package/dist/{FeatureMenu-DYJmDt7q.js → FeatureMenu-CHsBbw3W.js} +9 -5
- package/dist/FeatureMenu-CHsBbw3W.js.map +1 -0
- package/dist/{FhirServerList-DuTwnngN.js → FhirServerList-iXBPkRVF.js} +11 -11
- package/dist/{FhirServerList-DuTwnngN.js.map → FhirServerList-iXBPkRVF.js.map} +1 -1
- package/dist/{GrantPermissionModal-BDN66Atn.js → GrantPermissionModal-D7iNZd0M.js} +54 -51
- package/dist/GrantPermissionModal-D7iNZd0M.js.map +1 -0
- package/dist/{ImmunizationConfigurationBase-Di1KO3oW.js → ImmunizationConfigurationBase-aUtx0JEe.js} +3440 -3060
- package/dist/ImmunizationConfigurationBase-aUtx0JEe.js.map +1 -0
- package/dist/{InventoryPage-C_AxSy7A-QLvlL4rE.js → InventoryPage-DOotGZrj-CoPjOJEI.js} +10 -10
- package/dist/{InventoryPage-C_AxSy7A-QLvlL4rE.js.map → InventoryPage-DOotGZrj-CoPjOJEI.js.map} +1 -1
- package/dist/ManageEventConfiguration-DqW3krT6.js +1216 -0
- package/dist/ManageEventConfiguration-DqW3krT6.js.map +1 -0
- package/dist/ManageEventConfiguration.css +1 -1
- package/dist/{ManageUser-DCFkUMV9.js → ManageUser-DZltBina.js} +134 -134
- package/dist/{ManageUser-DCFkUMV9.js.map → ManageUser-DZltBina.js.map} +1 -1
- package/dist/{MemberProfileCard-BdUNgHRB-VywqQdFF.js → MemberProfileCard-D5CgkTdJ-D2NgDJl3.js} +25 -25
- package/dist/{MemberProfileCard-BdUNgHRB-VywqQdFF.js.map → MemberProfileCard-D5CgkTdJ-D2NgDJl3.js.map} +1 -1
- package/dist/MobileAnalytics-BLOionG_.js +17301 -0
- package/dist/MobileAnalytics-BLOionG_.js.map +1 -0
- package/dist/MobileMenuManagement-68Wijb0X.js +220 -0
- package/dist/MobileMenuManagement-68Wijb0X.js.map +1 -0
- package/dist/MobileTypeEventConfigModal-CMcj7Ozp.js +752 -0
- package/dist/MobileTypeEventConfigModal-CMcj7Ozp.js.map +1 -0
- package/dist/OtherTypeEventConfigModal-stNmuSv_.js +1812 -0
- package/dist/OtherTypeEventConfigModal-stNmuSv_.js.map +1 -0
- package/dist/{PaymentCreatePage-CIVe0P0p-25BQVpOX.js → PaymentCreatePage-DfvSZ-kB-CckogYoe.js} +14 -14
- package/dist/{PaymentCreatePage-CIVe0P0p-25BQVpOX.js.map → PaymentCreatePage-DfvSZ-kB-CckogYoe.js.map} +1 -1
- package/dist/{PaymentsPage-BvPe5Q9F-D2gfziwW.js → PaymentsPage-DMNjYWAJ-ChO9IXmk.js} +24 -24
- package/dist/{PaymentsPage-BvPe5Q9F-D2gfziwW.js.map → PaymentsPage-DMNjYWAJ-ChO9IXmk.js.map} +1 -1
- package/dist/{PickupBatchLinesEditor-DHmcAG23-DL2p6IKJ.js → PickupBatchLinesEditor-CE2RuyJT-BPceiJr8.js} +2 -2
- package/dist/{PickupBatchLinesEditor-DHmcAG23-DL2p6IKJ.js.map → PickupBatchLinesEditor-CE2RuyJT-BPceiJr8.js.map} +1 -1
- package/dist/{PickupCreatePage-CB0Sl0Hb-Mmj7zESG.js → PickupCreatePage-B4O_-vE5-DoOo9nJO.js} +64 -64
- package/dist/{PickupCreatePage-CB0Sl0Hb-Mmj7zESG.js.map → PickupCreatePage-B4O_-vE5-DoOo9nJO.js.map} +1 -1
- package/dist/{PickupsPage-Ctpghavs-CUp4uIZq.js → PickupsPage-D7zyioJB-bHKnARYw.js} +29 -29
- package/dist/PickupsPage-D7zyioJB-bHKnARYw.js.map +1 -0
- package/dist/{PmGuard-b10TGXEi-G3N0G_Wg.js → PmGuard-BZE-y4In-D_pUm5MP.js} +25 -25
- package/dist/{PmGuard-b10TGXEi-G3N0G_Wg.js.map → PmGuard-BZE-y4In-D_pUm5MP.js.map} +1 -1
- package/dist/{ProductEditPage-C1thoKHu-URQaZ6st.js → ProductEditPage-BVlVUCtD-BR-tJ5Wb.js} +475 -472
- package/dist/ProductEditPage-BVlVUCtD-BR-tJ5Wb.js.map +1 -0
- package/dist/{ProductsPage-CupVmOD4-D45a_hf-.js → ProductsPage-DvNHIeZt-BoOOJJtk.js} +36 -35
- package/dist/ProductsPage-DvNHIeZt-BoOOJJtk.js.map +1 -0
- package/dist/{PurchaseCreatePage-YD3NmhPQ-2j4etSjM.js → PurchaseCreatePage-Cq_i9snz-DRtHHFWw.js} +214 -187
- package/dist/PurchaseCreatePage-Cq_i9snz-DRtHHFWw.js.map +1 -0
- package/dist/{PurchaseRequestDetailPage-Dg_MRY_N-D1bgTEAn.js → PurchaseRequestDetailPage-CA9KFOfE-CtjG4Gx6.js} +80 -80
- package/dist/PurchaseRequestDetailPage-CA9KFOfE-CtjG4Gx6.js.map +1 -0
- package/dist/{PurchaseRequestsPage-DPAPzpmm-mDH2IrTl.js → PurchaseRequestsPage-DS9i4o0--TpoxA5Kd.js} +29 -29
- package/dist/{PurchaseRequestsPage-DPAPzpmm-mDH2IrTl.js.map → PurchaseRequestsPage-DS9i4o0--TpoxA5Kd.js.map} +1 -1
- package/dist/{PurchasesPage-It1GHiXl-eH4IsF_U.js → PurchasesPage-DgL5T6BY-DePUuE9l.js} +31 -31
- package/dist/{PurchasesPage-It1GHiXl-eH4IsF_U.js.map → PurchasesPage-DgL5T6BY-DePUuE9l.js.map} +1 -1
- package/dist/{SaleCreatePage-C9kFmTvm-B3Y0o4CX.js → SaleCreatePage-CZnIOydv-DKBw-qp7.js} +15 -15
- package/dist/{SaleCreatePage-C9kFmTvm-B3Y0o4CX.js.map → SaleCreatePage-CZnIOydv-DKBw-qp7.js.map} +1 -1
- package/dist/{SalesPage-D18DCseD-BxktGDRQ.js → SalesPage-DPIRrC_O-M8rqnK7z.js} +62 -62
- package/dist/SalesPage-DPIRrC_O-M8rqnK7z.js.map +1 -0
- package/dist/SettingsPage-BC_R6Z-Q-CKNt9zRu.js +676 -0
- package/dist/SettingsPage-BC_R6Z-Q-CKNt9zRu.js.map +1 -0
- package/dist/{ShowFlywayQuery-D1y_4A1u.js → ShowFlywayQuery-DIOUdYfG.js} +26 -19
- package/dist/{ShowFlywayQuery-D1y_4A1u.js.map → ShowFlywayQuery-DIOUdYfG.js.map} +1 -1
- package/dist/{StorageUnitsPage-7EqwuMOI-BwUso1Th.js → StorageUnitsPage-BDRkdCjW-UF64rf7q.js} +195 -188
- package/dist/StorageUnitsPage-BDRkdCjW-UF64rf7q.js.map +1 -0
- package/dist/{SubMenu-eEDhZUvh.js → SubMenu-BdMTYtC1.js} +5 -3
- package/dist/SubMenu-BdMTYtC1.js.map +1 -0
- package/dist/{TransactionsPage-DrH53pVS-BkhIGB6C.js → TransactionsPage-CqWTMNU8-Df6eGFDW.js} +48 -48
- package/dist/{TransactionsPage-DrH53pVS-BkhIGB6C.js.map → TransactionsPage-CqWTMNU8-Df6eGFDW.js.map} +1 -1
- package/dist/{TransferCreatePage-CuvoMrYH-DTTfHjz-.js → TransferCreatePage-DF7FZaTJ-CL79V3aR.js} +8 -8
- package/dist/{TransferCreatePage-CuvoMrYH-DTTfHjz-.js.map → TransferCreatePage-DF7FZaTJ-CL79V3aR.js.map} +1 -1
- package/dist/{TransfersPage-Cf701t8s-BBbN7cBf.js → TransfersPage-CGrRFaBF-cTwBUv0o.js} +69 -69
- package/dist/TransfersPage-CGrRFaBF-cTwBUv0o.js.map +1 -0
- package/dist/TypeConfiguration-JbRCN6GR.js +114 -0
- package/dist/TypeConfiguration-JbRCN6GR.js.map +1 -0
- package/dist/{UserList-DgPxsnj2.js → UserList-L41Xw0Q6.js} +2 -2
- package/dist/{UserList-DgPxsnj2.js.map → UserList-L41Xw0Q6.js.map} +1 -1
- package/dist/Users-CsJ08Kjm.js +40 -0
- package/dist/{Users-Bpc4Sazd.js.map → Users-CsJ08Kjm.js.map} +1 -1
- package/dist/{VialsPage-8oAc1yFv-Cl3FUXBJ.js → VialsPage-rvvXjgZG-Oqo1v6kQ.js} +35 -35
- package/dist/{VialsPage-8oAc1yFv-Cl3FUXBJ.js.map → VialsPage-rvvXjgZG-Oqo1v6kQ.js.map} +1 -1
- package/dist/{constants-ClZJY2x1-MkSWn6TZ.js → constants-DpXnLsAB-D6lN5cjK.js} +58 -47
- package/dist/constants-DpXnLsAB-D6lN5cjK.js.map +1 -0
- package/dist/{dashboardLayoutUtils-D1xCAxp3.js → dashboardLayoutUtils-CJivzaU1.js} +95 -92
- package/dist/dashboardLayoutUtils-CJivzaU1.js.map +1 -0
- package/dist/index.css +1 -1
- package/dist/index.js +1 -1
- package/dist/index.lib-ETRQOzvE.js +894 -0
- package/dist/index.lib-ETRQOzvE.js.map +1 -0
- package/dist/listValueStore-BFQtDYIR-Bj0yX145.js +36 -0
- package/dist/listValueStore-BFQtDYIR-Bj0yX145.js.map +1 -0
- package/package.json +1 -1
- package/dist/AccessRights-xrday-L1.js.map +0 -1
- package/dist/AddMenuConfiguration-e5BVXhmw.js +0 -8547
- package/dist/AddMenuConfiguration-e5BVXhmw.js.map +0 -1
- package/dist/CategoriesPage-BsS5IQh3-B03lWRY5.js.map +0 -1
- package/dist/ConditionConfig-Ddz9halE.js +0 -395
- package/dist/ConditionConfig-Ddz9halE.js.map +0 -1
- package/dist/ConditionConfig.css +0 -1
- package/dist/EventConfig-BmLemzX3.js +0 -26
- package/dist/EventConfigurations-Bzh1qWXU.js +0 -450
- package/dist/EventConfigurations-Bzh1qWXU.js.map +0 -1
- package/dist/EventsExceptionModal-B2SRrnB1.js +0 -200
- package/dist/EventsExceptionModal-B2SRrnB1.js.map +0 -1
- package/dist/EventsSkeleton-BIcPks4T.js +0 -61
- package/dist/EventsSkeleton-BIcPks4T.js.map +0 -1
- package/dist/FeatureMenu-DYJmDt7q.js.map +0 -1
- package/dist/GrantPermissionModal-BDN66Atn.js.map +0 -1
- package/dist/ImmunizationConfigurationBase-Di1KO3oW.js.map +0 -1
- package/dist/ManageEventConfiguration-CoYcpjR9.js +0 -1085
- package/dist/ManageEventConfiguration-CoYcpjR9.js.map +0 -1
- package/dist/MobileAnalytics-pQoE8cG1.js +0 -16888
- package/dist/MobileAnalytics-pQoE8cG1.js.map +0 -1
- package/dist/MobileMenuManagement-Cf8IZlla.js +0 -108
- package/dist/MobileMenuManagement-Cf8IZlla.js.map +0 -1
- package/dist/MobileTypeEventConfigModal-BeveaX0C.js +0 -783
- package/dist/MobileTypeEventConfigModal-BeveaX0C.js.map +0 -1
- package/dist/OtherTypeEventConfigModal-CM6VkdmY.js +0 -2046
- package/dist/OtherTypeEventConfigModal-CM6VkdmY.js.map +0 -1
- package/dist/PickupsPage-Ctpghavs-CUp4uIZq.js.map +0 -1
- package/dist/ProductEditPage-C1thoKHu-URQaZ6st.js.map +0 -1
- package/dist/ProductsPage-CupVmOD4-D45a_hf-.js.map +0 -1
- package/dist/PurchaseCreatePage-YD3NmhPQ-2j4etSjM.js.map +0 -1
- package/dist/PurchaseRequestDetailPage-Dg_MRY_N-D1bgTEAn.js.map +0 -1
- package/dist/SalesPage-D18DCseD-BxktGDRQ.js.map +0 -1
- package/dist/SettingsPage-VsxI-ano-DcmtUUEj.js +0 -747
- package/dist/SettingsPage-VsxI-ano-DcmtUUEj.js.map +0 -1
- package/dist/StorageUnitsPage-7EqwuMOI-BwUso1Th.js.map +0 -1
- package/dist/SubMenu-eEDhZUvh.js.map +0 -1
- package/dist/TransfersPage-Cf701t8s-BBbN7cBf.js.map +0 -1
- package/dist/TypeConfiguration-3O6ABrK-.js +0 -117
- package/dist/TypeConfiguration-3O6ABrK-.js.map +0 -1
- package/dist/Users-Bpc4Sazd.js +0 -41
- package/dist/constants-ClZJY2x1-MkSWn6TZ.js.map +0 -1
- package/dist/dashboardLayoutUtils-D1xCAxp3.js.map +0 -1
- package/dist/index.lib-Dn8PMkeD.js +0 -862
- package/dist/index.lib-Dn8PMkeD.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProductEditPage-BVlVUCtD-BR-tJ5Wb.js","sources":["../../productManagement/dist/ProductEditPage-BVlVUCtD.js"],"sourcesContent":["import { T as e, _ as t, g as n, h as r, ot as i, r as a, rt as o, y as s } from \"./settingsStore-BHHOmcCP.js\";\nimport { l as c, n as l, o as u } from \"./PmTable-CwKORZGg.js\";\nimport { C as d, S as f, b as ee, k as te, m as p, t as m, x as ne, y as re } from \"./constants-DpXnLsAB.js\";\nimport { _ as ie, c as ae, h as oe, m as h, p as se, s as ce, t as le } from \"./validation-BzlHnL-r.js\";\nimport { t as ue } from \"./useFieldErrors-hDG8ox_x.js\";\nimport { a as de, n as fe, r as pe, t as me } from \"./PmGuard-BZE-y4In.js\";\nimport { t as he } from \"./listValueStore-BFQtDYIR.js\";\nimport { useEffect as g, useMemo as ge, useRef as _, useState as v } from \"react\";\nimport { Fragment as y, jsx as b, jsxs as x } from \"react/jsx-runtime\";\nimport S from \"prop-types\";\nimport { Alert as _e, Box as C, Button as w, Card as T, CardContent as E, Checkbox as D, CircularProgress as O, Divider as ve, FormControlLabel as k, Grid as A, IconButton as j, Stack as M, TextField as N, Typography as P } from \"@mui/material\";\nimport { v4 as F } from \"uuid\";\nimport ye from \"@mui/icons-material/AddRounded\";\nimport { useNavigate as be, useParams as xe } from \"react-router-dom\";\nimport Se from \"@mui/icons-material/SaveRounded\";\nimport Ce from \"@mui/icons-material/DeleteOutlineRounded\";\nimport I from \"@mui/icons-material/AddPhotoAlternateRounded\";\nimport we from \"@mui/icons-material/CloseRounded\";\n//#region src/views/ProductEditPage.jsx\nvar L = 5, R = 5 * 1024 * 1024, z = {\n\tdisplay: \"block\",\n\tfontWeight: 800,\n\tletterSpacing: .6,\n\tcolor: \"text.secondary\"\n};\nfunction B() {\n\treturn {\n\t\tkey: F(),\n\t\tprofileType: \"AGE_BASED\",\n\t\tfromAge: \"\",\n\t\tfromUnit: \"YEARS\",\n\t\ttoAge: \"\",\n\t\ttoUnit: \"YEARS\",\n\t\tdoseAmount: \"\"\n\t};\n}\nvar V = {\n\tvaccineCode: \"\",\n\tvialVolumeMl: \"\",\n\tsingleDose: !1,\n\tprofiles: [B()],\n\topenVialValidityHours: 6,\n\topenVialValidityUnit: \"HOURS\",\n\tmaxConcurrentOpenVials: 2,\n\trequiresReconstitution: !1,\n\treconstitutedValidityHours: \"\",\n\treconstitutedValidityUnit: \"HOURS\",\n\troute: \"\",\n\tstorageTempMinCelsius: \"\",\n\tstorageTempMaxCelsius: \"\",\n\tcomments: \"\"\n};\nfunction Te(e, t) {\n\tlet n = !t && !!e.singleDose, r = (e) => e === \"\" || e == null ? null : Number(e);\n\treturn {\n\t\tvaccineCode: e.vaccineCode?.trim().toUpperCase(),\n\t\tvialVolumeMl: Number(e.vialVolumeMl),\n\t\tsingleDose: n,\n\t\tprofiles: (n ? (e.profiles ?? []).slice(0, 1) : e.profiles ?? []).map((e) => {\n\t\t\tlet t = r(e.toAge);\n\t\t\treturn {\n\t\t\t\tprofileType: e.profileType || \"AGE_BASED\",\n\t\t\t\tfromAge: r(e.fromAge),\n\t\t\t\tfromUnit: e.fromUnit || \"YEARS\",\n\t\t\t\ttoAge: t,\n\t\t\t\ttoUnit: t == null ? null : e.toUnit || \"YEARS\",\n\t\t\t\tdoseAmount: n ? null : r(e.doseAmount)\n\t\t\t};\n\t\t}),\n\t\topenVialValidityHours: Number(e.openVialValidityHours ?? 6),\n\t\topenVialValidityUnit: e.openVialValidityUnit || \"HOURS\",\n\t\tmaxConcurrentOpenVials: n ? null : Number(e.maxConcurrentOpenVials ?? 2),\n\t\trequiresReconstitution: !!e.requiresReconstitution,\n\t\treconstitutedValidityHours: r(e.reconstitutedValidityHours),\n\t\treconstitutedValidityUnit: e.reconstitutedValidityUnit || \"HOURS\",\n\t\troute: e.route || null,\n\t\tstorageTempMinCelsius: r(e.storageTempMinCelsius),\n\t\tstorageTempMaxCelsius: r(e.storageTempMaxCelsius),\n\t\tcomments: e.comments || null\n\t};\n}\nfunction H() {\n\tlet { productId: r } = xe(), o = be(), [_, S] = v(!0), [O, I] = v(\"\"), [we, R] = v(!1), [H, De] = v([]), [Oe, ke] = v([]), [Ae, je] = v([]), U = ue(), Me = a(), { productUnits: W } = he(), G = Me?.manageSales !== !1, [K, q] = v({\n\t\tid: r,\n\t\tname: \"\",\n\t\tcategoryId: \"\",\n\t\tbrandId: \"\",\n\t\tdescription: \"\",\n\t\tunit: \"\",\n\t\tunitOther: \"\",\n\t\thasExpiry: !0,\n\t\tneedsStorageUnit: !1,\n\t\tnotForSale: !1,\n\t\tcanBeQuarantined: !0,\n\t\tsalePriceMode: \"FREE\",\n\t\tsalePrice: \"\",\n\t\tisActive: !0,\n\t\timageUuids: [],\n\t\tvaccineConfig: null\n\t}), Ne = ge(() => H.find((e) => e.id === K.categoryId), [H, K.categoryId]), J = Ne?.code?.toUpperCase() === ee, Pe = K.unit && !W.some((e) => e.value === K.unit) ? [...W, {\n\t\tvalue: K.unit,\n\t\tlabel: te(K.unit)\n\t}] : W, Y = J && K.unit === \"DROPS\";\n\tpe(\"update.manage.productManagement.product\", () => {\n\t\tasync function i() {\n\t\t\tS(!0);\n\t\t\ttry {\n\t\t\t\tlet [i, a, o] = await Promise.all([\n\t\t\t\t\tt(),\n\t\t\t\t\tn(),\n\t\t\t\t\ts().catch(() => [])\n\t\t\t\t]);\n\t\t\t\tDe(i), ke(a), je(o);\n\t\t\t\ttry {\n\t\t\t\t\tlet t = await e(r);\n\t\t\t\t\tR(!1), q({\n\t\t\t\t\t\tid: t.id,\n\t\t\t\t\t\tname: t.name ?? \"\",\n\t\t\t\t\t\tcategoryId: t.categoryId ?? \"\",\n\t\t\t\t\t\tbrandId: t.brandId ?? \"\",\n\t\t\t\t\t\tdescription: t.description ?? \"\",\n\t\t\t\t\t\tunit: t.unit ?? \"\",\n\t\t\t\t\t\tunitOther: t.unitOther ?? \"\",\n\t\t\t\t\t\thasExpiry: t.hasExpiry ?? !1,\n\t\t\t\t\t\tneedsStorageUnit: t.needsStorageUnit ?? !1,\n\t\t\t\t\t\tnotForSale: t.notForSale ?? !1,\n\t\t\t\t\t\tcanBeQuarantined: t.canBeQuarantined ?? !0,\n\t\t\t\t\t\tsalePriceMode: t.salePriceMode ?? \"FREE\",\n\t\t\t\t\t\tsalePrice: t.salePrice ?? \"\",\n\t\t\t\t\t\tisActive: t.isActive ?? !0,\n\t\t\t\t\t\timageUuids: t.imageUuids ?? [],\n\t\t\t\t\t\tvaccineConfig: t.vaccineConfig ? {\n\t\t\t\t\t\t\tvaccineCode: t.vaccineConfig.vaccineCode ?? \"\",\n\t\t\t\t\t\t\tvialVolumeMl: t.vaccineConfig.vialVolumeMl ?? \"\",\n\t\t\t\t\t\t\tsingleDose: t.vaccineConfig.singleDose ?? !1,\n\t\t\t\t\t\t\tprofiles: (t.vaccineConfig.profiles ?? []).length > 0 ? t.vaccineConfig.profiles.map((e) => ({\n\t\t\t\t\t\t\t\tkey: F(),\n\t\t\t\t\t\t\t\tprofileType: e.profileType ?? \"AGE_BASED\",\n\t\t\t\t\t\t\t\tfromAge: e.fromAge ?? \"\",\n\t\t\t\t\t\t\t\tfromUnit: e.fromUnit ?? \"YEARS\",\n\t\t\t\t\t\t\t\ttoAge: e.toAge ?? \"\",\n\t\t\t\t\t\t\t\ttoUnit: e.toUnit ?? \"YEARS\",\n\t\t\t\t\t\t\t\tdoseAmount: e.doseAmount ?? \"\"\n\t\t\t\t\t\t\t})) : [B()],\n\t\t\t\t\t\t\topenVialValidityHours: t.vaccineConfig.openVialValidityHours ?? 6,\n\t\t\t\t\t\t\topenVialValidityUnit: t.vaccineConfig.openVialValidityUnit ?? \"HOURS\",\n\t\t\t\t\t\t\tmaxConcurrentOpenVials: t.vaccineConfig.maxConcurrentOpenVials ?? 2,\n\t\t\t\t\t\t\trequiresReconstitution: t.vaccineConfig.requiresReconstitution ?? !1,\n\t\t\t\t\t\t\treconstitutedValidityHours: t.vaccineConfig.reconstitutedValidityHours ?? \"\",\n\t\t\t\t\t\t\treconstitutedValidityUnit: t.vaccineConfig.reconstitutedValidityUnit ?? \"HOURS\",\n\t\t\t\t\t\t\troute: t.vaccineConfig.route ?? \"\",\n\t\t\t\t\t\t\tstorageTempMinCelsius: t.vaccineConfig.storageTempMinCelsius ?? \"\",\n\t\t\t\t\t\t\tstorageTempMaxCelsius: t.vaccineConfig.storageTempMaxCelsius ?? \"\",\n\t\t\t\t\t\t\tcomments: t.vaccineConfig.comments ?? \"\"\n\t\t\t\t\t\t} : null\n\t\t\t\t\t});\n\t\t\t\t} catch {\n\t\t\t\t\tR(!0);\n\t\t\t\t}\n\t\t\t} catch (e) {\n\t\t\t\tI(e?.response?.data?.message ?? e?.message ?? \"Failed to load product\");\n\t\t\t} finally {\n\t\t\t\tS(!1);\n\t\t\t}\n\t\t}\n\t\ti();\n\t}, [r]), g(() => {\n\t\tq(J ? (e) => ({\n\t\t\t...e,\n\t\t\tunit: e.unit === \"VIAL\" || e.unit === \"DROPS\" ? e.unit : re,\n\t\t\tneedsStorageUnit: !0,\n\t\t\tvaccineConfig: e.vaccineConfig ?? { ...V }\n\t\t}) : (e) => e.vaccineConfig ? {\n\t\t\t...e,\n\t\t\tvaccineConfig: null\n\t\t} : e);\n\t}, [J]);\n\tfunction X(e, t) {\n\t\tq((n) => ({\n\t\t\t...n,\n\t\t\t[e]: t\n\t\t}));\n\t}\n\tfunction Z(e, t) {\n\t\tq((n) => ({\n\t\t\t...n,\n\t\t\tvaccineConfig: {\n\t\t\t\t...n.vaccineConfig ?? V,\n\t\t\t\t[e]: t\n\t\t\t}\n\t\t}));\n\t}\n\tfunction Q(e, t, n) {\n\t\tq((r) => {\n\t\t\tlet i = r.vaccineConfig ?? V, a = (i.profiles ?? []).slice();\n\t\t\treturn a[e] = {\n\t\t\t\t...a[e],\n\t\t\t\t[t]: n\n\t\t\t}, {\n\t\t\t\t...r,\n\t\t\t\tvaccineConfig: {\n\t\t\t\t\t...i,\n\t\t\t\t\tprofiles: a\n\t\t\t\t}\n\t\t\t};\n\t\t});\n\t}\n\tfunction Fe() {\n\t\tq((e) => {\n\t\t\tlet t = e.vaccineConfig ?? V;\n\t\t\treturn {\n\t\t\t\t...e,\n\t\t\t\tvaccineConfig: {\n\t\t\t\t\t...t,\n\t\t\t\t\tprofiles: [...t.profiles ?? [], B()]\n\t\t\t\t}\n\t\t\t};\n\t\t});\n\t}\n\tfunction Ie(e) {\n\t\tq((t) => {\n\t\t\tlet n = t.vaccineConfig ?? V;\n\t\t\treturn {\n\t\t\t\t...t,\n\t\t\t\tvaccineConfig: {\n\t\t\t\t\t...n,\n\t\t\t\t\tprofiles: (n.profiles ?? []).filter((t, n) => n !== e)\n\t\t\t\t}\n\t\t\t};\n\t\t});\n\t}\n\tfunction Le(e) {\n\t\tq((t) => {\n\t\t\tlet n = t.vaccineConfig ?? V, r = n.profiles?.length ? n.profiles : [B()];\n\t\t\treturn {\n\t\t\t\t...t,\n\t\t\t\tvaccineConfig: {\n\t\t\t\t\t...n,\n\t\t\t\t\tsingleDose: e,\n\t\t\t\t\tprofiles: e ? r.slice(0, 1) : r\n\t\t\t\t}\n\t\t\t};\n\t\t});\n\t}\n\tfunction Re(e) {\n\t\tlet t = K.vaccineConfig ?? {}, n = t.profiles ?? [], r = Y ? \"drops\" : \"ml\", i = Y ? {\n\t\t\tmin: 0,\n\t\t\tstep: 1\n\t\t} : {\n\t\t\tstep: \"0.01\",\n\t\t\tmin: 0\n\t\t}, a = t.vialVolumeMl === \"\" || t.vialVolumeMl == null ? \"—\" : t.vialVolumeMl;\n\t\treturn /* @__PURE__ */ x(C, { children: [\n\t\t\t/* @__PURE__ */ x(M, {\n\t\t\t\tdirection: \"row\",\n\t\t\t\tjustifyContent: \"space-between\",\n\t\t\t\talignItems: \"center\",\n\t\t\t\tsx: { mb: .5 },\n\t\t\t\tchildren: [/* @__PURE__ */ b(P, {\n\t\t\t\t\tvariant: \"body2\",\n\t\t\t\t\tsx: { fontWeight: 700 },\n\t\t\t\t\tchildren: e ? \"Applicable age range\" : \"Dose profiles\"\n\t\t\t\t}), e ? null : /* @__PURE__ */ b(w, {\n\t\t\t\t\tsize: \"small\",\n\t\t\t\t\tvariant: \"outlined\",\n\t\t\t\t\tstartIcon: /* @__PURE__ */ b(ye, {}),\n\t\t\t\t\tonClick: Fe,\n\t\t\t\t\tchildren: \"Add profile\"\n\t\t\t\t})]\n\t\t\t}),\n\t\t\t/* @__PURE__ */ x(P, {\n\t\t\t\tvariant: \"caption\",\n\t\t\t\tcolor: \"text.secondary\",\n\t\t\t\tsx: {\n\t\t\t\t\tdisplay: \"block\",\n\t\t\t\t\tmb: 1.5\n\t\t\t\t},\n\t\t\t\tchildren: [\n\t\t\t\t\te ? /* @__PURE__ */ x(y, { children: [\n\t\t\t\t\t\t\"Each vial is one dose of \",\n\t\t\t\t\t\ta,\n\t\t\t\t\t\t\" \",\n\t\t\t\t\t\tr,\n\t\t\t\t\t\t\", so there is nothing to choose. Set the ages this product applies to, and a patient outside that range is blocked from receiving it.\"\n\t\t\t\t\t] }) : /* @__PURE__ */ b(y, { children: \"Each band sets one dose. It is measured from the patient's reference date, so the right dose is chosen automatically when giving the vaccine.\" }),\n\t\t\t\t\t/* @__PURE__ */ b(\"br\", {}),\n\t\t\t\t\t/* @__PURE__ */ b(\"strong\", { children: \"From\" }),\n\t\t\t\t\t\" is included and \",\n\t\t\t\t\t/* @__PURE__ */ b(\"strong\", { children: \"To\" }),\n\t\t\t\t\t\" is not — a patient exactly at a To value falls into the next band. Leave To blank for no upper limit.\"\n\t\t\t\t]\n\t\t\t}),\n\t\t\t/* @__PURE__ */ b(M, {\n\t\t\t\tspacing: 1.5,\n\t\t\t\tchildren: n.map((t, a) => {\n\t\t\t\t\tlet o = `profiles.${a}.fromAge`, s = `profiles.${a}.toAge`, c = `profiles.${a}.doseAmount`, l = t.toAge !== \"\" && t.toAge != null;\n\t\t\t\t\treturn /* @__PURE__ */ b(C, {\n\t\t\t\t\t\tsx: {\n\t\t\t\t\t\t\tp: 1.5,\n\t\t\t\t\t\t\tborder: \"1px solid\",\n\t\t\t\t\t\t\tborderColor: \"divider\",\n\t\t\t\t\t\t\tborderRadius: 1.5\n\t\t\t\t\t\t},\n\t\t\t\t\t\tchildren: /* @__PURE__ */ x(A, {\n\t\t\t\t\t\t\tcontainer: !0,\n\t\t\t\t\t\t\tspacing: 1.5,\n\t\t\t\t\t\t\talignItems: \"flex-start\",\n\t\t\t\t\t\t\tchildren: [\n\t\t\t\t\t\t\t\t/* @__PURE__ */ b(A, {\n\t\t\t\t\t\t\t\t\titem: !0,\n\t\t\t\t\t\t\t\t\txs: 6,\n\t\t\t\t\t\t\t\t\tmd: 2,\n\t\t\t\t\t\t\t\t\tchildren: /* @__PURE__ */ b(N, {\n\t\t\t\t\t\t\t\t\t\trequired: !0,\n\t\t\t\t\t\t\t\t\t\tfullWidth: !0,\n\t\t\t\t\t\t\t\t\t\tsize: \"small\",\n\t\t\t\t\t\t\t\t\t\ttype: \"number\",\n\t\t\t\t\t\t\t\t\t\tinputProps: {\n\t\t\t\t\t\t\t\t\t\t\tmin: 0,\n\t\t\t\t\t\t\t\t\t\t\tstep: 1\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\tlabel: \"From\",\n\t\t\t\t\t\t\t\t\t\tvalue: t.fromAge ?? \"\",\n\t\t\t\t\t\t\t\t\t\tonChange: (e) => Q(a, \"fromAge\", e.target.value),\n\t\t\t\t\t\t\t\t\t\tonBlur: U.onBlur(o),\n\t\t\t\t\t\t\t\t\t\terror: U.show(o) && !!$[o],\n\t\t\t\t\t\t\t\t\t\thelperText: U.show(o) ? $[o] : \"\"\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t/* @__PURE__ */ b(A, {\n\t\t\t\t\t\t\t\t\titem: !0,\n\t\t\t\t\t\t\t\t\txs: 6,\n\t\t\t\t\t\t\t\t\tmd: 2,\n\t\t\t\t\t\t\t\t\tchildren: /* @__PURE__ */ b(u, {\n\t\t\t\t\t\t\t\t\t\tlabel: \"From unit\",\n\t\t\t\t\t\t\t\t\t\tvalue: t.fromUnit || \"YEARS\",\n\t\t\t\t\t\t\t\t\t\tonChange: (e) => Q(a, \"fromUnit\", e),\n\t\t\t\t\t\t\t\t\t\toptions: m\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t/* @__PURE__ */ b(A, {\n\t\t\t\t\t\t\t\t\titem: !0,\n\t\t\t\t\t\t\t\t\txs: 6,\n\t\t\t\t\t\t\t\t\tmd: 2,\n\t\t\t\t\t\t\t\t\tchildren: /* @__PURE__ */ b(N, {\n\t\t\t\t\t\t\t\t\t\tfullWidth: !0,\n\t\t\t\t\t\t\t\t\t\tsize: \"small\",\n\t\t\t\t\t\t\t\t\t\ttype: \"number\",\n\t\t\t\t\t\t\t\t\t\tinputProps: {\n\t\t\t\t\t\t\t\t\t\t\tmin: 0,\n\t\t\t\t\t\t\t\t\t\t\tstep: 1\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\tlabel: \"To\",\n\t\t\t\t\t\t\t\t\t\tvalue: t.toAge ?? \"\",\n\t\t\t\t\t\t\t\t\t\tonChange: (e) => Q(a, \"toAge\", e.target.value),\n\t\t\t\t\t\t\t\t\t\tonBlur: U.onBlur(s),\n\t\t\t\t\t\t\t\t\t\terror: U.show(s) && !!$[s],\n\t\t\t\t\t\t\t\t\t\thelperText: U.show(s) && $[s] ? $[s] : \"Blank = no limit\"\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t/* @__PURE__ */ b(A, {\n\t\t\t\t\t\t\t\t\titem: !0,\n\t\t\t\t\t\t\t\t\txs: 6,\n\t\t\t\t\t\t\t\t\tmd: 2,\n\t\t\t\t\t\t\t\t\tchildren: /* @__PURE__ */ b(u, {\n\t\t\t\t\t\t\t\t\t\tlabel: \"To unit\",\n\t\t\t\t\t\t\t\t\t\tdisabled: !l,\n\t\t\t\t\t\t\t\t\t\tvalue: l ? t.toUnit || \"YEARS\" : \"\",\n\t\t\t\t\t\t\t\t\t\tonChange: (e) => Q(a, \"toUnit\", e),\n\t\t\t\t\t\t\t\t\t\toptions: m\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\te ? null : /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b(A, {\n\t\t\t\t\t\t\t\t\titem: !0,\n\t\t\t\t\t\t\t\t\txs: 8,\n\t\t\t\t\t\t\t\t\tmd: 3,\n\t\t\t\t\t\t\t\t\tchildren: /* @__PURE__ */ b(N, {\n\t\t\t\t\t\t\t\t\t\trequired: !0,\n\t\t\t\t\t\t\t\t\t\tfullWidth: !0,\n\t\t\t\t\t\t\t\t\t\tsize: \"small\",\n\t\t\t\t\t\t\t\t\t\ttype: \"number\",\n\t\t\t\t\t\t\t\t\t\tinputProps: i,\n\t\t\t\t\t\t\t\t\t\tlabel: `Dose (${r})`,\n\t\t\t\t\t\t\t\t\t\tvalue: t.doseAmount ?? \"\",\n\t\t\t\t\t\t\t\t\t\tonChange: (e) => Q(a, \"doseAmount\", e.target.value),\n\t\t\t\t\t\t\t\t\t\tonBlur: U.onBlur(c),\n\t\t\t\t\t\t\t\t\t\terror: U.show(c) && !!$[c],\n\t\t\t\t\t\t\t\t\t\thelperText: U.show(c) ? $[c] : \"\"\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t}), /* @__PURE__ */ b(A, {\n\t\t\t\t\t\t\t\t\titem: !0,\n\t\t\t\t\t\t\t\t\txs: 4,\n\t\t\t\t\t\t\t\t\tmd: 1,\n\t\t\t\t\t\t\t\t\tsx: { textAlign: \"right\" },\n\t\t\t\t\t\t\t\t\tchildren: /* @__PURE__ */ b(j, {\n\t\t\t\t\t\t\t\t\t\tcolor: \"error\",\n\t\t\t\t\t\t\t\t\t\tonClick: () => Ie(a),\n\t\t\t\t\t\t\t\t\t\tdisabled: n.length === 1,\n\t\t\t\t\t\t\t\t\t\tchildren: /* @__PURE__ */ b(Ce, {})\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t})] })\n\t\t\t\t\t\t\t]\n\t\t\t\t\t\t})\n\t\t\t\t\t}, t.key);\n\t\t\t\t})\n\t\t\t}),\n\t\t\tU.show(\"profiles\") && $.profiles ? /* @__PURE__ */ b(P, {\n\t\t\t\tvariant: \"caption\",\n\t\t\t\tcolor: \"error\",\n\t\t\t\tsx: {\n\t\t\t\t\tdisplay: \"block\",\n\t\t\t\t\tmt: 1\n\t\t\t\t},\n\t\t\t\tchildren: $.profiles\n\t\t\t}) : null\n\t\t] });\n\t}\n\tlet $ = ge(() => {\n\t\tlet e = {\n\t\t\tname: h(K.name, \"Product name\"),\n\t\t\tcategoryId: h(K.categoryId, \"Category\"),\n\t\t\tbrandId: h(K.brandId, \"Brand\"),\n\t\t\tunit: h(K.unit, \"Unit\"),\n\t\t\tunitOther: K.unit === \"OTHER\" ? h(K.unitOther, \"Custom unit\") : \"\",\n\t\t\tsalePrice: G && !K.notForSale && K.salePriceMode !== \"FREE\" ? h(K.salePrice, \"Sale price\") || (Number(K.salePrice) > 0 ? \"\" : \"Sale price must be greater than 0.\") : \"\"\n\t\t};\n\t\tif (J && K.vaccineConfig) {\n\t\t\tlet t = K.vaccineConfig, n = !Y && t.singleDose, r = oe(t.storageTempMinCelsius, t.storageTempMaxCelsius);\n\t\t\tObject.assign(e, {\n\t\t\t\tvaccineCode: h(t.vaccineCode, \"Vaccine\"),\n\t\t\t\tvialVolumeMl: ie(t.vialVolumeMl),\n\t\t\t\topenVialValidityHours: n ? \"\" : ae(t.openVialValidityHours),\n\t\t\t\treconstitutedValidityHours: se(t.reconstitutedValidityHours, t.requiresReconstitution),\n\t\t\t\tstorageTempMinCelsius: r.min,\n\t\t\t\tstorageTempMaxCelsius: r.max\n\t\t\t});\n\t\t\tlet i = Number(t.vialVolumeMl), a = Y ? \"drops\" : \"ml\", o = t.profiles ?? [];\n\t\t\to.length === 0 && (e.profiles = n ? \"Add the age range this product applies to.\" : \"Add at least one administration profile.\");\n\t\t\tlet s = {\n\t\t\t\tDAYS: 1,\n\t\t\t\tWEEKS: 7,\n\t\t\t\tMONTHS: 30,\n\t\t\t\tYEARS: 365\n\t\t\t}, c = (e, t) => Number(e) * (s[t] || 1);\n\t\t\to.forEach((t, r) => {\n\t\t\t\tlet o = Number(t.fromAge);\n\t\t\t\tif (t.fromAge === \"\" || t.fromAge == null ? e[`profiles.${r}.fromAge`] = \"Required\" : (!Number.isInteger(o) || o < 0) && (e[`profiles.${r}.fromAge`] = \"Whole number, 0 or more\"), t.toAge !== \"\" && t.toAge != null) {\n\t\t\t\t\tlet n = Number(t.toAge);\n\t\t\t\t\t!Number.isInteger(n) || n < 0 ? e[`profiles.${r}.toAge`] = \"Whole number, 0 or more\" : c(n, t.toUnit) <= c(o, t.fromUnit) && (e[`profiles.${r}.toAge`] = \"Must be greater than From\");\n\t\t\t\t}\n\t\t\t\tif (n) return;\n\t\t\t\tlet s = Number(t.doseAmount);\n\t\t\t\tt.doseAmount === \"\" || t.doseAmount == null ? e[`profiles.${r}.doseAmount`] = \"Required\" : !Number.isFinite(s) || s <= 0 ? e[`profiles.${r}.doseAmount`] = \"Must be greater than 0\" : Y && !Number.isInteger(s) ? e[`profiles.${r}.doseAmount`] = \"Whole number\" : Number.isFinite(i) && i > 0 && s > i && (e[`profiles.${r}.doseAmount`] = `At most ${i} ${a}`);\n\t\t\t}), n || (e.maxConcurrentOpenVials = ce(t.maxConcurrentOpenVials));\n\t\t}\n\t\treturn e;\n\t}, [\n\t\tK,\n\t\tJ,\n\t\tY,\n\t\tG\n\t]), ze = le($);\n\tasync function Be() {\n\t\tif (!ze) {\n\t\t\tU.markAllTouched(), I(\"Please fix the highlighted fields and try again.\");\n\t\t\treturn;\n\t\t}\n\t\ttry {\n\t\t\tawait i({\n\t\t\t\tid: K.id,\n\t\t\t\tname: K.name.trim(),\n\t\t\t\tcategoryId: K.categoryId,\n\t\t\t\tbrandId: K.brandId,\n\t\t\t\tdescription: K.description || null,\n\t\t\t\tunit: K.unit,\n\t\t\t\tunitOther: K.unit === \"OTHER\" && K.unitOther?.trim() || null,\n\t\t\t\thasExpiry: !!K.hasExpiry,\n\t\t\t\tneedsStorageUnit: !!K.needsStorageUnit,\n\t\t\t\tnotForSale: G ? !!K.notForSale : !1,\n\t\t\t\tcanBeQuarantined: !!K.canBeQuarantined,\n\t\t\t\tsalePriceMode: G && !K.notForSale ? K.salePriceMode : \"FREE\",\n\t\t\t\tsalePrice: G && !K.notForSale && K.salePriceMode !== \"FREE\" && K.salePrice !== \"\" ? Number(K.salePrice) : null,\n\t\t\t\tisActive: !!K.isActive,\n\t\t\t\timageUuids: K.imageUuids ?? [],\n\t\t\t\tvaccineConfig: K.vaccineConfig ? Te(K.vaccineConfig, Y) : null\n\t\t\t}), c({\n\t\t\t\tmessage: \"Product saved.\",\n\t\t\t\ttype: \"success\"\n\t\t\t}), o(\"/ui/medplat/manage/pm/products\");\n\t\t} catch (e) {\n\t\t\tI(e?.response?.data?.message ?? e?.message ?? \"Failed to save product\");\n\t\t}\n\t}\n\treturn /* @__PURE__ */ x(C, { children: [/* @__PURE__ */ b(fe, {}), /* @__PURE__ */ b(me, {\n\t\tperm: \"update.manage.productManagement.product\",\n\t\ttitle: \"You don’t have permission to create or edit products\",\n\t\tchildren: /* @__PURE__ */ x(de, {\n\t\t\ttitle: we ? \"Add Product\" : \"Edit Product\",\n\t\t\tsubtitle: `Category: ${Ne?.code ?? \"—\"}`,\n\t\t\tactions: /* @__PURE__ */ x(M, {\n\t\t\t\tdirection: \"row\",\n\t\t\t\tspacing: 1,\n\t\t\t\tchildren: [/* @__PURE__ */ b(w, {\n\t\t\t\t\tvariant: \"outlined\",\n\t\t\t\t\tonClick: () => o(\"/ui/medplat/manage/pm/products\"),\n\t\t\t\t\tchildren: \"Cancel\"\n\t\t\t\t}), /* @__PURE__ */ b(w, {\n\t\t\t\t\tvariant: \"contained\",\n\t\t\t\t\tstartIcon: /* @__PURE__ */ b(Se, {}),\n\t\t\t\t\tdisabled: !ze,\n\t\t\t\t\tonClick: () => void Be(),\n\t\t\t\t\tchildren: \"Save\"\n\t\t\t\t})]\n\t\t\t}),\n\t\t\tchildren: [\n\t\t\t\t_ ? /* @__PURE__ */ b(_e, {\n\t\t\t\t\tseverity: \"info\",\n\t\t\t\t\tchildren: \"Loading…\"\n\t\t\t\t}) : null,\n\t\t\t\tO ? /* @__PURE__ */ b(_e, {\n\t\t\t\t\tseverity: \"error\",\n\t\t\t\t\tsx: { mb: 2 },\n\t\t\t\t\tchildren: O\n\t\t\t\t}) : null,\n\t\t\t\t/* @__PURE__ */ b(T, {\n\t\t\t\t\tsx: {\n\t\t\t\t\t\tborderRadius: 1.5,\n\t\t\t\t\t\tmb: 2\n\t\t\t\t\t},\n\t\t\t\t\tchildren: /* @__PURE__ */ x(E, { children: [/* @__PURE__ */ b(P, {\n\t\t\t\t\t\tvariant: \"h6\",\n\t\t\t\t\t\tsx: {\n\t\t\t\t\t\t\tfontWeight: 800,\n\t\t\t\t\t\t\tmb: 2\n\t\t\t\t\t\t},\n\t\t\t\t\t\tchildren: \"Basic Details\"\n\t\t\t\t\t}), /* @__PURE__ */ x(A, {\n\t\t\t\t\t\tcontainer: !0,\n\t\t\t\t\t\tspacing: 2,\n\t\t\t\t\t\tchildren: [\n\t\t\t\t\t\t\t/* @__PURE__ */ b(A, {\n\t\t\t\t\t\t\t\titem: !0,\n\t\t\t\t\t\t\t\txs: 12,\n\t\t\t\t\t\t\t\tmd: 6,\n\t\t\t\t\t\t\t\tchildren: /* @__PURE__ */ b(N, {\n\t\t\t\t\t\t\t\t\trequired: !0,\n\t\t\t\t\t\t\t\t\tfullWidth: !0,\n\t\t\t\t\t\t\t\t\tsize: \"small\",\n\t\t\t\t\t\t\t\t\tlabel: \"Product Name\",\n\t\t\t\t\t\t\t\t\tvalue: K.name,\n\t\t\t\t\t\t\t\t\tinputProps: { maxLength: 255 },\n\t\t\t\t\t\t\t\t\tonChange: (e) => X(\"name\", e.target.value),\n\t\t\t\t\t\t\t\t\tonBlur: U.onBlur(\"name\"),\n\t\t\t\t\t\t\t\t\terror: U.show(\"name\") && !!$.name,\n\t\t\t\t\t\t\t\t\tFormHelperTextProps: { component: \"div\" },\n\t\t\t\t\t\t\t\t\thelperText: /* @__PURE__ */ b(l, {\n\t\t\t\t\t\t\t\t\t\tmessage: U.show(\"name\") ? $.name : \"\",\n\t\t\t\t\t\t\t\t\t\tvalue: K.name,\n\t\t\t\t\t\t\t\t\t\tmax: 255\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t/* @__PURE__ */ b(A, {\n\t\t\t\t\t\t\t\titem: !0,\n\t\t\t\t\t\t\t\txs: 12,\n\t\t\t\t\t\t\t\tmd: 3,\n\t\t\t\t\t\t\t\tchildren: /* @__PURE__ */ b(u, {\n\t\t\t\t\t\t\t\t\tlabel: \"Category\",\n\t\t\t\t\t\t\t\t\trequired: !0,\n\t\t\t\t\t\t\t\t\tvalue: K.categoryId,\n\t\t\t\t\t\t\t\t\tonChange: (e) => X(\"categoryId\", e),\n\t\t\t\t\t\t\t\t\tonBlur: U.onBlur(\"categoryId\"),\n\t\t\t\t\t\t\t\t\terror: U.show(\"categoryId\") && !!$.categoryId,\n\t\t\t\t\t\t\t\t\thelperText: U.show(\"categoryId\") ? $.categoryId : \"\",\n\t\t\t\t\t\t\t\t\toptions: H.map((e) => ({\n\t\t\t\t\t\t\t\t\t\tvalue: e.id,\n\t\t\t\t\t\t\t\t\t\tlabel: `${e.name} (${e.code})`\n\t\t\t\t\t\t\t\t\t}))\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t/* @__PURE__ */ b(A, {\n\t\t\t\t\t\t\t\titem: !0,\n\t\t\t\t\t\t\t\txs: 12,\n\t\t\t\t\t\t\t\tmd: 3,\n\t\t\t\t\t\t\t\tchildren: /* @__PURE__ */ b(u, {\n\t\t\t\t\t\t\t\t\tlabel: \"Brand\",\n\t\t\t\t\t\t\t\t\trequired: !0,\n\t\t\t\t\t\t\t\t\tvalue: K.brandId,\n\t\t\t\t\t\t\t\t\tonChange: (e) => X(\"brandId\", e),\n\t\t\t\t\t\t\t\t\tonBlur: U.onBlur(\"brandId\"),\n\t\t\t\t\t\t\t\t\terror: U.show(\"brandId\") && !!$.brandId,\n\t\t\t\t\t\t\t\t\thelperText: U.show(\"brandId\") ? $.brandId : \"\",\n\t\t\t\t\t\t\t\t\toptions: Oe.map((e) => ({\n\t\t\t\t\t\t\t\t\t\tvalue: e.id,\n\t\t\t\t\t\t\t\t\t\tlabel: e.name\n\t\t\t\t\t\t\t\t\t}))\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\tJ ? null : /* @__PURE__ */ b(A, {\n\t\t\t\t\t\t\t\titem: !0,\n\t\t\t\t\t\t\t\txs: 12,\n\t\t\t\t\t\t\t\tmd: 3,\n\t\t\t\t\t\t\t\tchildren: /* @__PURE__ */ b(u, {\n\t\t\t\t\t\t\t\t\tlabel: \"Unit\",\n\t\t\t\t\t\t\t\t\trequired: !0,\n\t\t\t\t\t\t\t\t\tvalue: K.unit,\n\t\t\t\t\t\t\t\t\tonChange: (e) => X(\"unit\", e),\n\t\t\t\t\t\t\t\t\tonBlur: U.onBlur(\"unit\"),\n\t\t\t\t\t\t\t\t\terror: U.show(\"unit\") && !!$.unit,\n\t\t\t\t\t\t\t\t\thelperText: U.show(\"unit\") && $.unit ? $.unit : \"\",\n\t\t\t\t\t\t\t\t\toptions: Pe\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t!J && K.unit === \"OTHER\" ? /* @__PURE__ */ b(A, {\n\t\t\t\t\t\t\t\titem: !0,\n\t\t\t\t\t\t\t\txs: 12,\n\t\t\t\t\t\t\t\tmd: 3,\n\t\t\t\t\t\t\t\tchildren: /* @__PURE__ */ b(N, {\n\t\t\t\t\t\t\t\t\trequired: !0,\n\t\t\t\t\t\t\t\t\tfullWidth: !0,\n\t\t\t\t\t\t\t\t\tsize: \"small\",\n\t\t\t\t\t\t\t\t\tlabel: \"Custom unit name\",\n\t\t\t\t\t\t\t\t\tvalue: K.unitOther,\n\t\t\t\t\t\t\t\t\tinputProps: { maxLength: 50 },\n\t\t\t\t\t\t\t\t\tonChange: (e) => X(\"unitOther\", e.target.value),\n\t\t\t\t\t\t\t\t\tonBlur: U.onBlur(\"unitOther\"),\n\t\t\t\t\t\t\t\t\terror: U.show(\"unitOther\") && !!$.unitOther,\n\t\t\t\t\t\t\t\t\tFormHelperTextProps: { component: \"div\" },\n\t\t\t\t\t\t\t\t\thelperText: /* @__PURE__ */ b(l, {\n\t\t\t\t\t\t\t\t\t\tmessage: U.show(\"unitOther\") && $.unitOther ? $.unitOther : \"e.g. Strip, Ampoule, Sachet\",\n\t\t\t\t\t\t\t\t\t\tvalue: K.unitOther,\n\t\t\t\t\t\t\t\t\t\tmax: 50\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t}) : null,\n\t\t\t\t\t\t\t/* @__PURE__ */ b(A, {\n\t\t\t\t\t\t\t\titem: !0,\n\t\t\t\t\t\t\t\txs: 6,\n\t\t\t\t\t\t\t\tmd: 3,\n\t\t\t\t\t\t\t\tchildren: /* @__PURE__ */ b(k, {\n\t\t\t\t\t\t\t\t\tcontrol: /* @__PURE__ */ b(D, {\n\t\t\t\t\t\t\t\t\t\tchecked: !!K.hasExpiry,\n\t\t\t\t\t\t\t\t\t\tdisabled: J,\n\t\t\t\t\t\t\t\t\t\tonChange: (e) => X(\"hasExpiry\", e.target.checked)\n\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\tlabel: J ? \"Has expiry (vaccine)\" : \"Has expiry\"\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t/* @__PURE__ */ b(A, {\n\t\t\t\t\t\t\t\titem: !0,\n\t\t\t\t\t\t\t\txs: 6,\n\t\t\t\t\t\t\t\tmd: 3,\n\t\t\t\t\t\t\t\tchildren: /* @__PURE__ */ b(k, {\n\t\t\t\t\t\t\t\t\tcontrol: /* @__PURE__ */ b(D, {\n\t\t\t\t\t\t\t\t\t\tchecked: !!K.needsStorageUnit,\n\t\t\t\t\t\t\t\t\t\tdisabled: J,\n\t\t\t\t\t\t\t\t\t\tonChange: (e) => X(\"needsStorageUnit\", e.target.checked)\n\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\tlabel: J ? \"Needs storage unit (vaccine)\" : \"Needs storage unit\"\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\tG ? /* @__PURE__ */ b(A, {\n\t\t\t\t\t\t\t\titem: !0,\n\t\t\t\t\t\t\t\txs: 6,\n\t\t\t\t\t\t\t\tmd: 3,\n\t\t\t\t\t\t\t\tchildren: /* @__PURE__ */ b(k, {\n\t\t\t\t\t\t\t\t\tcontrol: /* @__PURE__ */ b(D, {\n\t\t\t\t\t\t\t\t\t\tchecked: !!K.notForSale,\n\t\t\t\t\t\t\t\t\t\tonChange: (e) => X(\"notForSale\", e.target.checked)\n\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\tlabel: \"Not for sale\"\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t}) : null,\n\t\t\t\t\t\t\t/* @__PURE__ */ b(A, {\n\t\t\t\t\t\t\t\titem: !0,\n\t\t\t\t\t\t\t\txs: 6,\n\t\t\t\t\t\t\t\tmd: 3,\n\t\t\t\t\t\t\t\tchildren: /* @__PURE__ */ b(k, {\n\t\t\t\t\t\t\t\t\tcontrol: /* @__PURE__ */ b(D, {\n\t\t\t\t\t\t\t\t\t\tchecked: !!K.canBeQuarantined,\n\t\t\t\t\t\t\t\t\t\tonChange: (e) => X(\"canBeQuarantined\", e.target.checked)\n\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\tlabel: \"Can be quarantined\"\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t/* @__PURE__ */ b(A, {\n\t\t\t\t\t\t\t\titem: !0,\n\t\t\t\t\t\t\t\txs: 6,\n\t\t\t\t\t\t\t\tmd: 3,\n\t\t\t\t\t\t\t\tchildren: /* @__PURE__ */ b(k, {\n\t\t\t\t\t\t\t\t\tcontrol: /* @__PURE__ */ b(D, {\n\t\t\t\t\t\t\t\t\t\tchecked: !!K.isActive,\n\t\t\t\t\t\t\t\t\t\tonChange: (e) => X(\"isActive\", e.target.checked)\n\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\tlabel: \"Active\"\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\tG && !K.notForSale ? /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b(A, {\n\t\t\t\t\t\t\t\titem: !0,\n\t\t\t\t\t\t\t\txs: 12,\n\t\t\t\t\t\t\t\tmd: 4,\n\t\t\t\t\t\t\t\tchildren: /* @__PURE__ */ b(u, {\n\t\t\t\t\t\t\t\t\tlabel: \"Sale price mode\",\n\t\t\t\t\t\t\t\t\tvalue: K.salePriceMode,\n\t\t\t\t\t\t\t\t\tonChange: (e) => X(\"salePriceMode\", e),\n\t\t\t\t\t\t\t\t\toptions: p,\n\t\t\t\t\t\t\t\t\thelperText: \"Fixed shows a locked price at sale time; MRP caps the entered price.\"\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t}), K.salePriceMode === \"FREE\" ? null : /* @__PURE__ */ b(A, {\n\t\t\t\t\t\t\t\titem: !0,\n\t\t\t\t\t\t\t\txs: 12,\n\t\t\t\t\t\t\t\tmd: 4,\n\t\t\t\t\t\t\t\tchildren: /* @__PURE__ */ b(N, {\n\t\t\t\t\t\t\t\t\trequired: !0,\n\t\t\t\t\t\t\t\t\tfullWidth: !0,\n\t\t\t\t\t\t\t\t\tsize: \"small\",\n\t\t\t\t\t\t\t\t\ttype: \"number\",\n\t\t\t\t\t\t\t\t\tinputProps: {\n\t\t\t\t\t\t\t\t\t\tstep: \"0.01\",\n\t\t\t\t\t\t\t\t\t\tmin: 0\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\tlabel: K.salePriceMode === \"FIXED\" ? \"Fixed sale price\" : \"Price cap (MRP)\",\n\t\t\t\t\t\t\t\t\tvalue: K.salePrice,\n\t\t\t\t\t\t\t\t\tonChange: (e) => X(\"salePrice\", e.target.value),\n\t\t\t\t\t\t\t\t\tonBlur: U.onBlur(\"salePrice\"),\n\t\t\t\t\t\t\t\t\terror: U.show(\"salePrice\") && !!$.salePrice,\n\t\t\t\t\t\t\t\t\thelperText: U.show(\"salePrice\") ? $.salePrice : \"\"\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t})] }) : null,\n\t\t\t\t\t\t\t/* @__PURE__ */ b(A, {\n\t\t\t\t\t\t\t\titem: !0,\n\t\t\t\t\t\t\t\txs: 12,\n\t\t\t\t\t\t\t\tchildren: /* @__PURE__ */ b(N, {\n\t\t\t\t\t\t\t\t\tfullWidth: !0,\n\t\t\t\t\t\t\t\t\tsize: \"small\",\n\t\t\t\t\t\t\t\t\tmultiline: !0,\n\t\t\t\t\t\t\t\t\tminRows: 2,\n\t\t\t\t\t\t\t\t\tlabel: \"Description\",\n\t\t\t\t\t\t\t\t\tvalue: K.description,\n\t\t\t\t\t\t\t\t\tonChange: (e) => X(\"description\", e.target.value)\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t]\n\t\t\t\t\t})] })\n\t\t\t\t}),\n\t\t\t\t/* @__PURE__ */ b(T, {\n\t\t\t\t\tsx: {\n\t\t\t\t\t\tborderRadius: 1.5,\n\t\t\t\t\t\tmb: 2\n\t\t\t\t\t},\n\t\t\t\t\tchildren: /* @__PURE__ */ x(E, { children: [\n\t\t\t\t\t\t/* @__PURE__ */ x(M, {\n\t\t\t\t\t\t\tdirection: \"row\",\n\t\t\t\t\t\t\tjustifyContent: \"space-between\",\n\t\t\t\t\t\t\talignItems: \"center\",\n\t\t\t\t\t\t\tsx: { mb: .5 },\n\t\t\t\t\t\t\tchildren: [/* @__PURE__ */ b(P, {\n\t\t\t\t\t\t\t\tvariant: \"h6\",\n\t\t\t\t\t\t\t\tsx: { fontWeight: 800 },\n\t\t\t\t\t\t\t\tchildren: \"Product Images\"\n\t\t\t\t\t\t\t}), /* @__PURE__ */ x(P, {\n\t\t\t\t\t\t\t\tvariant: \"caption\",\n\t\t\t\t\t\t\t\tcolor: \"text.secondary\",\n\t\t\t\t\t\t\t\tchildren: [\n\t\t\t\t\t\t\t\t\t\"Optional · up to \",\n\t\t\t\t\t\t\t\t\tL,\n\t\t\t\t\t\t\t\t\t\" images\"\n\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t})]\n\t\t\t\t\t\t}),\n\t\t\t\t\t\t/* @__PURE__ */ b(P, {\n\t\t\t\t\t\t\tvariant: \"caption\",\n\t\t\t\t\t\t\tcolor: \"text.secondary\",\n\t\t\t\t\t\t\tsx: {\n\t\t\t\t\t\t\t\tdisplay: \"block\",\n\t\t\t\t\t\t\t\tmb: 2\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tchildren: \"Add photos of the product or its packaging. The first image is used as the main picture.\"\n\t\t\t\t\t\t}),\n\t\t\t\t\t\t/* @__PURE__ */ b(Ee, {\n\t\t\t\t\t\t\tvalue: K.imageUuids,\n\t\t\t\t\t\t\tonChange: (e) => X(\"imageUuids\", e)\n\t\t\t\t\t\t})\n\t\t\t\t\t] })\n\t\t\t\t}),\n\t\t\t\tJ ? /* @__PURE__ */ b(T, {\n\t\t\t\t\tsx: { borderRadius: 1.5 },\n\t\t\t\t\tchildren: /* @__PURE__ */ x(E, { children: [\n\t\t\t\t\t\t/* @__PURE__ */ x(M, {\n\t\t\t\t\t\t\tdirection: \"row\",\n\t\t\t\t\t\t\tjustifyContent: \"space-between\",\n\t\t\t\t\t\t\talignItems: \"center\",\n\t\t\t\t\t\t\tsx: { mb: 2 },\n\t\t\t\t\t\t\tchildren: [/* @__PURE__ */ b(P, {\n\t\t\t\t\t\t\t\tvariant: \"h6\",\n\t\t\t\t\t\t\t\tsx: { fontWeight: 800 },\n\t\t\t\t\t\t\t\tchildren: \"Vaccine Configuration\"\n\t\t\t\t\t\t\t}), /* @__PURE__ */ b(P, {\n\t\t\t\t\t\t\t\tvariant: \"caption\",\n\t\t\t\t\t\t\t\tcolor: \"text.secondary\",\n\t\t\t\t\t\t\t\tchildren: \"Required for vaccine products. Controls vial size, dosing, and shelf life rules.\"\n\t\t\t\t\t\t\t})]\n\t\t\t\t\t\t}),\n\t\t\t\t\t\t/* @__PURE__ */ b(ve, { sx: { mb: 2 } }),\n\t\t\t\t\t\t/* @__PURE__ */ x(A, {\n\t\t\t\t\t\t\tcontainer: !0,\n\t\t\t\t\t\t\tspacing: 2,\n\t\t\t\t\t\t\tchildren: [\n\t\t\t\t\t\t\t\t/* @__PURE__ */ b(A, {\n\t\t\t\t\t\t\t\t\titem: !0,\n\t\t\t\t\t\t\t\t\txs: 12,\n\t\t\t\t\t\t\t\t\tchildren: /* @__PURE__ */ b(P, {\n\t\t\t\t\t\t\t\t\t\tvariant: \"overline\",\n\t\t\t\t\t\t\t\t\t\tsx: z,\n\t\t\t\t\t\t\t\t\t\tchildren: \"Vaccine & measure\"\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t/* @__PURE__ */ b(A, {\n\t\t\t\t\t\t\t\t\titem: !0,\n\t\t\t\t\t\t\t\t\txs: 12,\n\t\t\t\t\t\t\t\t\tmd: 4,\n\t\t\t\t\t\t\t\t\tchildren: /* @__PURE__ */ b(u, {\n\t\t\t\t\t\t\t\t\t\tlabel: \"Vaccine\",\n\t\t\t\t\t\t\t\t\t\trequired: !0,\n\t\t\t\t\t\t\t\t\t\tvalue: K.vaccineConfig?.vaccineCode || \"\",\n\t\t\t\t\t\t\t\t\t\tonChange: (e) => Z(\"vaccineCode\", e),\n\t\t\t\t\t\t\t\t\t\tonBlur: U.onBlur(\"vaccineCode\"),\n\t\t\t\t\t\t\t\t\t\terror: U.show(\"vaccineCode\") && !!$.vaccineCode,\n\t\t\t\t\t\t\t\t\t\thelperText: U.show(\"vaccineCode\") && $.vaccineCode ? $.vaccineCode : \"\",\n\t\t\t\t\t\t\t\t\t\tnoOptionsText: \"No vaccines configured in immunization master\",\n\t\t\t\t\t\t\t\t\t\toptions: Ae.map((e) => ({\n\t\t\t\t\t\t\t\t\t\t\tvalue: e.vaccineCode,\n\t\t\t\t\t\t\t\t\t\t\tlabel: `${e.vaccineName} (${e.vaccineCode})`\n\t\t\t\t\t\t\t\t\t\t}))\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t/* @__PURE__ */ b(A, {\n\t\t\t\t\t\t\t\t\titem: !0,\n\t\t\t\t\t\t\t\t\txs: 12,\n\t\t\t\t\t\t\t\t\tmd: 4,\n\t\t\t\t\t\t\t\t\tchildren: /* @__PURE__ */ b(u, {\n\t\t\t\t\t\t\t\t\t\tlabel: \"Measured in\",\n\t\t\t\t\t\t\t\t\t\tvalue: K.unit,\n\t\t\t\t\t\t\t\t\t\tonChange: (e) => X(\"unit\", e),\n\t\t\t\t\t\t\t\t\t\toptions: f,\n\t\t\t\t\t\t\t\t\t\thelperText: \"Vials are dosed in millilitres; drops are counted.\"\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t/* @__PURE__ */ b(A, {\n\t\t\t\t\t\t\t\t\titem: !0,\n\t\t\t\t\t\t\t\t\txs: 12,\n\t\t\t\t\t\t\t\t\tmd: 4,\n\t\t\t\t\t\t\t\t\tchildren: /* @__PURE__ */ b(N, {\n\t\t\t\t\t\t\t\t\t\trequired: !0,\n\t\t\t\t\t\t\t\t\t\tfullWidth: !0,\n\t\t\t\t\t\t\t\t\t\tsize: \"small\",\n\t\t\t\t\t\t\t\t\t\ttype: \"number\",\n\t\t\t\t\t\t\t\t\t\tinputProps: Y ? {\n\t\t\t\t\t\t\t\t\t\t\tmin: 1,\n\t\t\t\t\t\t\t\t\t\t\tstep: 1\n\t\t\t\t\t\t\t\t\t\t} : {\n\t\t\t\t\t\t\t\t\t\t\tstep: \"0.01\",\n\t\t\t\t\t\t\t\t\t\t\tmin: 0\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\tlabel: Y ? \"Drops per vial\" : \"Vial volume (ml)\",\n\t\t\t\t\t\t\t\t\t\tvalue: K.vaccineConfig?.vialVolumeMl ?? \"\",\n\t\t\t\t\t\t\t\t\t\tonChange: (e) => Z(\"vialVolumeMl\", e.target.value),\n\t\t\t\t\t\t\t\t\t\tonBlur: U.onBlur(\"vialVolumeMl\"),\n\t\t\t\t\t\t\t\t\t\terror: U.show(\"vialVolumeMl\") && !!$.vialVolumeMl,\n\t\t\t\t\t\t\t\t\t\thelperText: U.show(\"vialVolumeMl\") ? $.vialVolumeMl : Y ? \"Total drops in a fresh vial\" : \"\"\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t/* @__PURE__ */ b(A, {\n\t\t\t\t\t\t\t\t\titem: !0,\n\t\t\t\t\t\t\t\t\txs: 12,\n\t\t\t\t\t\t\t\t\tchildren: /* @__PURE__ */ b(P, {\n\t\t\t\t\t\t\t\t\t\tvariant: \"overline\",\n\t\t\t\t\t\t\t\t\t\tsx: {\n\t\t\t\t\t\t\t\t\t\t\t...z,\n\t\t\t\t\t\t\t\t\t\t\tmt: 1\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\tchildren: \"Dosing\"\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\tY ? null : /* @__PURE__ */ x(A, {\n\t\t\t\t\t\t\t\t\titem: !0,\n\t\t\t\t\t\t\t\t\txs: 12,\n\t\t\t\t\t\t\t\t\tchildren: [/* @__PURE__ */ b(k, {\n\t\t\t\t\t\t\t\t\t\tcontrol: /* @__PURE__ */ b(D, {\n\t\t\t\t\t\t\t\t\t\t\tchecked: !!K.vaccineConfig?.singleDose,\n\t\t\t\t\t\t\t\t\t\t\tonChange: (e) => Le(e.target.checked)\n\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t\tlabel: \"Single dose vial\"\n\t\t\t\t\t\t\t\t\t}), /* @__PURE__ */ b(P, {\n\t\t\t\t\t\t\t\t\t\tvariant: \"caption\",\n\t\t\t\t\t\t\t\t\t\tcolor: \"text.secondary\",\n\t\t\t\t\t\t\t\t\t\tsx: {\n\t\t\t\t\t\t\t\t\t\t\tdisplay: \"block\",\n\t\t\t\t\t\t\t\t\t\t\tml: 4,\n\t\t\t\t\t\t\t\t\t\t\tmt: -.5\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\tchildren: \"One dose per vial — used up the moment it's opened, so there's no limit on how many can be open at once.\"\n\t\t\t\t\t\t\t\t\t})]\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t/* @__PURE__ */ b(A, {\n\t\t\t\t\t\t\t\t\titem: !0,\n\t\t\t\t\t\t\t\t\txs: 12,\n\t\t\t\t\t\t\t\t\tchildren: Re(!Y && !!K.vaccineConfig?.singleDose)\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t/* @__PURE__ */ b(A, {\n\t\t\t\t\t\t\t\t\titem: !0,\n\t\t\t\t\t\t\t\t\txs: 12,\n\t\t\t\t\t\t\t\t\tchildren: /* @__PURE__ */ b(P, {\n\t\t\t\t\t\t\t\t\t\tvariant: \"overline\",\n\t\t\t\t\t\t\t\t\t\tsx: {\n\t\t\t\t\t\t\t\t\t\t\t...z,\n\t\t\t\t\t\t\t\t\t\t\tmt: 1\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\tchildren: \"Open vial & reconstitution\"\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t!Y && K.vaccineConfig?.singleDose ? null : /* @__PURE__ */ b(A, {\n\t\t\t\t\t\t\t\t\titem: !0,\n\t\t\t\t\t\t\t\t\txs: 12,\n\t\t\t\t\t\t\t\t\tmd: 4,\n\t\t\t\t\t\t\t\t\tchildren: /* @__PURE__ */ x(M, {\n\t\t\t\t\t\t\t\t\t\tdirection: \"row\",\n\t\t\t\t\t\t\t\t\t\tspacing: 1,\n\t\t\t\t\t\t\t\t\t\tchildren: [/* @__PURE__ */ b(N, {\n\t\t\t\t\t\t\t\t\t\t\trequired: !0,\n\t\t\t\t\t\t\t\t\t\t\tfullWidth: !0,\n\t\t\t\t\t\t\t\t\t\t\tsize: \"small\",\n\t\t\t\t\t\t\t\t\t\t\ttype: \"number\",\n\t\t\t\t\t\t\t\t\t\t\tinputProps: { min: 1 },\n\t\t\t\t\t\t\t\t\t\t\tlabel: \"Open vial validity\",\n\t\t\t\t\t\t\t\t\t\t\tvalue: K.vaccineConfig?.openVialValidityHours ?? \"\",\n\t\t\t\t\t\t\t\t\t\t\tonChange: (e) => Z(\"openVialValidityHours\", e.target.value),\n\t\t\t\t\t\t\t\t\t\t\tonBlur: U.onBlur(\"openVialValidityHours\"),\n\t\t\t\t\t\t\t\t\t\t\terror: U.show(\"openVialValidityHours\") && !!$.openVialValidityHours,\n\t\t\t\t\t\t\t\t\t\t\thelperText: U.show(\"openVialValidityHours\") ? $.openVialValidityHours : \"How long the vial stays usable once opened\"\n\t\t\t\t\t\t\t\t\t\t}), /* @__PURE__ */ b(C, {\n\t\t\t\t\t\t\t\t\t\t\tsx: {\n\t\t\t\t\t\t\t\t\t\t\t\tminWidth: 132,\n\t\t\t\t\t\t\t\t\t\t\t\tflexShrink: 0\n\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\tchildren: /* @__PURE__ */ b(u, {\n\t\t\t\t\t\t\t\t\t\t\t\tlabel: \"Unit\",\n\t\t\t\t\t\t\t\t\t\t\t\tvalue: K.vaccineConfig?.openVialValidityUnit || \"HOURS\",\n\t\t\t\t\t\t\t\t\t\t\t\tonChange: (e) => Z(\"openVialValidityUnit\", e),\n\t\t\t\t\t\t\t\t\t\t\t\toptions: d\n\t\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t\t})]\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t!Y && K.vaccineConfig?.singleDose ? null : /* @__PURE__ */ b(A, {\n\t\t\t\t\t\t\t\t\titem: !0,\n\t\t\t\t\t\t\t\t\txs: 12,\n\t\t\t\t\t\t\t\t\tmd: 4,\n\t\t\t\t\t\t\t\t\tchildren: /* @__PURE__ */ b(N, {\n\t\t\t\t\t\t\t\t\t\trequired: !0,\n\t\t\t\t\t\t\t\t\t\tfullWidth: !0,\n\t\t\t\t\t\t\t\t\t\tsize: \"small\",\n\t\t\t\t\t\t\t\t\t\ttype: \"number\",\n\t\t\t\t\t\t\t\t\t\tinputProps: {\n\t\t\t\t\t\t\t\t\t\t\tmin: 1,\n\t\t\t\t\t\t\t\t\t\t\tmax: 20\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\tlabel: \"Max concurrent open vials\",\n\t\t\t\t\t\t\t\t\t\tvalue: K.vaccineConfig?.maxConcurrentOpenVials ?? \"\",\n\t\t\t\t\t\t\t\t\t\tonChange: (e) => Z(\"maxConcurrentOpenVials\", e.target.value),\n\t\t\t\t\t\t\t\t\t\tonBlur: U.onBlur(\"maxConcurrentOpenVials\"),\n\t\t\t\t\t\t\t\t\t\terror: U.show(\"maxConcurrentOpenVials\") && !!$.maxConcurrentOpenVials,\n\t\t\t\t\t\t\t\t\t\thelperText: U.show(\"maxConcurrentOpenVials\") ? $.maxConcurrentOpenVials : \"\"\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t/* @__PURE__ */ b(A, {\n\t\t\t\t\t\t\t\t\titem: !0,\n\t\t\t\t\t\t\t\t\txs: 12,\n\t\t\t\t\t\t\t\t\tchildren: /* @__PURE__ */ b(k, {\n\t\t\t\t\t\t\t\t\t\tcontrol: /* @__PURE__ */ b(D, {\n\t\t\t\t\t\t\t\t\t\t\tchecked: !!K.vaccineConfig?.requiresReconstitution,\n\t\t\t\t\t\t\t\t\t\t\tonChange: (e) => Z(\"requiresReconstitution\", e.target.checked)\n\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t\tlabel: \"Requires reconstitution\"\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\tK.vaccineConfig?.requiresReconstitution ? /* @__PURE__ */ b(A, {\n\t\t\t\t\t\t\t\t\titem: !0,\n\t\t\t\t\t\t\t\t\txs: 12,\n\t\t\t\t\t\t\t\t\tmd: 4,\n\t\t\t\t\t\t\t\t\tchildren: /* @__PURE__ */ x(M, {\n\t\t\t\t\t\t\t\t\t\tdirection: \"row\",\n\t\t\t\t\t\t\t\t\t\tspacing: 1,\n\t\t\t\t\t\t\t\t\t\tchildren: [/* @__PURE__ */ b(N, {\n\t\t\t\t\t\t\t\t\t\t\tfullWidth: !0,\n\t\t\t\t\t\t\t\t\t\t\tsize: \"small\",\n\t\t\t\t\t\t\t\t\t\t\ttype: \"number\",\n\t\t\t\t\t\t\t\t\t\t\tinputProps: { min: 1 },\n\t\t\t\t\t\t\t\t\t\t\trequired: !0,\n\t\t\t\t\t\t\t\t\t\t\tlabel: \"Reconstituted validity\",\n\t\t\t\t\t\t\t\t\t\t\tvalue: K.vaccineConfig?.reconstitutedValidityHours ?? \"\",\n\t\t\t\t\t\t\t\t\t\t\tonChange: (e) => Z(\"reconstitutedValidityHours\", e.target.value),\n\t\t\t\t\t\t\t\t\t\t\tonBlur: U.onBlur(\"reconstitutedValidityHours\"),\n\t\t\t\t\t\t\t\t\t\t\terror: U.show(\"reconstitutedValidityHours\") && !!$.reconstitutedValidityHours,\n\t\t\t\t\t\t\t\t\t\t\thelperText: U.show(\"reconstitutedValidityHours\") ? $.reconstitutedValidityHours : \"\"\n\t\t\t\t\t\t\t\t\t\t}), /* @__PURE__ */ b(C, {\n\t\t\t\t\t\t\t\t\t\t\tsx: {\n\t\t\t\t\t\t\t\t\t\t\t\tminWidth: 132,\n\t\t\t\t\t\t\t\t\t\t\t\tflexShrink: 0\n\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\tchildren: /* @__PURE__ */ b(u, {\n\t\t\t\t\t\t\t\t\t\t\t\tlabel: \"Unit\",\n\t\t\t\t\t\t\t\t\t\t\t\tvalue: K.vaccineConfig?.reconstitutedValidityUnit || \"HOURS\",\n\t\t\t\t\t\t\t\t\t\t\t\tonChange: (e) => Z(\"reconstitutedValidityUnit\", e),\n\t\t\t\t\t\t\t\t\t\t\t\toptions: d\n\t\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t\t})]\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t}) : null,\n\t\t\t\t\t\t\t\t/* @__PURE__ */ b(A, {\n\t\t\t\t\t\t\t\t\titem: !0,\n\t\t\t\t\t\t\t\t\txs: 12,\n\t\t\t\t\t\t\t\t\tchildren: /* @__PURE__ */ b(P, {\n\t\t\t\t\t\t\t\t\t\tvariant: \"overline\",\n\t\t\t\t\t\t\t\t\t\tsx: {\n\t\t\t\t\t\t\t\t\t\t\t...z,\n\t\t\t\t\t\t\t\t\t\t\tmt: 1\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\tchildren: \"Storage & route\"\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t/* @__PURE__ */ b(A, {\n\t\t\t\t\t\t\t\t\titem: !0,\n\t\t\t\t\t\t\t\t\txs: 12,\n\t\t\t\t\t\t\t\t\tmd: 4,\n\t\t\t\t\t\t\t\t\tchildren: /* @__PURE__ */ b(u, {\n\t\t\t\t\t\t\t\t\t\tlabel: \"Route of administration\",\n\t\t\t\t\t\t\t\t\t\tvalue: K.vaccineConfig?.route || \"\",\n\t\t\t\t\t\t\t\t\t\tonChange: (e) => Z(\"route\", e),\n\t\t\t\t\t\t\t\t\t\toptions: ne\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t/* @__PURE__ */ b(A, {\n\t\t\t\t\t\t\t\t\titem: !0,\n\t\t\t\t\t\t\t\t\txs: 6,\n\t\t\t\t\t\t\t\t\tmd: 4,\n\t\t\t\t\t\t\t\t\tchildren: /* @__PURE__ */ b(N, {\n\t\t\t\t\t\t\t\t\t\tfullWidth: !0,\n\t\t\t\t\t\t\t\t\t\tsize: \"small\",\n\t\t\t\t\t\t\t\t\t\ttype: \"number\",\n\t\t\t\t\t\t\t\t\t\tinputProps: {\n\t\t\t\t\t\t\t\t\t\t\tstep: \"0.1\",\n\t\t\t\t\t\t\t\t\t\t\tmin: -90,\n\t\t\t\t\t\t\t\t\t\t\tmax: 30\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\tlabel: \"Storage temp min (°C)\",\n\t\t\t\t\t\t\t\t\t\tvalue: K.vaccineConfig?.storageTempMinCelsius ?? \"\",\n\t\t\t\t\t\t\t\t\t\tonChange: (e) => Z(\"storageTempMinCelsius\", e.target.value),\n\t\t\t\t\t\t\t\t\t\tonBlur: U.onBlur(\"storageTempMinCelsius\"),\n\t\t\t\t\t\t\t\t\t\terror: U.show(\"storageTempMinCelsius\") && !!$.storageTempMinCelsius,\n\t\t\t\t\t\t\t\t\t\thelperText: U.show(\"storageTempMinCelsius\") && $.storageTempMinCelsius ? $.storageTempMinCelsius : \"−90°C to +30°C\"\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t/* @__PURE__ */ b(A, {\n\t\t\t\t\t\t\t\t\titem: !0,\n\t\t\t\t\t\t\t\t\txs: 6,\n\t\t\t\t\t\t\t\t\tmd: 4,\n\t\t\t\t\t\t\t\t\tchildren: /* @__PURE__ */ b(N, {\n\t\t\t\t\t\t\t\t\t\tfullWidth: !0,\n\t\t\t\t\t\t\t\t\t\tsize: \"small\",\n\t\t\t\t\t\t\t\t\t\ttype: \"number\",\n\t\t\t\t\t\t\t\t\t\tinputProps: {\n\t\t\t\t\t\t\t\t\t\t\tstep: \"0.1\",\n\t\t\t\t\t\t\t\t\t\t\tmin: -90,\n\t\t\t\t\t\t\t\t\t\t\tmax: 30\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\tlabel: \"Storage temp max (°C)\",\n\t\t\t\t\t\t\t\t\t\tvalue: K.vaccineConfig?.storageTempMaxCelsius ?? \"\",\n\t\t\t\t\t\t\t\t\t\tonChange: (e) => Z(\"storageTempMaxCelsius\", e.target.value),\n\t\t\t\t\t\t\t\t\t\tonBlur: U.onBlur(\"storageTempMaxCelsius\"),\n\t\t\t\t\t\t\t\t\t\terror: U.show(\"storageTempMaxCelsius\") && !!$.storageTempMaxCelsius,\n\t\t\t\t\t\t\t\t\t\thelperText: U.show(\"storageTempMaxCelsius\") && $.storageTempMaxCelsius ? $.storageTempMaxCelsius : \"−90°C to +30°C\"\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t/* @__PURE__ */ b(A, {\n\t\t\t\t\t\t\t\t\titem: !0,\n\t\t\t\t\t\t\t\t\txs: 12,\n\t\t\t\t\t\t\t\t\tchildren: /* @__PURE__ */ b(P, {\n\t\t\t\t\t\t\t\t\t\tvariant: \"overline\",\n\t\t\t\t\t\t\t\t\t\tsx: {\n\t\t\t\t\t\t\t\t\t\t\t...z,\n\t\t\t\t\t\t\t\t\t\t\tmt: 1\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\tchildren: \"Notes\"\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t/* @__PURE__ */ b(A, {\n\t\t\t\t\t\t\t\t\titem: !0,\n\t\t\t\t\t\t\t\t\txs: 12,\n\t\t\t\t\t\t\t\t\tchildren: /* @__PURE__ */ b(N, {\n\t\t\t\t\t\t\t\t\t\tfullWidth: !0,\n\t\t\t\t\t\t\t\t\t\tsize: \"small\",\n\t\t\t\t\t\t\t\t\t\tmultiline: !0,\n\t\t\t\t\t\t\t\t\t\tminRows: 2,\n\t\t\t\t\t\t\t\t\t\tlabel: \"Comments\",\n\t\t\t\t\t\t\t\t\t\tvalue: K.vaccineConfig?.comments || \"\",\n\t\t\t\t\t\t\t\t\t\tonChange: (e) => Z(\"comments\", e.target.value)\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t]\n\t\t\t\t\t\t})\n\t\t\t\t\t] })\n\t\t\t\t}) : null\n\t\t\t]\n\t\t})\n\t})] });\n}\nfunction Ee({ value: e, onChange: t }) {\n\tlet n = e ?? [], i = _(null), [a, s] = v(!1), [l, u] = v({}), d = _({});\n\td.current = l;\n\tfunction f(e, t) {\n\t\tu((n) => n[e] ? n : {\n\t\t\t...n,\n\t\t\t[e]: t\n\t\t});\n\t}\n\tg(() => {\n\t\tlet e = !1;\n\t\treturn n.forEach((t) => {\n\t\t\td.current[t] || r(t).then((n) => {\n\t\t\t\te || f(t, URL.createObjectURL(n));\n\t\t\t}).catch(() => {});\n\t\t}), () => {\n\t\t\te = !0;\n\t\t};\n\t}, [n]), g(() => () => {\n\t\tObject.values(d.current).forEach((e) => {\n\t\t\ttry {\n\t\t\t\tURL.revokeObjectURL(e);\n\t\t\t} catch {}\n\t\t});\n\t}, []);\n\tasync function ee(e) {\n\t\tlet r = Array.from(e || []);\n\t\tif (r.length === 0) return;\n\t\tlet i = L - n.length;\n\t\tif (i <= 0) {\n\t\t\tc({\n\t\t\t\tmessage: `You can add at most ${L} images.`,\n\t\t\t\ttype: \"warning\"\n\t\t\t});\n\t\t\treturn;\n\t\t}\n\t\tlet a = r.find((e) => !e.type.startsWith(\"image/\") || e.size > R);\n\t\tif (a) {\n\t\t\tc({\n\t\t\t\tmessage: a.type.startsWith(\"image/\") ? \"Each image must be 5 MB or smaller.\" : \"Only image files can be uploaded.\",\n\t\t\t\ttype: \"error\"\n\t\t\t});\n\t\t\treturn;\n\t\t}\n\t\tlet l = r.slice(0, i);\n\t\tr.length > i && c({\n\t\t\tmessage: `Only ${i} more image${i === 1 ? \"\" : \"s\"} can be added.`,\n\t\t\ttype: \"warning\"\n\t\t});\n\t\tlet u = l.map(() => F());\n\t\ts(!0);\n\t\ttry {\n\t\t\tawait o(l, u), l.forEach((e, t) => f(u[t], URL.createObjectURL(e))), t([...n, ...u]);\n\t\t} catch (e) {\n\t\t\tc({\n\t\t\t\tmessage: e?.response?.data?.message ?? e?.message ?? \"Failed to upload images\",\n\t\t\t\ttype: \"error\"\n\t\t\t});\n\t\t} finally {\n\t\t\ts(!1);\n\t\t}\n\t}\n\tfunction te(e) {\n\t\tt(n.filter((t) => t !== e));\n\t}\n\tlet p = n.length >= L;\n\treturn /* @__PURE__ */ x(C, { children: [\n\t\t/* @__PURE__ */ b(\"input\", {\n\t\t\tref: i,\n\t\t\ttype: \"file\",\n\t\t\taccept: \"image/*\",\n\t\t\tmultiple: !0,\n\t\t\thidden: !0,\n\t\t\tonChange: (e) => {\n\t\t\t\tee(e.target.files), e.target.value = \"\";\n\t\t\t}\n\t\t}),\n\t\t/* @__PURE__ */ x(M, {\n\t\t\tdirection: \"row\",\n\t\t\tspacing: 1.5,\n\t\t\tsx: {\n\t\t\t\tflexWrap: \"wrap\",\n\t\t\t\tgap: 1.5\n\t\t\t},\n\t\t\tchildren: [n.map((e, t) => /* @__PURE__ */ x(C, {\n\t\t\t\tsx: {\n\t\t\t\t\tposition: \"relative\",\n\t\t\t\t\twidth: 104,\n\t\t\t\t\theight: 104,\n\t\t\t\t\tborderRadius: 1.5,\n\t\t\t\t\tborder: \"1px solid\",\n\t\t\t\t\tborderColor: \"divider\",\n\t\t\t\t\toverflow: \"hidden\",\n\t\t\t\t\tbgcolor: \"grey.50\",\n\t\t\t\t\tdisplay: \"flex\",\n\t\t\t\t\talignItems: \"center\",\n\t\t\t\t\tjustifyContent: \"center\"\n\t\t\t\t},\n\t\t\t\tchildren: [\n\t\t\t\t\tl[e] ? /* @__PURE__ */ b(C, {\n\t\t\t\t\t\tcomponent: \"img\",\n\t\t\t\t\t\tsrc: l[e],\n\t\t\t\t\t\talt: `Product image ${t + 1}`,\n\t\t\t\t\t\tsx: {\n\t\t\t\t\t\t\twidth: \"100%\",\n\t\t\t\t\t\t\theight: \"100%\",\n\t\t\t\t\t\t\tobjectFit: \"cover\"\n\t\t\t\t\t\t}\n\t\t\t\t\t}) : /* @__PURE__ */ b(O, { size: 20 }),\n\t\t\t\t\tt === 0 ? /* @__PURE__ */ b(C, {\n\t\t\t\t\t\tsx: {\n\t\t\t\t\t\t\tposition: \"absolute\",\n\t\t\t\t\t\t\tleft: 0,\n\t\t\t\t\t\t\tbottom: 0,\n\t\t\t\t\t\t\tright: 0,\n\t\t\t\t\t\t\tbgcolor: \"rgba(0,0,0,0.55)\",\n\t\t\t\t\t\t\tcolor: \"#fff\",\n\t\t\t\t\t\t\tfontSize: \"0.6rem\",\n\t\t\t\t\t\t\tfontWeight: 800,\n\t\t\t\t\t\t\tletterSpacing: .5,\n\t\t\t\t\t\t\ttextAlign: \"center\",\n\t\t\t\t\t\t\tpy: .25\n\t\t\t\t\t\t},\n\t\t\t\t\t\tchildren: \"MAIN\"\n\t\t\t\t\t}) : null,\n\t\t\t\t\t/* @__PURE__ */ b(j, {\n\t\t\t\t\t\tsize: \"small\",\n\t\t\t\t\t\tonClick: () => te(e),\n\t\t\t\t\t\tsx: {\n\t\t\t\t\t\t\tposition: \"absolute\",\n\t\t\t\t\t\t\ttop: 2,\n\t\t\t\t\t\t\tright: 2,\n\t\t\t\t\t\t\tp: .25,\n\t\t\t\t\t\t\tbgcolor: \"rgba(0,0,0,0.5)\",\n\t\t\t\t\t\t\tcolor: \"#fff\",\n\t\t\t\t\t\t\t\"&:hover\": { bgcolor: \"rgba(0,0,0,0.7)\" }\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"aria-label\": \"Remove image\",\n\t\t\t\t\t\tchildren: /* @__PURE__ */ b(we, { sx: { fontSize: 16 } })\n\t\t\t\t\t})\n\t\t\t\t]\n\t\t\t}, e)), p ? null : /* @__PURE__ */ x(w, {\n\t\t\t\tvariant: \"outlined\",\n\t\t\t\tonClick: () => i.current?.click(),\n\t\t\t\tdisabled: a,\n\t\t\t\tsx: {\n\t\t\t\t\twidth: 104,\n\t\t\t\t\theight: 104,\n\t\t\t\t\tborderStyle: \"dashed\",\n\t\t\t\t\tflexDirection: \"column\",\n\t\t\t\t\tgap: .5,\n\t\t\t\t\tcolor: \"text.secondary\"\n\t\t\t\t},\n\t\t\t\tchildren: [a ? /* @__PURE__ */ b(O, { size: 22 }) : /* @__PURE__ */ b(I, {}), /* @__PURE__ */ b(P, {\n\t\t\t\t\tvariant: \"caption\",\n\t\t\t\t\tsx: { fontWeight: 700 },\n\t\t\t\t\tchildren: a ? \"Uploading…\" : \"Add\"\n\t\t\t\t})]\n\t\t\t})]\n\t\t}),\n\t\tn.length === 0 && !a ? /* @__PURE__ */ b(P, {\n\t\t\tvariant: \"caption\",\n\t\t\tcolor: \"text.disabled\",\n\t\t\tsx: {\n\t\t\t\tdisplay: \"block\",\n\t\t\t\tmt: 1\n\t\t\t},\n\t\t\tchildren: \"No images added yet.\"\n\t\t}) : null\n\t] });\n}\nEe.propTypes = {\n\tvalue: S.arrayOf(S.string),\n\tonChange: S.func.isRequired\n};\n//#endregion\nexport { H as default };\n\n//# sourceMappingURL=ProductEditPage-BVlVUCtD.js.map"],"names":["L","R","z","B","F","V","Te","e","t","n","r","_a","H","xe","o","be","_","v","O","I","we","De","Oe","ke","Ae","je","U","ue","Me","a","W","he","G","K","q","Ne","ge","J","ee","Pe","te","Y","pe","i","s","_b","g","re","X","Z","Q","Fe","Ie","Le","Re","x","C","M","b","P","w","ye","y","c","l","A","N","$","u","m","j","Ce","h","oe","ie","ae","se","ce","ze","le","Be","_c","fe","me","de","Se","_e","T","E","k","D","p","Ee","ve","f","_d","_f","_g","_h","d","_i","_j","_k","_l","_m","_n","_o","ne","_p","_q","_r","S"],"mappings":";;;;;;;;;;;;;;;;;AAmBA,IAAIA,KAAI,GAAGC,KAAI,IAAI,OAAO,MAAMC,IAAI;AAAA,EACnC,SAAS;AAAA,EACT,YAAY;AAAA,EACZ,eAAe;AAAA,EACf,OAAO;AACR;AACA,SAASC,KAAI;AACZ,SAAO;AAAA,IACN,KAAKC,GAAC;AAAA,IACN,aAAa;AAAA,IACb,SAAS;AAAA,IACT,UAAU;AAAA,IACV,OAAO;AAAA,IACP,QAAQ;AAAA,IACR,YAAY;AAAA,EACd;AACA;AACA,IAAIC,IAAI;AAAA,EACP,aAAa;AAAA,EACb,cAAc;AAAA,EACd,YAAY;AAAA,EACZ,UAAU,CAACF,IAAG;AAAA,EACd,uBAAuB;AAAA,EACvB,sBAAsB;AAAA,EACtB,wBAAwB;AAAA,EACxB,wBAAwB;AAAA,EACxB,4BAA4B;AAAA,EAC5B,2BAA2B;AAAA,EAC3B,OAAO;AAAA,EACP,u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AE,MAAM;AAAA,EACzB,UAAUA,GAAE,KAAK;AAClB;"}
|
|
@@ -1,27 +1,28 @@
|
|
|
1
|
-
import { B as
|
|
2
|
-
import {
|
|
3
|
-
import { X as M, Y as
|
|
1
|
+
import { B as P, z as T, V, d as E, k as D } from "./ImmunizationConfigurationBase-aUtx0JEe.js";
|
|
2
|
+
import { A as F } from "./constants-DpXnLsAB-D6lN5cjK.js";
|
|
3
|
+
import { X as M, Y as H, Z as O, Q as U, q as Y } from "./PmGuard-BZE-y4In-D_pUm5MP.js";
|
|
4
|
+
import { m as j } from "./listValueStore-BFQtDYIR-Bj0yX145.js";
|
|
4
5
|
import { useState as s } from "react";
|
|
5
6
|
import { jsxs as a, jsx as e } from "react/jsx-runtime";
|
|
6
|
-
import { Box as A, Alert as
|
|
7
|
-
import
|
|
8
|
-
import { v4 as
|
|
7
|
+
import { Box as A, Alert as q, TableHead as Q, TableRow as g, TableCell as i, TableBody as X, Skeleton as Z, Button as h, Typography as l, Chip as m, Stack as S, TextField as G, InputAdornment as J, FormControlLabel as K } from "@mui/material";
|
|
8
|
+
import _ from "@mui/icons-material/VaccinesRounded";
|
|
9
|
+
import { v4 as ee } from "uuid";
|
|
9
10
|
import N from "@mui/icons-material/AddRounded";
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import { useNavigate as
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
function
|
|
16
|
-
let f =
|
|
11
|
+
import te from "@mui/icons-material/RefreshRounded";
|
|
12
|
+
import ie from "@/views/custom-components/CustomSwitch";
|
|
13
|
+
import { useNavigate as re } from "react-router-dom";
|
|
14
|
+
import ne from "@mui/icons-material/Inventory2Rounded";
|
|
15
|
+
import ae from "@mui/icons-material/SearchRounded";
|
|
16
|
+
function ye() {
|
|
17
|
+
let f = re(), u = M().has("update.manage.productManagement.product"), { productUnits: B } = j(), [c, L] = s([]), [v, b] = s(!1), [x, C] = s(""), [d, R] = s(""), [y, I] = s(!1);
|
|
17
18
|
async function w() {
|
|
18
19
|
var t, n;
|
|
19
20
|
b(!0), C("");
|
|
20
21
|
try {
|
|
21
|
-
|
|
22
|
+
L(await E(void 0, !0));
|
|
22
23
|
} catch (r) {
|
|
23
24
|
let o = ((n = (t = r == null ? void 0 : r.response) == null ? void 0 : t.data) == null ? void 0 : n.message) ?? (r == null ? void 0 : r.message) ?? "Failed to load products";
|
|
24
|
-
C(o),
|
|
25
|
+
C(o), D({
|
|
25
26
|
message: o,
|
|
26
27
|
type: "error"
|
|
27
28
|
});
|
|
@@ -29,10 +30,10 @@ function be() {
|
|
|
29
30
|
b(!1);
|
|
30
31
|
}
|
|
31
32
|
}
|
|
32
|
-
|
|
33
|
+
H("view.manage.productManagement.product", () => {
|
|
33
34
|
w();
|
|
34
35
|
}, []);
|
|
35
|
-
let
|
|
36
|
+
let p = c.filter((t) => {
|
|
36
37
|
var r, o, $, W, z;
|
|
37
38
|
if (!y && t.isActive === !1) return !1;
|
|
38
39
|
if (!d.trim()) return !0;
|
|
@@ -40,9 +41,9 @@ function be() {
|
|
|
40
41
|
return ((r = t.name) == null ? void 0 : r.toLowerCase().includes(n)) || ((o = t.categoryName) == null ? void 0 : o.toLowerCase().includes(n)) || (($ = t.brandName) == null ? void 0 : $.toLowerCase().includes(n)) || ((z = (W = t.vaccineConfig) == null ? void 0 : W.vaccineCode) == null ? void 0 : z.toLowerCase().includes(n));
|
|
41
42
|
});
|
|
42
43
|
function k() {
|
|
43
|
-
f(`/ui/medplat/manage/pm/products/${
|
|
44
|
+
f(`/ui/medplat/manage/pm/products/${ee()}`);
|
|
44
45
|
}
|
|
45
|
-
return /* @__PURE__ */ a(A, { children: [/* @__PURE__ */ e(
|
|
46
|
+
return /* @__PURE__ */ a(A, { children: [/* @__PURE__ */ e(O, {}), /* @__PURE__ */ e(U, {
|
|
46
47
|
perm: "view.manage.productManagement.product",
|
|
47
48
|
children: /* @__PURE__ */ a(Y, {
|
|
48
49
|
title: "Products",
|
|
@@ -53,7 +54,7 @@ function be() {
|
|
|
53
54
|
spacing: 1,
|
|
54
55
|
children: [/* @__PURE__ */ e(h, {
|
|
55
56
|
variant: "outlined",
|
|
56
|
-
startIcon: /* @__PURE__ */ e(
|
|
57
|
+
startIcon: /* @__PURE__ */ e(te, {}),
|
|
57
58
|
onClick: () => void w(),
|
|
58
59
|
children: "Refresh"
|
|
59
60
|
}), u ? /* @__PURE__ */ e(h, {
|
|
@@ -63,18 +64,18 @@ function be() {
|
|
|
63
64
|
children: "New Product"
|
|
64
65
|
}) : null]
|
|
65
66
|
}),
|
|
66
|
-
children: [x ? /* @__PURE__ */ e(
|
|
67
|
+
children: [x ? /* @__PURE__ */ e(q, {
|
|
67
68
|
severity: "error",
|
|
68
69
|
sx: { mb: 2 },
|
|
69
70
|
children: x
|
|
70
|
-
}) : null, /* @__PURE__ */ e(
|
|
71
|
+
}) : null, /* @__PURE__ */ e(P, {
|
|
71
72
|
eyebrow: "Catalog",
|
|
72
73
|
title: "Products",
|
|
73
|
-
subtitle: v ? "Loading…" : `${
|
|
74
|
+
subtitle: v ? "Loading…" : `${p.length} of ${c.length} ${c.length === 1 ? "product" : "products"}${d.trim() ? ` matching "${d.trim()}"` : ""}`,
|
|
74
75
|
actions: /* @__PURE__ */ e(K, {
|
|
75
|
-
control: /* @__PURE__ */ e(
|
|
76
|
+
control: /* @__PURE__ */ e(ie, {
|
|
76
77
|
checked: y,
|
|
77
|
-
onChange: (t) =>
|
|
78
|
+
onChange: (t) => I(t.target.checked)
|
|
78
79
|
}),
|
|
79
80
|
label: /* @__PURE__ */ e(l, {
|
|
80
81
|
variant: "body2",
|
|
@@ -92,17 +93,17 @@ function be() {
|
|
|
92
93
|
fullWidth: !0,
|
|
93
94
|
placeholder: "Search by name, category, brand, or vaccine code",
|
|
94
95
|
value: d,
|
|
95
|
-
onChange: (t) =>
|
|
96
|
+
onChange: (t) => R(t.target.value),
|
|
96
97
|
InputProps: { startAdornment: /* @__PURE__ */ e(J, {
|
|
97
98
|
position: "start",
|
|
98
|
-
children: /* @__PURE__ */ e(
|
|
99
|
+
children: /* @__PURE__ */ e(ae, {
|
|
99
100
|
fontSize: "small",
|
|
100
101
|
color: "action"
|
|
101
102
|
})
|
|
102
103
|
}) },
|
|
103
104
|
sx: { maxWidth: 540 }
|
|
104
105
|
}),
|
|
105
|
-
children: /* @__PURE__ */ a(
|
|
106
|
+
children: /* @__PURE__ */ a(T, { children: [/* @__PURE__ */ e(Q, { children: /* @__PURE__ */ a(g, { children: [
|
|
106
107
|
/* @__PURE__ */ e(i, { children: "Product" }),
|
|
107
108
|
/* @__PURE__ */ e(i, { children: "Category" }),
|
|
108
109
|
/* @__PURE__ */ e(i, { children: "Brand" }),
|
|
@@ -114,9 +115,9 @@ function be() {
|
|
|
114
115
|
align: "right",
|
|
115
116
|
children: "Action"
|
|
116
117
|
})
|
|
117
|
-
] }) }), /* @__PURE__ */ e(
|
|
118
|
+
] }) }), /* @__PURE__ */ e(X, { children: v ? Array.from({ length: 5 }).map((t, n) => /* @__PURE__ */ e(g, { children: Array.from({ length: 8 }).map((r, o) => /* @__PURE__ */ e(i, { children: /* @__PURE__ */ e(Z, { height: 22 }) }, o)) }, n)) : p.length === 0 ? /* @__PURE__ */ e(V, {
|
|
118
119
|
colSpan: 8,
|
|
119
|
-
icon:
|
|
120
|
+
icon: ne,
|
|
120
121
|
title: c.length === 0 ? "No products yet" : "No matches",
|
|
121
122
|
hint: c.length === 0 ? "Create categories and brands first, then add products." : "Try a different search term.",
|
|
122
123
|
action: c.length === 0 && u ? /* @__PURE__ */ e(h, {
|
|
@@ -126,7 +127,7 @@ function be() {
|
|
|
126
127
|
onClick: k,
|
|
127
128
|
children: "Create first product"
|
|
128
129
|
}) : null
|
|
129
|
-
}) :
|
|
130
|
+
}) : p.map((t) => /* @__PURE__ */ a(g, {
|
|
130
131
|
hover: !0,
|
|
131
132
|
children: [
|
|
132
133
|
/* @__PURE__ */ e(i, {
|
|
@@ -160,7 +161,7 @@ function be() {
|
|
|
160
161
|
}),
|
|
161
162
|
/* @__PURE__ */ e(i, { children: /* @__PURE__ */ e(m, {
|
|
162
163
|
size: "small",
|
|
163
|
-
label: F(t.unit, t.unitOther),
|
|
164
|
+
label: F(t.unit, t.unitOther, B),
|
|
164
165
|
variant: "outlined",
|
|
165
166
|
sx: {
|
|
166
167
|
fontWeight: 700,
|
|
@@ -192,7 +193,7 @@ function be() {
|
|
|
192
193
|
direction: "row",
|
|
193
194
|
alignItems: "center",
|
|
194
195
|
spacing: 1,
|
|
195
|
-
children: [/* @__PURE__ */ e(
|
|
196
|
+
children: [/* @__PURE__ */ e(_, { sx: {
|
|
196
197
|
fontSize: 18,
|
|
197
198
|
color: "info.main"
|
|
198
199
|
} }), /* @__PURE__ */ a(A, { children: [/* @__PURE__ */ e(l, {
|
|
@@ -247,6 +248,6 @@ function be() {
|
|
|
247
248
|
})] });
|
|
248
249
|
}
|
|
249
250
|
export {
|
|
250
|
-
|
|
251
|
+
ye as default
|
|
251
252
|
};
|
|
252
|
-
//# sourceMappingURL=ProductsPage-
|
|
253
|
+
//# sourceMappingURL=ProductsPage-DvNHIeZt-BoOOJJtk.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProductsPage-DvNHIeZt-BoOOJJtk.js","sources":["../../productManagement/dist/ProductsPage-DvNHIeZt.js"],"sourcesContent":["import { E as e } from \"./settingsStore-BHHOmcCP.js\";\nimport { c as t, l as n, s as r, t as i } from \"./PmTable-CwKORZGg.js\";\nimport { j as a } from \"./constants-DpXnLsAB.js\";\nimport { a as o, i as s, n as c, r as l, t as u } from \"./PmGuard-BZE-y4In.js\";\nimport { t as d } from \"./listValueStore-BFQtDYIR.js\";\nimport { useState as f } from \"react\";\nimport { jsx as p, jsxs as m } from \"react/jsx-runtime\";\nimport { Alert as h, Box as g, Button as _, Chip as v, FormControlLabel as y, InputAdornment as b, Skeleton as x, Stack as S, TableBody as C, TableCell as w, TableHead as T, TableRow as E, TextField as D, Typography as O } from \"@mui/material\";\nimport k from \"@mui/icons-material/VaccinesRounded\";\nimport { v4 as A } from \"uuid\";\nimport j from \"@mui/icons-material/AddRounded\";\nimport M from \"@mui/icons-material/RefreshRounded\";\nimport N from \"@/views/custom-components/CustomSwitch\";\nimport { useNavigate as P } from \"react-router-dom\";\nimport F from \"@mui/icons-material/Inventory2Rounded\";\nimport I from \"@mui/icons-material/SearchRounded\";\n//#region src/views/ProductsPage.jsx\nfunction L() {\n\tlet L = P(), R = s().has(\"update.manage.productManagement.product\"), { productUnits: z } = d(), [B, V] = f([]), [H, U] = f(!1), [W, G] = f(\"\"), [K, q] = f(\"\"), [J, Y] = f(!1);\n\tasync function X() {\n\t\tU(!0), G(\"\");\n\t\ttry {\n\t\t\tV(await e(void 0, !0));\n\t\t} catch (e) {\n\t\t\tlet t = e?.response?.data?.message ?? e?.message ?? \"Failed to load products\";\n\t\t\tG(t), n({\n\t\t\t\tmessage: t,\n\t\t\t\ttype: \"error\"\n\t\t\t});\n\t\t} finally {\n\t\t\tU(!1);\n\t\t}\n\t}\n\tl(\"view.manage.productManagement.product\", () => {\n\t\tX();\n\t}, []);\n\tlet Z = B.filter((e) => {\n\t\tif (!J && e.isActive === !1) return !1;\n\t\tif (!K.trim()) return !0;\n\t\tlet t = K.toLowerCase();\n\t\treturn e.name?.toLowerCase().includes(t) || e.categoryName?.toLowerCase().includes(t) || e.brandName?.toLowerCase().includes(t) || e.vaccineConfig?.vaccineCode?.toLowerCase().includes(t);\n\t});\n\tfunction Q() {\n\t\tL(`/ui/medplat/manage/pm/products/${A()}`);\n\t}\n\treturn /* @__PURE__ */ m(g, { children: [/* @__PURE__ */ p(c, {}), /* @__PURE__ */ p(u, {\n\t\tperm: \"view.manage.productManagement.product\",\n\t\tchildren: /* @__PURE__ */ m(o, {\n\t\t\ttitle: \"Products\",\n\t\t\tsubtitle: \"Each product is tracked separately. Vaccines need additional setup for vial size and dosing.\",\n\t\t\tchips: [\"Catalog\"],\n\t\t\tactions: /* @__PURE__ */ m(S, {\n\t\t\t\tdirection: \"row\",\n\t\t\t\tspacing: 1,\n\t\t\t\tchildren: [/* @__PURE__ */ p(_, {\n\t\t\t\t\tvariant: \"outlined\",\n\t\t\t\t\tstartIcon: /* @__PURE__ */ p(M, {}),\n\t\t\t\t\tonClick: () => void X(),\n\t\t\t\t\tchildren: \"Refresh\"\n\t\t\t\t}), R ? /* @__PURE__ */ p(_, {\n\t\t\t\t\tvariant: \"contained\",\n\t\t\t\t\tstartIcon: /* @__PURE__ */ p(j, {}),\n\t\t\t\t\tonClick: Q,\n\t\t\t\t\tchildren: \"New Product\"\n\t\t\t\t}) : null]\n\t\t\t}),\n\t\t\tchildren: [W ? /* @__PURE__ */ p(h, {\n\t\t\t\tseverity: \"error\",\n\t\t\t\tsx: { mb: 2 },\n\t\t\t\tchildren: W\n\t\t\t}) : null, /* @__PURE__ */ p(t, {\n\t\t\t\teyebrow: \"Catalog\",\n\t\t\t\ttitle: \"Products\",\n\t\t\t\tsubtitle: H ? \"Loading…\" : `${Z.length} of ${B.length} ${B.length === 1 ? \"product\" : \"products\"}${K.trim() ? ` matching \"${K.trim()}\"` : \"\"}`,\n\t\t\t\tactions: /* @__PURE__ */ p(y, {\n\t\t\t\t\tcontrol: /* @__PURE__ */ p(N, {\n\t\t\t\t\t\tchecked: J,\n\t\t\t\t\t\tonChange: (e) => Y(e.target.checked)\n\t\t\t\t\t}),\n\t\t\t\t\tlabel: /* @__PURE__ */ p(O, {\n\t\t\t\t\t\tvariant: \"body2\",\n\t\t\t\t\t\tsx: { fontWeight: 600 },\n\t\t\t\t\t\tchildren: \"Show inactive\"\n\t\t\t\t\t}),\n\t\t\t\t\tlabelPlacement: \"start\",\n\t\t\t\t\tsx: {\n\t\t\t\t\t\tmr: .5,\n\t\t\t\t\t\tml: 0\n\t\t\t\t\t}\n\t\t\t\t}),\n\t\t\t\ttoolbar: /* @__PURE__ */ p(D, {\n\t\t\t\t\tsize: \"small\",\n\t\t\t\t\tfullWidth: !0,\n\t\t\t\t\tplaceholder: \"Search by name, category, brand, or vaccine code\",\n\t\t\t\t\tvalue: K,\n\t\t\t\t\tonChange: (e) => q(e.target.value),\n\t\t\t\t\tInputProps: { startAdornment: /* @__PURE__ */ p(b, {\n\t\t\t\t\t\tposition: \"start\",\n\t\t\t\t\t\tchildren: /* @__PURE__ */ p(I, {\n\t\t\t\t\t\t\tfontSize: \"small\",\n\t\t\t\t\t\t\tcolor: \"action\"\n\t\t\t\t\t\t})\n\t\t\t\t\t}) },\n\t\t\t\t\tsx: { maxWidth: 540 }\n\t\t\t\t}),\n\t\t\t\tchildren: /* @__PURE__ */ m(r, { children: [/* @__PURE__ */ p(T, { children: /* @__PURE__ */ m(E, { children: [\n\t\t\t\t\t/* @__PURE__ */ p(w, { children: \"Product\" }),\n\t\t\t\t\t/* @__PURE__ */ p(w, { children: \"Category\" }),\n\t\t\t\t\t/* @__PURE__ */ p(w, { children: \"Brand\" }),\n\t\t\t\t\t/* @__PURE__ */ p(w, { children: \"Unit\" }),\n\t\t\t\t\t/* @__PURE__ */ p(w, { children: \"Expiry\" }),\n\t\t\t\t\t/* @__PURE__ */ p(w, { children: \"Vaccine config\" }),\n\t\t\t\t\t/* @__PURE__ */ p(w, { children: \"Status\" }),\n\t\t\t\t\t/* @__PURE__ */ p(w, {\n\t\t\t\t\t\talign: \"right\",\n\t\t\t\t\t\tchildren: \"Action\"\n\t\t\t\t\t})\n\t\t\t\t] }) }), /* @__PURE__ */ p(C, { children: H ? Array.from({ length: 5 }).map((e, t) => /* @__PURE__ */ p(E, { children: Array.from({ length: 8 }).map((e, t) => /* @__PURE__ */ p(w, { children: /* @__PURE__ */ p(x, { height: 22 }) }, t)) }, t)) : Z.length === 0 ? /* @__PURE__ */ p(i, {\n\t\t\t\t\tcolSpan: 8,\n\t\t\t\t\ticon: F,\n\t\t\t\t\ttitle: B.length === 0 ? \"No products yet\" : \"No matches\",\n\t\t\t\t\thint: B.length === 0 ? \"Create categories and brands first, then add products.\" : \"Try a different search term.\",\n\t\t\t\t\taction: B.length === 0 && R ? /* @__PURE__ */ p(_, {\n\t\t\t\t\t\tvariant: \"contained\",\n\t\t\t\t\t\tsize: \"small\",\n\t\t\t\t\t\tstartIcon: /* @__PURE__ */ p(j, {}),\n\t\t\t\t\t\tonClick: Q,\n\t\t\t\t\t\tchildren: \"Create first product\"\n\t\t\t\t\t}) : null\n\t\t\t\t}) : Z.map((e) => /* @__PURE__ */ m(E, {\n\t\t\t\t\thover: !0,\n\t\t\t\t\tchildren: [\n\t\t\t\t\t\t/* @__PURE__ */ p(w, {\n\t\t\t\t\t\t\tsx: { maxWidth: 240 },\n\t\t\t\t\t\t\tchildren: /* @__PURE__ */ p(O, {\n\t\t\t\t\t\t\t\tvariant: \"body2\",\n\t\t\t\t\t\t\t\tsx: {\n\t\t\t\t\t\t\t\t\tfontWeight: 700,\n\t\t\t\t\t\t\t\t\twordBreak: \"break-word\"\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tchildren: e.name\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t}),\n\t\t\t\t\t\t/* @__PURE__ */ p(w, {\n\t\t\t\t\t\t\tsx: { maxWidth: 160 },\n\t\t\t\t\t\t\tchildren: /* @__PURE__ */ p(O, {\n\t\t\t\t\t\t\t\tvariant: \"caption\",\n\t\t\t\t\t\t\t\tcolor: \"text.secondary\",\n\t\t\t\t\t\t\t\tsx: { wordBreak: \"break-word\" },\n\t\t\t\t\t\t\t\tchildren: e.categoryName\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t}),\n\t\t\t\t\t\t/* @__PURE__ */ p(w, {\n\t\t\t\t\t\t\tsx: { maxWidth: 160 },\n\t\t\t\t\t\t\tchildren: /* @__PURE__ */ p(O, {\n\t\t\t\t\t\t\t\tvariant: \"caption\",\n\t\t\t\t\t\t\t\tcolor: \"text.secondary\",\n\t\t\t\t\t\t\t\tsx: { wordBreak: \"break-word\" },\n\t\t\t\t\t\t\t\tchildren: e.brandName\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t}),\n\t\t\t\t\t\t/* @__PURE__ */ p(w, { children: /* @__PURE__ */ p(v, {\n\t\t\t\t\t\t\tsize: \"small\",\n\t\t\t\t\t\t\tlabel: a(e.unit, e.unitOther, z),\n\t\t\t\t\t\t\tvariant: \"outlined\",\n\t\t\t\t\t\t\tsx: {\n\t\t\t\t\t\t\t\tfontWeight: 700,\n\t\t\t\t\t\t\t\tborderRadius: 1.5,\n\t\t\t\t\t\t\t\theight: 22\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}) }),\n\t\t\t\t\t\t/* @__PURE__ */ p(w, { children: e.hasExpiry ? /* @__PURE__ */ p(v, {\n\t\t\t\t\t\t\tsize: \"small\",\n\t\t\t\t\t\t\tlabel: \"Yes\",\n\t\t\t\t\t\t\tcolor: \"warning\",\n\t\t\t\t\t\t\tvariant: \"outlined\",\n\t\t\t\t\t\t\tsx: {\n\t\t\t\t\t\t\t\tfontWeight: 700,\n\t\t\t\t\t\t\t\tborderRadius: 1.5,\n\t\t\t\t\t\t\t\theight: 22\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}) : /* @__PURE__ */ p(v, {\n\t\t\t\t\t\t\tsize: \"small\",\n\t\t\t\t\t\t\tlabel: \"No\",\n\t\t\t\t\t\t\tvariant: \"outlined\",\n\t\t\t\t\t\t\tsx: {\n\t\t\t\t\t\t\t\tfontWeight: 700,\n\t\t\t\t\t\t\t\tborderRadius: 1.5,\n\t\t\t\t\t\t\t\theight: 22\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}) }),\n\t\t\t\t\t\t/* @__PURE__ */ p(w, { children: e.vaccineConfig ? /* @__PURE__ */ m(S, {\n\t\t\t\t\t\t\tdirection: \"row\",\n\t\t\t\t\t\t\talignItems: \"center\",\n\t\t\t\t\t\t\tspacing: 1,\n\t\t\t\t\t\t\tchildren: [/* @__PURE__ */ p(k, { sx: {\n\t\t\t\t\t\t\t\tfontSize: 18,\n\t\t\t\t\t\t\t\tcolor: \"info.main\"\n\t\t\t\t\t\t\t} }), /* @__PURE__ */ m(g, { children: [/* @__PURE__ */ p(O, {\n\t\t\t\t\t\t\t\tvariant: \"caption\",\n\t\t\t\t\t\t\t\tsx: {\n\t\t\t\t\t\t\t\t\tfontFamily: \"monospace\",\n\t\t\t\t\t\t\t\t\tfontWeight: 800,\n\t\t\t\t\t\t\t\t\tdisplay: \"block\",\n\t\t\t\t\t\t\t\t\tlineHeight: 1.2\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tchildren: e.vaccineConfig.vaccineCode\n\t\t\t\t\t\t\t}), /* @__PURE__ */ m(O, {\n\t\t\t\t\t\t\t\tvariant: \"caption\",\n\t\t\t\t\t\t\t\tcolor: \"text.secondary\",\n\t\t\t\t\t\t\t\tsx: { fontVariantNumeric: \"tabular-nums\" },\n\t\t\t\t\t\t\t\tchildren: [\n\t\t\t\t\t\t\t\t\te.vaccineConfig.vialVolumeMl,\n\t\t\t\t\t\t\t\t\te.unit === \"DROPS\" ? \" drops\" : \" ml\",\n\t\t\t\t\t\t\t\t\t\" · \",\n\t\t\t\t\t\t\t\t\te.vaccineConfig.singleDose ? \"single dose\" : `${(e.vaccineConfig.profiles ?? []).length} dose profile${(e.vaccineConfig.profiles ?? []).length === 1 ? \"\" : \"s\"}`\n\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t})] })]\n\t\t\t\t\t\t}) : /* @__PURE__ */ p(O, {\n\t\t\t\t\t\t\tvariant: \"caption\",\n\t\t\t\t\t\t\tcolor: \"text.disabled\",\n\t\t\t\t\t\t\tchildren: \"—\"\n\t\t\t\t\t\t}) }),\n\t\t\t\t\t\t/* @__PURE__ */ p(w, { children: /* @__PURE__ */ p(v, {\n\t\t\t\t\t\t\tsize: \"small\",\n\t\t\t\t\t\t\tlabel: e.isActive ? \"Active\" : \"Inactive\",\n\t\t\t\t\t\t\tcolor: e.isActive ? \"success\" : \"default\",\n\t\t\t\t\t\t\tvariant: e.isActive ? \"filled\" : \"outlined\",\n\t\t\t\t\t\t\tsx: {\n\t\t\t\t\t\t\t\tfontWeight: 700,\n\t\t\t\t\t\t\t\tborderRadius: 1.5,\n\t\t\t\t\t\t\t\theight: 22\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}) }),\n\t\t\t\t\t\t/* @__PURE__ */ p(w, {\n\t\t\t\t\t\t\talign: \"right\",\n\t\t\t\t\t\t\tchildren: R ? /* @__PURE__ */ p(_, {\n\t\t\t\t\t\t\t\tsize: \"small\",\n\t\t\t\t\t\t\t\tvariant: \"outlined\",\n\t\t\t\t\t\t\t\tonClick: () => L(`/ui/medplat/manage/pm/products/${e.id}`),\n\t\t\t\t\t\t\t\tchildren: \"Edit\"\n\t\t\t\t\t\t\t}) : null\n\t\t\t\t\t\t})\n\t\t\t\t\t]\n\t\t\t\t}, e.id)) })] })\n\t\t\t})]\n\t\t})\n\t})] });\n}\n//#endregion\nexport { L as default };\n\n//# sourceMappingURL=ProductsPage-DvNHIeZt.js.map"],"names":["L","P","R","s","z","d","B","V","f","H","U","W","G","K","q","J","Y","X","e","t","_b","_a","n","l","Z","_c","_e","_d","Q","A","m","g","p","c","u","o","S","_","M","j","h","y","N","O","D","b","I","r","T","E","w","C","x","i","F","v","a","k"],"mappings":";;;;;;;;;;;;;;;AAiBA,SAASA,KAAI;AACZ,MAAIA,IAAIC,GAAC,GAAIC,IAAIC,EAAC,EAAG,IAAI,yCAAyC,GAAG,EAAE,cAAcC,MAAMC,EAAC,GAAI,CAACC,GAAGC,CAAC,IAAIC,EAAE,EAAE,GAAG,CAACC,GAAGC,CAAC,IAAIF,EAAE,EAAE,GAAG,CAACG,GAAGC,CAAC,IAAIJ,EAAE,EAAE,GAAG,CAACK,GAAGC,CAAC,IAAIN,EAAE,EAAE,GAAG,CAACO,GAAGC,CAAC,IAAIR,EAAE,EAAE;AAC7K,iBAAeS,IAAI;;AAClB,IAAAP,EAAE,EAAE,GAAGE,EAAE,EAAE;AACX,QAAI;AACHL,M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