@feedmepos/mf-inventory-portal 1.2.55-dev.1 → 1.2.56-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 (114) hide show
  1. package/dist/{App-Dr4bSbWV.js → App-Dlnr4iYC.js} +3 -3
  2. package/dist/{ApprovalView-BrUi6das.js → ApprovalView-Txmz-hCz.js} +5 -5
  3. package/dist/{BindingsDialog-DtsEDaFx.js → BindingsDialog-BXnuWCaK.js} +5 -5
  4. package/dist/{BindingsPicker-BDSimsxV.js → BindingsPicker-CO2_vfjx.js} +3 -3
  5. package/dist/{BindingsTable-ArpmNkQm.js → BindingsTable-amypZb8r.js} +5 -5
  6. package/dist/{ClosingDraftView-D7qz1YGt.js → ClosingDraftView-Kegm5V38.js} +629 -622
  7. package/dist/{ClosingHistoryView-ND9smQRb.js → ClosingHistoryView-D9VXx7c6.js} +36 -36
  8. package/dist/{ClosingTemplateView--1tzOPIu.js → ClosingTemplateView-PYKa8KDQ.js} +14 -14
  9. package/dist/{DeliveryOrderPrintPreview-Ctv1Qp_a.js → DeliveryOrderPrintPreview-BBUliD2T.js} +7 -7
  10. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-lA-iPoWZ.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DhJjC8RN.js} +17 -17
  11. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-UJewH4Il.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-D0z-41dr.js} +2 -2
  12. package/dist/{FmMultiselectDialog-Br5_D-b5.js → FmMultiselectDialog-CswtC1AP.js} +16 -16
  13. package/dist/{FmMultiselectDialog-BrJlUxMZ.js → FmMultiselectDialog-DTYS42tQ.js} +1 -1
  14. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-BvIdnKjl.js → FmUnitInput.vue_vue_type_script_setup_true_lang-DXkTWOFj.js} +11 -11
  15. package/dist/{ImportView-fEnHrPWZ.js → ImportView-DvECDSkN.js} +6 -6
  16. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DVELkyVY.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-Dg0gQJFw.js} +1 -1
  17. package/dist/{IngredientGroupView-B1owkM3C.js → IngredientGroupView-PYLW-jdb.js} +5 -5
  18. package/dist/{IngredientsView-BTKXnnw5.js → IngredientsView-fzMFu5Kd.js} +14 -14
  19. package/dist/{IntegrationView-C2jarXxh.js → IntegrationView-BJraR9yF.js} +12 -12
  20. package/dist/{InventoryBindingForm-Gq8XfKbC.js → InventoryBindingForm-BCLg-OVi.js} +1 -1
  21. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-BVkTXQvA.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-BAoFz9Xy.js} +14 -14
  22. package/dist/{InventoryBindingSummary-CqQu65hi.js → InventoryBindingSummary-BaihKVNj.js} +1 -1
  23. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DIukT297.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-sxY8hdeR.js} +1 -1
  24. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-D2aU4Ij2.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BhOwDBiq.js} +2 -2
  25. package/dist/{PublishView-CBYg-KST.js → PublishView-BMmcC0Vq.js} +8 -8
  26. package/dist/{PurchaseOrderPrintPreview-C_jrGksW.js → PurchaseOrderPrintPreview-BWl9FIys.js} +11 -11
  27. package/dist/{ReceiveRequestView-iawt5dnN.js → ReceiveRequestView-Cn5w0cDy.js} +19 -19
  28. package/dist/RecipeView-BW5KCmkx.js +1557 -0
  29. package/dist/{StockView-oSkKCORB.js → StockView-oxOQh8eg.js} +116 -116
  30. package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-BJ3gnpTq.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-JGzokQMQ.js} +1 -1
  31. package/dist/{SupplierView-tipIYgX7.js → SupplierView-TSbv1g43.js} +11 -11
  32. package/dist/{SurchargeView-CW1lsyEC.js → SurchargeView-CZDaMAk2.js} +6 -6
  33. package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-B3FZqxjr.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-BH90OuDB.js} +2 -2
  34. package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-D86rTw7c.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-D0geyvW9.js} +1 -1
  35. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-cGzs-dHw.js → TransferDetails.vue_vue_type_script_setup_true_lang-Dxm9e7s0.js} +72 -72
  36. package/dist/{TransferTemplateView-dSJSgnil.js → TransferTemplateView-Ds4UfF6z.js} +15 -15
  37. package/dist/{UnitView-VHi5WMrF.js → UnitView-DNfslwNA.js} +6 -6
  38. package/dist/{WarehouseView-DLZaux-w.js → WarehouseView-DkcPy1mF.js} +5 -5
  39. package/dist/{WastageTemplateView-KyvwCkdu.js → WastageTemplateView-CP_sQsdU.js} +60 -60
  40. package/dist/api/inventory.d.ts +126 -36
  41. package/dist/api/netsuite.d.ts +8 -1
  42. package/dist/{app-Cq2T5z21.js → app-Do7d9F2j.js} +7340 -6379
  43. package/dist/app.d.ts +200 -0
  44. package/dist/app.js +1 -1
  45. package/dist/{closing-template-TwdeC6qT.js → closing-template-BidraMN0.js} +1 -1
  46. package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +37 -1
  47. package/dist/components/shell/inventory/binding-dialog.vue.d.ts +14 -0
  48. package/dist/components/shell/inventory/binding-ui.vue.d.ts +16 -1
  49. package/dist/{date2-Dunl1OWI.js → date2-xmQqiCBU.js} +1 -1
  50. package/dist/{dayjs.min-D_81k3gd.js → dayjs.min-C2InbamH.js} +16 -16
  51. package/dist/{decimal-B9DLzi9Y.js → decimal-BHD_uD50.js} +2 -2
  52. package/dist/{defineDeepModel-B15nBS96.js → defineDeepModel-CoBQILOz.js} +1 -1
  53. package/dist/{duplicate-template-BSxFsv2u.js → duplicate-template-BfJ6g_ux.js} +1 -1
  54. package/dist/{feature-KwyjpPTq.js → feature-BsP8KV0O.js} +94 -89
  55. package/dist/{format-time-from-id-BfL9V23H.js → format-time-from-id-CLLM4KoK.js} +1 -1
  56. package/dist/{format-unit-display-BfSLhflE.js → format-unit-display-BLtS1XcY.js} +10 -10
  57. package/dist/{import-export.helper-TUsgMxew.js → import-export.helper-DQvkoWnj.js} +7 -7
  58. package/dist/{index-C2H5HeFF.js → index-CUm44l1O.js} +1 -1
  59. package/dist/{index-DTnKa-sF.js → index-CrS7Yig1.js} +1471 -1412
  60. package/dist/{index-CXtJlhZZ.js → index-p8EMSeUp.js} +3 -3
  61. package/dist/{lodash-DRR2nS2T.js → lodash-BNImU2Ov.js} +1 -1
  62. package/dist/{netsuite-CAFiEoX5.js → netsuite-DpB7HK5Q.js} +60 -60
  63. package/dist/{purchase-order-template-CSJXceBK.js → purchase-order-template-DgbM99CO.js} +1 -1
  64. package/dist/{rules-BdFLL1aa.js → rules-CmGXcEkE.js} +18 -18
  65. package/dist/{stock-B80FaSS2.js → stock-C1-SWNBT.js} +1 -1
  66. package/dist/{stock-CgsgvX9b.js → stock-CUjopFIE.js} +3 -3
  67. package/dist/stores/feature.d.ts +2 -0
  68. package/dist/stores/integration/netsuite.d.ts +8 -1
  69. package/dist/stores/inventory.d.ts +119 -30
  70. package/dist/{supplier-BsycjnD1.js → supplier-BLGyTOqT.js} +2 -2
  71. package/dist/{surcharge-BH6kETCu.js → surcharge-BA-bc8RT.js} +1 -1
  72. package/dist/tsconfig.app.tsbuildinfo +1 -1
  73. package/dist/{use-ingredient-select-dialog-B2cFOc3t.js → use-ingredient-select-dialog-BDMeEnJC.js} +2 -2
  74. package/dist/{use-inventory-binding-dialog-CKUtJDHW.js → use-inventory-binding-dialog-CmAOk0d6.js} +2 -2
  75. package/dist/{use-template-enabled-locations-2-tPL4lEZ_.js → use-template-enabled-locations-2-DSQY7vNB.js} +2 -2
  76. package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +64 -8
  77. package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +192 -24
  78. package/dist/views/closing-template/components/closing-template-form/composables/use-closing-template-items.d.ts +8 -1
  79. package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +96 -12
  80. package/dist/views/closing-template/composables/use-closing-template-table.d.ts +96 -12
  81. package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +18 -18
  82. package/dist/views/ingredients/components/convert/ConvertForm.vue.d.ts +14 -0
  83. package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +32 -4
  84. package/dist/views/ingredients/components/inventory-binding/InventoryBindingForm.vue.d.ts +28 -0
  85. package/dist/views/ingredients/components/inventory-binding/v2/InventoryBindingFormV2.vue.d.ts +169 -0
  86. package/dist/views/ingredients/components/inventory-binding/v2/components/InventoryBindingAlternative.vue.d.ts +43 -0
  87. package/dist/views/ingredients/components/inventory-binding/v2/components/InventoryBindingRule.vue.d.ts +25 -0
  88. package/dist/views/ingredients/components/inventory-binding/v2/components/InventoryRecipeBindingV2Field.vue.d.ts +125 -0
  89. package/dist/views/ingredients/components/inventory-binding/v2/components/InventorySkuBindingV2Field.vue.d.ts +129 -0
  90. package/dist/views/ingredients/components/inventory-binding/v2/composables/use-inventory-binding-alternative-table.d.ts +30 -0
  91. package/dist/views/ingredients/components/inventory-binding/v2/composables/use-inventory-binding-dialog.d.ts +4 -0
  92. package/dist/views/ingredients/composables/use-ingredient-table.d.ts +8 -1
  93. package/dist/views/integration/components/netsuite/InventoryTransferIngredientTable.vue.d.ts +16 -2
  94. package/dist/views/receive-request/components/transfer-form/TransferFormWithController.vue.d.ts +33 -5
  95. package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +16 -2
  96. package/dist/views/receive-request/components/transfer-form/components/TransferItemTable.vue.d.ts +32 -4
  97. package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +8 -1
  98. package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +41 -6
  99. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +246 -36
  100. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +287 -42
  101. package/dist/views/recipe/components/recipe-form/RecipeForm.vue.d.ts +16 -0
  102. package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +16 -2
  103. package/dist/views/transfer-template/components/transfer-template-dialog/TransferTemplateDialog.vue.d.ts +16 -2
  104. package/dist/views/transfer-template/components/transfer-template-form/components/NetSuiteCustomCodeSelection.vue.d.ts +16 -2
  105. package/dist/views/transfer-template/components/transfer-template-form/components/TransferTemplateItemTable.vue.d.ts +16 -2
  106. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +8 -1
  107. package/dist/views/transfer-template/composables/use-netsuite-custom-field.d.ts +24 -3
  108. package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +96 -12
  109. package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +96 -12
  110. package/dist/{vue-i18n-BhCaMx-9.js → vue-i18n-CIhYwCeG.js} +321 -321
  111. package/dist/{xlsx-DJaY2xSF.js → xlsx-BcQjo8NU.js} +398 -398
  112. package/dist/{xlsx.util-CZq_uKdw.js → xlsx.util-GOcrvAJZ.js} +1 -1
  113. package/package.json +1 -1
  114. package/dist/RecipeView-Dv5BTxLT.js +0 -646
