@feedmepos/mf-inventory-portal 0.0.25-dev.50 → 0.0.25-dev.51

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/{App-B7fIlPKw.js → App-Bf7Ef5j4.js} +2 -2
  2. package/dist/{ApprovalView-Dp20w8em.js → ApprovalView-CTKJY1vM.js} +12 -12
  3. package/dist/{BindingsDialog-BIHCuoDe.js → BindingsDialog-Cb7aRRNk.js} +4 -4
  4. package/dist/{BindingsPicker-DoM1Dh1y.js → BindingsPicker-DOI78hCt.js} +7 -7
  5. package/dist/{BindingsTable-ChJYIxrf.js → BindingsTable-CZE4g-lw.js} +1 -1
  6. package/dist/{ClosingDraftView-L4EHR0Sb.js → ClosingDraftView-ChjnuJSG.js} +47 -47
  7. package/dist/{ClosingTemplateView-CFVINyCr.js → ClosingTemplateView-gSQqeQ_q.js} +53 -53
  8. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Dn-DgO81.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BMFxe5xn.js} +37 -37
  9. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-CdWkJ2U-.js → FmUnitInput.vue_vue_type_script_setup_true_lang-PmKyuRhO.js} +32 -32
  10. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-BN2ec0EU.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-CnRG4x74.js} +1 -1
  11. package/dist/{IngredientGroupView-Vz6XV_-q.js → IngredientGroupView-CaF4rmHy.js} +1 -1
  12. package/dist/{IngredientsView-D1lmg_97.js → IngredientsView-CX_MSjT3.js} +4 -4
  13. package/dist/{IntegrationView-CfDmLYwt.js → IntegrationView-BRkcILmI.js} +62 -62
  14. package/dist/{InventoryBindingForm-C68ZfWme.js → InventoryBindingForm-BK7OBXJt.js} +1 -1
  15. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-Bd13FqsE.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-D81eO5Mu.js} +15 -15
  16. package/dist/{InventoryBindingSummary-DT9cg2b4.js → InventoryBindingSummary-B3m-PoE-.js} +1 -1
  17. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BfhvXVHK.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DsTKgxFv.js} +1 -1
  18. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-Dvj1F-DM.js → PremiumBadge.vue_vue_type_script_setup_true_lang-8Sa_WUWa.js} +3 -3
  19. package/dist/{PublishView-DMzULnCX.js → PublishView-DZR7-XFd.js} +18 -18
  20. package/dist/{PurchaseOrderPrintPreview-D6wcth8H.js → PurchaseOrderPrintPreview-BT5Khjs6.js} +1 -1
  21. package/dist/{ReceiveRequestView-DsX41zj-.js → ReceiveRequestView-3nhyFqXE.js} +50 -50
  22. package/dist/{RecipeView-DlKk9-tm.js → RecipeView-R-lqVFmh.js} +3 -3
  23. package/dist/{StockView-CNmvVK0V.js → StockView-Did7vk97.js} +571 -567
  24. package/dist/{SupplierView-BcoOgM67.js → SupplierView-BGHR6LD2.js} +4 -4
  25. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-CDDvq_mI.js → TransferDetails.vue_vue_type_script_setup_true_lang-vjDgXu5D.js} +120 -120
  26. package/dist/{TransferTemplateView-BI96LQfP.js → TransferTemplateView-Dh1iZbPZ.js} +116 -116
  27. package/dist/{UnitView-BF2eBWtF.js → UnitView-DE9WIvA-.js} +3 -3
  28. package/dist/{WarehouseView-joOR4EsJ.js → WarehouseView-CgurMkHh.js} +19 -19
  29. package/dist/{app-DavuMSpS.js → app-BoT0hU4y.js} +1947 -1952
  30. package/dist/app.js +1 -1
  31. package/dist/{decimal-C_LJTg2_.js → decimal-CpTYRDjJ.js} +1 -1
  32. package/dist/{feature-D3M-bziy.js → feature-CW1D96VL.js} +1 -1
  33. package/dist/{format-unit-display-BebmN2s-.js → format-unit-display-D6lsq-iX.js} +30 -30
  34. package/dist/helper/number.d.ts +1 -1
  35. package/dist/{index-BDEeA1dY.js → index-TqOHI1Dk.js} +1 -1
  36. package/dist/{index-DzshvJTA.js → index-tTGOQaym.js} +1 -1
  37. package/dist/{stock-CHVVTrSI.js → stock-Cnh2comB.js} +1 -1
  38. package/dist/{supplier-Ddl4sUpm.js → supplier-BY8xacQQ.js} +1 -1
  39. package/dist/tsconfig.app.tsbuildinfo +1 -1
  40. package/dist/{use-ingredient-select-dialog-Z6bbIKfM.js → use-ingredient-select-dialog-BwbzsMlI.js} +1 -1
  41. package/dist/{use-inventory-binding-dialog-Dj45RBWc.js → use-inventory-binding-dialog-3srettA-.js} +1 -1
  42. package/dist/{vue-i18n-Cak3W4nS.js → vue-i18n-C9tRTjjd.js} +206 -206
  43. package/package.json +3 -3
