@feedmepos/mf-inventory-portal 0.0.23-dev.42 → 0.0.23-dev.44

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 (61) hide show
  1. package/dist/{App-Cr-n7HVf.js → App-Bu28H-qV.js} +66 -63
  2. package/dist/{ApprovalView-BYHDmt9W.js → ApprovalView-Cgb6Getu.js} +20 -20
  3. package/dist/{BindingsDialog-CI0nYM1_.js → BindingsDialog-DGtPuzr1.js} +2 -2
  4. package/dist/{BindingsPicker-BVzF3C8O.js → BindingsPicker-BamL3_Vk.js} +3 -3
  5. package/dist/{BindingsTable-B21_9L2o.js → BindingsTable-C9FeglE4.js} +1 -1
  6. package/dist/{ClosingDraftView-k2Vsz8-W.js → ClosingDraftView-C_B1u3g1.js} +47 -47
  7. package/dist/{ClosingTemplateView-BLda7tYC.js → ClosingTemplateView-BxK3yAV4.js} +21 -21
  8. package/dist/{FmCustomAttribute.vue_vue_type_script_setup_true_lang-DUDOaU6F.js → FmCustomAttribute.vue_vue_type_script_setup_true_lang-DAWPJ65s.js} +11 -11
  9. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CXuer_x5.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-D1PU7pae.js} +7 -7
  10. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-Ds3yBf9U.js → FmUnitInput.vue_vue_type_script_setup_true_lang-D1AIFe-0.js} +37 -37
  11. package/dist/{IngredientGroupView-CgZ4YT3i.js → IngredientGroupView-S7ps5Bsc.js} +1 -1
  12. package/dist/{IngredientsView-tPERrF9O.js → IngredientsView-BesGBkXM.js} +14 -15
  13. package/dist/{IntegrationView-CoF_rdWv.js → IntegrationView-Bkf7zGLw.js} +1 -1
  14. package/dist/{InventoryBindingForm-BSnofTIL.js → InventoryBindingForm-DHwTsR2G.js} +1 -1
  15. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-4d9oz7Xh.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-CseHejfD.js} +51 -51
  16. package/dist/{InventoryBindingSummary-qm9ZUFny.js → InventoryBindingSummary-COybHYsZ.js} +1 -1
  17. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CQY98Hj6.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Cgv6gv2x.js} +1 -1
  18. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-NUkiVop4.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BGJNkqYH.js} +6 -6
  19. package/dist/PublishView-2EcaLsU2.js +192 -0
  20. package/dist/{PurchaseOrderPrintPreview-CIWiq2NB.js → PurchaseOrderPrintPreview-DPFfFQQd.js} +5 -5
  21. package/dist/ReceiveRequestView-Dnl79p8h.js +1843 -0
  22. package/dist/{RecipeView-CzWlx1Xv.js → RecipeView-CmaMGv6N.js} +25 -25
  23. package/dist/{StockView-IPXGJNN8.js → StockView-CLw8un14.js} +121 -122
  24. package/dist/{SupplierView-DuL3NXc0.js → SupplierView-DLcZ6HDt.js} +11 -12
  25. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-82Bu89OE.js → TransferDetails.vue_vue_type_script_setup_true_lang-DgwS1KTx.js} +137 -137
  26. package/dist/{TransferTemplateView-BEaRafuO.js → TransferTemplateView-BRDq2_Zw.js} +81 -82
  27. package/dist/{UnitView-Cwo0mthQ.js → UnitView-rJrXqu8W.js} +14 -14
  28. package/dist/{WarehouseView-DzjQrpyv.js → WarehouseView-BwSLmicZ.js} +33 -33
  29. package/dist/api/inventory.d.ts +4 -0
  30. package/dist/{app-CpuFfqWF.js → app-F909rQ5n.js} +12512 -11478
  31. package/dist/app.d.ts +24 -0
  32. package/dist/app.js +1 -1
  33. package/dist/{decimal-bSGrDlvd.js → decimal-0pQSNdVz.js} +1 -1
  34. package/dist/{format-unit-display-D4gi2D-O.js → format-unit-display-CM40cl03.js} +60 -60
  35. package/dist/{index-Cn1ato-l.js → index-DzA11XLY.js} +88 -88
  36. package/dist/{index-COeURijn.js → index-rBUXpqWE.js} +3 -3
  37. package/dist/layout/SingleColumnLayout.vue.d.ts +1 -0
  38. package/dist/router/name.d.ts +1 -0
  39. package/dist/{stock-B1Rchi6n.js → stock-c68S1hmD.js} +3 -3
  40. package/dist/stores/feature.d.ts +34 -2
  41. package/dist/stores/location.d.ts +29 -1
  42. package/dist/{supplier-CeY_Gro-.js → supplier-CPuz6JVf.js} +1 -1
  43. package/dist/tsconfig.app.tsbuildinfo +1 -1
  44. package/dist/{use-inventory-binding-dialog-BXqY40wn.js → use-inventory-binding-dialog-DjlU5nUb.js} +1 -1
  45. package/dist/views/adjustment-template/wastage-template/actions.d.ts +48 -0
  46. package/dist/views/adjustment-template/wastage-template/table.d.ts +48 -0
  47. package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +8 -0
  48. package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +48 -0
  49. package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +48 -0
  50. package/dist/views/closing-template/composables/use-closing-template-table.d.ts +48 -0
  51. package/dist/views/publish/PublishView.vue.d.ts +2 -0
  52. package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +16 -0
  53. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +24 -0
  54. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +24 -0
  55. package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations.d.ts +4 -0
  56. package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +48 -0
  57. package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +48 -0
  58. package/dist/vue-i18n-BiavdzKQ.js +2365 -0
  59. package/package.json +1 -1
  60. package/dist/ReceiveRequestView-Dgt3FeGb.js +0 -4205
  61. package/dist/feature-D8aRYGen.js +0 -962
@@ -1,12 +1,11 @@
1
- import { ref as V, computed as Y, h as oe, defineComponent as _e, unref as i, openBlock as g, createElementBlock as D, createElementVNode as e, toDisplayString as S, createCommentVNode as T, resolveComponent as J, createVNode as U, createBlock as W, isRef as Ge, withCtx as de, Fragment as ne, normalizeClass as ye, createTextVNode as Te, renderList as pe } from "vue";
2
- import { W as He, u as be, aF as k, a1 as ze, a3 as Ye, a4 as Qe, ah as We, d as xe, e as Ie, aq as B, T as Fe, aG as Je, Y as Se, K as he, i as fe, aH as Be, a8 as ge, f as Pe, D as K, h as F, b as Me, a2 as Ze, an as Ce, a0 as $e, ad as Ee } from "./app-CpuFfqWF.js";
1
+ import { ref as K, computed as Y, h as oe, defineComponent as _e, unref as i, openBlock as g, createElementBlock as D, createElementVNode as e, toDisplayString as S, createCommentVNode as x, resolveComponent as Z, createVNode as U, createBlock as W, isRef as Ge, withCtx as de, Fragment as ne, normalizeClass as ye, createTextVNode as xe, renderList as pe } from "vue";
2
+ import { X as He, u as be, aG as k, a2 as ze, a4 as Ye, a5 as Qe, ai as We, e as Te, f as Ie, ar as B, V as Fe, c as Be, aH as Ze, Z as Se, L as he, j as fe, aI as Me, a9 as ge, h as Pe, D as V, i as F, b as Ue, a3 as Je, ao as Ce, a1 as $e, ae as Ee } from "./app-F909rQ5n.js";
3
3
  import { useDialog as we, useSnackbar as Re, useProxiedModel as Xe } from "@feedmepos/ui-library";
