@feedmepos/mf-menu 0.32.73 → 0.32.74-dev.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 (71) hide show
  1. package/dist/{App-Bf03MA88.js → App-CQlnJm8d.js} +8 -8
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-B1ZOcPu1.js → ApplyProduct.vue_vue_type_script_setup_true_lang-C-hyPy4I.js} +3 -3
  3. package/dist/{ApplyProductDialog.vue_vue_type_script_setup_true_lang-D0L3H0ZG.js → ApplyProductDialog.vue_vue_type_script_setup_true_lang-LJt8hPTI.js} +3 -3
  4. package/dist/{Catalog-HrQFd5Gf.js → Catalog-Cxg0R0CD.js} +6 -6
  5. package/dist/{Category-8yNR-X1A.js → Category-98B4V0OI.js} +4 -4
  6. package/dist/{Category-FZsqkjjv.js → Category-D7_CG1CC.js} +4 -4
  7. package/dist/{CookingGuide-DZ5w_9EC.js → CookingGuide-BiWZRQbV.js} +5 -5
  8. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-DVlMrpkQ.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-Cqx5-2Dd.js} +1 -1
  9. package/dist/{Group-CJm6hCWe.js → Group-BlNGsFml.js} +3 -3
  10. package/dist/{Group-fJGTsqFa.js → Group-BvVoGWbB.js} +1 -1
  11. package/dist/{Group.vue_vue_type_script_setup_true_lang-D0yWF7Xc.js → Group.vue_vue_type_script_setup_true_lang-DhEpy0CJ.js} +7 -7
  12. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-K1e0N-Ww.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-myAdxHAx.js} +5 -5
  13. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-DxoxvqVs.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-CalnjNRi.js} +2457 -2452
  14. package/dist/{Ingredient-D0e2BNgG.js → Ingredient-C4uC1qTF.js} +4 -4
  15. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-SvzuFZGG.js → InventoryBinding.vue_vue_type_script_setup_true_lang-gjv6yZ63.js} +2 -2
  16. package/dist/{LinkProductSideSheet-C5AKJHx9.js → LinkProductSideSheet-C8Kj6Jyt.js} +113 -113
  17. package/dist/{MenuSetting-CkdHN5ky.js → MenuSetting-CAPi6Izt.js} +7 -7
  18. package/dist/{OrderPacing-AlI0t99w.js → OrderPacing--zgGLCUl.js} +5 -5
  19. package/dist/{PrintRoute-S7to_Ja9.js → PrintRoute-C8Tg1K1B.js} +5 -5
  20. package/dist/{Product-D3YceYkb.js → Product-CEURFcln.js} +1 -1
  21. package/dist/{Product.vue_vue_type_script_setup_true_lang-CdP5nFLm.js → Product.vue_vue_type_script_setup_true_lang-HgjS8yfr.js} +14 -14
  22. package/dist/{ProductInternalTools-BXGilY2C.js → ProductInternalTools-CqSTTmyx.js} +7 -7
  23. package/dist/{Products-CcJUkcRW.js → Products-CQYNalBC.js} +69 -69
  24. package/dist/{Publish-CKGNpAx3.js → Publish-CpVIPPEM.js} +4 -4
  25. package/dist/{Recipe-mk8oA9m_.js → Recipe-V-S3rBvy.js} +5 -5
  26. package/dist/{RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-N3Un25EZ.js → RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-Dt0VFU0y.js} +1 -1
  27. package/dist/RuleView.vue_vue_type_script_setup_true_lang-22NsN8mu.js +3311 -0
  28. package/dist/{Scheduler-DAM09LOX.js → Scheduler-D0ZqvQ4s.js} +3 -3
  29. package/dist/{ServingSequence-CncpkznR.js → ServingSequence-D9C5TjFW.js} +3 -3
  30. package/dist/{Setting-ClaalU9t.js → Setting-D9uwzTvD.js} +5 -5
  31. package/dist/{Subcategory-BHAMGtWj.js → Subcategory-_22wHoRp.js} +6 -6
  32. package/dist/{Takeaway-DmS8tBJz.js → Takeaway-DpKf0dsW.js} +4 -4
  33. package/dist/{Takeaway-C8Xefobp.js → Takeaway-wfO-wSGr.js} +1 -1
  34. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-C8gPc9nk.js → Takeaway.vue_vue_type_script_setup_true_lang-BKtMSeUC.js} +5 -5
  35. package/dist/{TranslationFieldSection.vue_vue_type_script_setup_true_lang-BDmNmWb0.js → TranslationFieldSection.vue_vue_type_script_setup_true_lang-U5JPHpID.js} +1 -1
  36. package/dist/{TranslationSideSheet.vue_vue_type_script_setup_true_lang-CsxJPE5r.js → TranslationSideSheet.vue_vue_type_script_setup_true_lang-DYONF0J1.js} +2 -2
  37. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-Cf3Qcm8Q.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BsGSRfgw.js} +15 -15
  38. package/dist/{Unit-Cd3vO-wC.js → Unit-D9gfltw8.js} +2 -2
  39. package/dist/{Variant-DBCavafw.js → Variant-Bhd-SCn-.js} +3 -3
  40. package/dist/{_id_-DCQdbN9V.js → _id_-CujuaivS.js} +10 -10
  41. package/dist/{app-aZW57BZg.js → app-B6R97xu0.js} +1 -1
  42. package/dist/{app-CxvpA6tG.js → app-CoNjmiQZ.js} +32 -32
  43. package/dist/app.js +1 -1
  44. package/dist/apps/mf-menu/src/api/media.d.ts +8 -1
  45. package/dist/assets/{linked-status-CTYst9BT.js → linked-status-Dc3gO2HQ.js} +4 -4
  46. package/dist/assets/{menu-export-SUAOyYoh.js → menu-export-DxJDiXRy.js} +4 -4
  47. package/dist/assets/{override-menu-_2UkxFjy.js → override-menu-DA-3_JUT.js} +4 -4
  48. package/dist/assets/{validate-menu-C4p2Q0tV.js → validate-menu-CKGM50-c.js} +3 -3
  49. package/dist/{catalog-B28_brHj.js → catalog-BrBzi08u.js} +1 -1
  50. package/dist/{catalogSetting-Cejyk6uH.js → catalogSetting-D98TJXis.js} +1 -1
  51. package/dist/{currency-wNkc4Z0A.js → currency-_TMjPxjp.js} +1 -1
  52. package/dist/{dayjs.min-Dlgh8coL.js → dayjs.min-DcRBfAVF.js} +2 -2
  53. package/dist/{discardConfirm-BbGmy3co.js → discardConfirm-BAt6f7Sp.js} +1 -1
  54. package/dist/{index-eQIHkX_i.js → index-8ewnoIGG.js} +5 -5
  55. package/dist/{index-Cy8hTieX.js → index-B24fO6WH.js} +6 -6
  56. package/dist/{index-0kpQfvHB.js → index-BSA0nxGD.js} +1 -1
  57. package/dist/{index.vue_vue_type_script_setup_true_lang-Dn7y0J8m.js → index.vue_vue_type_script_setup_true_lang-46y6YBq_.js} +441 -441
  58. package/dist/{item-Pl488uTh.js → item-CxEy3ZPG.js} +20 -20
  59. package/dist/{jszip.min-CUmSTnh2.js → jszip.min-CEGB8m6H.js} +167 -167
  60. package/dist/{linkProducts-BpMibpzz.js → linkProducts-OId1UtJl.js} +4 -4
  61. package/dist/{memberPricing-DVBTtTAw.js → memberPricing-Do-xGYT8.js} +1 -1
  62. package/dist/{menu-CLJze7N5.js → menu-IbXlP_Qz.js} +1 -1
  63. package/dist/{menuV2-CRioXM-a.js → menuV2-DzbiKMo1.js} +54 -54
  64. package/dist/{order_pacing-tdC-Swwv.js → order_pacing-zD2uNjRk.js} +5 -5
  65. package/dist/{priceTier-nCiHkoUd.js → priceTier-PDKu3MmF.js} +1 -1
  66. package/dist/{rules-B33FYEnp.js → rules-BipalTU1.js} +3 -3
  67. package/dist/{scheduler-BbZ2-af3.js → scheduler-BzHaaiZi.js} +5 -5
  68. package/dist/{toExcel-mFDQ3bjo.js → toExcel-B6kYroYI.js} +2 -2
  69. package/dist/{unit-DNJ6h92K.js → unit-CJal-c2M.js} +3 -3
  70. package/package.json +1 -1
  71. package/dist/RuleView.vue_vue_type_script_setup_true_lang-ozbcoSez.js +0 -3306
