@feedmepos/mf-inventory-portal 1.0.8-dev.3 → 1.0.8-dev.5

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 (46) hide show
  1. package/dist/{App-D1Ei96Td.js → App-DEoAUoz8.js} +2 -2
  2. package/dist/{ApprovalView-KyYFHsD4.js → ApprovalView-Bm0wpCi5.js} +2 -2
  3. package/dist/{BindingsDialog-Bk41M0Za.js → BindingsDialog-CS8Tt3sC.js} +4 -4
  4. package/dist/{BindingsPicker-q_Qp179g.js → BindingsPicker-FfNuWRrW.js} +5 -5
  5. package/dist/{BindingsTable-qcSqGs6P.js → BindingsTable-DOn-0_-r.js} +8 -8
  6. package/dist/{ClosingDraftView-xVK3s9-w.js → ClosingDraftView-ChhIs35h.js} +2 -2
  7. package/dist/{ClosingTemplateView-DXtqcMVS.js → ClosingTemplateView-3ht4mT2t.js} +2 -2
  8. package/dist/{DeliveryOrderPrintPreview-Dd32mROT.js → DeliveryOrderPrintPreview-DCFJZFET.js} +1 -1
  9. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-C-J0jfDV.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DvG0g37O.js} +3 -3
  10. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-DLN-KdoO.js → FmUnitInput.vue_vue_type_script_setup_true_lang-P0RSWG_u.js} +1 -1
  11. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-C3pROg1Z.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-Bsh8ti95.js} +1 -1
  12. package/dist/{IngredientGroupView-BD038ujU.js → IngredientGroupView-BXmeU623.js} +1 -1
  13. package/dist/{IngredientsView-j7Zte4a4.js → IngredientsView-Bwlo74DQ.js} +611 -588
  14. package/dist/{IntegrationView-BQ34-sr7.js → IntegrationView-DVJ0SCv9.js} +71 -71
  15. package/dist/{InventoryBindingForm-OpMzVd5G.js → InventoryBindingForm-reP3_BCb.js} +1 -1
  16. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-BZQXFMdC.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-DD9VIRXF.js} +11 -11
  17. package/dist/{InventoryBindingSummary-DPG1DYe_.js → InventoryBindingSummary-yy4dAMvw.js} +1 -1
  18. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Di6Ntfm3.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-B3duMqgc.js} +1 -1
  19. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-c_I2QWkT.js → PremiumBadge.vue_vue_type_script_setup_true_lang-CmZrBTpY.js} +1 -1
  20. package/dist/{PublishView-C90lNnwK.js → PublishView-KjMFoL-D.js} +8 -8
  21. package/dist/{PurchaseOrderPrintPreview-DeNeQ32j.js → PurchaseOrderPrintPreview-BHLQ8HLJ.js} +1 -1
  22. package/dist/{ReceiveRequestView-D_br1aIb.js → ReceiveRequestView-C1xncLZR.js} +9 -9
  23. package/dist/RecipeView-0WNHdQyq.js +616 -0
  24. package/dist/{StockView-DsAsWTdQ.js → StockView-BarUhnA3.js} +7 -7
  25. package/dist/{SupplierView-DiJJZ2xw.js → SupplierView-CXiT-xDT.js} +4 -4
  26. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-BtpsLkMN.js → TransferDetails.vue_vue_type_script_setup_true_lang-bFfAtojp.js} +378 -376
  27. package/dist/{TransferTemplateView-asigQIL4.js → TransferTemplateView-BSVjDdZM.js} +7 -7
  28. package/dist/{UnitView-CqRB7vKd.js → UnitView-BkC2sK7O.js} +3 -3
  29. package/dist/{WarehouseView-B11DRFVm.js → WarehouseView-Bt1u1b-N.js} +1 -1
  30. package/dist/{app-DNCoZ4FQ.js → app-CZPd55uY.js} +1160 -1158
  31. package/dist/app.js +1 -1
  32. package/dist/{decimal-eIdAHXap.js → decimal-C_LTHWRm.js} +1 -1
  33. package/dist/{feature-DOpRevVj.js → feature-d6md97vH.js} +306 -339
  34. package/dist/{format-unit-display-C_J3o59j.js → format-unit-display-BJdRinaC.js} +2 -2
  35. package/dist/{index-M0i4mwwE.js → index-BDnwn7lO.js} +2 -2
  36. package/dist/{index-DpSW6sjM.js → index-CJ7gbqx0.js} +1 -1
  37. package/dist/{stock-BuOgLe5i.js → stock-BmWCyR8t.js} +1 -1
  38. package/dist/{supplier-BVyIOtYO.js → supplier-vR2Ui9hx.js} +1 -1
  39. package/dist/tsconfig.app.tsbuildinfo +1 -1
  40. package/dist/{use-ingredient-select-dialog-vQMMseR3.js → use-ingredient-select-dialog-BzDhKf-W.js} +1 -1
  41. package/dist/{use-inventory-binding-dialog-CGBthpTR.js → use-inventory-binding-dialog-CGp_dLQw.js} +1 -1
  42. package/dist/views/ingredients/helper/import-export.helper.d.ts +3 -0
  43. package/dist/views/ingredients/helper/import-export.helper.spec.d.ts +1 -0
  44. package/dist/{vue-i18n-ob4esuxD.js → vue-i18n-BuyX-Pk-.js} +2 -2
  45. package/package.json +1 -1
  46. package/dist/RecipeView-DwhKufWg.js +0 -610
@@ -1,13 +1,13 @@
1
- import { X as it, u as ue, aH as P, b as Ue, a2 as ut, a4 as dt, a5 as mt, aI as ft, d as We, e as tt, V as rt, aJ as pt, Z as Fe, K as Oe, i as oe, aK as st, a9 as ke, f as Xe, h as K, D as Z, aq as se, aL as yt, a3 as vt, an as Je, a1 as xe, aM as ht, ae as Pe, ar as bt } from "./app-DNCoZ4FQ.js";
2
- import { ref as V, computed as z, h as N, defineComponent as De, onMounted as at, unref as p, openBlock as _, createElementBlock as D, createElementVNode as s, toDisplayString as x, createCommentVNode as L, resolveComponent as H, createVNode as E, reactive as gt, createBlock as le, withCtx as ie, watch as _t, isRef as wt, Fragment as te, normalizeClass as Re, createTextVNode as $e, renderList as pe, resolveDynamicComponent as St } from "vue";
3
- import { F as xt } from "./decimal-eIdAHXap.js";
4
- import { b as Rt, u as Ot, f as nt, P as ve } from "./format-unit-display-C_J3o59j.js";
1
+ import { X as it, u as ue, aH as N, b as Ue, a2 as ut, a4 as dt, a5 as mt, aI as ft, d as We, e as tt, V as rt, aJ as pt, Z as Fe, K as Oe, i as oe, aK as st, a9 as ke, f as Xe, h as K, D as Z, aq as se, a3 as yt, an as Je, a1 as xe, aL as vt, ae as Pe, ar as ht } from "./app-CZPd55uY.js";
2
+ import { ref as V, computed as z, h as q, defineComponent as De, onMounted as at, unref as p, openBlock as w, createElementBlock as D, createElementVNode as s, toDisplayString as R, createCommentVNode as L, resolveComponent as H, createVNode as E, reactive as bt, createBlock as le, withCtx as ie, watch as gt, isRef as _t, Fragment as te, normalizeClass as Re, createTextVNode as $e, renderList as pe, resolveDynamicComponent as wt } from "vue";
3
+ import { F as St } from "./decimal-C_LTHWRm.js";
4
+ import { b as xt, u as Rt, f as nt, P as ve } from "./format-unit-display-BJdRinaC.js";
5
5
  import { useCoreStore as Le, useI18n as ot } from "@feedmepos/mf-common";
