@feedmepos/mf-inventory-portal 0.0.22-dev.30 → 0.0.22-dev.31

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 (32) hide show
  1. package/dist/{ApprovalView-BowcCo8d.js → ApprovalView-DURCoP6_.js} +4 -4
  2. package/dist/{BindingsDialog-CmmLVQTN.js → BindingsDialog-Cgf5MuLY.js} +1 -1
  3. package/dist/{BindingsPicker-BErHbcxb.js → BindingsPicker-DvcjRma9.js} +1 -1
  4. package/dist/{BindingsTable-hrfbN6tX.js → BindingsTable-BPrs04hn.js} +1 -1
  5. package/dist/{ClosingTemplateView-BVefCGpC.js → ClosingTemplateView-DU_OX_KS.js} +5 -5
  6. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CXHh_Bti.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BNhYJdT-.js} +1 -1
  7. package/dist/{IngredientsView-BqnUckSv.js → IngredientsView-BGB-So1n.js} +3 -3
  8. package/dist/{IntegrationView-BEdAKS1I.js → IntegrationView-tOw9GGXr.js} +2 -2
  9. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-pr7Sb7Om.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CWz2vOzD.js} +1 -1
  10. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-DsYwNO5N.js → PremiumBadge.vue_vue_type_script_setup_true_lang-Qqp3wJ2n.js} +1 -1
  11. package/dist/{PurchaseOrderPrintPreview-DzaS_c8R.js → PurchaseOrderPrintPreview-PnIeMMrq.js} +1 -1
  12. package/dist/{ReceiveRequestView-CU-bhIjl.js → ReceiveRequestView-WjoI68r_.js} +6 -6
  13. package/dist/{RecipeView-CmETsz5e.js → RecipeView-B2KynG4H.js} +3 -3
  14. package/dist/{StockView-BgmjwPbh.js → StockView-DsutlmVn.js} +6 -6
  15. package/dist/{SupplierView-CDm5q1th.js → SupplierView-BuyFY-tF.js} +3 -3
  16. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-BZJyhJu4.js → TransferDetails.vue_vue_type_script_setup_true_lang-BoGGbhJi.js} +4 -4
  17. package/dist/{TransferDialog.vue_vue_type_script_setup_true_lang-lybenWiw.js → TransferDialog.vue_vue_type_script_setup_true_lang-8yMFTCo1.js} +81 -81
  18. package/dist/{TransferTemplateView-CSQ2XxFU.js → TransferTemplateView-BSn-HKWr.js} +8 -8
  19. package/dist/{UnitView-D7bcDkOX.js → UnitView-Bx-dS9Nv.js} +4 -4
  20. package/dist/{WarehouseView-BJAKVdRs.js → WarehouseView-DpMvmi_A.js} +2 -2
  21. package/dist/{app-A8ykBdGf.js → app-B6CTWYqZ.js} +169 -169
  22. package/dist/app.js +1 -1
  23. package/dist/{decimal-BC4EGBAX.js → decimal-DDNJiEl8.js} +1 -1
  24. package/dist/{defineDeepModel-Ckfkwau_.js → defineDeepModel-CjoZrLbV.js} +1 -1
  25. package/dist/{format-time-from-id-o1plVFRH.js → format-time-from-id-CNRJtPZY.js} +1 -1
  26. package/dist/{id-to-date-DyPIToei.js → id-to-date-DJcRYNGy.js} +1 -1
  27. package/dist/{purchase-order-transaction-type-skN4AmEj.js → purchase-order-transaction-type-Cew6w60I.js} +3 -3
  28. package/dist/{supplier-DV3Tg4TT.js → supplier-bvsRMnxk.js} +1 -1
  29. package/dist/{use-template-enabled-locations-2-u_kejm-N.js → use-template-enabled-locations-2-DSlNJ-VP.js} +1 -1
  30. package/dist/{xlsx-CrHTSBmd.js → xlsx-CnMhXCRI.js} +1 -1
  31. package/dist/{xlsx.util-hjzkZFnf.js → xlsx.util-CV-IkG_3.js} +2 -2
  32. package/package.json +3 -3
@@ -1,13 +1,13 @@
1
- import { reactive as lt, onMounted as je, computed as I, h as L, defineComponent as oe, openBlock as w, createElementBlock as V, Fragment as se, renderList as Ie, createElementVNode as d, toDisplayString as R, unref as t, resolveComponent as T, createVNode as b, withCtx as D, createCommentVNode as N, ref as j, createBlock as H, watch as Re, normalizeClass as z, normalizeStyle as Qe, mergeModels as nt, useModel as at, mergeProps as rt, isRef as ye } from "vue";
1
+ import { reactive as lt, onMounted as je, computed as I, h as N, defineComponent as oe, openBlock as w, createElementBlock as V, Fragment as se, renderList as Ie, createElementVNode as d, toDisplayString as R, unref as t, resolveComponent as T, createVNode as b, withCtx as D, createCommentVNode as H, ref as j, createBlock as q, watch as Re, normalizeClass as z, normalizeStyle as Qe, mergeModels as nt, useModel as at, mergeProps as rt, isRef as ye } from "vue";
2
2
  import { useBreakpoints as We, components as fe, FmButtonVariant as it, useSnackbar as Me, useDialog as ut, useProxiedModel as dt } from "@feedmepos/ui-library";
3
3
  import { F as ke } from "./row-action.enum-PMKMRrZR.js";
