@feedmepos/mf-inventory-portal 1.0.8 → 1.0.9-dev.2

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 (97) hide show
  1. package/dist/{App-DeBNx7kq.js → App-DfxhucPn.js} +50 -49
  2. package/dist/{ApprovalView-CYgDG4X-.js → ApprovalView-BUYgTb8S.js} +24 -24
  3. package/dist/{BindingsDialog-Bojdsd9h.js → BindingsDialog-Cbs9aVch.js} +2 -2
  4. package/dist/{BindingsPicker-TkiARkrC.js → BindingsPicker-BH9bil6g.js} +3 -3
  5. package/dist/{BindingsTable-BWYaPoFt.js → BindingsTable-DBsS_9yb.js} +1 -1
  6. package/dist/ClosingDraftView-CcQssDLY.js +1415 -0
  7. package/dist/{ClosingTemplateView-CUjkAFjw.js → ClosingTemplateView-BHPqi-bL.js} +10 -10
  8. package/dist/{DeliveryOrderPrintPreview-BOEKl7zP.js → DeliveryOrderPrintPreview-DlTLtZ1f.js} +1 -1
  9. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Bve5cng3.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CtJSPDCo.js} +32 -32
  10. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-1-G4gmCj.js → FmUnitInput.vue_vue_type_script_setup_true_lang-B-erI7fq.js} +51 -51
  11. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-Bl526zYj.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DT4nyE8i.js} +1 -1
  12. package/dist/{IngredientGroupView-stli1Xiv.js → IngredientGroupView-DE15kdqH.js} +11 -11
  13. package/dist/{IngredientsView-jmDSRSkr.js → IngredientsView-BCEznLxB.js} +15 -14
  14. package/dist/{IntegrationView-BQZtDqlR.js → IntegrationView-COSJuqnB.js} +146 -145
  15. package/dist/{InventoryBindingForm-hHgB20dI.js → InventoryBindingForm-B3C8gktf.js} +1 -1
  16. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-BK36mlQE.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-Bn2X1jxB.js} +20 -20
  17. package/dist/{InventoryBindingSummary-JsAhd0Jm.js → InventoryBindingSummary-BF1OtGum.js} +1 -1
  18. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-C4A6bDPB.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BMTXHa4I.js} +1 -1
  19. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-C6bND0mn.js → PremiumBadge.vue_vue_type_script_setup_true_lang-CZR7wF6-.js} +10 -10
  20. package/dist/{PublishView-BK7WwXeV.js → PublishView-Cp5tpVb0.js} +12 -12
  21. package/dist/{PurchaseOrderPrintPreview-CMnaZkzc.js → PurchaseOrderPrintPreview-DWOcxCH8.js} +4 -4
  22. package/dist/{ReceiveRequestView-Bb6RQyJ8.js → ReceiveRequestView-CRuhm8r1.js} +53 -52
  23. package/dist/{RecipeView-CZnElbJ8.js → RecipeView-BTS1LBKZ.js} +29 -29
  24. package/dist/{StockView-CDAHrTyi.js → StockView-CuK8s5rt.js} +73 -72
  25. package/dist/{SupplierView-WTgrwbJ_.js → SupplierView-Bwpe9RoM.js} +12 -11
  26. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-DDAZMTzq.js +1897 -0
  27. package/dist/{TransferTemplateView-26w6orAY.js → TransferTemplateView-BlluEiV-.js} +291 -290
  28. package/dist/{UnitView-DAl0OS01.js → UnitView-BWGQHOWP.js} +23 -23
  29. package/dist/{WarehouseView-Db2wXza_.js → WarehouseView-dOCu22dg.js} +26 -26
  30. package/dist/api/bill.d.ts +2 -2
  31. package/dist/api/food-market-hub.d.ts +1 -1
  32. package/dist/api/inventory.d.ts +44 -44
  33. package/dist/api/netsuite.d.ts +3 -3
  34. package/dist/api/purchase-order.d.ts +5 -1
  35. package/dist/api/stock.d.ts +1 -0
  36. package/dist/{app-Ch3IXeOL.js → app-BkIAyhP-.js} +16504 -16961
  37. package/dist/app.d.ts +7 -7
  38. package/dist/app.js +1 -1
  39. package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +8 -8
  40. package/dist/components/shell/inventory/binding-dialog.vue.d.ts +2 -2
  41. package/dist/components/shell/inventory/binding-ui.vue.d.ts +5 -5
  42. package/dist/composable/usePromise.d.ts +41 -0
  43. package/dist/{decimal-BFWsfQmw.js → decimal-BiC7uGww.js} +1 -1
  44. package/dist/feature-CCDDWpq8.js +17319 -0
  45. package/dist/{format-unit-display-CyBzA_Ye.js → format-unit-display-CLa0op_h.js} +60 -60
  46. package/dist/{index-CKB7R0y2.js → index-BbFvsU1Z.js} +7 -6
  47. package/dist/{index-CSjhH3PC.js → index-UgbyiGok.js} +1 -1
  48. package/dist/{stock-BjY9UvKO.js → stock-SxO4bxTm.js} +29 -25
  49. package/dist/stores/feature.d.ts +5 -20
  50. package/dist/stores/integration/foodmarkethub.d.ts +1 -1
  51. package/dist/stores/integration/netsuite.d.ts +7 -7
  52. package/dist/stores/inventory.d.ts +44 -44
  53. package/dist/stores/location.d.ts +137 -137
  54. package/dist/{supplier-8x-ZFcOk.js → supplier-BVdCk7nI.js} +4 -4
  55. package/dist/tsconfig.app.tsbuildinfo +1 -1
  56. package/dist/{use-ingredient-select-dialog-CxZAaSGc.js → use-ingredient-select-dialog-CDeGXhur.js} +1 -1
  57. package/dist/{use-inventory-binding-dialog-Kmg24YiM.js → use-inventory-binding-dialog-CeRKqMy7.js} +1 -1
  58. package/dist/views/adjustment-template/wastage-template/actions.d.ts +228 -228
  59. package/dist/views/adjustment-template/wastage-template/form/WastageTemplateItemTable.vue.d.ts +2 -2
  60. package/dist/views/adjustment-template/wastage-template/form/useAdjustmentTemplateItems.d.ts +1 -1
  61. package/dist/views/adjustment-template/wastage-template/table.d.ts +234 -234
  62. package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +780 -74
  63. package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +424 -409
  64. package/dist/views/closing-template/components/closing-template-form/composables/use-closing-template-items.d.ts +4 -4
  65. package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +252 -252
  66. package/dist/views/closing-template/composables/use-closing-template-table.d.ts +252 -252
  67. package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +12 -12
  68. package/dist/views/ingredients/components/convert/ConvertForm.vue.d.ts +2 -2
  69. package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +8 -8
  70. package/dist/views/ingredients/components/inventory-binding/InventoryBindingForm.vue.d.ts +3 -3
  71. package/dist/views/ingredients/composables/use-ingredient-table.d.ts +4 -4
  72. package/dist/views/integration/components/ApplyProduct.vue.d.ts +2 -2
  73. package/dist/views/integration/components/ApplyProductDialog.vue.d.ts +2 -2
  74. package/dist/views/integration/components/ApplyProductDialogV4.vue.d.ts +2 -2
  75. package/dist/views/integration/components/netsuite/AddLocationDialog.vue.d.ts +204 -204
  76. package/dist/views/integration/components/netsuite/LocationConfigurationDialog.vue.d.ts +2 -2
  77. package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +665 -637
  78. package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +22 -22
  79. package/dist/views/receive-request/components/transfer-form/components/TransferItemTable.vue.d.ts +44 -44
  80. package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +11 -11
  81. package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +614 -0
  82. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +1190 -1142
  83. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +1192 -1144
  84. package/dist/views/receive-request/constants/po-action-to-ui-style.d.ts +6 -0
  85. package/dist/views/recipe/components/recipe-form/RecipeForm.vue.d.ts +2 -2
  86. package/dist/views/stock/components/StockRecordCard.vue.d.ts +1 -1
  87. package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +14 -14
  88. package/dist/views/transfer-template/components/transfer-template-form/components/TransferTemplateItemTable.vue.d.ts +22 -22
  89. package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations.d.ts +17 -17
  90. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +11 -11
  91. package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +805 -805
  92. package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +805 -805
  93. package/dist/views/transfer-template/composables/useTransferTemplateHelper.d.ts +33 -33
  94. package/dist/{vue-i18n-CXd9SF_G.js → vue-i18n-3Mh8tKq8.js} +341 -341
  95. package/package.json +3 -1
  96. package/dist/ClosingDraftView-C0ECZ9zi.js +0 -1394
  97. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-mHNmxBuV.js +0 -1746
