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

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 (44) hide show
  1. package/dist/{App-B7fIlPKw.js → App-DkPiRPu7.js} +34 -34
  2. package/dist/{ApprovalView-Dp20w8em.js → ApprovalView-BEF-qPdZ.js} +20 -20
  3. package/dist/{BindingsDialog-BIHCuoDe.js → BindingsDialog-B6vjaPiA.js} +4 -4
  4. package/dist/{BindingsPicker-DoM1Dh1y.js → BindingsPicker-BmWf3j6H.js} +7 -7
  5. package/dist/{BindingsTable-ChJYIxrf.js → BindingsTable-VVNmzkzf.js} +1 -1
  6. package/dist/{ClosingDraftView-L4EHR0Sb.js → ClosingDraftView-C6sNEHK5.js} +120 -120
  7. package/dist/{ClosingTemplateView-CFVINyCr.js → ClosingTemplateView-5k8R-fMI.js} +285 -285
  8. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Dn-DgO81.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DclFOxv5.js} +37 -37
  9. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-CdWkJ2U-.js → FmUnitInput.vue_vue_type_script_setup_true_lang-BFqAE1ZI.js} +32 -32
  10. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-BN2ec0EU.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DwAyTAFy.js} +1 -1
  11. package/dist/{IngredientGroupView-Vz6XV_-q.js → IngredientGroupView-DAeurvqt.js} +1 -1
  12. package/dist/{IngredientsView-D1lmg_97.js → IngredientsView-Ca8fShPE.js} +4 -4
  13. package/dist/{IntegrationView-CfDmLYwt.js → IntegrationView-Db4XlQvK.js} +62 -62
  14. package/dist/{InventoryBindingForm-C68ZfWme.js → InventoryBindingForm-BTtpF1P5.js} +1 -1
  15. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-Bd13FqsE.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-ByJPHKqO.js} +15 -15
  16. package/dist/{InventoryBindingSummary-DT9cg2b4.js → InventoryBindingSummary-Bb5gN9Bu.js} +1 -1
  17. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BfhvXVHK.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-D4vUOy_R.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-fFfOjNOU.js} +3 -3
  19. package/dist/{PublishView-DMzULnCX.js → PublishView-BqE9qfwb.js} +25 -25
  20. package/dist/{PurchaseOrderPrintPreview-D6wcth8H.js → PurchaseOrderPrintPreview-Cp6a-P8I.js} +1 -1
  21. package/dist/{ReceiveRequestView-DsX41zj-.js → ReceiveRequestView-DKPPCyAU.js} +52 -52
  22. package/dist/{RecipeView-DlKk9-tm.js → RecipeView-BEsrqzuU.js} +3 -3
  23. package/dist/{StockView-CNmvVK0V.js → StockView-DplJi2OM.js} +573 -569
  24. package/dist/{SupplierView-BcoOgM67.js → SupplierView-DL3D84U2.js} +7 -7
  25. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-CDDvq_mI.js → TransferDetails.vue_vue_type_script_setup_true_lang-BzFkrRui.js} +120 -120
  26. package/dist/{TransferTemplateView-BI96LQfP.js → TransferTemplateView-DakAYozL.js} +153 -153
  27. package/dist/{UnitView-BF2eBWtF.js → UnitView-C_Wqv69Z.js} +3 -3
  28. package/dist/{WarehouseView-joOR4EsJ.js → WarehouseView-CeoVZ9cs.js} +19 -19
  29. package/dist/{app-DavuMSpS.js → app-CulzKCFs.js} +6375 -5538
  30. package/dist/app.d.ts +842 -0
  31. package/dist/app.js +1 -1
  32. package/dist/{decimal-C_LJTg2_.js → decimal-DdjfkmJS.js} +1 -1
  33. package/dist/{feature-D3M-bziy.js → feature-jwErVPVw.js} +1 -1
  34. package/dist/{format-unit-display-BebmN2s-.js → format-unit-display-BMC3HZ0N.js} +30 -30
  35. package/dist/helper/number.d.ts +1 -1
  36. package/dist/{index-DzshvJTA.js → index-BDCZItPF.js} +1 -1
  37. package/dist/{index-BDEeA1dY.js → index-C7-QVxlo.js} +1 -1
  38. package/dist/{stock-CHVVTrSI.js → stock-Czw9__W8.js} +1 -1
  39. package/dist/{supplier-Ddl4sUpm.js → supplier-f0XPCLm-.js} +1 -1
  40. package/dist/tsconfig.app.tsbuildinfo +1 -1
  41. package/dist/{use-ingredient-select-dialog-Z6bbIKfM.js → use-ingredient-select-dialog-DDeNnPW0.js} +1 -1
  42. package/dist/{use-inventory-binding-dialog-Dj45RBWc.js → use-inventory-binding-dialog-BTE0Ceov.js} +1 -1
  43. package/dist/{vue-i18n-Cak3W4nS.js → vue-i18n-B0gOxrrS.js} +153 -153
  44. package/package.json +3 -3
