@feedmepos/mf-menu 0.32.57 → 0.32.58

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-DfUun7yx.js} +5 -5
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-Cnjt_wfR.js → ApplyProduct.vue_vue_type_script_setup_true_lang-Db3V4FWf.js} +3 -3
  3. package/dist/{ApplyProductDialog.vue_vue_type_script_setup_true_lang-bM6TM5x1.js → ApplyProductDialog.vue_vue_type_script_setup_true_lang-QnLOXk6w.js} +2 -2
  4. package/dist/{Catalog-BpdfaEWd.js → Catalog-CMKzTRzJ.js} +6 -6
  5. package/dist/{Category-CRsvI23c.js → Category-ChSuwg8M.js} +4 -4
  6. package/dist/{Category-h0mVpwHr.js → Category-rBT0IClB.js} +4 -4
  7. package/dist/{CookingGuide-DFgQ2jxt.js → CookingGuide-Dep5WgKp.js} +4 -4
  8. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-D8nqY4jC.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-C39YAMZs.js} +1 -1
  9. package/dist/{Group-PG5pxNfh.js → Group-DSv02uyB.js} +3 -3
  10. package/dist/{Group-slvcd4if.js → Group-pv3hOVGw.js} +1 -1
  11. package/dist/{Group.vue_vue_type_script_setup_true_lang-Ca0RTf7d.js → Group.vue_vue_type_script_setup_true_lang-C4DKWMpP.js} +6 -6
  12. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BpeIXVCs.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BpIXz3JX.js} +5 -5
  13. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-Ck2KAv76.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-X7civFqp.js} +7 -7
  14. package/dist/{Ingredient-xKI7y0XB.js → Ingredient-DuJUeNCv.js} +3 -3
  15. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-CH3jTi1A.js → InventoryBinding.vue_vue_type_script_setup_true_lang-B3fjn3Eq.js} +2 -2
  16. package/dist/{LinkProductSideSheet-BF_00Jg8.js → LinkProductSideSheet-CTP5S-Zg.js} +3 -3
  17. package/dist/{MenuSetting-BAbfo028.js → MenuSetting-ESQAFoul.js} +6 -6
  18. package/dist/{OrderPacing-BPz3MCxe.js → OrderPacing-wtlotr1V.js} +5 -5
  19. package/dist/{PrintRoute-CiXCACml.js → PrintRoute-he0nST_J.js} +4 -4
  20. package/dist/{Product-DrSEg6_V.js → Product-DfNrujwF.js} +1 -1
  21. package/dist/{Product.vue_vue_type_script_setup_true_lang-BsgdvCz2.js → Product.vue_vue_type_script_setup_true_lang-DEjlIutB.js} +12 -12
  22. package/dist/{ProductInternalTools-BerUVFF6.js → ProductInternalTools-C6GvvEBe.js} +5 -5
  23. package/dist/{Products-DhJlfhP5.js → Products-BJpriuKL.js} +43 -43
  24. package/dist/{Publish-BAjNPk_P.js → Publish-BYqm0QMT.js} +3 -3
  25. package/dist/{Recipe-CkVcMchR.js → Recipe-DLgkivfd.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-ck8eq4g-.js} +1 -1
  27. package/dist/{RuleView.vue_vue_type_script_setup_true_lang-DVQKrN9R.js → RuleView.vue_vue_type_script_setup_true_lang-BNwtSwXa.js} +187 -187
  28. package/dist/{Scheduler-Dj1MR5rm.js → Scheduler-BQXsaqdq.js} +3 -3
  29. package/dist/{ServingSequence-BqsD44ye.js → ServingSequence-eON_2NCq.js} +3 -3
  30. package/dist/{Setting-DMSyoLbv.js → Setting-EWeqXE6x.js} +5 -5
  31. package/dist/{Subcategory-CZ4i-zBw.js → Subcategory-DYfuszjD.js} +5 -5
  32. package/dist/{Takeaway-qHbk6yp-.js → Takeaway-DMaABobh.js} +1 -1
  33. package/dist/{Takeaway-Bl9Srdio.js → Takeaway-DuO5zCDe.js} +4 -4
  34. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-C6z0FcYx.js → Takeaway.vue_vue_type_script_setup_true_lang-BVV0b_VQ.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-h1mV0YPI.js} +4 -4
  36. package/dist/{TranslationFieldSection.vue_vue_type_script_setup_true_lang-C74nkozY.js → TranslationFieldSection.vue_vue_type_script_setup_true_lang-BLz1VgYH.js} +1 -1
  37. package/dist/{TranslationSideSheet.vue_vue_type_script_setup_true_lang-BI5I0IXp.js → TranslationSideSheet.vue_vue_type_script_setup_true_lang-C4qUo_U2.js} +2 -2
  38. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DMd8Z0TE.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-C0LKKDQR.js} +13 -13
  39. package/dist/{Unit-DXysALJ4.js → Unit-Bfq_eLE0.js} +2 -2
  40. package/dist/{Variant-pFLHZVO9.js → Variant-DfO1USUM.js} +3 -3
  41. package/dist/{_id_-4-U7cNsx.js → _id_-aI4hkVmh.js} +9 -9
  42. package/dist/{app-CR7NhNht.js → app-B9XTv0Xs.js} +1 -1
  43. package/dist/{app-D2NOhx2Z.js → app-CyW5XJI3.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-U1wmb4W5.js} +2 -2
  49. package/dist/assets/{menu-export-CyN_O3Kf.js → menu-export-T0iXp2XS.js} +2 -2
  50. package/dist/assets/{override-menu-BTTTU6jX.js → override-menu-Bebekq7W.js} +2 -2
  51. package/dist/assets/{validate-menu-C2al0uj-.js → validate-menu-CPmbcmm9.js} +2 -2
  52. package/dist/{catalog-BF2fCHSi.js → catalog-DICSt776.js} +1 -1
  53. package/dist/{catalogSetting-BCrV4DCa.js → catalogSetting-DNX559ff.js} +1 -1
  54. package/dist/{currency-DrKjxBJB.js → currency-D1OkTYPb.js} +1 -1
  55. package/dist/{dayjs.min-DzJl7L78.js → dayjs.min-w8HGgSmB.js} +2 -2
  56. package/dist/{index-Dhou0UEg.js → index-CbXeZmCS.js} +5 -5
  57. package/dist/{index-Bxm8mZ6g.js → index-Ce48kWSB.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-D1e43ULb.js} +5 -5
  59. package/dist/{item-Dyckwjo-.js → item-CJiTQSdk.js} +26 -26
  60. package/dist/{jszip.min-ByutR7rj.js → jszip.min-BhA-u0sg.js} +3 -3
  61. package/dist/{memberPricing-BMRI1Z7U.js → memberPricing-HtOVFkPW.js} +1 -1
  62. package/dist/{menu-CDzIVGfu.js → menu-D2DXdpM7.js} +1 -1
  63. package/dist/{menuV2-puLrcFs3.js → menuV2-BijgRm69.js} +69 -69
  64. package/dist/{order_pacing-Cs212Wff.js → order_pacing-1DXoaQJO.js} +5 -5
  65. package/dist/{priceTier-WPgZnKsU.js → priceTier-KsTBGIxi.js} +1 -1
  66. package/dist/{rules-DCnNMPmp.js → rules-B9lCQsFG.js} +3 -3
  67. package/dist/{scheduler-BWWxcljn.js → scheduler-Dngx6aIQ.js} +4 -4
  68. package/dist/{toExcel-DuXu6LJi.js → toExcel-CFKx9Lmk.js} +2 -2
  69. package/dist/{unit-DLzvIszm.js → unit-Cyx1Lmd7.js} +2 -2
  70. package/package.json +1 -1