6
- import { E as kt } from "./empty-placeholder-wf6-BWE8.js";
7
- import { useDialog as Ve, useSnackbar as Me, components as Ze, FmButtonVariant as re, useProxiedModel as Dt } from "@feedmepos/ui-library";
8
- import { u as je, F as Ce } from "./feature-DOpRevVj.js";
9
- import { u as Nt } from "./index-M0i4mwwE.js";
10
- import { _ as At, F as qt, a as Tt } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-DLN-KdoO.js";
6
+ import { E as Ot } from "./empty-placeholder-wf6-BWE8.js";
7
+ import { useDialog as Ve, useSnackbar as Me, components as Ze, FmButtonVariant as re, useProxiedModel as kt } from "@feedmepos/ui-library";
8
+ import { u as je, F as Ce } from "./feature-d6md97vH.js";
9
+ import { u as Dt } from "./index-BDnwn7lO.js";
10
+ import { _ as Nt, F as qt, a as At } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-P0RSWG_u.js";
11
11
  const Ne = it((t, l) => {
12
12
  const n = ue(), h = Le();
13
13
  return {
@@ -65,7 +65,7 @@ const Ne = it((t, l) => {
65
65
  }
66
66
  };
67
67
  }), ct = {
68
- [P.enum.confirmDraft]: {
68
+ [N.enum.confirmDraft]: {
69
69
  primaryActions: {
70
70
  text: "Confirm draft",
71
71
  close: !0
@@ -74,7 +74,7 @@ const Ne = it((t, l) => {
74
74
  message: "Purchase order cannot be changed after confirm draft.",
75
75
  successMessage: "Purchase order draft has been confirmed"
76
76
  },
77
- [P.enum.cancelDraft]: {
77
+ [N.enum.cancelDraft]: {
78
78
  primaryActions: {
79
79
  text: "Cancel draft",
80
80
  close: !0,
@@ -84,7 +84,7 @@ const Ne = it((t, l) => {
84
84
  message: "Purchase order cannot be changed after cancelled draft.",
85
85
  successMessage: "Purchase order draft has been cancelled"
86
86
  },
87
- [P.enum.submitRequest]: {
87
+ [N.enum.submitRequest]: {
88
88
  primaryActions: {
89
89
  text: "Submit request",
90
90
  close: !0
@@ -93,7 +93,7 @@ const Ne = it((t, l) => {
93
93
  message: "Purchase order cannot be changed after confirm draft.",
94
94
  successMessage: "Purchase order draft has been submitted"
95
95
  },
96
- [P.enum.completeReceive]: {
96
+ [N.enum.completeReceive]: {
97
97
  primaryActions: {
98
98
  text: "Mark received",
99
99
  close: !0
@@ -102,7 +102,7 @@ const Ne = it((t, l) => {
102
102
  message: "Purchase order cannot be changed after it has complete receiving.",
103
103
  successMessage: "Purchase order has been marked as received"
104
104
  },
105
- [P.enum.approveRequest]: {
105
+ [N.enum.approveRequest]: {
106
106
  primaryActions: {
107
107
  text: "Accept request",
108
108
  close: !0
@@ -111,7 +111,7 @@ const Ne = it((t, l) => {
111
111
  message: "Transfer out request will be accepted.",
112
112
  successMessage: "Transfer out request has been approved"
113
113
  },
114
- [P.enum.rejectRequest]: {
114
+ [N.enum.rejectRequest]: {
115
115
  primaryActions: {
116
116
  text: "Reject request",
117
117
  close: !0,
@@ -126,7 +126,7 @@ function lt() {
126
126
  const t = ue(), l = Ne(), n = je();
127
127
  async function h(a, d) {
128
128
  const y = t.currentLocationDBName;
129
- return await l.processPurchaseOrder(a, d || y);
129
+ return a.doc.supplier.internal && a.operation === N.enum.confirmDraft && (a.operation = N.enum.submitRequest), await l.processPurchaseOrder(a, d || y);
130
130
  }
131
131
  async function i(a, d) {
132
132
  const y = t.currentLocationDBName;
@@ -136,8 +136,8 @@ function lt() {
136
136
  }
137
137
  var Ee = /* @__PURE__ */ ((t) => (t.RECEIVE_REQUEST = "receive/request", t.APPROVAL = "approval", t))(Ee || {});
138
138
  const we = V(), Ie = V();
139
- function Os(t, l) {
140
- const n = Ve(), h = ue(), i = je(), a = Ue(), d = Rt(), y = Ot(), o = V(!1), v = Me(), m = Ne(), f = V(new Array()), r = V(
139
+ function Rs(t, l) {
140
+ const n = Ve(), h = ue(), i = je(), a = Ue(), d = xt(), y = Rt(), o = V(!1), v = Me(), m = Ne(), f = V(new Array()), r = V(
141
141
  l != null && l.startDate && (l != null && l.endDate) ? l : ut()
142
142
  ), b = z(() => {
143
143
  const g = new Date(r.value.startDate), k = new Date(r.value.endDate);
@@ -145,20 +145,20 @@ function Os(t, l) {
145
145
  start: dt(g).toISOString(),
146
146
  end: mt(k).toISOString()
147
147
  };
148
- }), S = V(new Array()), R = ft(), A = V(null);
148
+ }), x = V(new Array()), O = ft(), A = V(null);
149
149
  async function I(g) {
150
150
  function k(c) {
151
- const O = {
151
+ const _ = {
152
152
  mode: We.CREATE,
153
153
  modelValue: g || void 0,
154
154
  show: !0,
155
- "onUpdate:show"(w) {
156
- we.value.show = w;
155
+ "onUpdate:show"(S) {
156
+ we.value.show = S;
157
157
  },
158
158
  templateId: c,
159
159
  lastClosingDate: A.value
160
160
  };
161
- we.value = O;
161
+ we.value = _;
162
162
  }
163
163
  let e;
164
164
  i.mustUsePoTemplate && !(g != null && g.template) ? n.open({
@@ -194,14 +194,14 @@ function Os(t, l) {
194
194
  async function W() {
195
195
  f.value = [], o.value = !0;
196
196
  try {
197
- f.value = await m.getPurchaseOrders(b.value).then((c) => c.sort((O, w) => w._id.localeCompare(O._id)));
198
- const g = await R.readCurrentLocationLastClosing(!0), k = g == null ? void 0 : g._id;
197
+ f.value = await m.getPurchaseOrders(b.value).then((c) => c.sort((_, S) => S._id.localeCompare(_._id)));
198
+ const g = await O.readCurrentLocationLastClosing(!0), k = g == null ? void 0 : g._id;
199
199
  k && (A.value = pt(k)), i.mustUsePoTemplate && await y.fetchTemplates();
200
200
  const e = f.value.map((c) => {
201
- var O;
202
- return ((O = c.request) == null ? void 0 : O.id) ?? "";
201
+ var _;
202
+ return ((_ = c.request) == null ? void 0 : _.id) ?? "";
203
203
  }).filter((c) => c);
204
- S.value = await m.readRequestByIds(e);
204
+ x.value = await m.readRequestByIds(e);
205
205
  } catch {
206
206
  v.open({
207
207
  title: "Something went wrong",
@@ -213,9 +213,9 @@ function Os(t, l) {
213
213
  }
214
214
  }
215
215
  async function de() {
216
- S.value = [], o.value = !0;
216
+ x.value = [], o.value = !0;
217
217
  try {
218
- S.value = await m.readRequests(void 0, a.isEnabled).then((g) => g.reverse());
218
+ x.value = await m.readRequests(void 0, a.isEnabled).then((g) => g.reverse());
219
219
  } catch {
220
220
  v.open({
221
221
  title: "Something went wrong",
@@ -248,12 +248,12 @@ function Os(t, l) {
248
248
  await X();
249
249
  });
250
250
  const ee = V(), ce = V(Math.random().toString());
251
- async function Ae(g, k) {
251
+ async function qe(g, k) {
252
252
  const e = Math.random().toString();
253
- ce.value = e, k ?? (k = S.value.computeFirst(
254
- (w) => w.purchaseOrderId === g._id ? w : null
253
+ ce.value = e, k ?? (k = x.value.computeFirst(
254
+ (S) => S.purchaseOrderId === g._id ? S : null
255
255
  ) ?? void 0);
256
- const c = t === "receive/request" ? h.currentLocation : k == null ? void 0 : k.to, O = {
256
+ const c = t === "receive/request" ? h.currentLocation : k == null ? void 0 : k.to, _ = {
257
257
  poRequest: k,
258
258
  purchaseOrder: g,
259
259
  transferTo: c == null ? void 0 : c.name,
@@ -261,25 +261,25 @@ function Os(t, l) {
261
261
  show: !0,
262
262
  canResubmit: !1,
263
263
  canApprove: t === "approval",
264
- "onUpdate:show"(w) {
265
- ee.value.show = w;
264
+ "onUpdate:show"(S) {
265
+ ee.value.show = S;
266
266
  },
267
267
  scope: t
268
268
  };
269
- ee.value = O;
269
+ ee.value = _;
270
270
  }
271
271
  async function he(g, k, e, c) {
272
- const O = lt();
272
+ const _ = lt();
273
273
  o.value = !0;
274
274
  try {
275
- await O({
275
+ await _({
276
276
  operate: {
277
277
  operation: k,
278
278
  doc: g,
279
279
  options: (
280
280
  // auto receive for supplier to warehouse
281
- (k === P.enum.confirmDraft || // auto receive for warehouse to warehouse
282
- k === P.enum.completeReceive) && i.autoReceiveWarehouse ? {
281
+ (k === N.enum.confirmDraft || // auto receive for warehouse to warehouse
282
+ k === N.enum.completeReceive) && i.autoReceiveWarehouse ? {
283
283
  autoReceive: !0
284
284
  } : void 0
285
285
  )
@@ -292,7 +292,7 @@ function Os(t, l) {
292
292
  transferTo: c
293
293
  }), await new Promise((B) => setTimeout(B, 1e3));
294
294
  const j = ue().currentLocationDBName.startsWith("restaurant_");
295
- k === P.enum.confirmDraft && g.effectiveAt && j ? v.open({
295
+ k === N.enum.confirmDraft && g.effectiveAt && j ? v.open({
296
296
  title: "Success",
297
297
  message: `${e}. The backdate will be reflected once your POS has received this change.`,
298
298
  type: "success"
@@ -301,17 +301,17 @@ function Os(t, l) {
301
301
  message: e,
302
302
  type: "success"
303
303
  });
304
- } catch (w) {
304
+ } catch (S) {
305
305
  v.open({
306
306
  title: "Something went wrong",
307
307
  message: "Please try again.",
308
308
  type: "error"
309
- }), console.error("Error when submitting PO operation", k, g, w);
309
+ }), console.error("Error when submitting PO operation", k, g, S);
310
310
  } finally {
311
311
  o.value = !1, X();
312
312
  }
313
313
  }
314
- async function qe(g, k, e) {
314
+ async function Ae(g, k, e) {
315
315
  const c = ct[k];
316
316
  if (!c) {
317
317
  v.open({
@@ -321,13 +321,13 @@ function Os(t, l) {
321
321
  });
322
322
  return;
323
323
  }
324
- const { successMessage: O, ...w } = c;
324
+ const { successMessage: _, ...S } = c;
325
325
  n.open({
326
- title: w.title,
327
- message: w.message,
328
- primaryActions: w.primaryActions
326
+ title: S.title,
327
+ message: S.message,
328
+ primaryActions: S.primaryActions
329
329
  }).onPrimary(() => {
330
- he(g, k, O, e);
330
+ he(g, k, _, e);
331
331
  });
332
332
  }
333
333
  async function Te() {
@@ -353,7 +353,7 @@ function Os(t, l) {
353
353
  }
354
354
  return {
355
355
  purchaseOrders: f,
356
- purchaseRequests: S,
356
+ purchaseRequests: x,
357
357
  updateDateRange: ae,
358
358
  fetchData: X,
359
359
  loading: o,
@@ -361,22 +361,22 @@ function Os(t, l) {
361
361
  promptCreateTransferDialog: I,
362
362
  promptUpdateTransferDialog: Y,
363
363
  transferDetailsProps: ee,
364
- promptShowTransferDetails: Ae,
365
- submitAction: qe,
364
+ promptShowTransferDetails: qe,
365
+ submitAction: Ae,
366
366
  xilnexImportDialogProps: Ie,
367
367
  promptUploadTransferDialog: Te
368
368
  };
369
369
  }
370
- function Pt(t, l) {
370
+ function Tt(t, l) {
371
371
  return l.reduce(
372
372
  (h, i) => {
373
373
  const a = i.received.find((d) => d.sku._id === t._id);
374
374
  return a && (h = Fe(h, a.amount)), h;
375
375
  },
376
- xt.toPrecision(Oe(0), t.unit.precision)
376
+ St.toPrecision(Oe(0), t.unit.precision)
377
377
  );
378
378
  }
379
- function $t(t, l, n, h) {
379
+ function Pt(t, l, n, h) {
380
380
  const { name: i, address: a, regNo: d } = l.doc.profile, y = {
381
381
  name: i,
382
382
  registrationNumber: d,
@@ -396,29 +396,29 @@ function $t(t, l, n, h) {
396
396
  city: t.supplier.address.city,
397
397
  state: t.supplier.address.state,
398
398
  country: t.supplier.address.country
399
- }, v = t.items.map((S) => {
400
- const { sku: R, measurement: A } = S, I = oe(
401
- Pt(S.sku, t.deliveryOrder || []),
399
+ }, v = t.items.map((x) => {
400
+ const { sku: O, measurement: A } = x, I = oe(
401
+ Tt(x.sku, t.deliveryOrder || []),
402
402
  !1
403
403
  );
404
404
  return {
405
- code: R.code,
406
- description: R.name,
407
- quantity: nt(S.quantity, R.unit, S.measurement),
408
- unit: (A == null ? void 0 : A.abbrev) || R.unit.abbrev,
405
+ code: O.code,
406
+ description: O.name,
407
+ quantity: nt(x.quantity, O.unit, x.measurement),
408
+ unit: (A == null ? void 0 : A.abbrev) || O.unit.abbrev,
409
409
  received: I
410
410
  };
411
- }), m = t.deliveryOrder.map((S) => ({
412
- createdAt: st(new Date(S.createdAt)),
413
- ref: S.deliveryOrderNumber,
414
- remark: S.remark || "",
415
- items: S.received.map((R) => {
411
+ }), m = t.deliveryOrder.map((x) => ({
412
+ createdAt: st(new Date(x.createdAt)),
413
+ ref: x.deliveryOrderNumber,
414
+ remark: x.remark || "",
415
+ items: x.received.map((O) => {
416
416
  var A;
417
417
  return {
418
- code: R.sku.code,
419
- description: R.sku.name,
420
- quantity: oe(R.amount),
421
- unit: ((A = R.measurement) == null ? void 0 : A.abbrev) || R.sku.unit.abbrev
418
+ code: O.sku.code,
419
+ description: O.sku.name,
420
+ quantity: oe(O.amount),
421
+ unit: ((A = O.measurement) == null ? void 0 : A.abbrev) || O.sku.unit.abbrev
422
422
  };
423
423
  })
424
424
  })), f = {
@@ -440,42 +440,42 @@ const ye = {
440
440
  submitRequest: {
441
441
  translationKey: "inventory.transfer.receiveRequest.actions.submitRequest",
442
442
  color: "text-fm-color-typo-primary",
443
- value: P.enum.submitRequest
443
+ value: N.enum.submitRequest
444
444
  },
445
445
  confirmDraft: {
446
446
  translationKey: "inventory.transfer.receiveRequest.actions.confirmDraft",
447
447
  color: "text-fm-color-typo-primary",
448
- value: P.enum.confirmDraft
448
+ value: N.enum.confirmDraft
449
449
  },
450
450
  cancelDraft: {
451
451
  translationKey: "inventory.transfer.receiveRequest.actions.cancelDraft",
452
452
  color: "text-fm-color-typo-error",
453
- value: P.enum.cancelDraft
453
+ value: N.enum.cancelDraft
454
454
  },
455
455
  approveRequest: {
456
456
  translationKey: "inventory.transfer.receiveRequest.actions.approveRequest",
457
457
  color: "text-fm-color-typo-primary",
458
- value: P.enum.approveRequest
458
+ value: N.enum.approveRequest
459
459
  },
460
460
  rejectRequest: {
461
461
  translationKey: "inventory.transfer.receiveRequest.actions.rejectRequest",
462
462
  color: "text-fm-color-typo-error",
463
- value: P.enum.rejectRequest
463
+ value: N.enum.rejectRequest
464
464
  },
465
465
  processRequest: {
466
466
  translationKey: "inventory.transfer.receiveRequest.actions.processRequest",
467
467
  color: "text-fm-color-typo-primary",
468
- value: P.enum.processRequest
468
+ value: N.enum.processRequest
469
469
  },
470
470
  receiveStock: {
471
471
  translationKey: "inventory.transfer.receiveRequest.actions.receiveStock",
472
472
  color: "text-fm-color-typo-primary",
473
- value: P.enum.receiveStock
473
+ value: N.enum.receiveStock
474
474
  },
475
475
  completeReceive: {
476
476
  translationKey: "inventory.transfer.receiveRequest.actions.completeReceive",
477
477
  color: "text-fm-color-typo-primary",
478
- value: P.enum.completeReceive
478
+ value: N.enum.completeReceive
479
479
  },
480
480
  approveDraft: {
481
481
  label: void 0,
@@ -490,7 +490,7 @@ const ye = {
490
490
  value: void 0
491
491
  }
492
492
  };
493
- function ks(t, l) {
493
+ function Os(t, l) {
494
494
  ue();
495
495
  const n = Le(), { t: h } = ot();
496
496
  function i(m) {
@@ -499,19 +499,19 @@ function ks(t, l) {
499
499
  return [
500
500
  Z[K.Update],
501
501
  Z[K.Details],
502
- m.supplier.internal === "restaurant" || m.supplier.internal === "warehouse" ? ye[P.enum.submitRequest] : ye[P.enum.confirmDraft],
503
- ye[P.enum.cancelDraft]
502
+ m.supplier.internal === "restaurant" || m.supplier.internal === "warehouse" ? ye[N.enum.submitRequest] : ye[N.enum.confirmDraft],
503
+ ye[N.enum.cancelDraft]
504
504
  ];
505
505
  case "RECEIVING":
506
506
  return [
507
- ye[P.enum.completeReceive],
507
+ ye[N.enum.completeReceive],
508
508
  Z[K.Details],
509
509
  Z[K.Print]
510
510
  ];
511
511
  case "REQUESTING":
512
512
  return t === "receive/request" ? [Z[K.Details], Z[K.Print]] : [
513
- ye[P.enum.approveRequest],
514
- ye[P.enum.rejectRequest],
513
+ ye[N.enum.approveRequest],
514
+ ye[N.enum.rejectRequest],
515
515
  Z[K.Details]
516
516
  // DefaultRowActions[RowActionEnum.Print]
517
517
  ];
@@ -524,10 +524,10 @@ function ks(t, l) {
524
524
  }
525
525
  }
526
526
  function a(m) {
527
- return Object.values(P.enum).includes(m);
527
+ return Object.values(N.enum).includes(m);
528
528
  }
529
529
  async function d(m, f, r) {
530
- var S, R, A, I;
530
+ var x, O, A, I;
531
531
  const b = tt(f);
532
532
  if (m === K.Print) {
533
533
  const Y = (r == null ? void 0 : r.toInventoryLocation) ?? {
@@ -541,7 +541,7 @@ function ks(t, l) {
541
541
  profile: {}
542
542
  }
543
543
  };
544
- b.ref = [((S = r == null ? void 0 : r.netSuite) == null ? void 0 : S.refNo) || ((R = b.netSuite) == null ? void 0 : R.refNo)].filter((W) => W).join(" "), $t(b, Y, n.currentBusiness.value, t === "approval");
544
+ b.ref = [((x = r == null ? void 0 : r.netSuite) == null ? void 0 : x.refNo) || ((O = b.netSuite) == null ? void 0 : O.refNo)].filter((W) => W).join(" "), Pt(b, Y, n.currentBusiness.value, t === "approval");
545
545
  return;
546
546
  }
547
547
  if (m === K.Details) {
@@ -599,12 +599,12 @@ function ks(t, l) {
599
599
  header: () => h("inventory.transfer.table.status"),
600
600
  cell(m) {
601
601
  const f = h(`inventory.transfer.status.${m.getValue() ?? ""}`), r = `${m.getValue() ?? ""}`.toLocaleLowerCase("en-us");
602
- return N(
602
+ return q(
603
603
  "div",
604
604
  {
605
605
  class: "flex"
606
606
  },
607
- N(
607
+ q(
608
608
  "div",
609
609
  {
610
610
  class: `fm-status-badge fm-status-badge-${r}`
@@ -670,12 +670,12 @@ function ks(t, l) {
670
670
  header: () => h("inventory.transfer.table.status"),
671
671
  cell(m) {
672
672
  const f = h(`inventory.transfer.status.${m.getValue() ?? ""}`), r = `${m.getValue() ?? ""}`.toLocaleLowerCase("en-us");
673
- return N(
673
+ return q(
674
674
  "div",
675
675
  {
676
676
  class: "flex"
677
677
  },
678
- N(
678
+ q(
679
679
  "div",
680
680
  {
681
681
  class: `fm-status-badge fm-status-badge-${r}`
@@ -689,13 +689,13 @@ function ks(t, l) {
689
689
  {
690
690
  id: "action",
691
691
  cell(m) {
692
- const f = m.row.original, b = (f.purchaseOrder ? i(f.purchaseOrder) : []).map((S) => S.value === K.Print ? {
693
- ...S,
692
+ const f = m.row.original, b = (f.purchaseOrder ? i(f.purchaseOrder) : []).map((x) => x.value === K.Print ? {
693
+ ...x,
694
694
  translationKey: "inventory.transfer.receiveRequest.details.printDeliveryOrder"
695
- } : S);
695
+ } : x);
696
696
  return Xe(
697
697
  b,
698
- (S) => f.purchaseOrder ? d(S, f.purchaseOrder, f) : void 0
698
+ (x) => f.purchaseOrder ? d(x, f.purchaseOrder, f) : void 0
699
699
  );
700
700
  },
701
701
  enableSorting: !1,
@@ -714,22 +714,22 @@ function ks(t, l) {
714
714
  }
715
715
  };
716
716
  }
717
- const Ct = {
717
+ const $t = {
718
718
  key: 0,
719
719
  class: "flex flex-col gap-8"
720
- }, It = { class: "flex flex-col gap-4" }, Ft = { class: "fm-typo-en-body-lg-600" }, Et = {
720
+ }, Ct = { class: "flex flex-col gap-4" }, It = { class: "fm-typo-en-body-lg-600" }, Ft = {
721
721
  key: 0,
722
722
  class: "flex flex-col gap-4"
723
- }, Bt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ut = { class: "fm-typo-en-body-lg-600" }, Lt = { key: 0 }, Vt = { key: 1 }, Mt = {
723
+ }, Et = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Bt = { class: "fm-typo-en-body-lg-600" }, Ut = { key: 0 }, Lt = { key: 1 }, Vt = {
724
724
  key: 1,
725
725
  class: "flex flex-col gap-4"
726
- }, jt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Kt = { class: "fm-typo-en-body-lg-600" }, zt = { key: 0 }, Gt = { key: 1 }, Ht = {
726
+ }, Mt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, jt = { class: "fm-typo-en-body-lg-600" }, Kt = { key: 0 }, zt = { key: 1 }, Gt = {
727
727
  key: 2,
728
728
  class: "flex flex-col gap-4"
729
- }, Qt = { class: "fm-typo-en-body-lg-600" }, Yt = {
729
+ }, Ht = { class: "fm-typo-en-body-lg-600" }, Qt = {
730
730
  key: 3,
731
731
  class: "flex flex-col gap-4"
732
- }, Wt = { class: "fm-typo-en-body-lg-600" }, Xt = /* @__PURE__ */ De({
732
+ }, Yt = { class: "fm-typo-en-body-lg-600" }, Wt = /* @__PURE__ */ De({
733
733
  __name: "NetSuiteInfo",
734
734
  props: {
735
735
  transferType: {},
@@ -756,46 +756,46 @@ const Ct = {
756
756
  ).fullName;
757
757
  }
758
758
  ), d = z(() => {
759
- var o, v, m, f, r, b, S, R, A, I, Y, W;
760
- return (m = (v = (o = l.purchaseOrder) == null ? void 0 : o.netSuite) == null ? void 0 : v.additionalInfo) != null && m.transactionnumber ? (b = (r = (f = l.purchaseOrder) == null ? void 0 : f.netSuite) == null ? void 0 : r.additionalInfo) == null ? void 0 : b.transactionnumber : (A = (R = (S = i.value) == null ? void 0 : S.netSuite) == null ? void 0 : R.additionalInfo) != null && A.transactionnumber ? (W = (Y = (I = i.value) == null ? void 0 : I.netSuite) == null ? void 0 : Y.additionalInfo) == null ? void 0 : W.transactionnumber : null;
759
+ var o, v, m, f, r, b, x, O, A, I, Y, W;
760
+ return (m = (v = (o = l.purchaseOrder) == null ? void 0 : o.netSuite) == null ? void 0 : v.additionalInfo) != null && m.transactionnumber ? (b = (r = (f = l.purchaseOrder) == null ? void 0 : f.netSuite) == null ? void 0 : r.additionalInfo) == null ? void 0 : b.transactionnumber : (A = (O = (x = i.value) == null ? void 0 : x.netSuite) == null ? void 0 : O.additionalInfo) != null && A.transactionnumber ? (W = (Y = (I = i.value) == null ? void 0 : I.netSuite) == null ? void 0 : Y.additionalInfo) == null ? void 0 : W.transactionnumber : null;
761
761
  }), y = z(() => {
762
762
  var o, v, m, f, r, b;
763
- return (v = (o = l.purchaseOrder) == null ? void 0 : o.deliveryFullfillment) != null && v.length && ((f = (m = l.purchaseOrder) == null ? void 0 : m.deliveryFullfillment) == null ? void 0 : f.length) > 0 ? (b = (r = l.purchaseOrder) == null ? void 0 : r.deliveryFullfillment) == null ? void 0 : b.map((S) => {
764
- var R;
765
- return (R = S.netSuite) == null ? void 0 : R.refNo;
763
+ return (v = (o = l.purchaseOrder) == null ? void 0 : o.deliveryFullfillment) != null && v.length && ((f = (m = l.purchaseOrder) == null ? void 0 : m.deliveryFullfillment) == null ? void 0 : f.length) > 0 ? (b = (r = l.purchaseOrder) == null ? void 0 : r.deliveryFullfillment) == null ? void 0 : b.map((x) => {
764
+ var O;
765
+ return (O = x.netSuite) == null ? void 0 : O.refNo;
766
766
  }).join(", ") : "N/A";
767
767
  });
768
768
  return (o, v) => {
769
- var m, f, r, b, S, R, A, I, Y, W, de, X, ae, ee;
770
- return p(n).isEnabled ? (_(), D("div", Ct, [
771
- s("div", It, [
769
+ var m, f, r, b, x, O, A, I, Y, W, de, X, ae, ee;
770
+ return p(n).isEnabled ? (w(), D("div", $t, [
771
+ s("div", Ct, [
772
772
  v[0] || (v[0] = s("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, "NetSuite subsidiary", -1)),
773
- s("div", Ft, x(a.value || "N/A"), 1)
773
+ s("div", It, R(a.value || "N/A"), 1)
774
774
  ]),
775
- !o.isTransferBetweenOutlets && ((m = o.purchaseOrder) == null ? void 0 : m.status) !== p(se).Enum.REQUESTING && o.scope === p(Ee).RECEIVE_REQUEST ? (_(), D("div", Et, [
776
- s("div", Bt, " NetSuite " + x(o.transferType === p(ve).PURCHASE ? "Purchase Order" : "Transfer Order") + " (ID) ", 1),
777
- s("div", Ut, [
778
- (r = (f = o.purchaseOrder) == null ? void 0 : f.netSuite) != null && r.id ? (_(), D("span", Lt, x((S = (b = o.purchaseOrder) == null ? void 0 : b.netSuite) == null ? void 0 : S.refNo) + " (" + x((A = (R = o.purchaseOrder) == null ? void 0 : R.netSuite) == null ? void 0 : A.id) + ") ", 1)) : (_(), D("span", Vt, "N/A"))
775
+ !o.isTransferBetweenOutlets && ((m = o.purchaseOrder) == null ? void 0 : m.status) !== p(se).Enum.REQUESTING && o.scope === p(Ee).RECEIVE_REQUEST ? (w(), D("div", Ft, [
776
+ s("div", Et, " NetSuite " + R(o.transferType === p(ve).PURCHASE ? "Purchase Order" : "Transfer Order") + " (ID) ", 1),
777
+ s("div", Bt, [
778
+ (r = (f = o.purchaseOrder) == null ? void 0 : f.netSuite) != null && r.id ? (w(), D("span", Ut, R((x = (b = o.purchaseOrder) == null ? void 0 : b.netSuite) == null ? void 0 : x.refNo) + " (" + R((A = (O = o.purchaseOrder) == null ? void 0 : O.netSuite) == null ? void 0 : A.id) + ") ", 1)) : (w(), D("span", Lt, "N/A"))
779
779
  ])
780
780
  ])) : L("", !0),
781
- !o.isTransferBetweenOutlets && i.value && ((I = o.purchaseOrder) == null ? void 0 : I.status) === p(se).Enum.REQUESTING || o.scope === p(Ee).APPROVAL ? (_(), D("div", Mt, [
782
- s("div", jt, " (Request) NetSuite " + x(o.transferType === p(ve).PURCHASE ? "Purchase Order" : "Transfer Order") + " (ID) ", 1),
783
- s("div", Kt, [
784
- (W = (Y = i.value) == null ? void 0 : Y.netSuite) != null && W.id ? (_(), D("span", zt, x((X = (de = i.value) == null ? void 0 : de.netSuite) == null ? void 0 : X.refNo) + " (" + x((ee = (ae = i.value) == null ? void 0 : ae.netSuite) == null ? void 0 : ee.id) + ") ", 1)) : (_(), D("span", Gt, "N/A"))
781
+ !o.isTransferBetweenOutlets && i.value && ((I = o.purchaseOrder) == null ? void 0 : I.status) === p(se).Enum.REQUESTING || o.scope === p(Ee).APPROVAL ? (w(), D("div", Vt, [
782
+ s("div", Mt, " (Request) NetSuite " + R(o.transferType === p(ve).PURCHASE ? "Purchase Order" : "Transfer Order") + " (ID) ", 1),
783
+ s("div", jt, [
784
+ (W = (Y = i.value) == null ? void 0 : Y.netSuite) != null && W.id ? (w(), D("span", Kt, R((X = (de = i.value) == null ? void 0 : de.netSuite) == null ? void 0 : X.refNo) + " (" + R((ee = (ae = i.value) == null ? void 0 : ae.netSuite) == null ? void 0 : ee.id) + ") ", 1)) : (w(), D("span", zt, "N/A"))
785
785
  ])
786
786
  ])) : L("", !0),
787
- d.value ? (_(), D("div", Ht, [
787
+ d.value ? (w(), D("div", Gt, [
788
788
  v[1] || (v[1] = s("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " NetSuite Transaction Number ", -1)),
789
- s("div", Qt, x(d.value), 1)
789
+ s("div", Ht, R(d.value), 1)
790
790
  ])) : L("", !0),
791
- p(n).isEnabled && o.transferType === p(ve).TRANSFER && !o.isTransferBetweenOutlets ? (_(), D("div", Yt, [
791
+ p(n).isEnabled && o.transferType === p(ve).TRANSFER && !o.isTransferBetweenOutlets ? (w(), D("div", Qt, [
792
792
  v[2] || (v[2] = s("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " NetSuite fulfillment IDs ", -1)),
793
- s("div", Wt, x(y.value), 1)
793
+ s("div", Yt, R(y.value), 1)
794
794
  ])) : L("", !0)
795
795
  ])) : L("", !0);
796
796
  };
797
797
  }
798
- }), Jt = { class: "flex flex-row-reverse" }, Zt = /* @__PURE__ */ De({
798
+ }), Xt = { class: "flex flex-row-reverse" }, Jt = /* @__PURE__ */ De({
799
799
  __name: "NetSuiteSync",
800
800
  props: {
801
801
  poRequest: {},
@@ -814,10 +814,10 @@ const Ct = {
814
814
  async function d() {
815
815
  a.value || i.open({
816
816
  title: "Sync with NetSuite",
817
- contentComponent: N("div", [
818
- N("p", "Are you sure you want to sync now?"),
819
- N("br"),
820
- N(
817
+ contentComponent: q("div", [
818
+ q("p", "Are you sure you want to sync now?"),
819
+ q("br"),
820
+ q(
821
821
  "p",
822
822
  { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" },
823
823
  "Please wait a moment before syncing manually to avoid unnecessary actions."
@@ -853,7 +853,7 @@ const Ct = {
853
853
  }
854
854
  return (y, o) => {
855
855
  const v = H("FmButton");
856
- return _(), D("div", Jt, [
856
+ return w(), D("div", Xt, [
857
857
  E(v, {
858
858
  "prepend-icon": "sync",
859
859
  variant: "secondary",
@@ -867,7 +867,7 @@ const Ct = {
867
867
  ]);
868
868
  };
869
869
  }
870
- }), er = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg p-16" }, tr = { class: "flex flex-col gap-8" }, rr = { class: "flex w-full justify-end gap-16" }, sr = /* @__PURE__ */ De({
870
+ }), Zt = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg p-16" }, er = { class: "flex flex-col gap-8" }, tr = { class: "flex w-full justify-end gap-16" }, rr = /* @__PURE__ */ De({
871
871
  __name: "FulfillmentForm",
872
872
  props: {
873
873
  purchaseOrder: {},
@@ -875,7 +875,7 @@ const Ct = {
875
875
  },
876
876
  emits: ["update:show"],
877
877
  setup(t, { emit: l }) {
878
- const n = t, h = gt({
878
+ const n = t, h = bt({
879
879
  id: "",
880
880
  createdAt: (/* @__PURE__ */ new Date()).toISOString(),
881
881
  items: []
@@ -889,7 +889,7 @@ const Ct = {
889
889
  })));
890
890
  }), (d, y) => {
891
891
  const o = H("FmTable"), v = H("FmButton"), m = H("FmForm");
892
- return _(), le(m, {
892
+ return w(), le(m, {
893
893
  ref_key: "formRef",
894
894
  ref: i,
895
895
  class: "bg-white flex flex-col gap-32 rounded-3xl p-24 w-[800px]",
@@ -898,15 +898,15 @@ const Ct = {
898
898
  }, {
899
899
  default: ie(() => [
900
900
  y[2] || (y[2] = s("div", { class: "fm-typo-en-title-sm-600" }, "Confirm the transfer amount", -1)),
901
- s("div", er, [
902
- s("div", tr, [
901
+ s("div", Zt, [
902
+ s("div", er, [
903
903
  E(o, {
904
904
  "column-defs": [
905
905
  {
906
906
  header: "Code",
907
907
  cell: (f) => {
908
908
  const r = n.purchaseOrder.items.find((b) => b.id === f.row.original.id || b.sku._id === f.row.original.sku._id);
909
- return N(
909
+ return q(
910
910
  p(Ze).FmTooltip,
911
911
  {
912
912
  content: r.code,
@@ -914,7 +914,7 @@ const Ct = {
914
914
  variant: "plain",
915
915
  zIndex: 50
916
916
  },
917
- N(
917
+ q(
918
918
  "span",
919
919
  {
920
920
  class: "flex-auto line-clamp-2 text-ellipsis break-all"
@@ -928,7 +928,7 @@ const Ct = {
928
928
  header: "Name",
929
929
  cell: (f) => {
930
930
  const r = n.purchaseOrder.items.find((b) => b.id === f.row.original.id || b.sku._id === f.row.original.sku._id);
931
- return N(
931
+ return q(
932
932
  p(Ze).FmTooltip,
933
933
  {
934
934
  content: r.name,
@@ -936,7 +936,7 @@ const Ct = {
936
936
  variant: "plain",
937
937
  zIndex: 50
938
938
  },
939
- N(
939
+ q(
940
940
  "span",
941
941
  {
942
942
  class: "flex-auto line-clamp-2 text-ellipsis break-all"
@@ -949,31 +949,31 @@ const Ct = {
949
949
  {
950
950
  header: "Amount",
951
951
  cell: (f) => {
952
- const r = f.row.original, b = n.purchaseOrder.items.find((R) => R.id === r.id || R.sku._id === r.sku._id), S = r.amount ?? {
952
+ const r = f.row.original, b = n.purchaseOrder.items.find((O) => O.id === r.id || O.sku._id === r.sku._id), x = r.amount ?? {
953
953
  amount: 1,
954
954
  precision: 0
955
955
  };
956
- return N(At, {
956
+ return q(Nt, {
957
957
  style: {
958
958
  flex: "1 1 0%"
959
959
  },
960
960
  modelValue: {
961
- amount: S,
961
+ amount: x,
962
962
  measurement: r.measurement ?? null
963
963
  },
964
964
  key: r.id ?? r.sku._id,
965
965
  unit: r.sku.unit,
966
- "onUpdate:modelValue": (R) => {
967
- if (!R) return;
966
+ "onUpdate:modelValue": (O) => {
967
+ if (!O) return;
968
968
  const A = h.items.find((I) => I.id === r.id || I.sku._id === r.sku._id);
969
- A && (A.amount = R.amount);
969
+ A && (A.amount = O.amount);
970
970
  },
971
971
  disableUnit: !0,
972
972
  rules: [
973
973
  p(qt)(
974
974
  +p(oe)({ amount: 0, precision: 0 })
975
975
  ),
976
- p(Tt)(+p(oe)(b.quantity))
976
+ p(At)(+p(oe)(b.quantity))
977
977
  ],
978
978
  applyDefaultRules: !0
979
979
  });
@@ -985,7 +985,7 @@ const Ct = {
985
985
  }, null, 8, ["column-defs", "row-data"])
986
986
  ])
987
987
  ]),
988
- s("div", rr, [
988
+ s("div", tr, [
989
989
  E(v, {
990
990
  class: "px-16",
991
991
  label: "Confirm",
@@ -1008,7 +1008,7 @@ const Ct = {
1008
1008
  }
1009
1009
  });
1010
1010
  var Be = /* @__PURE__ */ ((t) => (t.loading = "loading", t.error = "error", t.success = "success", t))(Be || {});
1011
- function ar(t) {
1011
+ function sr(t) {
1012
1012
  const l = V({
1013
1013
  state: "loading"
1014
1014
  /* loading */
@@ -1083,7 +1083,7 @@ const et = {
1083
1083
  buttonVariant: re.Destructive
1084
1084
  }
1085
1085
  };
1086
- function nr() {
1086
+ function ar() {
1087
1087
  return {
1088
1088
  ableToMarkReceived(t) {
1089
1089
  if (!t || t.status !== se.enum.RECEIVING)
@@ -1096,49 +1096,49 @@ function nr() {
1096
1096
  }
1097
1097
  };
1098
1098
  }
1099
- const or = { class: "flex flex-col gap-16 w-full h-full" }, cr = { class: "flex justify-between" }, lr = { class: "fm-typo-en-body-lg-600" }, ir = { class: "flex flex-col gap-8" }, ur = { class: "flex flex-col gap-4" }, dr = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, mr = { class: "flex gap-1" }, fr = { class: "fm-typo-en-body-lg-600" }, pr = {
1099
+ const nr = { class: "flex flex-col gap-16 w-full h-full" }, or = { class: "flex justify-between" }, cr = { class: "fm-typo-en-body-lg-600" }, lr = { class: "flex flex-col gap-8" }, ir = { class: "flex flex-col gap-4" }, ur = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, dr = { class: "flex gap-1" }, mr = { class: "fm-typo-en-body-lg-600" }, fr = {
1100
1100
  key: 0,
1101
1101
  class: "flex flex-col gap-4"
1102
- }, yr = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, vr = { class: "fm-typo-en-body-lg-600" }, hr = { class: "flex flex-col gap-4" }, br = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, gr = { class: "fm-typo-en-body-lg-600" }, _r = {
1102
+ }, pr = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, yr = { class: "fm-typo-en-body-lg-600" }, vr = { class: "flex flex-col gap-4" }, hr = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, br = { class: "fm-typo-en-body-lg-600" }, gr = {
1103
1103
  key: 1,
1104
1104
  class: "flex flex-col gap-4"
1105
- }, wr = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Sr = { class: "fm-typo-en-body-lg-600" }, xr = {
1105
+ }, _r = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, wr = { class: "fm-typo-en-body-lg-600" }, Sr = {
1106
1106
  key: 2,
1107
1107
  class: "flex flex-col gap-4"
1108
- }, Rr = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Or = { class: "fm-typo-en-body-lg-600" }, kr = {
1108
+ }, xr = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Rr = { class: "fm-typo-en-body-lg-600" }, Or = {
1109
1109
  key: 3,
1110
1110
  class: "flex flex-col gap-4"
1111
- }, Dr = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Nr = { class: "fm-typo-en-body-lg-600" }, Ar = {
1111
+ }, kr = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Dr = { class: "fm-typo-en-body-lg-600" }, Nr = {
1112
1112
  key: 4,
1113
1113
  class: "flex flex-col gap-4"
1114
- }, qr = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Tr = { class: "fm-typo-en-body-lg-600" }, Pr = {
1114
+ }, qr = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ar = { class: "fm-typo-en-body-lg-600" }, Tr = {
1115
1115
  key: 0,
1116
1116
  class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg p-16 flex flex-col gap-8"
1117
- }, $r = { class: "flex gap-8 items-center" }, Cr = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg p-16" }, Ir = { class: "flex flex-col gap-8" }, Fr = { class: "flex gap-8 items-center" }, Er = { class: "flex-1 fm-typo-en-body-lg-600" }, Br = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary flex flex-col gap-4" }, Ur = { class: "flex w-full gap-4" }, Lr = { class: "basis-1/2 shrink-0 grow fm-typo-en-body-lg-400 line-clamp-2" }, Vr = { class: "fm-typo-en-body-lg-600 line-clamp-2" }, Mr = { class: "flex w-full gap-4 fm-typo-en-body-sm-400" }, jr = { class: "grow fm-typo-en-body-lg-400 text-fm-color-typo-secondary line-clamp-1" }, Kr = {
1117
+ }, Pr = { class: "flex gap-8 items-center" }, $r = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg p-16" }, Cr = { class: "flex flex-col gap-8" }, Ir = { class: "flex gap-8 items-center" }, Fr = { class: "flex-1 fm-typo-en-body-lg-600" }, Er = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary flex flex-col gap-4" }, Br = { class: "flex w-full gap-4" }, Ur = { class: "basis-1/2 shrink-0 grow fm-typo-en-body-lg-400 line-clamp-2" }, Lr = { class: "fm-typo-en-body-lg-600 line-clamp-2" }, Vr = { class: "flex w-full gap-4 fm-typo-en-body-sm-400" }, Mr = { class: "grow fm-typo-en-body-lg-400 text-fm-color-typo-secondary line-clamp-1" }, jr = {
1118
1118
  key: 0,
1119
1119
  class: "line-clamp-1 fm-typo-en-body-lg-400 text-fm-color-typo-secondary"
1120
- }, zr = { class: "py-8" }, Gr = { class: "flex justify-end gap-4 items-center" }, Hr = { class: "fm-typo-en-body-lg-600" }, Qr = {
1120
+ }, Kr = { class: "py-8" }, zr = { class: "flex justify-end gap-4 items-center" }, Gr = { class: "fm-typo-en-body-lg-600" }, Hr = {
1121
1121
  key: 1,
1122
1122
  class: "flex-1 xs:w-screen xs:max-w-full"
1123
- }, Yr = {
1123
+ }, Qr = {
1124
1124
  key: 0,
1125
1125
  class: "flex flex-col items-center gap-8 h-full"
1126
- }, Wr = ["src"], Xr = { class: "fm-typo-en-body-lg-600" }, Jr = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary px-16" }, Zr = {
1126
+ }, Yr = ["src"], Wr = { class: "fm-typo-en-body-lg-600" }, Xr = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary px-16" }, Jr = {
1127
1127
  key: 1,
1128
1128
  class: "px-4 flex flex-col"
1129
- }, es = { class: "flex gap-12 content-stretch" }, ts = {
1129
+ }, Zr = { class: "flex gap-12 content-stretch" }, es = {
1130
1130
  class: "flex flex-col w-24",
1131
1131
  name: "circles"
1132
- }, rs = { class: "flex-1 flex flex-col items-center" }, ss = { class: "flex-1 flex flex-col items-center" }, as = {
1132
+ }, ts = { class: "flex-1 flex flex-col items-center" }, rs = { class: "flex-1 flex flex-col items-center" }, ss = {
1133
1133
  class: "py-12 flex flex-col gap-4",
1134
1134
  name: "received-at header"
1135
- }, ns = { class: "fm-typo-en-body-lg-400" }, os = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, cs = { class: "flex gap-12 content-stretch" }, ls = {
1135
+ }, as = { class: "fm-typo-en-body-lg-400" }, ns = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, os = { class: "flex gap-12 content-stretch" }, cs = {
1136
1136
  class: "flex flex-col w-24",
1137
1137
  name: "circles"
1138
- }, is = { class: "flex-1 flex flex-col items-center" }, us = {
1138
+ }, ls = { class: "flex-1 flex flex-col items-center" }, is = {
1139
1139
  class: "py-12 flex flex-col gap-4 flex-1",
1140
1140
  name: "delivery details"
1141
- }, ds = { class: "flex flex-col gap-8" }, ms = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, fs = { class: "flex flex-col gap-4" }, ps = { class: "flex gap-8 xs:flex-col" }, Ds = /* @__PURE__ */ De({
1141
+ }, us = { class: "flex flex-col gap-8" }, ds = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, ms = { class: "flex flex-col gap-4" }, fs = { class: "flex gap-8 xs:flex-col" }, ks = /* @__PURE__ */ De({
1142
1142
  __name: "TransferDetails",
1143
1143
  props: {
1144
1144
  poRequest: {},
@@ -1152,7 +1152,7 @@ const or = { class: "flex flex-col gap-16 w-full h-full" }, cr = { class: "flex
1152
1152
  },
1153
1153
  emits: ["update:show", "submitted"],
1154
1154
  setup(t, { emit: l }) {
1155
- const n = t, h = l, i = Ve(), a = Me(), d = je(), y = Nt(), o = ue(), v = Le(), m = z(
1155
+ const n = t, h = l, i = Ve(), a = Me(), d = je(), y = Dt(), o = ue(), v = Le(), m = z(
1156
1156
  () => {
1157
1157
  var e, c;
1158
1158
  return {
@@ -1160,15 +1160,15 @@ const or = { class: "flex flex-col gap-16 w-full h-full" }, cr = { class: "flex
1160
1160
  name: ((c = v.sessionUser.value) == null ? void 0 : c.displayName) ?? ""
1161
1161
  };
1162
1162
  }
1163
- ), f = nr(), { t: r } = ot(), b = z(
1163
+ ), f = ar(), { t: r } = ot(), b = z(
1164
1164
  () => {
1165
- var e, c, O, w;
1166
- return ((c = (e = n.purchaseOrder) == null ? void 0 : e.supplier) == null ? void 0 : c.internal) === "restaurant" || ((w = (O = n.purchaseOrder) == null ? void 0 : O.supplier) == null ? void 0 : w.internal) === "warehouse" ? ve.TRANSFER : ve.PURCHASE;
1165
+ var e, c, _, S;
1166
+ return ((c = (e = n.purchaseOrder) == null ? void 0 : e.supplier) == null ? void 0 : c.internal) === "restaurant" || ((S = (_ = n.purchaseOrder) == null ? void 0 : _.supplier) == null ? void 0 : S.internal) === "warehouse" ? ve.TRANSFER : ve.PURCHASE;
1167
1167
  }
1168
- ), S = z(() => {
1169
- var e, c, O;
1170
- return b.value === ve.TRANSFER && ((e = n.transferToDbName) == null ? void 0 : e.startsWith("restaurant")) && ((O = (c = n.purchaseOrder) == null ? void 0 : c.supplier) == null ? void 0 : O.internal) === "restaurant";
1171
- }), R = V(!1), A = V(""), I = V(!0), Y = Ne(), W = ar(Y.getWorkflowConfig), de = lt(), X = z(() => {
1168
+ ), x = z(() => {
1169
+ var e, c, _;
1170
+ return b.value === ve.TRANSFER && ((e = n.transferToDbName) == null ? void 0 : e.startsWith("restaurant")) && ((_ = (c = n.purchaseOrder) == null ? void 0 : c.supplier) == null ? void 0 : _.internal) === "restaurant";
1171
+ }), O = V(!1), A = V(""), I = V(!0), Y = Ne(), W = sr(Y.getWorkflowConfig), de = lt(), X = z(() => {
1172
1172
  if (!n.purchaseOrder)
1173
1173
  return [];
1174
1174
  const e = W.result.value;
@@ -1177,23 +1177,30 @@ const or = { class: "flex flex-col gap-16 w-full h-full" }, cr = { class: "flex
1177
1177
  const c = {
1178
1178
  user: m.value,
1179
1179
  executedAt: o.locations.computeFirst(
1180
- (O) => {
1181
- var w;
1182
- return O.dbName === ((w = o._currentLocation) == null ? void 0 : w.dbName) ? O : null;
1180
+ (_) => {
1181
+ var S;
1182
+ return _.dbName === ((S = o._currentLocation) == null ? void 0 : S.dbName) ? _ : null;
1183
1183
  }
1184
1184
  ),
1185
1185
  purchaseOrderRequest: n.poRequest,
1186
- purchaseOrder: n.purchaseOrder,
1187
- platform: yt.enum.portal
1186
+ purchaseOrder: n.purchaseOrder
1188
1187
  };
1189
1188
  return e.state === Be.error ? (console.error("Error fetching workflow config:", e.error), Ce.getAvailableActions({
1190
1189
  ...c,
1191
1190
  purchaseOrderConfig: Ce.getDefaultConfig()
1192
- }).actions) : Ce.getAvailableActions({
1191
+ }).actions.filter(
1192
+ (_) => (
1193
+ // TODO: create receiveStock & processRequest dialog
1194
+ // to create their payload
1195
+ _ !== N.enum.receiveStock && _ !== N.enum.processRequest
1196
+ )
1197
+ )) : Ce.getAvailableActions({
1193
1198
  ...c,
1194
1199
  purchaseOrderConfig: e.data
1195
- }).actions;
1196
- }), ae = Dt(n, "show"), ee = z(() => [
1200
+ }).actions.filter(
1201
+ (_) => _ !== N.enum.receiveStock && _ !== N.enum.processRequest
1202
+ );
1203
+ }), ae = kt(n, "show"), ee = z(() => [
1197
1204
  {
1198
1205
  label: r("inventory.transfer.receiveRequest.details.overview"),
1199
1206
  value: "overview"
@@ -1203,33 +1210,33 @@ const or = { class: "flex flex-col gap-16 w-full h-full" }, cr = { class: "flex
1203
1210
  value: "deliveryHistory"
1204
1211
  }
1205
1212
  ]), ce = V(ee.value[0]);
1206
- _t(
1213
+ gt(
1207
1214
  () => n.show,
1208
1215
  (e) => {
1209
1216
  e && (ce.value = ee.value[0]);
1210
1217
  }
1211
1218
  );
1212
- async function Ae(e, c, O, w, j) {
1219
+ async function qe(e, c, _, S, j) {
1213
1220
  return new Promise((B, Q) => {
1214
1221
  i.open({
1215
1222
  closeButton: !1,
1216
- title: w.title,
1217
- message: w.message,
1218
- primaryActions: w.primaryActions,
1223
+ title: S.title,
1224
+ message: S.message,
1225
+ primaryActions: S.primaryActions,
1219
1226
  secondaryActions: { text: "No", close: !1 }
1220
1227
  }).onPrimary(async () => {
1221
- var u, q, U, G;
1228
+ var u, T, U, G;
1222
1229
  try {
1223
1230
  await de({
1224
1231
  operate: {
1225
- operation: O,
1232
+ operation: _,
1226
1233
  doc: e,
1227
1234
  options: c
1228
1235
  },
1229
1236
  operateV2: {
1230
1237
  _id: ((u = n.purchaseOrder) == null ? void 0 : u._id) ?? "",
1231
- _rev: ((q = n.purchaseOrder) == null ? void 0 : q._rev) ?? "",
1232
- action: O
1238
+ _rev: ((T = n.purchaseOrder) == null ? void 0 : T._rev) ?? "",
1239
+ action: _
1233
1240
  // add payload if action is receiveStock or processRequest
1234
1241
  },
1235
1242
  transferTo: (G = (U = n.poRequest) == null ? void 0 : U.to) == null ? void 0 : G.dbName
@@ -1246,7 +1253,7 @@ const or = { class: "flex flex-col gap-16 w-full h-full" }, cr = { class: "flex
1246
1253
  });
1247
1254
  }
1248
1255
  async function he(e) {
1249
- if (e === P.enum.receiveStock)
1256
+ if (e === N.enum.receiveStock)
1250
1257
  return;
1251
1258
  const c = ct[e];
1252
1259
  if (!c) {
@@ -1257,46 +1264,41 @@ const or = { class: "flex flex-col gap-16 w-full h-full" }, cr = { class: "flex
1257
1264
  });
1258
1265
  return;
1259
1266
  }
1260
- const { successMessage: O } = c;
1267
+ const { successMessage: _ } = c;
1261
1268
  if (n.purchaseOrder) {
1262
- A.value = `${e}`, R.value = !0, I.value = !1;
1263
- const w = {};
1269
+ A.value = `${e}`, O.value = !0, I.value = !1;
1270
+ const S = {};
1264
1271
  let j = 0;
1265
- if ((e === P.enum.confirmDraft || // auto receive for warehouse to warehouse
1266
- e === P.enum.completeReceive) && d.autoReceiveWarehouse)
1267
- w.autoReceive = !0;
1268
- else if (e === P.enum.approveRequest && d.acceptRequireFulfillment) {
1272
+ if ((e === N.enum.confirmDraft || // auto receive for warehouse to warehouse
1273
+ e === N.enum.completeReceive) && d.autoReceiveWarehouse)
1274
+ S.autoReceive = !0;
1275
+ else if (e === N.enum.approveRequest && d.acceptRequireFulfillment) {
1269
1276
  const B = await new Promise((Q, u) => {
1270
1277
  i.open({
1271
1278
  closeButton: !1,
1272
1279
  title: "Confirm transfer amount",
1273
- dialogComponent: sr,
1280
+ dialogComponent: rr,
1274
1281
  dialogComponentProps: {
1275
1282
  purchaseOrder: n.purchaseOrder,
1276
1283
  confirm: Q,
1277
- "onUpdate:show": (q) => {
1278
- q || (A.value = "", R.value = !1, I.value = !0, j++, i.close()), u("cancelled");
1284
+ "onUpdate:show": (T) => {
1285
+ T || (A.value = "", O.value = !1, I.value = !0, j++, i.close()), u("cancelled");
1279
1286
  }
1280
1287
  }
1281
1288
  });
1282
1289
  });
1283
- w.fulfillment = B;
1290
+ S.fulfillment = B;
1284
1291
  }
1285
1292
  try {
1286
- const B = await Ae(
1293
+ await qe(
1287
1294
  n.purchaseOrder,
1288
- w,
1295
+ S,
1289
1296
  e,
1290
1297
  c,
1291
1298
  j
1292
- );
1293
- a.open({
1299
+ ) === "submitted" && (a.open({
1294
1300
  title: "Success",
1295
- message: O,
1296
- type: "success"
1297
- }), B === "submitted" && (a.open({
1298
- title: "Success",
1299
- message: O,
1301
+ message: _,
1300
1302
  type: "success"
1301
1303
  }), h("update:show", !1), h("submitted"));
1302
1304
  } catch (B) {
@@ -1306,40 +1308,40 @@ const or = { class: "flex flex-col gap-16 w-full h-full" }, cr = { class: "flex
1306
1308
  type: "error"
1307
1309
  }), console.error("Error when submitting PO operation", e, n.purchaseOrder, B);
1308
1310
  } finally {
1309
- A.value = "", R.value = !1, I.value = !0;
1311
+ A.value = "", O.value = !1, I.value = !0;
1310
1312
  }
1311
1313
  }
1312
1314
  }
1313
- const qe = z(() => {
1315
+ const Ae = z(() => {
1314
1316
  var e, c;
1315
1317
  return ((e = n.purchaseOrder) == null ? void 0 : e.status) === se.enum.RECEIVING || ((c = n.purchaseOrder) == null ? void 0 : c.status) === se.enum.COMPLETE;
1316
1318
  }), Te = z(() => {
1317
1319
  var B, Q, u;
1318
- const O = (((B = n.purchaseOrder) == null ? void 0 : B.deliveryOrder) ?? []).flatMap((q) => q.received ?? []).reduce(
1319
- (q, U) => {
1320
- const G = q[U.sku._id] ?? [];
1321
- return q[U.sku._id] = [...G, U], q;
1320
+ const _ = (((B = n.purchaseOrder) == null ? void 0 : B.deliveryOrder) ?? []).flatMap((T) => T.received ?? []).reduce(
1321
+ (T, U) => {
1322
+ const G = T[U.sku._id] ?? [];
1323
+ return T[U.sku._id] = [...G, U], T;
1322
1324
  },
1323
1325
  {}
1324
- ), w = Object.entries(O).reduce(
1325
- (q, [U, G]) => {
1326
+ ), S = Object.entries(_).reduce(
1327
+ (T, [U, G]) => {
1326
1328
  const C = G.reduce((J, F) => {
1327
- const ne = vt(
1329
+ const ne = yt(
1328
1330
  J,
1329
1331
  Math.max(J.precision, F.amount.precision)
1330
1332
  );
1331
1333
  return Fe(ne, F.amount);
1332
1334
  }, Oe(0));
1333
- return q[U] = C, q;
1335
+ return T[U] = C, T;
1334
1336
  },
1335
1337
  {}
1336
1338
  ), j = ((Q = n.purchaseOrder) == null ? void 0 : Q.items) ?? [];
1337
- for (const q of j)
1338
- w[u = q.sku._id] ?? (w[u] = Oe(0));
1339
- return w;
1339
+ for (const T of j)
1340
+ S[u = T.sku._id] ?? (S[u] = Oe(0));
1341
+ return S;
1340
1342
  }), g = z(() => {
1341
1343
  var B, Q;
1342
- const e = ((B = n.purchaseOrder) == null ? void 0 : B.deliveryOrder) ?? [], c = ((Q = n.purchaseOrder) == null ? void 0 : Q.deliveryFullfillment) ?? [], O = [
1344
+ const e = ((B = n.purchaseOrder) == null ? void 0 : B.deliveryOrder) ?? [], c = ((Q = n.purchaseOrder) == null ? void 0 : Q.deliveryFullfillment) ?? [], _ = [
1343
1345
  ...e.map((u) => ({
1344
1346
  createdAt: u.createdAt,
1345
1347
  type: "grn",
@@ -1351,13 +1353,13 @@ const or = { class: "flex flex-col gap-16 w-full h-full" }, cr = { class: "flex
1351
1353
  doc: u
1352
1354
  }))
1353
1355
  ];
1354
- O.reverse().sort((u, q) => u.createdAt.localeCompare(q.createdAt));
1355
- function w(u) {
1356
+ _.reverse().sort((u, T) => u.createdAt.localeCompare(T.createdAt));
1357
+ function S(u) {
1356
1358
  var G, C, J, F, ne, be, ge, _e, $;
1357
- const q = c.findIndex((T) => T.id === u.fullfillmentId), U = [
1358
- (C = (G = c[q]) == null ? void 0 : G.netSuite) != null && C.refNo ? {
1359
+ const T = c.findIndex((P) => P.id === u.fullfillmentId), U = [
1360
+ (C = (G = c[T]) == null ? void 0 : G.netSuite) != null && C.refNo ? {
1359
1361
  label: "Fulfillment's ref no. (Netsuite)",
1360
- values: [(F = (J = c[q]) == null ? void 0 : J.netSuite) == null ? void 0 : F.refNo]
1362
+ values: [(F = (J = c[T]) == null ? void 0 : J.netSuite) == null ? void 0 : F.refNo]
1361
1363
  } : null,
1362
1364
  (ne = u == null ? void 0 : u.netSuite) != null && ne.refNo ? {
1363
1365
  label: "Netsuite ref no.",
@@ -1365,7 +1367,7 @@ const or = { class: "flex flex-col gap-16 w-full h-full" }, cr = { class: "flex
1365
1367
  } : null,
1366
1368
  (ge = u == null ? void 0 : u.netSuite) != null && ge.recordType ? {
1367
1369
  label: "Netsuite Type",
1368
- values: [ht((_e = u == null ? void 0 : u.netSuite) == null ? void 0 : _e.recordType)]
1370
+ values: [vt((_e = u == null ? void 0 : u.netSuite) == null ? void 0 : _e.recordType)]
1369
1371
  } : null
1370
1372
  ];
1371
1373
  return {
@@ -1375,7 +1377,7 @@ const or = { class: "flex flex-col gap-16 w-full h-full" }, cr = { class: "flex
1375
1377
  {
1376
1378
  label: "Adjustment date",
1377
1379
  values: [
1378
- u.adjustment ? Pe(new Date(bt(u.adjustment))) : "-"
1380
+ u.adjustment ? Pe(new Date(ht(u.adjustment))) : "-"
1379
1381
  ]
1380
1382
  },
1381
1383
  {
@@ -1384,71 +1386,71 @@ const or = { class: "flex flex-col gap-16 w-full h-full" }, cr = { class: "flex
1384
1386
  },
1385
1387
  {
1386
1388
  label: "Received items",
1387
- values: u.received.map((T) => {
1389
+ values: u.received.map((P) => {
1388
1390
  var M;
1389
- return N("div", [
1390
- N(
1391
+ return q("div", [
1392
+ q(
1391
1393
  "div",
1392
1394
  {
1393
1395
  class: "flex gap-4"
1394
1396
  },
1395
1397
  [
1396
- N(
1398
+ q(
1397
1399
  "div",
1398
1400
  {
1399
1401
  class: "flex flex-col"
1400
1402
  },
1401
1403
  [
1402
- N(
1404
+ q(
1403
1405
  "span",
1404
1406
  {
1405
1407
  class: "fm-typo-en-body-lg-800 basis-1/2 shrink-0 grow"
1406
1408
  },
1407
- `${T.sku.name}`
1409
+ `${P.sku.name}`
1408
1410
  ),
1409
- N(
1411
+ q(
1410
1412
  "span",
1411
1413
  {
1412
1414
  class: "fm-typo-en-body-md-400"
1413
1415
  },
1414
- `${T.sku.code} `
1416
+ `${P.sku.code} `
1415
1417
  )
1416
1418
  ]
1417
1419
  ),
1418
- N(
1420
+ q(
1419
1421
  "div",
1420
1422
  {
1421
1423
  class: "ml-auto flex flex-col"
1422
1424
  },
1423
1425
  [
1424
- N(
1426
+ q(
1425
1427
  "div",
1426
1428
  {
1427
1429
  class: "ml-auto flex gap-1"
1428
1430
  },
1429
1431
  [
1430
- N(
1432
+ q(
1431
1433
  "span",
1432
1434
  {
1433
1435
  class: "fm-typo-en-body-lg-600 self-end"
1434
1436
  },
1435
- oe(T.amount, !1)
1437
+ oe(P.amount, !1)
1436
1438
  ),
1437
- N(
1439
+ q(
1438
1440
  "span",
1439
1441
  {
1440
1442
  class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary"
1441
1443
  },
1442
- ((M = T.measurement) == null ? void 0 : M.abbrev) ?? T.sku.unit.abbrev
1444
+ ((M = P.measurement) == null ? void 0 : M.abbrev) ?? P.sku.unit.abbrev
1443
1445
  )
1444
1446
  ]
1445
1447
  ),
1446
- N(
1448
+ q(
1447
1449
  "div",
1448
1450
  {
1449
1451
  class: "flex self-end fm-typo-en-body-md-400 text-fm-color-typo-secondary"
1450
1452
  },
1451
- `${T.cost ? `(${xe(T.cost)})` : ""}`
1453
+ `${P.cost ? `(${xe(P.cost)})` : ""}`
1452
1454
  )
1453
1455
  ]
1454
1456
  )
@@ -1465,50 +1467,50 @@ const or = { class: "flex flex-col gap-16 w-full h-full" }, cr = { class: "flex
1465
1467
  label: "Remark",
1466
1468
  values: [u.remark]
1467
1469
  } : null,
1468
- q > -1 ? {
1470
+ T > -1 ? {
1469
1471
  label: "Fulfilment's sequence",
1470
- values: [`${q + 1}`]
1472
+ values: [`${T + 1}`]
1471
1473
  } : null,
1472
1474
  ...U
1473
- ].filter((T) => T)
1475
+ ].filter((P) => P)
1474
1476
  };
1475
1477
  }
1476
1478
  function j(u) {
1477
1479
  var U, G;
1478
- const q = c.findIndex((C) => C.id === u.id);
1480
+ const T = c.findIndex((C) => C.id === u.id);
1479
1481
  return {
1480
1482
  header: "Fulfillment",
1481
1483
  date: Pe(new Date(u.createdAt)),
1482
1484
  info: [
1483
1485
  {
1484
1486
  label: "Sequence",
1485
- values: [String(q + 1)]
1487
+ values: [String(T + 1)]
1486
1488
  },
1487
1489
  {
1488
1490
  label: "Receiveable items",
1489
1491
  values: u.items.map((C) => {
1490
1492
  var J;
1491
- return N("div", [
1492
- N(
1493
+ return q("div", [
1494
+ q(
1493
1495
  "div",
1494
1496
  {
1495
1497
  class: "flex gap-4"
1496
1498
  },
1497
1499
  [
1498
- N(
1500
+ q(
1499
1501
  "div",
1500
1502
  {
1501
1503
  class: "flex flex-col"
1502
1504
  },
1503
1505
  [
1504
- N(
1506
+ q(
1505
1507
  "span",
1506
1508
  {
1507
1509
  class: "fm-typo-en-body-lg-800 basis-1/2 shrink-0 grow"
1508
1510
  },
1509
1511
  `${C.sku.name}`
1510
1512
  ),
1511
- N(
1513
+ q(
1512
1514
  "span",
1513
1515
  {
1514
1516
  class: "fm-typo-en-body-md-400"
@@ -1517,26 +1519,26 @@ const or = { class: "flex flex-col gap-16 w-full h-full" }, cr = { class: "flex
1517
1519
  )
1518
1520
  ]
1519
1521
  ),
1520
- N(
1522
+ q(
1521
1523
  "div",
1522
1524
  {
1523
1525
  class: "ml-auto flex flex-col"
1524
1526
  },
1525
1527
  [
1526
- N(
1528
+ q(
1527
1529
  "div",
1528
1530
  {
1529
1531
  class: "ml-auto flex gap-1"
1530
1532
  },
1531
1533
  [
1532
- N(
1534
+ q(
1533
1535
  "span",
1534
1536
  {
1535
1537
  class: "fm-typo-en-body-lg-600 self-end"
1536
1538
  },
1537
1539
  oe(C.amount, !1)
1538
1540
  ),
1539
- N(
1541
+ q(
1540
1542
  "span",
1541
1543
  {
1542
1544
  class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary"
@@ -1545,7 +1547,7 @@ const or = { class: "flex flex-col gap-16 w-full h-full" }, cr = { class: "flex
1545
1547
  )
1546
1548
  ]
1547
1549
  ),
1548
- N(
1550
+ q(
1549
1551
  "div",
1550
1552
  {
1551
1553
  class: "flex self-end fm-typo-en-body-md-400 text-fm-color-typo-secondary"
@@ -1566,10 +1568,10 @@ const or = { class: "flex flex-col gap-16 w-full h-full" }, cr = { class: "flex
1566
1568
  ].filter((C) => C)
1567
1569
  };
1568
1570
  }
1569
- return O.map((u) => {
1571
+ return _.map((u) => {
1570
1572
  switch (u.type) {
1571
1573
  case "grn":
1572
- return w(u.doc);
1574
+ return S(u.doc);
1573
1575
  case "fulfillment":
1574
1576
  return j(u.doc);
1575
1577
  }
@@ -1580,18 +1582,18 @@ const or = { class: "flex flex-col gap-16 w-full h-full" }, cr = { class: "flex
1580
1582
  ...Oe(0),
1581
1583
  currency: Je()
1582
1584
  };
1583
- return ((c = n.purchaseOrder) == null ? void 0 : c.items.reduce((O, w) => ({
1584
- ...Fe(O, w.totalCost ?? e),
1585
+ return ((c = n.purchaseOrder) == null ? void 0 : c.items.reduce((_, S) => ({
1586
+ ...Fe(_, S.totalCost ?? e),
1585
1587
  currency: Je()
1586
1588
  }), e)) ?? e;
1587
1589
  });
1588
1590
  return (e, c) => {
1589
1591
  var C, J;
1590
- const O = H("FmButtonGroup"), w = H("FmChip"), j = H("FmMenuDivider"), B = H("FmCard"), Q = H("FmIcon"), u = H("FmTooltip"), q = H("FmSpacer"), U = H("FmButton"), G = H("FmSideSheet");
1591
- return _(), le(G, {
1592
+ const _ = H("FmButtonGroup"), S = H("FmChip"), j = H("FmMenuDivider"), B = H("FmCard"), Q = H("FmIcon"), u = H("FmTooltip"), T = H("FmSpacer"), U = H("FmButton"), G = H("FmSideSheet");
1593
+ return w(), le(G, {
1592
1594
  header: p(r)("inventory.transfer.receiveRequest.details.title") + ((C = e.purchaseOrder) != null && C.seqNumber ? ` #${(J = e.purchaseOrder) == null ? void 0 : J.seqNumber}` : ""),
1593
1595
  modelValue: p(ae),
1594
- "onUpdate:modelValue": c[4] || (c[4] = (F) => wt(ae) ? ae.value = F : null),
1596
+ "onUpdate:modelValue": c[4] || (c[4] = (F) => _t(ae) ? ae.value = F : null),
1595
1597
  "dismiss-away": I.value,
1596
1598
  "close-button": "",
1597
1599
  "max-width": 600
@@ -1599,66 +1601,66 @@ const or = { class: "flex flex-col gap-16 w-full h-full" }, cr = { class: "flex
1599
1601
  default: ie(() => {
1600
1602
  var F, ne, be, ge, _e;
1601
1603
  return [
1602
- s("div", or, [
1604
+ s("div", nr, [
1603
1605
  s("div", null, [
1604
- E(O, {
1606
+ E(_, {
1605
1607
  items: ee.value,
1606
1608
  modelValue: ce.value,
1607
1609
  "onUpdate:modelValue": c[0] || (c[0] = ($) => ce.value = $)
1608
1610
  }, null, 8, ["items", "modelValue"])
1609
1611
  ]),
1610
- ce.value.value === "overview" ? (_(), D(te, { key: 0 }, [
1612
+ ce.value.value === "overview" ? (w(), D(te, { key: 0 }, [
1611
1613
  s("div", null, [
1612
1614
  E(B, {
1613
1615
  variant: "outlined",
1614
1616
  class: "flex flex-col gap-8 px-12 py-16"
1615
1617
  }, {
1616
1618
  default: ie(() => {
1617
- var $, T, M, me, fe, Se, Ke, ze, Ge, He, Qe, Ye;
1619
+ var $, P, M, me, fe, Se, Ke, ze, Ge, He, Qe, Ye;
1618
1620
  return [
1619
- s("div", cr, [
1620
- s("div", lr, x(p(r)("inventory.transfer.receiveRequest.details.requestSummary")), 1),
1621
+ s("div", or, [
1622
+ s("div", cr, R(p(r)("inventory.transfer.receiveRequest.details.requestSummary")), 1),
1621
1623
  s("div", null, [
1622
- E(w, {
1624
+ E(S, {
1623
1625
  label: p(r)(`inventory.transfer.status.${($ = e.purchaseOrder) == null ? void 0 : $.status}`),
1624
- class: Re(`fm-status-badge fm-status-badge-${(M = (T = e.purchaseOrder) == null ? void 0 : T.status) == null ? void 0 : M.toLocaleLowerCase("en-us")}`),
1626
+ class: Re(`fm-status-badge fm-status-badge-${(M = (P = e.purchaseOrder) == null ? void 0 : P.status) == null ? void 0 : M.toLocaleLowerCase("en-us")}`),
1625
1627
  compact: ""
1626
1628
  }, null, 8, ["label", "class"])
1627
1629
  ])
1628
1630
  ]),
1629
1631
  E(j),
1630
- s("div", ir, [
1631
- s("div", ur, [
1632
- s("div", dr, [
1633
- s("div", mr, x(p(r)("inventory.transfer.receiveRequest.details.createdAt")), 1)
1632
+ s("div", lr, [
1633
+ s("div", ir, [
1634
+ s("div", ur, [
1635
+ s("div", dr, R(p(r)("inventory.transfer.receiveRequest.details.createdAt")), 1)
1634
1636
  ]),
1635
- s("div", fr, x(p(ke)(((me = e.purchaseOrder) == null ? void 0 : me._id) ?? "")), 1)
1637
+ s("div", mr, R(p(ke)(((me = e.purchaseOrder) == null ? void 0 : me._id) ?? "")), 1)
1636
1638
  ]),
1637
- (fe = e.purchaseOrder) != null && fe.effectiveAt ? (_(), D("div", pr, [
1638
- s("div", yr, x(p(r)("inventory.transfer.receiveRequest.details.backdatedTo")), 1),
1639
- s("div", vr, x(p(st)(new Date((Se = e.purchaseOrder) == null ? void 0 : Se.effectiveAt))), 1)
1639
+ (fe = e.purchaseOrder) != null && fe.effectiveAt ? (w(), D("div", fr, [
1640
+ s("div", pr, R(p(r)("inventory.transfer.receiveRequest.details.backdatedTo")), 1),
1641
+ s("div", yr, R(p(st)(new Date((Se = e.purchaseOrder) == null ? void 0 : Se.effectiveAt))), 1)
1640
1642
  ])) : L("", !0),
1641
- s("div", hr, [
1642
- s("div", br, x(p(r)("inventory.transfer.receiveRequest.details.type.title")), 1),
1643
- s("div", gr, x(p(r)(
1643
+ s("div", vr, [
1644
+ s("div", hr, R(p(r)("inventory.transfer.receiveRequest.details.type.title")), 1),
1645
+ s("div", br, R(p(r)(
1644
1646
  `inventory.transfer.receiveRequest.details.type.${b.value.toLocaleLowerCase("en-US")}`
1645
1647
  )), 1)
1646
1648
  ]),
1647
- (ze = (Ke = e.purchaseOrder) == null ? void 0 : Ke.supplier) != null && ze.name ? (_(), D("div", _r, [
1648
- s("div", wr, x(p(r)("inventory.transfer.receiveRequest.details.from")), 1),
1649
- s("div", Sr, x((He = (Ge = e.purchaseOrder) == null ? void 0 : Ge.supplier) == null ? void 0 : He.name), 1)
1649
+ (ze = (Ke = e.purchaseOrder) == null ? void 0 : Ke.supplier) != null && ze.name ? (w(), D("div", gr, [
1650
+ s("div", _r, R(p(r)("inventory.transfer.receiveRequest.details.from")), 1),
1651
+ s("div", wr, R((He = (Ge = e.purchaseOrder) == null ? void 0 : Ge.supplier) == null ? void 0 : He.name), 1)
1650
1652
  ])) : L("", !0),
1651
- e.transferTo ? (_(), D("div", xr, [
1652
- s("div", Rr, x(p(r)("inventory.transfer.receiveRequest.details.to")), 1),
1653
- s("div", Or, x(e.transferTo), 1)
1653
+ e.transferTo ? (w(), D("div", Sr, [
1654
+ s("div", xr, R(p(r)("inventory.transfer.receiveRequest.details.to")), 1),
1655
+ s("div", Rr, R(e.transferTo), 1)
1654
1656
  ])) : L("", !0),
1655
- (Qe = e.purchaseOrder) != null && Qe.ref ? (_(), D("div", kr, [
1656
- s("div", Dr, x(p(r)("inventory.transfer.receiveRequest.details.reference")), 1),
1657
- s("div", Nr, x(e.purchaseOrder.ref), 1)
1657
+ (Qe = e.purchaseOrder) != null && Qe.ref ? (w(), D("div", Or, [
1658
+ s("div", kr, R(p(r)("inventory.transfer.receiveRequest.details.reference")), 1),
1659
+ s("div", Dr, R(e.purchaseOrder.ref), 1)
1658
1660
  ])) : L("", !0),
1659
- (Ye = e.purchaseOrder) != null && Ye.remark ? (_(), D("div", Ar, [
1660
- s("div", qr, x(p(r)("inventory.transfer.receiveRequest.details.remark")), 1),
1661
- s("div", Tr, x(e.purchaseOrder.remark), 1)
1661
+ (Ye = e.purchaseOrder) != null && Ye.remark ? (w(), D("div", Nr, [
1662
+ s("div", qr, R(p(r)("inventory.transfer.receiveRequest.details.remark")), 1),
1663
+ s("div", Ar, R(e.purchaseOrder.remark), 1)
1662
1664
  ])) : L("", !0)
1663
1665
  ])
1664
1666
  ];
@@ -1666,43 +1668,43 @@ const or = { class: "flex flex-col gap-16 w-full h-full" }, cr = { class: "flex
1666
1668
  _: 1
1667
1669
  })
1668
1670
  ]),
1669
- p(y).isNetSuiteEnabled && !S.value ? (_(), D("div", Pr, [
1670
- s("div", $r, [
1671
+ p(y).isNetSuiteEnabled && !x.value ? (w(), D("div", Tr, [
1672
+ s("div", Pr, [
1671
1673
  c[5] || (c[5] = s("span", { class: "flex-1 fm-typo-en-body-lg-600" }, "NetSuite Info", -1)),
1672
1674
  s("div", null, [
1673
- E(Zt, {
1675
+ E(Jt, {
1674
1676
  "po-request": e.poRequest,
1675
1677
  "purchase-order": e.purchaseOrder,
1676
- "is-transfer-between-outlets": S.value
1678
+ "is-transfer-between-outlets": x.value
1677
1679
  }, null, 8, ["po-request", "purchase-order", "is-transfer-between-outlets"])
1678
1680
  ])
1679
1681
  ]),
1680
1682
  E(j),
1681
- E(Xt, {
1683
+ E(Wt, {
1682
1684
  "po-request": e.poRequest,
1683
1685
  "purchase-order": e.purchaseOrder,
1684
1686
  "transfer-type": b.value,
1685
1687
  "transfer-to-db-name": e.transferToDbName,
1686
- "is-transfer-between-outlets": S.value,
1688
+ "is-transfer-between-outlets": x.value,
1687
1689
  scope: e.scope
1688
1690
  }, null, 8, ["po-request", "purchase-order", "transfer-type", "transfer-to-db-name", "is-transfer-between-outlets", "scope"])
1689
1691
  ])) : L("", !0),
1690
- s("div", Cr, [
1691
- s("div", Ir, [
1692
- s("div", Fr, [
1693
- s("span", Er, [
1694
- $e(x(qe.value ? p(r)("inventory.transfer.receiveRequest.details.receivedItems") : p(r)("inventory.transfer.receiveRequest.details.requestedItems")) + " ", 1),
1695
- (ne = (F = e.purchaseOrder) == null ? void 0 : F.netSuite) != null && ne.missingItems && ((ge = (be = e.purchaseOrder) == null ? void 0 : be.netSuite) == null ? void 0 : ge.missingItems.length) > 0 ? (_(), le(u, {
1692
+ s("div", $r, [
1693
+ s("div", Cr, [
1694
+ s("div", Ir, [
1695
+ s("span", Fr, [
1696
+ $e(R(Ae.value ? p(r)("inventory.transfer.receiveRequest.details.receivedItems") : p(r)("inventory.transfer.receiveRequest.details.requestedItems")) + " ", 1),
1697
+ (ne = (F = e.purchaseOrder) == null ? void 0 : F.netSuite) != null && ne.missingItems && ((ge = (be = e.purchaseOrder) == null ? void 0 : be.netSuite) == null ? void 0 : ge.missingItems.length) > 0 ? (w(), le(u, {
1696
1698
  key: 0,
1697
1699
  variant: "rich",
1698
1700
  placement: "top",
1699
1701
  "z-index": 51
1700
1702
  }, {
1701
1703
  content: ie(() => {
1702
- var $, T;
1704
+ var $, P;
1703
1705
  return [
1704
- s("div", Br, [
1705
- (_(!0), D(te, null, pe((T = ($ = e.purchaseOrder) == null ? void 0 : $.netSuite) == null ? void 0 : T.missingItems, (M, me) => (_(), D("div", {
1706
+ s("div", Er, [
1707
+ (w(!0), D(te, null, pe((P = ($ = e.purchaseOrder) == null ? void 0 : $.netSuite) == null ? void 0 : P.missingItems, (M, me) => (w(), D("div", {
1706
1708
  class: "flex justify-center align-middle",
1707
1709
  key: me
1708
1710
  }, [
@@ -1710,7 +1712,7 @@ const or = { class: "flex flex-col gap-16 w-full h-full" }, cr = { class: "flex
1710
1712
  name: "arrow_right",
1711
1713
  size: "sm"
1712
1714
  }),
1713
- $e(" " + x(`(${M.netSuiteId}) ${M.name}: ${M.reason}`), 1)
1715
+ $e(" " + R(`(${M.netSuiteId}) ${M.name}: ${M.reason}`), 1)
1714
1716
  ]))), 128))
1715
1717
  ])
1716
1718
  ];
@@ -1727,101 +1729,101 @@ const or = { class: "flex flex-col gap-16 w-full h-full" }, cr = { class: "flex
1727
1729
  ])
1728
1730
  ]),
1729
1731
  E(j),
1730
- (_(!0), D(te, null, pe(((_e = e.purchaseOrder) == null ? void 0 : _e.items) ?? [], ($) => {
1731
- var T;
1732
- return _(), D("div", {
1732
+ (w(!0), D(te, null, pe(((_e = e.purchaseOrder) == null ? void 0 : _e.items) ?? [], ($) => {
1733
+ var P;
1734
+ return w(), D("div", {
1733
1735
  key: $.code,
1734
1736
  class: "flex flex-col"
1735
1737
  }, [
1736
- s("div", Ur, [
1737
- s("div", Lr, x($.name), 1),
1738
- s("div", Vr, x(p(oe)(Te.value[$.sku._id], !1)) + "/" + x(p(nt)($.quantity, $.sku.unit, $.measurement)), 1)
1738
+ s("div", Br, [
1739
+ s("div", Ur, R($.name), 1),
1740
+ s("div", Lr, R(p(oe)(Te.value[$.sku._id], !1)) + "/" + R(p(nt)($.quantity, $.sku.unit, $.measurement)), 1)
1739
1741
  ]),
1740
- s("div", Mr, [
1741
- s("div", jr, x($.code), 1),
1742
- (T = $.totalCost) != null && T.amount && p(d).enableTotalCost ? (_(), D("div", Kr, " (" + x(p(xe)($.totalCost)) + ") ", 1)) : L("", !0)
1742
+ s("div", Vr, [
1743
+ s("div", Mr, R($.code), 1),
1744
+ (P = $.totalCost) != null && P.amount && p(d).enableTotalCost ? (w(), D("div", jr, " (" + R(p(xe)($.totalCost)) + ") ", 1)) : L("", !0)
1743
1745
  ])
1744
1746
  ]);
1745
1747
  }), 128)),
1746
- +p(oe)(k.value) ? (_(), D(te, { key: 0 }, [
1747
- s("div", zr, [
1748
+ +p(oe)(k.value) ? (w(), D(te, { key: 0 }, [
1749
+ s("div", Kr, [
1748
1750
  E(j)
1749
1751
  ]),
1750
- s("div", Gr, [
1752
+ s("div", zr, [
1751
1753
  c[6] || (c[6] = s("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, "Total:", -1)),
1752
- s("div", Hr, x(p(xe)(k.value)), 1)
1754
+ s("div", Gr, R(p(xe)(k.value)), 1)
1753
1755
  ])
1754
1756
  ], 64)) : L("", !0)
1755
1757
  ])
1756
1758
  ])
1757
- ], 64)) : ce.value.value === "deliveryHistory" ? (_(), D("div", Qr, [
1758
- g.value.length ? (_(), D("div", Zr, [
1759
- (_(!0), D(te, null, pe(g.value, ($, T) => (_(), D(te, { key: T }, [
1760
- s("div", es, [
1761
- s("div", ts, [
1762
- s("div", rs, [
1759
+ ], 64)) : ce.value.value === "deliveryHistory" ? (w(), D("div", Hr, [
1760
+ g.value.length ? (w(), D("div", Jr, [
1761
+ (w(!0), D(te, null, pe(g.value, ($, P) => (w(), D(te, { key: P }, [
1762
+ s("div", Zr, [
1763
+ s("div", es, [
1764
+ s("div", ts, [
1763
1765
  s("div", {
1764
1766
  class: Re([
1765
1767
  {
1766
- "bg-fm-color-primary": T !== 0,
1767
- "bg-white": T === 0
1768
+ "bg-fm-color-primary": P !== 0,
1769
+ "bg-white": P === 0
1768
1770
  },
1769
1771
  "w-[2px] h-full"
1770
1772
  ])
1771
1773
  }, null, 2)
1772
1774
  ]),
1773
1775
  c[7] || (c[7] = s("div", { class: "h-24 w-24 bg-fm-color-primary rounded-full" }, null, -1)),
1774
- s("div", ss, [
1776
+ s("div", rs, [
1775
1777
  s("div", {
1776
1778
  class: Re([
1777
1779
  {
1778
- "bg-fm-color-primary": T < g.value.length - 1,
1779
- "bg-white": T >= g.value.length - 1
1780
+ "bg-fm-color-primary": P < g.value.length - 1,
1781
+ "bg-white": P >= g.value.length - 1
1780
1782
  },
1781
1783
  "w-[2px] h-full"
1782
1784
  ])
1783
1785
  }, null, 2)
1784
1786
  ])
1785
1787
  ]),
1786
- s("div", as, [
1787
- s("div", ns, x($.header), 1),
1788
- s("div", os, x($.date), 1)
1788
+ s("div", ss, [
1789
+ s("div", as, R($.header), 1),
1790
+ s("div", ns, R($.date), 1)
1789
1791
  ])
1790
1792
  ]),
1791
- s("div", cs, [
1792
- s("div", ls, [
1793
- s("div", is, [
1793
+ s("div", os, [
1794
+ s("div", cs, [
1795
+ s("div", ls, [
1794
1796
  s("div", {
1795
1797
  class: Re([
1796
1798
  {
1797
- "bg-fm-color-primary": T < g.value.length - 1,
1798
- "bg-white": T >= g.value.length - 1
1799
+ "bg-fm-color-primary": P < g.value.length - 1,
1800
+ "bg-white": P >= g.value.length - 1
1799
1801
  },
1800
1802
  "w-[2px] h-full"
1801
1803
  ])
1802
1804
  }, null, 2)
1803
1805
  ])
1804
1806
  ]),
1805
- s("div", us, [
1807
+ s("div", is, [
1806
1808
  E(B, {
1807
1809
  variant: "outlined",
1808
1810
  class: "py-12 px-16"
1809
1811
  }, {
1810
1812
  default: ie(() => [
1811
- s("div", ds, [
1812
- (_(!0), D(te, null, pe($.info, (M, me) => (_(), D("div", {
1813
+ s("div", us, [
1814
+ (w(!0), D(te, null, pe($.info, (M, me) => (w(), D("div", {
1813
1815
  key: me,
1814
1816
  class: "flex flex-col gap-4"
1815
1817
  }, [
1816
- s("div", ms, x(M == null ? void 0 : M.label), 1),
1817
- s("div", fs, [
1818
- (_(!0), D(te, null, pe(M == null ? void 0 : M.values, (fe, Se) => (_(), D("div", {
1818
+ s("div", ds, R(M == null ? void 0 : M.label), 1),
1819
+ s("div", ms, [
1820
+ (w(!0), D(te, null, pe(M == null ? void 0 : M.values, (fe, Se) => (w(), D("div", {
1819
1821
  key: Se,
1820
1822
  class: "fm-typo-en-body-lg-600"
1821
1823
  }, [
1822
- typeof fe == "string" ? (_(), D(te, { key: 0 }, [
1823
- $e(x(fe), 1)
1824
- ], 64)) : (_(), le(St(fe), { key: 1 }))
1824
+ typeof fe == "string" ? (w(), D(te, { key: 0 }, [
1825
+ $e(R(fe), 1)
1826
+ ], 64)) : (w(), le(wt(fe), { key: 1 }))
1825
1827
  ]))), 128))
1826
1828
  ])
1827
1829
  ]))), 128))
@@ -1832,46 +1834,46 @@ const or = { class: "flex flex-col gap-16 w-full h-full" }, cr = { class: "flex
1832
1834
  ])
1833
1835
  ])
1834
1836
  ], 64))), 128))
1835
- ])) : (_(), D("div", Yr, [
1836
- E(q),
1837
+ ])) : (w(), D("div", Qr, [
1838
+ E(T),
1837
1839
  s("div", null, [
1838
1840
  s("img", {
1839
- src: p(kt),
1841
+ src: p(Ot),
1840
1842
  alt: "List is empty"
1841
- }, null, 8, Wr)
1843
+ }, null, 8, Yr)
1842
1844
  ]),
1843
- s("div", Xr, x(p(r)("inventory.transfer.receiveRequest.details.noRecordsFound")), 1),
1844
- s("div", Jr, x(p(r)("inventory.transfer.receiveRequest.details.trackDeliveryMessage")), 1),
1845
- E(q),
1846
- E(q)
1845
+ s("div", Wr, R(p(r)("inventory.transfer.receiveRequest.details.noRecordsFound")), 1),
1846
+ s("div", Xr, R(p(r)("inventory.transfer.receiveRequest.details.trackDeliveryMessage")), 1),
1847
+ E(T),
1848
+ E(T)
1847
1849
  ]))
1848
1850
  ])) : L("", !0)
1849
1851
  ])
1850
1852
  ];
1851
1853
  }),
1852
1854
  "side-sheet-footer": ie(() => [
1853
- s("div", ps, [
1854
- (_(!0), D(te, null, pe(X.value, (F) => (_(), le(U, {
1855
+ s("div", fs, [
1856
+ (w(!0), D(te, null, pe(X.value, (F) => (w(), le(U, {
1855
1857
  key: F,
1856
1858
  label: p(r)(p(et)[F].translationKey),
1857
1859
  onClick: (ne) => he(F),
1858
1860
  loading: A.value === F,
1859
- disabled: A.value !== F && R.value,
1861
+ disabled: A.value !== F && O.value,
1860
1862
  variant: p(et)[F].buttonVariant
1861
1863
  }, null, 8, ["label", "onClick", "loading", "disabled", "variant"]))), 128)),
1862
- p(f).ableToMarkReceived(e.purchaseOrder) && !X.value.includes("completeReceive") ? (_(), le(U, {
1864
+ p(f).ableToMarkReceived(e.purchaseOrder) && !X.value.includes("completeReceive") ? (w(), le(U, {
1863
1865
  key: 0,
1864
1866
  label: p(r)("inventory.transfer.receiveRequest.actions.completeReceive"),
1865
1867
  onClick: c[1] || (c[1] = (F) => he("completeReceive")),
1866
1868
  loading: A.value === "completeReceive",
1867
- disabled: A.value !== "completeReceive" && R.value
1869
+ disabled: A.value !== "completeReceive" && O.value
1868
1870
  }, null, 8, ["label", "loading", "disabled"])) : L("", !0),
1869
- p(f).ableToMarkApproved(e.purchaseOrder) && e.canApprove && !X.value.includes("approveRequest") ? (_(), le(U, {
1871
+ p(f).ableToMarkApproved(e.purchaseOrder) && e.canApprove && !X.value.includes("approveRequest") ? (w(), le(U, {
1870
1872
  key: 1,
1871
1873
  label: p(r)("inventory.transfer.approval.actions.approveRequest"),
1872
1874
  onClick: c[2] || (c[2] = (F) => he("approveRequest")),
1873
1875
  loading: A.value === "approveRequest",
1874
- disabled: A.value !== "approveRequest" && R.value
1876
+ disabled: A.value !== "approveRequest" && O.value
1875
1877
  }, null, 8, ["label", "loading", "disabled"])) : L("", !0),
1876
1878
  E(U, {
1877
1879
  label: p(r)("common.close"),
@@ -1887,9 +1889,9 @@ const or = { class: "flex flex-col gap-16 w-full h-full" }, cr = { class: "flex
1887
1889
  });
1888
1890
  export {
1889
1891
  Ee as P,
1890
- Ds as _,
1891
- Os as a,
1892
- ks as b,
1893
- Pt as g,
1892
+ ks as _,
1893
+ Rs as a,
1894
+ Os as b,
1895
+ Tt as g,
1894
1896
  Ne as u
1895
1897
  };