@feedmepos/mf-inventory-portal 0.0.19-dev.10 → 0.0.19-dev.12

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 (43) hide show
  1. package/dist/{ApprovalView-BgTTFiOw.js → ApprovalView-CuTAFiWC.js} +5 -5
  2. package/dist/{BindingsDialog-BROnpXEI.js → BindingsDialog-C_ndNZ8f.js} +1 -1
  3. package/dist/{BindingsPicker-aQHfS_vY.js → BindingsPicker-CcAod_ha.js} +1 -1
  4. package/dist/{BindingsTable-DvtIQMFk.js → BindingsTable-Bm4-kj_a.js} +1 -1
  5. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DR9YAhaJ.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-rDMoAXyd.js} +1 -1
  6. package/dist/{IngredientsView-BgAQCCD-.js → IngredientsView-CyD65_rv.js} +5 -5
  7. package/dist/{IntegrationView-DEBb_X5K.js → IntegrationView-Bh1BWAq-.js} +2 -2
  8. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-VF3PDSzP.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-cw3SEkW_.js} +1 -1
  9. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BIRzNfFN.js → PremiumBadge.vue_vue_type_script_setup_true_lang-B_kVFkxk.js} +1 -1
  10. package/dist/{PurchaseOrderPrintPreview-D2zNGZhx.js → PurchaseOrderPrintPreview-Uf0aO8n1.js} +10 -10
  11. package/dist/{ReceiveRequestView-Dc5JlUMC.js → ReceiveRequestView-C0r1FIwM.js} +7 -7
  12. package/dist/{RecipeView-C1DBn8pW.js → RecipeView-CYE6gi__.js} +5 -5
  13. package/dist/{StockView-6wi6BEOE.js → StockView-CKyhKuGi.js} +135 -127
  14. package/dist/{SupplierView-CS7YdL5Q.js → SupplierView-BSJoZFMr.js} +5 -5
  15. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-8L6lwGpu.js +739 -0
  16. package/dist/TransferDialog.vue_vue_type_script_setup_true_lang-Bdby-n4P.js +1676 -0
  17. package/dist/TransferTemplateView-B23JFk-I.js +1101 -0
  18. package/dist/{UnitView-BUdKTKch.js → UnitView-DXnLq5nR.js} +6 -6
  19. package/dist/{WarehouseView-BbreEn79.js → WarehouseView-BCnvqHHp.js} +4 -4
  20. package/dist/{app-B3oV5Muh.js → app-DDxzU9iC.js} +7986 -7849
  21. package/dist/app.d.ts +136 -0
  22. package/dist/app.js +1 -1
  23. package/dist/components/row-action.enum.d.ts +3 -1
  24. package/dist/{decimal-DzjRPmPY.js → decimal-DN0h6619.js} +1 -1
  25. package/dist/{id-to-date-CG1QobkF.js → id-to-date-D1fU6Y7T.js} +1 -1
  26. package/dist/layout-DcSLry7F.js +151 -0
  27. package/dist/{purchase-order-transaction-type-D-GMrgDp.js → purchase-order-transaction-type-D0c31GiL.js} +92 -87
  28. package/dist/row-action.enum-PMKMRrZR.js +50 -0
  29. package/dist/{supplier-BE_AQA4h.js → supplier-CQXRbSC3.js} +1 -1
  30. package/dist/tsconfig.app.tsbuildinfo +1 -1
  31. package/dist/views/stock/helper/stock-row-action.d.ts +4 -2
  32. package/dist/views/transfer-template/components/transfer-template-details/TransferTemplateDetails.vue.d.ts +20 -0
  33. package/dist/views/transfer-template/components/transfer-template-details/TransferTemplateDetailsProps.d.ts +9 -0
  34. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +1 -0
  35. package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +445 -1
  36. package/dist/{xlsx-BGXLmGtO.js → xlsx-yV2SoDMC.js} +1 -1
  37. package/dist/{xlsx.util-DxU-P-ww.js → xlsx.util-CTIDgqw2.js} +2 -2
  38. package/package.json +3 -3
  39. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-CBbbXOhl.js +0 -745
  40. package/dist/TransferDialog.vue_vue_type_script_setup_true_lang-CWEypKBc.js +0 -1662
  41. package/dist/TransferTemplateView-C1hmdeKM.js +0 -933
  42. package/dist/layout-qEWDq5Vs.js +0 -147
  43. package/dist/row-action.enum-7jVyol1k.js +0 -36
@@ -1,16 +1,16 @@
1
- import { ref as R, defineComponent as re, computed as T, resolveComponent as D, openBlock as B, createBlock as O, withCtx as C, createElementVNode as n, normalizeClass as Ce, toDisplayString as g, createVNode as x, createElementBlock as L, Fragment as te, renderList as ae, unref as v, h as ye, watch as he, isRef as Ue, createCommentVNode as ee, reactive as it, onMounted as Je, normalizeStyle as Qe, createTextVNode as ve, Teleport as ut, normalizeProps as $e, mergeProps as we } from "vue";
2
- import { i as ct, _ as dt, a as mt } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DR9YAhaJ.js";
3
- import { n as Xe, j as ue, o as pt, c as Pe, p as vt, u as Te, q as Oe, r as De, a as ie, k as ft, t as be, m as Me, A as yt, M as _t, l as fe, s as kt, v as Z, w as ht, x as ze, R as bt, y as gt, z as xt, B as Ze, D as q, E as St, f as et, G as je, H as $t, d as Ye, b as wt, J as Bt, K as Ft, C as Be, L as At, N as Vt, O as Ct, P as Dt } from "./app-B3oV5Muh.js";
1
+ import { ref as R, defineComponent as re, computed as T, resolveComponent as D, openBlock as B, createBlock as O, withCtx as C, createElementVNode as n, normalizeClass as Ce, toDisplayString as b, createVNode as x, createElementBlock as L, Fragment as te, renderList as ae, unref as v, h as ye, watch as he, isRef as Ue, createCommentVNode as ee, reactive as it, onMounted as Je, normalizeStyle as Qe, createTextVNode as ve, Teleport as ut, normalizeProps as $e, mergeProps as we } from "vue";
2
+ import { i as ct, _ as dt, a as mt } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-rDMoAXyd.js";
3
+ import { n as Xe, j as ue, o as pt, c as Pe, p as vt, u as Te, q as Oe, r as De, a as ie, k as ft, t as ge, m as Me, A as yt, M as _t, l as fe, s as kt, v as Z, w as ht, x as ze, R as gt, y as bt, z as xt, B as Ze, D as q, E as St, f as et, G as je, H as $t, d as Ye, b as wt, J as Bt, K as Ft, C as Be, L as At, N as Vt, O as Ct, P as Dt } from "./app-DDxzU9iC.js";
4
4
  import { useCoreStore as tt, useI18n as le } from "@feedmepos/mf-common";
