@feedmepos/mf-menu 0.31.50-prod → 0.31.51-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 (63) hide show
  1. package/dist/{App-ib8y7Z7D.js → App-C68d-eta.js} +8 -8
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-oZubJ0RK.js → ApplyProduct.vue_vue_type_script_setup_true_lang-xvgIqXKV.js} +3 -3
  3. package/dist/{Catalog-DGqA_gZ4.js → Catalog-jLDUoWhC.js} +6 -6
  4. package/dist/{Category-DDE5OXHH.js → Category-BJqMsx47.js} +4 -4
  5. package/dist/{Category-DQialqcU.js → Category-Bj5vG5BH.js} +6 -6
  6. package/dist/{CookingGuide-Gt2XTl8c.js → CookingGuide-BVFIw-HU.js} +4 -4
  7. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-0ymABSZd.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-D4DtjtYG.js} +1 -1
  8. package/dist/{Group-CXPywXQs.js → Group-CBK-GGHf.js} +1 -1
  9. package/dist/{Group-CFKRe-T1.js → Group-DYVoz8gS.js} +3 -3
  10. package/dist/{Group.vue_vue_type_script_setup_true_lang-B11uEJHk.js → Group.vue_vue_type_script_setup_true_lang-Dyk9yKiZ.js} +7 -7
  11. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CzYQ4zdO.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CVC0loV_.js} +5 -5
  12. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-Ak4DmRou.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-yG08n5hc.js} +23 -7
  13. package/dist/{Ingredient-CITAGQ2k.js → Ingredient-CqHoOPQn.js} +3 -3
  14. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-Bl3Wb2Bk.js → InventoryBinding.vue_vue_type_script_setup_true_lang-9LWSZid8.js} +1052 -1052
  15. package/dist/{LinkProductSideSheet-CVVdawcL.js → LinkProductSideSheet-zwWnyibG.js} +3 -3
  16. package/dist/{MenuSetting-CuxGeHzc.js → MenuSetting-Bu6EU16f.js} +5 -5
  17. package/dist/{PrintRoute-DIG2mYNA.js → PrintRoute-pmRg4C4l.js} +4 -4
  18. package/dist/{Product-B6Ju3RbA.js → Product-d5rkdZFG.js} +1 -1
  19. package/dist/{Product.vue_vue_type_script_setup_true_lang-Dbb5Zom-.js → Product.vue_vue_type_script_setup_true_lang-zU4ga8V2.js} +13 -13
  20. package/dist/{ProductInternalTools-ZIZoPhTx.js → ProductInternalTools-CC3obJlW.js} +5 -5
  21. package/dist/{Products-2C7SY7ek.js → Products-NnHsb6AR.js} +11 -11
  22. package/dist/{Publish-BLV7qd6G.js → Publish-CqypD54y.js} +3 -3
  23. package/dist/{Recipe-ccZyuTv5.js → Recipe-CK0X3dd7.js} +4 -4
  24. package/dist/{Scheduler-D9qQirzX.js → Scheduler-D38x6oA_.js} +3 -3
  25. package/dist/{ServingSequence-C1l1WIJh.js → ServingSequence-D0bTffsw.js} +3 -3
  26. package/dist/{Setting-D7jb_oAF.js → Setting-DC46Uqik.js} +5 -5
  27. package/dist/{Subcategory-B-18Fx7U.js → Subcategory-BH4kjlNQ.js} +4 -4
  28. package/dist/{Takeaway-BoK_M3Yg.js → Takeaway-C_wX_aMw.js} +1 -1
  29. package/dist/{Takeaway-CzjrTykI.js → Takeaway-cA_6Xpmx.js} +4 -4
  30. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-_HSarFfM.js → Takeaway.vue_vue_type_script_setup_true_lang-DBSpVaY9.js} +5 -5
  31. package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-30sdV5FK.js → Thumbnail.vue_vue_type_script_setup_true_lang-Wf2062J_.js} +4 -4
  32. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DkJ8nd2Z.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BGk3ao7L.js} +14 -14
  33. package/dist/{Unit-CJ5FyYnQ.js → Unit-BpcIb7Fs.js} +2 -2
  34. package/dist/{Variant-hCsc2cMr.js → Variant-DT6sfZ-F.js} +3 -3
  35. package/dist/{_id_-Df_dc66c.js → _id_-DcY9kltL.js} +10 -10
  36. package/dist/{app-DC_okRiZ.js → app-Bbw5qDik.js} +1 -1
  37. package/dist/{app-Dyy1s-uX.js → app-BeGADnuI.js} +26 -26
  38. package/dist/app.js +1 -1
  39. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  40. package/dist/assets/{linked-status-Ck-8Ravz.js → linked-status-j41VBPOC.js} +2 -2
  41. package/dist/assets/{override-menu-fzQkrDvQ.js → override-menu-BntGqRU_.js} +2 -2
  42. package/dist/assets/{validate-menu-Cno2miU3.js → validate-menu-CxVhrJ86.js} +2 -2
  43. package/dist/{catalog-Y133zf_6.js → catalog-D6-ZZrEk.js} +1 -1
  44. package/dist/{catalogSetting-BWAs6AQD.js → catalogSetting-Bw6hrDjd.js} +1 -1
  45. package/dist/{category-BhY_lDHW.js → category-Be4KQ0Dc.js} +1 -1
  46. package/dist/{currency-CmONP3oI.js → currency-CvbaKcEI.js} +1 -1
  47. package/dist/{customAttributes-c6-DoSIq.js → customAttributes-W2k3ZTP0.js} +1 -1
  48. package/dist/{dayjs.min-DTdZBcTY.js → dayjs.min-B0H2lZEq.js} +1 -1
  49. package/dist/{index-BBaGc5fR.js → index-ChTXF5Wf.js} +3 -3
  50. package/dist/{index-BMUwK29a.js → index-Clor2yi1.js} +1 -1
  51. package/dist/{index-Czv8z2yJ.js → index-Dx2uQ0oK.js} +1 -1
  52. package/dist/{index-BlCKSyJJ.js → index-p-a3dKlm.js} +4 -4
  53. package/dist/{item-CFP4tXW_.js → item-DLXfMovw.js} +16 -16
  54. package/dist/{jszip.min-larlghLD.js → jszip.min-CWdZDwkx.js} +2 -2
  55. package/dist/{menu-D4_Sj9Gq.js → menu-CToRFpJn.js} +5 -5
  56. package/dist/{menu-As9Zbucy.js → menu-CpEtH29G.js} +1 -1
  57. package/dist/{menuV2-CeslfuJU.js → menuV2-BeGyJxY5.js} +67 -67
  58. package/dist/{priceTier-C2gju0y3.js → priceTier-DztgXBu3.js} +1 -1
  59. package/dist/{scheduler-D9jkW002.js → scheduler-DlH8J5Hn.js} +4 -4
  60. package/dist/{subcategory-BhmU1Q7V.js → subcategory-5gTdlPYc.js} +2 -2
  61. package/dist/{toExcel-Cl8MVoV6.js → toExcel-CXzIh7Dz.js} +2 -2
  62. package/dist/{unit-VF2CWKx9.js → unit-I1STL5Hd.js} +2 -2
  63. package/package.json +2 -2
