@feedmepos/mf-menu 0.32.77 → 0.32.79

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 (81) hide show
  1. package/dist/{App-BHaFFKgj.js → App-Ddfti1Ko.js} +8 -8
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-DVEtgCqE.js → ApplyProduct.vue_vue_type_script_setup_true_lang-BnnONwXy.js} +3 -3
  3. package/dist/{ApplyProductDialog.vue_vue_type_script_setup_true_lang-3uCD_k5b.js → ApplyProductDialog.vue_vue_type_script_setup_true_lang-D0nDzWAO.js} +3 -3
  4. package/dist/{Catalog-DdV0gF_5.js → Catalog-DyLqdJvc.js} +6 -6
  5. package/dist/{Category-fkh6uy_X.js → Category-D39pcZdS.js} +4 -4
  6. package/dist/{Category-B4u7nW_n.js → Category-DozkUd7q.js} +14 -14
  7. package/dist/{CookingGuide-1BHECj2Q.js → CookingGuide-D9YmIZ2U.js} +5 -5
  8. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-MYd4Yzd0.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-n0p6s93X.js} +1 -1
  9. package/dist/{Group-D8C1gd_3.js → Group-BBik4ETc.js} +1 -1
  10. package/dist/{Group-DEIB_rHc.js → Group-_TmDeD-K.js} +8 -8
  11. package/dist/Group.vue_vue_type_script_setup_true_lang-zIb02WHz.js +627 -0
  12. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CLrQ5top.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CXcucPqA.js} +5 -5
  13. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-BHudLX0K.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-zUZ5lWBi.js} +7 -7
  14. package/dist/{Ingredient-CnKzPizo.js → Ingredient-BpAYeHoR.js} +4 -4
  15. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-DuKTQfLa.js → InventoryBinding.vue_vue_type_script_setup_true_lang-DW7LjsGs.js} +2 -2
  16. package/dist/{LinkProductSideSheet-B0PciGSP.js → LinkProductSideSheet-Bt21W-G-.js} +4 -4
  17. package/dist/{MenuSetting-D4lyi3VS.js → MenuSetting-pjrRFhcq.js} +7 -7
  18. package/dist/{OrderPacing-BchmVvhQ.js → OrderPacing-DEiw1G2u.js} +5 -5
  19. package/dist/{PrintRoute-ltS-wCjr.js → PrintRoute-CbneoAYY.js} +5 -5
  20. package/dist/{Product-WZdmdoQr.js → Product-D9-vPWzI.js} +1 -1
  21. package/dist/{Product.vue_vue_type_script_setup_true_lang-BFqhhLvN.js → Product.vue_vue_type_script_setup_true_lang-D-p5_lqZ.js} +14 -14
  22. package/dist/{ProductInternalTools-CeDden2S.js → ProductInternalTools-B0hNQj0-.js} +7 -7
  23. package/dist/{Products-DcLtwbRO.js → Products-BLWEEvbo.js} +55 -55
  24. package/dist/{Publish-H3Liavuu.js → Publish-hoSfovGn.js} +4 -4
  25. package/dist/{Recipe-PL1QHaYe.js → Recipe-B4LhLrQC.js} +5 -5
  26. package/dist/{RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-Czp_55oY.js → RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-CXBqQHFH.js} +1 -1
  27. package/dist/{RuleView.vue_vue_type_script_setup_true_lang-P6DLshs1.js → RuleView.vue_vue_type_script_setup_true_lang-DASNyCfE.js} +791 -791
  28. package/dist/{Scheduler-CXoxVRBZ.js → Scheduler-C_BM1zh4.js} +3 -3
  29. package/dist/{ServingSequence-YhME6BpW.js → ServingSequence-CcliuOL7.js} +3 -3
  30. package/dist/{Setting-CI0xqqtI.js → Setting-Bb_ALF4I.js} +5 -5
  31. package/dist/{Subcategory-BHPtwuUq.js → Subcategory-COQoMJHm.js} +6 -6
  32. package/dist/{Takeaway-xwwcISfI.js → Takeaway-CuEotFMf.js} +1 -1
  33. package/dist/{Takeaway-BzT_Th8V.js → Takeaway-DbeliWnS.js} +4 -4
  34. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-Be9HV6dK.js → Takeaway.vue_vue_type_script_setup_true_lang-HeiCP2s9.js} +5 -5
  35. package/dist/{TranslationFieldSection.vue_vue_type_script_setup_true_lang-C1eTBdUl.js → TranslationFieldSection.vue_vue_type_script_setup_true_lang-BShAzL4G.js} +1 -1
  36. package/dist/{TranslationSideSheet.vue_vue_type_script_setup_true_lang-CjlsCXDm.js → TranslationSideSheet.vue_vue_type_script_setup_true_lang-CY5WfDzB.js} +2 -2
  37. package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DiiwlaYM.js +5971 -0
  38. package/dist/{Unit-ByhOcOYA.js → Unit-0bvvveKn.js} +2 -2
  39. package/dist/{Variant-DHTF9Khv.js → Variant-4XgbwjXd.js} +3 -3
  40. package/dist/{_id_-Baab0DQO.js → _id_-Dqdsxvf5.js} +10 -10
  41. package/dist/{app-jJLYblaN.js → app-C5dT9EsK.js} +331 -331
  42. package/dist/{app-Cs8Id8Xm.js → app-UNScMQ3h.js} +1 -1
  43. package/dist/app.js +1 -1
  44. package/dist/apps/mf-menu/src/app.d.ts +50 -0
  45. package/dist/apps/mf-menu/src/components/feature/GroupManager/BaseForm.vue.d.ts +5 -0
  46. package/dist/apps/mf-menu/src/components/feature/TreeEditor/form/GroupManager/BaseForm.vue.d.ts +5 -0
  47. package/dist/apps/mf-menu/src/components/feature/TreeEditor/form/GroupManager/index.d.ts +9 -0
  48. package/dist/apps/mf-menu/src/composable/groupHidden.d.ts +26 -0
  49. package/dist/apps/mf-menu/src/manager/menu/group.d.ts +12 -3
  50. package/dist/apps/mf-menu/src/manager/menu/groupExtraction.d.ts +17 -1
  51. package/dist/apps/mf-menu/src/manager/menu/groupImmutableFields.d.ts +2 -0
  52. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  53. package/dist/assets/{linked-status-BSOqiFHd.js → linked-status-l7MCp8KH.js} +4 -4
  54. package/dist/assets/{menu-export-DYwNTsVD.js → menu-export-BJqAs10_.js} +34 -34
  55. package/dist/assets/{override-menu-hOWb-U8t.js → override-menu-BKVitICN.js} +4 -4
  56. package/dist/assets/{validate-menu-DWZ_nQ9A.js → validate-menu-DS0aISeD.js} +3 -3
  57. package/dist/catalog-BKYUqjy2.js +235 -0
  58. package/dist/{catalogSetting-D1rTJ0IV.js → catalogSetting-D_Si0gPE.js} +1 -1
  59. package/dist/{currency-CfklxgOo.js → currency-BB102Bid.js} +1 -1
  60. package/dist/{dayjs.min-s8Pn5XhH.js → dayjs.min-C1U699zZ.js} +2 -2
  61. package/dist/{discardConfirm-X1bjXonQ.js → discardConfirm-DlVCFfQq.js} +1 -1
  62. package/dist/{index-BFLrHA28.js → index-BHSkHw0p.js} +5 -5
  63. package/dist/{index-CSBbHVWU.js → index-Bd29_cSo.js} +1 -1
  64. package/dist/{index-DF1e-d79.js → index-DuJOJVmE.js} +6 -6
  65. package/dist/{index.vue_vue_type_script_setup_true_lang-DKMwA-UJ.js → index.vue_vue_type_script_setup_true_lang-C4M5sUoA.js} +7 -7
  66. package/dist/{item-D0GMSEFc.js → item-Dd_dzGSE.js} +4670 -4549
  67. package/dist/{jszip.min-CrG2EhWe.js → jszip.min-CzxURJgf.js} +167 -167
  68. package/dist/{linkProducts-DOtgB1M6.js → linkProducts-DMPv4Nmv.js} +4 -4
  69. package/dist/{memberPricing-DINEsVxj.js → memberPricing-hylACQAU.js} +1 -1
  70. package/dist/{menu-DobV0-S0.js → menu-B6iD6nD_.js} +1 -1
  71. package/dist/{menuV2-CzU77NoT.js → menuV2-DcO6NMIq.js} +103 -103
  72. package/dist/{order_pacing-Cg41OjXP.js → order_pacing-DBLB05W3.js} +5 -5
  73. package/dist/{priceTier-ByJqyA8e.js → priceTier-C1aFgxcc.js} +1 -1
  74. package/dist/{rules-DbQdfkh_.js → rules-Bxnv_dCn.js} +3 -3
  75. package/dist/{scheduler-B-GZ_cxC.js → scheduler-gD5M0VZU.js} +5 -5
  76. package/dist/{toExcel-Bq4sIMSZ.js → toExcel-BxYc23kA.js} +2 -2
  77. package/dist/{unit-BBPddYB3.js → unit-BDj_N50K.js} +3 -3
  78. package/package.json +2 -2
  79. package/dist/Group.vue_vue_type_script_setup_true_lang-DfTwCDNq.js +0 -622
  80. package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-Cb-21rZW.js +0 -5865
  81. package/dist/catalog-AhHjSmxz.js +0 -199
