@feedmepos/mf-inventory-portal 1.0.26-dev.1 → 1.0.27

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-COWwE6Gr.js → App-BbiDkFAB.js} +2 -2
  2. package/dist/{ApprovalView-DmqnjcSw.js → ApprovalView-lJNoRCBj.js} +2 -2
  3. package/dist/{BindingsDialog-BQP2MbEg.js → BindingsDialog-SaJ8EV6L.js} +2 -2
  4. package/dist/{BindingsPicker-GRjnAyFv.js → BindingsPicker-Dmdr98mM.js} +1 -1
  5. package/dist/{BindingsTable-DEhNVhf-.js → BindingsTable-CoRUOs8S.js} +1 -1
  6. package/dist/{ClosingDraftView-BTos9L48.js → ClosingDraftView-Dx3iDIDs.js} +2 -2
  7. package/dist/{ClosingTemplateView-DHA4makM.js → ClosingTemplateView-BQy4EuZO.js} +2 -2
  8. package/dist/{DeliveryOrderPrintPreview-Cs-0bEMN.js → DeliveryOrderPrintPreview-DNdjnhF4.js} +1 -1
  9. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DOYZGC5o.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DqgjXC1-.js} +65 -61
  10. package/dist/{FmMultiselectDialog-BXFeRNmi.js → FmMultiselectDialog-Cg9DTAxA.js} +1 -1
  11. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-DSFMNy1M.js → FmUnitInput.vue_vue_type_script_setup_true_lang-Cw-80c5L.js} +1 -1
  12. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-Chlkd7um.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-BWfXeMwK.js} +1 -1
  13. package/dist/{IngredientGroupView-BN6WyKQ-.js → IngredientGroupView-BwIApzch.js} +2 -2
  14. package/dist/{IngredientsView-ByEr7ZDI.js → IngredientsView-4hSIHdBB.js} +5 -5
  15. package/dist/{IntegrationView-BIsCQN8W.js → IntegrationView-B5aqGan0.js} +5 -5
  16. package/dist/{InventoryBindingForm-DtuvY4n7.js → InventoryBindingForm-en605GZr.js} +1 -1
  17. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-B8T8UVHt.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-xG6imonG.js} +3 -3
  18. package/dist/{InventoryBindingSummary-C4GewjPr.js → InventoryBindingSummary-BKoMOfqG.js} +1 -1
  19. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DNr7E-SL.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DMqSByib.js} +1 -1
  20. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-CWPBYmxy.js → PremiumBadge.vue_vue_type_script_setup_true_lang-_2LpVq7p.js} +1 -1
  21. package/dist/{PublishView-CZDDhGkG.js → PublishView-ERDotxvG.js} +2 -2
  22. package/dist/{PurchaseOrderPrintPreview-BmMXILIf.js → PurchaseOrderPrintPreview-9-RxF1Ne.js} +1 -1
  23. package/dist/{ReceiveRequestView-BHLu10hQ.js → ReceiveRequestView-BCfskFNx.js} +10 -10
  24. package/dist/{RecipeView-CYHoNY5W.js → RecipeView-K0MSA2BO.js} +4 -4
  25. package/dist/{StockView-CBnourhZ.js → StockView-Be0EwBOZ.js} +7 -7
  26. package/dist/{SupplierView-z8Aa314h.js → SupplierView-Cv5YWrmm.js} +4 -4
  27. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-D2w2Lfpr.js → TransferDetails.vue_vue_type_script_setup_true_lang-j9GKInDM.js} +6 -6
  28. package/dist/{TransferTemplateView-B7dfHA0k.js → TransferTemplateView-B9GV85W3.js} +7 -7
  29. package/dist/{UnitView-RbCSlq6U.js → UnitView-C2Z_PTOp.js} +3 -3
  30. package/dist/{WarehouseView-DDzQOZNo.js → WarehouseView-BkJ9CoUF.js} +1 -1
  31. package/dist/{app-BxnJJNs8.js → app-nPEJj66w.js} +216 -216
  32. package/dist/app.js +1 -1
  33. package/dist/{decimal-hf5iHUs2.js → decimal-CNoD63vh.js} +1 -1
  34. package/dist/{feature-DmO5_l_f.js → feature-tl_kxeKY.js} +2 -2
  35. package/dist/{format-unit-display-BwvvZimf.js → format-unit-display-jMOiq2Gk.js} +2 -2
  36. package/dist/{index-DAEqPSv0.js → index-C9c95Oq3.js} +2 -2
  37. package/dist/{index-BRRxL-nO.js → index-jyJPBNtG.js} +1 -1
  38. package/dist/{stock-BDshy996.js → stock-Bi5Y_VCA.js} +1 -1
  39. package/dist/{supplier-Bc9lmKvx.js → supplier-BM4mlyop.js} +2 -2
  40. package/dist/{use-ingredient-select-dialog-BAC8NgLl.js → use-ingredient-select-dialog-2_PwA5n8.js} +1 -1
  41. package/dist/{use-inventory-binding-dialog-BHooDU9m.js → use-inventory-binding-dialog-B60aoyoz.js} +1 -1
  42. package/dist/{vue-i18n-Cp__dDGB.js → vue-i18n-Dkl_T9hT.js} +415 -415
  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 w, computed as R, resolveComponent as b, openBlock as S, createElementBlock as I, unref as v, createVNode as _, createElementVNode as p, toDisplayString as G, createBlock as x, createCommentVNode as k } from "vue";
2
- import { u as M, a as D, b as H, R as e, g as s, c as W } from "./app-BxnJJNs8.js";
2
+ import { u as M, a as D, b as H, R as e, g as s, c as W } from "./app-nPEJj66w.js";
3
3
  import { useCoreStore as A, useI18n as B } from "@feedmepos/mf-common";
4
4
  import { useRouter as L, useRoute as K } from "vue-router";
5
- import { u as O } from "./feature-DmO5_l_f.js";
5
+ import { u as O } from "./feature-tl_kxeKY.js";
6
6
  import { u as $ } from "./useTabStorage-BkIVScW_.js";
7
7
  import { u as Q } from "./googlemap-Dm8ERVai.js";
8
8
  import "./array-Ca8T3f_G.js";
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as le, ref as D, watch as ue, computed as d, resolveComponent as ie, openBlock as x, createBlock as W, unref as n, withCtx as k, createElementVNode as i, normalizeClass as ce, createVNode as u, normalizeStyle as pe, toDisplayString as de, createElementBlock as me, createCommentVNode as fe, Teleport as ve, mergeProps as he } from "vue";
2
- import { u as _e, b as ge, aA as b, aL as ye, ad as X, z as De, N as be, H as Oe, _ as Re, B as Se, C as xe, E as O } from "./app-BxnJJNs8.js";
3
- import { a as ke, P as q, b as qe, _ as we } from "./TransferDetails.vue_vue_type_script_setup_true_lang-D2w2Lfpr.js";
2
+ import { u as _e, b as ge, aA as b, aL as ye, ad as X, z as De, N as be, H as Oe, _ as Re, B as Se, C as xe, E as O } from "./app-nPEJj66w.js";
3
+ import { a as ke, P as q, b as qe, _ as we } from "./TransferDetails.vue_vue_type_script_setup_true_lang-j9GKInDM.js";
4
4
  import { useBreakpoints as Pe } from "@feedmepos/ui-library";
5
5
  import { useI18n as Ne } from "@feedmepos/mf-common";
