@feedmepos/mf-menu 0.31.61-prod → 0.31.62-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-D924sQhu.js → App-BUXFEP55.js} +9 -9
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-DGdqQAZY.js → ApplyProduct.vue_vue_type_script_setup_true_lang-MKZJ-njr.js} +3 -3
  3. package/dist/{Catalog-D_1VtIlh.js → Catalog-BKQ9KV7s.js} +6 -6
  4. package/dist/{Category-DkSmfaIM.js → Category-DoYvaKcF.js} +4 -4
  5. package/dist/{Category-CKofrwgi.js → Category-NyeTFD20.js} +6 -6
  6. package/dist/{CookingGuide-yYHBkqAU.js → CookingGuide-CveQaRhS.js} +4 -4
  7. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-CI9ag-Id.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-BVblnBda.js} +1 -1
  8. package/dist/{Group-BKcalQYn.js → Group-Bh_cYZrR.js} +3 -3
  9. package/dist/{Group-XBaxU2qW.js → Group-CIfOb6-n.js} +1 -1
  10. package/dist/{Group.vue_vue_type_script_setup_true_lang-BSVYaJY7.js → Group.vue_vue_type_script_setup_true_lang-eIamkLSs.js} +7 -7
  11. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DHNPtd9L.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-l16Q4z0O.js} +5 -5
  12. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-Bh2tYfZz.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-BOS5I76A.js} +7 -7
  13. package/dist/{Ingredient-DCS5mgVp.js → Ingredient-Bky-Z-qW.js} +3 -3
  14. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-CrRYoyf4.js → InventoryBinding.vue_vue_type_script_setup_true_lang-gsMugb4_.js} +2 -2
  15. package/dist/{LinkProductSideSheet-Chnw-NLG.js → LinkProductSideSheet-iaEdzy3q.js} +3 -3
  16. package/dist/{MenuSetting-QeALY5Ul.js → MenuSetting-Dj3DAuoB.js} +5 -5
  17. package/dist/{PrintRoute-D_RnZLzI.js → PrintRoute-BfXk1p59.js} +4 -4
  18. package/dist/{Product-C-f6qhcE.js → Product-7pnyMd-X.js} +1 -1
  19. package/dist/{Product.vue_vue_type_script_setup_true_lang-BcO0akCw.js → Product.vue_vue_type_script_setup_true_lang-Bft1Wi9k.js} +13 -13
  20. package/dist/{ProductInternalTools-9rpLKEwW.js → ProductInternalTools-b5rLoSbj.js} +6 -6
  21. package/dist/{Products-CZ_120hq.js → Products-CeXKY52h.js} +11 -11
  22. package/dist/{Publish-BfPGjLwj.js → Publish-DKgmrPLo.js} +3 -3
  23. package/dist/{Recipe-1NLr5QHu.js → Recipe-Cch9yLZJ.js} +4 -4
  24. package/dist/{Scheduler-DBGLUDp3.js → Scheduler-TCz2jO_y.js} +3 -3
  25. package/dist/{ServingSequence-CtzGqKjV.js → ServingSequence-CAMyyfXX.js} +3 -3
  26. package/dist/{Setting-BLddfZ8p.js → Setting-CBfqRYeZ.js} +5 -5
  27. package/dist/{Subcategory-CWvpgYbz.js → Subcategory-C7rQILAu.js} +4 -4
  28. package/dist/{Takeaway-CZv7nbua.js → Takeaway-3737sqEv.js} +4 -4
  29. package/dist/{Takeaway-Cjr25hZ3.js → Takeaway-Dn5y_WS4.js} +1 -1
  30. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-DrWuEv9T.js → Takeaway.vue_vue_type_script_setup_true_lang-AFcm8w-0.js} +5 -5
  31. package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-KymWiQts.js → Thumbnail.vue_vue_type_script_setup_true_lang-tKvAu_HV.js} +4 -4
  32. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-09S2AsEC.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DT0BR9Wp.js} +15 -15
  33. package/dist/{Unit-WZZlq51g.js → Unit-CNixgl5X.js} +2 -2
  34. package/dist/{Variant-BN37wT7-.js → Variant-LE96Mvx4.js} +3 -3
  35. package/dist/{_id_-CJiM5Fsb.js → _id_-DuN-j-HT.js} +10 -10
  36. package/dist/{app-BwlNcPEW.js → app-BXE3nOai.js} +1 -1
  37. package/dist/{app-DAcNNri-.js → app-C4bVAYXt.js} +26 -26
  38. package/dist/app.js +1 -1
  39. package/dist/assets/{linked-status-gR-9j7yR.js → linked-status-BMxHdOnB.js} +5 -5
  40. package/dist/assets/{override-menu-DCeiQ3nv.js → override-menu-Cf8lj9JK.js} +5 -5
  41. package/dist/assets/{validate-menu-DGHTyvxx.js → validate-menu-Cy-jZfJw.js} +2 -2
  42. package/dist/{catalog-Q81xyWYw.js → catalog-P-FScBtj.js} +1 -1
  43. package/dist/{catalogSetting-CTcI8y4l.js → catalogSetting-qpmnrYdz.js} +1 -1
  44. package/dist/{category-BGAF3S-a.js → category-CpPHKQBV.js} +1 -1
  45. package/dist/{currency-CfL445Pm.js → currency-SC8m3A2R.js} +1 -1
  46. package/dist/{customAttributes-1VYjgn7C.js → customAttributes-DDxAxCIl.js} +1 -1
  47. package/dist/{dayjs.min-CRvYBDg9.js → dayjs.min-DMHo36Uy.js} +1 -1
  48. package/dist/{index-B5bUe5v0.js → index-C1LE6Fzu.js} +4 -4
  49. package/dist/{index-BMxx-9A4.js → index-DL0tCyUS.js} +2 -1
  50. package/dist/{index-CCEau-7G.js → index-DTz6AplD.js} +3 -3
  51. package/dist/{index-DrleVzes.js → index-Djd3GZMe.js} +1 -1
  52. package/dist/{item-DHKajF8b.js → item-CF8Vasqk.js} +375 -375
  53. package/dist/{jszip.min-DkiI7EBq.js → jszip.min-DAoxGsLT.js} +2 -2
  54. package/dist/{menu-BbG3x3nu.js → menu-CIoofLnu.js} +1 -1
  55. package/dist/{menu-CpyTSM9I.js → menu-Cbw73zNw.js} +1776 -1776
  56. package/dist/{menuV2-DbxW9RXJ.js → menuV2-CN4yLpE-.js} +54 -54
  57. package/dist/{priceTier-q1UtJO6t.js → priceTier-CLxogP1i.js} +1 -1
  58. package/dist/{scheduler-csXKcMJW.js → scheduler-D7AASYCo.js} +4 -4
  59. package/dist/{subcategory-5SGSwpmw.js → subcategory-CHPRAwbG.js} +2 -2
  60. package/dist/{toExcel-7yM-Gzde.js → toExcel-BplvkAfm.js} +2 -2
  61. package/dist/{unit-BfcvU-jy.js → unit-D2NSsXxY.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 C, D as T, A as ae, ao as re, J as G, I as ie, a8 as x, c as L, X as V, ai as oe, ap as Le, aq as qe, B as ze, aa as Ge, ar as He, as as Be, a7 as Je } from "./menu-CpyTSM9I.js";
