@feedmepos/mf-inventory-portal 1.2.5-dev.1 → 1.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/dist/{App-plHMDZk7.js → App-BkpSG-20.js} +1 -1
  2. package/dist/{ApprovalView-CChHxp4X.js → ApprovalView-B7GuyNL8.js} +49 -50
  3. package/dist/{BindingsDialog-CU-u0hJx.js → BindingsDialog-DU7WwMQQ.js} +2 -2
  4. package/dist/{BindingsPicker-BpbNVNQQ.js → BindingsPicker-DoikTRt9.js} +1 -1
  5. package/dist/{BindingsTable-v1QcskCd.js → BindingsTable-CR_HLrBt.js} +1 -1
  6. package/dist/ClosingDraftView-B-zuhr0m.js +1739 -0
  7. package/dist/{ClosingTemplateView-ancesrdQ.js → ClosingTemplateView-BXnzvooK.js} +2 -2
  8. package/dist/{DeliveryOrderPrintPreview-DLSzR6HB.js → DeliveryOrderPrintPreview-BGii4E5k.js} +8 -8
  9. package/dist/{FmAdminBadge-Cb9aT29U.js → FmAdminBadge-C7SFFAsw.js} +1 -1
  10. package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CLSMS6lS.js +227 -0
  11. package/dist/{FmMultiselectDialog-SoaYz3_K.js → FmMultiselectDialog-DxrZDApl.js} +1 -1
  12. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-D5k7Xk3M.js → FmUnitInput.vue_vue_type_script_setup_true_lang-CG8hJ9BY.js} +15 -15
  13. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-NY7TPnoY.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-CaW3WMvN.js} +1 -1
  14. package/dist/{IngredientGroupView-DmbPHuWG.js → IngredientGroupView-CZXIEHF9.js} +2 -2
  15. package/dist/{IngredientsView-Bxb_BeyP.js → IngredientsView-BsD9bz4s.js} +61 -71
  16. package/dist/{IntegrationView-B8mnGO1_.js → IntegrationView-BwZLCHKQ.js} +84 -84
  17. package/dist/{InventoryBindingForm-B2tlc3uk.js → InventoryBindingForm-D1DjZ8GU.js} +1 -1
  18. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-C-qi9Mri.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-977ZTGqB.js} +3 -3
  19. package/dist/{InventoryBindingSummary-BUkLwuPN.js → InventoryBindingSummary-DzTHC4EA.js} +1 -1
  20. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-4W5T_8W7.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CVjIweiD.js} +1 -1
  21. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-DCtPbVFp.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BOynbtg3.js} +7 -7
  22. package/dist/{PublishView-Dkq9VZOG.js → PublishView-Qpnsfl9u.js} +7 -7
  23. package/dist/{PurchaseOrderPrintPreview-C-jyn09w.js → PurchaseOrderPrintPreview-Cu0Huq0q.js} +8 -8
  24. package/dist/{ReceiveRequestView-V4YNI_Jd.js → ReceiveRequestView-4-0jJ5tI.js} +79 -82
  25. package/dist/{RecipeView-Ck3RZRhC.js → RecipeView-CkzCMbst.js} +3 -3
  26. package/dist/{StockView-nstUyEXe.js → StockView-C2GZw_2q.js} +7 -7
  27. package/dist/{SupplierView-eXyZsmHQ.js → SupplierView-BMBCSjIF.js} +831 -862
  28. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-CNfrMUvj.js +2494 -0
  29. package/dist/{TransferTemplateView-DZG_UCWg.js → TransferTemplateView-BpGi9pYo.js} +57 -57
  30. package/dist/{UnitView-COiitpcS.js → UnitView-CyelRDgW.js} +3 -3
  31. package/dist/WarehouseView-CB1LmtPm.js +1034 -0
  32. package/dist/api/inventory.d.ts +0 -8
  33. package/dist/api/warehouse.d.ts +1 -3
  34. package/dist/{app-DayXXH4q.js → app-DLJ3tarV.js} +15279 -15838
  35. package/dist/app.d.ts +9 -24
  36. package/dist/app.js +1 -1
  37. package/dist/{decimal-CFYWiBC2.js → decimal-Y-vsqUV6.js} +1 -1
  38. package/dist/{format-unit-display-DIr9pTFo.js → format-unit-display-52tZYV50.js} +21 -21
  39. package/dist/{index-DLOpJmH-.js → index-PtOchBO2.js} +1 -1
  40. package/dist/{index-tQKFc6GI.js → index-Z9YSq95U.js} +1 -1
  41. package/dist/{stock-DeAkNJnm.js → stock-CN530yZJ.js} +1 -1
  42. package/dist/stores/feature.d.ts +0 -2
  43. package/dist/stores/inventory.d.ts +0 -1
  44. package/dist/stores/location.d.ts +1 -57
  45. package/dist/stores/supplier.d.ts +0 -96
  46. package/dist/stores/warehouse.d.ts +0 -4
  47. package/dist/{supplier-C4DAoZrI.js → supplier-B5VFlEyS.js} +1 -1
  48. package/dist/tsconfig.app.tsbuildinfo +1 -1
  49. package/dist/{use-ingredient-select-dialog-CV7X8z4O.js → use-ingredient-select-dialog-CrLCvhtp.js} +1 -1
  50. package/dist/{use-inventory-binding-dialog-nuT-Ptlx.js → use-inventory-binding-dialog-zoNELf20.js} +1 -1
  51. package/dist/views/closing-draft/composables/use-closing-draft-actions.d.ts +3 -3
  52. package/dist/views/closing-draft/helpers/export-draft.helper.d.ts +2 -2
  53. package/dist/views/receive-request/components/transfer-details/TransferDetailsProps.d.ts +0 -1
  54. package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +0 -60
  55. package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +0 -10
  56. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +0 -94
  57. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +1 -72
  58. package/dist/views/supplier/components/SupplierForm.vue.d.ts +0 -8
  59. package/dist/views/supplier/composables/use-supplier-table.d.ts +0 -4
  60. package/dist/views/transfer-template/components/transfer-template-dialog/TransferTemplateDialog.vue.d.ts +0 -8
  61. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +0 -16
  62. package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +0 -48
  63. package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +0 -48
  64. package/dist/views/warehouse/components/WarehouseForm.vue.d.ts +0 -8
  65. package/package.json +2 -2
  66. package/dist/ClosingDraftView-D9HwfK7e.js +0 -1687
  67. package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Cp0j6Sx0.js +0 -230
  68. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-OCR95cDM.js +0 -2578
  69. package/dist/WarehouseView-DhBpkfGm.js +0 -1066
  70. package/dist/api/shipment.d.ts +0 -11