@@ -1,27 +1,27 @@
1
- import { defineComponent as me, ref as L, computed as N, resolveComponent as T, openBlock as j, createBlock as q, withCtx as U, createElementVNode as e, normalizeClass as he, toDisplayString as v, createVNode as y, createElementBlock as W, Fragment as le, renderList as ce, unref as a, h as _e, watch as Ae, isRef as He, 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 Ne, mergeProps as Ye } from "vue";
1
+ import { defineComponent as me, ref as L, computed as N, resolveComponent as T, openBlock as j, createBlock as q, withCtx as H, createElementVNode as e, normalizeClass as he, toDisplayString as v, createVNode as y, createElementBlock as W, Fragment as le, renderList as ce, unref as a, h as _e, watch as Ae, isRef as Ue, 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 Ne, mergeProps as Ye } 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 be, c as Ue, a as Ee, F as Ze, H as Ft, D as ae, v as At, o as $t, B as Vt, w as Q, h as Ve, i as et, e as tt, I as ke } from "./app-Cq2T5z21.js";
4
- import { u as Pe } from "./stock-CgsgvX9b.js";
3
+ import { u as be, c as He, a as Ee, F as Ze, w as Ft, G as ae, v as At, o as $t, D as Vt, y as Q, h as Ve, i as et, e as tt, J as ke } from "./app-Do7d9F2j.js";
4
+ import { u as Pe } from "./stock-CUjopFIE.js";
5
5
  import { c as Ct } from "./component-DpCUABT3.js";
