@feedmepos/mf-inventory-portal 1.0.9-dev.4 → 1.0.10-dev.1

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 (52) hide show
  1. package/dist/{App-BOKGVcoO.js → App-B650rzJv.js} +2 -2
  2. package/dist/{ApprovalView-Bo-4fnEU.js → ApprovalView-H0w0Pbkj.js} +2 -2
  3. package/dist/{BindingsDialog-DM2b4GN4.js → BindingsDialog-BTEnbuSr.js} +2 -2
  4. package/dist/{BindingsPicker-CJKBXA0c.js → BindingsPicker-DJVlBOBU.js} +3 -3
  5. package/dist/{BindingsTable-BxCEEJfb.js → BindingsTable-BWsGdzSB.js} +1 -1
  6. package/dist/{ClosingDraftView-bQxPF18V.js → ClosingDraftView-AWcZjvya.js} +106 -106
  7. package/dist/{ClosingTemplateView-DLkp9Qt8.js → ClosingTemplateView-N2Ap8Ekd.js} +2 -2
  8. package/dist/{DeliveryOrderPrintPreview-CK3HdYVb.js → DeliveryOrderPrintPreview-C5EPAWPK.js} +1 -1
  9. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DvCBsPdI.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DVfj4MgV.js} +3 -3
  10. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-R8f-Q9Nk.js → FmUnitInput.vue_vue_type_script_setup_true_lang-wvRtPslo.js} +20 -20
  11. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-BOyqgaik.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DRygALNq.js} +1 -1
  12. package/dist/IngredientGroupView-B_xMnLFQ.js +604 -0
  13. package/dist/{IngredientsView-DmKCy_JQ.js → IngredientsView-DZxBsZI-.js} +4 -4
  14. package/dist/{IntegrationView-B1dzt8WK.js → IntegrationView-p63ruxVJ.js} +4 -4
  15. package/dist/{InventoryBindingForm-CeTlH0U1.js → InventoryBindingForm-DOCKvvbd.js} +1 -1
  16. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-DsM2bCNe.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-Bzfh5vhC.js} +19 -19
  17. package/dist/{InventoryBindingSummary-QVSD87YL.js → InventoryBindingSummary-Bot16bHd.js} +1 -1
  18. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-C-lgLo2e.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Cq1W66FY.js} +1 -1
  19. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-CEMRfo1C.js → PremiumBadge.vue_vue_type_script_setup_true_lang-CLkcV3TQ.js} +1 -1
  20. package/dist/{PublishView-BYGKLC9D.js → PublishView-gf-pE1NP.js} +2 -2
  21. package/dist/{PurchaseOrderPrintPreview-CEVjGeom.js → PurchaseOrderPrintPreview-BB5aGGvb.js} +1 -1
  22. package/dist/{ReceiveRequestView-D5PcGCLv.js → ReceiveRequestView-CR2Ive4l.js} +42 -42
  23. package/dist/{RecipeView-DmTDCsvk.js → RecipeView-Cr1h7m7C.js} +3 -3
  24. package/dist/{StockView-EmTqUcP1.js → StockView-CbJu6pz1.js} +7 -7
  25. package/dist/{SupplierView-BaLnW761.js → SupplierView-DLnf0IXT.js} +4 -4
  26. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-B3ew6mc5.js → TransferDetails.vue_vue_type_script_setup_true_lang-9saG4V9_.js} +36 -36
  27. package/dist/{TransferTemplateView-DoeLAFmJ.js → TransferTemplateView-Cwn20Rza.js} +114 -114
  28. package/dist/{UnitView-6Kobe5di.js → UnitView-ir5d8Ls0.js} +18 -18
  29. package/dist/{WarehouseView-BBMS14jU.js → WarehouseView-BA0b8JDG.js} +1 -1
  30. package/dist/api/inventory.d.ts +207 -0
  31. package/dist/{app-CUTIQqG_.js → app-DmpPc6HP.js} +15490 -15057
  32. package/dist/app.js +1 -1
  33. package/dist/{decimal-Bb7Chjpr.js → decimal-BdCdQEd5.js} +1 -1
  34. package/dist/{feature-D5GLIW5h.js → feature-B_qG9zNF.js} +579 -466
  35. package/dist/{format-unit-display-CqqBiewI.js → format-unit-display-y8ZPuai0.js} +29 -29
  36. package/dist/{index-B7QMXzGe.js → index-BdbeTU14.js} +2823 -2739
  37. package/dist/{index-DiEdX1Bs.js → index-rWHZ5j80.js} +2 -2
  38. package/dist/{stock-CO0XWh8j.js → stock-C05OFvav.js} +1 -1
  39. package/dist/stores/inventory.d.ts +211 -1
  40. package/dist/{supplier-C877x7mU.js → supplier-B58dle3W.js} +1 -1
  41. package/dist/tsconfig.app.tsbuildinfo +1 -1
  42. package/dist/{use-ingredient-select-dialog-ClufUFeU.js → use-ingredient-select-dialog-CrfP3e6M.js} +1 -1
  43. package/dist/{use-inventory-binding-dialog-BuRe6QNp.js → use-inventory-binding-dialog-D0RpVsqZ.js} +1 -1
  44. package/dist/views/ingredient-group/IngredientGroupView.vue.d.ts +3 -0
  45. package/dist/views/ingredient-group/components/ingredient-group-dialog/IngredientGroupDialog.vue.d.ts +31 -0
  46. package/dist/views/ingredient-group/components/ingredient-group-dialog/IngredientGroupDialogProps.d.ts +12 -0
  47. package/dist/views/ingredient-group/components/ingredient-group-form/IngredientGroupForm.vue.d.ts +20 -0
  48. package/dist/views/ingredient-group/components/ingredient-group-form/IngredientGroupFormProps.d.ts +12 -0
  49. package/dist/views/ingredient-group/composables/use-ingredient-group-actions.d.ts +24 -0
  50. package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +218 -0
  51. package/dist/{vue-i18n-CxuQa0ds.js → vue-i18n-Dt--gl9w.js} +337 -337
  52. package/package.json +3 -3
