@feedmepos/mf-inventory-portal 0.0.22-dev.12 → 0.0.22-dev.16

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/{ApprovalView-Cjeqabxg.js → ApprovalView-CAYVSFN0.js} +4 -4
  2. package/dist/{BindingsDialog-DYf9izzO.js → BindingsDialog-vA6l3jG3.js} +1 -1
  3. package/dist/{BindingsPicker--GhOF5Zy.js → BindingsPicker-CtkS9du1.js} +8 -8
  4. package/dist/{BindingsTable-DFGX1bO_.js → BindingsTable-BsTvZ3Uc.js} +1 -1
  5. package/dist/{ClosingTemplateView-D0ZehXOT.js → ClosingTemplateView-Bjd9mypa.js} +5 -5
  6. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CzXWOCCv.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-C-ixTs_z.js} +1 -1
  7. package/dist/{IngredientsView-D-M4VjtX.js → IngredientsView-mZKGdmy8.js} +3 -3
  8. package/dist/{IntegrationView-D29NyKuw.js → IntegrationView-DQXcW-ln.js} +2 -2
  9. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DMzUk8cN.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CkIFefTS.js} +1 -1
  10. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-CrYQR5oS.js → PremiumBadge.vue_vue_type_script_setup_true_lang-DbP09mHM.js} +1 -1
  11. package/dist/{PurchaseOrderPrintPreview-BmzWBQYf.js → PurchaseOrderPrintPreview-B8fEITH6.js} +1 -1
  12. package/dist/{ReceiveRequestView-D5uhgByr.js → ReceiveRequestView-0gHjqve_.js} +6 -6
  13. package/dist/RecipeView-D9Xl9ezv.js +590 -0
  14. package/dist/Standalone.vue.d.ts +2 -0
  15. package/dist/{StockView-jAGaTT7q.js → StockView-D1Q8Y387.js} +6 -6
  16. package/dist/{SupplierView-BjkhByNr.js → SupplierView-kheETesd.js} +3 -3
  17. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-CInXmMf_.js → TransferDetails.vue_vue_type_script_setup_true_lang-Cigg5L-V.js} +178 -177
  18. package/dist/{TransferDialog.vue_vue_type_script_setup_true_lang-CLiLhIMS.js → TransferDialog.vue_vue_type_script_setup_true_lang-Ck5_VSjb.js} +440 -437
  19. package/dist/TransferTemplateView-Cp6Qqig-.js +1209 -0
  20. package/dist/{UnitView-BrlpQn3T.js → UnitView-BAcYAfVj.js} +4 -4
  21. package/dist/{WarehouseView-CbTTIdv9.js → WarehouseView-CkhMv-Om.js} +2 -2
  22. package/dist/{app-BDzV3RNp.js → app-BdUHoQTw.js} +3418 -3400
  23. package/dist/app.js +1 -1
  24. package/dist/components/FmMinMaxInputRules.d.ts +2 -0
  25. package/dist/components/FmUnitInputRules.d.ts +2 -0
  26. package/dist/{decimal-CRTw2PGO.js → decimal-DEVEov-F.js} +1 -1
  27. package/dist/{defineDeepModel-BoSSw2c6.js → defineDeepModel-BZrIgGc7.js} +1 -1
  28. package/dist/{format-time-from-id-CxoHtJa5.js → format-time-from-id-DkDDZc4Y.js} +1 -1
  29. package/dist/helper/rules.d.ts +7 -1
  30. package/dist/helper/rules.spec.d.ts +1 -0
  31. package/dist/{id-to-date-CJbxtIFh.js → id-to-date-CN0cWcz6.js} +1 -1
  32. package/dist/{purchase-order-transaction-type-0nZnCUE7.js → purchase-order-transaction-type-B80tMuy6.js} +28 -27
  33. package/dist/{supplier-BA6jJGNv.js → supplier-BKYn47F9.js} +1 -1
  34. package/dist/tsconfig.app.tsbuildinfo +1 -1
  35. package/dist/{use-template-enabled-locations-2-Di0NHn-g.js → use-template-enabled-locations-2-Cg7uYAyw.js} +1 -1
  36. package/dist/views/receive-request/components/transfer-details/TransferDetailsProps.d.ts +1 -0
  37. package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +522 -0
  38. package/dist/views/receive-request/components/transfer-form/TransferFormProps.d.ts +1 -0
  39. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +21 -0
  40. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +21 -0
  41. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +1 -1
  42. package/dist/{xlsx-BEDKASqP.js → xlsx-BshS3GM8.js} +1 -1
  43. package/dist/{xlsx.util-MTUBPx67.js → xlsx.util-B_wXW9m4.js} +2 -2
  44. package/package.json +1 -1
  45. package/dist/RecipeView-CREeE1nK.js +0 -581
  46. package/dist/TransferTemplateView-CUqEsRJ6.js +0 -1262
