@feedmepos/mf-inventory-portal 1.2.61 → 1.2.63-dev.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (124) hide show
  1. package/dist/{App-BqScGtJx.js → App-BHssUobV.js} +82 -78
  2. package/dist/{ApprovalView-BFdlYIot.js → ApprovalView-DRGCQeGY.js} +5 -5
  3. package/dist/{BindingsDialog-Dvmrms77.js → BindingsDialog-CWl3LpdO.js} +5 -5
  4. package/dist/{BindingsPicker-fPVSXv-h.js → BindingsPicker-BcASw3JJ.js} +3 -3
  5. package/dist/{BindingsTable-CnUa8VOi.js → BindingsTable-BiKiLiVY.js} +5 -5
  6. package/dist/{ClosingDraftView-10BcpWkm.js → ClosingDraftView-mh5Kw46x.js} +217 -216
  7. package/dist/{ClosingHistoryView-zLh0HCIb.js → ClosingHistoryView-C-ZrFei9.js} +36 -36
  8. package/dist/{ClosingTemplateView-BFupX87V.js → ClosingTemplateView-DBNRH0Tt.js} +14 -14
  9. package/dist/{DeliveryOrderPrintPreview-BLBqmOjw.js → DeliveryOrderPrintPreview-Dv3JZ3yr.js} +7 -7
  10. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DN8ziFA_.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CfL1adhx.js} +16 -16
  11. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DJT_7Uus.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-Db0JeXbc.js} +2 -2
  12. package/dist/{FmMultiselectDialog-DmnYEmN1.js → FmMultiselectDialog-D9g07F_c.js} +1 -1
  13. package/dist/{FmMultiselectDialog-B5paZk6T.js → FmMultiselectDialog-DuYKQng9.js} +16 -16
  14. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-MW749j29.js → FmUnitInput.vue_vue_type_script_setup_true_lang-CeXRT7Lf.js} +23 -22
  15. package/dist/{ImportView-BsI1_unJ.js → ImportView-DoMyJ1NE.js} +6 -6
  16. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-D8hvH-4n.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-CqJQcOBK.js} +1 -1
  17. package/dist/{IngredientGroupView-BALVTSwF.js → IngredientGroupView-D_Cl4kJy.js} +5 -5
  18. package/dist/{IngredientsView-C-sauieO.js → IngredientsView-CG6wUGzt.js} +25 -24
  19. package/dist/{IntegrationView-GG2E4Yrl.js → IntegrationView-BIWPp1JH.js} +18 -17
  20. package/dist/{InventoryBindingForm-DCSBFj6b.js → InventoryBindingForm-BrL6-2He.js} +1 -1
  21. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-4_i25unG.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-M3uVquEq.js} +17 -16
  22. package/dist/{InventoryBindingSummary-6dFJPewB.js → InventoryBindingSummary-mnlQU1Mp.js} +1 -1
  23. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CU9mgYbv.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-ByPOKZRm.js} +5 -5
  24. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-DC1HpuMm.js → PremiumBadge.vue_vue_type_script_setup_true_lang-DHwXNoTs.js} +2 -2
  25. package/dist/{PublishView-DO7k1AeP.js → PublishView-B4iVMq25.js} +8 -8
  26. package/dist/{PurchaseOrderPrintPreview-C3VqOLCi.js → PurchaseOrderPrintPreview-ws-SKrEC.js} +11 -11
  27. package/dist/{ReceiveRequestView-CpgLQtbw.js → ReceiveRequestView-deSiORNX.js} +143 -142
  28. package/dist/RecipeView-EEK7PiKl.js +1558 -0
  29. package/dist/{StockView-CtC3ldc6.js → StockView-6j_t2Kf1.js} +106 -105
  30. package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Cj6cVmd0.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-CgAMsW8n.js} +1 -1
  31. package/dist/{SupplierView-DKFtc22j.js → SupplierView-D5tSOECx.js} +20 -19
  32. package/dist/{SurchargeView-B-EYMp6w.js → SurchargeView-CP81Q4dW.js} +6 -6
  33. package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-CDeeFvnm.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-Bmuw4PTO.js} +2 -2
  34. package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CH3hjFS8.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-D1FuB-kv.js} +1 -1
  35. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-rAyYuhku.js → TransferDetails.vue_vue_type_script_setup_true_lang-Canrz2ri.js} +501 -501
  36. package/dist/{TransferTemplateView-FeC34QoJ.js → TransferTemplateView-CRI_Lexa.js} +22 -21
  37. package/dist/UnitCostHistoryView-CT-4QDK8.js +651 -0
  38. package/dist/{UnitView-BoJisnXd.js → UnitView-BZmfd-aw.js} +11 -10
  39. package/dist/{WarehouseView-s-xF6xJ0.js → WarehouseView-BcmSyjA0.js} +5 -5
  40. package/dist/{WastageTemplateView-BQBlHZLh.js → WastageTemplateView-CNsdu0ga.js} +14 -14
  41. package/dist/api/inventory.d.ts +126 -36
  42. package/dist/api/netsuite.d.ts +8 -1
  43. package/dist/api/unit-cost-history.d.ts +28 -0
  44. package/dist/{app-_4kRbuQl.js → app-ayv5Jw7D.js} +8041 -7036
  45. package/dist/app.d.ts +228 -0
  46. package/dist/app.js +1 -1
  47. package/dist/{closing-template-BBWYKm_X.js → closing-template-D9UR8sMo.js} +1 -1
  48. package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +37 -1
  49. package/dist/components/shell/inventory/binding-dialog.vue.d.ts +14 -0
  50. package/dist/components/shell/inventory/binding-ui.vue.d.ts +16 -1
  51. package/dist/{date2-Cd93SZu4.js → date2-GNP-79dA.js} +1 -1
  52. package/dist/{dayjs.min-DeHn_Fz-.js → dayjs.min-Bg_wgP2J.js} +16 -16
  53. package/dist/{defineDeepModel-DUOLQh1E.js → defineDeepModel-Co03tZfS.js} +1 -1
  54. package/dist/{duplicate-template-BgpMF-fd.js → duplicate-template-BiPU4Z2Y.js} +1 -1
  55. package/dist/{feature-DqGkM6Yx.js → feature-BGeFfaiX.js} +95 -90
  56. package/dist/{format-time-from-id-BkH4swoc.js → format-time-from-id-ByV0VX1x.js} +1 -1
  57. package/dist/{format-unit-display-rkrD3WLD.js → format-unit-display-r1Hb4DfH.js} +16 -15
  58. package/dist/{import-export.helper-C8Q4AMQx.js → import-export.helper-PB9pPO3m.js} +16 -15
  59. package/dist/{index-B3m_9m2a.js → index-ClbYCYSU.js} +3 -3
  60. package/dist/{index-O5M93j6z.js → index-DMqOVOHw.js} +1 -1
  61. package/dist/{index-B0WTs-3a.js → index-DWWlEK_r.js} +1471 -1412
  62. package/dist/{lodash-Dj6GdEkm.js → lodash-BbWPSHMM.js} +1 -1
  63. package/dist/{netsuite-DpQxb3vH.js → netsuite-VGghPz8h.js} +92 -92
  64. package/dist/number-DPuTdA-J.js +232 -0
  65. package/dist/{purchase-order-template-DKuo07gT.js → purchase-order-template-BMNxJR59.js} +1 -1
  66. package/dist/router/name.d.ts +1 -0
  67. package/dist/rules-CyF-4tvp.js +98 -0
  68. package/dist/stock-D1SElOsp.js +75 -0
  69. package/dist/{stock-D7HQf4-H.js → stock-b7nNc6ko.js} +1 -1
  70. package/dist/stores/feature.d.ts +2 -0
  71. package/dist/stores/integration/netsuite.d.ts +8 -1
  72. package/dist/stores/inventory.d.ts +119 -30
  73. package/dist/{supplier-B3kE2tbF.js → supplier-Dm-bxVXL.js} +2 -2
  74. package/dist/{surcharge-Cc9vownX.js → surcharge-ZM-_XIvY.js} +1 -1
  75. package/dist/tsconfig.app.tsbuildinfo +1 -1
  76. package/dist/{use-ingredient-select-dialog-MnUTm-3P.js → use-ingredient-select-dialog-BYxTRqif.js} +2 -2
  77. package/dist/{use-inventory-binding-dialog-_J9LNiGo.js → use-inventory-binding-dialog-Dg9Mp0Vk.js} +2 -2
  78. package/dist/{use-template-enabled-locations-2-B9gbuIPM.js → use-template-enabled-locations-2-BmgcViqJ.js} +2 -2
  79. package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +64 -8
  80. package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +192 -24
  81. package/dist/views/closing-template/components/closing-template-form/composables/use-closing-template-items.d.ts +8 -1
  82. package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +96 -12
  83. package/dist/views/closing-template/composables/use-closing-template-table.d.ts +96 -12
  84. package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +18 -18
  85. package/dist/views/ingredients/components/convert/ConvertForm.vue.d.ts +14 -0
  86. package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +32 -4
  87. package/dist/views/ingredients/components/inventory-binding/InventoryBindingForm.vue.d.ts +28 -0
  88. package/dist/views/ingredients/components/inventory-binding/v2/InventoryBindingFormV2.vue.d.ts +169 -0
  89. package/dist/views/ingredients/components/inventory-binding/v2/components/InventoryBindingAlternative.vue.d.ts +43 -0
  90. package/dist/views/ingredients/components/inventory-binding/v2/components/InventoryBindingRule.vue.d.ts +25 -0
  91. package/dist/views/ingredients/components/inventory-binding/v2/components/InventoryRecipeBindingV2Field.vue.d.ts +125 -0
  92. package/dist/views/ingredients/components/inventory-binding/v2/components/InventorySkuBindingV2Field.vue.d.ts +129 -0
  93. package/dist/views/ingredients/components/inventory-binding/v2/composables/use-inventory-binding-alternative-table.d.ts +30 -0
  94. package/dist/views/ingredients/components/inventory-binding/v2/composables/use-inventory-binding-dialog.d.ts +4 -0
  95. package/dist/views/ingredients/composables/use-ingredient-table.d.ts +8 -1
  96. package/dist/views/integration/components/netsuite/InventoryTransferIngredientTable.vue.d.ts +16 -2
  97. package/dist/views/receive-request/components/transfer-form/TransferFormWithController.vue.d.ts +33 -5
  98. package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +16 -2
  99. package/dist/views/receive-request/components/transfer-form/components/TransferItemTable.vue.d.ts +32 -4
  100. package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +8 -1
  101. package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +41 -6
  102. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +246 -36
  103. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +287 -42
  104. package/dist/views/recipe/components/recipe-form/RecipeForm.vue.d.ts +16 -0
  105. package/dist/views/stock/components/StockRecordCard.vue.d.ts +1 -0
  106. package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +16 -2
  107. package/dist/views/transfer-template/components/transfer-template-dialog/TransferTemplateDialog.vue.d.ts +16 -2
  108. package/dist/views/transfer-template/components/transfer-template-form/components/NetSuiteCustomCodeSelection.vue.d.ts +16 -2
  109. package/dist/views/transfer-template/components/transfer-template-form/components/TransferTemplateItemTable.vue.d.ts +16 -2
  110. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +8 -1
  111. package/dist/views/transfer-template/composables/use-netsuite-custom-field.d.ts +24 -3
  112. package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +96 -12
  113. package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +96 -12
  114. package/dist/views/unit-cost-history/UnitCostHistoryView.vue.d.ts +2 -0
  115. package/dist/views/unit-cost-history/components/UnitCostDetailsSideSheet.vue.d.ts +19 -0
  116. package/dist/views/unit-cost-history/components/UnitCostRecalculationDialog.vue.d.ts +11 -0
  117. package/dist/views/unit-cost-history/composables/use-unit-cost-history.d.ts +65 -0
  118. package/dist/{vue-i18n-BvsTy4Fg.js → vue-i18n-BwxQzDKn.js} +535 -535
  119. package/dist/{xlsx-BvjocXXw.js → xlsx-dJMIfias.js} +1 -1
  120. package/dist/{xlsx.util-D65Nsat4.js → xlsx.util-dclbjq8C.js} +1 -1
  121. package/package.json +3 -3
  122. package/dist/RecipeView-C2D7FdzN.js +0 -646
  123. package/dist/rules-D6o4zK8x.js +0 -327
  124. package/dist/stock-DLFjfcAv.js +0 -75