@@ -1,7 +1,7 @@
1
- import { defineComponent as H, computed as _, reactive as Q, resolveComponent as x, openBlock as m, createElementBlock as f, createVNode as c, withCtx as F, createElementVNode as n, toDisplayString as v, unref as l, createBlock as V, createCommentVNode as b, Fragment as S, renderList as T, nextTick as X } from "vue";
2
- import { a as Z, N as ee, aS as ne, i as B, aT as oe, K as N, J as te, F as ie } from "./app-CUTIQqG_.js";
3
- import { u as le } from "./use-inventory-binding-dialog-BuRe6QNp.js";
4
- import { _ as re, c as se, d as de } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-R8f-Q9Nk.js";
1
+ import { defineComponent as J, computed as _, reactive as Q, resolveComponent as x, openBlock as m, createElementBlock as f, createVNode as c, withCtx as F, createElementVNode as n, toDisplayString as v, unref as l, createBlock as V, createCommentVNode as b, Fragment as S, renderList as T, nextTick as X } from "vue";
2
+ import { a as Z, O as ee, aS as ne, i as B, aT as oe, L as N, K as te, F as ie } from "./app-DmpPc6HP.js";
3
+ import { u as le } from "./use-inventory-binding-dialog-D0RpVsqZ.js";
4
+ import { _ as re, c as se, d as de } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-wvRtPslo.js";
5
5
  import { useI18n as ae } from "@feedmepos/mf-common";
6
6
  const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-16" }, ce = { class: "flex items-center" }, pe = { class: "flex-1 fm-typo-en-title-sm-600" }, ye = { class: "flex flex-col" }, fe = { class: "flex py-8 px-12 border-b border-fm-color-neutral-gray-200 bg-fm-color-neutral-gray-100 h-[44px] items-center" }, ve = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, _e = {
7
7
  class: "flex items-center w-full border-b border-fm-color-neutral-gray-100",
