@feedmepos/mf-inventory-portal 1.0.34 → 1.0.35-dev.1

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 (44) hide show
  1. package/dist/{App-DanaAAaJ.js → App-C-I1uzdM.js} +2 -2
  2. package/dist/{ApprovalView-Bqv6qdoc.js → ApprovalView-Bvi2PmmM.js} +2 -2
  3. package/dist/{BindingsDialog-CblpyRBa.js → BindingsDialog-B77oTO8s.js} +2 -2
  4. package/dist/{BindingsPicker-DALWJMmv.js → BindingsPicker-DMG0X25Z.js} +1 -1
  5. package/dist/{BindingsTable-CcirTTOn.js → BindingsTable-DMVFazAV.js} +1 -1
  6. package/dist/{ClosingDraftView-CEDKZ0gS.js → ClosingDraftView-3cZPeUjJ.js} +2 -2
  7. package/dist/{ClosingTemplateView-ByU6fRGd.js → ClosingTemplateView-CIU5Igdm.js} +2 -2
  8. package/dist/{DeliveryOrderPrintPreview-BBf3xqvH.js → DeliveryOrderPrintPreview-DSMCJFBB.js} +1 -1
  9. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DPA2onx-.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BtxQnG9X.js} +3 -3
  10. package/dist/{FmMultiselectDialog-DblGo7Vj.js → FmMultiselectDialog-mYmwkcr9.js} +1 -1
  11. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-B6MVlDqv.js → FmUnitInput.vue_vue_type_script_setup_true_lang-CDO6GiZG.js} +1 -1
  12. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-D4RqtiFV.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-Cpd66W6o.js} +1 -1
  13. package/dist/{IngredientGroupView-duovT7pL.js → IngredientGroupView-DNMtWS4T.js} +2 -2
  14. package/dist/{IngredientsView-C1Ki99AP.js → IngredientsView-DB5Mx2me.js} +5 -5
  15. package/dist/{IntegrationView-CqIocxig.js → IntegrationView-Bplj6qf-.js} +5 -5
  16. package/dist/{InventoryBindingForm-D3ErxIrT.js → InventoryBindingForm-1FD0YDC_.js} +1 -1
  17. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-CNSliUel.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-Pu32-tIR.js} +3 -3
  18. package/dist/{InventoryBindingSummary-Be4zb75S.js → InventoryBindingSummary-D2QVRRUU.js} +1 -1
  19. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CbwEtWHV.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BeCDCON6.js} +1 -1
  20. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-COlcKm3m.js → PremiumBadge.vue_vue_type_script_setup_true_lang-MAXcvF6e.js} +1 -1
  21. package/dist/{PublishView-BN68Mm9O.js → PublishView-B0xvq4i2.js} +2 -2
  22. package/dist/{PurchaseOrderPrintPreview-DfgdWfB5.js → PurchaseOrderPrintPreview-C2PDfFG7.js} +43 -37
  23. package/dist/{ReceiveRequestView-CHDY1I-3.js → ReceiveRequestView-yIhJo0zp.js} +10 -10
  24. package/dist/{RecipeView-CEn4lP37.js → RecipeView-B9DE3u4o.js} +4 -4
  25. package/dist/{StockView-B4I1O_es.js → StockView-DFMsyArZ.js} +7 -7
  26. package/dist/{SupplierView-MzehcNBM.js → SupplierView-LS_YJrkv.js} +4 -4
  27. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-Dukt_sSC.js → TransferDetails.vue_vue_type_script_setup_true_lang-BSzR1SYZ.js} +82 -76
  28. package/dist/{TransferTemplateView-CzaZ3-m4.js → TransferTemplateView-DCa2ezxQ.js} +7 -7
  29. package/dist/{UnitView-BaTVD9Rm.js → UnitView-DR3t8Qot.js} +3 -3
  30. package/dist/{WarehouseView-DPBY_pZC.js → WarehouseView-Bo4Gt3qm.js} +1 -1
  31. package/dist/{app-Bmou3meA.js → app-Cc5N5DXs.js} +10 -10
  32. package/dist/app.js +1 -1
  33. package/dist/{decimal-DD8ZCMNN.js → decimal-Dakx8qYg.js} +1 -1
  34. package/dist/{feature-i9YeXbXS.js → feature-Q_VdBJOR.js} +2 -2
  35. package/dist/{format-unit-display-sQ8kjLBR.js → format-unit-display-BmjarWgT.js} +2 -2
  36. package/dist/{index-G4abqsDs.js → index-COoixJpg.js} +2 -2
  37. package/dist/{index-DpjhaRkd.js → index-Ch_vrvRc.js} +1 -6
  38. package/dist/{stock-MGN15OEK.js → stock-CsPWh4Is.js} +1 -1
  39. package/dist/style.css +1 -1
  40. package/dist/{supplier-GkEzl_8D.js → supplier-BA3YVw1v.js} +2 -2
  41. package/dist/{use-ingredient-select-dialog-N-h5Oobj.js → use-ingredient-select-dialog-CfccJXpp.js} +1 -1
  42. package/dist/{use-inventory-binding-dialog-C6r7XfBQ.js → use-inventory-binding-dialog-C8G8x5Pf.js} +1 -1
  43. package/dist/{vue-i18n-Tuzy-O30.js → vue-i18n-BRyAhhrt.js} +504 -504
  44. package/package.json +2 -2
