@feedmepos/mf-inventory-portal 0.0.24-dev.1 → 0.0.24-dev.3

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-D3sNH2MR.js → App-C8gm6x7Q.js} +1 -1
  2. package/dist/{ApprovalView-DHnRx0hJ.js → ApprovalView-xtUG5yeg.js} +2 -2
  3. package/dist/{BindingsDialog-oTeg2Dai.js → BindingsDialog-II1cNZ8y.js} +2 -2
  4. package/dist/{BindingsPicker-CWdjmMJ3.js → BindingsPicker-7hWtLm42.js} +1 -1
  5. package/dist/{BindingsTable-bKLR1OKX.js → BindingsTable-Bub-L-pM.js} +1 -1
  6. package/dist/{ClosingDraftView-CIQVz7lY.js → ClosingDraftView-C9VKku7E.js} +2 -2
  7. package/dist/{ClosingTemplateView-D5pLzQwU.js → ClosingTemplateView-cmdRLrA3.js} +1 -1
  8. package/dist/{FmCustomAttribute.vue_vue_type_script_setup_true_lang-ClLDcchC.js → FmCustomAttribute.vue_vue_type_script_setup_true_lang-Dk618cmq.js} +1 -1
  9. package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BSB7T16f.js +286 -0
  10. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-DhpHOaRH.js → FmUnitInput.vue_vue_type_script_setup_true_lang-BcQSDPWo.js} +1 -1
  11. package/dist/{IngredientGroupView-4C437mso.js → IngredientGroupView-YGl-cE0p.js} +1 -1
  12. package/dist/{IngredientsView-DoiGgjre.js → IngredientsView-XxrOFv-u.js} +3 -3
  13. package/dist/{IntegrationView-8ZKE7MAM.js → IntegrationView-Bq-m4-Wh.js} +1 -1
  14. package/dist/{InventoryBindingForm-CcnfliYQ.js → InventoryBindingForm-DFWSf75X.js} +1 -1
  15. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-B_J-6C9x.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-RQ6XxdxU.js} +3 -3
  16. package/dist/{InventoryBindingSummary-CRdHCzNE.js → InventoryBindingSummary-DU6GO2TJ.js} +1 -1
  17. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-B2-TypU0.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-ChpZ0NwL.js} +1 -1
  18. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BuQde75S.js → PremiumBadge.vue_vue_type_script_setup_true_lang-Ba2Uq1H-.js} +1 -1
  19. package/dist/{PublishView-t5gjGmK_.js → PublishView-CBIvo-Qj.js} +2 -2
  20. package/dist/{PurchaseOrderPrintPreview-6i53Y-v1.js → PurchaseOrderPrintPreview-cp_DzuxM.js} +1 -1
  21. package/dist/{ReceiveRequestView-uOeSh0Mr.js → ReceiveRequestView-UIaPylF0.js} +184 -174
  22. package/dist/{RecipeView-BTWywckD.js → RecipeView-voWc35VV.js} +3 -3
  23. package/dist/{StockView-DN2xk8ei.js → StockView-CoigRqM-.js} +7 -7
  24. package/dist/{SupplierView-l0XUg3J4.js → SupplierView-BDpCPZE7.js} +357 -354
  25. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-CWMn6fFf.js → TransferDetails.vue_vue_type_script_setup_true_lang-CyovzdZg.js} +3 -3
  26. package/dist/{TransferTemplateView-wDKXpCWZ.js → TransferTemplateView-C2XMghN_.js} +425 -404
  27. package/dist/{UnitView-CUI-k-tS.js → UnitView-BBPJ0vhB.js} +3 -3
  28. package/dist/{WarehouseView-WsI_eG5r.js → WarehouseView-Ck6hBrGf.js} +1 -1
  29. package/dist/{app-DntcWR3_.js → app-ojZQI-KQ.js} +89 -89
  30. package/dist/app.js +1 -1
  31. package/dist/{decimal-DTCTnMwO.js → decimal-xq82Pirk.js} +1 -1
  32. package/dist/{format-unit-display-Hy48Iw5j.js → format-unit-display-ByfsyWBU.js} +438 -437
  33. package/dist/{index-Bv9RYyTZ.js → index-Bi6FnWGy.js} +3 -3
  34. package/dist/{index-D4yJP9I2.js → index-CKEbjSig.js} +1 -1
  35. package/dist/{stock-BsdmfT-b.js → stock-CC4RqQaB.js} +1 -1
  36. package/dist/stores/feature.d.ts +1 -0
  37. package/dist/{supplier-CXhkgC4M.js → supplier-DLXOOcIm.js} +1 -1
  38. package/dist/tsconfig.app.tsbuildinfo +1 -1
  39. package/dist/{use-inventory-binding-dialog-DPMJmBCr.js → use-inventory-binding-dialog-B1zBTsW9.js} +1 -1
  40. package/dist/views/transfer-template/helpers/import-export.helper.d.ts +1 -1
  41. package/dist/{vue-i18n-ByVzHsI7.js → vue-i18n-AeCKtYb7.js} +2 -2
  42. package/package.json +3 -3
  43. package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-B_c6Vn6P.js +0 -282
@@ -1,16 +1,16 @@
1
- import { reactive as at, onMounted as Be, h as L, computed as q, defineComponent as pe, openBlock as S, createElementBlock as M, Fragment as ke, renderList as Ue, createElementVNode as o, toDisplayString as U, unref as e, resolveComponent as P, createVNode as d, withCtx as D, createCommentVNode as G, ref as N, createBlock as J, watch as ge, normalizeClass as ae, normalizeStyle as ot, createTextVNode as Ee, nextTick as ct, mergeProps as Oe, isRef as Se, Teleport as mt } from "vue";
2
- import { b as Ne, $ as pt, m as Ge, j as ye, P as ft, a1 as ze, L as vt, ao as yt, A as Re, M as bt, n as lt, c as Ae, a8 as Le, G as ie, ap as _t, a as He, aq as gt, ar as kt, as as ht, H as Ct, u as je, at as xt, a0 as St, V as wt, au as Ft, E as nt, J as Dt, e as De, av as Ve, a2 as Je, z as $t, _ as Tt, B as Pt, O as We } from "./app-DntcWR3_.js";
3
- import { u as rt, a as It, b as Vt, _ as Rt, g as At } from "./TransferDetails.vue_vue_type_script_setup_true_lang-CWMn6fFf.js";
4
- import { _ as it, u as qt, i as Mt, e as Ut } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-BuQde75S.js";
1
+ import { reactive as at, onMounted as Be, h as L, computed as q, defineComponent as pe, openBlock as S, createElementBlock as M, Fragment as ke, renderList as Ue, createElementVNode as o, toDisplayString as U, unref as e, resolveComponent as P, createVNode as d, withCtx as D, createCommentVNode as G, ref as N, createBlock as J, watch as _e, normalizeClass as W, normalizeStyle as ot, createTextVNode as Ee, nextTick as ct, mergeProps as Oe, isRef as Se, Teleport as mt } from "vue";
2
+ import { b as Ne, $ as pt, m as Ge, j as ye, P as ft, a1 as ze, L as vt, ao as yt, A as Re, M as bt, n as lt, c as Ae, a8 as Le, G as ie, ap as gt, a as He, aq as _t, ar as kt, as as ht, H as Ct, u as je, at as xt, a0 as St, V as wt, au as Ft, E as nt, J as Dt, e as De, av as Ve, a2 as Je, z as $t, _ as Tt, B as Pt, O as We } from "./app-ojZQI-KQ.js";
3
+ import { u as rt, a as It, b as Vt, _ as Rt, g as At } from "./TransferDetails.vue_vue_type_script_setup_true_lang-CyovzdZg.js";
4
+ import { _ as it, u as qt, i as Mt, e as Ut } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-Ba2Uq1H-.js";
5
5
  import { u as Et } from "./useTabStorage-BkIVScW_.js";
6
6
  import { useBreakpoints as Ye, components as ve, FmButtonVariant as Ot, useSnackbar as qe, useDialog as Bt, useProxiedModel as Nt } from "@feedmepos/ui-library";
7
- import { P as j, u as ut } from "./format-unit-display-Hy48Iw5j.js";
8
- import { _ as zt, F as Lt, a as Xe, b as Ht } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-DhpHOaRH.js";
9
- import { c as re, u as jt, _ as Yt } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-B_c6Vn6P.js";
7
+ import { P as j, u as ut } from "./format-unit-display-ByfsyWBU.js";
8
+ import { _ as zt, F as Lt, a as Xe, b as Ht } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-BcQSDPWo.js";
9
+ import { c as re, u as jt, _ as Yt } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BSB7T16f.js";
10
10
  import { useI18n as he } from "@feedmepos/mf-common";
11
- import { u as Ke } from "./supplier-CXhkgC4M.js";
11
+ import { u as Ke } from "./supplier-DLXOOcIm.js";
12
12
  import { _ as Kt } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
