@feedmepos/mf-inventory-portal 1.2.27 → 1.2.28

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 (47) hide show
  1. package/dist/{App-CC7EGfq3.js → App-BpTp4tTy.js} +1 -1
  2. package/dist/{ApprovalView-CUg1X3aW.js → ApprovalView-BiCWMNPZ.js} +2 -2
  3. package/dist/{BindingsDialog-DU9Xpkve.js → BindingsDialog-AwpEPK6d.js} +2 -2
  4. package/dist/{BindingsPicker-CICpOJQB.js → BindingsPicker-BRPue7Be.js} +1 -1
  5. package/dist/{BindingsTable-5j4XFSgC.js → BindingsTable-9ERKT3nZ.js} +1 -1
  6. package/dist/{ClosingDraftView-tEiTYZ-G.js → ClosingDraftView-DIvddbOy.js} +3 -3
  7. package/dist/{ClosingHistoryView-DNodhyR1.js → ClosingHistoryView-BYv0GXGj.js} +115 -113
  8. package/dist/{ClosingTemplateView-0SkHiuJL.js → ClosingTemplateView-Co9-71Qd.js} +2 -2
  9. package/dist/{DeliveryOrderPrintPreview-CvX6ry9E.js → DeliveryOrderPrintPreview-BgCGQYlJ.js} +1 -1
  10. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DDl_BtWO.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Cl-BXK9c.js} +3 -3
  11. package/dist/{FmMultiselectDialog-C-0KIt0z.js → FmMultiselectDialog-A5K1fbiJ.js} +1 -1
  12. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-Cbbe9RIS.js → FmUnitInput.vue_vue_type_script_setup_true_lang-D57Jmy3H.js} +1 -1
  13. package/dist/{ImportView-sK-HTJRQ.js → ImportView-BCtms71i.js} +2 -2
  14. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DtPc5klg.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-B3DFrMFL.js} +1 -1
  15. package/dist/{IngredientGroupView-Upqw40GM.js → IngredientGroupView-CAewASse.js} +2 -2
  16. package/dist/{IngredientsView-NhiZdZHS.js → IngredientsView-DtJ1dBPf.js} +7 -7
  17. package/dist/{IntegrationView-7T__0Ev_.js → IntegrationView-CaBB8Izb.js} +3 -3
  18. package/dist/{InventoryBindingForm-xTT7wNhN.js → InventoryBindingForm-BU7kUZSz.js} +1 -1
  19. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-0K76QWtS.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-Ds__y-Lo.js} +3 -3
  20. package/dist/{InventoryBindingSummary-DLrFHIXl.js → InventoryBindingSummary-XFDK1dPw.js} +1 -1
  21. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DpyuZj6H.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CMgRJ85E.js} +1 -1
  22. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-DOezD2nd.js → PremiumBadge.vue_vue_type_script_setup_true_lang-6I4HFx0j.js} +1 -1
  23. package/dist/{PublishView-uTpUuvdl.js → PublishView-CBEuARad.js} +1 -1
  24. package/dist/{PurchaseOrderPrintPreview-AbvNdYvS.js → PurchaseOrderPrintPreview-THSwoyZV.js} +1 -1
  25. package/dist/{ReceiveRequestView-DjOOecjI.js → ReceiveRequestView-D4E0DHhj.js} +8 -8
  26. package/dist/{RecipeView-vrFJuZiC.js → RecipeView-DrJOwiZG.js} +3 -3
  27. package/dist/{StockView-CkkJ1xf5.js → StockView-DdhoiUs5.js} +8 -8
  28. package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DBYSVdr6.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-ze5NJ_-a.js} +1 -1
  29. package/dist/{SupplierView-CI2TRzDN.js → SupplierView-CBZEt5ub.js} +4 -4
  30. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-D3jybzG0.js → TransferDetails.vue_vue_type_script_setup_true_lang-BWPYiDXh.js} +5 -5
  31. package/dist/{TransferTemplateView-CwyaQu5X.js → TransferTemplateView-BPKx5laO.js} +7 -7
  32. package/dist/{UnitView-C6z_17fA.js → UnitView-Cd9dZhGB.js} +3 -3
  33. package/dist/{WarehouseView-VYhM6Tpp.js → WarehouseView-Cycp5mC8.js} +1 -1
  34. package/dist/{app-Jg8LS2E9.js → app-DzPAqMfV.js} +12 -12
  35. package/dist/app.js +1 -1
  36. package/dist/{decimal-1b-kdzH1.js → decimal-B6b_BCrz.js} +1 -1
  37. package/dist/{format-unit-display-DQARsLT4.js → format-unit-display-D6UHEBQy.js} +3 -3
  38. package/dist/{import-export.helper-Do4qkk3c.js → import-export.helper-D7FUv1ZN.js} +1 -1
  39. package/dist/{index-usoaj_7j.js → index-7Gffcntc.js} +1 -1
  40. package/dist/{index-CKiHRjlB.js → index-CqxJHYsC.js} +1 -1
  41. package/dist/{purchase-order-template-DBi99Bo_.js → purchase-order-template-CmXUb_MT.js} +1 -1
  42. package/dist/{stock-Kd7XJmQi.js → stock-BYRT4p1b.js} +1 -1
  43. package/dist/{stock-BjxZjz5L.js → stock-GesfiBWR.js} +2 -2
  44. package/dist/{supplier-haJ4RQlV.js → supplier-LrosKW2Q.js} +1 -1
  45. package/dist/{use-ingredient-select-dialog-CGvfYQJq.js → use-ingredient-select-dialog-BhVF0zwr.js} +1 -1
  46. package/dist/{use-inventory-binding-dialog-PpHMq_mx.js → use-inventory-binding-dialog-CApue-hU.js} +1 -1
  47. package/package.json +3 -3
@@ -1,5 +1,5 @@
1
1
  import { ref as B, onUnmounted as D, defineComponent as w, watch as L, onMounted as M, computed as P, resolveComponent as y, openBlock as R, createElementBlock as A, unref as T, createVNode as g, createElementVNode as v, toDisplayString as x, createBlock as F, createCommentVNode as W } from "vue";
2
- import { u as K, a as $, b as j, R as e, c as V, m as _, g as r, d as k } from "./app-Jg8LS2E9.js";
2
+ import { u as K, a as $, b as j, R as e, c as V, m as _, g as r, d as k } from "./app-DzPAqMfV.js";
3
3
  import { useCoreStore as U, useI18n as H } from "@feedmepos/mf-common";