@@ -1,14 +1,14 @@
1
- import { a2 as lt, u as de, aM as N, b as De, a7 as ct, a9 as ut, aa as dt, aN as mt, d as Qe, e as et, $ as Ve, aO as ft, a4 as Le, Q as ke, i as ie, aP as tt, ae as xe, f as Ye, h as J, D as re, av as ue, aQ as rt, aR as st, a8 as pt, at as Xe, a6 as Oe, aj as Pe, aw as yt } from "./app-Bmou3meA.js";
2
- import { ref as M, computed as Z, h as A, defineComponent as pe, reactive as vt, onMounted as nt, resolveComponent as z, openBlock as b, createBlock as ae, withCtx as se, createElementVNode as a, createVNode as I, unref as h, createElementBlock as O, toDisplayString as k, createCommentVNode as V, Fragment as te, renderList as me, watch as ht, isRef as bt, normalizeClass as Ne, createTextVNode as Ie, resolveDynamicComponent as gt } from "vue";
3
- import { F as _t } from "./decimal-DD8ZCMNN.js";
4
- import { u as qe, F as St, a as Fe } from "./feature-i9YeXbXS.js";
1
+ import { a2 as lt, u as de, aM as O, b as De, a7 as ct, a9 as ut, aa as dt, aN as mt, d as Qe, e as et, $ as Ve, aO as ft, a4 as Le, Q as ke, i as ie, aP as tt, ae as xe, f as Ye, h as J, D as re, av as ue, aQ as rt, aR as st, a8 as pt, at as Xe, a6 as Oe, aj as Pe, aw as yt } from "./app-Cc5N5DXs.js";
2
+ import { ref as M, computed as Z, h as A, defineComponent as pe, reactive as vt, onMounted as nt, resolveComponent as z, openBlock as b, createBlock as ae, withCtx as se, createElementVNode as a, createVNode as I, unref as h, createElementBlock as N, toDisplayString as k, createCommentVNode as V, Fragment as te, renderList as me, watch as ht, isRef as bt, normalizeClass as Ne, createTextVNode as Ie, resolveDynamicComponent as gt } from "vue";
3
+ import { F as _t } from "./decimal-Dakx8qYg.js";
4
+ import { u as qe, F as St, a as Fe } from "./feature-Q_VdBJOR.js";
5
5
  import { useCoreStore as Ae, useI18n as at } from "@feedmepos/mf-common";
6
- import { b as wt, u as Rt, P as fe, f as Ot } from "./format-unit-display-sQ8kjLBR.js";
6
+ import { b as wt, u as Rt, P as fe, f as Ot } from "./format-unit-display-BmjarWgT.js";
7
7
  import { E as Nt } from "./empty-placeholder-wf6-BWE8.js";
8
8
  import { useDialog as Me, useSnackbar as Te, components as Je, FmButtonVariant as ee, useProxiedModel as kt } from "@feedmepos/ui-library";
9
- import { _ as xt, F as Dt, a as qt } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-B6MVlDqv.js";
9
+ import { _ as xt, F as Dt, a as qt } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-CDO6GiZG.js";
10
10
  import { u as At, R as Ze } from "./usePromise-CbVUCxhj.js";