@@ -1,14 +1,14 @@
1
- import { defineComponent as ae, onMounted as Te, computed as L, ref as Y, watch as Ce, inject as ot, resolveComponent as V, openBlock as $, 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 { L as We, aL as he, t as Ne, I as it, aM as ut, aN as dt, j as se, aO as mt, b as Ge, a as Ke, T as Le, c as ge, n as ke, Z as be, V as ye, A as we, M as pt, J as ee, u as Ze, ao as ct, a1 as ft, G as Je, e as ue, aP as ve, aj as yt, v as vt, ab as bt, C as gt, i as Ee, _ as ht, E as xt } from "./app-DayXXH4q.js";
1
+ import { defineComponent as ae, onMounted as Te, computed as L, ref as Y, watch as Ce, inject as ot, resolveComponent as V, openBlock as $, createElementBlock as N, createElementVNode as e, createVNode as m, withCtx as U, renderSlot as xe, withDirectives as Pe, 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 { L as We, aK as he, t as Ne, I as it, aL as ut, aM as dt, j as se, aN as mt, b as Ge, a as Ke, T as Le, c as ge, n as ke, Z as be, V as ye, A as we, M as pt, J as ee, u as Ze, ao as ct, a1 as ft, G as Je, e as ue, aO as ve, aj as yt, v as vt, ab as bt, C as gt, i as Ee, _ as ht, E as xt } from "./app-DLJ3tarV.js";
3
3
  import { useI18n as me } from "@feedmepos/mf-common";
4
- import { P as X, a as _t, f as kt, t as wt, b as ze, u as Tt } from "./format-unit-display-DIr9pTFo.js";
4
+ import { P as X, a as _t, f as kt, t as wt, b as ze, u as Tt } from "./format-unit-display-52tZYV50.js";
5
5
  import { components as de, useSnackbar as Ct, useProxiedModel as Xe, useBreakpoints as Ft } from "@feedmepos/ui-library";
6
6
  import { defineStore as St, storeToRefs as He } from "pinia";
7
- import { _ as It, b as Mt, F as $t, a as Ot } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-D5k7Xk3M.js";
8
- import { c as Dt, u as Vt, _ as At } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Cp0j6Sx0.js";
9
- import { u as Rt } from "./supplier-C4DAoZrI.js";
10
- import { u as Pt } from "./use-ingredient-select-dialog-CV7X8z4O.js";
11
- const Ut = { class: "flex flex-col" }, Bt = { class: "flex flex-col" }, qt = { class: "flex-1" }, Nt = { class: "flex items-center" }, Lt = { class: "flex-1" }, Et = { class: "flex-1" }, zt = /* @__PURE__ */ ae({
7
+ import { _ as It, b as Mt, F as $t, a as Ot } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-CG8hJ9BY.js";
8
+ import { c as Dt, u as Vt, _ as At } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CLSMS6lS.js";
9
+ import { u as Rt } from "./supplier-B5VFlEyS.js";
10
+ import { u as Ut } from "./use-ingredient-select-dialog-CrLCvhtp.js";
11
+ const Pt = { class: "flex flex-col" }, Bt = { class: "flex flex-col" }, qt = { class: "flex-1" }, Nt = { class: "flex items-center" }, Lt = { class: "flex-1" }, Et = { class: "flex-1" }, zt = /* @__PURE__ */ ae({
12
12
  __name: "FmMinMaxInput",
13
13
  props: {
14
14
  rules: {},
@@ -79,7 +79,7 @@ const Ut = { class: "flex flex-col" }, Bt = { class: "flex flex-col" }, qt = { c
79
79
  w.max = null;
80
80
  v.min = w.min, v.max = w.max;
81
81
  });
82
- const F = Symbol.for("fm:form-state"), c = ot(F, null), o = L(() => h.disabled ?? (c == null ? void 0 : c.getDisabled()) ?? !1), f = Y(), b = Y(), k = Y(!1), T = Y(!1), R = L(() => k.value || T.value), U = L(() => [...[
82
+ const F = Symbol.for("fm:form-state"), c = ot(F, null), o = L(() => h.disabled ?? (c == null ? void 0 : c.getDisabled()) ?? !1), f = Y(), b = Y(), k = Y(!1), T = Y(!1), R = L(() => k.value || T.value), P = L(() => [...[
83
83
  function() {
84
84
  return typeof a(u.value) == "string" || typeof a(x.value) == "string" ? "Must be a number" : !0;
85
85
  },
@@ -89,7 +89,7 @@ const Ut = { class: "flex flex-col" }, Bt = { class: "flex flex-col" }, qt = { c
89
89
  ], ...h.rules ?? []]);
90
90
  return (d, y) => {
91
91
  const w = V("FmLabel"), i = V("FmField"), g = V("FmFormGroup");
92
- return $(), N("div", Ut, [
92
+ return $(), N("div", Pt, [
93
93
  e("div", Bt, [
94
94
  e("div", qt, [
95
95
  m(w, {
@@ -100,12 +100,12 @@ const Ut = { class: "flex flex-col" }, Bt = { class: "flex flex-col" }, qt = { c
100
100
  }, null, 8, ["label", "disabled", "required", "optional"])
101
101
  ]),
102
102
  m(i, { focused: R.value }, {
103
- default: P(() => [
103
+ default: U(() => [
104
104
  e("div", Nt, [
105
105
  xe(d.$slots, "prepend"),
106
106
  y[6] || (y[6] = e("div", { class: "text-fm-color-typo-secondary fm-typo-en-body-lg-400 pr-4" }, "Min.", -1)),
107
107
  e("div", Lt, [
108
- Ue(e("input", {
108
+ Pe(e("input", {
109
109
  type: "text",
110
110
  ref_key: "minInputRef",
111
111
  ref: f,
@@ -124,7 +124,7 @@ const Ut = { class: "flex flex-col" }, Bt = { class: "flex flex-col" }, qt = { c
124
124
  y[7] || (y[7] = e("div", { class: "block h-32 mx-4 w-[1px] bg-fm-color-neutral-gray-200" }, null, -1)),
125
125
  y[8] || (y[8] = e("div", { class: "text-fm-color-typo-secondary fm-typo-en-body-lg-400 pr-4" }, "Max.", -1)),
126
126
  e("div", Et, [
127
- Ue(e("input", {
127
+ Pe(e("input", {
128
128
  type: "text",
129
129
  ref_key: "maxInputRef",
130
130
  ref: b,
@@ -150,7 +150,7 @@ const Ut = { class: "flex flex-col" }, Bt = { class: "flex flex-col" }, qt = { c
150
150
  class: "flex-1",
151
151
  "model-value": d.modelValue,
152
152
  info: d.labelInfo,
153
- rules: U.value,
153
+ rules: P.value,
154
154
  "helper-text": d.helperText,
155
155
  "helper-state": d.helperState
156
156
  }, null, 8, ["model-value", "info", "rules", "helper-text", "helper-state"])
@@ -287,9 +287,9 @@ function Yt(p, h = {}) {
287
287
  minSize: 200,
288
288
  cell(c) {
289
289
  var R;
290
- const o = c.row.original, f = a.skuById[o.sku._id], b = a.unitById[(R = f.unit) == null ? void 0 : R._id], k = b.measurements.find((U) => {
290
+ const o = c.row.original, f = a.skuById[o.sku._id], b = a.unitById[(R = f.unit) == null ? void 0 : R._id], k = b.measurements.find((P) => {
291
291
  var d;
292
- return ((d = o.measurement) == null ? void 0 : d.id) === U.id;
292
+ return ((d = o.measurement) == null ? void 0 : d.id) === P.id;
293
293
  }), T = o.sku.unit._id !== f.unit._id || !b || o.measurement && !k;
294
294
  return j(It, {
295
295
  style: {
@@ -303,11 +303,11 @@ function Yt(p, h = {}) {
303
303
  disabled: p.disabled,
304
304
  key: o.sku._id,
305
305
  unit: b,
306
- "onUpdate:modelValue": (U) => {
306
+ "onUpdate:modelValue": (P) => {
307
307
  u.validateUnitInput(
308
308
  o,
309
309
  f,
310
- U,
310
+ P,
311
311
  (d) => {
312
312
  p.updateItem({
313
313
  ...o,
@@ -507,7 +507,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
507
507
  return a;
508
508
  }
509
509
  return (a, r) => {
510
- var u, x, F, c, o, f, b, k, T, R, U, d, y, w, i, g, O, M, _, W, te, E, B, Z, l, n, C, q, z, G;
510
+ var u, x, F, c, o, f, b, k, T, R, P, d, y, w, i, g, O, M, _, W, te, E, B, Z, l, n, C, q, z, G;
511
511
  const s = V("FmLabel");
512
512
  return $(), N("div", Wt, [
513
513
  e("div", Gt, [
@@ -538,7 +538,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
538
538
  label: t(h)(`inventory.transfer.form.items.table.${t(Q).Name}`)
539
539
  }, null, 8, ["label"]),
540
540
  m(t(ee), {
541
- render: (y = (d = (U = a.cellByColId[t(Q).Name]) == null ? void 0 : U.column) == null ? void 0 : d.columnDef) == null ? void 0 : y.cell,
541
+ render: (y = (d = (P = a.cellByColId[t(Q).Name]) == null ? void 0 : P.column) == null ? void 0 : d.columnDef) == null ? void 0 : y.cell,
542
542
  props: (i = (w = a.cellByColId[t(Q).Name]) == null ? void 0 : w.getContext) == null ? void 0 : i.call(w)
543
543
  }, null, 8, ["render", "props"]),
544
544
  r[1] || (r[1] = e("div", { class: "fm-typo-en-body-md-600 text-fm-color-primary" }, null, -1))
@@ -664,7 +664,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
664
664
  const n = typeof ((q = (C = s.purchaseOrder) == null ? void 0 : C.supplier) == null ? void 0 : q.internal) == "string" ? X.TRANSFER : X.PURCHASE;
665
665
  l !== n && (s.purchaseOrder.supplier = l === X.PURCHASE ? T.locationOptionsTypePurchase.value[0] : T.locationOptionsTypeTransfer.value[0]);
666
666
  }
667
- }), U = L(() => T.transferLocationOptions.value), d = L({
667
+ }), P = L(() => T.transferLocationOptions.value), d = L({
668
668
  get() {
669
669
  var l;
670
670
  return (l = s.purchaseOrder.supplier) == null ? void 0 : l._id;
@@ -772,7 +772,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
772
772
  });
773
773
  }
774
774
  })
775
- ), E = L(() => te.columnDefs.value), { promptSelectIngredients: B } = Pt();
775
+ ), E = L(() => te.columnDefs.value), { promptSelectIngredients: B } = Ut();
776
776
  async function Z() {
777
777
  const n = c.skus.map((D) => ({
778
778
  label: D.name,
@@ -835,7 +835,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
835
835
  class: "flex flex-col gap-32",
836
836
  disabled: l.disabled
837
837
  }, {
838
- default: P(() => {
838
+ default: U(() => {
839
839
  var J;
840
840
  return [
841
841
  e("div", co, [
@@ -865,9 +865,9 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
865
865
  sublabel: t(T).locationOptionsTypeTransfer.value.length ? void 0 : t(u)("inventory.transfer.form.noLocationAvailable")
866
866
  }
867
867
  ],
868
- rules: [t(we)(1)(U.value)]
868
+ rules: [t(we)(1)(P.value)]
869
869
  }, {
870
- default: P(() => [
870
+ default: U(() => [
871
871
  e("span", {
872
872
  class: re([
873
873
  "line-clamp-1 fm-typo-en-body-lg-400",
@@ -881,18 +881,18 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
881
881
  label: R.value === t(X).PURCHASE ? t(u)("inventory.transfer.form.purchaseFrom") : t(u)("inventory.transfer.form.transferFrom"),
882
882
  modelValue: d.value,
883
883
  "onUpdate:modelValue": n[2] || (n[2] = (S) => d.value = S),
884
- items: U.value
884
+ items: P.value
885
885
  }, {
886
- "menu-wrapper": P((S) => {
886
+ "menu-wrapper": U((S) => {
887
887
  var H;
888
888
  return [
889
889
  m(At, Qe(S, {
890
- items: U.value,
890
+ items: P.value,
891
891
  "model-value": (H = l.modelValue.purchaseOrder.supplier) == null ? void 0 : H._id
892
892
  }), null, 16, ["items", "model-value"])
893
893
  ];
894
894
  }),
895
- default: P(() => {
895
+ default: U(() => {
896
896
  var S;
897
897
  return [
898
898
  e("span", {
@@ -900,7 +900,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
900
900
  "line-clamp-1 fm-typo-en-body-lg-400",
901
901
  l.disabled ? "text-fm-color-typo-disabled" : "text-fm-color-typo-primary"
902
902
  ])
903
- }, I((S = U.value.find((H) => H.value === d.value)) == null ? void 0 : S.label), 3)
903
+ }, I((S = P.value.find((H) => H.value === d.value)) == null ? void 0 : S.label), 3)
904
904
  ];
905
905
  }),
906
906
  _: 1
@@ -997,7 +997,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
997
997
  "hide-footer": "",
998
998
  "page-size": t(s).purchaseOrder.items.length
999
999
  }, {
1000
- "table-row": P((S) => [
1000
+ "table-row": U((S) => [
1001
1001
  m(po, {
1002
1002
  row: S,
1003
1003
  errorMessage: x.value[S.index],
@@ -1005,12 +1005,12 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
1005
1005
  disabled: l.disabled
1006
1006
  }, null, 8, ["row", "errorMessage", "disabled"])
1007
1007
  ]),
1008
- "list-row": P((S) => [
1008
+ "list-row": U((S) => [
1009
1009
  ($(), le(Je, {
1010
1010
  row: S,
1011
1011
  key: t(s).purchaseOrder.items.map((H) => H.sku._id).join(".")
1012
1012
  }, {
1013
- default: P((H) => [
1013
+ default: U((H) => [
1014
1014
  m(ro, {
1015
1015
  row: S,
1016
1016
  "cell-by-col-id": H,
@@ -1061,10 +1061,10 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
1061
1061
  "onUpdate:modelValue": x[2] || (x[2] = (o) => r.value = o),
1062
1062
  overlay: !0
1063
1063
  }, {
1064
- "dialog-header": P(() => [
1064
+ "dialog-header": U(() => [
1065
1065
  e("div", null, I(v.confirmTitle || "Confirm"), 1)
1066
1066
  ]),
1067
- "dialog-footer": P(() => [
1067
+ "dialog-footer": U(() => [
1068
1068
  e("div", Co, [
1069
1069
  m(F, {
1070
1070
  label: "Cancel",
@@ -1079,7 +1079,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
1079
1079
  })
1080
1080
  ])
1081
1081
  ]),
1082
- default: P(() => [
1082
+ default: U(() => [
1083
1083
  xe(u.$slots, "dialog-content", {}, () => [
1084
1084
  ne(I(v.confirmMessage || "Are you sure you want to proceed?"), 1)
1085
1085
  ])
@@ -1190,7 +1190,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
1190
1190
  }
1191
1191
  }
1192
1192
  }
1193
- async function U() {
1193
+ async function P() {
1194
1194
  var g, O;
1195
1195
  const i = o.value;
1196
1196
  if (i) {
@@ -1219,7 +1219,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
1219
1219
  case ue.CREATE:
1220
1220
  return R();
1221
1221
  case ue.UPDATE:
1222
- return U();
1222
+ return P();
1223
1223
  }
1224
1224
  }
1225
1225
  function y() {
@@ -1235,12 +1235,12 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
1235
1235
  "close-button": "",
1236
1236
  "max-width": 1600
1237
1237
  }, {
1238
- "side-sheet-header": P(() => [
1238
+ "side-sheet-header": U(() => [
1239
1239
  e("div", So, [
1240
1240
  e("div", Io, I(k.value), 1)
1241
1241
  ])
1242
1242
  ]),
1243
- default: P(() => [
1243
+ default: U(() => [
1244
1244
  ($(), le(To, {
1245
1245
  class: "w-full",
1246
1246
  ref_key: "formRef",
@@ -1253,7 +1253,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
1253
1253
  key: f.value
1254
1254
  }, null, 8, ["model-value", "disabled"]))
1255
1255
  ]),
1256
- "side-sheet-footer": P(() => [
1256
+ "side-sheet-footer": U(() => [
1257
1257
  e("div", Mo, [
1258
1258
  m(Fo, {
1259
1259
  loading: b.value,
@@ -1261,7 +1261,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
1261
1261
  "confirm-title": `Save ${a.mode === t(ue).CREATE ? "Template" : "Changes"}`,
1262
1262
  onConfirm: y
1263
1263
  }, {
1264
- "dialog-content": P(() => g[4] || (g[4] = [
1264
+ "dialog-content": U(() => g[4] || (g[4] = [
1265
1265
  e("div", { class: "fm-typo-en-body-md-400 bg-fm-color-primary-oats p-8 rounded" }, [
1266
1266
  ne(" Warning: This action "),
1267
1267
  e("span", { class: "text-fm-color-system-error-300" }, "will not"),
@@ -1282,7 +1282,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
1282
1282
  }, 8, ["modelValue"]);
1283
1283
  };
1284
1284
  }
1285
- }), Oo = { class: "flex flex-col gap-16 w-full h-full overflow-y-auto" }, Do = { class: "flex justify-between" }, Vo = { class: "fm-typo-en-body-lg-600" }, Ao = { class: "fm-status-badge fm-status-badge-info-secondary" }, Ro = { class: "flex flex-col gap-8" }, Po = { class: "flex flex-col gap-4" }, Uo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Bo = { class: "flex gap-1" }, qo = { class: "fm-typo-en-body-lg-600" }, No = {
1285
+ }), Oo = { class: "flex flex-col gap-16 w-full h-full overflow-y-auto" }, Do = { class: "flex justify-between" }, Vo = { class: "fm-typo-en-body-lg-600" }, Ao = { class: "fm-status-badge fm-status-badge-info-secondary" }, Ro = { class: "flex flex-col gap-8" }, Uo = { class: "flex flex-col gap-4" }, Po = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Bo = { class: "flex gap-1" }, qo = { class: "fm-typo-en-body-lg-600" }, No = {
1286
1286
  key: 0,
1287
1287
  class: "flex flex-col gap-4"
1288
1288
  }, Lo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Eo = { class: "flex gap-1" }, zo = { class: "fm-typo-en-body-lg-600" }, Ho = {
@@ -1322,7 +1322,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
1322
1322
  ), o = Y(!0), f = Xe(v, "show");
1323
1323
  return (b, k) => {
1324
1324
  var g;
1325
- const T = V("FmMenuDivider"), R = V("FmCard"), U = V("FmIcon"), d = V("FmTextField"), y = V("FmTable"), w = V("FmButton"), i = V("FmSideSheet");
1325
+ const T = V("FmMenuDivider"), R = V("FmCard"), P = V("FmIcon"), d = V("FmTextField"), y = V("FmTable"), w = V("FmButton"), i = V("FmSideSheet");
1326
1326
  return $(), le(i, {
1327
1327
  header: t(s)("inventory.transfer.template.details.view", { template: (g = b.template) == null ? void 0 : g.name }),
1328
1328
  modelValue: t(f),
@@ -1331,7 +1331,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
1331
1331
  "close-button": "",
1332
1332
  "max-width": 1200
1333
1333
  }, {
1334
- default: P(() => {
1334
+ default: U(() => {
1335
1335
  var O, M;
1336
1336
  return [
1337
1337
  e("div", Oo, [
@@ -1340,7 +1340,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
1340
1340
  variant: "outlined",
1341
1341
  class: "flex flex-col gap-8 px-12 py-16"
1342
1342
  }, {
1343
- default: P(() => {
1343
+ default: U(() => {
1344
1344
  var _, W, te, E, B, Z, l, n, C;
1345
1345
  return [
1346
1346
  e("div", Do, [
@@ -1351,8 +1351,8 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
1351
1351
  ]),
1352
1352
  m(T),
1353
1353
  e("div", Ro, [
1354
- e("div", Po, [
1355
- e("div", Uo, [
1354
+ e("div", Uo, [
1355
+ e("div", Po, [
1356
1356
  e("div", Bo, I(t(s)("inventory.transfer.receiveRequest.details.createdAt")), 1)
1357
1357
  ]),
1358
1358
  e("div", qo, I(t(yt)(((_ = b.template) == null ? void 0 : _._id) ?? "")), 1)
@@ -1403,7 +1403,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
1403
1403
  _.totalCost && t(r).enableTotalCost ? ($(), N("div", rs, " (" + I(t(bt)(_.totalCost)) + ") ", 1)) : oe("", !0)
1404
1404
  ]),
1405
1405
  t(wt)(_) ? ($(), N("div", is, [
1406
- m(U, {
1406
+ m(P, {
1407
1407
  name: "error",
1408
1408
  color: "system-error-300",
1409
1409
  size: "sm"
@@ -1439,7 +1439,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
1439
1439
  ])
1440
1440
  ];
1441
1441
  }),
1442
- "side-sheet-footer": P(() => [
1442
+ "side-sheet-footer": U(() => [
1443
1443
  e("div", ms, [
1444
1444
  m(w, {
1445
1445
  label: t(s)("common.edit"),
@@ -1459,7 +1459,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
1459
1459
  Te(F.fetchTemplates);
1460
1460
  const R = L(
1461
1461
  () => f.value || c.value || !k._currentLocation
1462
- ), U = L(() => o.value), d = Y(""), y = L(() => T.value.xs || T.value.sm), w = L(() => y.value ? 10 : 20);
1462
+ ), P = L(() => o.value), d = Y(""), y = L(() => T.value.xs || T.value.sm), w = L(() => y.value ? 10 : 20);
1463
1463
  function i(M) {
1464
1464
  switch (M) {
1465
1465
  case Ee.Add:
@@ -1506,7 +1506,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
1506
1506
  actions: O.value,
1507
1507
  "onClick:action": i
1508
1508
  }, {
1509
- default: P(() => {
1509
+ default: U(() => {
1510
1510
  var te;
1511
1511
  return [
1512
1512
  e("div", {
@@ -1526,20 +1526,20 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
1526
1526
  ($(), le(W, {
1527
1527
  style: _e(t(b).tableHeight),
1528
1528
  "column-defs": t(F).columnDefs,
1529
- "row-data": U.value,
1529
+ "row-data": P.value,
1530
1530
  "search-value": d.value,
1531
1531
  loading: R.value,
1532
1532
  key: (te = t(k)._currentLocation) == null ? void 0 : te.dbName,
1533
1533
  onRowClick: _[1] || (_[1] = (E) => t(a)(E.original)),
1534
1534
  "page-size": w.value
1535
1535
  }, {
1536
- "list-row": P((E) => [
1536
+ "list-row": U((E) => [
1537
1537
  m(Je, {
1538
1538
  row: E,
1539
1539
  onRowClick: (B) => t(a)(B)
1540
1540
  }, {
1541
- default: P((B) => {
1542
- var Z, l, n, C, q, z, G, D, A, K, J, S, H, ie, Fe, Se, Ie, Me, $e, Oe, ce, De, Ve, Ae, Re, fe, Pe;
1541
+ default: U((B) => {
1542
+ var Z, l, n, C, q, z, G, D, A, K, J, S, H, ie, Fe, Se, Ie, Me, $e, Oe, ce, De, Ve, Ae, Re, fe, Ue;
1543
1543
  return [
1544
1544
  e("div", cs, [
1545
1545
  e("div", fs, [
@@ -1573,7 +1573,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
1573
1573
  e("div", null, [
1574
1574
  m(t(ee), {
1575
1575
  render: (Re = (Ae = (Ve = B.type) == null ? void 0 : Ve.column) == null ? void 0 : Ae.columnDef) == null ? void 0 : Re.cell,
1576
- props: (Pe = (fe = B.type) == null ? void 0 : fe.getContext) == null ? void 0 : Pe.call(fe)
1576
+ props: (Ue = (fe = B.type) == null ? void 0 : fe.getContext) == null ? void 0 : Ue.call(fe)
1577
1577
  }, null, 8, ["render", "props"])
1578
1578
  ])
1579
1579
  ])
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as G, computed as b, openBlock as v, createElementBlock as w, createElementVNode as s, Fragment as q, renderList as H, toDisplayString as V, createCommentVNode as W, 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 K, e as U, S as pe, h as ve, D as ne, i as L, f as se, T as fe, n as j, A as ye, j as Y, V as be, W as ge, r as oe, u as xe, b as _e, C as he, _ as Ve, E as Ue, G as we, J as Ce } from "./app-DayXXH4q.js";
2
+ import { a as K, e as U, S as pe, h as ve, D as ne, i as L, f as se, T as fe, n as j, A as ye, j as Y, V as be, W as ge, r as oe, u as xe, b as _e, C as he, _ as Ve, E as Ue, G as we, J as Ce } from "./app-DLJ3tarV.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 J } from "@feedmepos/mf-common";
7
- import { F as De } from "./decimal-CFYWiBC2.js";
8
- import { _ as Ae } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-4W5T_8W7.js";
7
+ import { F as De } from "./decimal-Y-vsqUV6.js";
8
+ import { _ as Ae } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CVjIweiD.js";
9
9
  const Re = { class: "flex flex-col gap-8" }, Me = {
10
10
  key: 0,
11
11
  class: "flex flex-col"