@feedmepos/mf-inventory-portal 0.0.22-dev.20 → 0.0.22-dev.21

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 (32) hide show
  1. package/dist/{ApprovalView-DrlB6QmP.js → ApprovalView-CCYykhrK.js} +4 -4
  2. package/dist/{BindingsDialog-BIsmJCcX.js → BindingsDialog-33VV_AST.js} +1 -1
  3. package/dist/{BindingsPicker-_ozgYyoy.js → BindingsPicker-BKu4vN8J.js} +1 -1
  4. package/dist/{BindingsTable-BdaYKCU2.js → BindingsTable-Dd0h5gDf.js} +1 -1
  5. package/dist/{ClosingTemplateView-BNOjDN_Y.js → ClosingTemplateView-BhevjTLl.js} +5 -5
  6. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BhZWV_te.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-3gp56NNJ.js} +1 -1
  7. package/dist/{IngredientsView-OWTMcqVt.js → IngredientsView-DckIH9eR.js} +3 -3
  8. package/dist/{IntegrationView-DqQV8FK2.js → IntegrationView-BqQ4jRIp.js} +2 -2
  9. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-eag0ZVsT.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Vi0q_bDz.js} +1 -1
  10. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-DC3nWhhu.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BIL8LWRz.js} +1 -1
  11. package/dist/{PurchaseOrderPrintPreview-BPJbSiQf.js → PurchaseOrderPrintPreview-Ct7daTTa.js} +1 -1
  12. package/dist/{ReceiveRequestView-6qYBopZt.js → ReceiveRequestView-B4wHTogG.js} +6 -6
  13. package/dist/{RecipeView-BKGDLAhE.js → RecipeView-DuE4cXLz.js} +3 -3
  14. package/dist/{StockView-DV-VVzVM.js → StockView-Bn9v2Ix8.js} +6 -6
  15. package/dist/{SupplierView-BebHHZhB.js → SupplierView-C8rqHSOV.js} +3 -3
  16. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-dzrP2NYq.js → TransferDetails.vue_vue_type_script_setup_true_lang-CStnY5Zh.js} +162 -154
  17. package/dist/{TransferDialog.vue_vue_type_script_setup_true_lang-CCn6h2lC.js → TransferDialog.vue_vue_type_script_setup_true_lang-DRKiv_t8.js} +5 -5
  18. package/dist/{TransferTemplateView-DyG0qZqJ.js → TransferTemplateView-RM6Y-WL4.js} +8 -8
  19. package/dist/{UnitView-sesi0MIU.js → UnitView-BXISVrop.js} +4 -4
  20. package/dist/{WarehouseView-zZCKnbbu.js → WarehouseView-B055eB90.js} +2 -2
  21. package/dist/{app-b4xcXRca.js → app-9algzyce.js} +7010 -6773
  22. package/dist/app.js +1 -1
  23. package/dist/{decimal-DgBMe5Xq.js → decimal-CMuMGm4y.js} +1 -1
  24. package/dist/{defineDeepModel-DR6GH0Fd.js → defineDeepModel-CjPowyho.js} +1 -1
  25. package/dist/{format-time-from-id-Bsbw1i2y.js → format-time-from-id-DNKcbBFm.js} +1 -1
  26. package/dist/{id-to-date-Bh9HmRRo.js → id-to-date-C6W4aVdr.js} +1 -1
  27. package/dist/{purchase-order-transaction-type-CFy_l7aK.js → purchase-order-transaction-type-CscRvNAR.js} +3 -3
  28. package/dist/{supplier-DZuEtW07.js → supplier-BiCX3dpL.js} +1 -1
  29. package/dist/{use-template-enabled-locations-2-BjtiCP8N.js → use-template-enabled-locations-2-Dtg2qOTm.js} +1 -1
  30. package/dist/{xlsx-B3eLI4Oa.js → xlsx-fKJqx2Qc.js} +1 -1
  31. package/dist/{xlsx.util-CmEykrDA.js → xlsx.util-LOnzE3KS.js} +2 -2
  32. package/package.json +1 -1
@@ -1,14 +1,14 @@
1
- import { f as ie } from "./format-time-from-id-Bsbw1i2y.js";
2
- import { computed as W, h as ue, defineComponent as Ne, ref as re, resolveComponent as H, openBlock as u, createBlock as $, unref as r, isRef as Te, withCtx as ae, createElementVNode as e, createVNode as U, createElementBlock as y, Fragment as Q, toDisplayString as d, normalizeClass as ne, createCommentVNode as O, renderList as oe } from "vue";
1
+ import { f as ue } from "./format-time-from-id-DNKcbBFm.js";
2
+ import { computed as W, h as re, defineComponent as Ne, ref as ae, resolveComponent as H, openBlock as c, createBlock as $, unref as r, isRef as Te, withCtx as ne, createElementVNode as e, createVNode as U, createElementBlock as y, Fragment as Q, toDisplayString as d, normalizeClass as oe, createCommentVNode as O, renderList as le } from "vue";
3
3
  import { c as Oe } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
4
4
  import { D as x, R as b } from "./row-action.enum-PMKMRrZR.js";
5
- import { D as ke, m as de, a as te, al as qe, am as k, c as Pe, j as Fe, ag as A, J as $e, H as Ie, aj as je, b as Me, x as Ue, T as xe } from "./app-b4xcXRca.js";
6
- import { F as Ke } from "./decimal-DgBMe5Xq.js";
7
- import { f as Se, P as le, d as Le, e as Ve } from "./purchase-order-transaction-type-CFy_l7aK.js";
8
- import { components as Be, useDialog as Ge, useSnackbar as He, useProxiedModel as ze } from "@feedmepos/ui-library";
5
+ import { D as ke, m as de, a as te, al as qe, am as k, c as Pe, j as Fe, ag as A, J as $e, H as Ie, aj as je, b as Me, x as Ue, T as xe } from "./app-9algzyce.js";
6
+ import { F as Ke } from "./decimal-CMuMGm4y.js";
7
+ import { f as Se, P as ie, d as Le, e as Ve } from "./purchase-order-transaction-type-CscRvNAR.js";
8
+ import { useDialog as Be, useSnackbar as Ge, useProxiedModel as He } from "@feedmepos/ui-library";
9
9
  import { useI18n as De } from "@feedmepos/mf-common";
