@feedmepos/mf-menu 0.32.7-dev → 0.32.7

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-DCkQc7e4.js → App-6Q1nmlfA.js} +6 -6
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-uzmq3vwy.js → ApplyProduct.vue_vue_type_script_setup_true_lang-xLPJOt02.js} +3 -3
  3. package/dist/{Catalog-CUPoRid3.js → Catalog-Bf5JieUH.js} +6 -6
  4. package/dist/{Category-BkvhZ57Y.js → Category-BBATgN1o.js} +6 -6
  5. package/dist/{Category-Cdw0ikhP.js → Category-BSBZlBHF.js} +4 -4
  6. package/dist/{CookingGuide-BZ-4oULM.js → CookingGuide-BnjSTAL4.js} +4 -4
  7. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-CJvVFWdR.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-BXdLDaBB.js} +1 -1
  8. package/dist/{Group-C1FaXdUb.js → Group-BqXtHWr2.js} +1 -1
  9. package/dist/{Group-Cec83DWm.js → Group-Dpbz5j1x.js} +3 -3
  10. package/dist/{Group.vue_vue_type_script_setup_true_lang-2_lLBdX2.js → Group.vue_vue_type_script_setup_true_lang-Bz5hEPov.js} +7 -7
  11. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BEDyKWhK.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-3a6eV6cB.js} +5 -5
  12. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-BteTvMnx.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-C6Z7OJz7.js} +3127 -3127
  13. package/dist/{Ingredient-DulL8h2B.js → Ingredient-BZfbbI--.js} +3 -3
  14. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-DoBx7Dal.js → InventoryBinding.vue_vue_type_script_setup_true_lang-DfyUAd9n.js} +2 -2
  15. package/dist/{LinkProductSideSheet-Br2eE8pC.js → LinkProductSideSheet-C-CcvD1Y.js} +3 -3
  16. package/dist/{MenuSetting-DxW4LCW4.js → MenuSetting-CRCXtk6n.js} +5 -5
  17. package/dist/{PrintRoute-Da6Zkx-0.js → PrintRoute-BqRkve5U.js} +4 -4
  18. package/dist/{Product-Cs76t18_.js → Product-cj-wKww4.js} +1 -1
  19. package/dist/{Product.vue_vue_type_script_setup_true_lang-C6SOu4Vv.js → Product.vue_vue_type_script_setup_true_lang-DtCzSk94.js} +13 -13
  20. package/dist/{ProductInternalTools-DPbeRvTM.js → ProductInternalTools-B5V7Hs15.js} +6 -6
  21. package/dist/{Products--7dGfuuT.js → Products-a0N50IJw.js} +11 -11
  22. package/dist/{Publish-COmZtiyX.js → Publish-CyiUajCw.js} +3 -3
  23. package/dist/{Recipe-BaN_1zrP.js → Recipe-CKIoGrBI.js} +4 -4
  24. package/dist/{RuleView.vue_vue_type_script_setup_true_lang-DputprQj.js → RuleView.vue_vue_type_script_setup_true_lang-fp_IdVVZ.js} +2 -2
  25. package/dist/{Scheduler-BSUpIAaK.js → Scheduler-CwTdAm-V.js} +3 -3
  26. package/dist/{ServingSequence-dXBb7e5d.js → ServingSequence-BAxm0bx1.js} +3 -3
  27. package/dist/{Setting-CalEQW0n.js → Setting-J9s4VpKm.js} +5 -5
  28. package/dist/{Subcategory-zPHtX7Vc.js → Subcategory-BXJ2H9cr.js} +4 -4
  29. package/dist/{Takeaway-CRDj2Bpe.js → Takeaway-CPPrIbb0.js} +4 -4
  30. package/dist/{Takeaway-CcnmeTmu.js → Takeaway-Cm9DdUdf.js} +1 -1
  31. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-Cj7vyOaP.js → Takeaway.vue_vue_type_script_setup_true_lang-PRAGlbyK.js} +5 -5
  32. package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-B0552qsN.js → Thumbnail.vue_vue_type_script_setup_true_lang-BQcHroCG.js} +4 -4
  33. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BwnyIDNH.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BRmrp3_3.js} +15 -15
  34. package/dist/{Unit-C7-Oj5S3.js → Unit-9pTm3F5W.js} +2 -2
  35. package/dist/{Variant-CYiMkE0q.js → Variant-qGJvwVW3.js} +3 -3
  36. package/dist/{_id_-D75ZcNlf.js → _id_-BPgTKleB.js} +10 -10
  37. package/dist/{app-DzVMOviz.js → app-BYd7KCR0.js} +1 -1
  38. package/dist/{app-BhLVpUSl.js → app-BoVVV8kG.js} +26 -26
  39. package/dist/app.js +1 -1
  40. package/dist/assets/{validate-menu-BhWvQ3T9.js → linked-status-YBCdx1_k.js} +7 -7
  41. package/dist/assets/{override-menu-DfTrwWpR.js → override-menu-D2ffZ3LE.js} +2 -2
  42. package/dist/assets/{linked-status-BoIPm5hC.js → validate-menu-C55soZke.js} +7 -7
  43. package/dist/{catalog-CudNSsIP.js → catalog-DjMrJdom.js} +1 -1
  44. package/dist/{catalogSetting-BVHO9tK3.js → catalogSetting-DMUZ11RQ.js} +1 -1
  45. package/dist/{category-BQpgz1lk.js → category-DRr-IdFP.js} +1 -1
  46. package/dist/{currency-BfS7H2KE.js → currency-CAUInXnj.js} +1 -1
  47. package/dist/{index-BHdPJta4.js → index-By_yIps1.js} +4 -4
  48. package/dist/{index-aaoziUNI.js → index-CG5i_sE7.js} +1 -1
  49. package/dist/{index-DmGJvREM.js → index-DOwV5hqi.js} +1 -1
  50. package/dist/{index-DuLXS699.js → index-hDyuidIm.js} +3 -3
  51. package/dist/{index.vue_vue_type_script_setup_true_lang-Dje9kp-F.js → index.vue_vue_type_script_setup_true_lang-Dcq1bwDq.js} +6 -6
  52. package/dist/{item-BtKW0wdj.js → item-Cq7YkZBk.js} +14 -14
  53. package/dist/{iteration-CaliNodx.js → iteration-V9L5Rk-0.js} +1 -1
  54. package/dist/{jszip.min-DXbkmgRD.js → jszip.min-Danu3otn.js} +353 -353
  55. package/dist/{menu-D-lUEuvX.js → menu-D1PHF11v.js} +1 -1
  56. package/dist/{menuV2-D-6O36DO.js → menuV2-BfvbnMWo.js} +65 -65
  57. package/dist/{priceTier-DKnYaOA9.js → priceTier-DszOAydN.js} +1 -1
  58. package/dist/{scheduler-DEwfbYPL.js → scheduler-BbQrleYX.js} +4 -4
  59. package/dist/{subcategory-CQKklgcd.js → subcategory-BnW2z6Vy.js} +2 -2
  60. package/dist/{toExcel-CRwL-QqF.js → toExcel-De8V6KyO.js} +2 -2
  61. package/dist/{unit-BzM1rmN7.js → unit-BjQ-Hi7b.js} +2 -2
  62. package/package.json +1 -1
