@feedmepos/mf-inventory-portal 1.0.36-dev.7 → 1.0.37-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 (50) hide show
  1. package/dist/{App-Cw7dAyRr.js → App-DomXC0uh.js} +46 -47
  2. package/dist/{ApprovalView-uzxVamAD.js → ApprovalView-DnINEwhh.js} +20 -20
  3. package/dist/{BindingsDialog-CjAyz7qd.js → BindingsDialog-MstJl2hJ.js} +10 -10
  4. package/dist/{BindingsPicker-VWQEClDc.js → BindingsPicker-BCgoeZK5.js} +1 -1
  5. package/dist/{BindingsTable-D_AidNg-.js → BindingsTable-knJs1DaE.js} +4 -4
  6. package/dist/{ClosingDraftView-DnPQE4xl.js → ClosingDraftView-Cg4siKrJ.js} +27 -27
  7. package/dist/{ClosingTemplateView-BzeUoP0S.js → ClosingTemplateView-D7nxxW1T.js} +2 -2
  8. package/dist/{DeliveryOrderPrintPreview-CQBfbvjK.js → DeliveryOrderPrintPreview-DUqWxzpS.js} +4 -4
  9. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-C5iYx065.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DMeIIyKI.js} +11 -11
  10. package/dist/{FmMultiselectDialog-DLZju68a.js → FmMultiselectDialog-H6rOzolY.js} +1 -1
  11. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-elcx6AO6.js → FmUnitInput.vue_vue_type_script_setup_true_lang-BAk4KHnz.js} +31 -31
  12. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DMmGsyfI.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-SxPkPzU1.js} +1 -1
  13. package/dist/{IngredientGroupView-bFYU22r_.js → IngredientGroupView-CAA69KE_.js} +21 -21
  14. package/dist/{IngredientsView-BrfeKO6V.js → IngredientsView-BYhDmhQb.js} +42 -43
  15. package/dist/IntegrationView-CGBFyLWN.js +3303 -0
  16. package/dist/{InventoryBindingForm-DrNO6vLb.js → InventoryBindingForm-X-CFcWEY.js} +1 -1
  17. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-DU_Nt6VM.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-CwV5nKPo.js} +18 -18
  18. package/dist/{InventoryBindingSummary-BztWC0Gi.js → InventoryBindingSummary-Cch1pODC.js} +1 -1
  19. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-OvRfk02N.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Uc6h5Apn.js} +4 -4
  20. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BsbrYUky.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BcWa_Dww.js} +10 -10
  21. package/dist/{PublishView-BwmvDibM.js → PublishView-DCAdzucX.js} +19 -19
  22. package/dist/{PurchaseOrderPrintPreview-DRo0ctOc.js → PurchaseOrderPrintPreview-IDiFQ15P.js} +12 -12
  23. package/dist/{ReceiveRequestView-yb4E_Dg6.js → ReceiveRequestView-7eslFHYc.js} +106 -107
  24. package/dist/{RecipeView-Dyf9kDoR.js → RecipeView-DOLJ5Gsx.js} +38 -39
  25. package/dist/{StockView-Cg-KD9qT.js → StockView-vCgmnyKT.js} +68 -69
  26. package/dist/{SupplierView-BtVTg_Ht.js → SupplierView-B6xdSB6T.js} +11 -12
  27. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-lNmQ3zTi.js → TransferDetails.vue_vue_type_script_setup_true_lang-DrfHulTL.js} +105 -106
  28. package/dist/{TransferTemplateView-AUp2tI1x.js → TransferTemplateView-g1V3JX-5.js} +143 -144
  29. package/dist/{UnitView-BgbQjCfN.js → UnitView-BD28XnQL.js} +19 -19
  30. package/dist/{WarehouseView-BedfDS6s.js → WarehouseView-Cjgl43Xz.js} +14 -14
  31. package/dist/api/netsuite.d.ts +2 -0
  32. package/dist/app-dN4odAZ8.js +124833 -0
  33. package/dist/app.js +6 -6
  34. package/dist/{decimal-uKQOh7Qw.js → decimal-Blq-Ws2M.js} +1 -1
  35. package/dist/{format-unit-display-EMi6Weg0.js → format-unit-display-CzANmeBd.js} +13 -13
  36. package/dist/{index-B4jwhkHY.js → index-61_R9xfw.js} +3 -4
  37. package/dist/{index-BN_lVBL8.js → index-B8dsKHa4.js} +1 -1
  38. package/dist/{stock-SaEl13YM.js → stock-D7E6dj7b.js} +1 -1
  39. package/dist/stores/feature.d.ts +2 -0
  40. package/dist/stores/integration/netsuite.d.ts +1 -0
  41. package/dist/{supplier-hdrIxTLp.js → supplier-UeD3tjJh.js} +25 -26
  42. package/dist/tsconfig.app.tsbuildinfo +1 -1
  43. package/dist/{use-ingredient-select-dialog-B7XYGX1J.js → use-ingredient-select-dialog-CydPG1Ol.js} +1 -1
  44. package/dist/{use-inventory-binding-dialog-t7XQb2UV.js → use-inventory-binding-dialog-DzRlrnI6.js} +1 -1
  45. package/dist/views/integration/components/netsuite/InventoryTransferOutTable.vue.d.ts +2 -0
  46. package/dist/{vue-i18n-DBsdCMy_.js → vue-i18n-D64xeCoR.js} +285 -285
  47. package/package.json +1 -1
  48. package/dist/IntegrationView-KlnDvvRE.js +0 -6531
  49. package/dist/app-nDgEuY-Q.js +0 -102338
  50. package/dist/feature-_ggdK-7_.js +0 -19100