13
- import { u as Qt } from "./vue-i18n-ByVzHsI7.js";
13
+ import { u as Qt } from "./vue-i18n-AeCKtYb7.js";
14
14
  import "./array-hChJVZLE.js";
15
15
  var Y = /* @__PURE__ */ ((m) => (m.Code = "Code", m.Name = "Name", m.Amount = "Amount", m.Cost = "Cost", m.TotalCost = "TotalCost", m.Delete = "Delete", m))(Y || {});
16
16
  const et = () => {
@@ -37,10 +37,10 @@ function Zt(m) {
37
37
  }
38
38
  });
39
39
  function f(u) {
40
- var l, v, k, h, g, x, F;
41
- return !!(((v = (l = u.defaultCost) == null ? void 0 : l.costPerUnit) == null ? void 0 : v.amount) ?? ((F = (x = (g = (h = (k = m.supplier) == null ? void 0 : k.supplyItems) == null ? void 0 : h.find((V) => V.skuId === u._id)) == null ? void 0 : g.defaultCost) == null ? void 0 : x.costPerUnit) == null ? void 0 : F.amount));
40
+ var l, v, k, h, _, x, F;
41
+ return !!(((v = (l = u.defaultCost) == null ? void 0 : l.costPerUnit) == null ? void 0 : v.amount) ?? ((F = (x = (_ = (h = (k = m.supplier) == null ? void 0 : k.supplyItems) == null ? void 0 : h.find((V) => V.skuId === u._id)) == null ? void 0 : _.defaultCost) == null ? void 0 : x.costPerUnit) == null ? void 0 : F.amount));
42
42
  }