@@ -1,37 +1,37 @@
1
- import { i as T, t as R, ar as M, u as B, aw as E, aH as H, aI as z, aJ as U } from "./app-DavuMSpS.js";
2
- import { u as D } from "./supplier-Ddl4sUpm.js";
3
- import { P as F } from "./format-unit-display-BebmN2s-.js";
4
- import { computed as f, defineComponent as j, mergeModels as q, useModel as x, ref as W, resolveComponent as V, openBlock as S, createElementBlock as I, normalizeStyle as $, createElementVNode as N, createVNode as J, withCtx as K, createBlock as g, createCommentVNode as O, Fragment as Q, renderList as X, unref as w } from "vue";
1
+ import { i as T, t as R, as as w, u as B, ax as E, aI as H, aJ as z, aK as U } from "./app-CulzKCFs.js";
2
+ import { u as D } from "./supplier-f0XPCLm-.js";
3
+ import { P as F } from "./format-unit-display-BMC3HZ0N.js";
4
+ import { computed as f, defineComponent as x, mergeModels as j, useModel as q, ref as W, resolveComponent as V, openBlock as S, createElementBlock as I, normalizeStyle as $, createElementVNode as N, createVNode as J, withCtx as K, createBlock as g, createCommentVNode as O, Fragment as Q, renderList as X, unref as M } from "vue";
5
5
  function Y(t, i, a) {
6
- var o;
7
- if (!!i.measurement === !!a && ((o = i.measurement) == null ? void 0 : o.id) === a)
6
+ var s;
7
+ if (!!i.measurement === !!a && ((s = i.measurement) == null ? void 0 : s.id) === a)
8
8
  return i;
9
9
  if (!a)
10
10
  return {
11
11
  costPerUnit: i.costPerUnit
12
12
  };
13
- const s = t.measurements.find((p) => p.id === a);
14
- return s ? {
13
+ const o = t.measurements.find((p) => p.id === a);
14
+ return o ? {
15
15
  costPerUnit: i.costPerUnit,
16
- measurement: s
16
+ measurement: o
17
17
  } : {
18
18
  costPerUnit: i.costPerUnit
19
19
  };
20
20
  }
21
- function oe(t, i, a, l) {
21
+ function se(t, i, a, l) {
22
22
  var P, _, n;
23
23
  if (l != null && l.manualTotalCost)
24
24
  return l == null ? void 0 : l.manualTotalCost;
25
25
  const u = (n = (_ = (P = l == null ? void 0 : l.supplier) == null ? void 0 : P.supplyItems) == null ? void 0 : _.find(
26
26
  (e) => e.skuId === t._id
27
- )) == null ? void 0 : n.defaultCost, s = t.defaultCost ? Y(t.unit, t.defaultCost, t.trackingMeasurement) : void 0, o = u ?? s, p = o == null ? void 0 : o.costPerUnit, y = p ? o != null && o.measurement ? +T(p) / +T(o == null ? void 0 : o.measurement.conversion) : +T(p) : void 0, v = y ? a ? y * +T(a.conversion) : y : void 0, h = v ? +T(i) * v : void 0;
27
+ )) == null ? void 0 : n.defaultCost, o = t.defaultCost ? Y(t.unit, t.defaultCost, t.trackingMeasurement) : void 0, s = u ?? o, p = s == null ? void 0 : s.costPerUnit, y = p ? s != null && s.measurement ? +T(p) / +T(s == null ? void 0 : s.measurement.conversion) : +T(p) : void 0, v = y ? a ? y * +T(a.conversion) : y : void 0, h = v ? +T(i) * v : void 0;
28
28
  return h ? {
29
29
  ...R(h ?? 0, 2),
30
- currency: M()
30
+ currency: w()
31
31
  } : {
32
32
  amount: 0,
33
33
  precision: 0,
34
- currency: M()
34
+ currency: w()
35
35
  };
36
36
  }