@@ -1,16 +1,16 @@
1
1
  import { defineComponent as q, ref as E, onMounted as re, resolveComponent as F, openBlock as x, createElementBlock as I, Fragment as ie, createElementVNode as h, toDisplayString as ue, createVNode as g, createCommentVNode as K, computed as k, watch as ce, createBlock as T, withCtx as P, unref as _, isRef as Z, normalizeClass as de, normalizeStyle as me, Teleport as pe, normalizeProps as fe, guardReactiveProps as ve } from "vue";
2
- import { a as A, e as V, f as O, S as ye, h as ge, D as ee, i as j, j as Y, F as te, m as be, U as _e, A as we, q as ne, r as Re, v as he, s as Ve, u as xe, B as Ce, _ as Ee, C as Se, E as Fe, G as oe } from "./app-Ch3IXeOL.js";
2
+ import { a as A, d as V, e as G, S as ye, f as ge, D as ee, h as Y, i as j, F as te, l as be, U as _e, A as we, p as ne, q as Re, s as he, r as Ve, u as xe, z as Ce, _ as Ee, B as Se, C as Fe, E as oe } from "./app-BkIAyhP-.js";
3
3
  import { useDialog as ke, useSnackbar as se, useProxiedModel as ae, useBreakpoints as De } from "@feedmepos/ui-library";
4
4
  import { i as Ae, _ as $e } from "./is-linked-ingredient-error-fJ2TJb3z.js";
5
- import { _ as le } from "./IngredientBindedItem.vue_vue_type_script_setup_true_lang-Bl526zYj.js";
5
+ import { _ as le } from "./IngredientBindedItem.vue_vue_type_script_setup_true_lang-DT4nyE8i.js";
6
6
  import { defineStore as Ie, storeToRefs as Pe } from "pinia";
7
7
  import { useI18n as H } from "@feedmepos/mf-common";
8
- import { _ as Be } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-BK36mlQE.js";
8
+ import { _ as Be } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-Bn2X1jxB.js";
9
9
  import { _ as Te } from "./FmCustomAttribute.vue_vue_type_script_setup_true_lang-D-IWRjRD.js";
