@feedmepos/mf-menu 0.31.66-beta.1 → 0.31.67-beta.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 (62) hide show
  1. package/dist/{App-Br3zp0k3.js → App-BgtuKRMa.js} +8 -8
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-J8dXIGfR.js → ApplyProduct.vue_vue_type_script_setup_true_lang-DRJ-dCti.js} +3 -3
  3. package/dist/{Catalog-BlW0Xyaw.js → Catalog-Q2enESBT.js} +6 -6
  4. package/dist/{Category-BiHeOL_G.js → Category-BFfdYBN7.js} +6 -6
  5. package/dist/{Category-flcYfDVQ.js → Category-Q-qYKZqu.js} +4 -4
  6. package/dist/{CookingGuide-C_bzYSdH.js → CookingGuide-BBqZFxtA.js} +4 -4
  7. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-rIa2VRSi.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-CWJxK057.js} +1 -1
  8. package/dist/{Group-EkWaPEUX.js → Group-_qDB8mqR.js} +3 -3
  9. package/dist/{Group-CjQ8hEqJ.js → Group-csHmZk5i.js} +1 -1
  10. package/dist/{Group.vue_vue_type_script_setup_true_lang-DhyCyomH.js → Group.vue_vue_type_script_setup_true_lang-BB3aRQRD.js} +7 -7
  11. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-yCRK7N-o.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DiS1jDRb.js} +5 -5
  12. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-CR364gdM.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-CZCpbUDI.js} +14 -14
  13. package/dist/{Ingredient-BsXTeKJX.js → Ingredient-BIlBT1Yz.js} +3 -3
  14. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-Cw_35kqi.js → InventoryBinding.vue_vue_type_script_setup_true_lang-CcgFIX_P.js} +1052 -1052
  15. package/dist/{LinkProductSideSheet-DKpvTBER.js → LinkProductSideSheet-qNlonkzd.js} +3 -3
  16. package/dist/{MenuSetting-DaaT--Ta.js → MenuSetting-Bru9POND.js} +5 -5
  17. package/dist/{PrintRoute-BGe1n0Kx.js → PrintRoute-DIXrOEIJ.js} +4 -4
  18. package/dist/{Product-CKP3SvWi.js → Product-vi4skW2p.js} +1 -1
  19. package/dist/{Product.vue_vue_type_script_setup_true_lang-BMZwkYs7.js → Product.vue_vue_type_script_setup_true_lang-CVSQppwM.js} +13 -13
  20. package/dist/{ProductInternalTools-DCDAkH2g.js → ProductInternalTools-BLkSOWVD.js} +5 -5
  21. package/dist/{Products-FaZhBHOY.js → Products-D-t6mnNI.js} +11 -11
  22. package/dist/{Publish-BT7FVpnw.js → Publish-jfkvHs3G.js} +3 -3
  23. package/dist/{Recipe-BtVOg9AC.js → Recipe-CBTV3XBd.js} +4 -4
  24. package/dist/{Scheduler-CAtzhdeV.js → Scheduler-BbGYMUQP.js} +3 -3
  25. package/dist/{ServingSequence-BMMrGVw3.js → ServingSequence-nj6YsrK2.js} +3 -3
  26. package/dist/{Setting-BWTslCIk.js → Setting-D0PhdLRs.js} +5 -5
  27. package/dist/{Subcategory-CnT3zk2G.js → Subcategory-BlEr5nNw.js} +4 -4
  28. package/dist/{Takeaway-BwlXES-u.js → Takeaway-BbKsY6CF.js} +1 -1
  29. package/dist/{Takeaway-BFYU_Exn.js → Takeaway-ul8hDN5c.js} +4 -4
  30. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-C4vL5zex.js → Takeaway.vue_vue_type_script_setup_true_lang-BQ3XzzXs.js} +5 -5
  31. package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-DwbacGxs.js → Thumbnail.vue_vue_type_script_setup_true_lang-CuMIPVtH.js} +4 -4
  32. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BhjOzyHs.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-Dun4TjI_.js} +14 -14
  33. package/dist/{Unit-DKH6499X.js → Unit-MCrJlTmZ.js} +2 -2
  34. package/dist/{Variant-DqvpG5tO.js → Variant-chXO_AWA.js} +82 -80
  35. package/dist/{_id_-nIojbN9D.js → _id_-BikJUNFR.js} +10 -10
  36. package/dist/{app-R7-_tp2s.js → app-BS_awWcc.js} +1 -1
  37. package/dist/{app-C1b83O96.js → app-er04sPwq.js} +26 -26
  38. package/dist/app.js +1 -1
  39. package/dist/assets/{linked-status-DtIxWqBx.js → linked-status-GgoZVbVE.js} +2 -2
  40. package/dist/assets/{override-menu-BKxajFZC.js → override-menu-95TIU8uO.js} +2 -2
  41. package/dist/assets/{validate-menu-BxYq0S7f.js → validate-menu-CoWC7z7U.js} +2 -2
  42. package/dist/{catalog-CUbZCB0s.js → catalog-CP1gPn9o.js} +1 -1
  43. package/dist/{catalogSetting-U1YmwTDr.js → catalogSetting-CVTmiziw.js} +1 -1
  44. package/dist/{category-C8bVM0lM.js → category-CuX_wYbf.js} +1 -1
  45. package/dist/{currency-BOesf8Kq.js → currency-D9mAovyo.js} +1 -1
  46. package/dist/{customAttributes-BrU77KL5.js → customAttributes-DEkj8bf6.js} +1 -1
  47. package/dist/{dayjs.min-BhgsFk38.js → dayjs.min-mjC9hWTK.js} +1 -1
  48. package/dist/{index-Tyhas84H.js → index-B1IrZjMt.js} +4 -4
  49. package/dist/{index-CLHLCQb4.js → index-Bc2oLMsK.js} +3 -3
  50. package/dist/{index-cBo9QmvR.js → index-CC2dBDfa.js} +1 -1
  51. package/dist/{index-CdduY38L.js → index-D36anPDy.js} +1 -1
  52. package/dist/{item-f9DZVLgi.js → item-yG4J6gWA.js} +16 -16
  53. package/dist/{jszip.min-D60tZpgb.js → jszip.min-D3G4g4K3.js} +245 -245
  54. package/dist/{menu-DoKCknKv.js → menu-BIT0OYWT.js} +1 -1
  55. package/dist/{menu-CmfdGOvQ.js → menu-CwLRPJ37.js} +4 -4
  56. package/dist/{menuV2-BuMwnlPR.js → menuV2-Chm820yv.js} +63 -63
  57. package/dist/{priceTier-D3hXn3BP.js → priceTier-DKK8Q2Rk.js} +1 -1
  58. package/dist/{scheduler-DxXNXtEz.js → scheduler-DOel2750.js} +4 -4
  59. package/dist/{subcategory-CA5pmtr-.js → subcategory-CgrfaNRV.js} +2 -2
  60. package/dist/{toExcel-CRl89vCT.js → toExcel-ilQ4r1cC.js} +2 -2
  61. package/dist/{unit-lfD1-eEF.js → unit-BxjNIBbH.js} +2 -2
  62. package/package.json +1 -1