4
- import { u as Ue } from "./feature-D8aRYGen.js";
5
- import { b as et, u as tt, f as Le, P as ie } from "./format-unit-display-D4gi2D-O.js";
6
- import { F as rt } from "./decimal-bSGrDlvd.js";
4
+ import { b as et, u as tt, f as Le, P as ie } from "./format-unit-display-CM40cl03.js";
5
+ import { F as rt } from "./decimal-0pQSNdVz.js";
7
6
  import { useI18n as je } from "@feedmepos/mf-common";
8
7
  import { E as st } from "./empty-placeholder-wf6-BWE8.js";
9
- const Ke = He((v, y) => {
8
+ const Ve = He((v, y) => {
10
9
  const b = be();
11
10
  return {
12
11
  async readRequests(r) {
@@ -37,7 +36,7 @@ const Ke = He((v, y) => {
37
36
  return await y.put(c, r);
38
37
  }
39
38
  };
40
- }), Ve = {
39
+ }), Ke = {
41
40
  [k.enum.confirmDraft]: {
42
41
  primaryActions: {
43
42
  text: "Confirm draft",
@@ -94,9 +93,9 @@ const Ke = He((v, y) => {
94
93
  message: "Purchase order will be rejected.",
95
94
  successMessage: "Purchase order has been rejected"
96
95
  }
97
- }, ve = V();
98
- function $r(v, y) {
99
- const b = we(), r = be(), O = Ue(), c = et(), R = tt(), l = V(!1), h = Re(), o = Ke(), s = V(new Array()), u = V(
96
+ }, ve = K();
97
+ function Cr(v, y) {
98
+ const b = we(), r = be(), O = Be(), c = et(), R = tt(), l = K(!1), h = Re(), o = Ve(), s = K(new Array()), u = K(
100
99
  y != null && y.startDate && (y != null && y.endDate) ? y : ze()
101
100
  ), m = Y(() => {
102
101
  const p = new Date(u.value.startDate), d = new Date(u.value.endDate);
@@ -104,11 +103,11 @@ function $r(v, y) {
104
103
  start: Ye(p).toISOString(),
105
104
  end: Qe(d).toISOString()
106
105
  };
107
- }), f = V(new Array()), C = We(), z = V(null);
106
+ }), f = K(new Array()), C = We(), z = K(null);
108
107
  async function te(p) {
109
108
  function d(n) {
110
109
  const _ = {
111
- mode: xe.CREATE,
110
+ mode: Te.CREATE,
112
111
  modelValue: p || void 0,
113
112
  show: !0,
114
113
  "onUpdate:show"(w) {
@@ -119,31 +118,32 @@ function $r(v, y) {
119
118
  };
120
119
  ve.value = _;
121
120
  }
122
- let q;
121
+ let A;
123
122
  O.mustUsePoTemplate && !(p != null && p.template) ? b.open({
124
- title: "Create Purchase Order",
123
+ title: "Create transfer",
125
124
  message: "",
126
125
  primaryActions: {
127
- text: "Select a Template",
126
+ text: "Select a template",
128
127
  close: !0
129
128
  },
130
129
  secondaryActions: {
131
- text: "Without Template",
130
+ text: "Outlet to Outlet",
131
+ variant: "secondary",
132
132
  close: !0
133
133
  }
134
134
  }).onPrimary(async () => {
135
- q = await c.getTemplateId(), q && d(q);
135
+ A = await c.getTemplateId(), A && d(A);
136
136
  }).onSecondary(() => {
137
137
  d(void 0);
138
- }) : d(q);
138
+ }) : d(A);
139
139
  }
140
140
  function ce(p) {
141
141
  const d = {
142
- mode: xe.UPDATE,
142
+ mode: Te.UPDATE,
143
143
  modelValue: Ie(p),
144
144
  show: !0,
145
- "onUpdate:show"(q) {
146
- ve.value.show = q;
145
+ "onUpdate:show"(A) {
146
+ ve.value.show = A;
147
147
  },
148
148
  lastClosingDate: z.value
149
149
  };
@@ -152,9 +152,9 @@ function $r(v, y) {
152
152
  async function G() {
153
153
  s.value = [], l.value = !0;
154
154
  try {
155
- s.value = await o.getPurchaseOrders(m.value).then((q) => q.sort((n, _) => _._id.localeCompare(n._id)));
155
+ s.value = await o.getPurchaseOrders(m.value).then((A) => A.sort((n, _) => _._id.localeCompare(n._id)));
156
156
  const p = await C.readLastClosing(!0), d = p == null ? void 0 : p._id;
157
- d && (z.value = Je(d)), O.mustUsePoTemplate && await R.fetchTemplates();
157
+ d && (z.value = Ze(d)), O.mustUsePoTemplate && await R.fetchTemplates();
158
158
  } catch {
159
159
  h.open({
160
160
  title: "Something went wrong",
@@ -179,7 +179,7 @@ function $r(v, y) {
179
179
  l.value = !1;
180
180
  }
181
181
  }
182
- function Z() {
182
+ function J() {
183
183
  switch (v) {
184
184
  case "receive/request":
185
185
  return G();
@@ -191,20 +191,20 @@ function $r(v, y) {
191
191
  u.value = {
192
192
  startDate: p,
193
193
  endDate: d
194
- }, Z();
194
+ }, J();
195
195
  }
196
196
  r.watchLocation(async (p) => {
197
197
  if (!p) {
198
198
  s.value = [];
199
199
  return;
200
200
  }
201
- await Z();
201
+ await J();
202
202
  });
203
- const X = V(), t = V(Math.random().toString());
203
+ const X = K(), t = K(Math.random().toString());
204
204
  async function a(p, d) {
205
205
  var w, $;
206
- const q = Math.random().toString();
207
- t.value = q;
206
+ const A = Math.random().toString();
207
+ t.value = A;
208
208
  const n = v === "receive/request" ? r.currentLocation : d == null ? void 0 : d.to, _ = {
209
209
  poRequest: d,
210
210
  purchaseOrder: p,
@@ -213,8 +213,8 @@ function $r(v, y) {
213
213
  show: !0,
214
214
  canResubmit: !1,
215
215
  canApprove: v === "approval",
216
- "onUpdate:show"(x) {
217
- X.value.show = x;
216
+ "onUpdate:show"(T) {
217
+ X.value.show = T;
218
218
  }
219
219
  };
220
220
  if (X.value = _, !(d || p.status !== B.enum.REQUESTING)) {
@@ -225,10 +225,10 @@ function $r(v, y) {
225
225
  } catch {
226
226
  console.error("Error at fetching po request to check");
227
227
  }
228
- q === t.value && (X.value.canResubmit = !d, X.value.transferTo = (w = d == null ? void 0 : d.to) == null ? void 0 : w.name, X.value.transferToDbName = ($ = d == null ? void 0 : d.to) == null ? void 0 : $.dbName);
228
+ A === t.value && (X.value.canResubmit = !d, X.value.transferTo = (w = d == null ? void 0 : d.to) == null ? void 0 : w.name, X.value.transferToDbName = ($ = d == null ? void 0 : d.to) == null ? void 0 : $.dbName);
229
229
  }
230
230
  }
231
- async function P(p, d, q, n) {
231
+ async function P(p, d, A, n) {
232
232
  l.value = !0;
233
233
  try {
234
234
  await o.processPurchaseOrder(
@@ -248,11 +248,11 @@ function $r(v, y) {
248
248
  const w = be().currentLocationDBName.startsWith("restaurant_");
249
249
  d === k.enum.confirmDraft && p.effectiveAt && w ? h.open({
250
250
  title: "Success",
251
- message: `${q}. The backdate will be reflected once your POS has received this change.`,
251
+ message: `${A}. The backdate will be reflected once your POS has received this change.`,
252
252
  type: "success"
253
253
  }) : h.open({
254
254
  title: "Success",
255
- message: q,
255
+ message: A,
256
256
  type: "success"
257
257
  });
258
258
  } catch (_) {
@@ -262,11 +262,11 @@ function $r(v, y) {
262
262
  type: "error"
263
263
  }), console.error("Error when submitting PO operation", d, p, _);
264
264
  } finally {
265
- l.value = !1, Z();
265
+ l.value = !1, J();
266
266
  }
267
267
  }
268
- async function N(p, d, q) {
269
- const n = Ve[d];
268
+ async function N(p, d, A) {
269
+ const n = Ke[d];
270
270
  if (!n) {
271
271
  h.open({
272
272
  title: "Something went wrong",
@@ -281,14 +281,14 @@ function $r(v, y) {
281
281
  message: w.message,
282
282
  primaryActions: w.primaryActions
283
283
  }).onPrimary(() => {
284
- P(p, d, _, q);
284
+ P(p, d, _, A);
285
285
  });
286
286
  }
287
287
  return {
288
288
  purchaseOrders: s,
289
289
  purchaseRequests: f,
290
290
  updateDateRange: re,
291
- fetchData: Z,
291
+ fetchData: J,
292
292
  loading: l,
293
293
  transferDialogProps: ve,
294
294
  promptCreateTransferDialog: te,
@@ -339,7 +339,7 @@ function nt(v, y) {
339
339
  received: C
340
340
  };
341
341
  }), h = v.deliveryOrder.map((u) => ({
342
- createdAt: Be(new Date(u.createdAt)),
342
+ createdAt: Me(new Date(u.createdAt)),
343
343
  ref: u.deliveryOrderNumber,
344
344
  remark: u.remark || "",
345
345
  items: u.received.map((m) => {
@@ -406,37 +406,37 @@ const me = {
406
406
  value: k.enum.completeReceive
407
407
  }
408
408
  };
409
- function Er(v, y) {
409
+ function $r(v, y) {
410
410
  const b = be(), { t: r } = je();
411
411
  function O(s) {
412
412
  switch (s.status) {
413
413
  case "DRAFT":
414
414
  return [
415
- K[F.Update],
416
- K[F.Details],
415
+ V[F.Update],
416
+ V[F.Details],
417
417
  s.supplier.internal === "restaurant" || s.supplier.internal === "warehouse" ? me[k.enum.submitRequest] : me[k.enum.confirmDraft],
418
418
  me[k.enum.cancelDraft],
419
- K[F.Print]
419
+ V[F.Print]
420
420
  ];
421
421
  case "RECEIVING":
422
422
  return [
423
423
  me[k.enum.completeReceive],
424
- K[F.Details],
425
- K[F.Print]
424
+ V[F.Details],
425
+ V[F.Print]
426
426
  ];
427
427
  case "REQUESTING":
428
- return v === "receive/request" ? [K[F.Details], K[F.Print]] : [
428
+ return v === "receive/request" ? [V[F.Details], V[F.Print]] : [
429
429
  me[k.enum.approveRequest],
430
430
  me[k.enum.rejectRequest],
431
- K[F.Details],
432
- K[F.Print]
431
+ V[F.Details],
432
+ V[F.Print]
433
433
  ];
434
434
  case "PROCESSING":
435
- return [K[F.Details], K[F.Print]];
435
+ return [V[F.Details], V[F.Print]];
436
436
  case "COMPLETE":
437
437
  case "CANCEL":
438
438
  default:
439
- return [K[F.Details], K[F.Print]];
439
+ return [V[F.Details], V[F.Print]];
440
440
  }
441
441
  }
442
442
  function c(s) {
@@ -638,7 +638,7 @@ const ot = {
638
638
  isTransferBetweenOutlets: { type: Boolean }
639
639
  },
640
640
  setup(v) {
641
- const y = v, b = Me(), r = Y(
641
+ const y = v, b = Ue(), r = Y(
642
642
  () => {
643
643
  var c, R, l, h, o, s;
644
644
  return b.getLocationSubsidiary(
@@ -653,25 +653,25 @@ const ot = {
653
653
  }).join(", ") : "-";
654
654
  });
655
655
  return (c, R) => {
656
- var l, h, o, s, u, m, f, C, z, te, ce, G, ue, Z;
656
+ var l, h, o, s, u, m, f, C, z, te, ce, G, ue, J;
657
657
  return i(b).isEnabled ? (g(), D("div", ot, [
658
658
  e("div", lt, [
659
659
  R[0] || (R[0] = e("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, "NetSuite subsidiary", -1)),
660
660
  e("div", it, S(r.value || "-"), 1)
661
661
  ]),
662
- c.isTransferBetweenOutlets ? T("", !0) : (g(), D("div", ct, [
662
+ c.isTransferBetweenOutlets ? x("", !0) : (g(), D("div", ct, [
663
663
  e("div", ut, " NetSuite " + S(c.transferType === i(ie).PURCHASE ? "Purchase Order" : "Transfer Order") + " (ID) ", 1),
664
664
  e("div", dt, S(c.poRequest ? (h = (l = c.poRequest) == null ? void 0 : l.netSuite) == null ? void 0 : h.refNo : (s = (o = c.purchaseOrder) == null ? void 0 : o.netSuite) == null ? void 0 : s.refNo) + " (" + S(c.poRequest ? (m = (u = c.poRequest) == null ? void 0 : u.netSuite) == null ? void 0 : m.id : (C = (f = c.purchaseOrder) == null ? void 0 : f.netSuite) == null ? void 0 : C.id) + ") ", 1)
665
665
  ])),
666
666
  (ce = (te = (z = c.purchaseOrder) == null ? void 0 : z.netSuite) == null ? void 0 : te.additionalInfo) != null && ce.transactionnumber ? (g(), D("div", mt, [
667
667
  R[1] || (R[1] = e("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " NetSuite Transaction Number ", -1)),
668
- e("div", ft, S((Z = (ue = (G = c.purchaseOrder) == null ? void 0 : G.netSuite) == null ? void 0 : ue.additionalInfo) == null ? void 0 : Z.transactionnumber), 1)
669
- ])) : T("", !0),
668
+ e("div", ft, S((J = (ue = (G = c.purchaseOrder) == null ? void 0 : G.netSuite) == null ? void 0 : ue.additionalInfo) == null ? void 0 : J.transactionnumber), 1)
669
+ ])) : x("", !0),
670
670
  i(b).isEnabled && c.transferType === i(ie).TRANSFER && !c.isTransferBetweenOutlets ? (g(), D("div", pt, [
671
671
  R[2] || (R[2] = e("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " NetSuite fulfillment IDs ", -1)),
672
672
  e("div", vt, S(O.value), 1)
673
- ])) : T("", !0)
674
- ])) : T("", !0);
673
+ ])) : x("", !0)
674
+ ])) : x("", !0);
675
675
  };
676
676
  }
677
677
  }), ht = {
@@ -685,7 +685,7 @@ const ot = {
685
685
  isTransferBetweenOutlets: { type: Boolean }
686
686
  },
687
687
  setup(v) {
688
- const y = v, b = Me(), r = Re(), O = we(), c = V(!1), R = Y(() => {
688
+ const y = v, b = Ue(), r = Re(), O = we(), c = K(!1), R = Y(() => {
689
689
  var u, m, f, C;
690
690
  let h = !0;
691
691
  b.isEnabled || (h = !1);
@@ -742,7 +742,7 @@ const ot = {
742
742
  });
743
743
  }
744
744
  return (h, o) => {
745
- const s = J("FmButton");
745
+ const s = Z("FmButton");
746
746
  return R.value ? (g(), D("div", ht, [
747
747
  U(s, {
748
748
  "prepend-icon": "sync",
@@ -751,13 +751,13 @@ const ot = {
751
751
  loading: c.value,
752
752
  onClick: l
753
753
  }, null, 8, ["loading"])
754
- ])) : T("", !0);
754
+ ])) : x("", !0);
755
755
  };
756
756
  }
757
- }), gt = { class: "flex flex-col gap-16 w-full h-full" }, St = { class: "flex justify-between" }, _t = { class: "fm-typo-en-body-lg-600" }, wt = { class: "flex flex-col gap-8" }, Rt = { class: "flex flex-col gap-4" }, Ot = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Dt = { class: "flex gap-1" }, kt = { class: "fm-typo-en-body-lg-600" }, qt = {
757
+ }), gt = { class: "flex flex-col gap-16 w-full h-full" }, St = { class: "flex justify-between" }, _t = { class: "fm-typo-en-body-lg-600" }, wt = { class: "flex flex-col gap-8" }, Rt = { class: "flex flex-col gap-4" }, Ot = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Dt = { class: "flex gap-1" }, kt = { class: "fm-typo-en-body-lg-600" }, At = {
758
758
  key: 0,
759
759
  class: "flex flex-col gap-4"
760
- }, At = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Nt = { class: "fm-typo-en-body-lg-600" }, Tt = { class: "flex flex-col gap-4" }, xt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Pt = { class: "fm-typo-en-body-lg-600" }, Ct = {
760
+ }, qt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Nt = { class: "fm-typo-en-body-lg-600" }, xt = { class: "flex flex-col gap-4" }, Tt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Pt = { class: "fm-typo-en-body-lg-600" }, Ct = {
761
761
  key: 1,
762
762
  class: "flex flex-col gap-4"
763
763
  }, $t = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Et = { class: "fm-typo-en-body-lg-600" }, It = {
@@ -769,7 +769,7 @@ const ot = {
769
769
  }, Ut = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Lt = { class: "fm-typo-en-body-lg-600" }, jt = {
770
770
  key: 4,
771
771
  class: "flex flex-col gap-4"
772
- }, Kt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Vt = { class: "fm-typo-en-body-lg-600" }, Gt = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg p-16" }, Ht = { class: "flex flex-col gap-8" }, zt = { class: "fm-typo-en-body-lg-600" }, Yt = { class: "flex gap-8" }, Qt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary flex flex-col gap-4" }, Wt = { class: "flex w-full gap-4" }, Jt = { class: "basis-1/2 shrink-0 grow fm-typo-en-body-lg-400 line-clamp-2" }, Zt = { class: "fm-typo-en-body-lg-600 line-clamp-2" }, Xt = { class: "flex w-full gap-4 fm-typo-en-body-sm-400" }, er = { class: "grow fm-typo-en-body-lg-400 text-fm-color-typo-secondary line-clamp-1" }, tr = {
772
+ }, Vt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Kt = { class: "fm-typo-en-body-lg-600" }, Gt = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg p-16" }, Ht = { class: "flex flex-col gap-8" }, zt = { class: "fm-typo-en-body-lg-600" }, Yt = { class: "flex gap-8" }, Qt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary flex flex-col gap-4" }, Wt = { class: "flex w-full gap-4" }, Zt = { class: "basis-1/2 shrink-0 grow fm-typo-en-body-lg-400 line-clamp-2" }, Jt = { class: "fm-typo-en-body-lg-600 line-clamp-2" }, Xt = { class: "flex w-full gap-4 fm-typo-en-body-sm-400" }, er = { class: "grow fm-typo-en-body-lg-400 text-fm-color-typo-secondary line-clamp-1" }, tr = {
773
773
  key: 0,
774
774
  class: "line-clamp-1 fm-typo-en-body-lg-400 text-fm-color-typo-secondary"
775
775
  }, rr = { class: "py-8" }, sr = { class: "flex justify-end gap-4 items-center" }, ar = { class: "fm-typo-en-body-lg-600" }, nr = {
@@ -793,7 +793,7 @@ const ot = {
793
793
  }, Sr = { class: "flex-1 flex flex-col items-center" }, _r = {
794
794
  class: "py-12 flex flex-col gap-4 flex-1",
795
795
  name: "delivery details"
796
- }, wr = { class: "flex flex-col gap-8" }, Rr = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Or = { class: "flex flex-col gap-4" }, Dr = { class: "flex gap-8 xs:flex-col" }, Ir = /* @__PURE__ */ _e({
796
+ }, wr = { class: "flex flex-col gap-8" }, Rr = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Or = { class: "flex flex-col gap-4" }, Dr = { class: "flex gap-8 xs:flex-col" }, Er = /* @__PURE__ */ _e({
797
797
  __name: "TransferDetails",
798
798
  props: {
799
799
  poRequest: {},
@@ -806,7 +806,7 @@ const ot = {
806
806
  },
807
807
  emits: ["update:show", "submitted"],
808
808
  setup(v, { emit: y }) {
809
- const b = v, r = y, O = we(), c = Re(), R = Ue(), { t: l } = je(), h = Y(
809
+ const b = v, r = y, O = we(), c = Re(), R = Be(), { t: l } = je(), h = Y(
810
810
  () => {
811
811
  var t, a, P, N;
812
812
  return ((a = (t = b.purchaseOrder) == null ? void 0 : t.supplier) == null ? void 0 : a.internal) === "restaurant" || ((N = (P = b.purchaseOrder) == null ? void 0 : P.supplier) == null ? void 0 : N.internal) === "warehouse" ? ie.TRANSFER : ie.PURCHASE;
@@ -823,7 +823,7 @@ const ot = {
823
823
  label: l("inventory.transfer.receiveRequest.details.deliveryHistory"),
824
824
  value: "deliveryHistory"
825
825
  }
826
- ], u = V(s[0]), m = V(!1), f = V(""), C = V(!0), z = Ke(), te = Xe(b, "show");
826
+ ], u = K(s[0]), m = K(!1), f = K(""), C = K(!0), z = Ve(), te = Xe(b, "show");
827
827
  async function ce(t, a, P) {
828
828
  f.value = a, m.value = !0, C.value = !1;
829
829
  try {
@@ -856,7 +856,7 @@ const ot = {
856
856
  }
857
857
  }
858
858
  async function G(t) {
859
- const a = Ve[t];
859
+ const a = Ke[t];
860
860
  if (!a) {
861
861
  c.open({
862
862
  title: "Something went wrong",
@@ -877,8 +877,8 @@ const ot = {
877
877
  const ue = Y(() => {
878
878
  var t, a;
879
879
  return ((t = b.purchaseOrder) == null ? void 0 : t.status) === B.enum.RECEIVING || ((a = b.purchaseOrder) == null ? void 0 : a.status) === B.enum.COMPLETE;
880
- }), Z = Y(() => {
881
- var d, q, n;
880
+ }), J = Y(() => {
881
+ var d, A, n;
882
882
  const P = (((d = b.purchaseOrder) == null ? void 0 : d.deliveryOrder) ?? []).flatMap((_) => _.received ?? []).reduce(
883
883
  (_, w) => {
884
884
  const $ = _[w.sku._id] ?? [];
@@ -887,23 +887,23 @@ const ot = {
887
887
  {}
888
888
  ), N = Object.entries(P).reduce(
889
889
  (_, [w, $]) => {
890
- const x = $.reduce((L, j) => {
891
- const Q = Ze(
890
+ const T = $.reduce((L, j) => {
891
+ const Q = Je(
892
892
  L,
893
893
  Math.max(L.precision, j.amount.precision)
894
894
  );
895
895
  return Se(Q, j.amount);
896
896
  }, he(0));
897
- return _[w] = x, _;
897
+ return _[w] = T, _;
898
898
  },
899
899
  {}
900
- ), p = ((q = b.purchaseOrder) == null ? void 0 : q.items) ?? [];
900
+ ), p = ((A = b.purchaseOrder) == null ? void 0 : A.items) ?? [];
901
901
  for (const _ of p)
902
902
  N[n = _.sku._id] ?? (N[n] = he(0));
903
903
  return N;
904
904
  }), re = Y(() => {
905
- var d, q;
906
- const t = ((d = b.purchaseOrder) == null ? void 0 : d.deliveryOrder) ?? [], a = ((q = b.purchaseOrder) == null ? void 0 : q.deliveryFullfillment) ?? [], P = [
905
+ var d, A;
906
+ const t = ((d = b.purchaseOrder) == null ? void 0 : d.deliveryOrder) ?? [], a = ((A = b.purchaseOrder) == null ? void 0 : A.deliveryFullfillment) ?? [], P = [
907
907
  ...t.map((n) => ({
908
908
  createdAt: n.createdAt,
909
909
  type: "grn",
@@ -917,7 +917,7 @@ const ot = {
917
917
  ];
918
918
  P.reverse().sort((n, _) => n.createdAt.localeCompare(_.createdAt));
919
919
  function N(n) {
920
- var w, $, x, L, j, Q, se;
920
+ var w, $, T, L, j, Q, se;
921
921
  const _ = a.findIndex((M) => M.id === n.fullfillmentId);
922
922
  return {
923
923
  header: "Received",
@@ -946,7 +946,7 @@ const ot = {
946
946
  label: "Fulfilment's sequence",
947
947
  values: [`${_ + 1}`]
948
948
  } : null,
949
- (x = ($ = a[_]) == null ? void 0 : $.netSuite) != null && x.refNo ? {
949
+ (T = ($ = a[_]) == null ? void 0 : $.netSuite) != null && T.refNo ? {
950
950
  label: "Fulfillment's ref no. (Netsuite)",
951
951
  values: [(j = (L = a[_]) == null ? void 0 : L.netSuite) == null ? void 0 : j.refNo]
952
952
  } : null,
@@ -959,7 +959,7 @@ const ot = {
959
959
  }
960
960
  function p(n) {
961
961
  var w, $;
962
- const _ = a.findIndex((x) => x.id === n.id);
962
+ const _ = a.findIndex((T) => T.id === n.id);
963
963
  return {
964
964
  header: "Fulfillment",
965
965
  date: Ee(new Date(n.createdAt)),
@@ -970,16 +970,16 @@ const ot = {
970
970
  },
971
971
  {
972
972
  label: "Receiveable items",
973
- values: n.items.map((x) => {
973
+ values: n.items.map((T) => {
974
974
  var L;
975
- return `(${x.sku.code}) ${x.sku.name}: ${fe(x.amount, !1)} ${((L = x.measurement) == null ? void 0 : L.abbrev) ?? x.sku.unit.abbrev}`;
975
+ return `(${T.sku.code}) ${T.sku.name}: ${fe(T.amount, !1)} ${((L = T.measurement) == null ? void 0 : L.abbrev) ?? T.sku.unit.abbrev}`;
976
976
  })
977
977
  },
978
978
  (w = n.netSuite) != null && w.refNo ? {
979
979
  label: "Ref no. (Netsuite)",
980
980
  values: [($ = n.netSuite) == null ? void 0 : $.refNo]
981
981
  } : null
982
- ].filter((x) => x)
982
+ ].filter((T) => T)
983
983
  };
984
984
  }
985
985
  return P.map((n) => {
@@ -1002,10 +1002,10 @@ const ot = {
1002
1002
  }), t)) ?? t;
1003
1003
  });
1004
1004
  return (t, a) => {
1005
- var x, L;
1006
- const P = J("FmButtonGroup"), N = J("FmChip"), p = J("FmMenuDivider"), d = J("FmCard"), q = J("FmIcon"), n = J("FmTooltip"), _ = J("FmSpacer"), w = J("FmButton"), $ = J("FmSideSheet");
1005
+ var T, L;
1006
+ const P = Z("FmButtonGroup"), N = Z("FmChip"), p = Z("FmMenuDivider"), d = Z("FmCard"), A = Z("FmIcon"), n = Z("FmTooltip"), _ = Z("FmSpacer"), w = Z("FmButton"), $ = Z("FmSideSheet");
1007
1007
  return g(), W($, {
1008
- header: i(l)("inventory.transfer.receiveRequest.details.title") + ((x = t.purchaseOrder) != null && x.seqNumber ? ` #${(L = t.purchaseOrder) == null ? void 0 : L.seqNumber}` : ""),
1008
+ header: i(l)("inventory.transfer.receiveRequest.details.title") + ((T = t.purchaseOrder) != null && T.seqNumber ? ` #${(L = t.purchaseOrder) == null ? void 0 : L.seqNumber}` : ""),
1009
1009
  modelValue: i(te),
1010
1010
  "onUpdate:modelValue": a[9] || (a[9] = (j) => Ge(te) ? te.value = j : null),
1011
1011
  "dismiss-away": C.value,
@@ -1025,7 +1025,7 @@ const ot = {
1025
1025
  U(P, {
1026
1026
  items: s,
1027
1027
  modelValue: u.value,
1028
- "onUpdate:modelValue": a[0] || (a[0] = (A) => u.value = A)
1028
+ "onUpdate:modelValue": a[0] || (a[0] = (q) => u.value = q)
1029
1029
  }, null, 8, ["modelValue"])
1030
1030
  ]),
1031
1031
  u.value.value === "overview" ? (g(), D(ne, { key: 0 }, [
@@ -1035,13 +1035,13 @@ const ot = {
1035
1035
  class: "flex flex-col gap-8 px-12 py-16"
1036
1036
  }, {
1037
1037
  default: de(() => {
1038
- var A, E, I, ee, le, H, Oe, De, ke, qe, Ae, Ne;
1038
+ var q, E, I, ee, le, H, Oe, De, ke, Ae, qe, Ne;
1039
1039
  return [
1040
1040
  e("div", St, [
1041
1041
  e("div", _t, S(i(l)("inventory.transfer.receiveRequest.details.requestSummary")), 1),
1042
1042
  e("div", null, [
1043
1043
  U(N, {
1044
- label: i(l)(`inventory.transfer.status.${(A = t.purchaseOrder) == null ? void 0 : A.status}`),
1044
+ label: i(l)(`inventory.transfer.status.${(q = t.purchaseOrder) == null ? void 0 : q.status}`),
1045
1045
  class: ye(`fm-status-badge fm-status-badge-${(I = (E = t.purchaseOrder) == null ? void 0 : E.status) == null ? void 0 : I.toLocaleLowerCase("en-us")}`),
1046
1046
  compact: ""
1047
1047
  }, null, 8, ["label", "class"])
@@ -1055,24 +1055,24 @@ const ot = {
1055
1055
  ]),
1056
1056
  e("div", kt, S(i(ge)(((ee = t.purchaseOrder) == null ? void 0 : ee._id) ?? "")), 1)
1057
1057
  ]),
1058
- (le = t.purchaseOrder) != null && le.effectiveAt ? (g(), D("div", qt, [
1059
- e("div", At, S(i(l)("inventory.transfer.receiveRequest.details.backdatedTo")), 1),
1060
- e("div", Nt, S(i(Be)(new Date((H = t.purchaseOrder) == null ? void 0 : H.effectiveAt))), 1)
1061
- ])) : T("", !0),
1062
- e("div", Tt, [
1063
- e("div", xt, S(i(l)("inventory.transfer.receiveRequest.details.type.title")), 1),
1058
+ (le = t.purchaseOrder) != null && le.effectiveAt ? (g(), D("div", At, [
1059
+ e("div", qt, S(i(l)("inventory.transfer.receiveRequest.details.backdatedTo")), 1),
1060
+ e("div", Nt, S(i(Me)(new Date((H = t.purchaseOrder) == null ? void 0 : H.effectiveAt))), 1)
1061
+ ])) : x("", !0),
1062
+ e("div", xt, [
1063
+ e("div", Tt, S(i(l)("inventory.transfer.receiveRequest.details.type.title")), 1),
1064
1064
  e("div", Pt, S(i(l)(
1065
1065
  `inventory.transfer.receiveRequest.details.type.${h.value.toLocaleLowerCase("en-US")}`
1066
1066
  )), 1)
1067
1067
  ]),
1068
1068
  (De = (Oe = t.purchaseOrder) == null ? void 0 : Oe.supplier) != null && De.name ? (g(), D("div", Ct, [
1069
1069
  e("div", $t, S(i(l)("inventory.transfer.receiveRequest.details.from")), 1),
1070
- e("div", Et, S((qe = (ke = t.purchaseOrder) == null ? void 0 : ke.supplier) == null ? void 0 : qe.name), 1)
1071
- ])) : T("", !0),
1070
+ e("div", Et, S((Ae = (ke = t.purchaseOrder) == null ? void 0 : ke.supplier) == null ? void 0 : Ae.name), 1)
1071
+ ])) : x("", !0),
1072
1072
  t.transferTo ? (g(), D("div", It, [
1073
1073
  e("div", Ft, S(i(l)("inventory.transfer.receiveRequest.details.to")), 1),
1074
1074
  e("div", Bt, S(t.transferTo), 1)
1075
- ])) : T("", !0),
1075
+ ])) : x("", !0),
1076
1076
  U(yt, {
1077
1077
  "po-request": t.poRequest,
1078
1078
  "purchase-order": t.purchaseOrder,
@@ -1080,14 +1080,14 @@ const ot = {
1080
1080
  "transfer-to-db-name": t.transferToDbName,
1081
1081
  "is-transfer-between-outlets": o.value
1082
1082
  }, null, 8, ["po-request", "purchase-order", "transfer-type", "transfer-to-db-name", "is-transfer-between-outlets"]),
1083
- (Ae = t.purchaseOrder) != null && Ae.ref ? (g(), D("div", Mt, [
1083
+ (qe = t.purchaseOrder) != null && qe.ref ? (g(), D("div", Mt, [
1084
1084
  e("div", Ut, S(i(l)("inventory.transfer.receiveRequest.details.reference")), 1),
1085
1085
  e("div", Lt, S(t.purchaseOrder.ref), 1)
1086
- ])) : T("", !0),
1086
+ ])) : x("", !0),
1087
1087
  (Ne = t.purchaseOrder) != null && Ne.remark ? (g(), D("div", jt, [
1088
- e("div", Kt, S(i(l)("inventory.transfer.receiveRequest.details.remark")), 1),
1089
- e("div", Vt, S(t.purchaseOrder.remark), 1)
1090
- ])) : T("", !0)
1088
+ e("div", Vt, S(i(l)("inventory.transfer.receiveRequest.details.remark")), 1),
1089
+ e("div", Kt, S(t.purchaseOrder.remark), 1)
1090
+ ])) : x("", !0)
1091
1091
  ])
1092
1092
  ];
1093
1093
  }),
@@ -1098,7 +1098,7 @@ const ot = {
1098
1098
  e("div", Ht, [
1099
1099
  e("div", zt, [
1100
1100
  e("div", Yt, [
1101
- Te(S(ue.value ? i(l)("inventory.transfer.receiveRequest.details.receivedItems") : i(l)("inventory.transfer.receiveRequest.details.requestedItems")) + " ", 1),
1101
+ xe(S(ue.value ? i(l)("inventory.transfer.receiveRequest.details.receivedItems") : i(l)("inventory.transfer.receiveRequest.details.requestedItems")) + " ", 1),
1102
1102
  (Q = (j = t.purchaseOrder) == null ? void 0 : j.netSuite) != null && Q.missingItems && ((M = (se = t.purchaseOrder) == null ? void 0 : se.netSuite) == null ? void 0 : M.missingItems.length) > 0 ? (g(), W(n, {
1103
1103
  key: 0,
1104
1104
  variant: "rich",
@@ -1106,44 +1106,44 @@ const ot = {
1106
1106
  "z-index": 51
1107
1107
  }, {
1108
1108
  content: de(() => {
1109
- var A, E;
1109
+ var q, E;
1110
1110
  return [
1111
1111
  e("div", Qt, [
1112
- (g(!0), D(ne, null, pe((E = (A = t.purchaseOrder) == null ? void 0 : A.netSuite) == null ? void 0 : E.missingItems, (I, ee) => (g(), D("div", {
1112
+ (g(!0), D(ne, null, pe((E = (q = t.purchaseOrder) == null ? void 0 : q.netSuite) == null ? void 0 : E.missingItems, (I, ee) => (g(), D("div", {
1113
1113
  class: "flex justify-center align-middle",
1114
1114
  key: ee
1115
1115
  }, [
1116
- U(q, {
1116
+ U(A, {
1117
1117
  name: "arrow_right",
1118
1118
  size: "sm"
1119
1119
  }),
1120
- Te(" " + S(`(${I.netSuiteId}) ${I.name}: ${I.reason}`), 1)
1120
+ xe(" " + S(`(${I.netSuiteId}) ${I.name}: ${I.reason}`), 1)
1121
1121
  ]))), 128))
1122
1122
  ])
1123
1123
  ];
1124
1124
  }),
1125
1125
  default: de(() => [
1126
- U(q, {
1126
+ U(A, {
1127
1127
  name: "error",
1128
1128
  color: "#ff2c2c",
1129
1129
  size: "sm"
1130
1130
  })
1131
1131
  ]),
1132
1132
  _: 1
1133
- })) : T("", !0)
1133
+ })) : x("", !0)
1134
1134
  ])
1135
1135
  ]),
1136
- (g(!0), D(ne, null, pe(((ae = t.purchaseOrder) == null ? void 0 : ae.items) ?? [], (A) => (g(), D("div", {
1137
- key: A.code,
1136
+ (g(!0), D(ne, null, pe(((ae = t.purchaseOrder) == null ? void 0 : ae.items) ?? [], (q) => (g(), D("div", {
1137
+ key: q.code,
1138
1138
  class: "flex flex-col"
1139
1139
  }, [
1140
1140
  e("div", Wt, [
1141
- e("div", Jt, S(A.name), 1),
1142
- e("div", Zt, S(i(fe)(Z.value[A.sku._id], !1)) + "/" + S(i(Le)(A.quantity, A.sku.unit, A.measurement)), 1)
1141
+ e("div", Zt, S(q.name), 1),
1142
+ e("div", Jt, S(i(fe)(J.value[q.sku._id], !1)) + "/" + S(i(Le)(q.quantity, q.sku.unit, q.measurement)), 1)
1143
1143
  ]),
1144
1144
  e("div", Xt, [
1145
- e("div", er, S(A.code), 1),
1146
- A.totalCost && i(R).enableTotalCost ? (g(), D("div", tr, " (" + S(i($e)(A.totalCost)) + ") ", 1)) : T("", !0)
1145
+ e("div", er, S(q.code), 1),
1146
+ q.totalCost && i(R).enableTotalCost ? (g(), D("div", tr, " (" + S(i($e)(q.totalCost)) + ") ", 1)) : x("", !0)
1147
1147
  ])
1148
1148
  ]))), 128)),
1149
1149
  +i(fe)(X.value) ? (g(), D(ne, { key: 0 }, [
@@ -1154,13 +1154,13 @@ const ot = {
1154
1154
  a[10] || (a[10] = e("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, "Total:", -1)),
1155
1155
  e("div", ar, S(i($e)(X.value)), 1)
1156
1156
  ])
1157
- ], 64)) : T("", !0)
1157
+ ], 64)) : x("", !0)
1158
1158
  ])
1159
1159
  ])
1160
- ], 64)) : T("", !0),
1160
+ ], 64)) : x("", !0),
1161
1161
  u.value.value === "deliveryHistory" ? (g(), D("div", nr, [
1162
1162
  re.value.length ? (g(), D("div", ur, [
1163
- (g(!0), D(ne, null, pe(re.value, (A, E) => (g(), D(ne, { key: E }, [
1163
+ (g(!0), D(ne, null, pe(re.value, (q, E) => (g(), D(ne, { key: E }, [
1164
1164
  e("div", dr, [
1165
1165
  e("div", mr, [
1166
1166
  e("div", fr, [
@@ -1188,8 +1188,8 @@ const ot = {
1188
1188
  ])
1189
1189
  ]),
1190
1190
  e("div", vr, [
1191
- e("div", yr, S(A.header), 1),
1192
- e("div", hr, S(A.date), 1)
1191
+ e("div", yr, S(q.header), 1),
1192
+ e("div", hr, S(q.date), 1)
1193
1193
  ])
1194
1194
  ]),
1195
1195
  e("div", br, [
@@ -1213,7 +1213,7 @@ const ot = {
1213
1213
  }, {
1214
1214
  default: de(() => [
1215
1215
  e("div", wr, [
1216
- (g(!0), D(ne, null, pe(A.info, (I, ee) => (g(), D("div", {
1216
+ (g(!0), D(ne, null, pe(q.info, (I, ee) => (g(), D("div", {
1217
1217
  key: ee,
1218
1218
  class: "flex flex-col gap-4"
1219
1219
  }, [
@@ -1245,12 +1245,12 @@ const ot = {
1245
1245
  U(_),
1246
1246
  U(_)
1247
1247
  ]))
1248
- ])) : T("", !0)
1248
+ ])) : x("", !0)
1249
1249
  ])
1250
1250
  ];
1251
1251
  }),
1252
1252
  "side-sheet-footer": de(() => {
1253
- var j, Q, se, M, ae, A, E, I, ee, le;
1253
+ var j, Q, se, M, ae, q, E, I, ee, le;
1254
1254
  return [
1255
1255
  e("div", Dr, [
1256
1256
  ((j = t.purchaseOrder) == null ? void 0 : j.status) === i(B).enum.DRAFT && h.value === i(ie).PURCHASE ? (g(), W(w, {
@@ -1259,14 +1259,14 @@ const ot = {
1259
1259
  onClick: a[1] || (a[1] = (H) => G("confirmDraft")),
1260
1260
  loading: f.value === "confirmDraft",
1261
1261
  disabled: f.value !== "confirmDraft" && m.value
1262
- }, null, 8, ["label", "loading", "disabled"])) : T("", !0),
1262
+ }, null, 8, ["label", "loading", "disabled"])) : x("", !0),
1263
1263
  ((Q = t.purchaseOrder) == null ? void 0 : Q.status) === i(B).enum.DRAFT && h.value === i(ie).TRANSFER ? (g(), W(w, {
1264
1264
  key: 1,
1265
1265
  label: i(l)("inventory.transfer.receiveRequest.actions.submitRequest"),
1266
1266
  onClick: a[2] || (a[2] = (H) => G("submitRequest")),
1267
1267
  loading: f.value === "submitRequest",
1268
1268
  disabled: f.value !== "submitRequest" && m.value
1269
- }, null, 8, ["label", "loading", "disabled"])) : T("", !0),
1269
+ }, null, 8, ["label", "loading", "disabled"])) : x("", !0),
1270
1270
  ((se = t.purchaseOrder) == null ? void 0 : se.status) === i(B).enum.DRAFT ? (g(), W(w, {
1271
1271
  key: 2,
1272
1272
  label: i(l)("inventory.transfer.receiveRequest.actions.cancelDraft"),
@@ -1274,28 +1274,28 @@ const ot = {
1274
1274
  loading: f.value === "cancelDraft",
1275
1275
  disabled: f.value !== "cancelDraft" && m.value,
1276
1276
  variant: "destructive"
1277
- }, null, 8, ["label", "loading", "disabled"])) : T("", !0),
1277
+ }, null, 8, ["label", "loading", "disabled"])) : x("", !0),
1278
1278
  ((M = t.purchaseOrder) == null ? void 0 : M.status) === i(B).enum.RECEIVING ? (g(), W(w, {
1279
1279
  key: 3,
1280
1280
  label: i(l)("inventory.transfer.receiveRequest.actions.completeReceive"),
1281
1281
  onClick: a[4] || (a[4] = (H) => G("completeReceive")),
1282
1282
  loading: f.value === "completeReceive",
1283
1283
  disabled: f.value !== "completeReceive" && m.value
1284
- }, null, 8, ["label", "loading", "disabled"])) : T("", !0),
1284
+ }, null, 8, ["label", "loading", "disabled"])) : x("", !0),
1285
1285
  t.canResubmit ? (g(), W(w, {
1286
1286
  key: 4,
1287
1287
  label: i(l)("inventory.transfer.receiveRequest.actions.resubmitRequest"),
1288
1288
  onClick: a[5] || (a[5] = (H) => G("submitRequest")),
1289
1289
  loading: f.value === "submitRequest",
1290
1290
  disabled: f.value !== "submitRequest" && m.value
1291
- }, null, 8, ["label", "loading", "disabled"])) : T("", !0),
1292
- (((ae = t.purchaseOrder) == null ? void 0 : ae.status) === i(B).enum.REQUESTING || ((A = t.purchaseOrder) == null ? void 0 : A.status) === i(B).enum.PROCESSING) && t.canApprove ? (g(), W(w, {
1291
+ }, null, 8, ["label", "loading", "disabled"])) : x("", !0),
1292
+ (((ae = t.purchaseOrder) == null ? void 0 : ae.status) === i(B).enum.REQUESTING || ((q = t.purchaseOrder) == null ? void 0 : q.status) === i(B).enum.PROCESSING) && t.canApprove ? (g(), W(w, {
1293
1293
  key: 5,
1294
1294
  label: i(l)("inventory.transfer.approval.actions.approveRequest"),
1295
1295
  onClick: a[6] || (a[6] = (H) => G("approveRequest")),
1296
1296
  loading: f.value === "approveRequest",
1297
1297
  disabled: f.value !== "approveRequest" && m.value
1298
- }, null, 8, ["label", "loading", "disabled"])) : T("", !0),
1298
+ }, null, 8, ["label", "loading", "disabled"])) : x("", !0),
1299
1299
  ((E = t.purchaseOrder) == null ? void 0 : E.status) === i(B).enum.REQUESTING && t.canApprove ? (g(), W(w, {
1300
1300
  key: 6,
1301
1301
  label: i(l)("inventory.transfer.approval.actions.rejectRequest"),
@@ -1303,13 +1303,13 @@ const ot = {
1303
1303
  loading: f.value === "rejectRequest",
1304
1304
  disabled: f.value !== "rejectRequest" && m.value,
1305
1305
  variant: "destructive"
1306
- }, null, 8, ["label", "loading", "disabled"])) : T("", !0),
1306
+ }, null, 8, ["label", "loading", "disabled"])) : x("", !0),
1307
1307
  ((I = t.purchaseOrder) == null ? void 0 : I.status) !== i(B).enum.COMPLETE && ((ee = t.purchaseOrder) == null ? void 0 : ee.status) !== i(B).enum.CANCEL && (((le = t.purchaseOrder) == null ? void 0 : le.status) !== i(B).enum.REQUESTING || t.canApprove) ? (g(), W(w, {
1308
1308
  key: 7,
1309
1309
  label: i(l)("common.close"),
1310
1310
  variant: "tertiary",
1311
1311
  onClick: a[8] || (a[8] = (H) => r("update:show", !1))
1312
- }, null, 8, ["label"])) : T("", !0)
1312
+ }, null, 8, ["label"])) : x("", !0)
1313
1313
  ])
1314
1314
  ];
1315
1315
  }),
@@ -1319,9 +1319,9 @@ const ot = {
1319
1319
  }
1320
1320
  });
1321
1321
  export {
1322
- Ir as _,
1323
- $r as a,
1324
- Er as b,
1322
+ Er as _,
1323
+ Cr as a,
1324
+ $r as b,
1325
1325
  at as g,
1326
- Ke as u
1326
+ Ve as u
1327
1327
  };