11
- import { u as Tt } from "./index-G4abqsDs.js";
11
+ import { u as Tt } from "./index-COoixJpg.js";
12
12
  const $e = lt((_, e) => {
13
13
  const i = de(), g = Ae();
14
14
  return {
@@ -69,7 +69,7 @@ const $e = lt((_, e) => {
69
69
  }
70
70
  };
71
71
  }), ot = {
72
- [N.enum.confirmDraft]: {
72
+ [O.enum.confirmDraft]: {
73
73
  primaryActions: {
74
74
  text: "Confirm draft",
75
75
  close: !0
@@ -78,7 +78,7 @@ const $e = lt((_, e) => {
78
78
  message: "Purchase order cannot be changed after confirm draft.",
79
79
  successMessage: "Purchase order draft has been confirmed"
80
80
  },
81
- [N.enum.cancelDraft]: {
81
+ [O.enum.cancelDraft]: {
82
82
  primaryActions: {
83
83
  text: "Cancel draft",
84
84
  close: !0,
@@ -88,7 +88,7 @@ const $e = lt((_, e) => {
88
88
  message: "Purchase order cannot be changed after cancelled draft.",
89
89
  successMessage: "Purchase order draft has been cancelled"
90
90
  },
91
- [N.enum.submitRequest]: {
91
+ [O.enum.submitRequest]: {
92
92
  primaryActions: {
93
93
  text: "Submit request",
94
94
  close: !0
@@ -97,7 +97,7 @@ const $e = lt((_, e) => {
97
97
  message: "Purchase order cannot be changed after confirm draft.",
98
98
  successMessage: "Purchase order draft has been submitted"
99
99
  },
100
- [N.enum.completeReceive]: {
100
+ [O.enum.completeReceive]: {
101
101
  primaryActions: {
102
102
  text: "Mark received",
103
103
  close: !0
@@ -106,7 +106,7 @@ const $e = lt((_, e) => {
106
106
  message: "Purchase order cannot be changed after it has complete receiving.",
107
107
  successMessage: "Purchase order has been marked as received"
108
108
  },
109
- [N.enum.approveRequest]: {
109
+ [O.enum.approveRequest]: {
110
110
  primaryActions: {
111
111
  text: "Accept request",
112
112
  close: !0
@@ -115,7 +115,7 @@ const $e = lt((_, e) => {
115
115
  message: "Transfer out request will be accepted.",
116
116
  successMessage: "Transfer out request has been approved"
117
117
  },
118
- [N.enum.rejectRequest]: {
118
+ [O.enum.rejectRequest]: {
119
119
  primaryActions: {
120
120
  text: "Reject request",
121
121
  close: !0,
@@ -125,7 +125,7 @@ const $e = lt((_, e) => {
125
125
  message: "Purchase order will be rejected.",
126
126
  successMessage: "Purchase order has been rejected"
127
127
  },
128
- [N.enum.processRequest]: {
128
+ [O.enum.processRequest]: {
129
129
  primaryActions: {
130
130
  text: "Process request",
131
131
  close: !0,
@@ -140,7 +140,7 @@ function it() {
140
140
  const _ = de(), e = $e(), i = qe();
141
141
  async function g(t, l) {
142
142
  const n = _.currentLocationDBName;
143
- return t.doc.supplier.internal && t.operation === N.enum.confirmDraft && (t.operation = N.enum.submitRequest), await e.processPurchaseOrder(t, l || n);
143
+ return t.doc.supplier.internal && t.operation === O.enum.confirmDraft && (t.operation = O.enum.submitRequest), await e.processPurchaseOrder(t, l || n);
144
144
  }
145
145
  async function d(t, l) {
146
146
  const n = _.currentLocationDBName;
@@ -298,8 +298,8 @@ function Es(_, e) {
298
298
  doc: x,
299
299
  options: (
300
300
  // auto receive for supplier to warehouse
301
- (r === N.enum.confirmDraft || // auto receive for warehouse to warehouse
302
- r === N.enum.completeReceive) && d.autoReceiveWarehouse ? {
301
+ (r === O.enum.confirmDraft || // auto receive for warehouse to warehouse
302
+ r === O.enum.completeReceive) && d.autoReceiveWarehouse ? {
303
303
  autoReceive: !0
304
304
  } : void 0
305
305
  )
@@ -313,7 +313,7 @@ function Es(_, e) {
313
313
  transferTo: R
314
314
  }), await new Promise((Y) => setTimeout(Y, 1e3));
315
315
  const W = de().currentLocationDBName.startsWith("restaurant_");
316
- r === N.enum.confirmDraft && x.effectiveAt && W ? s.open({
316
+ r === O.enum.confirmDraft && x.effectiveAt && W ? s.open({
317
317
  title: "Success",
318
318
  message: `${m}. The backdate will be reflected once your POS has received this change.`,
319
319
  type: "success"
@@ -476,47 +476,47 @@ const be = {
476
476
  submitRequest: {
477
477
  translationKey: "inventory.transfer.receiveRequest.actions.submitRequest",
478
478
  color: "text-fm-color-typo-primary",
479
- value: N.enum.submitRequest
479
+ value: O.enum.submitRequest
480
480
  },
481
481
  confirmDraft: {
482
482
  translationKey: "inventory.transfer.receiveRequest.actions.confirmDraft",
483
483
  color: "text-fm-color-typo-primary",
484
- value: N.enum.confirmDraft
484
+ value: O.enum.confirmDraft
485
485
  },
486
486
  cancelDraft: {
487
487
  translationKey: "inventory.transfer.receiveRequest.actions.cancelDraft",
488
488
  color: "text-fm-color-typo-error",
489
- value: N.enum.cancelDraft
489
+ value: O.enum.cancelDraft
490
490
  },
491
491
  approveRequest: {
492
492
  translationKey: "inventory.transfer.receiveRequest.actions.approveRequest",
493
493
  color: "text-fm-color-typo-primary",
494
- value: N.enum.approveRequest
494
+ value: O.enum.approveRequest
495
495
  },
496
496
  rejectRequest: {
497
497
  translationKey: "inventory.transfer.receiveRequest.actions.rejectRequest",
498
498
  color: "text-fm-color-typo-error",
499
- value: N.enum.rejectRequest
499
+ value: O.enum.rejectRequest
500
500
  },
501
501
  processRequest: {
502
502
  translationKey: "inventory.transfer.receiveRequest.actions.processRequest",
503
503
  color: "text-fm-color-typo-primary",
504
- value: N.enum.processRequest
504
+ value: O.enum.processRequest
505
505
  },
506
506
  receiveStock: {
507
507
  translationKey: "inventory.transfer.receiveRequest.actions.receiveStock",
508
508
  color: "text-fm-color-typo-primary",
509
- value: N.enum.receiveStock
509
+ value: O.enum.receiveStock
510
510
  },
511
511
  completeReceive: {
512
512
  translationKey: "inventory.transfer.receiveRequest.actions.completeReceive",
513
513
  color: "text-fm-color-typo-primary",
514
- value: N.enum.completeReceive
514
+ value: O.enum.completeReceive
515
515
  },
516
516
  closeRequest: {
517
517
  translationKey: "inventory.transfer.receiveRequest.actions.closeRequest",
518
518
  color: "system-error-300",
519
- value: N.enum.closeRequest
519
+ value: O.enum.closeRequest
520
520
  },
521
521
  approveDraft: {
522
522
  translationKey: "",
@@ -531,7 +531,7 @@ const be = {
531
531
  returnStock: {
532
532
  translationKey: "inventory.transfer.receiveRequest.actions.returnStock",
533
533
  color: "text-fm-color-typo-primary",
534
- value: N.enum.returnStock
534
+ value: O.enum.returnStock
535
535
  }
536
536
  };
537
537
  function Ls(_, e) {
@@ -542,19 +542,19 @@ function Ls(_, e) {
542
542
  return [
543
543
  re[J.Update],
544
544
  re[J.Details],
545
- c.supplier.internal === "restaurant" || c.supplier.internal === "warehouse" ? be[N.enum.submitRequest] : be[N.enum.confirmDraft],
546
- be[N.enum.cancelDraft]
545
+ c.supplier.internal === "restaurant" || c.supplier.internal === "warehouse" ? be[O.enum.submitRequest] : be[O.enum.confirmDraft],
546
+ be[O.enum.cancelDraft]
547
547
  ];
548
548
  case "RECEIVING":
549
549
  return [
550
- be[N.enum.completeReceive],
550
+ be[O.enum.completeReceive],
551
551
  re[J.Details],
552
552
  re[J.Print]
553
553
  ];
554
554
  case "REQUESTING":
555
555
  return _ === "receive/request" ? [re[J.Details], re[J.Print]] : [
556
- be[N.enum.approveRequest],
557
- be[N.enum.rejectRequest],
556
+ be[O.enum.approveRequest],
557
+ be[O.enum.rejectRequest],
558
558
  re[J.Details]
559
559
  // DefaultRowActions[RowActionEnum.Print]
560
560
  ];
@@ -567,7 +567,7 @@ function Ls(_, e) {
567
567
  }
568
568
  }
569
569
  function n(c) {
570
- return Object.values(N.enum).includes(c);
570
+ return Object.values(O.enum).includes(c);
571
571
  }
572
572
  async function s(c, u, o) {
573
573
  var D, q, j, T, F, K;
@@ -1104,7 +1104,7 @@ const Lt = { class: "flex flex-row-reverse" }, Ut = /* @__PURE__ */ pe({
1104
1104
  }
1105
1105
  return (n, s) => {
1106
1106
  const y = z("FmButton");
1107
- return b(), O("div", Lt, [
1107
+ return b(), N("div", Lt, [
1108
1108
  I(y, {
1109
1109
  "prepend-icon": "sync",
1110
1110
  variant: "secondary",
@@ -1171,28 +1171,28 @@ const Lt = { class: "flex flex-row-reverse" }, Ut = /* @__PURE__ */ pe({
1171
1171
  });
1172
1172
  return (s, y) => {
1173
1173
  var S, f, c, u, o, v, D, q, j, T, F, K, G, le, oe, ye;
1174
- return h(i).isEnabled ? (b(), O("div", Vt, [
1174
+ return h(i).isEnabled ? (b(), N("div", Vt, [
1175
1175
  a("div", Mt, [
1176
1176
  y[0] || (y[0] = a("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, "NetSuite subsidiary", -1)),
1177
1177
  a("div", jt, k(t.value || "N/A"), 1)
1178
1178
  ]),
1179
- !s.isTransferBetweenOutlets && s.scope === h(Ue).RECEIVE_REQUEST ? (b(), O("div", Kt, [
1179
+ !s.isTransferBetweenOutlets && s.scope === h(Ue).RECEIVE_REQUEST ? (b(), N("div", Kt, [
1180
1180
  a("div", zt, " NetSuite " + k((f = (S = s.purchaseOrder) == null ? void 0 : S.netSuite) != null && f.recordType ? h(rt)((u = (c = s.purchaseOrder) == null ? void 0 : c.netSuite) == null ? void 0 : u.recordType) : s.transferType === h(fe).PURCHASE ? "Purchase Order" : "Transfer Order") + " (ID) ", 1),
1181
1181
  a("div", Ht, [
1182
- (v = (o = s.purchaseOrder) == null ? void 0 : o.netSuite) != null && v.id ? (b(), O("span", Gt, k((q = (D = s.purchaseOrder) == null ? void 0 : D.netSuite) == null ? void 0 : q.refNo) + " (" + k((T = (j = s.purchaseOrder) == null ? void 0 : j.netSuite) == null ? void 0 : T.id) + ") ", 1)) : (b(), O("span", Wt, "N/A"))
1182
+ (v = (o = s.purchaseOrder) == null ? void 0 : o.netSuite) != null && v.id ? (b(), N("span", Gt, k((q = (D = s.purchaseOrder) == null ? void 0 : D.netSuite) == null ? void 0 : q.refNo) + " (" + k((T = (j = s.purchaseOrder) == null ? void 0 : j.netSuite) == null ? void 0 : T.id) + ") ", 1)) : (b(), N("span", Wt, "N/A"))
1183
1183
  ])
1184
1184
  ])) : V("", !0),
1185
- !s.isTransferBetweenOutlets && d.value || s.scope === h(Ue).APPROVAL ? (b(), O("div", Qt, [
1185
+ !s.isTransferBetweenOutlets && d.value || s.scope === h(Ue).APPROVAL ? (b(), N("div", Qt, [
1186
1186
  a("div", Yt, " (Request) NetSuite " + k(s.transferType === h(fe).PURCHASE ? "Purchase Order" : "Transfer Order") + " (ID) ", 1),
1187
1187
  a("div", Xt, [
1188
- (K = (F = d.value) == null ? void 0 : F.netSuite) != null && K.id ? (b(), O("span", Jt, k((le = (G = d.value) == null ? void 0 : G.netSuite) == null ? void 0 : le.refNo) + " (" + k((ye = (oe = d.value) == null ? void 0 : oe.netSuite) == null ? void 0 : ye.id) + ") ", 1)) : (b(), O("span", Zt, "N/A"))
1188
+ (K = (F = d.value) == null ? void 0 : F.netSuite) != null && K.id ? (b(), N("span", Jt, k((le = (G = d.value) == null ? void 0 : G.netSuite) == null ? void 0 : le.refNo) + " (" + k((ye = (oe = d.value) == null ? void 0 : oe.netSuite) == null ? void 0 : ye.id) + ") ", 1)) : (b(), N("span", Zt, "N/A"))
1189
1189
  ])
1190
1190
  ])) : V("", !0),
1191
- l.value ? (b(), O("div", er, [
1191
+ l.value ? (b(), N("div", er, [
1192
1192
  y[1] || (y[1] = a("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " NetSuite Transaction Number ", -1)),
1193
1193
  a("div", tr, k(l.value), 1)
1194
1194
  ])) : V("", !0),
1195
- h(i).isEnabled && s.transferType === h(fe).TRANSFER && !s.isTransferBetweenOutlets ? (b(), O("div", rr, [
1195
+ h(i).isEnabled && s.transferType === h(fe).TRANSFER && !s.isTransferBetweenOutlets ? (b(), N("div", rr, [
1196
1196
  y[2] || (y[2] = a("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " NetSuite fulfillment IDs ", -1)),
1197
1197
  a("div", sr, k(n.value), 1)
1198
1198
  ])) : V("", !0)
@@ -1224,7 +1224,7 @@ const Lt = { class: "flex flex-row-reverse" }, Ut = /* @__PURE__ */ pe({
1224
1224
  }
1225
1225
  return (d, t) => {
1226
1226
  const l = z("FmButton");
1227
- return b(), O("div", ar, [
1227
+ return b(), N("div", ar, [
1228
1228
  I(l, {
1229
1229
  "prepend-icon": "history",
1230
1230
  variant: "secondary",
@@ -1267,7 +1267,7 @@ const Lt = { class: "flex flex-row-reverse" }, Ut = /* @__PURE__ */ pe({
1267
1267
  }
1268
1268
  return (y, S) => {
1269
1269
  const f = z("FmButton"), c = z("FmLabel"), u = z("FmDialog");
1270
- return b(), O("div", ir, [
1270
+ return b(), N("div", ir, [
1271
1271
  I(u, {
1272
1272
  modelValue: g.value,
1273
1273
  "onUpdate:modelValue": S[2] || (S[2] = (o) => g.value = o),
@@ -1297,8 +1297,8 @@ const Lt = { class: "flex flex-row-reverse" }, Ut = /* @__PURE__ */ pe({
1297
1297
  })
1298
1298
  ]),
1299
1299
  default: se(() => [
1300
- t.value ? (b(), O("div", lr, "Loading...")) : (b(), O("div", cr, [
1301
- l.value ? (b(), O("p", fr, "Something went wrong.")) : (b(!0), O(te, { key: 0 }, me(n.value, (o, v) => (b(), O("div", {
1300
+ t.value ? (b(), N("div", lr, "Loading...")) : (b(), N("div", cr, [
1301
+ l.value ? (b(), N("p", fr, "Something went wrong.")) : (b(!0), N(te, { key: 0 }, me(n.value, (o, v) => (b(), N("div", {
1302
1302
  key: v,
1303
1303
  class: "mb-2"
1304
1304
  }, [
@@ -1307,7 +1307,7 @@ const Lt = { class: "flex flex-row-reverse" }, Ut = /* @__PURE__ */ pe({
1307
1307
  label: h(Ve)(v)
1308
1308
  }, null, 8, ["label"]),
1309
1309
  a("div", ur, [
1310
- Array.isArray(o) ? (b(), O("span", dr, k(o.length > 0 ? o.join(", ") : "N/A"), 1)) : (b(), O("span", mr, k(o), 1))
1310
+ Array.isArray(o) ? (b(), N("span", dr, k(o.length > 0 ? o.join(", ") : "N/A"), 1)) : (b(), N("span", mr, k(o), 1))
1311
1311
  ])
1312
1312
  ])
1313
1313
  ]))), 128))
@@ -1339,7 +1339,7 @@ const Lt = { class: "flex flex-row-reverse" }, Ut = /* @__PURE__ */ pe({
1339
1339
  return (t, l) => {
1340
1340
  var s, y, S, f, c, u, o, v, D, q, j, T;
1341
1341
  const n = z("FmMenuDivider");
1342
- return h(i).isNetSuiteEnabled && d.value ? (b(), O("div", yr, [
1342
+ return h(i).isNetSuiteEnabled && d.value ? (b(), N("div", yr, [
1343
1343
  a("div", vr, [
1344
1344
  l[0] || (l[0] = a("span", { class: "flex-1 fm-typo-en-body-lg-600" }, "NetSuite Info", -1)),
1345
1345
  a("div", hr, [
@@ -1467,18 +1467,18 @@ const Lt = { class: "flex flex-row-reverse" }, Ut = /* @__PURE__ */ pe({
1467
1467
  (w) => (
1468
1468
  // TODO: create receiveStock & processRequest dialog
1469
1469
  // to create their payload
1470
- w !== N.enum.receiveStock && w !== N.enum.processRequest && w !== N.enum.closeRequest
1470
+ w !== O.enum.receiveStock && w !== O.enum.processRequest && w !== O.enum.closeRequest
1471
1471
  )
1472
1472
  )) : R = Fe.getAvailableActions({
1473
1473
  ...m,
1474
1474
  orderConfig: r.data
1475
1475
  }).actions.filter(
1476
- (w) => w !== N.enum.receiveStock && w !== N.enum.processRequest && w !== N.enum.closeRequest
1476
+ (w) => w !== O.enum.receiveStock && w !== O.enum.processRequest && w !== O.enum.closeRequest
1477
1477
  );
1478
1478
  } catch (w) {
1479
1479
  console.error("Error getting available actions:", w);
1480
1480
  }
1481
- return i.scope === "approval" && (R = R.filter((w) => w !== N.enum.completeReceive)), R;
1481
+ return i.scope === "approval" && (R = R.filter((w) => w !== O.enum.completeReceive)), R;
1482
1482
  }), F = kt(i, "show"), K = Z(() => [
1483
1483
  {
1484
1484
  label: f("inventory.transfer.receiveRequest.details.overview"),
@@ -1506,7 +1506,7 @@ const Lt = { class: "flex flex-row-reverse" }, Ut = /* @__PURE__ */ pe({
1506
1506
  }).onPrimary(async () => {
1507
1507
  var C, B, H, E;
1508
1508
  const p = [];
1509
- R === N.enum.approveRequest ? (p.push({
1509
+ R === O.enum.approveRequest ? (p.push({
1510
1510
  action: "approveRequest",
1511
1511
  payload: null
1512
1512
  }), m.fulfillment && p.push({
@@ -1518,7 +1518,7 @@ const Lt = { class: "flex flex-row-reverse" }, Ut = /* @__PURE__ */ pe({
1518
1518
  items: m.fulfillment.items,
1519
1519
  createdBy: y.value
1520
1520
  }
1521
- })) : R === N.enum.processRequest && m.fulfillment && p.push({
1521
+ })) : R === O.enum.processRequest ? m.fulfillment && p.push({
1522
1522
  action: "processRequest",
1523
1523
  payload: {
1524
1524
  fulfillmentId: "",
@@ -1527,6 +1527,12 @@ const Lt = { class: "flex flex-row-reverse" }, Ut = /* @__PURE__ */ pe({
1527
1527
  items: m.fulfillment.items,
1528
1528
  createdBy: y.value
1529
1529
  }
1530
+ }) : R === O.enum.rejectRequest ? p.push({
1531
+ action: "rejectRequest",
1532
+ payload: null
1533
+ }) : R === O.enum.closeRequest && p.push({
1534
+ action: "closeRequest",
1535
+ payload: null
1530
1536
  });
1531
1537
  try {
1532
1538
  await j({
@@ -1557,7 +1563,7 @@ const Lt = { class: "flex flex-row-reverse" }, Ut = /* @__PURE__ */ pe({
1557
1563
  }
1558
1564
  async function oe(r) {
1559
1565
  var w, $, W, Y;
1560
- if (r === N.enum.receiveStock)
1566
+ if (r === O.enum.receiveStock)
1561
1567
  return;
1562
1568
  const m = ot[r];
1563
1569
  if (!m) {
@@ -1573,10 +1579,10 @@ const Lt = { class: "flex flex-row-reverse" }, Ut = /* @__PURE__ */ pe({
1573
1579
  o.value = `${r}`, u.value = !0, v.value = !1;
1574
1580
  const p = {};
1575
1581
  let C = 0;
1576
- if ((r === N.enum.confirmDraft || // auto receive for warehouse to warehouse
1577
- r === N.enum.completeReceive) && l.autoReceiveWarehouse)
1582
+ if ((r === O.enum.confirmDraft || // auto receive for warehouse to warehouse
1583
+ r === O.enum.completeReceive) && l.autoReceiveWarehouse)
1578
1584
  p.autoReceive = !0;
1579
- else if ((r === N.enum.approveRequest || r === N.enum.processRequest) && l.acceptRequireFulfillment) {
1585
+ else if ((r === O.enum.approveRequest || r === O.enum.processRequest) && l.acceptRequireFulfillment) {
1580
1586
  const B = ($ = (w = i.poRequest) == null ? void 0 : w.from) == null ? void 0 : $.dbName, H = (Y = (W = i.poRequest) == null ? void 0 : W.to) == null ? void 0 : Y.dbName;
1581
1587
  if (B && H && (B.startsWith("warehouse_") || H.startsWith("warehouse_"))) {
1582
1588
  const E = await new Promise((X, L) => {
@@ -1916,7 +1922,7 @@ const Lt = { class: "flex flex-row-reverse" }, Ut = /* @__PURE__ */ pe({
1916
1922
  "onUpdate:modelValue": m[0] || (m[0] = (U) => G.value = U)
1917
1923
  }, null, 8, ["items", "modelValue"])
1918
1924
  ]),
1919
- G.value.value === "overview" ? (b(), O(te, { key: 0 }, [
1925
+ G.value.value === "overview" ? (b(), N(te, { key: 0 }, [
1920
1926
  a("div", null, [
1921
1927
  I(W, {
1922
1928
  variant: "outlined",
@@ -1943,7 +1949,7 @@ const Lt = { class: "flex flex-row-reverse" }, Ut = /* @__PURE__ */ pe({
1943
1949
  ]),
1944
1950
  a("div", xr, k(h(xe)(((ve = r.purchaseOrder) == null ? void 0 : ve._id) ?? "")), 1)
1945
1951
  ]),
1946
- (he = r.purchaseOrder) != null && he.effectiveAt ? (b(), O("div", Dr, [
1952
+ (he = r.purchaseOrder) != null && he.effectiveAt ? (b(), N("div", Dr, [
1947
1953
  a("div", qr, k(h(f)("inventory.transfer.receiveRequest.details.backdatedTo")), 1),
1948
1954
  a("div", Ar, k(h(tt)(new Date((Re = r.purchaseOrder) == null ? void 0 : Re.effectiveAt))), 1)
1949
1955
  ])) : V("", !0),
@@ -1953,19 +1959,19 @@ const Lt = { class: "flex flex-row-reverse" }, Ut = /* @__PURE__ */ pe({
1953
1959
  `inventory.transfer.receiveRequest.details.type.${c.value.toLocaleLowerCase("en-US")}`
1954
1960
  )), 1)
1955
1961
  ]),
1956
- (Ke = (je = r.purchaseOrder) == null ? void 0 : je.supplier) != null && Ke.name ? (b(), O("div", Pr, [
1962
+ (Ke = (je = r.purchaseOrder) == null ? void 0 : je.supplier) != null && Ke.name ? (b(), N("div", Pr, [
1957
1963
  a("div", Ir, k(h(f)("inventory.transfer.receiveRequest.details.from")), 1),
1958
1964
  a("div", Fr, k((He = (ze = r.purchaseOrder) == null ? void 0 : ze.supplier) == null ? void 0 : He.name), 1)
1959
1965
  ])) : V("", !0),
1960
- r.transferTo ? (b(), O("div", Br, [
1966
+ r.transferTo ? (b(), N("div", Br, [
1961
1967
  a("div", Er, k(h(f)("inventory.transfer.receiveRequest.details.to")), 1),
1962
1968
  a("div", Lr, k(r.transferTo), 1)
1963
1969
  ])) : V("", !0),
1964
- (Ge = r.purchaseOrder) != null && Ge.ref ? (b(), O("div", Ur, [
1970
+ (Ge = r.purchaseOrder) != null && Ge.ref ? (b(), N("div", Ur, [
1965
1971
  a("div", Vr, k(h(f)("inventory.transfer.receiveRequest.details.reference")), 1),
1966
1972
  a("div", Mr, k(r.purchaseOrder.ref), 1)
1967
1973
  ])) : V("", !0),
1968
- (We = r.purchaseOrder) != null && We.remark ? (b(), O("div", jr, [
1974
+ (We = r.purchaseOrder) != null && We.remark ? (b(), N("div", jr, [
1969
1975
  a("div", Kr, k(h(f)("inventory.transfer.receiveRequest.details.remark")), 1),
1970
1976
  a("div", zr, k(r.purchaseOrder.remark), 1)
1971
1977
  ])) : V("", !0)
@@ -1997,7 +2003,7 @@ const Lt = { class: "flex flex-row-reverse" }, Ut = /* @__PURE__ */ pe({
1997
2003
  var U, P;
1998
2004
  return [
1999
2005
  a("div", Yr, [
2000
- (b(!0), O(te, null, me((P = (U = r.purchaseOrder) == null ? void 0 : U.netSuite) == null ? void 0 : P.missingItems, (Q, ve) => (b(), O("div", {
2006
+ (b(!0), N(te, null, me((P = (U = r.purchaseOrder) == null ? void 0 : U.netSuite) == null ? void 0 : P.missingItems, (Q, ve) => (b(), N("div", {
2001
2007
  class: "flex justify-center align-middle",
2002
2008
  key: ve
2003
2009
  }, [
@@ -2022,9 +2028,9 @@ const Lt = { class: "flex flex-row-reverse" }, Ut = /* @__PURE__ */ pe({
2022
2028
  ])
2023
2029
  ]),
2024
2030
  I($),
2025
- (b(!0), O(te, null, me(((Se = r.purchaseOrder) == null ? void 0 : Se.items) ?? [], (U) => {
2031
+ (b(!0), N(te, null, me(((Se = r.purchaseOrder) == null ? void 0 : Se.items) ?? [], (U) => {
2026
2032
  var P;
2027
- return b(), O("div", {
2033
+ return b(), N("div", {
2028
2034
  key: U.code,
2029
2035
  class: "flex flex-col"
2030
2036
  }, [
@@ -2034,11 +2040,11 @@ const Lt = { class: "flex flex-row-reverse" }, Ut = /* @__PURE__ */ pe({
2034
2040
  ]),
2035
2041
  a("div", es, [
2036
2042
  a("div", ts, k(U.code), 1),
2037
- (P = U.totalCost) != null && P.amount && h(l).enableTotalCost ? (b(), O("div", rs, " (" + k(h(Oe)(U.totalCost)) + ") ", 1)) : V("", !0)
2043
+ (P = U.totalCost) != null && P.amount && h(l).enableTotalCost ? (b(), N("div", rs, " (" + k(h(Oe)(U.totalCost)) + ") ", 1)) : V("", !0)
2038
2044
  ])
2039
2045
  ]);
2040
2046
  }), 128)),
2041
- +h(ie)(x.value) ? (b(), O(te, { key: 0 }, [
2047
+ +h(ie)(x.value) ? (b(), N(te, { key: 0 }, [
2042
2048
  a("div", ss, [
2043
2049
  I($)
2044
2050
  ]),
@@ -2049,9 +2055,9 @@ const Lt = { class: "flex flex-row-reverse" }, Ut = /* @__PURE__ */ pe({
2049
2055
  ], 64)) : V("", !0)
2050
2056
  ])
2051
2057
  ])
2052
- ], 64)) : G.value.value === "deliveryHistory" ? (b(), O("div", os, [
2053
- ce.value.length ? (b(), O("div", ds, [
2054
- (b(!0), O(te, null, me(ce.value, (U, P) => (b(), O(te, { key: P }, [
2058
+ ], 64)) : G.value.value === "deliveryHistory" ? (b(), N("div", os, [
2059
+ ce.value.length ? (b(), N("div", ds, [
2060
+ (b(!0), N(te, null, me(ce.value, (U, P) => (b(), N(te, { key: P }, [
2055
2061
  a("div", ms, [
2056
2062
  a("div", fs, [
2057
2063
  a("div", ps, [
@@ -2104,17 +2110,17 @@ const Lt = { class: "flex flex-row-reverse" }, Ut = /* @__PURE__ */ pe({
2104
2110
  }, {
2105
2111
  default: se(() => [
2106
2112
  a("div", Rs, [
2107
- (b(!0), O(te, null, me(U.info, (Q, ve) => (b(), O("div", {
2113
+ (b(!0), N(te, null, me(U.info, (Q, ve) => (b(), N("div", {
2108
2114
  key: ve,
2109
2115
  class: "flex flex-col gap-4"
2110
2116
  }, [
2111
2117
  a("div", Os, k(Q == null ? void 0 : Q.label), 1),
2112
2118
  a("div", Ns, [
2113
- (b(!0), O(te, null, me(Q == null ? void 0 : Q.values, (he, Re) => (b(), O("div", {
2119
+ (b(!0), N(te, null, me(Q == null ? void 0 : Q.values, (he, Re) => (b(), N("div", {
2114
2120
  key: Re,
2115
2121
  class: "fm-typo-en-body-lg-600"
2116
2122
  }, [
2117
- typeof he == "string" ? (b(), O(te, { key: 0 }, [
2123
+ typeof he == "string" ? (b(), N(te, { key: 0 }, [
2118
2124
  Ie(k(he), 1)
2119
2125
  ], 64)) : (b(), ae(gt(he), { key: 1 }))
2120
2126
  ]))), 128))
@@ -2127,7 +2133,7 @@ const Lt = { class: "flex flex-row-reverse" }, Ut = /* @__PURE__ */ pe({
2127
2133
  ])
2128
2134
  ])
2129
2135
  ], 64))), 128))
2130
- ])) : (b(), O("div", is, [
2136
+ ])) : (b(), N("div", is, [
2131
2137
  I(C),
2132
2138
  a("div", null, [
2133
2139
  a("img", {
@@ -2146,7 +2152,7 @@ const Lt = { class: "flex flex-row-reverse" }, Ut = /* @__PURE__ */ pe({
2146
2152
  }),
2147
2153
  "side-sheet-footer": se(() => [
2148
2154
  a("div", ks, [
2149
- (b(!0), O(te, null, me(T.value, (L) => (b(), O(te, null, [
2155
+ (b(!0), N(te, null, me(T.value, (L) => (b(), N(te, null, [
2150
2156
  h(Ee)[L].available != !1 ? (b(), ae(B, {
2151
2157
  key: L,
2152
2158
  label: h(f)(h(Ee)[L].translationKey),
@@ -1,14 +1,14 @@
1
1
  import { defineComponent as ae, onMounted as Te, computed as E, ref as Y, watch as Ce, inject as ot, resolveComponent as V, openBlock as M, createElementBlock as N, createElementVNode as e, createVNode as m, withCtx as P, renderSlot as xe, withDirectives as Ue, normalizeClass as re, vModelText as Be, reactive as st, h as j, toDisplayString as I, unref as t, createCommentVNode as oe, Fragment as pe, normalizeStyle as _e, renderList as je, createBlock as le, mergeProps as Qe, createTextVNode as ne, mergeModels as qe, useModel as lt, isRef as Ye, Teleport as nt, normalizeProps as at, guardReactiveProps as rt } from "vue";
2
- import { J as We, aD as he, t as Ne, I as it, aE as ut, aF as dt, i as se, aG as mt, b as Ge, a as Ke, P as Ee, l as ke, X as be, Q as ye, A as we, M as pt, E as ee, u as Je, ah as ct, $ as ft, C as Xe, d as ue, aH as ve, ae as yt, r as vt, a6 as bt, z as gt, h as Le, _ as ht, B as xt } from "./app-Bmou3meA.js";
2
+ import { J as We, aD as he, t as Ne, I as it, aE as ut, aF as dt, i as se, aG as mt, b as Ge, a as Ke, P as Ee, l as ke, X as be, Q as ye, A as we, M as pt, E as ee, u as Je, ah as ct, $ as ft, C as Xe, d as ue, aH as ve, ae as yt, r as vt, a6 as bt, z as gt, h as Le, _ as ht, B as xt } from "./app-Cc5N5DXs.js";
3
3
  import { useI18n as me } from "@feedmepos/mf-common";
4
- import { P as Z, a as _t, f as kt, t as wt, b as ze, u as Tt } from "./format-unit-display-sQ8kjLBR.js";
4
+ import { P as Z, a as _t, f as kt, t as wt, b as ze, u as Tt } from "./format-unit-display-BmjarWgT.js";
5
5
  import { components as de, useSnackbar as Ct, useProxiedModel as Ze, useBreakpoints as Ft } from "@feedmepos/ui-library";
6
6
  import { defineStore as St, storeToRefs as He } from "pinia";
7
- import { _ as It, b as $t, F as Mt, a as Ot } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-B6MVlDqv.js";
8
- import { u as ge } from "./feature-i9YeXbXS.js";
9
- import { c as Dt, u as Vt, _ as At } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DPA2onx-.js";
10
- import { u as Rt } from "./supplier-GkEzl_8D.js";
11
- import { u as Pt } from "./use-ingredient-select-dialog-N-h5Oobj.js";
7
+ import { _ as It, b as $t, F as Mt, a as Ot } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-CDO6GiZG.js";
8
+ import { u as ge } from "./feature-Q_VdBJOR.js";
9
+ import { c as Dt, u as Vt, _ as At } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BtxQnG9X.js";
10
+ import { u as Rt } from "./supplier-BA3YVw1v.js";
11
+ import { u as Pt } from "./use-ingredient-select-dialog-CfccJXpp.js";
12
12
  const Ut = { class: "flex flex-col" }, Bt = { class: "flex flex-col" }, qt = { class: "flex-1" }, Nt = { class: "flex items-center" }, Et = { class: "flex-1" }, Lt = { class: "flex-1" }, zt = /* @__PURE__ */ ae({
13
13
  __name: "FmMinMaxInput",
14
14
  props: {
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as K, computed as b, openBlock as v, createElementBlock as w, createElementVNode as s, Fragment as q, renderList as H, toDisplayString as V, createCommentVNode as Y, ref as R, watch as ee, resolveComponent as I, createBlock as T, withCtx as A, createVNode as f, unref as l, isRef as te, normalizeClass as ie, normalizeStyle as ue, Teleport as de, normalizeProps as me, guardReactiveProps as ce } from "vue";
2
- import { a as G, d as U, S as pe, f as ve, D as ne, h as L, e as se, P as fe, l as j, A as ye, i as J, Q as be, T as ge, p as oe, u as xe, b as _e, z as he, _ as Ve, B as Ue, C as we, E as Ce } from "./app-Bmou3meA.js";
2
+ import { a as G, d as U, S as pe, f as ve, D as ne, h as L, e as se, P as fe, l as j, A as ye, i as J, Q as be, T as ge, p as oe, u as xe, b as _e, z as he, _ as Ve, B as Ue, C as we, E as Ce } from "./app-Cc5N5DXs.js";
3
3
  import { useDialog as Se, useSnackbar as ae, useProxiedModel as le, useBreakpoints as ke } from "@feedmepos/ui-library";
4
4
  import { i as Fe, _ as Ee } from "./is-linked-ingredient-error-fJ2TJb3z.js";
5
5
  import { defineStore as $e, storeToRefs as Ie } from "pinia";
6
6
  import { useI18n as O } from "@feedmepos/mf-common";
7
- import { F as De } from "./decimal-DD8ZCMNN.js";
8
- import { _ as Ae } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CbwEtWHV.js";
7
+ import { F as De } from "./decimal-Dakx8qYg.js";
8
+ import { _ as Ae } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BeCDCON6.js";
9
9
  const Re = { class: "flex flex-col gap-8" }, Me = {
10
10
  key: 0,
11
11
  class: "flex flex-col"
@@ -1,5 +1,5 @@
1
1
  import { ref as W, defineComponent as I, watch as ee, onMounted as te, onUnmounted as Fe, openBlock as R, createElementBlock as q, toRaw as ge, reactive as $e, createElementVNode as g, toDisplayString as T, unref as c, createVNode as _, resolveComponent as N, createSlots as Se, withCtx as B, createTextVNode as We, renderSlot as De, createBlock as z, createCommentVNode as Ae, computed as x, isRef as we, normalizeClass as Pe, normalizeStyle as Re } from "vue";
2
- import { a2 as Ue, aq as Ee, ar as Te, f as Le, D as Ve, h as Q, e as G, as as Ne, ai as Be, l as L, d as E, S as qe, u as ze, z as Ie, _ as je, B as Oe, C as Ge, E as X } from "./app-Bmou3meA.js";
2
+ import { a2 as Ue, aq as Ee, ar as Te, f as Le, D as Ve, h as Q, e as G, as as Ne, ai as Be, l as L, d as E, S as qe, u as ze, z as Ie, _ as je, B as Oe, C as Ge, E as X } from "./app-Cc5N5DXs.js";
3
3
  import { useCoreStore as Me, useI18n as j } from "@feedmepos/mf-common";
4
4
  import { useDialogChild as Ke, useDialog as Ce, useSnackbar as ae, useProxiedModel as oe, useBreakpoints as He } from "@feedmepos/ui-library";
5
5
  import { c as le, u as se } from "./googlemap-Dm8ERVai.js";