4
4
  import { useRouter as O, useRoute as z } from "vue-router";
5
5
  import { u as Q } from "./useTabStorage-BkIVScW_.js";
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as ue, ref as y, watch as ie, computed as d, resolveComponent as ce, openBlock as x, createBlock as W, unref as n, withCtx as k, createElementVNode as c, normalizeClass as pe, createVNode as i, normalizeStyle as de, toDisplayString as me, createElementBlock as fe, createCommentVNode as ve, Teleport as he, mergeProps as _e } from "vue";
2
- import { u as De, b as ge, m as b, aZ as ye, am as X, G as be, N as Oe, H as Re, I as Se, J as xe, K as ke, L as O } from "./app-Jg8LS2E9.js";
3
- import { u as qe, P as q, a as we, _ as Pe } from "./TransferDetails.vue_vue_type_script_setup_true_lang-D3jybzG0.js";
2
+ import { u as De, b as ge, m as b, aZ as ye, am as X, G as be, N as Oe, H as Re, I as Se, J as xe, K as ke, L as O } from "./app-DzPAqMfV.js";
3
+ import { u as qe, P as q, a as we, _ as Pe } from "./TransferDetails.vue_vue_type_script_setup_true_lang-BWPYiDXh.js";
4
4
  import { useBreakpoints as Ne } from "@feedmepos/ui-library";
5
5
  import { useI18n as Te } from "@feedmepos/mf-common";
6
6
  const Ae = { class: "flex flex-col py-8" }, Ce = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Me = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary line-clamp-1" }, Le = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1" }, Ve = {
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as C, ref as o, onMounted as M, onUnmounted as F, watch as x, resolveComponent as l, openBlock as i, createElementBlock as c, createBlock as I, withCtx as R, createVNode as a, createCommentVNode as z, createElementVNode as P } from "vue";
2
- import { _ as V } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-0K76QWtS.js";
3
- import { a as L, bc as S } from "./app-Jg8LS2E9.js";
2
+ import { _ as V } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-Ds__y-Lo.js";
3
+ import { a as L, bc as S } from "./app-DzPAqMfV.js";
4
4
  const U = {
5
5
  key: 0,
6
6
  class: "flex justify-end gap-8 items-center"
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as S, computed as r, ref as l, onMounted as U, onUnmounted as V, resolveComponent as E, openBlock as p, createElementBlock as f, createVNode as u, createElementVNode as k } from "vue";
2
- import { a as x, bc as M, x as z } from "./app-Jg8LS2E9.js";
2
+ import { a as x, bc as M, x as z } from "./app-DzPAqMfV.js";
3
3
  const F = {
4
4
  key: 0,
5
5
  class: "flex flex-col gap-16"
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as x, ref as r, provide as C, computed as g, resolveComponent as h, openBlock as l, createElementBlock as u, createStaticVNode as F, Fragment as L, renderList as I, createElementVNode as p, toDisplayString as v, createVNode as w, withModifiers as N, onMounted as E, onUnmounted as z, createBlock as M } from "vue";
2
- import { F as b, a as P, bc as R } from "./app-Jg8LS2E9.js";
2
+ import { F as b, a as P, bc as R } from "./app-DzPAqMfV.js";
3
3
  import "@feedmepos/ui-library";
4
4
  import "@feedmepos/mf-common";
