@feedmepos/mf-menu 0.32.52-dev → 0.32.52

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-COGal-TD.js → App-ueXpH5uy.js} +7 -7
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-DzisSpvQ.js → ApplyProduct.vue_vue_type_script_setup_true_lang-BsFapF6d.js} +3 -3
  3. package/dist/{ApplyProductDialog.vue_vue_type_script_setup_true_lang-eqJDqaPZ.js → ApplyProductDialog.vue_vue_type_script_setup_true_lang-BSN7XtmN.js} +2 -2
  4. package/dist/{Catalog-BJ8-NdAC.js → Catalog-Bv7P9ezj.js} +6 -6
  5. package/dist/{Category-BkU2y10v.js → Category-CUlq7SuU.js} +4 -4
  6. package/dist/{Category-CFaPOouQ.js → Category-DdS1KASK.js} +4 -4
  7. package/dist/{CookingGuide-BDDCmfeL.js → CookingGuide-DkBX8wnY.js} +4 -4
  8. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-BcJYQo_p.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-DcfgHbnh.js} +1 -1
  9. package/dist/{Group-Sk7Qd6G3.js → Group-BQpcj6QD.js} +3 -3
  10. package/dist/{Group-DBrJ4Rin.js → Group-pe0PnVCF.js} +1 -1
  11. package/dist/{Group.vue_vue_type_script_setup_true_lang-BWpIG76a.js → Group.vue_vue_type_script_setup_true_lang-D-_Mb3Ni.js} +7 -7
  12. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DzeAE7Oj.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CAmV-Bbk.js} +5 -5
  13. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-DWScWkMg.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-CKOiT-Dq.js} +7 -7
  14. package/dist/{Ingredient-CA0qoRc1.js → Ingredient-BUxeqp7_.js} +3 -3
  15. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-BzLcfi4f.js → InventoryBinding.vue_vue_type_script_setup_true_lang-Cp-Lhe6Y.js} +2 -2
  16. package/dist/{LinkProductSideSheet-TTj7qiWm.js → LinkProductSideSheet-CLFUnEzC.js} +3 -3
  17. package/dist/{MenuSetting-DwfE7v0B.js → MenuSetting-CXxjBg51.js} +6 -6
  18. package/dist/{OrderPacing-cT1Vs3OD.js → OrderPacing-Qs6pkp2R.js} +5 -5
  19. package/dist/{PrintRoute-D8pc6M31.js → PrintRoute-DujkGrc5.js} +4 -4
  20. package/dist/{Product-CW1oQzS-.js → Product-Cvx9QNvS.js} +1 -1
  21. package/dist/{Product.vue_vue_type_script_setup_true_lang-lqXctN9S.js → Product.vue_vue_type_script_setup_true_lang-CB9i8PBK.js} +12 -12
  22. package/dist/{ProductInternalTools-DAIu8IhO.js → ProductInternalTools-BoMKTz_K.js} +6 -6
  23. package/dist/{Products-nVL6Qsuw.js → Products-DePOWKkr.js} +38 -38
  24. package/dist/{Publish-DHEzIG_J.js → Publish-CYT_yffF.js} +3 -3
  25. package/dist/{Recipe-BLcLaekI.js → Recipe-DnSVxwzQ.js} +4 -4
  26. package/dist/{RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-BCHurASV.js → RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-CrspfNYu.js} +1 -1
  27. package/dist/{RuleView.vue_vue_type_script_setup_true_lang-Dwi3pOl9.js → RuleView.vue_vue_type_script_setup_true_lang-lO4l5Ljh.js} +302 -302
  28. package/dist/{Scheduler-C4e5hO7Z.js → Scheduler-CdYNHciJ.js} +3 -3
  29. package/dist/{ServingSequence-C12Ny_nR.js → ServingSequence-Jo7bwtAo.js} +3 -3
  30. package/dist/{Setting-BscTehhJ.js → Setting-Cq-_XYsZ.js} +5 -5
  31. package/dist/{Subcategory-C5FGoPot.js → Subcategory-1gkL6W4_.js} +5 -5
  32. package/dist/{Takeaway-CDSKNUhc.js → Takeaway-CAZzzdLP.js} +1 -1
  33. package/dist/{Takeaway-Dr6WQVE1.js → Takeaway-DCWzdHo8.js} +4 -4
  34. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-C6eREsQp.js → Takeaway.vue_vue_type_script_setup_true_lang-e-I0u75f.js} +5 -5
  35. package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-CkETUziX.js → Thumbnail.vue_vue_type_script_setup_true_lang-DZrLbN0f.js} +4 -4
  36. package/dist/{TranslationFieldSection.vue_vue_type_script_setup_true_lang-CcD-TGhd.js → TranslationFieldSection.vue_vue_type_script_setup_true_lang-DVpEwVSx.js} +1 -1
  37. package/dist/{TranslationSideSheet.vue_vue_type_script_setup_true_lang-DccUYmCx.js → TranslationSideSheet.vue_vue_type_script_setup_true_lang-BFajMkOS.js} +2 -2
  38. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-D1ov0odP.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DbQEg7Q8.js} +14 -14
  39. package/dist/{Unit-U3pz6pPm.js → Unit-DMO6V6Mu.js} +2 -2
  40. package/dist/{Variant-D-nC4Dy6.js → Variant-FKGZZrba.js} +3 -3
  41. package/dist/{_id_-DHI7NeZ5.js → _id_-C0CFpyt-.js} +9 -9
  42. package/dist/{app-dIGG83GF.js → app-4a-p2oXw.js} +32 -32
  43. package/dist/{app-Brq8nN4D.js → app-BjeSSnsM.js} +1 -1
  44. package/dist/app.js +1 -1
  45. package/dist/assets/{linked-status-C-sgTOx9.js → linked-status-BAAoFylt.js} +2 -2
  46. package/dist/assets/{menu-export-Nt98HUsd.js → menu-export-Dild-wkg.js} +2 -2
  47. package/dist/assets/{override-menu-Ako9Ghu_.js → override-menu-DW8WHLlm.js} +2 -2
  48. package/dist/assets/{validate-menu-CVJ4sdGa.js → validate-menu-2eCRB1oK.js} +2 -2
  49. package/dist/{catalog-BDfp-HKs.js → catalog-9HYR7maN.js} +1 -1
  50. package/dist/{catalogSetting-BjZWlJux.js → catalogSetting-CePbHJER.js} +1 -1
  51. package/dist/{currency-BMM0v_C-.js → currency-D1B58hqR.js} +1 -1
  52. package/dist/{dayjs.min-qRo56ggi.js → dayjs.min-C4k3xr-5.js} +2 -2
  53. package/dist/{index-Dnr_KMtS.js → index-Dty_jYZ3.js} +5 -5
  54. package/dist/{index-DwsAtSPy.js → index-tJdydlQc.js} +4 -4
  55. package/dist/{index.vue_vue_type_script_setup_true_lang-BLHrxcy_.js → index.vue_vue_type_script_setup_true_lang-bYbEuWK0.js} +280 -280
  56. package/dist/{item-hYgXuH-R.js → item-DtotNzxu.js} +18 -18
  57. package/dist/{jszip.min-BqsNpcIL.js → jszip.min-DnWM7-sF.js} +153 -153
  58. package/dist/{memberPricing-CXI5GqbJ.js → memberPricing-DUTPzGB1.js} +1 -1
  59. package/dist/{menu-Okh_Q4gK.js → menu-XlJwZzUi.js} +1 -1
  60. package/dist/{menuV2-DbTc7yw0.js → menuV2-CMGSx4LE.js} +55 -55
  61. package/dist/{order_pacing-CBkQIrp3.js → order_pacing-Ieq2X2Ka.js} +5 -5
  62. package/dist/{priceTier-BxWXhfDh.js → priceTier-BD2Sh-kx.js} +1 -1
  63. package/dist/{rules-CsoPQCO5.js → rules-BfMSf5Bl.js} +3 -3
  64. package/dist/{scheduler-BfvHQAuo.js → scheduler-0boD1Q7V.js} +4 -4
  65. package/dist/{toExcel-DZMykkCy.js → toExcel-Blh9r3ex.js} +2 -2
  66. package/dist/{unit-ro6UkV3c.js → unit-DM_ZlK-z.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-BLHrxcy_.js";
2
+ import { u as h, B as w } from "./index.vue_vue_type_script_setup_true_lang-bYbEuWK0.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-BLHrxcy_.js";
2
+ import { u as c } from "./index.vue_vue_type_script_setup_true_lang-bYbEuWK0.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
- var ze = (e, t, n) => t in e ? We(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var ne = (e, t, n) => ze(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 q, H as ie, aj as x, c as z, a0 as D, au as oe, ay as Ge, az as Le, z as qe, am as He, aA as Be, aB as Je, ah as Ye } from "./index.vue_vue_type_script_setup_true_lang-BLHrxcy_.js";
2
+ var Le = (e, t, n) => t in e ? We(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
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";
5
5
  import { defineStore as Qe } from "pinia";
6
- import { shallowRef as j, ref as H, computed as S, shallowReactive as Xe, effectScope as Ze, watch as et } from "vue";
6
+ import { shallowRef as j, ref as q, 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-C-sgTOx9.js", rt = "/assets/override-menu-Ako9Ghu_.js";
9
+ const nt = "/assets/linked-status-BAAoFylt.js", rt = "/assets/override-menu-DW8WHLlm.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;
@@ -152,7 +152,7 @@ function ut(e, t) {
152
152
  price: (o == null ? void 0 : o.price) || t.price
153
153
  };
154
154
  }
155
- async function Vt(e, t, n, o, r, u = !0) {
155
+ async function Dt(e, t, n, o, r, u = !0) {
156
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) => {
157
157
  const y = v._id;
158
158
  return h[y] = at(c[y], e), h;
@@ -170,7 +170,7 @@ async function Vt(e, t, n, o, r, u = !0) {
170
170
  };
171
171
  });
172
172
  }
173
- function Dt(e, t) {
173
+ function Vt(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) => {
@@ -183,11 +183,11 @@ function Dt(e, t) {
183
183
  return r;
184
184
  }, [])) || []).join(" / ");
185
185
  }
