@feedmepos/mf-inventory-portal 0.0.23-dev.41 → 0.0.23-dev.42

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 (41) hide show
  1. package/dist/{App-DW2K97Bb.js → App-Cr-n7HVf.js} +104 -98
  2. package/dist/{ApprovalView-BgSxdrwt.js → ApprovalView-BYHDmt9W.js} +5 -5
  3. package/dist/{BindingsDialog-CQtusdvp.js → BindingsDialog-CI0nYM1_.js} +2 -2
  4. package/dist/{BindingsPicker-BnEjRAah.js → BindingsPicker-BVzF3C8O.js} +3 -3
  5. package/dist/{BindingsTable-DpTPAef_.js → BindingsTable-B21_9L2o.js} +1 -1
  6. package/dist/ClosingDraftView-k2Vsz8-W.js +1225 -0
  7. package/dist/{ClosingTemplateView-CMTJHywt.js → ClosingTemplateView-BLda7tYC.js} +21 -21
  8. package/dist/{FmCustomAttribute.vue_vue_type_script_setup_true_lang-zOmcCdDR.js → FmCustomAttribute.vue_vue_type_script_setup_true_lang-DUDOaU6F.js} +8 -8
  9. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-mAPA5_sB.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CXuer_x5.js} +3 -3
  10. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-BjNpfucZ.js → FmUnitInput.vue_vue_type_script_setup_true_lang-Ds3yBf9U.js} +12 -12
  11. package/dist/{IngredientGroupView-CrEfiZvn.js → IngredientGroupView-CgZ4YT3i.js} +1 -1
  12. package/dist/{IngredientsView-BB8LQlU9.js → IngredientsView-tPERrF9O.js} +4 -4
  13. package/dist/{IntegrationView-D2wTkDyX.js → IntegrationView-CoF_rdWv.js} +1 -1
  14. package/dist/{InventoryBindingForm-DW7rJDc1.js → InventoryBindingForm-BSnofTIL.js} +1 -1
  15. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-Ci8UI1eQ.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-4d9oz7Xh.js} +18 -18
  16. package/dist/{InventoryBindingSummary-B40KofiI.js → InventoryBindingSummary-qm9ZUFny.js} +1 -1
  17. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DD7VT9MS.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CQY98Hj6.js} +1 -1
  18. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BGuXTfn6.js → PremiumBadge.vue_vue_type_script_setup_true_lang-NUkiVop4.js} +1 -1
  19. package/dist/{PurchaseOrderPrintPreview-DQmx28Be.js → PurchaseOrderPrintPreview-CIWiq2NB.js} +1 -1
  20. package/dist/{ReceiveRequestView-CJknzKfd.js → ReceiveRequestView-Dgt3FeGb.js} +10 -10
  21. package/dist/{RecipeView-D5oWQ9Yd.js → RecipeView-CzWlx1Xv.js} +3 -3
  22. package/dist/{StockView-U59PHCy2.js → StockView-IPXGJNN8.js} +103 -103
  23. package/dist/{SupplierView-CLjjpTNZ.js → SupplierView-DuL3NXc0.js} +4 -4
  24. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-DLDDXnyG.js → TransferDetails.vue_vue_type_script_setup_true_lang-82Bu89OE.js} +43 -43
  25. package/dist/{TransferTemplateView-CFoVrPIX.js → TransferTemplateView-BEaRafuO.js} +25 -25
  26. package/dist/{UnitView-CAopphN_.js → UnitView-Cwo0mthQ.js} +14 -14
  27. package/dist/{WarehouseView-DUZku5U6.js → WarehouseView-DzjQrpyv.js} +140 -140
  28. package/dist/{app-0klJzLit.js → app-CpuFfqWF.js} +226 -226
  29. package/dist/app.js +1 -1
  30. package/dist/{decimal-Cu4rlnvU.js → decimal-bSGrDlvd.js} +1 -1
  31. package/dist/{feature-C1wCaXKQ.js → feature-D8aRYGen.js} +199 -183
  32. package/dist/{format-unit-display-CMa5UhY1.js → format-unit-display-D4gi2D-O.js} +58 -58
  33. package/dist/{index-HTBqkVVr.js → index-COeURijn.js} +3 -3
  34. package/dist/{index-BJaMpEVJ.js → index-Cn1ato-l.js} +1 -1
  35. package/dist/{stock-CB4yNRMO.js → stock-B1Rchi6n.js} +1 -1
  36. package/dist/stores/feature.d.ts +3 -0
  37. package/dist/style.css +1 -1
  38. package/dist/{supplier-biIIXGyr.js → supplier-CeY_Gro-.js} +1 -1
  39. package/dist/{use-inventory-binding-dialog-BopoOOxB.js → use-inventory-binding-dialog-BXqY40wn.js} +1 -1
  40. package/package.json +1 -1
  41. package/dist/ClosingDraftView-CXKYLCZS.js +0 -1190