5
5
  const U = { class: "" }, D = ["onClick"], O = { class: "flex-grow-0 flex-shrink-0 basis-5/12 py-8 pl-8" }, V = { class: "flex-grow-0 flex-shrink-0 basis-3/12 py-8" }, S = { class: "flex-grow-0 flex-shrink-0 basis-3/12 py-8" }, $ = { class: "flex-grow-0 flex-shrink-0 basis-1/12 py-4" }, T = /* @__PURE__ */ x({
@@ -1,10 +1,10 @@
1
1
  import { defineComponent as Ee, ref as H, computed as V, onMounted as We, resolveComponent as z, openBlock as F, createElementBlock as E, Fragment as re, createTextVNode as ne, createBlock as ue, withCtx as W, createElementVNode as i, toDisplayString as ae, unref as $, createVNode as _, createCommentVNode as le, h as A, reactive as Bt, watch as Tt, isRef as ft, normalizeClass as Se, renderList as $e, normalizeStyle as pt, Teleport as jt, mergeProps as It } from "vue";
2
- import { aa as Ut, u as ze, ax as Y, am as Le, ay as vt, r as Pt, Z as qe, n as Qe, t as Mt, a0 as Be, W as Rt, Y as Vt, X as Lt, az as gt, aA as yt, $ as R, ah as bt, aB as ht, aC as he, an as Nt, ac as Ge, ab as ke, a6 as Re, D as dt, j as Pe, i as Et, f as zt, a as Ot, a9 as Ht, h as Yt, G as Kt, I as Qt, J as Gt, K as Wt, L as Me } from "./app-Jg8LS2E9.js";
2
+ import { aa as Ut, u as ze, ax as Y, am as Le, ay as vt, r as Pt, Z as qe, n as Qe, t as Mt, a0 as Be, W as Rt, Y as Vt, X as Lt, az as gt, aA as yt, $ as R, ah as bt, aB as ht, aC as he, an as Nt, ac as Ge, ab as ke, a6 as Re, D as dt, j as Pe, i as Et, f as zt, a as Ot, a9 as Ht, h as Yt, G as Kt, I as Qt, J as Gt, K as Wt, L as Me } from "./app-DzPAqMfV.js";
3
3
  import { useCoreStore as qt, useI18n as kt } from "@feedmepos/mf-common";
4
4
  import { useSnackbar as Ze, useDialog as Zt, useProxiedModel as Jt, components as be, useBreakpoints as Xt } from "@feedmepos/ui-library";
5
5
  import { defineStore as xt, storeToRefs as ea } from "pinia";
6
- import { u as Dt } from "./stock-BjxZjz5L.js";
7
- import { u as Je } from "./stock-Kd7XJmQi.js";
6
+ import { u as Dt } from "./stock-GesfiBWR.js";
7
+ import { u as Je } from "./stock-BYRT4p1b.js";
8
8
  import { E as ta } from "./empty-placeholder-wf6-BWE8.js";
9
9
  const Oe = Ut((s, o) => {
10
10
  function e() {
@@ -1,9 +1,9 @@
1
- import { defineComponent as H, ref as f, computed as k, resolveComponent as x, openBlock as u, createElementBlock as v, createVNode as y, withModifiers as te, withCtx as F, createElementVNode as c, toDisplayString as s, unref as n, Fragment as K, createTextVNode as M, createBlock as B, createCommentVNode as h, renderList as oe, normalizeClass as le, h as ae, onMounted as ne, Teleport as se } from "vue";
2
- import { aE as j, ac as D, u as ce, h as ie, I as re, J as ue } from "./app-Jg8LS2E9.js";
1
+ import { defineComponent as H, ref as y, computed as k, resolveComponent as x, openBlock as d, createElementBlock as v, createVNode as f, withModifiers as te, withCtx as F, createElementVNode as s, toDisplayString as c, unref as n, Fragment as K, createTextVNode as M, createBlock as B, createCommentVNode as h, renderList as oe, normalizeClass as le, h as ae, onMounted as ne, Teleport as se } from "vue";
2
+ import { aE as j, ac as D, u as ce, h as ie, I as re, J as ue } from "./app-DzPAqMfV.js";
3
3
  import { useI18n as z, useCoreStore as de } from "@feedmepos/mf-common";
4
4
  import { useSnackbar as me } from "@feedmepos/ui-library";
5
- import { u as ve } from "./stock-Kd7XJmQi.js";
6
- const fe = { class: "fm-typo-en-heading-lg-600" }, ye = { class: "flex flex-col gap-16" }, pe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ge = { class: "flex flex-col gap-8" }, _e = { class: "fm-typo-en-body-md-600" }, be = { class: "flex flex-col gap-8" }, ke = { class: "fm-typo-en-body-md-600" }, he = { class: "flex items-center gap-8 mb-8" }, xe = {
5
+ import { u as ve } from "./stock-BYRT4p1b.js";
6
+ const ye = { class: "fm-typo-en-heading-lg-600" }, fe = { class: "flex flex-col gap-16" }, pe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ge = { class: "flex flex-col gap-8" }, _e = { class: "fm-typo-en-body-md-600" }, be = { class: "flex flex-col gap-8" }, ke = { class: "fm-typo-en-body-md-600" }, he = { class: "flex items-center gap-8 mb-8" }, xe = {
7
7
  key: 2,
8
8
  class: "text-red-500 text-sm mt-2"
9
9
  }, De = { class: "fm-typo-en-body-sm-400" }, Ve = {
@@ -28,8 +28,8 @@ const fe = { class: "fm-typo-en-heading-lg-600" }, ye = { class: "flex flex-col
28
28
  __name: "RecalculationDialog",
29
29
  emits: ["submitted"],
30
30
  setup(J, { expose: _, emit: T }) {
31
- const w = T, { t: o } = z(), V = ve(), A = j(), C = me(), p = f(!1), i = f(""), r = f(""), m = f(!1), S = f([]), l = f(!1), d = f([]), b = f(!1), R = k(() => S.value.map((e) => {
32
- const a = D(e._id), g = new Date(a);
31
+ const w = T, { t: l } = z(), V = ve(), A = j(), C = me(), p = y(!1), i = y(""), r = y(""), m = y(!1), S = y([]), a = y(!1), u = y([]), b = y(!1), R = k(() => S.value.map((e) => {
32
+ const o = D(e._id), g = new Date(o);
33
33
  return {
34
34
  label: `${g.toLocaleDateString()} ${g.toLocaleTimeString()}`,
35
35
  value: e._id
@@ -37,7 +37,7 @@ const fe = { class: "fm-typo-en-heading-lg-600" }, ye = { class: "flex flex-col
37
37
  })), G = k(() => i.value ? R.value.filter((e) => e.value > i.value) : []), $ = k({
38
38
  get: () => {
39
39
  if (m.value && r.value) {
40
- const e = S.value.find((a) => D(a._id) === r.value);
40
+ const e = S.value.find((o) => D(o._id) === r.value);
41
41
  return (e == null ? void 0 : e._id) || r.value;
42
42
  }
43
43
  return r.value;
@@ -56,14 +56,14 @@ const fe = { class: "fm-typo-en-heading-lg-600" }, ye = { class: "flex flex-col
56
56
  }
57
57
  }), L = k(() => {
58
58
  if (!i.value || !r.value) return "";
59
- const e = D(i.value), a = r.value;
60
- if (e && a) {
59
+ const e = D(i.value), o = r.value;
60
+ if (e && o) {
61
61
  const g = new Date(e).getTime();
62
- if (new Date(a).getTime() <= g)
63
- return o("inventory.stock.recalculation.error.endDateBeforeOpening");
62
+ if (new Date(o).getTime() <= g)
63
+ return l("inventory.stock.recalculation.error.endDateBeforeOpening");
64
64
  }
65
65
  return "";
66
- }), N = k(() => !!i.value && !!r.value && !L.value), U = k(() => d.value.some(
66
+ }), N = k(() => !!i.value && !!r.value && !L.value), U = k(() => u.value.some(
67
67
  (e) => !e.completedAt && !e.failedReason
68
68
  ));
69
69
  async function I() {
@@ -77,25 +77,25 @@ const fe = { class: "fm-typo-en-heading-lg-600" }, ye = { class: "flex flex-col
77
77
  close: W
78
78
  });
79
79
  async function X() {
80
- l.value = !0;
80
+ a.value = !0;
81
81
  try {
82
- const e = await A.getLastNClosings(10);
82
+ const e = await A.getLastNClosings(30);
83
83
  S.value = e;
84
84
  } catch (e) {
85
85
  console.error("Error fetching recent closings:", e), C.open({
86
- title: o("common.error"),
86
+ title: l("common.error"),
87
87
  message: "Failed to fetch recent closings",
88
88
  type: "error"
89
89
  });
90
90
  } finally {
91
- l.value = !1;
91
+ a.value = !1;
92
92
  }
93
93
  }
94
94
  async function P() {
95
95
  b.value = !0;
96
96
  try {
97
97
  const e = await V.recalculation.recalculationRequests();
98
- d.value = e;
98
+ u.value = e;
99
99
  } catch (e) {
100
100
  console.error("Error fetching recalculation requests:", e);
101
101
  } finally {
@@ -104,152 +104,153 @@ const fe = { class: "fm-typo-en-heading-lg-600" }, ye = { class: "flex flex-col
104
104
  }
105
105
  async function Y() {
106
106
  if (N.value) {
107
- l.value = !0;
107
+ a.value = !0;
108
108
  try {
109
109
  await V.recalculation.scheduleRecalculation(i.value, r.value), C.open({
110
- title: o("common.success"),
110
+ title: l("common.success"),
111
111
  message: "Stock recalculation has been scheduled successfully",
112
112
  type: "success"
113
113
  }), await P(), p.value = !1, w("submitted");
114
114
  } catch (e) {
115
115
  console.error("Error scheduling recalculation:", e), C.open({
116
- title: o("common.error"),
116
+ title: l("common.error"),
117
117
  message: "Failed to schedule stock recalculation",
118
118
  type: "error"
119
119
  });
120
120
  } finally {
121
- l.value = !1;
121
+ a.value = !1;
122
122
  }
123
123
  }
124
124
  }
125
- return (e, a) => {
125
+ return (e, o) => {
126
126
  const g = x("FmButton"), E = x("FmSelect"), O = x("FmRadio"), Z = x("FmDatePicker"), q = x("FmAlert"), ee = x("FmDialog");
127
- return u(), v("div", null, [
128
- y(g, {
127
+ return d(), v("div", null, [
128
+ f(g, {
129
129
  "prepend-icon": "info",
130
130
  variant: "tertiary",
131
131
  onClick: te(I, ["stop"])
132
132
  }),
133
- y(ee, {
133
+ f(ee, {
134
134
  modelValue: p.value,
135
- "onUpdate:modelValue": a[7] || (a[7] = (t) => p.value = t),
135
+ "onUpdate:modelValue": o[7] || (o[7] = (t) => p.value = t),
136
136
  "close-button": "",
137
137
  dismissAway: "",
138
138
  "max-width": "600px"
139
139
  }, {
140
140
  "dialog-header": F(() => [
141
- c("div", fe, s(n(o)("inventory.stock.recalculation.title")), 1)
141
+ s("div", ye, c(n(l)("inventory.stock.recalculation.title")), 1)
142
142
  ]),
143
143
  "dialog-footer": F(() => [
144
- U.value ? (u(), v("div", $e, [
145
- y(g, {
144
+ U.value ? (d(), v("div", $e, [
145
+ f(g, {
146
146
  variant: "tertiary",
147
- onClick: a[6] || (a[6] = (t) => p.value = !1),
148
- label: n(o)("common.close")
147
+ onClick: o[6] || (o[6] = (t) => p.value = !1),
148
+ label: n(l)("common.close")
149
149
  }, null, 8, ["label"])
150
- ])) : (u(), v("div", Ee, [
151
- y(g, {
150
+ ])) : (d(), v("div", Ee, [
151
+ f(g, {
152
152
  variant: "tertiary",
153
- onClick: a[5] || (a[5] = (t) => p.value = !1),
154
- disabled: l.value,
155
- label: n(o)("common.cancel")
153
+ onClick: o[5] || (o[5] = (t) => p.value = !1),
154
+ disabled: a.value,
155
+ label: n(l)("common.cancel")
156
156
  }, null, 8, ["disabled", "label"]),
157
- y(g, {
157
+ f(g, {
158
158
  variant: "primary",
159
159
  onClick: Y,
160
- disabled: !N.value || l.value,
161
- loading: l.value,
162
- label: n(o)("inventory.stock.recalculation.schedule")
160
+ disabled: !N.value || a.value,
161
+ loading: a.value,
162
+ label: n(l)("inventory.stock.recalculation.schedule")
163
163
  }, null, 8, ["disabled", "loading", "label"])
164
164
  ]))
165
165
  ]),
166
166
  default: F(() => [
167
- c("div", ye, [
168
- c("div", pe, s(n(o)("inventory.stock.recalculation.description")), 1),
169
- U.value ? h("", !0) : (u(), v(K, { key: 0 }, [
170
- c("div", ge, [
171
- c("p", _e, [
172
- M(s(n(o)("inventory.stock.recalculation.openingDate")) + " ", 1),
173
- a[8] || (a[8] = c("span", { class: "text-fm-color-system-error-300" }, "*", -1))
167
+ s("div", fe, [
168
+ s("div", pe, c(n(l)("inventory.stock.recalculation.description")), 1),
169
+ U.value ? h("", !0) : (d(), v(K, { key: 0 }, [
170
+ s("div", ge, [
171
+ s("p", _e, [
172
+ M(c(n(l)("inventory.stock.recalculation.openingDate")) + " ", 1),
173
+ o[8] || (o[8] = s("span", { class: "text-fm-color-system-error-300" }, "*", -1))
174
174
  ]),
175
- y(E, {
175
+ o[9] || (o[9] = s("div", { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary mb-4" }, " Showing the last 30 closing records. Select the opening date to start recalculation. ", -1)),
176
+ f(E, {
176
177
  modelValue: i.value,
177
- "onUpdate:modelValue": a[0] || (a[0] = (t) => i.value = t),
178
+ "onUpdate:modelValue": o[0] || (o[0] = (t) => i.value = t),
178
179
  items: R.value,
179
- placeholder: n(o)("inventory.stock.recalculation.selectOpening"),
180
- loading: l.value,
181
- disabled: l.value
180
+ placeholder: n(l)("inventory.stock.recalculation.selectOpening"),
181
+ loading: a.value,
182
+ disabled: a.value
182
183
  }, null, 8, ["modelValue", "items", "placeholder", "loading", "disabled"])
183
184
  ]),
184
- c("div", be, [
185
- c("p", ke, [
186
- M(s(n(o)("inventory.stock.recalculation.untilDate")) + " ", 1),
187
- a[9] || (a[9] = c("span", { class: "text-fm-color-system-error-300" }, "*", -1))
185
+ s("div", be, [
186
+ s("p", ke, [
187
+ M(c(n(l)("inventory.stock.recalculation.untilDate")) + " ", 1),
188
+ o[10] || (o[10] = s("span", { class: "text-fm-color-system-error-300" }, "*", -1))
188
189
  ]),
189
- c("div", he, [
190
- y(O, {
190
+ s("div", he, [
191
+ f(O, {
191
192
  modelValue: m.value,
192
- "onUpdate:modelValue": a[1] || (a[1] = (t) => m.value = t),
193
+ "onUpdate:modelValue": o[1] || (o[1] = (t) => m.value = t),
193
194
  value: !1,
194
- label: n(o)("inventory.stock.recalculation.selectByDate")
195
+ label: n(l)("inventory.stock.recalculation.selectByDate")
195
196
  }, null, 8, ["modelValue", "label"]),
196
- y(O, {
197
+ f(O, {
197
198
  modelValue: m.value,
198
- "onUpdate:modelValue": a[2] || (a[2] = (t) => m.value = t),
199
+ "onUpdate:modelValue": o[2] || (o[2] = (t) => m.value = t),
199
200
  value: !0,
200
- label: n(o)("inventory.stock.recalculation.selectByClosing")
201
+ label: n(l)("inventory.stock.recalculation.selectByClosing")
201
202
  }, null, 8, ["modelValue", "label"])
202
203
  ]),
203
- m.value ? (u(), B(E, {
204
+ m.value ? (d(), B(E, {
204
205
  key: 1,
205
206
  modelValue: $.value,
206
- "onUpdate:modelValue": a[4] || (a[4] = (t) => $.value = t),
207
+ "onUpdate:modelValue": o[4] || (o[4] = (t) => $.value = t),
207
208
  items: G.value,
208
- placeholder: n(o)("inventory.stock.recalculation.selectClosing"),
209
- loading: l.value,
210
- disabled: !i.value || l.value
211
- }, null, 8, ["modelValue", "items", "placeholder", "loading", "disabled"])) : (u(), B(Z, {
209
+ placeholder: n(l)("inventory.stock.recalculation.selectClosing"),
210
+ loading: a.value,
211
+ disabled: !i.value || a.value
212
+ }, null, 8, ["modelValue", "items", "placeholder", "loading", "disabled"])) : (d(), B(Z, {
212
213
  key: 0,
213
214
  modelValue: r.value,
214
- "onUpdate:modelValue": a[3] || (a[3] = (t) => r.value = t),
215
- placeholder: n(o)("inventory.stock.recalculation.selectDate"),
215
+ "onUpdate:modelValue": o[3] || (o[3] = (t) => r.value = t),
216
+ placeholder: n(l)("inventory.stock.recalculation.selectDate"),
216
217
  min: Q.value,
217
- disabled: !i.value || l.value
218
+ disabled: !i.value || a.value
218
219
  }, null, 8, ["modelValue", "placeholder", "min", "disabled"])),
219
- L.value ? (u(), v("div", xe, s(L.value), 1)) : h("", !0)
220
+ L.value ? (d(), v("div", xe, c(L.value), 1)) : h("", !0)
220
221
  ]),
221
- i.value && r.value && !L.value ? (u(), B(q, {
222
+ i.value && r.value && !L.value ? (d(), B(q, {
222
223
  key: 0,
223
224
  type: "info"
224
225
  }, {
225
226
  default: F(() => [
226
- c("div", De, s(n(o)("inventory.stock.recalculation.info")), 1)
227
+ s("div", De, c(n(l)("inventory.stock.recalculation.info")), 1)
227
228
  ]),
228
229
  _: 1
229
230
  })) : h("", !0)
230
231
  ], 64)),
231
- d.value.length > 0 ? (u(), v("div", Ve, [
232
- c("p", Se, s(n(o)("inventory.stock.recalculation.recentRequests")), 1),
233
- c("div", we, [
234
- (u(!0), v(K, null, oe(d.value, (t) => (u(), v("div", {
232
+ u.value.length > 0 ? (d(), v("div", Ve, [
233
+ s("p", Se, c(n(l)("inventory.stock.recalculation.recentRequests")), 1),
234
+ s("div", we, [
235
+ (d(!0), v(K, null, oe(u.value, (t) => (d(), v("div", {
235
236
  key: t._id,
236
237
  class: "p-12 border border-fm-color-border-primary rounded-8 flex flex-col gap-4"
237
238
  }, [
238
- c("div", Ae, [
239
- c("div", Ce, s(n(o)("inventory.stock.recalculation.requestedAt")) + ": " + s(new Date(t.createdAt).toLocaleString()), 1),
240
- c("div", {
239
+ s("div", Ae, [
240
+ s("div", Ce, c(n(l)("inventory.stock.recalculation.requestedAt")) + ": " + c(new Date(t.createdAt).toLocaleString()), 1),
241
+ s("div", {
241
242
  class: le(["fm-typo-en-body-xs-600 px-8 py-4 rounded-4", {
242
243
  "bg-fm-color-system-error-100 text-fm-color-system-error-500": t.failedReason,
243
244
  "bg-fm-color-system-success-100 text-fm-color-system-success-500": t.completedAt,
244
245
  "bg-fm-color-system-info-100 text-fm-color-system-info-500": !t.failedReason && !t.completedAt
245
246
  }])
246
- }, s(t.failedReason ? n(o)("inventory.stock.recalculation.status.failed") : t.completedAt ? n(o)("inventory.stock.recalculation.status.completed") : n(o)("inventory.stock.recalculation.status.inProgress")), 3)
247
+ }, c(t.failedReason ? n(l)("inventory.stock.recalculation.status.failed") : t.completedAt ? n(l)("inventory.stock.recalculation.status.completed") : n(l)("inventory.stock.recalculation.status.inProgress")), 3)
247
248
  ]),
248
- c("div", Re, s(n(o)("inventory.stock.recalculation.from")) + ": " + s(new Date(t.recalculateStartDate).toLocaleDateString()), 1),
249
- c("div", Fe, s(n(o)("inventory.stock.recalculation.to")) + ": " + s(new Date(t.recalculateEndDate).toLocaleDateString()), 1),
250
- t.createdBy ? (u(), v("div", Be, s(n(o)("inventory.stock.recalculation.requestedBy")) + ": " + s(t.createdBy.name || t.createdBy.id), 1)) : h("", !0),
251
- t.completedAt ? (u(), v("div", Le, s(n(o)("inventory.stock.recalculation.completedAt")) + ": " + s(new Date(t.completedAt).toLocaleString()), 1)) : h("", !0),
252
- t.failedReason ? (u(), v("div", Te, s(t.failedReason), 1)) : h("", !0)
249
+ s("div", Re, c(n(l)("inventory.stock.recalculation.from")) + ": " + c(new Date(t.recalculateStartDate).toLocaleDateString()), 1),
250
+ s("div", Fe, c(n(l)("inventory.stock.recalculation.to")) + ": " + c(new Date(t.recalculateEndDate).toLocaleDateString()), 1),
251
+ t.createdBy ? (d(), v("div", Be, c(n(l)("inventory.stock.recalculation.requestedBy")) + ": " + c(t.createdBy.name || t.createdBy.id), 1)) : h("", !0),
252
+ t.completedAt ? (d(), v("div", Le, c(n(l)("inventory.stock.recalculation.completedAt")) + ": " + c(new Date(t.completedAt).toLocaleString()), 1)) : h("", !0),
253
+ t.failedReason ? (d(), v("div", Te, c(t.failedReason), 1)) : h("", !0)
253
254
  ]))), 128))
254
255
  ])
255
256
  ])) : h("", !0)
@@ -264,35 +265,35 @@ const fe = { class: "fm-typo-en-heading-lg-600" }, ye = { class: "flex flex-col
264
265
  __name: "ClosingHistoryView",
265
266
  setup(J) {
266
267
  var S;
267
- const { t: _ } = z(), T = j(), w = ce(), o = de(), V = f([]), A = f(!1), C = k(() => [
268
+ const { t: _ } = z(), T = j(), w = ce(), l = de(), V = y([]), A = y(!1), C = k(() => [
268
269
  {
269
270
  label: _("inventory.stock.recalculation.title", "Stock Recalculation"),
270
271
  value: "recalculation",
271
272
  prependIcon: "history",
272
273
  isAdminOnly: !0
273
274
  }
274
- ]), p = f();
275
- function i(l) {
276
- var d;
277
- switch (l) {
275
+ ]), p = y();
276
+ function i(a) {
277
+ var u;
278
+ switch (a) {
278
279
  case "recalculation":
279
- return (d = p.value) == null ? void 0 : d.open();
280
+ return (u = p.value) == null ? void 0 : u.open();
280
281
  }
281
282
  }
282
283
  const r = [
283
- ...(S = o.sessionUser.value) != null && S.role.isAdmin ? [
284
+ ...(S = l.sessionUser.value) != null && S.role.isAdmin ? [
284
285
  {
285
286
  accessorKey: "_id",
286
287
  header: () => ae(ie, {}, () => `${_("inventory.closing.history.closingId")}`),
287
- cell: (l) => l.getValue()
288
+ cell: (a) => a.getValue()
288
289
  }
289
290
  ] : [],
290
291
  {
291
292
  accessorKey: "_id",
292
293
  id: "date",
293
294
  header: () => _("inventory.closing.history.date"),
294
- cell: (l) => {
295
- const d = l.getValue(), b = D(d);
295
+ cell: (a) => {
296
+ const u = a.getValue(), b = D(u);
296
297
  return new Date(b).toLocaleDateString();
297
298
  }
298
299
  },
@@ -300,25 +301,25 @@ const fe = { class: "fm-typo-en-heading-lg-600" }, ye = { class: "flex flex-col
300
301
  accessorKey: "_id",
301
302
  id: "time",
302
303
  header: () => _("inventory.closing.history.time"),
303
- cell: (l) => {
304
- const d = l.getValue(), b = D(d);
304
+ cell: (a) => {
305
+ const u = a.getValue(), b = D(u);
305
306
  return new Date(b).toLocaleTimeString();
306
307
  }
307
308
  },
308
309
  {
309
310
  accessorKey: "ref",
310
311
  header: () => _("inventory.closing.history.createdFrom"),
311
- cell: (l) => l.getValue() || "-"
312
+ cell: (a) => a.getValue() || "-"
312
313
  }
313
314
  ];
314
315
  async function m() {
315
316
  if (w.currentLocationDBName) {
316
317
  A.value = !0;
317
318
  try {
318
- const l = await T.getLastNClosings(10);
319
- V.value = l;
320
- } catch (l) {
321
- console.error("Error fetching closings:", l), V.value = [];
319
+ const a = await T.getLastNClosings(30);
320
+ V.value = a;
321
+ } catch (a) {
322
+ console.error("Error fetching closings:", a), V.value = [];
322
323
  } finally {
323
324
  A.value = !1;
324
325
  }
@@ -326,30 +327,31 @@ const fe = { class: "fm-typo-en-heading-lg-600" }, ye = { class: "flex flex-col
326
327
  }
327
328
  return ne(async () => {
328
329
  w.currentLocationDBName && await m();
329
- }), w.watchLocation(m), (l, d) => {
330
+ }), w.watchLocation(m), (a, u) => {
330
331
  const b = x("FmTable");
331
- return u(), B(re, {
332
+ return d(), B(re, {
332
333
  actions: C.value,
333
334
  title: n(_)("inventory.closing.history.title"),
334
335
  "onClick:action": i
335
336
  }, {
336
337
  default: F(() => [
337
- c("div", Ue, [
338
- y(ue, {
338
+ s("div", Ue, [
339
+ f(ue, {
339
340
  "change-location": "",
340
341
  "hide-filter-options": !0
341
342
  }),
342
- y(b, {
343
+ u[1] || (u[1] = s("div", { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, " Displaying the last 30 closing records. ", -1)),
344
+ f(b, {
343
345
  loading: A.value,
344
346
  "row-data": V.value,
345
347
  "column-defs": r
346
348
  }, null, 8, ["loading", "row-data"])
347
349
  ]),
348
- (u(), B(se, { to: "body" }, [
349
- y(Ne, {
350
+ (d(), B(se, { to: "body" }, [
351
+ f(Ne, {
350
352
  ref_key: "recalculationDialogRef",
351
353
  ref: p,
352
- onSubmitted: d[0] || (d[0] = (R) => m())
354
+ onSubmitted: u[0] || (u[0] = (R) => m())
353
355
  }, null, 512)
354
356
  ]))
355
357
  ]),
@@ -1,9 +1,9 @@
1
1
  import { ref as F, h as R, defineComponent as Y, resolveComponent as P, openBlock as $, createElementBlock as M, createElementVNode as y, normalizeClass as q, createTextVNode as le, toDisplayString as S, unref as d, createCommentVNode as z, createVNode as C, withCtx as A, Fragment as j, renderList as W, computed as V, watch as Ae, createSlots as Ee, createBlock as U, isRef as Ye, normalizeStyle as Ke, Teleport as Ge, normalizeProps as qe, guardReactiveProps as Je, mergeProps as We } from "vue";
2
- import { u as de, l as ie, an as Xe, D as ne, j as L, i as Qe, f as Ve, ao as Ze, ap as ae, Y as Ue, aq as pe, X as fe, a as ve, b as et, ar as tt, as as Le, C as nt, E as ot, at as st, e as O, L as G, Q as lt, au as at, r as rt, K as Ne, A as it, ab as se, av as ct, aw as mt, G as ut, I as dt, J as pt } from "./app-Jg8LS2E9.js";
2
+ import { u as de, l as ie, an as Xe, D as ne, j as L, i as Qe, f as Ve, ao as Ze, ap as ae, Y as Ue, aq as pe, X as fe, a as ve, b as et, ar as tt, as as Le, C as nt, E as ot, at as st, e as O, L as G, Q as lt, au as at, r as rt, K as Ne, A as it, ab as se, av as ct, aw as mt, G as ut, I as dt, J as pt } from "./app-DzPAqMfV.js";
3
3
  import { useI18n as K, useCoreStore as ge } from "@feedmepos/mf-common";
4
4
  import { useDialog as ce, useDialogChild as ft, useSnackbar as me, FmButtonVariant as oe, components as H, useProxiedModel as vt, useBreakpoints as gt } from "@feedmepos/ui-library";
5
5
  import { defineStore as Be, storeToRefs as ze } from "pinia";
6
- import { u as yt } from "./use-ingredient-select-dialog-CGvfYQJq.js";
6
+ import { u as yt } from "./use-ingredient-select-dialog-BhVF0zwr.js";
7
7
  const ue = Be(
8
8
  "closingTemplateTable",
9
9
  function() {
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as x, computed as f, ref as h, onMounted as g, openBlock as u, createElementBlock as i, createElementVNode as t, createTextVNode as n, toDisplayString as e, createCommentVNode as d, Fragment as o, renderList as p, normalizeClass as _ } from "vue";
2
2
  import { useRoute as k } from "vue-router";
3
- import { aL as y, aw as w } from "./app-Jg8LS2E9.js";
3
+ import { aL as y, aw as w } from "./app-DzPAqMfV.js";
4
4
  const c = { class: "purchase-box" }, A = { valign: "bottom" }, N = { class: "sub-header" }, O = ["src"], P = { style: { "padding-left": "10px" } }, C = { class: "address" }, D = { class: "text-right" }, R = {
5
5
  key: 0,
6
6
  class: "subtitle"
@@ -1,6 +1,6 @@
1
- import { n as C, t as B, aB as M, u as E, aN as R, aX as D, p as H, aY as U } from "./app-Jg8LS2E9.js";
2
- import { u as z } from "./supplier-haJ4RQlV.js";
3
- import { P as T } from "./format-unit-display-DQARsLT4.js";
1
+ import { n as C, t as B, aB as M, u as E, aN as R, aX as D, p as H, aY as U } from "./app-DzPAqMfV.js";
2
+ import { u as z } from "./supplier-LrosKW2Q.js";
3
+ import { P as T } from "./format-unit-display-D6UHEBQy.js";
4
4
  import { computed as f, defineComponent as j, mergeModels as q, useModel as x, ref as W, resolveComponent as w, openBlock as L, createElementBlock as O, normalizeStyle as $, createElementVNode as N, createVNode as X, withCtx as Y, createBlock as V, createCommentVNode as I, Fragment as J, renderList as K, unref as g } from "vue";
5
5
  function Q(e, a, r) {
6
6
  var o;
@@ -1,7 +1,7 @@
1
1
  import { defineStore as p } from "pinia";
2
2
  import { useDialog as y } from "@feedmepos/ui-library";
3
3
  import { useI18n as v } from "@feedmepos/mf-common";
4
- import { x as a } from "./app-Jg8LS2E9.js";
4
+ import { x as a } from "./app-DzPAqMfV.js";
5
5
  import { h as S } from "vue";
6
6
  const w = p("inventoryMultiSelectDialog", () => {
7
7
  const l = y(), { t: n } = v();
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as ie, mergeModels as W, useModel as ae, computed as v, ref as B, watch as E, onBeforeUnmount as le, inject as ue, resolveComponent as b, openBlock as d, createElementBlock as y, createElementVNode as u, createVNode as h, withCtx as F, renderSlot as G, normalizeClass as $, toDisplayString as A, withDirectives as re, vModelText as me, createCommentVNode as I, createTextVNode as ce, createBlock as U, Fragment as de, renderList as pe } from "vue";
2
- import { $ as D, P as R, z as j, a0 as fe, n as M, aW as ve, t as be, bf as ye, Z as he, aA as Me, aU as ge, aT as xe } from "./app-Jg8LS2E9.js";
2
+ import { $ as D, P as R, z as j, a0 as fe, n as M, aW as ve, t as be, bf as ye, Z as he, aA as Me, aU as ge, aT as xe } from "./app-DzPAqMfV.js";
3
3
  import "@feedmepos/ui-library";
4
4
  function H() {
5
5
  return {
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as De, ref as F, computed as J, watch as ze, resolveComponent as Y, openBlock as N, createElementBlock as D, createVNode as A, normalizeClass as ce, unref as i, createSlots as Ke, withCtx as Q, createElementVNode as n, createBlock as se, toDisplayString as a, createCommentVNode as Z, Fragment as Be, renderList as Pe, shallowRef as $e, h as Ie, createTextVNode as k } from "vue";
2
- import { a as ie, as as je, a0 as Fe, aq as Ve, X as We, n as pe, ap as Re, C as Le, E as Je, G as Xe, I as ke, c as qe } from "./app-Jg8LS2E9.js";
2
+ import { a as ie, as as je, a0 as Fe, aq as Ve, X as We, n as pe, ap as Re, C as Le, E as Je, G as Xe, I as ke, c as qe } from "./app-DzPAqMfV.js";
3
3
  import { useCoreStore as Ce, useI18n as Oe } from "@feedmepos/mf-common";
4
4
  import { useDialogChild as Qe, useSnackbar as He, useDialog as Ye, useBreakpoints as Ze } from "@feedmepos/ui-library";
5
- import { s as et, g as tt, b as nt, d as Ae } from "./import-export.helper-Do4qkk3c.js";
5
+ import { s as et, g as tt, b as nt, d as Ae } from "./import-export.helper-D7FUv1ZN.js";
6
6
  import { r as ot } from "./random-CSbEbElR.js";
7
7
  function Ee() {
8
8
  return `measurement_${(/* @__PURE__ */ new Date()).toISOString()}_${ot()}`;
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as p, openBlock as n, createElementBlock as s, createElementVNode as r, toDisplayString as o, unref as l, Fragment as d, renderList as x } from "vue";
2
- import { n as a, Z as y } from "./app-Jg8LS2E9.js";
2
+ import { n as a, Z as y } from "./app-DzPAqMfV.js";
3
3
  import { useI18n as _ } from "@feedmepos/mf-common";
4
4
  const v = { class: "flex flex-col" }, g = { class: "flex flex-row fm-typo-en-body-md-600 bg-fm-color-neutral-gray-100 text-fm-color-typo-secondary h-48 items-center" }, h = { class: "flex-1 py-8 px-16" }, b = {
5
5
  class: "flex-0 py-8 px-16",
@@ -1,9 +1,9 @@
1
1
  import { ref as A, computed as F, h as C, defineComponent as j, watch as re, resolveComponent as R, openBlock as G, createElementBlock as B, createVNode as b, unref as l, createElementVNode as c, toDisplayString as $, createBlock as M, withCtx as T, Fragment as pe, renderList as ve, createTextVNode as ye, createCommentVNode as se, isRef as ge, normalizeClass as _e, normalizeStyle as be, createSlots as ke, Teleport as xe, normalizeProps as he, guardReactiveProps as we } from "vue";
2
- import { a as P, e as S, f as L, i as Re, D as oe, j as K, P as Ie, A as Se, U as Ge, Q as ue, T as Fe, N as Ve, r as de, V as Ce, y as ae, u as De, G as Ae, I as $e, J as Te, K as Ee, L as le } from "./app-Jg8LS2E9.js";
2
+ import { a as P, e as S, f as L, i as Re, D as oe, j as K, P as Ie, A as Se, U as Ge, Q as ue, T as Fe, N as Ve, r as de, V as Ce, y as ae, u as De, G as Ae, I as $e, J as Te, K as Ee, L as le } from "./app-DzPAqMfV.js";
3
3
  import { useDialog as Me, useSnackbar as J, components as U, useProxiedModel as Ue, useBreakpoints as Be } from "@feedmepos/ui-library";
4
4
  import { useI18n as z, useCoreStore as Le } from "@feedmepos/mf-common";
5
5
  import { defineStore as ce, storeToRefs as ie } from "pinia";
6
- import { u as Pe } from "./FmMultiselectDialog-C-0KIt0z.js";
6
+ import { u as Pe } from "./FmMultiselectDialog-A5K1fbiJ.js";
7
7
  import { r as me } from "./random-CSbEbElR.js";
8
8
  import { u as ze, R as Ne } from "./usePromise-CbVUCxhj.js";
9
9
  const H = ce(
@@ -1,17 +1,17 @@
1
1
  import { ref as B, defineComponent as pe, computed as g, resolveComponent as F, openBlock as u, createElementBlock as w, Fragment as X, unref as o, createVNode as a, withModifiers as Bt, createCommentVNode as L, withCtx as y, createElementVNode as l, toDisplayString as A, normalizeClass as te, renderList as ue, createBlock as D, h as Q, renderSlot as xe, createSlots as Ye, createTextVNode as Ge, mergeModels as it, onMounted as Ot, watch as kt, useModel as Dt, isRef as dt, normalizeStyle as Nt, Teleport as ut, normalizeProps as zt, guardReactiveProps as Lt } from "vue";
2
- import { a as Ce, e as H, f as Tt, S as jt, b as Fe, h as He, i as Wt, D as ct, j as Me, A as Pe, k as wt, l as Vt, n as Ht, o as mt, t as qt, p as Yt, q as pt, r as De, U as Gt, s as Kt, M as Jt, v as vt, w as ft, c as It, x as Ne, _ as Zt, y as yt, z as Qt, B as gt, C as Xt, E as en, N as tn, H as nn, u as ln, G as on, I as an, J as sn, K as rn, L as bt, O as dn } from "./app-Jg8LS2E9.js";
2
+ import { a as Ce, e as H, f as Tt, S as jt, b as Fe, h as He, i as Wt, D as ct, j as Me, A as Pe, k as wt, l as Vt, n as Ht, o as mt, t as qt, p as Yt, q as pt, r as De, U as Gt, s as Kt, M as Jt, v as vt, w as ft, c as It, x as Ne, _ as Zt, y as yt, z as Qt, B as gt, C as Xt, E as en, N as tn, H as nn, u as ln, G as on, I as an, J as sn, K as rn, L as bt, O as dn } from "./app-DzPAqMfV.js";
3
3
  import { useDialog as Re, useSnackbar as Ae, components as ze, useProxiedModel as ht, useDialogChild as un, useBreakpoints as cn } from "@feedmepos/ui-library";
4
4
  import { i as mn, _ as pn } from "./is-linked-ingredient-error-fJ2TJb3z.js";
5
5
  import { useI18n as ve, useCoreStore as St } from "@feedmepos/mf-common";
6
6
  import { defineStore as vn, storeToRefs as fn } from "pinia";
7
- import { g as yn, _ as Le, S as je, a as gn } from "./SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DBYSVdr6.js";
8
- import { _ as bn } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-0K76QWtS.js";
9
- import { _ as We } from "./IngredientBindedItem.vue_vue_type_script_setup_true_lang-DtPc5klg.js";
7
+ import { g as yn, _ as Le, S as je, a as gn } from "./SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-ze5NJ_-a.js";
8
+ import { _ as bn } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-Ds__y-Lo.js";
9
+ import { _ as We } from "./IngredientBindedItem.vue_vue_type_script_setup_true_lang-B3DFrMFL.js";
10
10
  import { _ as he } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
11
- import { d as Ue, g as hn, e as _n, a as xn } from "./import-export.helper-Do4qkk3c.js";
11
+ import { d as Ue, g as hn, e as _n, a as xn } from "./import-export.helper-D7FUv1ZN.js";
12
12
  import { _ as kn } from "./FmCustomAttribute.vue_vue_type_script_setup_true_lang-D-IWRjRD.js";
13
- import { u as Ct } from "./purchase-order-template-DBi99Bo_.js";
14
- import { u as Tn } from "./FmMultiselectDialog-C-0KIt0z.js";
13
+ import { u as Ct } from "./purchase-order-template-CmXUb_MT.js";
14
+ import { u as Tn } from "./FmMultiselectDialog-A5K1fbiJ.js";
15
15
  const qe = vn("ingredientForm", function() {
16
16
  const s = Re(), T = Ae(), r = Ce(), b = B(!1), { t: S } = ve(), U = B();
17
17
  function k() {