@@ -1,26 +1,27 @@
1
- import { defineComponent as me, ref as z, computed as Y, resolveComponent as H, openBlock as j, createBlock as X, withCtx as U, createElementVNode as e, normalizeClass as ge, toDisplayString as p, createVNode as y, createElementBlock as W, Fragment as le, renderList as ce, unref as a, h as ke, watch as $e, isRef as Ee, createCommentVNode as se, reactive as ut, mergeModels as Qe, useModel as bt, onMounted as qe, createTextVNode as pe, normalizeStyle as ct, Teleport as xt, normalizeProps as Le, mergeProps as ze } from "vue";
1
+ import { defineComponent as me, ref as z, computed as Y, resolveComponent as U, openBlock as j, createBlock as X, withCtx as H, createElementVNode as e, normalizeClass as ge, toDisplayString as p, createVNode as y, createElementBlock as W, Fragment as le, renderList as ce, unref as a, h as ke, watch as $e, isRef as Ee, createCommentVNode as se, reactive as ut, mergeModels as Qe, useModel as bt, onMounted as qe, createTextVNode as pe, normalizeStyle as ct, Teleport as xt, normalizeProps as Le, mergeProps as ze } from "vue";
2
2
  import { F as Xe, u as St, _ as wt } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-CWZkVCAj.js";
3
- import { u as xe, c as Pe, a as Re, F as Ze, H as Ft, D as ae, v as At, o as $t, B as Vt, w as Q, h as De, i as et, e as tt, I as he } from "./app-_4kRbuQl.js";
4
- import { u as Oe } from "./stock-DLFjfcAv.js";
3
+ import { u as xe, c as Pe, a as Re, F as Ze, w as Ft, G as ae, v as At, o as $t, D as Vt, y as Q, h as De, i as et, e as tt, J as he } from "./app-ayv5Jw7D.js";
4
+ import { u as Oe } from "./stock-D1SElOsp.js";
5
5
  import { c as Ct } from "./component-DpCUABT3.js";