@@ -1,24 +1,24 @@
1
- import { f as ae } from "./format-time-from-id-CxoHtJa5.js";
2
- import { computed as re, h as le, defineComponent as Ce, ref as Z, resolveComponent as L, openBlock as d, createBlock as N, unref as s, isRef as Ee, withCtx as ee, createElementVNode as e, createVNode as U, createElementBlock as y, Fragment as W, toDisplayString as n, normalizeClass as te, createCommentVNode as v, renderList as ie } from "vue";
3
- import { c as ke } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
4
- import { D as h, R as p } from "./row-action.enum-PMKMRrZR.js";
5
- import { D as xe, l as ce, a as ue, a8 as de, ak as g, c as Ne, j as Pe, af as q, J as Te, H as Fe, G as je, ai as Ie, b as Ue, x as Me } from "./app-BDzV3RNp.js";
6
- import { F as $e } from "./decimal-CRTw2PGO.js";
7
- import { f as me, P as se, d as Ke, e as Le } from "./purchase-order-transaction-type-0nZnCUE7.js";
8
- import { components as Ve, useDialog as Be, useSnackbar as Ge, useProxiedModel as He } from "@feedmepos/ui-library";
9
- import { useI18n as we } from "@feedmepos/mf-common";
10
- import { E as ze } from "./empty-placeholder-wf6-BWE8.js";
11
- function Qe(f, k) {
1
+ import { f as ae } from "./format-time-from-id-DkDDZc4Y.js";
2
+ import { computed as re, h as le, defineComponent as Te, ref as Z, resolveComponent as L, openBlock as d, createBlock as N, unref as s, isRef as Fe, withCtx as ee, createElementVNode as e, createVNode as U, createElementBlock as y, Fragment as W, toDisplayString as n, normalizeClass as te, createCommentVNode as p, renderList as ie } from "vue";
3
+ import { c as De } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
4
+ import { D as h, R as v } from "./row-action.enum-PMKMRrZR.js";
5
+ import { D as Ae, m as ce, a as ue, al as de, am as g, c as je, j as Ie, ag as q, J as Ue, H as Me, G as $e, aj as Ke, b as Le, x as Ve } from "./app-BdUHoQTw.js";
6
+ import { F as Be } from "./decimal-DEVEov-F.js";
7
+ import { f as me, P as se, d as Ge, e as He } from "./purchase-order-transaction-type-B80tMuy6.js";
8
+ import { components as ze, useDialog as Qe, useSnackbar as Ye, useProxiedModel as Je } from "@feedmepos/ui-library";
9
+ import { useI18n as Ce } from "@feedmepos/mf-common";
10
+ import { E as We } from "./empty-placeholder-wf6-BWE8.js";
11
+ function Xe(f, k) {
12
12
  return k.reduce(
13
13
  (a, P) => {
14
- const S = P.received.find((C) => C.sku._id === f._id);
15
- return S && (a = xe(a, S.amount)), a;
14
+ const w = P.received.find((C) => C.sku._id === f._id);
15
+ return w && (a = Ae(a, w.amount)), a;
16
16
  },
17
- $e.toPrecision(ce(0), f.unit.precision)
17
+ Be.toPrecision(ce(0), f.unit.precision)
18
18
  );
19
19
  }
20
- function Ye(f, k) {
21
- const { name: _, address: a, regNo: P } = k.doc.profile, S = {
20
+ function Ze(f, k) {
21
+ const { name: _, address: a, regNo: P } = k.doc.profile, w = {
22
22
  name: _,
23
23
  registrationNumber: P,
24
24
  line1: a == null ? void 0 : a.line1,
@@ -38,7 +38,7 @@ function Ye(f, k) {
38
38
  country: f.supplier.address.country
39
39
  }, V = f.items.map((c) => {
40
40
  const { sku: i, measurement: u } = c, T = ue(
41
- Qe(c.sku, f.deliveryOrder || []),
41
+ Xe(c.sku, f.deliveryOrder || []),
42
42
  !1
43
43
  );
44
44
  return {
@@ -66,7 +66,7 @@ function Ye(f, k) {
66
66
  createdAt: ae(f._id),
67
67
  ref: f.ref || "",
68
68
  remark: f.remark || "",
69
- buyer: S,
69
+ buyer: w,
70
70
  supplier: C,
71
71
  items: V,
72
72
  status: f.status,
@@ -116,68 +116,68 @@ const H = {
116
116
  value: g.enum.completeReceive
117
117
  }
118
118
  };
119
- function Rs(f, k) {
120
- const _ = Pe(), { t: a } = we();
119
+ function xs(f, k) {
120
+ const _ = Ie(), { t: a } = Ce();
121
121
  function P(l) {
122
122
  switch (l.status) {
123
123
  case "DRAFT":
124
124
  return [
125
125
  l.supplier.internal === "restaurant" || l.supplier.internal === "warehouse" ? H[g.enum.submitRequest] : H[g.enum.confirmDraft],
126
126
  H[g.enum.cancelDraft],
127
- h[p.Update],
128
- h[p.Details],
129
- h[p.Print]
127
+ h[v.Update],
128
+ h[v.Details],
129
+ h[v.Print]
130
130
  ];
131
131
  case "RECEIVING":
132
132
  return [
133
133
  H[g.enum.completeReceive],
134
- h[p.Update],
135
- h[p.Details],
136
- h[p.Print]
134
+ h[v.Update],
135
+ h[v.Details],
136
+ h[v.Print]
137
137
  ];
138
138
  case "REQUESTING":
139
139
  return f === "receive/request" ? [
140
- h[p.Update],
141
- h[p.Details],
142
- h[p.Print]
140
+ h[v.Update],
141
+ h[v.Details],
142
+ h[v.Print]
143
143
  ] : [
144
144
  H[g.enum.approveRequest],
145
145
  H[g.enum.rejectRequest],
146
- h[p.Details],
147
- h[p.Print]
146
+ h[v.Details],
147
+ h[v.Print]
148
148
  ];
149
149
  case "PROCESSING":
150
- return [h[p.Details], h[p.Print]];
150
+ return [h[v.Details], h[v.Print]];
151
151
  case "COMPLETE":
152
152
  return [
153
- h[p.Update],
154
- h[p.Details],
155
- h[p.Print]
153
+ h[v.Update],
154
+ h[v.Details],
155
+ h[v.Print]
156
156
  ];
157
157
  case "CANCEL":
158
158
  default:
159
- return [h[p.Details], h[p.Print]];
159
+ return [h[v.Details], h[v.Print]];
160
160
  }
161
161
  }
162
- function S(l) {
162
+ function w(l) {
163
163
  return Object.values(g.enum).includes(l);
164
164
  }
165
165
  async function C(l, c, i) {
166
166
  var T, X;
167
- const u = Ne(c);
168
- if (l === p.Print) {
169
- Ye(u, _.currentLocation);
167
+ const u = je(c);
168
+ if (l === v.Print) {
169
+ Ze(u, _.currentLocation);
170
170
  return;
171
171
  }
172
- if (l === p.Details) {
172
+ if (l === v.Details) {
173
173
  k.promptShowTransferDetails(u, i);
174
174
  return;
175
175
  }
176
- if (l === p.Update) {
176
+ if (l === v.Update) {
177
177
  (T = k.promptUpdateTransferDialog) == null || T.call(k, u);
178
178
  return;
179
179
  }
180
- if (S(l)) {
180
+ if (w(l)) {
181
181
  k.submitAction(c, l, (X = i == null ? void 0 : i.to) == null ? void 0 : X.dbName);
182
182
  return;
183
183
  }
@@ -245,7 +245,7 @@ function Rs(f, k) {
245
245
  id: "action",
246
246
  cell(l) {
247
247
  const c = l.row.original, i = P(c);
248
- return ke(i, (u) => C(u, c));
248
+ return De(i, (u) => C(u, c));
249
249
  },
250
250
  enableSorting: !1,
251
251
  size: 40,
@@ -295,7 +295,7 @@ function Rs(f, k) {
295
295
  header: () => a("inventory.transfer.table.status"),
296
296
  cell(l) {
297
297
  const c = a(`inventory.transfer.status.${l.getValue() ?? ""}`), i = `${l.getValue() ?? ""}`.toLocaleLowerCase("en-us");
298
- return le(Ve.FmChip, {
298
+ return le(ze.FmChip, {
299
299
  label: c,
300
300
  class: `fm-status-badge fm-status-badge-${i}`,
301
301
  compact: !0
@@ -307,7 +307,7 @@ function Rs(f, k) {
307
307
  id: "action",
308
308
  cell(l) {
309
309
  const c = l.row.original, i = c.purchaseOrder ? P(c.purchaseOrder) : [];
310
- return ke(
310
+ return De(
311
311
  i,
312
312
  (u) => c.purchaseOrder ? C(u, c.purchaseOrder, c) : void 0
313
313
  );
@@ -328,57 +328,58 @@ function Rs(f, k) {
328
328
  }
329
329
  };
330
330
  }
331
- const Je = { class: "flex flex-col gap-16 w-full h-full" }, We = { class: "flex justify-between" }, Xe = { class: "fm-typo-en-body-lg-600" }, Ze = { class: "flex flex-col gap-8" }, et = { class: "flex flex-col gap-4" }, tt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, st = { class: "flex gap-1" }, rt = { class: "fm-typo-en-body-lg-600" }, at = {
331
+ const et = { class: "flex flex-col gap-16 w-full h-full" }, tt = { class: "flex justify-between" }, st = { class: "fm-typo-en-body-lg-600" }, rt = { class: "flex flex-col gap-8" }, at = { class: "flex flex-col gap-4" }, nt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ot = { class: "flex gap-1" }, lt = { class: "fm-typo-en-body-lg-600" }, it = {
332
332
  key: 0,
333
333
  class: "flex flex-col gap-4"
334
- }, nt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ot = { class: "fm-typo-en-body-lg-600" }, lt = { class: "flex flex-col gap-4" }, it = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ct = { class: "fm-typo-en-body-lg-600" }, ut = {
334
+ }, ct = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ut = { class: "fm-typo-en-body-lg-600" }, dt = { class: "flex flex-col gap-4" }, mt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ft = { class: "fm-typo-en-body-lg-600" }, pt = {
335
335
  key: 1,
336
336
  class: "flex flex-col gap-4"
337
- }, dt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, mt = { class: "fm-typo-en-body-lg-600" }, ft = {
337
+ }, vt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, yt = { class: "fm-typo-en-body-lg-600" }, ht = {
338
338
  key: 2,
339
339
  class: "flex flex-col gap-4"
340
- }, vt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, pt = { class: "fm-typo-en-body-lg-600" }, yt = {
340
+ }, bt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, gt = { class: "fm-typo-en-body-lg-600" }, _t = {
341
341
  key: 3,
342
342
  class: "flex flex-col gap-4"
343
- }, ht = { class: "fm-typo-en-body-lg-600" }, bt = {
343
+ }, Rt = { class: "fm-typo-en-body-lg-600" }, Ot = {
344
344
  key: 4,
345
345
  class: "flex flex-col gap-4"
346
- }, gt = { class: "fm-typo-en-body-lg-600" }, _t = {
346
+ }, qt = { class: "fm-typo-en-body-lg-600" }, kt = {
347
347
  key: 5,
348
348
  class: "flex flex-col gap-4"
349
- }, Rt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ot = { class: "fm-typo-en-body-lg-600" }, qt = {
349
+ }, xt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, St = { class: "fm-typo-en-body-lg-600" }, wt = {
350
350
  key: 6,
351
351
  class: "flex flex-col gap-4"
352
- }, kt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, xt = { class: "fm-typo-en-body-lg-600" }, wt = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg p-16" }, St = { class: "flex flex-col gap-8" }, Dt = { class: "fm-typo-en-body-lg-600" }, At = { class: "flex w-full gap-4" }, Ct = { class: "basis-1/2 shrink-0 grow fm-typo-en-body-lg-400 line-clamp-2" }, Et = { class: "fm-typo-en-body-lg-600 line-clamp-2" }, Nt = { class: "flex w-full gap-4 fm-typo-en-body-sm-400" }, Pt = { class: "grow fm-typo-en-body-lg-400 text-fm-color-typo-secondary line-clamp-1" }, Tt = {
352
+ }, Dt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, At = { class: "fm-typo-en-body-lg-600" }, Ct = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg p-16" }, Et = { class: "flex flex-col gap-8" }, Nt = { class: "fm-typo-en-body-lg-600" }, Pt = { class: "flex w-full gap-4" }, Tt = { class: "basis-1/2 shrink-0 grow fm-typo-en-body-lg-400 line-clamp-2" }, Ft = { class: "fm-typo-en-body-lg-600 line-clamp-2" }, jt = { class: "flex w-full gap-4 fm-typo-en-body-sm-400" }, It = { class: "grow fm-typo-en-body-lg-400 text-fm-color-typo-secondary line-clamp-1" }, Ut = {
353
353
  key: 0,
354
354
  class: "line-clamp-1 fm-typo-en-body-lg-400 text-fm-color-typo-secondary"
355
- }, Ft = {
355
+ }, Mt = {
356
356
  key: 1,
357
357
  class: "flex-1 xs:w-screen xs:max-w-full"
358
- }, jt = {
358
+ }, $t = {
359
359
  key: 0,
360
360
  class: "flex flex-col items-center gap-8 h-full"
361
- }, It = ["src"], Ut = { class: "fm-typo-en-body-lg-600" }, Mt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary px-16" }, $t = {
361
+ }, Kt = ["src"], Lt = { class: "fm-typo-en-body-lg-600" }, Vt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary px-16" }, Bt = {
362
362
  key: 1,
363
363
  class: "px-4 flex flex-col"
364
- }, Kt = { class: "flex gap-12 content-stretch" }, Lt = {
364
+ }, Gt = { class: "flex gap-12 content-stretch" }, Ht = {
365
365
  class: "flex flex-col w-24",
366
366
  name: "circles"
367
- }, Vt = { class: "flex-1 flex flex-col items-center" }, Bt = { class: "flex-1 flex flex-col items-center" }, Gt = {
367
+ }, zt = { class: "flex-1 flex flex-col items-center" }, Qt = { class: "flex-1 flex flex-col items-center" }, Yt = {
368
368
  class: "py-12 flex flex-col gap-4",
369
369
  name: "received-at header"
370
- }, Ht = { class: "fm-typo-en-body-lg-400" }, zt = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Qt = { class: "flex gap-12 content-stretch" }, Yt = {
370
+ }, Jt = { class: "fm-typo-en-body-lg-400" }, Wt = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Xt = { class: "flex gap-12 content-stretch" }, Zt = {
371
371
  class: "flex flex-col w-24",
372
372
  name: "circles"
373
- }, Jt = { class: "flex-1 flex flex-col items-center" }, Wt = {
373
+ }, es = { class: "flex-1 flex flex-col items-center" }, ts = {
374
374
  class: "py-12 flex flex-col gap-4 flex-1",
375
375
  name: "delivery details"
376
- }, Xt = { class: "flex flex-col gap-8" }, Zt = { class: "flex flex-col gap-4" }, es = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, ts = { class: "fm-typo-en-body-lg-600" }, ss = { class: "flex flex-col gap-4" }, rs = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, as = { class: "flex flex-col gap-4" }, ns = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, os = { class: "fm-typo-en-body-lg-600" }, ls = { class: "flex flex-col gap-4" }, is = {
376
+ }, ss = { class: "flex flex-col gap-8" }, rs = { class: "flex flex-col gap-4" }, as = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, ns = { class: "fm-typo-en-body-lg-600" }, os = { class: "flex flex-col gap-4" }, ls = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, is = { class: "flex flex-col gap-4" }, cs = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, us = { class: "fm-typo-en-body-lg-600" }, ds = { class: "flex flex-col gap-4" }, ms = {
377
377
  key: 0,
378
378
  class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary"
379
- }, cs = { class: "fm-typo-en-body-lg-600" }, us = { class: "flex gap-8 xs:flex-col" }, Os = /* @__PURE__ */ Ce({
379
+ }, fs = { class: "fm-typo-en-body-lg-600" }, ps = { class: "flex gap-8 xs:flex-col" }, Ss = /* @__PURE__ */ Te({
380
380
  __name: "TransferDetails",
381
381
  props: {
382
+ poRequest: {},
382
383
  purchaseOrder: {},
383
384
  transferTo: {},
384
385
  transferToDbName: {},
@@ -388,7 +389,7 @@ const Je = { class: "flex flex-col gap-16 w-full h-full" }, We = { class: "flex
388
389
  },
389
390
  emits: ["update:show", "submitted"],
390
391
  setup(f, { emit: k }) {
391
- const _ = f, a = k, P = Be(), S = Ge(), C = Ie(), V = Ue(), { t: o } = we(), M = re(
392
+ const _ = f, a = k, P = Qe(), w = Ye(), C = Ke(), V = Le(), { t: o } = Ce(), M = re(
392
393
  () => {
393
394
  var t, r, D, b;
394
395
  return ((r = (t = _.purchaseOrder) == null ? void 0 : t.supplier) == null ? void 0 : r.internal) === "restaurant" || ((b = (D = _.purchaseOrder) == null ? void 0 : D.supplier) == null ? void 0 : b.internal) === "warehouse" ? se.TRANSFER : se.PURCHASE;
@@ -402,8 +403,8 @@ const Je = { class: "flex flex-col gap-16 w-full h-full" }, We = { class: "flex
402
403
  label: o("inventory.transfer.receiveRequest.details.deliveryHistory"),
403
404
  value: "deliveryHistory"
404
405
  }
405
- ], c = Z(l[0]), i = Z(!1), u = Z(""), T = Z(!0), X = Ke(), ne = He(_, "show");
406
- async function Se(t, r, D) {
406
+ ], c = Z(l[0]), i = Z(!1), u = Z(""), T = Z(!0), X = Ge(), ne = Je(_, "show");
407
+ async function Ee(t, r, D) {
407
408
  u.value = r, i.value = !0, T.value = !1;
408
409
  try {
409
410
  await X.processPurchaseOrder(
@@ -419,13 +420,13 @@ const Je = { class: "flex flex-col gap-16 w-full h-full" }, We = { class: "flex
419
420
  )
420
421
  },
421
422
  _.transferToDbName
422
- ), await new Promise((b) => setTimeout(b, 1e3)), S.open({
423
+ ), await new Promise((b) => setTimeout(b, 1e3)), w.open({
423
424
  title: "Success",
424
425
  message: D,
425
426
  type: "success"
426
427
  }), a("update:show", !1), a("submitted");
427
428
  } catch (b) {
428
- S.open({
429
+ w.open({
429
430
  title: "Something went wrong",
430
431
  message: "Please try again.",
431
432
  type: "error"
@@ -435,11 +436,11 @@ const Je = { class: "flex flex-col gap-16 w-full h-full" }, We = { class: "flex
435
436
  }
436
437
  }
437
438
  async function $(t) {
438
- const r = Le[t];
439
+ const r = He[t];
439
440
  if (!r) {
440
- S.open({
441
+ w.open({
441
442
  title: "Something went wrong",
442
- message: `Cannot process order: ${Me(t)}`,
443
+ message: `Cannot process order: ${Ve(t)}`,
443
444
  type: "error"
444
445
  });
445
446
  return;
@@ -450,13 +451,13 @@ const Je = { class: "flex flex-col gap-16 w-full h-full" }, We = { class: "flex
450
451
  message: b.message,
451
452
  primaryActions: b.primaryActions
452
453
  }).onPrimary(() => {
453
- _.purchaseOrder && Se(_.purchaseOrder, t, D);
454
+ _.purchaseOrder && Ee(_.purchaseOrder, t, D);
454
455
  });
455
456
  }
456
- const De = re(() => {
457
+ const Ne = re(() => {
457
458
  var t, r;
458
459
  return ((t = _.purchaseOrder) == null ? void 0 : t.status) === q.enum.RECEIVING || ((r = _.purchaseOrder) == null ? void 0 : r.status) === q.enum.COMPLETE;
459
- }), Ae = re(() => {
460
+ }), Pe = re(() => {
460
461
  var z, B, x;
461
462
  const D = (((z = _.purchaseOrder) == null ? void 0 : z.deliveryOrder) ?? []).flatMap((O) => O.received ?? []).reduce(
462
463
  (O, F) => {
@@ -467,11 +468,11 @@ const Je = { class: "flex flex-col gap-16 w-full h-full" }, We = { class: "flex
467
468
  ), b = Object.entries(D).reduce(
468
469
  (O, [F, G]) => {
469
470
  const E = G.reduce((j, I) => {
470
- const K = Te(
471
+ const K = Ue(
471
472
  j,
472
473
  Math.max(j.precision, I.amount.precision)
473
474
  );
474
- return xe(K, I.amount);
475
+ return Ae(K, I.amount);
475
476
  }, ce(0));
476
477
  return O[F] = E, O;
477
478
  },
@@ -487,7 +488,7 @@ const Je = { class: "flex flex-col gap-16 w-full h-full" }, We = { class: "flex
487
488
  return d(), N(O, {
488
489
  header: s(o)("inventory.transfer.receiveRequest.details.title") + ((F = t.purchaseOrder) != null && F.seqNumber ? ` #${(G = t.purchaseOrder) == null ? void 0 : G.seqNumber}` : ""),
489
490
  modelValue: s(ne),
490
- "onUpdate:modelValue": r[9] || (r[9] = (E) => Ee(ne) ? ne.value = E : null),
491
+ "onUpdate:modelValue": r[9] || (r[9] = (E) => Fe(ne) ? ne.value = E : null),
491
492
  "dismiss-away": T.value,
492
493
  "close-button": "",
493
494
  "max-width": 500
@@ -495,7 +496,7 @@ const Je = { class: "flex flex-col gap-16 w-full h-full" }, We = { class: "flex
495
496
  default: ee(() => {
496
497
  var E, j, I, K, Q, Y;
497
498
  return [
498
- e("div", Je, [
499
+ e("div", et, [
499
500
  e("div", null, [
500
501
  U(D, {
501
502
  items: l,
@@ -509,103 +510,103 @@ const Je = { class: "flex flex-col gap-16 w-full h-full" }, We = { class: "flex
509
510
  class: "flex flex-col gap-8 px-12 py-16"
510
511
  }, {
511
512
  default: ee(() => {
512
- var m, R, w, J, A, fe, ve, pe, ye, he, be, ge, _e, Re, Oe, qe;
513
+ var m, R, S, J, A, fe, pe, ve, ye, he, be, ge, _e, Re, Oe, qe, ke, xe, Se, we;
513
514
  return [
514
- e("div", We, [
515
- e("div", Xe, n(s(o)("inventory.transfer.receiveRequest.details.requestSummary")), 1),
515
+ e("div", tt, [
516
+ e("div", st, n(s(o)("inventory.transfer.receiveRequest.details.requestSummary")), 1),
516
517
  e("div", null, [
517
518
  U(b, {
518
519
  label: s(o)(`inventory.transfer.status.${(m = t.purchaseOrder) == null ? void 0 : m.status}`),
519
- class: te(`fm-status-badge fm-status-badge-${(w = (R = t.purchaseOrder) == null ? void 0 : R.status) == null ? void 0 : w.toLocaleLowerCase("en-us")}`),
520
+ class: te(`fm-status-badge fm-status-badge-${(S = (R = t.purchaseOrder) == null ? void 0 : R.status) == null ? void 0 : S.toLocaleLowerCase("en-us")}`),
520
521
  compact: ""
521
522
  }, null, 8, ["label", "class"])
522
523
  ])
523
524
  ]),
524
525
  U(oe),
525
- e("div", Ze, [
526
- e("div", et, [
527
- e("div", tt, [
528
- e("div", st, n(s(o)("inventory.transfer.receiveRequest.details.createdAt")), 1)
526
+ e("div", rt, [
527
+ e("div", at, [
528
+ e("div", nt, [
529
+ e("div", ot, n(s(o)("inventory.transfer.receiveRequest.details.createdAt")), 1)
529
530
  ]),
530
- e("div", rt, n(s(ae)(((J = t.purchaseOrder) == null ? void 0 : J._id) ?? "")), 1)
531
+ e("div", lt, n(s(ae)(((J = t.purchaseOrder) == null ? void 0 : J._id) ?? "")), 1)
531
532
  ]),
532
- (A = t.purchaseOrder) != null && A.effectiveAt ? (d(), y("div", at, [
533
- e("div", nt, n(s(o)("inventory.transfer.receiveRequest.details.backdatedTo")), 1),
534
- e("div", ot, n(s(de)(new Date((fe = t.purchaseOrder) == null ? void 0 : fe.effectiveAt))), 1)
535
- ])) : v("", !0),
536
- e("div", lt, [
537
- e("div", it, n(s(o)("inventory.transfer.receiveRequest.details.type.title")), 1),
538
- e("div", ct, n(s(o)(
533
+ (A = t.purchaseOrder) != null && A.effectiveAt ? (d(), y("div", it, [
534
+ e("div", ct, n(s(o)("inventory.transfer.receiveRequest.details.backdatedTo")), 1),
535
+ e("div", ut, n(s(de)(new Date((fe = t.purchaseOrder) == null ? void 0 : fe.effectiveAt))), 1)
536
+ ])) : p("", !0),
537
+ e("div", dt, [
538
+ e("div", mt, n(s(o)("inventory.transfer.receiveRequest.details.type.title")), 1),
539
+ e("div", ft, n(s(o)(
539
540
  `inventory.transfer.receiveRequest.details.type.${M.value.toLocaleLowerCase("en-US")}`
540
541
  )), 1)
541
542
  ]),
542
- (pe = (ve = t.purchaseOrder) == null ? void 0 : ve.supplier) != null && pe.name ? (d(), y("div", ut, [
543
- e("div", dt, n(s(o)("inventory.transfer.receiveRequest.details.from")), 1),
544
- e("div", mt, n((he = (ye = t.purchaseOrder) == null ? void 0 : ye.supplier) == null ? void 0 : he.name), 1)
545
- ])) : v("", !0),
546
- t.transferTo ? (d(), y("div", ft, [
547
- e("div", vt, n(s(o)("inventory.transfer.receiveRequest.details.to")), 1),
548
- e("div", pt, n(t.transferTo), 1)
549
- ])) : v("", !0),
550
- s(C).isEnabled ? (d(), y("div", yt, [
543
+ (ve = (pe = t.purchaseOrder) == null ? void 0 : pe.supplier) != null && ve.name ? (d(), y("div", pt, [
544
+ e("div", vt, n(s(o)("inventory.transfer.receiveRequest.details.from")), 1),
545
+ e("div", yt, n((he = (ye = t.purchaseOrder) == null ? void 0 : ye.supplier) == null ? void 0 : he.name), 1)
546
+ ])) : p("", !0),
547
+ t.transferTo ? (d(), y("div", ht, [
548
+ e("div", bt, n(s(o)("inventory.transfer.receiveRequest.details.to")), 1),
549
+ e("div", gt, n(t.transferTo), 1)
550
+ ])) : p("", !0),
551
+ s(C).isEnabled ? (d(), y("div", _t, [
551
552
  r[10] || (r[10] = e("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " NetSuite Subsidiary ", -1)),
552
- e("div", ht, n(((ge = (be = t.purchaseOrder) == null ? void 0 : be.netSuite) == null ? void 0 : ge.subsidiary.name) || "-"), 1)
553
- ])) : v("", !0),
554
- s(C).isEnabled ? (d(), y("div", bt, [
555
- r[11] || (r[11] = e("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " NetSuite Transfer Order # ", -1)),
556
- e("div", gt, n(((Re = (_e = t.purchaseOrder) == null ? void 0 : _e.netSuite) == null ? void 0 : Re.id) || "-"), 1)
557
- ])) : v("", !0),
558
- (Oe = t.purchaseOrder) != null && Oe.ref ? (d(), y("div", _t, [
559
- e("div", Rt, n(s(o)("inventory.transfer.receiveRequest.details.reference")), 1),
560
- e("div", Ot, n(t.purchaseOrder.ref), 1)
561
- ])) : v("", !0),
562
- (qe = t.purchaseOrder) != null && qe.remark ? (d(), y("div", qt, [
563
- e("div", kt, n(s(o)("inventory.transfer.receiveRequest.details.remark")), 1),
564
- e("div", xt, n(t.purchaseOrder.remark), 1)
565
- ])) : v("", !0)
553
+ e("div", Rt, n(((ge = (be = t.purchaseOrder) == null ? void 0 : be.netSuite) == null ? void 0 : ge.subsidiary.name) || ((Re = (_e = t.poRequest) == null ? void 0 : _e.netSuite) == null ? void 0 : Re.subsidiary.name) || "-"), 1)
554
+ ])) : p("", !0),
555
+ s(C).isEnabled ? (d(), y("div", Ot, [
556
+ r[11] || (r[11] = e("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " NetSuite Transfer Order ", -1)),
557
+ e("div", qt, n(((qe = (Oe = t.purchaseOrder) == null ? void 0 : Oe.netSuite) == null ? void 0 : qe.id) || ((xe = (ke = t.poRequest) == null ? void 0 : ke.netSuite) == null ? void 0 : xe.id) || "-"), 1)
558
+ ])) : p("", !0),
559
+ (Se = t.purchaseOrder) != null && Se.ref ? (d(), y("div", kt, [
560
+ e("div", xt, n(s(o)("inventory.transfer.receiveRequest.details.reference")), 1),
561
+ e("div", St, n(t.purchaseOrder.ref), 1)
562
+ ])) : p("", !0),
563
+ (we = t.purchaseOrder) != null && we.remark ? (d(), y("div", wt, [
564
+ e("div", Dt, n(s(o)("inventory.transfer.receiveRequest.details.remark")), 1),
565
+ e("div", At, n(t.purchaseOrder.remark), 1)
566
+ ])) : p("", !0)
566
567
  ])
567
568
  ];
568
569
  }),
569
570
  _: 1
570
571
  }),
571
- e("div", wt, [
572
- e("div", St, [
573
- e("div", Dt, n(De.value ? s(o)("inventory.transfer.receiveRequest.details.receivedItems") : s(o)("inventory.transfer.receiveRequest.details.requestedItems")), 1),
572
+ e("div", Ct, [
573
+ e("div", Et, [
574
+ e("div", Nt, n(Ne.value ? s(o)("inventory.transfer.receiveRequest.details.receivedItems") : s(o)("inventory.transfer.receiveRequest.details.requestedItems")), 1),
574
575
  (d(!0), y(W, null, ie(((E = t.purchaseOrder) == null ? void 0 : E.items) ?? [], (m) => (d(), y("div", {
575
576
  key: m.code,
576
577
  class: "flex flex-col"
577
578
  }, [
578
- e("div", At, [
579
- e("div", Ct, n(m.name), 1),
580
- e("div", Et, n(s(ue)(Ae.value[m.sku._id], !1)) + "/" + n(s(me)(m.quantity, m.sku.unit, m.measurement)), 1)
579
+ e("div", Pt, [
580
+ e("div", Tt, n(m.name), 1),
581
+ e("div", Ft, n(s(ue)(Pe.value[m.sku._id], !1)) + "/" + n(s(me)(m.quantity, m.sku.unit, m.measurement)), 1)
581
582
  ]),
582
- e("div", Nt, [
583
- e("div", Pt, n(m.code), 1),
584
- m.totalCost && s(V).enableTotalCost ? (d(), y("div", Tt, " (" + n(s(Fe)(m.totalCost)) + ") ", 1)) : v("", !0)
583
+ e("div", jt, [
584
+ e("div", It, n(m.code), 1),
585
+ m.totalCost && s(V).enableTotalCost ? (d(), y("div", Ut, " (" + n(s(Me)(m.totalCost)) + ") ", 1)) : p("", !0)
585
586
  ])
586
587
  ]))), 128))
587
588
  ])
588
589
  ])
589
- ], 64)) : v("", !0),
590
- c.value.value === "deliveryHistory" ? (d(), y("div", Ft, [
591
- ((I = (j = t.purchaseOrder) == null ? void 0 : j.deliveryOrder) == null ? void 0 : I.length) === 0 ? (d(), y("div", jt, [
590
+ ], 64)) : p("", !0),
591
+ c.value.value === "deliveryHistory" ? (d(), y("div", Mt, [
592
+ ((I = (j = t.purchaseOrder) == null ? void 0 : j.deliveryOrder) == null ? void 0 : I.length) === 0 ? (d(), y("div", $t, [
592
593
  U(B),
593
594
  e("div", null, [
594
595
  e("img", {
595
- src: s(ze),
596
+ src: s(We),
596
597
  alt: "List is empty"
597
- }, null, 8, It)
598
+ }, null, 8, Kt)
598
599
  ]),
599
- e("div", Ut, n(s(o)("inventory.transfer.receiveRequest.details.noRecordsFound")), 1),
600
- e("div", Mt, n(s(o)("inventory.transfer.receiveRequest.details.trackDeliveryMessage")), 1),
600
+ e("div", Lt, n(s(o)("inventory.transfer.receiveRequest.details.noRecordsFound")), 1),
601
+ e("div", Vt, n(s(o)("inventory.transfer.receiveRequest.details.trackDeliveryMessage")), 1),
601
602
  U(B),
602
603
  U(B)
603
- ])) : v("", !0),
604
- (K = t.purchaseOrder) != null && K.deliveryOrder && ((Q = t.purchaseOrder) == null ? void 0 : Q.deliveryOrder.length) > 0 ? (d(), y("div", $t, [
604
+ ])) : p("", !0),
605
+ (K = t.purchaseOrder) != null && K.deliveryOrder && ((Q = t.purchaseOrder) == null ? void 0 : Q.deliveryOrder.length) > 0 ? (d(), y("div", Bt, [
605
606
  (d(!0), y(W, null, ie((Y = t.purchaseOrder) == null ? void 0 : Y.deliveryOrder, (m, R) => (d(), y(W, { key: R }, [
606
- e("div", Kt, [
607
- e("div", Lt, [
608
- e("div", Vt, [
607
+ e("div", Gt, [
608
+ e("div", Ht, [
609
+ e("div", zt, [
609
610
  e("div", {
610
611
  class: te([
611
612
  {
@@ -617,7 +618,7 @@ const Je = { class: "flex flex-col gap-16 w-full h-full" }, We = { class: "flex
617
618
  }, null, 2)
618
619
  ]),
619
620
  r[12] || (r[12] = e("div", { class: "h-24 w-24 bg-fm-color-primary rounded-full" }, null, -1)),
620
- e("div", Bt, [
621
+ e("div", Qt, [
621
622
  e("div", {
622
623
  class: te([
623
624
  {
@@ -629,14 +630,14 @@ const Je = { class: "flex flex-col gap-16 w-full h-full" }, We = { class: "flex
629
630
  }, null, 2)
630
631
  ])
631
632
  ]),
632
- e("div", Gt, [
633
- e("div", Ht, n(s(o)("inventory.transfer.receiveRequest.details.received")), 1),
634
- e("div", zt, n(s(de)(new Date(m.createdAt))) + ", " + n(s(je)(new Date(m.createdAt))), 1)
633
+ e("div", Yt, [
634
+ e("div", Jt, n(s(o)("inventory.transfer.receiveRequest.details.received")), 1),
635
+ e("div", Wt, n(s(de)(new Date(m.createdAt))) + ", " + n(s($e)(new Date(m.createdAt))), 1)
635
636
  ])
636
637
  ]),
637
- e("div", Qt, [
638
- e("div", Yt, [
639
- e("div", Jt, [
638
+ e("div", Xt, [
639
+ e("div", Zt, [
640
+ e("div", es, [
640
641
  e("div", {
641
642
  class: te([
642
643
  {
@@ -648,31 +649,31 @@ const Je = { class: "flex flex-col gap-16 w-full h-full" }, We = { class: "flex
648
649
  }, null, 2)
649
650
  ])
650
651
  ]),
651
- e("div", Wt, [
652
+ e("div", ts, [
652
653
  U(z, {
653
654
  variant: "outlined",
654
655
  class: "py-12 px-16"
655
656
  }, {
656
657
  default: ee(() => [
657
- e("div", Xt, [
658
- e("div", Zt, [
659
- e("div", es, n(s(o)("inventory.transfer.receiveRequest.details.receivedBy")), 1),
660
- e("div", ts, n(m.createdBy.name), 1)
658
+ e("div", ss, [
659
+ e("div", rs, [
660
+ e("div", as, n(s(o)("inventory.transfer.receiveRequest.details.receivedBy")), 1),
661
+ e("div", ns, n(m.createdBy.name), 1)
661
662
  ]),
662
- e("div", ss, [
663
- e("div", rs, n(s(o)("inventory.transfer.receiveRequest.details.receivedItems")), 1),
664
- (d(!0), y(W, null, ie(m.received, (w) => (d(), y("div", {
663
+ e("div", os, [
664
+ e("div", ls, n(s(o)("inventory.transfer.receiveRequest.details.receivedItems")), 1),
665
+ (d(!0), y(W, null, ie(m.received, (S) => (d(), y("div", {
665
666
  class: "fm-typo-en-body-lg-600",
666
- key: w.sku._id
667
- }, n(w.sku.name) + " " + n(s(me)(w.amount, w.sku.unit, w.measurement)), 1))), 128))
667
+ key: S.sku._id
668
+ }, n(S.sku.name) + " " + n(s(me)(S.amount, S.sku.unit, S.measurement)), 1))), 128))
668
669
  ]),
669
- e("div", as, [
670
- e("div", ns, n(s(o)("inventory.transfer.receiveRequest.details.deliveryOrderNo")), 1),
671
- e("div", os, n(m.deliveryOrderNumber.trim().length ? m.deliveryOrderNumber : "-"), 1)
670
+ e("div", is, [
671
+ e("div", cs, n(s(o)("inventory.transfer.receiveRequest.details.deliveryOrderNo")), 1),
672
+ e("div", us, n(m.deliveryOrderNumber.trim().length ? m.deliveryOrderNumber : "-"), 1)
672
673
  ]),
673
- e("div", ls, [
674
- m.remark ? (d(), y("div", is, n(s(o)("inventory.transfer.receiveRequest.details.deliveryRemark")), 1)) : v("", !0),
675
- e("div", cs, n(m.remark), 1)
674
+ e("div", ds, [
675
+ m.remark ? (d(), y("div", ms, n(s(o)("inventory.transfer.receiveRequest.details.deliveryRemark")), 1)) : p("", !0),
676
+ e("div", fs, n(m.remark), 1)
676
677
  ])
677
678
  ])
678
679
  ]),
@@ -681,29 +682,29 @@ const Je = { class: "flex flex-col gap-16 w-full h-full" }, We = { class: "flex
681
682
  ])
682
683
  ])
683
684
  ], 64))), 128))
684
- ])) : v("", !0)
685
- ])) : v("", !0)
685
+ ])) : p("", !0)
686
+ ])) : p("", !0)
686
687
  ])
687
688
  ];
688
689
  }),
689
690
  "side-sheet-footer": ee(() => {
690
- var E, j, I, K, Q, Y, m, R, w, J;
691
+ var E, j, I, K, Q, Y, m, R, S, J;
691
692
  return [
692
- e("div", us, [
693
+ e("div", ps, [
693
694
  ((E = t.purchaseOrder) == null ? void 0 : E.status) === s(q).enum.DRAFT && M.value === s(se).PURCHASE ? (d(), N(x, {
694
695
  key: 0,
695
696
  label: s(o)("inventory.transfer.receiveRequest.actions.confirmDraft"),
696
697
  onClick: r[1] || (r[1] = (A) => $("confirmDraft")),
697
698
  loading: u.value === "confirmDraft",
698
699
  disabled: u.value !== "confirmDraft" && i.value
699
- }, null, 8, ["label", "loading", "disabled"])) : v("", !0),
700
+ }, null, 8, ["label", "loading", "disabled"])) : p("", !0),
700
701
  ((j = t.purchaseOrder) == null ? void 0 : j.status) === s(q).enum.DRAFT && M.value === s(se).TRANSFER ? (d(), N(x, {
701
702
  key: 1,
702
703
  label: s(o)("inventory.transfer.receiveRequest.actions.submitRequest"),
703
704
  onClick: r[2] || (r[2] = (A) => $("submitRequest")),
704
705
  loading: u.value === "submitRequest",
705
706
  disabled: u.value !== "submitRequest" && i.value
706
- }, null, 8, ["label", "loading", "disabled"])) : v("", !0),
707
+ }, null, 8, ["label", "loading", "disabled"])) : p("", !0),
707
708
  ((I = t.purchaseOrder) == null ? void 0 : I.status) === s(q).enum.DRAFT ? (d(), N(x, {
708
709
  key: 2,
709
710
  label: s(o)("inventory.transfer.receiveRequest.actions.cancelDraft"),
@@ -711,28 +712,28 @@ const Je = { class: "flex flex-col gap-16 w-full h-full" }, We = { class: "flex
711
712
  loading: u.value === "cancelDraft",
712
713
  disabled: u.value !== "cancelDraft" && i.value,
713
714
  variant: "destructive"
714
- }, null, 8, ["label", "loading", "disabled"])) : v("", !0),
715
+ }, null, 8, ["label", "loading", "disabled"])) : p("", !0),
715
716
  ((K = t.purchaseOrder) == null ? void 0 : K.status) === s(q).enum.RECEIVING ? (d(), N(x, {
716
717
  key: 3,
717
718
  label: s(o)("inventory.transfer.receiveRequest.actions.completeReceive"),
718
719
  onClick: r[4] || (r[4] = (A) => $("completeReceive")),
719
720
  loading: u.value === "completeReceive",
720
721
  disabled: u.value !== "completeReceive" && i.value
721
- }, null, 8, ["label", "loading", "disabled"])) : v("", !0),
722
+ }, null, 8, ["label", "loading", "disabled"])) : p("", !0),
722
723
  t.canResubmit ? (d(), N(x, {
723
724
  key: 4,
724
725
  label: s(o)("inventory.transfer.receiveRequest.actions.resubmitRequest"),
725
726
  onClick: r[5] || (r[5] = (A) => $("submitRequest")),
726
727
  loading: u.value === "submitRequest",
727
728
  disabled: u.value !== "submitRequest" && i.value
728
- }, null, 8, ["label", "loading", "disabled"])) : v("", !0),
729
+ }, null, 8, ["label", "loading", "disabled"])) : p("", !0),
729
730
  (((Q = t.purchaseOrder) == null ? void 0 : Q.status) === s(q).enum.REQUESTING || ((Y = t.purchaseOrder) == null ? void 0 : Y.status) === s(q).enum.PROCESSING) && t.canApprove ? (d(), N(x, {
730
731
  key: 5,
731
732
  label: s(o)("inventory.transfer.approval.actions.approveRequest"),
732
733
  onClick: r[6] || (r[6] = (A) => $("approveRequest")),
733
734
  loading: u.value === "approveRequest",
734
735
  disabled: u.value !== "approveRequest" && i.value
735
- }, null, 8, ["label", "loading", "disabled"])) : v("", !0),
736
+ }, null, 8, ["label", "loading", "disabled"])) : p("", !0),
736
737
  ((m = t.purchaseOrder) == null ? void 0 : m.status) === s(q).enum.REQUESTING && t.canApprove ? (d(), N(x, {
737
738
  key: 6,
738
739
  label: s(o)("inventory.transfer.approval.actions.rejectRequest"),
@@ -740,13 +741,13 @@ const Je = { class: "flex flex-col gap-16 w-full h-full" }, We = { class: "flex
740
741
  loading: u.value === "rejectRequest",
741
742
  disabled: u.value !== "rejectRequest" && i.value,
742
743
  variant: "destructive"
743
- }, null, 8, ["label", "loading", "disabled"])) : v("", !0),
744
- ((R = t.purchaseOrder) == null ? void 0 : R.status) !== s(q).enum.COMPLETE && ((w = t.purchaseOrder) == null ? void 0 : w.status) !== s(q).enum.CANCEL && (((J = t.purchaseOrder) == null ? void 0 : J.status) !== s(q).enum.REQUESTING || t.canApprove) ? (d(), N(x, {
744
+ }, null, 8, ["label", "loading", "disabled"])) : p("", !0),
745
+ ((R = t.purchaseOrder) == null ? void 0 : R.status) !== s(q).enum.COMPLETE && ((S = t.purchaseOrder) == null ? void 0 : S.status) !== s(q).enum.CANCEL && (((J = t.purchaseOrder) == null ? void 0 : J.status) !== s(q).enum.REQUESTING || t.canApprove) ? (d(), N(x, {
745
746
  key: 7,
746
747
  label: s(o)("common.close"),
747
748
  variant: "tertiary",
748
749
  onClick: r[8] || (r[8] = (A) => a("update:show", !1))
749
- }, null, 8, ["label"])) : v("", !0)
750
+ }, null, 8, ["label"])) : p("", !0)
750
751
  ])
751
752
  ];
752
753
  }),
@@ -756,7 +757,7 @@ const Je = { class: "flex flex-col gap-16 w-full h-full" }, We = { class: "flex
756
757
  }
757
758
  });
758
759
  export {
759
- Os as _,
760
- Qe as g,
761
- Rs as u
760
+ Ss as _,
761
+ Xe as g,
762
+ xs as u
762
763
  };