@@ -1,21 +1,21 @@
1
- import { defineComponent as re, ref as H, computed as I, resolveComponent as B, openBlock as $, createBlock as z, withCtx as D, createElementVNode as n, normalizeClass as he, toDisplayString as k, createVNode as g, createElementBlock as O, Fragment as ne, renderList as ae, unref as u, h as ye, watch as ke, isRef as je, createCommentVNode as te, reactive as at, onMounted as qe, normalizeStyle as Je, createTextVNode as pe, Teleport as rt, normalizeProps as Se, mergeProps as we } from "vue";
2
- import { u as ce, O as lt, e as Ue, f as it, a as Ie, F as Le, P as Ce, i as ie, K as ut, t as ge, N as Me, A as ct, M as dt, L as ve, Q as mt, T as ee, V as pt, W as ze, l as vt, J as ft, X as yt, Y as _t, Z as Qe, $ as q, a0 as ht, q as Xe, a1 as De, a2 as kt, a3 as gt, n as Ne, a4 as bt, a5 as xt, C as Fe, a6 as St, a7 as wt, a8 as Ft, y as $t, z as At, B as Vt, E as Ct, G as Ye } from "./app-0klJzLit.js";
3
- import { u as Pe, a as Te } from "./stock-CB4yNRMO.js";
4
- import { g as be } from "./decimal-Cu4rlnvU.js";
5
- import { e as Mt, u as Ze, i as et, _ as Ke } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-BGuXTfn6.js";
1
+ import { defineComponent as re, ref as R, computed as I, resolveComponent as B, openBlock as $, createBlock as z, withCtx as D, createElementVNode as n, normalizeClass as he, toDisplayString as k, createVNode as g, createElementBlock as O, Fragment as ne, renderList as ae, unref as u, h as ye, watch as ke, isRef as je, createCommentVNode as te, reactive as at, onMounted as Ge, normalizeStyle as Je, createTextVNode as pe, Teleport as rt, normalizeProps as Se, mergeProps as we } from "vue";
2
+ import { u as ce, N as lt, e as Ue, f as it, a as Ie, F as Le, O as Ce, i as ie, J as ut, t as ge, L as Me, A as ct, M as dt, K as ve, P as mt, Q as ee, T as pt, V as ze, l as vt, H as ft, W as yt, X as _t, Y as Qe, Z as G, $ as ht, q as Xe, a0 as De, a1 as kt, a2 as gt, n as Ne, a3 as bt, a4 as xt, C as Fe, a5 as St, a6 as wt, a7 as Ft, y as $t, _ as At, z as Vt, B as Ct, E as Ye } from "./app-CpuFfqWF.js";
3
+ import { u as Pe, a as Te } from "./stock-B1Rchi6n.js";
4
+ import { g as be } from "./decimal-bSGrDlvd.js";
5
+ import { e as Mt, u as Ze, i as et, _ as Ke } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-NUkiVop4.js";
6
6
  import { _ as Be, S as $e, g as tt } from "./StockForecast.vue_vue_type_style_index_0_lang-KLXSWvo5.js";
7
7
  import { _ as Dt } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
8
8
  import { useI18n as le, useCoreStore as Bt } from "@feedmepos/mf-common";
9
- import { useSnackbar as fe, useDialog as nt, useProxiedModel as Re, useBreakpoints as jt } from "@feedmepos/ui-library";
9
+ import { useSnackbar as fe, useDialog as nt, useProxiedModel as He, useBreakpoints as jt } from "@feedmepos/ui-library";
10
10
  import { defineStore as Ut } from "pinia";
11
- import { u as It } from "./use-inventory-binding-dialog-BopoOOxB.js";
12
- import { _ as Pt } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DD7VT9MS.js";
11
+ import { u as It } from "./use-inventory-binding-dialog-BXqY40wn.js";
12
+ import { _ as Pt } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CQY98Hj6.js";
13
13
  import { E as Tt } from "./empty-placeholder-wf6-BWE8.js";
14
- import "./index-BJaMpEVJ.js";
14
+ import "./index-Cn1ato-l.js";
15
15
  import "./array-hChJVZLE.js";
16
- import { u as Rt } from "./feature-C1wCaXKQ.js";
16
+ import { u as Ht } from "./feature-D8aRYGen.js";
17
17
  var _e = /* @__PURE__ */ ((p) => (p.History = "History", p.Convert = "Convert", p.Adjust = "Adjust", p))(_e || {});