@@ -1,14 +1,13 @@
1
- import { a2 as lt, u as de, aN as O, b as De, a7 as ct, a9 as ut, aa as dt, aO as mt, d as Qe, e as et, $ as Ve, aP as ft, a4 as Le, Q as ke, i as ie, aQ as tt, ae as xe, f as Ye, h as Z, D as re, aw as ue, aR as rt, aS as st, a8 as pt, au as Xe, a6 as Oe, ak as Pe, ax as yt } from "./app-nDgEuY-Q.js";
2
- import { ref as j, computed as Y, h as A, defineComponent as pe, reactive as vt, onMounted as nt, resolveComponent as z, openBlock as h, createBlock as ae, withCtx as se, createElementVNode as a, createVNode as I, unref as v, createElementBlock as N, toDisplayString as k, createCommentVNode as M, Fragment as te, renderList as me, watch as ht, isRef as bt, normalizeClass as Ne, createTextVNode as Ie, resolveDynamicComponent as gt } from "vue";
3
- import { F as _t } from "./decimal-uKQOh7Qw.js";
4
- import { u as qe, F as St, a as Fe } from "./feature-_ggdK-7_.js";
1
+ import { a3 as lt, u as de, aP as O, c as De, b as qe, a8 as ct, aa as ut, ab as dt, aQ as mt, e as Ye, f as et, a0 as Ve, aR as ft, a5 as Le, T as ke, j as ie, aS as pt, aT as tt, af as xe, h as Qe, i as Z, D as re, ax as ue, aU as rt, aV as st, aW as Pe, a9 as yt, av as Xe, a7 as Oe, al as Ie, ay as vt } from "./app-dN4odAZ8.js";
2
+ import { ref as j, computed as Q, h as A, defineComponent as pe, reactive as ht, onMounted as nt, resolveComponent as z, openBlock as h, createBlock as ae, withCtx as se, createElementVNode as a, createVNode as I, unref as v, createElementBlock as N, toDisplayString as k, createCommentVNode as M, Fragment as te, renderList as me, watch as bt, isRef as gt, normalizeClass as Ne, createTextVNode as Fe, resolveDynamicComponent as _t } from "vue";
3
+ import { F as St } from "./decimal-Blq-Ws2M.js";
5
4
  import { useCoreStore as Ae, useI18n as at } from "@feedmepos/mf-common";
6
- import { b as wt, u as Rt, P as fe, f as Ot } from "./format-unit-display-EMi6Weg0.js";
5
+ import { b as wt, u as Rt, P as fe, f as Ot } from "./format-unit-display-CzANmeBd.js";
7
6
  import { E as Nt } from "./empty-placeholder-wf6-BWE8.js";
8
7
  import { useDialog as Me, useSnackbar as Te, components as Je, FmButtonVariant as ee, useProxiedModel as kt } from "@feedmepos/ui-library";
9
- import { _ as xt, F as Dt, a as qt } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-elcx6AO6.js";
8
+ import { _ as xt, F as Dt, a as qt } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-BAk4KHnz.js";
10
9
  import { u as At, R as Ze } from "./usePromise-CbVUCxhj.js";
