@feedmepos/mf-menu 0.32.80-alpha.1 → 0.32.80-alpha.2

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-B_3q-jGV.js → App-BPZg4pLc.js} +6 -6
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-EzaxIWYe.js → ApplyProduct.vue_vue_type_script_setup_true_lang-B7ScMyxd.js} +3 -3
  3. package/dist/{ApplyProductDialog.vue_vue_type_script_setup_true_lang-BofETSvD.js → ApplyProductDialog.vue_vue_type_script_setup_true_lang-DVDns9wB.js} +3 -3
  4. package/dist/{Catalog-Cdt9ih1h.js → Catalog-B2AZFUkz.js} +43 -41
  5. package/dist/{CatalogBinding-BSF_MBL4.js → CatalogBinding-1JkR29_G.js} +3 -3
  6. package/dist/{Category-DyerLCh0.js → Category-B5ZvYX7Z.js} +4 -4
  7. package/dist/{Category-CfVPbRcF.js → Category-U6oCFl13.js} +4 -4
  8. package/dist/{CookingGuide-CDaqQrbu.js → CookingGuide-BWeO-2BE.js} +5 -5
  9. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-BohTZA1b.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-DhDGAjuD.js} +1 -1
  10. package/dist/{Group-CNlxhmKi.js → Group-DEqF-2Ec.js} +3 -3
  11. package/dist/{Group-DXuLmwp7.js → Group-DYCaOa1j.js} +1 -1
  12. package/dist/{Group.vue_vue_type_script_setup_true_lang-CUeNDucZ.js → Group.vue_vue_type_script_setup_true_lang-Cz_OgBw3.js} +7 -7
  13. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DTXGNwei.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CZRL6oLu.js} +5 -5
  14. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-D2wipPlD.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-C4-035Ok.js} +217 -213
  15. package/dist/{Ingredient-ClEU9d77.js → Ingredient-UJvy8okw.js} +4 -4
  16. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-B9y36l7Y.js → InventoryBinding.vue_vue_type_script_setup_true_lang-DbnGp6QN.js} +2 -2
  17. package/dist/{LinkProductSideSheet-DIgFv7G8.js → LinkProductSideSheet-CyfNHiCW.js} +4 -4
  18. package/dist/{MenuSetting-B4uEdB84.js → MenuSetting-CcpTsmtI.js} +161 -159
  19. package/dist/{OrderPacing-Ckq0cn6U.js → OrderPacing-DVeA5Ys_.js} +5 -5
  20. package/dist/{PrintRoute-h4nV5d7l.js → PrintRoute-siBlcAE2.js} +5 -5
  21. package/dist/{Product-9Yniz1GD.js → Product-qiwLUX8u.js} +1 -1
  22. package/dist/{Product.vue_vue_type_script_setup_true_lang-Cy28bZo-.js → Product.vue_vue_type_script_setup_true_lang-BSt5cRw3.js} +14 -14
  23. package/dist/{ProductInternalTools-CGD4s7yB.js → ProductInternalTools-D1faZsDQ.js} +6 -6
  24. package/dist/{Products-J5WF8m00.js → Products-Bh_LcJAk.js} +40 -40
  25. package/dist/{Publish-oDvTFTqc.js → Publish-_SOH6j46.js} +4 -4
  26. package/dist/{Recipe-ZwC2_bE7.js → Recipe-Db6euS5p.js} +5 -5
  27. package/dist/{RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-DEloDluj.js → RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-Q8g6Chsx.js} +1 -1
  28. package/dist/{RuleView.vue_vue_type_script_setup_true_lang-CaueZdW6.js → RuleView.vue_vue_type_script_setup_true_lang-D_yLnxKQ.js} +211 -211
  29. package/dist/{Scheduler-BlJFlQ0V.js → Scheduler-EyZm0fJM.js} +3 -3
  30. package/dist/{ServingSequence-CRMsO0FH.js → ServingSequence-C2ENIvYn.js} +3 -3
  31. package/dist/{Setting-BvzmMD4U.js → Setting-EskhQnob.js} +89 -87
  32. package/dist/{Subcategory-5yQK2PNE.js → Subcategory-CPQgIkuh.js} +6 -6
  33. package/dist/{Takeaway-SdnEo_31.js → Takeaway-BWWBwve9.js} +1 -1
  34. package/dist/{Takeaway-C5PTXMIC.js → Takeaway-BqAt5Bba.js} +4 -4
  35. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-Dz-pq1E9.js → Takeaway.vue_vue_type_script_setup_true_lang-iUVhkaxh.js} +5 -5
  36. package/dist/{TranslationFieldSection.vue_vue_type_script_setup_true_lang-CwlUzo8B.js → TranslationFieldSection.vue_vue_type_script_setup_true_lang-CbovAr2w.js} +1 -1
  37. package/dist/{TranslationSideSheet.vue_vue_type_script_setup_true_lang-DGPLhhqq.js → TranslationSideSheet.vue_vue_type_script_setup_true_lang-DE9zBQfA.js} +2 -2
  38. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-ByaA26hm.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-B6XUvI7o.js} +16 -16
  39. package/dist/{Unit-DRcJ41tY.js → Unit-ItHUxnF0.js} +2 -2
  40. package/dist/{Variant-CAq9W_f6.js → Variant-Xl4HcjYa.js} +3 -3
  41. package/dist/{_id_-i1n5B-gX.js → _id_-BETifIkG.js} +10 -10
  42. package/dist/{app-Qr9iwBkJ.js → app-CCnyILTK.js} +1 -1
  43. package/dist/{app-BlT8oUHl.js → app-Cj0pR2T4.js} +33 -33
  44. package/dist/app.js +1 -1
  45. package/dist/assets/{linked-status--OiV7O46.js → linked-status-yKfTOgyX.js} +3 -3
  46. package/dist/assets/{menu-export-DQYly0C_.js → menu-export-CVG-AbK2.js} +3 -3
  47. package/dist/assets/{override-menu-DgGkfRxw.js → override-menu-B3OvgK_l.js} +3 -3
  48. package/dist/assets/{validate-menu-F4qdvd9o.js → validate-menu-CALVTmyh.js} +2 -2
  49. package/dist/{catalog-Cad8inAT.js → catalog-_745fqJH.js} +1 -1
  50. package/dist/{catalogSetting-B_5ExaFJ.js → catalogSetting-DqkosGOo.js} +1 -1
  51. package/dist/{currency-fqDiv99h.js → currency-BjlwJz4O.js} +1 -1
  52. package/dist/{dayjs.min-BlPKU-gB.js → dayjs.min-B_7TJNn-.js} +2 -2
  53. package/dist/{discardConfirm-DE1ldA28.js → discardConfirm-CNbn-98W.js} +1 -1
  54. package/dist/{index-C8lGawTH.js → index-CT_V152O.js} +1 -1
  55. package/dist/{index-BTUj9IUq.js → index-D7eteYCJ.js} +6 -6
  56. package/dist/{index-CjcE1rZ3.js → index-D_7F5hbU.js} +5 -5
  57. package/dist/{index.vue_vue_type_script_setup_true_lang-XXTier47.js → index.vue_vue_type_script_setup_true_lang-CTVmj2s2.js} +6 -6
  58. package/dist/{item-MMgj5alr.js → item-D7VvCAQD.js} +19 -19
  59. package/dist/{jszip.min-D8q6HCPG.js → jszip.min-B89bGJ8y.js} +3 -3
  60. package/dist/{linkProducts-5dv9mRyr.js → linkProducts-spdYc2yf.js} +4 -4
  61. package/dist/{memberPricing-DZKM5Nl6.js → memberPricing-CIokC3Z_.js} +1 -1
  62. package/dist/{menu-BqWVpw6-.js → menu-B-kiQo1d.js} +1 -1
  63. package/dist/{menuV2-DFMrgNS9.js → menuV2-C798b4XY.js} +59 -59
  64. package/dist/{order_pacing-CsGy0Zk1.js → order_pacing-Bk74xJkO.js} +5 -5
  65. package/dist/{priceTier-CBqD2V2j.js → priceTier-vPn2WO6f.js} +1 -1
  66. package/dist/{rules-UVdf2gqd.js → rules-BDmHbNiR.js} +3 -3
  67. package/dist/{scheduler-ZXmJ1ioG.js → scheduler-zfuywFUG.js} +5 -5
  68. package/dist/{toExcel-Bp1Wb0dt.js → toExcel-DKRoeuWL.js} +2 -2
  69. package/dist/{unit-BjNF91RV.js → unit-DZ4-dxHz.js} +3 -3
  70. package/package.json +1 -1
