@feedmepos/mf-menu 0.32.57 → 0.32.58-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 (70) hide show
  1. package/dist/{App-DUxN7yt3.js → App-Cu010rh6.js} +7 -7
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-Cnjt_wfR.js → ApplyProduct.vue_vue_type_script_setup_true_lang-B6a2IB4d.js} +3 -3
  3. package/dist/{ApplyProductDialog.vue_vue_type_script_setup_true_lang-bM6TM5x1.js → ApplyProductDialog.vue_vue_type_script_setup_true_lang-BFaLXVm6.js} +2 -2
  4. package/dist/{Catalog-BpdfaEWd.js → Catalog-XsNkNzBy.js} +6 -6
  5. package/dist/{Category-CRsvI23c.js → Category-BUAWwxVh.js} +4 -4
  6. package/dist/{Category-h0mVpwHr.js → Category-DuMHSMg5.js} +4 -4
  7. package/dist/{CookingGuide-DFgQ2jxt.js → CookingGuide-FQL3uJMA.js} +4 -4
  8. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-D8nqY4jC.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-B7k5HE5K.js} +1 -1
  9. package/dist/{Group-slvcd4if.js → Group-DvvnKQeR.js} +1 -1
  10. package/dist/{Group-PG5pxNfh.js → Group-t2enQJJk.js} +3 -3
  11. package/dist/{Group.vue_vue_type_script_setup_true_lang-Ca0RTf7d.js → Group.vue_vue_type_script_setup_true_lang-Dkv59o9J.js} +6 -6
  12. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BpeIXVCs.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-D_F7qAQj.js} +5 -5
  13. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-Ck2KAv76.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-BRuZqASN.js} +7 -7
  14. package/dist/{Ingredient-xKI7y0XB.js → Ingredient-Db9WaDHm.js} +3 -3
  15. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-CH3jTi1A.js → InventoryBinding.vue_vue_type_script_setup_true_lang-BueqvvrP.js} +2 -2
  16. package/dist/{LinkProductSideSheet-BF_00Jg8.js → LinkProductSideSheet-CcKpJzuu.js} +3 -3
  17. package/dist/{MenuSetting-BAbfo028.js → MenuSetting-CpsaSK2F.js} +6 -6
  18. package/dist/{OrderPacing-BPz3MCxe.js → OrderPacing-CfJr4zLM.js} +5 -5
  19. package/dist/{PrintRoute-CiXCACml.js → PrintRoute-st5l4z_o.js} +4 -4
  20. package/dist/{Product-DrSEg6_V.js → Product-dLBEfiMu.js} +1 -1
  21. package/dist/{Product.vue_vue_type_script_setup_true_lang-BsgdvCz2.js → Product.vue_vue_type_script_setup_true_lang-dsm976qc.js} +12 -12
  22. package/dist/{ProductInternalTools-BerUVFF6.js → ProductInternalTools-m6pQW27F.js} +6 -6
  23. package/dist/{Products-DhJlfhP5.js → Products-COXcPc0r.js} +38 -38
  24. package/dist/{Publish-BAjNPk_P.js → Publish-CdAXNHho.js} +3 -3
  25. package/dist/{Recipe-CkVcMchR.js → Recipe-1_xPZA70.js} +4 -4
  26. package/dist/{RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-CSZz_CAP.js → RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-iokZGhJ6.js} +1 -1
  27. package/dist/{RuleView.vue_vue_type_script_setup_true_lang-DVQKrN9R.js → RuleView.vue_vue_type_script_setup_true_lang-COG3i-xY.js} +460 -460
  28. package/dist/{Scheduler-Dj1MR5rm.js → Scheduler-CFwvPIeC.js} +3 -3
  29. package/dist/{ServingSequence-BqsD44ye.js → ServingSequence-DRmhcARH.js} +3 -3
  30. package/dist/{Setting-DMSyoLbv.js → Setting-DFaLeSpK.js} +5 -5
  31. package/dist/{Subcategory-CZ4i-zBw.js → Subcategory-B4rsI3k3.js} +5 -5
  32. package/dist/{Takeaway-Bl9Srdio.js → Takeaway-C-5ohbKU.js} +4 -4
  33. package/dist/{Takeaway-qHbk6yp-.js → Takeaway-DvZsjRLk.js} +1 -1
  34. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-C6z0FcYx.js → Takeaway.vue_vue_type_script_setup_true_lang-C0gIPYxv.js} +5 -5
  35. package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-DZSD2_pk.js → Thumbnail.vue_vue_type_script_setup_true_lang-BxUp8i1r.js} +4 -4
  36. package/dist/{TranslationFieldSection.vue_vue_type_script_setup_true_lang-C74nkozY.js → TranslationFieldSection.vue_vue_type_script_setup_true_lang-CrpW2qGo.js} +1 -1
  37. package/dist/{TranslationSideSheet.vue_vue_type_script_setup_true_lang-BI5I0IXp.js → TranslationSideSheet.vue_vue_type_script_setup_true_lang-2Uyqt_CM.js} +2 -2
  38. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DMd8Z0TE.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-B5ENFjqy.js} +14 -14
  39. package/dist/{Unit-DXysALJ4.js → Unit-B_BfMiqd.js} +2 -2
  40. package/dist/{Variant-pFLHZVO9.js → Variant-J-SuZHnI.js} +3 -3
  41. package/dist/{_id_-4-U7cNsx.js → _id_-39Sg2EE9.js} +9 -9
  42. package/dist/{app-CR7NhNht.js → app-B8HzzXDs.js} +1 -1
  43. package/dist/{app-D2NOhx2Z.js → app-C9kNrlAy.js} +32 -32
  44. package/dist/app.js +1 -1
  45. package/dist/apps/mf-menu/src/manager/menu/group.d.ts +1 -1
  46. package/dist/apps/mf-menu/src/manager/menu/groupImmutableFields.d.ts +9 -0
  47. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  48. package/dist/assets/{linked-status-DYxk695w.js → linked-status-Cp8FwUaT.js} +2 -2
  49. package/dist/assets/{menu-export-CyN_O3Kf.js → menu-export-C-OckA4f.js} +2 -2
  50. package/dist/assets/{override-menu-BTTTU6jX.js → override-menu-C2HTFVjX.js} +2 -2
  51. package/dist/assets/{validate-menu-C2al0uj-.js → validate-menu-DDCTccO2.js} +2 -2
  52. package/dist/{catalog-BF2fCHSi.js → catalog-CLMM1gFY.js} +1 -1
  53. package/dist/{catalogSetting-BCrV4DCa.js → catalogSetting-1TunwQ88.js} +1 -1
  54. package/dist/{currency-DrKjxBJB.js → currency-BLWl20fP.js} +1 -1
  55. package/dist/{dayjs.min-DzJl7L78.js → dayjs.min-DHr1l5S_.js} +2 -2
  56. package/dist/{index-Dhou0UEg.js → index-CN3s3H68.js} +5 -5
  57. package/dist/{index-Bxm8mZ6g.js → index-DEG0LWHU.js} +4 -4
  58. package/dist/{index.vue_vue_type_script_setup_true_lang-CKIfNp-a.js → index.vue_vue_type_script_setup_true_lang-DtNW5Amu.js} +6 -6
  59. package/dist/{item-Dyckwjo-.js → item-Be-o2PPD.js} +27 -27
  60. package/dist/{jszip.min-ByutR7rj.js → jszip.min-FmA4ZFsQ.js} +175 -175
  61. package/dist/{memberPricing-BMRI1Z7U.js → memberPricing-CMGWvEzf.js} +1 -1
  62. package/dist/{menu-CDzIVGfu.js → menu-CJc25kms.js} +1 -1
  63. package/dist/{menuV2-puLrcFs3.js → menuV2-Cwtxn2qd.js} +96 -96
  64. package/dist/{order_pacing-Cs212Wff.js → order_pacing-B2UTf2Yg.js} +5 -5
  65. package/dist/{priceTier-WPgZnKsU.js → priceTier-BOG0g2nn.js} +1 -1
  66. package/dist/{rules-DCnNMPmp.js → rules-k6RKEkjE.js} +3 -3
  67. package/dist/{scheduler-BWWxcljn.js → scheduler-B5Cdeq45.js} +4 -4
  68. package/dist/{toExcel-DuXu6LJi.js → toExcel-D3InlPlu.js} +2 -2
  69. package/dist/{unit-DLzvIszm.js → unit-BPpW2Pih.js} +2 -2
  70. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as d, ref as _, watch as S, resolveComponent as b, createBlock as f, openBlock as y, unref as M, computed as T } from "vue";
