@feedmepos/mf-inventory-portal 0.0.23-dev.36 → 0.0.23-dev.38

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 (79) hide show
  1. package/dist/{App-CRVwCmFX.js → App-DQgtWkQj.js} +20 -20
  2. package/dist/{ApprovalView-CfJQdSRz.js → ApprovalView-CvSK9fGA.js} +10 -10
  3. package/dist/{BindingsDialog-BKL8E0Ni.js → BindingsDialog-BAC0_xCP.js} +8 -8
  4. package/dist/{BindingsPicker-M9-ARPgB.js → BindingsPicker-ecWMwsNp.js} +3 -3
  5. package/dist/{BindingsTable-BUs8wO0p.js → BindingsTable-D5kQydOU.js} +10 -10
  6. package/dist/{ClosingDraftView-BI3P4oS4.js → ClosingDraftView-CnHQ59rX.js} +46 -46
  7. package/dist/{ClosingTemplateView-D732hJJj.js → ClosingTemplateView-vRTsVZ0c.js} +21 -21
  8. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DzXJBW2r.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CpIzIvkU.js} +17 -17
  9. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-BPOPaW5x.js → FmUnitInput.vue_vue_type_script_setup_true_lang-CNzEHF-R.js} +37 -37
  10. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DCYtyGvl.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DBhBaRrd.js} +1 -1
  11. package/dist/{IngredientGroupView-CnnqKFGA.js → IngredientGroupView-BLsABZ3h.js} +1 -1
  12. package/dist/IngredientsView-Cs4TIf6V.js +1794 -0
  13. package/dist/{IntegrationView-6-Qvhwbr.js → IntegrationView-BqAqngtM.js} +137 -137
  14. package/dist/{InventoryBindingForm-F3o3dWhJ.js → InventoryBindingForm-D54V_qZQ.js} +1 -1
  15. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-B1hTEubD.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-KIW9J7Xn.js} +106 -96
  16. package/dist/{InventoryBindingSummary-B9ziVhZr.js → InventoryBindingSummary-htT7GNto.js} +1 -1
  17. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BquI8s88.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BlEgALMj.js} +1 -1
  18. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BHRxlIxi.js → PremiumBadge.vue_vue_type_script_setup_true_lang-DHbxXDGy.js} +9 -9
  19. package/dist/{PurchaseOrderPrintPreview-DyjA8BsV.js → PurchaseOrderPrintPreview-hmzxKuIa.js} +5 -5
  20. package/dist/{ReceiveRequestView-BQoADy5j.js → ReceiveRequestView-_YioyWqU.js} +182 -182
  21. package/dist/{RecipeView-DOEPiT-V.js → RecipeView-88KJ0nvU.js} +3 -3
  22. package/dist/StockView-R4cnEbHQ.js +1818 -0
  23. package/dist/{SupplierView-BX6T3B40.js → SupplierView-CevGG507.js} +4 -4
  24. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-C-8uS9KA.js → TransferDetails.vue_vue_type_script_setup_true_lang-CeWP9msS.js} +52 -52
  25. package/dist/{TransferTemplateView-D3smZIqo.js → TransferTemplateView-QDniAq8o.js} +114 -114
  26. package/dist/{UnitView-PZthqb2i.js → UnitView-SjwJ3lZ0.js} +14 -14
  27. package/dist/{WarehouseView-Qqqwk353.js → WarehouseView-55LiPQXG.js} +70 -70
  28. package/dist/api/adjustment-template.d.ts +2 -0
  29. package/dist/api/bill.d.ts +240 -84
  30. package/dist/api/inventory.d.ts +15 -6
  31. package/dist/{app-Dzll4soM.js → app-UTiudUUR.js} +6779 -6514
  32. package/dist/app.d.ts +8 -0
  33. package/dist/app.js +1 -1
  34. package/dist/components/FmCustomAttribute.vue.d.ts +23 -0
  35. package/dist/components/FmLockableField.vue.d.ts +37 -0
  36. package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +3 -1
  37. package/dist/components/shell/inventory/binding-ui.vue.d.ts +3 -1
  38. package/dist/{decimal-CSwcVJ9W.js → decimal-tyBgHJ47.js} +1 -1
  39. package/dist/feature-z7inw9y6.js +946 -0
  40. package/dist/{format-unit-display-D2-2_8Wo.js → format-unit-display-DN0KtCh2.js} +61 -61
  41. package/dist/index-Dj2Ccgp1.js +29202 -0
  42. package/dist/{StockView-CyJlLOjk.js → index-DlhdTaa8.js} +2218 -3854
  43. package/dist/{stock-VALQOiWM.js → stock-CxRxidDu.js} +1 -1
  44. package/dist/stores/feature.d.ts +5 -0
  45. package/dist/stores/inventory.d.ts +20 -8
  46. package/dist/stores/supplier.d.ts +1 -1
  47. package/dist/{supplier-CYRocBpq.js → supplier-BhyiTwSJ.js} +1 -1
  48. package/dist/tsconfig.app.tsbuildinfo +1 -1
  49. package/dist/{use-inventory-binding-dialog-SiBEsYI-.js → use-inventory-binding-dialog-DwSvUvRl.js} +1 -1
  50. package/dist/views/adjustment-template/wastage-template/WastageTemplateReason.vue.d.ts +18 -0
  51. package/dist/views/adjustment-template/wastage-template/actions.d.ts +37 -3
  52. package/dist/views/adjustment-template/wastage-template/props.d.ts +7 -0
  53. package/dist/views/adjustment-template/wastage-template/table.d.ts +32 -2
  54. package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +8 -4
  55. package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +48 -24
  56. package/dist/views/closing-template/components/closing-template-form/composables/use-closing-template-items.d.ts +2 -1
  57. package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +24 -12
  58. package/dist/views/closing-template/composables/use-closing-template-table.d.ts +24 -12
  59. package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +6 -3
  60. package/dist/views/ingredients/components/convert/ConvertFormProps.d.ts +1 -0
  61. package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +4 -2
  62. package/dist/views/ingredients/components/inventory-binding/InventoryBindingForm.vue.d.ts +1 -0
  63. package/dist/views/ingredients/composables/use-ingredient-table.d.ts +2 -1
  64. package/dist/views/receive-request/components/transfer-form/SparkIcon.vue.d.ts +1 -1
  65. package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +34 -17
  66. package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +4 -2
  67. package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +2 -1
  68. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +48 -24
  69. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +48 -24
  70. package/dist/views/recipe/components/recipe-form/RecipeForm.vue.d.ts +2 -0
  71. package/dist/views/stock/components/StockRecordCard.vue.d.ts +120 -42
  72. package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +4 -2
  73. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +2 -1
  74. package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +24 -12
  75. package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +24 -12
  76. package/package.json +7 -6
  77. package/dist/IngredientsView-DZS3wyBm.js +0 -1657
  78. package/dist/feature-CFAsUae4.js +0 -92
  79. package/dist/index-CLdXLjws.js +0 -12087
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as Q, mergeModels as Gd, computed as F, useModel as Hd, resolveComponent as T, openBlock as E, createElementBlock as O, createElementVNode as g, createVNode as N, withCtx as k, toDisplayString as A, unref as f, Fragment as q, renderList as ee, ref as L, createBlock as j, createCommentVNode as K, isRef as Qe, createTextVNode as Id, normalizeClass as J, watch as Fd, createSlots as jd, onMounted as Kd, normalizeStyle as Wd, Teleport as Yd } from "vue";
2
- import { u as re } from "./supplier-CYRocBpq.js";
3
- import { b as Fe, f as Xd, D as ed, h as ie, e as Pe, a as Od, m as dd, j as Zd, H as zd, C as he, r as wd, u as pe, l as G, d as U, o as Ad, p as qd, q as Rd, s as Jd, v as Qd, w as et, x as dt, y as tt, z as rt, B as nt, E as le } from "./app-Dzll4soM.js";
2
+ import { u as re } from "./supplier-BhyiTwSJ.js";
3
+ import { b as Fe, f as Xd, D as ed, h as ie, e as Pe, a as Od, n as dd, j as Zd, J as zd, C as he, s as wd, u as pe, l as G, d as U, p as Ad, q as qd, r as Rd, v as Jd, w as Qd, x as et, y as dt, z as tt, B as rt, E as nt, G as le } from "./app-UTiudUUR.js";
4
4
  import { useI18n as X, useCoreStore as Oe } from "@feedmepos/mf-common";