@@ -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-DE1ldA28.js";
4
+ import { l as ae } from "./discardConfirm-CNbn-98W.js";
5
5
  import { defineStore as qe } from "pinia";
6
- import { shallowRef as N, ref as H, computed as S, shallowReactive as ze, effectScope as He, watch as Be } from "vue";
7
- import { f as C, g as ue, m as T, l as ie, at as re, h as B, R as x, c as L, s as V, $ as oe, au as Ge, av as Je, a as Ye, T as Qe, aw as Xe, ax as Ze, O as et } from "./index.vue_vue_type_script_setup_true_lang-XXTier47.js";
6
+ import { shallowRef as N, ref as B, computed as S, shallowReactive as ze, effectScope as Be, watch as He } from "vue";
7
+ import { f as C, g as ue, m as V, l as ie, at as re, h as H, R as x, c as L, s as T, $ as oe, au as Ge, av as Je, a as Ye, T as Xe, aw as Qe, ax as Ze, O as et } from "./index.vue_vue_type_script_setup_true_lang-CTVmj2s2.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--OiV7O46.js", ot = "/assets/override-menu-DgGkfRxw.js";
19
+ const rt = "/assets/linked-status-yKfTOgyX.js", ot = "/assets/override-menu-B3OvgK_l.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 = []) {
@@ -93,7 +93,7 @@ function at(e, t) {
93
93
  if (l)
94
94
  return F(l, t, 1);
95
95
  const g = {
96
- ...T.generator.initMenuV4ItemOverrider(),
96
+ ...V.generator.initMenuV4ItemOverrider(),
97
97
  _id: d._id,
98
98
  combinationKey: d.combinationKey
99
99
  };
@@ -101,7 +101,7 @@ function at(e, t) {
101
101
  });