6
- import { i as Ve, g as Ce, a as _e, f as Dt, t as Ie, h as Te, A as jt, M as Mt, d as be, j as Bt, k as nt, l as dt, m as Je, R as It, e as Me, o as Tt } from "./rules-D6o4zK8x.js";
7
- import { d as ye } from "./dayjs.min-DeHn_Fz-.js";
8
- import { e as Ht, u as mt, i as He, _ as ot } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-DC1HpuMm.js";
9
- import { _ as Ke, S as Ge, g as ft, a as Ut } from "./SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Cj6cVmd0.js";
10
- import { _ as Et } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
6
+ import { f as Ve, g as Ce, a as _e, e as Dt, t as Ie, c as be, h as jt, i as nt, j as dt, k as Je, d as Me, l as Mt } from "./number-DPuTdA-J.js";
7
+ import { d as ye } from "./dayjs.min-Bg_wgP2J.js";
8
+ import { e as Bt, u as mt, i as Te, _ as ot } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-DHwXNoTs.js";
9
+ import { _ as Ke, S as Ge, g as ft, a as It } from "./SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-CgAMsW8n.js";
10
+ import { _ as Tt } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
11
11
  import { useI18n as fe, useCoreStore as pt } from "@feedmepos/mf-common";
12
- import { useSnackbar as Se, useDialog as Ne, useProxiedModel as Ye, useBreakpoints as Pt } from "@feedmepos/ui-library";
13
- import { defineStore as Rt } from "pinia";
14
- import { u as we } from "./stock-D7HQf4-H.js";
15
- import { u as Ot } from "./use-inventory-binding-dialog-_J9LNiGo.js";
16
- import { a as vt } from "./FmMultiselectDialog-B5paZk6T.js";
17
- import { _ as Nt } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CU9mgYbv.js";
18
- import { a as Yt, b as Lt, f as yt, t as st, c as at, p as zt, n as Gt, d as Wt } from "./date2-Cd93SZu4.js";
19
- import { i as Kt, _ as qt } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DJT_7Uus.js";
12
+ import { useSnackbar as Se, useDialog as Ne, useProxiedModel as Ye, useBreakpoints as Ut } from "@feedmepos/ui-library";
13
+ import { defineStore as Ht } from "pinia";
14
+ import { u as we } from "./stock-b7nNc6ko.js";
15
+ import { c as Ue, A as Et, M as Pt, R as Rt } from "./rules-CyF-4tvp.js";
16
+ import { u as Ot } from "./use-inventory-binding-dialog-Dg9Mp0Vk.js";
17
+ import { a as vt } from "./FmMultiselectDialog-DuYKQng9.js";
18
+ import { _ as Nt } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-ByPOKZRm.js";
19
+ import { a as Yt, b as Lt, f as yt, t as st, c as at, p as zt, n as Gt, d as Wt } from "./date2-GNP-79dA.js";
20
+ import { i as Kt, _ as qt } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-Db0JeXbc.js";
20
21
  import { E as Xt } from "./empty-placeholder-wf6-BWE8.js";
21
- import { F as ve, u as Jt } from "./feature-DqGkM6Yx.js";
22
+ import { F as ve, u as Jt } from "./feature-BGeFfaiX.js";
22
23
  import { _ as Qt, F as lt } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-Ca_eYa8-.js";
23
- import { u as Zt } from "./netsuite-DpQxb3vH.js";
24
+ import { u as Zt } from "./netsuite-VGghPz8h.js";
24
25
  import { P as en, J as tn } from "./app-DiX-EfV6.js";
25
26
  var Be = /* @__PURE__ */ ((h) => (h.History = "History", h.Convert = "Convert", h.Adjust = "Adjust", h))(Be || {});