@@ -1,9 +1,9 @@
1
1
  import { computed as m } from "vue";
2
- import { F, g as h, h as S, b as v, i as C, k as N, U as T, u as P, c as z } from "./index.vue_vue_type_script_setup_true_lang-DKMwA-UJ.js";
3
- import { u as R } from "./menuV2-CzU77NoT.js";
4
- import { C as w, h as E } from "./catalog-AhHjSmxz.js";
2
+ import { F, g as h, h as S, b as v, i as C, k as N, U as T, u as P, c as z } from "./index.vue_vue_type_script_setup_true_lang-C4M5sUoA.js";
3
+ import { u as R } from "./menuV2-DcO6NMIq.js";
4
+ import { C as w, h as E } from "./catalog-BKYUqjy2.js";
5
5
  import { useSnackbar as O, useDialog as A } from "@feedmepos/ui-library";
6
- import { a as b } from "./LinkProductSideSheet-B0PciGSP.js";
6
+ import { a as b } from "./LinkProductSideSheet-Bt21W-G-.js";
7
7
  function D() {
8
8
  const e = R(), p = m(() => e.categorizedRawMenuItems.filter((o) => o.items.length > 0)), l = m(() => {
9
9
  const o = e.currentCatalog;
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as d, ref as _, watch as S, resolveComponent as b, createBlock as f, openBlock as y, unref as M, computed as T } from "vue";
2
- import { u as h, b as w } from "./index.vue_vue_type_script_setup_true_lang-DKMwA-UJ.js";
2
+ import { u as h, b as w } from "./index.vue_vue_type_script_setup_true_lang-C4M5sUoA.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-DKMwA-UJ.js";
2
+ import { u as c } from "./index.vue_vue_type_script_setup_true_lang-C4M5sUoA.js";
3
3
  import "@feedmepos/mf-common";
4
4
  import "@feedmepos/ui-library";
5
5
  function p() {
@@ -1,10 +1,10 @@
1
1
  var We = Object.defineProperty;
2
2
  var Le = (e, t, n) => t in e ? We(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var ne = (e, t, n) => Le(e, typeof t != "symbol" ? t + "" : t, n);
4
- import { l as ae } from "./discardConfirm-X1bjXonQ.js";
4
+ import { l as ae } from "./discardConfirm-DlVCFfQq.js";
5
5
  import { defineStore as qe } from "pinia";
6
6
  import { shallowRef as N, ref as H, computed as S, shallowReactive as ze, effectScope as He, watch as Be } from "vue";
7
- import { d as C, f as ue, m as T, k as ie, ar as re, g as B, P as x, c as L, s as V, Y as oe, as as Ge, at as Je, a as Ye, R as Qe, au as Xe, av as Ze, N as et } from "./index.vue_vue_type_script_setup_true_lang-DKMwA-UJ.js";
7
+ import { d as C, f as ue, m as T, k as ie, ar as re, g as B, P as x, c as L, s as D, Y as oe, as as Ge, at as Je, a as Ye, R as Qe, au as Xe, av as Ze, N as et } from "./index.vue_vue_type_script_setup_true_lang-C4M5sUoA.js";
8
8
  import { useCoreStore as se } from "@feedmepos/mf-common";
9
9
  import { useSnackbar as tt } from "@feedmepos/ui-library";
10
10
  function nt(e) {
@@ -16,14 +16,14 @@ function nt(e) {
16
16
  }
17
17
  return delete t.variant, delete t.thumbnail, delete t.images, [t, ...n || []];
18
18
  }
19
- const rt = "/assets/linked-status-BSOqiFHd.js", ot = "/assets/override-menu-hOWb-U8t.js";
19
+ const rt = "/assets/linked-status-l7MCp8KH.js", ot = "/assets/override-menu-BKVitICN.js";
20
20
  function st(e, t, n, s) {
21
21
  const r = C(t), u = n ? r.modules.catalog.find((f) => f._id === n) : null, c = s ? r.modules.scheduler.find((f) => f._id === s) : null, a = u ? C(u) : void 0, d = n ? r.modules.catalog.filter((f) => f._id !== n) : [], l = c ? C(c) : void 0, g = e.reduce((f, v) => (f[v._id] = nt(v), f), {});
22
22
  function y(f = []) {
23
- const v = e.map((h) => h._id);
23
+ const v = e.map((p) => p._id);
24
24
  return [
25
- ...f.filter((h) => !v.includes(h._id)),
26
- ...Object.values(g).flatMap((h) => h)
25
+ ...f.filter((p) => !v.includes(p._id)),
26
+ ...Object.values(g).flatMap((p) => p)
27
27
  ];
28
28
  }
29
29
  return a && s ? (a.override.scheduler = {
@@ -65,8 +65,8 @@ function F(e, t, n) {
65
65
  const a = (l = e == null ? void 0 : e.groups) == null ? void 0 : l.find((f) => f._id === c._id);
66
66
  let d;
67
67
  return a ? d = ((g = c.items) == null ? void 0 : g.map((f) => {
68
- var h;
69
- const v = (h = a.items) == null ? void 0 : h.find(
68
+ var p;
69
+ const v = (p = a.items) == null ? void 0 : p.find(
70
70
  (b) => b._id === f._id && b.combinationKey === f.combinationKey
71
71
  );
72
72
  return F(v || f, t, n + 1);
@@ -157,7 +157,7 @@ function ut(e, t) {
157
157
  price: (s == null ? void 0 : s.price) || t.price
158
158
  };
159
159
  }
160
- async function Vt(e, t, n, s, r, u = !0) {
160
+ async function Dt(e, t, n, s, r, u = !0) {
161
161
  const c = C(n), a = u ? st(t, c, s, r) : c, d = t.reduce((y, f) => (y[f._id] = a.modules.item.find((v) => v._id === f._id), y), {}), l = t.reduce((y, f) => {
162
162
  const v = f._id;
163
163
  return y[v] = at(d[v], e), y;
@@ -189,7 +189,7 @@ function Tt(e, t) {
189
189
  }, [])) || []).join(" / ");
190
190
  }
191
191
  const q = /* @__PURE__ */ new Map();
192
- async function Pt(e, t) {
192
+ async function Kt(e, t) {
193
193
  const n = `${e._id}-${e.updatedAt}-${t}`;
194
194
  if (q.has(n))
195
195
  return q.get(n);
@@ -217,7 +217,7 @@ async function it(e, t, n) {
217
217
  const r = await ce(e, t, n);
218
218
  return z.set(s, r), r;
219
219
  }
220
- async function Kt(e, t, n) {
220
+ async function Pt(e, t, n) {
221
221
  var c, a;
222
222
  const s = await it(e, t, null), r = [], u = (d, l) => {
223
223
  const g = C(d);
@@ -230,9 +230,9 @@ async function Kt(e, t, n) {
230
230
  if (l) {
231
231
  const y = (a = d.items) == null ? void 0 : a.filter((v) => v._id === n && v.combinationKey), f = [l, ...y].map((v) => {
232
232
  var M, I;
233
- const h = v.combinationKey ? (I = (M = g == null ? void 0 : g.variant) == null ? void 0 : M.variantCombinations) == null ? void 0 : I.find(
233
+ const p = v.combinationKey ? (I = (M = g == null ? void 0 : g.variant) == null ? void 0 : M.variantCombinations) == null ? void 0 : I.find(
234
234
  (E) => E.combinationKey === v.combinationKey
235
- ) : g, b = h && g ? u(g, h) : v;
235
+ ) : g, b = p && g ? u(g, p) : v;
236
236
  return u(b, v);
237
237
  });
238
238
  r.push({
@@ -243,7 +243,7 @@ async function Kt(e, t, n) {
243
243
  }
244
244
  return r;
245
245
  }
246
- const w = 0, P = 3;
246
+ const w = 0, K = 3;
247
247
  function ct(e) {
248
248
  const t = /^\/(.*)\/([gimyu]*)$/.exec(e.toString());
249
249
  if (!t)
@@ -272,7 +272,7 @@ function $(e) {
272
272
  function k(e) {
273
273
  return typeof e == "object" && e !== null && !Array.isArray(e) && !(e instanceof Date) && !(e instanceof RegExp);
274
274
  }
275
- function K(e, t) {
275
+ function P(e, t) {
276
276
  if (e === t) return !0;
277
277
  if (typeof e != typeof t) return !1;
278
278
  if (e instanceof Date && t instanceof Date)
@@ -282,14 +282,14 @@ function K(e, t) {
282
282
  if (Array.isArray(e) && Array.isArray(t)) {
283
283
  if (e.length !== t.length) return !1;
284
284
  for (let n = 0; n < e.length; n++)
285
- if (!K(e[n], t[n])) return !1;
285
+ if (!P(e[n], t[n])) return !1;
286
286
  return !0;
287
287
  }
288
288
  if (k(e) && k(t)) {
289
289
  const n = Object.keys(e), s = Object.keys(t);
290
290
  if (n.length !== s.length) return !1;
291
291
  for (const r of n)
292
- if (!Object.prototype.hasOwnProperty.call(t, r) || !K(e[r], t[r])) return !1;
292
+ if (!Object.prototype.hasOwnProperty.call(t, r) || !P(e[r], t[r])) return !1;
293
293
  return !0;
294
294
  }
295
295
  return !1;
@@ -305,7 +305,7 @@ function lt(e, t, n) {
305
305
  const l = e[d], g = n ? n(l) : JSON.stringify(l), y = u.get(g);
306
306
  if (y) {
307
307
  for (const f of y)
308
- if (!a.has(f) && K(l, t[f])) {
308
+ if (!a.has(f) && P(l, t[f])) {
309
309
  c.push({ leftIndex: d, rightIndex: f }), a.add(f);
310
310
  break;
311
311
  }
@@ -315,42 +315,42 @@ function lt(e, t, n) {
315
315
  }
316
316
  function dt(e, t, n) {
317
317
  var f, v;
318
- if (K(e, t)) return;
318
+ if (P(e, t)) return;
319
319
  const s = { _t: "a" }, r = ((f = n == null ? void 0 : n.arrays) == null ? void 0 : f.detectMove) !== !1, u = ((v = n == null ? void 0 : n.arrays) == null ? void 0 : v.includeValueOnMove) === !0, c = n == null ? void 0 : n.objectHash;
320
320
  let a = r ? lt(e, t, c) : [];
321
321
  if (!c && e.length === t.length && e.length > 0 && a.length < e.length) {
322
- const h = k(e[0]) || Array.isArray(e[0]), b = a.length > 0;
323
- if (h || b) {
322
+ const p = k(e[0]) || Array.isArray(e[0]), b = a.length > 0;
323
+ if (p || b) {
324
324
  a = [];
325
325
  for (let M = 0; M < e.length; M++)
326
326
  a.push({ leftIndex: M, rightIndex: M });
327
327
  }
328
328
  }
329
- new Set(a.map((h) => h.leftIndex));
330
- const d = new Set(a.map((h) => h.rightIndex)), l = /* @__PURE__ */ new Map(), g = /* @__PURE__ */ new Map();
331
- for (const h of a)
332
- l.set(h.leftIndex, h.rightIndex), g.set(h.rightIndex, h.leftIndex);
333
- for (let h = 0; h < e.length; h++) {
334
- const b = l.get(h);
329
+ new Set(a.map((p) => p.leftIndex));
330
+ const d = new Set(a.map((p) => p.rightIndex)), l = /* @__PURE__ */ new Map(), g = /* @__PURE__ */ new Map();
331
+ for (const p of a)
332
+ l.set(p.leftIndex, p.rightIndex), g.set(p.rightIndex, p.leftIndex);
333
+ for (let p = 0; p < e.length; p++) {
334
+ const b = l.get(p);
335
335
  if (b !== void 0) {
336
- const M = J(e[h], t[b], n);
337
- if (M !== void 0 && (s[b] = M), r && b !== h) {
338
- const I = `_${h}`, E = u ? [e[h], b, P] : ["", b, P];
336
+ const M = J(e[p], t[b], n);
337
+ if (M !== void 0 && (s[b] = M), r && b !== p) {
338
+ const I = `_${p}`, E = u ? [e[p], b, K] : ["", b, K];
339
339
  s[I] = E;
340
340
  }
341
341
  } else {
342
- const M = `_${h}`;
343
- s[M] = [e[h], w, w];
342
+ const M = `_${p}`;
343
+ s[M] = [e[p], w, w];
344
344
  }
345
345
  }
346
- for (let h = 0; h < t.length; h++)
347
- d.has(h) || (s[h] = [t[h]]);
346
+ for (let p = 0; p < t.length; p++)
347
+ d.has(p) || (s[p] = [t[p]]);
348
348
  const y = Object.keys(s);
349
349
  if (!(y.length === 1 && y[0] === "_t"))
350
350
  return s;
351
351
  }
352
352
  function mt(e, t, n) {
353
- if (K(e, t)) return;
353
+ if (P(e, t)) return;
354
354
  const s = {}, r = Object.keys(e), u = Object.keys(t), c = /* @__PURE__ */ new Set([...r, ...u]);
355
355
  for (const a of c) {
356
356
  if (n != null && n.propertyFilter && !n.propertyFilter(a, { left: e, right: t }))
@@ -367,7 +367,7 @@ function mt(e, t, n) {
367
367
  return Object.keys(s).length > 0 ? s : void 0;
368
368
  }
369
369
  function J(e, t, n) {
370
- if (K(e, t)) return;
370
+ if (P(e, t)) return;
371
371
  if (e === void 0 && t !== void 0) {
372
372
  const a = n != null && n.cloneDiffValues ? O(t) : t;
373
373
  return [$(a)];
@@ -391,7 +391,7 @@ function vt(e, t, n) {
391
391
  for (const a in t) {
392
392
  if (a === "_t" || !a.startsWith("_")) continue;
393
393
  const d = parseInt(a.slice(1)), l = t[a];
394
- Array.isArray(l) && (l.length === 3 && l[2] === w ? s.add(d) : l.length === 3 && l[2] === P && r.set(d, l[1]));
394
+ Array.isArray(l) && (l.length === 3 && l[2] === w ? s.add(d) : l.length === 3 && l[2] === K && r.set(d, l[1]));
395
395
  }
396
396
  const u = [];
397
397
  let c = 0;
@@ -456,9 +456,9 @@ function gt(e) {
456
456
  if (Array.isArray(r)) {
457
457
  if (r.length === 3 && r[2] === w)
458
458
  t[s] = [r[0]];
459
- else if (r.length === 3 && r[2] === P) {
459
+ else if (r.length === 3 && r[2] === K) {
460
460
  const u = r[1];
461
- t[`_${u}`] = [r[0], s, P];
461
+ t[`_${u}`] = [r[0], s, K];
462
462
  }
463
463
  }
464
464
  } else {
@@ -472,7 +472,7 @@ function gt(e) {
472
472
  }
473
473
  return t;
474
474
  }
475
- function ht(e) {
475
+ function pt(e) {
476
476
  const t = {};
477
477
  for (const n in e) {
478
478
  const s = e[n];
@@ -494,16 +494,16 @@ function Q(e) {
494
494
  return [e[1], e[0]];
495
495
  if (e.length === 3 && e[2] === w)
496
496
  return [e[0]];
497
- if (e.length === 3 && e[2] === P)
497
+ if (e.length === 3 && e[2] === K)
498
498
  return e;
499
499
  }
500
- return k(e) && e._t === "a" ? gt(e) : k(e) ? ht(e) : e;
500
+ return k(e) && e._t === "a" ? gt(e) : k(e) ? pt(e) : e;
501
501
  }
502
502
  }
503
503
  function de(e) {
504
504
  return Q(e);
505
505
  }
506
- function pt(e, t, n) {
506
+ function ht(e, t, n) {
507
507
  const s = de(t);
508
508
  return le(e, s);
509
509
  }
@@ -522,7 +522,7 @@ class _t {
522
522
  return de(t);
523
523
  }
524
524
  unpatch(t, n) {
525
- return pt(t, n, this.options);
525
+ return ht(t, n, this.options);
526
526
  }
527
527
  clone(t) {
528
528
  return O(t);
@@ -547,8 +547,8 @@ function bt({
547
547
  n.value = C(v), u.value = C(v), s.value = [{ delta: null }], r.value = 0;
548
548
  return;
549
549
  }
550
- const h = t.diff(u.value, v);
551
- if (r.value < s.value.length - 1 && (s.value = s.value.slice(0, r.value + 1)), s.value.push({ delta: h }), r.value++, u.value = C(v), s.value.length > e) {
550
+ const p = t.diff(u.value, v);
551
+ if (r.value < s.value.length - 1 && (s.value = s.value.slice(0, r.value + 1)), s.value.push({ delta: p }), r.value++, u.value = C(v), s.value.length > e) {
552
552
  const b = s.value[1].delta;
553
553
  b && n.value && (n.value = t.patch(C(n.value), b)), s.value.shift(), r.value--;
554
554
  }
@@ -556,12 +556,12 @@ function bt({
556
556
  function l(v) {
557
557
  if (!n.value || v < 0 || v >= s.value.length)
558
558
  return;
559
- let h = C(n.value);
559
+ let p = C(n.value);
560
560
  for (let b = 1; b <= v; b++) {
561
561
  const M = s.value[b];
562
- M.delta && (h = t.patch(h, M.delta));
562
+ M.delta && (p = t.patch(p, M.delta));
563
563
  }
564
- return h;
564
+ return p;
565
565
  }
566
566
  function g() {
567
567
  if (c.value) {
@@ -665,21 +665,21 @@ const $t = qe(
665
665
  (o) => o._id === e.currentSchedulerId
666
666
  ));
667
667
  function g(o, i = !0) {
668
- e.menu = { ...o, _rev: e.menu._rev }, i && D.push(e.menu);
668
+ e.menu = { ...o, _rev: e.menu._rev }, i && V.push(e.menu);
669
669
  }
670
670
  const y = N(me()), f = H(!1), v = H(1);
671
- async function h() {
671
+ async function p() {
672
672
  var m;
673
673
  f.value = !0;
674
674
  let o = e.menu.modules.catalog;
675
675
  if (a.value && ((m = a.value.linkItemRules) != null && m.length)) {
676
- const p = T.populateCatalog({
676
+ const h = T.populateCatalog({
677
677
  catalog: a.value,
678
678
  ruleGroupSettings: e.menu.ruleGroupSettings,
679
679
  items: e.menu.modules.item,
680
680
  ...e.currentRestaurantAttrParams ?? {}
681
681
  });
682
- o = e.menu.modules.catalog.map((_) => _._id === (p == null ? void 0 : p._id) ? p : _);
682
+ o = e.menu.modules.catalog.map((_) => _._id === (h == null ? void 0 : h._id) ? h : _);
683
683
  }
684
684
  const i = await ce(
685
685
  {
@@ -693,16 +693,16 @@ const $t = qe(
693
693
  e.currentSchedulerId
694
694
  );
695
695
  if (e.currentSchedulerId != null) {
696
- const p = e.menu.modules.catalog.find(
696
+ const h = e.menu.modules.catalog.find(
697
697
  (R) => R._id === e.currentCatalogId
698
- ), _ = p ? p.override.scheduler[e.currentSchedulerId] : e.menu.modules.scheduler.find(
698
+ ), _ = h ? h.override.scheduler[e.currentSchedulerId] : e.menu.modules.scheduler.find(
699
699
  (R) => R._id === e.currentSchedulerId
700
700
  ), A = new Set(((_ == null ? void 0 : _.items) || []).map((R) => R._id));
701
701
  i.modules.item = i.modules.item.filter((R) => A.has(R._id));
702
702
  }
703
703
  return y.value = i, f.value = !1, v.value = v.value + 1, i;
704
704
  }
705
- const M = ae.debounce(h, 200);
705
+ const M = ae.debounce(p, 200);
706
706
  let I = null, E = null;
707
707
  function X() {
708
708
  E && (E(), E = null), I && I.stop(), I = He(!0), E = I.run(() => Be(
@@ -732,35 +732,35 @@ const $t = qe(
732
732
  position: 0
733
733
  }
734
734
  ] : [],
735
- ...V(o, (i) => i.name)
735
+ ...D(o, (i) => i.name)
736
736
  ];
737
737
  }), ve = S(() => {
738
738
  const o = y.value.modules.subCategory || [];
739
- return V(o, (i) => i.name);
739
+ return D(o, (i) => i.name);
740
740
  }), ee = S(() => {
741
741
  var i;
742
742
  let o = y.value.modules.item;
743
743
  if (a.value) {
744
744
  const m = (i = a.value) == null ? void 0 : i.override.items;
745
- o = o.filter((p) => {
745
+ o = o.filter((h) => {
746
746
  var A;
747
- const _ = (A = m == null ? void 0 : m[p._id]) == null ? void 0 : A.find(
747
+ const _ = (A = m == null ? void 0 : m[h._id]) == null ? void 0 : A.find(
748
748
  (R) => !R.combinationKey
749
749
  );
750
750
  return (_ == null ? void 0 : _.orderFrom) !== ie.enum.NONE;
751
751
  });
752
752
  }
753
- return V(o, (m) => m.code || m.name);
753
+ return D(o, (m) => m.code || m.name);
754
754
  }), ye = S(() => {
755
- const o = e.menu.modules.category, i = V(o, (p) => p.name).reduce(
756
- (p, _, A) => (p[_._id] = A, p),
755
+ const o = e.menu.modules.category, i = D(o, (h) => h.name).reduce(
756
+ (h, _, A) => (h[_._id] = A, h),
757
757
  { "": 0 }
758
758
  ), m = e.menu.modules.item;
759
- return V(
759
+ return D(
760
760
  m,
761
- (p) => p.code || p.name
762
- ).reduce((p, _, A) => (p[_._id] = A + i[_.category || ""], p), {});
763
- }), ge = S(() => oe(j.value, Z.value, ee.value)), he = S(() => {
761
+ (h) => h.code || h.name
762
+ ).reduce((h, _, A) => (h[_._id] = A + i[_.category || ""], h), {});
763
+ }), ge = S(() => oe(j.value, Z.value, ee.value)), pe = S(() => {
764
764
  const o = U.value.item.addon ? [
765
765
  {
766
766
  _id: e.currentCatalogId ? "" : null,
@@ -778,11 +778,11 @@ const $t = qe(
778
778
  const o = y.value.modules.variant;
779
779
  return x(o, { selector: "name" });
780
780
  });
781
- function pe(o = []) {
782
- const i = o.map((p) => j.value.find((_) => _._id === p)).filter((p) => !!p);
783
- return T.fullVariantCombination(i).reduce((p, _) => (p[_.combinationKey] = _.selectionName.join(" / "), p), {});
781
+ function he(o = []) {
782
+ const i = o.map((h) => j.value.find((_) => _._id === h)).filter((h) => !!h);
783
+ return T.fullVariantCombination(i).reduce((h, _) => (h[_.combinationKey] = _.selectionName.join(" / "), h), {});
784
784
  }
785
- const _e = S(() => V(y.value.modules.group, (o) => o.name)), Se = S(() => x(y.value.modules.takeaway, { selector: "name" })), be = S(() => x(e.menu.modules.printDepartment || [], {
785
+ const _e = S(() => D(y.value.modules.group, (o) => o.name)), Se = S(() => x(y.value.modules.takeaway, { selector: "name" })), be = S(() => x(e.menu.modules.printDepartment || [], {
786
786
  selector: "name"
787
787
  })), Me = S(() => x(e.menu.modules.unit, { selector: "name" })), we = S(() => x(Ge(e.menu.modules.recipe, e.menu.modules.sku), {
788
788
  selector: "name"
@@ -792,20 +792,20 @@ const $t = qe(
792
792
  }), Ie = S(() => {
793
793
  const o = /* @__PURE__ */ new Map();
794
794
  return e.menu.modules.item.forEach((i) => {
795
- var m, p;
796
- i.code && o.set(i.code, (o.get(i.code) || 0) + 1), (p = (m = i.variant) == null ? void 0 : m.variantCombinations) == null || p.forEach((_) => {
795
+ var m, h;
796
+ i.code && o.set(i.code, (o.get(i.code) || 0) + 1), (h = (m = i.variant) == null ? void 0 : m.variantCombinations) == null || h.forEach((_) => {
797
797
  _.code && o.set(_.code, (o.get(_.code) || 0) + 1);
798
798
  });
799
799
  }), o;
800
800
  }), U = S(() => {
801
- const o = !e.currentCatalogId, i = r.value === L.F_MENU_VERSION.v4, m = !e.currentSchedulerId, p = {
801
+ const o = !e.currentCatalogId, i = r.value === L.F_MENU_VERSION.v4, m = !e.currentSchedulerId, h = {
802
802
  create: o && m,
803
803
  edit: o && m,
804
804
  delete: o && m
805
805
  };
806
806
  return {
807
807
  item: {
808
- ...p,
808
+ ...h,
809
809
  edit: i || m,
810
810
  sort: i && o && m,
811
811
  addon: i,
@@ -841,12 +841,12 @@ const $t = qe(
841
841
  takeawayConfig: i
842
842
  },
843
843
  category: {
844
- ...p,
844
+ ...h,
845
845
  sort: o,
846
846
  overrideSequence: i
847
847
  },
848
848
  group: {
849
- ...p,
849
+ ...h,
850
850
  edit: i || m,
851
851
  sort: o,
852
852
  applyProduct: o,
@@ -860,7 +860,7 @@ const $t = qe(
860
860
  override: i
861
861
  },
862
862
  takeaway: {
863
- ...p,
863
+ ...h,
864
864
  edit: (i || o) && m,
865
865
  name: o
866
866
  },
@@ -879,10 +879,10 @@ const $t = qe(
879
879
  return { systemCode: i, taxCode: m };
880
880
  }
881
881
  function ke(o, i, m) {
882
- return (o ?? i ?? []).map((p) => W(p)).find((p) => m.some((_) => _.value === p));
882
+ return (o ?? i ?? []).map((h) => W(h)).find((h) => m.some((_) => _.value === h));
883
883
  }
884
884
  const Re = S(() => {
885
- var p;
885
+ var h;
886
886
  const o = ["SV5", "SV10"], i = Ye.Country.getCountryFlattenTaxes(
887
887
  se().currentCountry.value
888
888
  ), m = i.filter((_) => u.value || !o.includes(_.taxCode)).map((_) => ({
@@ -893,7 +893,7 @@ const $t = qe(
893
893
  }
894
894
  }));
895
895
  return m.sort((_, A) => _.label.localeCompare(A.label, void 0, { numeric: !0 })), {
896
- systemCode: (p = i[0]) == null ? void 0 : p.systemCode,
896
+ systemCode: (h = i[0]) == null ? void 0 : h.systemCode,
897
897
  countryTaxOptions: m
898
898
  };
899
899
  }), xe = async () => {
@@ -912,28 +912,28 @@ const $t = qe(
912
912
  });
913
913
  }, te = (o) => {
914
914
  e.currentCatalogId = o;
915
- }, De = (o) => {
916
- e.currentSchedulerId = o;
917
915
  }, Ve = (o) => {
916
+ e.currentSchedulerId = o;
917
+ }, De = (o) => {
918
918
  e.currentCategoryIds = o;
919
919
  }, Te = (o) => {
920
920
  e.currentRestaurantAttrParams = o;
921
- }, Pe = async (o, i) => {
921
+ }, Ke = async (o, i) => {
922
922
  const m = Array.isArray(o) ? o : [o];
923
923
  if (!m.length) return;
924
- const p = m.map((_) => ({
924
+ const h = m.map((_) => ({
925
925
  ..._,
926
926
  _id: e.menu._id,
927
927
  _rev: e.menu._rev
928
928
  }));
929
929
  try {
930
- if (i || p.some(
930
+ if (i || h.some(
931
931
  (A) => [B.F_OPERATION_TYPE.delete, B.F_OPERATION_TYPE.deleteMany].includes(A.operation)
932
932
  )) {
933
- const A = await Xe(p, e.menu.modules);
933
+ const A = await Xe(h, e.menu.modules);
934
934
  if (A !== !0) throw new Error(A);
935
935
  }
936
- const _ = await Mt.updateMenuModule(e.menu, p);
936
+ const _ = await Mt.updateMenuModule(e.menu, h);
937
937
  return g(_.menu), _;
938
938
  } catch (_) {
939
939
  n.open({
@@ -942,7 +942,7 @@ const $t = qe(
942
942
  message: _
943
943
  });
944
944
  }
945
- }, Ke = async (o) => {
945
+ }, Pe = async (o) => {
946
946
  const i = {
947
947
  ...e.menu,
948
948
  masterCatalogSetting: o.masterCatalogSetting,
@@ -950,14 +950,14 @@ const $t = qe(
950
950
  priceTierSettings: o.priceTierSettings
951
951
  };
952
952
  return g(i), i;
953
- }, D = bt({ maxHistorySize: 50 }), $e = S(() => D.canUndo.value), Fe = S(() => D.canRedo.value), Ne = () => {
954
- const o = D.undo();
953
+ }, V = bt({ maxHistorySize: 50 }), $e = S(() => V.canUndo.value), Fe = S(() => V.canRedo.value), Ne = () => {
954
+ const o = V.undo();
955
955
  o && g(o, !1);
956
956
  }, je = () => {
957
- const o = D.redo();
957
+ const o = V.redo();
958
958
  o && g(o, !1);
959
959
  }, Ue = () => {
960
- D.clear();
960
+ V.clear();
961
961
  };
962
962
  return {
963
963
  state: e,
@@ -981,7 +981,7 @@ const $t = qe(
981
981
  sortedItems: ye,
982
982
  itemCodeMap: Ie,
983
983
  categorizedItems: ge,
984
- categorizedRawMenuItems: he,
984
+ categorizedRawMenuItems: pe,
985
985
  variants: j,
986
986
  groups: _e,
987
987
  takeaways: Se,
@@ -997,17 +997,17 @@ const $t = qe(
997
997
  readMenu: xe,
998
998
  readRestaurants: Oe,
999
999
  selectCatalog: te,
1000
- selectScheduler: De,
1001
- selectCategory: Ve,
1000
+ selectScheduler: Ve,
1001
+ selectCategory: De,
1002
1002
  setRestaurantAttrParams: Te,
1003
- updateMenu: Pe,
1004
- updateMenuSetting: Ke,
1005
- computeMergedMenu: h,
1003
+ updateMenu: Ke,
1004
+ updateMenuSetting: Pe,
1005
+ computeMergedMenu: p,
1006
1006
  // helper
1007
1007
  encodeTax: W,
1008
1008
  decodeTax: Ee,
1009
1009
  getSelectedTax: ke,
1010
- mapVariant: pe,
1010
+ mapVariant: he,
1011
1011
  // history
1012
1012
  canUndoHistory: $e,
1013
1013
  canRedoHistory: Fe,
@@ -1024,11 +1024,11 @@ const $t = qe(
1024
1024
  }
1025
1025
  );
1026
1026
  export {
1027
- Pt as a,
1028
- Kt as f,
1027
+ Kt as a,
1028
+ Pt as f,
1029
1029
  Tt as g,
1030
1030
  nt as i,
1031
- Vt as m,
1031
+ Dt as m,
1032
1032
  it as o,
1033
1033
  $t as u
1034
1034
  };
@@ -1,13 +1,13 @@
1
1
  import { defineComponent as q, ref as V, h as S, computed as N, resolveComponent as I, createBlock as X, openBlock as w, unref as l, withCtx as x, createElementVNode as k, createVNode as v, watch as Z, createElementBlock as L, Fragment as M, renderSlot as ee, renderList as H, toDisplayString as $, createCommentVNode as ae, getCurrentInstance as te, render as ne } from "vue";
2
- import { u as Y, i as oe, b as le, g as B, h as K } from "./index.vue_vue_type_script_setup_true_lang-DKMwA-UJ.js";
2
+ import { u as Y, i as oe, b as le, g as B, h as K } from "./index.vue_vue_type_script_setup_true_lang-C4M5sUoA.js";
3
3
  import { useI18n as R } from "@feedmepos/mf-common";
4
4
  import { components as A, FmButtonVariant as re, FmButtonColorThemeVariant as j, useSnackbar as ie } from "@feedmepos/ui-library";
5
- import { _ as J, u as se } from "./RuleView.vue_vue_type_script_setup_true_lang-P6DLshs1.js";
5
+ import { _ as J, u as se } from "./RuleView.vue_vue_type_script_setup_true_lang-DASNyCfE.js";
6
6
  import { c as de } from "./object-DVUNCr7w.js";
7
- import { _ as ue } from "./app-jJLYblaN.js";
8
- import { L as ce } from "./LinkProductSideSheet-B0PciGSP.js";
7
+ import { _ as ue } from "./app-C5dT9EsK.js";
8
+ import { L as ce } from "./LinkProductSideSheet-Bt21W-G-.js";
9
9
  import { u as me } from "./search-BAPEUu1R.js";
10
- import { _ as pe } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-CjlsCXDm.js";
10
+ import { _ as pe } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-CY5WfDzB.js";
11
11
  import { c as ge } from "./check-C9mY6LiX.js";
12
12
  import { g as G } from "./translation-fNx6yEpy.js";
13
13
  import { c as _e } from "./createComponentProgrammatically-Bt2rn1IQ.js";
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as d, ref as g, watch as _, resolveComponent as S, createBlock as T, openBlock as f, unref as y, computed as h } from "vue";
2
2
  import { useI18n as m } from "@feedmepos/mf-common";
3
3
  import { useDialogChild as w, useDialog as x, useSnackbar as C } from "@feedmepos/ui-library";
4
- import { u as k, b as M } from "./index.vue_vue_type_script_setup_true_lang-DKMwA-UJ.js";
4
+ import { u as k, b as M } from "./index.vue_vue_type_script_setup_true_lang-C4M5sUoA.js";
5
5
  const b = /* @__PURE__ */ d({
6
6
  __name: "AddPriceGroupDialog",
7
7
  setup(s) {
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as I, watch as P, ref as E, computed as w, resolveComponent as _, createElementBlock as h, openBlock as F, Fragment as M, createVNode as f, unref as g, withCtx as b, createElementVNode as O, renderList as q, toDisplayString as S } from "vue";
2
- import { g as v, h as C, u as Y } from "./index.vue_vue_type_script_setup_true_lang-DKMwA-UJ.js";
2
+ import { g as v, h as C, u as Y } from "./index.vue_vue_type_script_setup_true_lang-C4M5sUoA.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-CzU77NoT.js";
6
- import { _ as $ } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-CjlsCXDm.js";
5
+ import { u as R } from "./menuV2-DcO6NMIq.js";
6
+ import { _ as $ } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-CY5WfDzB.js";
7
7
  import { g as N } from "./translation-fNx6yEpy.js";
8
8
  const B = { class: "py-12 px-16 space-y-4" }, U = /* @__PURE__ */ I({
9
9
  __name: "AddSubcategoryDialogContentComponent",
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as ce, computed as T, resolveComponent as p, createElementBlock as r, openBlock as s, createVNode as t, createCommentVNode as k, unref as a, toDisplayString as D, createElementVNode as y, withCtx as m, Fragment as $, renderList as N, createBlock as Y, ref as L, Transition as de, createTextVNode as he } from "vue";
2
- import { u as ge, l as Ve } from "./discardConfirm-X1bjXonQ.js";
3
- import { d as w, A as U, u as ke, F as Fe, B as q, g as ie, h as re, Q as me } from "./index.vue_vue_type_script_setup_true_lang-DKMwA-UJ.js";
2
+ import { u as ge, l as Ve } from "./discardConfirm-DlVCFfQq.js";
3
+ import { d as w, A as U, u as ke, F as Fe, B as q, g as ie, h as re, Q as me } from "./index.vue_vue_type_script_setup_true_lang-C4M5sUoA.js";
4
4
  import { useI18n as pe, useAppLocale as be, prefersHour12 as xe } from "@feedmepos/mf-common";
5
5
  import { components as Ce } from "@feedmepos/ui-library";
6
6
  import { _ as Se } from "./FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js";
7
- import { _ as se } from "./RuleView.vue_vue_type_script_setup_true_lang-P6DLshs1.js";
8
- import { u as we } from "./menu-DobV0-S0.js";
9
- import { L as Pe } from "./LinkProductSideSheet-B0PciGSP.js";
7
+ import { _ as se } from "./RuleView.vue_vue_type_script_setup_true_lang-DASNyCfE.js";
8
+ import { u as we } from "./menu-B6iD6nD_.js";
9
+ import { L as Pe } from "./LinkProductSideSheet-Bt21W-G-.js";
10
10
  const Ee = { class: "space-y-8" }, Ue = {
11
11
  key: 0,
12
12
  class: "space-y-16"