@@ -1,12 +1,12 @@
1
1
  var Ue = Object.defineProperty;
2
2
  var We = (e, t, n) => t in e ? Ue(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var ne = (e, t, n) => We(e, typeof t != "symbol" ? t + "" : t, n);
4
- import { an as ue, H as I, D as T, A as ae, ao as re, J as z, I as ie, a8 as x, c as L, X as V, ai as oe, ap as Le, aq as qe, B as Be, aa as ze, ar as Ge, as as He, a7 as Je } from "./menu-CmfdGOvQ.js";
4
+ import { an as ue, H as I, D as T, A as ae, ao as re, J as z, I as ie, a8 as x, c as L, X as D, ai as oe, ap as Le, aq as Ge, B as qe, aa as ze, ar as He, as as Be, a7 as Je } from "./menu-CwLRPJ37.js";
5
5
  import { defineStore as Ye } from "pinia";
6
- import { shallowRef as j, ref as G, computed as S, shallowReactive as Xe, effectScope as Ze, watch as Qe } from "vue";
6
+ import { shallowRef as j, ref as H, computed as S, shallowReactive as Xe, effectScope as Ze, watch as Qe } from "vue";
7
7
  import { useCoreStore as se } from "@feedmepos/mf-common";
8
8
  import { useSnackbar as et } from "@feedmepos/ui-library";
9
- const tt = "/assets/linked-status-DtIxWqBx.js", nt = "/assets/override-menu-BKxajFZC.js";
9
+ const tt = "/assets/linked-status-GgoZVbVE.js", nt = "/assets/override-menu-95TIU8uO.js";
10
10
  function rt(e) {
11
11
  var o;
12
12
  const t = I(e), n = (o = t.variant) == null ? void 0 : o.variantCombinations;
@@ -104,7 +104,7 @@ function st(e, t) {
104
104
  };
105
105
  return [...o, r];
106
106
  }
107
- function H(e, t) {
107
+ function B(e, t) {
108
108
  var o;
109
109
  if (!t)
110
110
  return e;
@@ -117,7 +117,7 @@ function H(e, t) {
117
117
  const i = (f = a == null ? void 0 : a.items) == null ? void 0 : f.find(
118
118
  (h) => h._id === c._id && h.combinationKey === c.combinationKey
119
119
  );
120
- return H(c, i);
120
+ return B(c, i);
121
121
  }), r;
122
122
  }), n;