102
102
  return { ...u, items: a };
103
103
  }), s = e.variant ? e.variant.variantCombinations.map((u) => F(u, t, 1)) : [], r = {
104
- ...T.generator.initMenuV4ItemOverrider(),
104
+ ...V.generator.initMenuV4ItemOverrider(),
105
105
  _id: e._id,
106
106
  name: e.name,
107
107
  code: e.code,
@@ -157,11 +157,11 @@ 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 Tt(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;
164
- }, {}), g = T.getFallbackPrices({
164
+ }, {}), g = V.getFallbackPrices({
165
165
  rawMenu: a,
166
166
  items: l,
167
167
  catalogId: s || void 0,
@@ -175,7 +175,7 @@ async function Vt(e, t, n, s, r, u = !0) {
175
175
  };
176
176
  });
177
177
  }
178
- function Tt(e, t) {
178
+ function Vt(e, t) {
179
179
  if (e.length === 0) return "";
180
180
  const n = e == null ? void 0 : e.split("variant");
181
181
  return ((n == null ? void 0 : n.reduce((r, u) => {
@@ -189,7 +189,7 @@ function Tt(e, t) {
189
189
  }, [])) || []).join(" / ");
190
190
  }
191
191
  const q = /* @__PURE__ */ new Map();
192
- async function $t(e, t) {
192
+ async function Kt(e, t) {
193
193
  const n = `${e._id}-${e.updatedAt}-${t}`;
194
194
  if (q.has(n))
195
195
  return q.get(n);
@@ -217,7 +217,7 @@ async function it(e, t, n) {
217
217
  const r = await ce(e, t, n);
218
218
  return z.set(s, r), r;
219
219
  }
220
- async function Kt(e, t, n) {
220
+ async function $t(e, t, n) {
221
221
  var c, a;
222
222
  const s = await it(e, t, null), r = [], u = (d, l) => {
223
223
  const g = C(d);
@@ -243,7 +243,7 @@ async function Kt(e, t, n) {
243
243
  }
244
244
  return r;
245
245
  }
246
- const M = 0, $ = 3;
246
+ const M = 0, K = 3;
247
247
  function ct(e) {
248
248
  const t = /^\/(.*)\/([gimyu]*)$/.exec(e.toString());
249
249
  if (!t)
@@ -272,7 +272,7 @@ function P(e) {
272
272
  function k(e) {
273
273
  return typeof e == "object" && e !== null && !Array.isArray(e) && !(e instanceof Date) && !(e instanceof RegExp);
274
274
  }
275
- function K(e, t) {
275
+ function $(e, t) {
276
276
  if (e === t) return !0;
277
277
  if (typeof e != typeof t) return !1;
278
278
  if (e instanceof Date && t instanceof Date)
@@ -282,14 +282,14 @@ function K(e, t) {
282
282
  if (Array.isArray(e) && Array.isArray(t)) {
283
283
  if (e.length !== t.length) return !1;
284
284
  for (let n = 0; n < e.length; n++)
285
- if (!K(e[n], t[n])) return !1;
285
+ if (!$(e[n], t[n])) return !1;
286
286
  return !0;
287
287
  }
288
288
  if (k(e) && k(t)) {
289
289
  const n = Object.keys(e), s = Object.keys(t);
290
290
  if (n.length !== s.length) return !1;
291
291
  for (const r of n)
292
- if (!Object.prototype.hasOwnProperty.call(t, r) || !K(e[r], t[r])) return !1;
292
+ if (!Object.prototype.hasOwnProperty.call(t, r) || !$(e[r], t[r])) return !1;
293
293
  return !0;
294
294
  }
295
295
  return !1;
@@ -305,7 +305,7 @@ function lt(e, t, n) {
305
305
  const l = e[d], g = n ? n(l) : JSON.stringify(l), y = u.get(g);
306
306
  if (y) {
307
307
  for (const f of y)
308
- if (!a.has(f) && K(l, t[f])) {
308
+ if (!a.has(f) && $(l, t[f])) {
309
309
  c.push({ leftIndex: d, rightIndex: f }), a.add(f);
310
310
  break;
311
311
  }
@@ -315,7 +315,7 @@ function lt(e, t, n) {
315
315
  }
316
316
  function dt(e, t, n) {
317
317
  var f, v;
318
- if (K(e, t)) return;
318
+ if ($(e, t)) return;
319
319
  const s = { _t: "a" }, r = ((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, c = n == null ? void 0 : n.objectHash;
320
320
  let a = r ? lt(e, t, c) : [];
321
321
  if (!c && e.length === t.length && e.length > 0 && a.length < e.length) {
@@ -335,7 +335,7 @@ function dt(e, t, n) {
335
335
  if (b !== void 0) {
336
336
  const w = J(e[h], t[b], n);
337
337
  if (w !== void 0 && (s[b] = w), r && b !== h) {
338
- const I = `_${h}`, E = u ? [e[h], b, $] : ["", b, $];
338
+ const I = `_${h}`, E = u ? [e[h], b, K] : ["", b, K];
339
339
  s[I] = E;
340
340
  }
341
341
  } else {
@@ -350,7 +350,7 @@ function dt(e, t, n) {
350
350
  return s;
351
351
  }
352
352
  function mt(e, t, n) {
353
- if (K(e, t)) return;
353
+ if ($(e, t)) return;
354
354
  const s = {}, r = Object.keys(e), u = Object.keys(t), c = /* @__PURE__ */ new Set([...r, ...u]);
355
355
  for (const a of c) {
356
356
  if (n != null && n.propertyFilter && !n.propertyFilter(a, { left: e, right: t }))
@@ -367,7 +367,7 @@ function mt(e, t, n) {
367
367
  return Object.keys(s).length > 0 ? s : void 0;
368
368
  }
369
369
  function J(e, t, n) {
370
- if (K(e, t)) return;
370
+ if ($(e, t)) return;
371
371
  if (e === void 0 && t !== void 0) {
372
372
  const a = n != null && n.cloneDiffValues ? O(t) : t;
373
373
  return [P(a)];
@@ -391,7 +391,7 @@ function vt(e, t, n) {
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] === $ && r.set(d, l[1]));
394
+ Array.isArray(l) && (l.length === 3 && l[2] === M ? s.add(d) : l.length === 3 && l[2] === K && r.set(d, l[1]));
395
395
  }
396
396
  const u = [];
397
397
  let c = 0;
@@ -456,9 +456,9 @@ function gt(e) {
456
456
  if (Array.isArray(r)) {
457
457
  if (r.length === 3 && r[2] === M)
458
458
  t[s] = [r[0]];
459
- else if (r.length === 3 && r[2] === $) {
459
+ else if (r.length === 3 && r[2] === K) {
460
460
  const u = r[1];
461
- t[`_${u}`] = [r[0], s, $];
461
+ t[`_${u}`] = [r[0], s, K];
462
462
  }
463
463
  }
464
464
  } else {
@@ -466,7 +466,7 @@ function gt(e) {
466
466
  if (Array.isArray(r) && r.length === 1)
467
467
  t[`_${s}`] = [r[0], M, M];
468
468
  else {
469
- const u = Q(r);
469
+ const u = X(r);
470
470
  u !== void 0 && (t[n] = u);
471
471
  }
472
472
  }
@@ -479,13 +479,13 @@ function ht(e) {
479
479
  if (Array.isArray(s))
480
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]]);
481
481
  else {
482
- const r = Q(s);
482
+ const r = X(s);
483
483
  r !== void 0 && (t[n] = r);
484
484
  }
485
485
  }
486
486
  return t;
487
487
  }
488
- function Q(e) {
488
+ function X(e) {
489
489
  if (e !== void 0) {
490
490
  if (Array.isArray(e)) {
491
491
  if (e.length === 1)
@@ -494,14 +494,14 @@ function Q(e) {
494
494
  return [e[1], e[0]];
495
495
  if (e.length === 3 && e[2] === M)
496
496
  return [e[0]];
497
- if (e.length === 3 && e[2] === $)
497
+ if (e.length === 3 && e[2] === K)
498
498
  return e;
499
499
  }
500
500
  return k(e) && e._t === "a" ? gt(e) : k(e) ? ht(e) : e;
501
501
  }
502
502
  }
503
503
  function de(e) {
504
- return Q(e);
504
+ return X(e);
505
505
  }
506
506
  function pt(e, t, n) {
507
507
  const s = de(t);
@@ -541,7 +541,7 @@ function bt({
541
541
  includeValueOnMove: !1
542
542
  },
543
543
  cloneDiffValues: !1
544
- }), n = N(null), s = N([]), r = H(-1), u = N(null), c = S(() => r.value > 0), a = S(() => r.value < s.value.length - 1);
544
+ }), n = N(null), s = N([]), r = B(-1), u = N(null), c = S(() => r.value > 0), a = S(() => r.value < s.value.length - 1);
545
545
  function d(v) {
546
546
  if (n.value === null) {
547
547
  n.value = C(v), u.value = C(v), s.value = [{ delta: null }], r.value = 0;
@@ -591,7 +591,7 @@ function bt({
591
591
  }
592
592
  const wt = {
593
593
  async updateMenuModule(e, t) {
594
- const n = B.RequestRunner.operation(t, e.modules);
594
+ const n = H.RequestRunner.operation(t, e.modules);
595
595
  if (n.validateError.length > 0)
596
596
  throw new Error(n.validateError.join(`
597
597
  `));
@@ -655,7 +655,7 @@ const Pt = qe(
655
655
  let o = e.menu.modules.catalog.find(
656
656
  (m) => m._id === e.currentCatalogId
657
657
  );
658
- return o && ((i = o.linkItemRules) != null && i.length) && (o = T.populateCatalog({
658
+ return o && ((i = o.linkItemRules) != null && i.length) && (o = V.populateCatalog({
659
659
  catalog: o,
660
660
  ruleGroupSettings: e.menu.ruleGroupSettings,
661
661
  items: e.menu.modules.item,
@@ -667,13 +667,13 @@ const Pt = qe(
667
667
  function g(o, i = !0) {
668
668
  e.menu = { ...o, _rev: e.menu._rev }, i && D.push(e.menu);
669
669
  }
670
- const y = N(me()), f = H(!1), v = H(1);
670
+ const y = N(me()), f = B(!1), v = B(1);
671
671
  async function h() {
672
672
  var m;
673
673
  f.value = !0;
674
674
  let o = e.menu.modules.catalog;
675
675
  if (a.value && ((m = a.value.linkItemRules) != null && m.length)) {
676
- const p = T.populateCatalog({
676
+ const p = V.populateCatalog({
677
677
  catalog: a.value,
678
678
  ruleGroupSettings: e.menu.ruleGroupSettings,
679
679
  items: e.menu.modules.item,
@@ -704,15 +704,15 @@ const Pt = qe(
704
704
  }
705
705
  const w = ae.debounce(h, 200);
706
706
  let I = null, E = null;
707
- function X() {
708
- E && (E(), E = null), I && I.stop(), I = He(!0), E = I.run(() => Be(
707
+ function Q() {
708
+ E && (E(), E = null), I && I.stop(), I = Be(!0), E = I.run(() => He(
709
709
  () => [e.menu, e.currentCatalogId, e.currentSchedulerId],
710
710
  () => {
711
711
  f.value || w();
712
712
  }
713
713
  )) || null;
714
714
  }
715
- X();
715
+ Q();
716
716
  const fe = S(() => [
717
717
  {
718
718
  label: "Main",
@@ -732,11 +732,11 @@ const Pt = qe(
732
732
  position: 0
733
733
  }
734
734
  ] : [],
735
- ...V(o, (i) => i.name)
735
+ ...T(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 T(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 Pt = 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 T(o, (m) => m.code || m.name);
754
754
  }), ye = S(() => {
755
- const o = e.menu.modules.category, i = V(o, (p) => p.name).reduce(
755
+ const o = e.menu.modules.category, i = T(o, (p) => p.name).reduce(
756
756
  (p, _, A) => (p[_._id] = A, p),
757
757
  { "": 0 }
758
758
  ), m = e.menu.modules.item;
759
- return V(
759
+ return T(
760
760
  m,
761
761
  (p) => p.code || p.name
762
762
  ).reduce((p, _, A) => (p[_._id] = A + i[_.category || ""], p), {});
@@ -780,9 +780,9 @@ const Pt = qe(
780
780
  });
781
781
  function pe(o = []) {
782
782
  const i = o.map((p) => j.value.find((_) => _._id === p)).filter((p) => !!p);
783
- return T.fullVariantCombination(i).reduce((p, _) => (p[_.combinationKey] = _.selectionName.join(" / "), p), {});
783
+ return V.fullVariantCombination(i).reduce((p, _) => (p[_.combinationKey] = _.selectionName.join(" / "), p), {});
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(() => T(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
787
  })), we = S(() => x(e.menu.modules.unit, { selector: "name" })), Me = S(() => x(Ge(e.menu.modules.recipe, e.menu.modules.sku), {
788
788
  selector: "name"
@@ -886,7 +886,7 @@ const Pt = qe(
886
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
- label: `${_.name} (${Qe(_.rate)}%)`,
889
+ label: `${_.name} (${Xe(_.rate)}%)`,
890
890
  value: W(_),
891
891
  meta: {
892
892
  rate: _.rate
@@ -914,11 +914,11 @@ const Pt = qe(
914
914
  e.currentCatalogId = o;
915
915
  }, De = (o) => {
916
916
  e.currentSchedulerId = o;
917
- }, Ve = (o) => {
918
- e.currentCategoryIds = o;
919
917
  }, Te = (o) => {
918
+ e.currentCategoryIds = o;
919
+ }, Ve = (o) => {
920
920
  e.currentRestaurantAttrParams = o;
921
- }, $e = async (o, i) => {
921
+ }, Ke = async (o, i) => {
922
922
  const m = Array.isArray(o) ? o : [o];
923
923
  if (!m.length) return;
924
924
  const p = m.map((_) => ({
@@ -928,9 +928,9 @@ const Pt = qe(
928
928
  }));
929
929
  try {
930
930
  if (i || p.some(
931
- (A) => [B.F_OPERATION_TYPE.delete, B.F_OPERATION_TYPE.deleteMany].includes(A.operation)
931
+ (A) => [H.F_OPERATION_TYPE.delete, H.F_OPERATION_TYPE.deleteMany].includes(A.operation)
932
932
  )) {
933
- const A = await Xe(p, e.menu.modules);
933
+ const A = await Qe(p, e.menu.modules);
934
934
  if (A !== !0) throw new Error(A);
935
935
  }
936
936
  const _ = await wt.updateMenuModule(e.menu, p);
@@ -942,7 +942,7 @@ const Pt = qe(
942
942
  message: _
943
943
  });
944
944
  }
945
- }, Ke = async (o) => {
945
+ }, $e = async (o) => {
946
946
  const i = {
947
947
  ...e.menu,
948
948
  masterCatalogSetting: o.masterCatalogSetting,
@@ -998,10 +998,10 @@ const Pt = qe(
998
998
  readRestaurants: Oe,
999
999
  selectCatalog: te,
1000
1000
  selectScheduler: De,
1001
- selectCategory: Ve,
1002
- setRestaurantAttrParams: Te,
1003
- updateMenu: $e,
1004
- updateMenuSetting: Ke,
1001
+ selectCategory: Te,
1002
+ setRestaurantAttrParams: Ve,
1003
+ updateMenu: Ke,
1004
+ updateMenuSetting: $e,
1005
1005
  computeMergedMenu: h,
1006
1006
  // helper
1007
1007
  encodeTax: W,
@@ -1018,17 +1018,17 @@ const Pt = qe(
1018
1018
  w.cancel(), E && (E(), E = null), I && (I.stop(), I = null), Ue();
1019
1019
  },
1020
1020
  $reinitialize: () => {
1021
- X();
1021
+ Q();
1022
1022
  }
1023
1023
  };
1024
1024
  }
1025
1025
  );
1026
1026
  export {
1027
- $t as a,
1028
- Kt as f,
1029
- Tt as g,
1027
+ Kt as a,
1028
+ $t as f,
1029
+ Vt as g,
1030
1030
  nt as i,
1031
- Vt as m,
1031
+ Tt as m,
1032
1032
  it as o,
1033
1033
  Pt 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, j as oe, b as le, h as B, i as K } from "./index.vue_vue_type_script_setup_true_lang-XXTier47.js";
2
+ import { u as Y, j as oe, b as le, h as B, i as K } from "./index.vue_vue_type_script_setup_true_lang-CTVmj2s2.js";
3
3
  import { useI18n as j } from "@feedmepos/mf-common";
4
4
  import { components as A, FmButtonVariant as re, FmButtonColorThemeVariant as R, useSnackbar as ie } from "@feedmepos/ui-library";
5
- import { _ as J, u as se } from "./RuleView.vue_vue_type_script_setup_true_lang-CaueZdW6.js";
5
+ import { _ as J, u as se } from "./RuleView.vue_vue_type_script_setup_true_lang-D_yLnxKQ.js";
6
6
  import { c as de } from "./object-DVUNCr7w.js";
7
- import { _ as ue } from "./app-BlT8oUHl.js";
8
- import { L as ce } from "./LinkProductSideSheet-DIgFv7G8.js";
7
+ import { _ as ue } from "./app-Cj0pR2T4.js";
8
+ import { L as ce } from "./LinkProductSideSheet-CyfNHiCW.js";
9
9
  import { u as me } from "./search-BAPEUu1R.js";
10
- import { _ as pe } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-DGPLhhqq.js";
10
+ import { _ as pe } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-DE9zBQfA.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-XXTier47.js";
4
+ import { u as k, b as M } from "./index.vue_vue_type_script_setup_true_lang-CTVmj2s2.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 { h as v, i as C, u as Y } from "./index.vue_vue_type_script_setup_true_lang-XXTier47.js";
2
+ import { h as v, i as C, u as Y } from "./index.vue_vue_type_script_setup_true_lang-CTVmj2s2.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-DFMrgNS9.js";
6
- import { _ as $ } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-DGPLhhqq.js";
5
+ import { u as R } from "./menuV2-C798b4XY.js";
6
+ import { _ as $ } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-DE9zBQfA.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-DE1ldA28.js";
3
- import { f as w, B as U, u as ke, F as Fe, C as q, h as ie, i as re, S as me } from "./index.vue_vue_type_script_setup_true_lang-XXTier47.js";
2
+ import { u as ge, l as Ve } from "./discardConfirm-CNbn-98W.js";
3
+ import { f as w, B as U, u as ke, F as Fe, C as q, h as ie, i as re, S as me } from "./index.vue_vue_type_script_setup_true_lang-CTVmj2s2.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-CaueZdW6.js";
8
- import { u as we } from "./menu-BqWVpw6-.js";
9
- import { L as Pe } from "./LinkProductSideSheet-DIgFv7G8.js";
7
+ import { _ as se } from "./RuleView.vue_vue_type_script_setup_true_lang-D_yLnxKQ.js";
8
+ import { u as we } from "./menu-B-kiQo1d.js";
9
+ import { L as Pe } from "./LinkProductSideSheet-CyfNHiCW.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-D2wipPlD.js";
2
- import "./discardConfirm-DE1ldA28.js";
1
+ import { u as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-C4-035Ok.js";
2
+ import "./discardConfirm-CNbn-98W.js";
3
3
  var Z = {
4
4
  defaultAmount: 0,
5
5
  defaultCurrency: "USD",
@@ -1,12 +1,12 @@
1
1
  import { defineStore as W } 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 k, toDisplayString as C, unref as l, Fragment as O, renderSlot as X, renderList as Z, getCurrentInstance as ee } from "vue";
3
- import { G as P, H as te, D as B, f as E, j as $, b as j, m as h, E as ne, h as T, i as D, u as oe } from "./index.vue_vue_type_script_setup_true_lang-XXTier47.js";
3
+ import { G as P, H as te, D as B, f as E, j as $, b as j, m as h, E as ne, h as T, i as D, u as oe } from "./index.vue_vue_type_script_setup_true_lang-CTVmj2s2.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-DE1ldA28.js";
6
+ import { u as ie, l as se } from "./discardConfirm-CNbn-98W.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-DFMrgNS9.js";
9
+ import "./menuV2-C798b4XY.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.80-alpha.1",
3
+ "version": "0.32.80-alpha.2",
4
4
  "files": [
5
5
  "dist"
6
6
  ],