4
- import { P as O, d as Ye, c as ct } from "./purchase-order-transaction-type-skN4AmEj.js";
5
- import { a as Z, t as pt, ab as Oe, E as mt, b as Ze, R as He, a5 as ft, a7 as yt, s as vt, a8 as qe, a6 as bt, H as Ke, m as gt, A as Te, M as ht, ac as Je, P as Be, Q as Xe, ad as _t, j as Ue, ae as kt, u as Ee, af as Ct, ag as xt, ah as wt, ai as De, G as St, aj as Ft, ak as Pt, z as It } from "./app-A8ykBdGf.js";
6
- import { _ as Ge, u as Tt } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-DsYwNO5N.js";
4
+ import { P as O, d as Ye, c as ct } from "./purchase-order-transaction-type-Cew6w60I.js";
5
+ import { a as Z, t as pt, ab as Oe, E as mt, b as Ze, R as He, a5 as ft, a7 as yt, s as vt, a8 as qe, a6 as bt, H as Ke, m as gt, A as Te, M as ht, ac as Je, P as Be, Q as Xe, ad as _t, j as Ue, ae as kt, u as Ee, af as Ct, ag as xt, ah as wt, ai as De, G as St, aj as Ft, ak as Pt, z as It } from "./app-B6CTWYqZ.js";
6
+ import { _ as Ge, u as Tt } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-Qqp3wJ2n.js";
7
7
  import { useI18n as ge } from "@feedmepos/mf-common";
8
8
  import "vue-router";
9
- import { u as $e } from "./supplier-DV3Tg4TT.js";
10
- import { d as Vt } from "./defineDeepModel-Ckfkwau_.js";
9
+ import { u as $e } from "./supplier-bvsRMnxk.js";
10
+ import { d as Vt } from "./defineDeepModel-CjoZrLbV.js";
11
11
  import { F as ve, _ as $t } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
12
12
  import { _ as At } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