18
- const Ht = [
18
+ const Rt = [
19
19
  {
20
20
  translationKey: "inventory.stock.action.history",
21
21
  color: "text-neutral-700",
@@ -114,7 +114,7 @@ const Lt = { class: "fm-typo-en-body-md-400 flex-grow" }, ot = /* @__PURE__ */ r
114
114
  const a = h(s.sku);
115
115
  b ? localStorage.setItem(a, b) : localStorage.setItem(a, s.unit._id), x.value = xe(s.sku, s.unit);
116
116
  }
117
- const s = p, x = H(xe(s.sku, s.unit)), y = I(() => {
117
+ const s = p, x = R(xe(s.sku, s.unit)), y = I(() => {
118
118
  const { measurements: b } = s.unit;
119
119
  return [
120
120
  {
@@ -135,7 +135,7 @@ const Lt = { class: "fm-typo-en-body-md-400 flex-grow" }, ot = /* @__PURE__ */ r
135
135
  var b;
136
136
  return ((b = y.value.find((a) => c(a))) == null ? void 0 : b.label) ?? "";
137
137
  }
138
- ), F = H(!1);
138
+ ), F = R(!1);
139
139
  return (b, a) => {
140
140
  const o = B("FmIcon"), S = B("FmMenuItem"), A = B("FmMenu");
141
141
  return $(), z(A, {
@@ -181,7 +181,7 @@ const Lt = { class: "fm-typo-en-body-md-400 flex-grow" }, ot = /* @__PURE__ */ r
181
181
  }));
182
182
  }
183
183
  }), st = Ut("stockActions", () => {
184
- const p = H(!1), h = ce(), r = Pe(), s = Ze(), x = fe(), y = nt(), { t: c } = le();
184
+ const p = R(!1), h = ce(), r = Pe(), s = Ze(), x = fe(), y = nt(), { t: c } = le();
185
185
  async function d() {
186
186
  if (h._currentLocation) {
187
187
  p.value = !0;
@@ -198,7 +198,7 @@ const Lt = { class: "fm-typo-en-body-md-400 flex-grow" }, ot = /* @__PURE__ */ r
198
198
  }
199
199
  }
200
200
  }
201
- const F = H();
201
+ const F = R();
202
202
  async function b(i) {
203
203
  var w, M, P;
204
204
  if (!!!((M = (w = i.convert) == null ? void 0 : w.inventoryBindings) != null && M.length)) {
@@ -221,7 +221,7 @@ const Lt = { class: "fm-typo-en-body-md-400 flex-grow" }, ot = /* @__PURE__ */ r
221
221
  };
222
222
  F.value = C;
223
223
  }
224
- const a = H();
224
+ const a = R();
225
225
  async function o(i) {
226
226
  const j = {
227
227
  stock: i,
@@ -235,7 +235,7 @@ const Lt = { class: "fm-typo-en-body-md-400 flex-grow" }, ot = /* @__PURE__ */ r
235
235
  };
236
236
  a.value = j;
237
237
  }
238
- const S = H();
238
+ const S = R();
239
239
  async function A(i) {
240
240
  const j = {
241
241
  sku: i,
@@ -325,7 +325,7 @@ function Yt() {
325
325
  cell(x) {
326
326
  var y;
327
327
  return it(
328
- ((y = p._currentLocation) == null ? void 0 : y.type) === "restaurant" ? Ht : Et,
328
+ ((y = p._currentLocation) == null ? void 0 : y.type) === "restaurant" ? Rt : Et,
329
329
  (c) => h.onActionMenu(c, x.row.original)
330
330
  );
331
331
  },
@@ -373,10 +373,10 @@ const Kt = {
373
373
  return this;
374
374
  }
375
375
  };
376
- function Ge(p) {
376
+ function We(p) {
377
377
  return { ...Kt, context: p };
378
378
  }
379
- const Gt = { class: "flex items-center" }, Wt = { class: "fm-typo-en-title-md-800" }, qt = { class: "flex flex-col gap-24 w-full" }, Jt = { class: "flex flex-col gap-8" }, Qt = { class: "fm-typo-en-body-lg-600" }, Xt = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary flex-grow" }, Zt = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-error" }, en = { class: "flex flex-col p-16 gap-8" }, tn = { class: "flex flex-col gap-4" }, nn = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary bg-fm-color-neutral-gray-100 border-b py-12 px-16" }, on = { class: "grid grid-cols-[auto_100px_100px_48px] xs:grid-cols-[auto_80px_120px_48px] gap-8 px-8 items-center" }, sn = { class: "xs:col-span-3" }, an = { class: "flex gap-8" }, rn = /* @__PURE__ */ re({
379
+ const Wt = { class: "flex items-center" }, qt = { class: "fm-typo-en-title-md-800" }, Gt = { class: "flex flex-col gap-24 w-full" }, Jt = { class: "flex flex-col gap-8" }, Qt = { class: "fm-typo-en-body-lg-600" }, Xt = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary flex-grow" }, Zt = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-error" }, en = { class: "flex flex-col p-16 gap-8" }, tn = { class: "flex flex-col gap-4" }, nn = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary bg-fm-color-neutral-gray-100 border-b py-12 px-16" }, on = { class: "grid grid-cols-[auto_100px_100px_48px] xs:grid-cols-[auto_80px_120px_48px] gap-8 px-8 items-center" }, sn = { class: "xs:col-span-3" }, an = { class: "flex gap-8" }, rn = /* @__PURE__ */ re({
380
380
  __name: "ConvertSkuDialog",
381
381
  props: {
382
382
  sku: {},
@@ -385,7 +385,7 @@ const Gt = { class: "flex items-center" }, Wt = { class: "fm-typo-en-title-md-80
385
385
  },
386
386
  emits: ["update:show", "submitted"],
387
387
  setup(p, { expose: h, emit: r }) {
388
- const s = p, x = r, y = It(), c = Ie(), d = Te(), F = fe(), { t: b } = le(), a = H(0), o = H(null), S = I(() => c.skus), A = I(
388
+ const s = p, x = r, y = It(), c = Ie(), d = Te(), F = fe(), { t: b } = le(), a = R(0), o = R(null), S = I(() => c.skus), A = I(
389
389
  () => {
390
390
  var t, e;
391
391
  return (((e = (t = s.sku) == null ? void 0 : t.convert) == null ? void 0 : e.inventoryBindings) ?? []).filter(
@@ -399,7 +399,7 @@ const Gt = { class: "flex items-center" }, Wt = { class: "fm-typo-en-title-md-80
399
399
  set(t) {
400
400
  t ? o.value = Ue(A.value) : (o.value = null, a.value = Math.min(a.value, s.maxCount ?? 0));
401
401
  }
402
- }), i = H(!1);
402
+ }), i = R(!1);
403
403
  ke([() => s.show], ([t]) => {
404
404
  t && (a.value = 0);
405
405
  });
@@ -409,7 +409,7 @@ const Gt = { class: "flex items-center" }, Wt = { class: "fm-typo-en-title-md-80
409
409
  function E(t) {
410
410
  if (o.value)
411
411
  return !0;
412
- const e = Ge(t).isInteger().max(s.maxCount ?? 0).error ?? "";
412
+ const e = We(t).isInteger().max(s.maxCount ?? 0).error ?? "";
413
413
  return e || !0;
414
414
  }
415
415
  function C(t) {
@@ -418,7 +418,7 @@ const Gt = { class: "flex items-center" }, Wt = { class: "fm-typo-en-title-md-80
418
418
  var N;
419
419
  return V.id === ((N = s.sku.convert) == null ? void 0 : N.measurement);
420
420
  }) ?? null : null, m = Ce(s.sku.unit, e), l = mt(+t);
421
- return Ge(l).isInteger().max(m).error ? "Precision cannot be more than " + m : !0;
421
+ return We(l).isInteger().max(m).error ? "Precision cannot be more than " + m : !0;
422
422
  }
423
423
  const w = I(
424
424
  () => {
@@ -432,8 +432,8 @@ const Gt = { class: "flex items-center" }, Wt = { class: "fm-typo-en-title-md-80
432
432
  var m, l, f;
433
433
  const t = (l = (m = s.sku.convert) == null ? void 0 : m.inventoryBindings) == null ? void 0 : l.filter((v) => v.type === "SKU");
434
434
  return (f = o.value ?? t) == null ? void 0 : f.map((v) => {
435
- var Z, W, se, He, Ee;
436
- const V = c.skus.find((me) => me._id === v.id), N = ((Z = v.measurement) == null ? void 0 : Z.abbrev) ?? ((W = V == null ? void 0 : V.unit) == null ? void 0 : W.abbrev), X = (se = s.sku.convert) != null && se.measurement ? s.sku.unit.measurements.find((me) => {
435
+ var Z, q, se, Re, Ee;
436
+ const V = c.skus.find((me) => me._id === v.id), N = ((Z = v.measurement) == null ? void 0 : Z.abbrev) ?? ((q = V == null ? void 0 : V.unit) == null ? void 0 : q.abbrev), X = (se = s.sku.convert) != null && se.measurement ? s.sku.unit.measurements.find((me) => {
437
437
  var Oe;
438
438
  return me.id === ((Oe = s.sku.convert) == null ? void 0 : Oe.measurement);
439
439
  }) ?? null : null, de = Ce(s.sku.unit, X), U = C(`${a.value}`) === !0 ? ie(
@@ -442,14 +442,14 @@ const Gt = { class: "flex items-center" }, Wt = { class: "fm-typo-en-title-md-80
442
442
  ge(+a.value, de)
443
443
  ),
444
444
  !1
445
- ) : "0", G = (Ee = (He = o.value) == null ? void 0 : He.find((me) => me.id === (V == null ? void 0 : V._id))) == null ? void 0 : Ee.amount, J = G ? ie(G, !1) : null;
445
+ ) : "0", W = (Ee = (Re = o.value) == null ? void 0 : Re.find((me) => me.id === (V == null ? void 0 : V._id))) == null ? void 0 : Ee.amount, J = W ? ie(W, !1) : null;
446
446
  return {
447
447
  sku: V,
448
448
  convertAmount: J ?? U,
449
449
  abbrev: N
450
450
  };
451
451
  });
452
- }), P = H();
452
+ }), P = R();
453
453
  h({
454
454
  validateInputs: () => {
455
455
  var t, e;
@@ -464,7 +464,7 @@ const Gt = { class: "flex items-center" }, Wt = { class: "fm-typo-en-title-md-80
464
464
  (e = (t = P.value) == null ? void 0 : t.resetInputs) == null || e.call(t);
465
465
  }
466
466
  });
467
- const T = Re(s, "show");
467
+ const T = He(s, "show");
468
468
  async function Q(t, e, m) {
469
469
  i.value = !0;
470
470
  try {
@@ -503,7 +503,7 @@ const Gt = { class: "flex items-center" }, Wt = { class: "fm-typo-en-title-md-80
503
503
  const e = S.value.find((m) => m._id === t);
504
504
  return e ? tt(e.unit, !0) : [];
505
505
  }
506
- function R(t, e) {
506
+ function H(t, e) {
507
507
  const m = L(t), l = m.find((f) => f.value === e) ?? m.find((f) => f.value === null);
508
508
  return l ? {
509
509
  ...l,
@@ -552,12 +552,12 @@ const Gt = { class: "flex items-center" }, Wt = { class: "fm-typo-en-title-md-80
552
552
  "max-width": 500
553
553
  }, {
554
554
  "side-sheet-header": D(() => [
555
- n("div", Gt, [
556
- n("div", Wt, k(u(b)("inventory.stock.convert.title", { name: t.sku.name })), 1)
555
+ n("div", Wt, [
556
+ n("div", qt, k(u(b)("inventory.stock.convert.title", { name: t.sku.name })), 1)
557
557
  ])
558
558
  ]),
559
559
  default: D(() => [
560
- n("div", qt, [
560
+ n("div", Gt, [
561
561
  g(l, {
562
562
  ref_key: "formRef",
563
563
  ref: P,
@@ -584,9 +584,9 @@ const Gt = { class: "flex items-center" }, Wt = { class: "fm-typo-en-title-md-80
584
584
  n("div", Jt, [
585
585
  n("div", Qt, k(u(b)("inventory.stock.convert.deductionSummary")), 1),
586
586
  ($(!0), O(ne, null, ae(M.value, (U) => {
587
- var G, J;
587
+ var W, J;
588
588
  return $(), O("div", {
589
- key: (G = U.sku) == null ? void 0 : G._id,
589
+ key: (W = U.sku) == null ? void 0 : W._id,
590
590
  class: "flex items-center"
591
591
  }, [
592
592
  n("div", Xt, k((J = U.sku) == null ? void 0 : J.name), 1),
@@ -620,14 +620,14 @@ const Gt = { class: "flex items-center" }, Wt = { class: "fm-typo-en-title-md-80
620
620
  modelValue: +u(ie)(U.amount ?? { amount: 1, precision: 0 }),
621
621
  rules: [
622
622
  u(dt)(
623
- S.value.find((G) => G._id === U.id).unit,
623
+ S.value.find((W) => W._id === U.id).unit,
624
624
  U.measurement
625
625
  ),
626
626
  u(Me)(0)
627
627
  ]
628
628
  }, {
629
- default: D(({ invalid: G }) => {
630
- var J, Z, W;
629
+ default: D(({ invalid: W }) => {
630
+ var J, Z, q;
631
631
  return [
632
632
  n("div", on, [
633
633
  n("div", sn, k((J = S.value.find((se) => se._id === U.id)) == null ? void 0 : J.name), 1),
@@ -638,15 +638,15 @@ const Gt = { class: "flex items-center" }, Wt = { class: "fm-typo-en-title-md-80
638
638
  U.amount ?? { amount: 1, precision: 0 }
639
639
  ),
640
640
  "onUpdate:modelValue": (se) => Y(U.id, se, o.value ?? []),
641
- invalid: G
641
+ invalid: W
642
642
  }, null, 8, ["disabled", "modelValue", "onUpdate:modelValue", "invalid"]),
643
643
  g(N, {
644
644
  disabled: i.value,
645
645
  class: "translate-y-[2px]",
646
646
  items: L(U.id),
647
- "model-value": (W = R(U.id, (Z = U.measurement) == null ? void 0 : Z.id)) == null ? void 0 : W.value,
647
+ "model-value": (q = H(U.id, (Z = U.measurement) == null ? void 0 : Z.id)) == null ? void 0 : q.value,
648
648
  "onUpdate:modelValue": (se) => K(U.id, se, o.value ?? []),
649
- invalid: G
649
+ invalid: W
650
650
  }, {
651
651
  "helper-text": D(() => e[4] || (e[4] = [])),
652
652
  _: 2
@@ -685,8 +685,8 @@ const Gt = { class: "flex items-center" }, Wt = { class: "fm-typo-en-title-md-80
685
685
  loading: i.value,
686
686
  label: u(b)("inventory.stock.convert.convertButton"),
687
687
  onClick: e[2] || (e[2] = (U) => {
688
- var G, J;
689
- return (J = (G = P.value) == null ? void 0 : G.validateInputs) == null ? void 0 : J.call(G);
688
+ var W, J;
689
+ return (J = (W = P.value) == null ? void 0 : W.validateInputs) == null ? void 0 : J.call(W);
690
690
  })
691
691
  }, null, 8, ["loading", "label"])
692
692
  ])
@@ -700,7 +700,7 @@ function Ae(p, h) {
700
700
  const r = ge(p, h);
701
701
  return { ...r, amount: -r.amount };
702
702
  }
703
- function We(p, h) {
703
+ function qe(p, h) {
704
704
  return ge(Math.abs(p), h);
705
705
  }
706
706
  const Ve = {
@@ -718,11 +718,11 @@ const Ve = {
718
718
  },
719
719
  [ee.enum.EXTRA]: {
720
720
  label: "Extra",
721
- toAdjustmentAmount: We
721
+ toAdjustmentAmount: qe
722
722
  },
723
723
  [ee.enum.PURCHASE]: {
724
724
  label: "Purchase",
725
- toAdjustmentAmount: We
725
+ toAdjustmentAmount: qe
726
726
  }
727
727
  }, ln = { class: "col-span-2 flex" }, un = { class: "fm-typo-en-body-lg-600 flex-1" }, cn = /* @__PURE__ */ re({
728
728
  __name: "AdjustedItemForm",
@@ -853,11 +853,11 @@ const Ve = {
853
853
  },
854
854
  emits: ["update:show", "submitted"],
855
855
  setup(p, { expose: h, emit: r }) {
856
- const s = p, x = r, y = Ie(), c = nt(), d = Te(), F = fe(), b = H(!1), { t: a } = le();
856
+ const s = p, x = r, y = Ie(), c = nt(), d = Te(), F = fe(), b = R(!1), { t: a } = le();
857
857
  function o() {
858
858
  i(Ue(_));
859
859
  }
860
- const S = H();
860
+ const S = R();
861
861
  h({
862
862
  validateInputs: () => {
863
863
  var C, w;
@@ -872,7 +872,7 @@ const Ve = {
872
872
  (w = (C = S.value) == null ? void 0 : C.resetInputs) == null || w.call(C);
873
873
  }
874
874
  });
875
- const A = Re(s, "show"), _ = at({
875
+ const A = He(s, "show"), _ = at({
876
876
  remark: "",
877
877
  adjustments: [
878
878
  {
@@ -1000,8 +1000,8 @@ const Ve = {
1000
1000
  ($(!0), O(ne, null, ae(_.adjustments, (Y, L) => ($(), z(cn, {
1001
1001
  key: Y.id,
1002
1002
  modelValue: _.adjustments[L],
1003
- "onUpdate:modelValue": (R) => _.adjustments[L] = R,
1004
- "onClick:delete": (R) => E(L)
1003
+ "onUpdate:modelValue": (H) => _.adjustments[L] = H,
1004
+ "onClick:delete": (H) => E(L)
1005
1005
  }, null, 8, ["modelValue", "onUpdate:modelValue", "onClick:delete"]))), 128))
1006
1006
  ]),
1007
1007
  _: 1
@@ -1013,8 +1013,8 @@ const Ve = {
1013
1013
  label: u(a)("inventory.stock.adjust.adjustButton"),
1014
1014
  loading: b.value,
1015
1015
  onClick: w[1] || (w[1] = (Y) => {
1016
- var L, R;
1017
- return (R = (L = S.value) == null ? void 0 : L.validateInputs) == null ? void 0 : R.call(L);
1016
+ var L, H;
1017
+ return (H = (L = S.value) == null ? void 0 : L.validateInputs) == null ? void 0 : H.call(L);
1018
1018
  })
1019
1019
  }, null, 8, ["label", "loading"])
1020
1020
  ])
@@ -1057,8 +1057,8 @@ const Ve = {
1057
1057
  bills: { default: () => [] }
1058
1058
  },
1059
1059
  setup(p) {
1060
- const h = p, r = H(!1), s = H(), x = H(null), y = I(() => x.value === null ? "unset" : r.value ? `${x.value}px` : "0px");
1061
- qe(() => {
1060
+ const h = p, r = R(!1), s = R(), x = R(null), y = I(() => x.value === null ? "unset" : r.value ? `${x.value}px` : "0px");
1061
+ Ge(() => {
1062
1062
  var b;
1063
1063
  x.value = ((b = s.value) == null ? void 0 : b.scrollHeight) || 0;
1064
1064
  });
@@ -1074,7 +1074,7 @@ const Ve = {
1074
1074
  }
1075
1075
  return Object.entries(o).reduce(
1076
1076
  (i, [j, E]) => (i[j] = /// comment, because without it formatter makes code uglier
1077
- `${q.toFormatString({
1077
+ `${G.toFormatString({
1078
1078
  value: E,
1079
1079
  precision: 4
1080
1080
  })} ${a.unit.abbrev}`, i),
@@ -1097,7 +1097,7 @@ const Ve = {
1097
1097
  return o.amounts.map((i) => {
1098
1098
  var j;
1099
1099
  return {
1100
- amount: `${q.toFormatString({ value: i.amount, precision: 4 })} ${((j = i.measurement) == null ? void 0 : j.abbrev) ?? o.sku.unit.abbrev}`,
1100
+ amount: `${G.toFormatString({ value: i.amount, precision: 4 })} ${((j = i.measurement) == null ? void 0 : j.abbrev) ?? o.sku.unit.abbrev}`,
1101
1101
  backdateFrom: o.backdateFrom,
1102
1102
  name: i.type,
1103
1103
  remark: i.remark || A || "",
@@ -1206,7 +1206,7 @@ function Cn(p, h) {
1206
1206
  );
1207
1207
  if (!h)
1208
1208
  return Object.entries(r).reduce(
1209
- (c, [d]) => (c[d] = q.fromNumber(0), c),
1209
+ (c, [d]) => (c[d] = G.fromNumber(0), c),
1210
1210
  {}
1211
1211
  );
1212
1212
  const x = p.flatMap((c) => {
@@ -1214,8 +1214,8 @@ function Cn(p, h) {
1214
1214
  return ((d = c.skus) == null ? void 0 : d.filter((F) => F.sku._id === h._id)) ?? [];
1215
1215
  }).flatMap((c) => c.amounts);
1216
1216
  for (const c of x) {
1217
- const d = c.measurement ? q.multiply([c.measurement.conversion, c.amount]) : c.amount;
1218
- r[y = c.type] ?? (r[y] = { amount: 0, precision: 0 }), r[c.type] = q.add([d, r[c.type]]);
1217
+ const d = c.measurement ? G.multiply([c.measurement.conversion, c.amount]) : c.amount;
1218
+ r[y = c.type] ?? (r[y] = { amount: 0, precision: 0 }), r[c.type] = G.add([d, r[c.type]]);
1219
1219
  }
1220
1220
  return Object.entries(r).reduce(
1221
1221
  (c, [d, F]) => {
@@ -1224,7 +1224,7 @@ function Cn(p, h) {
1224
1224
  amount: Math.abs(F.amount)
1225
1225
  };
1226
1226
  return c[d] = /// comment, because without it formatter makes code uglier
1227
- `${q.toFormatString({
1227
+ `${G.toFormatString({
1228
1228
  value: b,
1229
1229
  precision: 4
1230
1230
  })} ${h.unit.abbrev}`, c;
@@ -1248,11 +1248,11 @@ function Mn(p, h) {
1248
1248
  for (const d of c) {
1249
1249
  if (d.type !== ee.Enum.SALES)
1250
1250
  continue;
1251
- const F = d.measurement ? q.multiply([d.measurement.conversion, d.amount]) : d.amount;
1252
- r ?? (r = q.fromNumber(0)), r = q.add([r, F]);
1251
+ const F = d.measurement ? G.multiply([d.measurement.conversion, d.amount]) : d.amount;
1252
+ r ?? (r = G.fromNumber(0)), r = G.add([r, F]);
1253
1253
  }
1254
1254
  }
1255
- return r != null ? (r.amount = Math.abs(r.amount), `${q.toFormatString({
1255
+ return r != null ? (r.amount = Math.abs(r.amount), `${G.toFormatString({
1256
1256
  value: r,
1257
1257
  precision: 4
1258
1258
  })} ${h.unit.abbrev}`) : null;
@@ -1260,13 +1260,13 @@ function Mn(p, h) {
1260
1260
  const Dn = { class: "flex items-center w-full fm-typo-en-title-md-800" }, Bn = { class: "flex-1 line-clamp-2" }, jn = { class: "flex flex-col gap-32 w-full h-full" }, Un = { class: "flex items-center relative gap-4" }, In = { class: "flex-1" }, Pn = {
1261
1261
  key: 0,
1262
1262
  class: "flex-1 flex flex-col items-center gap-16"
1263
- }, Tn = { class: "fm-typo-en-body-lg-400 translate-x-4" }, Rn = {
1263
+ }, Tn = { class: "fm-typo-en-body-lg-400 translate-x-4" }, Hn = {
1264
1264
  key: 1,
1265
1265
  class: "flex flex-col gap-12"
1266
- }, Hn = { class: "pb-16" }, En = { class: "fm-typo-cn-body-lg-600" }, On = {
1266
+ }, Rn = { class: "pb-16" }, En = { class: "fm-typo-cn-body-lg-600" }, On = {
1267
1267
  class: "grid gap-12 fm-typo-en-body-md-400",
1268
1268
  style: { "grid-template-columns": "auto auto auto", "grid-auto-rows": "1fr" }
1269
- }, Ln = { class: "flex flex-col gap-1" }, zn = { class: "text-fm-color-typo-secondary" }, Nn = { class: "font-bold" }, Yn = { class: "flex flex-col gap-1" }, Kn = { class: "text-fm-color-typo-secondary flex" }, Gn = { class: "font-bold" }, Wn = { class: "flex flex-col gap-1" }, qn = { class: "text-fm-color-typo-secondary" }, 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 = {
1269
+ }, Ln = { class: "flex flex-col gap-1" }, zn = { class: "text-fm-color-typo-secondary" }, Nn = { class: "font-bold" }, Yn = { class: "flex flex-col gap-1" }, Kn = { class: "text-fm-color-typo-secondary flex" }, Wn = { class: "font-bold" }, qn = { class: "flex flex-col gap-1" }, Gn = { class: "text-fm-color-typo-secondary" }, 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 = {
1270
1270
  key: 0,
1271
1271
  class: "flex flex-col gap-8"
1272
1272
  }, _o = { class: "flex" }, ho = { class: "flex-1 flex flex-col gap-1" }, ko = { class: "flex gap-1 items-center text-fm-color-typo-secondary" }, go = { class: "font-bold" }, bo = { class: "flex-1 flex flex-col gap-1" }, xo = { class: "flex gap-1 items-center text-fm-color-typo-secondary" }, So = { class: "flex flex-col gap-1" }, wo = { class: "font-bold" }, Fo = {
@@ -1280,7 +1280,7 @@ const Dn = { class: "flex items-center w-full fm-typo-en-title-md-800" }, Bn = {
1280
1280
  },
1281
1281
  emits: ["update:show"],
1282
1282
  setup(p) {
1283
- const h = Bt(), r = Pe(), s = Te(), x = _n(), y = ce(), c = Rt(), { t: d } = le(), F = p, b = H(!1), a = fe(), o = H(kt(0));
1283
+ const h = Bt(), r = Pe(), s = Te(), x = _n(), y = ce(), c = Ht(), { t: d } = le(), F = p, b = R(!1), a = fe(), o = R(kt(0));
1284
1284
  async function S() {
1285
1285
  b.value = !0;
1286
1286
  try {
@@ -1295,12 +1295,12 @@ const Dn = { class: "flex items-center w-full fm-typo-en-title-md-800" }, Bn = {
1295
1295
  b.value = !1;
1296
1296
  }
1297
1297
  }
1298
- qe(() => {
1298
+ Ge(() => {
1299
1299
  S();
1300
1300
  }), ke([() => o.value, () => F.sku], () => {
1301
1301
  S();
1302
1302
  });
1303
- const A = H([]), _ = H([]), i = H(new Array());
1303
+ const A = R([]), _ = R([]), i = R(new Array());
1304
1304
  function j(t, e) {
1305
1305
  return e === "day" ? Ft(t) : Xe(t);
1306
1306
  }
@@ -1357,7 +1357,7 @@ const Dn = { class: "flex items-center w-full fm-typo-en-title-md-800" }, Bn = {
1357
1357
  amount: 0,
1358
1358
  precision: 0
1359
1359
  }, e = F.sku;
1360
- return e ? `${q.toFormatString({
1360
+ return e ? `${G.toFormatString({
1361
1361
  value: t,
1362
1362
  precision: 4
1363
1363
  })} ${e.unit.abbrev}` : "";
@@ -1370,7 +1370,7 @@ const Dn = { class: "flex items-center w-full fm-typo-en-title-md-800" }, Bn = {
1370
1370
  amount: 0,
1371
1371
  precision: 0
1372
1372
  }, e = F.sku;
1373
- return e ? `${q.toFormatString({ value: t, precision: 4 })} ${e.unit.abbrev}` : "";
1373
+ return e ? `${G.toFormatString({ value: t, precision: 4 })} ${e.unit.abbrev}` : "";
1374
1374
  });
1375
1375
  function Y(t) {
1376
1376
  switch (t) {
@@ -1410,7 +1410,7 @@ const Dn = { class: "flex items-center w-full fm-typo-en-title-md-800" }, Bn = {
1410
1410
  );
1411
1411
  return De(e, !1, e.precision);
1412
1412
  });
1413
- function R() {
1413
+ function H() {
1414
1414
  const { startDate: t, endDate: e } = St(o.value);
1415
1415
  t !== null && e !== null && (o.value = {
1416
1416
  startDate: t,
@@ -1425,7 +1425,7 @@ const Dn = { class: "flex items-center w-full fm-typo-en-title-md-800" }, Bn = {
1425
1425
  return f == null ? void 0 : f.toCostBalances;
1426
1426
  });
1427
1427
  return t ? {
1428
- ...t.reduce((l, f) => q.add([l, q.fromDinero(f.cost)]), {
1428
+ ...t.reduce((l, f) => G.add([l, G.fromDinero(f.cost)]), {
1429
1429
  amount: 0,
1430
1430
  precision: 0
1431
1431
  }),
@@ -1439,9 +1439,9 @@ const Dn = { class: "flex items-center w-full fm-typo-en-title-md-800" }, Bn = {
1439
1439
  endDate: e
1440
1440
  });
1441
1441
  }
1442
- const oe = Re(F, "show");
1442
+ const oe = He(F, "show");
1443
1443
  return (t, e) => {
1444
- const m = B("FmButton"), l = B("FmField"), f = B("FmDateRangePicker"), v = B("FmSpacer"), V = B("FmCircularProgress"), N = B("FmIcon"), X = B("FmTooltip"), de = B("FmMenuDivider"), U = B("FmCardSection"), G = B("FmCard"), J = B("FmSideSheet");
1444
+ const m = B("FmButton"), l = B("FmField"), f = B("FmDateRangePicker"), v = B("FmSpacer"), V = B("FmCircularProgress"), N = B("FmIcon"), X = B("FmTooltip"), de = B("FmMenuDivider"), U = B("FmCardSection"), W = B("FmCard"), J = B("FmSideSheet");
1445
1445
  return $(), z(J, {
1446
1446
  "dismiss-away": "",
1447
1447
  modelValue: u(oe),
@@ -1467,16 +1467,16 @@ const Dn = { class: "flex items-center w-full fm-typo-en-title-md-800" }, Bn = {
1467
1467
  n("div", In, [
1468
1468
  g(f, {
1469
1469
  modelValue: o.value,
1470
- "onUpdate:modelValue": e[1] || (e[1] = (W) => o.value = W),
1470
+ "onUpdate:modelValue": e[1] || (e[1] = (q) => o.value = q),
1471
1471
  "show-predefined-range": "",
1472
1472
  "start-label": "",
1473
1473
  "end-label": "",
1474
1474
  "z-index": 50
1475
1475
  }, {
1476
- "trigger-button": D(({ opened: W }) => [
1476
+ "trigger-button": D(({ opened: q }) => [
1477
1477
  g(l, {
1478
1478
  "prepend-icon": "calendar_month",
1479
- focused: W
1479
+ focused: q
1480
1480
  }, {
1481
1481
  default: D(() => [
1482
1482
  pe(k(o.value.startDate) + " - " + k(o.value.endDate), 1)
@@ -1489,12 +1489,12 @@ const Dn = { class: "flex items-center w-full fm-typo-en-title-md-800" }, Bn = {
1489
1489
  ]),
1490
1490
  g(m, {
1491
1491
  variant: "tertiary",
1492
- onClick: e[2] || (e[2] = (W) => R()),
1492
+ onClick: e[2] || (e[2] = (q) => H()),
1493
1493
  "prepend-icon": "navigate_before"
1494
1494
  }),
1495
1495
  g(m, {
1496
1496
  variant: "tertiary",
1497
- onClick: e[3] || (e[3] = (W) => ue()),
1497
+ onClick: e[3] || (e[3] = (q) => ue()),
1498
1498
  "prepend-icon": "navigate_next"
1499
1499
  })
1500
1500
  ]),
@@ -1504,12 +1504,12 @@ const Dn = { class: "flex items-center w-full fm-typo-en-title-md-800" }, Bn = {
1504
1504
  n("div", Tn, k(u(d)("inventory.stock.history.loading")), 1),
1505
1505
  g(v),
1506
1506
  g(v)
1507
- ])) : _.value && ((Z = _.value) == null ? void 0 : Z.length) > 0 ? ($(), O("div", Rn, [
1508
- g(G, { variant: "outlined" }, {
1507
+ ])) : _.value && ((Z = _.value) == null ? void 0 : Z.length) > 0 ? ($(), O("div", Hn, [
1508
+ g(W, { variant: "outlined" }, {
1509
1509
  default: D(() => [
1510
1510
  g(U, { class: "flex flex-col gap-4" }, {
1511
1511
  default: D(() => [
1512
- n("div", Hn, [
1512
+ n("div", Rn, [
1513
1513
  n("div", En, k(u(d)("inventory.stock.history.summary.title")), 1)
1514
1514
  ]),
1515
1515
  n("div", On, [
@@ -1536,10 +1536,10 @@ const Dn = { class: "flex items-center w-full fm-typo-en-title-md-800" }, Bn = {
1536
1536
  _: 1
1537
1537
  }, 8, ["content"])) : te("", !0)
1538
1538
  ]),
1539
- n("div", Gn, k(M.value.SALES), 1)
1539
+ n("div", Wn, k(M.value.SALES), 1)
1540
1540
  ]),
1541
- n("div", Wn, [
1542
- n("div", qn, k(u(d)("inventory.stock.history.summary.totalLose")), 1),
1541
+ n("div", qn, [
1542
+ n("div", Gn, k(u(d)("inventory.stock.history.summary.totalLose")), 1),
1543
1543
  n("div", Jn, k(M.value.LOSE), 1)
1544
1544
  ]),
1545
1545
  n("div", Qn, [
@@ -1631,12 +1631,12 @@ const Dn = { class: "flex items-center w-full fm-typo-en-title-md-800" }, Bn = {
1631
1631
  _: 1
1632
1632
  }),
1633
1633
  e[5] || (e[5] = n("div", null, null, -1)),
1634
- ($(!0), O(ne, null, ae(_.value, (W) => ($(), O(ne, {
1635
- key: W.date
1634
+ ($(!0), O(ne, null, ae(_.value, (q) => ($(), O(ne, {
1635
+ key: q.date
1636
1636
  }, [
1637
1637
  t.sku ? ($(), z(Vn, {
1638
1638
  key: 0,
1639
- record: W,
1639
+ record: q,
1640
1640
  sku: t.sku,
1641
1641
  bills: i.value
1642
1642
  }, null, 8, ["record", "sku", "bills"])) : te("", !0)
@@ -1666,7 +1666,7 @@ const Dn = { class: "flex items-center w-full fm-typo-en-title-md-800" }, Bn = {
1666
1666
  setup(p) {
1667
1667
  const { t: h } = le(), r = Ie(), s = ce(), x = Pe(), y = st(), c = Ze(), { columnDefs: d } = Yt();
1668
1668
  s.watchLocation(a);
1669
- const F = H(!1), b = fe();
1669
+ const F = R(!1), b = fe();
1670
1670
  async function a() {
1671
1671
  if (s._currentLocation) {
1672
1672
  F.value = !0;
@@ -1685,7 +1685,7 @@ const Dn = { class: "flex items-center w-full fm-typo-en-title-md-800" }, Bn = {
1685
1685
  }
1686
1686
  const o = I(
1687
1687
  () => r.skus.map((w) => {
1688
- var Y, L, R;
1688
+ var Y, L, H;
1689
1689
  const M = w.trackingMeasurement;
1690
1690
  let P = (L = (Y = x.stockBalance.skus) == null ? void 0 : Y.find(
1691
1691
  (K) => K.id === w._id
@@ -1699,10 +1699,10 @@ const Dn = { class: "flex items-center w-full fm-typo-en-title-md-800" }, Bn = {
1699
1699
  precision: 0
1700
1700
  },
1701
1701
  day: (T == null ? void 0 : T.depletionDays) ?? void 0,
1702
- trackingUnitAbbrev: M ? ((R = w.unit.measurements.find((K) => K.id === M)) == null ? void 0 : R.abbrev) ?? "" : w.unit.abbrev
1702
+ trackingUnitAbbrev: M ? ((H = w.unit.measurements.find((K) => K.id === M)) == null ? void 0 : H.abbrev) ?? "" : w.unit.abbrev
1703
1703
  };
1704
1704
  })
1705
- ), S = H(""), { breakpoints: A } = jt(), _ = I(() => A.value.xs || A.value.sm), i = I(() => _.value ? 10 : 20), j = $t(), E = I(() => [
1705
+ ), S = R(""), { breakpoints: A } = jt(), _ = I(() => A.value.xs || A.value.sm), i = I(() => _.value ? 10 : 20), j = $t(), E = I(() => [
1706
1706
  {
1707
1707
  label: "Refresh",
1708
1708
  value: "refresh"
@@ -1743,7 +1743,7 @@ const Dn = { class: "flex items-center w-full fm-typo-en-title-md-800" }, Bn = {
1743
1743
  searchable: "",
1744
1744
  "change-location": "",
1745
1745
  search: S.value,
1746
- "onUpdate:search": M[0] || (M[0] = (R) => S.value = R)
1746
+ "onUpdate:search": M[0] || (M[0] = (H) => S.value = H)
1747
1747
  }, null, 8, ["search"]),
1748
1748
  ($(), z(P, {
1749
1749
  style: Je(u(j).tableHeight),
@@ -1752,12 +1752,12 @@ const Dn = { class: "flex items-center w-full fm-typo-en-title-md-800" }, Bn = {
1752
1752
  "search-value": S.value,
1753
1753
  loading: F.value || !u(s)._currentLocation,
1754
1754
  key: (T = u(s)._currentLocation) == null ? void 0 : T.dbName,
1755
- onRowClick: M[1] || (M[1] = (R) => u(y).showSkuHistory(R.original)),
1755
+ onRowClick: M[1] || (M[1] = (H) => u(y).showSkuHistory(H.original)),
1756
1756
  "page-size": i.value
1757
1757
  }, {
1758
- "list-row": D((R) => [
1758
+ "list-row": D((H) => [
1759
1759
  g(Ct, {
1760
- row: R,
1760
+ row: H,
1761
1761
  onRowClick: u(y).showSkuHistory
1762
1762
  }, {
1763
1763
  default: D((K) => {
@@ -1780,16 +1780,16 @@ const Dn = { class: "flex items-center w-full fm-typo-en-title-md-800" }, Bn = {
1780
1780
  ]),
1781
1781
  n("div", null, [
1782
1782
  g(Be, {
1783
- days: R.original.day
1783
+ days: H.original.day
1784
1784
  }, null, 8, ["days"])
1785
1785
  ]),
1786
1786
  n("div", null, [
1787
1787
  g(ot, {
1788
1788
  class: "xs:w-[160px]",
1789
- unit: R.original.unit,
1790
- sku: R.original,
1791
- amount: R.original.balance,
1792
- "default-tracking-measurement": R.original.trackingMeasurement ?? void 0
1789
+ unit: H.original.unit,
1790
+ sku: H.original,
1791
+ amount: H.original.balance,
1792
+ "default-tracking-measurement": H.original.trackingMeasurement ?? void 0
1793
1793
  }, null, 8, ["unit", "sku", "amount", "default-tracking-measurement"])
1794
1794
  ])
1795
1795
  ])