@feedmepos/mf-menu 0.32.74-dev.2 → 0.32.75

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-BZJOUASB.js → App-YaDbyXlx.js} +6 -6
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-DzjeYfsJ.js → ApplyProduct.vue_vue_type_script_setup_true_lang-wWqpjocP.js} +3 -3
  3. package/dist/{ApplyProductDialog.vue_vue_type_script_setup_true_lang-eor0uw1Y.js → ApplyProductDialog.vue_vue_type_script_setup_true_lang-DSXpJSSx.js} +3 -3
  4. package/dist/{Catalog-D0umhJUp.js → Catalog-Coh7Tx2f.js} +6 -6
  5. package/dist/{Category-CJmrsNBN.js → Category-Csd5cNhi.js} +4 -4
  6. package/dist/{Category-Bv5dZoqU.js → Category-wd16ogWA.js} +4 -4
  7. package/dist/{CookingGuide-Bh5p7H6A.js → CookingGuide-Cwm624Vt.js} +5 -5
  8. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-BTHIfVPy.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-3X1Uy3Nq.js} +1 -1
  9. package/dist/{Group-CmFBND8g.js → Group-CW7TqMHX.js} +1 -1
  10. package/dist/{Group-C8Q1IzVZ.js → Group-CpN83xB6.js} +3 -3
  11. package/dist/{Group.vue_vue_type_script_setup_true_lang-B7GbWmBQ.js → Group.vue_vue_type_script_setup_true_lang-CkDQXjok.js} +7 -7
  12. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-D2UVK2TK.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-Bes_ab12.js} +5 -5
  13. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-B9ZqKykt.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-DN2IlJSu.js} +7 -7
  14. package/dist/{Ingredient-BpmjZsq4.js → Ingredient-CCB1CXn0.js} +4 -4
  15. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-BurM3XXk.js → InventoryBinding.vue_vue_type_script_setup_true_lang-ClIUh76b.js} +2 -2
  16. package/dist/{LinkProductSideSheet-B-t5u8nb.js → LinkProductSideSheet-ByEP31am.js} +4 -4
  17. package/dist/{MenuSetting-Db2aNWHK.js → MenuSetting-DnUpiccU.js} +7 -7
  18. package/dist/{OrderPacing-DU2DHxAo.js → OrderPacing-CsjUHHTE.js} +5 -5
  19. package/dist/{PrintRoute-DS8Lx8Ri.js → PrintRoute-BulkJjHF.js} +5 -5
  20. package/dist/{Product-CksOjTKQ.js → Product-DiZ3Ivxr.js} +1 -1
  21. package/dist/{Product.vue_vue_type_script_setup_true_lang-70WBdgsM.js → Product.vue_vue_type_script_setup_true_lang-CSDIqhhW.js} +14 -14
  22. package/dist/{ProductInternalTools-DswBFeOb.js → ProductInternalTools-BYlVetAt.js} +6 -6
  23. package/dist/{Products-CD5n0Ltb.js → Products-DPAYyrk_.js} +36 -36
  24. package/dist/{Publish-CFAsGvpA.js → Publish-CvKptEmK.js} +4 -4
  25. package/dist/{Recipe-CZR9PxpD.js → Recipe-CmKXW4lc.js} +5 -5
  26. package/dist/{RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-ButQyFDb.js → RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-PfEb-ZpI.js} +1 -1
  27. package/dist/{RuleView.vue_vue_type_script_setup_true_lang-DvX2UUYM.js → RuleView.vue_vue_type_script_setup_true_lang-BUeA0jiF.js} +211 -211
  28. package/dist/{Scheduler-BGWwvr3d.js → Scheduler-DsXMul0L.js} +3 -3
  29. package/dist/{ServingSequence-CoLqEMgr.js → ServingSequence-NxLGJERU.js} +3 -3
  30. package/dist/{Setting-BDuqIiz2.js → Setting-Cvhgv8cY.js} +5 -5
  31. package/dist/{Subcategory-CKuQ2pml.js → Subcategory-B3zwNI1N.js} +6 -6
  32. package/dist/{Takeaway-Dt7S6z9Y.js → Takeaway-DBZsorSb.js} +4 -4
  33. package/dist/{Takeaway-DUn4mRZx.js → Takeaway-DksB3yNY.js} +1 -1
  34. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-BVJlUn1u.js → Takeaway.vue_vue_type_script_setup_true_lang-DBEqnwFT.js} +5 -5
  35. package/dist/{TranslationFieldSection.vue_vue_type_script_setup_true_lang-r8nutWvj.js → TranslationFieldSection.vue_vue_type_script_setup_true_lang-VgKm5LXU.js} +1 -1
  36. package/dist/{TranslationSideSheet.vue_vue_type_script_setup_true_lang-CF6FVQdM.js → TranslationSideSheet.vue_vue_type_script_setup_true_lang-5b9JTlqf.js} +2 -2
  37. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BH5-P0Kt.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BgtA41z-.js} +15 -15
  38. package/dist/{Unit-sZHi2Guy.js → Unit-gBTrgDix.js} +2 -2
  39. package/dist/{Variant-vmPBmjkL.js → Variant-NTNd7lHW.js} +3 -3
  40. package/dist/{_id_-G5xT-CDM.js → _id_-COkNC1uU.js} +10 -10
  41. package/dist/{app-BCiY6nMZ.js → app-DE92r95F.js} +32 -32
  42. package/dist/{app-CQQONQx1.js → app-DI-lXR40.js} +1 -1
  43. package/dist/app.js +1 -1
  44. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  45. package/dist/assets/{override-menu-CmqY9Tc2.js → linked-status-Pgn_yaVE.js} +3 -3
  46. package/dist/assets/{menu-export-RVHhfZC0.js → menu-export-0Ai3sc0K.js} +3 -3
  47. package/dist/assets/{linked-status-CWeGw11g.js → override-menu-CsIMTk8M.js} +3 -3
  48. package/dist/assets/{validate-menu-C_e-tlnW.js → validate-menu-Dtba61qB.js} +2 -2
  49. package/dist/{catalog-Dn80bXkC.js → catalog-CNIYguO2.js} +1 -1
  50. package/dist/{catalogSetting-XIo6mkWP.js → catalogSetting-Cl-SOFcR.js} +1 -1
  51. package/dist/{currency-BgSIYyGK.js → currency-BKguk5Ng.js} +1 -1
  52. package/dist/{dayjs.min-ByUWJqU9.js → dayjs.min-BBajhvYZ.js} +2 -2
  53. package/dist/{discardConfirm-DoHu8ey7.js → discardConfirm-BS9HO265.js} +1 -1
  54. package/dist/{index-B3VNODTK.js → index-BPgTIvxD.js} +5 -5
  55. package/dist/{index-C7BxlGX6.js → index-CfDpRDeF.js} +1 -1
  56. package/dist/{index-MADgW2jB.js → index-CoLyTKBO.js} +6 -6
  57. package/dist/{index.vue_vue_type_script_setup_true_lang-DAAzVaVe.js → index.vue_vue_type_script_setup_true_lang-Dx_siIYV.js} +439 -439
  58. package/dist/{item-BrzBNpuQ.js → item-BuSRhXS8.js} +1178 -1178
  59. package/dist/{jszip.min-Cy3k9Boh.js → jszip.min-C11vGH5X.js} +384 -384
  60. package/dist/{linkProducts-EknVvUC0.js → linkProducts-CF5SrJOW.js} +4 -4
  61. package/dist/{memberPricing-CDcaR7Xz.js → memberPricing-CDdwfWJ1.js} +1 -1
  62. package/dist/{menu-CIN8mtZY.js → menu-Dkjz_SHU.js} +1 -1
  63. package/dist/{menuV2-iONFEnvV.js → menuV2-BSjbQBsw.js} +58 -58
  64. package/dist/{order_pacing-C-cVrKAt.js → order_pacing-BcRXH_I-.js} +5 -5
  65. package/dist/{priceTier-Nhz0AAh5.js → priceTier-C-FRMh_E.js} +1 -1
  66. package/dist/{rules-CwKc3N3r.js → rules-Ctdz5qdf.js} +3 -3
  67. package/dist/{scheduler-DvQ0P3PV.js → scheduler-Dwvr3-qt.js} +5 -5
  68. package/dist/{toExcel-4gZ8GSKd.js → toExcel-CcqHERvj.js} +2 -2
  69. package/dist/{unit-CmIuFFl0.js → unit-LMuidJGG.js} +3 -3
  70. package/package.json +2 -2