@@ -1,12 +1,12 @@
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";
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";
4
+ import { I as ae, G as I, A as T, 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-D1e43ULb.js";
5
+ import { defineStore as Qe } from "pinia";
6
+ import { shallowRef as j, ref as H, computed as b, shallowReactive as Xe, 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-U1wmb4W5.js", rt = "/assets/override-menu-Bebekq7W.js";
10
10
  function ot(e) {
11
11
  var s;
12
12
  const t = I(e), n = (s = t.variant) == null ? void 0 : s.variantCombinations;
@@ -62,7 +62,7 @@ function F(e, t, n) {
62
62
  return a ? d = ((g = l.items) == null ? void 0 : g.map((f) => {
63
63
  var h;
64
64
  const v = (h = a.items) == null ? void 0 : h.find(
65
- (b) => b._id === f._id && b.combinationKey === f.combinationKey
65
+ (S) => S._id === f._id && S.combinationKey === f.combinationKey
66
66
  );
67
67
  return F(v || f, t, n + 1);
68
68
  })) ?? [] : d = ((y = l.items) == null ? void 0 : y.map((f) => F(f, t, n + 1))) ?? [], {
@@ -88,7 +88,7 @@ function at(e, t) {
88
88
  if (c)
89
89
  return F(c, t, 1);
90
90
  const g = {
91
- ...V.generator.initMenuV4ItemOverrider(),
91
+ ...T.generator.initMenuV4ItemOverrider(),
92
92
  _id: d._id,
93
93
  combinationKey: d.combinationKey
94
94
  };
@@ -96,7 +96,7 @@ function at(e, t) {
96
96
  });
97
97
  return { ...u, items: a };
98
98
  }), s = e.variant ? e.variant.variantCombinations.map((u) => F(u, t, 1)) : [], o = {
99
- ...V.generator.initMenuV4ItemOverrider(),
99
+ ...T.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) {
155
+ async function Vt(e, t, n, s, o, u = !0) {
156
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) => {
157
157
  const v = f._id;
158
158
  return y[v] = at(d[v], e), y;
159
- }, {}), g = V.getFallbackPrices({
159
+ }, {}), g = T.getFallbackPrices({
160
160
  rawMenu: a,
161
161
  items: c,
162
162
  catalogId: s || void 0,
@@ -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 Tt(e, t) {
188
188
  const n = `${e._id}-${e.updatedAt}-${t}`;
189
189
  if (L.has(n))
190
190
  return L.get(n);
@@ -227,8 +227,8 @@ async function Kt(e, t, n) {
227
227
  var w, C;
228
228
  const h = v.combinationKey ? (C = (w = g == null ? void 0 : g.variant) == null ? void 0 : w.variantCombinations) == null ? void 0 : C.find(
229
229
  (E) => E.combinationKey === v.combinationKey
230
- ) : g, b = h && g ? u(g, h) : v;
231
- return u(b, v);
230
+ ) : g, S = h && g ? u(g, h) : v;
231
+ return u(S, v);
232
232
  });
233
233
  o.push({
234
234
  group: d,
@@ -314,8 +314,8 @@ function dt(e, t, n) {
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) {
317
- const h = k(e[0]) || Array.isArray(e[0]), b = a.length > 0;
318
- if (h || b) {
317
+ const h = k(e[0]) || Array.isArray(e[0]), S = a.length > 0;
318
+ if (h || S) {
319
319
  a = [];
320
320
  for (let w = 0; w < e.length; w++)
321
321
  a.push({ leftIndex: w, rightIndex: w });
@@ -326,11 +326,11 @@ function dt(e, t, n) {
326
326
  for (const h of a)
327
327
  c.set(h.leftIndex, h.rightIndex), g.set(h.rightIndex, h.leftIndex);
328
328
  for (let h = 0; h < e.length; h++) {
329
- const b = c.get(h);
330
- if (b !== void 0) {
331
- const w = J(e[h], t[b], n);
332
- if (w !== void 0 && (s[b] = w), o && b !== h) {
333
- const C = `_${h}`, E = u ? [e[h], b, K] : ["", b, K];
329
+ const S = c.get(h);
330
+ if (S !== void 0) {
331
+ const w = J(e[h], t[S], n);
332
+ if (w !== void 0 && (s[S] = w), o && S !== h) {
333
+ const C = `_${h}`, E = u ? [e[h], S, K] : ["", S, K];
334
334
  s[C] = E;
335
335
  }
336
336
  } else {
@@ -461,7 +461,7 @@ function gt(e) {
461
461
  if (Array.isArray(o) && o.length === 1)
462
462
  t[`_${s}`] = [o[0], M, M];
463
463
  else {
464
- const u = X(o);
464
+ const u = Q(o);
465
465
  u !== void 0 && (t[n] = u);
466
466
  }
467
467
  }
@@ -474,13 +474,13 @@ function ht(e) {
474
474
  if (Array.isArray(s))
475
475
  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]]);
476
476
  else {
477
- const o = X(s);
477
+ const o = Q(s);
478
478
  o !== void 0 && (t[n] = o);
479
479
  }
480
480
  }
481
481
  return t;
482
482
  }
483
- function X(e) {
483
+ function Q(e) {
484
484
  if (e !== void 0) {
485
485
  if (Array.isArray(e)) {
486
486
  if (e.length === 1)
@@ -496,7 +496,7 @@ function X(e) {
496
496
  }
497
497
  }
498
498
  function de(e) {
499
- return X(e);
499
+ return Q(e);
500
500
  }
501
501
  function pt(e, t, n) {
502
502
  const s = de(t);
@@ -523,20 +523,20 @@ class _t {
523
523
  return O(t);
524
524
  }
525
525
  }
526
- function St(e) {
526
+ function bt(e) {
527
527
  return new _t(e);
528
528
  }
529
- function bt({
529
+ function St({
530
530
  maxHistorySize: e = 10
531
531
  }) {
532
- const t = St({
532
+ const t = bt({
533
533
  objectHash: (v) => v._id || v.id,
534
534
  arrays: {
535
535
  detectMove: !0,
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 = H(-1), u = j(null), l = b(() => o.value > 0), a = b(() => o.value < s.value.length - 1);
540
540
  function d(v) {
541
541
  if (n.value === null) {
542
542
  n.value = I(v), u.value = I(v), s.value = [{ delta: null }], o.value = 0;
@@ -544,16 +544,16 @@ function bt({
544
544
  }
545
545
  const h = t.diff(u.value, v);
546
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) {
547
- const b = s.value[1].delta;
548
- b && n.value && (n.value = t.patch(I(n.value), b)), s.value.shift(), o.value--;
547
+ const S = s.value[1].delta;
548
+ S && n.value && (n.value = t.patch(I(n.value), S)), 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
554
  let h = I(n.value);
555
- for (let b = 1; b <= v; b++) {
556
- const w = s.value[b];
555
+ for (let S = 1; S <= v; S++) {
556
+ const w = s.value[S];
557
557
  w.delta && (h = t.patch(h, w.delta));
558
558
  }
559
559
  return h;
@@ -634,33 +634,33 @@ function Mt() {
634
634
  }
635
635
  };
636
636
  }
637
- const Pt = Xe(
637
+ const Pt = Qe(
638
638
  "mf-menu-store-v2",
639
639
  () => {
640
- const e = Qe(Mt()), t = se(), n = tt(), s = S(() => e.menu.modules.serveSequence ? x(e.menu.modules.serveSequence, {
640
+ const e = Xe(Mt()), t = se(), n = tt(), s = b(() => e.menu.modules.serveSequence ? x(e.menu.modules.serveSequence, {
641
641
  selector: "position"
642
- }) : []), o = S(() => {
642
+ }) : []), o = b(() => {
643
643
  var r;
644
644
  return ((r = t.currentBusiness.value) == null ? void 0 : r.menuVersion) || z.F_MENU_VERSION.v3;
645
- }), u = S(() => o.value === z.F_MENU_VERSION.v4), l = S(() => {
645
+ }), u = b(() => o.value === z.F_MENU_VERSION.v4), l = b(() => {
646
646
  const r = e.menu.modules.catalog;
647
647
  return x(r, { selector: "name" });
648
- }), a = S(() => {
648
+ }), a = b(() => {
649
649
  var i;
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 = T.populateCatalog({
654
654
  catalog: r,
655
655
  ruleGroupSettings: e.menu.ruleGroupSettings,
656
656
  items: e.menu.modules.item,
657
657
  ...e.currentRestaurantAttrParams ?? {}
658
658
  })), r;
659
- }), d = S(() => x(y.value.modules.scheduler, { selector: "name" })), c = S(() => e.menu.modules.scheduler.find(
659
+ }), d = b(() => x(y.value.modules.scheduler, { selector: "name" })), c = b(() => e.menu.modules.scheduler.find(
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
665
  const y = j(me()), f = H(!1), v = H(1);
666
666
  async function h() {
@@ -668,7 +668,7 @@ const Pt = Xe(
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 = T.populateCatalog({
672
672
  catalog: a.value,
673
673
  ruleGroupSettings: e.menu.ruleGroupSettings,
674
674
  items: e.menu.modules.item,
@@ -699,7 +699,7 @@ const Pt = Xe(
699
699
  }
700
700
  const w = ie.debounce(h, 200);
701
701
  let C = null, E = null;
702
- function Q() {
702
+ function X() {
703
703
  E && (E(), E = null), C && C.stop(), C = Ze(!0), E = C.run(() => et(
704
704
  () => [e.menu, e.currentCatalogId, e.currentSchedulerId],
705
705
  () => {
@@ -707,8 +707,8 @@ const Pt = Xe(
707
707
  }
708
708
  )) || null;
709
709
  }
710
- Q();
711
- const fe = S(() => [
710
+ X();
711
+ const fe = b(() => [
712
712
  {
713
713
  label: "Main",
714
714
  value: null
@@ -717,7 +717,7 @@ const Pt = Xe(
717
717
  label: r.name,
718
718
  value: r._id
719
719
  }))
720
- ]), Z = S(() => {
720
+ ]), Z = b(() => {
721
721
  const r = y.value.modules.category;
722
722
  return [
723
723
  ...U.value.item.addon ? [
@@ -729,10 +729,10 @@ const Pt = Xe(
729
729
  ] : [],
730
730
  ...D(r, (i) => i.name)
731
731
  ];
732
- }), ve = S(() => {
732
+ }), ve = b(() => {
733
733
  const r = y.value.modules.subCategory || [];
734
734
  return D(r, (i) => i.name);
735
- }), ee = S(() => {
735
+ }), ee = b(() => {
736
736
  var i;
737
737
  let r = y.value.modules.item;
738
738
  if (a.value) {
@@ -746,7 +746,7 @@ const Pt = Xe(
746
746
  });
747
747
  }
748
748
  return D(r, (m) => m.code || m.name);
749
- }), ye = S(() => {
749
+ }), ye = b(() => {
750
750
  const r = e.menu.modules.category, i = D(r, (p) => p.name).reduce(
751
751
  (p, _, A) => (p[_._id] = A, p),
752
752
  { "": 0 }
@@ -755,7 +755,7 @@ const Pt = Xe(
755
755
  m,
756
756
  (p) => p.code || p.name
757
757
  ).reduce((p, _, A) => (p[_._id] = A + i[_.category || ""], p), {});
758
- }), ge = S(() => oe(N.value, Z.value, ee.value)), he = S(() => {
758
+ }), ge = b(() => oe(N.value, Z.value, ee.value)), he = b(() => {
759
759
  const r = U.value.item.addon ? [
760
760
  {
761
761
  _id: e.currentCatalogId ? "" : null,
@@ -769,22 +769,22 @@ const Pt = Xe(
769
769
  r,
770
770
  e.menu.modules.item
771
771
  );
772
- }), N = S(() => {
772
+ }), N = b(() => {
773
773
  const r = y.value.modules.variant;
774
774
  return x(r, { selector: "name" });
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 T.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 = b(() => D(y.value.modules.group, (r) => r.name)), be = b(() => x(y.value.modules.takeaway, { selector: "name" })), Se = b(() => x(e.menu.modules.printDepartment || [], {
781
781
  selector: "name"
782
- })), we = S(() => x(e.menu.modules.unit, { selector: "name" })), Me = S(() => x(Le(e.menu.modules.recipe, e.menu.modules.sku), {
782
+ })), we = b(() => x(e.menu.modules.unit, { selector: "name" })), Me = b(() => x(Le(e.menu.modules.recipe, e.menu.modules.sku), {
783
783
  selector: "name"
784
- })), Ae = S(() => e.menu.modules.cookingGuide), Ie = S(() => {
784
+ })), Ae = b(() => e.menu.modules.cookingGuide), Ie = b(() => {
785
785
  const r = qe(e.menu.modules.sku);
786
786
  return x(r, { selector: "code" });
787
- }), Ce = S(() => {
787
+ }), Ce = b(() => {
788
788
  const r = /* @__PURE__ */ new Map();
789
789
  return e.menu.modules.item.forEach((i) => {
790
790
  var m, p;
@@ -792,7 +792,7 @@ const Pt = Xe(
792
792
  _.code && r.set(_.code, (r.get(_.code) || 0) + 1);
793
793
  });
794
794
  }), r;
795
- }), U = S(() => {
795
+ }), U = b(() => {
796
796
  const r = !e.currentCatalogId, i = o.value === z.F_MENU_VERSION.v4, m = !e.currentSchedulerId, p = {
797
797
  create: r && m,
798
798
  edit: r && m,
@@ -875,7 +875,7 @@ const Pt = Xe(
875
875
  function ke(r, i, m) {
876
876
  return (r ?? i ?? []).map((p) => W(p)).find((p) => m.some((_) => _.value === p));
877
877
  }
878
- const Re = S(() => {
878
+ const Re = b(() => {
879
879
  var p;
880
880
  const r = ["SV5", "SV10"], i = Be.Country.getCountryFlattenTaxes(
881
881
  se().currentCountry.value
@@ -902,11 +902,11 @@ 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
907
  }, De = (r) => {
908
908
  e.currentCategoryIds = r;
909
- }, Ve = (r) => {
909
+ }, Te = (r) => {
910
910
  e.currentRestaurantAttrParams = r;
911
911
  }, Ke = async (r, i) => {
912
912
  const m = Array.isArray(r) ? r : [r];
@@ -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 = St({ maxHistorySize: 50 }), $e = b(() => V.canUndo.value), Fe = b(() => 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,
@@ -974,8 +974,8 @@ const Pt = Xe(
974
974
  categorizedRawMenuItems: he,
975
975
  variants: N,
976
976
  groups: _e,
977
- takeaways: Se,
978
- printDepartments: be,
977
+ takeaways: be,
978
+ printDepartments: Se,
979
979
  units: we,
980
980
  recipes: Me,
981
981
  cookingGuide: Ae,
@@ -987,9 +987,9 @@ const Pt = Xe(
987
987
  readMenu: xe,
988
988
  readRestaurants: Oe,
989
989
  selectCatalog: te,
990
- selectScheduler: Te,
990
+ selectScheduler: Ve,
991
991
  selectCategory: De,
992
- setRestaurantAttrParams: Ve,
992
+ setRestaurantAttrParams: Te,
993
993
  updateMenu: Ke,
994
994
  updateMenuSetting: Pe,
995
995
  computeMergedMenu: h,
@@ -1008,16 +1008,16 @@ const Pt = Xe(
1008
1008
  w.cancel(), E && (E(), E = null), C && (C.stop(), C = null), Ue();
1009
1009
  },
1010
1010
  $reinitialize: () => {
1011
- Q();
1011
+ X();
1012
1012
  }
1013
1013
  };
1014
1014
  }
1015
1015
  );
1016
1016
  export {
1017
- Vt as a,
1017
+ Tt as a,
1018
1018
  Kt as f,
1019
1019
  Dt as g,
1020
- Tt as m,
1020
+ Vt as m,
1021
1021
  it as o,
1022
1022
  Pt 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-D1e43ULb.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-BNwtSwXa.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-CyW5XJI3.js";
8
+ import { L as ce } from "./LinkProductSideSheet-CTP5S-Zg.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-C4qUo_U2.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-D1e43ULb.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-D1e43ULb.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-BijgRm69.js";
6
+ import { _ as $ } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-C4qUo_U2.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-D1e43ULb.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-BNwtSwXa.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-D2DXdpM7.js";
9
+ import { L as Fe } from "./LinkProductSideSheet-CTP5S-Zg.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-X7civFqp.js";
2
+ import "./index.vue_vue_type_script_setup_true_lang-D1e43ULb.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-D1e43ULb.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-BijgRm69.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.57",
3
+ "version": "0.32.58",
4
4
  "files": [
5
5
  "dist"
6
6
  ],