@@ -1,8 +1,8 @@
1
1
  import { ref as U, onUnmounted as F, defineComponent as h, watch as P, onMounted as x, computed as g, resolveComponent as b, openBlock as S, createElementBlock as I, unref as v, createVNode as _, createElementVNode as p, toDisplayString as w, createBlock as B, createCommentVNode as M } from "vue";
2
- import { u as k, a as D, b as H, R as e, g as s, c as W } from "./app-DavuMSpS.js";
2
+ import { u as k, a as D, b as H, R as e, g as s, c as W } from "./app-BoT0hU4y.js";
3
3
  import { useCoreStore as A, useI18n as G } from "@feedmepos/mf-common";
4
4
  import { useRouter as L, useRoute as K } from "vue-router";
5
- import { u as O } from "./feature-D3M-bziy.js";
5
+ import { u as O } from "./feature-CW1D96VL.js";
6
6
  import { u as $ } from "./useTabStorage-BkIVScW_.js";
7
7
  import { u as Q } from "./googlemap-Dm8ERVai.js";
8
8
  import "./array-hChJVZLE.js";
@@ -1,6 +1,6 @@
1
- import { defineComponent as oe, ref as g, watch as re, computed as b, resolveComponent as ne, openBlock as x, createBlock as J, unref as e, withCtx as y, createElementVNode as s, normalizeClass as se, createVNode as n, normalizeStyle as le, toDisplayString as ce, createElementBlock as ie, createCommentVNode as ue, Teleport as pe, mergeProps as me } from "vue";
2
- import { u as de, az as _, aK as fe, ab as Q, z as _e, _ as ve, B as he, C as De, E as v } from "./app-DavuMSpS.js";
3
- import { a as ge, P as O, b as be, _ as xe } from "./TransferDetails.vue_vue_type_script_setup_true_lang-CDDvq_mI.js";
1
+ import { defineComponent as oe, ref as g, watch as re, computed as b, resolveComponent as ne, openBlock as x, createBlock as K, unref as e, withCtx as y, createElementVNode as s, normalizeClass as se, createVNode as n, normalizeStyle as le, toDisplayString as ce, createElementBlock as ie, createCommentVNode as ue, Teleport as pe, mergeProps as me } from "vue";
2
+ import { u as de, aA as _, aL as fe, ac as Q, z as _e, _ as ve, B as he, C as De, E as v } from "./app-BoT0hU4y.js";
3
+ import { a as ge, P as O, b as be, _ as xe } from "./TransferDetails.vue_vue_type_script_setup_true_lang-vjDgXu5D.js";
4
4
  import { useBreakpoints as ye } from "@feedmepos/ui-library";
5
5
  import { useI18n as Oe } from "@feedmepos/mf-common";