6
- import { g as $e } from "./decimal-B9DLzi9Y.js";
7
- import { d as ve } from "./dayjs.min-D_81k3gd.js";
8
- import { e as jt, u as dt, i as Me, _ as nt } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-D2aU4Ij2.js";
9
- import { _ as We, S as Le, g as mt, a as Dt } from "./SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-BJ3gnpTq.js";
6
+ import { g as $e } from "./decimal-BHD_uD50.js";
7
+ import { d as ve } from "./dayjs.min-C2InbamH.js";
8
+ import { e as jt, u as dt, i as Me, _ as nt } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-BhOwDBiq.js";
9
+ import { _ as We, S as Le, g as mt, a as Dt } from "./SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-JGzokQMQ.js";
10
10
  import { _ as Mt } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
11
11
  import { useI18n as fe, useCoreStore as ft } from "@feedmepos/mf-common";
12
12
  import { useSnackbar as xe, useDialog as Re, useProxiedModel as Oe, useBreakpoints as Bt } from "@feedmepos/ui-library";
13
13
  import { defineStore as It } from "pinia";
14
- import { g as Ke, a as ye, f as Tt, t as Be, h as Ie, A as Ht, M as Ut, d as ge, i as Et, j as ot, k as pt, l as Je, R as Pt, e as je, m as Rt } from "./rules-BdFLL1aa.js";
15
- import { u as Se } from "./stock-B80FaSS2.js";
16
- import { u as Ot } from "./use-inventory-binding-dialog-CKUtJDHW.js";
17
- import { a as vt } from "./FmMultiselectDialog-Br5_D-b5.js";
18
- import { _ as Nt } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DIukT297.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-Dunl1OWI.js";
20
- import { i as Kt, _ as qt } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-UJewH4Il.js";
14
+ import { g as Ke, a as ye, i as Tt, t as Be, h as Ie, A as Ut, M as Ht, d as ge, j as Et, k as ot, l as pt, m as Je, R as Pt, e as je, o as Rt } from "./rules-CmGXcEkE.js";
15
+ import { u as Se } from "./stock-C1-SWNBT.js";
16
+ import { u as Ot } from "./use-inventory-binding-dialog-CmAOk0d6.js";
17
+ import { a as vt } from "./FmMultiselectDialog-CswtC1AP.js";
18
+ import { _ as Nt } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-sxY8hdeR.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-xmQqiCBU.js";
20
+ import { i as Kt, _ as qt } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-D0z-41dr.js";
21
21
  import { E as Xt } from "./empty-placeholder-wf6-BWE8.js";
22
- import { F as ze, u as Jt } from "./feature-KwyjpPTq.js";
22
+ import { F as ze, u as Jt } from "./feature-BsP8KV0O.js";
23
23
  import { _ as Qt, F as lt } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-Ca_eYa8-.js";
24
- import { u as Zt } from "./netsuite-CAFiEoX5.js";
24
+ import { u as Zt } from "./netsuite-DpB7HK5Q.js";
25
25
  import { P as en, J as tn } from "./app-DiX-EfV6.js";
26
26
  var De = /* @__PURE__ */ ((k) => (k.History = "History", k.Convert = "Convert", k.Adjust = "Adjust", k))(De || {});