10
- import { E as Ye } from "./empty-placeholder-wf6-BWE8.js";
11
- function Qe(f, C) {
10
+ import { E as ze } from "./empty-placeholder-wf6-BWE8.js";
11
+ function Ye(f, C) {
12
12
  return C.reduce(
13
13
  (a, I) => {
14
14
  const T = I.received.find((P) => P.sku._id === f._id);
@@ -17,7 +17,7 @@ function Qe(f, C) {
17
17
  Ke.toPrecision(de(0), f.unit.precision)
18
18
  );
19
19
  }
20
- function Je(f, C) {
20
+ function Qe(f, C) {
21
21
  const { name: h, address: a, regNo: I } = C.doc.profile, T = {
22
22
  name: h,
23
23
  registrationNumber: I,
@@ -37,15 +37,15 @@ function Je(f, C) {
37
37
  state: f.supplier.address.state,
38
38
  country: f.supplier.address.country
39
39
  }, z = f.items.map((i) => {
40
- const { sku: l, measurement: c } = i, j = te(
41
- Qe(i.sku, f.deliveryOrder || []),
40
+ const { sku: l, measurement: u } = i, j = te(
41
+ Ye(i.sku, f.deliveryOrder || []),
42
42
  !1
43
43
  );
44
44
  return {
45
45
  code: l.code,
46
46
  description: l.name,
47
47
  quantity: Se(i.quantity, l.unit, i.measurement),
48
- unit: (c == null ? void 0 : c.abbrev) || l.unit.abbrev,
48
+ unit: (u == null ? void 0 : u.abbrev) || l.unit.abbrev,
49
49
  received: j
50
50
  };
51
51
  }), m = f.deliveryOrder.map((i) => ({
@@ -53,17 +53,17 @@ function Je(f, C) {
53
53
  ref: i.deliveryOrderNumber,
54
54
  remark: i.remark || "",
55
55
  items: i.received.map((l) => {
56
- var c;
56
+ var u;
57
57
  return {
58
58
  code: l.sku.code,
59
59
  description: l.sku.name,
60
60
  quantity: te(l.amount),
61
- unit: ((c = l.measurement) == null ? void 0 : c.abbrev) || l.sku.unit.abbrev
61
+ unit: ((u = l.measurement) == null ? void 0 : u.abbrev) || l.sku.unit.abbrev
62
62
  };
63
63
  })
64
64
  })), K = {
65
65
  orderNumber: f.seqNumber.toString(),
66
- createdAt: ie(f._id),
66
+ createdAt: ue(f._id),
67
67
  ref: f.ref || "",
68
68
  remark: f.remark || "",
69
69
  buyer: T,
@@ -116,7 +116,7 @@ const J = {
116
116
  value: k.enum.completeReceive
117
117
  }
118
118
  };
119
- function ps(f, C) {
119
+ function vs(f, C) {
120
120
  const h = Fe(), { t: a } = De();
121
121
  function I(o) {
122
122
  switch (o.status) {
@@ -164,17 +164,17 @@ function ps(f, C) {
164
164
  }
165
165
  async function P(o, i, l) {
166
166
  var j, se;
167
- const c = Pe(i);
167
+ const u = Pe(i);
168
168
  if (o === b.Print) {
169
- Je(c, h.currentLocation);
169
+ Qe(u, h.currentLocation);
170
170
  return;
171
171
  }
172
172
  if (o === b.Details) {
173
- C.promptShowTransferDetails(c, l);
173
+ C.promptShowTransferDetails(u, l);
174
174
  return;
175
175
  }
176
176
  if (o === b.Update) {
177
- (j = C.promptUpdateTransferDialog) == null || j.call(C, c);
177
+ (j = C.promptUpdateTransferDialog) == null || j.call(C, u);
178
178
  return;
179
179
  }
180
180
  if (T(o)) {
@@ -195,7 +195,7 @@ function ps(f, C) {
195
195
  accessorKey: "_id",
196
196
  header: () => a("inventory.transfer.table.createdAt"),
197
197
  cell(o) {
198
- return ie(`${o.getValue()}`);
198
+ return ue(`${o.getValue()}`);
199
199
  },
200
200
  enableSorting: !0
201
201
  },
@@ -224,12 +224,12 @@ function ps(f, C) {
224
224
  header: () => a("inventory.transfer.table.status"),
225
225
  cell(o) {
226
226
  const i = a(`inventory.transfer.status.${o.getValue() ?? ""}`), l = `${o.getValue() ?? ""}`.toLocaleLowerCase("en-us");
227
- return ue(
227
+ return re(
228
228
  "div",
229
229
  {
230
230
  class: "flex"
231
231
  },
232
- ue(
232
+ re(
233
233
  "div",
234
234
  {
235
235
  class: `fm-status-badge fm-status-badge-${l}`
@@ -245,7 +245,7 @@ function ps(f, C) {
245
245
  id: "action",
246
246
  cell(o) {
247
247
  const i = o.row.original, l = I(i);
248
- return Oe(l, (c) => P(c, i));
248
+ return Oe(l, (u) => P(u, i));
249
249
  },
250
250
  enableSorting: !1,
251
251
  size: 40,
@@ -269,7 +269,7 @@ function ps(f, C) {
269
269
  accessorKey: "purchaseOrder._id",
270
270
  header: () => a("inventory.transfer.table.createdAt"),
271
271
  cell(o) {
272
- return ie(`${o.getValue()}`);
272
+ return ue(`${o.getValue()}`);
273
273
  },
274
274
  enableSorting: !0
275
275
  },
@@ -295,11 +295,19 @@ function ps(f, C) {
295
295
  header: () => a("inventory.transfer.table.status"),
296
296
  cell(o) {
297
297
  const i = a(`inventory.transfer.status.${o.getValue() ?? ""}`), l = `${o.getValue() ?? ""}`.toLocaleLowerCase("en-us");
298
- return ue(Be.FmChip, {
299
- label: i,
300
- class: `fm-status-badge fm-status-badge-${l}`,
301
- compact: !0
302
- });
298
+ return re(
299
+ "div",
300
+ {
301
+ class: "flex"
302
+ },
303
+ re(
304
+ "div",
305
+ {
306
+ class: `fm-status-badge fm-status-badge-${l}`
307
+ },
308
+ i
309
+ )
310
+ );
303
311
  },
304
312
  enableSorting: !0
305
313
  },
@@ -309,7 +317,7 @@ function ps(f, C) {
309
317
  const i = o.row.original, l = i.purchaseOrder ? I(i.purchaseOrder) : [];
310
318
  return Oe(
311
319
  l,
312
- (c) => i.purchaseOrder ? P(c, i.purchaseOrder, i) : void 0
320
+ (u) => i.purchaseOrder ? P(u, i.purchaseOrder, i) : void 0
313
321
  );
314
322
  },
315
323
  enableSorting: !1,
@@ -328,55 +336,55 @@ function ps(f, C) {
328
336
  }
329
337
  };
330
338
  }
331
- const We = { class: "flex flex-col gap-16 w-full h-full" }, Xe = { class: "flex justify-between" }, Ze = { class: "fm-typo-en-body-lg-600" }, et = { class: "flex flex-col gap-8" }, tt = { class: "flex flex-col gap-4" }, st = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, rt = { class: "flex gap-1" }, at = { class: "fm-typo-en-body-lg-600" }, nt = {
339
+ 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 = {
332
340
  key: 0,
333
341
  class: "flex flex-col gap-4"
334
- }, ot = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, lt = { class: "fm-typo-en-body-lg-600" }, it = { class: "flex flex-col gap-4" }, ct = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ut = { class: "fm-typo-en-body-lg-600" }, dt = {
342
+ }, 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" }, ut = { class: "fm-typo-en-body-lg-600" }, ct = {
335
343
  key: 1,
336
344
  class: "flex flex-col gap-4"
337
- }, mt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ft = { class: "fm-typo-en-body-lg-600" }, vt = {
345
+ }, dt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, mt = { class: "fm-typo-en-body-lg-600" }, ft = {
338
346
  key: 2,
339
347
  class: "flex flex-col gap-4"
340
- }, pt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, yt = { class: "fm-typo-en-body-lg-600" }, bt = {
348
+ }, vt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, pt = { class: "fm-typo-en-body-lg-600" }, yt = {
341
349
  key: 3,
342
350
  class: "flex flex-col gap-4"
343
- }, ht = { class: "fm-typo-en-body-lg-600" }, gt = {
351
+ }, bt = { class: "fm-typo-en-body-lg-600" }, ht = {
344
352
  key: 4,
345
353
  class: "flex flex-col gap-4"
346
- }, Rt = { class: "fm-typo-en-body-lg-600" }, _t = {
354
+ }, gt = { class: "fm-typo-en-body-lg-600" }, Rt = {
347
355
  key: 5,
348
356
  class: "flex flex-col gap-4"
349
- }, Ot = { class: "fm-typo-en-body-lg-600" }, xt = {
357
+ }, _t = { class: "fm-typo-en-body-lg-600" }, Ot = {
350
358
  key: 6,
351
359
  class: "flex flex-col gap-4"
352
- }, kt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, qt = { class: "fm-typo-en-body-lg-600" }, St = {
360
+ }, xt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, kt = { class: "fm-typo-en-body-lg-600" }, qt = {
353
361
  key: 7,
354
362
  class: "flex flex-col gap-4"
355
- }, Dt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, wt = { class: "fm-typo-en-body-lg-600" }, At = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg p-16" }, Ct = { class: "flex flex-col gap-8" }, Et = { class: "fm-typo-en-body-lg-600" }, Nt = { class: "flex w-full gap-4" }, Tt = { class: "basis-1/2 shrink-0 grow fm-typo-en-body-lg-400 line-clamp-2" }, Pt = { class: "fm-typo-en-body-lg-600 line-clamp-2" }, Ft = { class: "flex w-full gap-4 fm-typo-en-body-sm-400" }, $t = { class: "grow fm-typo-en-body-lg-400 text-fm-color-typo-secondary line-clamp-1" }, It = {
363
+ }, St = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Dt = { class: "fm-typo-en-body-lg-600" }, wt = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg p-16" }, At = { class: "flex flex-col gap-8" }, Ct = { class: "fm-typo-en-body-lg-600" }, Et = { class: "flex w-full gap-4" }, Nt = { class: "basis-1/2 shrink-0 grow fm-typo-en-body-lg-400 line-clamp-2" }, Tt = { class: "fm-typo-en-body-lg-600 line-clamp-2" }, Pt = { class: "flex w-full gap-4 fm-typo-en-body-sm-400" }, Ft = { class: "grow fm-typo-en-body-lg-400 text-fm-color-typo-secondary line-clamp-1" }, $t = {
356
364
  key: 0,
357
365
  class: "line-clamp-1 fm-typo-en-body-lg-400 text-fm-color-typo-secondary"
358
- }, jt = {
366
+ }, It = {
359
367
  key: 1,
360
368
  class: "flex-1 xs:w-screen xs:max-w-full"
361
- }, Mt = {
369
+ }, jt = {
362
370
  key: 0,
363
371
  class: "flex flex-col items-center gap-8 h-full"
364
- }, Ut = ["src"], Kt = { class: "fm-typo-en-body-lg-600" }, Lt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary px-16" }, Vt = {
372
+ }, Mt = ["src"], Ut = { class: "fm-typo-en-body-lg-600" }, Kt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary px-16" }, Lt = {
365
373
  key: 1,
366
374
  class: "px-4 flex flex-col"
367
- }, Bt = { class: "flex gap-12 content-stretch" }, Gt = {
375
+ }, Vt = { class: "flex gap-12 content-stretch" }, Bt = {
368
376
  class: "flex flex-col w-24",
369
377
  name: "circles"
370
- }, Ht = { class: "flex-1 flex flex-col items-center" }, zt = { class: "flex-1 flex flex-col items-center" }, Yt = {
378
+ }, Gt = { class: "flex-1 flex flex-col items-center" }, Ht = { class: "flex-1 flex flex-col items-center" }, zt = {
371
379
  class: "py-12 flex flex-col gap-4",
372
380
  name: "received-at header"
373
- }, Qt = { class: "fm-typo-en-body-lg-400" }, Jt = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Wt = { class: "flex gap-12 content-stretch" }, Xt = {
381
+ }, Yt = { class: "fm-typo-en-body-lg-400" }, Qt = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Jt = { class: "flex gap-12 content-stretch" }, Wt = {
374
382
  class: "flex flex-col w-24",
375
383
  name: "circles"
376
- }, Zt = { class: "flex-1 flex flex-col items-center" }, es = {
384
+ }, Xt = { class: "flex-1 flex flex-col items-center" }, Zt = {
377
385
  class: "py-12 flex flex-col gap-4 flex-1",
378
386
  name: "delivery details"
379
- }, ts = { class: "flex flex-col gap-8" }, ss = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, rs = { class: "flex flex-col gap-4" }, as = { class: "flex gap-8 xs:flex-col" }, ys = /* @__PURE__ */ Ne({
387
+ }, es = { class: "flex flex-col gap-8" }, ts = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, ss = { class: "flex flex-col gap-4" }, rs = { class: "flex gap-8 xs:flex-col" }, ps = /* @__PURE__ */ Ne({
380
388
  __name: "TransferDetails",
381
389
  props: {
382
390
  poRequest: {},
@@ -389,10 +397,10 @@ const We = { class: "flex flex-col gap-16 w-full h-full" }, Xe = { class: "flex
389
397
  },
390
398
  emits: ["update:show", "submitted"],
391
399
  setup(f, { emit: C }) {
392
- const h = f, a = C, I = Ge(), T = He(), P = je(), z = Me(), { t: m } = De(), K = W(
400
+ const h = f, a = C, I = Be(), T = Ge(), P = je(), z = Me(), { t: m } = De(), K = W(
393
401
  () => {
394
402
  var t, s, q, p;
395
- return ((s = (t = h.purchaseOrder) == null ? void 0 : t.supplier) == null ? void 0 : s.internal) === "restaurant" || ((p = (q = h.purchaseOrder) == null ? void 0 : q.supplier) == null ? void 0 : p.internal) === "warehouse" ? le.TRANSFER : le.PURCHASE;
403
+ return ((s = (t = h.purchaseOrder) == null ? void 0 : t.supplier) == null ? void 0 : s.internal) === "restaurant" || ((p = (q = h.purchaseOrder) == null ? void 0 : q.supplier) == null ? void 0 : p.internal) === "warehouse" ? ie.TRANSFER : ie.PURCHASE;
396
404
  }
397
405
  ), o = [
398
406
  {
@@ -403,9 +411,9 @@ const We = { class: "flex flex-col gap-16 w-full h-full" }, Xe = { class: "flex
403
411
  label: m("inventory.transfer.receiveRequest.details.deliveryHistory"),
404
412
  value: "deliveryHistory"
405
413
  }
406
- ], i = re(o[0]), l = re(!1), c = re(""), j = re(!0), se = Le(), ce = ze(h, "show");
414
+ ], i = ae(o[0]), l = ae(!1), u = ae(""), j = ae(!0), se = Le(), ce = He(h, "show");
407
415
  async function we(t, s, q) {
408
- c.value = s, l.value = !0, j.value = !1;
416
+ u.value = s, l.value = !0, j.value = !1;
409
417
  try {
410
418
  await se.processPurchaseOrder(
411
419
  {
@@ -432,7 +440,7 @@ const We = { class: "flex flex-col gap-16 w-full h-full" }, Xe = { class: "flex
432
440
  type: "error"
433
441
  }), console.error("Error when submitting PO operation", s, t, p);
434
442
  } finally {
435
- c.value = "", l.value = !1, j.value = !0;
443
+ u.value = "", l.value = !1, j.value = !0;
436
444
  }
437
445
  }
438
446
  async function L(t) {
@@ -567,7 +575,7 @@ const We = { class: "flex flex-col gap-16 w-full h-full" }, Xe = { class: "flex
567
575
  return (t, s) => {
568
576
  var R, _;
569
577
  const q = H("FmButtonGroup"), p = H("FmChip"), M = H("FmMenuDivider"), E = H("FmCard"), N = H("FmSpacer"), n = H("FmButton"), g = H("FmSideSheet");
570
- return u(), $(g, {
578
+ return c(), $(g, {
571
579
  header: r(m)("inventory.transfer.receiveRequest.details.title") + ((R = t.purchaseOrder) != null && R.seqNumber ? ` #${(_ = t.purchaseOrder) == null ? void 0 : _.seqNumber}` : ""),
572
580
  modelValue: r(ce),
573
581
  "onUpdate:modelValue": s[9] || (s[9] = (w) => Te(ce) ? ce.value = w : null),
@@ -575,10 +583,10 @@ const We = { class: "flex flex-col gap-16 w-full h-full" }, Xe = { class: "flex
575
583
  "close-button": "",
576
584
  "max-width": 500
577
585
  }, {
578
- default: ae(() => {
586
+ default: ne(() => {
579
587
  var w;
580
588
  return [
581
- e("div", We, [
589
+ e("div", Je, [
582
590
  e("div", null, [
583
591
  U(q, {
584
592
  items: o,
@@ -586,70 +594,70 @@ const We = { class: "flex flex-col gap-16 w-full h-full" }, Xe = { class: "flex
586
594
  "onUpdate:modelValue": s[0] || (s[0] = (v) => i.value = v)
587
595
  }, null, 8, ["modelValue"])
588
596
  ]),
589
- i.value.value === "overview" ? (u(), y(Q, { key: 0 }, [
597
+ i.value.value === "overview" ? (c(), y(Q, { key: 0 }, [
590
598
  e("div", null, [
591
599
  U(E, {
592
600
  variant: "outlined",
593
601
  class: "flex flex-col gap-8 px-12 py-16"
594
602
  }, {
595
- default: ae(() => {
603
+ default: ne(() => {
596
604
  var v, S, D, V, B, G, X, Z, ee, F, me, fe, ve, pe, ye, be, he, ge, Re, _e;
597
605
  return [
598
- e("div", Xe, [
599
- e("div", Ze, d(r(m)("inventory.transfer.receiveRequest.details.requestSummary")), 1),
606
+ e("div", We, [
607
+ e("div", Xe, d(r(m)("inventory.transfer.receiveRequest.details.requestSummary")), 1),
600
608
  e("div", null, [
601
609
  U(p, {
602
610
  label: r(m)(`inventory.transfer.status.${(v = t.purchaseOrder) == null ? void 0 : v.status}`),
603
- class: ne(`fm-status-badge fm-status-badge-${(D = (S = t.purchaseOrder) == null ? void 0 : S.status) == null ? void 0 : D.toLocaleLowerCase("en-us")}`),
611
+ class: oe(`fm-status-badge fm-status-badge-${(D = (S = t.purchaseOrder) == null ? void 0 : S.status) == null ? void 0 : D.toLocaleLowerCase("en-us")}`),
604
612
  compact: ""
605
613
  }, null, 8, ["label", "class"])
606
614
  ])
607
615
  ]),
608
616
  U(M),
609
- e("div", et, [
610
- e("div", tt, [
611
- e("div", st, [
612
- e("div", rt, d(r(m)("inventory.transfer.receiveRequest.details.createdAt")), 1)
617
+ e("div", Ze, [
618
+ e("div", et, [
619
+ e("div", tt, [
620
+ e("div", st, d(r(m)("inventory.transfer.receiveRequest.details.createdAt")), 1)
613
621
  ]),
614
- e("div", at, d(r(ie)(((V = t.purchaseOrder) == null ? void 0 : V._id) ?? "")), 1)
622
+ e("div", rt, d(r(ue)(((V = t.purchaseOrder) == null ? void 0 : V._id) ?? "")), 1)
615
623
  ]),
616
- (B = t.purchaseOrder) != null && B.effectiveAt ? (u(), y("div", nt, [
617
- e("div", ot, d(r(m)("inventory.transfer.receiveRequest.details.backdatedTo")), 1),
618
- e("div", lt, d(r(qe)(new Date((G = t.purchaseOrder) == null ? void 0 : G.effectiveAt))), 1)
624
+ (B = t.purchaseOrder) != null && B.effectiveAt ? (c(), y("div", at, [
625
+ e("div", nt, d(r(m)("inventory.transfer.receiveRequest.details.backdatedTo")), 1),
626
+ e("div", ot, d(r(qe)(new Date((G = t.purchaseOrder) == null ? void 0 : G.effectiveAt))), 1)
619
627
  ])) : O("", !0),
620
- e("div", it, [
621
- e("div", ct, d(r(m)("inventory.transfer.receiveRequest.details.type.title")), 1),
628
+ e("div", lt, [
629
+ e("div", it, d(r(m)("inventory.transfer.receiveRequest.details.type.title")), 1),
622
630
  e("div", ut, d(r(m)(
623
631
  `inventory.transfer.receiveRequest.details.type.${K.value.toLocaleLowerCase("en-US")}`
624
632
  )), 1)
625
633
  ]),
626
- (Z = (X = t.purchaseOrder) == null ? void 0 : X.supplier) != null && Z.name ? (u(), y("div", dt, [
627
- e("div", mt, d(r(m)("inventory.transfer.receiveRequest.details.from")), 1),
628
- e("div", ft, d((F = (ee = t.purchaseOrder) == null ? void 0 : ee.supplier) == null ? void 0 : F.name), 1)
634
+ (Z = (X = t.purchaseOrder) == null ? void 0 : X.supplier) != null && Z.name ? (c(), y("div", ct, [
635
+ e("div", dt, d(r(m)("inventory.transfer.receiveRequest.details.from")), 1),
636
+ e("div", mt, d((F = (ee = t.purchaseOrder) == null ? void 0 : ee.supplier) == null ? void 0 : F.name), 1)
629
637
  ])) : O("", !0),
630
- t.transferTo ? (u(), y("div", vt, [
631
- e("div", pt, d(r(m)("inventory.transfer.receiveRequest.details.to")), 1),
632
- e("div", yt, d(t.transferTo), 1)
638
+ t.transferTo ? (c(), y("div", ft, [
639
+ e("div", vt, d(r(m)("inventory.transfer.receiveRequest.details.to")), 1),
640
+ e("div", pt, d(t.transferTo), 1)
633
641
  ])) : O("", !0),
634
- r(P).isEnabled ? (u(), y("div", bt, [
642
+ r(P).isEnabled ? (c(), y("div", yt, [
635
643
  s[10] || (s[10] = e("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " NetSuite Subsidiary ", -1)),
636
- e("div", ht, d(((fe = (me = t.purchaseOrder) == null ? void 0 : me.netSuite) == null ? void 0 : fe.subsidiary.name) || ((pe = (ve = t.poRequest) == null ? void 0 : ve.netSuite) == null ? void 0 : pe.subsidiary.name) || "-"), 1)
644
+ e("div", bt, d(((fe = (me = t.purchaseOrder) == null ? void 0 : me.netSuite) == null ? void 0 : fe.subsidiary.name) || ((pe = (ve = t.poRequest) == null ? void 0 : ve.netSuite) == null ? void 0 : pe.subsidiary.name) || "-"), 1)
637
645
  ])) : O("", !0),
638
- r(P).isEnabled ? (u(), y("div", gt, [
646
+ r(P).isEnabled ? (c(), y("div", ht, [
639
647
  s[11] || (s[11] = e("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " NetSuite Transfer Order ", -1)),
640
- e("div", Rt, d(((be = (ye = t.purchaseOrder) == null ? void 0 : ye.netSuite) == null ? void 0 : be.id) || ((ge = (he = t.poRequest) == null ? void 0 : he.netSuite) == null ? void 0 : ge.id) || "-"), 1)
648
+ e("div", gt, d(((be = (ye = t.purchaseOrder) == null ? void 0 : ye.netSuite) == null ? void 0 : be.id) || ((ge = (he = t.poRequest) == null ? void 0 : he.netSuite) == null ? void 0 : ge.id) || "-"), 1)
641
649
  ])) : O("", !0),
642
- r(P).isEnabled ? (u(), y("div", _t, [
650
+ r(P).isEnabled ? (c(), y("div", Rt, [
643
651
  s[12] || (s[12] = e("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " NetSuite Fulfilment IDs ", -1)),
644
- e("div", Ot, d(Ce.value), 1)
652
+ e("div", _t, d(Ce.value), 1)
645
653
  ])) : O("", !0),
646
- (Re = t.purchaseOrder) != null && Re.ref ? (u(), y("div", xt, [
647
- e("div", kt, d(r(m)("inventory.transfer.receiveRequest.details.reference")), 1),
648
- e("div", qt, d(t.purchaseOrder.ref), 1)
654
+ (Re = t.purchaseOrder) != null && Re.ref ? (c(), y("div", Ot, [
655
+ e("div", xt, d(r(m)("inventory.transfer.receiveRequest.details.reference")), 1),
656
+ e("div", kt, d(t.purchaseOrder.ref), 1)
649
657
  ])) : O("", !0),
650
- (_e = t.purchaseOrder) != null && _e.remark ? (u(), y("div", St, [
651
- e("div", Dt, d(r(m)("inventory.transfer.receiveRequest.details.remark")), 1),
652
- e("div", wt, d(t.purchaseOrder.remark), 1)
658
+ (_e = t.purchaseOrder) != null && _e.remark ? (c(), y("div", qt, [
659
+ e("div", St, d(r(m)("inventory.transfer.receiveRequest.details.remark")), 1),
660
+ e("div", Dt, d(t.purchaseOrder.remark), 1)
653
661
  ])) : O("", !0)
654
662
  ])
655
663
  ];
@@ -657,33 +665,33 @@ const We = { class: "flex flex-col gap-16 w-full h-full" }, Xe = { class: "flex
657
665
  _: 1
658
666
  })
659
667
  ]),
660
- e("div", At, [
661
- e("div", Ct, [
662
- e("div", Et, d(Ae.value ? r(m)("inventory.transfer.receiveRequest.details.receivedItems") : r(m)("inventory.transfer.receiveRequest.details.requestedItems")), 1),
663
- (u(!0), y(Q, null, oe(((w = t.purchaseOrder) == null ? void 0 : w.items) ?? [], (v) => (u(), y("div", {
668
+ e("div", wt, [
669
+ e("div", At, [
670
+ e("div", Ct, d(Ae.value ? r(m)("inventory.transfer.receiveRequest.details.receivedItems") : r(m)("inventory.transfer.receiveRequest.details.requestedItems")), 1),
671
+ (c(!0), y(Q, null, le(((w = t.purchaseOrder) == null ? void 0 : w.items) ?? [], (v) => (c(), y("div", {
664
672
  key: v.code,
665
673
  class: "flex flex-col"
666
674
  }, [
667
- e("div", Nt, [
668
- e("div", Tt, d(v.name), 1),
669
- e("div", Pt, d(r(te)(Ee.value[v.sku._id], !1)) + "/" + d(r(Se)(v.quantity, v.sku.unit, v.measurement)), 1)
675
+ e("div", Et, [
676
+ e("div", Nt, d(v.name), 1),
677
+ e("div", Tt, d(r(te)(Ee.value[v.sku._id], !1)) + "/" + d(r(Se)(v.quantity, v.sku.unit, v.measurement)), 1)
670
678
  ]),
671
- e("div", Ft, [
672
- e("div", $t, d(v.code), 1),
673
- v.totalCost && r(z).enableTotalCost ? (u(), y("div", It, " (" + d(r(Ie)(v.totalCost)) + ") ", 1)) : O("", !0)
679
+ e("div", Pt, [
680
+ e("div", Ft, d(v.code), 1),
681
+ v.totalCost && r(z).enableTotalCost ? (c(), y("div", $t, " (" + d(r(Ie)(v.totalCost)) + ") ", 1)) : O("", !0)
674
682
  ])
675
683
  ]))), 128))
676
684
  ])
677
685
  ])
678
686
  ], 64)) : O("", !0),
679
- i.value.value === "deliveryHistory" ? (u(), y("div", jt, [
680
- Y.value.length ? (u(), y("div", Vt, [
681
- (u(!0), y(Q, null, oe(Y.value, (v, S) => (u(), y(Q, { key: S }, [
682
- e("div", Bt, [
683
- e("div", Gt, [
684
- e("div", Ht, [
687
+ i.value.value === "deliveryHistory" ? (c(), y("div", It, [
688
+ Y.value.length ? (c(), y("div", Lt, [
689
+ (c(!0), y(Q, null, le(Y.value, (v, S) => (c(), y(Q, { key: S }, [
690
+ e("div", Vt, [
691
+ e("div", Bt, [
692
+ e("div", Gt, [
685
693
  e("div", {
686
- class: ne([
694
+ class: oe([
687
695
  {
688
696
  "bg-fm-color-primary": S !== 0,
689
697
  "bg-white": S === 0
@@ -693,9 +701,9 @@ const We = { class: "flex flex-col gap-16 w-full h-full" }, Xe = { class: "flex
693
701
  }, null, 2)
694
702
  ]),
695
703
  s[13] || (s[13] = e("div", { class: "h-24 w-24 bg-fm-color-primary rounded-full" }, null, -1)),
696
- e("div", zt, [
704
+ e("div", Ht, [
697
705
  e("div", {
698
- class: ne([
706
+ class: oe([
699
707
  {
700
708
  "bg-fm-color-primary": S < Y.value.length - 1,
701
709
  "bg-white": S >= Y.value.length - 1
@@ -705,16 +713,16 @@ const We = { class: "flex flex-col gap-16 w-full h-full" }, Xe = { class: "flex
705
713
  }, null, 2)
706
714
  ])
707
715
  ]),
708
- e("div", Yt, [
709
- e("div", Qt, d(v.header), 1),
710
- e("div", Jt, d(v.date), 1)
716
+ e("div", zt, [
717
+ e("div", Yt, d(v.header), 1),
718
+ e("div", Qt, d(v.date), 1)
711
719
  ])
712
720
  ]),
713
- e("div", Wt, [
714
- e("div", Xt, [
715
- e("div", Zt, [
721
+ e("div", Jt, [
722
+ e("div", Wt, [
723
+ e("div", Xt, [
716
724
  e("div", {
717
- class: ne([
725
+ class: oe([
718
726
  {
719
727
  "bg-fm-color-primary": S < Y.value.length - 1,
720
728
  "bg-white": S >= Y.value.length - 1
@@ -724,20 +732,20 @@ const We = { class: "flex flex-col gap-16 w-full h-full" }, Xe = { class: "flex
724
732
  }, null, 2)
725
733
  ])
726
734
  ]),
727
- e("div", es, [
735
+ e("div", Zt, [
728
736
  U(E, {
729
737
  variant: "outlined",
730
738
  class: "py-12 px-16"
731
739
  }, {
732
- default: ae(() => [
733
- e("div", ts, [
734
- (u(!0), y(Q, null, oe(v.info, (D, V) => (u(), y("div", {
740
+ default: ne(() => [
741
+ e("div", es, [
742
+ (c(!0), y(Q, null, le(v.info, (D, V) => (c(), y("div", {
735
743
  key: V,
736
744
  class: "flex flex-col gap-4"
737
745
  }, [
738
- e("div", ss, d(D == null ? void 0 : D.label), 1),
739
- e("div", rs, [
740
- (u(!0), y(Q, null, oe(D == null ? void 0 : D.values, (B, G) => (u(), y("div", {
746
+ e("div", ts, d(D == null ? void 0 : D.label), 1),
747
+ e("div", ss, [
748
+ (c(!0), y(Q, null, le(D == null ? void 0 : D.values, (B, G) => (c(), y("div", {
741
749
  key: G,
742
750
  class: "fm-typo-en-body-lg-600"
743
751
  }, d(B), 1))), 128))
@@ -750,16 +758,16 @@ const We = { class: "flex flex-col gap-16 w-full h-full" }, Xe = { class: "flex
750
758
  ])
751
759
  ])
752
760
  ], 64))), 128))
753
- ])) : (u(), y("div", Mt, [
761
+ ])) : (c(), y("div", jt, [
754
762
  U(N),
755
763
  e("div", null, [
756
764
  e("img", {
757
- src: r(Ye),
765
+ src: r(ze),
758
766
  alt: "List is empty"
759
- }, null, 8, Ut)
767
+ }, null, 8, Mt)
760
768
  ]),
761
- e("div", Kt, d(r(m)("inventory.transfer.receiveRequest.details.noRecordsFound")), 1),
762
- e("div", Lt, d(r(m)("inventory.transfer.receiveRequest.details.trackDeliveryMessage")), 1),
769
+ e("div", Ut, d(r(m)("inventory.transfer.receiveRequest.details.noRecordsFound")), 1),
770
+ e("div", Kt, d(r(m)("inventory.transfer.receiveRequest.details.trackDeliveryMessage")), 1),
763
771
  U(N),
764
772
  U(N)
765
773
  ]))
@@ -767,62 +775,62 @@ const We = { class: "flex flex-col gap-16 w-full h-full" }, Xe = { class: "flex
767
775
  ])
768
776
  ];
769
777
  }),
770
- "side-sheet-footer": ae(() => {
778
+ "side-sheet-footer": ne(() => {
771
779
  var w, v, S, D, V, B, G, X, Z, ee;
772
780
  return [
773
- e("div", as, [
774
- ((w = t.purchaseOrder) == null ? void 0 : w.status) === r(A).enum.DRAFT && K.value === r(le).PURCHASE ? (u(), $(n, {
781
+ e("div", rs, [
782
+ ((w = t.purchaseOrder) == null ? void 0 : w.status) === r(A).enum.DRAFT && K.value === r(ie).PURCHASE ? (c(), $(n, {
775
783
  key: 0,
776
784
  label: r(m)("inventory.transfer.receiveRequest.actions.confirmDraft"),
777
785
  onClick: s[1] || (s[1] = (F) => L("confirmDraft")),
778
- loading: c.value === "confirmDraft",
779
- disabled: c.value !== "confirmDraft" && l.value
786
+ loading: u.value === "confirmDraft",
787
+ disabled: u.value !== "confirmDraft" && l.value
780
788
  }, null, 8, ["label", "loading", "disabled"])) : O("", !0),
781
- ((v = t.purchaseOrder) == null ? void 0 : v.status) === r(A).enum.DRAFT && K.value === r(le).TRANSFER ? (u(), $(n, {
789
+ ((v = t.purchaseOrder) == null ? void 0 : v.status) === r(A).enum.DRAFT && K.value === r(ie).TRANSFER ? (c(), $(n, {
782
790
  key: 1,
783
791
  label: r(m)("inventory.transfer.receiveRequest.actions.submitRequest"),
784
792
  onClick: s[2] || (s[2] = (F) => L("submitRequest")),
785
- loading: c.value === "submitRequest",
786
- disabled: c.value !== "submitRequest" && l.value
793
+ loading: u.value === "submitRequest",
794
+ disabled: u.value !== "submitRequest" && l.value
787
795
  }, null, 8, ["label", "loading", "disabled"])) : O("", !0),
788
- ((S = t.purchaseOrder) == null ? void 0 : S.status) === r(A).enum.DRAFT ? (u(), $(n, {
796
+ ((S = t.purchaseOrder) == null ? void 0 : S.status) === r(A).enum.DRAFT ? (c(), $(n, {
789
797
  key: 2,
790
798
  label: r(m)("inventory.transfer.receiveRequest.actions.cancelDraft"),
791
799
  onClick: s[3] || (s[3] = (F) => L("cancelDraft")),
792
- loading: c.value === "cancelDraft",
793
- disabled: c.value !== "cancelDraft" && l.value,
800
+ loading: u.value === "cancelDraft",
801
+ disabled: u.value !== "cancelDraft" && l.value,
794
802
  variant: "destructive"
795
803
  }, null, 8, ["label", "loading", "disabled"])) : O("", !0),
796
- ((D = t.purchaseOrder) == null ? void 0 : D.status) === r(A).enum.RECEIVING ? (u(), $(n, {
804
+ ((D = t.purchaseOrder) == null ? void 0 : D.status) === r(A).enum.RECEIVING ? (c(), $(n, {
797
805
  key: 3,
798
806
  label: r(m)("inventory.transfer.receiveRequest.actions.completeReceive"),
799
807
  onClick: s[4] || (s[4] = (F) => L("completeReceive")),
800
- loading: c.value === "completeReceive",
801
- disabled: c.value !== "completeReceive" && l.value
808
+ loading: u.value === "completeReceive",
809
+ disabled: u.value !== "completeReceive" && l.value
802
810
  }, null, 8, ["label", "loading", "disabled"])) : O("", !0),
803
- t.canResubmit ? (u(), $(n, {
811
+ t.canResubmit ? (c(), $(n, {
804
812
  key: 4,
805
813
  label: r(m)("inventory.transfer.receiveRequest.actions.resubmitRequest"),
806
814
  onClick: s[5] || (s[5] = (F) => L("submitRequest")),
807
- loading: c.value === "submitRequest",
808
- disabled: c.value !== "submitRequest" && l.value
815
+ loading: u.value === "submitRequest",
816
+ disabled: u.value !== "submitRequest" && l.value
809
817
  }, null, 8, ["label", "loading", "disabled"])) : O("", !0),
810
- (((V = t.purchaseOrder) == null ? void 0 : V.status) === r(A).enum.REQUESTING || ((B = t.purchaseOrder) == null ? void 0 : B.status) === r(A).enum.PROCESSING) && t.canApprove ? (u(), $(n, {
818
+ (((V = t.purchaseOrder) == null ? void 0 : V.status) === r(A).enum.REQUESTING || ((B = t.purchaseOrder) == null ? void 0 : B.status) === r(A).enum.PROCESSING) && t.canApprove ? (c(), $(n, {
811
819
  key: 5,
812
820
  label: r(m)("inventory.transfer.approval.actions.approveRequest"),
813
821
  onClick: s[6] || (s[6] = (F) => L("approveRequest")),
814
- loading: c.value === "approveRequest",
815
- disabled: c.value !== "approveRequest" && l.value
822
+ loading: u.value === "approveRequest",
823
+ disabled: u.value !== "approveRequest" && l.value
816
824
  }, null, 8, ["label", "loading", "disabled"])) : O("", !0),
817
- ((G = t.purchaseOrder) == null ? void 0 : G.status) === r(A).enum.REQUESTING && t.canApprove ? (u(), $(n, {
825
+ ((G = t.purchaseOrder) == null ? void 0 : G.status) === r(A).enum.REQUESTING && t.canApprove ? (c(), $(n, {
818
826
  key: 6,
819
827
  label: r(m)("inventory.transfer.approval.actions.rejectRequest"),
820
828
  onClick: s[7] || (s[7] = (F) => L("rejectRequest")),
821
- loading: c.value === "rejectRequest",
822
- disabled: c.value !== "rejectRequest" && l.value,
829
+ loading: u.value === "rejectRequest",
830
+ disabled: u.value !== "rejectRequest" && l.value,
823
831
  variant: "destructive"
824
832
  }, null, 8, ["label", "loading", "disabled"])) : O("", !0),
825
- ((X = t.purchaseOrder) == null ? void 0 : X.status) !== r(A).enum.COMPLETE && ((Z = t.purchaseOrder) == null ? void 0 : Z.status) !== r(A).enum.CANCEL && (((ee = t.purchaseOrder) == null ? void 0 : ee.status) !== r(A).enum.REQUESTING || t.canApprove) ? (u(), $(n, {
833
+ ((X = t.purchaseOrder) == null ? void 0 : X.status) !== r(A).enum.COMPLETE && ((Z = t.purchaseOrder) == null ? void 0 : Z.status) !== r(A).enum.CANCEL && (((ee = t.purchaseOrder) == null ? void 0 : ee.status) !== r(A).enum.REQUESTING || t.canApprove) ? (c(), $(n, {
826
834
  key: 7,
827
835
  label: r(m)("common.close"),
828
836
  variant: "tertiary",
@@ -837,7 +845,7 @@ const We = { class: "flex flex-col gap-16 w-full h-full" }, Xe = { class: "flex
837
845
  }
838
846
  });
839
847
  export {
840
- ys as _,
841
- Qe as g,
842
- ps as u
848
+ ps as _,
849
+ Ye as g,
850
+ vs as u
843
851
  };