186
- const G = /* @__PURE__ */ new Map();
186
+ const z = /* @__PURE__ */ new Map();
187
187
  async function Tt(e, t) {
188
188
  const n = `${e._id}-${e.updatedAt}-${t}`;
189
- if (G.has(n))
190
- return G.get(n);
189
+ if (z.has(n))
190
+ return z.get(n);
191
191
  const o = await ae(
192
192
  nt,
193
193
  JSON.stringify({
@@ -195,7 +195,7 @@ async function Tt(e, t) {
195
195
  itemId: t
196
196
  })
197
197
  );
198
- return G.set(n, o), o;
198
+ return z.set(n, o), o;
199
199
  }
200
200
  async function ce(e, t, n) {
201
201
  return await ae(rt, {
@@ -234,13 +234,13 @@ function Pt(e, t, n) {
234
234
  }
235
235
  return r(t, n);
236
236
  }
237
- const L = /* @__PURE__ */ new Map();
237
+ const G = /* @__PURE__ */ new Map();
238
238
  async function it(e, t, n) {
239
239
  const o = `${e._id}-${e.updatedAt}-${t || "null"}-${n || "null"}`;
240
- if (L.has(o))
241
- return L.get(o);
240
+ if (G.has(o))
241
+ return G.get(o);
242
242
  const r = await ce(e, t, n);
243
- return L.set(o, r), r;
243
+ return G.set(o, r), r;
244
244
  }
245
245
  async function $t(e, t, n) {
246
246
  var l, a;
@@ -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, k;
258
- const p = y.combinationKey ? (k = (w = f == null ? void 0 : f.variant) == null ? void 0 : w.variantCombinations) == null ? void 0 : k.find(
259
- (I) => I.combinationKey === y.combinationKey
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
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 k = `_${p}`, I = u ? [e[p], b, K] : ["", b, K];
364
- o[k] = I;
363
+ const I = `_${p}`, k = u ? [e[p], b, K] : ["", b, K];
364
+ o[I] = k;
365
365
  }
366
366
  } else {
367
367
  const w = `_${p}`;
@@ -566,7 +566,7 @@ function bt({
566
566
  includeValueOnMove: !1
567
567
  },
568
568
  cloneDiffValues: !1
569
- }), n = j(null), o = j([]), r = H(-1), u = j(null), l = S(() => r.value > 0), a = S(() => r.value < o.value.length - 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);
570
570
  function c(y) {
571
571
  if (n.value === null) {
572
572
  n.value = C(y), u.value = C(y), o.value = [{ delta: null }], r.value = 0;
@@ -616,7 +616,7 @@ function bt({
616
616
  }
617
617
  const wt = {
618
618
  async updateMenuModule(e, t) {
619
- const n = q.RequestRunner.operation(t, e.modules);
619
+ const n = H.RequestRunner.operation(t, e.modules);
620
620
  if (n.validateError.length > 0)
621
621
  throw new Error(n.validateError.join(`
622
622
  `));
@@ -671,8 +671,8 @@ const Ft = Qe(
671
671
  selector: "position"
672
672
  }) : []), r = S(() => {
673
673
  var s;
674
- return ((s = t.currentBusiness.value) == null ? void 0 : s.menuVersion) || z.F_MENU_VERSION.v3;
675
- }), u = S(() => r.value === z.F_MENU_VERSION.v4), l = S(() => {
674
+ return ((s = t.currentBusiness.value) == null ? void 0 : s.menuVersion) || L.F_MENU_VERSION.v3;
675
+ }), u = S(() => r.value === L.F_MENU_VERSION.v4), l = S(() => {
676
676
  const s = e.menu.modules.catalog;
677
677
  return x(s, { selector: "name" });
678
678
  }), a = S(() => {
@@ -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 && V.push(e.menu);
693
+ e.menu = { ...s, _rev: e.menu._rev }, d && D.push(e.menu);
694
694
  }
695
- const h = j(fe()), v = H(!1), y = H(1);
695
+ const h = j(fe()), v = q(!1), y = q(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 k = null, I = null;
731
+ let I = null, k = null;
732
732
  function X() {
733
- I && (I(), I = null), k && k.stop(), k = Ze(!0), I = k.run(() => et(
733
+ k && (k(), k = null), I && I.stop(), I = Ze(!0), k = I.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
- ...D(s, (d) => d.name)
760
+ ...V(s, (d) => d.name)
761
761
  ];
762
762
  }), ve = S(() => {
763
763
  const s = h.value.modules.subCategory || [];
764
- return D(s, (d) => d.name);
764
+ return V(s, (d) => d.name);
765
765
  }), ee = S(() => {
766
766
  var d;
767
767
  let s = h.value.modules.item;
@@ -775,13 +775,13 @@ const Ft = Qe(
775
775
  return (_ == null ? void 0 : _.orderFrom) !== ue.enum.NONE;
776
776
  });
777
777
  }
778
- return D(s, (m) => m.code || m.name);
778
+ return V(s, (m) => m.code || m.name);
779
779
  }), ye = S(() => {
780
- const s = e.menu.modules.category, d = D(s, (g) => g.name).reduce(
780
+ const s = e.menu.modules.category, d = V(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 D(
784
+ return V(
785
785
  m,
786
786
  (g) => g.code || g.name
787
787
  ).reduce((g, _, A) => (g[_._id] = A + d[_.category || ""], g), {});
@@ -807,14 +807,14 @@ const Ft = Qe(
807
807
  const d = s.map((g) => N.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(() => D(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(() => V(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
- })), we = S(() => x(e.menu.modules.unit, { selector: "name" })), Me = S(() => x(Ge(e.menu.modules.recipe, e.menu.modules.sku), {
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
814
  })), Ae = S(() => e.menu.modules.cookingGuide), Ce = S(() => {
815
- const s = Le(e.menu.modules.sku);
815
+ const s = Ge(e.menu.modules.sku);
816
816
  return x(s, { selector: "code" });
817
- }), ke = S(() => {
817
+ }), Ie = S(() => {
818
818
  const s = /* @__PURE__ */ new Map();
819
819
  return e.menu.modules.item.forEach((d) => {
820
820
  var m, g;
@@ -823,7 +823,7 @@ const Ft = Qe(
823
823
  });
824
824
  }), s;
825
825
  }), U = S(() => {
826
- const s = !e.currentCatalogId, d = r.value === z.F_MENU_VERSION.v4, m = !e.currentSchedulerId, g = {
826
+ const s = !e.currentCatalogId, d = r.value === L.F_MENU_VERSION.v4, m = !e.currentSchedulerId, g = {
827
827
  create: s && m,
828
828
  edit: s && m,
829
829
  delete: s && m
@@ -898,7 +898,7 @@ const Ft = Qe(
898
898
  function W(s) {
899
899
  return `${s.systemCode}/${s.taxCode}`;
900
900
  }
901
- function Ie(s) {
901
+ function ke(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 = qe.Country.getCountryFlattenTaxes(
910
+ const s = ["SV5", "SV10"], d = He.Country.getCountryFlattenTaxes(
911
911
  se().currentCountry.value
912
912
  ), m = d.filter((_) => u.value || !s.includes(_.taxCode)).map((_) => ({
913
- label: `${_.name} (${He(_.rate)}%)`,
913
+ label: `${_.name} (${qe(_.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
- }, Ve = (s) => {
936
- e.currentSchedulerId = s;
937
935
  }, De = (s) => {
936
+ e.currentSchedulerId = s;
937
+ }, Ve = (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) => [q.F_OPERATION_TYPE.delete, q.F_OPERATION_TYPE.deleteMany].includes(A.operation)
951
+ (A) => [H.F_OPERATION_TYPE.delete, H.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
- }, V = bt({ maxHistorySize: 50 }), $e = S(() => V.canUndo.value), Fe = S(() => V.canRedo.value), je = () => {
974
- const s = V.undo();
973
+ }, D = bt({ maxHistorySize: 50 }), $e = S(() => D.canUndo.value), Fe = S(() => D.canRedo.value), je = () => {
974
+ const s = D.undo();
975
975
  s && f(s, !1);
976
976
  }, Ne = () => {
977
- const s = V.redo();
977
+ const s = D.redo();
978
978
  s && f(s, !1);
979
979
  }, Ue = () => {
980
- V.clear();
980
+ D.clear();
981
981
  };
982
982
  return {
983
983
  state: e,
@@ -999,7 +999,7 @@ const Ft = Qe(
999
999
  subcategories: ve,
1000
1000
  items: ee,
1001
1001
  sortedItems: ye,
1002
- itemCodeMap: ke,
1002
+ itemCodeMap: Ie,
1003
1003
  categorizedItems: he,
1004
1004
  categorizedRawMenuItems: pe,
1005
1005
  variants: N,
@@ -1017,15 +1017,15 @@ const Ft = Qe(
1017
1017
  readMenu: xe,
1018
1018
  readRestaurants: Oe,
1019
1019
  selectCatalog: te,
1020
- selectScheduler: Ve,
1021
- selectCategory: De,
1020
+ selectScheduler: De,
1021
+ selectCategory: Ve,
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: Ie,
1028
+ decodeTax: ke,
1029
1029
  getSelectedTax: Ee,
1030
1030
  mapVariant: ge,
1031
1031
  // history
@@ -1035,7 +1035,7 @@ const Ft = Qe(
1035
1035
  redoHistory: Ne,
1036
1036
  // cleanup
1037
1037
  $dispose: () => {
1038
- w.cancel(), I && (I(), I = null), k && (k.stop(), k = null), Ue();
1038
+ w.cancel(), k && (k(), k = null), I && (I.stop(), I = 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
- Dt as g,
1052
- Vt as m,
1051
+ Vt as g,
1052
+ Dt 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-BLHrxcy_.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-bYbEuWK0.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-Dwi3pOl9.js";
5
+ import { _ as H, u as se } from "./RuleView.vue_vue_type_script_setup_true_lang-lO4l5Ljh.js";
6
6
  import { c as de } from "./object-DVUNCr7w.js";
7
- import { _ as ue } from "./app-dIGG83GF.js";
8
- import { L as ce } from "./LinkProductSideSheet-TTj7qiWm.js";
7
+ import { _ as ue } from "./app-4a-p2oXw.js";
8
+ import { L as ce } from "./LinkProductSideSheet-CLFUnEzC.js";
9
9
  import { u as me } from "./search-BAPEUu1R.js";
10
- import { _ as pe } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-DccUYmCx.js";
10
+ import { _ as pe } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-BFajMkOS.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-BLHrxcy_.js";
4
+ import { u as k, B as M } from "./index.vue_vue_type_script_setup_true_lang-bYbEuWK0.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-BLHrxcy_.js";
2
+ import { J as v, K as C, u as Y } from "./index.vue_vue_type_script_setup_true_lang-bYbEuWK0.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-DbTc7yw0.js";
6
- import { _ as $ } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-DccUYmCx.js";
5
+ import { u as R } from "./menuV2-CMGSx4LE.js";
6
+ import { _ as $ } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-BFajMkOS.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-BLHrxcy_.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-bYbEuWK0.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-Dwi3pOl9.js";
6
+ import { _ as ue } from "./RuleView.vue_vue_type_script_setup_true_lang-lO4l5Ljh.js";
7
7
  import { u as ke } from "./discardConfirm-BHni0LNu.js";
8
- import { u as be } from "./menu-Okh_Q4gK.js";
9
- import { L as Fe } from "./LinkProductSideSheet-TTj7qiWm.js";
8
+ import { u as be } from "./menu-XlJwZzUi.js";
9
+ import { L as Fe } from "./LinkProductSideSheet-CLFUnEzC.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-DWScWkMg.js";
2
- import "./index.vue_vue_type_script_setup_true_lang-BLHrxcy_.js";
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";
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-BLHrxcy_.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-bYbEuWK0.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-DbTc7yw0.js";
9
+ import "./menuV2-CMGSx4LE.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-dev",
3
+ "version": "0.32.52",
4
4
  "files": [
5
5
  "dist"
6
6
  ],