2
- import { u as h, B as w } from "./index.vue_vue_type_script_setup_true_lang-CKIfNp-a.js";
2
+ import { u as h, B as w } from "./index.vue_vue_type_script_setup_true_lang-DtNW5Amu.js";
3
3
  import { useI18n as l } from "@feedmepos/mf-common";
4
4
  import { useDialogChild as x, useDialog as C, useSnackbar as P } from "@feedmepos/ui-library";
5
5
  const k = /* @__PURE__ */ d({
@@ -1,5 +1,5 @@
1
1
  import { computed as n, onMounted as d, onBeforeUnmount as m } from "vue";
2
- import { u as c } from "./index.vue_vue_type_script_setup_true_lang-CKIfNp-a.js";
2
+ import { u as c } from "./index.vue_vue_type_script_setup_true_lang-DtNW5Amu.js";
3
3
  import "@feedmepos/mf-common";
4
4
  import "@feedmepos/ui-library";
5
5
  function p() {
@@ -1,19 +1,19 @@
1
1
  var We = Object.defineProperty;
2
2
  var ze = (e, t, n) => t in e ? We(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var ne = (e, t, n) => ze(e, typeof t != "symbol" ? t + "" : t, n);
4
- import { I as ae, G as I, A as V, U as ue, ax as re, J as B, H as ie, aj as x, c as z, a0 as D, au as oe, ay as Le, az as qe, z as Be, am as He, aA as Ge, aB as Je, ah as Ye } from "./index.vue_vue_type_script_setup_true_lang-CKIfNp-a.js";
4
+ import { I as ae, G as C, A as D, U as ue, ax as re, J as q, H as ie, aj as x, c as z, a0 as T, au as oe, ay as Le, az as He, z as qe, am as Be, aA as Ge, aB as Je, ah as Ye } from "./index.vue_vue_type_script_setup_true_lang-DtNW5Amu.js";
5
5
  import { defineStore as Xe } from "pinia";
6
- import { shallowRef as j, ref as H, computed as S, shallowReactive as Qe, effectScope as Ze, watch as et } from "vue";
6
+ import { shallowRef as j, ref as B, computed as S, shallowReactive as Qe, effectScope as Ze, watch as et } from "vue";
7
7
  import { useCoreStore as se } from "@feedmepos/mf-common";
8
8
  import { useSnackbar as tt } from "@feedmepos/ui-library";
9
- const nt = "/assets/linked-status-DYxk695w.js", rt = "/assets/override-menu-BTTTU6jX.js";
9
+ const nt = "/assets/linked-status-Cp8FwUaT.js", rt = "/assets/override-menu-C2HTFVjX.js";
10
10
  function ot(e) {
11
11
  var s;
12
- const t = I(e), n = (s = t.variant) == null ? void 0 : s.variantCombinations;
12
+ const t = C(e), n = (s = t.variant) == null ? void 0 : s.variantCombinations;
13
13
  return delete t.variant, delete t.thumbnail, [t, ...n || []];
14
14
  }
15
15
  function st(e, t, n, s) {
16
- const o = I(t), u = n ? o.modules.catalog.find((f) => f._id === n) : null, l = s ? o.modules.scheduler.find((f) => f._id === s) : null, a = u ? I(u) : void 0, d = n ? o.modules.catalog.filter((f) => f._id !== n) : [], c = l ? I(l) : void 0, g = e.reduce((f, v) => (f[v._id] = ot(v), f), {});
16
+ const o = C(t), u = n ? o.modules.catalog.find((f) => f._id === n) : null, l = s ? o.modules.scheduler.find((f) => f._id === s) : null, a = u ? C(u) : void 0, d = n ? o.modules.catalog.filter((f) => f._id !== n) : [], c = l ? C(l) : void 0, g = e.reduce((f, v) => (f[v._id] = ot(v), f), {});
17
17
  function y(f = []) {
18
18
  const v = e.map((h) => h._id);
19
19
  return [
@@ -49,7 +49,7 @@ function st(e, t, n, s) {
49
49
  _id: o._id
50
50
  };
51
51
  }
52
- function F(e, t, n) {
52
+ function $(e, t, n) {
53
53
  var u;
54
54
  if (n >= 3) return e;
55
55
  const s = t.modules.item.find((l) => l._id === e._id);
@@ -64,8 +64,8 @@ function F(e, t, n) {
64
64
  const v = (h = a.items) == null ? void 0 : h.find(
65
65
  (b) => b._id === f._id && b.combinationKey === f.combinationKey
66
66
  );
67
- return F(v || f, t, n + 1);
68
- })) ?? [] : d = ((y = l.items) == null ? void 0 : y.map((f) => F(f, t, n + 1))) ?? [], {
67
+ return $(v || f, t, n + 1);
68
+ })) ?? [] : d = ((y = l.items) == null ? void 0 : y.map((f) => $(f, t, n + 1))) ?? [], {
69
69
  ...l,
70
70
  items: d
71
71
  };
@@ -86,17 +86,17 @@ function at(e, t) {
86
86
  (f) => f._id === d._id && f.combinationKey === d.combinationKey
87
87
  );
88
88
  if (c)
89
- return F(c, t, 1);
89
+ return $(c, t, 1);
90
90
  const g = {
91
- ...V.generator.initMenuV4ItemOverrider(),
91
+ ...D.generator.initMenuV4ItemOverrider(),
92
92
  _id: d._id,
93
93
  combinationKey: d.combinationKey
94
94
  };
95
- return F(g, t, 1);
95
+ return $(g, t, 1);
96
96
  });
97
97
  return { ...u, items: a };
98
- }), s = e.variant ? e.variant.variantCombinations.map((u) => F(u, t, 1)) : [], o = {
99
- ...V.generator.initMenuV4ItemOverrider(),
98
+ }), s = e.variant ? e.variant.variantCombinations.map((u) => $(u, t, 1)) : [], o = {
99
+ ...D.generator.initMenuV4ItemOverrider(),
100
100
  _id: e._id,
101
101
  name: e.name,
102
102
  code: e.code,
@@ -152,11 +152,11 @@ function ut(e, t) {
152
152
  price: (s == null ? void 0 : s.price) || t.price
153
153
  };
154
154
  }