37
37
  function k(t) {
@@ -55,20 +55,20 @@ function L(t) {
55
55
  }
56
56
  };
57
57
  }
58
- function se(t, i, a = !1, l = !1) {
59
- const u = D(), s = B();
60
- s.watchLocation(async () => {
58
+ function oe(t, i, a = !1, l = !1) {
59
+ const u = D(), o = B();
60
+ o.watchLocation(async () => {
61
61
  var b;
62
62
  await u.readSuppliers();
63
63
  const n = t();
64
64
  if ((b = n.supplier) != null && b._id) return;
65
- const e = l ? u.suppliers[0] : u.businessSuppliers[0], r = (a ? s.locations.filter((m) => m.doc._id !== s.currentLocation.doc._id) : s.locations)[0];
65
+ const e = l ? u.suppliers[0] : u.businessSuppliers[0], r = (a ? o.locations.filter((m) => m.doc._id !== o.currentLocation.doc._id) : o.locations)[0];
66
66
  i({
67
67
  ...n,
68
68
  supplier: e ? k(e) : r ? L(r) : n.supplier
69
69
  });
70
70
  });
71
- const o = f(
71
+ const s = f(
72
72
  () => {
73
73
  var n, e;
74
74
  return typeof ((e = (n = t()) == null ? void 0 : n.supplier) == null ? void 0 : e.internal) == "string" ? F.TRANSFER : F.PURCHASE;
@@ -80,7 +80,7 @@ function se(t, i, a = !1, l = !1) {
80
80
  },
81
81
  set(n) {
82
82
  const e = t() ?? {};
83
- if (o.value === F.PURCHASE) {
83
+ if (s.value === F.PURCHASE) {
84
84
  const C = (l ? u.suppliers : u.businessSuppliers).find((A) => A._id === n);
85
85
  i({
86
86
  ...e,
@@ -88,7 +88,7 @@ function se(t, i, a = !1, l = !1) {
88
88
  });
89
89
  return;
90
90
  }
91
- const b = (a ? s.locations.filter((m) => m.doc._id !== s.currentLocation.doc._id) : s.locations).find((m) => m.doc._id === n);
91
+ const b = (a ? o.locations.filter((m) => m.doc._id !== o.currentLocation.doc._id) : o.locations).find((m) => m.doc._id === n);
92
92
  i({
93
93
  ...e,
94
94
  supplier: b ? L(b) : e.supplier
@@ -99,10 +99,10 @@ function se(t, i, a = !1, l = !1) {
99
99
  return l ? [...e, ...n] : e;
100
100
  }), c = f(() => {
101
101
  var d;
102
- const n = ((d = s._currentLocation) == null ? void 0 : d.type) === E.warehouse;
103
- return (a ? s.locations.filter((r) => r.doc._id !== s.currentLocation.doc._id) : s.locations).filter((r) => n || r.acceptRequest).map(L);
102
+ const n = ((d = o._currentLocation) == null ? void 0 : d.type) === E.warehouse;
103
+ return (a ? o.locations.filter((r) => r.doc._id !== o.currentLocation.doc._id) : o.locations).filter((r) => n || r.acceptRequest).map(L);
104
104
  }), P = f(() => {
105
- if (o.value === F.PURCHASE) {
105
+ if (s.value === F.PURCHASE) {
106
106
  const e = y.value.map((r) => ({
107
107
  label: r.name,
108
108
  value: r._id
@@ -121,11 +121,11 @@ function se(t, i, a = !1, l = !1) {
121
121
  }), _ = f(() => {
122
122
  var r, b;
123
123
  const n = (b = (r = t()) == null ? void 0 : r.supplier) == null ? void 0 : b._id;
124
- if (o.value === F.PURCHASE) {
124
+ if (s.value === F.PURCHASE) {
125
125
  const m = u.suppliers.find((C) => C._id === n);
126
126
  return m ? k(m) : null;
127
127
  }
128
- const d = s.locations.find((m) => m.doc._id);
128
+ const d = o.locations.find((m) => m.doc._id);
129
129
  return d ? L(d) : null;
130
130
  });
131
131
  return {
@@ -137,9 +137,9 @@ function se(t, i, a = !1, l = !1) {
137
137
  selectedLocation: _
138
138
  };
139
139
  }
140
- const Z = { class: "overflow-y-auto h-full pb-8" }, ae = /* @__PURE__ */ j({
140
+ const Z = { class: "overflow-y-auto h-full pb-8" }, ae = /* @__PURE__ */ x({
141
141
  __name: "FmFilterableMenuOptions",
142
- props: /* @__PURE__ */ q({
142
+ props: /* @__PURE__ */ j({
143
143
  modelValue: {},
144
144
  maxHeight: {},
145
145
  width: {},
@@ -152,19 +152,19 @@ const Z = { class: "overflow-y-auto h-full pb-8" }, ae = /* @__PURE__ */ j({
152
152
  }),
153
153
  emits: ["update:search"],
154
154
  setup(t) {
155
- const i = t, a = x(t, "search"), l = f(
155
+ const i = t, a = q(t, "search"), l = f(
156
156
  () => new z(i.items, ["label", "sublabel"], i.options)
157
- ), u = f(() => l.value.search(a.value)), s = W();
158
- return console.log({ stickyRef: s }), (o, p) => {
157
+ ), u = f(() => l.value.search(a.value)), o = W();
158
+ return console.log({ stickyRef: o }), (s, p) => {
159
159
  const y = V("FmButton"), v = V("FmTextField"), h = V("FmMenuItem");
160
160
  return S(), I("div", {
161
161
  class: "relative",
162
- style: $({ width: o.width })
162
+ style: $({ width: s.width })
163
163
  }, [
164
164
  N("div", {
165
165
  class: "sticky top-0 bg-white mb-8",
166
166
  ref_key: "stickyRef",
167
- ref: s
167
+ ref: o
168
168
  }, [
169
169
  J(v, {
170
170
  modelValue: a.value,
@@ -187,11 +187,11 @@ const Z = { class: "overflow-y-auto h-full pb-8" }, ae = /* @__PURE__ */ j({
187
187
  key: P,
188
188
  label: c.label,
189
189
  sublabel: c.sublabel,
190
- "model-value": w(U)(o.modelValue, c.value),
191
- onClick: () => o.handleItemChange(w(U)(o.modelValue, c.value), c),
190
+ "model-value": M(U)(s.modelValue, c.value),
191
+ onClick: () => s.handleItemChange(M(U)(s.modelValue, c.value), c),
192
192
  onVnodeMounted: (_) => {
193
193
  var n, e;
194
- return w(U)(o.modelValue, c.value) && ((n = _.el) == null || n.scrollIntoView({ behavior: "instant", block: "end" }), (e = _.el) == null || e.scrollIntoView({ behavior: "smooth", block: "center" })), void 0;
194
+ return M(U)(s.modelValue, c.value) && ((n = _.el) == null || n.scrollIntoView({ behavior: "instant", block: "end" }), (e = _.el) == null || e.scrollIntoView({ behavior: "smooth", block: "center" })), void 0;
195
195
  }
196
196
  }, null, 8, ["label", "sublabel", "model-value", "onClick", "onVnodeMounted"]))), 128)),
197
197
  u.value.length ? O("", !0) : (S(), g(h, {
@@ -206,6 +206,6 @@ const Z = { class: "overflow-y-auto h-full pb-8" }, ae = /* @__PURE__ */ j({
206
206
  });
207
207
  export {
208
208
  ae as _,
209
- oe as c,
210
- se as u
209
+ se as c,
210
+ oe as u
211
211
  };
@@ -1,5 +1,5 @@
1
- import { defineComponent as oe, mergeModels as j, useModel as se, computed as v, ref as P, watch as z, inject as ie, resolveComponent as b, openBlock as f, createElementBlock as y, createElementVNode as u, createVNode as M, withCtx as g, renderSlot as T, normalizeClass as V, toDisplayString as F, withDirectives as le, vModelText as ae, createCommentVNode as q, createTextVNode as ue, createBlock as W, Fragment as re, renderList as me } from "vue";
2
- import { Z as I, I as k, O as L, K as ce, i as h, aF as de, t as pe, J as fe, al as ve, aD as be, aC as ye } from "./app-DavuMSpS.js";
1
+ import { defineComponent as oe, mergeModels as O, useModel as se, computed as v, ref as P, watch as z, inject as ie, resolveComponent as b, openBlock as f, createElementBlock as y, createElementVNode as u, createVNode as M, withCtx as g, renderSlot as T, normalizeClass as V, toDisplayString as x, withDirectives as le, vModelText as ae, createCommentVNode as q, createTextVNode as ue, createBlock as W, Fragment as re, renderList as me } from "vue";
2
+ import { $ as I, I as k, P as L, K as ce, i as h, aG as de, t as pe, J as fe, am as ve, aE as be, aD as ye } from "./app-CulzKCFs.js";
3
3
  import "@feedmepos/ui-library";
4
4
  function E() {
5
5
  return {
@@ -26,10 +26,10 @@ function G(l, d = !1) {
26
26
  const s = H()(r);
27
27
  if (s != !0)
28
28
  return d ? s : !0;
29
- const x = typeof l == "number" ? l : L(l, r.modelValue.measurement);
30
- return ce(+r.amountAsString).precision > x ? `Cannot exceed precision more than ${h({
29
+ const F = typeof l == "number" ? l : L(l, r.modelValue.measurement);
30
+ return ce(+r.amountAsString).precision > F ? `Cannot exceed precision more than ${h({
31
31
  amount: 1,
32
- precision: x
32
+ precision: F
33
33
  })}` : !0;
34
34
  };
35
35
  }
@@ -39,7 +39,7 @@ function Le(l) {
39
39
  return d(r.modelValue.amount);
40
40
  };
41
41
  }
42
- const Me = { class: "flex flex-col" }, he = { class: "flex flex-col" }, ge = { class: "flex-1" }, Fe = { class: "flex items-center gap-4" }, xe = { class: "flex-1 flex gap-4" }, Ae = { class: "shrink-0 grow basis-2/5" }, _e = {
42
+ const Me = { class: "flex flex-col" }, he = { class: "flex flex-col" }, ge = { class: "flex-1" }, xe = { class: "flex items-center gap-4" }, Fe = { class: "flex-1 flex gap-4" }, Ae = { class: "shrink-0 grow basis-2/5" }, _e = {
43
43
  key: 0,
44
44
  class: "text-fm-color-typo-secondary"
45
45
  }, Pe = {
@@ -51,12 +51,12 @@ const Me = { class: "flex flex-col" }, he = { class: "flex flex-col" }, ge = { c
51
51
  }, Re = {
52
52
  class: "flex items-center",
53
53
  style: { "pointer-events": "none" }
54
- }, Ce = {
54
+ }, Ue = {
55
55
  class: "flex items-center",
56
56
  style: { "pointer-events": "none" }
57
- }, Oe = /* @__PURE__ */ oe({
57
+ }, $e = /* @__PURE__ */ oe({
58
58
  __name: "FmUnitInput",
59
- props: /* @__PURE__ */ j({
59
+ props: /* @__PURE__ */ O({
60
60
  modelValue: {},
61
61
  unit: {},
62
62
  rules: {},
@@ -103,9 +103,9 @@ const Me = { class: "flex flex-col" }, he = { class: "flex flex-col" }, ge = { c
103
103
  modelValue: {},
104
104
  modelModifiers: {}
105
105
  }),
106
- emits: /* @__PURE__ */ j(["update:amount", "update:measurement"], ["update:modelValue"]),
106
+ emits: /* @__PURE__ */ O(["update:amount", "update:measurement"], ["update:modelValue"]),
107
107
  setup(l, { emit: d }) {
108
- const t = l, r = d, s = se(l, "modelValue"), x = k(), D = v(() => {
108
+ const t = l, r = d, s = se(l, "modelValue"), F = k(), D = v(() => {
109
109
  var n;
110
110
  return L(t.unit, (n = s.value) == null ? void 0 : n.measurement);
111
111
  }), c = P((() => {
@@ -114,13 +114,13 @@ const Me = { class: "flex flex-col" }, he = { class: "flex flex-col" }, ge = { c
114
114
  return h(a);
115
115
  })());
116
116
  z(c, (e) => {
117
- const n = x(e), i = t.precision ?? D.value, o = typeof t.formatMinimumPrecision == "number" && t.formatMinimumPrecision > i ? t.formatMinimumPrecision : i;
117
+ const n = F(e), i = t.precision ?? D.value, o = typeof t.formatMinimumPrecision == "number" && t.formatMinimumPrecision > i ? t.formatMinimumPrecision : i;
118
118
  n == !0 && (s.value = {
119
119
  ...s.value,
120
120
  amount: pe(+e, o)
121
121
  }), r("update:amount", e);
122
122
  });
123
- const J = Symbol.for("fm:form-state"), B = ie(J, null), A = v(() => t.disabled ?? (B == null ? void 0 : B.getDisabled()) ?? !1), K = P(), R = P(!1), O = P(!1), Q = v(() => R.value || O.value), X = v(() => {
123
+ const K = Symbol.for("fm:form-state"), B = ie(K, null), A = v(() => t.disabled ?? (B == null ? void 0 : B.getDisabled()) ?? !1), Z = P(), R = P(!1), $ = P(!1), Q = v(() => R.value || $.value), X = v(() => {
124
124
  var a;
125
125
  const i = [...t.unit.measurements.filter((o) => !o.name.toLocaleLowerCase().includes("inactive")).filter((o) => o.abbrev !== t.unit.abbrev || +h(o.conversion) != 1).groupBy(
126
126
  (o) => `${o.abbrev}${h(o.conversion)}`
@@ -135,7 +135,7 @@ const Me = { class: "flex flex-col" }, he = { class: "flex flex-col" }, ge = { c
135
135
  value: o.id
136
136
  }))
137
137
  ];
138
- }), C = v({
138
+ }), U = v({
139
139
  get() {
140
140
  var e, n;
141
141
  return ((n = (e = s.value) == null ? void 0 : e.measurement) == null ? void 0 : n.id) ?? null;
@@ -155,7 +155,7 @@ const Me = { class: "flex flex-col" }, he = { class: "flex flex-col" }, ge = { c
155
155
  }
156
156
  }
157
157
  });
158
- z(C, (e, n) => {
158
+ z(U, (e, n) => {
159
159
  var m;
160
160
  if (!t.convertAmountOnChangeUnit)
161
161
  return;
@@ -165,7 +165,7 @@ const Me = { class: "flex flex-col" }, he = { class: "flex flex-col" }, ge = { c
165
165
  });
166
166
  c.value = h(S);
167
167
  });
168
- const U = v(() => {
168
+ const C = v(() => {
169
169
  var e, n;
170
170
  return ((n = (e = s.value) == null ? void 0 : e.measurement) == null ? void 0 : n.abbrev) ?? t.unit.abbrev;
171
171
  }), Y = v(
@@ -179,7 +179,7 @@ const Me = { class: "flex flex-col" }, he = { class: "flex flex-col" }, ge = { c
179
179
  H(),
180
180
  typeof t.precision == "number" ? G(t.precision) : G(t.unit)
181
181
  ] : [], ...Y.value]);
182
- function $(e) {
182
+ function j(e) {
183
183
  const n = t.precision ?? D.value, a = typeof t.formatMinimumPrecision == "number" && t.formatMinimumPrecision > n ? t.formatMinimumPrecision : n, o = e.toFixed(a), p = o.includes(".") ? o.replace(/0+$/, "") : o;
184
184
  return p.endsWith(".") ? p.slice(0, p.length - 1) : p;
185
185
  }
@@ -187,13 +187,13 @@ const Me = { class: "flex flex-col" }, he = { class: "flex flex-col" }, ge = { c
187
187
  if (!t.stepper)
188
188
  return;
189
189
  const e = +c.value + +h(t.stepper);
190
- c.value = $(e);
190
+ c.value = j(e);
191
191
  }
192
192
  function ne() {
193
193
  if (!t.stepper)
194
194
  return;
195
195
  const e = +c.value - +h(t.stepper);
196
- c.value = $(e);
196
+ c.value = j(e);
197
197
  }
198
198
  return (e, n) => {
199
199
  const i = b("FmLabel"), a = b("FmIcon"), o = b("FmMenuItem"), p = b("FmMenu"), w = b("FmTooltip"), N = b("FmField"), S = b("FmFormGroup");
@@ -209,9 +209,9 @@ const Me = { class: "flex flex-col" }, he = { class: "flex flex-col" }, ge = { c
209
209
  ]),
210
210
  M(N, { focused: Q.value }, {
211
211
  default: g(() => [
212
- u("div", Fe, [
212
+ u("div", xe, [
213
213
  T(e.$slots, "prepend"),
214
- u("div", xe, [
214
+ u("div", Fe, [
215
215
  u("div", Ae, [
216
216
  e.stepperOnly ? (f(), y("span", {
217
217
  key: 0,
@@ -220,11 +220,11 @@ const Me = { class: "flex flex-col" }, he = { class: "flex flex-col" }, ge = { c
220
220
  "text-fm-color-typo-primary": !A.value,
221
221
  "text-fm-color-typo-disabled": A.value
222
222
  })
223
- }, F(c.value), 3)) : le((f(), y("input", {
223
+ }, x(c.value), 3)) : le((f(), y("input", {
224
224
  key: 1,
225
225
  type: "text",
226
226
  ref_key: "inputRef",
227
- ref: K,
227
+ ref: Z,
228
228
  onFocus: n[0] || (n[0] = () => R.value = !0),
229
229
  onBlur: n[1] || (n[1] = () => R.value = !1),
230
230
  "onUpdate:modelValue": n[2] || (n[2] = (m) => c.value = m),
@@ -237,25 +237,25 @@ const Me = { class: "flex flex-col" }, he = { class: "flex flex-col" }, ge = { c
237
237
  [ae, c.value]
238
238
  ])
239
239
  ]),
240
- e.separator ? (f(), y("div", _e, F(e.separator), 1)) : q("", !0),
240
+ e.separator ? (f(), y("div", _e, x(e.separator), 1)) : q("", !0),
241
241
  u("div", {
242
242
  class: V([e.disabled ? "text-fm-color-typo-disabled" : "text-fm-color-typo-secondary"])
243
243
  }, [
244
244
  M(w, { "z-index": 51 }, {
245
245
  content: g(() => [
246
- ue(F(U.value), 1)
246
+ ue(x(C.value), 1)
247
247
  ]),
248
248
  default: g(() => [
249
- e.disableUnit ? (f(), y("div", Pe, F(U.value), 1)) : (f(), W(p, {
249
+ e.disableUnit ? (f(), y("div", Pe, x(C.value), 1)) : (f(), W(p, {
250
250
  key: 1,
251
- onMenuChanged: n[3] || (n[3] = (m) => O.value = m),
251
+ onMenuChanged: n[3] || (n[3] = (m) => $.value = m),
252
252
  "z-index": 500,
253
253
  placement: e.placement,
254
254
  disabled: e.disabled
255
255
  }, {
256
256
  "menu-button": g(() => [
257
257
  u("div", Ie, [
258
- u("div", ke, F(U.value), 1),
258
+ u("div", ke, x(C.value), 1),
259
259
  M(a, { name: "keyboard_arrow_down" })
260
260
  ])
261
261
  ]),
@@ -264,8 +264,8 @@ const Me = { class: "flex flex-col" }, he = { class: "flex flex-col" }, ge = { c
264
264
  (f(!0), y(re, null, me(X.value, (m) => (f(), W(o, {
265
265
  key: m.value ?? void 0,
266
266
  label: m.label,
267
- "model-value": m.value == C.value,
268
- onClick: (_) => C.value = m.value
267
+ "model-value": m.value == U.value,
268
+ onClick: (_) => U.value = m.value
269
269
  }, null, 8, ["label", "model-value", "onClick"]))), 128))
270
270
  ])
271
271
  ]),
@@ -291,7 +291,7 @@ const Me = { class: "flex flex-col" }, he = { class: "flex flex-col" }, ge = { c
291
291
  class: "w-24 h-12 flex items-center justify-center fm-corner-radius-sm bg-fm-color-neutral-gray-100 hover:bg-fm-color-neutral-gray-200",
292
292
  onClick: ne
293
293
  }, [
294
- u("div", Ce, [
294
+ u("div", Ue, [
295
295
  M(a, {
296
296
  name: "expand_more",
297
297
  size: "md"
@@ -320,7 +320,7 @@ const Me = { class: "flex flex-col" }, he = { class: "flex flex-col" }, ge = { c
320
320
  });
321
321
  export {
322
322
  Se as F,
323
- Oe as _,
323
+ $e as _,
324
324
  Ve as a,
325
325
  Le as b,
326
326
  H as c,
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as p, openBlock as s, createElementBlock as n, createElementVNode as r, toDisplayString as o, unref as l, Fragment as d, renderList as x } from "vue";
2
- import { i as a, J as y } from "./app-DavuMSpS.js";
2
+ import { i as a, J as y } from "./app-CulzKCFs.js";
3
3
  import { useI18n as _ } from "@feedmepos/mf-common";
4
4
  const v = { class: "flex flex-col" }, g = { class: "flex flex-row fm-typo-en-body-md-600 bg-fm-color-neutral-gray-100 text-fm-color-typo-secondary h-48 items-center" }, h = { class: "flex-1 py-8 px-16" }, b = {
5
5
  class: "flex-0 py-8 px-16",
@@ -1,5 +1,5 @@
1
1
  import { ref as F, computed as C, defineComponent as Y, resolveComponent as S, openBlock as M, createBlock as O, withCtx as R, createElementVNode as x, createVNode as g, unref as l, createElementBlock as ee, toDisplayString as j, createTextVNode as te, watch as ue, isRef as ce, normalizeClass as de, normalizeStyle as me, createSlots as pe, Teleport as fe, normalizeProps as ve, guardReactiveProps as ge } from "vue";
2
- import { a as J, d as h, e as B, f as ye, D as oe, h as Q, G as be, l as _e, A as xe, H as ne, p as se, u as ke, z as he, _ as we, B as Se, C as Ie, E as ae } from "./app-DavuMSpS.js";
2
+ import { a as J, d as h, e as B, f as ye, D as oe, h as Q, G as be, l as _e, A as xe, H as ne, p as se, u as ke, z as he, _ as we, B as Se, C as Ie, E as ae } from "./app-CulzKCFs.js";
3
3
  import { useDialog as le, useSnackbar as Z, useProxiedModel as Ce, useBreakpoints as Fe } from "@feedmepos/ui-library";
4
4
  import { useI18n as W } from "@feedmepos/mf-common";
5
5
  import { defineStore as ie, storeToRefs as re } from "pinia";
@@ -1,13 +1,13 @@
1
1
  import { ref as q, defineComponent as te, computed as S, resolveComponent as C, openBlock as f, createBlock as B, withCtx as V, createVNode as c, unref as d, createElementBlock as T, Fragment as X, createElementVNode as m, createCommentVNode as j, renderSlot as ce, createTextVNode as Me, toDisplayString as A, normalizeClass as ee, onMounted as at, watch as Ye, renderList as re, isRef as De, createSlots as Ge, normalizeStyle as rt, Teleport as Pe, normalizeProps as st, guardReactiveProps as it } from "vue";
2
- import { a as ne, d as K, e as We, S as dt, f as ut, D as Be, h as be, A as _e, b as Ie, i as Ke, j as xe, t as Ze, k as ve, l as Ve, U as mt, m as ct, M as pt, n as Ne, o as ze, p as Le, q as Je, r as vt, s as Qe, v as ft, w as yt, I as gt, x as bt, y as ht, u as _t, z as xt, _ as kt, B as Vt, C as St, E as He } from "./app-DavuMSpS.js";
2
+ import { a as ne, d as K, e as We, S as dt, f as ut, D as Be, h as be, A as _e, b as Ie, i as Ke, j as xe, t as Ze, k as ve, l as Ve, U as mt, m as ct, M as pt, n as Ne, o as ze, p as Le, q as Je, r as vt, s as Qe, v as ft, w as yt, I as gt, x as bt, y as ht, u as _t, z as xt, _ as kt, B as Vt, C as St, E as He } from "./app-CulzKCFs.js";
3
3
  import { useDialog as Xe, useSnackbar as ke, useProxiedModel as Oe, useDialogChild as Ct, useBreakpoints as wt } from "@feedmepos/ui-library";
4
4
  import { i as Ft, _ as Mt } from "./is-linked-ingredient-error-fJ2TJb3z.js";
5
5
  import { useI18n as oe, useCoreStore as fe } from "@feedmepos/mf-common";
6
6
  import { defineStore as It, storeToRefs as $t } from "pinia";
7
7
  import { g as Et, _ as Se, S as Ce } from "./StockForecast.vue_vue_type_style_index_0_lang-KLXSWvo5.js";
8
- import { _ as Ut } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-Bd13FqsE.js";
9
- import { _ as we } from "./IngredientBindedItem.vue_vue_type_script_setup_true_lang-BN2ec0EU.js";
10
- import { u as et } from "./feature-D3M-bziy.js";
8
+ import { _ as Ut } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-ByJPHKqO.js";
9
+ import { _ as we } from "./IngredientBindedItem.vue_vue_type_script_setup_true_lang-DwAyTAFy.js";
10
+ import { u as et } from "./feature-jwErVPVw.js";
11
11
  import { _ as he } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
12
12
  import { _ as Rt } from "./FmCustomAttribute.vue_vue_type_script_setup_true_lang-D-IWRjRD.js";
13
13
  import "./array-hChJVZLE.js";