@feedmepos/mf-menu 0.32.52 → 0.32.53-dev

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 (67) hide show
  1. package/dist/{App-ueXpH5uy.js → App-PbFbM-b9.js} +7 -7
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-BsFapF6d.js → ApplyProduct.vue_vue_type_script_setup_true_lang-DRl0F9ex.js} +3 -3
  3. package/dist/{ApplyProductDialog.vue_vue_type_script_setup_true_lang-BSN7XtmN.js → ApplyProductDialog.vue_vue_type_script_setup_true_lang-Dxaiz_KJ.js} +2 -2
  4. package/dist/{Catalog-Bv7P9ezj.js → Catalog-BV1mgE-z.js} +6 -6
  5. package/dist/{Category-DdS1KASK.js → Category-C2ymwzxI.js} +4 -4
  6. package/dist/{Category-CUlq7SuU.js → Category-C5RNTUST.js} +4 -4
  7. package/dist/{CookingGuide-DkBX8wnY.js → CookingGuide-Byn0p1cx.js} +4 -4
  8. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-DcfgHbnh.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-CftleIRB.js} +1 -1
  9. package/dist/{Group-pe0PnVCF.js → Group-B-Z1yY_a.js} +1 -1
  10. package/dist/{Group-BQpcj6QD.js → Group-CAOu7mTu.js} +3 -3
  11. package/dist/{Group.vue_vue_type_script_setup_true_lang-D-_Mb3Ni.js → Group.vue_vue_type_script_setup_true_lang-CMfGMwA5.js} +128 -128
  12. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CAmV-Bbk.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DEzXdEtH.js} +5 -5
  13. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-CKOiT-Dq.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-BtZtkQHn.js} +7 -7
  14. package/dist/{Ingredient-BUxeqp7_.js → Ingredient-_-Z-auCy.js} +3 -3
  15. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-Cp-Lhe6Y.js → InventoryBinding.vue_vue_type_script_setup_true_lang-rBo5MgKk.js} +2 -2
  16. package/dist/{LinkProductSideSheet-CLFUnEzC.js → LinkProductSideSheet-Cpr-OzhV.js} +3 -3
  17. package/dist/{MenuSetting-CXxjBg51.js → MenuSetting-BHAYHNoL.js} +6 -6
  18. package/dist/{OrderPacing-Qs6pkp2R.js → OrderPacing-0xP2FLqE.js} +5 -5
  19. package/dist/{PrintRoute-DujkGrc5.js → PrintRoute-BXqPWXr-.js} +4 -4
  20. package/dist/{Product-Cvx9QNvS.js → Product-CCwCq0oF.js} +1 -1
  21. package/dist/{Product.vue_vue_type_script_setup_true_lang-CB9i8PBK.js → Product.vue_vue_type_script_setup_true_lang-BHjCwlbX.js} +12 -12
  22. package/dist/{ProductInternalTools-BoMKTz_K.js → ProductInternalTools-BsUazT7k.js} +6 -6
  23. package/dist/{Products-DePOWKkr.js → Products-Y2h_hLvm.js} +50 -50
  24. package/dist/{Publish-CYT_yffF.js → Publish-10DtltRY.js} +3 -3
  25. package/dist/{Recipe-DnSVxwzQ.js → Recipe-BKCEiBY4.js} +4 -4
  26. package/dist/{RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-CrspfNYu.js → RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-Y2Ei1h4p.js} +1 -1
  27. package/dist/{RuleView.vue_vue_type_script_setup_true_lang-lO4l5Ljh.js → RuleView.vue_vue_type_script_setup_true_lang-Bc-WFsaf.js} +302 -302
  28. package/dist/{Scheduler-CdYNHciJ.js → Scheduler-D1WnpvQd.js} +3 -3
  29. package/dist/{ServingSequence-Jo7bwtAo.js → ServingSequence-DZ4MchF3.js} +3 -3
  30. package/dist/{Setting-Cq-_XYsZ.js → Setting-BgO-a6VG.js} +5 -5
  31. package/dist/{Subcategory-1gkL6W4_.js → Subcategory-mLhMiNx9.js} +5 -5
  32. package/dist/{Takeaway-CAZzzdLP.js → Takeaway-B9fVwXW3.js} +1 -1
  33. package/dist/{Takeaway-DCWzdHo8.js → Takeaway-BN8itU_F.js} +4 -4
  34. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-e-I0u75f.js → Takeaway.vue_vue_type_script_setup_true_lang-CNNtpfY0.js} +5 -5
  35. package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-DZrLbN0f.js → Thumbnail.vue_vue_type_script_setup_true_lang-IEPm4c9G.js} +4 -4
  36. package/dist/{TranslationFieldSection.vue_vue_type_script_setup_true_lang-DVpEwVSx.js → TranslationFieldSection.vue_vue_type_script_setup_true_lang-BWq9E3Pr.js} +1 -1
  37. package/dist/{TranslationSideSheet.vue_vue_type_script_setup_true_lang-BFajMkOS.js → TranslationSideSheet.vue_vue_type_script_setup_true_lang-D2Mdr76E.js} +2 -2
  38. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DbQEg7Q8.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-CgEcWKsF.js} +15 -15
  39. package/dist/{Unit-DMO6V6Mu.js → Unit-CJTyfSaA.js} +2 -2
  40. package/dist/{Variant-FKGZZrba.js → Variant-CSR0PyJt.js} +3 -3
  41. package/dist/{_id_-C0CFpyt-.js → _id_-B-uZfPBS.js} +9 -9
  42. package/dist/{app-4a-p2oXw.js → app-nRTse_K5.js} +32 -32
  43. package/dist/{app-BjeSSnsM.js → app-vpEeMZuq.js} +1 -1
  44. package/dist/app.js +1 -1
  45. package/dist/assets/{linked-status-BAAoFylt.js → linked-status-kcewbkLn.js} +2 -2
  46. package/dist/assets/{menu-export-Dild-wkg.js → menu-export-LL-Hfzyk.js} +2 -2
  47. package/dist/assets/{override-menu-DW8WHLlm.js → override-menu-kO9kvtlN.js} +2 -2
  48. package/dist/assets/{validate-menu-2eCRB1oK.js → validate-menu-Bv0NTZv1.js} +2 -2
  49. package/dist/{catalog-9HYR7maN.js → catalog-CVMKoUf8.js} +1 -1
  50. package/dist/{catalogSetting-CePbHJER.js → catalogSetting-CJofGu7O.js} +1 -1
  51. package/dist/{currency-D1B58hqR.js → currency-DeBYT9j_.js} +1 -1
  52. package/dist/{dayjs.min-C4k3xr-5.js → dayjs.min-Ws3b1WxF.js} +2 -2
  53. package/dist/{index-Dty_jYZ3.js → index-OUJmHOAU.js} +5 -5
  54. package/dist/{index-tJdydlQc.js → index-v56nMLPD.js} +4 -4
  55. package/dist/{index.vue_vue_type_script_setup_true_lang-bYbEuWK0.js → index.vue_vue_type_script_setup_true_lang-DPaHA1bp.js} +6 -6
  56. package/dist/{item-DtotNzxu.js → item-D5rytEqk.js} +19 -19
  57. package/dist/{jszip.min-DnWM7-sF.js → jszip.min-C6uUCcnL.js} +153 -153
  58. package/dist/{memberPricing-DUTPzGB1.js → memberPricing-CBzr9qLU.js} +1 -1
  59. package/dist/{menu-XlJwZzUi.js → menu-BhxWRy0N.js} +1 -1
  60. package/dist/{menuV2-CMGSx4LE.js → menuV2-Ds1f3a8P.js} +59 -59
  61. package/dist/{order_pacing-Ieq2X2Ka.js → order_pacing-CYuEj5Sb.js} +5 -5
  62. package/dist/{priceTier-BD2Sh-kx.js → priceTier-KEgRA3RV.js} +1 -1
  63. package/dist/{rules-BfMSf5Bl.js → rules-C1xA7rwc.js} +3 -3
  64. package/dist/{scheduler-0boD1Q7V.js → scheduler-C5YdAro0.js} +4 -4
  65. package/dist/{toExcel-Blh9r3ex.js → toExcel-Dv-vcMzg.js} +2 -2
  66. package/dist/{unit-DM_ZlK-z.js → unit-WEAw3qgL.js} +2 -2
  67. package/package.json +1 -1