@@ -1,9 +1,9 @@
1
1
  import { computed as m } from "vue";
2
- import { F, g as h, h as S, b as v, i as C, k as N, U as T, u as P, c as z } from "./index.vue_vue_type_script_setup_true_lang-Dn7y0J8m.js";
3
- import { u as R } from "./menuV2-CRioXM-a.js";
4
- import { C as w, h as E } from "./catalog-B28_brHj.js";
2
+ import { F, g as h, h as S, b as v, i as C, k as N, U as T, u as P, c as z } from "./index.vue_vue_type_script_setup_true_lang-46y6YBq_.js";
3
+ import { u as R } from "./menuV2-DzbiKMo1.js";
4
+ import { C as w, h as E } from "./catalog-BrBzi08u.js";
5
5
  import { useSnackbar as O, useDialog as A } from "@feedmepos/ui-library";
6
- import { a as b } from "./LinkProductSideSheet-C5AKJHx9.js";
6
+ import { a as b } from "./LinkProductSideSheet-C8Kj6Jyt.js";
7
7
  function D() {
8
8
  const e = R(), p = m(() => e.categorizedRawMenuItems.filter((o) => o.items.length > 0)), l = m(() => {
9
9
  const o = e.currentCatalog;
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as d, ref as _, watch as S, resolveComponent as b, createBlock as f, openBlock as y, unref as M, computed as T } from "vue";
2
- import { u as h, b as w } from "./index.vue_vue_type_script_setup_true_lang-Dn7y0J8m.js";
2
+ import { u as h, b as w } from "./index.vue_vue_type_script_setup_true_lang-46y6YBq_.js";
3
3
  import { useI18n as l } from "@feedmepos/mf-common";
4
4
  import { useDialogChild as x, useDialog as C, useSnackbar as P } from "@feedmepos/ui-library";
5
5
  const k = /* @__PURE__ */ d({
@@ -1,5 +1,5 @@
1
1
  import { computed as n, onMounted as d, onBeforeUnmount as m } from "vue";
2
- import { u as c } from "./index.vue_vue_type_script_setup_true_lang-Dn7y0J8m.js";
2
+ import { u as c } from "./index.vue_vue_type_script_setup_true_lang-46y6YBq_.js";
3
3
  import "@feedmepos/mf-common";
4
4
  import "@feedmepos/ui-library";
5
5
  function p() {
@@ -1,10 +1,10 @@
1
1
  var We = Object.defineProperty;
2
2
  var Le = (e, t, n) => t in e ? We(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var ne = (e, t, n) => Le(e, typeof t != "symbol" ? t + "" : t, n);
4
- import { l as ae } from "./discardConfirm-BbGmy3co.js";
4
+ import { l as ae } from "./discardConfirm-BAt6f7Sp.js";
5
5
  import { defineStore as qe } from "pinia";
6
- import { shallowRef as N, ref as B, computed as S, shallowReactive as ze, effectScope as Be, watch as He } from "vue";
7
- import { d as C, f as ue, m as V, k as ie, ar as re, g as H, P as x, c as L, s as T, Y as oe, as as Ge, at as Ye, a as Je, R as Qe, au as Xe, av as Ze, N as et } from "./index.vue_vue_type_script_setup_true_lang-Dn7y0J8m.js";
6
+ import { shallowRef as N, ref as H, computed as S, shallowReactive as ze, effectScope as He, watch as Be } from "vue";
7
+ import { d as C, f as ue, m as T, k as ie, ar as re, g as B, P as x, c as L, s as V, Y as oe, as as Ge, at as Je, a as Ye, R as Qe, au as Xe, av as Ze, N as et } from "./index.vue_vue_type_script_setup_true_lang-46y6YBq_.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-CTYst9BT.js", ot = "/assets/override-menu-_2UkxFjy.js";
19
+ const rt = "/assets/linked-status-Dc3gO2HQ.js", ot = "/assets/override-menu-DA-3_JUT.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
- ...V.generator.initMenuV4ItemOverrider(),
96
+ ...T.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
- ...V.generator.initMenuV4ItemOverrider(),
104
+ ...T.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 Tt(e, t, n, s, r, u = !0) {
160
+ async function Vt(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 = V.getFallbackPrices({
164
+ }, {}), g = T.getFallbackPrices({
165
165
  rawMenu: a,
166
166
  items: l,
167
167
  catalogId: s || void 0,
@@ -175,7 +175,7 @@ async function Tt(e, t, n, s, r, u = !0) {
175
175
  };
176
176
  });
177
177
  }
178
- function Vt(e, t) {
178
+ function Tt(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) => {
@@ -231,7 +231,7 @@ async function Kt(e, t, n) {
231
231
  const y = (a = d.items) == null ? void 0 : a.filter((v) => v._id === n && v.combinationKey), f = [l, ...y].map((v) => {
232
232
  var M, I;
233
233
  const p = v.combinationKey ? (I = (M = g == null ? void 0 : g.variant) == null ? void 0 : M.variantCombinations) == null ? void 0 : I.find(
234
- (k) => k.combinationKey === v.combinationKey
234
+ (E) => E.combinationKey === v.combinationKey
235
235
  ) : g, b = p && g ? u(g, p) : v;
236
236
  return u(b, v);
237
237
  });
@@ -269,7 +269,7 @@ function O(e) {
269
269
  function $(e) {
270
270
  return e instanceof RegExp ? e.toString() : e;
271
271
  }
272
- function E(e) {
272
+ function k(e) {
273
273
  return typeof e == "object" && e !== null && !Array.isArray(e) && !(e instanceof Date) && !(e instanceof RegExp);
274
274
  }
275
275
  function K(e, t) {
@@ -285,7 +285,7 @@ function K(e, t) {
285
285
  if (!K(e[n], t[n])) return !1;
286
286
  return !0;
287
287
  }
288
- if (E(e) && E(t)) {
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)
@@ -319,7 +319,7 @@ function dt(e, t, n) {
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) {
322
- const p = E(e[0]) || Array.isArray(e[0]), b = a.length > 0;
322
+ const p = k(e[0]) || Array.isArray(e[0]), b = a.length > 0;
323
323
  if (p || b) {
324
324
  a = [];
325
325
  for (let M = 0; M < e.length; M++)
@@ -333,10 +333,10 @@ function dt(e, t, n) {
333
333
  for (let p = 0; p < e.length; p++) {
334
334
  const b = l.get(p);
335
335
  if (b !== void 0) {
336
- const M = Y(e[p], t[b], n);
336
+ const M = J(e[p], t[b], n);
337
337
  if (M !== void 0 && (s[b] = M), r && b !== p) {
338
- const I = `_${p}`, k = u ? [e[p], b, P] : ["", b, P];
339
- s[I] = k;
338
+ const I = `_${p}`, E = u ? [e[p], b, P] : ["", b, P];
339
+ s[I] = E;
340
340
  }
341
341
  } else {
342
342
  const M = `_${p}`;
@@ -357,7 +357,7 @@ function mt(e, t, n) {
357
357
  continue;
358
358
  const d = Object.prototype.hasOwnProperty.call(e, a), l = Object.prototype.hasOwnProperty.call(t, a);
359
359
  if (d && l) {
360
- const g = Y(e[a], t[a], n);
360
+ const g = J(e[a], t[a], n);
361
361
  g !== void 0 && (s[a] = g);
362
362
  } else if (d && !l) {
363
363
  const g = n != null && n.omitRemovedValues ? 0 : e[a];
@@ -366,7 +366,7 @@ function mt(e, t, n) {
366
366
  }
367
367
  return Object.keys(s).length > 0 ? s : void 0;
368
368
  }
369
- function Y(e, t, n) {
369
+ function J(e, t, n) {
370
370
  if (K(e, t)) return;
371
371
  if (e === void 0 && t !== void 0) {
372
372
  const a = n != null && n.cloneDiffValues ? O(t) : t;
@@ -378,13 +378,13 @@ function Y(e, t, n) {
378
378
  }
379
379
  if (Array.isArray(e) && Array.isArray(t))
380
380
  return dt(e, t, n);
381
- if (E(e) && E(t))
381
+ if (k(e) && k(t))
382
382
  return mt(e, t, n);
383
383
  const u = n != null && n.cloneDiffValues ? O(e) : e, c = n != null && n.cloneDiffValues ? O(t) : t;
384
384
  return [$(u), $(c)];
385
385
  }
386
386
  function ft(e, t, n) {
387
- return Y(e, t, n);
387
+ return J(e, t, n);
388
388
  }
389
389
  function vt(e, t, n) {
390
390
  const s = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Map();
@@ -403,7 +403,7 @@ function vt(e, t, n) {
403
403
  else {
404
404
  for (; c < e.length && s.has(c); )
405
405
  c++;
406
- c < e.length && (u.push(J(e[c], l)), c++);
406
+ c < e.length && (u.push(Y(e[c], l)), c++);
407
407
  }
408
408
  else {
409
409
  let g = !1;
@@ -428,11 +428,11 @@ function yt(e, t, n) {
428
428
  const s = { ...e };
429
429
  for (const r in t) {
430
430
  const u = t[r];
431
- Array.isArray(u) ? u.length === 1 ? s[r] = u[0] : u.length === 3 && u[2] === w ? delete s[r] : u.length === 2 && (s[r] = u[1]) : s[r] = J(s[r], u);
431
+ Array.isArray(u) ? u.length === 1 ? s[r] = u[0] : u.length === 3 && u[2] === w ? delete s[r] : u.length === 2 && (s[r] = u[1]) : s[r] = Y(s[r], u);
432
432
  }
433
433
  return s;
434
434
  }
435
- function J(e, t, n) {
435
+ function Y(e, t, n) {
436
436
  if (t === void 0) return e;
437
437
  if (Array.isArray(t)) {
438
438
  if (t.length === 1)
@@ -442,10 +442,10 @@ function J(e, t, n) {
442
442
  if (t.length === 3 && t[2] === w)
443
443
  return;
444
444
  }
445
- return E(t) && t._t === "a" ? vt(e, t) : E(t) && E(e) ? yt(e, t) : e;
445
+ return k(t) && t._t === "a" ? vt(e, t) : k(t) && k(e) ? yt(e, t) : e;
446
446
  }
447
447
  function le(e, t, n) {
448
- return J(e, t);
448
+ return Y(e, t);
449
449
  }
450
450
  function gt(e) {
451
451
  const t = { _t: "a" };
@@ -497,7 +497,7 @@ function Q(e) {
497
497
  if (e.length === 3 && e[2] === P)
498
498
  return e;
499
499
  }
500
- return E(e) && e._t === "a" ? gt(e) : E(e) ? pt(e) : e;
500
+ return k(e) && e._t === "a" ? gt(e) : k(e) ? pt(e) : e;
501
501
  }
502
502
  }
503
503
  function de(e) {
@@ -541,7 +541,7 @@ function bt({
541
541
  includeValueOnMove: !1
542
542
  },
543
543
  cloneDiffValues: !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);
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);
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 Mt = {
593
593
  async updateMenuModule(e, t) {
594
- const n = H.RequestRunner.operation(t, e.modules);
594
+ const n = B.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 $t = 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 = V.populateCatalog({
658
+ return o && ((i = o.linkItemRules) != null && i.length) && (o = T.populateCatalog({
659
659
  catalog: o,
660
660
  ruleGroupSettings: e.menu.ruleGroupSettings,
661
661
  items: e.menu.modules.item,
@@ -667,13 +667,13 @@ const $t = 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 = B(!1), v = B(1);
670
+ const y = N(me()), f = H(!1), v = H(1);
671
671
  async function p() {
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 h = V.populateCatalog({
676
+ const h = T.populateCatalog({
677
677
  catalog: a.value,
678
678
  ruleGroupSettings: e.menu.ruleGroupSettings,
679
679
  items: e.menu.modules.item,
@@ -703,9 +703,9 @@ const $t = qe(
703
703
  return y.value = i, f.value = !1, v.value = v.value + 1, i;
704
704
  }
705
705
  const M = ae.debounce(p, 200);
706
- let I = null, k = null;
706
+ let I = null, E = null;
707
707
  function X() {
708
- k && (k(), k = null), I && I.stop(), I = Be(!0), k = I.run(() => He(
708
+ E && (E(), E = null), I && I.stop(), I = He(!0), E = I.run(() => Be(
709
709
  () => [e.menu, e.currentCatalogId, e.currentSchedulerId],
710
710
  () => {
711
711
  f.value || M();
@@ -732,11 +732,11 @@ const $t = qe(
732
732
  position: 0
733
733
  }
734
734
  ] : [],
735
- ...T(o, (i) => i.name)
735
+ ...V(o, (i) => i.name)
736
736
  ];
737
737
  }), ve = S(() => {
738
738
  const o = y.value.modules.subCategory || [];
739
- return T(o, (i) => i.name);
739
+ return V(o, (i) => i.name);
740
740
  }), ee = S(() => {
741
741
  var i;
742
742
  let o = y.value.modules.item;
@@ -750,13 +750,13 @@ const $t = qe(
750
750
  return (_ == null ? void 0 : _.orderFrom) !== ie.enum.NONE;
751
751
  });
752
752
  }
753
- return T(o, (m) => m.code || m.name);
753
+ return V(o, (m) => m.code || m.name);
754
754
  }), ye = S(() => {
755
- const o = e.menu.modules.category, i = T(o, (h) => h.name).reduce(
755
+ const o = e.menu.modules.category, i = V(o, (h) => h.name).reduce(
756
756
  (h, _, A) => (h[_._id] = A, h),
757
757
  { "": 0 }
758
758
  ), m = e.menu.modules.item;
759
- return T(
759
+ return V(
760
760
  m,
761
761
  (h) => h.code || h.name
762
762
  ).reduce((h, _, A) => (h[_._id] = A + i[_.category || ""], h), {});
@@ -780,14 +780,14 @@ const $t = qe(
780
780
  });
781
781
  function he(o = []) {
782
782
  const i = o.map((h) => j.value.find((_) => _._id === h)).filter((h) => !!h);
783
- return V.fullVariantCombination(i).reduce((h, _) => (h[_.combinationKey] = _.selectionName.join(" / "), h), {});
783
+ return T.fullVariantCombination(i).reduce((h, _) => (h[_.combinationKey] = _.selectionName.join(" / "), h), {});
784
784
  }
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 || [], {
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 || [], {
786
786
  selector: "name"
787
787
  })), Me = S(() => x(e.menu.modules.unit, { selector: "name" })), we = S(() => x(Ge(e.menu.modules.recipe, e.menu.modules.sku), {
788
788
  selector: "name"
789
789
  })), Ae = S(() => e.menu.modules.cookingGuide), Ce = S(() => {
790
- const o = Ye(e.menu.modules.sku);
790
+ const o = Je(e.menu.modules.sku);
791
791
  return x(o, { selector: "code" });
792
792
  }), Ie = S(() => {
793
793
  const o = /* @__PURE__ */ new Map();
@@ -874,16 +874,16 @@ const $t = qe(
874
874
  function W(o) {
875
875
  return `${o.systemCode}/${o.taxCode}`;
876
876
  }
877
- function ke(o) {
877
+ function Ee(o) {
878
878
  const [i, m] = o.split("/");
879
879
  return { systemCode: i, taxCode: m };
880
880
  }
881
- function Ee(o, i, m) {
881
+ function ke(o, i, m) {
882
882
  return (o ?? i ?? []).map((h) => W(h)).find((h) => m.some((_) => _.value === h));
883
883
  }
884
884
  const Re = S(() => {
885
885
  var h;
886
- const o = ["SV5", "SV10"], i = Je.Country.getCountryFlattenTaxes(
886
+ const o = ["SV5", "SV10"], i = Ye.Country.getCountryFlattenTaxes(
887
887
  se().currentCountry.value
888
888
  ), m = i.filter((_) => u.value || !o.includes(_.taxCode)).map((_) => ({
889
889
  label: `${_.name} (${Qe(_.rate)}%)`,
@@ -914,9 +914,9 @@ const $t = qe(
914
914
  e.currentCatalogId = o;
915
915
  }, De = (o) => {
916
916
  e.currentSchedulerId = o;
917
- }, Te = (o) => {
918
- e.currentCategoryIds = o;
919
917
  }, Ve = (o) => {
918
+ e.currentCategoryIds = o;
919
+ }, Te = (o) => {
920
920
  e.currentRestaurantAttrParams = o;
921
921
  }, Pe = async (o, i) => {
922
922
  const m = Array.isArray(o) ? o : [o];
@@ -928,7 +928,7 @@ const $t = qe(
928
928
  }));
929
929
  try {
930
930
  if (i || h.some(
931
- (A) => [H.F_OPERATION_TYPE.delete, H.F_OPERATION_TYPE.deleteMany].includes(A.operation)
931
+ (A) => [B.F_OPERATION_TYPE.delete, B.F_OPERATION_TYPE.deleteMany].includes(A.operation)
932
932
  )) {
933
933
  const A = await Xe(h, e.menu.modules);
934
934
  if (A !== !0) throw new Error(A);
@@ -998,15 +998,15 @@ const $t = qe(
998
998
  readRestaurants: Oe,
999
999
  selectCatalog: te,
1000
1000
  selectScheduler: De,
1001
- selectCategory: Te,
1002
- setRestaurantAttrParams: Ve,
1001
+ selectCategory: Ve,
1002
+ setRestaurantAttrParams: Te,
1003
1003
  updateMenu: Pe,
1004
1004
  updateMenuSetting: Ke,
1005
1005
  computeMergedMenu: p,
1006
1006
  // helper
1007
1007
  encodeTax: W,
1008
- decodeTax: ke,
1009
- getSelectedTax: Ee,
1008
+ decodeTax: Ee,
1009
+ getSelectedTax: ke,
1010
1010
  mapVariant: he,
1011
1011
  // history
1012
1012
  canUndoHistory: $e,
@@ -1015,7 +1015,7 @@ const $t = qe(
1015
1015
  redoHistory: je,
1016
1016
  // cleanup
1017
1017
  $dispose: () => {
1018
- M.cancel(), k && (k(), k = null), I && (I.stop(), I = null), Ue();
1018
+ M.cancel(), E && (E(), E = null), I && (I.stop(), I = null), Ue();
1019
1019
  },
1020
1020
  $reinitialize: () => {
1021
1021
  X();
@@ -1026,9 +1026,9 @@ const $t = qe(
1026
1026
  export {
1027
1027
  Pt as a,
1028
1028
  Kt as f,
1029
- Vt as g,
1029
+ Tt as g,
1030
1030
  nt as i,
1031
- Tt as m,
1031
+ Vt as m,
1032
1032
  it as o,
1033
1033
  $t as u
1034
1034
  };
@@ -1,13 +1,13 @@
1
1
  import { defineComponent as q, ref as V, h as S, computed as N, resolveComponent as I, createBlock as X, openBlock as w, unref as l, withCtx as x, createElementVNode as k, createVNode as v, watch as Z, createElementBlock as L, Fragment as M, renderSlot as ee, renderList as H, toDisplayString as $, createCommentVNode as ae, getCurrentInstance as te, render as ne } from "vue";
2
- import { u as Y, i as oe, b as le, g as B, h as K } from "./index.vue_vue_type_script_setup_true_lang-Dn7y0J8m.js";
2
+ import { u as Y, i as oe, b as le, g as B, h as K } from "./index.vue_vue_type_script_setup_true_lang-46y6YBq_.js";
3
3
  import { useI18n as R } from "@feedmepos/mf-common";
4
4
  import { components as A, FmButtonVariant as re, FmButtonColorThemeVariant as j, useSnackbar as ie } from "@feedmepos/ui-library";
5
- import { _ as J, u as se } from "./RuleView.vue_vue_type_script_setup_true_lang-ozbcoSez.js";
5
+ import { _ as J, u as se } from "./RuleView.vue_vue_type_script_setup_true_lang-22NsN8mu.js";
6
6
  import { c as de } from "./object-DVUNCr7w.js";
7
- import { _ as ue } from "./app-CxvpA6tG.js";
8
- import { L as ce } from "./LinkProductSideSheet-C5AKJHx9.js";
7
+ import { _ as ue } from "./app-CoNjmiQZ.js";
8
+ import { L as ce } from "./LinkProductSideSheet-C8Kj6Jyt.js";
9
9
  import { u as me } from "./search-BAPEUu1R.js";
10
- import { _ as pe } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-CsxJPE5r.js";
10
+ import { _ as pe } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-DYONF0J1.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-Dn7y0J8m.js";
4
+ import { u as k, b as M } from "./index.vue_vue_type_script_setup_true_lang-46y6YBq_.js";
5
5
  const b = /* @__PURE__ */ d({
6
6
  __name: "AddPriceGroupDialog",
7
7
  setup(s) {
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as I, watch as P, ref as E, computed as w, resolveComponent as _, createElementBlock as h, openBlock as F, Fragment as M, createVNode as f, unref as g, withCtx as b, createElementVNode as O, renderList as q, toDisplayString as S } from "vue";
2
- import { g as v, h as C, u as Y } from "./index.vue_vue_type_script_setup_true_lang-Dn7y0J8m.js";
2
+ import { g as v, h as C, u as Y } from "./index.vue_vue_type_script_setup_true_lang-46y6YBq_.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-CRioXM-a.js";
6
- import { _ as $ } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-CsxJPE5r.js";
5
+ import { u as R } from "./menuV2-DzbiKMo1.js";
6
+ import { _ as $ } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-DYONF0J1.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-BbGmy3co.js";
3
- import { d as w, A as U, u as ke, F as Fe, B as q, g as ie, h as re, Q as me } from "./index.vue_vue_type_script_setup_true_lang-Dn7y0J8m.js";
2
+ import { u as ge, l as Ve } from "./discardConfirm-BAt6f7Sp.js";
3
+ import { d as w, A as U, u as ke, F as Fe, B as q, g as ie, h as re, Q as me } from "./index.vue_vue_type_script_setup_true_lang-46y6YBq_.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-ozbcoSez.js";
8
- import { u as we } from "./menu-CLJze7N5.js";
9
- import { L as Pe } from "./LinkProductSideSheet-C5AKJHx9.js";
7
+ import { _ as se } from "./RuleView.vue_vue_type_script_setup_true_lang-22NsN8mu.js";
8
+ import { u as we } from "./menu-IbXlP_Qz.js";
9
+ import { L as Pe } from "./LinkProductSideSheet-C8Kj6Jyt.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-DxoxvqVs.js";
2
- import "./discardConfirm-BbGmy3co.js";
1
+ import { u as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-CalnjNRi.js";
2
+ import "./discardConfirm-BAt6f7Sp.js";
3
3
  var Z = {
4
4
  defaultAmount: 0,
5
5
  defaultCurrency: "USD",
@@ -1,12 +1,12 @@
1
1
  import { defineStore as H } from "pinia";
2
2
  import { defineComponent as M, computed as x, ref as A, watch as S, resolveComponent as V, createBlock as J, openBlock as F, withCtx as w, createVNode as m, createElementVNode as f, normalizeClass as Q, createElementBlock as C, toDisplayString as k, unref as l, Fragment as O, renderSlot as X, renderList as Z, getCurrentInstance as ee } from "vue";
3
- import { E as P, G as te, C as B, d as E, i as $, b as j, m as h, D as ne, g as T, h as D, u as oe } from "./index.vue_vue_type_script_setup_true_lang-Dn7y0J8m.js";
3
+ import { E as P, G as te, C as B, d as E, i as $, b as j, m as h, D as ne, g as T, h as D, u as oe } from "./index.vue_vue_type_script_setup_true_lang-46y6YBq_.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-BbGmy3co.js";
6
+ import { u as ie, l as se } from "./discardConfirm-BAt6f7Sp.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-CRioXM-a.js";
9
+ import "./menuV2-DzbiKMo1.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.73",
3
+ "version": "0.32.74-dev.1",
4
4
  "files": [
5
5
  "dist"
6
6
  ],