@@ -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-Dje9kp-F.js";
2
+ import { u as c } from "./index.vue_vue_type_script_setup_true_lang-Dcq1bwDq.js";
3
3
  import "@feedmepos/mf-common";
4
4
  import "@feedmepos/ui-library";
5
5
  function p() {
@@ -1,12 +1,12 @@
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 { ao as ae, H as C, B as T, z as ue, ap as re, J as B, I as ie, ac as x, c as L, X as V, am as oe, aq as qe, ar as ze, A as Be, ae as Ge, as as He, at as Je, ab as Ye } from "./index.vue_vue_type_script_setup_true_lang-Dje9kp-F.js";
4
+ import { ao as ae, H as C, B as T, z as ue, ap as re, J as B, I as ie, ac as x, c as L, X as V, am as oe, aq as qe, ar as ze, A as Be, ae as Ge, as as He, at as Je, ab as Ye } from "./index.vue_vue_type_script_setup_true_lang-Dcq1bwDq.js";
5
5
  import { defineStore as Xe } from "pinia";
6
- import { shallowRef as j, ref as G, computed as S, shallowReactive as Qe, effectScope as Ze, watch as et } from "vue";
6
+ import { shallowRef as j, ref as G, computed as S, shallowReactive as Ze, effectScope as Qe, watch as et } from "vue";
7
7
  import { useCoreStore as se } from "@feedmepos/mf-common";
8
8
  import { useSnackbar as tt } from "@feedmepos/ui-library";
9
- const nt = "/assets/linked-status-BoIPm5hC.js", rt = "/assets/override-menu-DfTrwWpR.js";
9
+ const nt = "/assets/linked-status-YBCdx1_k.js", rt = "/assets/override-menu-D2ffZ3LE.js";
10
10
  function ot(e) {
11
11
  var o;
12
12
  const t = C(e), n = (o = t.variant) == null ? void 0 : o.variantCombinations;
@@ -204,7 +204,7 @@ async function ce(e, t, n) {
204
204
  schedulerId: n
205
205
  });
206
206
  }