@@ -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-bYbEuWK0.js";
2
+ import { u as h, B as w } from "./index.vue_vue_type_script_setup_true_lang-DPaHA1bp.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-bYbEuWK0.js";
2
+ import { u as c } from "./index.vue_vue_type_script_setup_true_lang-DPaHA1bp.js";
3
3
  import "@feedmepos/mf-common";
4
4
  import "@feedmepos/ui-library";
5
5
  function p() {
@@ -1,19 +1,19 @@
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 { I as ae, G as C, A as T, U as ue, ax as re, J as H, H as ie, aj as x, c as L, a0 as V, au as oe, ay as ze, az as Ge, z as He, am as qe, aA as Be, aB as Je, ah as Ye } from "./index.vue_vue_type_script_setup_true_lang-bYbEuWK0.js";
4
+ import { I as ae, G as k, A as T, U as ue, ax as re, J as q, H as ie, aj as x, c as L, a0 as D, au as oe, ay as ze, az as Ge, z as qe, am as He, aA as Be, aB as Je, ah as Ye } from "./index.vue_vue_type_script_setup_true_lang-DPaHA1bp.js";
5
5
  import { defineStore as Qe } from "pinia";
6
- import { shallowRef as j, ref as q, computed as S, shallowReactive as Xe, effectScope as Ze, watch as et } from "vue";
6
+ import { shallowRef as N, ref as H, computed as S, shallowReactive as Xe, effectScope as Ze, 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-BAAoFylt.js", rt = "/assets/override-menu-DW8WHLlm.js";
9
+ const nt = "/assets/linked-status-kcewbkLn.js", rt = "/assets/override-menu-kO9kvtlN.js";
10
10
  function ot(e) {
11
11
  var o;
12
- const t = C(e), n = (o = t.variant) == null ? void 0 : o.variantCombinations;
12
+ const t = k(e), n = (o = t.variant) == null ? void 0 : o.variantCombinations;
13
13
  return delete t.variant, delete t.thumbnail, [t, ...n || []];
14
14
  }
15
15
  function st(e, t, n, o) {
16
- const r = C(t), u = n ? r.modules.catalog.find((v) => v._id === n) : null, l = o ? r.modules.scheduler.find((v) => v._id === o) : null, a = u ? C(u) : void 0, c = n ? r.modules.catalog.filter((v) => v._id !== n) : [], i = l ? C(l) : void 0, f = e.reduce((v, y) => (v[y._id] = ot(y), v), {});
16
+ const r = k(t), u = n ? r.modules.catalog.find((v) => v._id === n) : null, l = o ? r.modules.scheduler.find((v) => v._id === o) : null, a = u ? k(u) : void 0, c = n ? r.modules.catalog.filter((v) => v._id !== n) : [], i = l ? k(l) : void 0, f = e.reduce((v, y) => (v[y._id] = ot(y), v), {});
17
17
  function h(v = []) {
18
18
  const y = e.map((p) => p._id);
19
19
  return [
@@ -152,8 +152,8 @@ function ut(e, t) {
152
152
  price: (o == null ? void 0 : o.price) || t.price
153
153
  };
154
154
  }
155
- async function Dt(e, t, n, o, r, u = !0) {
156
- const l = C(n), a = u ? st(t, l, o, r) : l, c = t.reduce((h, v) => (h[v._id] = a.modules.item.find((y) => y._id === v._id), h), {}), i = t.reduce((h, v) => {
155
+ async function Vt(e, t, n, o, r, u = !0) {
156
+ const l = k(n), a = u ? st(t, l, o, r) : l, c = t.reduce((h, v) => (h[v._id] = a.modules.item.find((y) => y._id === v._id), h), {}), i = t.reduce((h, v) => {
157
157
  const y = v._id;
158
158
  return h[y] = at(c[y], e), h;
159
159
  }, {}), f = T.getFallbackPrices({
@@ -170,7 +170,7 @@ async function Dt(e, t, n, o, r, u = !0) {
170
170
  };
171
171
  });
172
172
  }
173
- function Vt(e, t) {
173
+ function Dt(e, t) {
174
174
  if (e.length === 0) return "";
175
175
  const n = e == null ? void 0 : e.split("variant");
176
176
  return ((n == null ? void 0 : n.reduce((r, u) => {
@@ -245,7 +245,7 @@ async function it(e, t, n) {
245
245
  async function $t(e, t, n) {
246
246
  var l, a;
247
247
  const o = await it(e, t, null), r = [], u = (c, i) => {
248
- const f = C(c);
248
+ const f = k(c);
249
249
  for (const h in i)
250
250
  i[h] && (f[h] = i[h]);
251
251
  return f;
@@ -254,9 +254,9 @@ async function $t(e, t, n) {
254
254
  const i = (l = c.items) == null ? void 0 : l.find((h) => h._id === n && !h.combinationKey), f = e.modules.item.find((h) => h._id === n);
255
255
  if (i) {
256
256
  const h = (a = c.items) == null ? void 0 : a.filter((y) => y._id === n && y.combinationKey), v = [i, ...h].map((y) => {
257
- var w, I;
258
- const p = y.combinationKey ? (I = (w = f == null ? void 0 : f.variant) == null ? void 0 : w.variantCombinations) == null ? void 0 : I.find(
259
- (k) => k.combinationKey === y.combinationKey
257
+ var w, C;
258
+ const p = y.combinationKey ? (C = (w = f == null ? void 0 : f.variant) == null ? void 0 : w.variantCombinations) == null ? void 0 : C.find(
259
+ (I) => I.combinationKey === y.combinationKey
260
260
  ) : f, b = p && f ? u(f, p) : y;
261
261
  return u(b, y);
262
262
  });
@@ -360,8 +360,8 @@ function dt(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}`, k = u ? [e[p], b, K] : ["", b, K];
364
- o[I] = k;
363
+ const C = `_${p}`, I = u ? [e[p], b, K] : ["", b, K];
364
+ o[C] = I;
365
365
  }
366
366
  } else {
367
367
  const w = `_${p}`;
@@ -566,22 +566,22 @@ function bt({
566
566
  includeValueOnMove: !1
567
567
  },
568
568
  cloneDiffValues: !1
569
- }), n = j(null), o = j([]), r = q(-1), u = j(null), l = S(() => r.value > 0), a = S(() => r.value < o.value.length - 1);
569
+ }), n = N(null), o = N([]), r = H(-1), u = N(null), l = S(() => r.value > 0), a = S(() => r.value < o.value.length - 1);
570
570
  function c(y) {
571
571
  if (n.value === null) {
572
- n.value = C(y), u.value = C(y), o.value = [{ delta: null }], r.value = 0;
572
+ n.value = k(y), u.value = k(y), o.value = [{ delta: null }], r.value = 0;
573
573
  return;
574
574
  }
575
575
  const p = t.diff(u.value, y);
576
- if (r.value < o.value.length - 1 && (o.value = o.value.slice(0, r.value + 1)), o.value.push({ delta: p }), r.value++, u.value = C(y), o.value.length > e) {
576
+ if (r.value < o.value.length - 1 && (o.value = o.value.slice(0, r.value + 1)), o.value.push({ delta: p }), r.value++, u.value = k(y), o.value.length > e) {
577
577
  const b = o.value[1].delta;
578
- b && n.value && (n.value = t.patch(C(n.value), b)), o.value.shift(), r.value--;
578
+ b && n.value && (n.value = t.patch(k(n.value), b)), o.value.shift(), r.value--;
579
579
  }
580
580
  }
581
581
  function i(y) {
582
582
  if (!n.value || y < 0 || y >= o.value.length)
583
583
  return;
584
- let p = C(n.value);
584
+ let p = k(n.value);
585
585
  for (let b = 1; b <= y; b++) {
586
586
  const w = o.value[b];
587
587
  w.delta && (p = t.patch(p, w.delta));
@@ -592,14 +592,14 @@ function bt({
592
592
  if (l.value) {
593
593
  r.value--;
594
594
  const y = i(r.value);
595
- return y && (u.value = C(y)), y;
595
+ return y && (u.value = k(y)), y;
596
596
  }
597
597
  }
598
598
  function h() {
599
599
  if (a.value) {
600
600
  r.value++;
601
601
  const y = i(r.value);
602
- return y && (u.value = C(y)), y;
602
+ return y && (u.value = k(y)), y;
603
603
  }
604
604
  }
605
605
  function v() {
@@ -616,7 +616,7 @@ function bt({
616
616
  }
617
617
  const wt = {
618
618
  async updateMenuModule(e, t) {
619
- const n = H.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
  `));
@@ -690,9 +690,9 @@ const Ft = Qe(
690
690
  (s) => s._id === e.currentSchedulerId
691
691
  ));
692
692
  function f(s, d = !0) {
693
- e.menu = { ...s, _rev: e.menu._rev }, d && D.push(e.menu);
693
+ e.menu = { ...s, _rev: e.menu._rev }, d && V.push(e.menu);
694
694
  }
695
- const h = j(fe()), v = q(!1), y = q(1);
695
+ const h = N(fe()), v = H(!1), y = H(1);
696
696
  async function p() {
697
697
  var m;
698
698
  v.value = !0;
@@ -728,9 +728,9 @@ const Ft = Qe(
728
728
  return h.value = d, v.value = !1, y.value = y.value + 1, d;
729
729
  }
730
730
  const w = ie.debounce(p, 200);
731
- let I = null, k = null;
731
+ let C = null, I = null;
732
732
  function X() {
733
- k && (k(), k = null), I && I.stop(), I = Ze(!0), k = I.run(() => et(
733
+ I && (I(), I = null), C && C.stop(), C = Ze(!0), I = C.run(() => et(
734
734
  () => [e.menu, e.currentCatalogId, e.currentSchedulerId],
735
735
  () => {
736
736
  v.value || w();
@@ -757,11 +757,11 @@ const Ft = Qe(
757
757
  position: 0
758
758
  }
759
759
  ] : [],
760
- ...V(s, (d) => d.name)
760
+ ...D(s, (d) => d.name)
761
761
  ];
762
762
  }), ve = S(() => {
763
763
  const s = h.value.modules.subCategory || [];
764
- return V(s, (d) => d.name);
764
+ return D(s, (d) => d.name);
765
765
  }), ee = S(() => {
766
766
  var d;
767
767
  let s = h.value.modules.item;
@@ -775,17 +775,17 @@ const Ft = Qe(
775
775
  return (_ == null ? void 0 : _.orderFrom) !== ue.enum.NONE;
776
776
  });
777
777
  }
778
- return V(s, (m) => m.code || m.name);
778
+ return D(s, (m) => m.code || m.name);
779
779
  }), ye = S(() => {
780
- const s = e.menu.modules.category, d = V(s, (g) => g.name).reduce(
780
+ const s = e.menu.modules.category, d = D(s, (g) => g.name).reduce(
781
781
  (g, _, A) => (g[_._id] = A, g),
782
782
  { "": 0 }
783
783
  ), m = e.menu.modules.item;
784
- return V(
784
+ return D(
785
785
  m,
786
786
  (g) => g.code || g.name
787
787
  ).reduce((g, _, A) => (g[_._id] = A + d[_.category || ""], g), {});
788
- }), he = S(() => oe(N.value, Z.value, ee.value)), pe = S(() => {
788
+ }), he = S(() => oe(j.value, Z.value, ee.value)), pe = S(() => {
789
789
  const s = U.value.item.addon ? [
790
790
  {
791
791
  _id: e.currentCatalogId ? "" : null,
@@ -799,22 +799,22 @@ const Ft = Qe(
799
799
  s,
800
800
  e.menu.modules.item
801
801
  );
802
- }), N = S(() => {
802
+ }), j = S(() => {
803
803
  const s = h.value.modules.variant;
804
804
  return x(s, { selector: "name" });
805
805
  });
806
806
  function ge(s = []) {
807
- const d = s.map((g) => N.value.find((_) => _._id === g)).filter((g) => !!g);
807
+ const d = s.map((g) => j.value.find((_) => _._id === g)).filter((g) => !!g);
808
808
  return T.fullVariantCombination(d).reduce((g, _) => (g[_.combinationKey] = _.selectionName.join(" / "), g), {});
809
809
  }
810
- const _e = S(() => V(h.value.modules.group, (s) => s.name)), Se = S(() => x(h.value.modules.takeaway, { selector: "name" })), be = S(() => x(e.menu.modules.printDepartment || [], {
810
+ const _e = S(() => D(h.value.modules.group, (s) => s.name)), Se = S(() => x(h.value.modules.takeaway, { selector: "name" })), be = S(() => x(e.menu.modules.printDepartment || [], {
811
811
  selector: "name"
812
812
  })), we = S(() => x(e.menu.modules.unit, { selector: "name" })), Me = S(() => x(ze(e.menu.modules.recipe, e.menu.modules.sku), {
813
813
  selector: "name"
814
- })), Ae = S(() => e.menu.modules.cookingGuide), Ce = S(() => {
814
+ })), Ae = S(() => e.menu.modules.cookingGuide), ke = S(() => {
815
815
  const s = Ge(e.menu.modules.sku);
816
816
  return x(s, { selector: "code" });
817
- }), Ie = S(() => {
817
+ }), Ce = S(() => {
818
818
  const s = /* @__PURE__ */ new Map();
819
819
  return e.menu.modules.item.forEach((d) => {
820
820
  var m, g;
@@ -898,7 +898,7 @@ const Ft = Qe(
898
898
  function W(s) {
899
899
  return `${s.systemCode}/${s.taxCode}`;
900
900
  }
901
- function ke(s) {
901
+ function Ie(s) {
902
902
  const [d, m] = s.split("/");
903
903
  return { systemCode: d, taxCode: m };
904
904
  }
@@ -907,10 +907,10 @@ const Ft = Qe(
907
907
  }
908
908
  const Re = S(() => {
909
909
  var g;
910
- const s = ["SV5", "SV10"], d = He.Country.getCountryFlattenTaxes(
910
+ const s = ["SV5", "SV10"], d = qe.Country.getCountryFlattenTaxes(
911
911
  se().currentCountry.value
912
912
  ), m = d.filter((_) => u.value || !s.includes(_.taxCode)).map((_) => ({
913
- label: `${_.name} (${qe(_.rate)}%)`,
913
+ label: `${_.name} (${He(_.rate)}%)`,
914
914
  value: W(_),
915
915
  meta: {
916
916
  rate: _.rate
@@ -932,9 +932,9 @@ const Ft = Qe(
932
932
  });
933
933
  }, te = (s) => {
934
934
  e.currentCatalogId = s;
935
- }, De = (s) => {
936
- e.currentSchedulerId = s;
937
935
  }, Ve = (s) => {
936
+ e.currentSchedulerId = s;
937
+ }, De = (s) => {
938
938
  e.currentCategoryIds = s;
939
939
  }, Te = (s) => {
940
940
  e.currentRestaurantAttrParams = s;
@@ -948,7 +948,7 @@ const Ft = Qe(
948
948
  }));
949
949
  try {
950
950
  if (d || g.some(
951
- (A) => [H.F_OPERATION_TYPE.delete, H.F_OPERATION_TYPE.deleteMany].includes(A.operation)
951
+ (A) => [q.F_OPERATION_TYPE.delete, q.F_OPERATION_TYPE.deleteMany].includes(A.operation)
952
952
  )) {
953
953
  const A = await Be(g, e.menu.modules);
954
954
  if (A !== !0) throw new Error(A);
@@ -970,14 +970,14 @@ const Ft = Qe(
970
970
  priceTierSettings: s.priceTierSettings
971
971
  };
972
972
  return f(d), d;
973
- }, D = bt({ maxHistorySize: 50 }), $e = S(() => D.canUndo.value), Fe = S(() => D.canRedo.value), je = () => {
974
- const s = D.undo();
973
+ }, V = bt({ maxHistorySize: 50 }), $e = S(() => V.canUndo.value), Fe = S(() => V.canRedo.value), Ne = () => {
974
+ const s = V.undo();
975
975
  s && f(s, !1);
976
- }, Ne = () => {
977
- const s = D.redo();
976
+ }, je = () => {
977
+ const s = V.redo();
978
978
  s && f(s, !1);
979
979
  }, Ue = () => {
980
- D.clear();
980
+ V.clear();
981
981
  };
982
982
  return {
983
983
  state: e,
@@ -999,17 +999,17 @@ const Ft = Qe(
999
999
  subcategories: ve,
1000
1000
  items: ee,
1001
1001
  sortedItems: ye,
1002
- itemCodeMap: Ie,
1002
+ itemCodeMap: Ce,
1003
1003
  categorizedItems: he,
1004
1004
  categorizedRawMenuItems: pe,
1005
- variants: N,
1005
+ variants: j,
1006
1006
  groups: _e,
1007
1007
  takeaways: Se,
1008
1008
  printDepartments: be,
1009
1009
  units: we,
1010
1010
  recipes: Me,
1011
1011
  cookingGuide: Ae,
1012
- skus: Ce,
1012
+ skus: ke,
1013
1013
  rules: U,
1014
1014
  taxSetting: Re,
1015
1015
  // Action
@@ -1017,25 +1017,25 @@ const Ft = Qe(
1017
1017
  readMenu: xe,
1018
1018
  readRestaurants: Oe,
1019
1019
  selectCatalog: te,
1020
- selectScheduler: De,
1021
- selectCategory: Ve,
1020
+ selectScheduler: Ve,
1021
+ selectCategory: De,
1022
1022
  setRestaurantAttrParams: Te,
1023
1023
  updateMenu: Ke,
1024
1024
  updateMenuSetting: Pe,
1025
1025
  computeMergedMenu: p,
1026
1026
  // helper
1027
1027
  encodeTax: W,
1028
- decodeTax: ke,
1028
+ decodeTax: Ie,
1029
1029
  getSelectedTax: Ee,
1030
1030
  mapVariant: ge,
1031
1031
  // history
1032
1032
  canUndoHistory: $e,
1033
1033
  canRedoHistory: Fe,
1034
- undoHistory: je,
1035
- redoHistory: Ne,
1034
+ undoHistory: Ne,
1035
+ redoHistory: je,
1036
1036
  // cleanup
1037
1037
  $dispose: () => {
1038
- w.cancel(), k && (k(), k = null), I && (I.stop(), I = null), Ue();
1038
+ w.cancel(), I && (I(), I = null), C && (C.stop(), C = null), Ue();
1039
1039
  },
1040
1040
  $reinitialize: () => {
1041
1041
  X();
@@ -1048,8 +1048,8 @@ export {
1048
1048
  Kt as b,
1049
1049
  Pt as c,
1050
1050
  $t as f,
1051
- Vt as g,
1052
- Dt as m,
1051
+ Dt as g,
1052
+ Vt as m,
1053
1053
  it as o,
1054
1054
  Ft as u
1055
1055
  };
@@ -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 B, renderSlot as ee, renderList as G, toDisplayString as $, createCommentVNode as ae, getCurrentInstance as te, render as ne } from "vue";
2
- import { u as Y, P as oe, B as le, J as M, K } from "./index.vue_vue_type_script_setup_true_lang-bYbEuWK0.js";
2
+ import { u as Y, P as oe, B as le, J as M, K } from "./index.vue_vue_type_script_setup_true_lang-DPaHA1bp.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 H, u as se } from "./RuleView.vue_vue_type_script_setup_true_lang-lO4l5Ljh.js";
5
+ import { _ as H, u as se } from "./RuleView.vue_vue_type_script_setup_true_lang-Bc-WFsaf.js";
6
6
  import { c as de } from "./object-DVUNCr7w.js";
7
- import { _ as ue } from "./app-4a-p2oXw.js";
8
- import { L as ce } from "./LinkProductSideSheet-CLFUnEzC.js";
7
+ import { _ as ue } from "./app-nRTse_K5.js";
8
+ import { L as ce } from "./LinkProductSideSheet-Cpr-OzhV.js";
9
9
  import { u as me } from "./search-BAPEUu1R.js";
10
- import { _ as pe } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-BFajMkOS.js";
10
+ import { _ as pe } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-D2Mdr76E.js";
11
11
  import { c as ge } from "./check-C9mY6LiX.js";
12
12
  import { g as J } 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-bYbEuWK0.js";
4
+ import { u as k, B as M } from "./index.vue_vue_type_script_setup_true_lang-DPaHA1bp.js";
5
5
  const v = /* @__PURE__ */ d({
6
6
  __name: "AddPriceGroupDialog",
7
7
  setup(s) {
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as I, watch as h, ref as E, computed as w, resolveComponent as _, createElementBlock as F, openBlock as P, 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 { J as v, K as C, u as Y } from "./index.vue_vue_type_script_setup_true_lang-bYbEuWK0.js";
2
+ import { J as v, K as C, u as Y } from "./index.vue_vue_type_script_setup_true_lang-DPaHA1bp.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-CMGSx4LE.js";
6
- import { _ as $ } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-BFajMkOS.js";
5
+ import { u as R } from "./menuV2-Ds1f3a8P.js";
6
+ import { _ as $ } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-D2Mdr76E.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 re, computed as N, resolveComponent as v, createElementBlock as d, openBlock as u, createVNode as t, createCommentVNode as V, unref as n, toDisplayString as O, createElementVNode as _, withCtx as p, Fragment as R, renderList as I, createBlock as q, ref as B, Transition as de, createTextVNode as fe } from "vue";
2
- import { G as w, a6 as $, u as ye, y as _e, a7 as L, H as he, J as se, K as ie, ak as ce } from "./index.vue_vue_type_script_setup_true_lang-bYbEuWK0.js";
2
+ import { G as w, a6 as $, u as ye, y as _e, a7 as L, H as he, J as se, K as ie, ak as ce } from "./index.vue_vue_type_script_setup_true_lang-DPaHA1bp.js";
3
3
  import { useI18n as me } from "@feedmepos/mf-common";
4
4
  import { components as ge } from "@feedmepos/ui-library";
5
5
  import { _ as Ve } from "./FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js";
6
- import { _ as ue } from "./RuleView.vue_vue_type_script_setup_true_lang-lO4l5Ljh.js";
6
+ import { _ as ue } from "./RuleView.vue_vue_type_script_setup_true_lang-Bc-WFsaf.js";
7
7
  import { u as ke } from "./discardConfirm-BHni0LNu.js";
8
- import { u as be } from "./menu-XlJwZzUi.js";
9
- import { L as Fe } from "./LinkProductSideSheet-CLFUnEzC.js";
8
+ import { u as be } from "./menu-BhxWRy0N.js";
9
+ import { L as Fe } from "./LinkProductSideSheet-Cpr-OzhV.js";
10
10
  const xe = { class: "space-y-8" }, Ce = {
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-CKOiT-Dq.js";
2
- import "./index.vue_vue_type_script_setup_true_lang-bYbEuWK0.js";
1
+ import { u as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-BtZtkQHn.js";
2
+ import "./index.vue_vue_type_script_setup_true_lang-DPaHA1bp.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 S, computed as x, ref as A, watch as D, resolveComponent as V, createBlock as W, 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 L, renderSlot as X, renderList as Z, getCurrentInstance as ee } from "vue";
3
- import { aa as N, ab as te, a8 as O, G as E, P as $, B as j, A as h, a9 as ne, J as T, K as M, H as ae, u as oe } from "./index.vue_vue_type_script_setup_true_lang-bYbEuWK0.js";
3
+ import { aa as N, ab as te, a8 as O, G as E, P as $, B as j, A as h, a9 as ne, J as T, K as M, H as ae, u as oe } from "./index.vue_vue_type_script_setup_true_lang-DPaHA1bp.js";
4
4
  import { useI18n as P } from "@feedmepos/mf-common";
5
5
  import { useSnackbar as I, 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-CMGSx4LE.js";
9
+ import "./menuV2-Ds1f3a8P.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.52",
3
+ "version": "0.32.53-dev",
4
4
  "files": [
5
5
  "dist"
6
6
  ],