6
6
  const Te = { class: "flex flex-col py-8" }, Ae = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ce = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary line-clamp-1" }, Le = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1" }, Ve = {
@@ -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 V } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-B8T8UVHt.js";
3
- import { a as L, bc as S } from "./app-BxnJJNs8.js";
2
+ import { _ as V } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-xG6imonG.js";
3
+ import { a as L, bc as S } from "./app-nPEJj66w.js";
4
4
  const U = {
5
5
  key: 0,
6
6
  class: "flex justify-end gap-8 items-center"
@@ -1,5 +1,5 @@
1
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, bc as x, a1 as z } from "./app-BxnJJNs8.js";
2
+ import { a as M, bc as x, a1 as z } from "./app-nPEJj66w.js";
3
3
  const F = {
4
4
  key: 0,
5
5
  class: "flex flex-col gap-16"
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as x, ref as r, provide as C, computed as g, resolveComponent as h, openBlock as l, createElementBlock as u, createStaticVNode as F, Fragment as L, renderList as I, createElementVNode as p, toDisplayString as v, createVNode as w, withModifiers as N, onMounted as E, onUnmounted as z, createBlock as M } from "vue";
2
- import { F as b, a as P, bc as R } from "./app-BxnJJNs8.js";
2
+ import { F as b, a as P, bc as R } from "./app-nPEJj66w.js";
3
3
  import "@feedmepos/ui-library";
4
4
  import "@feedmepos/mf-common";