13
13
  function de(i, p, o, n) {
@@ -29,7 +29,7 @@ function de(i, p, o, n) {
29
29
  var E = /* @__PURE__ */ ((i) => (i.Code = "Code", i.Name = "Name", i.Amount = "Amount", i.Cost = "Cost", i.Delete = "Delete", i))(E || {});
30
30
  const Dt = () => {
31
31
  const { t: i } = ge();
32
- return L(
32
+ return N(
33
33
  Ge,
34
34
  {
35
35
  zIndex: 50,
@@ -62,7 +62,7 @@ function Ot(i) {
62
62
  size: 96,
63
63
  cell(c) {
64
64
  const l = c.row.original;
65
- return L(fe.FmTextField, {
65
+ return N(fe.FmTextField, {
66
66
  modelValue: l.code,
67
67
  "onUpdate:modelValue": (r) => {
68
68
  i.updateItem({
@@ -83,7 +83,7 @@ function Ot(i) {
83
83
  minSize: 300,
84
84
  cell(c) {
85
85
  const l = c.row.original;
86
- return L(fe.FmTextField, {
86
+ return N(fe.FmTextField, {
87
87
  modelValue: l.name,
88
88
  "onUpdate:modelValue": (r) => {
89
89
  i.updateItem({
@@ -107,7 +107,7 @@ function Ot(i) {
107
107
  const l = c.row.original, r = (F = (_ = (v = i.template) == null ? void 0 : v.purchaseOrder) == null ? void 0 : _.items) == null ? void 0 : F.find(
108
108
  (y) => y.sku._id === l.sku._id
109
109
  );
110
- return L(ft, {
110
+ return N(ft, {
111
111
  style: {
112
112
  flex: "1 1 0%"
113
113
  },
@@ -158,7 +158,7 @@ function Ot(i) {
158
158
  size: 180,
159
159
  cell(c) {
160
160
  const l = c.row.original, r = e(l.sku), v = n.value.xs || n.value.sm;
161
- return !o[l.sku._id] && r ? L(
161
+ return !o[l.sku._id] && r ? N(
162
162
  "div",
163
163
  {
164
164
  class: [
@@ -168,7 +168,7 @@ function Ot(i) {
168
168
  key: l.sku._id
169
169
  },
170
170
  [
171
- L(fe.FmButton, {
171
+ N(fe.FmButton, {
172
172
  prependIcon: "edit",
173
173
  variant: it.Tertiary,
174
174
  disabled: i.disabled,
@@ -181,13 +181,13 @@ function Ot(i) {
181
181
  }), o[l.sku._id] = !0;
182
182
  }
183
183
  }),
184
- L(
184
+ N(
185
185
  "div",
186
186
  {
187
187
  class: "flex flex-col"
188
188
  },
189
189
  [
190
- L(
190
+ N(
191
191
  "span",
192
192
  v ? Ke(
193
193
  de(l.sku, l.quantity, l.measurement, {
@@ -199,7 +199,7 @@ function Ot(i) {
199
199
  })
200
200
  )
201
201
  ),
202
- L(
202
+ N(
203
203
  "span",
204
204
  {
205
205
  class: [
@@ -212,7 +212,7 @@ function Ot(i) {
212
212
  ]
213
213
  )
214
214
  ]
215
- ) : L(
215
+ ) : N(
216
216
  fe.FmTextField,
217
217
  {
218
218
  modelValue: Z(l.totalCost ?? { amount: 0, precision: 0 }),
@@ -230,7 +230,7 @@ function Ot(i) {
230
230
  },
231
231
  {
232
232
  prepend() {
233
- return v ? L(
233
+ return v ? N(
234
234
  "div",
235
235
  {
236
236
  class: [
@@ -242,7 +242,7 @@ function Ot(i) {
242
242
  ) : null;
243
243
  },
244
244
  append() {
245
- return r ? L(fe.FmButton, {
245
+ return r ? N(fe.FmButton, {
246
246
  prependIcon: "close",
247
247
  variant: "tertiary",
248
248
  disabled: i.disabled,
@@ -268,7 +268,7 @@ function Ot(i) {
268
268
  header: "",
269
269
  cell(c) {
270
270
  const l = c.row.original;
271
- return L(fe.FmButton, {
271
+ return N(fe.FmButton, {
272
272
  key: l.sku._id,
273
273
  class: "delete-button",
274
274
  type: "button",
@@ -353,7 +353,7 @@ const Rt = { class: "flex flex-col gap-8 px-16 xs:px-4 sm:px-4 py-4 items-center
353
353
  setup(i) {
354
354
  const { t: p } = ge();
355
355
  return (o, n) => {
356
- var s, m, c, l, r, v, _, F, y, f, S, C, B, P, $, U, X, le, G, K, Q, h, k, M, ne, W, ae;
356
+ var s, m, c, l, r, v, _, F, y, f, S, C, B, P, A, U, X, le, G, K, Q, h, k, M, ne, W, ae;
357
357
  const a = T("FmLabel"), e = T("FmSpacer");
358
358
  return w(), V("div", Lt, [
359
359
  d("div", Nt, [
@@ -385,7 +385,7 @@ const Rt = { class: "flex flex-col gap-8 px-16 xs:px-4 sm:px-4 py-4 items-center
385
385
  }, null, 8, ["label"]),
386
386
  b(t(ve), {
387
387
  render: (B = (C = (S = o.cellByColId[t(E).Name]) == null ? void 0 : S.column) == null ? void 0 : C.columnDef) == null ? void 0 : B.cell,
388
- props: ($ = (P = o.cellByColId[t(E).Name]) == null ? void 0 : P.getContext) == null ? void 0 : $.call(P)
388
+ props: (A = (P = o.cellByColId[t(E).Name]) == null ? void 0 : P.getContext) == null ? void 0 : A.call(P)
389
389
  }, null, 8, ["render", "props"]),
390
390
  n[1] || (n[1] = d("div", { class: "fm-typo-en-body-md-600 text-fm-color-primary" }, null, -1))
391
391
  ])
@@ -415,14 +415,14 @@ const Rt = { class: "flex flex-col gap-8 px-16 xs:px-4 sm:px-4 py-4 items-center
415
415
  props: (ne = (M = o.cellByColId[t(E).Cost]) == null ? void 0 : M.getContext) == null ? void 0 : ne.call(M)
416
416
  }, null, 8, ["render", "props"]),
417
417
  n[3] || (n[3] = d("div", { class: "fm-typo-en-body-md-600 text-fm-color-primary" }, null, -1))
418
- ])) : N("", !0)
418
+ ])) : H("", !0)
419
419
  ]),
420
420
  o.showComparePrice && Object.keys(o.comparePriceBySku[(W = o.row.original.sku) == null ? void 0 : W._id] ?? {}).length > 0 ? (w(), V(se, { key: 0 }, [
421
421
  b(e, { class: "h-8" }),
422
422
  b(et, {
423
423
  prices: o.comparePriceBySku[(ae = o.row.original.sku) == null ? void 0 : ae._id]
424
424
  }, null, 8, ["prices"])
425
- ], 64)) : N("", !0)
425
+ ], 64)) : H("", !0)
426
426
  ]);
427
427
  };
428
428
  }
@@ -474,10 +474,10 @@ function Xt(i, p, o = !1, n = !1) {
474
474
  set(y) {
475
475
  const f = i() ?? {};
476
476
  if (s.value === O.PURCHASE) {
477
- const $ = (n ? a.suppliers : a.businessSuppliers).find((U) => U._id === y);
477
+ const A = (n ? a.suppliers : a.businessSuppliers).find((U) => U._id === y);
478
478
  p({
479
479
  ...f,
480
- supplier: $ ? Ce($) : f.supplier
480
+ supplier: A ? Ce(A) : f.supplier
481
481
  });
482
482
  return;
483
483
  }
@@ -515,7 +515,7 @@ function Xt(i, p, o = !1, n = !1) {
515
515
  var C, B;
516
516
  const y = (B = (C = i()) == null ? void 0 : C.supplier) == null ? void 0 : B._id;
517
517
  if (s.value === O.PURCHASE) {
518
- const P = a.suppliers.find(($) => $._id === y);
518
+ const P = a.suppliers.find((A) => A._id === y);
519
519
  return P ? Ce(P) : null;
520
520
  }
521
521
  const S = e.locations.find((P) => P.doc._id);
@@ -651,7 +651,7 @@ const es = {
651
651
  }
652
652
  return (r, v) => {
653
653
  const _ = T("FmButton"), F = T("FmIcon"), y = T("FmStepperField"), f = T("FmPopover");
654
- return w(), H(f, {
654
+ return w(), q(f, {
655
655
  disabled: r.disabled,
656
656
  class: "flex",
657
657
  "show-popover": n.value,
@@ -828,7 +828,7 @@ const vs = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, bs = { key: 0 }
828
828
  prices: o.comparePriceBySku[(e = o.row.original.sku) == null ? void 0 : e._id]
829
829
  }, null, 8, ["prices"])
830
830
  ], 8, gs)
831
- ])) : N("", !0)
831
+ ])) : H("", !0)
832
832
  ], 64);
833
833
  };
834
834
  }
@@ -939,18 +939,18 @@ const _s = { class: "sticky top-0 bg-white mb-8" }, ks = { class: "overflow-y-au
939
939
  placeholder: "Filter options"
940
940
  }, {
941
941
  append: D(() => [
942
- o.value ? (w(), H(m, {
942
+ o.value ? (w(), q(m, {
943
943
  key: 0,
944
944
  variant: "tertiary",
945
945
  "prepend-icon": "close",
946
946
  onClick: s[0] || (s[0] = (r) => o.value = "")
947
- })) : N("", !0)
947
+ })) : H("", !0)
948
948
  ]),
949
949
  _: 1
950
950
  }, 8, ["modelValue"])
951
951
  ]),
952
952
  d("div", ks, [
953
- (w(!0), V(se, null, Ie(a.value, (r, v) => (w(), H(l, {
953
+ (w(!0), V(se, null, Ie(a.value, (r, v) => (w(), q(l, {
954
954
  key: v,
955
955
  label: r.label,
956
956
  sublabel: r.sublabel,
@@ -961,7 +961,7 @@ const _s = { class: "sticky top-0 bg-white mb-8" }, ks = { class: "overflow-y-au
961
961
  return t(De)(e.modelValue, r.value) && ((F = _.el) == null || F.scrollIntoView({ behavior: "smooth" }), console.log("scrollTo", _.el)), void 0;
962
962
  }
963
963
  }, null, 8, ["label", "sublabel", "model-value", "onClick", "onVnodeMounted"]))), 128)),
964
- a.value.length ? N("", !0) : (w(), H(l, {
964
+ a.value.length ? H("", !0) : (w(), q(l, {
965
965
  key: 0,
966
966
  disabled: "",
967
967
  label: "No options available"
@@ -1005,12 +1005,12 @@ const _s = { class: "sticky top-0 bg-white mb-8" }, ks = { class: "overflow-y-au
1005
1005
  if (!e.template) return;
1006
1006
  if (await _.loadTemplate(e.template), !e.items.length) {
1007
1007
  e.items = ((u = f.value) == null ? void 0 : u.purchaseOrder.items) ?? [];
1008
- const q = l.currentLocationSubsidiary();
1008
+ const L = l.currentLocationSubsidiary();
1009
1009
  e.netSuite = {
1010
1010
  ...e.netSuite,
1011
1011
  subsidiary: {
1012
- id: q.id,
1013
- name: q.name
1012
+ id: L.id,
1013
+ name: L.name
1014
1014
  }
1015
1015
  };
1016
1016
  const re = l.getAvailableItems((g = e.netSuite) == null ? void 0 : g.subsidiary.id), ee = e.items.map((Y) => Y.sku._id).filter((Y) => re.includes(Y));
@@ -1033,14 +1033,14 @@ const _s = { class: "sticky top-0 bg-white mb-8" }, ks = { class: "overflow-y-au
1033
1033
  },
1034
1034
  !0,
1035
1035
  !0
1036
- ), $ = I({
1036
+ ), A = I({
1037
1037
  get() {
1038
1038
  var u;
1039
1039
  return typeof ((u = e == null ? void 0 : e.supplier) == null ? void 0 : u.internal) == "string" ? O.TRANSFER : O.PURCHASE;
1040
1040
  },
1041
1041
  set(u) {
1042
- var q;
1043
- const g = typeof ((q = e == null ? void 0 : e.supplier) == null ? void 0 : q.internal) == "string" ? O.TRANSFER : O.PURCHASE;
1042
+ var L;
1043
+ const g = typeof ((L = e == null ? void 0 : e.supplier) == null ? void 0 : L.internal) == "string" ? O.TRANSFER : O.PURCHASE;
1044
1044
  u !== g && (e.supplier = u === O.PURCHASE ? P.locationOptionsTypePurchase.value[0] : P.locationOptionsTypeTransfer.value[0]);
1045
1045
  }
1046
1046
  }), U = I(() => P.transferLocationOptions.value), X = I({
@@ -1093,7 +1093,7 @@ const _s = { class: "sticky top-0 bg-white mb-8" }, ks = { class: "overflow-y-au
1093
1093
  return e.items;
1094
1094
  },
1095
1095
  get transferType() {
1096
- return $.value;
1096
+ return A.value;
1097
1097
  },
1098
1098
  get template() {
1099
1099
  return f.value;
@@ -1104,17 +1104,17 @@ const _s = { class: "sticky top-0 bg-white mb-8" }, ks = { class: "overflow-y-au
1104
1104
  }), st = I(() => tt.columnDefs.value);
1105
1105
  function ot() {
1106
1106
  var xe, we, he, Se;
1107
- const u = new Set((he = (we = (xe = f.value) == null ? void 0 : xe.purchaseOrder) == null ? void 0 : we.items) == null ? void 0 : he.map((A) => A.sku._id)), g = l.getAvailableItems((Se = e.netSuite) == null ? void 0 : Se.subsidiary.id), q = u.size ? c.skus.filter((A) => u.has(A._id)) : c.skus, re = l.isEnabled ? q.map((A) => A._id).filter((A) => g.includes(A)) : [], ee = q.map(
1108
- (A) => ({
1109
- label: A.name,
1110
- sublabel: A.code,
1111
- value: A,
1112
- disabled: !re.includes(A._id)
1107
+ const u = new Set((he = (we = (xe = f.value) == null ? void 0 : xe.purchaseOrder) == null ? void 0 : we.items) == null ? void 0 : he.map(($) => $.sku._id)), g = l.getAvailableItems((Se = e.netSuite) == null ? void 0 : Se.subsidiary.id), L = u.size ? c.skus.filter(($) => u.has($._id)) : c.skus, re = l.isEnabled ? L.map(($) => $._id).filter(($) => g.includes($)) : L.map(($) => $._id), ee = L.map(
1108
+ ($) => ({
1109
+ label: $.name,
1110
+ sublabel: $.code,
1111
+ value: $,
1112
+ disabled: !re.includes($._id)
1113
1113
  })
1114
- ), Y = ee.filter((A) => {
1114
+ ), Y = ee.filter(($) => {
1115
1115
  var ie;
1116
- return (ie = e.items) == null ? void 0 : ie.find((ce) => ce.sku._id === A.value._id);
1117
- }).map((A) => A.value);
1116
+ return (ie = e.items) == null ? void 0 : ie.find((ce) => ce.sku._id === $.value._id);
1117
+ }).map(($) => $.value);
1118
1118
  B.open({
1119
1119
  title: s("inventory.transfer.form.items.selectItem"),
1120
1120
  closeButton: !0,
@@ -1133,8 +1133,8 @@ const _s = { class: "sticky top-0 bg-white mb-8" }, ks = { class: "overflow-y-au
1133
1133
  close: !0,
1134
1134
  variant: "tertiary"
1135
1135
  }
1136
- }).onPrimary((A) => {
1137
- const ie = e.items ?? [], ce = A.map((J) => {
1136
+ }).onPrimary(($) => {
1137
+ const ie = e.items ?? [], ce = $.map((J) => {
1138
1138
  var Fe, _e;
1139
1139
  const pe = ie.find((me) => me.sku._id === J._id);
1140
1140
  if (pe)
@@ -1150,7 +1150,7 @@ const _s = { class: "sticky top-0 bg-white mb-8" }, ks = { class: "overflow-y-au
1150
1150
  precision: 0
1151
1151
  }
1152
1152
  };
1153
- return $.value == O.PURCHASE && (ue.totalCost = de(
1153
+ return A.value == O.PURCHASE && (ue.totalCost = de(
1154
1154
  ue.sku,
1155
1155
  ue.quantity,
1156
1156
  ue.measurement,
@@ -1167,27 +1167,27 @@ const _s = { class: "sticky top-0 bg-white mb-8" }, ks = { class: "overflow-y-au
1167
1167
  }
1168
1168
  return (u, g) => {
1169
1169
  var _e, me;
1170
- const q = T("FmChip"), re = T("FmLabel"), ee = T("FmField"), Y = T("FmSelect"), xe = T("FmTextField"), we = T("FmTextarea"), he = T("FmSwitch"), Se = T("FmDatePicker"), A = T("FmTimePicker"), ie = T("FmFormGroup"), ce = T("FmIcon"), J = T("FmButton"), pe = T("FmTooltip"), ue = T("FmTable"), Fe = T("FmForm");
1170
+ const L = T("FmChip"), re = T("FmLabel"), ee = T("FmField"), Y = T("FmSelect"), xe = T("FmTextField"), we = T("FmTextarea"), he = T("FmSwitch"), Se = T("FmDatePicker"), $ = T("FmTimePicker"), ie = T("FmFormGroup"), ce = T("FmIcon"), J = T("FmButton"), pe = T("FmTooltip"), ue = T("FmTable"), Fe = T("FmForm");
1171
1171
  return w(), V("div", xs, [
1172
1172
  d("div", ws, [
1173
- (_e = n.modelValue) != null && _e.template ? (w(), H(q, {
1173
+ (_e = n.modelValue) != null && _e.template ? (w(), q(L, {
1174
1174
  key: 0,
1175
1175
  variant: u.disabled ? "warning" : void 0,
1176
1176
  label: `${t(s)("inventory.transfer.template.title")}: ${((me = f.value) == null ? void 0 : me.name) ?? t(s)("inventory.transfer.form.loading")}`,
1177
1177
  icon: "summarize",
1178
1178
  compact: ""
1179
- }, null, 8, ["variant", "label"])) : N("", !0),
1180
- b(q, {
1179
+ }, null, 8, ["variant", "label"])) : H("", !0),
1180
+ b(L, {
1181
1181
  label: t(m).currentLocation.name,
1182
1182
  icon: "storefront",
1183
1183
  compact: ""
1184
1184
  }, null, 8, ["label"]),
1185
- u.lastClosingDate ? (w(), H(q, {
1185
+ u.lastClosingDate ? (w(), q(L, {
1186
1186
  key: 1,
1187
1187
  label: `${t(s)("inventory.transfer.form.lastClosing")}: ${t(Be)(u.lastClosingDate)} ${t(St)(u.lastClosingDate)}`,
1188
1188
  icon: "calendar_month",
1189
1189
  compact: ""
1190
- }, null, 8, ["label"])) : N("", !0)
1190
+ }, null, 8, ["label"])) : H("", !0)
1191
1191
  ]),
1192
1192
  b(Fe, {
1193
1193
  ref_key: "formRef",
@@ -1212,7 +1212,7 @@ const _s = { class: "sticky top-0 bg-white mb-8" }, ks = { class: "overflow-y-au
1212
1212
  default: D(() => [
1213
1213
  d("span", {
1214
1214
  class: z({ "text-fm-color-typo-disabled": u.disabled })
1215
- }, R(t(s)(`inventory.transfer.form.type.${$.value.toLocaleLowerCase("en-us")}`)), 3)
1215
+ }, R(t(s)(`inventory.transfer.form.type.${A.value.toLocaleLowerCase("en-us")}`)), 3)
1216
1216
  ]),
1217
1217
  _: 1
1218
1218
  }),
@@ -1226,7 +1226,7 @@ const _s = { class: "sticky top-0 bg-white mb-8" }, ks = { class: "overflow-y-au
1226
1226
  ]),
1227
1227
  d("div", Ts, [
1228
1228
  b(re, {
1229
- label: $.value === t(O).PURCHASE ? t(s)("inventory.transfer.form.purchaseFrom") : t(s)("inventory.transfer.form.transferFrom")
1229
+ label: A.value === t(O).PURCHASE ? t(s)("inventory.transfer.form.purchaseFrom") : t(s)("inventory.transfer.form.transferFrom")
1230
1230
  }, null, 8, ["label"]),
1231
1231
  d("div", Vs, [
1232
1232
  b(ee, null, {
@@ -1251,8 +1251,8 @@ const _s = { class: "sticky top-0 bg-white mb-8" }, ks = { class: "overflow-y-au
1251
1251
  ], 64)) : (w(), V(se, { key: 1 }, [
1252
1252
  b(Y, {
1253
1253
  label: t(s)("inventory.transfer.form.type.title"),
1254
- "model-value": $.value,
1255
- "onUpdate:modelValue": g[0] || (g[0] = (x) => $.value = x),
1254
+ "model-value": A.value,
1255
+ "onUpdate:modelValue": g[0] || (g[0] = (x) => A.value = x),
1256
1256
  items: [
1257
1257
  {
1258
1258
  label: t(s)("inventory.transfer.form.type.purchase"),
@@ -1270,7 +1270,7 @@ const _s = { class: "sticky top-0 bg-white mb-8" }, ks = { class: "overflow-y-au
1270
1270
  rules: [t(Te)(1)(U.value)]
1271
1271
  }, null, 8, ["label", "model-value", "items", "rules"]),
1272
1272
  b(Y, {
1273
- label: $.value === t(O).PURCHASE ? t(s)("inventory.transfer.form.purchaseFrom") : t(s)("inventory.transfer.form.transferFrom"),
1273
+ label: A.value === t(O).PURCHASE ? t(s)("inventory.transfer.form.purchaseFrom") : t(s)("inventory.transfer.form.transferFrom"),
1274
1274
  modelValue: X.value,
1275
1275
  "onUpdate:modelValue": g[1] || (g[1] = (x) => X.value = x),
1276
1276
  items: U.value
@@ -1324,7 +1324,7 @@ const _s = { class: "sticky top-0 bg-white mb-8" }, ks = { class: "overflow-y-au
1324
1324
  ])
1325
1325
  }, " This field is based on selected location. ", 2)
1326
1326
  ])
1327
- ])) : N("", !0),
1327
+ ])) : H("", !0),
1328
1328
  t(v).enableBackdatePo ? (w(), V("div", Ds, [
1329
1329
  d("div", {
1330
1330
  class: z([
@@ -1353,19 +1353,19 @@ const _s = { class: "sticky top-0 bg-white mb-8" }, ks = { class: "overflow-y-au
1353
1353
  }, null, 8, ["modelValue"])
1354
1354
  ]),
1355
1355
  d("div", Ms, [
1356
- b(A, {
1356
+ b($, {
1357
1357
  modelValue: t(k),
1358
1358
  "onUpdate:modelValue": g[6] || (g[6] = (x) => ye(k) ? k.value = x : null)
1359
1359
  }, null, 8, ["modelValue"])
1360
1360
  ])
1361
- ])) : N("", !0)
1361
+ ])) : H("", !0)
1362
1362
  ], 2),
1363
- t(K) ? (w(), H(ie, {
1363
+ t(K) ? (w(), q(ie, {
1364
1364
  key: 0,
1365
1365
  modelValue: t(K),
1366
1366
  "onUpdate:modelValue": g[7] || (g[7] = (x) => ye(K) ? K.value = x : null),
1367
1367
  rules: [t(Ft)(new Date(u.lastClosingDate), /* @__PURE__ */ new Date())]
1368
- }, null, 8, ["modelValue", "rules"])) : N("", !0),
1368
+ }, null, 8, ["modelValue", "rules"])) : H("", !0),
1369
1369
  C.value && !u.lastClosingDate ? (w(), V("div", Bs, [
1370
1370
  b(ce, {
1371
1371
  name: "error",
@@ -1373,8 +1373,8 @@ const _s = { class: "sticky top-0 bg-white mb-8" }, ks = { class: "overflow-y-au
1373
1373
  class: "text-fm-color-typo-warning"
1374
1374
  }),
1375
1375
  d("span", Us, R(t(s)("inventory.transfer.form.backdate.error")), 1)
1376
- ])) : N("", !0)
1377
- ])) : N("", !0)
1376
+ ])) : H("", !0)
1377
+ ])) : H("", !0)
1378
1378
  ])
1379
1379
  ]),
1380
1380
  d("div", Es, [
@@ -1404,7 +1404,7 @@ const _s = { class: "sticky top-0 bg-white mb-8" }, ks = { class: "overflow-y-au
1404
1404
  onClick: g[8] || (g[8] = (x) => ot()),
1405
1405
  size: "md"
1406
1406
  }, null, 8, ["disabled", "label"]),
1407
- t(e).template ? (w(), H(pe, {
1407
+ t(e).template ? (w(), q(pe, {
1408
1408
  key: 0,
1409
1409
  "z-index": 50
1410
1410
  }, {
@@ -1418,14 +1418,14 @@ const _s = { class: "sticky top-0 bg-white mb-8" }, ks = { class: "overflow-y-au
1418
1418
  })
1419
1419
  ]),
1420
1420
  _: 1
1421
- })) : (w(), H(ze, {
1421
+ })) : (w(), q(ze, {
1422
1422
  key: 1,
1423
1423
  "onUpdate:poItems": g[10] || (g[10] = (x) => t(e).items = x),
1424
1424
  disabled: u.disabled || !!t(e).template
1425
1425
  }, null, 8, ["disabled"]))
1426
1426
  ])
1427
1427
  ], 2),
1428
- $.value === t(O).PURCHASE && S.value && t(v).enableTotalCost && ((Le = u.modelValue) != null && Le.items.length) ? (w(), V("div", Hs, [
1428
+ A.value === t(O).PURCHASE && S.value && t(v).enableTotalCost && ((Le = u.modelValue) != null && Le.items.length) ? (w(), V("div", Hs, [
1429
1429
  b(he, {
1430
1430
  label: t(ne) ? t(s)("inventory.transfer.form.items.fetchingData") : t(s)("inventory.transfer.form.items.comparePriceHistory"),
1431
1431
  "prepend-icon": "compare_arrows",
@@ -1434,8 +1434,8 @@ const _s = { class: "sticky top-0 bg-white mb-8" }, ks = { class: "overflow-y-au
1434
1434
  "onUpdate:modelValue": g[11] || (g[11] = (x) => ye(M) ? M.value = x : null),
1435
1435
  disabled: t(ne) || u.disabled
1436
1436
  }, null, 8, ["label", "model-value", "disabled"])
1437
- ])) : N("", !0),
1438
- (w(), H(ue, {
1437
+ ])) : H("", !0),
1438
+ (w(), q(ue, {
1439
1439
  "column-defs": st.value,
1440
1440
  "row-data": t(e).items,
1441
1441
  key: t(e).items.map((x) => x.sku._id).join("."),
@@ -1445,19 +1445,19 @@ const _s = { class: "sticky top-0 bg-white mb-8" }, ks = { class: "overflow-y-au
1445
1445
  "table-row": D((x) => [
1446
1446
  b(hs, {
1447
1447
  "compare-price-by-sku": t(W),
1448
- "show-compare-price": $.value === t(O).PURCHASE && t(M),
1448
+ "show-compare-price": A.value === t(O).PURCHASE && t(M),
1449
1449
  row: x
1450
1450
  }, null, 8, ["compare-price-by-sku", "show-compare-price", "row"])
1451
1451
  ]),
1452
1452
  "list-row": D((x) => [
1453
- (w(), H($t, {
1453
+ (w(), q($t, {
1454
1454
  row: x,
1455
1455
  key: t(e).items.map((te) => te.sku._id).join(".")
1456
1456
  }, {
1457
1457
  default: D((te) => [
1458
1458
  b(Jt, {
1459
1459
  "compare-price-by-sku": t(W),
1460
- "show-compare-price": $.value === t(O).PURCHASE && t(M),
1460
+ "show-compare-price": A.value === t(O).PURCHASE && t(M),
1461
1461
  row: x,
1462
1462
  "cell-by-col-id": te
1463
1463
  }, null, 8, ["compare-price-by-sku", "show-compare-price", "row", "cell-by-col-id"])
@@ -1544,7 +1544,7 @@ const _s = { class: "sticky top-0 bg-white mb-8" }, ks = { class: "overflow-y-au
1544
1544
  h && (F.value = !1, C.value = n.modelValue ?? f(), B.value = ((k = n.modelValue) == null ? void 0 : k._id) ?? `${Math.random()}`);
1545
1545
  }
1546
1546
  );
1547
- const P = I(() => !_.value || !F.value), $ = I(() => {
1547
+ const P = I(() => !_.value || !F.value), A = I(() => {
1548
1548
  switch (n.mode) {
1549
1549
  case ke.READ:
1550
1550
  return "View transfer";
@@ -1621,7 +1621,7 @@ const _s = { class: "sticky top-0 bg-white mb-8" }, ks = { class: "overflow-y-au
1621
1621
  }
1622
1622
  return (h, k) => {
1623
1623
  const M = T("FmButton"), ne = T("FmSideSheet");
1624
- return w(), H(ne, {
1624
+ return w(), q(ne, {
1625
1625
  modelValue: t(S),
1626
1626
  "onUpdate:modelValue": k[3] || (k[3] = (W) => ye(S) ? S.value = W : null),
1627
1627
  "dismiss-away": "",
@@ -1630,11 +1630,11 @@ const _s = { class: "sticky top-0 bg-white mb-8" }, ks = { class: "overflow-y-au
1630
1630
  }, {
1631
1631
  "side-sheet-header": D(() => [
1632
1632
  d("div", zs, [
1633
- d("div", js, R($.value), 1)
1633
+ d("div", js, R(A.value), 1)
1634
1634
  ])
1635
1635
  ]),
1636
1636
  default: D(() => [
1637
- (w(), H(qs, {
1637
+ (w(), q(qs, {
1638
1638
  class: "w-full",
1639
1639
  ref_key: "formRef",
1640
1640
  ref: U,
@@ -1,18 +1,18 @@
1
1
  import { defineComponent as J, onMounted as ce, computed as A, ref as U, watch as pe, inject as je, resolveComponent as C, openBlock as D, createElementBlock as Q, createElementVNode as t, createVNode as p, withCtx as B, renderSlot as $e, withDirectives as Oe, normalizeClass as re, vModelText as Re, reactive as Qe, h as Z, toDisplayString as S, unref as e, createBlock as K, mergeProps as ue, isRef as Pe, createCommentVNode as ne, Fragment as Le, renderList as Ge, normalizeStyle as Ke, Teleport as We, normalizeProps as Ze, guardReactiveProps as Je } from "vue";
2
- import { u as Xe, _ as Ye, a as et } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CXHh_Bti.js";
2
+ import { u as Xe, _ as Ye, a as et } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BNhYJdT-.js";
3
3
  import { useI18n as X } from "@feedmepos/mf-common";
4
- import { P as N, a as tt, f as ot, b as Ve, c as nt } from "./purchase-order-transaction-type-skN4AmEj.js";
4
+ import { P as N, a as tt, f as ot, b as Ve, c as nt } from "./purchase-order-transaction-type-Cew6w60I.js";
5
5
  import { F as Y, R as Ie } from "./row-action.enum-PMKMRrZR.js";
6
- import { a1 as ie, t as De, I as st, a2 as lt, a3 as at, a as j, a4 as rt, E as Ae, R as de, u as Ee, a5 as it, a6 as ut, a7 as dt, s as ae, a8 as mt, m as ct, A as me, M as pt, b as Ue, j as Be, z as ft, l as yt, a9 as se, H as vt, aa as bt } from "./app-A8ykBdGf.js";
6
+ import { a1 as ie, t as De, I as st, a2 as lt, a3 as at, a as j, a4 as rt, E as Ae, R as de, u as Ee, a5 as it, a6 as ut, a7 as dt, s as ae, a8 as mt, m as ct, A as me, M as pt, b as Ue, j as Be, z as ft, l as yt, a9 as se, H as vt, aa as bt } from "./app-B6CTWYqZ.js";
7
7
  import { components as le, useDialog as _t, useSnackbar as xt, useProxiedModel as qe, useBreakpoints as ht } from "@feedmepos/ui-library";
8
8
  import { storeToRefs as gt } from "pinia";
9
9
  import { useRouter as Ft } from "vue-router";
10
- import { d as Ne } from "./defineDeepModel-Ckfkwau_.js";
11
- import { c as Tt, u as wt, a as kt, _ as Mt } from "./TransferDialog.vue_vue_type_script_setup_true_lang-lybenWiw.js";
12
- import { u as St } from "./supplier-DV3Tg4TT.js";
10
+ import { d as Ne } from "./defineDeepModel-CjoZrLbV.js";
11
+ import { c as Tt, u as wt, a as kt, _ as Mt } from "./TransferDialog.vue_vue_type_script_setup_true_lang-8yMFTCo1.js";
12
+ import { u as St } from "./supplier-bvsRMnxk.js";
13
13
  import { F as z, _ as ze } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
14
- import { u as Ct } from "./use-template-enabled-locations-2-u_kejm-N.js";
15
- import { f as $t } from "./format-time-from-id-o1plVFRH.js";
14
+ import { u as Ct } from "./use-template-enabled-locations-2-DSlNJ-VP.js";
15
+ import { f as $t } from "./format-time-from-id-CNRJtPZY.js";
16
16
  const Ot = { class: "flex flex-col" }, Rt = { class: "flex flex-col" }, Vt = { class: "flex-1" }, It = { class: "flex items-center" }, Dt = { class: "flex-1" }, At = { class: "flex-1" }, Pt = /* @__PURE__ */ J({
17
17
  __name: "FmMinMaxInput",
18
18
  props: {
@@ -1,14 +1,14 @@
1
1
  import { defineComponent as K, computed as _, openBlock as v, createElementBlock as w, createElementVNode as l, Fragment as q, renderList as H, toDisplayString as V, createCommentVNode as Y, ref as M, resolveComponent as I, createBlock as T, withCtx as R, createVNode as y, unref as a, isRef as Z, normalizeClass as ae, normalizeStyle as re, Teleport as ie, normalizeProps as ue, guardReactiveProps as de } from "vue";
2
- import { u as G, S as me, c as oe, R as j, A as ce, a as J, m as pe, n as fe, e as ee, j as ve } from "./app-A8ykBdGf.js";
2
+ import { u as G, S as me, c as oe, R as j, A as ce, a as J, m as pe, n as fe, e as ee, j as ve } from "./app-B6CTWYqZ.js";
3
3
  import { useDialog as ye, useSnackbar as le, useProxiedModel as te, useBreakpoints as be } from "@feedmepos/ui-library";
4
4
  import { i as ge, _ as xe } from "./is-linked-ingredient-error-fJ2TJb3z.js";
5
5
  import { F as U, D as ne, R as N } from "./row-action.enum-PMKMRrZR.js";
6
6
  import { defineStore as _e, storeToRefs as he } from "pinia";
7
7
  import { c as Ve, _ as Ue, F as we } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
8
8
  import { useI18n as O } from "@feedmepos/mf-common";
9
- import { u as Ce, _ as ke, a as Fe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CXHh_Bti.js";
10
- import { F as Se } from "./decimal-BC4EGBAX.js";
11
- import { _ as $e } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-pr7Sb7Om.js";
9
+ import { u as Ce, _ as ke, a as Fe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BNhYJdT-.js";
10
+ import { F as Se } from "./decimal-DDNJiEl8.js";
11
+ import { _ as $e } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CWz2vOzD.js";
12
12
  const Ee = { class: "flex flex-col gap-8" }, Ie = {
13
13
  key: 0,
14
14
  class: "flex flex-col"
@@ -1,9 +1,9 @@
1
1
  import { ref as W, defineComponent as j, watch as ee, onMounted as te, onUnmounted as Fe, openBlock as S, createElementBlock as z, toRaw as be, reactive as xe, createElementVNode as g, toDisplayString as U, unref as c, createVNode as V, resolveComponent as L, createSlots as $e, withCtx as N, createTextVNode as We, renderSlot as De, createBlock as I, createCommentVNode as Ae, computed as F, isRef as we, normalizeClass as Se, normalizeStyle as Re } from "vue";
2
- import { o as Pe, V as Te, W as Ue, c as G, X as ae, Y as le, Z as Ee, i as Le, R as E, j as Ne } from "./app-A8ykBdGf.js";
2
+ import { o as Pe, V as Te, W as Ue, c as G, X as ae, Y as le, Z as Ee, i as Le, R as E, j as Ne } from "./app-B6CTWYqZ.js";
3
3
  import { useCoreStore as Be, useI18n as q } from "@feedmepos/mf-common";
4
4
  import { D as Ve, R as Y, F as T } from "./row-action.enum-PMKMRrZR.js";
5
5
  import { c as qe, _ as ze, F as J } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
6
- import { u as Ie, _ as je, a as Oe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CXHh_Bti.js";
6
+ import { u as Ie, _ as je, a as Oe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BNhYJdT-.js";
7
7
  import { useDialogChild as Ge, useDialog as Me, useSnackbar as se, useProxiedModel as oe, useBreakpoints as Ke } from "@feedmepos/ui-library";
8
8
  const Q = Pe((m, h) => {
9
9
  const y = Be();