5
5
  import { useDialog as we, useSnackbar as me, useProxiedModel as td, useDialogChild as ot, useBreakpoints as at } from "@feedmepos/ui-library";
6
6
  import { _ as $t } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
7
- import { _ as it } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-BPOPaW5x.js";
8
- import { u as Td } from "./feature-CFAsUae4.js";
7
+ import { _ as it } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-CNzEHF-R.js";
8
+ import { u as Td } from "./feature-z7inw9y6.js";
9
9
  import { defineStore as lt } from "pinia";
10
10
  function st(e, d) {
11
11
  const { t } = X(), r = Fe();
@@ -1,9 +1,9 @@
1
- import { ref as L, computed as G, h as te, defineComponent as ge, unref as i, openBlock as S, createElementBlock as k, createElementVNode as e, toDisplayString as g, createCommentVNode as x, resolveComponent as ee, createVNode as K, createBlock as J, isRef as Be, withCtx as me, Fragment as re, normalizeClass as fe, renderList as pe } from "vue";
2
- import { W as Me, u as ye, aJ as q, a5 as Ue, a7 as Le, a8 as je, ak as Ke, d as Oe, e as Ne, au as M, T as Te, aK as Ve, Y as be, K as ve, i as le, aL as xe, ac as he, f as De, D as U, h as B, b as Pe, a6 as Ge, aq as qe, a0 as ke, ag as Ae } from "./app-Dzll4soM.js";
1
+ import { ref as L, computed as G, h as te, defineComponent as ge, unref as i, openBlock as S, createElementBlock as k, createElementVNode as e, toDisplayString as g, createCommentVNode as x, resolveComponent as ee, createVNode as V, createBlock as Z, isRef as Be, withCtx as me, Fragment as re, normalizeClass as fe, renderList as pe } from "vue";
2
+ import { X as Me, u as ye, aF as q, a2 as Ue, a4 as Le, a5 as je, ah as Ve, d as Oe, e as Ne, aq as M, V as Te, aG as Ke, Z as be, L as ve, i as le, aH as xe, a9 as he, f as De, D as U, h as B, b as Pe, a3 as Ge, an as qe, a1 as ke, ad as Ae } from "./app-UTiudUUR.js";
3
3
  import { useDialog as Se, useSnackbar as _e, useProxiedModel as He } from "@feedmepos/ui-library";
4
- import { u as Ce } from "./feature-CFAsUae4.js";
5
- import { b as ze, u as Ye, f as $e, P as se } from "./format-unit-display-D2-2_8Wo.js";
6
- import { F as Qe } from "./decimal-CSwcVJ9W.js";
4
+ import { u as Ce } from "./feature-z7inw9y6.js";
5
+ import { b as ze, u as Ye, f as $e, P as se } from "./format-unit-display-DN0KtCh2.js";
6
+ import { F as Qe } from "./decimal-tyBgHJ47.js";
7
7
  import { useI18n as Ee } from "@feedmepos/mf-common";
8
8
  import { E as We } from "./empty-placeholder-wf6-BWE8.js";
9
9
  const Ie = Me((v, y) => {
@@ -104,8 +104,8 @@ function Dr(v, y) {
104
104
  start: Le(p).toISOString(),
105
105
  end: je(d).toISOString()
106
106
  };
107
- }), f = L(new Array()), F = Ke(), V = L(null);
108
- async function Z(p) {
107
+ }), f = L(new Array()), F = Ve(), K = L(null);
108
+ async function J(p) {
109
109
  let d;
110
110
  if (O.mustUsePoTemplate && !(p != null && p.template) && (d = await c.getTemplateId(), !d))
111
111
  return;
@@ -117,7 +117,7 @@ function Dr(v, y) {
117
117
  de.value.show = a;
118
118
  },
119
119
  templateId: d,
120
- lastClosingDate: V.value
120
+ lastClosingDate: K.value
121
121
  };
