@feedmepos/mf-menu 0.31.61 → 0.31.62-prod

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-BnUTV-mi.js → App-DlA3uekC.js} +9 -9
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-BnTNMX31.js → ApplyProduct.vue_vue_type_script_setup_true_lang-CvYg6wUo.js} +3 -3
  3. package/dist/{Catalog-BCIc1kLb.js → Catalog-pCWDkPMw.js} +6 -6
  4. package/dist/{Category-Ce3f5YKh.js → Category-3439_r5Q.js} +4 -4
  5. package/dist/{Category-D2gSftvv.js → Category-K5N2CBGJ.js} +6 -6
  6. package/dist/{CookingGuide-CbS9h_LC.js → CookingGuide-Cyyi7IeC.js} +4 -4
  7. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-Bvj5FcR7.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-Cnn9HS6e.js} +1 -1
  8. package/dist/{Group-DYVoKWFr.js → Group-BwZl7QvU.js} +3 -3
  9. package/dist/{Group-CWeOELBr.js → Group-DGuz80sx.js} +1 -1
  10. package/dist/{Group.vue_vue_type_script_setup_true_lang-182tMJ-Y.js → Group.vue_vue_type_script_setup_true_lang-Dioi7hbp.js} +7 -7
  11. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DJdVarDj.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DrlPRHta.js} +5 -5
  12. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-DkpKYx9L.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-CYk54quA.js} +7 -7
  13. package/dist/{Ingredient-DADhhNoB.js → Ingredient-C8R8JWkp.js} +3 -3
  14. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-BGV28fAG.js → InventoryBinding.vue_vue_type_script_setup_true_lang-B_ri8nAR.js} +2 -2
  15. package/dist/{LinkProductSideSheet-RFRjAwY3.js → LinkProductSideSheet-Bm8qMaT7.js} +3 -3
  16. package/dist/{MenuSetting-CdWNLLa_.js → MenuSetting-Cpbxj3Ni.js} +5 -5
  17. package/dist/{PrintRoute-CNO-30Tq.js → PrintRoute-BgmijxYc.js} +4 -4
  18. package/dist/{Product-CSFRf2AM.js → Product-DiqN1fdt.js} +1 -1
  19. package/dist/{Product.vue_vue_type_script_setup_true_lang-CdfXkfGA.js → Product.vue_vue_type_script_setup_true_lang-DMWjdZTa.js} +13 -13
  20. package/dist/{ProductInternalTools-BLa3wzWv.js → ProductInternalTools-BZP_1J5b.js} +6 -6
  21. package/dist/{Products-DDvCnhAu.js → Products-Bu08ZHA6.js} +11 -11
  22. package/dist/{Publish-e3PVDR3Q.js → Publish-B8-JfEe6.js} +3 -3
  23. package/dist/{Recipe-DD76fw_2.js → Recipe-BN_GjdSr.js} +4 -4
  24. package/dist/{Scheduler-BdMFJKKA.js → Scheduler-O6ZnPNiY.js} +3 -3
  25. package/dist/{ServingSequence-DccvYQ9d.js → ServingSequence-14vqMsck.js} +3 -3
  26. package/dist/{Setting-DQcUCgwT.js → Setting-B3eolrlX.js} +5 -5
  27. package/dist/{Subcategory-IZz5CVzL.js → Subcategory-oKlgvt_O.js} +4 -4
  28. package/dist/{Takeaway-DFfttHNy.js → Takeaway-CUp7gM3P.js} +1 -1
  29. package/dist/{Takeaway-BmTD-FmR.js → Takeaway-DffxlQXM.js} +4 -4
  30. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-CVzoRTks.js → Takeaway.vue_vue_type_script_setup_true_lang-DzdooZE-.js} +5 -5
  31. package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-Fa_MXaj-.js → Thumbnail.vue_vue_type_script_setup_true_lang-CrgRP9X1.js} +4 -4
  32. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-ClRL104s.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-CWz63sPG.js} +15 -15
  33. package/dist/{Unit-DAOvrBC4.js → Unit-BS_4ijAX.js} +2 -2
  34. package/dist/{Variant-Buacz-Fs.js → Variant-B7K-0bVo.js} +3 -3
  35. package/dist/{_id_-30Xk3295.js → _id_-Ci5sMO0e.js} +10 -10
  36. package/dist/{app-C3laERZw.js → app-COwpNSVW.js} +26 -26
  37. package/dist/{app-HZX_rjdU.js → app-DgM8AcTU.js} +1 -1
  38. package/dist/app.js +1 -1
  39. package/dist/assets/{linked-status-CHAOfZTw.js → linked-status-PUg9o5oJ.js} +5 -5
  40. package/dist/assets/{override-menu-CTW2yaIa.js → override-menu-DRvWZtmh.js} +5 -5
  41. package/dist/assets/{validate-menu-T7LC6VsU.js → validate-menu-Csd9sYUc.js} +2 -2
  42. package/dist/{catalog-Bu5Nd6V8.js → catalog-bC-_KizS.js} +1 -1
  43. package/dist/{catalogSetting-CO-KdpP2.js → catalogSetting-yoKSQufN.js} +1 -1
  44. package/dist/{category-DIzEqSTV.js → category-BvOpmGjK.js} +1 -1
  45. package/dist/{currency-Dy3N0lwj.js → currency-HB9XCGKo.js} +1 -1
  46. package/dist/{customAttributes-gFyixAOT.js → customAttributes-Cr8yjY6Y.js} +1 -1
  47. package/dist/{dayjs.min-KcghZvjn.js → dayjs.min-DirUy8Ue.js} +1 -1
  48. package/dist/{index-CLwO3tAF.js → index-BBof9t9B.js} +2 -1
  49. package/dist/{index-Ck_Bw9kK.js → index-DFxThJuR.js} +4 -4
  50. package/dist/{index-CLuhqkl0.js → index-io3Jgy-r.js} +3 -3
  51. package/dist/{index-Bdh8J8d1.js → index-wXbWvFwK.js} +1 -1
  52. package/dist/{item-BwlgtiMR.js → item--StDZzCb.js} +375 -375
  53. package/dist/{jszip.min-Dn_VicRS.js → jszip.min-otrURh_M.js} +353 -353
  54. package/dist/{menu-BO6MLUSY.js → menu-1yBiTG7L.js} +1776 -1776
  55. package/dist/{menu-DR-5QkeV.js → menu-DssZNS7R.js} +1 -1
  56. package/dist/{menuV2-R9NMUcxp.js → menuV2-BSwBRb60.js} +200 -200
  57. package/dist/{priceTier-BLG9fxqt.js → priceTier-DlnE8t1n.js} +1 -1
  58. package/dist/{scheduler-Bt3VEtTl.js → scheduler-DGgJqtoA.js} +4 -4
  59. package/dist/{subcategory-Dz_jJthr.js → subcategory-DTdhZ0HZ.js} +2 -2
  60. package/dist/{toExcel-DT65nNdz.js → toExcel-CQdSIOf9.js} +2 -2
  61. package/dist/{unit---GW4dl-.js → unit-0vP2uHmy.js} +2 -2
  62. package/package.json +1 -1