207
- function Pt(e, t, n) {
207
+ function Ft(e, t, n) {
208
208
  const o = /* @__PURE__ */ new Set();
209
209
  function r(u, l) {
210
210
  if (!e || !u || !l || o.has(l)) return !1;
@@ -219,7 +219,7 @@ function Pt(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(u, l) {
225
225
  if (!e || !u || !l || o.has(u)) return !1;
@@ -242,7 +242,7 @@ async function it(e, t, n) {
242
242
  const r = await ce(e, t, n);
243
243
  return z.set(o, r), r;
244
244
  }
245
- async function Kt(e, t, n) {
245
+ async function Pt(e, t, n) {
246
246
  var l, a;
247
247
  const o = await it(e, t, null), r = [], u = (c, i) => {
248
248
  const f = C(c);
@@ -254,9 +254,9 @@ async function Kt(e, t, n) {
254
254
  const i = (l = c.items) == null ? void 0 : l.find((p) => p._id === n && !p.combinationKey), f = e.modules.item.find((p) => p._id === n);
255
255
  if (i) {
256
256
  const p = (a = c.items) == null ? void 0 : a.filter((y) => y._id === n && y.combinationKey), v = [i, ...p].map((y) => {
257
- var w, I;
258
- const h = y.combinationKey ? (I = (w = f == null ? void 0 : f.variant) == null ? void 0 : w.variantCombinations) == null ? void 0 : I.find(
259
- (E) => E.combinationKey === y.combinationKey
257
+ var w, E;
258
+ const h = y.combinationKey ? (E = (w = f == null ? void 0 : f.variant) == null ? void 0 : w.variantCombinations) == null ? void 0 : E.find(
259
+ (I) => I.combinationKey === y.combinationKey
260
260
  ) : f, b = h && f ? u(f, h) : y;
261
261
  return u(b, y);
262
262
  });
@@ -268,7 +268,7 @@ async function Kt(e, t, n) {
268
268
  }
269
269
  return r;
270
270
  }
271
- const M = 0, P = 3;
271
+ const M = 0, F = 3;
272
272
  function ct(e) {
273
273
  const t = /^\/(.*)\/([gimyu]*)$/.exec(e.toString());
274
274
  if (!t)
@@ -291,13 +291,13 @@ function O(e) {
291
291
  Object.prototype.hasOwnProperty.call(e, n) && (t[n] = O(e[n]));
292
292
  return t;
293
293
  }
294
- function K(e) {
294
+ function P(e) {
295
295
  return e instanceof RegExp ? e.toString() : e;
296
296
  }
297
- function R(e) {
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 F(e, t) {
300
+ function K(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 F(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 (!F(e[n], t[n])) return !1;
310
+ if (!K(e[n], t[n])) return !1;
311
311
  return !0;
312
312
  }
313
- if (R(e) && R(t)) {
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) || !F(e[r], t[r])) return !1;
317
+ if (!Object.prototype.hasOwnProperty.call(t, r) || !K(e[r], t[r])) return !1;
318
318
  return !0;
319
319
  }
320
320
  return !1;
@@ -330,7 +330,7 @@ function lt(e, t, n) {
330
330
  const i = e[c], f = n ? n(i) : JSON.stringify(i), p = u.get(f);
331
331
  if (p) {
332
332
  for (const v of p)
333
- if (!a.has(v) && F(i, t[v])) {
333
+ if (!a.has(v) && K(i, t[v])) {
334
334
  l.push({ leftIndex: c, rightIndex: v }), a.add(v);
335
335
  break;
336
336
  }
@@ -340,11 +340,11 @@ function lt(e, t, n) {
340
340
  }
341
341
  function dt(e, t, n) {
342
342
  var v, y;
343
- if (F(e, t)) return;
343
+ if (K(e, t)) return;
344
344
  const o = { _t: "a" }, r = ((v = n == null ? void 0 : n.arrays) == null ? void 0 : v.detectMove) !== !1, u = ((y = n == null ? void 0 : n.arrays) == null ? void 0 : y.includeValueOnMove) === !0, l = n == null ? void 0 : n.objectHash;
345
345
  let a = r ? lt(e, t, l) : [];
346
346
  if (!l && e.length === t.length && e.length > 0 && a.length < e.length) {
347
- const h = R(e[0]) || Array.isArray(e[0]), b = a.length > 0;
347
+ const h = k(e[0]) || Array.isArray(e[0]), b = a.length > 0;
348
348
  if (h || b) {
349
349
  a = [];
350
350
  for (let w = 0; w < e.length; w++)
@@ -360,8 +360,8 @@ function dt(e, t, n) {
360
360
  if (b !== void 0) {
361
361
  const w = J(e[h], t[b], n);
362
362
  if (w !== void 0 && (o[b] = w), r && b !== h) {
363
- const I = `_${h}`, E = u ? [e[h], b, P] : ["", b, P];
364
- o[I] = E;
363
+ const E = `_${h}`, I = u ? [e[h], b, F] : ["", b, F];
364
+ o[E] = I;
365
365
  }
366
366
  } else {
367
367
  const w = `_${h}`;
@@ -375,7 +375,7 @@ function dt(e, t, n) {
375
375
  return o;
376
376
  }
377
377
  function ft(e, t, n) {
378
- if (F(e, t)) return;
378
+ if (K(e, t)) return;
379
379
  const o = {}, r = Object.keys(e), u = Object.keys(t), l = /* @__PURE__ */ new Set([...r, ...u]);
380
380
  for (const a of l) {
381
381
  if (n != null && n.propertyFilter && !n.propertyFilter(a, { left: e, right: t }))
@@ -392,21 +392,21 @@ function ft(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 (F(e, t)) return;
395
+ if (K(e, t)) return;
396
396
  if (e === void 0 && t !== void 0) {
397
397
  const a = n != null && n.cloneDiffValues ? O(t) : t;
398
- return [K(a)];
398
+ return [P(a)];
399
399
  }
400
400
  if (typeof e !== typeof t || e instanceof Date != t instanceof Date || e instanceof RegExp != t instanceof RegExp || Array.isArray(e) !== Array.isArray(t)) {
401
401
  const a = n != null && n.cloneDiffValues ? O(e) : e, c = n != null && n.cloneDiffValues ? O(t) : t;
402
- return [K(a), K(c)];
402
+ return [P(a), P(c)];
403
403
  }
404
404
  if (Array.isArray(e) && Array.isArray(t))
405
405
  return dt(e, t, n);
406
- if (R(e) && R(t))
406
+ if (k(e) && k(t))
407
407
  return ft(e, t, n);
408
408
  const u = n != null && n.cloneDiffValues ? O(e) : e, l = n != null && n.cloneDiffValues ? O(t) : t;
409
- return [K(u), K(l)];
409
+ return [P(u), P(l)];
410
410
  }
411
411
  function mt(e, t, n) {
412
412
  return J(e, t, n);
@@ -416,7 +416,7 @@ function vt(e, t, n) {
416
416
  for (const a in t) {
417
417
  if (a === "_t" || !a.startsWith("_")) continue;
418
418
  const c = parseInt(a.slice(1)), i = t[a];
419
- Array.isArray(i) && (i.length === 3 && i[2] === M ? o.add(c) : i.length === 3 && i[2] === P && r.set(c, i[1]));
419
+ Array.isArray(i) && (i.length === 3 && i[2] === M ? o.add(c) : i.length === 3 && i[2] === F && r.set(c, i[1]));
420
420
  }
421
421
  const u = [];
422
422
  let l = 0;
@@ -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 R(t) && t._t === "a" ? vt(e, t) : R(t) && R(e) ? yt(e, t) : e;
470
+ return k(t) && t._t === "a" ? vt(e, t) : k(t) && k(e) ? yt(e, t) : e;
471
471
  }
472
472
  function le(e, t, n) {
473
473
  return Y(e, t);
@@ -481,9 +481,9 @@ function pt(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] === P) {
484
+ else if (r.length === 3 && r[2] === F) {
485
485
  const u = r[1];
486
- t[`_${u}`] = [r[0], o, P];
486
+ t[`_${u}`] = [r[0], o, F];
487
487
  }
488
488
  }
489
489
  } else {
@@ -519,10 +519,10 @@ function X(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] === P)
522
+ if (e.length === 3 && e[2] === F)
523
523
  return e;
524
524
  }
525
- return R(e) && e._t === "a" ? pt(e) : R(e) ? ht(e) : e;
525
+ return k(e) && e._t === "a" ? pt(e) : k(e) ? ht(e) : e;
526
526
  }
527
527
  }
528
528
  function de(e) {
@@ -667,7 +667,7 @@ function Mt() {
667
667
  const $t = Xe(
668
668
  "mf-menu-store-v2",
669
669
  () => {
670
- const e = Qe(Mt()), t = se(), n = tt(), o = S(() => e.menu.modules.serveSequence ? x(e.menu.modules.serveSequence, {
670
+ const e = Ze(Mt()), t = se(), n = tt(), o = S(() => e.menu.modules.serveSequence ? x(e.menu.modules.serveSequence, {
671
671
  selector: "position"
672
672
  }) : []), r = S(() => {
673
673
  var s;
@@ -719,25 +719,25 @@ const $t = Xe(
719
719
  );
720
720
  if (e.currentSchedulerId != null) {
721
721
  const g = e.menu.modules.catalog.find(
722
- (k) => k._id === e.currentCatalogId
722
+ (R) => R._id === e.currentCatalogId
723
723
  ), _ = g ? g.override.scheduler[e.currentSchedulerId] : e.menu.modules.scheduler.find(
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));
724
+ (R) => R._id === e.currentSchedulerId
725
+ ), A = new Set(((_ == null ? void 0 : _.items) || []).map((R) => R._id));
726
+ d.modules.item = d.modules.item.filter((R) => A.has(R._id));
727
727
  }
728
728
  return p.value = d, v.value = !1, y.value = y.value + 1, d;
729
729
  }
730
730
  const w = ie.debounce(h, 200);
731
- let I = null, E = null;
732
- function Q() {
733
- E && (E(), E = null), I && I.stop(), I = Ze(!0), E = I.run(() => et(
731
+ let E = null, I = null;
732
+ function Z() {
733
+ I && (I(), I = null), E && E.stop(), E = Qe(!0), I = E.run(() => et(
734
734
  () => [e.menu, e.currentCatalogId, e.currentSchedulerId],
735
735
  () => {
736
736
  v.value || w();
737
737
  }
738
738
  )) || null;
739
739
  }
740
- Q();
740
+ Z();
741
741
  const me = S(() => [
742
742
  {
743
743
  label: "Main",
@@ -747,7 +747,7 @@ const $t = Xe(
747
747
  label: s.name,
748
748
  value: s._id
749
749
  }))
750
- ]), Z = S(() => {
750
+ ]), Q = S(() => {
751
751
  const s = p.value.modules.category;
752
752
  return [
753
753
  ...U.value.item.addon ? [
@@ -770,7 +770,7 @@ const $t = Xe(
770
770
  s = s.filter((g) => {
771
771
  var A;
772
772
  const _ = (A = m == null ? void 0 : m[g._id]) == null ? void 0 : A.find(
773
- (k) => !k.combinationKey
773
+ (R) => !R.combinationKey
774
774
  );
775
775
  return (_ == null ? void 0 : _.orderFrom) !== ue.F_ORDER_FROM.enum.NONE;
776
776
  });
@@ -785,7 +785,7 @@ const $t = Xe(
785
785
  m,
786
786
  (g) => g.code || g.name
787
787
  ).reduce((g, _, A) => (g[_._id] = A + d[_.category || ""], g), {});
788
- }), pe = S(() => oe(N.value, Z.value, ee.value)), he = S(() => {
788
+ }), pe = S(() => oe(N.value, Q.value, ee.value)), he = S(() => {
789
789
  const s = U.value.item.addon ? [
790
790
  {
791
791
  _id: e.currentCatalogId ? "" : null,
@@ -814,7 +814,7 @@ const $t = Xe(
814
814
  })), Ae = S(() => e.menu.modules.cookingGuide), Ce = S(() => {
815
815
  const s = ze(e.menu.modules.sku);
816
816
  return x(s, { selector: "code" });
817
- }), Ie = S(() => {
817
+ }), Ee = S(() => {
818
818
  const s = /* @__PURE__ */ new Map();
819
819
  return e.menu.modules.item.forEach((d) => {
820
820
  var m, g;
@@ -895,14 +895,14 @@ const $t = Xe(
895
895
  function W(s) {
896
896
  return `${s.systemCode}/${s.taxCode}`;
897
897
  }
898
- function Ee(s) {
898
+ function Ie(s) {
899
899
  const [d, m] = s.split("/");
900
900
  return { systemCode: d, taxCode: m };
901
901
  }
902
- function Re(s, d, m) {
902
+ function ke(s, d, m) {
903
903
  return (s ?? d ?? []).map((g) => W(g)).find((g) => m.some((_) => _.value === g));
904
904
  }
905
- const ke = S(() => {
905
+ const Re = S(() => {
906
906
  var g;
907
907
  const s = ["SV5", "SV10"], d = Be.Country.getCountryFlattenTaxes(
908
908
  se().currentCountry.value
@@ -935,7 +935,7 @@ const $t = Xe(
935
935
  e.currentCategoryIds = s;
936
936
  }, Te = (s) => {
937
937
  e.currentRestaurantAttrParams = s;
938
- }, Pe = async (s, d) => {
938
+ }, Fe = async (s, d) => {
939
939
  const m = Array.isArray(s) ? s : [s];
940
940
  if (!m.length) return;
941
941
  const g = m.map((_) => ({
@@ -959,7 +959,7 @@ const $t = Xe(
959
959
  message: _
960
960
  });
961
961
  }
962
- }, Fe = async (s) => {
962
+ }, Ke = async (s) => {
963
963
  const d = {
964
964
  ...e.menu,
965
965
  masterCatalogSetting: s.masterCatalogSetting,
@@ -967,7 +967,7 @@ const $t = Xe(
967
967
  priceTierSettings: s.priceTierSettings
968
968
  };
969
969
  return f(d), d;
970
- }, D = bt({ maxHistorySize: 50 }), Ke = S(() => D.canUndo.value), $e = S(() => D.canRedo.value), je = () => {
970
+ }, D = bt({ maxHistorySize: 50 }), Pe = S(() => D.canUndo.value), $e = S(() => D.canRedo.value), je = () => {
971
971
  const s = D.undo();
972
972
  s && f(s, !1);
973
973
  }, Ne = () => {
@@ -992,11 +992,11 @@ const $t = Xe(
992
992
  schedulers: c,
993
993
  currentScheduler: i,
994
994
  catalogOptions: me,
995
- categories: Z,
995
+ categories: Q,
996
996
  subcategories: ve,
997
997
  items: ee,
998
998
  sortedItems: ye,
999
- itemCodeMap: Ie,
999
+ itemCodeMap: Ee,
1000
1000
  categorizedItems: pe,
1001
1001
  categorizedRawMenuItems: he,
1002
1002
  variants: N,
@@ -1008,7 +1008,7 @@ const $t = Xe(
1008
1008
  cookingGuide: Ae,
1009
1009
  skus: Ce,
1010
1010
  rules: U,
1011
- taxSetting: ke,
1011
+ taxSetting: Re,
1012
1012
  // Action
1013
1013
  setMenu: f,
1014
1014
  readMenu: xe,
@@ -1017,34 +1017,34 @@ const $t = Xe(
1017
1017
  selectScheduler: De,
1018
1018
  selectCategory: Ve,
1019
1019
  setRestaurantAttrParams: Te,
1020
- updateMenu: Pe,
1021
- updateMenuSetting: Fe,
1020
+ updateMenu: Fe,
1021
+ updateMenuSetting: Ke,
1022
1022
  computeMergedMenu: h,
1023
1023
  // helper
1024
1024
  encodeTax: W,
1025
- decodeTax: Ee,
1026
- getSelectedTax: Re,
1025
+ decodeTax: Ie,
1026
+ getSelectedTax: ke,
1027
1027
  mapVariant: ge,
1028
1028
  // history
1029
- canUndoHistory: Ke,
1029
+ canUndoHistory: Pe,
1030
1030
  canRedoHistory: $e,
1031
1031
  undoHistory: je,
1032
1032
  redoHistory: Ne,
1033
1033
  // cleanup
1034
1034
  $dispose: () => {
1035
- w.cancel(), E && (E(), E = null), I && (I.stop(), I = null), Ue();
1035
+ w.cancel(), I && (I(), I = null), E && (E.stop(), E = null), Ue();
1036
1036
  },
1037
1037
  $reinitialize: () => {
1038
- Q();
1038
+ Z();
1039
1039
  }
1040
1040
  };
1041
1041
  }
1042
1042
  );
1043
1043
  export {
1044
1044
  Tt as a,
1045
- Pt as b,
1046
- Ft as c,
1047
- Kt as f,
1045
+ Ft as b,
1046
+ Kt as c,
1047
+ Pt as f,
1048
1048
  Vt as g,
1049
1049
  Dt as m,
1050
1050
  it 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, D as M } from "./index.vue_vue_type_script_setup_true_lang-Dje9kp-F.js";
4
+ import { u as k, D as M } from "./index.vue_vue_type_script_setup_true_lang-Dcq1bwDq.js";
5
5
  const v = /* @__PURE__ */ d({
6
6
  __name: "AddPriceGroupDialog",
7
7
  setup(s) {
@@ -1,12 +1,12 @@
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 A, 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, z as r, u as pe, I as ve, J as ue } from "./index.vue_vue_type_script_setup_true_lang-Dje9kp-F.js";
2
+ import { H as S, z as r, u as pe, I as ve, J as ue } from "./index.vue_vue_type_script_setup_true_lang-Dcq1bwDq.js";
3
3
  import { useI18n as de } from "@feedmepos/mf-common";
4
4
  import { components as _e } from "@feedmepos/ui-library";
5
5
  import { _ as fe } from "./FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js";
6
- import { _ as ne } from "./RuleView.vue_vue_type_script_setup_true_lang-DputprQj.js";
6
+ import { _ as ne } from "./RuleView.vue_vue_type_script_setup_true_lang-fp_IdVVZ.js";
7
7
  import { u as ye } from "./discardConfirm-BHni0LNu.js";
8
- import { u as he } from "./menu-D-lUEuvX.js";
9
- import { L as ge } from "./LinkProductSideSheet-Br2eE8pC.js";
8
+ import { u as he } from "./menu-D1PHF11v.js";
9
+ import { L as ge } from "./LinkProductSideSheet-C-CcvD1Y.js";
10
10
  const Ve = { class: "space-y-8" }, Fe = {
11
11
  key: 0,
12
12
  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 C, unref as c, withCtx as V, createVNode as A } from "vue";
2
- import { J as l, z as d, u as F } from "./index.vue_vue_type_script_setup_true_lang-Dje9kp-F.js";
2
+ import { J as l, z as d, u as F } from "./index.vue_vue_type_script_setup_true_lang-Dcq1bwDq.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-D-6O36DO.js";
5
+ import { u as v } from "./menuV2-BfvbnMWo.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-BteTvMnx.js";
2
- import "./index.vue_vue_type_script_setup_true_lang-Dje9kp-F.js";
1
+ import { u as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-C6Z7OJz7.js";
2
+ import "./index.vue_vue_type_script_setup_true_lang-Dcq1bwDq.js";
3
3
  var Z = {
4
4
  defaultAmount: 0,
5
5
  defaultCurrency: "USD",
@@ -1,12 +1,12 @@
1
1
  import { defineStore as J } from "pinia";
2
2
  import { defineComponent as 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 { a6 as B, a7 as te, a4 as P, H as k, O as $, D as I, B as E, a5 as ne, J as C, z as D, I as oe, u as ae } from "./index.vue_vue_type_script_setup_true_lang-Dje9kp-F.js";
3
+ import { a6 as B, a7 as te, a4 as P, H as k, O as $, D as I, B as E, a5 as ne, J as C, z as D, I as oe, u as ae } from "./index.vue_vue_type_script_setup_true_lang-Dcq1bwDq.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
- import "./menuV2-D-6O36DO.js";
9
+ import "./menuV2-BfvbnMWo.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.7-dev",
3
+ "version": "0.32.7",
4
4
  "files": [
5
5
  "dist"
6
6
  ],