26
27
  const nn = [
@@ -55,7 +56,7 @@ async function sn(h) {
55
56
  / /g,
56
57
  "_"
57
58
  )}_${ye().format("DD_MM_YYYY_HHmm")}.xlsx`;
58
- await Ht(
59
+ await Bt(
59
60
  [
60
61
  {
61
62
  name: "stock",
@@ -72,7 +73,7 @@ async function sn(h) {
72
73
  {
73
74
  name: "Balance",
74
75
  selector: (s) => {
75
- const M = Ue(s, s.unit);
76
+ const M = He(s, s.unit);
76
77
  return M.type === "unit" ? Ve(s.balance, s.unit, null, !1) : Ve(s.balance, s.unit, M.measurement, !1);
77
78
  }
78
79
  },
@@ -80,7 +81,7 @@ async function sn(h) {
80
81
  name: "Unit",
81
82
  selector: (s) => {
82
83
  var w;
83
- const M = Ue(s, s.unit);
84
+ const M = He(s, s.unit);
84
85
  return M.type === "unit" ? s.unit.abbrev : ((w = s.unit.measurements.find((c) => c.id === M.measurement)) == null ? void 0 : w.abbrev) || "";
85
86
  }
86
87
  }
@@ -90,7 +91,7 @@ async function sn(h) {
90
91
  d
91
92
  );
92
93
  }
93
- function Ue(h, m) {
94
+ function He(h, m) {
94
95
  const d = localStorage.getItem(`uom:${h._id}`);
95
96
  return d ? d === m._id ? {
96
97
  type: "unit"
@@ -120,9 +121,9 @@ const an = { class: "fm-typo-en-body-md-400 flex-grow" }, _t = /* @__PURE__ */ m
120
121
  }
121
122
  function d(B) {
122
123
  const b = m(s.sku);
123
- B ? localStorage.setItem(b, B) : localStorage.setItem(b, s.unit._id), M.value = Ue(s.sku, s.unit);
124
+ B ? localStorage.setItem(b, B) : localStorage.setItem(b, s.unit._id), M.value = He(s.sku, s.unit);
124
125
  }
125
- const s = h, M = z(Ue(s.sku, s.unit)), w = Y(() => {
126
+ const s = h, M = z(He(s.sku, s.unit)), w = Y(() => {
126
127
  const { measurements: B } = s.unit;
127
128
  return [
128
129
  {
@@ -145,12 +146,12 @@ const an = { class: "fm-typo-en-body-md-400 flex-grow" }, _t = /* @__PURE__ */ m
145
146
  }
146
147
  ), g = z(!1);
147
148
  return (B, b) => {
148
- const r = H("FmIcon"), v = H("FmMenuItem"), T = H("FmMenu");
149
+ const r = U("FmIcon"), v = U("FmMenuItem"), T = U("FmMenu");
149
150
  return j(), X(T, {
150
151
  "stop-click-propagation": "",
151
152
  onMenuChanged: b[0] || (b[0] = (k) => g.value = k)
152
153
  }, {
153
- "menu-button": U(() => [
154
+ "menu-button": H(() => [
154
155
  e("button", {
155
156
  type: "button",
156
157
  class: ge([
@@ -165,7 +166,7 @@ const an = { class: "fm-typo-en-body-md-400 flex-grow" }, _t = /* @__PURE__ */ m
165
166
  })
166
167
  ], 2)
167
168
  ]),
168
- default: U(() => [
169
+ default: H(() => [
169
170
  (j(!0), W(le, null, ce(w.value, (k) => (j(), X(v, {
170
171
  key: k.value ?? 0,
171
172
  label: k.label,
@@ -181,14 +182,14 @@ const an = { class: "fm-typo-en-body-md-400 flex-grow" }, _t = /* @__PURE__ */ m
181
182
  __name: "StockHeaderPreview",
182
183
  setup(h) {
183
184
  const { t: m } = fe();
184
- return (d, s) => (j(), X(Et, null, {
185
- default: U(() => [
185
+ return (d, s) => (j(), X(Tt, null, {
186
+ default: H(() => [
186
187
  e("div", ln, p(a(m)("inventory.stock.prediction.daysRemaining")), 1)
187
188
  ]),
188
189
  _: 1
189
190
  }));
190
191
  }
191
- }), kt = Rt("stockActions", () => {
192
+ }), kt = Ht("stockActions", () => {
192
193
  const h = z(!1), m = xe(), d = Oe(), s = mt(), M = Se(), w = Ne(), { t: c } = fe();
193
194
  async function l() {
194
195
  if (m._currentLocation) {
@@ -447,7 +448,7 @@ const dn = { class: "flex items-center" }, mn = { class: "fm-typo-en-title-md-80
447
448
  const $ = (E = s.sku.convert) != null && E.measurement ? s.sku.unit.measurements.find((_) => {
448
449
  var i;
449
450
  return _.id === ((i = s.sku.convert) == null ? void 0 : i.measurement);
450
- }) ?? null : null, G = Ce(s.sku.unit, $), P = Bt(+f);
451
+ }) ?? null : null, G = Ce(s.sku.unit, $), P = jt(+f);
451
452
  return rt(P).isInteger().max(G).error ? "Precision cannot be more than " + G : !0;
452
453
  }
453
454
  const S = Y(
@@ -579,32 +580,32 @@ const dn = { class: "flex items-center" }, mn = { class: "fm-typo-en-title-md-80
579
580
  f || (r.value = null, b.value = 0);
580
581
  }
581
582
  ), (f, $) => {
582
- const G = H("FmTextField"), P = H("FmForm"), L = H("FmCard"), E = H("FmSwitch"), _ = H("FmFormGroup"), i = H("FmSelect"), V = H("FmButton"), C = H("FmSideSheet");
583
+ const G = U("FmTextField"), P = U("FmForm"), L = U("FmCard"), E = U("FmSwitch"), _ = U("FmFormGroup"), i = U("FmSelect"), V = U("FmButton"), C = U("FmSideSheet");
583
584
  return j(), X(C, {
584
585
  "dismiss-away": "",
585
586
  modelValue: a(I),
586
587
  "onUpdate:modelValue": $[3] || ($[3] = (u) => Ee(I) ? I.value = u : null),
587
588
  "max-width": 500
588
589
  }, {
589
- "side-sheet-header": U(() => [
590
+ "side-sheet-header": H(() => [
590
591
  e("div", dn, [
591
592
  e("div", mn, p(a(B)("inventory.stock.convert.title", { name: f.sku.name })), 1)
592
593
  ])
593
594
  ]),
594
- default: U(() => [
595
+ default: H(() => [
595
596
  e("div", fn, [
596
597
  y(P, {
597
598
  ref_key: "formRef",
598
599
  ref: A,
599
600
  onValidationSuccess: o
600
601
  }, {
601
- default: U(() => [
602
+ default: H(() => [
602
603
  y(G, {
603
604
  disabled: x.value,
604
605
  "model-value": b.value,
605
606
  "onUpdate:modelValue": $[0] || ($[0] = (u) => b.value = u),
606
607
  label: a(B)("inventory.stock.convert.amount"),
607
- rules: [t, n, a(Te)(0)],
608
+ rules: [t, n, a(Ue)(0)],
608
609
  "append-text": S.value,
609
610
  "helper-text": r.value ? void 0 : `Max ${f.maxCount} ${S.value}`
610
611
  }, null, 8, ["disabled", "model-value", "label", "rules", "append-text", "helper-text"])
@@ -615,7 +616,7 @@ const dn = { class: "flex items-center" }, mn = { class: "fm-typo-en-title-md-80
615
616
  variant: "outlined",
616
617
  class: "p-16"
617
618
  }, {
618
- default: U(() => [
619
+ default: H(() => [
619
620
  e("div", pn, [
620
621
  e("div", vn, p(a(B)("inventory.stock.convert.deductionSummary")), 1),
621
622
  (j(!0), W(le, null, ce(D.value, (u) => {
@@ -633,7 +634,7 @@ const dn = { class: "flex items-center" }, mn = { class: "fm-typo-en-title-md-80
633
634
  _: 1
634
635
  }),
635
636
  y(L, { variant: "outlined" }, {
636
- default: U(() => [
637
+ default: H(() => [
637
638
  e("div", kn, [
638
639
  y(E, {
639
640
  value: "",
@@ -645,7 +646,7 @@ const dn = { class: "flex items-center" }, mn = { class: "fm-typo-en-title-md-80
645
646
  k.value ? (j(), W(le, { key: 0 }, [
646
647
  y(_, {
647
648
  modelValue: r.value,
648
- rules: [a(jt)(1, "Must have at least one ingredient binding")]
649
+ rules: [a(Et)(1, "Must have at least one ingredient binding")]
649
650
  }, null, 8, ["modelValue", "rules"]),
650
651
  e("div", hn, [
651
652
  e("div", gn, p(a(B)("inventory.stock.convert.ingredients")), 1),
@@ -654,14 +655,14 @@ const dn = { class: "flex items-center" }, mn = { class: "fm-typo-en-title-md-80
654
655
  disabled: x.value,
655
656
  modelValue: +a(_e)(u.amount ?? { amount: 1, precision: 0 }),
656
657
  rules: [
657
- a(Mt)(
658
+ a(Pt)(
658
659
  v.value.find((F) => F._id === u.id).unit,
659
660
  u.measurement
660
661
  ),
661
- a(Te)(0)
662
+ a(Ue)(0)
662
663
  ]
663
664
  }, {
664
- default: U(({ invalid: F }) => {
665
+ default: H(({ invalid: F }) => {
665
666
  var N, ne, re;
666
667
  return [
667
668
  e("div", bn, [
@@ -683,7 +684,7 @@ const dn = { class: "flex items-center" }, mn = { class: "fm-typo-en-title-md-80
683
684
  "onUpdate:modelValue": (J) => q(u.id, J, r.value ?? []),
684
685
  invalid: F
685
686
  }, {
686
- "helper-text": U(() => $[4] || ($[4] = [])),
687
+ "helper-text": H(() => $[4] || ($[4] = [])),
687
688
  _: 2
688
689
  }, 1032, ["disabled", "items", "model-value", "onUpdate:modelValue", "invalid"]),
689
690
  y(V, {
@@ -714,7 +715,7 @@ const dn = { class: "flex items-center" }, mn = { class: "fm-typo-en-title-md-80
714
715
  })
715
716
  ])
716
717
  ]),
717
- "side-sheet-footer": U(() => [
718
+ "side-sheet-footer": H(() => [
718
719
  e("div", Sn, [
719
720
  y(V, {
720
721
  loading: x.value,
@@ -840,12 +841,12 @@ const We = {
840
841
  () => Ve(k.value, d.modelValue.doc.unit)
841
842
  ), o = Y(() => T.value.amount < 0);
842
843
  return (t, n) => {
843
- const S = H("FmButton"), D = H("FmSelect"), A = H("FmTextarea"), I = H("FmCard");
844
+ const S = U("FmButton"), D = U("FmSelect"), A = U("FmTextarea"), I = U("FmCard");
844
845
  return j(), X(I, {
845
846
  variant: "outlined",
846
847
  class: "grid grid-cols-2 gap-8 p-16"
847
848
  }, {
848
- default: U(() => [
849
+ default: H(() => [
849
850
  e("div", Fn, [
850
851
  e("div", An, [
851
852
  e("div", $n, p(t.modelValue.doc.name), 1),
@@ -864,7 +865,7 @@ const We = {
864
865
  items: c.value,
865
866
  modelValue: g.value,
866
867
  "onUpdate:modelValue": n[1] || (n[1] = (R) => g.value = R),
867
- rules: [a(It)()],
868
+ rules: [a(Rt)()],
868
869
  "label-mark": "required"
869
870
  }, null, 8, ["disabled", "items", "modelValue", "rules"]),
870
871
  y(Nt, {
@@ -876,7 +877,7 @@ const We = {
876
877
  }),
877
878
  modelValue: B.value,
878
879
  "onUpdate:modelValue": n[2] || (n[2] = (R) => B.value = R),
879
- rules: [a(Te)(0)]
880
+ rules: [a(Ue)(0)]
880
881
  }, null, 8, ["disabled", "step", "modelValue", "rules"]),
881
882
  y(D, {
882
883
  disabled: t.disabled,
@@ -904,7 +905,7 @@ const We = {
904
905
  });
905
906
  };
906
907
  }
907
- }), jn = { class: "flex items-center" }, Mn = { class: "fm-typo-en-title-md-800" }, Bn = { class: "flex items-center" }, In = { class: "fm-typo-en-title-sm-800 flex-1" }, Tn = { class: "flex gap-8" }, Hn = /* @__PURE__ */ me({
908
+ }), jn = { class: "flex items-center" }, Mn = { class: "fm-typo-en-title-md-800" }, Bn = { class: "flex items-center" }, In = { class: "fm-typo-en-title-sm-800 flex-1" }, Tn = { class: "flex gap-8" }, Un = /* @__PURE__ */ me({
908
909
  __name: "AdjustSkuDialog",
909
910
  props: {
910
911
  stock: {},
@@ -1022,26 +1023,26 @@ const We = {
1022
1023
  k.adjustments.splice(n, 1);
1023
1024
  }
1024
1025
  return (n, S) => {
1025
- const D = H("FmTextarea"), A = H("FmButton"), I = H("FmForm"), R = H("FmSideSheet");
1026
+ const D = U("FmTextarea"), A = U("FmButton"), I = U("FmForm"), R = U("FmSideSheet");
1026
1027
  return j(), X(R, {
1027
1028
  modelValue: a(T),
1028
1029
  "onUpdate:modelValue": S[2] || (S[2] = (K) => Ee(T) ? T.value = K : null),
1029
1030
  "dismiss-away": "",
1030
1031
  "max-width": 500
1031
1032
  }, {
1032
- "side-sheet-header": U(() => [
1033
+ "side-sheet-header": H(() => [
1033
1034
  e("div", jn, [
1034
1035
  e("div", Mn, p(a(b)("inventory.stock.adjust.title")), 1)
1035
1036
  ])
1036
1037
  ]),
1037
- default: U(() => [
1038
+ default: H(() => [
1038
1039
  y(I, {
1039
1040
  class: "w-full flex flex-col gap-12",
1040
1041
  ref_key: "formRef",
1041
1042
  ref: v,
1042
1043
  onValidationSuccess: r
1043
1044
  }, {
1044
- default: U(() => [
1045
+ default: H(() => [
1045
1046
  y(D, {
1046
1047
  label: a(b)("inventory.stock.adjust.remark"),
1047
1048
  modelValue: k.remark,
@@ -1066,7 +1067,7 @@ const We = {
1066
1067
  _: 1
1067
1068
  }, 512)
1068
1069
  ]),
1069
- "side-sheet-footer": U(() => [
1070
+ "side-sheet-footer": H(() => [
1070
1071
  e("div", Tn, [
1071
1072
  y(A, {
1072
1073
  label: a(b)("inventory.stock.adjust.adjustButton"),
@@ -1082,7 +1083,7 @@ const We = {
1082
1083
  }, 8, ["modelValue"]);
1083
1084
  };
1084
1085
  }
1085
- }), Un = { class: "flex items-center w-full gap-8" }, En = { class: "fm-typo-en-title-md-800 flex-1" }, Pn = { class: "flex flex-col gap-16" }, Rn = { class: "flex flex-col gap-4" }, On = { class: "fm-typo-en-body-md-600" }, Nn = { class: "flex gap-8 items-start" }, Yn = { class: "flex-1 min-w-0" }, Ln = { class: "flex-1 min-w-0" }, zn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Gn = { class: "flex items-center" }, Wn = { class: "fm-typo-en-title-sm-800 flex-1" }, Kn = { class: "flex gap-8" }, qn = /* @__PURE__ */ me({
1086
+ }), Hn = { class: "flex items-center w-full gap-8" }, En = { class: "fm-typo-en-title-md-800 flex-1" }, Pn = { class: "flex flex-col gap-16" }, Rn = { class: "flex flex-col gap-4" }, On = { class: "fm-typo-en-body-md-600" }, Nn = { class: "flex gap-8 items-start" }, Yn = { class: "flex-1 min-w-0" }, Ln = { class: "flex-1 min-w-0" }, zn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Gn = { class: "flex items-center" }, Wn = { class: "fm-typo-en-title-sm-800 flex-1" }, Kn = { class: "flex gap-8" }, qn = /* @__PURE__ */ me({
1086
1087
  __name: "StockAdjustmentSideSheet",
1087
1088
  props: {
1088
1089
  show: { type: Boolean }
@@ -1194,7 +1195,7 @@ const We = {
1194
1195
  }
1195
1196
  }
1196
1197
  return (D, A) => {
1197
- const I = H("FmTextarea"), R = H("FmDatePicker"), K = H("FmTimePicker"), O = H("FmButton"), Z = H("FmSideSheet");
1198
+ const I = U("FmTextarea"), R = U("FmDatePicker"), K = U("FmTimePicker"), O = U("FmButton"), Z = U("FmSideSheet");
1198
1199
  return j(), X(Z, {
1199
1200
  modelValue: a(B),
1200
1201
  "onUpdate:modelValue": A[4] || (A[4] = (q) => Ee(B) ? B.value = q : null),
@@ -1202,12 +1203,12 @@ const We = {
1202
1203
  "max-width": 560,
1203
1204
  onAfterEnter: x
1204
1205
  }, {
1205
- "side-sheet-header": U(() => [
1206
- e("div", Un, [
1206
+ "side-sheet-header": H(() => [
1207
+ e("div", Hn, [
1207
1208
  e("div", En, p(a(M)("inventory.stock.stock_adjustment.title")), 1)
1208
1209
  ])
1209
1210
  ]),
1210
- default: U(() => [
1211
+ default: H(() => [
1211
1212
  e("div", Pn, [
1212
1213
  y(I, {
1213
1214
  label: a(M)("inventory.stock.adjust.remark"),
@@ -1255,7 +1256,7 @@ const We = {
1255
1256
  }, null, 8, ["modelValue", "onUpdate:modelValue", "onClick:delete"]))), 128))
1256
1257
  ])
1257
1258
  ]),
1258
- "side-sheet-footer": U(() => [
1259
+ "side-sheet-footer": H(() => [
1259
1260
  e("div", Kn, [
1260
1261
  y(O, {
1261
1262
  label: a(M)("common.confirm"),
@@ -1364,15 +1365,15 @@ const We = {
1364
1365
  return n ? ve.toFormatString({ value: n }) : "N/A";
1365
1366
  }
1366
1367
  return (o, t) => {
1367
- const n = H("FmIcon"), S = H("FmStepperField"), D = H("FmCard"), A = H("FmForm"), I = H("FmSpacer"), R = H("FmButton"), K = H("FmDialog");
1368
+ const n = U("FmIcon"), S = U("FmStepperField"), D = U("FmCard"), A = U("FmForm"), I = U("FmSpacer"), R = U("FmButton"), K = U("FmDialog");
1368
1369
  return j(), X(K, {
1369
1370
  modelValue: g.value,
1370
1371
  "onUpdate:modelValue": t[4] || (t[4] = (O) => g.value = O),
1371
1372
  overlay: !0
1372
1373
  }, {
1373
- "dialog-button": U(() => [
1374
+ "dialog-button": H(() => [
1374
1375
  y(Xe, null, {
1375
- default: U(() => [
1376
+ default: H(() => [
1376
1377
  e("button", {
1377
1378
  onClick: t[0] || (t[0] = (O) => g.value = !0),
1378
1379
  class: "rounded-md hover:bg-gray-100 transition-colors"
@@ -1386,10 +1387,10 @@ const We = {
1386
1387
  _: 1
1387
1388
  })
1388
1389
  ]),
1389
- "dialog-header": U(() => t[5] || (t[5] = [
1390
+ "dialog-header": H(() => t[5] || (t[5] = [
1390
1391
  e("div", null, "Amend Adjustment", -1)
1391
1392
  ])),
1392
- "dialog-footer": U(() => [
1393
+ "dialog-footer": H(() => [
1393
1394
  e("div", ao, [
1394
1395
  t[13] || (t[13] = e("span", { class: "text-fm-color-system-warning-400 fm-typo-en-body-sm-400" }, "1. New adjustment EXTRA will be created for each reversal", -1)),
1395
1396
  e("div", lo, [
@@ -1411,7 +1412,7 @@ const We = {
1411
1412
  ])
1412
1413
  ])
1413
1414
  ]),
1414
- default: U(() => [
1415
+ default: H(() => [
1415
1416
  c.value ? (j(), W("div", Jn)) : (j(), X(A, {
1416
1417
  key: 1,
1417
1418
  ref_key: "formRef",
@@ -1424,7 +1425,7 @@ const We = {
1424
1425
  }),
1425
1426
  blameFormChildOnValidationFailed: ""
1426
1427
  }, {
1427
- default: U(() => [
1428
+ default: H(() => [
1428
1429
  e("p", Qn, [
1429
1430
  t[6] || (t[6] = e("b", null, "Date:", -1)),
1430
1431
  t[7] || (t[7] = e("br", null, null, -1)),
@@ -1437,7 +1438,7 @@ const We = {
1437
1438
  variant: "outlined",
1438
1439
  class: "p-2"
1439
1440
  }, {
1440
- default: U(() => [
1441
+ default: H(() => [
1441
1442
  e("div", eo, [
1442
1443
  e("span", to, p(O.sku.code), 1),
1443
1444
  e("span", null, p(O.sku.name), 1)
@@ -1469,7 +1470,7 @@ const We = {
1469
1470
  "append-text": k(O, q),
1470
1471
  rules: [
1471
1472
  (ee) => ee <= T(q.amount) || `Cannot be more than ${T(q.amount)}`,
1472
- a(Te)(-1)
1473
+ a(Ue)(-1)
1473
1474
  ]
1474
1475
  }, null, 8, ["max-fraction-digits", "model-value", "onUpdate:modelValue", "helper-text", "append-text", "rules"]),
1475
1476
  e("div", so, [
@@ -1570,10 +1571,10 @@ const We = {
1570
1571
  return {
1571
1572
  ...x,
1572
1573
  ref: v.ref,
1573
- backdateFrom: v.effectiveAt != null ? He(v._id) : null,
1574
+ backdateFrom: v.effectiveAt != null ? Te(v._id) : null,
1574
1575
  toBalance: (t = (o = v.skus) == null ? void 0 : o[0]) == null ? void 0 : t.toBalance,
1575
1576
  adjustmentId: v._id,
1576
- adjustmentTime: v.effectiveAt ?? He(v._id)
1577
+ adjustmentTime: v.effectiveAt ?? Te(v._id)
1577
1578
  };
1578
1579
  })) ?? [];
1579
1580
  }
@@ -1608,9 +1609,9 @@ const We = {
1608
1609
  })
1609
1610
  })));
1610
1611
  return (b, r) => {
1611
- const v = H("FmIcon"), T = H("FmTooltip"), k = H("FmCard");
1612
+ const v = U("FmIcon"), T = U("FmTooltip"), k = U("FmCard");
1612
1613
  return j(), X(k, { variant: "outlined" }, {
1613
- default: U(() => [
1614
+ default: H(() => [
1614
1615
  e("div", io, [
1615
1616
  e("div", {
1616
1617
  class: "flex items-center cursor-pointer mb-1",
@@ -1666,12 +1667,12 @@ const We = {
1666
1667
  placement: "top",
1667
1668
  "z-index": 50
1668
1669
  }, {
1669
- content: U(() => [
1670
+ content: H(() => [
1670
1671
  e("div", yo, p(a(g)("inventory.stock.record.backdate", [
1671
1672
  a(yt)(new Date(o.backdateFrom))
1672
1673
  ])), 1)
1673
1674
  ]),
1674
- default: U(() => [
1675
+ default: H(() => [
1675
1676
  y(v, {
1676
1677
  name: "info",
1677
1678
  size: "sm",
@@ -1779,7 +1780,7 @@ const So = { class: "flex items-center w-full fm-typo-en-title-md-800" }, wo = {
1779
1780
  }, jo = { class: "pb-16" }, Mo = { class: "fm-typo-cn-body-lg-600" }, Bo = {
1780
1781
  class: "grid gap-12 fm-typo-en-body-md-400",
1781
1782
  style: { "grid-template-columns": "auto auto auto", "grid-auto-rows": "1fr" }
1782
- }, Io = { class: "flex flex-col gap-1" }, To = { class: "text-fm-color-typo-secondary" }, Ho = { class: "font-bold" }, Uo = { class: "flex flex-col gap-1" }, Eo = { class: "text-fm-color-typo-secondary flex" }, Po = { class: "font-bold" }, Ro = { class: "flex flex-col gap-1" }, Oo = { class: "text-fm-color-typo-secondary" }, No = { class: "font-bold" }, Yo = { class: "flex flex-col gap-1" }, Lo = { class: "text-fm-color-typo-secondary" }, zo = { class: "font-bold" }, Go = { class: "flex flex-col gap-1" }, Wo = { class: "text-fm-color-typo-secondary" }, Ko = { class: "font-bold" }, qo = { class: "flex flex-col gap-1" }, Xo = { class: "text-fm-color-typo-secondary" }, Jo = { class: "font-bold" }, Qo = { class: "flex flex-col gap-1" }, Zo = { class: "text-fm-color-typo-secondary" }, es = { class: "font-bold" }, ts = { class: "flex flex-col gap-1" }, ns = { class: "text-fm-color-typo-secondary" }, os = { class: "font-bold" }, ss = { class: "flex flex-col gap-1" }, as = { class: "text-fm-color-typo-secondary" }, ls = { class: "font-bold" }, rs = {
1783
+ }, Io = { class: "flex flex-col gap-1" }, To = { class: "text-fm-color-typo-secondary" }, Uo = { class: "font-bold" }, Ho = { class: "flex flex-col gap-1" }, Eo = { class: "text-fm-color-typo-secondary flex" }, Po = { class: "font-bold" }, Ro = { class: "flex flex-col gap-1" }, Oo = { class: "text-fm-color-typo-secondary" }, No = { class: "font-bold" }, Yo = { class: "flex flex-col gap-1" }, Lo = { class: "text-fm-color-typo-secondary" }, zo = { class: "font-bold" }, Go = { class: "flex flex-col gap-1" }, Wo = { class: "text-fm-color-typo-secondary" }, Ko = { class: "font-bold" }, qo = { class: "flex flex-col gap-1" }, Xo = { class: "text-fm-color-typo-secondary" }, Jo = { class: "font-bold" }, Qo = { class: "flex flex-col gap-1" }, Zo = { class: "text-fm-color-typo-secondary" }, es = { class: "font-bold" }, ts = { class: "flex flex-col gap-1" }, ns = { class: "text-fm-color-typo-secondary" }, os = { class: "font-bold" }, ss = { class: "flex flex-col gap-1" }, as = { class: "text-fm-color-typo-secondary" }, ls = { class: "font-bold" }, rs = {
1783
1784
  key: 0,
1784
1785
  class: "flex flex-col gap-8"
1785
1786
  }, is = { class: "flex" }, us = { class: "flex-1 flex flex-col gap-1" }, cs = { class: "flex gap-1 items-center text-fm-color-typo-secondary" }, ds = { class: "font-bold" }, ms = { class: "flex-1 flex flex-col gap-1" }, fs = { class: "flex gap-1 items-center text-fm-color-typo-secondary" }, ps = { class: "flex flex-col gap-1" }, vs = { class: "font-bold" }, ys = {
@@ -1822,7 +1823,7 @@ const So = { class: "flex items-center w-full fm-typo-en-title-md-800" }, wo = {
1822
1823
  function D(_, i) {
1823
1824
  const V = _.reduce(
1824
1825
  (C, u) => {
1825
- const F = u.effectiveAt ?? He(u._id);
1826
+ const F = u.effectiveAt ?? Te(u._id);
1826
1827
  if (!F)
1827
1828
  return C;
1828
1829
  const N = S(new Date(F), i);
@@ -1918,7 +1919,7 @@ const So = { class: "flex items-center w-full fm-typo-en-title-md-800" }, wo = {
1918
1919
  const F = u.cost;
1919
1920
  if (!F) return C;
1920
1921
  const N = {
1921
- ...Tt(C, Math.max(C.precision, F.precision)),
1922
+ ...Mt(C, Math.max(C.precision, F.precision)),
1922
1923
  currency: F.currency
1923
1924
  };
1924
1925
  return {
@@ -1977,7 +1978,7 @@ const So = { class: "flex items-center w-full fm-typo-en-title-md-800" }, wo = {
1977
1978
  currency: ((N = J.cost) == null ? void 0 : N.currency) || De(((ne = m.currentCountry) == null ? void 0 : ne.value) ?? et)
1978
1979
  };
1979
1980
  } else {
1980
- const J = _.effectiveAt ?? He(_._id), te = f(
1981
+ const J = _.effectiveAt ?? Te(_._id), te = f(
1981
1982
  _._id,
1982
1983
  J ?? (/* @__PURE__ */ new Date()).toISOString()
1983
1984
  );
@@ -2012,7 +2013,7 @@ const So = { class: "flex items-center w-full fm-typo-en-title-md-800" }, wo = {
2012
2013
  }
2013
2014
  const E = Ye(g, "show");
2014
2015
  return (_, i) => {
2015
- const V = H("FmButton"), C = H("FmField"), u = H("FmDateRangePicker"), F = H("FmSpacer"), N = H("FmCircularProgress"), ne = H("FmIcon"), re = H("FmTooltip"), J = H("FmMenuDivider"), te = H("FmChip"), oe = H("FmSelect"), ie = H("FmCardSection"), Fe = H("FmCard"), gt = H("FmSideSheet");
2016
+ const V = U("FmButton"), C = U("FmField"), u = U("FmDateRangePicker"), F = U("FmSpacer"), N = U("FmCircularProgress"), ne = U("FmIcon"), re = U("FmTooltip"), J = U("FmMenuDivider"), te = U("FmChip"), oe = U("FmSelect"), ie = U("FmCardSection"), Fe = U("FmCard"), gt = U("FmSideSheet");
2016
2017
  return j(), X(gt, {
2017
2018
  "dismiss-away": "",
2018
2019
  modelValue: a(E),
@@ -2020,7 +2021,7 @@ const So = { class: "flex items-center w-full fm-typo-en-title-md-800" }, wo = {
2020
2021
  "close-button": !1,
2021
2022
  "max-width": 560
2022
2023
  }, {
2023
- "side-sheet-header": U(() => [
2024
+ "side-sheet-header": H(() => [
2024
2025
  e("div", So, [
2025
2026
  e("div", wo, p(a(l)("inventory.stock.history.title", [_.sku.name])), 1),
2026
2027
  y(V, {
@@ -2030,7 +2031,7 @@ const So = { class: "flex items-center w-full fm-typo-en-title-md-800" }, wo = {
2030
2031
  })
2031
2032
  ])
2032
2033
  ]),
2033
- default: U(() => {
2034
+ default: H(() => {
2034
2035
  var Ae;
2035
2036
  return [
2036
2037
  e("div", Fo, [
@@ -2044,12 +2045,12 @@ const So = { class: "flex items-center w-full fm-typo-en-title-md-800" }, wo = {
2044
2045
  "end-label": "",
2045
2046
  "z-index": 50
2046
2047
  }, {
2047
- "trigger-button": U(({ opened: de }) => [
2048
+ "trigger-button": H(({ opened: de }) => [
2048
2049
  y(C, {
2049
2050
  "prepend-icon": "calendar_month",
2050
2051
  focused: de
2051
2052
  }, {
2052
- default: U(() => [
2053
+ default: H(() => [
2053
2054
  pe(p(k.value.startDate) + " - " + p(k.value.endDate), 1)
2054
2055
  ]),
2055
2056
  _: 2
@@ -2077,18 +2078,18 @@ const So = { class: "flex items-center w-full fm-typo-en-title-md-800" }, wo = {
2077
2078
  y(F)
2078
2079
  ])) : t.value && ((Ae = t.value) == null ? void 0 : Ae.length) > 0 ? (j(), W("div", Do, [
2079
2080
  y(Fe, { variant: "outlined" }, {
2080
- default: U(() => [
2081
+ default: H(() => [
2081
2082
  y(ie, { class: "flex flex-col gap-4" }, {
2082
- default: U(() => [
2083
+ default: H(() => [
2083
2084
  e("div", jo, [
2084
2085
  e("div", Mo, p(a(l)("inventory.stock.history.summary.title")), 1)
2085
2086
  ]),
2086
2087
  e("div", Bo, [
2087
2088
  e("div", Io, [
2088
2089
  e("div", To, p(a(l)("inventory.stock.history.summary.totalPurchase")), 1),
2089
- e("div", Ho, p(R.value.PURCHASE), 1)
2090
+ e("div", Uo, p(R.value.PURCHASE), 1)
2090
2091
  ]),
2091
- e("div", Uo, [
2092
+ e("div", Ho, [
2092
2093
  e("div", Eo, [
2093
2094
  pe(p(a(l)("inventory.stock.history.summary.totalSales")) + "  ", 1),
2094
2095
  K.value != null ? (j(), X(re, {
@@ -2098,7 +2099,7 @@ const So = { class: "flex items-center w-full fm-typo-en-title-md-800" }, wo = {
2098
2099
  content: `Before: ${K.value}`,
2099
2100
  "z-index": 50
2100
2101
  }, {
2101
- default: U(() => [
2102
+ default: H(() => [
2102
2103
  y(ne, {
2103
2104
  name: "warning",
2104
2105
  size: "sm"
@@ -2143,7 +2144,7 @@ const So = { class: "flex items-center w-full fm-typo-en-title-md-800" }, wo = {
2143
2144
  e("div", is, [
2144
2145
  e("div", us, [
2145
2146
  y(ot, { "z-index": 50 }, {
2146
- default: U(() => [
2147
+ default: H(() => [
2147
2148
  e("div", cs, [
2148
2149
  pe(p(a(l)("inventory.stock.history.estimatedValue")) + " ", 1),
2149
2150
  y(re, {
@@ -2152,7 +2153,7 @@ const So = { class: "flex items-center w-full fm-typo-en-title-md-800" }, wo = {
2152
2153
  content: `[${ee.value}] ${a(l)("inventory.stock.history.estimatedValueTooltip")}`,
2153
2154
  "z-index": 50
2154
2155
  }, {
2155
- default: U(() => [
2156
+ default: H(() => [
2156
2157
  y(ne, {
2157
2158
  name: "help",
2158
2159
  size: "sm"
@@ -2194,7 +2195,7 @@ const So = { class: "flex items-center w-full fm-typo-en-title-md-800" }, wo = {
2194
2195
  ]),
2195
2196
  e("div", ms, [
2196
2197
  y(ot, { "z-index": 50 }, {
2197
- default: U(() => [
2198
+ default: H(() => [
2198
2199
  e("div", fs, [
2199
2200
  pe(p(a(l)("inventory.stock.history.costSold")) + " ", 1),
2200
2201
  y(re, {
@@ -2202,10 +2203,10 @@ const So = { class: "flex items-center w-full fm-typo-en-title-md-800" }, wo = {
2202
2203
  placement: "top",
2203
2204
  "z-index": 50
2204
2205
  }, {
2205
- content: U(() => [
2206
+ content: H(() => [
2206
2207
  e("div", ps, p(a(l)("inventory.stock.history.costSoldTooltip")), 1)
2207
2208
  ]),
2208
- default: U(() => [
2209
+ default: H(() => [
2209
2210
  y(ne, {
2210
2211
  name: "help",
2211
2212
  size: "sm"
@@ -2264,7 +2265,7 @@ const So = { class: "flex items-center w-full fm-typo-en-title-md-800" }, wo = {
2264
2265
  }), bs = {
2265
2266
  key: 0,
2266
2267
  class: "flex items-center gap-1"
2267
- }, xs = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ss = { class: "flex flex-col gap-8" }, ws = { class: "flex flex-col" }, Fs = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, As = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary line-clamp-1" }, Js = /* @__PURE__ */ me({
2268
+ }, xs = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ss = { class: "flex flex-col gap-8" }, ws = { class: "flex flex-col" }, Fs = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, As = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary line-clamp-1" }, Qs = /* @__PURE__ */ me({
2268
2269
  __name: "StockView",
2269
2270
  setup(h) {
2270
2271
  const { t: m } = fe(), d = Re(), s = xe(), M = Oe(), w = kt(), c = we(), l = mt(), g = Zt(), { columnDefs: B } = un(), b = Ne(), r = Se();
@@ -2358,7 +2359,7 @@ const So = { class: "flex items-center w-full fm-typo-en-title-md-800" }, wo = {
2358
2359
  }
2359
2360
  }
2360
2361
  return f;
2361
- }), S = z(""), D = z(!0), { breakpoints: A } = Pt(), I = Y(() => A.value.xs || A.value.sm), R = Y(() => I.value ? 10 : 20), K = St(), O = Y(() => [
2362
+ }), S = z(""), D = z(!0), { breakpoints: A } = Ut(), I = Y(() => A.value.xs || A.value.sm), R = Y(() => I.value ? 10 : 20), K = St(), O = Y(() => [
2362
2363
  {
2363
2364
  label: m("inventory.stock.stock_balance.refreshBalance"),
2364
2365
  value: "refresh-balance",
@@ -2395,13 +2396,13 @@ const So = { class: "flex items-center w-full fm-typo-en-title-md-800" }, wo = {
2395
2396
  }
2396
2397
  }
2397
2398
  return (ee, f) => {
2398
- const $ = H("FmSwitch"), G = H("FmTable");
2399
+ const $ = U("FmSwitch"), G = U("FmTable");
2399
2400
  return j(), X(wt, {
2400
2401
  title: a(m)("inventory.stock.title"),
2401
2402
  actions: O.value,
2402
2403
  "onClick:action": ue
2403
2404
  }, {
2404
- default: U(() => {
2405
+ default: H(() => {
2405
2406
  var P, L, E, _;
2406
2407
  return [
2407
2408
  e("div", {
@@ -2424,12 +2425,12 @@ const So = { class: "flex items-center w-full fm-typo-en-title-md-800" }, wo = {
2424
2425
  filter: t.value,
2425
2426
  "onUpdate:filter": f[2] || (f[2] = (i) => t.value = i)
2426
2427
  }, {
2427
- default: U(() => [
2428
+ default: H(() => [
2428
2429
  a(g).isEnabled ? (j(), W("div", bs, [
2429
2430
  e("span", xs, p(a(m)("inventory.integration.netsuite.subsidiaryHierarchy.filtering")), 1),
2430
- y(Ut),
2431
+ y(It),
2431
2432
  y(Xe, null, {
2432
- default: U(() => [
2433
+ default: H(() => [
2433
2434
  y($, {
2434
2435
  modelValue: D.value,
2435
2436
  "onUpdate:modelValue": f[0] || (f[0] = (i) => D.value = i)
@@ -2451,12 +2452,12 @@ const So = { class: "flex items-center w-full fm-typo-en-title-md-800" }, wo = {
2451
2452
  onRowClick: f[3] || (f[3] = (i) => a(w).showSkuHistory(i.original)),
2452
2453
  "page-size": R.value
2453
2454
  }, {
2454
- "list-row": U((i) => [
2455
+ "list-row": H((i) => [
2455
2456
  y(Qt, {
2456
2457
  row: i,
2457
2458
  onRowClick: a(w).showSkuHistory
2458
2459
  }, {
2459
- default: U((V) => {
2460
+ default: H((V) => {
2460
2461
  var C, u, F, N, ne, re, J, te, oe, ie;
2461
2462
  return [
2462
2463
  e("div", Ss, [
@@ -2500,7 +2501,7 @@ const So = { class: "flex items-center w-full fm-typo-en-title-md-800" }, wo = {
2500
2501
  (j(), X(xt, { to: "body" }, [
2501
2502
  (L = a(w).stockHistoryProps) != null && L.sku ? (j(), X(gs, Le(ze({ key: 0 }, a(w).stockHistoryProps)), null, 16)) : se("", !0),
2502
2503
  (E = a(w).convertSkuDialogProps) != null && E.sku ? (j(), X(wn, Le(ze({ key: 1 }, a(w).convertSkuDialogProps)), null, 16)) : se("", !0),
2503
- (_ = a(w).adjustSkuDialogProps) != null && _.stock ? (j(), X(Hn, Le(ze({ key: 2 }, a(w).adjustSkuDialogProps)), null, 16)) : se("", !0),
2504
+ (_ = a(w).adjustSkuDialogProps) != null && _.stock ? (j(), X(Un, Le(ze({ key: 2 }, a(w).adjustSkuDialogProps)), null, 16)) : se("", !0),
2504
2505
  Z.value ? (j(), X(qn, {
2505
2506
  key: 3,
2506
2507
  show: Z.value,
@@ -2516,5 +2517,5 @@ const So = { class: "flex items-center w-full fm-typo-en-title-md-800" }, wo = {
2516
2517
  }
2517
2518
  });
2518
2519
  export {
2519
- Js as default
2520
+ Qs as default
2520
2521
  };