5
5
  import { useSnackbar as de, useDialog as nt, useProxiedModel as Re, useBreakpoints as Mt } from "@feedmepos/ui-library";
6
- import { c as jt, _ as It, F as Ke, u as Ut } from "./layout-qEWDq5Vs.js";
7
- import { g as ge } from "./decimal-DzjRPmPY.js";
8
- import { e as Pt, i as ot } from "./id-to-date-CG1QobkF.js";
6
+ import { c as jt, _ as It, F as Ke, u as Ut } from "./layout-DcSLry7F.js";
7
+ import { g as be } from "./decimal-DN0h6619.js";
8
+ import { e as Pt, i as ot } from "./id-to-date-D1fU6Y7T.js";
9
9
  import { _ as Ie, S as Fe, g as st } from "./StockForecast.vue_vue_type_style_index_0_lang-KLXSWvo5.js";
10
10
  import { _ as Tt } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
11
- import { u as at, _ as Ge } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-BIRzNfFN.js";
11
+ import { u as at, _ as Ge } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-B_kVFkxk.js";
12
12
  import { defineStore as Rt } from "pinia";
13
- import { _ as Ht } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-VF3PDSzP.js";
13
+ import { _ as Ht } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-cw3SEkW_.js";
14
14
  import { E as Et } from "./empty-placeholder-wf6-BWE8.js";
15
15
  import "./array-AvWd53LI.js";