4
+ import { an as ue, H as C, D as T, A as ae, ao as re, J as q, I as ie, a8 as x, c as L, X as V, ai as oe, ap as Le, aq as Be, B as He, aa as qe, ar as ze, as as Ge, a7 as Je } from "./menu-Cbw73zNw.js";
5
5
  import { defineStore as Ye } from "pinia";
6
- import { shallowRef as j, ref as H, computed as S, shallowReactive as Qe, effectScope as Xe, watch as Ze } from "vue";
6
+ import { shallowRef as j, ref as z, computed as S, shallowReactive as Xe, effectScope as Qe, watch as Ze } 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-gR-9j7yR.js", nt = "/assets/override-menu-DCeiQ3nv.js";
9
+ const tt = "/assets/linked-status-BMxHdOnB.js", nt = "/assets/override-menu-Cf8lj9JK.js";
10
10
  function rt(e) {
11
11
  var o;
12
12
  const t = C(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 B(e, t) {
107
+ function G(e, t) {
108
108
  var o;
109
109
  if (!t)
110
110
  return e;
@@ -117,7 +117,7 @@ function B(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 B(c, i);
120
+ return G(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 B(a, r);
134
+ return G(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 B(u, c);
148
+ return G(u, c);
149
149
  }), r;
150
150
  }), {
151
151
  ...t,
@@ -183,11 +183,11 @@ function Dt(e, t) {
183
183
  return r;
184
184
  }, [])) || []).join(" / ");
185
185
  }