155
- async function Tt(e, t, n, s, o, u = !0) {
156
- const l = I(n), a = u ? st(t, l, s, o) : l, d = t.reduce((y, f) => (y[f._id] = a.modules.item.find((v) => v._id === f._id), y), {}), c = t.reduce((y, f) => {
155
+ async function Vt(e, t, n, s, o, u = !0) {
156
+ const l = C(n), a = u ? st(t, l, s, o) : l, d = t.reduce((y, f) => (y[f._id] = a.modules.item.find((v) => v._id === f._id), y), {}), c = t.reduce((y, f) => {
157
157
  const v = f._id;
158
158
  return y[v] = at(d[v], e), y;
159
- }, {}), g = V.getFallbackPrices({
159
+ }, {}), g = D.getFallbackPrices({
160
160
  rawMenu: a,
161
161
  items: c,
162
162
  catalogId: s || void 0,
@@ -170,7 +170,7 @@ async function Tt(e, t, n, s, o, u = !0) {
170
170
  };
171
171
  });
172
172
  }
173
- function Dt(e, t) {
173
+ function Tt(e, t) {
174
174
  if (e.length === 0) return "";
175
175
  const n = e == null ? void 0 : e.split("variant");
176
176
  return ((n == null ? void 0 : n.reduce((o, u) => {
@@ -184,7 +184,7 @@ function Dt(e, t) {
184
184
  }, [])) || []).join(" / ");
185
185
  }
186
186
  const L = /* @__PURE__ */ new Map();
187
- async function Vt(e, t) {
187
+ async function Dt(e, t) {
188
188
  const n = `${e._id}-${e.updatedAt}-${t}`;
189
189
  if (L.has(n))
190
190
  return L.get(n);
@@ -204,18 +204,18 @@ async function ce(e, t, n) {
204
204
  schedulerId: n
205
205
  });
206
206
  }
207
- const q = /* @__PURE__ */ new Map();
207
+ const H = /* @__PURE__ */ new Map();
208
208
  async function it(e, t, n) {
209
209
  const s = `${e._id}-${e.updatedAt}-${t || "null"}-${n || "null"}`;
210
- if (q.has(s))
211
- return q.get(s);
210
+ if (H.has(s))
211
+ return H.get(s);
212
212
  const o = await ce(e, t, n);
213
- return q.set(s, o), o;
213
+ return H.set(s, o), o;
214
214
  }
215
- async function Kt(e, t, n) {
215
+ async function Ft(e, t, n) {
216
216
  var l, a;
217
217
  const s = await it(e, t, null), o = [], u = (d, c) => {
218
- const g = I(d);
218
+ const g = C(d);
219
219
  for (const y in c)
220
220
  c[y] && (g[y] = c[y]);
221
221
  return g;
@@ -224,8 +224,8 @@ async function Kt(e, t, n) {
224
224
  const c = (l = d.items) == null ? void 0 : l.find((y) => y._id === n && !y.combinationKey), g = e.modules.item.find((y) => y._id === n);
225
225
  if (c) {
226
226
  const y = (a = d.items) == null ? void 0 : a.filter((v) => v._id === n && v.combinationKey), f = [c, ...y].map((v) => {
227
- var w, C;
228
- const h = v.combinationKey ? (C = (w = g == null ? void 0 : g.variant) == null ? void 0 : w.variantCombinations) == null ? void 0 : C.find(
227
+ var w, I;
228
+ const h = v.combinationKey ? (I = (w = g == null ? void 0 : g.variant) == null ? void 0 : w.variantCombinations) == null ? void 0 : I.find(
229
229
  (E) => E.combinationKey === v.combinationKey
230
230
  ) : g, b = h && g ? u(g, h) : v;
231
231
  return u(b, v);
@@ -238,7 +238,7 @@ async function Kt(e, t, n) {
238
238
  }
239
239
  return o;
240
240
  }
241
- const M = 0, K = 3;
241
+ const M = 0, F = 3;
242
242
  function ct(e) {
243
243
  const t = /^\/(.*)\/([gimyu]*)$/.exec(e.toString());
244
244
  if (!t)
@@ -261,13 +261,13 @@ function O(e) {
261
261
  Object.prototype.hasOwnProperty.call(e, n) && (t[n] = O(e[n]));
262
262
  return t;
263
263
  }
264
- function $(e) {
264
+ function P(e) {
265
265
  return e instanceof RegExp ? e.toString() : e;
266
266
  }
267
267
  function k(e) {
268
268
  return typeof e == "object" && e !== null && !Array.isArray(e) && !(e instanceof Date) && !(e instanceof RegExp);
269
269
  }
270
- function P(e, t) {
270
+ function K(e, t) {
271
271
  if (e === t) return !0;
272
272
  if (typeof e != typeof t) return !1;
273
273
  if (e instanceof Date && t instanceof Date)
@@ -277,14 +277,14 @@ function P(e, t) {
277
277
  if (Array.isArray(e) && Array.isArray(t)) {
278
278
  if (e.length !== t.length) return !1;
279
279
  for (let n = 0; n < e.length; n++)
280
- if (!P(e[n], t[n])) return !1;
280
+ if (!K(e[n], t[n])) return !1;
281
281
  return !0;
282
282
  }
283
283
  if (k(e) && k(t)) {
284
284
  const n = Object.keys(e), s = Object.keys(t);
285
285
  if (n.length !== s.length) return !1;
286
286
  for (const o of n)
287
- if (!Object.prototype.hasOwnProperty.call(t, o) || !P(e[o], t[o])) return !1;
287
+ if (!Object.prototype.hasOwnProperty.call(t, o) || !K(e[o], t[o])) return !1;
288
288
  return !0;
289
289
  }
290
290
  return !1;
@@ -300,7 +300,7 @@ function lt(e, t, n) {
300
300
  const c = e[d], g = n ? n(c) : JSON.stringify(c), y = u.get(g);
301
301
  if (y) {
302
302
  for (const f of y)
303
- if (!a.has(f) && P(c, t[f])) {
303
+ if (!a.has(f) && K(c, t[f])) {
304
304
  l.push({ leftIndex: d, rightIndex: f }), a.add(f);
305
305
  break;
306
306
  }
@@ -310,7 +310,7 @@ function lt(e, t, n) {
310
310
  }
311
311
  function dt(e, t, n) {
312
312
  var f, v;
313
- if (P(e, t)) return;
313
+ if (K(e, t)) return;
314
314
  const s = { _t: "a" }, o = ((f = n == null ? void 0 : n.arrays) == null ? void 0 : f.detectMove) !== !1, u = ((v = n == null ? void 0 : n.arrays) == null ? void 0 : v.includeValueOnMove) === !0, l = n == null ? void 0 : n.objectHash;
315
315
  let a = o ? lt(e, t, l) : [];
316
316
  if (!l && e.length === t.length && e.length > 0 && a.length < e.length) {
@@ -330,8 +330,8 @@ function dt(e, t, n) {
330
330
  if (b !== void 0) {
331
331
  const w = J(e[h], t[b], n);
332
332
  if (w !== void 0 && (s[b] = w), o && b !== h) {
333
- const C = `_${h}`, E = u ? [e[h], b, K] : ["", b, K];
334
- s[C] = E;
333
+ const I = `_${h}`, E = u ? [e[h], b, F] : ["", b, F];
334
+ s[I] = E;
335
335
  }
336
336
  } else {
337
337
  const w = `_${h}`;
@@ -345,7 +345,7 @@ function dt(e, t, n) {
345
345
  return s;
346
346
  }
347
347
  function mt(e, t, n) {
348
- if (P(e, t)) return;
348
+ if (K(e, t)) return;
349
349
  const s = {}, o = Object.keys(e), u = Object.keys(t), l = /* @__PURE__ */ new Set([...o, ...u]);
350
350
  for (const a of l) {
351
351
  if (n != null && n.propertyFilter && !n.propertyFilter(a, { left: e, right: t }))
@@ -362,21 +362,21 @@ function mt(e, t, n) {
362
362
  return Object.keys(s).length > 0 ? s : void 0;
363
363
  }
364
364
  function J(e, t, n) {
365
- if (P(e, t)) return;
365
+ if (K(e, t)) return;
366
366
  if (e === void 0 && t !== void 0) {
367
367
  const a = n != null && n.cloneDiffValues ? O(t) : t;
368
- return [$(a)];
368
+ return [P(a)];
369
369
  }
370
370
  if (typeof e !== typeof t || e instanceof Date != t instanceof Date || e instanceof RegExp != t instanceof RegExp || Array.isArray(e) !== Array.isArray(t)) {
371
371
  const a = n != null && n.cloneDiffValues ? O(e) : e, d = n != null && n.cloneDiffValues ? O(t) : t;
372
- return [$(a), $(d)];
372
+ return [P(a), P(d)];
373
373
  }
374
374
  if (Array.isArray(e) && Array.isArray(t))
375
375
  return dt(e, t, n);
376
376
  if (k(e) && k(t))
377
377
  return mt(e, t, n);
378
378
  const u = n != null && n.cloneDiffValues ? O(e) : e, l = n != null && n.cloneDiffValues ? O(t) : t;
379
- return [$(u), $(l)];
379
+ return [P(u), P(l)];
380
380
  }
381
381
  function ft(e, t, n) {
382
382
  return J(e, t, n);
@@ -386,7 +386,7 @@ function vt(e, t, n) {
386
386
  for (const a in t) {
387
387
  if (a === "_t" || !a.startsWith("_")) continue;
388
388
  const d = parseInt(a.slice(1)), c = t[a];
389
- Array.isArray(c) && (c.length === 3 && c[2] === M ? s.add(d) : c.length === 3 && c[2] === K && o.set(d, c[1]));
389
+ Array.isArray(c) && (c.length === 3 && c[2] === M ? s.add(d) : c.length === 3 && c[2] === F && o.set(d, c[1]));
390
390
  }
391
391
  const u = [];
392
392
  let l = 0;
@@ -451,9 +451,9 @@ function gt(e) {
451
451
  if (Array.isArray(o)) {
452
452
  if (o.length === 3 && o[2] === M)
453
453
  t[s] = [o[0]];
454
- else if (o.length === 3 && o[2] === K) {
454
+ else if (o.length === 3 && o[2] === F) {
455
455
  const u = o[1];
456
- t[`_${u}`] = [o[0], s, K];
456
+ t[`_${u}`] = [o[0], s, F];
457
457
  }
458
458
  }
459
459
  } else {
@@ -489,7 +489,7 @@ function X(e) {
489
489
  return [e[1], e[0]];
490
490
  if (e.length === 3 && e[2] === M)
491
491
  return [e[0]];
492
- if (e.length === 3 && e[2] === K)
492
+ if (e.length === 3 && e[2] === F)
493
493
  return e;
494
494
  }
495
495
  return k(e) && e._t === "a" ? gt(e) : k(e) ? ht(e) : e;
@@ -536,22 +536,22 @@ function bt({
536
536
  includeValueOnMove: !1
537
537
  },
538
538
  cloneDiffValues: !1
539
- }), n = j(null), s = j([]), o = H(-1), u = j(null), l = S(() => o.value > 0), a = S(() => o.value < s.value.length - 1);
539
+ }), n = j(null), s = j([]), o = B(-1), u = j(null), l = S(() => o.value > 0), a = S(() => o.value < s.value.length - 1);
540
540
  function d(v) {
541
541
  if (n.value === null) {
542
- n.value = I(v), u.value = I(v), s.value = [{ delta: null }], o.value = 0;
542
+ n.value = C(v), u.value = C(v), s.value = [{ delta: null }], o.value = 0;
543
543
  return;
544
544
  }
545
545
  const h = t.diff(u.value, v);
546
- if (o.value < s.value.length - 1 && (s.value = s.value.slice(0, o.value + 1)), s.value.push({ delta: h }), o.value++, u.value = I(v), s.value.length > e) {
546
+ if (o.value < s.value.length - 1 && (s.value = s.value.slice(0, o.value + 1)), s.value.push({ delta: h }), o.value++, u.value = C(v), s.value.length > e) {
547
547
  const b = s.value[1].delta;
548
- b && n.value && (n.value = t.patch(I(n.value), b)), s.value.shift(), o.value--;
548
+ b && n.value && (n.value = t.patch(C(n.value), b)), s.value.shift(), o.value--;
549
549
  }
550
550
  }
551
551
  function c(v) {
552
552
  if (!n.value || v < 0 || v >= s.value.length)
553
553
  return;
554
- let h = I(n.value);
554
+ let h = C(n.value);
555
555
  for (let b = 1; b <= v; b++) {
556
556
  const w = s.value[b];
557
557
  w.delta && (h = t.patch(h, w.delta));
@@ -562,14 +562,14 @@ function bt({
562
562
  if (l.value) {
563
563
  o.value--;
564
564
  const v = c(o.value);
565
- return v && (u.value = I(v)), v;
565
+ return v && (u.value = C(v)), v;
566
566
  }
567
567
  }
568
568
  function y() {
569
569
  if (a.value) {
570
570
  o.value++;
571
571
  const v = c(o.value);
572
- return v && (u.value = I(v)), v;
572
+ return v && (u.value = C(v)), v;
573
573
  }
574
574
  }
575
575
  function f() {
@@ -586,7 +586,7 @@ function bt({
586
586
  }
587
587
  const wt = {
588
588
  async updateMenuModule(e, t) {
589
- const n = B.RequestRunner.operation(t, e.modules);
589
+ const n = q.RequestRunner.operation(t, e.modules);
590
590
  if (n.validateError.length > 0)
591
591
  throw new Error(n.validateError.join(`
592
592
  `));
@@ -634,7 +634,7 @@ function Mt() {
634
634
  }
635
635
  };
636
636
  }
637
- const Pt = Xe(
637
+ const Kt = Xe(
638
638
  "mf-menu-store-v2",
639
639
  () => {
640
640
  const e = Qe(Mt()), t = se(), n = tt(), s = S(() => e.menu.modules.serveSequence ? x(e.menu.modules.serveSequence, {
@@ -650,7 +650,7 @@ const Pt = Xe(
650
650
  let r = e.menu.modules.catalog.find(
651
651
  (m) => m._id === e.currentCatalogId
652
652
  );
653
- return r && ((i = r.linkItemRules) != null && i.length) && (r = V.populateCatalog({
653
+ return r && ((i = r.linkItemRules) != null && i.length) && (r = D.populateCatalog({
654
654
  catalog: r,
655
655
  ruleGroupSettings: e.menu.ruleGroupSettings,
656
656
  items: e.menu.modules.item,
@@ -660,15 +660,15 @@ const Pt = Xe(
660
660
  (r) => r._id === e.currentSchedulerId
661
661
  ));
662
662
  function g(r, i = !0) {
663
- e.menu = { ...r, _rev: e.menu._rev }, i && T.push(e.menu);
663
+ e.menu = { ...r, _rev: e.menu._rev }, i && V.push(e.menu);
664
664
  }
665
- const y = j(me()), f = H(!1), v = H(1);
665
+ const y = j(me()), f = B(!1), v = B(1);
666
666
  async function h() {
667
667
  var m;
668
668
  f.value = !0;
669
669
  let r = e.menu.modules.catalog;
670
670
  if (a.value && ((m = a.value.linkItemRules) != null && m.length)) {
671
- const p = V.populateCatalog({
671
+ const p = D.populateCatalog({
672
672
  catalog: a.value,
673
673
  ruleGroupSettings: e.menu.ruleGroupSettings,
674
674
  items: e.menu.modules.item,
@@ -698,9 +698,9 @@ const Pt = Xe(
698
698
  return y.value = i, f.value = !1, v.value = v.value + 1, i;
699
699
  }
700
700
  const w = ie.debounce(h, 200);
701
- let C = null, E = null;
701
+ let I = null, E = null;
702
702
  function Q() {
703
- E && (E(), E = null), C && C.stop(), C = Ze(!0), E = C.run(() => et(
703
+ E && (E(), E = null), I && I.stop(), I = Ze(!0), E = I.run(() => et(
704
704
  () => [e.menu, e.currentCatalogId, e.currentSchedulerId],
705
705
  () => {
706
706
  f.value || w();
@@ -727,11 +727,11 @@ const Pt = Xe(
727
727
  position: 0
728
728
  }
729
729
  ] : [],
730
- ...D(r, (i) => i.name)
730
+ ...T(r, (i) => i.name)
731
731
  ];
732
732
  }), ve = S(() => {
733
733
  const r = y.value.modules.subCategory || [];
734
- return D(r, (i) => i.name);
734
+ return T(r, (i) => i.name);
735
735
  }), ee = S(() => {
736
736
  var i;
737
737
  let r = y.value.modules.item;
@@ -745,13 +745,13 @@ const Pt = Xe(
745
745
  return (_ == null ? void 0 : _.orderFrom) !== ue.enum.NONE;
746
746
  });
747
747
  }
748
- return D(r, (m) => m.code || m.name);
748
+ return T(r, (m) => m.code || m.name);
749
749
  }), ye = S(() => {
750
- const r = e.menu.modules.category, i = D(r, (p) => p.name).reduce(
750
+ const r = e.menu.modules.category, i = T(r, (p) => p.name).reduce(
751
751
  (p, _, A) => (p[_._id] = A, p),
752
752
  { "": 0 }
753
753
  ), m = e.menu.modules.item;
754
- return D(
754
+ return T(
755
755
  m,
756
756
  (p) => p.code || p.name
757
757
  ).reduce((p, _, A) => (p[_._id] = A + i[_.category || ""], p), {});
@@ -775,16 +775,16 @@ const Pt = Xe(
775
775
  });
776
776
  function pe(r = []) {
777
777
  const i = r.map((p) => N.value.find((_) => _._id === p)).filter((p) => !!p);
778
- return V.fullVariantCombination(i).reduce((p, _) => (p[_.combinationKey] = _.selectionName.join(" / "), p), {});
778
+ return D.fullVariantCombination(i).reduce((p, _) => (p[_.combinationKey] = _.selectionName.join(" / "), p), {});
779
779
  }
780
- const _e = S(() => D(y.value.modules.group, (r) => r.name)), Se = S(() => x(y.value.modules.takeaway, { selector: "name" })), be = S(() => x(e.menu.modules.printDepartment || [], {
780
+ const _e = S(() => T(y.value.modules.group, (r) => r.name)), Se = S(() => x(y.value.modules.takeaway, { selector: "name" })), be = S(() => x(e.menu.modules.printDepartment || [], {
781
781
  selector: "name"
782
782
  })), we = S(() => x(e.menu.modules.unit, { selector: "name" })), Me = S(() => x(Le(e.menu.modules.recipe, e.menu.modules.sku), {
783
783
  selector: "name"
784
- })), Ae = S(() => e.menu.modules.cookingGuide), Ie = S(() => {
785
- const r = qe(e.menu.modules.sku);
784
+ })), Ae = S(() => e.menu.modules.cookingGuide), Ce = S(() => {
785
+ const r = He(e.menu.modules.sku);
786
786
  return x(r, { selector: "code" });
787
- }), Ce = S(() => {
787
+ }), Ie = S(() => {
788
788
  const r = /* @__PURE__ */ new Map();
789
789
  return e.menu.modules.item.forEach((i) => {
790
790
  var m, p;
@@ -877,10 +877,10 @@ const Pt = Xe(
877
877
  }
878
878
  const Re = S(() => {
879
879
  var p;
880
- const r = ["SV5", "SV10"], i = Be.Country.getCountryFlattenTaxes(
880
+ const r = ["SV5", "SV10"], i = qe.Country.getCountryFlattenTaxes(
881
881
  se().currentCountry.value
882
882
  ), m = i.filter((_) => u.value || !r.includes(_.taxCode)).map((_) => ({
883
- label: `${_.name} (${He(_.rate)}%)`,
883
+ label: `${_.name} (${Be(_.rate)}%)`,
884
884
  value: W(_),
885
885
  meta: {
886
886
  rate: _.rate
@@ -902,13 +902,13 @@ const Pt = Xe(
902
902
  });
903
903
  }, te = (r) => {
904
904
  e.currentCatalogId = r;
905
- }, Te = (r) => {
905
+ }, Ve = (r) => {
906
906
  e.currentSchedulerId = r;
907
- }, De = (r) => {
907
+ }, Te = (r) => {
908
908
  e.currentCategoryIds = r;
909
- }, Ve = (r) => {
909
+ }, De = (r) => {
910
910
  e.currentRestaurantAttrParams = r;
911
- }, Ke = async (r, i) => {
911
+ }, Fe = async (r, i) => {
912
912
  const m = Array.isArray(r) ? r : [r];
913
913
  if (!m.length) return;
914
914
  const p = m.map((_) => ({
@@ -918,7 +918,7 @@ const Pt = Xe(
918
918
  }));
919
919
  try {
920
920
  if (i || p.some(
921
- (A) => [B.F_OPERATION_TYPE.delete, B.F_OPERATION_TYPE.deleteMany].includes(A.operation)
921
+ (A) => [q.F_OPERATION_TYPE.delete, q.F_OPERATION_TYPE.deleteMany].includes(A.operation)
922
922
  )) {
923
923
  const A = await Ge(p, e.menu.modules);
924
924
  if (A !== !0) throw new Error(A);
@@ -932,7 +932,7 @@ const Pt = Xe(
932
932
  message: _
933
933
  });
934
934
  }
935
- }, Pe = async (r) => {
935
+ }, Ke = async (r) => {
936
936
  const i = {
937
937
  ...e.menu,
938
938
  masterCatalogSetting: r.masterCatalogSetting,
@@ -940,14 +940,14 @@ const Pt = Xe(
940
940
  priceTierSettings: r.priceTierSettings
941
941
  };
942
942
  return g(i), i;
943
- }, T = bt({ maxHistorySize: 50 }), $e = S(() => T.canUndo.value), Fe = S(() => T.canRedo.value), je = () => {
944
- const r = T.undo();
943
+ }, V = bt({ maxHistorySize: 50 }), Pe = S(() => V.canUndo.value), $e = S(() => V.canRedo.value), je = () => {
944
+ const r = V.undo();
945
945
  r && g(r, !1);
946
946
  }, Ne = () => {
947
- const r = T.redo();
947
+ const r = V.redo();
948
948
  r && g(r, !1);
949
949
  }, Ue = () => {
950
- T.clear();
950
+ V.clear();
951
951
  };
952
952
  return {
953
953
  state: e,
@@ -969,7 +969,7 @@ const Pt = Xe(
969
969
  subcategories: ve,
970
970
  items: ee,
971
971
  sortedItems: ye,
972
- itemCodeMap: Ce,
972
+ itemCodeMap: Ie,
973
973
  categorizedItems: ge,
974
974
  categorizedRawMenuItems: he,
975
975
  variants: N,
@@ -979,7 +979,7 @@ const Pt = Xe(
979
979
  units: we,
980
980
  recipes: Me,
981
981
  cookingGuide: Ae,
982
- skus: Ie,
982
+ skus: Ce,
983
983
  rules: U,
984
984
  taxSetting: Re,
985
985
  // Action
@@ -987,11 +987,11 @@ const Pt = Xe(
987
987
  readMenu: xe,
988
988
  readRestaurants: Oe,
989
989
  selectCatalog: te,
990
- selectScheduler: Te,
991
- selectCategory: De,
992
- setRestaurantAttrParams: Ve,
993
- updateMenu: Ke,
994
- updateMenuSetting: Pe,
990
+ selectScheduler: Ve,
991
+ selectCategory: Te,
992
+ setRestaurantAttrParams: De,
993
+ updateMenu: Fe,
994
+ updateMenuSetting: Ke,
995
995
  computeMergedMenu: h,
996
996
  // helper
997
997
  encodeTax: W,
@@ -999,13 +999,13 @@ const Pt = Xe(
999
999
  getSelectedTax: ke,
1000
1000
  mapVariant: pe,
1001
1001
  // history
1002
- canUndoHistory: $e,
1003
- canRedoHistory: Fe,
1002
+ canUndoHistory: Pe,
1003
+ canRedoHistory: $e,
1004
1004
  undoHistory: je,
1005
1005
  redoHistory: Ne,
1006
1006
  // cleanup
1007
1007
  $dispose: () => {
1008
- w.cancel(), E && (E(), E = null), C && (C.stop(), C = null), Ue();
1008
+ w.cancel(), E && (E(), E = null), I && (I.stop(), I = null), Ue();
1009
1009
  },
1010
1010
  $reinitialize: () => {
1011
1011
  Q();
@@ -1014,10 +1014,10 @@ const Pt = Xe(
1014
1014
  }
1015
1015
  );
1016
1016
  export {
1017
- Vt as a,
1018
- Kt as f,
1019
- Dt as g,
1020
- Tt as m,
1017
+ Dt as a,
1018
+ Ft as f,
1019
+ Tt as g,
1020
+ Vt as m,
1021
1021
  it as o,
1022
- Pt as u
1022
+ Kt as u
1023
1023
  };
@@ -1,13 +1,13 @@
1
1
  import { defineComponent as q, ref as V, h as S, computed as N, resolveComponent as I, createBlock as X, openBlock as w, unref as l, withCtx as x, createElementVNode as k, createVNode as v, watch as Z, createElementBlock as L, Fragment as B, renderSlot as ee, renderList as G, toDisplayString as $, createCommentVNode as ae, getCurrentInstance as te, render as ne } from "vue";
2
- import { u as Y, P as oe, B as le, J as M, K } from "./index.vue_vue_type_script_setup_true_lang-CKIfNp-a.js";
2
+ import { u as Y, P as oe, B as le, J as M, K } from "./index.vue_vue_type_script_setup_true_lang-DtNW5Amu.js";
3
3
  import { useI18n as R } from "@feedmepos/mf-common";
4
4
  import { components as A, FmButtonVariant as re, FmButtonColorThemeVariant as j, useSnackbar as ie } from "@feedmepos/ui-library";
5
- import { _ as H, u as se } from "./RuleView.vue_vue_type_script_setup_true_lang-DVQKrN9R.js";
5
+ import { _ as H, u as se } from "./RuleView.vue_vue_type_script_setup_true_lang-COG3i-xY.js";
6
6
  import { c as de } from "./object-DVUNCr7w.js";
7
- import { _ as ue } from "./app-D2NOhx2Z.js";
8
- import { L as ce } from "./LinkProductSideSheet-BF_00Jg8.js";
7
+ import { _ as ue } from "./app-C9kNrlAy.js";
8
+ import { L as ce } from "./LinkProductSideSheet-CcKpJzuu.js";
9
9
  import { u as me } from "./search-BAPEUu1R.js";
10
- import { _ as pe } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-BI5I0IXp.js";
10
+ import { _ as pe } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-2Uyqt_CM.js";
11
11
  import { c as ge } from "./check-C9mY6LiX.js";
12
12
  import { g as J } from "./translation-fNx6yEpy.js";
13
13
  import { c as _e } from "./createComponentProgrammatically-Bt2rn1IQ.js";
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as d, ref as g, watch as _, resolveComponent as S, createBlock as T, openBlock as f, unref as y, computed as h } from "vue";
2
2
  import { useI18n as m } from "@feedmepos/mf-common";
3
3
  import { useDialogChild as w, useDialog as x, useSnackbar as C } from "@feedmepos/ui-library";
4
- import { u as k, B as M } from "./index.vue_vue_type_script_setup_true_lang-CKIfNp-a.js";
4
+ import { u as k, B as M } from "./index.vue_vue_type_script_setup_true_lang-DtNW5Amu.js";
5
5
  const v = /* @__PURE__ */ d({
6
6
  __name: "AddPriceGroupDialog",
7
7
  setup(s) {
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as I, watch as h, ref as E, computed as w, resolveComponent as _, createElementBlock as F, openBlock as P, Fragment as M, createVNode as f, unref as g, withCtx as b, createElementVNode as O, renderList as q, toDisplayString as S } from "vue";
2
- import { J as v, K as C, u as Y } from "./index.vue_vue_type_script_setup_true_lang-CKIfNp-a.js";
2
+ import { J as v, K as C, u as Y } from "./index.vue_vue_type_script_setup_true_lang-DtNW5Amu.js";
3
3
  import { useI18n as D } from "@feedmepos/mf-common";
4
4
  import { useDialogChild as k } from "@feedmepos/ui-library";
5
- import { u as R } from "./menuV2-puLrcFs3.js";
6
- import { _ as $ } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-BI5I0IXp.js";
5
+ import { u as R } from "./menuV2-Cwtxn2qd.js";
6
+ import { _ as $ } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-2Uyqt_CM.js";
7
7
  import { g as N } from "./translation-fNx6yEpy.js";
8
8
  const B = { class: "py-12 px-16 space-y-4" }, U = /* @__PURE__ */ I({
9
9
  __name: "AddSubcategoryDialogContentComponent",
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as re, computed as N, resolveComponent as v, createElementBlock as d, openBlock as u, createVNode as t, createCommentVNode as V, unref as n, toDisplayString as O, createElementVNode as _, withCtx as p, Fragment as R, renderList as I, createBlock as q, ref as B, Transition as de, createTextVNode as fe } from "vue";
2
- import { G as w, a6 as $, u as ye, y as _e, a7 as L, H as he, J as se, K as ie, ak as ce } from "./index.vue_vue_type_script_setup_true_lang-CKIfNp-a.js";
2
+ import { G as w, a6 as $, u as ye, y as _e, a7 as L, H as he, J as se, K as ie, ak as ce } from "./index.vue_vue_type_script_setup_true_lang-DtNW5Amu.js";
3
3
  import { useI18n as me } from "@feedmepos/mf-common";
4
4
  import { components as ge } from "@feedmepos/ui-library";
5
5
  import { _ as Ve } from "./FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js";
6
- import { _ as ue } from "./RuleView.vue_vue_type_script_setup_true_lang-DVQKrN9R.js";
6
+ import { _ as ue } from "./RuleView.vue_vue_type_script_setup_true_lang-COG3i-xY.js";
7
7
  import { u as ke } from "./discardConfirm-BHni0LNu.js";
8
- import { u as be } from "./menu-CDzIVGfu.js";
9
- import { L as Fe } from "./LinkProductSideSheet-BF_00Jg8.js";
8
+ import { u as be } from "./menu-CJc25kms.js";
9
+ import { L as Fe } from "./LinkProductSideSheet-CcKpJzuu.js";
10
10
  const xe = { class: "space-y-8" }, Ce = {
11
11
  key: 0,
12
12
  class: "space-y-16"
@@ -1,5 +1,5 @@
1
- import { u as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-Ck2KAv76.js";
2
- import "./index.vue_vue_type_script_setup_true_lang-CKIfNp-a.js";
1
+ import { u as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-BRuZqASN.js";
2
+ import "./index.vue_vue_type_script_setup_true_lang-DtNW5Amu.js";
3
3
  var Z = {
4
4
  defaultAmount: 0,
5
5
  defaultCurrency: "USD",
@@ -1,12 +1,12 @@
1
1
  import { defineStore as J } from "pinia";
2
2
  import { defineComponent as S, computed as x, ref as A, watch as D, resolveComponent as V, createBlock as W, openBlock as F, withCtx as w, createVNode as m, createElementVNode as f, normalizeClass as Q, createElementBlock as k, toDisplayString as C, unref as l, Fragment as L, renderSlot as X, renderList as Z, getCurrentInstance as ee } from "vue";
3
- import { aa as N, ab as te, a8 as O, G as E, P as $, B as j, A as h, a9 as ne, J as T, K as M, H as ae, u as oe } from "./index.vue_vue_type_script_setup_true_lang-CKIfNp-a.js";
3
+ import { aa as N, ab as te, a8 as O, G as E, P as $, B as j, A as h, a9 as ne, J as T, K as M, H as ae, u as oe } from "./index.vue_vue_type_script_setup_true_lang-DtNW5Amu.js";
4
4
  import { useI18n as P } from "@feedmepos/mf-common";
5
5
  import { useSnackbar as I, components as le, useDialog as ue, FmButtonVariant as ie } from "@feedmepos/ui-library";
6
6
  import { u as se } from "./discardConfirm-BHni0LNu.js";
7
7
  import { c as re } from "./check-C9mY6LiX.js";
8
8
  import "./RuleConditionSelector.vue_vue_type_style_index_0_lang-CK8z7qA8.js";
9
- import "./menuV2-puLrcFs3.js";
9
+ import "./menuV2-Cwtxn2qd.js";
10
10
  import "./app-5fxKLAzS.js";
11
11
  /* empty css */
12
12
  import { c as me } from "./createComponentProgrammatically-Bt2rn1IQ.js";