123
123
  }
@@ -131,7 +131,7 @@ function ut(e, t) {
131
131
  );
132
132
  if (!a)
133
133
  throw new Error(`Item overrider not found - ${r._id} - ${r.combinationKey}`);
134
- return H(a, r);
134
+ return B(a, r);
135
135
  })
136
136
  });
137
137
  const o = n.find((r) => !r.combinationKey);
@@ -145,7 +145,7 @@ function ut(e, t) {
145
145
  const c = (i = a == null ? void 0 : a.items) == null ? void 0 : i.find(
146
146
  (f) => f._id === u._id && f.combinationKey === u.combinationKey
147
147
  );
148
- return H(u, c);
148
+ return B(u, c);
149
149
  }), r;
150
150
  }), {
151
151
  ...t,
@@ -170,7 +170,7 @@ async function Ot(e, t, n, o, r, a = !0) {
170
170
  };
171
171
  });
172
172
  }
173
- function Dt(e, t) {
173
+ function Vt(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((r, a) => {
@@ -183,11 +183,11 @@ function Dt(e, t) {
183
183
  return r;
184
184
  }, [])) || []).join(" / ");
185
185
  }
186
- const q = /* @__PURE__ */ new Map();
187
- async function Vt(e, t) {
186
+ const G = /* @__PURE__ */ new Map();
187
+ async function Dt(e, t) {
188
188
  const n = `${e._id}-${e.updatedAt}-${t}`;
189
- if (q.has(n))
190
- return q.get(n);
189
+ if (G.has(n))
190
+ return G.get(n);
191
191
  const o = await ue(
192
192
  tt,
193
193
  JSON.stringify({
@@ -195,7 +195,7 @@ async function Vt(e, t) {
195
195
  itemId: t
196
196
  })
197
197
  );
198
- return q.set(n, o), o;
198
+ return G.set(n, o), o;
199
199
  }
200
200
  async function ce(e, t, n) {
201
201
  return await ue(nt, {
@@ -234,13 +234,13 @@ function Ft(e, t, n) {
234
234
  }
235
235
  return r(t, n);
236
236
  }
237
- const B = /* @__PURE__ */ new Map();
237
+ const q = /* @__PURE__ */ new Map();
238
238
  async function at(e, t, n) {
239
239
  const o = `${e._id}-${e.updatedAt}-${t || "null"}-${n || "null"}`;
240
- if (B.has(o))
241
- return B.get(o);
240
+ if (q.has(o))
241
+ return q.get(o);
242
242
  const r = await ce(e, t, n);
243
- return B.set(o, r), r;
243
+ return q.set(o, r), r;
244
244
  }
245
245
  async function Kt(e, t, n) {
246
246
  var l, u;
@@ -256,7 +256,7 @@ async function Kt(e, t, n) {
256
256
  const h = (u = c.items) == null ? void 0 : u.filter((v) => v._id === n && v.combinationKey), m = [i, ...h].map((v) => {
257
257
  var w, C;
258
258
  const p = v.combinationKey ? (C = (w = f == null ? void 0 : f.variant) == null ? void 0 : w.variantCombinations) == null ? void 0 : C.find(
259
- (R) => R.combinationKey === v.combinationKey
259
+ (E) => E.combinationKey === v.combinationKey
260
260
  ) : f, b = p && f ? a(f, p) : v;
261
261
  return a(b, v);
262
262
  });
@@ -294,7 +294,7 @@ function O(e) {
294
294
  function P(e) {
295
295
  return e instanceof RegExp ? e.toString() : e;
296
296
  }
297
- function k(e) {
297
+ function R(e) {
298
298
  return typeof e == "object" && e !== null && !Array.isArray(e) && !(e instanceof Date) && !(e instanceof RegExp);
299
299
  }
300
300
  function K(e, t) {
@@ -310,7 +310,7 @@ function K(e, t) {
310
310
  if (!K(e[n], t[n])) return !1;
311
311
  return !0;
312
312
  }
313
- if (k(e) && k(t)) {
313
+ if (R(e) && R(t)) {
314
314
  const n = Object.keys(e), o = Object.keys(t);
315
315
  if (n.length !== o.length) return !1;
316
316
  for (const r of n)
@@ -344,7 +344,7 @@ function lt(e, t, n) {
344
344
  const o = { _t: "a" }, r = ((m = n == null ? void 0 : n.arrays) == null ? void 0 : m.detectMove) !== !1, a = ((v = n == null ? void 0 : n.arrays) == null ? void 0 : v.includeValueOnMove) === !0, l = n == null ? void 0 : n.objectHash;
345
345
  let u = r ? ct(e, t, l) : [];
346
346
  if (!l && e.length === t.length && e.length > 0 && u.length < e.length) {
347
- const p = k(e[0]) || Array.isArray(e[0]), b = u.length > 0;
347
+ const p = R(e[0]) || Array.isArray(e[0]), b = u.length > 0;
348
348
  if (p || b) {
349
349
  u = [];
350
350
  for (let w = 0; w < e.length; w++)
@@ -360,8 +360,8 @@ function lt(e, t, n) {
360
360
  if (b !== void 0) {
361
361
  const w = J(e[p], t[b], n);
362
362
  if (w !== void 0 && (o[b] = w), r && b !== p) {
363
- const C = `_${p}`, R = a ? [e[p], b, F] : ["", b, F];
364
- o[C] = R;
363
+ const C = `_${p}`, E = a ? [e[p], b, F] : ["", b, F];
364
+ o[C] = E;
365
365
  }
366
366
  } else {
367
367
  const w = `_${p}`;
@@ -403,7 +403,7 @@ function J(e, t, n) {
403
403
  }
404
404
  if (Array.isArray(e) && Array.isArray(t))
405
405
  return lt(e, t, n);
406
- if (k(e) && k(t))
406
+ if (R(e) && R(t))
407
407
  return dt(e, t, n);
408
408
  const a = n != null && n.cloneDiffValues ? O(e) : e, l = n != null && n.cloneDiffValues ? O(t) : t;
409
409
  return [P(a), P(l)];
@@ -467,7 +467,7 @@ function Y(e, t, n) {
467
467
  if (t.length === 3 && t[2] === M)
468
468
  return;
469
469
  }
470
- return k(t) && t._t === "a" ? mt(e, t) : k(t) && k(e) ? vt(e, t) : e;
470
+ return R(t) && t._t === "a" ? mt(e, t) : R(t) && R(e) ? vt(e, t) : e;
471
471
  }
472
472
  function le(e, t, n) {
473
473
  return Y(e, t);
@@ -522,7 +522,7 @@ function X(e) {
522
522
  if (e.length === 3 && e[2] === F)
523
523
  return e;
524
524
  }
525
- return k(e) && e._t === "a" ? yt(e) : k(e) ? ht(e) : e;
525
+ return R(e) && e._t === "a" ? yt(e) : R(e) ? ht(e) : e;
526
526
  }
527
527
  }
528
528
  function de(e) {
@@ -566,7 +566,7 @@ function St({
566
566
  includeValueOnMove: !1
567
567
  },
568
568
  cloneDiffValues: !1
569
- }), n = j(null), o = j([]), r = G(-1), a = j(null), l = S(() => r.value > 0), u = S(() => r.value < o.value.length - 1);
569
+ }), n = j(null), o = j([]), r = H(-1), a = j(null), l = S(() => r.value > 0), u = S(() => r.value < o.value.length - 1);
570
570
  function c(v) {
571
571
  if (n.value === null) {
572
572
  n.value = I(v), a.value = I(v), o.value = [{ delta: null }], r.value = 0;
@@ -690,9 +690,9 @@ const Pt = Ye(
690
690
  (s) => s._id === e.currentSchedulerId
691
691
  ));
692
692
  function f(s, d = !0) {
693
- e.menu = { ...s, _rev: e.menu._rev }, d && D.push(e.menu);
693
+ e.menu = { ...s, _rev: e.menu._rev }, d && V.push(e.menu);
694
694
  }
695
- const h = j(fe()), m = G(!1), v = G(1);
695
+ const h = j(fe()), m = H(!1), v = H(1);
696
696
  async function p() {
697
697
  var y;
698
698
  m.value = !0;
@@ -719,18 +719,18 @@ const Pt = Ye(
719
719
  );
720
720
  if (e.currentSchedulerId != null) {
721
721
  const g = e.menu.modules.catalog.find(
722
- (E) => E._id === e.currentCatalogId
722
+ (k) => k._id === e.currentCatalogId
723
723
  ), _ = g ? g.override.scheduler[e.currentSchedulerId] : e.menu.modules.scheduler.find(
724
- (E) => E._id === e.currentSchedulerId
725
- ), A = new Set(((_ == null ? void 0 : _.items) || []).map((E) => E._id));
726
- d.modules.item = d.modules.item.filter((E) => A.has(E._id));
724
+ (k) => k._id === e.currentSchedulerId
725
+ ), A = new Set(((_ == null ? void 0 : _.items) || []).map((k) => k._id));
726
+ d.modules.item = d.modules.item.filter((k) => A.has(k._id));
727
727
  }
728
728
  return h.value = d, m.value = !1, v.value = v.value + 1, d;
729
729
  }
730
730
  const w = ie.debounce(p, 200);
731
- let C = null, R = null;
731
+ let C = null, E = null;
732
732
  function Z() {
733
- R && (R(), R = null), C && C.stop(), C = Ze(!0), R = C.run(() => Qe(
733
+ E && (E(), E = null), C && C.stop(), C = Ze(!0), E = C.run(() => Qe(
734
734
  () => [e.menu, e.currentCatalogId, e.currentSchedulerId],
735
735
  () => {
736
736
  m.value || w();
@@ -757,11 +757,11 @@ const Pt = Ye(
757
757
  position: 0
758
758
  }
759
759
  ] : [],
760
- ...V(s, (d) => d.name)
760
+ ...D(s, (d) => d.name)
761
761
  ];
762
762
  }), ve = S(() => {
763
763
  const s = h.value.modules.subCategory || [];
764
- return V(s, (d) => d.name);
764
+ return D(s, (d) => d.name);
765
765
  }), ee = S(() => {
766
766
  var d;
767
767
  let s = h.value.modules.item;
@@ -770,18 +770,18 @@ const Pt = Ye(
770
770
  s = s.filter((g) => {
771
771
  var A;
772
772
  const _ = (A = y == null ? void 0 : y[g._id]) == null ? void 0 : A.find(
773
- (E) => !E.combinationKey
773
+ (k) => !k.combinationKey
774
774
  );
775
775
  return (_ == null ? void 0 : _.orderFrom) !== ae.F_ORDER_FROM.enum.NONE;
776
776
  });
777
777
  }
778
- return V(s, (y) => y.code || y.name);
778
+ return D(s, (y) => y.code || y.name);
779
779
  }), ye = S(() => {
780
- const s = e.menu.modules.category, d = V(s, (g) => g.name).reduce(
780
+ const s = e.menu.modules.category, d = D(s, (g) => g.name).reduce(
781
781
  (g, _, A) => (g[_._id] = A, g),
782
782
  { "": 0 }
783
783
  ), y = e.menu.modules.item;
784
- return V(
784
+ return D(
785
785
  y,
786
786
  (g) => g.code || g.name
787
787
  ).reduce((g, _, A) => (g[_._id] = A + d[_.category || ""], g), {});
@@ -807,12 +807,12 @@ const Pt = Ye(
807
807
  const d = s.map((g) => N.value.find((_) => _._id === g)).filter((g) => !!g);
808
808
  return T.fullVariantCombination(d).reduce((g, _) => (g[_.combinationKey] = _.selectionName.join(" / "), g), {});
809
809
  }
810
- const _e = S(() => V(h.value.modules.group, (s) => s.name)), Se = S(() => x(h.value.modules.takeaway, { selector: "name" })), be = S(() => x(e.menu.modules.printDepartment || [], {
810
+ const _e = S(() => D(h.value.modules.group, (s) => s.name)), Se = S(() => x(h.value.modules.takeaway, { selector: "name" })), be = S(() => x(e.menu.modules.printDepartment || [], {
811
811
  selector: "name"
812
812
  })), we = S(() => x(e.menu.modules.unit, { selector: "name" })), Me = S(() => x(Le(e.menu.modules.recipe, e.menu.modules.sku), {
813
813
  selector: "name"
814
814
  })), Ae = S(() => e.menu.modules.cookingGuide), Ie = S(() => {
815
- const s = qe(e.menu.modules.sku);
815
+ const s = Ge(e.menu.modules.sku);
816
816
  return x(s, { selector: "code" });
817
817
  }), U = S(() => {
818
818
  const s = !e.currentCatalogId, d = r.value === L.F_MENU_VERSION.v4, y = !e.currentSchedulerId, g = {
@@ -890,12 +890,12 @@ const Pt = Ye(
890
890
  const [d, y] = s.split("/");
891
891
  return { systemCode: d, taxCode: y };
892
892
  }
893
- function Re(s, d, y) {
893
+ function Ee(s, d, y) {
894
894
  return (s ?? d ?? []).map((g) => W(g)).find((g) => y.some((_) => _.value === g));
895
895
  }
896
- const ke = S(() => {
896
+ const Re = S(() => {
897
897
  var g;
898
- const s = ["SV5", "SV10"], d = Be.Country.getCountryFlattenTaxes(
898
+ const s = ["SV5", "SV10"], d = qe.Country.getCountryFlattenTaxes(
899
899
  se().currentCountry.value
900
900
  ), y = d.filter((_) => a.value || !s.includes(_.taxCode)).map((_) => ({
901
901
  label: `${_.name} (${ze(_.rate)}%)`,
@@ -908,11 +908,11 @@ const Pt = Ye(
908
908
  systemCode: (g = d[0]) == null ? void 0 : g.systemCode,
909
909
  countryTaxOptions: y
910
910
  };
911
- }), Ee = async () => {
911
+ }), ke = async () => {
912
912
  const s = await Je.readMenu();
913
913
  e.menu = s ?? e.menu, te(null);
914
914
  }, xe = async () => {
915
- const { fetchAllRestaurants: s } = He();
915
+ const { fetchAllRestaurants: s } = Be();
916
916
  await s({
917
917
  onBatchEnd: (d) => {
918
918
  e.restaurants = d;
@@ -922,9 +922,9 @@ const Pt = Ye(
922
922
  e.currentCatalogId = s;
923
923
  }, Oe = (s) => {
924
924
  e.currentSchedulerId = s;
925
- }, De = (s) => {
926
- e.currentCategoryIds = s;
927
925
  }, Ve = (s) => {
926
+ e.currentCategoryIds = s;
927
+ }, De = (s) => {
928
928
  e.currentRestaurantAttrParams = s;
929
929
  }, Te = async (s, d) => {
930
930
  const y = Array.isArray(s) ? s : [s];
@@ -938,7 +938,7 @@ const Pt = Ye(
938
938
  if (d || g.some(
939
939
  (A) => [z.F_OPERATION_TYPE.delete, z.F_OPERATION_TYPE.deleteMany].includes(A.operation)
940
940
  )) {
941
- const A = await Ge(g, e.menu.modules);
941
+ const A = await He(g, e.menu.modules);
942
942
  if (A !== !0) throw new Error(A);
943
943
  }
944
944
  const _ = await bt.updateMenuModule(e.menu, g);
@@ -958,14 +958,14 @@ const Pt = Ye(
958
958
  priceTierSettings: s.priceTierSettings
959
959
  };
960
960
  return f(d), d;
961
- }, D = St({ maxHistorySize: 50 }), Ke = S(() => D.canUndo.value), Pe = S(() => D.canRedo.value), $e = () => {
962
- const s = D.undo();
961
+ }, V = St({ maxHistorySize: 50 }), Ke = S(() => V.canUndo.value), Pe = S(() => V.canRedo.value), $e = () => {
962
+ const s = V.undo();
963
963
  s && f(s, !1);
964
964
  }, je = () => {
965
- const s = D.redo();
965
+ const s = V.redo();
966
966
  s && f(s, !1);
967
967
  }, Ne = () => {
968
- D.clear();
968
+ V.clear();
969
969
  };
970
970
  return {
971
971
  state: e,
@@ -998,22 +998,22 @@ const Pt = Ye(
998
998
  cookingGuide: Ae,
999
999
  skus: Ie,
1000
1000
  rules: U,
1001
- taxSetting: ke,
1001
+ taxSetting: Re,
1002
1002
  // Action
1003
1003
  setMenu: f,
1004
- readMenu: Ee,
1004
+ readMenu: ke,
1005
1005
  readRestaurants: xe,
1006
1006
  selectCatalog: te,
1007
1007
  selectScheduler: Oe,
1008
- selectCategory: De,
1009
- setRestaurantAttrParams: Ve,
1008
+ selectCategory: Ve,
1009
+ setRestaurantAttrParams: De,
1010
1010
  updateMenu: Te,
1011
1011
  updateMenuSetting: Fe,
1012
1012
  computeMergedMenu: p,
1013
1013
  // helper
1014
1014
  encodeTax: W,
1015
1015
  decodeTax: Ce,
1016
- getSelectedTax: Re,
1016
+ getSelectedTax: Ee,
1017
1017
  mapVariant: ge,
1018
1018
  // history
1019
1019
  canUndoHistory: Ke,
@@ -1022,7 +1022,7 @@ const Pt = Ye(
1022
1022
  redoHistory: je,
1023
1023
  // cleanup
1024
1024
  $dispose: () => {
1025
- w.cancel(), R && (R(), R = null), C && (C.stop(), C = null), Ne();
1025
+ w.cancel(), E && (E(), E = null), C && (C.stop(), C = null), Ne();
1026
1026
  },
1027
1027
  $reinitialize: () => {
1028
1028
  Z();
@@ -1031,11 +1031,11 @@ const Pt = Ye(
1031
1031
  }
1032
1032
  );
1033
1033
  export {
1034
- Vt as a,
1034
+ Dt as a,
1035
1035
  Tt as b,
1036
1036
  Ft as c,
1037
1037
  Kt as f,
1038
- Dt as g,
1038
+ Vt as g,
1039
1039
  Ot as m,
1040
1040
  at as o,
1041
1041
  Pt as u
@@ -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, G as M } from "./menu-CmfdGOvQ.js";
4
+ import { u as k, G as M } from "./menu-CwLRPJ37.js";
5
5
  const v = /* @__PURE__ */ d({
6
6
  __name: "AddPriceGroupDialog",
7
7
  setup(s) {
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as ie, computed as Y, resolveComponent as _, createElementBlock as d, openBlock as u, createVNode as t, createCommentVNode as F, unref as n, toDisplayString as L, createElementVNode as h, withCtx as v, Fragment as N, renderList as M, createBlock as I, ref as H, Transition as se, createTextVNode as me } from "vue";
2
- import { H as S, A as r, u as pe, I as ve, J as ue } from "./menu-CmfdGOvQ.js";
2
+ import { H as S, A as r, u as pe, I as ve, J as ue } from "./menu-CwLRPJ37.js";
3
3
  import { useI18n as de } from "@feedmepos/mf-common";
4
4
  import { components as _e } from "@feedmepos/ui-library";
5
- import { _ as ne, a as fe } from "./customAttributes-BrU77KL5.js";
5
+ import { _ as ne, a as fe } from "./customAttributes-DEkj8bf6.js";
6
6
  import { u as ye } from "./discardConfirm-BHni0LNu.js";
7
- import { u as he } from "./menu-DoKCknKv.js";
8
- import { L as ge } from "./LinkProductSideSheet-DKpvTBER.js";
7
+ import { u as he } from "./menu-BIT0OYWT.js";
8
+ import { L as ge } from "./LinkProductSideSheet-qNlonkzd.js";
9
9
  const Ve = { class: "space-y-8" }, Fe = {
10
10
  key: 0,
11
11
  class: "space-y-16"
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as M, watch as _, ref as E, resolveComponent as f, createBlock as x, openBlock as A, unref as c, withCtx as C, createVNode as V } from "vue";
2
- import { J as l, A as d, u as F } from "./menu-CmfdGOvQ.js";
2
+ import { J as l, A as d, u as F } from "./menu-CwLRPJ37.js";
3
3
  import { useI18n as b } from "@feedmepos/mf-common";
4
4
  import { useDialogChild as P } from "@feedmepos/ui-library";
5
- import { u as v } from "./menuV2-BuMwnlPR.js";
5
+ import { u as v } from "./menuV2-Chm820yv.js";
6
6
  const y = /* @__PURE__ */ M({
7
7
  __name: "AddSubcategoryDialogContentComponent",
8
8
  props: {
@@ -1,5 +1,5 @@
1
- import { u as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-CR364gdM.js";
2
- import "./menu-CmfdGOvQ.js";
1
+ import { u as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-CZCpbUDI.js";
2
+ import "./menu-CwLRPJ37.js";
3
3
  var Z = {
4
4
  defaultAmount: 0,
5
5
  defaultCurrency: "USD",
@@ -1,13 +1,13 @@
1
1
  import { defineStore as J } from "pinia";
2
2
  import { defineComponent as O, computed as U, ref as h, watch as T, resolveComponent as V, createBlock as W, openBlock as F, withCtx as w, createVNode as m, createElementVNode as f, normalizeClass as Q, createElementBlock as A, toDisplayString as M, unref as l, Fragment as q, renderSlot as X, renderList as Z, getCurrentInstance as ee } from "vue";
3
- import { a5 as P, a6 as te, a3 as B, H as k, O as $, G as I, D as E, a4 as ne, J as C, A as D, I as oe, u as ae } from "./menu-CmfdGOvQ.js";
3
+ import { a5 as P, a6 as te, a3 as B, H as k, O as $, G as I, D as E, a4 as ne, J as C, A as D, I as oe, u as ae } from "./menu-CwLRPJ37.js";
4
4
  import { useI18n as L } from "@feedmepos/mf-common";
5
5
  import { useSnackbar as j, 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 "./vuedraggable-CK8z7qA8.js";
9
9
  import "./app-5fxKLAzS.js";
10
- import "./menuV2-BuMwnlPR.js";
10
+ import "./menuV2-Chm820yv.js";
11
11
  /* empty css */
12
12
  import { c as me } from "./createComponentProgrammatically-Bt2rn1IQ.js";
13
13
  const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-menu",
3
- "version": "0.31.66-beta.1",
3
+ "version": "0.31.67-beta.1",
4
4
  "files": [
5
5
  "dist"
6
6
  ],