186
- const q = /* @__PURE__ */ new Map();
186
+ const B = /* @__PURE__ */ new Map();
187
187
  async function Vt(e, t) {
188
188
  const n = `${e._id}-${e.updatedAt}-${t}`;
189
- if (q.has(n))
190
- return q.get(n);
189
+ if (B.has(n))
190
+ return B.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 B.set(n, o), o;
199
199
  }
200
200
  async function ce(e, t, n) {
201
201
  return await ue(nt, {
@@ -219,7 +219,7 @@ function Tt(e, t, n) {
219
219
  }
220
220
  return r(t, n);
221
221
  }
222
- function Ft(e, t, n) {
222
+ function Kt(e, t, n) {
223
223
  const o = /* @__PURE__ */ new Set();
224
224
  function r(a, l) {
225
225
  if (!e || !a || !l || o.has(a)) return !1;
@@ -234,15 +234,15 @@ function Ft(e, t, n) {
234
234
  }
235
235
  return r(t, n);
236
236
  }
237
- const z = /* @__PURE__ */ new Map();
237
+ const H = /* @__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 (z.has(o))
241
- return z.get(o);
240
+ if (H.has(o))
241
+ return H.get(o);
242
242
  const r = await ce(e, t, n);
243
- return z.set(o, r), r;
243
+ return H.set(o, r), r;
244
244
  }
245
- async function Kt(e, t, n) {
245
+ async function Ft(e, t, n) {
246
246
  var l, u;
247
247
  const o = await at(e, t, null), r = [], a = (c, i) => {
248
248
  const f = C(c);
@@ -268,7 +268,7 @@ async function Kt(e, t, n) {
268
268
  }
269
269
  return r;
270
270
  }
271
- const M = 0, F = 3;
271
+ const M = 0, K = 3;
272
272
  function it(e) {
273
273
  const t = /^\/(.*)\/([gimyu]*)$/.exec(e.toString());
274
274
  if (!t)
@@ -297,7 +297,7 @@ function P(e) {
297
297
  function k(e) {
298
298
  return typeof e == "object" && e !== null && !Array.isArray(e) && !(e instanceof Date) && !(e instanceof RegExp);
299
299
  }
300
- function K(e, t) {
300
+ function F(e, t) {
301
301
  if (e === t) return !0;
302
302
  if (typeof e != typeof t) return !1;
303
303
  if (e instanceof Date && t instanceof Date)
@@ -307,14 +307,14 @@ function K(e, t) {
307
307
  if (Array.isArray(e) && Array.isArray(t)) {
308
308
  if (e.length !== t.length) return !1;
309
309
  for (let n = 0; n < e.length; n++)
310
- if (!K(e[n], t[n])) return !1;
310
+ if (!F(e[n], t[n])) return !1;
311
311
  return !0;
312
312
  }
313
313
  if (k(e) && k(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)
317
- if (!Object.prototype.hasOwnProperty.call(t, r) || !K(e[r], t[r])) return !1;
317
+ if (!Object.prototype.hasOwnProperty.call(t, r) || !F(e[r], t[r])) return !1;
318
318
  return !0;
319
319
  }
320
320
  return !1;
@@ -330,7 +330,7 @@ function ct(e, t, n) {
330
330
  const i = e[c], f = n ? n(i) : JSON.stringify(i), h = a.get(f);
331
331
  if (h) {
332
332
  for (const m of h)
333
- if (!u.has(m) && K(i, t[m])) {
333
+ if (!u.has(m) && F(i, t[m])) {
334
334
  l.push({ leftIndex: c, rightIndex: m }), u.add(m);
335
335
  break;
336
336
  }
@@ -340,7 +340,7 @@ function ct(e, t, n) {
340
340
  }
341
341
  function lt(e, t, n) {
342
342
  var m, v;
343
- if (K(e, t)) return;
343
+ if (F(e, t)) return;
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) {
@@ -360,7 +360,7 @@ 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 I = `_${p}`, R = a ? [e[p], b, F] : ["", b, F];
363
+ const I = `_${p}`, R = a ? [e[p], b, K] : ["", b, K];
364
364
  o[I] = R;
365
365
  }
366
366
  } else {
@@ -375,7 +375,7 @@ function lt(e, t, n) {
375
375
  return o;
376
376
  }
377
377
  function dt(e, t, n) {
378
- if (K(e, t)) return;
378
+ if (F(e, t)) return;
379
379
  const o = {}, r = Object.keys(e), a = Object.keys(t), l = /* @__PURE__ */ new Set([...r, ...a]);
380
380
  for (const u of l) {
381
381
  if (n != null && n.propertyFilter && !n.propertyFilter(u, { left: e, right: t }))
@@ -392,7 +392,7 @@ function dt(e, t, n) {
392
392
  return Object.keys(o).length > 0 ? o : void 0;
393
393
  }
394
394
  function J(e, t, n) {
395
- if (K(e, t)) return;
395
+ if (F(e, t)) return;
396
396
  if (e === void 0 && t !== void 0) {
397
397
  const u = n != null && n.cloneDiffValues ? O(t) : t;
398
398
  return [P(u)];
@@ -416,7 +416,7 @@ function mt(e, t, n) {
416
416
  for (const u in t) {
417
417
  if (u === "_t" || !u.startsWith("_")) continue;
418
418
  const c = parseInt(u.slice(1)), i = t[u];
419
- Array.isArray(i) && (i.length === 3 && i[2] === M ? o.add(c) : i.length === 3 && i[2] === F && r.set(c, i[1]));
419
+ Array.isArray(i) && (i.length === 3 && i[2] === M ? o.add(c) : i.length === 3 && i[2] === K && r.set(c, i[1]));
420
420
  }
421
421
  const a = [];
422
422
  let l = 0;
@@ -481,9 +481,9 @@ function yt(e) {
481
481
  if (Array.isArray(r)) {
482
482
  if (r.length === 3 && r[2] === M)
483
483
  t[o] = [r[0]];
484
- else if (r.length === 3 && r[2] === F) {
484
+ else if (r.length === 3 && r[2] === K) {
485
485
  const a = r[1];
486
- t[`_${a}`] = [r[0], o, F];
486
+ t[`_${a}`] = [r[0], o, K];
487
487
  }
488
488
  }
489
489
  } else {
@@ -491,7 +491,7 @@ function yt(e) {
491
491
  if (Array.isArray(r) && r.length === 1)
492
492
  t[`_${o}`] = [r[0], M, M];
493
493
  else {
494
- const a = Q(r);
494
+ const a = X(r);
495
495
  a !== void 0 && (t[n] = a);
496
496
  }
497
497
  }
@@ -504,13 +504,13 @@ function ht(e) {
504
504
  if (Array.isArray(o))
505
505
  o.length === 1 ? t[n] = [o[0], M, M] : o.length === 3 && o[2] === M ? t[n] = [o[0]] : o.length === 2 && (t[n] = [o[1], o[0]]);
506
506
  else {
507
- const r = Q(o);
507
+ const r = X(o);
508
508
  r !== void 0 && (t[n] = r);
509
509
  }
510
510
  }
511
511
  return t;
512
512
  }
513
- function Q(e) {
513
+ function X(e) {
514
514
  if (e !== void 0) {
515
515
  if (Array.isArray(e)) {
516
516
  if (e.length === 1)
@@ -519,14 +519,14 @@ function Q(e) {
519
519
  return [e[1], e[0]];
520
520
  if (e.length === 3 && e[2] === M)
521
521
  return [e[0]];
522
- if (e.length === 3 && e[2] === F)
522
+ if (e.length === 3 && e[2] === K)
523
523
  return e;
524
524
  }
525
525
  return k(e) && e._t === "a" ? yt(e) : k(e) ? ht(e) : e;
526
526
  }
527
527
  }
528
528
  function de(e) {
529
- return Q(e);
529
+ return X(e);
530
530
  }
531
531
  function pt(e, t, n) {
532
532
  const o = de(t);
@@ -566,7 +566,7 @@ function St({
566
566
  includeValueOnMove: !1
567
567
  },
568
568
  cloneDiffValues: !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);
569
+ }), n = j(null), o = j([]), r = z(-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 = C(v), a.value = C(v), o.value = [{ delta: null }], r.value = 0;
@@ -616,7 +616,7 @@ function St({
616
616
  }
617
617
  const bt = {
618
618
  async updateMenuModule(e, t) {
619
- const n = G.RequestRunner.operation(t, e.modules);
619
+ const n = q.RequestRunner.operation(t, e.modules);
620
620
  if (n.validateError.length > 0)
621
621
  throw new Error(n.validateError.join(`
622
622
  `));
@@ -667,7 +667,7 @@ function wt() {
667
667
  const Pt = Ye(
668
668
  "mf-menu-store-v2",
669
669
  () => {
670
- const e = Qe(wt()), t = se(), n = et(), o = S(() => e.menu.modules.serveSequence ? x(e.menu.modules.serveSequence, {
670
+ const e = Xe(wt()), t = se(), n = et(), o = S(() => e.menu.modules.serveSequence ? x(e.menu.modules.serveSequence, {
671
671
  selector: "position"
672
672
  }) : []), r = S(() => {
673
673
  var s;
@@ -692,7 +692,7 @@ const Pt = Ye(
692
692
  function f(s, d = !0) {
693
693
  e.menu = { ...s, _rev: e.menu._rev }, d && D.push(e.menu);
694
694
  }
695
- const h = j(fe()), m = H(!1), v = H(1);
695
+ const h = j(fe()), m = z(!1), v = z(1);
696
696
  async function p() {
697
697
  var y;
698
698
  m.value = !0;
@@ -729,15 +729,15 @@ const Pt = Ye(
729
729
  }
730
730
  const w = ie.debounce(p, 200);
731
731
  let I = null, R = null;
732
- function X() {
733
- R && (R(), R = null), I && I.stop(), I = Xe(!0), R = I.run(() => Ze(
732
+ function Q() {
733
+ R && (R(), R = null), I && I.stop(), I = Qe(!0), R = I.run(() => Ze(
734
734
  () => [e.menu, e.currentCatalogId, e.currentSchedulerId],
735
735
  () => {
736
736
  m.value || w();
737
737
  }
738
738
  )) || null;
739
739
  }
740
- X();
740
+ Q();
741
741
  const me = S(() => [
742
742
  {
743
743
  label: "Main",
@@ -812,7 +812,7 @@ const Pt = Ye(
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), Ce = S(() => {
815
- const s = qe(e.menu.modules.sku);
815
+ const s = Be(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 = {
@@ -895,10 +895,10 @@ const Pt = Ye(
895
895
  }
896
896
  const ke = S(() => {
897
897
  var g;
898
- const s = ["SV5", "SV10"], d = ze.Country.getCountryFlattenTaxes(
898
+ const s = ["SV5", "SV10"], d = He.Country.getCountryFlattenTaxes(
899
899
  se().currentCountry.value
900
900
  ), y = d.filter((_) => a.value || !s.includes(_.taxCode)).map((_) => ({
901
- label: `${_.name} (${Ge(_.rate)}%)`,
901
+ label: `${_.name} (${qe(_.rate)}%)`,
902
902
  value: W(_),
903
903
  meta: {
904
904
  rate: _.rate
@@ -912,7 +912,7 @@ const Pt = Ye(
912
912
  const s = await Je.readMenu();
913
913
  e.menu = s ?? e.menu, te(null);
914
914
  }, xe = async () => {
915
- const { fetchAllRestaurants: s } = Be();
915
+ const { fetchAllRestaurants: s } = Ge();
916
916
  await s({
917
917
  onBatchEnd: (d) => {
918
918
  e.restaurants = d;
@@ -936,9 +936,9 @@ const Pt = Ye(
936
936
  }));
937
937
  try {
938
938
  if (d || g.some(
939
- (A) => [G.F_OPERATION_TYPE.delete, G.F_OPERATION_TYPE.deleteMany].includes(A.operation)
939
+ (A) => [q.F_OPERATION_TYPE.delete, q.F_OPERATION_TYPE.deleteMany].includes(A.operation)
940
940
  )) {
941
- const A = await He(g, e.menu.modules);
941
+ const A = await ze(g, e.menu.modules);
942
942
  if (A !== !0) throw new Error(A);
943
943
  }
944
944
  const _ = await bt.updateMenuModule(e.menu, g);
@@ -950,7 +950,7 @@ const Pt = Ye(
950
950
  message: _
951
951
  });
952
952
  }
953
- }, Fe = async (s) => {
953
+ }, Ke = async (s) => {
954
954
  const d = {
955
955
  ...e.menu,
956
956
  masterCatalogSetting: s.masterCatalogSetting,
@@ -958,7 +958,7 @@ 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 = () => {
961
+ }, D = St({ maxHistorySize: 50 }), Fe = S(() => D.canUndo.value), Pe = S(() => D.canRedo.value), $e = () => {
962
962
  const s = D.undo();
963
963
  s && f(s, !1);
964
964
  }, je = () => {
@@ -1008,7 +1008,7 @@ const Pt = Ye(
1008
1008
  selectCategory: De,
1009
1009
  setRestaurantAttrParams: Ve,
1010
1010
  updateMenu: Te,
1011
- updateMenuSetting: Fe,
1011
+ updateMenuSetting: Ke,
1012
1012
  computeMergedMenu: p,
1013
1013
  // helper
1014
1014
  encodeTax: W,
@@ -1016,7 +1016,7 @@ const Pt = Ye(
1016
1016
  getSelectedTax: Re,
1017
1017
  mapVariant: ge,
1018
1018
  // history
1019
- canUndoHistory: Ke,
1019
+ canUndoHistory: Fe,
1020
1020
  canRedoHistory: Pe,
1021
1021
  undoHistory: $e,
1022
1022
  redoHistory: je,
@@ -1025,7 +1025,7 @@ const Pt = Ye(
1025
1025
  w.cancel(), R && (R(), R = null), I && (I.stop(), I = null), Ne();
1026
1026
  },
1027
1027
  $reinitialize: () => {
1028
- X();
1028
+ Q();
1029
1029
  }
1030
1030
  };
1031
1031
  }
@@ -1033,8 +1033,8 @@ const Pt = Ye(
1033
1033
  export {
1034
1034
  Vt as a,
1035
1035
  Tt as b,
1036
- Ft as c,
1037
- Kt as f,
1036
+ Kt as c,
1037
+ Ft as f,
1038
1038
  Dt as g,
1039
1039
  Ot as m,
1040
1040
  at as o,
@@ -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-CpyTSM9I.js";
4
+ import { u as k, G as M } from "./menu-Cbw73zNw.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-CpyTSM9I.js";
2
+ import { H as S, A as r, u as pe, I as ve, J as ue } from "./menu-Cbw73zNw.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-1VYjgn7C.js";
5
+ import { _ as ne, a as fe } from "./customAttributes-DDxAxCIl.js";
6
6
  import { u as ye } from "./discardConfirm-BHni0LNu.js";
7
- import { u as he } from "./menu-BbG3x3nu.js";
8
- import { L as ge } from "./LinkProductSideSheet-Chnw-NLG.js";
7
+ import { u as he } from "./menu-CIoofLnu.js";
8
+ import { L as ge } from "./LinkProductSideSheet-iaEdzy3q.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-CpyTSM9I.js";
2
+ import { J as l, A as d, u as F } from "./menu-Cbw73zNw.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-DbxW9RXJ.js";
5
+ import { u as v } from "./menuV2-CN4yLpE-.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-Bh2tYfZz.js";
2
- import "./menu-CpyTSM9I.js";
1
+ import { u as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-BOS5I76A.js";
2
+ import "./menu-Cbw73zNw.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-CpyTSM9I.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-Cbw73zNw.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-CiBqmBzO.js";
10
- import "./menuV2-DbxW9RXJ.js";
10
+ import "./menuV2-CN4yLpE-.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.61-prod",
3
+ "version": "0.31.62-beta.1",
4
4
  "files": [
5
5
  "dist"
6
6
  ],