6
6
  const Re = { class: "flex flex-col py-8" }, we = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Pe = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary line-clamp-1" }, ke = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1" }, Ce = {
@@ -8,7 +8,7 @@ const Re = { class: "flex flex-col py-8" }, we = { class: "fm-typo-en-body-md-40
8
8
  class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1"
9
9
  }, Se = { class: "pt-8" }, $e = /* @__PURE__ */ oe({
10
10
  __name: "ApprovalView",
11
- setup(Te) {
11
+ setup(Ae) {
12
12
  const o = ge(O.APPROVAL), { columnDefs: W } = be(O.APPROVAL, o), X = de();
13
13
  _.object({
14
14
  name: _.string().optional().nullable(),
@@ -49,7 +49,7 @@ const Re = { class: "flex flex-col py-8" }, we = { class: "fm-typo-en-body-md-40
49
49
  }
50
50
  return (c, l) => {
51
51
  const te = ne("FmTable");
52
- return x(), J(ve, {
52
+ return x(), K(ve, {
53
53
  title: e(P)("inventory.transfer.approval.title"),
54
54
  actions: I.value,
55
55
  "onClick:action": ee
@@ -88,19 +88,19 @@ const Re = { class: "flex flex-col py-8" }, we = { class: "fm-typo-en-body-md-40
88
88
  onRowClick: (t) => e(o).promptShowTransferDetails(t.purchaseOrder, t)
89
89
  }, {
90
90
  default: y((t) => {
91
- var k, C, S, i, T, A, z, V, u, L, M, p, $, m, E, F, Y, q, N, d, j, H, K, U, f, G;
91
+ var k, C, S, i, A, T, L, V, u, z, M, p, $, m, E, F, Y, q, N, d, j, H, U, G, f, J;
92
92
  return [
93
93
  s("div", Re, [
94
94
  s("div", we, [
95
95
  n(e(v), {
96
96
  render: (S = (C = (k = t.purchaseOrder__id) == null ? void 0 : k.column) == null ? void 0 : C.columnDef) == null ? void 0 : S.cell,
97
- props: (T = (i = t.purchaseOrder__id) == null ? void 0 : i.getContext) == null ? void 0 : T.call(i)
97
+ props: (A = (i = t.purchaseOrder__id) == null ? void 0 : i.getContext) == null ? void 0 : A.call(i)
98
98
  }, null, 8, ["render", "props"])
99
99
  ]),
100
100
  s("div", Pe, [
101
101
  n(e(v), {
102
- render: (V = (z = (A = t.to_name) == null ? void 0 : A.column) == null ? void 0 : z.columnDef) == null ? void 0 : V.cell,
103
- props: (L = (u = t.to_name) == null ? void 0 : u.getContext) == null ? void 0 : L.call(u)
102
+ render: (V = (L = (T = t.to_name) == null ? void 0 : T.column) == null ? void 0 : L.columnDef) == null ? void 0 : V.cell,
103
+ props: (z = (u = t.to_name) == null ? void 0 : u.getContext) == null ? void 0 : z.call(u)
104
104
  }, null, 8, ["render", "props"])
105
105
  ]),
106
106
  s("div", ke, ce((E = (m = ($ = (p = (M = r.original.purchaseOrder) == null ? void 0 : M.items) == null ? void 0 : p.map) == null ? void 0 : $.call(p, (ae) => `${ae.name}`)) == null ? void 0 : m.join) == null ? void 0 : E.call(m, ", ")), 1),
@@ -112,8 +112,8 @@ const Re = { class: "flex flex-col py-8" }, we = { class: "fm-typo-en-body-md-40
112
112
  ])) : ue("", !0),
113
113
  s("div", Se, [
114
114
  n(e(v), {
115
- render: (U = (K = (H = t.purchaseOrder_status) == null ? void 0 : H.column) == null ? void 0 : K.columnDef) == null ? void 0 : U.cell,
116
- props: (G = (f = t.purchaseOrder_status) == null ? void 0 : f.getContext) == null ? void 0 : G.call(f)
115
+ render: (G = (U = (H = t.purchaseOrder_status) == null ? void 0 : H.column) == null ? void 0 : U.columnDef) == null ? void 0 : G.cell,
116
+ props: (J = (f = t.purchaseOrder_status) == null ? void 0 : f.getContext) == null ? void 0 : J.call(f)
117
117
  }, null, 8, ["render", "props"])
118
118
  ])
119
119
  ])
@@ -125,7 +125,7 @@ const Re = { class: "flex flex-col py-8" }, we = { class: "fm-typo-en-body-md-40
125
125
  _: 1
126
126
  }, 8, ["style", "column-defs", "row-data", "search-value", "loading", "page-size"])
127
127
  ], 2),
128
- (x(), J(pe, { to: "body" }, [
128
+ (x(), K(pe, { to: "body" }, [
129
129
  n(xe, me({
130
130
  scope: e(O).APPROVAL
131
131
  }, e(o).transferDetailsProps.value, {
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as C, ref as o, onMounted as M, onUnmounted as F, watch as x, resolveComponent as l, openBlock as i, createElementBlock as c, createBlock as I, withCtx as R, createVNode as a, createCommentVNode as z, createElementVNode as P } from "vue";
2
- import { _ as S } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-Bd13FqsE.js";
3
- import { a as V, aS as L } from "./app-DavuMSpS.js";
2
+ import { _ as V } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-D81eO5Mu.js";
3
+ import { a as L, aT as S } from "./app-BoT0hU4y.js";
4
4
  const U = {
5
5
  key: 0,
6
6
  class: "flex justify-end gap-8 items-center"
@@ -10,7 +10,7 @@ const U = {
10
10
  }, D = /* @__PURE__ */ C({
11
11
  __name: "BindingsDialog",
12
12
  setup(N) {
13
- const p = V(), d = o(!0), s = o(new Array()), u = o(), t = L(y);
13
+ const p = L(), d = o(!0), s = o(new Array()), u = o(), t = S(y);
14
14
  async function y() {
15
15
  await p.readInventory(), u.value = t.onMessage("props:inventory-bindings", (e) => {
16
16
  d.value = !1, s.value = e;
@@ -64,7 +64,7 @@ const U = {
64
64
  class: "flex flex-col gap-16"
65
65
  }, {
66
66
  default: R(() => [
67
- a(S, {
67
+ a(V, {
68
68
  "model-value": s.value,
69
69
  "onUpdate:modelValue": n[0] || (n[0] = (w) => s.value = w),
70
70
  "iframe-mode": "",
@@ -1,12 +1,12 @@
1
- import { defineComponent as R, computed as r, ref as l, onMounted as U, onUnmounted as V, resolveComponent as E, openBlock as p, createElementBlock as f, createVNode as u, createElementVNode as k } from "vue";
2
- import { a as M, aS as x, H as z } from "./app-DavuMSpS.js";
1
+ import { defineComponent as S, computed as r, ref as l, onMounted as U, onUnmounted as V, resolveComponent as E, openBlock as p, createElementBlock as f, createVNode as u, createElementVNode as k } from "vue";
2
+ import { a as M, aT as x, H as z } from "./app-BoT0hU4y.js";
3
3
  const F = {
4
4
  key: 0,
5
5
  class: "flex flex-col gap-16"
6
6
  }, K = { class: "flex justify-end gap-8 items-center" }, w = {
7
7
  key: 1,
8
8
  class: "p-24 flex items-center justify-center gap-16"
9
- }, H = /* @__PURE__ */ R({
9
+ }, H = /* @__PURE__ */ S({
10
10
  __name: "BindingsPicker",
11
11
  setup(L) {
12
12
  const d = M(), C = r(() => d.recipes), I = r(() => d.skus), g = l(!0), i = l(new Array()), a = l("RECIPE"), c = r(() => a.value === "SKU" ? I.value.map((s) => ({
@@ -71,10 +71,10 @@ const F = {
71
71
  }
72
72
  ), o.sendMessage("props:binding-items");
73
73
  }
74
- function S() {
74
+ function P() {
75
75
  o.sendMessage("@close");
76
76
  }
77
- function P() {
77
+ function R() {
78
78
  o.sendMessage("@submit:items", i.value);
79
79
  }
80
80
  const y = l();
@@ -106,11 +106,11 @@ const F = {
106
106
  u(n, {
107
107
  variant: "tertiary",
108
108
  label: "Close",
109
- onClick: S
109
+ onClick: P
110
110
  }),
111
111
  u(n, {
112
112
  label: "Submit",
113
- onClick: P
113
+ onClick: R
114
114
  })
115
115
  ])
116
116
  ]))
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as _, ref as c, provide as C, computed as f, resolveComponent as b, openBlock as p, createBlock as h, h as z, onMounted as B, onUnmounted as I, createElementBlock as y, createVNode as N, createElementVNode as x } from "vue";
2
- import { F as v, a as E, aS as F } from "./app-DavuMSpS.js";
2
+ import { F as v, a as E, aT as F } from "./app-BoT0hU4y.js";
3
3
  import { components as L } from "@feedmepos/ui-library";
4
4
  import "@feedmepos/mf-common";
5
5
  const P = /* @__PURE__ */ _({
@@ -1,9 +1,9 @@
1
- import { defineComponent as ke, ref as V, resolveComponent as E, openBlock as x, createBlock as Q, withCtx as Y, createElementVNode as o, createTextVNode as De, toDisplayString as z, unref as y, createVNode as _, h as k, reactive as Ye, computed as H, onMounted as Ke, watch as Ge, isRef as Te, createElementBlock as T, Fragment as W, createCommentVNode as ne, normalizeClass as me, renderList as ve, normalizeStyle as Re, Teleport as We, mergeProps as qe } from "vue";
2
- import { W as Ze, u as we, aj as q, l as Je, J as je, i as P, t as Qe, K as ye, q as Xe, r as et, s as tt, ak as Me, al as Pe, a6 as Ie, am as le, ac as at, ai as oe, T as Ue, D as Fe, h as xe, f as nt, e as ot, a as st, z as rt, _ as lt, B as ct, C as it, E as he } from "./app-DavuMSpS.js";
1
+ import { defineComponent as ke, ref as V, resolveComponent as E, openBlock as x, createBlock as X, withCtx as Y, createElementVNode as o, createTextVNode as De, toDisplayString as z, unref as y, createVNode as _, h as k, reactive as Ye, computed as H, onMounted as Ke, watch as Ge, isRef as Te, createElementBlock as T, Fragment as q, createCommentVNode as ne, normalizeClass as me, renderList as ve, normalizeStyle as Re, Teleport as qe, mergeProps as We } from "vue";
2
+ import { X as Ze, u as we, ak as W, l as Je, J as je, i as P, t as Xe, K as ye, q as Qe, r as et, s as tt, al as Me, am as Pe, a7 as Ie, an as le, ad as at, aj as oe, V as Ue, D as Fe, h as xe, f as nt, e as ot, a as st, z as rt, _ as lt, B as ct, C as it, E as he } from "./app-BoT0hU4y.js";
3
3
  import { useCoreStore as ut, useI18n as Ee } from "@feedmepos/mf-common";
4
4
  import { useSnackbar as Ce, useDialog as dt, useProxiedModel as mt, components as de, useBreakpoints as ft } from "@feedmepos/ui-library";
5
5
  import { defineStore as He, storeToRefs as pt } from "pinia";
6
- import { a as Le, u as ze } from "./stock-CHVVTrSI.js";
6
+ import { a as Le, u as ze } from "./stock-Cnh2comB.js";
7
7
  import { E as vt } from "./empty-placeholder-wf6-BWE8.js";
8
8
  const Se = Ze((n, r) => {
9
9
  function e() {
@@ -64,7 +64,7 @@ const Se = Ze((n, r) => {
64
64
  }
65
65
  return (D, l) => {
66
66
  const R = E("FmTextField"), M = E("FmButton"), U = E("FmForm");
67
- return x(), Q(U, {
67
+ return x(), X(U, {
68
68
  onValidationSuccess: h,
69
69
  class: "flex flex-col gap-32",
70
70
  disabled: g.value
@@ -72,7 +72,7 @@ const Se = Ze((n, r) => {
72
72
  default: Y(() => [
73
73
  o("div", yt, [
74
74
  l[2] || (l[2] = De(" You are about to ")),
75
- o("span", gt, z(D.action == y(q).enum.approveDraft ? "approve" : "reject"), 1),
75
+ o("span", gt, z(D.action == y(W).enum.approveDraft ? "approve" : "reject"), 1),
76
76
  l[3] || (l[3] = De(" this draft. Please provider a remark to justify this action. "))
77
77
  ]),
78
78
  _(R, {
@@ -89,9 +89,9 @@ const Se = Ze((n, r) => {
89
89
  onClick: l[1] || (l[1] = (s) => D.onCancel())
90
90
  }),
91
91
  _(M, {
92
- label: D.action == y(q).enum.approveDraft ? "Approve" : "Reject",
92
+ label: D.action == y(W).enum.approveDraft ? "Approve" : "Reject",
93
93
  type: "submit",
94
- variant: D.action == y(q).enum.approveDraft ? "primary" : "destructive",
94
+ variant: D.action == y(W).enum.approveDraft ? "primary" : "destructive",
95
95
  loading: g.value
96
96
  }, null, 8, ["label", "variant", "loading"])
97
97
  ])
@@ -107,7 +107,7 @@ function Ne(n) {
107
107
  const g = ((l = (D = r.get(u.id)) == null ? void 0 : D[0]) == null ? void 0 : l.amount) ?? xt, h = je(u.conversion, g);
108
108
  return i + +P(h);
109
109
  }, +P(n.baseAmount));
110
- return Qe(e, n.baseAmount.precision);
110
+ return Xe(e, n.baseAmount.precision);
111
111
  }
112
112
  const ht = ye(0), At = ye(100);
113
113
  function _t(n, r, e) {
@@ -204,8 +204,8 @@ function jt(n, r) {
204
204
  (w) => w.balance
205
205
  ), i = [...n.items, ...n.negativeStockItems ?? []], u = Oe(i), g = i.map((w) => {
206
206
  var K, se;
207
- const Z = ((K = e.get(w.sku._id)) == null ? void 0 : K[0]) ?? ht, X = ((se = u == null ? void 0 : u.get(w.sku._id)) == null ? void 0 : se[0]) ?? [];
208
- return _t(w, Z, X);
207
+ const Z = ((K = e.get(w.sku._id)) == null ? void 0 : K[0]) ?? ht, Q = ((se = u == null ? void 0 : u.get(w.sku._id)) == null ? void 0 : se[0]) ?? [];
208
+ return _t(w, Z, Q);
209
209
  }), h = kt(i), l = ut().currentBusiness.value, R = wt(h), M = [
210
210
  ["Business name:", l == null ? void 0 : l.name],
211
211
  ["Business ID:", l == null ? void 0 : l._id],
@@ -230,7 +230,7 @@ function jt(n, r) {
230
230
  [],
231
231
  R.map((w) => w.name),
232
232
  ...g.map((w) => R.map((Z) => w[Z.id]))
233
- ], U = R.map((w) => `system:${w.id}`), s = Xe(M, U), p = `[${l == null ? void 0 : l.name}] closing draft (${et(new Date(n.updatedAt))}).xlsx`;
233
+ ], U = R.map((w) => `system:${w.id}`), s = Qe(M, U), p = `[${l == null ? void 0 : l.name}] closing draft (${et(new Date(n.updatedAt))}).xlsx`;
234
234
  return tt(s, p), p;
235
235
  }
236
236
  const _e = He(
@@ -276,7 +276,7 @@ const _e = He(
276
276
  contentComponent: $e,
277
277
  contentComponentProps: {
278
278
  draft: b,
279
- action: q.enum.approveDraft,
279
+ action: W.enum.approveDraft,
280
280
  onFinished: () => {
281
281
  r.close(), v == null || v();
282
282
  },
@@ -290,7 +290,7 @@ const _e = He(
290
290
  contentComponent: $e,
291
291
  contentComponentProps: {
292
292
  draft: b,
293
- action: q.enum.rejectDraft,
293
+ action: W.enum.rejectDraft,
294
294
  onFinished: () => {
295
295
  r.close(), v == null || v();
296
296
  },
@@ -302,7 +302,7 @@ const _e = He(
302
302
  await u.sync({
303
303
  _id: b._id,
304
304
  _rev: b._rev ?? "",
305
- action: q.enum.approveDraft,
305
+ action: W.enum.approveDraft,
306
306
  data: {
307
307
  remark: b.remark ?? ""
308
308
  }
@@ -381,9 +381,9 @@ const Ct = He(
381
381
  return e.viewDraft(p);
382
382
  case xe.Export:
383
383
  return e.exportDraft(p);
384
- case q.enum.approveDraft:
384
+ case W.enum.approveDraft:
385
385
  return e.approveDraft(p, R);
386
- case q.enum.rejectDraft:
386
+ case W.enum.rejectDraft:
387
387
  return e.rejectDraft(p, R);
388
388
  }
389
389
  }
@@ -490,12 +490,12 @@ const Ct = He(
490
490
  {
491
491
  translationKey: "inventory.closing.draft.approveDraft",
492
492
  color: "text-fm-color-typo-primary",
493
- value: q.enum.approveDraft
493
+ value: W.enum.approveDraft
494
494
  },
495
495
  {
496
496
  translationKey: "inventory.closing.draft.rejectDraft",
497
497
  color: "text-fm-color-typo-error",
498
- value: q.enum.rejectDraft
498
+ value: W.enum.rejectDraft
499
499
  }
500
500
  ];
501
501
  return nt(
@@ -538,10 +538,10 @@ const Ct = He(
538
538
  }, Kt = { class: "flex gap-12 content-stretch" }, Gt = {
539
539
  class: "flex flex-col w-24",
540
540
  name: "circles"
541
- }, Wt = { class: "flex-1 flex flex-col items-center" }, qt = { class: "flex-1 flex flex-col items-center" }, Zt = {
541
+ }, qt = { class: "flex-1 flex flex-col items-center" }, Wt = { class: "flex-1 flex flex-col items-center" }, Zt = {
542
542
  class: "py-12 flex flex-col gap-4",
543
543
  name: "received-at header"
544
- }, Jt = { class: "fm-typo-en-body-lg-400" }, Qt = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Xt = { class: "flex gap-12 content-stretch" }, ea = {
544
+ }, Jt = { class: "fm-typo-en-body-lg-400" }, Xt = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Qt = { class: "flex gap-12 content-stretch" }, ea = {
545
545
  class: "flex flex-col w-24",
546
546
  name: "circles"
547
547
  }, ta = { class: "flex-1 flex flex-col items-center" }, aa = {
@@ -619,7 +619,7 @@ const Ct = He(
619
619
  (a) => a.balance
620
620
  )
621
621
  ), Z = H(() => b.value.groupBy((a) => a.sku._id));
622
- function X(a) {
622
+ function Q(a) {
623
623
  return k(
624
624
  de.FmTooltip,
625
625
  { zIndex: 51, placement: "left", class: "w-full flex justify-end" },
@@ -693,7 +693,7 @@ const Ct = He(
693
693
  {
694
694
  id: "physicalBalance",
695
695
  accessorKey: "physicalBalance",
696
- header: () => X("Actual balance"),
696
+ header: () => Q("Actual balance"),
697
697
  size: 200,
698
698
  meta: {
699
699
  textAlign: "right"
@@ -702,7 +702,7 @@ const Ct = He(
702
702
  {
703
703
  id: "systemBalance",
704
704
  accessorKey: "systemBalance",
705
- header: () => X("Balance"),
705
+ header: () => Q("Balance"),
706
706
  size: 200,
707
707
  meta: {
708
708
  textAlign: "right"
@@ -711,7 +711,7 @@ const Ct = He(
711
711
  {
712
712
  id: "adjustedAmount",
713
713
  accessorKey: "adjustedAmount",
714
- header: () => X("Adjusted balance"),
714
+ header: () => Q("Adjusted balance"),
715
715
  size: 200,
716
716
  meta: {
717
717
  textAlign: "right"
@@ -953,7 +953,7 @@ const Ct = He(
953
953
  });
954
954
  return (a, t) => {
955
955
  const c = E("FmButtonGroup"), m = E("FmMenuDivider"), d = E("FmCard"), f = E("FmButton"), j = E("FmCircularProgress"), $ = E("FmTextField"), S = E("FmIcon"), ie = E("FmChip"), ae = E("FmTable"), G = E("FmSpacer"), re = E("FmTooltip"), be = E("FmSideSheet");
956
- return x(), Q(be, {
956
+ return x(), X(be, {
957
957
  "dismiss-away": "",
958
958
  "max-width": 9999,
959
959
  "model-value": y(g),
@@ -964,8 +964,8 @@ const Ct = He(
964
964
  var A, L, O, ue;
965
965
  return [
966
966
  o("div", ra, [
967
- ((A = e.draft) == null ? void 0 : A.status) === y(le).enum.DRAFT ? (x(), T(W, { key: 0 }, [
968
- pe.value ? (x(), Q(re, {
967
+ ((A = e.draft) == null ? void 0 : A.status) === y(le).enum.DRAFT ? (x(), T(q, { key: 0 }, [
968
+ pe.value ? (x(), X(re, {
969
969
  key: 0,
970
970
  "z-index": 51
971
971
  }, {
@@ -981,19 +981,19 @@ const Ct = He(
981
981
  })
982
982
  ]),
983
983
  _: 1
984
- })) : (x(), Q(f, {
984
+ })) : (x(), X(f, {
985
985
  key: "approve key",
986
986
  label: "Approve",
987
987
  onClick: t[4] || (t[4] = () => e.draft && y(u).approveDraft(e.draft, () => B("submitted")))
988
988
  }))
989
989
  ], 64)) : ne("", !0),
990
- ((L = e.draft) == null ? void 0 : L.status) === y(le).enum.DRAFT ? (x(), Q(f, {
990
+ ((L = e.draft) == null ? void 0 : L.status) === y(le).enum.DRAFT ? (x(), X(f, {
991
991
  key: 1,
992
992
  label: "Reject",
993
993
  variant: "destructive",
994
994
  onClick: t[5] || (t[5] = () => e.draft && y(u).rejectDraft(e.draft, () => B("submitted")))
995
995
  })) : ne("", !0),
996
- (O = e.draft) != null && O.approvedAt && ((ue = e.draft) == null ? void 0 : ue.status) !== y(le).enum.COMPLETED ? (x(), Q(f, {
996
+ (O = e.draft) != null && O.approvedAt && ((ue = e.draft) == null ? void 0 : ue.status) !== y(le).enum.COMPLETED ? (x(), X(f, {
997
997
  key: 2,
998
998
  label: "Sync",
999
999
  loading: D.value,
@@ -1020,7 +1020,7 @@ const Ct = He(
1020
1020
  "onUpdate:modelValue": t[0] || (t[0] = (A) => te.value = A)
1021
1021
  }, null, 8, ["modelValue"])
1022
1022
  ]),
1023
- te.value.value === "overview" ? (x(), T(W, { key: 0 }, [
1023
+ te.value.value === "overview" ? (x(), T(q, { key: 0 }, [
1024
1024
  _(d, {
1025
1025
  variant: "outlined",
1026
1026
  class: "flex flex-col gap-8 px-12 py-16"
@@ -1038,7 +1038,7 @@ const Ct = He(
1038
1038
  ]),
1039
1039
  _(m),
1040
1040
  o("div", $t, [
1041
- (x(!0), T(W, null, ve(ge.value, (O, ue) => (x(), T("div", {
1041
+ (x(!0), T(q, null, ve(ge.value, (O, ue) => (x(), T("div", {
1042
1042
  class: "flex flex-col gap-4",
1043
1043
  key: ue
1044
1044
  }, [
@@ -1076,7 +1076,7 @@ const Ct = He(
1076
1076
  t[11] || (t[11] = o("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Fetching info... ", -1))
1077
1077
  ]),
1078
1078
  t[13] || (t[13] = o("div", { class: "h-80" }, null, -1))
1079
- ])) : (x(), T(W, { key: 1 }, [
1079
+ ])) : (x(), T(q, { key: 1 }, [
1080
1080
  o("div", null, [
1081
1081
  _($, {
1082
1082
  modelValue: ce.value,
@@ -1085,7 +1085,7 @@ const Ct = He(
1085
1085
  }, null, 8, ["modelValue"])
1086
1086
  ]),
1087
1087
  y(U).skuTags.size ? (x(), T("div", Lt, [
1088
- (x(!0), T(W, null, ve(y(U).skuTags.keys(), (A) => (x(), Q(ie, {
1088
+ (x(!0), T(q, null, ve(y(U).skuTags.keys(), (A) => (x(), X(ie, {
1089
1089
  key: `${A}`,
1090
1090
  label: `${A}`,
1091
1091
  selectable: "",
@@ -1093,7 +1093,7 @@ const Ct = He(
1093
1093
  onClick: (L) => s[`${A}`] = !s[`${A}`]
1094
1094
  }, {
1095
1095
  default: Y(() => [
1096
- s[`${A}`] ? (x(), Q(S, {
1096
+ s[`${A}`] ? (x(), X(S, {
1097
1097
  key: 0,
1098
1098
  name: "check",
1099
1099
  class: "text-white",
@@ -1128,10 +1128,10 @@ const Ct = He(
1128
1128
  ], 64)) : ne("", !0),
1129
1129
  te.value.value === "history" ? (x(), T("div", Nt, [
1130
1130
  J.value.length ? (x(), T("div", Yt, [
1131
- (x(!0), T(W, null, ve(J.value, (A, L) => (x(), T(W, { key: L }, [
1131
+ (x(!0), T(q, null, ve(J.value, (A, L) => (x(), T(q, { key: L }, [
1132
1132
  o("div", Kt, [
1133
1133
  o("div", Gt, [
1134
- o("div", Wt, [
1134
+ o("div", qt, [
1135
1135
  o("div", {
1136
1136
  class: me([
1137
1137
  {
@@ -1143,7 +1143,7 @@ const Ct = He(
1143
1143
  }, null, 2)
1144
1144
  ]),
1145
1145
  t[16] || (t[16] = o("div", { class: "h-24 w-24 bg-fm-color-primary rounded-full" }, null, -1)),
1146
- o("div", qt, [
1146
+ o("div", Wt, [
1147
1147
  o("div", {
1148
1148
  class: me([
1149
1149
  {
@@ -1157,10 +1157,10 @@ const Ct = He(
1157
1157
  ]),
1158
1158
  o("div", Zt, [
1159
1159
  o("div", Jt, z(A.header), 1),
1160
- o("div", Qt, z(A.date), 1)
1160
+ o("div", Xt, z(A.date), 1)
1161
1161
  ])
1162
1162
  ]),
1163
- o("div", Xt, [
1163
+ o("div", Qt, [
1164
1164
  o("div", ea, [
1165
1165
  o("div", ta, [
1166
1166
  o("div", {
@@ -1181,13 +1181,13 @@ const Ct = He(
1181
1181
  }, {
1182
1182
  default: Y(() => [
1183
1183
  o("div", na, [
1184
- (x(!0), T(W, null, ve(A.info, (O, ue) => (x(), T("div", {
1184
+ (x(!0), T(q, null, ve(A.info, (O, ue) => (x(), T("div", {
1185
1185
  key: ue,
1186
1186
  class: "flex flex-col gap-4"
1187
1187
  }, [
1188
1188
  o("div", oa, z(O == null ? void 0 : O.label), 1),
1189
1189
  o("div", sa, [
1190
- (x(!0), T(W, null, ve(O == null ? void 0 : O.values, (Be, Ve) => (x(), T("div", {
1190
+ (x(!0), T(q, null, ve(O == null ? void 0 : O.values, (Be, Ve) => (x(), T("div", {
1191
1191
  key: Ve,
1192
1192
  class: "fm-typo-en-body-lg-600"
1193
1193
  }, z(Be), 1))), 128))
@@ -1250,7 +1250,7 @@ const Ct = He(
1250
1250
  ]);
1251
1251
  return (v, F) => {
1252
1252
  const N = E("FmTable");
1253
- return x(), T(W, null, [
1253
+ return x(), T(q, null, [
1254
1254
  _(lt, {
1255
1255
  title: y(r)("inventory.closing.draft.title"),
1256
1256
  actions: b.value,
@@ -1287,13 +1287,13 @@ const Ct = He(
1287
1287
  onRowClick: (I) => y(e)(I)
1288
1288
  }, {
1289
1289
  default: Y((I) => {
1290
- var w, Z, X, K, se, ce, fe, ge, ee, te, J, pe, a, t, c, m, d, f, j, $;
1290
+ var w, Z, Q, K, se, ce, fe, ge, ee, te, J, pe, a, t, c, m, d, f, j, $;
1291
1291
  return [
1292
1292
  o("div", ca, [
1293
1293
  o("div", ia, [
1294
1294
  o("div", ua, [
1295
1295
  _(y(he), {
1296
- render: (X = (Z = (w = I._id) == null ? void 0 : w.column) == null ? void 0 : Z.columnDef) == null ? void 0 : X.cell,
1296
+ render: (Q = (Z = (w = I._id) == null ? void 0 : w.column) == null ? void 0 : Z.columnDef) == null ? void 0 : Q.cell,
1297
1297
  props: (se = (K = I._id) == null ? void 0 : K.getContext) == null ? void 0 : se.call(K)
1298
1298
  }, null, 8, ["render", "props"])
1299
1299
  ]),
@@ -1332,8 +1332,8 @@ const Ct = He(
1332
1332
  ]),
1333
1333
  _: 1
1334
1334
  }, 8, ["title", "actions"]),
1335
- (x(), Q(We, { to: "body" }, [
1336
- _(la, qe(y(i), {
1335
+ (x(), X(qe, { to: "body" }, [
1336
+ _(la, We(y(i), {
1337
1337
  show: y(u),
1338
1338
  "onUpdate:show": F[2] || (F[2] = (C) => Te(u) ? u.value = C : null),
1339
1339
  onSubmitted: F[3] || (F[3] = () => (u.value = !1, y(h).fetchDrafts()))