@@ -18,7 +18,7 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
18
18
  }, Ae = { class: "flex-1 fm-typo-en-body-md-400 py-8 px-12" }, Re = { class: "line-clamp-1" }, Se = { class: "w-[150px]" }, Te = {
19
19
  key: 0,
20
20
  class: "w-[52px]"
21
- }, Ne = { class: "flex flex-col px-12 pb-4" }, ze = /* @__PURE__ */ H({
21
+ }, Ne = { class: "flex flex-col px-12 pb-4" }, ze = /* @__PURE__ */ J({
22
22
  __name: "InventoryBindingForm",
23
23
  props: {
24
24
  id: {},
@@ -56,7 +56,7 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
56
56
  );
57
57
  }
58
58
  const E = _(() => r.modelValue.filter((e) => e.type === "SKU") ?? []);
59
- async function j() {
59
+ async function L() {
60
60
  if (r.iframeMode) {
61
61
  y("click:pick-inventory-bindings", "SKU");
62
62
  return;
@@ -68,7 +68,7 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
68
68
  r.id ? [r.id] : []
69
69
  );
70
70
  }
71
- function L(e, o, t) {
71
+ function j(e, o, t) {
72
72
  const s = +o;
73
73
  let d = t;
74
74
  o.length > 0 && isFinite(s) ? d = t.map((a) => (a.id !== e || (a.amount = te(s)), a)) : d = t.map((a) => (a.id !== e || (a.amount = { amount: 0, precision: 0 }), a)), y("update:modelValue", d);
@@ -85,10 +85,10 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
85
85
  throw new Error(`Cannot find ingredient: ${e.id}`);
86
86
  return (s = h.value.find((d) => d._id === e.id)) == null ? void 0 : s.unit;
87
87
  }
88
- function Y(e) {
88
+ function O(e) {
89
89
  return { amount: e.amount, measurement: e.measurement };
90
90
  }
91
- function J(e, o, t) {
91
+ function Y(e, o, t) {
92
92
  const s = t.map((d) => d.id !== e ? d : {
93
93
  ...d,
94
94
  amount: o.amount,
@@ -97,7 +97,7 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
97
97
  y("update:modelValue", s);
98
98
  }
99
99
  const R = Q({});
100
- function O(e) {
100
+ function W(e) {
101
101
  return R[e.id] ?? {
102
102
  modelValue: {
103
103
  amount: e.amount,
@@ -106,7 +106,7 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
106
106
  amountAsString: B(e.amount)
107
107
  };
108
108
  }
109
- function W(e, o) {
109
+ function q(e, o) {
110
110
  X(() => {
111
111
  R[e.id] = {
112
112
  modelValue: {
@@ -118,7 +118,7 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
118
118
  });
119
119
  }
120
120
  return (e, o) => {
121
- const t = x("FmFormGroup"), s = x("FmButton"), d = x("FmIcon"), a = x("FmTextField"), q = x("FmTooltip");
121
+ const t = x("FmFormGroup"), s = x("FmButton"), d = x("FmIcon"), a = x("FmTextField"), H = x("FmTooltip");
122
122
  return m(), f("div", ue, [
123
123
  c(t, {
124
124
  disabled: e.disabled,
@@ -177,7 +177,7 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
177
177
  class: "w-full",
178
178
  disabled: e.disabled,
179
179
  modelValue: +l(B)(i.amount ?? { amount: 1, precision: 0 }),
180
- "onUpdate:modelValue": (u) => L(i.id, u, e.modelValue),
180
+ "onUpdate:modelValue": (u) => j(i.id, u, e.modelValue),
181
181
  invalid: k
182
182
  }, null, 8, ["disabled", "modelValue", "onUpdate:modelValue", "invalid"])
183
183
  ]),
@@ -208,7 +208,7 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
208
208
  "border-color": "primary",
209
209
  label: l(p)("inventory.inventoryBindings.linkIngredient"),
210
210
  "prepend-icon": "link",
211
- onClick: j
211
+ onClick: L
212
212
  }, null, 8, ["label"]))
213
213
  ]),
214
214
  n("div", Ie, [
@@ -226,7 +226,7 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
226
226
  n("div", Ce, [
227
227
  n("div", Ae, [
228
228
  n("span", Re, v((g = h.value.find((u) => u._id === i.id)) == null ? void 0 : g.name), 1),
229
- U.value.length ? (m(), V(q, {
229
+ U.value.length ? (m(), V(H, {
230
230
  key: 0,
231
231
  variant: "plain",
232
232
  placement: "bottom",
@@ -246,9 +246,9 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
246
246
  ]),
247
247
  n("div", Se, [
248
248
  c(re, {
249
- "model-value": Y(i),
250
- "onUpdate:modelValue": (u) => J(i.id, u, e.modelValue),
251
- "onUpdate:amount": (u) => W(i, u),
249
+ "model-value": O(i),
250
+ "onUpdate:modelValue": (u) => Y(i.id, u, e.modelValue),
251
+ "onUpdate:amount": (u) => q(i, u),
252
252
  unit: A(i),
253
253
  placement: k === E.value.length - 1 ? "top" : "bottom",
254
254
  "convert-amount-on-change-unit": "",
@@ -271,7 +271,7 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
271
271
  rules: [l(N)(0)]
272
272
  }, null, 8, ["modelValue", "rules"]),
273
273
  c(t, {
274
- modelValue: O(i),
274
+ modelValue: W(i),
275
275
  rules: [
276
276
  l(se)(),
277
277
  l(de)(A(i))
@@ -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-CUTIQqG_.js";
4
+ import { F as r } from "./app-DmpPc6HP.js";
5
5
  const w = /* @__PURE__ */ l({
6
6
  __name: "InventoryBindingSummary",
7
7
  props: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as y, computed as V, ref as w, watch as h, resolveComponent as u, openBlock as F, createBlock as A, withCtx as s, createVNode as g, createElementVNode as k, normalizeClass as K } from "vue";
2
- import { J as d } from "./app-CUTIQqG_.js";
2
+ import { K as d } from "./app-DmpPc6HP.js";
3
3
  const _ = ["value", "disabled"], D = /* @__PURE__ */ y({
4
4
  __name: "NumberPrecisionInput",
5
5
  props: {
@@ -1,4 +1,4 @@
1
- import { aw as d, ax as f, X as _, u as h } from "./app-CUTIQqG_.js";
1
+ import { aw as d, ax as f, X as _, u as h } from "./app-DmpPc6HP.js";
2
2
  import { useCoreStore as F } from "@feedmepos/mf-common";
3
3
  import { ref as y, defineComponent as v, resolveComponent as p, openBlock as k, createElementBlock as g, renderSlot as x, createVNode as l, withCtx as S } 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, aM as ae, z as se, _ as le, ae as H } from "./app-CUTIQqG_.js";
2
+ import { u as oe, a as ne, aM as ae, z as se, _ as le, ae as H } from "./app-DmpPc6HP.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-CxuQa0ds.js";
4
+ import { u as ce } from "./vue-i18n-Dt--gl9w.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 l, 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 { aq as y, ad as R } from "./app-CUTIQqG_.js";
3
+ import { aq as y, ad as R } from "./app-DmpPc6HP.js";
4
4
  const C = { class: "purchase-box" }, A = { valign: "bottom" }, N = { class: "text-right" }, P = { class: "header" }, D = { class: "sub-header" }, E = { class: "caption" }, O = { class: "address" }, S = { class: "text-right" }, q = { class: "sub-header" }, T = { class: "address" }, F = { class: "purchase-body" }, L = { class: "text-left" }, U = { class: "text-left" }, V = { class: "text-right" }, z = { style: { "padding-top": "30px" } }, B = { valign: "bottom" }, H = { class: "header" }, I = { class: "caption" }, M = {
5
5
  class: "text-left",
6
6
  style: { width: "20%" }
@@ -1,18 +1,18 @@
1
1
  import { reactive as yt, onMounted as Be, watch as fe, computed as q, h as j, defineComponent as le, openBlock as k, createElementBlock as T, Fragment as ae, renderList as Ce, createElementVNode as l, toDisplayString as A, unref as t, resolveComponent as I, createVNode as d, withCtx as V, createCommentVNode as B, ref as E, createBlock as Q, normalizeClass as K, normalizeStyle as bt, createTextVNode as Fe, nextTick as $t, mergeProps as Ke, isRef as ke, createSlots as Dt, Teleport as It, normalizeProps as Tt, guardReactiveProps as Vt } from "vue";
2
- import { W as Qe, b as ze, $ as gt, l as Re, i as xe, a1 as Xe, J as Pt, an as Rt, A as Ne, M as At, m as _t, a8 as Ze, E as de, ao as Et, a as Le, ap as qt, aq as Ut, ar as Mt, G as ht, u as We, as as Ot, at as Nt, a0 as Bt, T as zt, au as Lt, C as kt, d as Pe, w as Ht, x as jt, y as Yt, av as Oe, a2 as ct, z as Kt, _ as Qt, B as Xt, L as mt } from "./app-CUTIQqG_.js";
3
- import { u as Ge, a as Zt, P as Ye, b as Wt, _ as Gt, g as Jt } from "./TransferDetails.vue_vue_type_script_setup_true_lang-B3ew6mc5.js";
4
- import { _ as xt, u as es, i as ts, e as ss } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-CEMRfo1C.js";
2
+ import { H as Qe, b as ze, $ as gt, l as Re, i as xe, a1 as Xe, K as Pt, an as Rt, A as Ne, M as At, m as _t, a8 as Ze, E as de, ao as Et, a as Le, ap as qt, aq as Ut, ar as Mt, G as ht, u as Ge, as as Ot, at as Nt, a0 as Bt, V as zt, au as Lt, C as kt, d as Pe, w as Ht, x as jt, y as Yt, av as Oe, a2 as ct, z as Kt, _ as Qt, B as Xt, N as mt } from "./app-DmpPc6HP.js";
3
+ import { u as We, a as Zt, P as Ye, b as Gt, _ as Wt, g as Jt } from "./TransferDetails.vue_vue_type_script_setup_true_lang-9saG4V9_.js";
4
+ import { _ as xt, u as es, i as ts, e as ss } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-CLkcV3TQ.js";
5
5
  import { u as os } from "./useTabStorage-BkIVScW_.js";
6
6
  import { useDialog as Ct, useBreakpoints as Je, components as pe, FmButtonVariant as as, useSnackbar as $e, useProxiedModel as St } from "@feedmepos/ui-library";
7
- import { P as te, u as wt } from "./format-unit-display-CqqBiewI.js";
8
- import { _ as ls, F as ns, a as rs, b as is } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-R8f-Q9Nk.js";
9
- import { u as et } from "./feature-D5GLIW5h.js";
10
- import { c as ye, u as us, _ as ds } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DvCBsPdI.js";
7
+ import { P as te, u as wt } from "./format-unit-display-y8ZPuai0.js";
8
+ import { _ as ls, F as ns, a as rs, b as is } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-wvRtPslo.js";
9
+ import { u as et } from "./feature-B_qG9zNF.js";
10
+ import { c as ye, u as us, _ as ds } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DVfj4MgV.js";
11
11
  import { useI18n as ce } from "@feedmepos/mf-common";
12
12
  import { defineStore as cs } from "pinia";
13
- import { u as tt } from "./supplier-C877x7mU.js";
13
+ import { u as tt } from "./supplier-B58dle3W.js";
14
14
  import { _ as ms } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
15
- import { u as ps } from "./vue-i18n-CxuQa0ds.js";
15
+ import { u as ps } from "./vue-i18n-Dt--gl9w.js";
16
16
  import "./array-hChJVZLE.js";
17
17
  cs("inventoryMultiSelectDialog", () => {
18
18
  const v = Ct(), { t: _ } = ce();
@@ -751,7 +751,7 @@ const As = {
751
751
  }
752
752
  });
753
753
  function Xs() {
754
- const v = $e(), _ = Ge(), r = E(!1);
754
+ const v = $e(), _ = We(), r = E(!1);
755
755
  fe(r, (u) => {
756
756
  u && (g.value = !0, i().finally(() => {
757
757
  g.value = !1;
@@ -795,7 +795,7 @@ function Xs() {
795
795
  comparePriceBySku: e
796
796
  };
797
797
  }
798
- const Zs = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Ws = { key: 0 }, Gs = ["colspan"], Js = /* @__PURE__ */ le({
798
+ const Zs = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Gs = { key: 0 }, Ws = ["colspan"], Js = /* @__PURE__ */ le({
799
799
  __name: "TransferItemTable",
800
800
  props: {
801
801
  templateItem: {},
@@ -837,14 +837,14 @@ const Zs = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Ws = { key: 0 }
837
837
  ], 6);
838
838
  }), 128))
839
839
  ], 2),
840
- r.showComparePrice && Object.keys(r.comparePriceBySku[(g = r.row.original.sku) == null ? void 0 : g._id] ?? {}).length > 0 ? (k(), T("tr", Ws, [
840
+ r.showComparePrice && Object.keys(r.comparePriceBySku[(g = r.row.original.sku) == null ? void 0 : g._id] ?? {}).length > 0 ? (k(), T("tr", Gs, [
841
841
  l("td", {
842
842
  colspan: r.row.getVisibleCells().length
843
843
  }, [
844
844
  d(Ft, {
845
845
  prices: r.comparePriceBySku[(e = r.row.original.sku) == null ? void 0 : e._id]
846
846
  }, null, 8, ["prices"])
847
- ], 8, Gs)
847
+ ], 8, Ws)
848
848
  ])) : B("", !0)
849
849
  ], 64);
850
850
  };
@@ -986,7 +986,7 @@ const Zs = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Ws = { key: 0 }
986
986
  },
987
987
  emits: ["validation-success", "form:ready"],
988
988
  setup(v, { expose: _, emit: r }) {
989
- const i = v, g = r, e = ht(), { t: u } = ce(), x = We(), S = Le(), n = ze(), s = tt(), a = et(), m = wt(), { breakpoints: c } = Je(), p = q(() => c.value.xs || c.value.sm), F = yt({
989
+ const i = v, g = r, e = ht(), { t: u } = ce(), x = Ge(), S = Le(), n = ze(), s = tt(), a = et(), m = wt(), { breakpoints: c } = Je(), p = q(() => c.value.xs || c.value.sm), F = yt({
990
990
  value: !1
991
991
  }), h = E(!1), $ = q(
992
992
  () => {
@@ -1120,31 +1120,31 @@ const Zs = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Ws = { key: 0 }
1120
1120
  function Ee() {
1121
1121
  var ve, De, Ue, Me, Ie;
1122
1122
  const o = (Ue = (De = (ve = $.value) == null ? void 0 : ve.purchaseOrder) == null ? void 0 : De.items) == null ? void 0 : Ue.groupBy((N) => N.sku._id), f = n.isEnabled ? n.getAvailableItems((Ie = (Me = e.netSuite) == null ? void 0 : Me.subsidiary) == null ? void 0 : Ie.id) : [], M = o != null && o.size ? S.skus.filter((N) => o.has(N._id)) : S.skus, ne = n.isEnabled ? M.filter((N) => {
1123
- var ee, G, oe, ue;
1124
- const W = (G = (ee = $.value) == null ? void 0 : ee.purchaseOrder) == null ? void 0 : G.items.find(
1123
+ var ee, W, oe, ue;
1124
+ const G = (W = (ee = $.value) == null ? void 0 : ee.purchaseOrder) == null ? void 0 : W.items.find(
1125
1125
  (me) => me.sku._id === N._id
1126
1126
  );
1127
- if (W != null && W.measurement != null) {
1127
+ if (G != null && G.measurement != null) {
1128
1128
  const me = n.getAvailableMeasurements(
1129
- W.sku._id,
1129
+ G.sku._id,
1130
1130
  (ue = (oe = e.netSuite) == null ? void 0 : oe.subsidiary) == null ? void 0 : ue.id
1131
1131
  );
1132
- return f.includes(W.sku._id) && me.includes(W.measurement.id);
1132
+ return f.includes(G.sku._id) && me.includes(G.measurement.id);
1133
1133
  }
1134
1134
  return f.includes(N._id);
1135
1135
  }).map((N) => N._id) : M.map((N) => N._id), re = M.map(
1136
1136
  (N) => {
1137
- var W, ee, G, oe;
1137
+ var G, ee, W, oe;
1138
1138
  return {
1139
- label: ((ee = (W = o == null ? void 0 : o.get(N._id)) == null ? void 0 : W[0]) == null ? void 0 : ee.name) ?? N.name,
1140
- sublabel: ((oe = (G = o == null ? void 0 : o.get(N._id)) == null ? void 0 : G[0]) == null ? void 0 : oe.code) ?? N.code,
1139
+ label: ((ee = (G = o == null ? void 0 : o.get(N._id)) == null ? void 0 : G[0]) == null ? void 0 : ee.name) ?? N.name,
1140
+ sublabel: ((oe = (W = o == null ? void 0 : o.get(N._id)) == null ? void 0 : W[0]) == null ? void 0 : oe.code) ?? N.code,
1141
1141
  value: N,
1142
1142
  disabled: !ne.includes(N._id)
1143
1143
  };
1144
1144
  }
1145
1145
  ), _e = re.filter((N) => {
1146
- var W;
1147
- return (W = e.items) == null ? void 0 : W.find((ee) => ee.sku._id === N.value._id);
1146
+ var G;
1147
+ return (G = e.items) == null ? void 0 : G.find((ee) => ee.sku._id === N.value._id);
1148
1148
  }).map((N) => N.value);
1149
1149
  z.open({
1150
1150
  title: u("inventory.transfer.form.items.selectItem"),
@@ -1165,17 +1165,17 @@ const Zs = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Ws = { key: 0 }
1165
1165
  variant: "tertiary"
1166
1166
  }
1167
1167
  }).onPrimary((N) => {
1168
- const W = e.items ?? [], ee = N.map((G) => {
1168
+ const G = e.items ?? [], ee = N.map((W) => {
1169
1169
  var me, Te;
1170
- const oe = W.find((he) => he.sku._id === G._id);
1170
+ const oe = G.find((he) => he.sku._id === W._id);
1171
1171
  if (oe)
1172
1172
  return oe;
1173
1173
  const ue = ((Te = (me = $.value) == null ? void 0 : me.purchaseOrder.items) == null ? void 0 : Te.find(
1174
- (he) => he.sku._id === G._id
1174
+ (he) => he.sku._id === W._id
1175
1175
  )) ?? {
1176
- sku: G,
1177
- code: G.code,
1178
- name: G.name,
1176
+ sku: W,
1177
+ code: W.code,
1178
+ name: W.name,
1179
1179
  quantity: {
1180
1180
  amount: 1,
1181
1181
  precision: 0
@@ -1190,7 +1190,7 @@ const Zs = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Ws = { key: 0 }
1190
1190
  }
1191
1191
  )), ue;
1192
1192
  });
1193
- ee.sort((G, oe) => G.sku.code.localeCompare(oe.sku.code)), e.items = ee;
1193
+ ee.sort((W, oe) => W.sku.code.localeCompare(oe.sku.code)), e.items = ee;
1194
1194
  });
1195
1195
  }
1196
1196
  function He(o) {
@@ -1211,7 +1211,7 @@ const Zs = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Ws = { key: 0 }
1211
1211
  });
1212
1212
  return (o, f) => {
1213
1213
  var me, Te;
1214
- const M = I("FmChip"), ne = I("FmLabel"), re = I("FmIcon"), _e = I("FmField"), ve = I("FmTooltip"), De = I("FmSelect"), Ue = I("FmTextField"), Me = I("FmTextarea"), Ie = I("FmSwitch"), N = I("FmDatePicker"), W = I("FmTimePicker"), ee = I("FmFormGroup"), G = I("FmButton"), oe = I("FmTable"), ue = I("FmForm");
1214
+ const M = I("FmChip"), ne = I("FmLabel"), re = I("FmIcon"), _e = I("FmField"), ve = I("FmTooltip"), De = I("FmSelect"), Ue = I("FmTextField"), Me = I("FmTextarea"), Ie = I("FmSwitch"), N = I("FmDatePicker"), G = I("FmTimePicker"), ee = I("FmFormGroup"), W = I("FmButton"), oe = I("FmTable"), ue = I("FmForm");
1215
1215
  return k(), T("div", lo, [
1216
1216
  l("div", no, [
1217
1217
  (me = i.modelValue) != null && me.template ? (k(), Q(M, {
@@ -1429,7 +1429,7 @@ const Zs = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Ws = { key: 0 }
1429
1429
  }, null, 8, ["modelValue"])
1430
1430
  ]),
1431
1431
  l("div", _o, [
1432
- d(W, {
1432
+ d(G, {
1433
1433
  modelValue: t(C),
1434
1434
  "onUpdate:modelValue": f[7] || (f[7] = (D) => ke(C) ? C.value = D : null)
1435
1435
  }, null, 8, ["modelValue"])
@@ -1469,7 +1469,7 @@ const Zs = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Ws = { key: 0 }
1469
1469
  }, [
1470
1470
  l("div", Co, A(t(u)("inventory.transfer.form.items.title")), 1),
1471
1471
  l("div", So, [
1472
- d(G, {
1472
+ d(W, {
1473
1473
  disabled: o.disabled,
1474
1474
  label: t(u)("inventory.transfer.form.items.addItem"),
1475
1475
  "prepend-icon": "add",
@@ -1580,7 +1580,7 @@ const Zs = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Ws = { key: 0 }
1580
1580
  emits: ["update:show", "submitted"],
1581
1581
  setup(v, { expose: _, emit: r }) {
1582
1582
  var X;
1583
- const i = v, g = r, e = Ge(), u = wt(), x = $e(), S = tt(), n = Le(), s = We(), { t: a } = ce(), m = E(!1), c = E(!1), p = E(!1);
1583
+ const i = v, g = r, e = We(), u = wt(), x = $e(), S = tt(), n = Le(), s = Ge(), { t: a } = ce(), m = E(!1), c = E(!1), p = E(!1);
1584
1584
  async function F(b) {
1585
1585
  if (b) {
1586
1586
  c.value = !1;
@@ -1959,7 +1959,7 @@ const Ro = exports.FfCalculator, Ao = { class: "flex flex-col flex-1" }, Eo = {
1959
1959
  }), Ko = { class: "flex flex-col gap-24" }, Qo = {
1960
1960
  key: 0,
1961
1961
  class: "flex items-center gap-8"
1962
- }, Xo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Zo = { class: "flex flex-col gap-8" }, Wo = { class: "line-clamp-2 text-ellipsis break-all" }, Go = {
1962
+ }, Xo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Zo = { class: "flex flex-col gap-8" }, Go = { class: "line-clamp-2 text-ellipsis break-all" }, Wo = {
1963
1963
  key: 2,
1964
1964
  class: "shrink-0"
1965
1965
  }, Jo = {
@@ -2168,9 +2168,9 @@ const Ro = exports.FfCalculator, Ao = { class: "flex flex-col flex-1" }, Eo = {
2168
2168
  }
2169
2169
  ])
2170
2170
  }, [
2171
- l("div", Wo, A(r.value.name), 1)
2171
+ l("div", Go, A(r.value.name), 1)
2172
2172
  ], 2),
2173
- g.value ? B("", !0) : (k(), T("div", Go, [
2173
+ g.value ? B("", !0) : (k(), T("div", Wo, [
2174
2174
  d(L, {
2175
2175
  label: t(h)("inventory.ingredient.import.replaceFile"),
2176
2176
  variant: p.value ? "destructive" : "secondary",
@@ -2221,7 +2221,7 @@ const Ro = exports.FfCalculator, Ao = { class: "flex flex-col flex-1" }, Eo = {
2221
2221
  },
2222
2222
  emits: ["update:show", "submitted"],
2223
2223
  setup(v, { expose: _, emit: r }) {
2224
- const i = r, e = St(v, "show"), u = $e(), x = Ge(), S = E(!1), n = E(), s = E();
2224
+ const i = r, e = St(v, "show"), u = $e(), x = We(), S = E(!1), n = E(), s = E();
2225
2225
  _({
2226
2226
  validateInputs: () => {
2227
2227
  var c, p;
@@ -2368,10 +2368,10 @@ const Ro = exports.FfCalculator, Ao = { class: "flex flex-col flex-1" }, Eo = {
2368
2368
  const S = E(u()), n = Zt(
2369
2369
  Ye.RECEIVE_REQUEST,
2370
2370
  S.value
2371
- ), { columnDefs: s } = Wt(
2371
+ ), { columnDefs: s } = Gt(
2372
2372
  Ye.RECEIVE_REQUEST,
2373
2373
  n
2374
- ), a = We();
2374
+ ), a = Ge();
2375
2375
  async function m() {
2376
2376
  const P = `inventory-record_${mt(S.value.startDate).format("DD-MM-YYYY_HH-mm")}-${mt(S.value.endDate).format("DD-MM-YYYY_HH-mm")}.xlsx`, R = n.purchaseOrders.value.flatMap(
2377
2377
  (O) => O.items.map((U) => {
@@ -2553,7 +2553,7 @@ const Ro = exports.FfCalculator, Ao = { class: "flex flex-col flex-1" }, Eo = {
2553
2553
  d(To, Ke(t(n).transferDialogProps.value, {
2554
2554
  onSubmitted: t(n).fetchData
2555
2555
  }), null, 16, ["onSubmitted"]),
2556
- d(Gt, Ke({
2556
+ d(Wt, Ke({
2557
2557
  scope: t(Ye).RECEIVE_REQUEST
2558
2558
  }, t(n).transferDetailsProps.value, {
2559
2559
  onSubmitted: t(n).fetchData
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as Ge, ref as pe, onMounted as ll, resolveComponent as z, openBlock as T, createElementBlock as ue, Fragment as Ie, createElementVNode as B, toDisplayString as kn, createVNode as S, createCommentVNode as je, mergeModels as el, useModel as by, unref as ne, createBlock as de, computed as Ze, watch as Jn, renderList as $t, withCtx as Ae, renderSlot as ky, mergeProps as xy, normalizeClass as cl, isRef as tl, normalizeStyle as wy, Teleport as Ay, normalizeProps as Cy, guardReactiveProps as $y } from "vue";
2
- import { a as qt, d as ut, e as yu, S as Vy, f as Oy, D as nl, h as Ra, i as Sa, F as rl, G as jy, l as dl, A as fl, U as Ry, p as al, q as Sy, s as Ey, r as Iy, u as Zy, z as Fy, _ as Ty, B as Ny, C as Py, E as il } from "./app-CUTIQqG_.js";
2
+ import { a as qt, d as ut, e as yu, S as Vy, f as Oy, D as nl, h as Ra, i as Sa, F as rl, G as jy, l as dl, A as fl, U as Ry, p as al, q as Sy, s as Ey, r as Iy, u as Zy, z as Fy, _ as Ty, B as Ny, C as Py, E as il } from "./app-DmpPc6HP.js";
3
3
  import { useDialog as pl, useSnackbar as hl, useBreakpoints as ml, useDialogChild as Uy, useProxiedModel as ul } from "@feedmepos/ui-library";
4
4
  import { i as My, _ as Dy } from "./is-linked-ingredient-error-fJ2TJb3z.js";
5
- import { _ as vl } from "./IngredientBindedItem.vue_vue_type_script_setup_true_lang-BOyqgaik.js";
5
+ import { _ as vl } from "./IngredientBindedItem.vue_vue_type_script_setup_true_lang-DRygALNq.js";
6
6
  import { defineStore as Ly, storeToRefs as By } from "pinia";
7
7
  import { useI18n as Da } from "@feedmepos/mf-common";
8
- import { _ as yl } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-DsM2bCNe.js";
8
+ import { _ as yl } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-Bzfh5vhC.js";
9
9
  import { _ as zy } from "./FmCustomAttribute.vue_vue_type_script_setup_true_lang-D-IWRjRD.js";
10
10
  const Wy = {
11
11
  key: 0,
@@ -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 X, renderList as le, unref as r, h as _e, watch as be, isRef as Ie, createCommentVNode as ne, reactive as at, onMounted as Ge, normalizeStyle as Je, createTextVNode as ce, Teleport as rt, normalizeProps as we, mergeProps as $e } from "vue";
2
- import { u as pe, L as lt, e as Te, f as it, a as Ue, F as Le, N as ut, O as Be, i as de, H as ct, t as xe, K as De, A as dt, M as mt, J as fe, P as pt, Q as te, T as vt, V as Ne, l as ft, W as yt, X as _t, Y as kt, Z as Qe, $ as q, a0 as ht, r as Xe, a1 as ke, a2 as gt, a3 as bt, n as Ae, k as ze, o as xt, a4 as St, a5 as Ft, a6 as wt, a7 as $t, a8 as At, z as Ct, _ as Vt, B as Mt, C as Bt, E as Ye } from "./app-CUTIQqG_.js";
3
- import { u as Pe, a as He } from "./stock-CO0XWh8j.js";
4
- import { g as Se } from "./decimal-Bb7Chjpr.js";
5
- import { e as Dt, u as Ze, i as et, _ as Ke } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-CEMRfo1C.js";
2
+ import { u as pe, N as lt, e as Te, f as it, a as Ue, F as Le, O as ut, P as Be, i as de, J as ct, t as xe, L as De, A as dt, M as mt, K as fe, Q as pt, T as te, V as vt, W as Ne, l as ft, H as yt, X as _t, Y as kt, Z as Qe, $ as q, a0 as ht, r as Xe, a1 as ke, a2 as gt, a3 as bt, n as Ae, k as ze, o as xt, a4 as St, a5 as Ft, a6 as wt, a7 as $t, a8 as At, z as Ct, _ as Vt, B as Mt, C as Bt, E as Ye } from "./app-DmpPc6HP.js";
3
+ import { u as Pe, a as He } from "./stock-C05OFvav.js";
4
+ import { g as Se } from "./decimal-BdCdQEd5.js";
5
+ import { e as Dt, u as Ze, i as et, _ as Ke } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-CLkcV3TQ.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 Ee, 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-BuRe6QNp.js";
12
- import { _ as Ht } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-C-lgLo2e.js";
11
+ import { u as Pt } from "./use-inventory-binding-dialog-D0RpVsqZ.js";
12
+ import { _ as Ht } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Cq1W66FY.js";
13
13
  import { E as Et } from "./empty-placeholder-wf6-BWE8.js";
14
14
  import "./array-hChJVZLE.js";
15
- import { u as Rt } from "./feature-D5GLIW5h.js";
15
+ import { u as Rt } from "./feature-B_qG9zNF.js";
16
16
  var he = /* @__PURE__ */ ((f) => (f.History = "History", f.Convert = "Convert", f.Adjust = "Adjust", f))(he || {});
17
17
  const Ot = [
18
18
  {
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as Q, mergeModels as Bd, computed as I, useModel as Gd, resolveComponent as T, openBlock as S, createElementBlock as F, createElementVNode as g, createVNode as N, withCtx as k, toDisplayString as w, unref as u, Fragment as q, renderList as ee, ref as D, createBlock as j, createCommentVNode as K, isRef as Je, normalizeClass as J, createTextVNode as Hd, watch as Id, createSlots as jd, normalizeStyle as Kd, Teleport as Wd } from "vue";
2
- import { u as re } from "./supplier-C877x7mU.js";
3
- import { b as Ie, f as Yd, D as Qe, h as ie, e as _e, a as Fd, n as ed, o as dd, j as Xd, W as Zd, v as Od, u as pe, l as G, d as V, q as wd, r as zd, s as Ad, w as qd, x as Jd, y as Qd, z as et, _ as dt, B as tt, C as rt, E as le } from "./app-CUTIQqG_.js";
2
+ import { u as re } from "./supplier-B58dle3W.js";
3
+ import { b as Ie, f as Yd, D as Qe, h as ie, e as _e, a as Fd, n as ed, o as dd, j as Xd, H as Zd, v as Od, u as pe, l as G, d as V, q as wd, r as zd, s as Ad, w as qd, x as Jd, y as Qd, z as et, _ as dt, B as tt, C as rt, E as le } from "./app-DmpPc6HP.js";
4
4
  import { useI18n as X, useCoreStore as Fe } from "@feedmepos/mf-common";
5
5
  import { useDialog as Oe, useSnackbar as me, useProxiedModel as td, useDialogChild as nt, useBreakpoints as ot } from "@feedmepos/ui-library";
6
6
  import { _ as at } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
7
- import { _ as $t } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-R8f-Q9Nk.js";
8
- import { u as Td } from "./feature-D5GLIW5h.js";
7
+ import { _ as $t } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-wvRtPslo.js";
8
+ import { u as Td } from "./feature-B_qG9zNF.js";
9
9
  import { defineStore as it } from "pinia";
10
10
  function lt(e, d) {
11
11
  const { t } = X(), r = Ie();