@@ -1,9 +1,9 @@
1
1
  import { computed as m } from "vue";
2
- import { F, g as h, h as S, b as v, i as C, k as N, U as T, u as P, c as z } from "./index.vue_vue_type_script_setup_true_lang-DAAzVaVe.js";
3
- import { u as R } from "./menuV2-iONFEnvV.js";
4
- import { C as w, h as E } from "./catalog-Dn80bXkC.js";
2
+ import { F, g as h, h as S, b as v, i as C, k as N, U as T, u as P, c as z } from "./index.vue_vue_type_script_setup_true_lang-Dx_siIYV.js";
3
+ import { u as R } from "./menuV2-BSjbQBsw.js";
4
+ import { C as w, h as E } from "./catalog-CNIYguO2.js";
5
5
  import { useSnackbar as O, useDialog as A } from "@feedmepos/ui-library";
6
- import { a as b } from "./LinkProductSideSheet-B-t5u8nb.js";
6
+ import { a as b } from "./LinkProductSideSheet-ByEP31am.js";
7
7
  function D() {
8
8
  const e = R(), p = m(() => e.categorizedRawMenuItems.filter((o) => o.items.length > 0)), l = m(() => {
9
9
  const o = e.currentCatalog;
@@ -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-DAAzVaVe.js";
2
+ import { u as h, b as w } from "./index.vue_vue_type_script_setup_true_lang-Dx_siIYV.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-DAAzVaVe.js";
2
+ import { u as c } from "./index.vue_vue_type_script_setup_true_lang-Dx_siIYV.js";
3
3
  import "@feedmepos/mf-common";
4
4
  import "@feedmepos/ui-library";
5
5
  function p() {
@@ -1,10 +1,10 @@
1
1
  var We = Object.defineProperty;
2
2
  var Le = (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) => Le(e, typeof t != "symbol" ? t + "" : t, n);
4
- import { l as ae } from "./discardConfirm-DoHu8ey7.js";
4
+ import { l as ae } from "./discardConfirm-BS9HO265.js";
5
5
  import { defineStore as qe } from "pinia";
6
6
  import { shallowRef as N, ref as H, computed as S, shallowReactive as ze, effectScope as He, watch as Be } from "vue";
7
- import { d as C, f as ue, m as T, k as ie, ar as re, g as B, P as x, c as L, s as V, Y as oe, as as Ge, at as Ye, a as Je, R as Qe, au as Xe, av as Ze, N as et } from "./index.vue_vue_type_script_setup_true_lang-DAAzVaVe.js";
7
+ import { d as C, f as ue, m as T, k as ie, ar as re, g as B, P as x, c as L, s as D, Y as oe, as as Ge, at as Je, a as Ye, R as Qe, au as Xe, av as Ze, N as et } from "./index.vue_vue_type_script_setup_true_lang-Dx_siIYV.js";
8
8
  import { useCoreStore as se } from "@feedmepos/mf-common";
9
9
  import { useSnackbar as tt } from "@feedmepos/ui-library";
10
10
  function nt(e) {
@@ -16,7 +16,7 @@ function nt(e) {
16
16
  }
17
17
  return delete t.variant, delete t.thumbnail, delete t.images, [t, ...n || []];
18
18
  }
19
- const rt = "/assets/linked-status-CWeGw11g.js", ot = "/assets/override-menu-CmqY9Tc2.js";
19
+ const rt = "/assets/linked-status-Pgn_yaVE.js", ot = "/assets/override-menu-CsIMTk8M.js";
20
20
  function st(e, t, n, s) {
21
21
  const r = C(t), u = n ? r.modules.catalog.find((f) => f._id === n) : null, c = s ? r.modules.scheduler.find((f) => f._id === s) : null, a = u ? C(u) : void 0, d = n ? r.modules.catalog.filter((f) => f._id !== n) : [], l = c ? C(c) : void 0, g = e.reduce((f, v) => (f[v._id] = nt(v), f), {});
22
22
  function y(f = []) {
@@ -157,7 +157,7 @@ function ut(e, t) {
157
157
  price: (s == null ? void 0 : s.price) || t.price
158
158
  };
159
159
  }
160
- async function Vt(e, t, n, s, r, u = !0) {
160
+ async function Dt(e, t, n, s, r, u = !0) {
161
161
  const c = C(n), a = u ? st(t, c, s, r) : c, d = t.reduce((y, f) => (y[f._id] = a.modules.item.find((v) => v._id === f._id), y), {}), l = t.reduce((y, f) => {
162
162
  const v = f._id;
163
163
  return y[v] = at(d[v], e), y;
@@ -229,8 +229,8 @@ async function Kt(e, t, n) {
229
229
  const l = (c = d.items) == null ? void 0 : c.find((y) => y._id === n && !y.combinationKey), g = e.modules.item.find((y) => y._id === n);
230
230
  if (l) {
231
231
  const y = (a = d.items) == null ? void 0 : a.filter((v) => v._id === n && v.combinationKey), f = [l, ...y].map((v) => {
232
- var w, I;
233
- const p = v.combinationKey ? (I = (w = g == null ? void 0 : g.variant) == null ? void 0 : w.variantCombinations) == null ? void 0 : I.find(
232
+ var M, I;
233
+ const p = v.combinationKey ? (I = (M = g == null ? void 0 : g.variant) == null ? void 0 : M.variantCombinations) == null ? void 0 : I.find(
234
234
  (E) => E.combinationKey === v.combinationKey
235
235
  ) : g, b = p && g ? u(g, p) : v;
236
236
  return u(b, v);
@@ -243,7 +243,7 @@ async function Kt(e, t, n) {
243
243
  }
244
244
  return r;
245
245
  }
246
- const M = 0, P = 3;
246
+ const w = 0, P = 3;
247
247
  function ct(e) {
248
248
  const t = /^\/(.*)\/([gimyu]*)$/.exec(e.toString());
249
249
  if (!t)
@@ -322,8 +322,8 @@ function dt(e, t, n) {
322
322
  const p = k(e[0]) || Array.isArray(e[0]), b = a.length > 0;
323
323
  if (p || b) {
324
324
  a = [];
325
- for (let w = 0; w < e.length; w++)
326
- a.push({ leftIndex: w, rightIndex: w });
325
+ for (let M = 0; M < e.length; M++)
326
+ a.push({ leftIndex: M, rightIndex: M });
327
327
  }
328
328
  }
329
329
  new Set(a.map((p) => p.leftIndex));
@@ -333,14 +333,14 @@ function dt(e, t, n) {
333
333
  for (let p = 0; p < e.length; p++) {
334
334
  const b = l.get(p);
335
335
  if (b !== void 0) {
336
- const w = Y(e[p], t[b], n);
337
- if (w !== void 0 && (s[b] = w), r && b !== p) {
336
+ const M = J(e[p], t[b], n);
337
+ if (M !== void 0 && (s[b] = M), r && b !== p) {
338
338
  const I = `_${p}`, E = u ? [e[p], b, P] : ["", b, P];
339
339
  s[I] = E;
340
340
  }
341
341
  } else {
342
- const w = `_${p}`;
343
- s[w] = [e[p], M, M];
342
+ const M = `_${p}`;
343
+ s[M] = [e[p], w, w];
344
344
  }
345
345
  }
346
346
  for (let p = 0; p < t.length; p++)
@@ -357,16 +357,16 @@ function mt(e, t, n) {
357
357
  continue;
358
358
  const d = Object.prototype.hasOwnProperty.call(e, a), l = Object.prototype.hasOwnProperty.call(t, a);
359
359
  if (d && l) {
360
- const g = Y(e[a], t[a], n);
360
+ const g = J(e[a], t[a], n);
361
361
  g !== void 0 && (s[a] = g);
362
362
  } else if (d && !l) {
363
363
  const g = n != null && n.omitRemovedValues ? 0 : e[a];
364
- s[a] = [g, M, M];
364
+ s[a] = [g, w, w];
365
365
  } else !d && l && (s[a] = [t[a]]);
366
366
  }
367
367
  return Object.keys(s).length > 0 ? s : void 0;
368
368
  }
369
- function Y(e, t, n) {
369
+ function J(e, t, n) {
370
370
  if (K(e, t)) return;
371
371
  if (e === void 0 && t !== void 0) {
372
372
  const a = n != null && n.cloneDiffValues ? O(t) : t;
@@ -384,14 +384,14 @@ function Y(e, t, n) {
384
384
  return [$(u), $(c)];
385
385
  }
386
386
  function ft(e, t, n) {
387
- return Y(e, t, n);
387
+ return J(e, t, n);
388
388
  }
389
389
  function vt(e, t, n) {
390
390
  const s = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Map();
391
391
  for (const a in t) {
392
392
  if (a === "_t" || !a.startsWith("_")) continue;
393
393
  const d = parseInt(a.slice(1)), l = t[a];
394
- Array.isArray(l) && (l.length === 3 && l[2] === M ? s.add(d) : l.length === 3 && l[2] === P && r.set(d, l[1]));
394
+ Array.isArray(l) && (l.length === 3 && l[2] === w ? s.add(d) : l.length === 3 && l[2] === P && r.set(d, l[1]));
395
395
  }
396
396
  const u = [];
397
397
  let c = 0;
@@ -403,7 +403,7 @@ function vt(e, t, n) {
403
403
  else {
404
404
  for (; c < e.length && s.has(c); )
405
405
  c++;
406
- c < e.length && (u.push(J(e[c], l)), c++);
406
+ c < e.length && (u.push(Y(e[c], l)), c++);
407
407
  }
408
408
  else {
409
409
  let g = !1;
@@ -428,24 +428,24 @@ function yt(e, t, n) {
428
428
  const s = { ...e };
429
429
  for (const r in t) {
430
430
  const u = t[r];
431
- Array.isArray(u) ? u.length === 1 ? s[r] = u[0] : u.length === 3 && u[2] === M ? delete s[r] : u.length === 2 && (s[r] = u[1]) : s[r] = J(s[r], u);
431
+ Array.isArray(u) ? u.length === 1 ? s[r] = u[0] : u.length === 3 && u[2] === w ? delete s[r] : u.length === 2 && (s[r] = u[1]) : s[r] = Y(s[r], u);
432
432
  }
433
433
  return s;
434
434
  }
435
- function J(e, t, n) {
435
+ function Y(e, t, n) {
436
436
  if (t === void 0) return e;
437
437
  if (Array.isArray(t)) {
438
438
  if (t.length === 1)
439
439
  return t[0];
440
440
  if (t.length === 2)
441
441
  return t[1];
442
- if (t.length === 3 && t[2] === M)
442
+ if (t.length === 3 && t[2] === w)
443
443
  return;
444
444
  }
445
445
  return k(t) && t._t === "a" ? vt(e, t) : k(t) && k(e) ? yt(e, t) : e;
446
446
  }
447
447
  function le(e, t, n) {
448
- return J(e, t);
448
+ return Y(e, t);
449
449
  }
450
450
  function gt(e) {
451
451
  const t = { _t: "a" };
@@ -454,7 +454,7 @@ function gt(e) {
454
454
  if (n.startsWith("_")) {
455
455
  const s = parseInt(n.slice(1)), r = e[n];
456
456
  if (Array.isArray(r)) {
457
- if (r.length === 3 && r[2] === M)
457
+ if (r.length === 3 && r[2] === w)
458
458
  t[s] = [r[0]];
459
459
  else if (r.length === 3 && r[2] === P) {
460
460
  const u = r[1];
@@ -464,7 +464,7 @@ function gt(e) {
464
464
  } else {
465
465
  const s = parseInt(n), r = e[n];
466
466
  if (Array.isArray(r) && r.length === 1)
467
- t[`_${s}`] = [r[0], M, M];
467
+ t[`_${s}`] = [r[0], w, w];
468
468
  else {
469
469
  const u = Q(r);
470
470
  u !== void 0 && (t[n] = u);
@@ -477,7 +477,7 @@ function pt(e) {
477
477
  for (const n in e) {
478
478
  const s = e[n];
479
479
  if (Array.isArray(s))
480
- s.length === 1 ? t[n] = [s[0], M, M] : s.length === 3 && s[2] === M ? t[n] = [s[0]] : s.length === 2 && (t[n] = [s[1], s[0]]);
480
+ s.length === 1 ? t[n] = [s[0], w, w] : s.length === 3 && s[2] === w ? t[n] = [s[0]] : s.length === 2 && (t[n] = [s[1], s[0]]);
481
481
  else {
482
482
  const r = Q(s);
483
483
  r !== void 0 && (t[n] = r);
@@ -489,10 +489,10 @@ function Q(e) {
489
489
  if (e !== void 0) {
490
490
  if (Array.isArray(e)) {
491
491
  if (e.length === 1)
492
- return [e[0], M, M];
492
+ return [e[0], w, w];
493
493
  if (e.length === 2)
494
494
  return [e[1], e[0]];
495
- if (e.length === 3 && e[2] === M)
495
+ if (e.length === 3 && e[2] === w)
496
496
  return [e[0]];
497
497
  if (e.length === 3 && e[2] === P)
498
498
  return e;
@@ -558,8 +558,8 @@ function bt({
558
558
  return;
559
559
  let p = C(n.value);
560
560
  for (let b = 1; b <= v; b++) {
561
- const w = s.value[b];
562
- w.delta && (p = t.patch(p, w.delta));
561
+ const M = s.value[b];
562
+ M.delta && (p = t.patch(p, M.delta));
563
563
  }
564
564
  return p;
565
565
  }
@@ -589,7 +589,7 @@ function bt({
589
589
  clear: f
590
590
  };
591
591
  }
592
- const wt = {
592
+ const Mt = {
593
593
  async updateMenuModule(e, t) {
594
594
  const n = B.RequestRunner.operation(t, e.modules);
595
595
  if (n.validateError.length > 0)
@@ -626,7 +626,7 @@ function me() {
626
626
  updatedAt: (/* @__PURE__ */ new Date()).toISOString()
627
627
  };
628
628
  }
629
- function Mt() {
629
+ function wt() {
630
630
  return {
631
631
  restaurants: [],
632
632
  menu: { ...me(), _rev: "" },
@@ -642,7 +642,7 @@ function Mt() {
642
642
  const $t = qe(
643
643
  "mf-menu-store-v2",
644
644
  () => {
645
- const e = ze(Mt()), t = se(), n = tt(), s = S(() => e.menu.modules.serveSequence ? x(e.menu.modules.serveSequence, {
645
+ const e = ze(wt()), t = se(), n = tt(), s = S(() => e.menu.modules.serveSequence ? x(e.menu.modules.serveSequence, {
646
646
  selector: "position"
647
647
  }) : []), r = S(() => {
648
648
  var o;
@@ -665,7 +665,7 @@ const $t = qe(
665
665
  (o) => o._id === e.currentSchedulerId
666
666
  ));
667
667
  function g(o, i = !0) {
668
- e.menu = { ...o, _rev: e.menu._rev }, i && D.push(e.menu);
668
+ e.menu = { ...o, _rev: e.menu._rev }, i && V.push(e.menu);
669
669
  }
670
670
  const y = N(me()), f = H(!1), v = H(1);
671
671
  async function p() {
@@ -702,13 +702,13 @@ const $t = qe(
702
702
  }
703
703
  return y.value = i, f.value = !1, v.value = v.value + 1, i;
704
704
  }
705
- const w = ae.debounce(p, 200);
705
+ const M = ae.debounce(p, 200);
706
706
  let I = null, E = null;
707
707
  function X() {
708
708
  E && (E(), E = null), I && I.stop(), I = He(!0), E = I.run(() => Be(
709
709
  () => [e.menu, e.currentCatalogId, e.currentSchedulerId],
710
710
  () => {
711
- f.value || w();
711
+ f.value || M();
712
712
  }
713
713
  )) || null;
714
714
  }
@@ -732,11 +732,11 @@ const $t = qe(
732
732
  position: 0
733
733
  }
734
734
  ] : [],
735
- ...V(o, (i) => i.name)
735
+ ...D(o, (i) => i.name)
736
736
  ];
737
737
  }), ve = S(() => {
738
738
  const o = y.value.modules.subCategory || [];
739
- return V(o, (i) => i.name);
739
+ return D(o, (i) => i.name);
740
740
  }), ee = S(() => {
741
741
  var i;
742
742
  let o = y.value.modules.item;
@@ -750,13 +750,13 @@ const $t = qe(
750
750
  return (_ == null ? void 0 : _.orderFrom) !== ie.enum.NONE;
751
751
  });
752
752
  }
753
- return V(o, (m) => m.code || m.name);
753
+ return D(o, (m) => m.code || m.name);
754
754
  }), ye = S(() => {
755
- const o = e.menu.modules.category, i = V(o, (h) => h.name).reduce(
755
+ const o = e.menu.modules.category, i = D(o, (h) => h.name).reduce(
756
756
  (h, _, A) => (h[_._id] = A, h),
757
757
  { "": 0 }
758
758
  ), m = e.menu.modules.item;
759
- return V(
759
+ return D(
760
760
  m,
761
761
  (h) => h.code || h.name
762
762
  ).reduce((h, _, A) => (h[_._id] = A + i[_.category || ""], h), {});
@@ -782,12 +782,12 @@ const $t = qe(
782
782
  const i = o.map((h) => j.value.find((_) => _._id === h)).filter((h) => !!h);
783
783
  return T.fullVariantCombination(i).reduce((h, _) => (h[_.combinationKey] = _.selectionName.join(" / "), h), {});
784
784
  }
785
- const _e = S(() => V(y.value.modules.group, (o) => o.name)), Se = S(() => x(y.value.modules.takeaway, { selector: "name" })), be = S(() => x(e.menu.modules.printDepartment || [], {
785
+ const _e = S(() => D(y.value.modules.group, (o) => o.name)), Se = S(() => x(y.value.modules.takeaway, { selector: "name" })), be = S(() => x(e.menu.modules.printDepartment || [], {
786
786
  selector: "name"
787
- })), we = S(() => x(e.menu.modules.unit, { selector: "name" })), Me = S(() => x(Ge(e.menu.modules.recipe, e.menu.modules.sku), {
787
+ })), Me = S(() => x(e.menu.modules.unit, { selector: "name" })), we = S(() => x(Ge(e.menu.modules.recipe, e.menu.modules.sku), {
788
788
  selector: "name"
789
789
  })), Ae = S(() => e.menu.modules.cookingGuide), Ce = S(() => {
790
- const o = Ye(e.menu.modules.sku);
790
+ const o = Je(e.menu.modules.sku);
791
791
  return x(o, { selector: "code" });
792
792
  }), Ie = S(() => {
793
793
  const o = /* @__PURE__ */ new Map();
@@ -883,7 +883,7 @@ const $t = qe(
883
883
  }
884
884
  const Re = S(() => {
885
885
  var h;
886
- const o = ["SV5", "SV10"], i = Je.Country.getCountryFlattenTaxes(
886
+ const o = ["SV5", "SV10"], i = Ye.Country.getCountryFlattenTaxes(
887
887
  se().currentCountry.value
888
888
  ), m = i.filter((_) => u.value || !o.includes(_.taxCode)).map((_) => ({
889
889
  label: `${_.name} (${Qe(_.rate)}%)`,
@@ -912,9 +912,9 @@ const $t = qe(
912
912
  });
913
913
  }, te = (o) => {
914
914
  e.currentCatalogId = o;
915
- }, De = (o) => {
916
- e.currentSchedulerId = o;
917
915
  }, Ve = (o) => {
916
+ e.currentSchedulerId = o;
917
+ }, De = (o) => {
918
918
  e.currentCategoryIds = o;
919
919
  }, Te = (o) => {
920
920
  e.currentRestaurantAttrParams = o;
@@ -933,7 +933,7 @@ const $t = qe(
933
933
  const A = await Xe(h, e.menu.modules);
934
934
  if (A !== !0) throw new Error(A);
935
935
  }
936
- const _ = await wt.updateMenuModule(e.menu, h);
936
+ const _ = await Mt.updateMenuModule(e.menu, h);
937
937
  return g(_.menu), _;
938
938
  } catch (_) {
939
939
  n.open({
@@ -950,14 +950,14 @@ const $t = qe(
950
950
  priceTierSettings: o.priceTierSettings
951
951
  };
952
952
  return g(i), i;
953
- }, D = bt({ maxHistorySize: 50 }), $e = S(() => D.canUndo.value), Fe = S(() => D.canRedo.value), Ne = () => {
954
- const o = D.undo();
953
+ }, V = bt({ maxHistorySize: 50 }), $e = S(() => V.canUndo.value), Fe = S(() => V.canRedo.value), Ne = () => {
954
+ const o = V.undo();
955
955
  o && g(o, !1);
956
956
  }, je = () => {
957
- const o = D.redo();
957
+ const o = V.redo();
958
958
  o && g(o, !1);
959
959
  }, Ue = () => {
960
- D.clear();
960
+ V.clear();
961
961
  };
962
962
  return {
963
963
  state: e,
@@ -986,8 +986,8 @@ const $t = qe(
986
986
  groups: _e,
987
987
  takeaways: Se,
988
988
  printDepartments: be,
989
- units: we,
990
- recipes: Me,
989
+ units: Me,
990
+ recipes: we,
991
991
  cookingGuide: Ae,
992
992
  skus: Ce,
993
993
  rules: U,
@@ -997,8 +997,8 @@ const $t = qe(
997
997
  readMenu: xe,
998
998
  readRestaurants: Oe,
999
999
  selectCatalog: te,
1000
- selectScheduler: De,
1001
- selectCategory: Ve,
1000
+ selectScheduler: Ve,
1001
+ selectCategory: De,
1002
1002
  setRestaurantAttrParams: Te,
1003
1003
  updateMenu: Pe,
1004
1004
  updateMenuSetting: Ke,
@@ -1015,7 +1015,7 @@ const $t = qe(
1015
1015
  redoHistory: je,
1016
1016
  // cleanup
1017
1017
  $dispose: () => {
1018
- w.cancel(), E && (E(), E = null), I && (I.stop(), I = null), Ue();
1018
+ M.cancel(), E && (E(), E = null), I && (I.stop(), I = null), Ue();
1019
1019
  },
1020
1020
  $reinitialize: () => {
1021
1021
  X();
@@ -1028,7 +1028,7 @@ export {
1028
1028
  Kt as f,
1029
1029
  Tt as g,
1030
1030
  nt as i,
1031
- Vt as m,
1031
+ Dt as m,
1032
1032
  it as o,
1033
1033
  $t as u
1034
1034
  };
@@ -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 M, renderSlot as ee, renderList as H, toDisplayString as $, createCommentVNode as ae, getCurrentInstance as te, render as ne } from "vue";
2
- import { u as Y, i as oe, b as le, g as B, h as K } from "./index.vue_vue_type_script_setup_true_lang-DAAzVaVe.js";
2
+ import { u as Y, i as oe, b as le, g as B, h as K } from "./index.vue_vue_type_script_setup_true_lang-Dx_siIYV.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 J, u as se } from "./RuleView.vue_vue_type_script_setup_true_lang-DvX2UUYM.js";
5
+ import { _ as J, u as se } from "./RuleView.vue_vue_type_script_setup_true_lang-BUeA0jiF.js";
6
6
  import { c as de } from "./object-DVUNCr7w.js";
7
- import { _ as ue } from "./app-BCiY6nMZ.js";
8
- import { L as ce } from "./LinkProductSideSheet-B-t5u8nb.js";
7
+ import { _ as ue } from "./app-DE92r95F.js";
8
+ import { L as ce } from "./LinkProductSideSheet-ByEP31am.js";
9
9
  import { u as me } from "./search-BAPEUu1R.js";
10
- import { _ as pe } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-CF6FVQdM.js";
10
+ import { _ as pe } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-5b9JTlqf.js";
11
11
  import { c as ge } from "./check-C9mY6LiX.js";
12
12
  import { g as G } 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-DAAzVaVe.js";
4
+ import { u as k, b as M } from "./index.vue_vue_type_script_setup_true_lang-Dx_siIYV.js";
5
5
  const b = /* @__PURE__ */ d({
6
6
  __name: "AddPriceGroupDialog",
7
7
  setup(s) {
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as I, watch as P, ref as E, computed as w, resolveComponent as _, createElementBlock as h, openBlock as F, 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 { g as v, h as C, u as Y } from "./index.vue_vue_type_script_setup_true_lang-DAAzVaVe.js";
2
+ import { g as v, h as C, u as Y } from "./index.vue_vue_type_script_setup_true_lang-Dx_siIYV.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-iONFEnvV.js";
6
- import { _ as $ } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-CF6FVQdM.js";
5
+ import { u as R } from "./menuV2-BSjbQBsw.js";
6
+ import { _ as $ } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-5b9JTlqf.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 ce, computed as T, resolveComponent as p, createElementBlock as r, openBlock as s, createVNode as t, createCommentVNode as k, unref as a, toDisplayString as D, createElementVNode as y, withCtx as m, Fragment as $, renderList as N, createBlock as Y, ref as L, Transition as de, createTextVNode as he } from "vue";
2
- import { u as ge, l as Ve } from "./discardConfirm-DoHu8ey7.js";
3
- import { d as w, A as U, u as ke, F as Fe, B as q, g as ie, h as re, Q as me } from "./index.vue_vue_type_script_setup_true_lang-DAAzVaVe.js";
2
+ import { u as ge, l as Ve } from "./discardConfirm-BS9HO265.js";
3
+ import { d as w, A as U, u as ke, F as Fe, B as q, g as ie, h as re, Q as me } from "./index.vue_vue_type_script_setup_true_lang-Dx_siIYV.js";
4
4
  import { useI18n as pe, useAppLocale as be, prefersHour12 as xe } from "@feedmepos/mf-common";
5
5
  import { components as Ce } from "@feedmepos/ui-library";
6
6
  import { _ as Se } from "./FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js";
7
- import { _ as se } from "./RuleView.vue_vue_type_script_setup_true_lang-DvX2UUYM.js";
8
- import { u as we } from "./menu-CIN8mtZY.js";
9
- import { L as Pe } from "./LinkProductSideSheet-B-t5u8nb.js";
7
+ import { _ as se } from "./RuleView.vue_vue_type_script_setup_true_lang-BUeA0jiF.js";
8
+ import { u as we } from "./menu-Dkjz_SHU.js";
9
+ import { L as Pe } from "./LinkProductSideSheet-ByEP31am.js";
10
10
  const Ee = { class: "space-y-8" }, Ue = {
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-B9ZqKykt.js";
2
- import "./discardConfirm-DoHu8ey7.js";
1
+ import { u as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-DN2IlJSu.js";
2
+ import "./discardConfirm-BS9HO265.js";
3
3
  var Z = {
4
4
  defaultAmount: 0,
5
5
  defaultCurrency: "USD",
@@ -1,12 +1,12 @@
1
1
  import { defineStore as H } from "pinia";
2
2
  import { defineComponent as M, computed as x, ref as A, watch as S, resolveComponent as V, createBlock as J, openBlock as F, withCtx as w, createVNode as m, createElementVNode as f, normalizeClass as Q, createElementBlock as C, toDisplayString as k, unref as l, Fragment as O, renderSlot as X, renderList as Z, getCurrentInstance as ee } from "vue";
3
- import { E as P, G as te, C as B, d as E, i as $, b as j, m as h, D as ne, g as T, h as D, u as oe } from "./index.vue_vue_type_script_setup_true_lang-DAAzVaVe.js";
3
+ import { E as P, G as te, C as B, d as E, i as $, b as j, m as h, D as ne, g as T, h as D, u as oe } from "./index.vue_vue_type_script_setup_true_lang-Dx_siIYV.js";
4
4
  import { useI18n as q } from "@feedmepos/mf-common";
5
5
  import { useSnackbar as I, components as ae, useDialog as le, FmButtonVariant as ue } from "@feedmepos/ui-library";
6
- import { u as ie, l as se } from "./discardConfirm-DoHu8ey7.js";
6
+ import { u as ie, l as se } from "./discardConfirm-BS9HO265.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-iONFEnvV.js";
9
+ import "./menuV2-BSjbQBsw.js";
10
10
  import "./app-5fxKLAzS.js";
11
11
  /* empty css */
12
12
  import { c as me } from "./createComponentProgrammatically-Bt2rn1IQ.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-menu",
3
- "version": "0.32.74-dev.2",
3
+ "version": "0.32.75",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -56,7 +56,7 @@
56
56
  "vue3-lottie": "^3.3.0",
57
57
  "vuedraggable": "^4.1.0",
58
58
  "xlsx": "^0.18.5",
59
- "@feedmepos/mf-common": "^1.29.31"
59
+ "@feedmepos/mf-common": "^1.29.32"
60
60
  },
61
61
  "devDependencies": {
62
62
  "@rollup/plugin-commonjs": "^28.0.2",