5
5
  const U = { class: "" }, D = ["onClick"], O = { class: "flex-grow-0 flex-shrink-0 basis-5/12 py-8 pl-8" }, V = { class: "flex-grow-0 flex-shrink-0 basis-3/12 py-8" }, S = { class: "flex-grow-0 flex-shrink-0 basis-3/12 py-8" }, $ = { class: "flex-grow-0 flex-shrink-0 basis-1/12 py-4" }, T = /* @__PURE__ */ x({
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as $e, ref as z, onMounted as Ie, computed as E, resolveComponent as I, openBlock as x, createElementBlock as T, Fragment as K, createTextVNode as pe, createBlock as Q, withCtx as O, createElementVNode as o, toDisplayString as V, unref as h, createVNode as w, createCommentVNode as Z, h as F, reactive as Ze, watch as Qe, isRef as Ue, normalizeClass as ve, renderList as he, normalizeStyle as Ee, Teleport as Je, mergeProps as Xe } from "vue";
2
- import { a2 as et, u as je, ad as tt, ak as at, al as G, l as nt, O as Be, i as H, t as ot, Q as De, q as st, r as rt, s as lt, am as He, an as Le, a8 as ze, ao as ne, ae as ct, aj as ae, $ as Ne, D as Me, h as ke, f as it, e as ut, a as dt, z as mt, _ as ft, B as pt, C as vt, E as we } from "./app-BxnJJNs8.js";
2
+ import { a2 as et, u as je, ad as tt, ak as at, al as G, l as nt, O as Be, i as H, t as ot, Q as De, q as st, r as rt, s as lt, am as He, an as Le, a8 as ze, ao as ne, ae as ct, aj as ae, $ as Ne, D as Me, h as ke, f as it, e as ut, a as dt, z as mt, _ as ft, B as pt, C as vt, E as we } from "./app-nPEJj66w.js";
3
3
  import { useCoreStore as yt, useI18n as Ve } from "@feedmepos/mf-common";
4
4
  import { useSnackbar as Te, useDialog as gt, useProxiedModel as bt, components as fe, useBreakpoints as ht } from "@feedmepos/ui-library";
5
5
  import { defineStore as Oe, storeToRefs as Dt } from "pinia";
6
- import { a as Ye, u as Ke } from "./stock-BDshy996.js";
6
+ import { a as Ye, u as Ke } from "./stock-Bi5Y_VCA.js";
7
7
  import { E as xt } from "./empty-placeholder-wf6-BWE8.js";
8
8
  const Fe = et((n, s) => {
9
9
  function e() {
@@ -1,9 +1,9 @@
1
1
  import { ref as D, h as F, defineComponent as j, resolveComponent as R, openBlock as T, createElementBlock as I, createElementVNode as _, normalizeClass as Y, createTextVNode as Fe, toDisplayString as C, unref as v, createCommentVNode as G, createVNode as $, withCtx as P, Fragment as H, renderList as J, computed as E, watch as Re, createSlots as Pe, createBlock as V, isRef as Oe, normalizeStyle as Ye, Teleport as Ke, normalizeProps as Ge, guardReactiveProps as Je, mergeProps as We } from "vue";
2
- import { a2 as qe, u as le, ae as Qe, D as Se, h as N, f as Xe, e as Ae, af as oe, r as Ze, ag as Ee, s as Ue, a as ae, b as et, v as tt, w as Ve, x as nt, y as ot, d as z, E as O, J as st, ah as lt, l as at, C as Ne, A as rt, ai as it, aj as ne, z as ct, _ as mt, B as ut } from "./app-BxnJJNs8.js";
2
+ import { a2 as qe, u as le, ae as Qe, D as Se, h as N, f as Xe, e as Ae, af as oe, r as Ze, ag as Ee, s as Ue, a as ae, b as et, v as tt, w as Ve, x as nt, y as ot, d as z, E as O, J as st, ah as lt, l as at, C as Ne, A as rt, ai as it, aj as ne, z as ct, _ as mt, B as ut } from "./app-nPEJj66w.js";
3
3
  import { useCoreStore as re, useI18n as B } from "@feedmepos/mf-common";
4
4
  import { useDialogChild as dt, useSnackbar as Z, useDialog as ie, FmButtonVariant as De, components as L, useProxiedModel as pt, useBreakpoints as ft } from "@feedmepos/ui-library";
5
5
  import { defineStore as Be, storeToRefs as Le } from "pinia";
6
- import { u as vt } from "./use-ingredient-select-dialog-BAC8NgLl.js";
6
+ import { u as vt } from "./use-ingredient-select-dialog-2_PwA5n8.js";
7
7
  const ee = qe((i, o) => {
8
8
  function s() {
9
9
  var t;
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as x, computed as f, ref as h, onMounted as g, openBlock as u, createElementBlock as i, createElementVNode as t, createTextVNode as n, toDisplayString as e, createCommentVNode as d, Fragment as o, renderList as p, normalizeClass as _ } from "vue";
2
2
  import { useRoute as k } from "vue-router";
3
- import { av as y, ai as w } from "./app-BxnJJNs8.js";
3
+ import { av as y, ai as w } from "./app-nPEJj66w.js";
4
4
  const c = { class: "purchase-box" }, A = { valign: "bottom" }, N = { class: "sub-header" }, O = ["src"], P = { style: { "padding-left": "10px" } }, C = { class: "address" }, D = { class: "text-right" }, R = {
5
5
  key: 0,
6
6
  class: "subtitle"
@@ -1,35 +1,35 @@
1
- import { i as C, t as R, at as w, u as B, ax as E, aI as D, aJ as H, aK as U } from "./app-BxnJJNs8.js";
2
- import { u as z } from "./supplier-Bc9lmKvx.js";
3
- import { P as T } from "./format-unit-display-BwvvZimf.js";
4
- import { computed as f, defineComponent as x, mergeModels as j, useModel as q, ref as W, resolveComponent as V, openBlock as k, createElementBlock as O, normalizeStyle as $, createElementVNode as I, createVNode as J, withCtx as K, createBlock as g, createCommentVNode as N, Fragment as Q, renderList as X, unref as M } from "vue";
5
- function Y(t, l, i) {
1
+ import { i as C, t as R, at as w, u as B, ax as E, aI as D, aJ as H, aK as U } from "./app-nPEJj66w.js";
2
+ import { u as z } from "./supplier-BM4mlyop.js";
3
+ import { P as L } from "./format-unit-display-jMOiq2Gk.js";
4
+ import { computed as f, defineComponent as x, mergeModels as j, useModel as q, ref as W, resolveComponent as V, openBlock as T, createElementBlock as O, normalizeStyle as $, createElementVNode as I, createVNode as J, withCtx as K, createBlock as g, createCommentVNode as N, Fragment as Q, renderList as X, unref as M } from "vue";
5
+ function Y(t, a, l) {
6
6
  var s;
7
- if (!!l.measurement === !!i && ((s = l.measurement) == null ? void 0 : s.id) === i)
8
- return l;
9
- if (!i)
7
+ if (!!a.measurement === !!l && ((s = a.measurement) == null ? void 0 : s.id) === l)
8
+ return a;
9
+ if (!l)
10
10
  return {
11
- costPerUnit: l.costPerUnit
11
+ costPerUnit: a.costPerUnit
12
12
  };
13
- const n = t.measurements.find((p) => p.id === i);
13
+ const n = t.measurements.find((p) => p.id === l);
14
14
  return n ? {
15
- costPerUnit: l.costPerUnit,
15
+ costPerUnit: a.costPerUnit,
16
16
  measurement: n
17
17
  } : {
18
- costPerUnit: l.costPerUnit
18
+ costPerUnit: a.costPerUnit
19
19
  };
20
20
  }
21
- function se(t, l, i, u) {
21
+ function se(t, a, l, u) {
22
22
  var P, _, o;
23
- const r = (o = (_ = (P = u == null ? void 0 : u.supplier) == null ? void 0 : P.supplyItems) == null ? void 0 : _.find(
23
+ const i = (o = (_ = (P = u == null ? void 0 : u.supplier) == null ? void 0 : P.supplyItems) == null ? void 0 : _.find(
24
24
  (e) => e.skuId === t._id
25
25
  )) == null ? void 0 : o.defaultCost;
26
26
  if (u != null && u.manualTotalCost)
27
27
  return {
28
28
  cost: u.manualTotalCost,
29
29
  skuDefaultCost: t.defaultCost ?? void 0,
30
- supplierOverrideCost: r ?? void 0
30
+ supplierOverrideCost: i ?? void 0
31
31
  };
32
- const n = t.defaultCost ? Y(t.unit, t.defaultCost, t.trackingMeasurement) : void 0, s = r ?? n, p = s == null ? void 0 : s.costPerUnit, v = p ? s != null && s.measurement ? +C(p) / +C(s == null ? void 0 : s.measurement.conversion) : +C(p) : void 0, b = v ? i ? v * +C(i.conversion) : v : void 0, h = b ? +C(l) * b : void 0;
32
+ const n = t.defaultCost ? Y(t.unit, t.defaultCost, t.trackingMeasurement) : void 0, s = i ?? n, p = s == null ? void 0 : s.costPerUnit, v = p ? s != null && s.measurement ? +C(p) / +C(s == null ? void 0 : s.measurement.conversion) : +C(p) : void 0, b = v ? l ? v * +C(l.conversion) : v : void 0, h = b ? +C(a) * b : void 0;
33
33
  return {
34
34
  cost: h ? {
35
35
  ...R(h ?? 0, 2),
@@ -40,13 +40,13 @@ function se(t, l, i, u) {
40
40
  currency: w()
41
41
  },
42
42
  skuDefaultCost: t.defaultCost ?? void 0,
43
- supplierOverrideCost: r ?? void 0
43
+ supplierOverrideCost: i ?? void 0
44
44
  };
45
45
  }
46
- function F(t) {
46
+ function k(t) {
47
47
  return D.parse(t);
48
48
  }
49
- function L(t) {
49
+ function S(t) {
50
50
  return {
51
51
  _id: t.doc._id,
52
52
  internal: t.type,
@@ -64,23 +64,23 @@ function L(t) {
64
64
  }
65
65
  };
66
66
  }
67
- function ne(t, l, i = !1, u = !1) {
68
- const r = z(), n = B();
67
+ function ne(t, a, l = !1, u = !1) {
68
+ const i = z(), n = B();
69
69
  n.watchLocation(async () => {
70
70
  var y;
71
- await r.readSuppliers();
71
+ await i.readSuppliers();
72
72
  const o = t();
73
73
  if ((y = o.supplier) != null && y._id) return;
74
- const e = u ? r.suppliers[0] : r.businessSuppliers[0], a = (i ? n.locations.filter((d) => d.doc._id !== n.currentLocation.doc._id) : n.locations)[0];
75
- l({
74
+ const e = u ? i.suppliers[0] : i.businessSuppliers[0], r = (l ? n.locations.filter((d) => d.doc._id !== n.currentLocation.doc._id) : n.locations)[0];
75
+ a({
76
76
  ...o,
77
- supplier: e ? F(e) : a ? L(a) : o.supplier
77
+ supplier: e ? k(e) : r ? S(r) : o.supplier
78
78
  });
79
79
  });
80
80
  const s = f(
81
81
  () => {
82
82
  var o, e;
83
- return typeof ((e = (o = t()) == null ? void 0 : o.supplier) == null ? void 0 : e.internal) == "string" ? T.TRANSFER : T.PURCHASE;
83
+ return typeof ((e = (o = t()) == null ? void 0 : o.supplier) == null ? void 0 : e.internal) == "string" ? L.TRANSFER : L.PURCHASE;
84
84
  }
85
85
  ), p = f({
86
86
  get() {
@@ -89,36 +89,40 @@ function ne(t, l, i = !1, u = !1) {
89
89
  },
90
90
  set(o) {
91
91
  const e = t() ?? {};
92
- if (s.value === T.PURCHASE) {
93
- const S = (u ? r.suppliers : r.businessSuppliers).find((A) => A._id === o);
94
- l({
92
+ if (s.value === L.PURCHASE) {
93
+ const F = (u ? i.suppliers : i.businessSuppliers).find((A) => A._id === o);
94
+ a({
95
95
  ...e,
96
- supplier: S ? F(S) : e.supplier
96
+ supplier: F ? k(F) : e.supplier
97
97
  });
98
98
  return;
99
99
  }
100
- const y = (i ? n.locations.filter((d) => d.doc._id !== n.currentLocation.doc._id) : n.locations).find((d) => d.doc._id === o);
101
- l({
100
+ const y = (l ? n.allLocations.filter(
101
+ (d) => d.doc._id !== n.currentLocation.doc._id
102
+ ) : n.allLocations).find((d) => d.doc._id === o);
103
+ a({
102
104
  ...e,
103
- supplier: y ? L(y) : e.supplier
105
+ supplier: y ? S(y) : e.supplier
104
106
  });
105
107
  }
106
- }), v = f(() => r.locationSuppliers.map(F)), b = f(() => r.businessSuppliers.map(F)), h = f(() => {
108
+ }), v = f(() => i.locationSuppliers.map(k)), b = f(() => i.businessSuppliers.map(k)), h = f(() => {
107
109
  const o = [...v.value], e = [...b.value];
108
110
  return u ? [...e, ...o] : e;
109
111
  }), c = f(() => {
110
112
  var m;
111
113
  const o = ((m = n._currentLocation) == null ? void 0 : m.type) === E.warehouse;
112
- return (i ? n.locations.filter((a) => a.doc._id !== n.currentLocation.doc._id) : n.locations).filter((a) => o || a.acceptRequest).map(L);
114
+ return (l ? n.allLocations.filter(
115
+ (r) => r.doc._id !== n.currentLocation.doc._id
116
+ ) : n.allLocations).filter((r) => o || r.acceptRequest).map(S);
113
117
  }), P = f(() => {
114
- if (s.value === T.PURCHASE) {
115
- const e = v.value.map((a) => ({
116
- label: a.name,
117
- value: a._id
118
- })), m = b.value.map((a) => ({
119
- label: a.name,
118
+ if (s.value === L.PURCHASE) {
119
+ const e = v.value.map((r) => ({
120
+ label: r.name,
121
+ value: r._id
122
+ })), m = b.value.map((r) => ({
123
+ label: r.name,
120
124
  sublabel: "Business supplier",
121
- value: a._id
125
+ value: r._id
122
126
  }));
123
127
  return u ? [...e, ...m] : m;
124
128
  }
@@ -128,14 +132,14 @@ function ne(t, l, i = !1, u = !1) {
128
132
  value: e._id
129
133
  }));
130
134
  }), _ = f(() => {
131
- var a, y;
132
- const o = (y = (a = t()) == null ? void 0 : a.supplier) == null ? void 0 : y._id;
133
- if (s.value === T.PURCHASE) {
134
- const d = r.suppliers.find((S) => S._id === o);
135
- return d ? F(d) : null;
135
+ var r, y;
136
+ const o = (y = (r = t()) == null ? void 0 : r.supplier) == null ? void 0 : y._id;
137
+ if (s.value === L.PURCHASE) {
138
+ const d = i.suppliers.find((F) => F._id === o);
139
+ return d ? k(d) : null;
136
140
  }
137
- const m = n.locations.find((d) => d.doc._id);
138
- return m ? L(m) : null;
141
+ const m = n.allLocations.find((d) => d.doc._id);
142
+ return m ? S(m) : null;
139
143
  });
140
144
  return {
141
145
  transferLocationModel: p,
@@ -146,7 +150,7 @@ function ne(t, l, i = !1, u = !1) {
146
150
  selectedLocation: _
147
151
  };
148
152
  }
149
- const Z = { class: "overflow-y-auto h-full pb-8" }, ie = /* @__PURE__ */ x({
153
+ const Z = { class: "overflow-y-auto h-full pb-8" }, le = /* @__PURE__ */ x({
150
154
  __name: "FmFilterableMenuOptions",
151
155
  props: /* @__PURE__ */ j({
152
156
  modelValue: {},
@@ -161,12 +165,12 @@ const Z = { class: "overflow-y-auto h-full pb-8" }, ie = /* @__PURE__ */ x({
161
165
  }),
162
166
  emits: ["update:search"],
163
167
  setup(t) {
164
- const l = t, i = q(t, "search"), u = f(
165
- () => new H(l.items, ["label", "sublabel"], l.options)
166
- ), r = f(() => u.value.search(i.value)), n = W();
168
+ const a = t, l = q(t, "search"), u = f(
169
+ () => new H(a.items, ["label", "sublabel"], a.options)
170
+ ), i = f(() => u.value.search(l.value)), n = W();
167
171
  return console.log({ stickyRef: n }), (s, p) => {
168
172
  const v = V("FmButton"), b = V("FmTextField"), h = V("FmMenuItem");
169
- return k(), O("div", {
173
+ return T(), O("div", {
170
174
  class: "relative",
171
175
  style: $({ width: s.width })
172
176
  }, [
@@ -176,23 +180,23 @@ const Z = { class: "overflow-y-auto h-full pb-8" }, ie = /* @__PURE__ */ x({
176
180
  ref: n
177
181
  }, [
178
182
  J(b, {
179
- modelValue: i.value,
180
- "onUpdate:modelValue": p[1] || (p[1] = (c) => i.value = c),
183
+ modelValue: l.value,
184
+ "onUpdate:modelValue": p[1] || (p[1] = (c) => l.value = c),
181
185
  placeholder: "Filter options"
182
186
  }, {
183
187
  append: K(() => [
184
- i.value ? (k(), g(v, {
188
+ l.value ? (T(), g(v, {
185
189
  key: 0,
186
190
  variant: "tertiary",
187
191
  "prepend-icon": "close",
188
- onClick: p[0] || (p[0] = (c) => i.value = "")
192
+ onClick: p[0] || (p[0] = (c) => l.value = "")
189
193
  })) : N("", !0)
190
194
  ]),
191
195
  _: 1
192
196
  }, 8, ["modelValue"])
193
197
  ], 512),
194
198
  I("div", Z, [
195
- (k(!0), O(Q, null, X(r.value, (c, P) => (k(), g(h, {
199
+ (T(!0), O(Q, null, X(i.value, (c, P) => (T(), g(h, {
196
200
  key: P,
197
201
  label: c.label,
198
202
  sublabel: c.sublabel,
@@ -203,7 +207,7 @@ const Z = { class: "overflow-y-auto h-full pb-8" }, ie = /* @__PURE__ */ x({
203
207
  return M(U)(s.modelValue, c.value) && ((o = _.el) == null || o.scrollIntoView({ behavior: "instant", block: "end" }), (e = _.el) == null || e.scrollIntoView({ behavior: "smooth", block: "center" })), void 0;
204
208
  }
205
209
  }, null, 8, ["label", "sublabel", "model-value", "onClick", "onVnodeMounted"]))), 128)),
206
- r.value.length ? N("", !0) : (k(), g(h, {
210
+ i.value.length ? N("", !0) : (T(), g(h, {
207
211
  key: 0,
208
212
  disabled: "",
209
213
  label: "No options available"
@@ -214,7 +218,7 @@ const Z = { class: "overflow-y-auto h-full pb-8" }, ie = /* @__PURE__ */ x({
214
218
  }
215
219
  });
216
220
  export {
217
- ie as _,
221
+ le as _,
218
222
  se as c,
219
223
  ne as u
220
224
  };
@@ -1,7 +1,7 @@
1
1
  import { defineStore as p } from "pinia";
2
2
  import { useDialog as y } from "@feedmepos/ui-library";
3
3
  import { useI18n as v } from "@feedmepos/mf-common";
4
- import { a1 as a } from "./app-BxnJJNs8.js";
4
+ import { a1 as a } from "./app-nPEJj66w.js";
5
5
  import { h as S } from "vue";
6
6
  const w = p("inventoryMultiSelectDialog", () => {
7
7
  const l = y(), { t: n } = v();
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as ie, mergeModels as E, useModel as ae, computed as v, ref as B, watch as W, onBeforeUnmount as le, inject as ue, resolveComponent as b, openBlock as d, createElementBlock as y, createElementVNode as u, createVNode as h, withCtx as F, renderSlot as G, normalizeClass as O, toDisplayString as _, withDirectives as re, vModelText as me, createCommentVNode as I, createTextVNode as ce, createBlock as U, Fragment as de, renderList as pe } from "vue";
2
- import { P as D, I as R, X as j, Q as fe, i as M, aG as ve, t as be, bf as ye, O as he, an as Me, aE as ge, aD as xe } from "./app-BxnJJNs8.js";
2
+ import { P as D, I as R, X as j, Q as fe, i as M, aG as ve, t as be, bf as ye, O as he, an as Me, aE as ge, aD as xe } from "./app-nPEJj66w.js";
3
3
  import "@feedmepos/ui-library";
4
4
  function H() {
5
5
  return {
@@ -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, O as y } from "./app-BxnJJNs8.js";
2
+ import { i as a, O as y } from "./app-nPEJj66w.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,10 +1,10 @@
1
1
  import { ref as A, computed as F, h as C, defineComponent as j, watch as re, resolveComponent as R, openBlock as G, createElementBlock as U, createVNode as b, unref as l, createElementVNode as c, toDisplayString as $, createBlock as M, withCtx as T, Fragment as pe, renderList as ve, createTextVNode as ye, createCommentVNode as se, isRef as ge, normalizeClass as _e, normalizeStyle as be, createSlots as ke, Teleport as xe, normalizeProps as he, guardReactiveProps as we } from "vue";
2
- import { a as L, d as S, e as z, f as Re, D as oe, h as K, I as Ie, A as Se, U as Ge, J as ue, K as Fe, N as Ve, l as de, L as Ce, p as ae, u as De, z as Ae, _ as $e, B as Te, C as Ee, E as le } from "./app-BxnJJNs8.js";
2
+ import { a as L, d as S, e as z, f as Re, D as oe, h as K, I as Ie, A as Se, U as Ge, J as ue, K as Fe, N as Ve, l as de, L as Ce, p as ae, u as De, z as Ae, _ as $e, B as Te, C as Ee, E as le } from "./app-nPEJj66w.js";
3
3
  import { useDialog as Me, useSnackbar as J, components as B, useProxiedModel as Be, useBreakpoints as Ue } from "@feedmepos/ui-library";
4
4
  import { useI18n as P, useCoreStore as ze } from "@feedmepos/mf-common";
5
5
  import { defineStore as ce, storeToRefs as ie } from "pinia";
6
6
  import "./array-Ca8T3f_G.js";
7
- import { u as Le } from "./FmMultiselectDialog-BXFeRNmi.js";
7
+ import { u as Le } from "./FmMultiselectDialog-Cg9DTAxA.js";
8
8
  import { r as me } from "./random-CSbEbElR.js";
9
9
  import { u as Pe, R as Ne } from "./usePromise-CbVUCxhj.js";
10
10
  const H = ce(
@@ -1,18 +1,18 @@
1
1
  import { ref as O, h as ae, defineComponent as se, computed as S, resolveComponent as F, openBlock as b, createBlock as D, withCtx as V, createVNode as f, unref as d, createElementBlock as A, Fragment as X, createElementVNode as m, createCommentVNode as H, renderSlot as ce, createTextVNode as Ee, toDisplayString as T, normalizeClass as ee, onMounted as it, watch as Ke, renderList as ue, isRef as Pe, createSlots as Ze, normalizeStyle as ut, Teleport as Ne, normalizeProps as dt, guardReactiveProps as mt } from "vue";
2
- import { a as oe, d as W, e as Je, S as ct, f as pt, D as Le, h as _e, A as ke, b as Ue, i as Qe, j as Ve, t as Xe, k as ve, l as we, U as vt, m as ft, M as yt, n as ze, o as Oe, p as He, q as et, r as gt, s as tt, v as bt, w as ht, I as _t, x as xt, y as kt, N as Vt, H as St, u as Ct, z as wt, _ as Ft, B as It, C as Mt, E as je, G as $t } from "./app-BxnJJNs8.js";
2
+ import { a as oe, d as W, e as Je, S as ct, f as pt, D as Le, h as _e, A as ke, b as Ue, i as Qe, j as Ve, t as Xe, k as ve, l as we, U as vt, m as ft, M as yt, n as ze, o as Oe, p as He, q as et, r as gt, s as tt, v as bt, w as ht, I as _t, x as xt, y as kt, N as Vt, H as St, u as Ct, z as wt, _ as Ft, B as It, C as Mt, E as je, G as $t } from "./app-nPEJj66w.js";
3
3
  import { useDialog as nt, useSnackbar as Se, components as Ye, useProxiedModel as qe, useDialogChild as Et, useBreakpoints as Ut } from "@feedmepos/ui-library";
4
4
  import { i as Rt, _ as At } from "./is-linked-ingredient-error-fJ2TJb3z.js";
5
5
  import { useI18n as re, useCoreStore as fe } from "@feedmepos/mf-common";
6
6
  import { defineStore as Tt, storeToRefs as Dt } from "pinia";
7
7
  import { g as Bt, _ as Fe, S as Ie } from "./StockForecast.vue_vue_type_style_index_0_lang-KLXSWvo5.js";
8
- import { _ as Pt } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-B8T8UVHt.js";
9
- import { _ as Me } from "./IngredientBindedItem.vue_vue_type_script_setup_true_lang-Chlkd7um.js";
10
- import { u as ot } from "./feature-DmO5_l_f.js";
8
+ import { _ as Pt } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-xG6imonG.js";
9
+ import { _ as Me } from "./IngredientBindedItem.vue_vue_type_script_setup_true_lang-BWfXeMwK.js";
10
+ import { u as ot } from "./feature-tl_kxeKY.js";
11
11
  import { _ as xe } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
12
12
  import { _ as Nt } from "./FmCustomAttribute.vue_vue_type_script_setup_true_lang-D-IWRjRD.js";
13
13
  import { r as Lt } from "./random-CSbEbElR.js";
14
14
  import "./array-Ca8T3f_G.js";
15
- import { u as zt } from "./FmMultiselectDialog-BXFeRNmi.js";
15
+ import { u as zt } from "./FmMultiselectDialog-Cg9DTAxA.js";
16
16
  const $e = Tt("ingredientForm", function() {
17
17
  const o = nt(), y = Se(), l = oe(), n = O(!1), { t: a } = re(), i = O();
18
18
  function p() {
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as G, mergeModels as $t, useModel as xt, onMounted as Mt, ref as z, computed as V, resolveComponent as L, openBlock as F, createElementBlock as U, createElementVNode as D, toDisplayString as H, unref as N, createVNode as C, createBlock as X, withCtx as B, Fragment as ne, renderList as we, normalizeClass as pe, normalizeStyle as en, createSlots as qe, createCommentVNode as J, withModifiers as tn, reactive as tt, watch as nt, isRef as Be, Teleport as it, h as P, createTextVNode as ce, watchEffect as nn } from "vue";
2
2
  import { E as on } from "./empty-placeholder-wf6-BWE8.js";
3
- import { aT as sn, aK as rn, e as ve, u as Ue, aU as an, b as je, aA as t, aV as ln, aW as dn, aX as un, aY as cn, aZ as Ft, a_ as mn, a$ as Qe, ay as Ke, b0 as W, b1 as $, P as O, k as Je, b2 as Ie, aw as se, b3 as fn, av as ee, b4 as ge, b5 as pn, b6 as gn, b7 as yn, b8 as ot, b9 as In, i as En, a as wt, aR as vn, a1 as An, $ as xe, Z as bn, ba as _n, aB as Sn, aN as Dn, aj as hn, r as Tn, x as Cn, _ as Nn, B as xn } from "./app-BxnJJNs8.js";
3
+ import { aT as sn, aK as rn, e as ve, u as Ue, aU as an, b as je, aA as t, aV as ln, aW as dn, aX as un, aY as cn, aZ as Ft, a_ as mn, a$ as Qe, ay as Ke, b0 as W, b1 as $, P as O, k as Je, b2 as Ie, aw as se, b3 as fn, av as ee, b4 as ge, b5 as pn, b6 as gn, b7 as yn, b8 as ot, b9 as In, i as En, a as wt, aR as vn, a1 as An, $ as xe, Z as bn, ba as _n, aB as Sn, aN as Dn, aj as hn, r as Tn, x as Cn, _ as Nn, B as xn } from "./app-nPEJj66w.js";
4
4
  import { useDialogChild as Mn, useDialog as st, useProxiedModel as Oe, useSnackbar as Ve, useBreakpoints as Lt, components as Me } from "@feedmepos/ui-library";
5
5
  import { useI18n as re, useCoreStore as ze } from "@feedmepos/mf-common";
6
- import { a as Fn, b as wn, u as Ln } from "./index-DAEqPSv0.js";
7
- import { u as rt } from "./vue-i18n-Cp__dDGB.js";
8
- import { _ as kn, F as Rn } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-DSFMNy1M.js";
9
- import { u as Un } from "./feature-DmO5_l_f.js";
6
+ import { a as Fn, b as wn, u as Ln } from "./index-C9c95Oq3.js";
7
+ import { u as rt } from "./vue-i18n-Dkl_T9hT.js";
8
+ import { _ as kn, F as Rn } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-Cw-80c5L.js";
9
+ import { u as Un } from "./feature-tl_kxeKY.js";
10
10
  const Bn = "data:image/svg+xml,%3csvg%20width='200'%20height='101'%20viewBox='0%200%20200%20101'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M98.9161%2038.4456V24.1772H108.527V27.1988H102.12V30.2202H107.347V32.7382H102.12V38.4456H98.9161Z'%20fill='%235D5359'/%3e%3cpath%20d='M110.382%2031.2276C110.382%2027.5345%20113.249%2024.1772%20117.127%2024.1772C121.174%2024.1772%20123.872%2027.7024%20123.872%2031.3953C123.872%2035.0884%20121.005%2038.6133%20117.127%2038.6133C113.08%2038.4456%20110.382%2034.9204%20110.382%2031.2276ZM117.127%2035.5919C119.487%2035.5919%20120.499%2033.4096%20120.499%2031.2276C120.499%2029.0452%20119.319%2027.0309%20117.127%2027.0309C114.935%2027.0309%20113.754%2029.213%20113.754%2031.2276C113.754%2033.5776%20114.935%2035.5919%20117.127%2035.5919Z'%20fill='%235D5359'/%3e%3cpath%20d='M126.232%2031.2276C126.232%2027.5345%20129.099%2024.1772%20132.977%2024.1772C137.024%2024.1772%20139.722%2027.7024%20139.722%2031.3953C139.722%2035.0884%20136.855%2038.6133%20132.977%2038.6133C128.93%2038.4456%20126.232%2034.9204%20126.232%2031.2276ZM132.977%2035.5919C135.337%2035.5919%20136.349%2033.4096%20136.349%2031.2276C136.349%2029.0452%20135.169%2027.0309%20132.977%2027.0309C130.785%2027.0309%20129.604%2029.213%20129.604%2031.2276C129.604%2033.5776%20130.785%2035.5919%20132.977%2035.5919Z'%20fill='%235D5359'/%3e%3cpath%20d='M142.926%2038.4455V24.345H148.153C152.874%2024.345%20155.235%2027.5343%20155.235%2031.3952C155.235%2035.5918%20152.368%2038.4455%20148.153%2038.4455H142.926ZM148.153%2027.0308H146.129V35.4238H148.153C150.513%2035.4238%20151.862%2033.5775%20151.862%2031.2272C151.862%2028.8773%20150.513%2027.0308%20148.153%2027.0308Z'%20fill='%235D5359'/%3e%3cpath%20d='M110.045%2057.5607V49.1676L107.009%2055.2107H105.324L102.12%2049.1676V57.5607H98.9161V43.4604H102.457L106.167%2050.8465L109.876%2043.4604H113.417V57.5607H110.045Z'%20fill='%235D5359'/%3e%3cpath%20d='M115.947%2057.5607L121.342%2043.4604H124.04L129.436%2057.5607H125.895L124.715%2054.3716H120.331L119.319%2057.5607H115.947ZM122.691%2046.9856L121.005%2052.1893H124.378L122.691%2046.9856Z'%20fill='%235D5359'/%3e%3cpath%20d='M131.965%2057.5607V43.4604H138.373C141.07%2043.4604%20142.925%2045.8105%20142.925%2048.1605C142.925%2049.8393%20142.082%2051.5179%20140.565%2052.1893L143.768%2057.393H140.059L137.192%2052.8607H135V57.393H131.965V57.5607ZM135.169%2050.175H138.204C139.047%2050.175%20139.553%2049.3356%20139.553%2048.1605C139.553%2046.9856%20138.71%2046.3142%20138.035%2046.3142H135.169V50.175Z'%20fill='%235D5359'/%3e%3cpath%20d='M146.635%2057.5607V43.4604H150.007V49.8393L155.403%2043.4604H158.776L153.548%2049.6713L159.281%2057.5607H155.74L151.693%2051.5179L150.007%2053.3642V57.5607H146.635Z'%20fill='%235D5359'/%3e%3cpath%20d='M171.422%2054.7073V57.5607H161.474V43.4604H171.253V46.3142H164.677V48.9999H170.242V51.6856H164.677V54.7073H171.422Z'%20fill='%235D5359'/%3e%3cpath%20d='M185.417%2046.3142H181.202V57.5607H177.829V46.3142H173.614V43.4604H185.417V46.3142Z'%20fill='%235D5359'/%3e%3cpath%20d='M111.057%2062.5967V76.6973H107.853V70.9898H102.12V76.6973H98.9161V62.5967H102.12V68.1361H107.853V62.5967H111.057Z'%20fill='%235D5359'/%3e%3cpath%20d='M124.04%2069.815V62.5967H127.244V69.815C127.244%2073.6758%20125.389%2076.865%20121.005%2076.865C116.453%2076.865%20114.766%2073.5078%20114.766%2069.815V62.5967H117.97V69.815C117.97%2071.997%20118.813%2074.0115%20121.005%2074.0115C123.366%2074.0115%20124.04%2071.997%20124.04%2069.815Z'%20fill='%235D5359'/%3e%3cpath%20d='M138.036%2076.6973H131.122V62.5967H139.047C141.071%2062.5967%20142.251%2064.4433%20142.251%2066.2898C142.251%2067.6327%20141.576%2068.9755%20140.228%2069.4793C141.914%2069.9827%20142.926%2071.1578%20142.926%2073.1721C142.757%2075.5221%20140.733%2076.6973%20138.036%2076.6973ZM134.326%2065.4504V68.3041H137.53C138.204%2068.3041%20138.879%2067.8004%20138.879%2066.7933C138.879%2065.7861%20138.373%2065.2827%20137.698%2065.2827H134.326V65.4504ZM138.204%2070.8221H134.494V73.8435H138.204C139.047%2073.8435%20139.722%2073.1721%20139.722%2072.3327C139.553%2071.6613%20138.879%2070.8221%20138.204%2070.8221Z'%20fill='%235D5359'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M73.4753%2051.4994C78.7281%2050.5396%2082.8911%2046.4891%2083.9954%2041.3137L84.1232%2040.7134L83.9445%2040.1256C80.5804%2029.066%2071.9945%2020.2704%2061.0373%2016.5726C57.4%2015.3451%2053.5046%2014.6804%2049.458%2014.6804C45.4112%2014.6804%2041.5158%2015.3451%2037.8784%2016.5726C26.9214%2020.2704%2018.3354%2029.066%2014.9712%2040.1256L14.7924%2040.7134L14.9206%2041.3137C16.0247%2046.4891%2020.1875%2050.5396%2025.4405%2051.4994V58.8839H14.4183C14.6758%2059.9557%2014.9818%2061.0088%2015.3337%2062.0411C20.1553%2076.1811%2033.6083%2086.3619%2049.458%2086.3619C65.3074%2086.3619%2078.7606%2076.1811%2083.5822%2062.0411C83.9342%2061.0088%2084.2399%2059.9557%2084.4974%2058.8839H73.4753V51.4994ZM41.0517%2020.5973V38.5742C41.0517%2043.1931%2044.8155%2046.9371%2049.458%2046.9371C54.1005%2046.9371%2057.8641%2043.1931%2057.8641%2038.5742V20.5973C55.1919%2019.856%2052.3732%2019.4592%2049.458%2019.4592C46.5428%2019.4592%2043.7241%2019.856%2041.0517%2020.5973ZM62.6675%2022.3673V38.5742C62.6675%2043.1931%2066.431%2046.9371%2071.0735%2046.9371C74.9051%2046.9371%2078.1425%2044.3848%2079.1528%2040.8942C76.4672%2032.6902%2070.4379%2025.9824%2062.6675%2022.3673ZM60.2658%2046.1322C57.8753%2049.5094%2053.9255%2051.7159%2049.458%2051.7159C44.9902%2051.7159%2041.0408%2049.5094%2038.65%2046.1322C36.6982%2048.8894%2033.7074%2050.8662%2030.2439%2051.4994V58.8839H68.6718V51.4994C65.2083%2050.8662%2062.2175%2048.8894%2060.2658%2046.1322ZM21.1583%2063.6628C26.1349%2074.2514%2036.9382%2081.5834%2049.458%2081.5834C61.9776%2081.5834%2072.781%2074.2514%2077.7574%2063.6628H21.1583ZM36.2482%2038.5742V22.3673C28.4779%2025.9824%2022.4486%2032.6902%2019.7631%2040.8942C20.7733%2044.3848%2024.0106%2046.9371%2027.8422%2046.9371C32.4847%2046.9371%2036.2482%2043.1931%2036.2482%2038.5742Z'%20fill='%23FFC35D'/%3e%3c/svg%3e";
11
11
  var kt = { exports: {} };
12
12
  (function(s, d) {
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-B8T8UVHt.js";
1
+ import { _ as f } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-xG6imonG.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as ee, computed as _, reactive as ne, resolveComponent as k, openBlock as r, createElementBlock as p, createVNode as y, withCtx as U, createElementVNode as n, toDisplayString as m, unref as i, createBlock as B, createCommentVNode as v, Fragment as E, renderList as C, nextTick as oe } from "vue";
2
- import { a as te, W as le, bd as ie, i as h, be as N, T as G, Q as se, F as de } from "./app-BxnJJNs8.js";
3
- import { u as re } from "./use-inventory-binding-dialog-BHooDU9m.js";
4
- import { _ as ae, c as ue, d as me } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-DSFMNy1M.js";
2
+ import { a as te, W as le, bd as ie, i as h, be as N, T as G, Q as se, F as de } from "./app-nPEJj66w.js";
3
+ import { u as re } from "./use-inventory-binding-dialog-B60aoyoz.js";
4
+ import { _ as ae, c as ue, d as me } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-Cw-80c5L.js";
5
5
  import { useI18n as ce } from "@feedmepos/mf-common";
6
6
  const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-16" }, fe = { class: "flex items-center" }, ve = { class: "flex-1 fm-typo-en-title-sm-600" }, be = { class: "flex flex-col" }, ge = { class: "flex py-8 px-12 border-b border-fm-color-neutral-gray-200 bg-fm-color-neutral-gray-100 h-[44px] items-center" }, _e = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, xe = { class: "flex flex-col w-full border-b border-fm-color-neutral-gray-100" }, he = {
7
7
  class: "flex items-center",
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as l, resolveComponent as m, openBlock as c, createBlock as d, h as g } from "vue";
2
2
  import { useI18n as p } from "@feedmepos/mf-common";
3
3
  import { components as u } from "@feedmepos/ui-library";
4
- import { F as r } from "./app-BxnJJNs8.js";
4
+ import { F as r } from "./app-nPEJj66w.js";
5
5
  const w = /* @__PURE__ */ l({
6
6
  __name: "InventoryBindingSummary",
7
7
  props: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as V, computed as w, ref as h, watch as u, resolveComponent as i, openBlock as F, createBlock as g, withCtx as d, createVNode as A, createElementVNode as k, normalizeClass as K } from "vue";
2
- import { Q as s } from "./app-BxnJJNs8.js";
2
+ import { Q as s } from "./app-nPEJj66w.js";
3
3
  const _ = ["value", "disabled"], C = /* @__PURE__ */ V({
4
4
  __name: "NumberPrecisionInput",
5
5
  props: {
@@ -1,4 +1,4 @@
1
- import { aB as u, aC as _, a2 as h, u as F } from "./app-BxnJJNs8.js";
1
+ import { aB as u, aC as _, a2 as h, u as F } from "./app-nPEJj66w.js";
2
2
  import { useCoreStore as y } from "@feedmepos/mf-common";
3
3
  import { ref as v, defineComponent as k, resolveComponent as l, openBlock as g, createElementBlock as S, renderSlot as x, createVNode as m, withCtx as O } from "vue";
4
4
  function w(e, t) {
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as Q, ref as D, computed as r, resolveComponent as s, openBlock as I, createBlock as B, unref as v, createSlots as X, withCtx as u, createElementVNode as h, normalizeClass as Z, createVNode as n, normalizeStyle as ee, Teleport as te, h as f } from "vue";
2
- import { u as oe, a as ne, aS as ae, z as se, _ as le, aj as H } from "./app-BxnJJNs8.js";
2
+ import { u as oe, a as ne, aS as ae, z as se, _ as le, aj as H } from "./app-nPEJj66w.js";
3
3
  import { useBreakpoints as ie, useDialog as re, useSnackbar as ue, components as R } from "@feedmepos/ui-library";
4
- import { u as ce } from "./vue-i18n-Cp__dDGB.js";
4
+ import { u as ce } from "./vue-i18n-Dkl_T9hT.js";
5
5
  const me = { class: "flex flex-col py-8" }, pe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, de = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, ge = /* @__PURE__ */ Q({
6
6
  __name: "PublishView",
7
7
  setup(ye) {
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as h, computed as x, ref as m, onMounted as f, openBlock as n, createElementBlock as u, createElementVNode as t, toDisplayString as e, normalizeStyle as g, createTextVNode as i, Fragment as d, createCommentVNode as p, renderList as v, normalizeClass as w } from "vue";
2
2
  import { useRoute as k } from "vue-router";
3
- import { av as y, ai as C } from "./app-BxnJJNs8.js";
3
+ import { av as y, ai as C } from "./app-nPEJj66w.js";
4
4
  const R = { class: "purchase-box" }, A = { valign: "bottom" }, O = { class: "title" }, P = { class: "text-right" }, D = { class: "header" }, E = { class: "sub-header" }, N = { class: "caption" }, S = { class: "address" }, T = { class: "text-right" }, q = { class: "sub-header" }, F = { class: "address" }, L = { class: "purchase-body" }, U = { class: "text-left" }, V = { class: "text-left" }, z = { class: "text-right" }, B = { style: { "padding-top": "30px" } }, H = { valign: "bottom" }, I = { class: "header" }, M = { class: "caption" }, J = {
5
5
  class: "text-left",
6
6
  style: { width: "20%" }
@@ -1,18 +1,18 @@
1
1
  import { reactive as bt, onMounted as Qe, watch as _e, computed as U, h as L, defineComponent as ce, openBlock as S, createElementBlock as D, Fragment as de, renderList as Se, createElementVNode as n, toDisplayString as E, unref as s, resolveComponent as T, createVNode as y, withCtx as R, createCommentVNode as H, ref as O, createBlock as J, normalizeClass as K, normalizeStyle as gt, createTextVNode as Te, nextTick as $t, mergeProps as Ze, isRef as xe, createSlots as Tt, Teleport as Dt, normalizeProps as It, guardReactiveProps as Vt } from "vue";
2
- import { b as Me, P as _t, l as Oe, i as Ce, a6 as je, Q as Pt, at as Rt, A as qe, M as At, m as ht, ad as Je, E as fe, ak as Et, au as Ot, av as qt, aw as Mt, J as kt, u as We, a as Ge, ax as Ut, ay as Nt, a5 as zt, $ as Bt, az as Lt, C as xt, a1 as Ht, d as Ee, w as jt, x as Qt, y as Yt, aA as He, a7 as pt, z as Kt, N as Xt, H as Zt, _ as Jt, B as Wt, V as ft } from "./app-BxnJJNs8.js";
3
- import { u as et, a as Gt, P as Xe, b as es, _ as ts, g as ss } from "./TransferDetails.vue_vue_type_script_setup_true_lang-D2w2Lfpr.js";
4
- import { _ as Ct, u as os, i as as, e as ns } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-CWPBYmxy.js";
2
+ import { b as Me, P as _t, l as Oe, i as Ce, a6 as je, Q as Pt, at as Rt, A as qe, M as At, m as ht, ad as Je, E as fe, ak as Et, au as Ot, av as qt, aw as Mt, J as kt, u as We, a as Ge, ax as Ut, ay as Nt, a5 as zt, $ as Bt, az as Lt, C as xt, a1 as Ht, d as Ee, w as jt, x as Qt, y as Yt, aA as He, a7 as pt, z as Kt, N as Xt, H as Zt, _ as Jt, B as Wt, V as ft } from "./app-nPEJj66w.js";
3
+ import { u as et, a as Gt, P as Xe, b as es, _ as ts, g as ss } from "./TransferDetails.vue_vue_type_script_setup_true_lang-j9GKInDM.js";
4
+ import { _ as Ct, u as os, i as as, e as ns } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-_2LpVq7p.js";
5
5
  import { u as ls } from "./useTabStorage-BkIVScW_.js";
6
6
  import { useBreakpoints as tt, components as ge, FmButtonVariant as rs, useSnackbar as De, useDialog as is, useProxiedModel as St } from "@feedmepos/ui-library";
7
- import { P as ae, u as wt } from "./format-unit-display-BwvvZimf.js";
8
- import { _ as us, F as ds, a as cs, b as ms } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-DSFMNy1M.js";
9
- import { u as st } from "./feature-DmO5_l_f.js";
10
- import { c as $e, u as ps, _ as fs } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DOYZGC5o.js";
7
+ import { P as ae, u as wt } from "./format-unit-display-jMOiq2Gk.js";
8
+ import { _ as us, F as ds, a as cs, b as ms } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-Cw-80c5L.js";
9
+ import { u as st } from "./feature-tl_kxeKY.js";
10
+ import { c as $e, u as ps, _ as fs } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DqgjXC1-.js";
11
11
  import { useI18n as he } from "@feedmepos/mf-common";
12
- import "./FmMultiselectDialog-BXFeRNmi.js";
13
- import { u as ot } from "./supplier-Bc9lmKvx.js";
12
+ import "./FmMultiselectDialog-Cg9DTAxA.js";
13
+ import { u as ot } from "./supplier-BM4mlyop.js";
14
14
  import { _ as vs } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
15
- import { u as ys } from "./vue-i18n-Cp__dDGB.js";
15
+ import { u as ys } from "./vue-i18n-Dkl_T9hT.js";
16
16
  import "./array-Ca8T3f_G.js";
17
17
  var G = /* @__PURE__ */ ((g) => (g.Code = "Code", g.Name = "Name", g.TemplateName = "TemplateName", g.Amount = "Amount", g.Cost = "Cost", g.TotalCost = "TotalCost", g.Delete = "Delete", g))(G || {});
18
18
  const bs = () => (he(), L(
@@ -1,13 +1,13 @@
1
1
  import { defineComponent as K, ref as E, onMounted as re, resolveComponent as $, openBlock as F, createElementBlock as B, Fragment as ie, createElementVNode as h, toDisplayString as ue, createVNode as g, createCommentVNode as O, computed as k, watch as ce, createBlock as N, withCtx as P, unref as b, isRef as ee, normalizeClass as de, normalizeStyle as me, Teleport as pe, normalizeProps as fe, guardReactiveProps as ve } from "vue";
2
- import { a as A, d as V, e as Q, S as ye, f as ge, D as te, h as j, i as U, F as H, l as be, U as _e, A as we, p as ne, q as Re, s as he, r as xe, u as Se, z as Ve, _ as Ce, B as Ee, C as Fe, E as oe } from "./app-BxnJJNs8.js";
2
+ import { a as A, d as V, e as Q, S as ye, f as ge, D as te, h as j, i as U, F as H, l as be, U as _e, A as we, p as ne, q as Re, s as he, r as xe, u as Se, z as Ve, _ as Ce, B as Ee, C as Fe, E as oe } from "./app-nPEJj66w.js";
3
3
  import { useDialog as $e, useSnackbar as se, useProxiedModel as ae, useBreakpoints as ke } from "@feedmepos/ui-library";
4
4
  import { i as Ie, _ as De } from "./is-linked-ingredient-error-fJ2TJb3z.js";
5
- import { _ as le } from "./IngredientBindedItem.vue_vue_type_script_setup_true_lang-Chlkd7um.js";
5
+ import { _ as le } from "./IngredientBindedItem.vue_vue_type_script_setup_true_lang-BWfXeMwK.js";
6
6
  import { defineStore as Ae, storeToRefs as Be } from "pinia";
7
7
  import { useI18n as q } from "@feedmepos/mf-common";
8
- import { _ as Pe } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-B8T8UVHt.js";
8
+ import { _ as Pe } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-xG6imonG.js";
9
9
  import { _ as Te } from "./FmCustomAttribute.vue_vue_type_script_setup_true_lang-D-IWRjRD.js";
10
- import { u as Ue } from "./feature-DmO5_l_f.js";
10
+ import { u as Ue } from "./feature-tl_kxeKY.js";
11
11
  const Me = {
12
12
  key: 0,
13
13
  class: "flex flex-col items-center w-full h-full gap-24"
@@ -1,18 +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 J, renderList as le, unref as r, h as _e, watch as be, isRef as Ie, createCommentVNode as ne, reactive as at, onMounted as qe, normalizeStyle as Qe, createTextVNode as ce, Teleport as rt, normalizeProps as we, mergeProps as $e } from "vue";
2
- import { u as pe, V as lt, e as Te, f as it, a as Ue, F as Le, W as ut, X as Be, i as de, O as ct, t as xe, T as De, A as dt, M as mt, Q as fe, Y as pt, Z as te, $ as vt, a0 as Ne, l as ft, a1 as yt, a2 as _t, a3 as kt, a4 as Xe, P as G, a5 as ht, r as Je, a6 as ke, a7 as gt, a8 as bt, n as Ae, k as ze, o as xt, a9 as St, aa as Ft, ab as wt, ac as $t, ad as At, z as Ct, _ as Vt, B as Mt, C as Bt, E as Ye } from "./app-BxnJJNs8.js";
3
- import { u as Pe, a as Ee } from "./stock-BDshy996.js";
4
- import { g as Se } from "./decimal-hf5iHUs2.js";
5
- import { e as Dt, u as Ze, i as et, _ as Ke } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-CWPBYmxy.js";
2
+ import { u as pe, V as lt, e as Te, f as it, a as Ue, F as Le, W as ut, X as Be, i as de, O as ct, t as xe, T as De, A as dt, M as mt, Q as fe, Y as pt, Z as te, $ as vt, a0 as Ne, l as ft, a1 as yt, a2 as _t, a3 as kt, a4 as Xe, P as G, a5 as ht, r as Je, a6 as ke, a7 as gt, a8 as bt, n as Ae, k as ze, o as xt, a9 as St, aa as Ft, ab as wt, ac as $t, ad as At, z as Ct, _ as Vt, B as Mt, C as Bt, E as Ye } from "./app-nPEJj66w.js";
3
+ import { u as Pe, a as Ee } from "./stock-Bi5Y_VCA.js";
4
+ import { g as Se } from "./decimal-CNoD63vh.js";
5
+ import { e as Dt, u as Ze, i as et, _ as Ke } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-_2LpVq7p.js";
6
6
  import { _ as je, S as Ce, g as tt } from "./StockForecast.vue_vue_type_style_index_0_lang-KLXSWvo5.js";
7
7
  import { _ as jt } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
8
8
  import { useI18n as ue, useCoreStore as It } from "@feedmepos/mf-common";
9
9
  import { useSnackbar as ye, useDialog as nt, useProxiedModel as He, useBreakpoints as Tt } from "@feedmepos/ui-library";
10
10
  import { defineStore as Ut } from "pinia";
11
- import { u as Pt } from "./use-inventory-binding-dialog-BHooDU9m.js";
12
- import { _ as Et } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DNr7E-SL.js";
11
+ import { u as Pt } from "./use-inventory-binding-dialog-B60aoyoz.js";
12
+ import { _ as Et } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DMqSByib.js";
13
13
  import { E as Ht } from "./empty-placeholder-wf6-BWE8.js";
14
14
  import "./array-Ca8T3f_G.js";
15
- import { u as Rt } from "./feature-DmO5_l_f.js";
15
+ import { u as Rt } from "./feature-tl_kxeKY.js";
16
16
  var he = /* @__PURE__ */ ((f) => (f.History = "History", f.Convert = "Convert", f.Adjust = "Adjust", f))(he || {});
17
17
  const Ot = [
18
18
  {