27
27
  const nn = [
@@ -151,7 +151,7 @@ const an = { class: "fm-typo-en-body-md-400 flex-grow" }, _t = /* @__PURE__ */ m
151
151
  "stop-click-propagation": "",
152
152
  onMenuChanged: S[0] || (S[0] = (b) => h.value = b)
153
153
  }, {
154
- "menu-button": U(() => [
154
+ "menu-button": H(() => [
155
155
  e("button", {
156
156
  type: "button",
157
157
  class: he([
@@ -166,7 +166,7 @@ const an = { class: "fm-typo-en-body-md-400 flex-grow" }, _t = /* @__PURE__ */ m
166
166
  })
167
167
  ], 2)
168
168
  ]),
169
- default: U(() => [
169
+ default: H(() => [
170
170
  (j(!0), W(le, null, ce(F.value, (b) => (j(), q(f, {
171
171
  key: b.value ?? 0,
172
172
  label: b.label,
@@ -183,7 +183,7 @@ const an = { class: "fm-typo-en-body-md-400 flex-grow" }, _t = /* @__PURE__ */ m
183
183
  setup(k) {
184
184
  const { t: m } = fe();
185
185
  return (d, s) => (j(), q(Mt, null, {
186
- default: U(() => [
186
+ default: H(() => [
187
187
  e("div", ln, v(a(m)("inventory.stock.prediction.daysRemaining")), 1)
188
188
  ]),
189
189
  _: 1
@@ -218,11 +218,11 @@ const an = { class: "fm-typo-en-body-md-400 flex-grow" }, _t = /* @__PURE__ */ m
218
218
  return;
219
219
  }
220
220
  const o = {
221
- maxCount: ((C = d.productBalance.find(({ id: H }) => H === w._id)) == null ? void 0 : C.count) || 0,
221
+ maxCount: ((C = d.productBalance.find(({ id: U }) => U === w._id)) == null ? void 0 : C.count) || 0,
222
222
  sku: w,
223
223
  show: !0,
224
- "onUpdate:show"(H) {
225
- h.value.show = H;
224
+ "onUpdate:show"(U) {
225
+ h.value.show = U;
226
226
  },
227
227
  onSubmitted() {
228
228
  l();
@@ -256,7 +256,7 @@ const an = { class: "fm-typo-en-body-md-400 flex-grow" }, _t = /* @__PURE__ */ m
256
256
  f.value = n;
257
257
  }
258
258
  function b(w, n) {
259
- const t = Ue(n);
259
+ const t = He(n);
260
260
  switch (w) {
261
261
  case De.History:
262
262
  I(t);
@@ -427,7 +427,7 @@ const dn = { class: "flex items-center" }, mn = { class: "fm-typo-en-title-md-80
427
427
  return !!i.value;
428
428
  },
429
429
  set(p) {
430
- p ? i.value = Ue(I.value) : (i.value = null, S.value = Math.min(S.value, s.maxCount ?? 0));
430
+ p ? i.value = He(I.value) : (i.value = null, S.value = Math.min(S.value, s.maxCount ?? 0));
431
431
  }
432
432
  }), w = L(!1);
433
433
  Ae([() => s.show], ([p]) => {
@@ -499,7 +499,7 @@ const dn = { class: "flex items-center" }, mn = { class: "fm-typo-en-title-md-80
499
499
  ($ = (p = C.value) == null ? void 0 : p.resetInputs) == null || $.call(p);
500
500
  }
501
501
  });
502
- const H = Oe(s, "show");
502
+ const U = Oe(s, "show");
503
503
  async function O(p, $, G) {
504
504
  w.value = !0;
505
505
  try {
@@ -582,23 +582,23 @@ const dn = { class: "flex items-center" }, mn = { class: "fm-typo-en-title-md-80
582
582
  const G = T("FmTextField"), P = T("FmForm"), Y = T("FmCard"), E = T("FmSwitch"), _ = T("FmFormGroup"), r = T("FmSelect"), M = T("FmButton"), V = T("FmSideSheet");
583
583
  return j(), q(V, {
584
584
  "dismiss-away": "",
585
- modelValue: a(H),
586
- "onUpdate:modelValue": $[3] || ($[3] = (u) => He(H) ? H.value = u : null),
585
+ modelValue: a(U),
586
+ "onUpdate:modelValue": $[3] || ($[3] = (u) => Ue(U) ? U.value = u : null),
587
587
  "max-width": 500
588
588
  }, {
589
- "side-sheet-header": U(() => [
589
+ "side-sheet-header": H(() => [
590
590
  e("div", dn, [
591
591
  e("div", mn, v(a(B)("inventory.stock.convert.title", { name: p.sku.name })), 1)
592
592
  ])
593
593
  ]),
594
- default: U(() => [
594
+ default: H(() => [
595
595
  e("div", fn, [
596
596
  y(P, {
597
597
  ref_key: "formRef",
598
598
  ref: C,
599
599
  onValidationSuccess: n
600
600
  }, {
601
- default: U(() => [
601
+ default: H(() => [
602
602
  y(G, {
603
603
  disabled: w.value,
604
604
  "model-value": S.value,
@@ -615,7 +615,7 @@ const dn = { class: "flex items-center" }, mn = { class: "fm-typo-en-title-md-80
615
615
  variant: "outlined",
616
616
  class: "p-16"
617
617
  }, {
618
- default: U(() => [
618
+ default: H(() => [
619
619
  e("div", pn, [
620
620
  e("div", vn, v(a(B)("inventory.stock.convert.deductionSummary")), 1),
621
621
  (j(!0), W(le, null, ce(x.value, (u) => {
@@ -633,7 +633,7 @@ const dn = { class: "flex items-center" }, mn = { class: "fm-typo-en-title-md-80
633
633
  _: 1
634
634
  }),
635
635
  y(Y, { variant: "outlined" }, {
636
- default: U(() => [
636
+ default: H(() => [
637
637
  e("div", kn, [
638
638
  y(E, {
639
639
  value: "",
@@ -645,7 +645,7 @@ const dn = { class: "flex items-center" }, mn = { class: "fm-typo-en-title-md-80
645
645
  b.value ? (j(), W(le, { key: 0 }, [
646
646
  y(_, {
647
647
  modelValue: i.value,
648
- rules: [a(Ht)(1, "Must have at least one ingredient binding")]
648
+ rules: [a(Ut)(1, "Must have at least one ingredient binding")]
649
649
  }, null, 8, ["modelValue", "rules"]),
650
650
  e("div", hn, [
651
651
  e("div", gn, v(a(B)("inventory.stock.convert.ingredients")), 1),
@@ -654,14 +654,14 @@ const dn = { class: "flex items-center" }, mn = { class: "fm-typo-en-title-md-80
654
654
  disabled: w.value,
655
655
  modelValue: +a(ye)(u.amount ?? { amount: 1, precision: 0 }),
656
656
  rules: [
657
- a(Ut)(
657
+ a(Ht)(
658
658
  f.value.find((A) => A._id === u.id).unit,
659
659
  u.measurement
660
660
  ),
661
661
  a(Ie)(0)
662
662
  ]
663
663
  }, {
664
- default: U(({ invalid: A }) => {
664
+ default: H(({ invalid: A }) => {
665
665
  var R, ne, re;
666
666
  return [
667
667
  e("div", bn, [
@@ -683,7 +683,7 @@ const dn = { class: "flex items-center" }, mn = { class: "fm-typo-en-title-md-80
683
683
  "onUpdate:modelValue": (J) => K(u.id, J, i.value ?? []),
684
684
  invalid: A
685
685
  }, {
686
- "helper-text": U(() => $[4] || ($[4] = [])),
686
+ "helper-text": H(() => $[4] || ($[4] = [])),
687
687
  _: 2
688
688
  }, 1032, ["disabled", "items", "model-value", "onUpdate:modelValue", "invalid"]),
689
689
  y(M, {
@@ -714,7 +714,7 @@ const dn = { class: "flex items-center" }, mn = { class: "fm-typo-en-title-md-80
714
714
  })
715
715
  ])
716
716
  ]),
717
- "side-sheet-footer": U(() => [
717
+ "side-sheet-footer": H(() => [
718
718
  e("div", Sn, [
719
719
  y(M, {
720
720
  loading: w.value,
@@ -840,12 +840,12 @@ const Ge = {
840
840
  () => $e(b.value, d.modelValue.doc.unit)
841
841
  ), n = N(() => I.value.amount < 0);
842
842
  return (t, o) => {
843
- const g = T("FmButton"), x = T("FmSelect"), C = T("FmTextarea"), H = T("FmCard");
844
- return j(), q(H, {
843
+ const g = T("FmButton"), x = T("FmSelect"), C = T("FmTextarea"), U = T("FmCard");
844
+ return j(), q(U, {
845
845
  variant: "outlined",
846
846
  class: "grid grid-cols-2 gap-8 p-16"
847
847
  }, {
848
- default: U(() => [
848
+ default: H(() => [
849
849
  e("div", Fn, [
850
850
  e("div", An, [
851
851
  e("div", $n, v(t.modelValue.doc.name), 1),
@@ -904,7 +904,7 @@ const Ge = {
904
904
  });
905
905
  };
906
906
  }
907
- }), Dn = { 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({
907
+ }), Dn = { 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
908
  __name: "AdjustSkuDialog",
909
909
  props: {
910
910
  stock: {},
@@ -914,7 +914,7 @@ const Ge = {
914
914
  setup(k, { expose: m, emit: d }) {
915
915
  const s = k, D = d, F = Ee(), c = Re(), l = Se(), h = xe(), B = L(!1), { t: S } = fe();
916
916
  function i() {
917
- w(Ue(b));
917
+ w(He(b));
918
918
  }
919
919
  const f = L();
920
920
  m({
@@ -961,9 +961,9 @@ const Ge = {
961
961
  try {
962
962
  await l.adjustSku({
963
963
  remark: o.remark,
964
- adjustments: o.adjustments.map(({ doc: g, remark: x, type: C, amount: H, measurement: O }) => ({
964
+ adjustments: o.adjustments.map(({ doc: g, remark: x, type: C, amount: U, measurement: O }) => ({
965
965
  id: g._id,
966
- amount: H,
966
+ amount: U,
967
967
  measurement: O,
968
968
  remark: x,
969
969
  doc: g,
@@ -1007,10 +1007,10 @@ const Ge = {
1007
1007
  }
1008
1008
  }).onPrimary((x) => {
1009
1009
  b.adjustments = x.map(
1010
- (C) => b.adjustments.find((H) => H.doc._id === C) ?? {
1010
+ (C) => b.adjustments.find((U) => U.doc._id === C) ?? {
1011
1011
  id: `sku_${(/* @__PURE__ */ new Date()).toISOString()}_${Math.random().toString(16).slice(2, 8)}`,
1012
1012
  type: ae.enum.PURCHASE,
1013
- doc: F.skus.find((H) => H._id === C),
1013
+ doc: F.skus.find((U) => U._id === C),
1014
1014
  measurement: null,
1015
1015
  remark: "",
1016
1016
  amount: ge(1)
@@ -1022,26 +1022,26 @@ const Ge = {
1022
1022
  b.adjustments.splice(o, 1);
1023
1023
  }
1024
1024
  return (o, g) => {
1025
- const x = T("FmTextarea"), C = T("FmButton"), H = T("FmForm"), O = T("FmSideSheet");
1025
+ const x = T("FmTextarea"), C = T("FmButton"), U = T("FmForm"), O = T("FmSideSheet");
1026
1026
  return j(), q(O, {
1027
1027
  modelValue: a(I),
1028
- "onUpdate:modelValue": g[2] || (g[2] = (X) => He(I) ? I.value = X : null),
1028
+ "onUpdate:modelValue": g[2] || (g[2] = (X) => Ue(I) ? I.value = X : null),
1029
1029
  "dismiss-away": "",
1030
1030
  "max-width": 500
1031
1031
  }, {
1032
- "side-sheet-header": U(() => [
1032
+ "side-sheet-header": H(() => [
1033
1033
  e("div", Dn, [
1034
1034
  e("div", Mn, v(a(S)("inventory.stock.adjust.title")), 1)
1035
1035
  ])
1036
1036
  ]),
1037
- default: U(() => [
1038
- y(H, {
1037
+ default: H(() => [
1038
+ y(U, {
1039
1039
  class: "w-full flex flex-col gap-12",
1040
1040
  ref_key: "formRef",
1041
1041
  ref: f,
1042
1042
  onValidationSuccess: i
1043
1043
  }, {
1044
- default: U(() => [
1044
+ default: H(() => [
1045
1045
  y(x, {
1046
1046
  label: a(S)("inventory.stock.adjust.remark"),
1047
1047
  modelValue: b.remark,
@@ -1066,7 +1066,7 @@ const Ge = {
1066
1066
  _: 1
1067
1067
  }, 512)
1068
1068
  ]),
1069
- "side-sheet-footer": U(() => [
1069
+ "side-sheet-footer": H(() => [
1070
1070
  e("div", Tn, [
1071
1071
  y(C, {
1072
1072
  label: a(S)("inventory.stock.adjust.adjustButton"),
@@ -1082,7 +1082,7 @@ const Ge = {
1082
1082
  }, 8, ["modelValue"]);
1083
1083
  };
1084
1084
  }
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({
1085
+ }), 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
1086
  __name: "StockAdjustmentSideSheet",
1087
1087
  props: {
1088
1088
  show: { type: Boolean }
@@ -1116,11 +1116,11 @@ const Ge = {
1116
1116
  }), x;
1117
1117
  });
1118
1118
  function t() {
1119
- const x = F.skus.map((H) => ({
1120
- label: H.name,
1121
- sublabel: H.code,
1122
- value: H._id
1123
- })), C = i.adjustments.map((H) => H.doc._id);
1119
+ const x = F.skus.map((U) => ({
1120
+ label: U.name,
1121
+ sublabel: U.code,
1122
+ value: U._id
1123
+ })), C = i.adjustments.map((U) => U.doc._id);
1124
1124
  l.open({
1125
1125
  title: D("inventory.stock.adjust.selectIngredients"),
1126
1126
  contentComponent: vt,
@@ -1141,8 +1141,8 @@ const Ge = {
1141
1141
  close: !0,
1142
1142
  variant: "tertiary"
1143
1143
  }
1144
- }).onPrimary((H) => {
1145
- i.adjustments = H.map(
1144
+ }).onPrimary((U) => {
1145
+ i.adjustments = U.map(
1146
1146
  (O) => i.adjustments.find((X) => X.doc._id === O) ?? {
1147
1147
  id: "",
1148
1148
  type: ae.enum.PURCHASE,
@@ -1169,12 +1169,12 @@ const Ge = {
1169
1169
  S.value = !0;
1170
1170
  try {
1171
1171
  const x = i.adjustments.map(
1172
- ({ doc: H, remark: O, type: X, amount: z, measurement: Z }) => ({
1173
- id: H._id,
1172
+ ({ doc: U, remark: O, type: X, amount: z, measurement: Z }) => ({
1173
+ id: U._id,
1174
1174
  amount: z,
1175
1175
  measurement: Z,
1176
1176
  remark: O,
1177
- doc: H,
1177
+ doc: U,
1178
1178
  type: X
1179
1179
  })
1180
1180
  ), C = {
@@ -1182,7 +1182,7 @@ const Ge = {
1182
1182
  adjustments: x,
1183
1183
  effectiveAt: i.effectiveAt.toISOString()
1184
1184
  };
1185
- await c.adjustSku(Ue(C)), s("submitted"), s("update:show", !1);
1185
+ await c.adjustSku(He(C)), s("submitted"), s("update:show", !1);
1186
1186
  } catch (x) {
1187
1187
  h.open({
1188
1188
  title: D("inventory.stock.adjust.error.title"),
@@ -1194,22 +1194,22 @@ const Ge = {
1194
1194
  }
1195
1195
  }
1196
1196
  return (x, C) => {
1197
- const H = T("FmTextarea"), O = T("FmDatePicker"), X = T("FmTimePicker"), z = T("FmButton"), Z = T("FmSideSheet");
1197
+ const U = T("FmTextarea"), O = T("FmDatePicker"), X = T("FmTimePicker"), z = T("FmButton"), Z = T("FmSideSheet");
1198
1198
  return j(), q(Z, {
1199
1199
  modelValue: a(B),
1200
- "onUpdate:modelValue": C[4] || (C[4] = (K) => He(B) ? B.value = K : null),
1200
+ "onUpdate:modelValue": C[4] || (C[4] = (K) => Ue(B) ? B.value = K : null),
1201
1201
  "dismiss-away": "",
1202
1202
  "max-width": 560,
1203
1203
  onAfterEnter: w
1204
1204
  }, {
1205
- "side-sheet-header": U(() => [
1206
- e("div", Un, [
1205
+ "side-sheet-header": H(() => [
1206
+ e("div", Hn, [
1207
1207
  e("div", En, v(a(D)("inventory.stock.stock_adjustment.title")), 1)
1208
1208
  ])
1209
1209
  ]),
1210
- default: U(() => [
1210
+ default: H(() => [
1211
1211
  e("div", Pn, [
1212
- y(H, {
1212
+ y(U, {
1213
1213
  label: a(D)("inventory.stock.adjust.remark"),
1214
1214
  modelValue: i.remark,
1215
1215
  "onUpdate:modelValue": C[0] || (C[0] = (K) => i.remark = K),
@@ -1255,7 +1255,7 @@ const Ge = {
1255
1255
  }, null, 8, ["modelValue", "onUpdate:modelValue", "onClick:delete"]))), 128))
1256
1256
  ])
1257
1257
  ]),
1258
- "side-sheet-footer": U(() => [
1258
+ "side-sheet-footer": H(() => [
1259
1259
  e("div", Kn, [
1260
1260
  y(z, {
1261
1261
  label: a(D)("common.confirm"),
@@ -1321,8 +1321,8 @@ const Ge = {
1321
1321
  var x;
1322
1322
  Object.keys(((x = F.value) == null ? void 0 : x[g]) || {}).forEach((C) => {
1323
1323
  var O, X;
1324
- const H = (X = (O = F.value) == null ? void 0 : O[g]) == null ? void 0 : X[Number(C)];
1325
- H && I(H.amount) > 0 && (n[g] || (n[g] = []), n[g].push(H));
1324
+ const U = (X = (O = F.value) == null ? void 0 : O[g]) == null ? void 0 : X[Number(C)];
1325
+ U && I(U.amount) > 0 && (n[g] || (n[g] = []), n[g].push(U));
1326
1326
  });
1327
1327
  }), await D.revertWastageAdjustment({
1328
1328
  targetWastageAdjustmentId: d.adjustmentId,
@@ -1332,8 +1332,8 @@ const Ge = {
1332
1332
  function f(n, t, o) {
1333
1333
  return N({
1334
1334
  get: () => {
1335
- var x, C, H;
1336
- const g = (H = (C = (x = F.value) == null ? void 0 : x[n]) == null ? void 0 : C[t]) == null ? void 0 : H.amount;
1335
+ var x, C, U;
1336
+ const g = (U = (C = (x = F.value) == null ? void 0 : x[n]) == null ? void 0 : C[t]) == null ? void 0 : U.amount;
1337
1337
  return g ? I(g, !0) : 0;
1338
1338
  },
1339
1339
  set: (g) => {
@@ -1358,15 +1358,15 @@ const Ge = {
1358
1358
  return t === 0 ? "N/A" : (n + t).toString();
1359
1359
  }
1360
1360
  return (n, t) => {
1361
- const o = T("FmIcon"), g = T("FmStepperField"), x = T("FmCard"), C = T("FmForm"), H = T("FmSpacer"), O = T("FmButton"), X = T("FmDialog");
1361
+ const o = T("FmIcon"), g = T("FmStepperField"), x = T("FmCard"), C = T("FmForm"), U = T("FmSpacer"), O = T("FmButton"), X = T("FmDialog");
1362
1362
  return j(), q(X, {
1363
1363
  modelValue: h.value,
1364
1364
  "onUpdate:modelValue": t[4] || (t[4] = (z) => h.value = z),
1365
1365
  overlay: !0
1366
1366
  }, {
1367
- "dialog-button": U(() => [
1367
+ "dialog-button": H(() => [
1368
1368
  y(Xe, null, {
1369
- default: U(() => [
1369
+ default: H(() => [
1370
1370
  e("button", {
1371
1371
  onClick: t[0] || (t[0] = (z) => h.value = !0),
1372
1372
  class: "rounded-md hover:bg-gray-100 transition-colors"
@@ -1380,14 +1380,14 @@ const Ge = {
1380
1380
  _: 1
1381
1381
  })
1382
1382
  ]),
1383
- "dialog-header": U(() => t[5] || (t[5] = [
1383
+ "dialog-header": H(() => t[5] || (t[5] = [
1384
1384
  e("div", null, "Amend Adjustment", -1)
1385
1385
  ])),
1386
- "dialog-footer": U(() => [
1386
+ "dialog-footer": H(() => [
1387
1387
  e("div", ao, [
1388
1388
  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)),
1389
1389
  e("div", lo, [
1390
- y(H),
1390
+ y(U),
1391
1391
  y(O, {
1392
1392
  class: "sm:w-full xs:w-full",
1393
1393
  label: "Close",
@@ -1405,7 +1405,7 @@ const Ge = {
1405
1405
  ])
1406
1406
  ])
1407
1407
  ]),
1408
- default: U(() => [
1408
+ default: H(() => [
1409
1409
  c.value ? (j(), W("div", Jn)) : (j(), q(C, {
1410
1410
  key: 1,
1411
1411
  ref_key: "formRef",
@@ -1418,7 +1418,7 @@ const Ge = {
1418
1418
  }),
1419
1419
  blameFormChildOnValidationFailed: ""
1420
1420
  }, {
1421
- default: U(() => [
1421
+ default: H(() => [
1422
1422
  e("p", Qn, [
1423
1423
  t[6] || (t[6] = e("b", null, "Date:", -1)),
1424
1424
  t[7] || (t[7] = e("br", null, null, -1)),
@@ -1431,7 +1431,7 @@ const Ge = {
1431
1431
  variant: "outlined",
1432
1432
  class: "p-2"
1433
1433
  }, {
1434
- default: U(() => [
1434
+ default: H(() => [
1435
1435
  e("div", eo, [
1436
1436
  e("span", to, v(z.sku.code), 1),
1437
1437
  e("span", null, v(z.sku.name), 1)
@@ -1563,7 +1563,7 @@ const Ge = {
1563
1563
  var x;
1564
1564
  let g = o.cost;
1565
1565
  if (n) {
1566
- const C = Q.fromDinero(n), H = o.amount, O = o.measurement ? Q.multiply([H, o.measurement.conversion]) : H;
1566
+ const C = Q.fromDinero(n), U = o.amount, O = o.measurement ? Q.multiply([U, o.measurement.conversion]) : U;
1567
1567
  g = {
1568
1568
  ...Q.multiply([C, O]),
1569
1569
  currency: n.currency
@@ -1589,7 +1589,7 @@ const Ge = {
1589
1589
  return (S, i) => {
1590
1590
  const f = T("FmIcon"), I = T("FmTooltip"), b = T("FmCard");
1591
1591
  return j(), q(b, { variant: "outlined" }, {
1592
- default: U(() => [
1592
+ default: H(() => [
1593
1593
  e("div", io, [
1594
1594
  e("div", {
1595
1595
  class: "flex items-center cursor-pointer mb-1",
@@ -1645,12 +1645,12 @@ const Ge = {
1645
1645
  placement: "top",
1646
1646
  "z-index": 50
1647
1647
  }, {
1648
- content: U(() => [
1648
+ content: H(() => [
1649
1649
  e("div", yo, v(a(h)("inventory.stock.record.backdate", [
1650
1650
  a(yt)(new Date(n.backdateFrom))
1651
1651
  ])), 1)
1652
1652
  ]),
1653
- default: U(() => [
1653
+ default: H(() => [
1654
1654
  y(f, {
1655
1655
  name: "info",
1656
1656
  size: "sm",
@@ -1758,7 +1758,7 @@ const So = { class: "flex items-center w-full fm-typo-en-title-md-800" }, wo = {
1758
1758
  }, Do = { class: "pb-16" }, Mo = { class: "fm-typo-cn-body-lg-600" }, Bo = {
1759
1759
  class: "grid gap-12 fm-typo-en-body-md-400",
1760
1760
  style: { "grid-template-columns": "auto auto auto", "grid-auto-rows": "1fr" }
1761
- }, 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 = {
1761
+ }, 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 = {
1762
1762
  key: 0,
1763
1763
  class: "flex flex-col gap-8"
1764
1764
  }, 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 +1822,7 @@ const So = { class: "flex items-center w-full fm-typo-en-title-md-800" }, wo = {
1822
1822
  );
1823
1823
  n.value = _;
1824
1824
  const r = _.filter(({ ref: M }) => M == null ? void 0 : M.startsWith("bill_")).map(({ ref: M }) => M);
1825
- await H(r), t.value = x(_, "day").map(({ date: M, adjustments: V }) => ({
1825
+ await U(r), t.value = x(_, "day").map(({ date: M, adjustments: V }) => ({
1826
1826
  date: M,
1827
1827
  adjustments: V,
1828
1828
  adjustmentsByTime: x(V, "minute")
@@ -1850,7 +1850,7 @@ const So = { class: "flex items-center w-full fm-typo-en-title-md-800" }, wo = {
1850
1850
  console.error("Failed to fetch unit cost history:", M);
1851
1851
  }
1852
1852
  }
1853
- async function H(_) {
1853
+ async function U(_) {
1854
1854
  _.length && (o.value = await D.findBillsById(_).catch((r) => {
1855
1855
  var u;
1856
1856
  console.error("Error on using latest bill API, retrying using legacy api", r);
@@ -1995,11 +1995,11 @@ const So = { class: "flex items-center w-full fm-typo-en-title-md-800" }, wo = {
1995
1995
  return j(), q(gt, {
1996
1996
  "dismiss-away": "",
1997
1997
  modelValue: a(E),
1998
- "onUpdate:modelValue": r[5] || (r[5] = (Fe) => He(E) ? E.value = Fe : null),
1998
+ "onUpdate:modelValue": r[5] || (r[5] = (Fe) => Ue(E) ? E.value = Fe : null),
1999
1999
  "close-button": !1,
2000
2000
  "max-width": 560
2001
2001
  }, {
2002
- "side-sheet-header": U(() => [
2002
+ "side-sheet-header": H(() => [
2003
2003
  e("div", So, [
2004
2004
  e("div", wo, v(a(l)("inventory.stock.history.title", [_.sku.name])), 1),
2005
2005
  y(M, {
@@ -2009,7 +2009,7 @@ const So = { class: "flex items-center w-full fm-typo-en-title-md-800" }, wo = {
2009
2009
  })
2010
2010
  ])
2011
2011
  ]),
2012
- default: U(() => {
2012
+ default: H(() => {
2013
2013
  var Fe;
2014
2014
  return [
2015
2015
  e("div", Fo, [
@@ -2023,12 +2023,12 @@ const So = { class: "flex items-center w-full fm-typo-en-title-md-800" }, wo = {
2023
2023
  "end-label": "",
2024
2024
  "z-index": 50
2025
2025
  }, {
2026
- "trigger-button": U(({ opened: de }) => [
2026
+ "trigger-button": H(({ opened: de }) => [
2027
2027
  y(V, {
2028
2028
  "prepend-icon": "calendar_month",
2029
2029
  focused: de
2030
2030
  }, {
2031
- default: U(() => [
2031
+ default: H(() => [
2032
2032
  pe(v(b.value.startDate) + " - " + v(b.value.endDate), 1)
2033
2033
  ]),
2034
2034
  _: 2
@@ -2056,18 +2056,18 @@ const So = { class: "flex items-center w-full fm-typo-en-title-md-800" }, wo = {
2056
2056
  y(A)
2057
2057
  ])) : t.value && ((Fe = t.value) == null ? void 0 : Fe.length) > 0 ? (j(), W("div", jo, [
2058
2058
  y(we, { variant: "outlined" }, {
2059
- default: U(() => [
2059
+ default: H(() => [
2060
2060
  y(ie, { class: "flex flex-col gap-4" }, {
2061
- default: U(() => [
2061
+ default: H(() => [
2062
2062
  e("div", Do, [
2063
2063
  e("div", Mo, v(a(l)("inventory.stock.history.summary.title")), 1)
2064
2064
  ]),
2065
2065
  e("div", Bo, [
2066
2066
  e("div", Io, [
2067
2067
  e("div", To, v(a(l)("inventory.stock.history.summary.totalPurchase")), 1),
2068
- e("div", Ho, v(O.value.PURCHASE), 1)
2068
+ e("div", Uo, v(O.value.PURCHASE), 1)
2069
2069
  ]),
2070
- e("div", Uo, [
2070
+ e("div", Ho, [
2071
2071
  e("div", Eo, [
2072
2072
  pe(v(a(l)("inventory.stock.history.summary.totalSales")) + "  ", 1),
2073
2073
  X.value != null ? (j(), q(re, {
@@ -2077,7 +2077,7 @@ const So = { class: "flex items-center w-full fm-typo-en-title-md-800" }, wo = {
2077
2077
  content: `Before: ${X.value}`,
2078
2078
  "z-index": 50
2079
2079
  }, {
2080
- default: U(() => [
2080
+ default: H(() => [
2081
2081
  y(ne, {
2082
2082
  name: "warning",
2083
2083
  size: "sm"
@@ -2122,7 +2122,7 @@ const So = { class: "flex items-center w-full fm-typo-en-title-md-800" }, wo = {
2122
2122
  e("div", is, [
2123
2123
  e("div", us, [
2124
2124
  y(nt, { "z-index": 50 }, {
2125
- default: U(() => [
2125
+ default: H(() => [
2126
2126
  e("div", cs, [
2127
2127
  pe(v(a(l)("inventory.stock.history.estimatedValue")) + " ", 1),
2128
2128
  y(re, {
@@ -2131,7 +2131,7 @@ const So = { class: "flex items-center w-full fm-typo-en-title-md-800" }, wo = {
2131
2131
  content: `[${ee.value}] ${a(l)("inventory.stock.history.estimatedValueTooltip")}`,
2132
2132
  "z-index": 50
2133
2133
  }, {
2134
- default: U(() => [
2134
+ default: H(() => [
2135
2135
  y(ne, {
2136
2136
  name: "help",
2137
2137
  size: "sm"
@@ -2173,7 +2173,7 @@ const So = { class: "flex items-center w-full fm-typo-en-title-md-800" }, wo = {
2173
2173
  ]),
2174
2174
  e("div", ms, [
2175
2175
  y(nt, { "z-index": 50 }, {
2176
- default: U(() => [
2176
+ default: H(() => [
2177
2177
  e("div", fs, [
2178
2178
  pe(v(a(l)("inventory.stock.history.costSold")) + " ", 1),
2179
2179
  y(re, {
@@ -2181,10 +2181,10 @@ const So = { class: "flex items-center w-full fm-typo-en-title-md-800" }, wo = {
2181
2181
  placement: "top",
2182
2182
  "z-index": 50
2183
2183
  }, {
2184
- content: U(() => [
2184
+ content: H(() => [
2185
2185
  e("div", ps, v(a(l)("inventory.stock.history.costSoldTooltip")), 1)
2186
2186
  ]),
2187
- default: U(() => [
2187
+ default: H(() => [
2188
2188
  y(ne, {
2189
2189
  name: "help",
2190
2190
  size: "sm"
@@ -2336,7 +2336,7 @@ const So = { class: "flex items-center w-full fm-typo-en-title-md-800" }, wo = {
2336
2336
  }
2337
2337
  }
2338
2338
  return p;
2339
- }), g = L(""), x = L(!0), { breakpoints: C } = Bt(), H = N(() => C.value.xs || C.value.sm), O = N(() => H.value ? 10 : 20), X = St(), z = N(() => [
2339
+ }), g = L(""), x = L(!0), { breakpoints: C } = Bt(), U = N(() => C.value.xs || C.value.sm), O = N(() => U.value ? 10 : 20), X = St(), z = N(() => [
2340
2340
  {
2341
2341
  label: m("inventory.stock.stock_balance.refreshBalance"),
2342
2342
  value: "refresh-balance",
@@ -2379,15 +2379,15 @@ const So = { class: "flex items-center w-full fm-typo-en-title-md-800" }, wo = {
2379
2379
  actions: z.value,
2380
2380
  "onClick:action": ue
2381
2381
  }, {
2382
- default: U(() => {
2382
+ default: H(() => {
2383
2383
  var P, Y, E, _;
2384
2384
  return [
2385
2385
  e("div", {
2386
2386
  class: he([
2387
2387
  "flex flex-col gap-8 max-h-full",
2388
2388
  {
2389
- "p-0": H.value,
2390
- "px-24 ": !H.value
2389
+ "p-0": U.value,
2390
+ "px-24 ": !U.value
2391
2391
  }
2392
2392
  ])
2393
2393
  }, [
@@ -2402,12 +2402,12 @@ const So = { class: "flex items-center w-full fm-typo-en-title-md-800" }, wo = {
2402
2402
  filter: t.value,
2403
2403
  "onUpdate:filter": p[2] || (p[2] = (r) => t.value = r)
2404
2404
  }, {
2405
- default: U(() => [
2405
+ default: H(() => [
2406
2406
  a(h).isEnabled ? (j(), W("div", bs, [
2407
2407
  e("span", xs, v(a(m)("inventory.integration.netsuite.subsidiaryHierarchy.filtering")), 1),
2408
2408
  y(Dt),
2409
2409
  y(Xe, null, {
2410
- default: U(() => [
2410
+ default: H(() => [
2411
2411
  y($, {
2412
2412
  modelValue: x.value,
2413
2413
  "onUpdate:modelValue": p[0] || (p[0] = (r) => x.value = r)
@@ -2429,12 +2429,12 @@ const So = { class: "flex items-center w-full fm-typo-en-title-md-800" }, wo = {
2429
2429
  onRowClick: p[3] || (p[3] = (r) => a(F).showSkuHistory(r.original)),
2430
2430
  "page-size": O.value
2431
2431
  }, {
2432
- "list-row": U((r) => [
2432
+ "list-row": H((r) => [
2433
2433
  y(Qt, {
2434
2434
  row: r,
2435
2435
  onRowClick: a(F).showSkuHistory
2436
2436
  }, {
2437
- default: U((M) => {
2437
+ default: H((M) => {
2438
2438
  var V, u, A, R, ne, re, J, te, oe, ie;
2439
2439
  return [
2440
2440
  e("div", Ss, [
@@ -2478,7 +2478,7 @@ const So = { class: "flex items-center w-full fm-typo-en-title-md-800" }, wo = {
2478
2478
  (j(), q(xt, { to: "body" }, [
2479
2479
  (Y = a(F).stockHistoryProps) != null && Y.sku ? (j(), q(gs, Ne(Ye({ key: 0 }, a(F).stockHistoryProps)), null, 16)) : se("", !0),
2480
2480
  (E = a(F).convertSkuDialogProps) != null && E.sku ? (j(), q(wn, Ne(Ye({ key: 1 }, a(F).convertSkuDialogProps)), null, 16)) : se("", !0),
2481
- (_ = a(F).adjustSkuDialogProps) != null && _.stock ? (j(), q(Hn, Ne(Ye({ key: 2 }, a(F).adjustSkuDialogProps)), null, 16)) : se("", !0),
2481
+ (_ = a(F).adjustSkuDialogProps) != null && _.stock ? (j(), q(Un, Ne(Ye({ key: 2 }, a(F).adjustSkuDialogProps)), null, 16)) : se("", !0),
2482
2482
  Z.value ? (j(), q(qn, {
2483
2483
  key: 3,
2484
2484
  show: Z.value,