@@ -1,16 +1,16 @@
1
- import { an as L, H as E, D as R, A as J, ao as z, J as U, I as Q, a8 as w, c as N, X as k, ai as B, ap as Me, aq as ke, B as Ee, aa as Re, ar as Ie, as as Te, a7 as Fe } from "./menu-D4_Sj9Gq.js";
2
- import { defineStore as Ae } from "pinia";
3
- import { shallowRef as Y, ref as D, computed as h, shallowReactive as Pe, effectScope as Ke, watch as Oe } from "vue";
4
- import { useCoreStore as j } from "@feedmepos/mf-common";
5
- import { useSnackbar as Ve } from "@feedmepos/ui-library";
6
- const Ne = "/assets/linked-status-Ck-8Ravz.js", xe = "/assets/override-menu-fzQkrDvQ.js";
1
+ import { an as L, H as R, D as k, A as J, ao as W, J as U, I as Y, a8 as w, c as N, X as E, ai as j, ap as Me, aq as Ee, B as Re, aa as ke, ar as Ie, as as Te, a7 as Fe } from "./menu-CToRFpJn.js";
2
+ import { defineStore as Pe } from "pinia";
3
+ import { shallowRef as X, ref as D, computed as h, shallowReactive as Ae, effectScope as Oe, watch as Ve } from "vue";
4
+ import { useCoreStore as z } from "@feedmepos/mf-common";
5
+ import { useSnackbar as Ke } from "@feedmepos/ui-library";
6
+ const Ne = "/assets/linked-status-j41VBPOC.js", xe = "/assets/override-menu-BntGqRU_.js";
7
7
  function $e(e) {
8
8
  var a;
9
- const n = E(e), o = (a = n.variant) == null ? void 0 : a.variantCombinations;
9
+ const n = R(e), o = (a = n.variant) == null ? void 0 : a.variantCombinations;
10
10
  return delete n.variant, delete n.thumbnail, [n, ...o || []];
11
11
  }