10
10
  const Me = {
11
11
  key: 0,
12
12
  class: "flex flex-col items-center w-full h-full gap-24"
13
- }, Ue = { key: 1 }, Ne = { key: 0 }, Le = /* @__PURE__ */ q({
13
+ }, Ue = { key: 1 }, Ne = { key: 0 }, ze = /* @__PURE__ */ q({
14
14
  __name: "DeleteDialog",
15
15
  props: {
16
16
  type: {},
@@ -51,7 +51,7 @@ const Me = {
51
51
  ], 64);
52
52
  };
53
53
  }
54
- }), G = Ie("recipeForm", function() {
54
+ }), O = Ie("recipeForm", function() {
55
55
  const p = ke(), f = se(), l = A(), r = E(!1), u = E();
56
56
  function i() {
57
57
  const t = {
@@ -66,7 +66,7 @@ const Me = {
66
66
  }
67
67
  async function v(t) {
68
68
  const s = {
69
- recipe: O(t),
69
+ recipe: G(t),
70
70
  mode: V.UPDATE,
71
71
  show: !0,
72
72
  "onUpdate:show"(o) {
@@ -117,7 +117,7 @@ const Me = {
117
117
  text: "Cancel",
118
118
  close: !0
119
119
  },
120
- contentComponent: Le,
120
+ contentComponent: ze,
121
121
  contentComponentProps: {
122
122
  type: "menu",
123
123
  data: t,
@@ -133,15 +133,15 @@ const Me = {
133
133
  recipeViewLoading: r
134
134
  };
135
135
  });
136
- function ze() {
137
- const { updateRecipe: w, deleteRecipe: p } = G(), f = A(), { t: l } = H();
136
+ function Le() {
137
+ const { updateRecipe: w, deleteRecipe: p } = O(), f = A(), { t: l } = H();
138
138
  async function r(d, m) {
139
- const t = O(m);
140
- if (d === j.Edit) {
139
+ const t = G(m);
140
+ if (d === Y.Edit) {
141
141
  await w(t);
142
142
  return;
143
143
  }
144
- if (d === j.Delete) {
144
+ if (d === Y.Delete) {
145
145
  await p(t);
146
146
  return;
147
147
  }
@@ -171,7 +171,7 @@ function ze() {
171
171
  header: "",
172
172
  cell(d) {
173
173
  return ge(
174
- [ee[j.Edit], ee[j.Delete]],
174
+ [ee[Y.Edit], ee[Y.Delete]],
175
175
  (m) => {
176
176
  r(m, d.row.original.original);
177
177
  }
@@ -192,20 +192,20 @@ function ze() {
192
192
  ingredients: u(t.contains, /* @__PURE__ */ new Set([t._id])).map((s) => {
193
193
  var c, b, a, y, C;
194
194
  const o = m.skuById[s.id];
195
- return o ? s.recipeIds.slice(1).length ? `(linked recipe ${(c = m.recipeById[s.recipeIds.at(-1) ?? ""]) == null ? void 0 : c.name}) ${o.name} (${Y(s.amount)}${((b = s.measurement) == null ? void 0 : b.abbrev) ?? ((a = o == null ? void 0 : o.unit) == null ? void 0 : a.abbrev)})` : `${o.name} (${Y(s.amount)}${((y = s.measurement) == null ? void 0 : y.abbrev) ?? ((C = o == null ? void 0 : o.unit) == null ? void 0 : C.abbrev)})` : null;
195
+ return o ? s.recipeIds.slice(1).length ? `(linked recipe ${(c = m.recipeById[s.recipeIds.at(-1) ?? ""]) == null ? void 0 : c.name}) ${o.name} (${j(s.amount)}${((b = s.measurement) == null ? void 0 : b.abbrev) ?? ((a = o == null ? void 0 : o.unit) == null ? void 0 : a.abbrev)})` : `${o.name} (${j(s.amount)}${((y = s.measurement) == null ? void 0 : y.abbrev) ?? ((C = o == null ? void 0 : o.unit) == null ? void 0 : C.abbrev)})` : null;
196
196
  }).filter((s) => s).join(", "),
197
197
  original: t
198
198
  }));
199
199
  }
200
200
  return { columnDefs: i, formatRowData: v };
201
201
  }
202
- const je = { class: "flex flex-col gap-40" }, Ye = {
202
+ const Ye = { class: "flex flex-col gap-40" }, je = {
203
203
  key: 0,
204
204
  class: "col-span-2 mt-16 border-1 border-fm-color-neutral-gray-200 fm-corner-radius-lg flex flex-col p-16 gap-16"
205
205
  }, qe = {
206
206
  key: 0,
207
207
  class: "flex flex-col items-center w-full h-full gap-24"
208
- }, He = { key: 1 }, Ke = { class: "mt-32" }, Ge = /* @__PURE__ */ q({
208
+ }, He = { key: 1 }, Ke = { class: "mt-32" }, Oe = /* @__PURE__ */ q({
209
209
  __name: "RecipeForm",
210
210
  props: {
211
211
  mode: {},
@@ -282,7 +282,7 @@ const je = { class: "flex flex-col gap-40" }, Ye = {
282
282
  onValidationSuccess: m
283
283
  }, {
284
284
  default: P(() => [
285
- h("div", je, [
285
+ h("div", Ye, [
286
286
  g(B, {
287
287
  disabled: e.disabled,
288
288
  label: _(u)("inventory.recipe.name"),
@@ -305,7 +305,7 @@ const je = { class: "flex flex-col gap-40" }, Ye = {
305
305
  id: (R = e.modelValue) == null ? void 0 : R._id,
306
306
  disabled: e.disabled,
307
307
  "model-value": v.value,
308
- "onUpdate:modelValue": n[1] || (n[1] = (L) => v.value = L),
308
+ "onUpdate:modelValue": n[1] || (n[1] = (z) => v.value = z),
309
309
  rules: [_(we)(1)]
310
310
  }, null, 8, ["id", "disabled", "model-value", "rules"])
311
311
  ];
@@ -313,7 +313,7 @@ const je = { class: "flex flex-col gap-40" }, Ye = {
313
313
  _: 1
314
314
  })
315
315
  ]),
316
- e.mode !== _(V).CREATE ? (x(), I("div", Ye, [
316
+ e.mode !== _(V).CREATE ? (x(), I("div", je, [
317
317
  h("div", null, [
318
318
  g(D, {
319
319
  label: "Show binded items",
@@ -350,7 +350,7 @@ const je = { class: "flex flex-col gap-40" }, Ye = {
350
350
  }, 512);
351
351
  };
352
352
  }
353
- }), Oe = { class: "flex gap-4" }, Je = /* @__PURE__ */ q({
353
+ }), Ge = { class: "flex gap-4" }, Je = /* @__PURE__ */ q({
354
354
  __name: "RecipeDialog",
355
355
  props: {
356
356
  show: { type: Boolean },
@@ -383,7 +383,7 @@ const je = { class: "flex flex-col gap-40" }, Ye = {
383
383
  async function s() {
384
384
  t.value = !0;
385
385
  try {
386
- const a = O(i.value);
386
+ const a = G(i.value);
387
387
  a.precision ?? (a.precision = 0), a.measurements ?? (a.measurements = []), await f.createRecipe(a), u.value = !1, l.open({
388
388
  title: r("inventory.common.success"),
389
389
  message: r("inventory.recipe.create.success", { name: i.value.name }),
@@ -442,7 +442,7 @@ const je = { class: "flex flex-col gap-40" }, Ye = {
442
442
  "max-width": 500
443
443
  }, {
444
444
  "side-sheet-footer": P(() => [
445
- h("div", Oe, [
445
+ h("div", Ge, [
446
446
  g(C, {
447
447
  loading: t.value,
448
448
  label: d.value,
@@ -457,7 +457,7 @@ const je = { class: "flex flex-col gap-40" }, Ye = {
457
457
  ])
458
458
  ]),
459
459
  default: P(() => [
460
- g(Ge, {
460
+ g(Oe, {
461
461
  class: "w-full",
462
462
  ref_key: "hasValidationExpose",
463
463
  ref: m,
@@ -492,7 +492,7 @@ function We() {
492
492
  "RECIPE",
493
493
  "",
494
494
  (a = f[c.id]) == null ? void 0 : a.name,
495
- Y(c.amount),
495
+ j(c.amount),
496
496
  "UNIT",
497
497
  b === 0 ? m : ""
498
498
  ];
@@ -506,7 +506,7 @@ function We() {
506
506
  "INGREDIENT",
507
507
  (a = l[c.id]) == null ? void 0 : a.code,
508
508
  (y = l[c.id]) == null ? void 0 : y.name,
509
- Y(c.amount),
509
+ j(c.amount),
510
510
  c.measurement ? c.measurement.abbrev : (S = (C = l[c.id]) == null ? void 0 : C.unit) == null ? void 0 : S.abbrev,
511
511
  !s.length && b === 0 ? m : ""
512
512
  ];
@@ -524,7 +524,7 @@ function We() {
524
524
  const Xe = { class: "flex flex-col py-8" }, Ze = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, et = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ct = /* @__PURE__ */ q({
525
525
  __name: "RecipeView",
526
526
  setup(w) {
527
- const p = A(), f = k(() => p.recipes), l = xe(), { createRecipe: r, updateRecipe: u } = G(), { recipeDialogProps: i, recipeViewLoading: v } = Pe(G()), { columnDefs: d, formatRowData: m } = ze(), t = k(() => m(f.value));
527
+ const p = A(), f = k(() => p.recipes), l = xe(), { createRecipe: r, updateRecipe: u } = O(), { recipeDialogProps: i, recipeViewLoading: v } = Pe(O()), { columnDefs: d, formatRowData: m } = Le(), t = k(() => m(f.value));
528
528
  function s(e) {
529
529
  if (e === "add")
530
530
  return r();
@@ -578,19 +578,19 @@ const Xe = { class: "flex flex-col py-8" }, Ze = { class: "fm-typo-en-body-lg-60
578
578
  onRowClick: (D) => _(u)(D.original)
579
579
  }, {
580
580
  default: P((D) => {
581
- var M, U, N, R, L, J, Q, W, z, X;
581
+ var M, U, N, R, z, J, Q, W, L, X;
582
582
  return [
583
583
  h("div", Xe, [
584
584
  h("div", Ze, [
585
585
  g(_(oe), {
586
586
  render: (N = (U = (M = D.recipe) == null ? void 0 : M.column) == null ? void 0 : U.columnDef) == null ? void 0 : N.cell,
587
- props: (L = (R = D.recipe) == null ? void 0 : R.getContext) == null ? void 0 : L.call(R)
587
+ props: (z = (R = D.recipe) == null ? void 0 : R.getContext) == null ? void 0 : z.call(R)
588
588
  }, null, 8, ["render", "props"])
589
589
  ]),
590
590
  h("div", et, [
591
591
  g(_(oe), {
592
592
  render: (W = (Q = (J = D.ingredients) == null ? void 0 : J.column) == null ? void 0 : Q.columnDef) == null ? void 0 : W.cell,
593
- props: (X = (z = D.ingredients) == null ? void 0 : z.getContext) == null ? void 0 : X.call(z)
593
+ props: (X = (L = D.ingredients) == null ? void 0 : L.getContext) == null ? void 0 : X.call(L)
594
594
  }, null, 8, ["render", "props"])
595
595
  ])
596
596
  ])
@@ -1,17 +1,18 @@
1
1
  import { defineComponent as ie, ref as O, computed as U, resolveComponent as M, openBlock as A, createBlock as Y, withCtx as D, createElementVNode as t, normalizeClass as ge, toDisplayString as h, createVNode as g, createElementBlock as R, Fragment as X, renderList as le, unref as r, h as _e, watch as be, isRef as Ie, createCommentVNode as ne, reactive as at, onMounted as Ge, normalizeStyle as Je, createTextVNode as ce, Teleport as rt, normalizeProps as we, mergeProps as $e } from "vue";
2
- import { u as pe, O as lt, f as Te, h as it, a as Ue, F as Le, P as ut, Q as Be, j as de, K as ct, t as xe, N as De, A as dt, M as mt, L as fe, T as pt, V as te, W as vt, X as Ne, m as ft, J as yt, Y as _t, Z as kt, $ as Qe, a0 as q, a1 as ht, s as Xe, a2 as ke, a3 as gt, a4 as bt, o as Ae, l as ze, p as xt, c as St, a5 as Ft, a6 as wt, a7 as $t, a8 as At, a9 as Ct, B as Vt, _ as Mt, C as Bt, E as Dt, G as Ye } from "./app-Ch3IXeOL.js";
3
- import { u as Pe, a as Ee } from "./stock-BjY9UvKO.js";
4
- import { g as Se } from "./decimal-BFWsfQmw.js";
5
- import { e as jt, u as Ze, i as et, _ as Ke } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-C6bND0mn.js";
2
+ import { u as pe, N as lt, e as Te, f as it, a as Ue, F as Le, O as ut, P as Be, i as de, J as ct, t as xe, L as De, A as dt, M as mt, K as fe, Q as pt, T as te, V as vt, W as Ne, l as ft, H as yt, X as _t, Y as kt, Z as Qe, $ as q, a0 as ht, r as Xe, a1 as ke, a2 as gt, a3 as bt, n as Ae, k as ze, o as xt, a4 as St, a5 as Ft, a6 as wt, a7 as $t, a8 as At, z as Ct, _ as Vt, B as Mt, C as Bt, E as Ye } from "./app-BkIAyhP-.js";
3
+ import { u as Pe, a as He } from "./stock-SxO4bxTm.js";
4
+ import { g as Se } from "./decimal-BiC7uGww.js";
5
+ import { e as Dt, u as Ze, i as et, _ as Ke } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-CZR7wF6-.js";
6
6
  import { _ as je, S as Ce, g as tt } from "./StockForecast.vue_vue_type_style_index_0_lang-KLXSWvo5.js";
7
- import { _ as It } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
8
- import { useI18n as ue, useCoreStore as Tt } from "@feedmepos/mf-common";
9
- import { useSnackbar as ye, useDialog as nt, useProxiedModel as He, useBreakpoints as Ut } from "@feedmepos/ui-library";
10
- import { defineStore as Pt } from "pinia";
11
- import { u as Et } from "./use-inventory-binding-dialog-Kmg24YiM.js";
12
- import { _ as Ht } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-C4A6bDPB.js";
13
- import { E as Rt } from "./empty-placeholder-wf6-BWE8.js";
7
+ import { _ as jt } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
8
+ import { useI18n as ue, useCoreStore as It } from "@feedmepos/mf-common";
9
+ import { useSnackbar as ye, useDialog as nt, useProxiedModel as Ee, useBreakpoints as Tt } from "@feedmepos/ui-library";
10
+ import { defineStore as Ut } from "pinia";
11
+ import { u as Pt } from "./use-inventory-binding-dialog-CeRKqMy7.js";
12
+ import { _ as Ht } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BMTXHa4I.js";
13
+ import { E as Et } from "./empty-placeholder-wf6-BWE8.js";
14
14
  import "./array-hChJVZLE.js";
15
+ import { u as Rt } from "./feature-CCDDWpq8.js";
15
16
  var he = /* @__PURE__ */ ((f) => (f.History = "History", f.Convert = "Convert", f.Adjust = "Adjust", f))(he || {});
16
17
  const Ot = [
17
18
  {
@@ -45,7 +46,7 @@ async function Nt(f) {
45
46
  / /g,
46
47
  "_"
47
48
  )}_${lt().format("DD_MM_YYYY_HHmm")}.xlsx`;
48
- await jt(
49
+ await Dt(
49
50
  [
50
51
  {
51
52
  name: "stock",
@@ -171,14 +172,14 @@ const zt = { class: "fm-typo-en-body-md-400 flex-grow" }, ot = /* @__PURE__ */ i
171
172
  __name: "StockHeaderPreview",
172
173
  setup(f) {
173
174
  const { t: y } = ue();
174
- return (l, o) => (A(), Y(It, null, {
175
+ return (l, o) => (A(), Y(jt, null, {
175
176
  default: D(() => [
176
177
  t("div", Yt, h(r(y)("inventory.stock.prediction.daysRemaining")), 1)
177
178
  ]),
178
179
  _: 1
179
180
  }));
180
181
  }
181
- }), st = Pt("stockActions", () => {
182
+ }), st = Ut("stockActions", () => {
182
183
  const f = O(!1), y = pe(), l = Pe(), o = Ze(), S = ye(), _ = nt(), { t: d } = ue();
183
184
  async function m() {
184
185
  if (y._currentLocation) {
@@ -207,11 +208,11 @@ const zt = { class: "fm-typo-en-body-md-400 flex-grow" }, ot = /* @__PURE__ */ i
207
208
  return;
208
209
  }
209
210
  const V = {
210
- maxCount: ((P = l.productBalance.find(({ id: E }) => E === i._id)) == null ? void 0 : P.count) || 0,
211
+ maxCount: ((P = l.productBalance.find(({ id: H }) => H === i._id)) == null ? void 0 : P.count) || 0,
211
212
  sku: i,
212
213
  show: !0,
213
- "onUpdate:show"(E) {
214
- w.value.show = E;
214
+ "onUpdate:show"(H) {
215
+ w.value.show = H;
215
216
  },
216
217
  onSubmitted() {
217
218
  m();
@@ -383,7 +384,7 @@ const Gt = { class: "flex items-center" }, Jt = { class: "fm-typo-en-title-md-80
383
384
  },
384
385
  emits: ["update:show", "submitted"],
385
386
  setup(f, { expose: y, emit: l }) {
386
- const o = f, S = l, _ = Et(), d = Ue(), m = Ee(), w = ye(), { t: x } = ue(), a = O(0), n = O(null), F = U(() => d.skus), C = U(
387
+ const o = f, S = l, _ = Pt(), d = Ue(), m = He(), w = ye(), { t: x } = ue(), a = O(0), n = O(null), F = U(() => d.skus), C = U(
387
388
  () => {
388
389
  var p, e;
389
390
  return (((e = (p = o.sku) == null ? void 0 : p.convert) == null ? void 0 : e.inventoryBindings) ?? []).filter(
@@ -466,7 +467,7 @@ const Gt = { class: "flex items-center" }, Jt = { class: "fm-typo-en-title-md-80
466
467
  (e = (p = P.value) == null ? void 0 : p.resetInputs) == null || e.call(p);
467
468
  }
468
469
  });
469
- const E = He(o, "show");
470
+ const H = Ee(o, "show");
470
471
  async function Z(p, e, s) {
471
472
  i.value = !0;
472
473
  try {
@@ -505,7 +506,7 @@ const Gt = { class: "flex items-center" }, Jt = { class: "fm-typo-en-title-md-80
505
506
  const e = F.value.find((s) => s._id === p);
506
507
  return e ? tt(e.unit, !0) : [];
507
508
  }
508
- function H(p, e) {
509
+ function E(p, e) {
509
510
  const s = N(p), v = s.find((u) => u.value === e) ?? s.find((u) => u.value === null);
510
511
  return v ? {
511
512
  ...v,
@@ -549,8 +550,8 @@ const Gt = { class: "flex items-center" }, Jt = { class: "fm-typo-en-title-md-80
549
550
  const s = M("FmTextField"), v = M("FmForm"), u = M("FmCard"), c = M("FmSwitch"), b = M("FmFormGroup"), I = M("FmSelect"), J = M("FmButton"), oe = M("FmSideSheet");
550
551
  return A(), Y(oe, {
551
552
  "dismiss-away": "",
552
- modelValue: r(E),
553
- "onUpdate:modelValue": e[3] || (e[3] = (T) => Ie(E) ? E.value = T : null),
553
+ modelValue: r(H),
554
+ "onUpdate:modelValue": e[3] || (e[3] = (T) => Ie(H) ? H.value = T : null),
554
555
  "max-width": 500
555
556
  }, {
556
557
  "side-sheet-header": D(() => [
@@ -646,7 +647,7 @@ const Gt = { class: "flex items-center" }, Jt = { class: "fm-typo-en-title-md-80
646
647
  disabled: i.value,
647
648
  class: "translate-y-[2px]",
648
649
  items: N(T.id),
649
- "model-value": (re = H(T.id, (se = T.measurement) == null ? void 0 : se.id)) == null ? void 0 : re.value,
650
+ "model-value": (re = E(T.id, (se = T.measurement) == null ? void 0 : se.id)) == null ? void 0 : re.value,
650
651
  "onUpdate:modelValue": (Q) => K(T.id, Q, n.value ?? []),
651
652
  invalid: z
652
653
  }, {
@@ -855,7 +856,7 @@ const Me = {
855
856
  },
856
857
  emits: ["update:show", "submitted"],
857
858
  setup(f, { expose: y, emit: l }) {
858
- const o = f, S = l, _ = Ue(), d = nt(), m = Ee(), w = ye(), x = O(!1), { t: a } = ue();
859
+ const o = f, S = l, _ = Ue(), d = nt(), m = He(), w = ye(), x = O(!1), { t: a } = ue();
859
860
  function n() {
860
861
  i(Te(k));
861
862
  }
@@ -874,7 +875,7 @@ const Me = {
874
875
  ($ = (V = F.value) == null ? void 0 : V.resetInputs) == null || $.call(V);
875
876
  }
876
877
  });
877
- const C = He(o, "show"), k = at({
878
+ const C = Ee(o, "show"), k = at({
878
879
  remark: "",
879
880
  adjustments: [
880
881
  {
@@ -904,9 +905,9 @@ const Me = {
904
905
  try {
905
906
  await m.adjustSku({
906
907
  remark: V.remark,
907
- adjustments: V.adjustments.map(({ doc: $, remark: B, type: P, amount: E, measurement: Z }) => ({
908
+ adjustments: V.adjustments.map(({ doc: $, remark: B, type: P, amount: H, measurement: Z }) => ({
908
909
  id: $._id,
909
- amount: E,
910
+ amount: H,
910
911
  measurement: Z,
911
912
  remark: B,
912
913
  doc: $,
@@ -950,10 +951,10 @@ const Me = {
950
951
  }
951
952
  }).onPrimary((B) => {
952
953
  k.adjustments = B.map(
953
- (P) => k.adjustments.find((E) => E.doc._id === P) ?? {
954
+ (P) => k.adjustments.find((H) => H.doc._id === P) ?? {
954
955
  id: `sku_${(/* @__PURE__ */ new Date()).toISOString()}_${Math.random().toString(16).slice(2, 8)}`,
955
956
  type: te.enum.PURCHASE,
956
- doc: _.skus.find((E) => E._id === P),
957
+ doc: _.skus.find((H) => H._id === P),
957
958
  measurement: null,
958
959
  remark: "",
959
960
  amount: fe(1)
@@ -965,7 +966,7 @@ const Me = {
965
966
  k.adjustments.splice(V, 1);
966
967
  }
967
968
  return (V, $) => {
968
- const B = M("FmTextarea"), P = M("FmButton"), E = M("FmForm"), Z = M("FmSideSheet");
969
+ const B = M("FmTextarea"), P = M("FmButton"), H = M("FmForm"), Z = M("FmSideSheet");
969
970
  return A(), Y(Z, {
970
971
  modelValue: r(C),
971
972
  "onUpdate:modelValue": $[2] || ($[2] = (G) => Ie(C) ? C.value = G : null),
@@ -978,7 +979,7 @@ const Me = {
978
979
  ])
979
980
  ]),
980
981
  default: D(() => [
981
- g(E, {
982
+ g(H, {
982
983
  class: "w-full flex flex-col gap-12",
983
984
  ref_key: "formRef",
984
985
  ref: F,
@@ -1002,8 +1003,8 @@ const Me = {
1002
1003
  (A(!0), R(X, null, le(k.adjustments, (G, N) => (A(), Y(mn, {
1003
1004
  key: G.id,
1004
1005
  modelValue: k.adjustments[N],
1005
- "onUpdate:modelValue": (H) => k.adjustments[N] = H,
1006
- "onClick:delete": (H) => L(N)
1006
+ "onUpdate:modelValue": (E) => k.adjustments[N] = E,
1007
+ "onClick:delete": (E) => L(N)
1007
1008
  }, null, 8, ["modelValue", "onUpdate:modelValue", "onClick:delete"]))), 128))
1008
1009
  ]),
1009
1010
  _: 1
@@ -1015,8 +1016,8 @@ const Me = {
1015
1016
  label: r(a)("inventory.stock.adjust.adjustButton"),
1016
1017
  loading: x.value,
1017
1018
  onClick: $[1] || ($[1] = (G) => {
1018
- var N, H;
1019
- return (H = (N = F.value) == null ? void 0 : N.validateInputs) == null ? void 0 : H.call(N);
1019
+ var N, E;
1020
+ return (E = (N = F.value) == null ? void 0 : N.validateInputs) == null ? void 0 : E.call(N);
1020
1021
  })
1021
1022
  }, null, 8, ["label", "loading"])
1022
1023
  ])
@@ -1259,10 +1260,10 @@ function Dn(f, y) {
1259
1260
  precision: 4
1260
1261
  })} ${y.unit.abbrev}`) : null;
1261
1262
  }
1262
- const jn = { class: "flex items-center w-full fm-typo-en-title-md-800" }, In = { class: "flex-1 line-clamp-2" }, Tn = { class: "flex flex-col gap-32 w-full h-full" }, Un = { class: "flex items-center relative gap-4" }, Pn = { class: "flex-1" }, En = {
1263
+ const jn = { class: "flex items-center w-full fm-typo-en-title-md-800" }, In = { class: "flex-1 line-clamp-2" }, Tn = { class: "flex flex-col gap-32 w-full h-full" }, Un = { class: "flex items-center relative gap-4" }, Pn = { class: "flex-1" }, Hn = {
1263
1264
  key: 0,
1264
1265
  class: "flex-1 flex flex-col items-center gap-16"
1265
- }, Hn = { class: "fm-typo-en-body-lg-400 translate-x-4" }, Rn = {
1266
+ }, En = { class: "fm-typo-en-body-lg-400 translate-x-4" }, Rn = {
1266
1267
  key: 1,
1267
1268
  class: "flex flex-col gap-12"
1268
1269
  }, On = { class: "pb-16" }, Ln = { class: "fm-typo-cn-body-lg-600" }, Nn = {
@@ -1282,7 +1283,7 @@ const jn = { class: "flex items-center w-full fm-typo-en-title-md-800" }, In = {
1282
1283
  },
1283
1284
  emits: ["update:show"],
1284
1285
  setup(f) {
1285
- const y = Tt(), l = Pe(), o = Ee(), S = hn(), _ = pe(), d = St(), { t: m } = ue(), w = f, x = O(!1), a = ye(), n = O(gt(0));
1286
+ const y = It(), l = Pe(), o = He(), S = hn(), _ = pe(), d = Rt(), { t: m } = ue(), w = f, x = O(!1), a = ye(), n = O(gt(0));
1286
1287
  async function F() {
1287
1288
  x.value = !0;
1288
1289
  try {
@@ -1304,7 +1305,7 @@ const jn = { class: "flex items-center w-full fm-typo-en-title-md-800" }, In = {
1304
1305
  });
1305
1306
  const C = O([]), k = O([]), i = O(new Array());
1306
1307
  function j(e, s) {
1307
- return s === "day" ? Ct(e) : Xe(e);
1308
+ return s === "day" ? At(e) : Xe(e);
1308
1309
  }
1309
1310
  function L(e, s) {
1310
1311
  const v = e.reduce(
@@ -1325,8 +1326,8 @@ const jn = { class: "flex items-center w-full fm-typo-en-title-md-800" }, In = {
1325
1326
  async function V() {
1326
1327
  let e = await o.readStockAdjustment(
1327
1328
  w.sku._id,
1328
- Ft(new Date(n.value.startDate)).toISOString(),
1329
- wt(new Date(n.value.endDate)).toISOString()
1329
+ St(new Date(n.value.startDate)).toISOString(),
1330
+ Ft(new Date(n.value.endDate)).toISOString()
1330
1331
  );
1331
1332
  C.value = e;
1332
1333
  const s = e.filter(({ ref: v }) => v == null ? void 0 : v.startsWith("bill_")).map(({ ref: v }) => v);
@@ -1350,7 +1351,7 @@ const jn = { class: "flex items-center w-full fm-typo-en-title-md-800" }, In = {
1350
1351
  }), P = U(() => {
1351
1352
  const e = C.value, s = w.sku;
1352
1353
  return Dn(e, s);
1353
- }), E = U(() => {
1354
+ }), H = U(() => {
1354
1355
  const e = [...C.value].computeFirst((v) => {
1355
1356
  var c, b;
1356
1357
  const u = (b = (c = v.skus) == null ? void 0 : c.find) == null ? void 0 : b.call(c, (I) => I.sku._id === w.sku._id);
@@ -1400,13 +1401,13 @@ const jn = { class: "flex items-center w-full fm-typo-en-title-md-800" }, In = {
1400
1401
  return ke(s, !1, s.precision);
1401
1402
  });
1402
1403
  function N() {
1403
- const { startDate: e, endDate: s } = $t(n.value);
1404
+ const { startDate: e, endDate: s } = wt(n.value);
1404
1405
  e !== null && s !== null && (n.value = {
1405
1406
  startDate: e,
1406
1407
  endDate: s
1407
1408
  });
1408
1409
  }
1409
- const H = U(() => w.sku.valuation === ze.Enum.FIFO ? m("inventory.ingredient.valuationMethod.FIFO") : m("inventory.ingredient.valuationMethod.WAVG")), K = U(() => {
1410
+ const E = U(() => w.sku.valuation === ze.Enum.FIFO ? m("inventory.ingredient.valuationMethod.FIFO") : m("inventory.ingredient.valuationMethod.WAVG")), K = U(() => {
1410
1411
  var I, J, oe, T;
1411
1412
  const e = [...C.value].reverse().computeFirst((z) => {
1412
1413
  var W, se;
@@ -1437,13 +1438,13 @@ const jn = { class: "flex items-center w-full fm-typo-en-title-md-800" }, In = {
1437
1438
  } : "No data";
1438
1439
  });
1439
1440
  function me() {
1440
- const { startDate: e, endDate: s } = At(n.value);
1441
+ const { startDate: e, endDate: s } = $t(n.value);
1441
1442
  e !== null && s !== null && (n.value = {
1442
1443
  startDate: e,
1443
1444
  endDate: s
1444
1445
  });
1445
1446
  }
1446
- const p = He(w, "show");
1447
+ const p = Ee(w, "show");
1447
1448
  return (e, s) => {
1448
1449
  const v = M("FmButton"), u = M("FmField"), c = M("FmDateRangePicker"), b = M("FmSpacer"), I = M("FmCircularProgress"), J = M("FmIcon"), oe = M("FmTooltip"), T = M("FmMenuDivider"), z = M("FmChip"), W = M("FmCardSection"), se = M("FmCard"), re = M("FmSideSheet");
1449
1450
  return A(), Y(re, {
@@ -1502,10 +1503,10 @@ const jn = { class: "flex items-center w-full fm-typo-en-title-md-800" }, In = {
1502
1503
  "prepend-icon": "navigate_next"
1503
1504
  })
1504
1505
  ]),
1505
- x.value ? (A(), R("div", En, [
1506
+ x.value ? (A(), R("div", Hn, [
1506
1507
  g(b),
1507
1508
  g(I, { size: "xl" }),
1508
- t("div", Hn, h(r(m)("inventory.stock.history.loading")), 1),
1509
+ t("div", En, h(r(m)("inventory.stock.history.loading")), 1),
1509
1510
  g(b),
1510
1511
  g(b)
1511
1512
  ])) : k.value && ((Q = k.value) == null ? void 0 : Q.length) > 0 ? (A(), R("div", Rn, [
@@ -1564,7 +1565,7 @@ const jn = { class: "flex items-center w-full fm-typo-en-title-md-800" }, In = {
1564
1565
  ]),
1565
1566
  t("div", mo, [
1566
1567
  t("div", po, h(r(m)("inventory.stock.history.summary.openingBalance")), 1),
1567
- t("div", vo, h(E.value), 1)
1568
+ t("div", vo, h(H.value), 1)
1568
1569
  ]),
1569
1570
  t("div", fo, [
1570
1571
  t("div", yo, h(r(m)("inventory.stock.history.summary.lastStockBalance")), 1),
@@ -1582,7 +1583,7 @@ const jn = { class: "flex items-center w-full fm-typo-en-title-md-800" }, In = {
1582
1583
  g(oe, {
1583
1584
  variant: "plain",
1584
1585
  placement: "top",
1585
- content: `[${H.value}] ${r(m)("inventory.stock.history.estimatedValueTooltip")}`,
1586
+ content: `[${E.value}] ${r(m)("inventory.stock.history.estimatedValueTooltip")}`,
1586
1587
  "z-index": 50
1587
1588
  }, {
1588
1589
  default: D(() => [
@@ -1667,7 +1668,7 @@ const jn = { class: "flex items-center w-full fm-typo-en-title-md-800" }, In = {
1667
1668
  g(b),
1668
1669
  t("div", null, [
1669
1670
  t("img", {
1670
- src: r(Rt),
1671
+ src: r(Et),
1671
1672
  alt: "List is empty"
1672
1673
  }, null, 8, Co)
1673
1674
  ]),
@@ -1683,7 +1684,7 @@ const jn = { class: "flex items-center w-full fm-typo-en-title-md-800" }, In = {
1683
1684
  }, 8, ["modelValue"]);
1684
1685
  };
1685
1686
  }
1686
- }), Do = { class: "flex flex-col gap-8" }, jo = { class: "flex flex-col" }, Io = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, To = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary line-clamp-1" }, Jo = /* @__PURE__ */ ie({
1687
+ }), Do = { class: "flex flex-col gap-8" }, jo = { class: "flex flex-col" }, Io = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, To = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary line-clamp-1" }, Qo = /* @__PURE__ */ ie({
1687
1688
  __name: "StockView",
1688
1689
  setup(f) {
1689
1690
  const { t: y } = ue(), l = Ue(), o = pe(), S = Pe(), _ = st(), d = Ze(), { columnDefs: m } = Wt();
@@ -1707,11 +1708,11 @@ const jn = { class: "flex items-center w-full fm-typo-en-title-md-800" }, In = {
1707
1708
  }
1708
1709
  const n = U(
1709
1710
  () => l.skus.map(($) => {
1710
- var G, N, H;
1711
+ var G, N, E;
1711
1712
  const B = $.trackingMeasurement;
1712
1713
  let P = (N = (G = S.stockBalance.skus) == null ? void 0 : G.find(
1713
1714
  (K) => K.id === $._id
1714
- )) == null ? void 0 : N.balance, E = d.inventoryForecast.skus.find(
1715
+ )) == null ? void 0 : N.balance, H = d.inventoryForecast.skus.find(
1715
1716
  (K) => K.id === $._id
1716
1717
  );
1717
1718
  return {
@@ -1720,11 +1721,11 @@ const jn = { class: "flex items-center w-full fm-typo-en-title-md-800" }, In = {
1720
1721
  amount: 0,
1721
1722
  precision: 0
1722
1723
  },
1723
- day: (E == null ? void 0 : E.depletionDays) ?? void 0,
1724
- trackingUnitAbbrev: B ? ((H = $.unit.measurements.find((K) => K.id === B)) == null ? void 0 : H.abbrev) ?? "" : $.unit.abbrev
1724
+ day: (H == null ? void 0 : H.depletionDays) ?? void 0,
1725
+ trackingUnitAbbrev: B ? ((E = $.unit.measurements.find((K) => K.id === B)) == null ? void 0 : E.abbrev) ?? "" : $.unit.abbrev
1725
1726
  };
1726
1727
  })
1727
- ), F = O(""), { breakpoints: C } = Ut(), k = U(() => C.value.xs || C.value.sm), i = U(() => k.value ? 10 : 20), j = Vt(), L = U(() => [
1728
+ ), F = O(""), { breakpoints: C } = Tt(), k = U(() => C.value.xs || C.value.sm), i = U(() => k.value ? 10 : 20), j = Ct(), L = U(() => [
1728
1729
  {
1729
1730
  label: y("inventory.common.refresh"),
1730
1731
  value: "refresh"
@@ -1744,13 +1745,13 @@ const jn = { class: "flex items-center w-full fm-typo-en-title-md-800" }, In = {
1744
1745
  }
1745
1746
  return ($, B) => {
1746
1747
  const P = M("FmTable");
1747
- return A(), Y(Mt, {
1748
+ return A(), Y(Vt, {
1748
1749
  title: r(y)("inventory.stock.title"),
1749
1750
  actions: L.value,
1750
1751
  "onClick:action": V
1751
1752
  }, {
1752
1753
  default: D(() => {
1753
- var E, Z, G, N;
1754
+ var H, Z, G, N;
1754
1755
  return [
1755
1756
  t("div", {
1756
1757
  class: ge([
@@ -1761,11 +1762,11 @@ const jn = { class: "flex items-center w-full fm-typo-en-title-md-800" }, In = {
1761
1762
  }
1762
1763
  ])
1763
1764
  }, [
1764
- g(Bt, {
1765
+ g(Mt, {
1765
1766
  searchable: "",
1766
1767
  "change-location": "",
1767
1768
  search: F.value,
1768
- "onUpdate:search": B[0] || (B[0] = (H) => F.value = H)
1769
+ "onUpdate:search": B[0] || (B[0] = (E) => F.value = E)
1769
1770
  }, null, 8, ["search"]),
1770
1771
  (A(), Y(P, {
1771
1772
  style: Je(r(j).tableHeight),
@@ -1773,13 +1774,13 @@ const jn = { class: "flex items-center w-full fm-typo-en-title-md-800" }, In = {
1773
1774
  "row-data": n.value,
1774
1775
  "search-value": F.value,
1775
1776
  loading: w.value || !r(o)._currentLocation,
1776
- key: (E = r(o)._currentLocation) == null ? void 0 : E.dbName,
1777
- onRowClick: B[1] || (B[1] = (H) => r(_).showSkuHistory(H.original)),
1777
+ key: (H = r(o)._currentLocation) == null ? void 0 : H.dbName,
1778
+ onRowClick: B[1] || (B[1] = (E) => r(_).showSkuHistory(E.original)),
1778
1779
  "page-size": i.value
1779
1780
  }, {
1780
- "list-row": D((H) => [
1781
- g(Dt, {
1782
- row: H,
1781
+ "list-row": D((E) => [
1782
+ g(Bt, {
1783
+ row: E,
1783
1784
  onRowClick: r(_).showSkuHistory
1784
1785
  }, {
1785
1786
  default: D((K) => {
@@ -1802,16 +1803,16 @@ const jn = { class: "flex items-center w-full fm-typo-en-title-md-800" }, In = {
1802
1803
  ]),
1803
1804
  t("div", null, [
1804
1805
  g(je, {
1805
- days: H.original.day
1806
+ days: E.original.day
1806
1807
  }, null, 8, ["days"])
1807
1808
  ]),
1808
1809
  t("div", null, [
1809
1810
  g(ot, {
1810
1811
  class: "xs:w-[160px]",
1811
- unit: H.original.unit,
1812
- sku: H.original,
1813
- amount: H.original.balance,
1814
- "default-tracking-measurement": H.original.trackingMeasurement ?? void 0
1812
+ unit: E.original.unit,
1813
+ sku: E.original,
1814
+ amount: E.original.balance,
1815
+ "default-tracking-measurement": E.original.trackingMeasurement ?? void 0
1815
1816
  }, null, 8, ["unit", "sku", "amount", "default-tracking-measurement"])
1816
1817
  ])
1817
1818
  ])
@@ -1836,5 +1837,5 @@ const jn = { class: "flex items-center w-full fm-typo-en-title-md-800" }, In = {
1836
1837
  }
1837
1838
  });
1838
1839
  export {
1839
- Jo as default
1840
+ Qo as default
1840
1841
  };