43
- const _ = [
43
+ const g = [
44
44
  {
45
45
  id: "Code",
46
46
  header: () => y("inventory.transfer.form.items.table.Code"),
@@ -121,7 +121,7 @@ function Zt(m) {
121
121
  cell(u) {
122
122
  var v, k, h;
123
123
  const a = u.row.original, l = (h = (k = (v = m.template) == null ? void 0 : v.purchaseOrder) == null ? void 0 : k.items) == null ? void 0 : h.find(
124
- (g) => g.sku._id === a.sku._id
124
+ (_) => _.sku._id === a.sku._id
125
125
  );
126
126
  return L(zt, {
127
127
  style: {
@@ -133,11 +133,11 @@ function Zt(m) {
133
133
  },
134
134
  key: a.sku._id,
135
135
  unit: a.sku.unit,
136
- "onUpdate:modelValue": (g) => {
136
+ "onUpdate:modelValue": (_) => {
137
137
  const x = {
138
138
  ...a,
139
- quantity: g.amount,
140
- measurement: g.measurement
139
+ quantity: _.amount,
140
+ measurement: _.measurement
141
141
  };
142
142
  b.enableTotalCost && (x.totalCost = re(a.sku, a.quantity, a.measurement, {
143
143
  supplier: m.supplier,
@@ -316,7 +316,7 @@ function Zt(m) {
316
316
  }
317
317
  ];
318
318
  return {
319
- columnDefs: q(() => b.enableTotalCost && (b.mustUseDefaultCost || m.transferType === j.PURCHASE) ? _ : _.filter(
319
+ columnDefs: q(() => b.enableTotalCost && (b.mustUseDefaultCost || m.transferType === j.PURCHASE) ? g : g.filter(
320
320
  (u) => u.id !== "Cost"
321
321
  /* Cost */
322
322
  ))
@@ -341,22 +341,22 @@ const Gt = { class: "flex flex-col gap-8 px-16 xs:px-4 sm:px-4 py-4 items-center
341
341
  }, [
342
342
  o("div", Jt, U((f = n(t)) == null ? void 0 : f.name), 1),
343
343
  o("div", Wt, [
344
- (S(!0), M(ke, null, Ue(i.prices[t].slice(0, 3), (_) => {
344
+ (S(!0), M(ke, null, Ue(i.prices[t].slice(0, 3), (g) => {
345
345
  var w;
346
346
  return S(), M("div", {
347
- key: _.date,
347
+ key: g.date,
348
348
  class: "flex flex-col w-[150px] xs:flex-1 text-ellipsis cursor-pointer"
349
349
  }, [
350
350
  o("div", Xt, [
351
- o("span", null, U(_.totalCost ? e(ze)(_.totalCost) : "No data"), 1),
351
+ o("span", null, U(g.totalCost ? e(ze)(g.totalCost) : "No data"), 1),
352
352
  b[0] || (b[0] = o("span", { class: "text-fm-color-typo-secondary" }, "/", -1)),
353
- o("span", null, U(e(ye)(_.totalUnit, !1)), 1),
354
- o("span", null, U(((w = _.measurement) == null ? void 0 : w.abbrev) ?? _.unit.abbrev), 1)
353
+ o("span", null, U(e(ye)(g.totalUnit, !1)), 1),
354
+ o("span", null, U(((w = g.measurement) == null ? void 0 : w.abbrev) ?? g.unit.abbrev), 1)
355
355
  ]),
356
356
  o("div", es, [
357
- o("span", null, "(#" + U(_.seqNumber) + ")", 1),
357
+ o("span", null, "(#" + U(g.seqNumber) + ")", 1),
358
358
  b[1] || (b[1] = o("span", null, U(" "), -1)),
359
- o("span", null, U(e(Le)(new Date(_.date))), 1)
359
+ o("span", null, U(e(Le)(new Date(g.date))), 1)
360
360
  ])
361
361
  ]);
362
362
  }), 128))
@@ -379,7 +379,7 @@ const Gt = { class: "flex flex-col gap-8 px-16 xs:px-4 sm:px-4 py-4 items-center
379
379
  setup(m) {
380
380
  const { t: y } = he();
381
381
  return (n, i) => {
382
- var f, _, w, u, a, l, v, k, h, g, x, F, V, z, ue, T, $, O, R, I, B, K, Q, p, c, H, oe;
382
+ var f, g, w, u, a, l, v, k, h, _, x, F, V, z, ue, T, $, O, R, I, B, K, Q, p, c, H, oe;
383
383
  const b = P("FmLabel"), t = P("FmSpacer");
384
384
  return S(), M("div", ts, [
385
385
  o("div", ss, [
@@ -389,7 +389,7 @@ const Gt = { class: "flex flex-col gap-8 px-16 xs:px-4 sm:px-4 py-4 items-center
389
389
  ]),
390
390
  o("div", null, [
391
391
  d(e(ie), {
392
- render: (w = (_ = (f = n.cellByColId.Delete) == null ? void 0 : f.column) == null ? void 0 : _.columnDef) == null ? void 0 : w.cell,
392
+ render: (w = (g = (f = n.cellByColId.Delete) == null ? void 0 : f.column) == null ? void 0 : g.columnDef) == null ? void 0 : w.cell,
393
393
  props: (a = (u = n.cellByColId.Delete) == null ? void 0 : u.getContext) == null ? void 0 : a.call(u)
394
394
  }, null, 8, ["render", "props"])
395
395
  ])
@@ -401,7 +401,7 @@ const Gt = { class: "flex flex-col gap-8 px-16 xs:px-4 sm:px-4 py-4 items-center
401
401
  }, null, 8, ["label"]),
402
402
  d(e(ie), {
403
403
  render: (k = (v = (l = n.cellByColId[e(Y).Code]) == null ? void 0 : l.column) == null ? void 0 : v.columnDef) == null ? void 0 : k.cell,
404
- props: (g = (h = n.cellByColId[e(Y).Code]) == null ? void 0 : h.getContext) == null ? void 0 : g.call(h)
404
+ props: (_ = (h = n.cellByColId[e(Y).Code]) == null ? void 0 : h.getContext) == null ? void 0 : _.call(h)
405
405
  }, null, 8, ["render", "props"]),
406
406
  i[0] || (i[0] = o("div", { class: "fm-typo-en-body-md-600 text-fm-color-primary" }, null, -1))
407
407
  ]),
@@ -478,7 +478,7 @@ function ps(m) {
478
478
  }
479
479
  }), b = q({
480
480
  get() {
481
- return y.value === null ? "" : _t(y.value);
481
+ return y.value === null ? "" : gt(y.value);
482
482
  },
483
483
  set(t) {
484
484
  t ? y.value = /* @__PURE__ */ new Date(`${i.value} ${t}`) : y.value = null;
@@ -497,7 +497,7 @@ const fs = {
497
497
  viewBox: "0 0 24 24",
498
498
  fill: "none",
499
499
  xmlns: "http://www.w3.org/2000/svg"
500
- }, vs = ["fill"], ys = ["fill"], bs = ["stroke"], _s = ["stroke"], gs = /* @__PURE__ */ pe({
500
+ }, vs = ["fill"], ys = ["fill"], bs = ["stroke"], gs = ["stroke"], _s = /* @__PURE__ */ pe({
501
501
  __name: "SparkIcon",
502
502
  props: {
503
503
  size: {
@@ -532,7 +532,7 @@ const fs = {
532
532
  "stroke-width": "1.5",
533
533
  "stroke-linecap": "round",
534
534
  "stroke-linejoin": "round"
535
- }, null, 8, _s)
535
+ }, null, 8, gs)
536
536
  ]));
537
537
  }
538
538
  }), ks = { class: "flex gap-8 items-center" }, hs = { class: "fm-typo-en-body-lg-600 line-clamp-1" }, Cs = { class: "w-[343px] px-24 py-16 rounded-lg shadow-light-300 flex flex-col gap-[20px]" }, xs = { class: "flex items-center w-full" }, Ss = { class: "flex-1" }, ws = { class: "fm-typo-en-title-sm-800" }, Fs = { class: "flex items-start gap-8" }, Ds = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, $s = { class: "flex gap-1" }, tt = /* @__PURE__ */ pe({
@@ -542,7 +542,7 @@ const fs = {
542
542
  },
543
543
  emits: ["update:poItems"],
544
544
  setup(m, { emit: y }) {
545
- const n = y, i = N(!1), b = N(7), t = qt(), f = qe(), _ = He(), { t: w } = he();
545
+ const n = y, i = N(!1), b = N(7), t = qt(), f = qe(), g = He(), { t: w } = he();
546
546
  async function u() {
547
547
  if (b.value < 1)
548
548
  return;
@@ -556,7 +556,7 @@ const fs = {
556
556
  return;
557
557
  }
558
558
  const l = t.purchaseOrderForecast.skus.reduce((v, k) => {
559
- const h = _.skus.find((F) => F._id === k.id);
559
+ const h = g.skus.find((F) => F._id === k.id);
560
560
  if (v.find((F) => F.sku._id === k.id) || !h)
561
561
  return v;
562
562
  const x = {
@@ -573,8 +573,8 @@ const fs = {
573
573
  n("update:poItems", l);
574
574
  }
575
575
  return (a, l) => {
576
- const v = P("FmButton"), k = P("FmIcon"), h = P("FmStepperField"), g = P("FmPopover");
577
- return S(), J(g, {
576
+ const v = P("FmButton"), k = P("FmIcon"), h = P("FmStepperField"), _ = P("FmPopover");
577
+ return S(), J(_, {
578
578
  disabled: a.disabled,
579
579
  class: "flex",
580
580
  "show-popover": i.value,
@@ -591,7 +591,7 @@ const fs = {
591
591
  }, {
592
592
  default: D(() => [
593
593
  o("div", ks, [
594
- d(gs, {
594
+ d(_s, {
595
595
  size: 24,
596
596
  color: a.disabled ? "#c7c7cc" : "#ff7823"
597
597
  }, null, 8, ["color"]),
@@ -658,31 +658,31 @@ const fs = {
658
658
  });
659
659
  function Ts() {
660
660
  const m = qe(), y = rt(), n = N(!1);
661
- ge(n, (f) => {
661
+ _e(n, (f) => {
662
662
  f && (b.value = !0, i().finally(() => {
663
663
  b.value = !1;
664
664
  }));
665
665
  });
666
666
  async function i() {
667
667
  try {
668
- const { startDate: f, endDate: _ } = gt(6), a = (await y.getPurchaseOrders({ start: f, end: _ })).filter(
668
+ const { startDate: f, endDate: g } = _t(6), a = (await y.getPurchaseOrders({ start: f, end: g })).filter(
669
669
  (l) => {
670
670
  var v, k;
671
671
  return l.status === kt.enum.COMPLETE && ((v = l.supplier) == null ? void 0 : v.internal) !== "warehouse" && ((k = l.supplier) == null ? void 0 : k.internal) !== "restaurant";
672
672
  }
673
673
  ).reduce((l, v) => {
674
674
  const k = new Date(ht(v._id)), h = v.supplier._id;
675
- for (const g of v.items) {
676
- if (!g.totalCost) continue;
677
- const x = l[g.sku._id] ?? {}, F = x[h] ?? [];
675
+ for (const _ of v.items) {
676
+ if (!_.totalCost) continue;
677
+ const x = l[_.sku._id] ?? {}, F = x[h] ?? [];
678
678
  F.push({
679
679
  date: k.toISOString(),
680
- totalUnit: g.quantity,
681
- totalCost: g.totalCost,
682
- unit: g.sku.unit,
683
- measurement: g.measurement,
680
+ totalUnit: _.quantity,
681
+ totalCost: _.totalCost,
682
+ unit: _.sku.unit,
683
+ measurement: _.measurement,
684
684
  seqNumber: v.seqNumber
685
- }), x[h] = F, l[g.sku._id] = x;
685
+ }), x[h] = F, l[_.sku._id] = x;
686
686
  }
687
687
  return l;
688
688
  }, {});
@@ -716,17 +716,17 @@ const Ps = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Is = { key: 0 }
716
716
  var b, t;
717
717
  return S(), M(ke, null, [
718
718
  o("tr", {
719
- class: ae(["border-b border-fm-color-neutral-gray-100 hover:bg-fm-color-opacity-sm", {
719
+ class: W(["border-b border-fm-color-neutral-gray-100 hover:bg-fm-color-opacity-sm", {
720
720
  "bg-fm-color-neutral-gray-100": n.row.getIsSelected()
721
721
  }])
722
722
  }, [
723
723
  (S(!0), M(ke, null, Ue(n.row.getVisibleCells(), (f) => {
724
- var _, w, u, a;
724
+ var g, w, u, a;
725
725
  return S(), M("td", {
726
726
  key: f.id,
727
- class: ae([
727
+ class: W([
728
728
  "h-[52px] px-16 text-fm-color-typo-primary",
729
- ((_ = y(f)) == null ? void 0 : _.cellClass) ?? "px-16"
729
+ ((g = y(f)) == null ? void 0 : g.cellClass) ?? "px-16"
730
730
  ]),
731
731
  style: ot({
732
732
  width: (w = y(f)) == null ? void 0 : w.width,
@@ -773,7 +773,7 @@ const Ps = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Is = { key: 0 }
773
773
  },
774
774
  emits: ["netsuite:ready"],
775
775
  setup(m, { emit: y }) {
776
- const n = Ne(), i = m, b = y, { t } = Qt(), f = N(!1), _ = N();
776
+ const n = Ne(), i = m, b = y, { t } = Qt(), f = N(!1), g = N();
777
777
  Be(() => {
778
778
  var l, v, k, h;
779
779
  let a = {
@@ -786,25 +786,25 @@ const Ps = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Is = { key: 0 }
786
786
  return;
787
787
  }
788
788
  try {
789
- const g = n.currentLocationSubsidiary();
789
+ const _ = n.currentLocationSubsidiary();
790
790
  i.setting ? a = {
791
791
  ...i.setting,
792
792
  subsidiary: {
793
- id: g.id || "",
794
- name: g.name
793
+ id: _.id || "",
794
+ name: _.name
795
795
  }
796
796
  } : a = {
797
797
  ...a,
798
798
  subsidiary: {
799
- id: g.id || "",
800
- name: g.name
799
+ id: _.id || "",
800
+ name: _.name
801
801
  }
802
802
  };
803
- const x = n.getAvailableItems(g.id), F = i.items.filter((V) => {
803
+ const x = n.getAvailableItems(_.id), F = i.items.filter((V) => {
804
804
  if (V.measurement != null) {
805
805
  const z = n.getAvailableMeasurements(
806
806
  V.sku._id,
807
- g.id
807
+ _.id
808
808
  );
809
809
  return x.includes(V.sku._id) && z.includes(V.measurement.id);
810
810
  }
@@ -815,28 +815,28 @@ const Ps = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Is = { key: 0 }
815
815
  a
816
816
  );
817
817
  } finally {
818
- i.supplier.internal ? _.value = n.getNetSuiteLocation(
818
+ i.supplier.internal ? g.value = n.getNetSuiteLocation(
819
819
  `${i.supplier.internal}_${i.supplier._id}`
820
- ) : _.value = n.getNetSuiteVendor(i.supplier._id);
821
- const g = i.supplier.internal ? n.getLocationSubsidiary((l = _.value) == null ? void 0 : l.netSuiteId).id : (v = _.value) == null ? void 0 : v.subsidiaryId, x = i.supplier.internal ? (k = n.currentLocationSubsidiary()) == null ? void 0 : k.id : (h = n.currentVendorSubsidiary(i.supplier._id)) == null ? void 0 : h.id;
822
- !n.isEnabled || g && n.isEnabled && g == x ? b("netsuite:ready", a) : f.value = !0;
820
+ ) : g.value = n.getNetSuiteVendor(i.supplier._id);
821
+ const _ = i.supplier.internal ? n.getLocationSubsidiary((l = g.value) == null ? void 0 : l.netSuiteId).id : (v = g.value) == null ? void 0 : v.subsidiaryId, x = i.supplier.internal ? (k = n.currentLocationSubsidiary()) == null ? void 0 : k.id : (h = n.currentVendorSubsidiary(i.supplier._id)) == null ? void 0 : h.id;
822
+ !n.isEnabled || _ && n.isEnabled && _ == x ? b("netsuite:ready", a) : f.value = !0;
823
823
  }
824
824
  });
825
825
  const w = q(
826
826
  () => i.supplier.internal ? n.currentLocationSubsidiary() : n.currentVendorSubsidiary(i.supplier._id)
827
827
  ), u = q(() => {
828
828
  var a, l;
829
- return _.value == null ? `Cannot find the NetSuite location for "${i.supplier.name}"` : `The subsidiary of the request
830
- location is ${(l = n.getLocationSubsidiary((a = _.value) == null ? void 0 : a.netSuiteId)) == null ? void 0 : l.fullName}`;
829
+ return g.value == null ? `Cannot find the NetSuite location for "${i.supplier.name}"` : `The subsidiary of the request
830
+ location is ${(l = n.getLocationSubsidiary((a = g.value) == null ? void 0 : a.netSuiteId)) == null ? void 0 : l.fullName}`;
831
831
  });
832
832
  return (a, l) => {
833
- const v = P("FmLabel"), k = P("FmIcon"), h = P("FmField"), g = P("FmTooltip");
833
+ const v = P("FmLabel"), k = P("FmIcon"), h = P("FmField"), _ = P("FmTooltip");
834
834
  return e(n).isEnabled && i.required ? (S(), M("div", As, [
835
835
  d(v, {
836
836
  label: `NetSuite ${e(t)("inventory.transfer.form.netsuite.subsidiary")}`
837
837
  }, null, 8, ["label"]),
838
838
  o("div", qs, [
839
- d(g, {
839
+ d(_, {
840
840
  "z-index": 51,
841
841
  placement: "left",
842
842
  disabled: a.disabled
@@ -856,7 +856,7 @@ const Ps = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Is = { key: 0 }
856
856
  color: a.disabled ? "neutral-gray-200" : "neutral-gray-400"
857
857
  }, null, 8, ["color"]),
858
858
  o("div", {
859
- class: ae([a.disabled ? "text-fm-color-typo-disabled" : ""])
859
+ class: W([a.disabled ? "text-fm-color-typo-disabled" : ""])
860
860
  }, U((x = w.value) == null ? void 0 : x.fullName), 3)
861
861
  ])
862
862
  ];
@@ -871,16 +871,16 @@ const Ps = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Is = { key: 0 }
871
871
  ])) : G("", !0);
872
872
  };
873
873
  }
874
- }), Os = { class: "flex flex-col gap-4" }, Bs = { class: "flex items-center gap-8 overflow-x-auto pb-12" }, Ns = { class: "flex flex-col gap-16" }, zs = { class: "flex flex-col gap-24" }, Ls = { class: "flex flex-col gap-8" }, Hs = { class: "flex flex-col gap-4" }, js = { class: "flex items-center gap-4" }, Ys = { class: "flex flex-col gap-8" }, Ks = { class: "flex flex-col gap-4" }, Qs = { class: "flex items-center gap-4" }, Zs = { class: "line-clamp-1 fm-typo-en-body-lg-400" }, Gs = { class: "line-clamp-1 fm-typo-en-body-lg-400" }, Js = {
874
+ }), Os = { class: "flex flex-col gap-4" }, Bs = { class: "flex items-center gap-8 overflow-x-auto pb-12" }, Ns = { class: "flex flex-col gap-16" }, zs = { class: "flex flex-col gap-24" }, Ls = { class: "flex flex-col gap-8" }, Hs = { class: "flex flex-col gap-4" }, js = { class: "flex items-center gap-4" }, Ys = { class: "flex flex-col gap-8" }, Ks = { class: "flex flex-col gap-4" }, Qs = { class: "flex items-center gap-4" }, Zs = {
875
875
  key: 3,
876
876
  class: "p-16 border border-fm-color-neutral-gray-300 fm-corner-radius-md flex flex-col"
877
- }, Ws = {
877
+ }, Gs = {
878
878
  key: 0,
879
879
  class: "flex-1 flex gap-8 h-48 xs:flex-col xs:pt-16 sm:flex-col sm:pt-16"
880
- }, Xs = { class: "flex-1" }, ea = { class: "flex-1" }, ta = {
880
+ }, Js = { class: "flex-1" }, Ws = { class: "flex-1" }, Xs = {
881
881
  key: 1,
882
882
  class: "flex items-center gap-4"
883
- }, sa = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary translate-y-[1px]" }, aa = { class: "flex flex-col gap-16" }, oa = { class: "flex-1 gap-8 fm-typo-en-title-sm-600" }, la = { class: "flex gap-8" }, na = { key: 0 }, ra = /* @__PURE__ */ pe({
883
+ }, ea = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary translate-y-[1px]" }, ta = { class: "flex flex-col gap-16" }, sa = { class: "flex-1 gap-8 fm-typo-en-title-sm-600" }, aa = { class: "flex gap-8" }, oa = { key: 0 }, la = /* @__PURE__ */ pe({
884
884
  __name: "TransferForm2",
885
885
  props: {
886
886
  modelValue: {},
@@ -892,7 +892,7 @@ const Ps = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Is = { key: 0 }
892
892
  },
893
893
  emits: ["validation-success", "form:ready"],
894
894
  setup(m, { expose: y, emit: n }) {
895
- const i = m, b = n, t = Ct(), { t: f } = he(), _ = je(), w = He(), u = Ne(), a = Ke(), l = Ae(), v = ut(), { breakpoints: k } = Ye(), h = q(() => k.value.xs || k.value.sm), g = at({
895
+ const i = m, b = n, t = Ct(), { t: f } = he(), g = je(), w = He(), u = Ne(), a = Ke(), l = Ae(), v = ut(), { breakpoints: k } = Ye(), h = q(() => k.value.xs || k.value.sm), _ = at({
896
896
  value: !1
897
897
  }), x = N(!1), F = q(
898
898
  () => {
@@ -900,7 +900,7 @@ const Ps = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Is = { key: 0 }
900
900
  return ((s = i.modelValue) == null ? void 0 : s.templateDoc) ?? v.templates.find((r) => r._id === t.template);
901
901
  }
902
902
  ), V = q(() => t.status === "DRAFT" || !t._rev);
903
- ge(F, (s) => {
903
+ _e(F, (s) => {
904
904
  s && V.value && (t.supplier = (s == null ? void 0 : s.purchaseOrder.supplier) ?? t.supplier);
905
905
  }), Be(() => {
906
906
  var s;
@@ -916,13 +916,13 @@ const Ps = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Is = { key: 0 }
916
916
  } finally {
917
917
  x.value = !0;
918
918
  }
919
- }), ge([x, g], ([s, r], [E, Z]) => {
919
+ }), _e([x, _], ([s, r], [E, Z]) => {
920
920
  r.value && Z.value && b("form:ready");
921
921
  });
922
922
  const z = q(
923
- () => _.currentLocation.type === xt.restaurant
923
+ () => g.currentLocation.type === xt.restaurant
924
924
  );
925
- _.watchLocation(async () => {
925
+ g.watchLocation(async () => {
926
926
  location && (t.supplier || (t.supplier = a.suppliers.find((s) => s) ?? t.supplier));
927
927
  });
928
928
  const ue = Bt(), T = jt(
@@ -943,7 +943,7 @@ const Ps = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Is = { key: 0 }
943
943
  s !== r && (t.supplier = s === j.PURCHASE ? T.locationOptionsTypePurchase.value[0] : T.locationOptionsTypeTransfer.value[0]);
944
944
  }
945
945
  });
946
- ge(
946
+ _e(
947
947
  () => {
948
948
  var s;
949
949
  return (s = i.modelValue) == null ? void 0 : s.template;
@@ -985,19 +985,19 @@ const Ps = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Is = { key: 0 }
985
985
  setEffectiveAt(s) {
986
986
  t.effectiveAt = s;
987
987
  }
988
- }), { comparePricesToggle: c, comparePriceFetching: H, comparePriceBySku: oe } = Ts(), W = N();
988
+ }), { comparePricesToggle: c, comparePriceFetching: H, comparePriceBySku: oe } = Ts(), X = N();
989
989
  y({
990
990
  validateInputs: () => {
991
991
  var s, r;
992
- (r = (s = W.value) == null ? void 0 : s.validateInputs) == null || r.call(s);
992
+ (r = (s = X.value) == null ? void 0 : s.validateInputs) == null || r.call(s);
993
993
  },
994
994
  resetInputsValidation: () => {
995
995
  var s, r;
996
- (r = (s = W.value) == null ? void 0 : s.resetInputsValidation) == null || r.call(s);
996
+ (r = (s = X.value) == null ? void 0 : s.resetInputsValidation) == null || r.call(s);
997
997
  },
998
998
  resetInputs: () => {
999
999
  var s, r;
1000
- (r = (s = W.value) == null ? void 0 : s.resetInputs) == null || r.call(s);
1000
+ (r = (s = X.value) == null ? void 0 : s.resetInputs) == null || r.call(s);
1001
1001
  }
1002
1002
  });
1003
1003
  const $e = Zt({
@@ -1027,18 +1027,18 @@ const Ps = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Is = { key: 0 }
1027
1027
  return u.isEnabled && $.value === j.TRANSFER && (s = s.filter((r) => r.id !== Y.TotalCost)), s;
1028
1028
  });
1029
1029
  function Te() {
1030
- var se, fe, xe, Ie, we;
1031
- const s = new Set((xe = (fe = (se = F.value) == null ? void 0 : se.purchaseOrder) == null ? void 0 : fe.items) == null ? void 0 : xe.map((A) => A.sku._id)), r = u.isEnabled ? u.getAvailableItems((we = (Ie = t.netSuite) == null ? void 0 : Ie.subsidiary) == null ? void 0 : we.id) : [], E = s.size ? w.skus.filter((A) => s.has(A._id)) : w.skus, Z = u.isEnabled ? E.filter((A) => {
1032
- var le, ee, ce, ne;
1033
- const X = (ee = (le = F.value) == null ? void 0 : le.purchaseOrder) == null ? void 0 : ee.items.find(
1030
+ var ae, fe, xe, Ie, we;
1031
+ const s = new Set((xe = (fe = (ae = F.value) == null ? void 0 : ae.purchaseOrder) == null ? void 0 : fe.items) == null ? void 0 : xe.map((A) => A.sku._id)), r = u.isEnabled ? u.getAvailableItems((we = (Ie = t.netSuite) == null ? void 0 : Ie.subsidiary) == null ? void 0 : we.id) : [], E = s.size ? w.skus.filter((A) => s.has(A._id)) : w.skus, Z = u.isEnabled ? E.filter((A) => {
1032
+ var le, te, ce, ne;
1033
+ const ee = (te = (le = F.value) == null ? void 0 : le.purchaseOrder) == null ? void 0 : te.items.find(
1034
1034
  (me) => me.sku._id === A._id
1035
1035
  );
1036
- if (X != null && X.measurement != null) {
1036
+ if (ee != null && ee.measurement != null) {
1037
1037
  const me = u.getAvailableMeasurements(
1038
- X.sku._id,
1038
+ ee.sku._id,
1039
1039
  (ne = (ce = t.netSuite) == null ? void 0 : ce.subsidiary) == null ? void 0 : ne.id
1040
1040
  );
1041
- return r.includes(X.sku._id) && me.includes(X.measurement.id);
1041
+ return r.includes(ee.sku._id) && me.includes(ee.measurement.id);
1042
1042
  }
1043
1043
  return r.includes(A._id);
1044
1044
  }).map((A) => A._id) : E.map((A) => A._id), de = E.map(
@@ -1049,8 +1049,8 @@ const Ps = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Is = { key: 0 }
1049
1049
  disabled: !Z.includes(A._id)
1050
1050
  })
1051
1051
  ), be = de.filter((A) => {
1052
- var X;
1053
- return (X = t.items) == null ? void 0 : X.find((le) => le.sku._id === A.value._id);
1052
+ var ee;
1053
+ return (ee = t.items) == null ? void 0 : ee.find((le) => le.sku._id === A.value._id);
1054
1054
  }).map((A) => A.value);
1055
1055
  ue.open({
1056
1056
  title: f("inventory.transfer.form.items.selectItem"),
@@ -1071,17 +1071,17 @@ const Ps = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Is = { key: 0 }
1071
1071
  variant: "tertiary"
1072
1072
  }
1073
1073
  }).onPrimary((A) => {
1074
- const X = t.items ?? [], le = A.map((ee) => {
1074
+ const ee = t.items ?? [], le = A.map((te) => {
1075
1075
  var me, Fe;
1076
- const ce = X.find((_e) => _e.sku._id === ee._id);
1076
+ const ce = ee.find((ge) => ge.sku._id === te._id);
1077
1077
  if (ce)
1078
1078
  return ce;
1079
1079
  const ne = ((Fe = (me = F.value) == null ? void 0 : me.purchaseOrder.items) == null ? void 0 : Fe.find(
1080
- (_e) => _e.sku._id === ee._id
1080
+ (ge) => ge.sku._id === te._id
1081
1081
  )) ?? {
1082
- sku: ee,
1083
- code: ee.code,
1084
- name: ee.name,
1082
+ sku: te,
1083
+ code: te.code,
1084
+ name: te.name,
1085
1085
  quantity: {
1086
1086
  amount: 1,
1087
1087
  precision: 0
@@ -1096,7 +1096,7 @@ const Ps = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Is = { key: 0 }
1096
1096
  }
1097
1097
  )), ne;
1098
1098
  });
1099
- le.sort((ee, ce) => ee.sku.code.localeCompare(ce.sku.code)), t.items = le;
1099
+ le.sort((te, ce) => te.sku.code.localeCompare(ce.sku.code)), t.items = le;
1100
1100
  });
1101
1101
  }
1102
1102
  function Me(s) {
@@ -1114,7 +1114,7 @@ const Ps = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Is = { key: 0 }
1114
1114
  });
1115
1115
  return (s, r) => {
1116
1116
  var me, Fe;
1117
- const E = P("FmChip"), Z = P("FmLabel"), de = P("FmIcon"), be = P("FmField"), se = P("FmTooltip"), fe = P("FmSelect"), xe = P("FmTextField"), Ie = P("FmTextarea"), we = P("FmSwitch"), A = P("FmDatePicker"), X = P("FmTimePicker"), le = P("FmFormGroup"), ee = P("FmButton"), ce = P("FmTable"), ne = P("FmForm");
1117
+ const E = P("FmChip"), Z = P("FmLabel"), de = P("FmIcon"), be = P("FmField"), ae = P("FmTooltip"), fe = P("FmSelect"), xe = P("FmTextField"), Ie = P("FmTextarea"), we = P("FmSwitch"), A = P("FmDatePicker"), ee = P("FmTimePicker"), le = P("FmFormGroup"), te = P("FmButton"), ce = P("FmTable"), ne = P("FmForm");
1118
1118
  return S(), M("div", Os, [
1119
1119
  o("div", Bs, [
1120
1120
  (me = i.modelValue) != null && me.template ? (S(), J(E, {
@@ -1125,7 +1125,7 @@ const Ps = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Is = { key: 0 }
1125
1125
  compact: ""
1126
1126
  }, null, 8, ["variant", "label"])) : G("", !0),
1127
1127
  d(E, {
1128
- label: e(_).currentLocation.name,
1128
+ label: e(g).currentLocation.name,
1129
1129
  icon: "storefront",
1130
1130
  compact: ""
1131
1131
  }, null, 8, ["label"]),
@@ -1138,24 +1138,24 @@ const Ps = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Is = { key: 0 }
1138
1138
  ]),
1139
1139
  d(ne, {
1140
1140
  ref_key: "formRef",
1141
- ref: W,
1141
+ ref: X,
1142
1142
  class: "flex flex-col gap-32",
1143
1143
  disabled: s.disabled,
1144
1144
  onValidationFailed: console.log,
1145
- onValidationSuccess: r[13] || (r[13] = (_e) => b("validation-success"))
1145
+ onValidationSuccess: r[13] || (r[13] = (ge) => b("validation-success"))
1146
1146
  }, {
1147
1147
  default: D(() => {
1148
- var _e, Qe;
1148
+ var ge, Qe;
1149
1149
  return [
1150
1150
  o("div", Ns, [
1151
1151
  o("div", zs, [
1152
- (_e = i.modelValue) != null && _e.template ? (S(), M(ke, { key: 0 }, [
1152
+ (ge = i.modelValue) != null && ge.template ? (S(), M(ke, { key: 0 }, [
1153
1153
  o("div", Ls, [
1154
1154
  d(Z, {
1155
1155
  label: e(f)("inventory.transfer.form.type.title")
1156
1156
  }, null, 8, ["label"]),
1157
1157
  o("div", Hs, [
1158
- d(se, {
1158
+ d(ae, {
1159
1159
  "z-index": 51,
1160
1160
  placement: "left",
1161
1161
  disabled: s.disabled
@@ -1173,7 +1173,7 @@ const Ps = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Is = { key: 0 }
1173
1173
  color: s.disabled ? "neutral-gray-200" : "neutral-gray-400"
1174
1174
  }, null, 8, ["color"]),
1175
1175
  o("div", {
1176
- class: ae({ "text-fm-color-typo-disabled": s.disabled })
1176
+ class: W({ "text-fm-color-typo-disabled": s.disabled })
1177
1177
  }, U(e(f)(`inventory.transfer.form.type.${$.value.toLocaleLowerCase("en-us")}`)), 3)
1178
1178
  ])
1179
1179
  ]),
@@ -1183,7 +1183,7 @@ const Ps = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Is = { key: 0 }
1183
1183
  _: 1
1184
1184
  }, 8, ["disabled"]),
1185
1185
  o("div", {
1186
- class: ae([
1186
+ class: W([
1187
1187
  "fm-typo-en-body-sm-400",
1188
1188
  s.disabled ? "text-fm-color-typo-disabled" : "text-fm-color-typo-secondary"
1189
1189
  ])
@@ -1195,7 +1195,7 @@ const Ps = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Is = { key: 0 }
1195
1195
  label: $.value === e(j).PURCHASE ? e(f)("inventory.transfer.form.purchaseFrom") : e(f)("inventory.transfer.form.transferFrom")
1196
1196
  }, null, 8, ["label"]),
1197
1197
  o("div", Ks, [
1198
- d(se, {
1198
+ d(ae, {
1199
1199
  "z-index": 51,
1200
1200
  placement: "left",
1201
1201
  disabled: s.disabled
@@ -1215,8 +1215,8 @@ const Ps = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Is = { key: 0 }
1215
1215
  color: s.disabled ? "neutral-gray-200" : "neutral-gray-400"
1216
1216
  }, null, 8, ["color"]),
1217
1217
  o("div", {
1218
- class: ae({ "text-fm-color-typo-disabled": s.disabled })
1219
- }, U((C = O.value.find((te) => te.value === R.value)) == null ? void 0 : C.label), 3)
1218
+ class: W({ "text-fm-color-typo-disabled": s.disabled })
1219
+ }, U((C = O.value.find((se) => se.value === R.value)) == null ? void 0 : C.label), 3)
1220
1220
  ])
1221
1221
  ];
1222
1222
  }),
@@ -1237,7 +1237,12 @@ const Ps = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Is = { key: 0 }
1237
1237
  rules: [e(Re)(1)(O.value)]
1238
1238
  }, {
1239
1239
  default: D(() => [
1240
- o("span", Zs, U(e(wt)($.value)), 1)
1240
+ o("span", {
1241
+ class: W([
1242
+ "line-clamp-1 fm-typo-en-body-lg-400",
1243
+ s.disabled ? "text-fm-color-typo-disabled" : "text-fm-color-typo-primary"
1244
+ ])
1245
+ }, U(e(wt)($.value)), 3)
1241
1246
  ]),
1242
1247
  _: 1
1243
1248
  }, 8, ["label", "modelValue", "items", "rules"]),
@@ -1249,18 +1254,23 @@ const Ps = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Is = { key: 0 }
1249
1254
  items: O.value
1250
1255
  }, {
1251
1256
  "menu-wrapper": D((C) => {
1252
- var te, Ze;
1257
+ var se, Ze;
1253
1258
  return [
1254
1259
  d(Yt, Oe(C, {
1255
1260
  items: O.value,
1256
- "model-value": (Ze = (te = s.modelValue) == null ? void 0 : te.supplier) == null ? void 0 : Ze._id
1261
+ "model-value": (Ze = (se = s.modelValue) == null ? void 0 : se.supplier) == null ? void 0 : Ze._id
1257
1262
  }), null, 16, ["items", "model-value"])
1258
1263
  ];
1259
1264
  }),
1260
1265
  default: D(() => {
1261
1266
  var C;
1262
1267
  return [
1263
- o("span", Gs, U((C = O.value.find((te) => te.value === R.value)) == null ? void 0 : C.label), 1)
1268
+ o("span", {
1269
+ class: W([
1270
+ "line-clamp-1 fm-typo-en-body-lg-400",
1271
+ s.disabled ? "text-fm-color-typo-disabled" : "text-fm-color-typo-primary"
1272
+ ])
1273
+ }, U((C = O.value.find((se) => se.value === R.value)) == null ? void 0 : C.label), 3)
1264
1274
  ];
1265
1275
  }),
1266
1276
  _: 1
@@ -1278,7 +1288,7 @@ const Ps = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Is = { key: 0 }
1278
1288
  "max-length": 240,
1279
1289
  modelValue: I.value,
1280
1290
  "onUpdate:modelValue": r[3] || (r[3] = (C) => I.value = C),
1281
- class: ae([s.disabled ? "text-fm-color-typo-disabled " : ""])
1291
+ class: W([s.disabled ? "text-fm-color-typo-disabled " : ""])
1282
1292
  }, null, 8, ["label", "modelValue", "class"]),
1283
1293
  x.value ? (S(), J(Es, {
1284
1294
  key: 2,
@@ -1287,16 +1297,16 @@ const Ps = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Is = { key: 0 }
1287
1297
  supplier: e(t).supplier,
1288
1298
  setting: e(t).netSuite,
1289
1299
  items: e(t).items,
1290
- onChange: (C, te) => {
1291
- e(t).items = C, e(t).netSuite = te;
1300
+ onChange: (C, se) => {
1301
+ e(t).items = C, e(t).netSuite = se;
1292
1302
  },
1293
1303
  "onNetsuite:ready": r[4] || (r[4] = (C) => {
1294
- g.value = !0;
1304
+ _.value = !0;
1295
1305
  })
1296
1306
  }, null, 8, ["required", "disabled", "supplier", "setting", "items", "onChange"])) : G("", !0),
1297
- e(l).enableBackdatePo ? (S(), M("div", Js, [
1307
+ e(l).enableBackdatePo ? (S(), M("div", Zs, [
1298
1308
  o("div", {
1299
- class: ae([
1309
+ class: W([
1300
1310
  "flex",
1301
1311
  {
1302
1312
  "flex-col": h.value
@@ -1312,17 +1322,17 @@ const Ps = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Is = { key: 0 }
1312
1322
  disabled: z.value && !s.lastClosingDate || s.disabled
1313
1323
  }, null, 8, ["modelValue", "label", "sublabel", "disabled"]),
1314
1324
  o("div", {
1315
- class: ae({ hidden: h.value, "w-16": !h.value })
1325
+ class: W({ hidden: h.value, "w-16": !h.value })
1316
1326
  }, null, 2),
1317
- e(K) ? (S(), M("div", Ws, [
1318
- o("div", Xs, [
1327
+ e(K) ? (S(), M("div", Gs, [
1328
+ o("div", Js, [
1319
1329
  d(A, {
1320
1330
  modelValue: e(Q),
1321
1331
  "onUpdate:modelValue": r[6] || (r[6] = (C) => Se(Q) ? Q.value = C : null)
1322
1332
  }, null, 8, ["modelValue"])
1323
1333
  ]),
1324
- o("div", ea, [
1325
- d(X, {
1334
+ o("div", Ws, [
1335
+ d(ee, {
1326
1336
  modelValue: e(p),
1327
1337
  "onUpdate:modelValue": r[7] || (r[7] = (C) => Se(p) ? p.value = C : null)
1328
1338
  }, null, 8, ["modelValue"])
@@ -1335,24 +1345,24 @@ const Ps = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Is = { key: 0 }
1335
1345
  "onUpdate:modelValue": r[8] || (r[8] = (C) => Se(B) ? B.value = C : null),
1336
1346
  rules: [e(Ft)(new Date(s.lastClosingDate), /* @__PURE__ */ new Date())]
1337
1347
  }, null, 8, ["modelValue", "rules"])) : G("", !0),
1338
- z.value && !s.lastClosingDate ? (S(), M("div", ta, [
1348
+ z.value && !s.lastClosingDate ? (S(), M("div", Xs, [
1339
1349
  d(de, {
1340
1350
  name: "error",
1341
1351
  size: "sm",
1342
1352
  class: "text-fm-color-typo-warning"
1343
1353
  }),
1344
- o("span", sa, U(e(f)("inventory.transfer.form.backdate.error")), 1)
1354
+ o("span", ea, U(e(f)("inventory.transfer.form.backdate.error")), 1)
1345
1355
  ])) : G("", !0)
1346
1356
  ])) : G("", !0)
1347
1357
  ])
1348
1358
  ]),
1349
- o("div", aa, [
1359
+ o("div", ta, [
1350
1360
  d(le, {
1351
1361
  "model-value": e(t).items,
1352
1362
  rules: [e(Re)(1)]
1353
1363
  }, null, 8, ["model-value", "rules"]),
1354
1364
  o("div", {
1355
- class: ae([
1365
+ class: W([
1356
1366
  "flex gap-16",
1357
1367
  {
1358
1368
  "flex-col items-start": h.value,
@@ -1360,9 +1370,9 @@ const Ps = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Is = { key: 0 }
1360
1370
  }
1361
1371
  ])
1362
1372
  }, [
1363
- o("div", oa, U(e(f)("inventory.transfer.form.items.title")), 1),
1364
- o("div", la, [
1365
- d(ee, {
1373
+ o("div", sa, U(e(f)("inventory.transfer.form.items.title")), 1),
1374
+ o("div", aa, [
1375
+ d(te, {
1366
1376
  disabled: s.disabled,
1367
1377
  label: e(f)("inventory.transfer.form.items.addItem"),
1368
1378
  "prepend-icon": "add",
@@ -1373,7 +1383,7 @@ const Ps = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Is = { key: 0 }
1373
1383
  onClick: r[9] || (r[9] = (C) => Te()),
1374
1384
  size: "md"
1375
1385
  }, null, 8, ["disabled", "label"]),
1376
- e(t).template ? (S(), J(se, {
1386
+ e(t).template ? (S(), J(ae, {
1377
1387
  key: 0,
1378
1388
  "z-index": 50
1379
1389
  }, {
@@ -1394,7 +1404,7 @@ const Ps = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Is = { key: 0 }
1394
1404
  }, null, 8, ["disabled"]))
1395
1405
  ])
1396
1406
  ], 2),
1397
- $.value === e(j).PURCHASE && V.value && e(l).enableTotalCost && ((Qe = s.modelValue) != null && Qe.items.length) ? (S(), M("div", na, [
1407
+ $.value === e(j).PURCHASE && V.value && e(l).enableTotalCost && ((Qe = s.modelValue) != null && Qe.items.length) ? (S(), M("div", oa, [
1398
1408
  d(we, {
1399
1409
  label: e(H) ? e(f)("inventory.transfer.form.items.fetchingData") : e(f)("inventory.transfer.form.items.comparePriceHistory"),
1400
1410
  "prepend-icon": "compare_arrows",
@@ -1421,14 +1431,14 @@ const Ps = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Is = { key: 0 }
1421
1431
  "list-row": D((C) => [
1422
1432
  (S(), J(nt, {
1423
1433
  row: C,
1424
- key: e(t).items.map((te) => te.sku._id).join(".")
1434
+ key: e(t).items.map((se) => se.sku._id).join(".")
1425
1435
  }, {
1426
- default: D((te) => [
1436
+ default: D((se) => [
1427
1437
  d(ms, {
1428
1438
  "compare-price-by-sku": e(oe),
1429
1439
  "show-compare-price": $.value === e(j).PURCHASE && e(c),
1430
1440
  row: C,
1431
- "cell-by-col-id": te
1441
+ "cell-by-col-id": se
1432
1442
  }, null, 8, ["compare-price-by-sku", "show-compare-price", "row", "cell-by-col-id"])
1433
1443
  ]),
1434
1444
  _: 2
@@ -1444,7 +1454,7 @@ const Ps = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Is = { key: 0 }
1444
1454
  ]);
1445
1455
  };
1446
1456
  }
1447
- }), ia = { class: "flex items-center" }, ua = { class: "fm-typo-en-title-md-800" }, da = { class: "flex gap-4" }, ca = /* @__PURE__ */ pe({
1457
+ }), na = { class: "flex items-center" }, ra = { class: "fm-typo-en-title-md-800" }, ia = { class: "flex gap-4" }, ua = /* @__PURE__ */ pe({
1448
1458
  __name: "TransferDialog",
1449
1459
  props: {
1450
1460
  mode: {},
@@ -1456,14 +1466,14 @@ const Ps = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Is = { key: 0 }
1456
1466
  emits: ["update:show", "submitted"],
1457
1467
  setup(m, { expose: y, emit: n }) {
1458
1468
  var Q;
1459
- const i = m, b = n, t = rt(), f = ut(), _ = qe(), w = Ke(), u = He(), a = je(), l = Ae(), { t: v } = he(), k = N(!1), h = N(!1), g = N(!1);
1469
+ const i = m, b = n, t = rt(), f = ut(), g = qe(), w = Ke(), u = He(), a = je(), l = Ae(), { t: v } = he(), k = N(!1), h = N(!1), _ = N(!1);
1460
1470
  async function x(p) {
1461
1471
  if (p) {
1462
1472
  h.value = !1;
1463
1473
  try {
1464
1474
  await w.readSuppliers(), h.value = !0;
1465
1475
  } catch {
1466
- _.open({
1476
+ g.open({
1467
1477
  title: v("inventory.transfer.form.unableToFetchListOfSuppliers.title"),
1468
1478
  message: v("inventory.transfer.form.unableToFetchListOfSuppliers.message"),
1469
1479
  type: "error"
@@ -1507,14 +1517,14 @@ const Ps = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Is = { key: 0 }
1507
1517
  };
1508
1518
  }
1509
1519
  const V = Nt(i, "show"), z = N(i.modelValue ?? F()), ue = N(((Q = i.modelValue) == null ? void 0 : Q._id) ?? `${Math.random()}`);
1510
- ge(
1520
+ _e(
1511
1521
  () => i.show,
1512
1522
  (p) => {
1513
1523
  var c;
1514
- p && (g.value = !1, z.value = i.modelValue ?? F(), ue.value = ((c = i.modelValue) == null ? void 0 : c._id) ?? `${Math.random()}`);
1524
+ p && (_.value = !1, z.value = i.modelValue ?? F(), ue.value = ((c = i.modelValue) == null ? void 0 : c._id) ?? `${Math.random()}`);
1515
1525
  }
1516
1526
  );
1517
- const T = q(() => !h.value || !g.value), $ = q(() => {
1527
+ const T = q(() => !h.value || !_.value), $ = q(() => {
1518
1528
  switch (i.mode) {
1519
1529
  case De.READ:
1520
1530
  return "View transfer";
@@ -1546,13 +1556,13 @@ const Ps = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Is = { key: 0 }
1546
1556
  totalCost: re(c.sku, c.quantity, c.measurement)
1547
1557
  })));
1548
1558
  try {
1549
- await t.createPurchaseOrder(p), await new Promise((c) => setTimeout(c, 1e3)), _.open({
1559
+ await t.createPurchaseOrder(p), await new Promise((c) => setTimeout(c, 1e3)), g.open({
1550
1560
  title: v("inventory.transfer.receiveRequest.create.success"),
1551
1561
  message: v("inventory.transfer.receiveRequest.create.successMessage"),
1552
1562
  type: "success"
1553
1563
  }), b("update:show", !1), b("submitted");
1554
1564
  } catch (c) {
1555
- _.open({
1565
+ g.open({
1556
1566
  title: v("inventory.transfer.receiveRequest.create.error.title"),
1557
1567
  message: v("inventory.transfer.receiveRequest.create.error.message"),
1558
1568
  type: "error"
@@ -1568,13 +1578,13 @@ const Ps = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Is = { key: 0 }
1568
1578
  totalCost: re(c.sku, c.quantity, c.measurement)
1569
1579
  })));
1570
1580
  try {
1571
- await t.updatePurchaseOrder(p), await new Promise((c) => setTimeout(c, 1e3)), _.open({
1581
+ await t.updatePurchaseOrder(p), await new Promise((c) => setTimeout(c, 1e3)), g.open({
1572
1582
  title: v("inventory.transfer.receiveRequest.update.success"),
1573
1583
  message: v("inventory.transfer.receiveRequest.update.successMessage"),
1574
1584
  type: "success"
1575
1585
  }), b("update:show", !1), b("submitted");
1576
1586
  } catch (c) {
1577
- _.open({
1587
+ g.open({
1578
1588
  title: v("inventory.transfer.receiveRequest.update.error.title"),
1579
1589
  message: v("inventory.transfer.receiveRequest.update.error.message"),
1580
1590
  type: "error"
@@ -1599,25 +1609,25 @@ const Ps = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Is = { key: 0 }
1599
1609
  const H = P("FmButton"), oe = P("FmSideSheet");
1600
1610
  return S(), J(oe, {
1601
1611
  modelValue: e(V),
1602
- "onUpdate:modelValue": c[3] || (c[3] = (W) => Se(V) ? V.value = W : null),
1612
+ "onUpdate:modelValue": c[3] || (c[3] = (X) => Se(V) ? V.value = X : null),
1603
1613
  "dismiss-away": "",
1604
1614
  "close-button": "",
1605
1615
  "max-width": 900
1606
1616
  }, {
1607
1617
  "side-sheet-header": D(() => [
1608
- o("div", ia, [
1609
- o("div", ua, U($.value), 1)
1618
+ o("div", na, [
1619
+ o("div", ra, U($.value), 1)
1610
1620
  ])
1611
1621
  ]),
1612
1622
  default: D(() => [
1613
- (S(), J(ra, {
1623
+ (S(), J(la, {
1614
1624
  class: "w-full",
1615
1625
  ref_key: "formRef",
1616
1626
  ref: O,
1617
- "onForm:ready": c[0] || (c[0] = () => g.value = !0),
1627
+ "onForm:ready": c[0] || (c[0] = () => _.value = !0),
1618
1628
  onValidationSuccess: B,
1619
1629
  modelValue: z.value,
1620
- "onUpdate:modelValue": c[1] || (c[1] = (W) => z.value = W),
1630
+ "onUpdate:modelValue": c[1] || (c[1] = (X) => z.value = X),
1621
1631
  disabled: k.value || T.value,
1622
1632
  suppliers: e(w).suppliers,
1623
1633
  skus: e(u).skus,
@@ -1626,7 +1636,7 @@ const Ps = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Is = { key: 0 }
1626
1636
  }, null, 8, ["modelValue", "disabled", "suppliers", "skus", "last-closing-date"]))
1627
1637
  ]),
1628
1638
  "side-sheet-footer": D(() => [
1629
- o("div", da, [
1639
+ o("div", ia, [
1630
1640
  d(H, {
1631
1641
  loading: k.value,
1632
1642
  disabled: T.value,
@@ -1637,7 +1647,7 @@ const Ps = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Is = { key: 0 }
1637
1647
  disabled: T.value,
1638
1648
  variant: "tertiary",
1639
1649
  label: e(v)("common.close"),
1640
- onClick: c[2] || (c[2] = (W) => b("update:show", !1))
1650
+ onClick: c[2] || (c[2] = (X) => b("update:show", !1))
1641
1651
  }, null, 8, ["disabled", "label"])
1642
1652
  ])
1643
1653
  ]),
@@ -1645,10 +1655,10 @@ const Ps = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Is = { key: 0 }
1645
1655
  }, 8, ["modelValue"]);
1646
1656
  };
1647
1657
  }
1648
- }), ma = { class: "flex flex-col py-8" }, pa = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, fa = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary line-clamp-1" }, va = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1" }, ya = {
1658
+ }), da = { class: "flex flex-col py-8" }, ca = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ma = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary line-clamp-1" }, pa = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1" }, fa = {
1649
1659
  key: 0,
1650
1660
  class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1"
1651
- }, ba = { class: "pt-8" }, st = "ReceiveRequestViewSearchCriteria", Va = /* @__PURE__ */ pe({
1661
+ }, va = { class: "pt-8" }, st = "ReceiveRequestViewSearchCriteria", Pa = /* @__PURE__ */ pe({
1652
1662
  __name: "ReceiveRequestView",
1653
1663
  setup(m) {
1654
1664
  const { t: y } = he(), n = qe();
@@ -1673,7 +1683,7 @@ const Ps = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Is = { key: 0 }
1673
1683
  return T;
1674
1684
  }
1675
1685
  }
1676
- function _() {
1686
+ function g() {
1677
1687
  b.setItem(st, JSON.stringify(w.value));
1678
1688
  }
1679
1689
  const w = N(f()), u = It("receive/request", w.value), { columnDefs: a } = Vt("receive/request", u), l = je();
@@ -1724,15 +1734,15 @@ const Ps = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Is = { key: 0 }
1724
1734
  });
1725
1735
  }
1726
1736
  const k = N(Je()), h = N("");
1727
- ge([() => k.value], ([T]) => {
1737
+ _e([() => k.value], ([T]) => {
1728
1738
  !T.startDate || !T.endDate || (w.value.startDate = T.startDate, w.value.endDate = T.endDate, u.updateDateRange(
1729
1739
  w.value.startDate,
1730
1740
  w.value.endDate
1731
- ), _());
1732
- }), ge([() => h.value], () => {
1733
- _();
1741
+ ), g());
1742
+ }), _e([() => h.value], () => {
1743
+ g();
1734
1744
  });
1735
- function g(T) {
1745
+ function _(T) {
1736
1746
  if (T === "create") {
1737
1747
  if (i.value) {
1738
1748
  n.open({
@@ -1770,13 +1780,13 @@ const Ps = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Is = { key: 0 }
1770
1780
  return S(), J(Tt, {
1771
1781
  title: e(y)("inventory.transfer.receiveRequest.title2"),
1772
1782
  actions: ue.value,
1773
- "onClick:action": g
1783
+ "onClick:action": _
1774
1784
  }, {
1775
1785
  default: D(() => {
1776
1786
  var R;
1777
1787
  return [
1778
1788
  o("div", {
1779
- class: ae([
1789
+ class: W([
1780
1790
  "flex flex-col gap-8 max-h-full",
1781
1791
  {
1782
1792
  "p-0": F.value,
@@ -1809,32 +1819,32 @@ const Ps = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Is = { key: 0 }
1809
1819
  onRowClick: e(u).promptShowTransferDetails
1810
1820
  }, {
1811
1821
  default: D((B) => {
1812
- var K, Q, p, c, H, oe, W, $e, Ce, Te, Me, Pe, s, r, E, Z, de, be, se, fe;
1822
+ var K, Q, p, c, H, oe, X, $e, Ce, Te, Me, Pe, s, r, E, Z, de, be, ae, fe;
1813
1823
  return [
1814
- o("div", ma, [
1815
- o("div", pa, [
1824
+ o("div", da, [
1825
+ o("div", ca, [
1816
1826
  d(e(ie), {
1817
1827
  render: (p = (Q = (K = B._id) == null ? void 0 : K.column) == null ? void 0 : Q.columnDef) == null ? void 0 : p.cell,
1818
1828
  props: (H = (c = B._id) == null ? void 0 : c.getContext) == null ? void 0 : H.call(c)
1819
1829
  }, null, 8, ["render", "props"])
1820
1830
  ]),
1821
- o("div", fa, [
1831
+ o("div", ma, [
1822
1832
  d(e(ie), {
1823
- render: ($e = (W = (oe = B.supplier_name) == null ? void 0 : oe.column) == null ? void 0 : W.columnDef) == null ? void 0 : $e.cell,
1833
+ render: ($e = (X = (oe = B.supplier_name) == null ? void 0 : oe.column) == null ? void 0 : X.columnDef) == null ? void 0 : $e.cell,
1824
1834
  props: (Te = (Ce = B.supplier_name) == null ? void 0 : Ce.getContext) == null ? void 0 : Te.call(Ce)
1825
1835
  }, null, 8, ["render", "props"])
1826
1836
  ]),
1827
- o("div", va, U(I.original.items.map((xe) => `${xe.name}`).join(", ")), 1),
1828
- I.original.ref ? (S(), M("div", ya, [
1837
+ o("div", pa, U(I.original.items.map((xe) => `${xe.name}`).join(", ")), 1),
1838
+ I.original.ref ? (S(), M("div", fa, [
1829
1839
  d(e(ie), {
1830
1840
  render: (s = (Pe = (Me = B.ref) == null ? void 0 : Me.column) == null ? void 0 : Pe.columnDef) == null ? void 0 : s.cell,
1831
1841
  props: (E = (r = B.ref) == null ? void 0 : r.getContext) == null ? void 0 : E.call(r)
1832
1842
  }, null, 8, ["render", "props"])
1833
1843
  ])) : G("", !0),
1834
- o("div", ba, [
1844
+ o("div", va, [
1835
1845
  d(e(ie), {
1836
1846
  render: (be = (de = (Z = B.status) == null ? void 0 : Z.column) == null ? void 0 : de.columnDef) == null ? void 0 : be.cell,
1837
- props: (fe = (se = B.status) == null ? void 0 : se.getContext) == null ? void 0 : fe.call(se)
1847
+ props: (fe = (ae = B.status) == null ? void 0 : ae.getContext) == null ? void 0 : fe.call(ae)
1838
1848
  }, null, 8, ["render", "props"])
1839
1849
  ])
1840
1850
  ])
@@ -1847,7 +1857,7 @@ const Ps = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Is = { key: 0 }
1847
1857
  }, 8, ["style", "column-defs", "row-data", "search-value", "loading", "page-size"]))
1848
1858
  ], 2),
1849
1859
  (S(), J(mt, { to: "body" }, [
1850
- d(ca, Oe(e(u).transferDialogProps.value, {
1860
+ d(ua, Oe(e(u).transferDialogProps.value, {
1851
1861
  onSubmitted: e(u).fetchData
1852
1862
  }), null, 16, ["onSubmitted"]),
1853
1863
  d(Rt, Oe(e(u).transferDetailsProps.value, {
@@ -1862,5 +1872,5 @@ const Ps = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Is = { key: 0 }
1862
1872
  }
1863
1873
  });
1864
1874
  export {
1865
- Va as default
1875
+ Pa as default
1866
1876
  };