12
12
  function Ue(e, n, o, a) {
13
- const r = E(n), l = o ? r.modules.catalog.find((_) => _._id === o) : null, d = a ? r.modules.scheduler.find((_) => _._id === a) : null, i = l ? E(l) : void 0, c = o ? r.modules.catalog.filter((_) => _._id !== o) : [], m = d ? E(d) : void 0, f = e.reduce((_, y) => (_[y._id] = $e(y), _), {});
13
+ const r = R(n), l = o ? r.modules.catalog.find((_) => _._id === o) : null, d = a ? r.modules.scheduler.find((_) => _._id === a) : null, i = l ? R(l) : void 0, c = o ? r.modules.catalog.filter((_) => _._id !== o) : [], m = d ? R(d) : void 0, f = e.reduce((_, y) => (_[y._id] = $e(y), _), {});
14
14
  function v(_ = []) {
15
15
  const y = e.map((C) => C._id);
16
16
  return [
@@ -35,9 +35,9 @@ function Ue(e, n, o, a) {
35
35
  ...r.modules.scheduler.filter((_) => _._id !== a),
36
36
  m
37
37
  ], r) : {
38
- ...z(),
38
+ ...W(),
39
39
  modules: {
40
- ...z().modules,
40
+ ...W().modules,
41
41
  catalog: r.modules.catalog,
42
42
  item: r.modules.item,
43
43
  group: r.modules.group,
@@ -85,7 +85,7 @@ function De(e, n) {
85
85
  if (m)
86
86
  return T(m, n, 1);
87
87
  const f = {
88
- ...R.generator.initMenuV4ItemOverrider(),
88
+ ...k.generator.initMenuV4ItemOverrider(),
89
89
  _id: c._id,
90
90
  combinationKey: c.combinationKey
91
91
  };
@@ -93,7 +93,7 @@ function De(e, n) {
93
93
  });
94
94
  return { ...l, items: i };
95
95
  }), a = e.variant ? e.variant.variantCombinations.map((l) => T(l, n, 1)) : [], r = {
96
- ...R.generator.initMenuV4ItemOverrider(),
96
+ ...k.generator.initMenuV4ItemOverrider(),
97
97
  _id: e._id,
98
98
  name: e.name,
99
99
  code: e.code,
@@ -150,10 +150,10 @@ function He(e, n) {
150
150
  };
151
151
  }
152
152
  async function et(e, n, o, a, r, l = !0) {
153
- const d = E(o), i = l ? Ue(n, d, a, r) : d, c = n.reduce((v, _) => (v[_._id] = i.modules.item.find((y) => y._id === _._id), v), {}), m = n.reduce((v, _) => {
153
+ const d = R(o), i = l ? Ue(n, d, a, r) : d, c = n.reduce((v, _) => (v[_._id] = i.modules.item.find((y) => y._id === _._id), v), {}), m = n.reduce((v, _) => {
154
154
  const y = _._id;
155
155
  return v[y] = De(c[y], e), v;
156
- }, {}), f = R.getFallbackPrices({
156
+ }, {}), f = k.getFallbackPrices({
157
157
  rawMenu: i,
158
158
  items: m,
159
159
  catalogId: a || void 0,
@@ -194,7 +194,7 @@ async function nt(e, n) {
194
194
  );
195
195
  return x.set(o, a), a;
196
196
  }
197
- async function X(e, n, o) {
197
+ async function Q(e, n, o) {
198
198
  return await L(xe, {
199
199
  menu: e,
200
200
  catalogId: n,
@@ -232,17 +232,17 @@ function ot(e, n, o) {
232
232
  return r(n, o);
233
233
  }
234
234
  const $ = /* @__PURE__ */ new Map();
235
- async function Ge(e, n, o) {
235
+ async function Be(e, n, o) {
236
236
  const a = `${e._id}-${e.updatedAt}-${n || "null"}-${o || "null"}`;
237
237
  if ($.has(a))
238
238
  return $.get(a);
239
- const r = await X(e, n, o);
239
+ const r = await Q(e, n, o);
240
240
  return $.set(a, r), r;
241
241
  }
242
242
  async function st(e, n, o) {
243
243
  var d, i;
244
- const a = await Ge(e, n, null), r = [], l = (c, m) => {
245
- const f = E(c);
244
+ const a = await Be(e, n, null), r = [], l = (c, m) => {
245
+ const f = R(c);
246
246
  for (const v in m)
247
247
  m[v] && (f[v] = m[v]);
248
248
  return f;
@@ -251,9 +251,9 @@ async function st(e, n, o) {
251
251
  const m = (d = c.items) == null ? void 0 : d.find((v) => v._id === o && !v.combinationKey), f = e.modules.item.find((v) => v._id === o);
252
252
  if (m) {
253
253
  const v = (i = c.items) == null ? void 0 : i.filter((y) => y._id === o && y.combinationKey), _ = [m, ...v].map((y) => {
254
- var F, A;
255
- const C = y.combinationKey ? (A = (F = f == null ? void 0 : f.variant) == null ? void 0 : F.variantCombinations) == null ? void 0 : A.find(
256
- (P) => P.combinationKey === y.combinationKey
254
+ var F, P;
255
+ const C = y.combinationKey ? (P = (F = f == null ? void 0 : f.variant) == null ? void 0 : F.variantCombinations) == null ? void 0 : P.find(
256
+ (A) => A.combinationKey === y.combinationKey
257
257
  ) : f, I = C && f ? l(f, C) : y;
258
258
  return l(I, y);
259
259
  });
@@ -265,10 +265,10 @@ async function st(e, n, o) {
265
265
  }
266
266
  return r;
267
267
  }
268
- function We({
268
+ function Ge({
269
269
  maxHistorySize: e = 50
270
270
  }) {
271
- const n = Y([]), o = D(-1), a = h(() => o.value > 0), r = h(() => o.value < n.value.length - 1);
271
+ const n = X([]), o = D(-1), a = h(() => o.value > 0), r = h(() => o.value < n.value.length - 1);
272
272
  function l(m) {
273
273
  n.value.push(m), o.value++, n.value.length > e && (n.value.shift(), o.value--);
274
274
  }
@@ -303,7 +303,7 @@ const qe = {
303
303
  modules: o.result || e.modules,
304
304
  _rev: o.id ?? ""
305
305
  };
306
- return Q.cloneDeep({ menu: a, updateId: o.id ?? null });
306
+ return Y.cloneDeep({ menu: a, updateId: o.id ?? null });
307
307
  }
308
308
  };
309
309
  function Z() {
@@ -329,7 +329,7 @@ function Z() {
329
329
  updatedAt: (/* @__PURE__ */ new Date()).toISOString()
330
330
  };
331
331
  }
332
- function ze() {
332
+ function We() {
333
333
  return {
334
334
  restaurants: [],
335
335
  menu: { ...Z(), _rev: "" },
@@ -342,10 +342,10 @@ function ze() {
342
342
  }
343
343
  };
344
344
  }
345
- const at = Ae(
345
+ const at = Pe(
346
346
  "mf-menu-store-v2",
347
347
  () => {
348
- const e = Pe(ze()), n = j(), o = Ve(), a = h(() => e.menu.modules.serveSequence ? w(e.menu.modules.serveSequence, {
348
+ const e = Ae(We()), n = z(), o = Ke(), a = h(() => e.menu.modules.serveSequence ? w(e.menu.modules.serveSequence, {
349
349
  selector: "position"
350
350
  }) : []), r = h(() => {
351
351
  var t;
@@ -358,7 +358,7 @@ const at = Ae(
358
358
  let t = e.menu.modules.catalog.find(
359
359
  (u) => u._id === e.currentCatalogId
360
360
  );
361
- return t && ((s = t.linkItemRules) != null && s.length) && (t = R.populateCatalog({
361
+ return t && ((s = t.linkItemRules) != null && s.length) && (t = k.populateCatalog({
362
362
  catalog: t,
363
363
  ruleGroupSettings: e.menu.ruleGroupSettings,
364
364
  items: e.menu.modules.item,
@@ -370,13 +370,13 @@ const at = Ae(
370
370
  function f(t, s = !0) {
371
371
  e.menu = { ...t, _rev: e.menu._rev }, s && M.push(e.menu);
372
372
  }
373
- const v = Y(Z()), _ = D(!1), y = D(1);
373
+ const v = X(Z()), _ = D(!1), y = D(1);
374
374
  async function C() {
375
375
  var u;
376
376
  _.value = !0;
377
377
  let t = e.menu.modules.catalog;
378
378
  if (i.value && ((u = i.value.linkItemRules) != null && u.length)) {
379
- const p = R.populateCatalog({
379
+ const p = k.populateCatalog({
380
380
  catalog: i.value,
381
381
  ruleGroupSettings: e.menu.ruleGroupSettings,
382
382
  items: e.menu.modules.item,
@@ -384,7 +384,7 @@ const at = Ae(
384
384
  });
385
385
  t = e.menu.modules.catalog.map((g) => g._id === (p == null ? void 0 : p._id) ? p : g);
386
386
  }
387
- const s = await X(
387
+ const s = await Q(
388
388
  {
389
389
  ...e.menu,
390
390
  modules: {
@@ -405,16 +405,16 @@ const at = Ae(
405
405
  }
406
406
  return v.value = s, _.value = !1, y.value = y.value + 1, s;
407
407
  }
408
- const F = Q.debounce(C, 200);
409
- Ke(!0).run(() => {
410
- Oe(
408
+ const F = Y.debounce(C, 200);
409
+ Oe(!0).run(() => {
410
+ Ve(
411
411
  () => [e.menu, e.currentCatalogId, e.currentSchedulerId],
412
412
  () => {
413
413
  _.value || F();
414
414
  }
415
415
  );
416
416
  });
417
- const P = h(() => [
417
+ const A = h(() => [
418
418
  {
419
419
  label: "Main",
420
420
  value: null
@@ -423,22 +423,22 @@ const at = Ae(
423
423
  label: t.name,
424
424
  value: t._id
425
425
  }))
426
- ]), G = h(() => {
426
+ ]), B = h(() => {
427
427
  const t = v.value.modules.category;
428
428
  return [
429
- ...O.value.item.addon ? [
429
+ ...V.value.item.addon ? [
430
430
  {
431
431
  _id: e.currentCatalogId ? "" : null,
432
432
  name: "Addon",
433
433
  position: 0
434
434
  }
435
435
  ] : [],
436
- ...k(t, (s) => s.name)
436
+ ...E(t, (s) => s.name)
437
437
  ];
438
438
  }), ee = h(() => {
439
439
  const t = v.value.modules.subCategory || [];
440
- return k(t, (s) => s.name);
441
- }), W = h(() => {
440
+ return E(t, (s) => s.name);
441
+ }), G = h(() => {
442
442
  var s;
443
443
  let t = v.value.modules.item;
444
444
  if (i.value) {
@@ -451,18 +451,18 @@ const at = Ae(
451
451
  return (g == null ? void 0 : g.orderFrom) !== J.F_ORDER_FROM.enum.NONE;
452
452
  });
453
453
  }
454
- return k(t, (u) => u.code || u.name);
454
+ return E(t, (u) => u.code || u.name);
455
455
  }), te = h(() => {
456
- const t = e.menu.modules.category, s = k(t, (p) => p.name).reduce(
456
+ const t = e.menu.modules.category, s = E(t, (p) => p.name).reduce(
457
457
  (p, g, S) => (p[g._id] = S, p),
458
458
  { "": 0 }
459
459
  ), u = e.menu.modules.item;
460
- return k(
460
+ return E(
461
461
  u,
462
462
  (p) => p.code || p.name
463
463
  ).reduce((p, g, S) => (p[g._id] = S + s[g.category || ""], p), {});
464
- }), ne = h(() => B(K.value, G.value, W.value)), re = h(() => {
465
- const t = O.value.item.addon ? [
464
+ }), ne = h(() => j(O.value, B.value, G.value)), re = h(() => {
465
+ const t = V.value.item.addon ? [
466
466
  {
467
467
  _id: e.currentCatalogId ? "" : null,
468
468
  name: "Addon",
@@ -470,27 +470,27 @@ const at = Ae(
470
470
  },
471
471
  ...e.menu.modules.category
472
472
  ] : e.menu.modules.category;
473
- return B(
473
+ return j(
474
474
  e.menu.modules.variant,
475
475
  t,
476
476
  e.menu.modules.item
477
477
  );
478
- }), K = h(() => {
478
+ }), O = h(() => {
479
479
  const t = v.value.modules.variant;
480
480
  return w(t, { selector: "name" });
481
481
  });
482
482
  function oe(t = []) {
483
- const s = t.map((p) => K.value.find((g) => g._id === p)).filter((p) => !!p);
484
- return R.fullVariantCombination(s).reduce((p, g) => (p[g.combinationKey] = g.selectionName.join(" / "), p), {});
483
+ const s = t.map((p) => O.value.find((g) => g._id === p)).filter((p) => !!p);
484
+ return k.fullVariantCombination(s).reduce((p, g) => (p[g.combinationKey] = g.selectionName.join(" / "), p), {});
485
485
  }
486
- const se = h(() => k(v.value.modules.group, (t) => t.name)), ae = h(() => w(v.value.modules.takeaway, { selector: "name" })), ue = h(() => w(e.menu.modules.printDepartment || [], {
486
+ const se = h(() => E(v.value.modules.group, (t) => t.name)), ae = h(() => w(v.value.modules.takeaway, { selector: "name" })), ue = h(() => w(e.menu.modules.printDepartment || [], {
487
487
  selector: "name"
488
488
  })), ie = h(() => w(e.menu.modules.unit, { selector: "name" })), ce = h(() => w(Me(e.menu.modules.recipe, e.menu.modules.sku), {
489
489
  selector: "name"
490
490
  })), le = h(() => e.menu.modules.cookingGuide), de = h(() => {
491
- const t = ke(e.menu.modules.sku);
491
+ const t = Ee(e.menu.modules.sku);
492
492
  return w(t, { selector: "code" });
493
- }), O = h(() => {
493
+ }), V = h(() => {
494
494
  const t = !e.currentCatalogId, s = r.value === N.F_MENU_VERSION.v4, u = !e.currentSchedulerId, p = {
495
495
  create: t && u,
496
496
  edit: t && u,
@@ -559,7 +559,7 @@ const at = Ae(
559
559
  }
560
560
  };
561
561
  });
562
- function V(t) {
562
+ function K(t) {
563
563
  return `${t.systemCode}/${t.taxCode}`;
564
564
  }
565
565
  function me(t) {
@@ -567,15 +567,15 @@ const at = Ae(
567
567
  return { systemCode: s, taxCode: u };
568
568
  }
569
569
  function fe(t, s, u) {
570
- return (t ?? s ?? []).map((p) => V(p)).find((p) => u.some((g) => g.value === p));
570
+ return (t ?? s ?? []).map((p) => K(p)).find((p) => u.some((g) => g.value === p));
571
571
  }
572
572
  const pe = h(() => {
573
573
  var p;
574
- const t = ["SV5", "SV10"], s = Ee.Country.getCountryFlattenTaxes(
575
- j().currentCountry.value
574
+ const t = ["SV5", "SV10"], s = Re.Country.getCountryFlattenTaxes(
575
+ z().currentCountry.value
576
576
  ), u = s.filter((g) => l.value || !t.includes(g.taxCode)).map((g) => ({
577
- label: `${g.name} (${Re(g.rate)}%)`,
578
- value: V(g),
577
+ label: `${g.name} (${ke(g.rate)}%)`,
578
+ value: K(g),
579
579
  meta: {
580
580
  rate: g.rate
581
581
  }
@@ -634,7 +634,7 @@ const at = Ae(
634
634
  priceTierSettings: t.priceTierSettings
635
635
  };
636
636
  return f(s), s;
637
- }, M = We({ maxHistorySize: 50 }), be = h(() => M.canUndo.value), we = h(() => M.canRedo.value);
637
+ }, M = Ge({ maxHistorySize: 50 }), be = h(() => M.canUndo.value), we = h(() => M.canRedo.value);
638
638
  return {
639
639
  state: e,
640
640
  // loading state
@@ -650,14 +650,14 @@ const at = Ae(
650
650
  currentCatalog: i,
651
651
  schedulers: c,
652
652
  currentScheduler: m,
653
- catalogOptions: P,
654
- categories: G,
653
+ catalogOptions: A,
654
+ categories: B,
655
655
  subcategories: ee,
656
- items: W,
656
+ items: G,
657
657
  sortedItems: te,
658
658
  categorizedItems: ne,
659
659
  categorizedRawMenuItems: re,
660
- variants: K,
660
+ variants: O,
661
661
  groups: se,
662
662
  takeaways: ae,
663
663
  printDepartments: ue,
@@ -665,7 +665,7 @@ const at = Ae(
665
665
  recipes: ce,
666
666
  cookingGuide: le,
667
667
  skus: de,
668
- rules: O,
668
+ rules: V,
669
669
  taxSetting: pe,
670
670
  // Action
671
671
  setMenu: f,
@@ -679,7 +679,7 @@ const at = Ae(
679
679
  updateMenuSetting: Ce,
680
680
  computeMergedMenu: C,
681
681
  // helper
682
- encodeTax: V,
682
+ encodeTax: K,
683
683
  decodeTax: me,
684
684
  getSelectedTax: fe,
685
685
  mapVariant: oe,
@@ -707,6 +707,6 @@ export {
707
707
  st as f,
708
708
  tt as g,
709
709
  et as m,
710
- Ge as o,
710
+ Be as o,
711
711
  at as u
712
712
  };
@@ -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, G as M } from "./menu-D4_Sj9Gq.js";
4
+ import { u as k, G as M } from "./menu-CToRFpJn.js";
5
5
  const v = /* @__PURE__ */ d({
6
6
  __name: "AddPriceGroupDialog",
7
7
  setup(s) {
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as ie, computed as Y, resolveComponent as _, createElementBlock as d, openBlock as u, createVNode as t, createCommentVNode as F, unref as n, toDisplayString as L, createElementVNode as h, withCtx as v, Fragment as N, renderList as M, createBlock as I, ref as H, Transition as se, createTextVNode as me } from "vue";
2
- import { H as S, A as r, u as pe, I as ve, J as ue } from "./menu-D4_Sj9Gq.js";
2
+ import { H as S, A as r, u as pe, I as ve, J as ue } from "./menu-CToRFpJn.js";
3
3
  import { useI18n as de } from "@feedmepos/mf-common";
4
4
  import { components as _e } from "@feedmepos/ui-library";
5
- import { _ as ne, a as fe } from "./customAttributes-c6-DoSIq.js";
5
+ import { _ as ne, a as fe } from "./customAttributes-W2k3ZTP0.js";
6
6
  import { u as ye } from "./discardConfirm-BHni0LNu.js";
7
- import { u as he } from "./menu-As9Zbucy.js";
8
- import { L as ge } from "./LinkProductSideSheet-CVVdawcL.js";
7
+ import { u as he } from "./menu-CpEtH29G.js";
8
+ import { L as ge } from "./LinkProductSideSheet-zwWnyibG.js";
9
9
  const Ve = { class: "space-y-8" }, Fe = {
10
10
  key: 0,
11
11
  class: "space-y-16"
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as M, watch as _, ref as E, resolveComponent as f, createBlock as x, openBlock as A, unref as c, withCtx as C, createVNode as V } from "vue";
2
- import { J as l, A as d, u as F } from "./menu-D4_Sj9Gq.js";
2
+ import { J as l, A as d, u as F } from "./menu-CToRFpJn.js";
3
3
  import { useI18n as b } from "@feedmepos/mf-common";
4
4
  import { useDialogChild as P } from "@feedmepos/ui-library";
5
- import { u as v } from "./menuV2-CeslfuJU.js";
5
+ import { u as v } from "./menuV2-BeGyJxY5.js";
6
6
  const y = /* @__PURE__ */ M({
7
7
  __name: "AddSubcategoryDialogContentComponent",
8
8
  props: {
@@ -1,5 +1,5 @@
1
- import { u as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-Ak4DmRou.js";
2
- import "./menu-D4_Sj9Gq.js";
1
+ import { u as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-yG08n5hc.js";
2
+ import "./menu-CToRFpJn.js";
3
3
  var Z = {
4
4
  defaultAmount: 0,
5
5
  defaultCurrency: "USD",
@@ -1,13 +1,13 @@
1
1
  import { defineStore as J } from "pinia";
2
2
  import { defineComponent as O, computed as U, ref as h, watch as T, resolveComponent as V, createBlock as W, openBlock as F, withCtx as w, createVNode as m, createElementVNode as f, normalizeClass as Q, createElementBlock as A, toDisplayString as M, unref as l, Fragment as q, renderSlot as X, renderList as Z, getCurrentInstance as ee } from "vue";
3
- import { a5 as P, a6 as te, a3 as B, H as k, O as $, G as I, D as E, a4 as ne, J as C, A as D, I as oe, u as ae } from "./menu-D4_Sj9Gq.js";
3
+ import { a5 as P, a6 as te, a3 as B, H as k, O as $, G as I, D as E, a4 as ne, J as C, A as D, I as oe, u as ae } from "./menu-CToRFpJn.js";
4
4
  import { useI18n as L } from "@feedmepos/mf-common";
5
5
  import { useSnackbar as j, components as le, useDialog as ue, FmButtonVariant as ie } from "@feedmepos/ui-library";
6
6
  import { u as se } from "./discardConfirm-BHni0LNu.js";
7
7
  import { c as re } from "./check-C9mY6LiX.js";
8
8
  import "./vuedraggable-CK8z7qA8.js";
9
9
  import "./app-CiBqmBzO.js";
10
- import "./menuV2-CeslfuJU.js";
10
+ import "./menuV2-BeGyJxY5.js";
11
11
  /* empty css */
12
12
  import { c as me } from "./createComponentProgrammatically-Bt2rn1IQ.js";
13
13
  const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-menu",
3
- "version": "0.31.50-prod",
3
+ "version": "0.31.51-prod",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -18,7 +18,7 @@
18
18
  "@feedmepos/auth": "^1.1.14",
19
19
  "@feedmepos/core": "2.14.36",
20
20
  "@feedmepos/core-dart": "^0.2.6",
21
- "@feedmepos/core-legacy": "file:../../core-legacy-1.2.tar.gz",
21
+ "@feedmepos/core-legacy": "file:../../core-legacy-1.3.tar.gz",
22
22
  "@feedmepos/custom-attributes": "0.0.1-rc.4",
23
23
  "@feedmepos/inventory-core": "^0.2.6",
24
24
  "@feedmepos/menu": "1.7.14",