11
- import { u as Tt } from "./index-B4jwhkHY.js";
10
+ import { u as Tt } from "./index-61_R9xfw.js";
12
11
  const $e = lt((S, e) => {
13
12
  const i = de(), b = Ae();
14
13
  return {
@@ -137,7 +136,7 @@ const $e = lt((S, e) => {
137
136
  }
138
137
  };
139
138
  function it() {
140
- const S = de(), e = $e(), i = qe();
139
+ const S = de(), e = $e(), i = De();
141
140
  async function b(t, u) {
142
141
  const o = S.currentLocationDBName;
143
142
  return t.doc.supplier.internal && t.operation === O.enum.confirmDraft && (t.operation = O.enum.submitRequest), await e.processPurchaseOrder(t, u || o);
@@ -150,12 +149,12 @@ function it() {
150
149
  }
151
150
  var Ue = /* @__PURE__ */ ((S) => (S.RECEIVE_REQUEST = "receive/request", S.APPROVAL = "approval", S))(Ue || {});
152
151
  const we = j(), Be = j();
153
- function Es(S, e) {
154
- const i = Me(), b = de(), c = qe();
155
- De();
152
+ function Bs(S, e) {
153
+ const i = Me(), b = de(), c = De();
154
+ qe();
156
155
  const t = wt(), u = Rt(), o = j(!1), s = Te(), y = $e(), _ = j(new Array()), p = j(
157
156
  e != null && e.startDate && (e != null && e.endDate) ? e : ct()
158
- ), m = Y(() => {
157
+ ), m = Q(() => {
159
158
  const D = new Date(p.value.startDate), r = new Date(p.value.endDate);
160
159
  return {
161
160
  start: ut(D).toISOString(),
@@ -165,7 +164,7 @@ function Es(S, e) {
165
164
  async function x(D) {
166
165
  function r(R) {
167
166
  const w = {
168
- mode: Qe.CREATE,
167
+ mode: Ye.CREATE,
169
168
  modelValue: D || void 0,
170
169
  show: !0,
171
170
  "onUpdate:show"($) {
@@ -197,7 +196,7 @@ function Es(S, e) {
197
196
  }
198
197
  function q(D) {
199
198
  const r = {
200
- mode: Qe.UPDATE,
199
+ mode: Ye.UPDATE,
201
200
  modelValue: et(D),
202
201
  show: !0,
203
202
  "onUpdate:show"(d) {
@@ -267,7 +266,7 @@ function Es(S, e) {
267
266
  }
268
267
  await F();
269
268
  });
270
- const G = j(), le = j(Math.random().toString());
269
+ const W = j(), le = j(Math.random().toString());
271
270
  async function oe(D, r) {
272
271
  const d = Math.random().toString();
273
272
  le.value = d, r ?? (r = l.value.computeFirst(
@@ -282,11 +281,11 @@ function Es(S, e) {
282
281
  canResubmit: !1,
283
282
  canApprove: S === "approval",
284
283
  "onUpdate:show"($) {
285
- G.value.show = $;
284
+ W.value.show = $;
286
285
  },
287
286
  scope: S
288
287
  };
289
- G.value = w;
288
+ W.value = w;
290
289
  }
291
290
  async function ye(D, r, d, R) {
292
291
  const w = it();
@@ -312,8 +311,8 @@ function Es(S, e) {
312
311
  },
313
312
  transferTo: R
314
313
  }), await new Promise((X) => setTimeout(X, 1e3));
315
- const W = de().currentLocationDBName.startsWith("restaurant_");
316
- r === O.enum.confirmDraft && D.effectiveAt && W ? s.open({
314
+ const G = de().currentLocationDBName.startsWith("restaurant_");
315
+ r === O.enum.confirmDraft && D.effectiveAt && G ? s.open({
317
316
  title: "Success",
318
317
  message: `${d}. The backdate will be reflected once your POS has received this change.`,
319
318
  type: "success"
@@ -381,7 +380,7 @@ function Es(S, e) {
381
380
  transferDialogProps: we,
382
381
  promptCreateTransferDialog: x,
383
382
  promptUpdateTransferDialog: q,
384
- transferDetailsProps: G,
383
+ transferDetailsProps: W,
385
384
  promptShowTransferDetails: oe,
386
385
  submitAction: Ce,
387
386
  xilnexImportDialogProps: Be,
@@ -394,7 +393,7 @@ function $t(S, e) {
394
393
  const t = c.received.find((u) => u.sku._id === S._id);
395
394
  return t && (b = Le(b, t.amount)), b;
396
395
  },
397
- _t.toPrecision(ke(0), S.unit.precision)
396
+ St.toPrecision(ke(0), S.unit.precision)
398
397
  );
399
398
  }
400
399
  function Ct(S) {
@@ -418,7 +417,7 @@ function Ct(S) {
418
417
  state: e.supplier.address.state,
419
418
  country: e.supplier.address.country
420
419
  }, p = e.items.map((T) => {
421
- const { sku: F, measurement: K } = T, G = ie(
420
+ const { sku: F, measurement: K } = T, W = ie(
422
421
  $t(T.sku, e.deliveryOrder || []),
423
422
  !1
424
423
  );
@@ -427,8 +426,8 @@ function Ct(S) {
427
426
  description: F.name,
428
427
  quantity: ie(T.quantity, !1),
429
428
  unit: (K == null ? void 0 : K.abbrev) || F.unit.abbrev,
430
- received: G,
431
- cost: T.totalCost ? `${T.totalCost.currency} ${St.toFormatString({
429
+ received: W,
430
+ cost: T.totalCost ? `${T.totalCost.currency} ${pt.toFormatString({
432
431
  value: T.totalCost
433
432
  })}` : void 0
434
433
  };
@@ -534,8 +533,8 @@ const be = {
534
533
  value: O.enum.returnStock
535
534
  }
536
535
  };
537
- function Ls(S, e) {
538
- const i = de(), b = De(), c = Ae(), { t } = at();
536
+ function Es(S, e) {
537
+ const i = de(), b = qe(), c = Ae(), { t } = at();
539
538
  function u(m) {
540
539
  switch (m.status) {
541
540
  case "DRAFT":
@@ -573,10 +572,10 @@ function Ls(S, e) {
573
572
  var x, q, V, T, F, K;
574
573
  const g = et(l);
575
574
  if (m === Z.Print) {
576
- const G = (n == null ? void 0 : n.toInventoryLocation) ?? i.currentLocation;
575
+ const W = (n == null ? void 0 : n.toInventoryLocation) ?? i.currentLocation;
577
576
  ((x = n == null ? void 0 : n.netSuite) != null && x.refNo || (q = g.netSuite) != null && q.refNo) && (g.ref = [((V = n == null ? void 0 : n.netSuite) == null ? void 0 : V.refNo) || ((T = g.netSuite) == null ? void 0 : T.refNo)].filter((le) => le).join(" ")), Ct({
578
577
  po: g,
579
- currentLocation: G,
578
+ currentLocation: W,
580
579
  business: c.currentBusiness.value,
581
580
  fulfilling: S === "approval",
582
581
  por: n
@@ -659,7 +658,7 @@ function Ls(S, e) {
659
658
  id: "action",
660
659
  cell(l) {
661
660
  const n = l.row.original, g = u(n);
662
- return Ye(g, (x) => s(x, n));
661
+ return Qe(g, (x) => s(x, n));
663
662
  },
664
663
  enableSorting: !1,
665
664
  size: 40,
@@ -767,7 +766,7 @@ function Ls(S, e) {
767
766
  ...q,
768
767
  translationKey: "inventory.transfer.receiveRequest.details.printDeliveryOrder"
769
768
  } : q);
770
- return Ye(
769
+ return Qe(
771
770
  x,
772
771
  (q) => n.purchaseOrder ? s(q, n.purchaseOrder, n) : void 0
773
772
  );
@@ -817,7 +816,7 @@ function Ls(S, e) {
817
816
  return m;
818
817
  }
819
818
  return {
820
- columnDefs: Y(() => S === "receive/request" ? y() : _())
819
+ columnDefs: Q(() => S === "receive/request" ? y() : _())
821
820
  };
822
821
  }
823
822
  const Pt = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg p-16" }, It = { class: "flex flex-col gap-8" }, Ft = { class: "flex w-full justify-end gap-16" }, Bt = /* @__PURE__ */ pe({
@@ -828,7 +827,7 @@ const Pt = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
828
827
  },
829
828
  emits: ["update:show"],
830
829
  setup(S, { emit: e }) {
831
- const i = S, b = vt({
830
+ const i = S, b = ht({
832
831
  id: "",
833
832
  createdAt: (/* @__PURE__ */ new Date()).toISOString(),
834
833
  items: []
@@ -841,7 +840,7 @@ const Pt = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
841
840
  amount: o.quantity ?? { amount: 1, precision: 0 }
842
841
  })));
843
842
  });
844
- const u = Y(() => b.items.length <= 10);
843
+ const u = Q(() => b.items.length <= 10);
845
844
  return (o, s) => {
846
845
  const y = z("FmTable"), _ = z("FmButton"), p = z("FmForm");
847
846
  return h(), ae(p, {
@@ -1027,7 +1026,7 @@ const Pt = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
1027
1026
  }
1028
1027
  };
1029
1028
  function Et() {
1030
- const S = qe();
1029
+ const S = De();
1031
1030
  return {
1032
1031
  ableToMarkReceived(e) {
1033
1032
  if (!e || e.status !== ue.enum.RECEIVING)
@@ -1056,8 +1055,8 @@ const Lt = { class: "flex flex-row-reverse" }, Ut = /* @__PURE__ */ pe({
1056
1055
  scope: {}
1057
1056
  },
1058
1057
  setup(S) {
1059
- const e = S, i = De(), b = Te(), c = Me(), t = j(!1);
1060
- Y(() => {
1058
+ const e = S, i = qe(), b = Te(), c = Me(), t = j(!1);
1059
+ Q(() => {
1061
1060
  var _, p, m, l;
1062
1061
  let o = !0;
1063
1062
  i.isEnabled || (o = !1);
@@ -1126,10 +1125,10 @@ const Lt = { class: "flex flex-row-reverse" }, Ut = /* @__PURE__ */ pe({
1126
1125
  }, Mt = { class: "flex flex-col gap-4" }, jt = { class: "fm-typo-en-body-lg-600" }, Kt = {
1127
1126
  key: 0,
1128
1127
  class: "flex flex-col gap-4"
1129
- }, zt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ht = { class: "fm-typo-en-body-lg-600" }, Gt = { key: 0 }, Wt = { key: 1 }, Qt = {
1128
+ }, zt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ht = { class: "fm-typo-en-body-lg-600" }, Wt = { key: 0 }, Gt = { key: 1 }, Yt = {
1130
1129
  key: 1,
1131
1130
  class: "flex flex-col gap-4"
1132
- }, Yt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Xt = { class: "fm-typo-en-body-lg-600" }, Jt = { key: 0 }, Zt = { key: 1 }, er = {
1131
+ }, Qt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Xt = { class: "fm-typo-en-body-lg-600" }, Jt = { key: 0 }, Zt = { key: 1 }, er = {
1133
1132
  key: 2,
1134
1133
  class: "flex flex-col gap-4"
1135
1134
  }, tr = { class: "fm-typo-en-body-lg-600" }, rr = {
@@ -1146,7 +1145,7 @@ const Lt = { class: "flex flex-row-reverse" }, Ut = /* @__PURE__ */ pe({
1146
1145
  scope: {}
1147
1146
  },
1148
1147
  setup(S) {
1149
- const e = S, i = De(), b = $e(), c = j(e.poRequest);
1148
+ const e = S, i = qe(), b = $e(), c = j(e.poRequest);
1150
1149
  nt(async () => {
1151
1150
  var s;
1152
1151
  if (!e.poRequest && ((s = e.purchaseOrder) != null && s._id)) {
@@ -1154,17 +1153,17 @@ const Lt = { class: "flex flex-row-reverse" }, Ut = /* @__PURE__ */ pe({
1154
1153
  c.value = y;
1155
1154
  }
1156
1155
  });
1157
- const t = Y(
1156
+ const t = Q(
1158
1157
  () => {
1159
1158
  var s, y, _, p, m, l;
1160
1159
  return i.getSubsidiaryFullName(
1161
1160
  ((_ = (y = (s = e.purchaseOrder) == null ? void 0 : s.netSuite) == null ? void 0 : y.subsidiary) == null ? void 0 : _.id) || ((l = (m = (p = e.poRequest) == null ? void 0 : p.netSuite) == null ? void 0 : m.subsidiary) == null ? void 0 : l.id)
1162
1161
  ).fullName;
1163
1162
  }
1164
- ), u = Y(() => {
1163
+ ), u = Q(() => {
1165
1164
  var s, y, _, p, m, l, n, g, x, q, V, T;
1166
1165
  return (_ = (y = (s = e.purchaseOrder) == null ? void 0 : s.netSuite) == null ? void 0 : y.additionalInfo) != null && _.transactionnumber ? (l = (m = (p = e.purchaseOrder) == null ? void 0 : p.netSuite) == null ? void 0 : m.additionalInfo) == null ? void 0 : l.transactionnumber : (x = (g = (n = c.value) == null ? void 0 : n.netSuite) == null ? void 0 : g.additionalInfo) != null && x.transactionnumber ? (T = (V = (q = c.value) == null ? void 0 : q.netSuite) == null ? void 0 : V.additionalInfo) == null ? void 0 : T.transactionnumber : null;
1167
- }), o = Y(() => {
1166
+ }), o = Q(() => {
1168
1167
  var s, y, _, p, m, l;
1169
1168
  return (y = (s = e.purchaseOrder) == null ? void 0 : s.deliveryFullfillment) != null && y.length && ((p = (_ = e.purchaseOrder) == null ? void 0 : _.deliveryFullfillment) == null ? void 0 : p.length) > 0 ? (l = (m = e.purchaseOrder) == null ? void 0 : m.deliveryFullfillment) == null ? void 0 : l.map((n) => {
1170
1169
  var g;
@@ -1172,7 +1171,7 @@ const Lt = { class: "flex flex-row-reverse" }, Ut = /* @__PURE__ */ pe({
1172
1171
  }).join(", ") : "N/A";
1173
1172
  });
1174
1173
  return (s, y) => {
1175
- var _, p, m, l, n, g, x, q, V, T, F, K, G, le, oe, ye;
1174
+ var _, p, m, l, n, g, x, q, V, T, F, K, W, le, oe, ye;
1176
1175
  return v(i).isEnabled ? (h(), N("div", Vt, [
1177
1176
  a("div", Mt, [
1178
1177
  y[0] || (y[0] = a("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, "NetSuite subsidiary", -1)),
@@ -1181,13 +1180,13 @@ const Lt = { class: "flex flex-row-reverse" }, Ut = /* @__PURE__ */ pe({
1181
1180
  !s.isTransferBetweenOutlets && s.scope === v(Ue).RECEIVE_REQUEST ? (h(), N("div", Kt, [
1182
1181
  a("div", zt, " NetSuite " + k((p = (_ = s.purchaseOrder) == null ? void 0 : _.netSuite) != null && p.recordType ? v(rt)((l = (m = s.purchaseOrder) == null ? void 0 : m.netSuite) == null ? void 0 : l.recordType) : s.transferType === v(fe).PURCHASE ? "Purchase Order" : "Transfer Order") + " (ID) ", 1),
1183
1182
  a("div", Ht, [
1184
- (g = (n = s.purchaseOrder) == null ? void 0 : n.netSuite) != null && g.id ? (h(), N("span", Gt, k((q = (x = s.purchaseOrder) == null ? void 0 : x.netSuite) == null ? void 0 : q.refNo) + " (" + k((T = (V = s.purchaseOrder) == null ? void 0 : V.netSuite) == null ? void 0 : T.id) + ") ", 1)) : (h(), N("span", Wt, "N/A"))
1183
+ (g = (n = s.purchaseOrder) == null ? void 0 : n.netSuite) != null && g.id ? (h(), N("span", Wt, k((q = (x = s.purchaseOrder) == null ? void 0 : x.netSuite) == null ? void 0 : q.refNo) + " (" + k((T = (V = s.purchaseOrder) == null ? void 0 : V.netSuite) == null ? void 0 : T.id) + ") ", 1)) : (h(), N("span", Gt, "N/A"))
1185
1184
  ])
1186
1185
  ])) : M("", !0),
1187
- !s.isTransferBetweenOutlets && c.value || s.scope === v(Ue).APPROVAL ? (h(), N("div", Qt, [
1188
- a("div", Yt, " (Request) NetSuite " + k(s.transferType === v(fe).PURCHASE ? "Purchase Order" : "Transfer Order") + " (ID) ", 1),
1186
+ !s.isTransferBetweenOutlets && c.value || s.scope === v(Ue).APPROVAL ? (h(), N("div", Yt, [
1187
+ a("div", Qt, " (Request) NetSuite " + k(s.transferType === v(fe).PURCHASE ? "Purchase Order" : "Transfer Order") + " (ID) ", 1),
1189
1188
  a("div", Xt, [
1190
- (K = (F = c.value) == null ? void 0 : F.netSuite) != null && K.id ? (h(), N("span", Jt, k((le = (G = c.value) == null ? void 0 : G.netSuite) == null ? void 0 : le.refNo) + " (" + k((ye = (oe = c.value) == null ? void 0 : oe.netSuite) == null ? void 0 : ye.id) + ") ", 1)) : (h(), N("span", Zt, "N/A"))
1189
+ (K = (F = c.value) == null ? void 0 : F.netSuite) != null && K.id ? (h(), N("span", Jt, k((le = (W = c.value) == null ? void 0 : W.netSuite) == null ? void 0 : le.refNo) + " (" + k((ye = (oe = c.value) == null ? void 0 : oe.netSuite) == null ? void 0 : ye.id) + ") ", 1)) : (h(), N("span", Zt, "N/A"))
1191
1190
  ])
1192
1191
  ])) : M("", !0),
1193
1192
  u.value ? (h(), N("div", er, [
@@ -1333,7 +1332,7 @@ const Lt = { class: "flex flex-row-reverse" }, Ut = /* @__PURE__ */ pe({
1333
1332
  scope: {}
1334
1333
  },
1335
1334
  setup(S) {
1336
- const e = S, i = Tt(), b = Ae(), c = Y(() => {
1335
+ const e = S, i = Tt(), b = Ae(), c = Q(() => {
1337
1336
  var s, y, _, p, m, l, n;
1338
1337
  const t = ((s = e.transferToDbName) == null ? void 0 : s.startsWith("restaurant")) && ((_ = (y = e.purchaseOrder) == null ? void 0 : y.supplier) == null ? void 0 : _.internal) === "restaurant", u = e.transferType === fe.PURCHASE, o = e.transferType === fe.TRANSFER;
1339
1338
  return u || o && !t || ((m = (p = e.purchaseOrder) == null ? void 0 : p.netSuite) == null ? void 0 : m.id) || ((n = (l = e.poRequest) == null ? void 0 : l.netSuite) == null ? void 0 : n.id);
@@ -1392,7 +1391,7 @@ const Lt = { class: "flex flex-row-reverse" }, Ut = /* @__PURE__ */ pe({
1392
1391
  }, Vr = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Mr = { class: "fm-typo-en-body-lg-600" }, jr = {
1393
1392
  key: 4,
1394
1393
  class: "flex flex-col gap-4"
1395
- }, Kr = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, zr = { class: "fm-typo-en-body-lg-600" }, Hr = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg p-16" }, Gr = { class: "flex flex-col gap-8" }, Wr = { class: "flex gap-8 items-center" }, Qr = { class: "flex-1 fm-typo-en-body-lg-600" }, Yr = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary flex flex-col gap-4" }, Xr = { class: "flex w-full gap-4" }, Jr = { class: "basis-1/2 shrink-0 grow fm-typo-en-body-lg-400 line-clamp-2" }, Zr = { class: "fm-typo-en-body-lg-600 line-clamp-2" }, es = { class: "flex w-full gap-4 fm-typo-en-body-sm-400" }, ts = { class: "grow fm-typo-en-body-lg-400 text-fm-color-typo-secondary line-clamp-1" }, rs = {
1394
+ }, Kr = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, zr = { class: "fm-typo-en-body-lg-600" }, Hr = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg p-16" }, Wr = { class: "flex flex-col gap-8" }, Gr = { class: "flex gap-8 items-center" }, Yr = { class: "flex-1 fm-typo-en-body-lg-600" }, Qr = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary flex flex-col gap-4" }, Xr = { class: "flex w-full gap-4" }, Jr = { class: "basis-1/2 shrink-0 grow fm-typo-en-body-lg-400 line-clamp-2" }, Zr = { class: "fm-typo-en-body-lg-600 line-clamp-2" }, es = { class: "flex w-full gap-4 fm-typo-en-body-sm-400" }, ts = { class: "grow fm-typo-en-body-lg-400 text-fm-color-typo-secondary line-clamp-1" }, rs = {
1396
1395
  key: 0,
1397
1396
  class: "line-clamp-1 fm-typo-en-body-lg-400 text-fm-color-typo-secondary"
1398
1397
  }, ss = { class: "py-8" }, ns = { class: "flex justify-end gap-4 items-center" }, as = { class: "fm-typo-en-body-lg-600" }, os = {
@@ -1416,7 +1415,7 @@ const Lt = { class: "flex flex-row-reverse" }, Ut = /* @__PURE__ */ pe({
1416
1415
  }, Ss = { class: "flex-1 flex flex-col items-center" }, ws = {
1417
1416
  class: "py-12 flex flex-col gap-4 flex-1",
1418
1417
  name: "delivery details"
1419
- }, Rs = { class: "flex flex-col gap-8" }, Os = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Ns = { class: "flex flex-col gap-4" }, ks = { class: "flex gap-8 xs:flex-col" }, Us = /* @__PURE__ */ pe({
1418
+ }, Rs = { class: "flex flex-col gap-8" }, Os = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Ns = { class: "flex flex-col gap-4" }, ks = { class: "flex gap-8 xs:flex-col" }, Ls = /* @__PURE__ */ pe({
1420
1419
  __name: "TransferDetails",
1421
1420
  props: {
1422
1421
  poRequest: {},
@@ -1430,7 +1429,7 @@ const Lt = { class: "flex flex-row-reverse" }, Ut = /* @__PURE__ */ pe({
1430
1429
  },
1431
1430
  emits: ["update:show", "submitted"],
1432
1431
  setup(S, { emit: e }) {
1433
- const i = S, b = e, c = Me(), t = Te(), u = qe(), o = de(), s = Ae(), y = Y(
1432
+ const i = S, b = e, c = Me(), t = Te(), u = De(), o = de(), s = Ae(), y = Q(
1434
1433
  () => {
1435
1434
  var r, d;
1436
1435
  return {
@@ -1438,12 +1437,12 @@ const Lt = { class: "flex flex-row-reverse" }, Ut = /* @__PURE__ */ pe({
1438
1437
  name: ((d = s.sessionUser.value) == null ? void 0 : d.displayName) ?? ""
1439
1438
  };
1440
1439
  }
1441
- ), _ = Et(), { t: p } = at(), m = Y(
1440
+ ), _ = Et(), { t: p } = at(), m = Q(
1442
1441
  () => {
1443
1442
  var r, d, R, w;
1444
1443
  return ((d = (r = i.purchaseOrder) == null ? void 0 : r.supplier) == null ? void 0 : d.internal) === "restaurant" || ((w = (R = i.purchaseOrder) == null ? void 0 : R.supplier) == null ? void 0 : w.internal) === "warehouse" ? fe.TRANSFER : fe.PURCHASE;
1445
1444
  }
1446
- ), l = j(!1), n = j(""), g = j(!0), x = $e(), q = At(x.getWorkflowConfig), V = it(), T = Y(() => {
1445
+ ), l = j(!1), n = j(""), g = j(!0), x = $e(), q = At(x.getWorkflowConfig), V = it(), T = Q(() => {
1447
1446
  if (!i.purchaseOrder)
1448
1447
  return [];
1449
1448
  const r = q.result.value;
@@ -1462,16 +1461,16 @@ const Lt = { class: "flex flex-row-reverse" }, Ut = /* @__PURE__ */ pe({
1462
1461
  };
1463
1462
  let R = [];
1464
1463
  try {
1465
- r.state === Ze.error ? (console.error("Error fetching workflow config:", r.error), R = Fe.getAvailableActions({
1464
+ r.state === Ze.error ? (console.error("Error fetching workflow config:", r.error), R = Pe.getAvailableActions({
1466
1465
  ...d,
1467
- orderConfig: Fe.getDefaultConfig()
1466
+ orderConfig: Pe.getDefaultConfig()
1468
1467
  }).actions.filter(
1469
1468
  (w) => (
1470
1469
  // TODO: create receiveStock & processRequest dialog
1471
1470
  // to create their payload
1472
1471
  w !== O.enum.receiveStock && w !== O.enum.processRequest && w !== O.enum.closeRequest
1473
1472
  )
1474
- )) : R = Fe.getAvailableActions({
1473
+ )) : R = Pe.getAvailableActions({
1475
1474
  ...d,
1476
1475
  orderConfig: r.data
1477
1476
  }).actions.filter(
@@ -1481,7 +1480,7 @@ const Lt = { class: "flex flex-row-reverse" }, Ut = /* @__PURE__ */ pe({
1481
1480
  console.error("Error getting available actions:", w);
1482
1481
  }
1483
1482
  return i.scope === "approval" && (R = R.filter((w) => w !== O.enum.completeReceive)), R;
1484
- }), F = kt(i, "show"), K = Y(() => [
1483
+ }), F = kt(i, "show"), K = Q(() => [
1485
1484
  {
1486
1485
  label: p("inventory.transfer.receiveRequest.details.overview"),
1487
1486
  value: "overview"
@@ -1490,15 +1489,15 @@ const Lt = { class: "flex flex-row-reverse" }, Ut = /* @__PURE__ */ pe({
1490
1489
  label: p("inventory.transfer.receiveRequest.details.deliveryHistory"),
1491
1490
  value: "deliveryHistory"
1492
1491
  }
1493
- ]), G = j(K.value[0]);
1494
- ht(
1492
+ ]), W = j(K.value[0]);
1493
+ bt(
1495
1494
  () => i.show,
1496
1495
  (r) => {
1497
- r && (G.value = K.value[0]);
1496
+ r && (W.value = K.value[0]);
1498
1497
  }
1499
1498
  );
1500
1499
  async function le(r, d, R, w, $) {
1501
- return new Promise((W, X) => {
1500
+ return new Promise((G, X) => {
1502
1501
  c.open({
1503
1502
  closeButton: !1,
1504
1503
  title: w.title,
@@ -1551,12 +1550,12 @@ const Lt = { class: "flex flex-row-reverse" }, Ut = /* @__PURE__ */ pe({
1551
1550
  // add payload if action is receiveStock or processRequest
1552
1551
  },
1553
1552
  transferTo: (E = (H = i.poRequest) == null ? void 0 : H.to) == null ? void 0 : E.dbName
1554
- }).delayed(1e3), W("submitted");
1553
+ }).delayed(1e3), G("submitted");
1555
1554
  } catch (J) {
1556
1555
  X(J);
1557
1556
  }
1558
1557
  }).onSecondary(() => {
1559
- W("cancelled");
1558
+ G("cancelled");
1560
1559
  for (let f = 0; f < $ + 2; f++)
1561
1560
  c.close();
1562
1561
  }).onClose(() => {
@@ -1564,7 +1563,7 @@ const Lt = { class: "flex flex-row-reverse" }, Ut = /* @__PURE__ */ pe({
1564
1563
  });
1565
1564
  }
1566
1565
  async function oe(r) {
1567
- var w, $, W, X;
1566
+ var w, $, G, X;
1568
1567
  if (r === O.enum.receiveStock)
1569
1568
  return;
1570
1569
  const d = ot[r];
@@ -1585,7 +1584,7 @@ const Lt = { class: "flex flex-row-reverse" }, Ut = /* @__PURE__ */ pe({
1585
1584
  r === O.enum.completeReceive) && u.autoReceiveWarehouse)
1586
1585
  f.autoReceive = !0;
1587
1586
  else if ((r === O.enum.approveRequest || r === O.enum.processRequest) && u.acceptRequireFulfillment) {
1588
- const B = ($ = (w = i.poRequest) == null ? void 0 : w.from) == null ? void 0 : $.dbName, H = (X = (W = i.poRequest) == null ? void 0 : W.to) == null ? void 0 : X.dbName;
1587
+ const B = ($ = (w = i.poRequest) == null ? void 0 : w.from) == null ? void 0 : $.dbName, H = (X = (G = i.poRequest) == null ? void 0 : G.to) == null ? void 0 : X.dbName;
1589
1588
  if (B && H && (B.startsWith("warehouse_") || H.startsWith("warehouse_"))) {
1590
1589
  const E = await new Promise((J, L) => {
1591
1590
  c.open({
@@ -1627,12 +1626,12 @@ const Lt = { class: "flex flex-row-reverse" }, Ut = /* @__PURE__ */ pe({
1627
1626
  }
1628
1627
  }
1629
1628
  }
1630
- const ye = Y(() => {
1629
+ const ye = Q(() => {
1631
1630
  var r, d;
1632
1631
  return ((r = i.purchaseOrder) == null ? void 0 : r.status) === ue.enum.RECEIVING || ((d = i.purchaseOrder) == null ? void 0 : d.status) === ue.enum.COMPLETE;
1633
- }), Ce = Y(() => {
1634
- var W, X, f;
1635
- const R = (((W = i.purchaseOrder) == null ? void 0 : W.deliveryOrder) ?? []).flatMap((C) => C.received ?? []).reduce(
1632
+ }), Ce = Q(() => {
1633
+ var G, X, f;
1634
+ const R = (((G = i.purchaseOrder) == null ? void 0 : G.deliveryOrder) ?? []).flatMap((C) => C.received ?? []).reduce(
1636
1635
  (C, B) => {
1637
1636
  const H = C[B.sku._id] ?? [];
1638
1637
  return C[B.sku._id] = [...H, B], C;
@@ -1641,7 +1640,7 @@ const Lt = { class: "flex flex-row-reverse" }, Ut = /* @__PURE__ */ pe({
1641
1640
  ), w = Object.entries(R).reduce(
1642
1641
  (C, [B, H]) => {
1643
1642
  const E = H.reduce((J, L) => {
1644
- const ne = pt(
1643
+ const ne = yt(
1645
1644
  J,
1646
1645
  Math.max(J.precision, L.amount.precision)
1647
1646
  );
@@ -1654,9 +1653,9 @@ const Lt = { class: "flex flex-row-reverse" }, Ut = /* @__PURE__ */ pe({
1654
1653
  for (const C of $)
1655
1654
  w[f = C.sku._id] ?? (w[f] = ke(0));
1656
1655
  return w;
1657
- }), ce = Y(() => {
1658
- var W, X;
1659
- const r = ((W = i.purchaseOrder) == null ? void 0 : W.deliveryOrder) ?? [], d = ((X = i.purchaseOrder) == null ? void 0 : X.deliveryFullfillment) ?? [], R = [
1656
+ }), ce = Q(() => {
1657
+ var G, X;
1658
+ const r = ((G = i.purchaseOrder) == null ? void 0 : G.deliveryOrder) ?? [], d = ((X = i.purchaseOrder) == null ? void 0 : X.deliveryFullfillment) ?? [], R = [
1660
1659
  ...r.map((f) => ({
1661
1660
  createdAt: f.createdAt,
1662
1661
  type: "grn",
@@ -1687,12 +1686,12 @@ const Lt = { class: "flex flex-row-reverse" }, Ut = /* @__PURE__ */ pe({
1687
1686
  ];
1688
1687
  return {
1689
1688
  header: "Received",
1690
- date: Pe(new Date(f.createdAt)),
1689
+ date: Ie(new Date(f.createdAt)),
1691
1690
  info: [
1692
1691
  {
1693
1692
  label: "Adjustment date",
1694
1693
  values: [
1695
- f.adjustment ? Pe(new Date(yt(f.adjustment))) : "-"
1694
+ f.adjustment ? Ie(new Date(vt(f.adjustment))) : "-"
1696
1695
  ]
1697
1696
  },
1698
1697
  {
@@ -1702,7 +1701,7 @@ const Lt = { class: "flex flex-row-reverse" }, Ut = /* @__PURE__ */ pe({
1702
1701
  {
1703
1702
  label: "Received items",
1704
1703
  values: f.received.map((P) => {
1705
- var Q;
1704
+ var Y;
1706
1705
  return A("div", [
1707
1706
  A(
1708
1707
  "div",
@@ -1756,7 +1755,7 @@ const Lt = { class: "flex flex-row-reverse" }, Ut = /* @__PURE__ */ pe({
1756
1755
  {
1757
1756
  class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary"
1758
1757
  },
1759
- ((Q = P.measurement) == null ? void 0 : Q.abbrev) ?? P.sku.unit.abbrev
1758
+ ((Y = P.measurement) == null ? void 0 : Y.abbrev) ?? P.sku.unit.abbrev
1760
1759
  )
1761
1760
  ]
1762
1761
  ),
@@ -1795,7 +1794,7 @@ const Lt = { class: "flex flex-row-reverse" }, Ut = /* @__PURE__ */ pe({
1795
1794
  const C = d.findIndex((E) => E.id === f.id);
1796
1795
  return {
1797
1796
  header: "Fulfillment",
1798
- date: Pe(new Date(f.createdAt)),
1797
+ date: Ie(new Date(f.createdAt)),
1799
1798
  info: [
1800
1799
  {
1801
1800
  label: "Sequence",
@@ -1891,7 +1890,7 @@ const Lt = { class: "flex flex-row-reverse" }, Ut = /* @__PURE__ */ pe({
1891
1890
  return $(f.doc);
1892
1891
  }
1893
1892
  });
1894
- }), D = Y(() => {
1893
+ }), D = Q(() => {
1895
1894
  var d;
1896
1895
  const r = {
1897
1896
  ...ke(0),
@@ -1904,11 +1903,11 @@ const Lt = { class: "flex flex-row-reverse" }, Ut = /* @__PURE__ */ pe({
1904
1903
  });
1905
1904
  return (r, d) => {
1906
1905
  var E, J;
1907
- const R = z("FmButtonGroup"), w = z("FmChip"), $ = z("FmMenuDivider"), W = z("FmCard"), X = z("FmIcon"), f = z("FmTooltip"), C = z("FmSpacer"), B = z("FmButton"), H = z("FmSideSheet");
1906
+ const R = z("FmButtonGroup"), w = z("FmChip"), $ = z("FmMenuDivider"), G = z("FmCard"), X = z("FmIcon"), f = z("FmTooltip"), C = z("FmSpacer"), B = z("FmButton"), H = z("FmSideSheet");
1908
1907
  return h(), ae(H, {
1909
1908
  header: v(p)("inventory.transfer.receiveRequest.details.title") + ((E = r.purchaseOrder) != null && E.seqNumber ? ` #${(J = r.purchaseOrder) == null ? void 0 : J.seqNumber}` : ""),
1910
1909
  modelValue: v(F),
1911
- "onUpdate:modelValue": d[5] || (d[5] = (L) => bt(F) ? F.value = L : null),
1910
+ "onUpdate:modelValue": d[5] || (d[5] = (L) => gt(F) ? F.value = L : null),
1912
1911
  "dismiss-away": g.value,
1913
1912
  "close-button": "",
1914
1913
  "max-width": 600
@@ -1920,25 +1919,25 @@ const Lt = { class: "flex flex-row-reverse" }, Ut = /* @__PURE__ */ pe({
1920
1919
  a("div", null, [
1921
1920
  I(R, {
1922
1921
  items: K.value,
1923
- modelValue: G.value,
1924
- "onUpdate:modelValue": d[0] || (d[0] = (U) => G.value = U)
1922
+ modelValue: W.value,
1923
+ "onUpdate:modelValue": d[0] || (d[0] = (U) => W.value = U)
1925
1924
  }, null, 8, ["items", "modelValue"])
1926
1925
  ]),
1927
- G.value.value === "overview" ? (h(), N(te, { key: 0 }, [
1926
+ W.value.value === "overview" ? (h(), N(te, { key: 0 }, [
1928
1927
  a("div", null, [
1929
- I(W, {
1928
+ I(G, {
1930
1929
  variant: "outlined",
1931
1930
  class: "flex flex-col gap-8 px-12 py-16"
1932
1931
  }, {
1933
1932
  default: se(() => {
1934
- var U, P, Q, ve, he, Re, je, Ke, ze, He, Ge, We;
1933
+ var U, P, Y, ve, he, Re, je, Ke, ze, He, We, Ge;
1935
1934
  return [
1936
1935
  a("div", Sr, [
1937
1936
  a("div", wr, k(v(p)("inventory.transfer.receiveRequest.details.requestSummary")), 1),
1938
1937
  a("div", null, [
1939
1938
  I(w, {
1940
1939
  label: v(p)(`inventory.transfer.status.${(U = r.purchaseOrder) == null ? void 0 : U.status}`),
1941
- class: Ne(`fm-status-badge fm-status-badge-${(Q = (P = r.purchaseOrder) == null ? void 0 : P.status) == null ? void 0 : Q.toLocaleLowerCase("en-us")}`),
1940
+ class: Ne(`fm-status-badge fm-status-badge-${(Y = (P = r.purchaseOrder) == null ? void 0 : P.status) == null ? void 0 : Y.toLocaleLowerCase("en-us")}`),
1942
1941
  compact: ""
1943
1942
  }, null, 8, ["label", "class"])
1944
1943
  ])
@@ -1969,11 +1968,11 @@ const Lt = { class: "flex flex-row-reverse" }, Ut = /* @__PURE__ */ pe({
1969
1968
  a("div", Er, k(v(p)("inventory.transfer.receiveRequest.details.to")), 1),
1970
1969
  a("div", Lr, k(r.transferTo), 1)
1971
1970
  ])) : M("", !0),
1972
- (Ge = r.purchaseOrder) != null && Ge.ref ? (h(), N("div", Ur, [
1971
+ (We = r.purchaseOrder) != null && We.ref ? (h(), N("div", Ur, [
1973
1972
  a("div", Vr, k(v(p)("inventory.transfer.receiveRequest.details.reference")), 1),
1974
1973
  a("div", Mr, k(r.purchaseOrder.ref), 1)
1975
1974
  ])) : M("", !0),
1976
- (We = r.purchaseOrder) != null && We.remark ? (h(), N("div", jr, [
1975
+ (Ge = r.purchaseOrder) != null && Ge.remark ? (h(), N("div", jr, [
1977
1976
  a("div", Kr, k(v(p)("inventory.transfer.receiveRequest.details.remark")), 1),
1978
1977
  a("div", zr, k(r.purchaseOrder.remark), 1)
1979
1978
  ])) : M("", !0)
@@ -1991,10 +1990,10 @@ const Lt = { class: "flex flex-row-reverse" }, Ut = /* @__PURE__ */ pe({
1991
1990
  scope: r.scope
1992
1991
  }, null, 8, ["po-request", "purchaseOrder", "transferType", "transferToDbName", "scope"]),
1993
1992
  a("div", Hr, [
1994
- a("div", Gr, [
1995
- a("div", Wr, [
1996
- a("span", Qr, [
1997
- Ie(k(ye.value ? v(p)("inventory.transfer.receiveRequest.details.receivedItems") : v(p)("inventory.transfer.receiveRequest.details.requestedItems")) + " ", 1),
1993
+ a("div", Wr, [
1994
+ a("div", Gr, [
1995
+ a("span", Yr, [
1996
+ Fe(k(ye.value ? v(p)("inventory.transfer.receiveRequest.details.receivedItems") : v(p)("inventory.transfer.receiveRequest.details.requestedItems")) + " ", 1),
1998
1997
  (ne = (L = r.purchaseOrder) == null ? void 0 : L.netSuite) != null && ne.missingItems && ((_e = (ge = r.purchaseOrder) == null ? void 0 : ge.netSuite) == null ? void 0 : _e.missingItems.length) > 0 ? (h(), ae(f, {
1999
1998
  key: 0,
2000
1999
  variant: "rich",
@@ -2004,8 +2003,8 @@ const Lt = { class: "flex flex-row-reverse" }, Ut = /* @__PURE__ */ pe({
2004
2003
  content: se(() => {
2005
2004
  var U, P;
2006
2005
  return [
2007
- a("div", Yr, [
2008
- (h(!0), N(te, null, me((P = (U = r.purchaseOrder) == null ? void 0 : U.netSuite) == null ? void 0 : P.missingItems, (Q, ve) => (h(), N("div", {
2006
+ a("div", Qr, [
2007
+ (h(!0), N(te, null, me((P = (U = r.purchaseOrder) == null ? void 0 : U.netSuite) == null ? void 0 : P.missingItems, (Y, ve) => (h(), N("div", {
2009
2008
  class: "flex justify-center align-middle",
2010
2009
  key: ve
2011
2010
  }, [
@@ -2013,7 +2012,7 @@ const Lt = { class: "flex flex-row-reverse" }, Ut = /* @__PURE__ */ pe({
2013
2012
  name: "arrow_right",
2014
2013
  size: "sm"
2015
2014
  }),
2016
- Ie(" " + k(`(${Q.netSuiteId}) ${Q.name}: ${Q.reason}`), 1)
2015
+ Fe(" " + k(`(${Y.netSuiteId}) ${Y.name}: ${Y.reason}`), 1)
2017
2016
  ]))), 128))
2018
2017
  ])
2019
2018
  ];
@@ -2057,7 +2056,7 @@ const Lt = { class: "flex flex-row-reverse" }, Ut = /* @__PURE__ */ pe({
2057
2056
  ], 64)) : M("", !0)
2058
2057
  ])
2059
2058
  ])
2060
- ], 64)) : G.value.value === "deliveryHistory" ? (h(), N("div", os, [
2059
+ ], 64)) : W.value.value === "deliveryHistory" ? (h(), N("div", os, [
2061
2060
  ce.value.length ? (h(), N("div", ds, [
2062
2061
  (h(!0), N(te, null, me(ce.value, (U, P) => (h(), N(te, { key: P }, [
2063
2062
  a("div", ms, [
@@ -2106,25 +2105,25 @@ const Lt = { class: "flex flex-row-reverse" }, Ut = /* @__PURE__ */ pe({
2106
2105
  ])
2107
2106
  ]),
2108
2107
  a("div", ws, [
2109
- I(W, {
2108
+ I(G, {
2110
2109
  variant: "outlined",
2111
2110
  class: "py-12 px-16"
2112
2111
  }, {
2113
2112
  default: se(() => [
2114
2113
  a("div", Rs, [
2115
- (h(!0), N(te, null, me(U.info, (Q, ve) => (h(), N("div", {
2114
+ (h(!0), N(te, null, me(U.info, (Y, ve) => (h(), N("div", {
2116
2115
  key: ve,
2117
2116
  class: "flex flex-col gap-4"
2118
2117
  }, [
2119
- a("div", Os, k(Q == null ? void 0 : Q.label), 1),
2118
+ a("div", Os, k(Y == null ? void 0 : Y.label), 1),
2120
2119
  a("div", Ns, [
2121
- (h(!0), N(te, null, me(Q == null ? void 0 : Q.values, (he, Re) => (h(), N("div", {
2120
+ (h(!0), N(te, null, me(Y == null ? void 0 : Y.values, (he, Re) => (h(), N("div", {
2122
2121
  key: Re,
2123
2122
  class: "fm-typo-en-body-lg-600"
2124
2123
  }, [
2125
2124
  typeof he == "string" ? (h(), N(te, { key: 0 }, [
2126
- Ie(k(he), 1)
2127
- ], 64)) : (h(), ae(gt(he), { key: 1 }))
2125
+ Fe(k(he), 1)
2126
+ ], 64)) : (h(), ae(_t(he), { key: 1 }))
2128
2127
  ]))), 128))
2129
2128
  ])
2130
2129
  ]))), 128))
@@ -2199,9 +2198,9 @@ const Lt = { class: "flex flex-row-reverse" }, Ut = /* @__PURE__ */ pe({
2199
2198
  });
2200
2199
  export {
2201
2200
  Ue as P,
2202
- Us as _,
2203
- Es as a,
2204
- Ls as b,
2201
+ Ls as _,
2202
+ Bs as a,
2203
+ Es as b,
2205
2204
  $t as g,
2206
2205
  $e as u
2207
2206
  };