@@ -1,19 +1,19 @@
1
1
  var Ue = Object.defineProperty;
2
2
  var We = (e, t, n) => t in e ? Ue(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var ne = (e, t, n) => We(e, typeof t != "symbol" ? t + "" : t, n);
4
- import { an as ae, H as C, D as V, A as ue, ao as re, J as z, I as ie, a8 as x, c as L, X as T, ai as oe, ap as Le, aq as He, B as qe, aa as ze, ar as Ge, as as Be, a7 as Je } from "./menu-BO6MLUSY.js";
4
+ import { an as ue, H as I, D as T, A as ae, ao as re, J as G, I as ie, a8 as x, c as L, X as V, ai as oe, ap as Le, aq as qe, B as ze, aa as Ge, ar as He, as as Be, a7 as Je } from "./menu-1yBiTG7L.js";
5
5
  import { defineStore as Ye } from "pinia";
6
- import { shallowRef as j, ref as G, computed as S, shallowReactive as Xe, effectScope as Ze, watch as Qe } from "vue";
6
+ import { shallowRef as j, ref as H, computed as S, shallowReactive as Xe, effectScope as Ze, watch as Qe } from "vue";
7
7
  import { useCoreStore as se } from "@feedmepos/mf-common";
8
8
  import { useSnackbar as et } from "@feedmepos/ui-library";
9
- const tt = "/assets/linked-status-CHAOfZTw.js", nt = "/assets/override-menu-CTW2yaIa.js";
9
+ const tt = "/assets/linked-status-PUg9o5oJ.js", nt = "/assets/override-menu-DRvWZtmh.js";
10
10
  function rt(e) {
11
11
  var o;
12
- const t = C(e), n = (o = t.variant) == null ? void 0 : o.variantCombinations;
12
+ const t = I(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 ot(e, t, n, o) {
16
- const r = C(t), u = n ? r.modules.catalog.find((m) => m._id === n) : null, l = o ? r.modules.scheduler.find((m) => m._id === o) : null, a = u ? C(u) : void 0, c = n ? r.modules.catalog.filter((m) => m._id !== n) : [], i = l ? C(l) : void 0, f = e.reduce((m, v) => (m[v._id] = rt(v), m), {});
16
+ const r = I(t), a = n ? r.modules.catalog.find((m) => m._id === n) : null, l = o ? r.modules.scheduler.find((m) => m._id === o) : null, u = a ? I(a) : void 0, c = n ? r.modules.catalog.filter((m) => m._id !== n) : [], i = l ? I(l) : void 0, f = e.reduce((m, v) => (m[v._id] = rt(v), m), {});
17
17
  function h(m = []) {
18
18
  const v = e.map((p) => p._id);
19
19
  return [
@@ -21,20 +21,20 @@ function ot(e, t, n, o) {
21
21
  ...Object.values(f).flatMap((p) => p)
22
22
  ];
23
23
  }
24
- return a && o ? (a.override.scheduler = {
25
- ...a.override.scheduler,
24
+ return u && o ? (u.override.scheduler = {
25
+ ...u.override.scheduler,
26
26
  [o]: {
27
- ...a.override.scheduler[o],
27
+ ...u.override.scheduler[o],
28
28
  _id: o,
29
29
  items: h(i == null ? void 0 : i.items).map((m) => ({
30
30
  ...m,
31
- orderFrom: ue.F_ORDER_FROM.enum.ALL
31
+ orderFrom: ae.F_ORDER_FROM.enum.ALL
32
32
  }))
33
33
  }
34
- }, r.modules.catalog = [...c, a], r) : a ? (a.override.items = {
35
- ...a.override.items,
34
+ }, r.modules.catalog = [...c, u], r) : u ? (u.override.items = {
35
+ ...u.override.items,
36
36
  ...f
37
- }, r.modules.catalog = [...c, a], r) : i ? (i.items = h(i.items), r.modules.scheduler = [
37
+ }, r.modules.catalog = [...c, u], r) : i ? (i.items = h(i.items), r.modules.scheduler = [
38
38
  ...r.modules.scheduler.filter((m) => m._id !== o),
39
39
  i
40
40
  ], r) : {
@@ -50,18 +50,18 @@ function ot(e, t, n, o) {
50
50
  };
51
51
  }
52
52
  function $(e, t, n) {
53
- var u;
53
+ var a;
54
54
  if (n >= 3) return e;
55
55
  const o = t.modules.item.find((l) => l._id === e._id);
56
56
  if (!o)
57
57
  throw new Error(`_insertItemOverriders - Item not found - ${e._id}`);
58
- const r = (u = o.groups) == null ? void 0 : u.map((l) => {
58
+ const r = (a = o.groups) == null ? void 0 : a.map((l) => {
59
59
  var i, f, h;
60
- const a = (i = e == null ? void 0 : e.groups) == null ? void 0 : i.find((m) => m._id === l._id);
60
+ const u = (i = e == null ? void 0 : e.groups) == null ? void 0 : i.find((m) => m._id === l._id);
61
61
  let c;
62
- return a ? c = ((f = l.items) == null ? void 0 : f.map((m) => {
62
+ return u ? c = ((f = l.items) == null ? void 0 : f.map((m) => {
63
63
  var p;
64
- const v = (p = a.items) == null ? void 0 : p.find(
64
+ const v = (p = u.items) == null ? void 0 : p.find(
65
65
  (b) => b._id === m._id && b.combinationKey === m.combinationKey
66
66
  );
67
67
  return $(v || m, t, n + 1);
@@ -79,24 +79,24 @@ function $(e, t, n) {
79
79
  };
80
80
  }
81
81
  function st(e, t) {
82
- const n = e.groups.map((u) => {
83
- const l = t.modules.group.find((c) => c._id === u._id), a = ((l == null ? void 0 : l.items) || []).map((c) => {
82
+ const n = e.groups.map((a) => {
83
+ const l = t.modules.group.find((c) => c._id === a._id), u = ((l == null ? void 0 : l.items) || []).map((c) => {
84
84
  var h;
85
- const i = (h = u.items) == null ? void 0 : h.find(
85
+ const i = (h = a.items) == null ? void 0 : h.find(
86
86
  (m) => m._id === c._id && m.combinationKey === c.combinationKey
87
87
  );
88
88
  if (i)
89
89
  return $(i, t, 1);
90
90
  const f = {
91
- ...V.generator.initMenuV4ItemOverrider(),
91
+ ...T.generator.initMenuV4ItemOverrider(),
92
92
  _id: c._id,
93
93
  combinationKey: c.combinationKey
94
94
  };
95
95
  return $(f, t, 1);
96
96
  });
97
- return { ...u, items: a };
98
- }), o = e.variant ? e.variant.variantCombinations.map((u) => $(u, t, 1)) : [], r = {
99
- ...V.generator.initMenuV4ItemOverrider(),
97
+ return { ...a, items: u };
98
+ }), o = e.variant ? e.variant.variantCombinations.map((a) => $(a, t, 1)) : [], r = {
99
+ ...T.generator.initMenuV4ItemOverrider(),
100
100
  _id: e._id,
101
101
  name: e.name,
102
102
  code: e.code,
@@ -110,28 +110,28 @@ function B(e, t) {
110
110
  return e;
111
111
  const n = { ...e, code: t.code };
112
112
  return n.groups = (o = n.groups) == null ? void 0 : o.map((r) => {
113
- var l, a;
114
- const u = (l = t.groups) == null ? void 0 : l.find((c) => c._id === r._id);
115
- return r.items = (a = r.items) == null ? void 0 : a.map((c) => {
113
+ var l, u;
114
+ const a = (l = t.groups) == null ? void 0 : l.find((c) => c._id === r._id);
115
+ return r.items = (u = r.items) == null ? void 0 : u.map((c) => {
116
116
  var f;
117
- const i = (f = u == null ? void 0 : u.items) == null ? void 0 : f.find(
117
+ const i = (f = a == null ? void 0 : a.items) == null ? void 0 : f.find(
118
118
  (h) => h._id === c._id && h.combinationKey === c.combinationKey
119
119
  );
120
120
  return B(c, i);
121
121
  }), r;
122
122
  }), n;
123
123
  }
124
- function at(e, t) {
124
+ function ut(e, t) {
125
125
  const n = e.items[t._id];
126
126
  t.variant && (t.variant = {
127
127
  ...t.variant,
128
128
  variantCombinations: t.variant.variantCombinations.map((r) => {
129
- const u = n.find(
129
+ const a = n.find(
130
130
  (l) => l._id === r._id && l.combinationKey === r.combinationKey
131
131
  );
132
- if (!u)
132
+ if (!a)
133
133
  throw new Error(`Item overrider not found - ${r._id} - ${r.combinationKey}`);
134
- return B(u, r);
134
+ return B(a, r);
135
135
  })
136
136
  });
137
137
  const o = n.find((r) => !r.combinationKey);
@@ -139,25 +139,25 @@ function at(e, t) {
139
139
  throw new Error(`Base item overrider not found - ${t._id}`);
140
140
  return t.groups = (o.groups || []).map((r) => {
141
141
  var l;
142
- const u = t.groups.find((a) => a._id === r._id);
143
- return r.items = (l = r.items) == null ? void 0 : l.map((a) => {
142
+ const a = t.groups.find((u) => u._id === r._id);
143
+ return r.items = (l = r.items) == null ? void 0 : l.map((u) => {
144
144
  var i;
145
- const c = (i = u == null ? void 0 : u.items) == null ? void 0 : i.find(
146
- (f) => f._id === a._id && f.combinationKey === a.combinationKey
145
+ const c = (i = a == null ? void 0 : a.items) == null ? void 0 : i.find(
146
+ (f) => f._id === u._id && f.combinationKey === u.combinationKey
147
147
  );
148
- return B(a, c);
148
+ return B(u, c);
149
149
  }), r;
150
150
  }), {
151
151
  ...t,
152
152
  price: (o == null ? void 0 : o.price) || t.price
153
153
  };
154
154
  }
155
- async function Ot(e, t, n, o, r, u = !0) {
156
- const l = C(n), a = u ? ot(t, l, o, r) : l, c = t.reduce((h, m) => (h[m._id] = a.modules.item.find((v) => v._id === m._id), h), {}), i = t.reduce((h, m) => {
155
+ async function Ot(e, t, n, o, r, a = !0) {
156
+ const l = I(n), u = a ? ot(t, l, o, r) : l, c = t.reduce((h, m) => (h[m._id] = u.modules.item.find((v) => v._id === m._id), h), {}), i = t.reduce((h, m) => {
157
157
  const v = m._id;
158
158
  return h[v] = st(c[v], e), h;
159
- }, {}), f = V.getFallbackPrices({
160
- rawMenu: a,
159
+ }, {}), f = T.getFallbackPrices({
160
+ rawMenu: u,
161
161
  items: i,
162
162
  catalogId: o || void 0,
163
163
  schedulerId: r
@@ -165,7 +165,7 @@ async function Ot(e, t, n, o, r, u = !0) {
165
165
  return t.map((h) => {
166
166
  const m = h._id, v = c[m];
167
167
  return {
168
- ...at(f, v),
168
+ ...ut(f, v),
169
169
  category: o || r ? v == null ? void 0 : v.category : null
170
170
  };
171
171
  });
@@ -173,59 +173,59 @@ async function Ot(e, t, n, o, r, u = !0) {
173
173
  function Dt(e, t) {
174
174
  if (e.length === 0) return "";
175
175
  const n = e == null ? void 0 : e.split("variant");
176
- return ((n == null ? void 0 : n.reduce((r, u) => {
177
- if (u && u.length > 0) {
178
- const l = `variant${u.split("/")[0]}`, a = u.split("/")[1], i = t.find(
176
+ return ((n == null ? void 0 : n.reduce((r, a) => {
177
+ if (a && a.length > 0) {
178
+ const l = `variant${a.split("/")[0]}`, u = a.split("/")[1], i = t.find(
179
179
  ({ _id: f }) => f === l
180
- ).options.find(({ _id: f }) => f === a);
180
+ ).options.find(({ _id: f }) => f === u);
181
181
  r.push(((i == null ? void 0 : i.name) || "").trim());
182
182
  }
183
183
  return r;
184
184
  }, [])) || []).join(" / ");
185
185
  }
186
- const H = /* @__PURE__ */ new Map();
187
- async function Tt(e, t) {
186
+ const q = /* @__PURE__ */ new Map();
187
+ async function Vt(e, t) {
188
188
  const n = `${e._id}-${e.updatedAt}-${t}`;
189
- if (H.has(n))
190
- return H.get(n);
191
- const o = await ae(
189
+ if (q.has(n))
190
+ return q.get(n);
191
+ const o = await ue(
192
192
  tt,
193
193
  JSON.stringify({
194
194
  menu: e,
195
195
  itemId: t
196
196
  })
197
197
  );
198
- return H.set(n, o), o;
198
+ return q.set(n, o), o;
199
199
  }
200
200
  async function ce(e, t, n) {
201
- return await ae(nt, {
201
+ return await ue(nt, {
202
202
  menu: e,
203
203
  catalogId: t,
204
204
  schedulerId: n
205
205
  });
206
206
  }
207
- function Vt(e, t, n) {
207
+ function Tt(e, t, n) {
208
208
  const o = /* @__PURE__ */ new Set();
209
- function r(u, l) {
210
- if (!e || !u || !l || o.has(l)) return !1;
209
+ function r(a, l) {
210
+ if (!e || !a || !l || o.has(l)) return !1;
211
211
  o.add(l);
212
- const a = e.modules.item.find((c) => c._id === l);
213
- return !a || !a.groups ? !1 : a.groups.some((c) => c._id === u) ? !0 : a.groups.some((c) => {
212
+ const u = e.modules.item.find((c) => c._id === l);
213
+ return !u || !u.groups ? !1 : u.groups.some((c) => c._id === a) ? !0 : u.groups.some((c) => {
214
214
  const i = e.modules.group.find((f) => f._id === c._id);
215
215
  for (const f of (i == null ? void 0 : i.items) || [])
216
- if (r(u, f._id)) return !0;
216
+ if (r(a, f._id)) return !0;
217
217
  return !1;
218
218
  });
219
219
  }
220
220
  return r(t, n);
221
221
  }
222
- function Ft(e, t, n) {
222
+ function Pt(e, t, n) {
223
223
  const o = /* @__PURE__ */ new Set();
224
- function r(u, l) {
225
- if (!e || !u || !l || o.has(u)) return !1;
226
- o.add(u);
227
- const a = e.modules.group.find((c) => c._id === u);
228
- return !a || !a.items ? !1 : a.items.some((c) => c._id === l) ? !0 : a.items.some((c) => {
224
+ function r(a, l) {
225
+ if (!e || !a || !l || o.has(a)) return !1;
226
+ o.add(a);
227
+ const u = e.modules.group.find((c) => c._id === a);
228
+ return !u || !u.items ? !1 : u.items.some((c) => c._id === l) ? !0 : u.items.some((c) => {
229
229
  const i = e.modules.item.find((f) => f._id === c._id);
230
230
  for (const f of (i == null ? void 0 : i.groups) || [])
231
231
  if (r(f._id, l)) return !0;
@@ -234,18 +234,18 @@ function Ft(e, t, n) {
234
234
  }
235
235
  return r(t, n);
236
236
  }
237
- const q = /* @__PURE__ */ new Map();
238
- async function ut(e, t, n) {
237
+ const z = /* @__PURE__ */ new Map();
238
+ async function at(e, t, n) {
239
239
  const o = `${e._id}-${e.updatedAt}-${t || "null"}-${n || "null"}`;
240
- if (q.has(o))
241
- return q.get(o);
240
+ if (z.has(o))
241
+ return z.get(o);
242
242
  const r = await ce(e, t, n);
243
- return q.set(o, r), r;
243
+ return z.set(o, r), r;
244
244
  }
245
- async function Kt(e, t, n) {
246
- var l, a;
247
- const o = await ut(e, t, null), r = [], u = (c, i) => {
248
- const f = C(c);
245
+ async function Ft(e, t, n) {
246
+ var l, u;
247
+ const o = await at(e, t, null), r = [], a = (c, i) => {
248
+ const f = I(c);
249
249
  for (const h in i)
250
250
  i[h] && (f[h] = i[h]);
251
251
  return f;
@@ -253,12 +253,12 @@ async function Kt(e, t, n) {
253
253
  for (const c of o.modules.group) {
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
- const h = (a = c.items) == null ? void 0 : a.filter((v) => v._id === n && v.combinationKey), m = [i, ...h].map((v) => {
257
- var w, I;
258
- const p = v.combinationKey ? (I = (w = f == null ? void 0 : f.variant) == null ? void 0 : w.variantCombinations) == null ? void 0 : I.find(
256
+ const h = (u = c.items) == null ? void 0 : u.filter((v) => v._id === n && v.combinationKey), m = [i, ...h].map((v) => {
257
+ var w, C;
258
+ const p = v.combinationKey ? (C = (w = f == null ? void 0 : f.variant) == null ? void 0 : w.variantCombinations) == null ? void 0 : C.find(
259
259
  (R) => R.combinationKey === v.combinationKey
260
- ) : f, b = p && f ? u(f, p) : v;
261
- return u(b, v);
260
+ ) : f, b = p && f ? a(f, p) : v;
261
+ return a(b, v);
262
262
  });
263
263
  r.push({
264
264
  group: c,
@@ -268,7 +268,7 @@ async function Kt(e, t, n) {
268
268
  }
269
269
  return r;
270
270
  }
271
- const M = 0, F = 3;
271
+ const M = 0, P = 3;
272
272
  function it(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 P(e) {
294
+ function K(e) {
295
295
  return e instanceof RegExp ? e.toString() : e;
296
296
  }
297
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 K(e, t) {
300
+ function F(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,31 +307,31 @@ function K(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 (!K(e[n], t[n])) return !1;
310
+ if (!F(e[n], t[n])) return !1;
311
311
  return !0;
312
312
  }
313
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) || !K(e[r], t[r])) return !1;
317
+ if (!Object.prototype.hasOwnProperty.call(t, r) || !F(e[r], t[r])) return !1;
318
318
  return !0;
319
319
  }
320
320
  return !1;
321
321
  }
322
322
  function ct(e, t, n) {
323
- const o = e.length, r = t.length, u = /* @__PURE__ */ new Map();
323
+ const o = e.length, r = t.length, a = /* @__PURE__ */ new Map();
324
324
  for (let c = 0; c < r; c++) {
325
325
  const i = n ? n(t[c]) : JSON.stringify(t[c]);
326
- u.has(i) || u.set(i, []), u.get(i).push(c);
326
+ a.has(i) || a.set(i, []), a.get(i).push(c);
327
327
  }
328
- const l = [], a = /* @__PURE__ */ new Set();
328
+ const l = [], u = /* @__PURE__ */ new Set();
329
329
  for (let c = 0; c < o; c++) {
330
- const i = e[c], f = n ? n(i) : JSON.stringify(i), h = u.get(f);
330
+ const i = e[c], f = n ? n(i) : JSON.stringify(i), h = a.get(f);
331
331
  if (h) {
332
332
  for (const m of h)
333
- if (!a.has(m) && K(i, t[m])) {
334
- l.push({ leftIndex: c, rightIndex: m }), a.add(m);
333
+ if (!u.has(m) && F(i, t[m])) {
334
+ l.push({ leftIndex: c, rightIndex: m }), u.add(m);
335
335
  break;
336
336
  }
337
337
  }
@@ -340,28 +340,28 @@ function ct(e, t, n) {
340
340
  }
341
341
  function lt(e, t, n) {
342
342
  var m, v;
343
- if (K(e, t)) return;
344
- const o = { _t: "a" }, r = ((m = n == null ? void 0 : n.arrays) == null ? void 0 : m.detectMove) !== !1, u = ((v = n == null ? void 0 : n.arrays) == null ? void 0 : v.includeValueOnMove) === !0, l = n == null ? void 0 : n.objectHash;
345
- let a = r ? ct(e, t, l) : [];
346
- if (!l && e.length === t.length && e.length > 0 && a.length < e.length) {
347
- const p = k(e[0]) || Array.isArray(e[0]), b = a.length > 0;
343
+ if (F(e, t)) return;
344
+ const o = { _t: "a" }, r = ((m = n == null ? void 0 : n.arrays) == null ? void 0 : m.detectMove) !== !1, a = ((v = n == null ? void 0 : n.arrays) == null ? void 0 : v.includeValueOnMove) === !0, l = n == null ? void 0 : n.objectHash;
345
+ let u = r ? ct(e, t, l) : [];
346
+ if (!l && e.length === t.length && e.length > 0 && u.length < e.length) {
347
+ const p = k(e[0]) || Array.isArray(e[0]), b = u.length > 0;
348
348
  if (p || b) {
349
- a = [];
349
+ u = [];
350
350
  for (let w = 0; w < e.length; w++)
351
- a.push({ leftIndex: w, rightIndex: w });
351
+ u.push({ leftIndex: w, rightIndex: w });
352
352
  }
353
353
  }
354
- new Set(a.map((p) => p.leftIndex));
355
- const c = new Set(a.map((p) => p.rightIndex)), i = /* @__PURE__ */ new Map(), f = /* @__PURE__ */ new Map();
356
- for (const p of a)
354
+ new Set(u.map((p) => p.leftIndex));
355
+ const c = new Set(u.map((p) => p.rightIndex)), i = /* @__PURE__ */ new Map(), f = /* @__PURE__ */ new Map();
356
+ for (const p of u)
357
357
  i.set(p.leftIndex, p.rightIndex), f.set(p.rightIndex, p.leftIndex);
358
358
  for (let p = 0; p < e.length; p++) {
359
359
  const b = i.get(p);
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}`, R = u ? [e[p], b, F] : ["", b, F];
364
- o[I] = R;
363
+ const C = `_${p}`, R = a ? [e[p], b, P] : ["", b, P];
364
+ o[C] = R;
365
365
  }
366
366
  } else {
367
367
  const w = `_${p}`;
@@ -375,85 +375,85 @@ function lt(e, t, n) {
375
375
  return o;
376
376
  }
377
377
  function dt(e, t, n) {
378
- if (K(e, t)) return;
379
- const o = {}, r = Object.keys(e), u = Object.keys(t), l = /* @__PURE__ */ new Set([...r, ...u]);
380
- for (const a of l) {
381
- if (n != null && n.propertyFilter && !n.propertyFilter(a, { left: e, right: t }))
378
+ if (F(e, t)) return;
379
+ const o = {}, r = Object.keys(e), a = Object.keys(t), l = /* @__PURE__ */ new Set([...r, ...a]);
380
+ for (const u of l) {
381
+ if (n != null && n.propertyFilter && !n.propertyFilter(u, { left: e, right: t }))
382
382
  continue;
383
- const c = Object.prototype.hasOwnProperty.call(e, a), i = Object.prototype.hasOwnProperty.call(t, a);
383
+ const c = Object.prototype.hasOwnProperty.call(e, u), i = Object.prototype.hasOwnProperty.call(t, u);
384
384
  if (c && i) {
385
- const f = J(e[a], t[a], n);
386
- f !== void 0 && (o[a] = f);
385
+ const f = J(e[u], t[u], n);
386
+ f !== void 0 && (o[u] = f);
387
387
  } else if (c && !i) {
388
- const f = n != null && n.omitRemovedValues ? 0 : e[a];
389
- o[a] = [f, M, M];
390
- } else !c && i && (o[a] = [t[a]]);
388
+ const f = n != null && n.omitRemovedValues ? 0 : e[u];
389
+ o[u] = [f, M, M];
390
+ } else !c && i && (o[u] = [t[u]]);
391
391
  }
392
392
  return Object.keys(o).length > 0 ? o : void 0;
393
393
  }
394
394
  function J(e, t, n) {
395
- if (K(e, t)) return;
395
+ if (F(e, t)) return;
396
396
  if (e === void 0 && t !== void 0) {
397
- const a = n != null && n.cloneDiffValues ? O(t) : t;
398
- return [P(a)];
397
+ const u = n != null && n.cloneDiffValues ? O(t) : t;
398
+ return [K(u)];
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
- const a = n != null && n.cloneDiffValues ? O(e) : e, c = n != null && n.cloneDiffValues ? O(t) : t;
402
- return [P(a), P(c)];
401
+ const u = n != null && n.cloneDiffValues ? O(e) : e, c = n != null && n.cloneDiffValues ? O(t) : t;
402
+ return [K(u), K(c)];
403
403
  }
404
404
  if (Array.isArray(e) && Array.isArray(t))
405
405
  return lt(e, t, n);
406
406
  if (k(e) && k(t))
407
407
  return dt(e, t, n);
408
- const u = n != null && n.cloneDiffValues ? O(e) : e, l = n != null && n.cloneDiffValues ? O(t) : t;
409
- return [P(u), P(l)];
408
+ const a = n != null && n.cloneDiffValues ? O(e) : e, l = n != null && n.cloneDiffValues ? O(t) : t;
409
+ return [K(a), K(l)];
410
410
  }
411
411
  function ft(e, t, n) {
412
412
  return J(e, t, n);
413
413
  }
414
414
  function mt(e, t, n) {
415
415
  const o = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Map();
416
- for (const a in t) {
417
- if (a === "_t" || !a.startsWith("_")) continue;
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] === F && r.set(c, i[1]));
416
+ for (const u in t) {
417
+ if (u === "_t" || !u.startsWith("_")) continue;
418
+ const c = parseInt(u.slice(1)), i = t[u];
419
+ Array.isArray(i) && (i.length === 3 && i[2] === M ? o.add(c) : i.length === 3 && i[2] === P && r.set(c, i[1]));
420
420
  }
421
- const u = [];
421
+ const a = [];
422
422
  let l = 0;
423
- for (let a = 0; ; a++) {
424
- const c = a.toString(), i = t[c];
423
+ for (let u = 0; ; u++) {
424
+ const c = u.toString(), i = t[c];
425
425
  if (i !== void 0)
426
426
  if (Array.isArray(i) && i.length === 1)
427
- u.push(i[0]);
427
+ a.push(i[0]);
428
428
  else {
429
429
  for (; l < e.length && o.has(l); )
430
430
  l++;
431
- l < e.length && (u.push(Y(e[l], i)), l++);
431
+ l < e.length && (a.push(Y(e[l], i)), l++);
432
432
  }
433
433
  else {
434
434
  let f = !1;
435
435
  for (const [h, m] of r.entries())
436
- if (m === a) {
437
- u.push(e[h]), f = !0;
436
+ if (m === u) {
437
+ a.push(e[h]), f = !0;
438
438
  break;
439
439
  }
440
440
  if (!f) {
441
441
  for (; l < e.length && (o.has(l) || r.has(l)); )
442
442
  l++;
443
443
  if (l < e.length)
444
- u.push(e[l]), l++;
444
+ a.push(e[l]), l++;
445
445
  else
446
446
  break;
447
447
  }
448
448
  }
449
449
  }
450
- return u;
450
+ return a;
451
451
  }
452
452
  function vt(e, t, n) {
453
453
  const o = { ...e };
454
454
  for (const r in t) {
455
- const u = t[r];
456
- Array.isArray(u) ? u.length === 1 ? o[r] = u[0] : u.length === 3 && u[2] === M ? delete o[r] : u.length === 2 && (o[r] = u[1]) : o[r] = Y(o[r], u);
455
+ const a = t[r];
456
+ Array.isArray(a) ? a.length === 1 ? o[r] = a[0] : a.length === 3 && a[2] === M ? delete o[r] : a.length === 2 && (o[r] = a[1]) : o[r] = Y(o[r], a);
457
457
  }
458
458
  return o;
459
459
  }
@@ -481,9 +481,9 @@ function yt(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] === F) {
485
- const u = r[1];
486
- t[`_${u}`] = [r[0], o, F];
484
+ else if (r.length === 3 && r[2] === P) {
485
+ const a = r[1];
486
+ t[`_${a}`] = [r[0], o, P];
487
487
  }
488
488
  }
489
489
  } else {
@@ -491,8 +491,8 @@ function yt(e) {
491
491
  if (Array.isArray(r) && r.length === 1)
492
492
  t[`_${o}`] = [r[0], M, M];
493
493
  else {
494
- const u = X(r);
495
- u !== void 0 && (t[n] = u);
494
+ const a = X(r);
495
+ a !== void 0 && (t[n] = a);
496
496
  }
497
497
  }
498
498
  return t;
@@ -519,7 +519,7 @@ 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] === F)
522
+ if (e.length === 3 && e[2] === P)
523
523
  return e;
524
524
  }
525
525
  return k(e) && e._t === "a" ? yt(e) : k(e) ? ht(e) : e;
@@ -566,22 +566,22 @@ function St({
566
566
  includeValueOnMove: !1
567
567
  },
568
568
  cloneDiffValues: !1
569
- }), n = j(null), o = j([]), r = G(-1), u = j(null), l = S(() => r.value > 0), a = S(() => r.value < o.value.length - 1);
569
+ }), n = j(null), o = j([]), r = H(-1), a = j(null), l = S(() => r.value > 0), u = S(() => r.value < o.value.length - 1);
570
570
  function c(v) {
571
571
  if (n.value === null) {
572
- n.value = C(v), u.value = C(v), o.value = [{ delta: null }], r.value = 0;
572
+ n.value = I(v), a.value = I(v), o.value = [{ delta: null }], r.value = 0;
573
573
  return;
574
574
  }
575
- const p = t.diff(u.value, v);
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(v), o.value.length > e) {
575
+ const p = t.diff(a.value, v);
576
+ if (r.value < o.value.length - 1 && (o.value = o.value.slice(0, r.value + 1)), o.value.push({ delta: p }), r.value++, a.value = I(v), 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(I(n.value), b)), o.value.shift(), r.value--;
579
579
  }
580
580
  }
581
581
  function i(v) {
582
582
  if (!n.value || v < 0 || v >= o.value.length)
583
583
  return;
584
- let p = C(n.value);
584
+ let p = I(n.value);
585
585
  for (let b = 1; b <= v; b++) {
586
586
  const w = o.value[b];
587
587
  w.delta && (p = t.patch(p, w.delta));
@@ -592,23 +592,23 @@ function St({
592
592
  if (l.value) {
593
593
  r.value--;
594
594
  const v = i(r.value);
595
- return v && (u.value = C(v)), v;
595
+ return v && (a.value = I(v)), v;
596
596
  }
597
597
  }
598
598
  function h() {
599
- if (a.value) {
599
+ if (u.value) {
600
600
  r.value++;
601
601
  const v = i(r.value);
602
- return v && (u.value = C(v)), v;
602
+ return v && (a.value = I(v)), v;
603
603
  }
604
604
  }
605
605
  function m() {
606
- n.value = null, u.value = null, o.value = [], r.value = -1;
606
+ n.value = null, a.value = null, o.value = [], r.value = -1;
607
607
  }
608
608
  return {
609
609
  push: c,
610
610
  canUndo: l,
611
- canRedo: a,
611
+ canRedo: u,
612
612
  undo: f,
613
613
  redo: h,
614
614
  clear: m
@@ -616,7 +616,7 @@ function St({
616
616
  }
617
617
  const bt = {
618
618
  async updateMenuModule(e, t) {
619
- const n = z.RequestRunner.operation(t, e.modules);
619
+ const n = G.RequestRunner.operation(t, e.modules);
620
620
  if (n.validateError.length > 0)
621
621
  throw new Error(n.validateError.join(`
622
622
  `));
@@ -664,7 +664,7 @@ function wt() {
664
664
  }
665
665
  };
666
666
  }
667
- const Pt = Ye(
667
+ const Kt = Ye(
668
668
  "mf-menu-store-v2",
669
669
  () => {
670
670
  const e = Xe(wt()), t = se(), n = et(), o = S(() => e.menu.modules.serveSequence ? x(e.menu.modules.serveSequence, {
@@ -672,15 +672,15 @@ const Pt = Ye(
672
672
  }) : []), r = S(() => {
673
673
  var s;
674
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(() => {
675
+ }), a = 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
- }), a = S(() => {
678
+ }), u = S(() => {
679
679
  var d;
680
680
  let s = e.menu.modules.catalog.find(
681
681
  (y) => y._id === e.currentCatalogId
682
682
  );
683
- return s && ((d = s.linkItemRules) != null && d.length) && (s = V.populateCatalog({
683
+ return s && ((d = s.linkItemRules) != null && d.length) && (s = T.populateCatalog({
684
684
  catalog: s,
685
685
  ruleGroupSettings: e.menu.ruleGroupSettings,
686
686
  items: e.menu.modules.item,
@@ -692,14 +692,14 @@ const Pt = Ye(
692
692
  function f(s, d = !0) {
693
693
  e.menu = { ...s, _rev: e.menu._rev }, d && D.push(e.menu);
694
694
  }
695
- const h = j(fe()), m = G(!1), v = G(1);
695
+ const h = j(fe()), m = H(!1), v = H(1);
696
696
  async function p() {
697
697
  var y;
698
698
  m.value = !0;
699
699
  let s = e.menu.modules.catalog;
700
- if (a.value && ((y = a.value.linkItemRules) != null && y.length)) {
701
- const g = V.populateCatalog({
702
- catalog: a.value,
700
+ if (u.value && ((y = u.value.linkItemRules) != null && y.length)) {
701
+ const g = T.populateCatalog({
702
+ catalog: u.value,
703
703
  ruleGroupSettings: e.menu.ruleGroupSettings,
704
704
  items: e.menu.modules.item,
705
705
  ...e.currentRestaurantAttrParams ?? {}
@@ -728,9 +728,9 @@ const Pt = Ye(
728
728
  return h.value = d, m.value = !1, v.value = v.value + 1, d;
729
729
  }
730
730
  const w = ie.debounce(p, 200);
731
- let I = null, R = null;
731
+ let C = null, R = null;
732
732
  function Z() {
733
- R && (R(), R = null), I && I.stop(), I = Ze(!0), R = I.run(() => Qe(
733
+ R && (R(), R = null), C && C.stop(), C = Ze(!0), R = C.run(() => Qe(
734
734
  () => [e.menu, e.currentCatalogId, e.currentSchedulerId],
735
735
  () => {
736
736
  m.value || w();
@@ -757,31 +757,31 @@ const Pt = Ye(
757
757
  position: 0
758
758
  }
759
759
  ] : [],
760
- ...T(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 T(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;
768
- if (a.value) {
769
- const y = (d = a.value) == null ? void 0 : d.override.items;
768
+ if (u.value) {
769
+ const y = (d = u.value) == null ? void 0 : d.override.items;
770
770
  s = s.filter((g) => {
771
771
  var A;
772
772
  const _ = (A = y == null ? void 0 : y[g._id]) == null ? void 0 : A.find(
773
773
  (E) => !E.combinationKey
774
774
  );
775
- return (_ == null ? void 0 : _.orderFrom) !== ue.F_ORDER_FROM.enum.NONE;
775
+ return (_ == null ? void 0 : _.orderFrom) !== ae.F_ORDER_FROM.enum.NONE;
776
776
  });
777
777
  }
778
- return T(s, (y) => y.code || y.name);
778
+ return V(s, (y) => y.code || y.name);
779
779
  }), ye = S(() => {
780
- const s = e.menu.modules.category, d = T(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
  ), y = e.menu.modules.item;
784
- return T(
784
+ return V(
785
785
  y,
786
786
  (g) => g.code || g.name
787
787
  ).reduce((g, _, A) => (g[_._id] = A + d[_.category || ""], g), {});
@@ -805,14 +805,14 @@ const Pt = Ye(
805
805
  });
806
806
  function ge(s = []) {
807
807
  const d = s.map((g) => N.value.find((_) => _._id === g)).filter((g) => !!g);
808
- return V.fullVariantCombination(d).reduce((g, _) => (g[_.combinationKey] = _.selectionName.join(" / "), g), {});
808
+ return T.fullVariantCombination(d).reduce((g, _) => (g[_.combinationKey] = _.selectionName.join(" / "), g), {});
809
809
  }
810
- const _e = S(() => T(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
812
  })), we = S(() => x(e.menu.modules.unit, { selector: "name" })), Me = S(() => x(Le(e.menu.modules.recipe, e.menu.modules.sku), {
813
813
  selector: "name"
814
- })), Ae = S(() => e.menu.modules.cookingGuide), Ce = S(() => {
815
- const s = He(e.menu.modules.sku);
814
+ })), Ae = S(() => e.menu.modules.cookingGuide), Ie = S(() => {
815
+ const s = qe(e.menu.modules.sku);
816
816
  return x(s, { selector: "code" });
817
817
  }), U = S(() => {
818
818
  const s = !e.currentCatalogId, d = r.value === L.F_MENU_VERSION.v4, y = !e.currentSchedulerId, g = {
@@ -886,7 +886,7 @@ const Pt = Ye(
886
886
  function W(s) {
887
887
  return `${s.systemCode}/${s.taxCode}`;
888
888
  }
889
- function Ie(s) {
889
+ function Ce(s) {
890
890
  const [d, y] = s.split("/");
891
891
  return { systemCode: d, taxCode: y };
892
892
  }
@@ -895,10 +895,10 @@ const Pt = Ye(
895
895
  }
896
896
  const ke = S(() => {
897
897
  var g;
898
- const s = ["SV5", "SV10"], d = qe.Country.getCountryFlattenTaxes(
898
+ const s = ["SV5", "SV10"], d = ze.Country.getCountryFlattenTaxes(
899
899
  se().currentCountry.value
900
- ), y = d.filter((_) => u.value || !s.includes(_.taxCode)).map((_) => ({
901
- label: `${_.name} (${ze(_.rate)}%)`,
900
+ ), y = d.filter((_) => a.value || !s.includes(_.taxCode)).map((_) => ({
901
+ label: `${_.name} (${Ge(_.rate)}%)`,
902
902
  value: W(_),
903
903
  meta: {
904
904
  rate: _.rate
@@ -924,9 +924,9 @@ const Pt = Ye(
924
924
  e.currentSchedulerId = s;
925
925
  }, De = (s) => {
926
926
  e.currentCategoryIds = s;
927
- }, Te = (s) => {
927
+ }, Ve = (s) => {
928
928
  e.currentRestaurantAttrParams = s;
929
- }, Ve = async (s, d) => {
929
+ }, Te = async (s, d) => {
930
930
  const y = Array.isArray(s) ? s : [s];
931
931
  if (!y.length) return;
932
932
  const g = y.map((_) => ({
@@ -936,9 +936,9 @@ const Pt = Ye(
936
936
  }));
937
937
  try {
938
938
  if (d || g.some(
939
- (A) => [z.F_OPERATION_TYPE.delete, z.F_OPERATION_TYPE.deleteMany].includes(A.operation)
939
+ (A) => [G.F_OPERATION_TYPE.delete, G.F_OPERATION_TYPE.deleteMany].includes(A.operation)
940
940
  )) {
941
- const A = await Ge(g, e.menu.modules);
941
+ const A = await He(g, e.menu.modules);
942
942
  if (A !== !0) throw new Error(A);
943
943
  }
944
944
  const _ = await bt.updateMenuModule(e.menu, g);
@@ -950,7 +950,7 @@ const Pt = Ye(
950
950
  message: _
951
951
  });
952
952
  }
953
- }, Fe = async (s) => {
953
+ }, Pe = async (s) => {
954
954
  const d = {
955
955
  ...e.menu,
956
956
  masterCatalogSetting: s.masterCatalogSetting,
@@ -958,7 +958,7 @@ const Pt = Ye(
958
958
  priceTierSettings: s.priceTierSettings
959
959
  };
960
960
  return f(d), d;
961
- }, D = St({ maxHistorySize: 50 }), Ke = S(() => D.canUndo.value), Pe = S(() => D.canRedo.value), $e = () => {
961
+ }, D = St({ maxHistorySize: 50 }), Fe = S(() => D.canUndo.value), Ke = S(() => D.canRedo.value), $e = () => {
962
962
  const s = D.undo();
963
963
  s && f(s, !1);
964
964
  }, je = () => {
@@ -976,10 +976,10 @@ const Pt = Ye(
976
976
  mergedMenu: h,
977
977
  // Computed
978
978
  version: r,
979
- isV4: u,
979
+ isV4: a,
980
980
  serveSequence: o,
981
981
  catalogs: l,
982
- currentCatalog: a,
982
+ currentCatalog: u,
983
983
  schedulers: c,
984
984
  currentScheduler: i,
985
985
  catalogOptions: me,
@@ -996,7 +996,7 @@ const Pt = Ye(
996
996
  units: we,
997
997
  recipes: Me,
998
998
  cookingGuide: Ae,
999
- skus: Ce,
999
+ skus: Ie,
1000
1000
  rules: U,
1001
1001
  taxSetting: ke,
1002
1002
  // Action
@@ -1006,23 +1006,23 @@ const Pt = Ye(
1006
1006
  selectCatalog: te,
1007
1007
  selectScheduler: Oe,
1008
1008
  selectCategory: De,
1009
- setRestaurantAttrParams: Te,
1010
- updateMenu: Ve,
1011
- updateMenuSetting: Fe,
1009
+ setRestaurantAttrParams: Ve,
1010
+ updateMenu: Te,
1011
+ updateMenuSetting: Pe,
1012
1012
  computeMergedMenu: p,
1013
1013
  // helper
1014
1014
  encodeTax: W,
1015
- decodeTax: Ie,
1015
+ decodeTax: Ce,
1016
1016
  getSelectedTax: Re,
1017
1017
  mapVariant: ge,
1018
1018
  // history
1019
- canUndoHistory: Ke,
1020
- canRedoHistory: Pe,
1019
+ canUndoHistory: Fe,
1020
+ canRedoHistory: Ke,
1021
1021
  undoHistory: $e,
1022
1022
  redoHistory: je,
1023
1023
  // cleanup
1024
1024
  $dispose: () => {
1025
- w.cancel(), R && (R(), R = null), I && (I.stop(), I = null), Ne();
1025
+ w.cancel(), R && (R(), R = null), C && (C.stop(), C = null), Ne();
1026
1026
  },
1027
1027
  $reinitialize: () => {
1028
1028
  Z();
@@ -1031,12 +1031,12 @@ const Pt = Ye(
1031
1031
  }
1032
1032
  );
1033
1033
  export {
1034
- Tt as a,
1035
- Vt as b,
1036
- Ft as c,
1037
- Kt as f,
1034
+ Vt as a,
1035
+ Tt as b,
1036
+ Pt as c,
1037
+ Ft as f,
1038
1038
  Dt as g,
1039
1039
  Ot as m,
1040
- ut as o,
1041
- Pt as u
1040
+ at as o,
1041
+ Kt as u
1042
1042
  };