16
16
  const Se = Xe((c, d) => {
@@ -100,21 +100,29 @@ const _e = R(Lt()), He = () => {
100
100
  var ke = /* @__PURE__ */ ((c) => (c.History = "History", c.Convert = "Convert", c.Adjust = "Adjust", c))(ke || {});
101
101
  const Nt = [
102
102
  {
103
- label: "History",
104
- color: "text-neutral-700"
103
+ translationKey: "inventory.stock.action.history",
104
+ color: "text-neutral-700",
105
+ value: "History"
106
+ /* History */
105
107
  }
106
108
  ], Ot = [
107
109
  {
108
- label: "History",
109
- color: "text-neutral-700"
110
+ translationKey: "inventory.stock.action.history",
111
+ color: "text-neutral-700",
112
+ value: "History"
113
+ /* History */
110
114
  },
111
115
  {
112
- label: "Convert",
113
- color: "text-neutral-700"
116
+ translationKey: "inventory.stock.action.convert",
117
+ color: "text-neutral-700",
118
+ value: "Convert"
119
+ /* Convert */
114
120
  },
115
121
  {
116
- label: "Adjust",
117
- color: "text-neutral-700"
122
+ translationKey: "inventory.stock.action.adjust",
123
+ color: "text-neutral-700",
124
+ value: "Adjust"
125
+ /* Adjust */
118
126
  }
119
127
  ];
120
128
  async function zt(c) {
@@ -140,7 +148,7 @@ async function zt(c) {
140
148
  name: "Balance",
141
149
  selector: (s) => {
142
150
  const S = xe(s, s.unit);
143
- return S.type === "unit" ? ge(s.balance, s.unit, null, !1) : ge(s.balance, s.unit, S.measurement, !1);
151
+ return S.type === "unit" ? be(s.balance, s.unit, null, !1) : be(s.balance, s.unit, S.measurement, !1);
144
152
  }
145
153
  },
146
154
  {
@@ -193,11 +201,11 @@ const Yt = { class: "fm-typo-en-body-md-400 flex-grow" }, rt = /* @__PURE__ */ r
193
201
  const { measurements: k } = s.unit;
194
202
  return [
195
203
  {
196
- label: `${ge(s.amount, s.unit)}`,
204
+ label: `${be(s.amount, s.unit)}`,
197
205
  value: null
198
206
  },
199
207
  ...k.map(({ id: u }) => ({
200
- label: `${ge(s.amount, s.unit, u)}`,
208
+ label: `${be(s.amount, s.unit, u)}`,
201
209
  value: u
202
210
  }))
203
211
  ];
@@ -215,7 +223,7 @@ const Yt = { class: "fm-typo-en-body-md-400 flex-grow" }, rt = /* @__PURE__ */ r
215
223
  const o = D("FmIcon"), w = D("FmMenuItem"), A = D("FmMenu");
216
224
  return B(), O(A, {
217
225
  "stop-click-propagation": "",
218
- onMenuChanged: u[0] || (u[0] = (b) => h.value = b)
226
+ onMenuChanged: u[0] || (u[0] = (g) => h.value = g)
219
227
  }, {
220
228
  "menu-button": C(() => [
221
229
  n("button", {
@@ -225,7 +233,7 @@ const Yt = { class: "fm-typo-en-body-md-400 flex-grow" }, rt = /* @__PURE__ */ r
225
233
  h.value ? "border-fm-color-primary" : "border-fm-color-neutral-gray-100"
226
234
  ])
227
235
  }, [
228
- n("div", Yt, g(i.value), 1),
236
+ n("div", Yt, b(i.value), 1),
229
237
  x(o, {
230
238
  class: "text-fm-color-neutral-gray-400",
231
239
  name: "expand_more"
@@ -233,11 +241,11 @@ const Yt = { class: "fm-typo-en-body-md-400 flex-grow" }, rt = /* @__PURE__ */ r
233
241
  ], 2)
234
242
  ]),
235
243
  default: C(() => [
236
- (B(!0), L(te, null, ae(l.value, (b) => (B(), O(w, {
237
- key: b.value ?? 0,
238
- label: b.label,
239
- "model-value": a(b),
240
- onClick: (p) => r(b.value)
244
+ (B(!0), L(te, null, ae(l.value, (g) => (B(), O(w, {
245
+ key: g.value ?? 0,
246
+ label: g.label,
247
+ "model-value": a(g),
248
+ onClick: (p) => r(g.value)
241
249
  }, null, 8, ["label", "model-value", "onClick"]))), 128))
242
250
  ]),
243
251
  _: 1
@@ -250,7 +258,7 @@ const Yt = { class: "fm-typo-en-body-md-400 flex-grow" }, rt = /* @__PURE__ */ r
250
258
  const { t: d } = le();
251
259
  return (r, s) => (B(), O(Tt, null, {
252
260
  default: C(() => [
253
- n("div", Kt, g(v(d)("inventory.stock.prediction.daysRemaining")), 1)
261
+ n("div", Kt, b(v(d)("inventory.stock.prediction.daysRemaining")), 1)
254
262
  ]),
255
263
  _: 1
256
264
  }));
@@ -321,7 +329,7 @@ const Yt = { class: "fm-typo-en-body-md-400 flex-grow" }, rt = /* @__PURE__ */ r
321
329
  };
322
330
  w.value = M;
323
331
  }
324
- function b(p, M) {
332
+ function g(p, M) {
325
333
  const H = Pe(M);
326
334
  switch (p) {
327
335
  case ke.History:
@@ -337,7 +345,7 @@ const Yt = { class: "fm-typo-en-body-md-400 flex-grow" }, rt = /* @__PURE__ */ r
337
345
  }
338
346
  return {
339
347
  fetchStockBalance: i,
340
- onActionMenu: b,
348
+ onActionMenu: g,
341
349
  stockHistoryProps: w,
342
350
  showSkuHistory: A,
343
351
  convertSkuDialogProps: h,
@@ -467,7 +475,7 @@ const Jt = { class: "flex items-center" }, Qt = { class: "fm-typo-en-title-md-80
467
475
  (f) => f.type === Oe.enum.SKU
468
476
  );
469
477
  }
470
- ), b = T({
478
+ ), g = T({
471
479
  get() {
472
480
  return !!o.value;
473
481
  },
@@ -479,7 +487,7 @@ const Jt = { class: "flex items-center" }, Qt = { class: "fm-typo-en-title-md-80
479
487
  e && (u.value = 0);
480
488
  });
481
489
  function M() {
482
- W(s.sku, be(u.value), o.value);
490
+ W(s.sku, ge(u.value), o.value);
483
491
  }
484
492
  function H(e) {
485
493
  if (o.value)
@@ -514,7 +522,7 @@ const Jt = { class: "flex items-center" }, Qt = { class: "fm-typo-en-title-md-80
514
522
  }) ?? null : null, me = De(s.sku.unit, Q), U = $(`${u.value}`) === !0 ? ie(
515
523
  ft(
516
524
  y.amount,
517
- be(+u.value, me)
525
+ ge(+u.value, me)
518
526
  ),
519
527
  !1
520
528
  ) : "0", Y = (Le = (Ee = o.value) == null ? void 0 : Ee.find((pe) => pe.id === (V == null ? void 0 : V._id))) == null ? void 0 : Le.amount, J = Y ? ie(Y, !1) : null;
@@ -628,7 +636,7 @@ const Jt = { class: "flex items-center" }, Qt = { class: "fm-typo-en-title-md-80
628
636
  }, {
629
637
  "side-sheet-header": C(() => [
630
638
  n("div", Jt, [
631
- n("div", Qt, g(v(k)("inventory.stock.convert.title", { name: e.sku.name })), 1)
639
+ n("div", Qt, b(v(k)("inventory.stock.convert.title", { name: e.sku.name })), 1)
632
640
  ])
633
641
  ]),
634
642
  default: C(() => [
@@ -657,15 +665,15 @@ const Jt = { class: "flex items-center" }, Qt = { class: "fm-typo-en-title-md-80
657
665
  }, {
658
666
  default: C(() => [
659
667
  n("div", Zt, [
660
- n("div", en, g(v(k)("inventory.stock.convert.deductionSummary")), 1),
668
+ n("div", en, b(v(k)("inventory.stock.convert.deductionSummary")), 1),
661
669
  (B(!0), L(te, null, ae(j.value, (U) => {
662
670
  var Y, J;
663
671
  return B(), L("div", {
664
672
  key: (Y = U.sku) == null ? void 0 : Y._id,
665
673
  class: "flex items-center"
666
674
  }, [
667
- n("div", tn, g((J = U.sku) == null ? void 0 : J.name), 1),
668
- n("div", nn, " -" + g(U.convertAmount) + " " + g(U.abbrev), 1)
675
+ n("div", tn, b((J = U.sku) == null ? void 0 : J.name), 1),
676
+ n("div", nn, " -" + b(U.convertAmount) + " " + b(U.abbrev), 1)
669
677
  ]);
670
678
  }), 128))
671
679
  ])
@@ -677,18 +685,18 @@ const Jt = { class: "flex items-center" }, Qt = { class: "fm-typo-en-title-md-80
677
685
  n("div", on, [
678
686
  x(y, {
679
687
  value: "",
680
- modelValue: b.value,
681
- "onUpdate:modelValue": t[1] || (t[1] = (U) => b.value = U),
688
+ modelValue: g.value,
689
+ "onUpdate:modelValue": t[1] || (t[1] = (U) => g.value = U),
682
690
  label: v(k)("inventory.stock.convert.overrideDeduction"),
683
691
  "label-placement": "right"
684
692
  }, null, 8, ["modelValue", "label"]),
685
- b.value ? (B(), L(te, { key: 0 }, [
693
+ g.value ? (B(), L(te, { key: 0 }, [
686
694
  x(V, {
687
695
  modelValue: o.value,
688
696
  rules: [v(yt)(1, "Must have at least one ingredient binding")]
689
697
  }, null, 8, ["modelValue", "rules"]),
690
698
  n("div", sn, [
691
- n("div", an, g(v(k)("inventory.stock.convert.ingredients")), 1),
699
+ n("div", an, b(v(k)("inventory.stock.convert.ingredients")), 1),
692
700
  (B(!0), L(te, null, ae(o.value, (U) => (B(), O(V, {
693
701
  key: U.id,
694
702
  disabled: p.value,
@@ -705,7 +713,7 @@ const Jt = { class: "flex items-center" }, Qt = { class: "fm-typo-en-title-md-80
705
713
  var J, X, G;
706
714
  return [
707
715
  n("div", rn, [
708
- n("div", ln, g((J = w.value.find((se) => se._id === U.id)) == null ? void 0 : J.name), 1),
716
+ n("div", ln, b((J = w.value.find((se) => se._id === U.id)) == null ? void 0 : J.name), 1),
709
717
  x(f, {
710
718
  class: "xs:col-span-2",
711
719
  disabled: p.value,
@@ -772,11 +780,11 @@ const Jt = { class: "flex items-center" }, Qt = { class: "fm-typo-en-title-md-80
772
780
  }
773
781
  });
774
782
  function Ae(c, d) {
775
- const r = be(c, d);
783
+ const r = ge(c, d);
776
784
  return { ...r, amount: -r.amount };
777
785
  }
778
786
  function We(c, d) {
779
- return be(Math.abs(c), d);
787
+ return ge(Math.abs(c), d);
780
788
  }
781
789
  const Ve = {
782
790
  [Z.enum.DAMAGE]: {
@@ -851,7 +859,7 @@ const Ve = {
851
859
  const o = {
852
860
  ...r.modelValue
853
861
  };
854
- o.measurement = ((A = (w = r.modelValue.doc.unit) == null ? void 0 : w.measurements) == null ? void 0 : A.find((b) => b.id === u)) ?? null, s("update:modelValue", o);
862
+ o.measurement = ((A = (w = r.modelValue.doc.unit) == null ? void 0 : w.measurements) == null ? void 0 : A.find((g) => g.id === u)) ?? null, s("update:modelValue", o);
855
863
  }
856
864
  }), k = T({
857
865
  get() {
@@ -865,14 +873,14 @@ const Ve = {
865
873
  }
866
874
  });
867
875
  return (u, o) => {
868
- const w = D("FmButton"), A = D("FmSelect"), b = D("FmTextarea"), p = D("FmCard");
876
+ const w = D("FmButton"), A = D("FmSelect"), g = D("FmTextarea"), p = D("FmCard");
869
877
  return B(), O(p, {
870
878
  variant: "outlined",
871
879
  class: "grid grid-cols-2 gap-8 p-16"
872
880
  }, {
873
881
  default: C(() => [
874
882
  n("div", dn, [
875
- n("div", mn, g(u.modelValue.doc.name), 1),
883
+ n("div", mn, b(u.modelValue.doc.name), 1),
876
884
  x(w, {
877
885
  variant: "tertiary",
878
886
  "prepend-icon": "delete",
@@ -886,7 +894,7 @@ const Ve = {
886
894
  items: S.value,
887
895
  modelValue: a.value,
888
896
  "onUpdate:modelValue": o[1] || (o[1] = (M) => a.value = M),
889
- rules: [v(bt)()],
897
+ rules: [v(gt)()],
890
898
  "label-mark": "required"
891
899
  }, null, 8, ["disabled", "items", "modelValue", "rules"]),
892
900
  x(Ht, {
@@ -907,7 +915,7 @@ const Ve = {
907
915
  modelValue: h.value,
908
916
  "onUpdate:modelValue": o[3] || (o[3] = (M) => h.value = M)
909
917
  }, null, 8, ["disabled", "items", "modelValue"]),
910
- x(b, {
918
+ x(g, {
911
919
  class: "col-span-2",
912
920
  disabled: u.disabled,
913
921
  label: "Remark",
@@ -930,7 +938,7 @@ const Ve = {
930
938
  setup(c, { expose: d, emit: r }) {
931
939
  const s = c, S = r, l = Te(), a = nt(), i = Se(), h = de(), k = R(!1), { t: u } = le();
932
940
  function o() {
933
- p(Pe(b));
941
+ p(Pe(g));
934
942
  }
935
943
  const w = R();
936
944
  d({
@@ -947,7 +955,7 @@ const Ve = {
947
955
  (F = ($ = w.value) == null ? void 0 : $.resetInputs) == null || F.call($);
948
956
  }
949
957
  });
950
- const A = Re(s, "show"), b = it({
958
+ const A = Re(s, "show"), g = it({
951
959
  remark: "",
952
960
  adjustments: [
953
961
  {
@@ -961,7 +969,7 @@ const Ve = {
961
969
  ]
962
970
  });
963
971
  he([() => s.show], ([$]) => {
964
- $ && (b.remark = "", b.adjustments = [
972
+ $ && (g.remark = "", g.adjustments = [
965
973
  {
966
974
  id: `sku_${(/* @__PURE__ */ new Date()).toISOString()}_${Math.random().toString(16).slice(2, 8)}`,
967
975
  type: Z.enum.PURCHASE,
@@ -1001,10 +1009,10 @@ const Ve = {
1001
1009
  label: j.name,
1002
1010
  sublabel: j.code,
1003
1011
  value: j._id
1004
- })), F = $.filter((j) => b.adjustments.find((I) => I.doc._id === j.value)).map((j) => j.value);
1012
+ })), F = $.filter((j) => g.adjustments.find((I) => I.doc._id === j.value)).map((j) => j.value);
1005
1013
  a.open({
1006
1014
  title: "Select ingredients",
1007
- contentComponent: gt,
1015
+ contentComponent: bt,
1008
1016
  contentComponentProps: {
1009
1017
  items: $,
1010
1018
  modelValue: F
@@ -1022,8 +1030,8 @@ const Ve = {
1022
1030
  variant: "tertiary"
1023
1031
  }
1024
1032
  }).onPrimary((j) => {
1025
- b.adjustments = j.map(
1026
- (I) => b.adjustments.find((E) => E.doc._id === I) ?? {
1033
+ g.adjustments = j.map(
1034
+ (I) => g.adjustments.find((E) => E.doc._id === I) ?? {
1027
1035
  id: `sku_${(/* @__PURE__ */ new Date()).toISOString()}_${Math.random().toString(16).slice(2, 8)}`,
1028
1036
  type: Z.enum.PURCHASE,
1029
1037
  doc: l.skus.find((E) => E._id === I),
@@ -1035,7 +1043,7 @@ const Ve = {
1035
1043
  });
1036
1044
  }
1037
1045
  function H($) {
1038
- b.adjustments.splice($, 1);
1046
+ g.adjustments.splice($, 1);
1039
1047
  }
1040
1048
  return ($, F) => {
1041
1049
  const j = D("FmTextarea"), I = D("FmButton"), E = D("FmForm"), W = D("FmSideSheet");
@@ -1047,7 +1055,7 @@ const Ve = {
1047
1055
  }, {
1048
1056
  "side-sheet-header": C(() => [
1049
1057
  n("div", vn, [
1050
- n("div", fn, g(v(u)("inventory.stock.adjust.title")), 1)
1058
+ n("div", fn, b(v(u)("inventory.stock.adjust.title")), 1)
1051
1059
  ])
1052
1060
  ]),
1053
1061
  default: C(() => [
@@ -1060,11 +1068,11 @@ const Ve = {
1060
1068
  default: C(() => [
1061
1069
  x(j, {
1062
1070
  label: v(u)("inventory.stock.adjust.remark"),
1063
- modelValue: b.remark,
1064
- "onUpdate:modelValue": F[0] || (F[0] = (z) => b.remark = z)
1071
+ modelValue: g.remark,
1072
+ "onUpdate:modelValue": F[0] || (F[0] = (z) => g.remark = z)
1065
1073
  }, null, 8, ["label", "modelValue"]),
1066
1074
  n("div", yn, [
1067
- n("div", _n, g(v(u)("inventory.stock.adjust.adjustedItems")), 1),
1075
+ n("div", _n, b(v(u)("inventory.stock.adjust.adjustedItems")), 1),
1068
1076
  x(I, {
1069
1077
  "prepend-icon": "add",
1070
1078
  variant: "tertiary",
@@ -1072,10 +1080,10 @@ const Ve = {
1072
1080
  onClick: M
1073
1081
  })
1074
1082
  ]),
1075
- (B(!0), L(te, null, ae(b.adjustments, (z, P) => (B(), O(pn, {
1083
+ (B(!0), L(te, null, ae(g.adjustments, (z, P) => (B(), O(pn, {
1076
1084
  key: z.id,
1077
- modelValue: b.adjustments[P],
1078
- "onUpdate:modelValue": (N) => b.adjustments[P] = N,
1085
+ modelValue: g.adjustments[P],
1086
+ "onUpdate:modelValue": (N) => g.adjustments[P] = N,
1079
1087
  "onClick:delete": (N) => H(P)
1080
1088
  }, null, 8, ["modelValue", "onUpdate:modelValue", "onClick:delete"]))), 128))
1081
1089
  ]),
@@ -1098,7 +1106,7 @@ const Ve = {
1098
1106
  }, 8, ["modelValue"]);
1099
1107
  };
1100
1108
  }
1101
- }), bn = Xe((c, d) => ({
1109
+ }), gn = Xe((c, d) => ({
1102
1110
  // TODO: remove once latest inventory backend has been push
1103
1111
  async findBillsByBusinessId(r, s, S) {
1104
1112
  const l = `${c.businessesBackendUrl}/${r}/reports/find-many`, a = {
@@ -1115,7 +1123,7 @@ const Ve = {
1115
1123
  };
1116
1124
  return await d.post(l, a);
1117
1125
  }
1118
- })), gn = { class: "p-16" }, xn = { class: "fm-typo-en-body-md-600 flex-grow" }, Sn = { class: "flex-grow text-fm-color-typo-secondary" }, $n = {
1126
+ })), bn = { class: "p-16" }, xn = { class: "fm-typo-en-body-md-600 flex-grow" }, Sn = { class: "flex-grow text-fm-color-typo-secondary" }, $n = {
1119
1127
  key: 0,
1120
1128
  class: "my-5"
1121
1129
  }, wn = { class: "text-neutral-400" }, Bn = { class: "flex-grow" }, Fn = { class: "flex gap-1" }, An = { class: "flex flex-col gap-1" }, Vn = {
@@ -1138,14 +1146,14 @@ const Ve = {
1138
1146
  S.value = ((k = s.value) == null ? void 0 : k.scrollHeight) || 0;
1139
1147
  });
1140
1148
  const a = T(() => {
1141
- var b;
1149
+ var g;
1142
1150
  const k = d.record.adjustments, u = d.sku, o = {}, A = k.flatMap((p) => {
1143
1151
  var M;
1144
1152
  return ((M = p.skus) == null ? void 0 : M.filter((H) => H.sku._id === u._id)) ?? [];
1145
1153
  }).flatMap((p) => p.amounts);
1146
1154
  for (const p of A) {
1147
1155
  const M = p.measurement ? xt(p.measurement.conversion, p.amount) : p.amount;
1148
- o[b = p.type] ?? (o[b] = { amount: 0, precision: 0 }), o[p.type] = Ze(M, o[p.type]);
1156
+ o[g = p.type] ?? (o[g] = { amount: 0, precision: 0 }), o[p.type] = Ze(M, o[p.type]);
1149
1157
  }
1150
1158
  return Object.entries(o).reduce(
1151
1159
  (p, [M, H]) => (p[M] = /// comment, because without it formatter makes code uglier
@@ -1160,15 +1168,15 @@ const Ve = {
1160
1168
  adjustments: u.flatMap(
1161
1169
  (o) => {
1162
1170
  var w, A;
1163
- return ((A = (w = o.skus) == null ? void 0 : w.map) == null ? void 0 : A.call(w, (b) => ({
1164
- ...b,
1171
+ return ((A = (w = o.skus) == null ? void 0 : w.map) == null ? void 0 : A.call(w, (g) => ({
1172
+ ...g,
1165
1173
  ref: o.ref,
1166
1174
  backdateFrom: o.effectiveAt != null ? ot(o._id) : null
1167
1175
  }))) ?? [];
1168
1176
  }
1169
1177
  ).flatMap((o) => {
1170
- var b;
1171
- const w = (b = d.bills.find((p) => p._id === o.ref)) == null ? void 0 : b.seqNumber, A = w ? i("inventory.stock.record.bill", [w]) : "";
1178
+ var g;
1179
+ const w = (g = d.bills.find((p) => p._id === o.ref)) == null ? void 0 : g.seqNumber, A = w ? i("inventory.stock.record.bill", [w]) : "";
1172
1180
  return o.amounts.map((p) => {
1173
1181
  var M;
1174
1182
  return {
@@ -1185,31 +1193,31 @@ const Ve = {
1185
1193
  const o = D("FmIcon"), w = D("FmTooltip"), A = D("FmCard");
1186
1194
  return B(), O(A, { variant: "outlined" }, {
1187
1195
  default: C(() => [
1188
- n("div", gn, [
1196
+ n("div", bn, [
1189
1197
  n("div", {
1190
1198
  class: "flex items-center cursor-pointer mb-1",
1191
- onClick: u[0] || (u[0] = (b) => r.value = !r.value)
1199
+ onClick: u[0] || (u[0] = (g) => r.value = !r.value)
1192
1200
  }, [
1193
- n("div", xn, g(k.record.date), 1),
1201
+ n("div", xn, b(k.record.date), 1),
1194
1202
  x(o, {
1195
1203
  name: r.value ? "expand_more" : "expand_less",
1196
1204
  color: "#777777",
1197
1205
  size: "md"
1198
1206
  }, null, 8, ["name"])
1199
1207
  ]),
1200
- (B(!0), L(te, null, ae(a.value, (b, p) => (B(), L("div", {
1208
+ (B(!0), L(te, null, ae(a.value, (g, p) => (B(), L("div", {
1201
1209
  key: p,
1202
1210
  class: "flex flex-row py-1",
1203
1211
  style: { "font-size": "0.8rem" }
1204
1212
  }, [
1205
- n("div", Sn, g(v(i)(`inventory.inventoryAdjustment.type.${p}`)), 1),
1213
+ n("div", Sn, b(v(i)(`inventory.inventoryAdjustment.type.${p}`)), 1),
1206
1214
  n("div", {
1207
1215
  class: Ce({
1208
- "text-fm-color-typo-error": b.startsWith("-"),
1209
- "text-fm-color-typo-success": !b.startsWith("-"),
1216
+ "text-fm-color-typo-error": g.startsWith("-"),
1217
+ "text-fm-color-typo-success": !g.startsWith("-"),
1210
1218
  "ml-auto": !0
1211
1219
  })
1212
- }, g(b), 3)
1220
+ }, b(g), 3)
1213
1221
  ]))), 128)),
1214
1222
  n("div", {
1215
1223
  ref_key: "detailRef",
@@ -1222,18 +1230,18 @@ const Ve = {
1222
1230
  })
1223
1231
  }, [
1224
1232
  h.value.length ? (B(), L("hr", $n)) : ee("", !0),
1225
- (B(!0), L(te, null, ae(h.value, (b) => (B(), L("div", {
1226
- key: b.time,
1233
+ (B(!0), L(te, null, ae(h.value, (g) => (B(), L("div", {
1234
+ key: g.time,
1227
1235
  class: "flex gap-1 w-full"
1228
1236
  }, [
1229
- n("div", wn, g(b.time), 1),
1237
+ n("div", wn, b(g.time), 1),
1230
1238
  n("div", Bn, [
1231
- (B(!0), L(te, null, ae(b.adjustments, (p) => (B(), L("div", {
1239
+ (B(!0), L(te, null, ae(g.adjustments, (p) => (B(), L("div", {
1232
1240
  key: p.name,
1233
1241
  class: "flex gap-1"
1234
1242
  }, [
1235
1243
  n("div", Fn, [
1236
- ve(g(v(i)(`inventory.inventoryAdjustment.type.${p.name}`)) + " ", 1),
1244
+ ve(b(v(i)(`inventory.inventoryAdjustment.type.${p.name}`)) + " ", 1),
1237
1245
  p.backdateFrom ? (B(), O(w, {
1238
1246
  key: 0,
1239
1247
  variant: "plain",
@@ -1241,7 +1249,7 @@ const Ve = {
1241
1249
  "z-index": 50
1242
1250
  }, {
1243
1251
  content: C(() => [
1244
- n("div", An, g(v(i)("inventory.stock.record.backdate", [v(et)(new Date(p.backdateFrom))])), 1)
1252
+ n("div", An, b(v(i)("inventory.stock.record.backdate", [v(et)(new Date(p.backdateFrom))])), 1)
1245
1253
  ]),
1246
1254
  default: C(() => [
1247
1255
  x(o, {
@@ -1252,7 +1260,7 @@ const Ve = {
1252
1260
  ]),
1253
1261
  _: 2
1254
1262
  }, 1024)) : ee("", !0),
1255
- p.remark ? (B(), L("span", Vn, " # " + g(p.remark), 1)) : ee("", !0)
1263
+ p.remark ? (B(), L("span", Vn, " # " + b(p.remark), 1)) : ee("", !0)
1256
1264
  ]),
1257
1265
  n("div", {
1258
1266
  class: Ce({
@@ -1260,8 +1268,8 @@ const Ve = {
1260
1268
  "text-fm-color-typo-success": !p.amount.startsWith("-"),
1261
1269
  "ml-auto": !0
1262
1270
  })
1263
- }, g(p.amount), 3),
1264
- p.cost ? (B(), L("div", Cn, " (" + g(v(je)(p.cost, !1, p.cost.precision)) + ") ", 1)) : ee("", !0)
1271
+ }, b(p.amount), 3),
1272
+ p.cost ? (B(), L("div", Cn, " (" + b(v(je)(p.cost, !1, p.cost.precision)) + ") ", 1)) : ee("", !0)
1265
1273
  ]))), 128))
1266
1274
  ])
1267
1275
  ]))), 128))
@@ -1344,7 +1352,7 @@ const In = { class: "flex items-center w-full fm-typo-en-title-md-800" }, Un = {
1344
1352
  }, Yn = { class: "flex flex-col gap-1" }, Kn = { class: "text-fm-color-typo-secondary" }, Gn = { class: "font-bold" }, qn = { class: "flex flex-col gap-1" }, Wn = { class: "text-fm-color-typo-secondary flex" }, Jn = { class: "font-bold" }, Qn = { class: "flex flex-col gap-1" }, Xn = { class: "text-fm-color-typo-secondary" }, Zn = { class: "font-bold" }, eo = { class: "flex flex-col gap-1" }, to = { class: "text-fm-color-typo-secondary" }, no = { class: "font-bold" }, oo = { class: "flex flex-col gap-1" }, so = { class: "text-fm-color-typo-secondary" }, ao = { class: "font-bold" }, ro = { class: "flex flex-col gap-1" }, lo = { class: "text-fm-color-typo-secondary" }, io = { class: "font-bold" }, uo = { class: "flex flex-col gap-1" }, co = { class: "text-fm-color-typo-secondary" }, mo = { class: "font-bold" }, po = { class: "flex flex-col gap-1" }, vo = { class: "text-fm-color-typo-secondary" }, fo = { class: "font-bold" }, yo = { class: "flex flex-col gap-1" }, _o = { class: "text-fm-color-typo-secondary" }, ko = { class: "font-bold" }, ho = {
1345
1353
  key: 0,
1346
1354
  class: "flex flex-col gap-8"
1347
- }, bo = { class: "flex" }, go = { class: "flex-1 flex flex-col gap-1" }, xo = { class: "flex gap-1 items-center text-fm-color-typo-secondary" }, So = { class: "font-bold" }, $o = { class: "flex-1 flex flex-col gap-1" }, wo = { class: "flex gap-1 items-center text-fm-color-typo-secondary" }, Bo = { class: "flex flex-col gap-1" }, Fo = { class: "font-bold" }, Ao = /* @__PURE__ */ n("div", null, null, -1), Vo = {
1355
+ }, go = { class: "flex" }, bo = { class: "flex-1 flex flex-col gap-1" }, xo = { class: "flex gap-1 items-center text-fm-color-typo-secondary" }, So = { class: "font-bold" }, $o = { class: "flex-1 flex flex-col gap-1" }, wo = { class: "flex gap-1 items-center text-fm-color-typo-secondary" }, Bo = { class: "flex flex-col gap-1" }, Fo = { class: "font-bold" }, Ao = /* @__PURE__ */ n("div", null, null, -1), Vo = {
1348
1356
  key: 2,
1349
1357
  class: "flex-1 flex flex-col items-center gap-8"
1350
1358
  }, Co = ["src"], Do = { class: "font-bold text-lg" }, Mo = { class: "text-xs text-neutral-400 text-center" }, jo = /* @__PURE__ */ re({
@@ -1355,7 +1363,7 @@ const In = { class: "flex items-center w-full fm-typo-en-title-md-800" }, Un = {
1355
1363
  },
1356
1364
  emits: ["update:show"],
1357
1365
  setup(c) {
1358
- const d = tt(), r = He(), s = Se(), S = bn(), l = ue(), a = wt(), { t: i } = le(), h = c, k = R(!1), u = de(), o = R(ct(0));
1366
+ const d = tt(), r = He(), s = Se(), S = gn(), l = ue(), a = wt(), { t: i } = le(), h = c, k = R(!1), u = de(), o = R(ct(0));
1359
1367
  async function w() {
1360
1368
  k.value = !0;
1361
1369
  try {
@@ -1375,7 +1383,7 @@ const In = { class: "flex items-center w-full fm-typo-en-title-md-800" }, Un = {
1375
1383
  }), he([() => o.value, () => h.sku], () => {
1376
1384
  w();
1377
1385
  });
1378
- const A = R([]), b = R([]), p = R(new Array());
1386
+ const A = R([]), g = R([]), p = R(new Array());
1379
1387
  function M(e, t) {
1380
1388
  return t === "day" ? Ct(e) : et(e);
1381
1389
  }
@@ -1403,7 +1411,7 @@ const In = { class: "flex items-center w-full fm-typo-en-title-md-800" }, Un = {
1403
1411
  );
1404
1412
  A.value = e;
1405
1413
  const t = e.filter(({ ref: f }) => f == null ? void 0 : f.startsWith("bill_")).map(({ ref: f }) => f);
1406
- await F(t), b.value = H(e, "day").map(({ date: f, adjustments: m }) => ({
1414
+ await F(t), g.value = H(e, "day").map(({ date: f, adjustments: m }) => ({
1407
1415
  date: f,
1408
1416
  adjustments: m,
1409
1417
  adjustmentsByTime: H(m, "minute")
@@ -1526,7 +1534,7 @@ const In = { class: "flex items-center w-full fm-typo-en-title-md-800" }, Un = {
1526
1534
  }, {
1527
1535
  "side-sheet-header": C(() => [
1528
1536
  n("div", In, [
1529
- n("div", Un, g(v(i)("inventory.stock.history.title", [e.sku.name])), 1),
1537
+ n("div", Un, b(v(i)("inventory.stock.history.title", [e.sku.name])), 1),
1530
1538
  x(f, {
1531
1539
  variant: "tertiary",
1532
1540
  "prepend-icon": "close",
@@ -1554,7 +1562,7 @@ const In = { class: "flex items-center w-full fm-typo-en-title-md-800" }, Un = {
1554
1562
  focused: G
1555
1563
  }, {
1556
1564
  default: C(() => [
1557
- ve(g(o.value.startDate) + " - " + g(o.value.endDate), 1)
1565
+ ve(b(o.value.startDate) + " - " + b(o.value.endDate), 1)
1558
1566
  ]),
1559
1567
  _: 2
1560
1568
  }, 1032, ["focused"])
@@ -1576,25 +1584,25 @@ const In = { class: "flex items-center w-full fm-typo-en-title-md-800" }, Un = {
1576
1584
  k.value ? (B(), L("div", Hn, [
1577
1585
  x(y),
1578
1586
  x(V, { size: "xl" }),
1579
- n("div", En, g(v(i)("inventory.stock.history.loading")), 1),
1587
+ n("div", En, b(v(i)("inventory.stock.history.loading")), 1),
1580
1588
  x(y),
1581
1589
  x(y)
1582
- ])) : b.value && ((X = b.value) == null ? void 0 : X.length) > 0 ? (B(), L("div", Ln, [
1590
+ ])) : g.value && ((X = g.value) == null ? void 0 : X.length) > 0 ? (B(), L("div", Ln, [
1583
1591
  x(Y, { variant: "outlined" }, {
1584
1592
  default: C(() => [
1585
1593
  x(U, { class: "flex flex-col gap-4" }, {
1586
1594
  default: C(() => [
1587
1595
  n("div", Nn, [
1588
- n("div", On, g(v(i)("inventory.stock.history.summary.title")), 1)
1596
+ n("div", On, b(v(i)("inventory.stock.history.summary.title")), 1)
1589
1597
  ]),
1590
1598
  n("div", zn, [
1591
1599
  n("div", Yn, [
1592
- n("div", Kn, g(v(i)("inventory.stock.history.summary.totalPurchase")), 1),
1593
- n("div", Gn, g(j.value.PURCHASE), 1)
1600
+ n("div", Kn, b(v(i)("inventory.stock.history.summary.totalPurchase")), 1),
1601
+ n("div", Gn, b(j.value.PURCHASE), 1)
1594
1602
  ]),
1595
1603
  n("div", qn, [
1596
1604
  n("div", Wn, [
1597
- ve(g(v(i)("inventory.stock.history.summary.totalSales")) + "  ", 1),
1605
+ ve(b(v(i)("inventory.stock.history.summary.totalSales")) + "  ", 1),
1598
1606
  I.value != null ? (B(), O(Q, {
1599
1607
  key: 0,
1600
1608
  variant: "plain",
@@ -1611,45 +1619,45 @@ const In = { class: "flex items-center w-full fm-typo-en-title-md-800" }, Un = {
1611
1619
  _: 1
1612
1620
  }, 8, ["content"])) : ee("", !0)
1613
1621
  ]),
1614
- n("div", Jn, g(j.value.SALES), 1)
1622
+ n("div", Jn, b(j.value.SALES), 1)
1615
1623
  ]),
1616
1624
  n("div", Qn, [
1617
- n("div", Xn, g(v(i)("inventory.stock.history.summary.totalLose")), 1),
1618
- n("div", Zn, g(j.value.LOSE), 1)
1625
+ n("div", Xn, b(v(i)("inventory.stock.history.summary.totalLose")), 1),
1626
+ n("div", Zn, b(j.value.LOSE), 1)
1619
1627
  ]),
1620
1628
  n("div", eo, [
1621
- n("div", to, g(v(i)("inventory.stock.history.summary.totalRequest")), 1),
1622
- n("div", no, g(j.value.REQUEST), 1)
1629
+ n("div", to, b(v(i)("inventory.stock.history.summary.totalRequest")), 1),
1630
+ n("div", no, b(j.value.REQUEST), 1)
1623
1631
  ]),
1624
1632
  n("div", oo, [
1625
- n("div", so, g(v(i)("inventory.stock.history.summary.totalReceive")), 1),
1626
- n("div", ao, g(j.value.RECEIVE), 1)
1633
+ n("div", so, b(v(i)("inventory.stock.history.summary.totalReceive")), 1),
1634
+ n("div", ao, b(j.value.RECEIVE), 1)
1627
1635
  ]),
1628
1636
  n("div", ro, [
1629
- n("div", lo, g(v(i)("inventory.stock.history.summary.totalConvert")), 1),
1630
- n("div", io, g(j.value.CONVERT), 1)
1637
+ n("div", lo, b(v(i)("inventory.stock.history.summary.totalConvert")), 1),
1638
+ n("div", io, b(j.value.CONVERT), 1)
1631
1639
  ]),
1632
1640
  n("div", uo, [
1633
- n("div", co, g(v(i)("inventory.stock.history.summary.totalDamage")), 1),
1634
- n("div", mo, g(j.value.DAMAGE), 1)
1641
+ n("div", co, b(v(i)("inventory.stock.history.summary.totalDamage")), 1),
1642
+ n("div", mo, b(j.value.DAMAGE), 1)
1635
1643
  ]),
1636
1644
  n("div", po, [
1637
- n("div", vo, g(v(i)("inventory.stock.history.summary.openingBalance")), 1),
1638
- n("div", fo, g(E.value), 1)
1645
+ n("div", vo, b(v(i)("inventory.stock.history.summary.openingBalance")), 1),
1646
+ n("div", fo, b(E.value), 1)
1639
1647
  ]),
1640
1648
  n("div", yo, [
1641
- n("div", _o, g(v(i)("inventory.stock.history.summary.lastStockBalance")), 1),
1642
- n("div", ko, g(W.value), 1)
1649
+ n("div", _o, b(v(i)("inventory.stock.history.summary.lastStockBalance")), 1),
1650
+ n("div", ko, b(W.value), 1)
1643
1651
  ])
1644
1652
  ]),
1645
1653
  v(a).enableTotalCost ? (B(), L("div", ho, [
1646
1654
  x(me, { class: "w-full" }),
1647
- n("div", bo, [
1648
- n("div", go, [
1655
+ n("div", go, [
1656
+ n("div", bo, [
1649
1657
  x(Ge, { "z-index": 50 }, {
1650
1658
  default: C(() => [
1651
1659
  n("div", xo, [
1652
- ve(g(v(i)("inventory.stock.history.estimatedValue")) + " ", 1),
1660
+ ve(b(v(i)("inventory.stock.history.estimatedValue")) + " ", 1),
1653
1661
  x(Q, {
1654
1662
  variant: "plain",
1655
1663
  placement: "top",
@@ -1668,20 +1676,20 @@ const In = { class: "flex items-center w-full fm-typo-en-title-md-800" }, Un = {
1668
1676
  ]),
1669
1677
  _: 1
1670
1678
  }),
1671
- n("div", So, g(typeof ne.value != "string" ? v(je)(ne.value, !1, ne.value.precision) : ne.value), 1)
1679
+ n("div", So, b(typeof ne.value != "string" ? v(je)(ne.value, !1, ne.value.precision) : ne.value), 1)
1672
1680
  ]),
1673
1681
  n("div", $o, [
1674
1682
  x(Ge, { "z-index": 50 }, {
1675
1683
  default: C(() => [
1676
1684
  n("div", wo, [
1677
- ve(g(v(i)("inventory.stock.history.costSold")) + " ", 1),
1685
+ ve(b(v(i)("inventory.stock.history.costSold")) + " ", 1),
1678
1686
  x(Q, {
1679
1687
  variant: "plain",
1680
1688
  placement: "top",
1681
1689
  "z-index": 50
1682
1690
  }, {
1683
1691
  content: C(() => [
1684
- n("div", Bo, g(v(i)("inventory.stock.history.costSoldTooltip")), 1)
1692
+ n("div", Bo, b(v(i)("inventory.stock.history.costSoldTooltip")), 1)
1685
1693
  ]),
1686
1694
  default: C(() => [
1687
1695
  x(K, {
@@ -1695,7 +1703,7 @@ const In = { class: "flex items-center w-full fm-typo-en-title-md-800" }, Un = {
1695
1703
  ]),
1696
1704
  _: 1
1697
1705
  }),
1698
- n("div", Fo, g(P.value), 1)
1706
+ n("div", Fo, b(P.value), 1)
1699
1707
  ])
1700
1708
  ])
1701
1709
  ])) : ee("", !0)
@@ -1706,7 +1714,7 @@ const In = { class: "flex items-center w-full fm-typo-en-title-md-800" }, Un = {
1706
1714
  _: 1
1707
1715
  }),
1708
1716
  Ao,
1709
- (B(!0), L(te, null, ae(b.value, (G) => (B(), L(te, {
1717
+ (B(!0), L(te, null, ae(g.value, (G) => (B(), L(te, {
1710
1718
  key: G.date
1711
1719
  }, [
1712
1720
  e.sku ? (B(), O(Dn, {
@@ -1724,8 +1732,8 @@ const In = { class: "flex items-center w-full fm-typo-en-title-md-800" }, Un = {
1724
1732
  alt: "List is empty"
1725
1733
  }, null, 8, Co)
1726
1734
  ]),
1727
- n("div", Do, g(v(i)("inventory.stock.history.noRecords")), 1),
1728
- n("div", Mo, g(v(i)("inventory.stock.history.changeDateRange")), 1),
1735
+ n("div", Do, b(v(i)("inventory.stock.history.noRecords")), 1),
1736
+ n("div", Mo, b(v(i)("inventory.stock.history.changeDateRange")), 1),
1729
1737
  x(y),
1730
1738
  x(y)
1731
1739
  ]))
@@ -1777,7 +1785,7 @@ const In = { class: "flex items-center w-full fm-typo-en-title-md-800" }, Un = {
1777
1785
  trackingUnitAbbrev: F ? ((P = $.unit.measurements.find((N) => N.id === F)) == null ? void 0 : P.abbrev) ?? "" : $.unit.abbrev
1778
1786
  };
1779
1787
  })
1780
- ), w = R(""), { breakpoints: A } = Mt(), b = T(() => A.value.xs || A.value.sm ? 10 : 20), p = Ut(), M = T(
1788
+ ), w = R(""), { breakpoints: A } = Mt(), g = T(() => A.value.xs || A.value.sm ? 10 : 20), p = Ut(), M = T(
1781
1789
  () => {
1782
1790
  var $;
1783
1791
  return (($ = s._currentLocation) == null ? void 0 : $.type) === Dt.restaurant;
@@ -1812,7 +1820,7 @@ const In = { class: "flex items-center w-full fm-typo-en-title-md-800" }, Un = {
1812
1820
  loading: h.value || !v(s)._currentLocation,
1813
1821
  key: (I = v(s)._currentLocation) == null ? void 0 : I.dbName,
1814
1822
  onRowClick: F[1] || (F[1] = (P) => v(l).showSkuHistory(P.original)),
1815
- "page-size": b.value
1823
+ "page-size": g.value
1816
1824
  }, {
1817
1825
  "list-row": C((P) => [
1818
1826
  x(It, {