122
122
  de.value = N;
123
123
  }
@@ -129,7 +129,7 @@ function Dr(v, y) {
129
129
  "onUpdate:show"(N) {
130
130
  de.value.show = N;
131
131
  },
132
- lastClosingDate: V.value
132
+ lastClosingDate: K.value
133
133
  };
134
134
  de.value = d;
135
135
  }
@@ -138,7 +138,7 @@ function Dr(v, y) {
138
138
  try {
139
139
  r.value = await o.getPurchaseOrders(m.value).then((N) => N.sort((a, R) => R._id.localeCompare(a._id)));
140
140
  const p = await F.readLastClosing(!0), d = p == null ? void 0 : p._id;
141
- d && (V.value = Ve(d)), O.mustUsePoTemplate && await w.fetchTemplates();
141
+ d && (K.value = Ke(d)), O.mustUsePoTemplate && await w.fetchTemplates();
142
142
  } catch {
143
143
  h.open({
144
144
  title: "Something went wrong",
@@ -275,14 +275,14 @@ function Dr(v, y) {
275
275
  fetchData: Q,
276
276
  loading: l,
277
277
  transferDialogProps: de,
278
- promptCreateTransferDialog: Z,
278
+ promptCreateTransferDialog: J,
279
279
  promptUpdateTransferDialog: ae,
280
280
  transferDetailsProps: W,
281
281
  promptShowTransferDetails: n,
282
282
  submitAction: A
283
283
  };
284
284
  }
285
- function Je(v, y) {
285
+ function Ze(v, y) {
286
286
  return y.reduce(
287
287
  (t, O) => {
288
288
  const c = O.received.find((w) => w.sku._id === v._id);
@@ -291,7 +291,7 @@ function Je(v, y) {
291
291
  Qe.toPrecision(ve(0), v.unit.precision)
292
292
  );
293
293
  }
294
- function Ze(v, y) {
294
+ function Je(v, y) {
295
295
  const { name: b, address: t, regNo: O } = y.doc.profile, c = {
296
296
  name: b,
297
297
  registrationNumber: O,
@@ -312,7 +312,7 @@ function Ze(v, y) {
312
312
  country: v.supplier.address.country
313
313
  }, l = v.items.map((u) => {
314
314
  const { sku: m, measurement: f } = u, F = le(
315
- Je(u.sku, v.deliveryOrder || []),
315
+ Ze(u.sku, v.deliveryOrder || []),
316
316
  !1
317
317
  );
318
318
  return {
@@ -427,10 +427,10 @@ function qr(v, y) {
427
427
  return Object.values(q.enum).includes(r);
428
428
  }
429
429
  async function w(r, u, m) {
430
- var F, V;
430
+ var F, K;
431
431
  const f = Ne(u);
432
432
  if (r === B.Print) {
433
- Ze(f, b.currentLocation);
433
+ Je(f, b.currentLocation);
434
434
  return;
435
435
  }
436
436
  if (r === B.Details) {
@@ -442,7 +442,7 @@ function qr(v, y) {
442
442
  return;
443
443
  }
444
444
  if (c(r)) {
445
- y.submitAction(u, r, (V = m == null ? void 0 : m.to) == null ? void 0 : V.dbName);
445
+ y.submitAction(u, r, (K = m == null ? void 0 : m.to) == null ? void 0 : K.dbName);
446
446
  return;
447
447
  }
448
448
  }
@@ -637,7 +637,7 @@ const Xe = {
637
637
  }).join(", ") : "-";
638
638
  });
639
639
  return (c, w) => {
640
- var l, h, o, r, u, m, f, F, V, Z, ae, j, ne, Q;
640
+ var l, h, o, r, u, m, f, F, K, J, ae, j, ne, Q;
641
641
  return i(b).isEnabled ? (S(), k("div", Xe, [
642
642
  e("div", et, [
643
643
  w[0] || (w[0] = e("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, "NetSuite subsidiary", -1)),
@@ -647,7 +647,7 @@ const Xe = {
647
647
  e("div", st, " NetSuite " + g(c.transferType === i(se).PURCHASE ? "Purchase Order" : "Transfer Order") + " (ID) ", 1),
648
648
  e("div", at, g(c.poRequest ? (h = (l = c.poRequest) == null ? void 0 : l.netSuite) == null ? void 0 : h.refNo : (r = (o = c.purchaseOrder) == null ? void 0 : o.netSuite) == null ? void 0 : r.refNo) + " (" + g(c.poRequest ? (m = (u = c.poRequest) == null ? void 0 : u.netSuite) == null ? void 0 : m.id : (F = (f = c.purchaseOrder) == null ? void 0 : f.netSuite) == null ? void 0 : F.id) + ") ", 1)
649
649
  ])),
650
- (ae = (Z = (V = c.purchaseOrder) == null ? void 0 : V.netSuite) == null ? void 0 : Z.additionalInfo) != null && ae.transactionnumber ? (S(), k("div", nt, [
650
+ (ae = (J = (K = c.purchaseOrder) == null ? void 0 : K.netSuite) == null ? void 0 : J.additionalInfo) != null && ae.transactionnumber ? (S(), k("div", nt, [
651
651
  w[1] || (w[1] = e("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " NetSuite Transaction Number ", -1)),
652
652
  e("div", ot, g((Q = (ne = (j = c.purchaseOrder) == null ? void 0 : j.netSuite) == null ? void 0 : ne.additionalInfo) == null ? void 0 : Q.transactionnumber), 1)
653
653
  ])) : x("", !0),
@@ -728,7 +728,7 @@ const Xe = {
728
728
  return (h, o) => {
729
729
  const r = ee("FmButton");
730
730
  return w.value ? (S(), k("div", ut, [
731
- K(r, {
731
+ V(r, {
732
732
  "prepend-icon": "sync",
733
733
  variant: "primary",
734
734
  label: "NetSuite",
@@ -753,16 +753,16 @@ const Xe = {
753
753
  }, Ct = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, $t = { class: "fm-typo-en-body-lg-600" }, Et = {
754
754
  key: 4,
755
755
  class: "flex flex-col gap-4"
756
- }, It = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ft = { class: "fm-typo-en-body-lg-600" }, Bt = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg p-16" }, Mt = { class: "flex flex-col gap-8" }, Ut = { class: "fm-typo-en-body-lg-600" }, Lt = { class: "flex w-full gap-4" }, jt = { class: "basis-1/2 shrink-0 grow fm-typo-en-body-lg-400 line-clamp-2" }, Kt = { class: "fm-typo-en-body-lg-600 line-clamp-2" }, Vt = { class: "flex w-full gap-4 fm-typo-en-body-sm-400" }, Gt = { class: "grow fm-typo-en-body-lg-400 text-fm-color-typo-secondary line-clamp-1" }, Ht = {
756
+ }, It = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ft = { class: "fm-typo-en-body-lg-600" }, Bt = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg p-16" }, Mt = { class: "flex flex-col gap-8" }, Ut = { class: "fm-typo-en-body-lg-600" }, Lt = { class: "flex w-full gap-4" }, jt = { class: "basis-1/2 shrink-0 grow fm-typo-en-body-lg-400 line-clamp-2" }, Vt = { class: "fm-typo-en-body-lg-600 line-clamp-2" }, Kt = { class: "flex w-full gap-4 fm-typo-en-body-sm-400" }, Gt = { class: "grow fm-typo-en-body-lg-400 text-fm-color-typo-secondary line-clamp-1" }, Ht = {
757
757
  key: 0,
758
758
  class: "line-clamp-1 fm-typo-en-body-lg-400 text-fm-color-typo-secondary"
759
759
  }, zt = { class: "py-8" }, Yt = { class: "flex justify-end gap-4 items-center" }, Qt = { class: "fm-typo-en-body-lg-600" }, Wt = {
760
760
  key: 1,
761
761
  class: "flex-1 xs:w-screen xs:max-w-full"
762
- }, Jt = {
762
+ }, Zt = {
763
763
  key: 0,
764
764
  class: "flex flex-col items-center gap-8 h-full"
765
- }, Zt = ["src"], Xt = { class: "fm-typo-en-body-lg-600" }, er = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary px-16" }, tr = {
765
+ }, Jt = ["src"], Xt = { class: "fm-typo-en-body-lg-600" }, er = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary px-16" }, tr = {
766
766
  key: 1,
767
767
  class: "px-4 flex flex-col"
768
768
  }, rr = { class: "flex gap-12 content-stretch" }, sr = {
@@ -807,11 +807,11 @@ const Xe = {
807
807
  label: l("inventory.transfer.receiveRequest.details.deliveryHistory"),
808
808
  value: "deliveryHistory"
809
809
  }
810
- ], u = L(r[0]), m = L(!1), f = L(""), F = L(!0), V = Ie(), Z = He(b, "show");
810
+ ], u = L(r[0]), m = L(!1), f = L(""), F = L(!0), K = Ie(), J = He(b, "show");
811
811
  async function ae(s, n, P) {
812
812
  f.value = n, m.value = !0, F.value = !1;
813
813
  try {
814
- await V.processPurchaseOrder(
814
+ await K.processPurchaseOrder(
815
815
  {
816
816
  operation: n,
817
817
  doc: s,
@@ -988,10 +988,10 @@ const Xe = {
988
988
  return (s, n) => {
989
989
  var T, $;
990
990
  const P = ee("FmButtonGroup"), A = ee("FmChip"), p = ee("FmMenuDivider"), d = ee("FmCard"), N = ee("FmSpacer"), a = ee("FmButton"), R = ee("FmSideSheet");
991
- return S(), J(R, {
991
+ return S(), Z(R, {
992
992
  header: i(l)("inventory.transfer.receiveRequest.details.title") + ((T = s.purchaseOrder) != null && T.seqNumber ? ` #${($ = s.purchaseOrder) == null ? void 0 : $.seqNumber}` : ""),
993
- modelValue: i(Z),
994
- "onUpdate:modelValue": n[9] || (n[9] = (D) => Be(Z) ? Z.value = D : null),
993
+ modelValue: i(J),
994
+ "onUpdate:modelValue": n[9] || (n[9] = (D) => Be(J) ? J.value = D : null),
995
995
  "dismiss-away": F.value,
996
996
  "close-button": "",
997
997
  "max-width": 600
@@ -1000,13 +1000,13 @@ const Xe = {
1000
1000
  var D;
1001
1001
  return [
1002
1002
  e("div", mt, [
1003
- K(dt, {
1003
+ V(dt, {
1004
1004
  "po-request": s.poRequest,
1005
1005
  "purchase-order": s.purchaseOrder,
1006
1006
  "is-transfer-between-outlets": o.value
1007
1007
  }, null, 8, ["po-request", "purchase-order", "is-transfer-between-outlets"]),
1008
1008
  e("div", null, [
1009
- K(P, {
1009
+ V(P, {
1010
1010
  items: r,
1011
1011
  modelValue: u.value,
1012
1012
  "onUpdate:modelValue": n[0] || (n[0] = (_) => u.value = _)
@@ -1014,7 +1014,7 @@ const Xe = {
1014
1014
  ]),
1015
1015
  u.value.value === "overview" ? (S(), k(re, { key: 0 }, [
1016
1016
  e("div", null, [
1017
- K(d, {
1017
+ V(d, {
1018
1018
  variant: "outlined",
1019
1019
  class: "flex flex-col gap-8 px-12 py-16"
1020
1020
  }, {
@@ -1024,14 +1024,14 @@ const Xe = {
1024
1024
  e("div", ft, [
1025
1025
  e("div", pt, g(i(l)("inventory.transfer.receiveRequest.details.requestSummary")), 1),
1026
1026
  e("div", null, [
1027
- K(A, {
1027
+ V(A, {
1028
1028
  label: i(l)(`inventory.transfer.status.${(_ = s.purchaseOrder) == null ? void 0 : _.status}`),
1029
1029
  class: fe(`fm-status-badge fm-status-badge-${(E = (C = s.purchaseOrder) == null ? void 0 : C.status) == null ? void 0 : E.toLocaleLowerCase("en-us")}`),
1030
1030
  compact: ""
1031
1031
  }, null, 8, ["label", "class"])
1032
1032
  ])
1033
1033
  ]),
1034
- K(p),
1034
+ V(p),
1035
1035
  e("div", vt, [
1036
1036
  e("div", yt, [
1037
1037
  e("div", ht, [
@@ -1057,7 +1057,7 @@ const Xe = {
1057
1057
  e("div", Tt, g(i(l)("inventory.transfer.receiveRequest.details.to")), 1),
1058
1058
  e("div", xt, g(s.transferTo), 1)
1059
1059
  ])) : x("", !0),
1060
- K(ct, {
1060
+ V(ct, {
1061
1061
  "po-request": s.poRequest,
1062
1062
  "purchase-order": s.purchaseOrder,
1063
1063
  "transfer-type": h.value,
@@ -1087,16 +1087,16 @@ const Xe = {
1087
1087
  }, [
1088
1088
  e("div", Lt, [
1089
1089
  e("div", jt, g(_.name), 1),
1090
- e("div", Kt, g(i(le)(Q.value[_.sku._id], !1)) + "/" + g(i($e)(_.quantity, _.sku.unit, _.measurement)), 1)
1090
+ e("div", Vt, g(i(le)(Q.value[_.sku._id], !1)) + "/" + g(i($e)(_.quantity, _.sku.unit, _.measurement)), 1)
1091
1091
  ]),
1092
- e("div", Vt, [
1092
+ e("div", Kt, [
1093
1093
  e("div", Gt, g(_.code), 1),
1094
1094
  _.totalCost && i(w).enableTotalCost ? (S(), k("div", Ht, " (" + g(i(ke)(_.totalCost)) + ") ", 1)) : x("", !0)
1095
1095
  ])
1096
1096
  ]))), 128)),
1097
1097
  +i(le)(W.value) ? (S(), k(re, { key: 0 }, [
1098
1098
  e("div", zt, [
1099
- K(p)
1099
+ V(p)
1100
1100
  ]),
1101
1101
  e("div", Yt, [
1102
1102
  n[10] || (n[10] = e("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, "Total:", -1)),
@@ -1155,7 +1155,7 @@ const Xe = {
1155
1155
  ])
1156
1156
  ]),
1157
1157
  e("div", mr, [
1158
- K(d, {
1158
+ V(d, {
1159
1159
  variant: "outlined",
1160
1160
  class: "py-12 px-16"
1161
1161
  }, {
@@ -1180,18 +1180,18 @@ const Xe = {
1180
1180
  ])
1181
1181
  ])
1182
1182
  ], 64))), 128))
1183
- ])) : (S(), k("div", Jt, [
1184
- K(N),
1183
+ ])) : (S(), k("div", Zt, [
1184
+ V(N),
1185
1185
  e("div", null, [
1186
1186
  e("img", {
1187
1187
  src: i(We),
1188
1188
  alt: "List is empty"
1189
- }, null, 8, Zt)
1189
+ }, null, 8, Jt)
1190
1190
  ]),
1191
1191
  e("div", Xt, g(i(l)("inventory.transfer.receiveRequest.details.noRecordsFound")), 1),
1192
1192
  e("div", er, g(i(l)("inventory.transfer.receiveRequest.details.trackDeliveryMessage")), 1),
1193
- K(N),
1194
- K(N)
1193
+ V(N),
1194
+ V(N)
1195
1195
  ]))
1196
1196
  ])) : x("", !0)
1197
1197
  ])
@@ -1201,21 +1201,21 @@ const Xe = {
1201
1201
  var D, _, C, E, H, I, z, ie, ce, ue;
1202
1202
  return [
1203
1203
  e("div", yr, [
1204
- ((D = s.purchaseOrder) == null ? void 0 : D.status) === i(M).enum.DRAFT && h.value === i(se).PURCHASE ? (S(), J(a, {
1204
+ ((D = s.purchaseOrder) == null ? void 0 : D.status) === i(M).enum.DRAFT && h.value === i(se).PURCHASE ? (S(), Z(a, {
1205
1205
  key: 0,
1206
1206
  label: i(l)("inventory.transfer.receiveRequest.actions.confirmDraft"),
1207
1207
  onClick: n[1] || (n[1] = (Y) => j("confirmDraft")),
1208
1208
  loading: f.value === "confirmDraft",
1209
1209
  disabled: f.value !== "confirmDraft" && m.value
1210
1210
  }, null, 8, ["label", "loading", "disabled"])) : x("", !0),
1211
- ((_ = s.purchaseOrder) == null ? void 0 : _.status) === i(M).enum.DRAFT && h.value === i(se).TRANSFER ? (S(), J(a, {
1211
+ ((_ = s.purchaseOrder) == null ? void 0 : _.status) === i(M).enum.DRAFT && h.value === i(se).TRANSFER ? (S(), Z(a, {
1212
1212
  key: 1,
1213
1213
  label: i(l)("inventory.transfer.receiveRequest.actions.submitRequest"),
1214
1214
  onClick: n[2] || (n[2] = (Y) => j("submitRequest")),
1215
1215
  loading: f.value === "submitRequest",
1216
1216
  disabled: f.value !== "submitRequest" && m.value
1217
1217
  }, null, 8, ["label", "loading", "disabled"])) : x("", !0),
1218
- ((C = s.purchaseOrder) == null ? void 0 : C.status) === i(M).enum.DRAFT ? (S(), J(a, {
1218
+ ((C = s.purchaseOrder) == null ? void 0 : C.status) === i(M).enum.DRAFT ? (S(), Z(a, {
1219
1219
  key: 2,
1220
1220
  label: i(l)("inventory.transfer.receiveRequest.actions.cancelDraft"),
1221
1221
  onClick: n[3] || (n[3] = (Y) => j("cancelDraft")),
@@ -1223,28 +1223,28 @@ const Xe = {
1223
1223
  disabled: f.value !== "cancelDraft" && m.value,
1224
1224
  variant: "destructive"
1225
1225
  }, null, 8, ["label", "loading", "disabled"])) : x("", !0),
1226
- ((E = s.purchaseOrder) == null ? void 0 : E.status) === i(M).enum.RECEIVING ? (S(), J(a, {
1226
+ ((E = s.purchaseOrder) == null ? void 0 : E.status) === i(M).enum.RECEIVING ? (S(), Z(a, {
1227
1227
  key: 3,
1228
1228
  label: i(l)("inventory.transfer.receiveRequest.actions.completeReceive"),
1229
1229
  onClick: n[4] || (n[4] = (Y) => j("completeReceive")),
1230
1230
  loading: f.value === "completeReceive",
1231
1231
  disabled: f.value !== "completeReceive" && m.value
1232
1232
  }, null, 8, ["label", "loading", "disabled"])) : x("", !0),
1233
- s.canResubmit ? (S(), J(a, {
1233
+ s.canResubmit ? (S(), Z(a, {
1234
1234
  key: 4,
1235
1235
  label: i(l)("inventory.transfer.receiveRequest.actions.resubmitRequest"),
1236
1236
  onClick: n[5] || (n[5] = (Y) => j("submitRequest")),
1237
1237
  loading: f.value === "submitRequest",
1238
1238
  disabled: f.value !== "submitRequest" && m.value
1239
1239
  }, null, 8, ["label", "loading", "disabled"])) : x("", !0),
1240
- (((H = s.purchaseOrder) == null ? void 0 : H.status) === i(M).enum.REQUESTING || ((I = s.purchaseOrder) == null ? void 0 : I.status) === i(M).enum.PROCESSING) && s.canApprove ? (S(), J(a, {
1240
+ (((H = s.purchaseOrder) == null ? void 0 : H.status) === i(M).enum.REQUESTING || ((I = s.purchaseOrder) == null ? void 0 : I.status) === i(M).enum.PROCESSING) && s.canApprove ? (S(), Z(a, {
1241
1241
  key: 5,
1242
1242
  label: i(l)("inventory.transfer.approval.actions.approveRequest"),
1243
1243
  onClick: n[6] || (n[6] = (Y) => j("approveRequest")),
1244
1244
  loading: f.value === "approveRequest",
1245
1245
  disabled: f.value !== "approveRequest" && m.value
1246
1246
  }, null, 8, ["label", "loading", "disabled"])) : x("", !0),
1247
- ((z = s.purchaseOrder) == null ? void 0 : z.status) === i(M).enum.REQUESTING && s.canApprove ? (S(), J(a, {
1247
+ ((z = s.purchaseOrder) == null ? void 0 : z.status) === i(M).enum.REQUESTING && s.canApprove ? (S(), Z(a, {
1248
1248
  key: 6,
1249
1249
  label: i(l)("inventory.transfer.approval.actions.rejectRequest"),
1250
1250
  onClick: n[7] || (n[7] = (Y) => j("rejectRequest")),
@@ -1252,7 +1252,7 @@ const Xe = {
1252
1252
  disabled: f.value !== "rejectRequest" && m.value,
1253
1253
  variant: "destructive"
1254
1254
  }, null, 8, ["label", "loading", "disabled"])) : x("", !0),
1255
- ((ie = s.purchaseOrder) == null ? void 0 : ie.status) !== i(M).enum.COMPLETE && ((ce = s.purchaseOrder) == null ? void 0 : ce.status) !== i(M).enum.CANCEL && (((ue = s.purchaseOrder) == null ? void 0 : ue.status) !== i(M).enum.REQUESTING || s.canApprove) ? (S(), J(a, {
1255
+ ((ie = s.purchaseOrder) == null ? void 0 : ie.status) !== i(M).enum.COMPLETE && ((ce = s.purchaseOrder) == null ? void 0 : ce.status) !== i(M).enum.CANCEL && (((ue = s.purchaseOrder) == null ? void 0 : ue.status) !== i(M).enum.REQUESTING || s.canApprove) ? (S(), Z(a, {
1256
1256
  key: 7,
1257
1257
  label: i(l)("common.close"),
1258
1258
  variant: "tertiary",
@@ -1270,6 +1270,6 @@ export {
1270
1270
  kr as _,
1271
1271
  Dr as a,
1272
1272
  qr as b,
1273
- Je as g,
1273
+ Ze as g,
1274
1274
  Ie as u
1275
1275
  };