@feedmepos/mf-menu 0.31.57-beta.1 → 0.31.58-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 (66) hide show
  1. package/dist/{App-aAKiJnh0.js → App-CEwyPSKB.js} +9 -9
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-NXGiy_Vi.js → ApplyProduct.vue_vue_type_script_setup_true_lang-B1PaP0os.js} +3 -3
  3. package/dist/{Catalog-C10xa9eC.js → Catalog-CrgKBjTt.js} +6 -6
  4. package/dist/{Category-D8pSAVyA.js → Category-Brt03UVR.js} +4 -4
  5. package/dist/{Category-Bl2XO9Gw.js → Category-Do3tDNNq.js} +6 -6
  6. package/dist/{CookingGuide-CMuLuYac.js → CookingGuide-DtkAi9bK.js} +4 -4
  7. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-D3HyvX87.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-8ObJv2LZ.js} +1 -1
  8. package/dist/{Group-Bj0bEvqc.js → Group-CX1rH4Ba.js} +1 -1
  9. package/dist/{Group-BXQwwY0b.js → Group-gQPAHr2A.js} +3 -3
  10. package/dist/{Group.vue_vue_type_script_setup_true_lang-qY3jdMS5.js → Group.vue_vue_type_script_setup_true_lang-DWVGPzwc.js} +7 -7
  11. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DB-tcwBf.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-PQJm4GbD.js} +5 -5
  12. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-dygqJ3VG.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-DLVjK7wR.js} +4107 -4075
  13. package/dist/{Ingredient-Bjh831zB.js → Ingredient-_nl97wdl.js} +3 -3
  14. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-Dx6kizk9.js → InventoryBinding.vue_vue_type_script_setup_true_lang-DAO5hp3N.js} +2 -2
  15. package/dist/{LinkProductSideSheet-Dl7ZCKLX.js → LinkProductSideSheet-0p5Z66Ua.js} +3 -3
  16. package/dist/{MenuSetting-789QTAVy.js → MenuSetting-CHOMVwXS.js} +5 -5
  17. package/dist/{PrintRoute-BYMvZbDY.js → PrintRoute-PR9yqoD5.js} +4 -4
  18. package/dist/{Product-CksVbnED.js → Product-D74PpxCy.js} +1 -1
  19. package/dist/{Product.vue_vue_type_script_setup_true_lang-CtvxpNXr.js → Product.vue_vue_type_script_setup_true_lang-CW6W8Ros.js} +13 -13
  20. package/dist/{ProductInternalTools-DguHTMPE.js → ProductInternalTools-BH4Rtb8s.js} +6 -6
  21. package/dist/{Products-BMX_DEfq.js → Products-BoP_Sfwi.js} +248 -234
  22. package/dist/{Publish-D4pG8ROv.js → Publish-B82vhm2_.js} +3 -3
  23. package/dist/{Recipe-Bb2cvtQl.js → Recipe-C8KXjAzg.js} +4 -4
  24. package/dist/{Scheduler-3mB7sbUy.js → Scheduler-CkAclfQw.js} +3 -3
  25. package/dist/{ServingSequence-jqZltK35.js → ServingSequence-BlUDI5uT.js} +3 -3
  26. package/dist/{Setting-4ajIRdjS.js → Setting-B7jaIIPx.js} +5 -5
  27. package/dist/{Subcategory-Co2dVm-d.js → Subcategory-ZoTKyleD.js} +4 -4
  28. package/dist/{Takeaway-CI6sUy3N.js → Takeaway-bOnEUU7z.js} +1 -1
  29. package/dist/{Takeaway-CUMp76j-.js → Takeaway-hSioiPLy.js} +4 -4
  30. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-RZnNkRB-.js → Takeaway.vue_vue_type_script_setup_true_lang-B5HjkmRS.js} +5 -5
  31. package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-BIeEXn3K.js → Thumbnail.vue_vue_type_script_setup_true_lang-SR02hz_g.js} +4 -4
  32. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-C4TSckYQ.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-D6_okQqi.js} +15 -15
  33. package/dist/{Unit-Cw1aS6gI.js → Unit-iVeouD8Q.js} +2 -2
  34. package/dist/{Variant-BH3zII_W.js → Variant-09Ayb-LB.js} +3 -3
  35. package/dist/{_id_-GHpxvMJq.js → _id_-T4NFKO76.js} +10 -10
  36. package/dist/{app-B9SuCjTJ.js → app-BeeqJ5ia.js} +1 -1
  37. package/dist/{app-CE8Yjb5N.js → app-G1eIeNve.js} +26 -26
  38. package/dist/app.js +1 -1
  39. package/dist/apps/mf-menu/src/helper/import-export-utils.d.ts +3 -0
  40. package/dist/apps/mf-menu/src/helper/menuExport.d.ts +5 -1
  41. package/dist/apps/mf-menu/src/helper/menuImport.d.ts +5 -0
  42. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  43. package/dist/assets/{linked-status-vxHdMTuo.js → linked-status-D54oQ8ty.js} +2 -2
  44. package/dist/assets/{override-menu-DHz7zcGn.js → override-menu-CTzTh4oF.js} +2 -2
  45. package/dist/assets/{validate-menu-BATWO60n.js → validate-menu-DEP4gzNo.js} +2 -2
  46. package/dist/{catalog-D9AmUcSy.js → catalog-DireBPbe.js} +1 -1
  47. package/dist/{catalogSetting-BJO4QrOF.js → catalogSetting-8687T4sf.js} +1 -1
  48. package/dist/{category-D37cZ_Dk.js → category-CxZ7l7TH.js} +1 -1
  49. package/dist/{currency-Zqm_LWL_.js → currency-C-x74Ihc.js} +1 -1
  50. package/dist/{customAttributes-D9-zftG3.js → customAttributes-PLOo5TFF.js} +1 -1
  51. package/dist/{dayjs.min-B9jKkSFx.js → dayjs.min-D4oh6LGN.js} +1 -1
  52. package/dist/{index-BVoSUbUK.js → index-B6y1Idp6.js} +3 -3
  53. package/dist/{index-D1Ochoxn.js → index-CWlWCkLQ.js} +1 -1
  54. package/dist/{index-0TfxxmDg.js → index-Deb8Se9C.js} +4 -4
  55. package/dist/{index-Du_lEFBb.js → index-Dr70dTcK.js} +1 -1
  56. package/dist/{item-BADDeXCY.js → item-8v-mL4Tk.js} +375 -375
  57. package/dist/{jszip.min-Dyeexk5v.js → jszip.min-BlCVvZNl.js} +2 -2
  58. package/dist/{menu-U8mwR2QD.js → menu-CbIzWmhP.js} +159 -159
  59. package/dist/{menu-dIq2-n2M.js → menu-DhH8YWvV.js} +1 -1
  60. package/dist/{menuV2-G2IOgnAS.js → menuV2-B3QHrvzJ.js} +69 -69
  61. package/dist/{priceTier-Bwd3ibGM.js → priceTier-BHuvA89h.js} +1 -1
  62. package/dist/{scheduler-mB0AE2bM.js → scheduler-PDDah5xR.js} +4 -4
  63. package/dist/{subcategory-C6rKZbqO.js → subcategory-B-usgK3T.js} +2 -2
  64. package/dist/{toExcel-CPZ73Gdw.js → toExcel-C6kSxe7z.js} +2 -2
  65. package/dist/{unit-Dori0VKd.js → unit-CtG4RVnF.js} +2 -2
  66. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import { computed as n, onMounted as d, onBeforeUnmount as m } from "vue";
2
- import { u as c } from "./menu-U8mwR2QD.js";
2
+ import { u as c } from "./menu-CbIzWmhP.js";
3
3
  import "@feedmepos/mf-common";
4
4
  import "@feedmepos/ui-library";
5
5
  function p() {
@@ -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 ue, H as I, D as T, A as ae, ao as re, J as G, I as ie, a8 as x, c as z, X as V, ai as oe, ap as ze, aq as He, B as Le, aa as Ge, ar as qe, as as Be, a7 as Je } from "./menu-U8mwR2QD.js";
4
+ import { an as ue, H as C, D as V, A as ae, ao as re, J as G, I as ie, a8 as x, c as L, X as T, ai as oe, ap as Le, aq as ze, B as qe, aa as Ge, ar as He, as as Be, a7 as Je } from "./menu-CbIzWmhP.js";
5
5
  import { defineStore as Ye } from "pinia";
6
- import { shallowRef as j, ref as q, computed as S, shallowReactive as Xe, effectScope as Qe, watch as Ze } from "vue";
6
+ import { shallowRef as j, ref as H, computed as S, shallowReactive as Qe, effectScope as Xe, watch as Ze } 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-vxHdMTuo.js", nt = "/assets/override-menu-DHz7zcGn.js";
9
+ const tt = "/assets/linked-status-D54oQ8ty.js", nt = "/assets/override-menu-CTzTh4oF.js";
10
10
  function rt(e) {
11
11
  var o;
12
- const t = I(e), n = (o = t.variant) == null ? void 0 : o.variantCombinations;
12
+ const t = C(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 = 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), {});
16
+ const r = C(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 ? C(a) : 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), {});
17
17
  function h(m = []) {
18
18
  const v = e.map((p) => p._id);
19
19
  return [
@@ -88,7 +88,7 @@ function st(e, t) {
88
88
  if (i)
89
89
  return $(i, t, 1);
90
90
  const f = {
91
- ...T.generator.initMenuV4ItemOverrider(),
91
+ ...V.generator.initMenuV4ItemOverrider(),
92
92
  _id: c._id,
93
93
  combinationKey: c.combinationKey
94
94
  };
@@ -96,7 +96,7 @@ function st(e, t) {
96
96
  });
97
97
  return { ...a, items: u };
98
98
  }), o = e.variant ? e.variant.variantCombinations.map((a) => $(a, t, 1)) : [], r = {
99
- ...T.generator.initMenuV4ItemOverrider(),
99
+ ...V.generator.initMenuV4ItemOverrider(),
100
100
  _id: e._id,
101
101
  name: e.name,
102
102
  code: e.code,
@@ -153,10 +153,10 @@ function ut(e, t) {
153
153
  };
154
154
  }
155
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) => {
156
+ const l = C(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 = T.getFallbackPrices({
159
+ }, {}), f = V.getFallbackPrices({
160
160
  rawMenu: u,
161
161
  items: i,
162
162
  catalogId: o || void 0,
@@ -183,11 +183,11 @@ function Dt(e, t) {
183
183
  return r;
184
184
  }, [])) || []).join(" / ");
185
185
  }
186
- const H = /* @__PURE__ */ new Map();
187
- async function Vt(e, t) {
186
+ const z = /* @__PURE__ */ new Map();
187
+ async function Tt(e, t) {
188
188
  const n = `${e._id}-${e.updatedAt}-${t}`;
189
- if (H.has(n))
190
- return H.get(n);
189
+ if (z.has(n))
190
+ return z.get(n);
191
191
  const o = await ue(
192
192
  tt,
193
193
  JSON.stringify({
@@ -195,7 +195,7 @@ async function Vt(e, t) {
195
195
  itemId: t
196
196
  })
197
197
  );
198
- return H.set(n, o), o;
198
+ return z.set(n, o), o;
199
199
  }
200
200
  async function ce(e, t, n) {
201
201
  return await ue(nt, {
@@ -204,7 +204,7 @@ async function ce(e, t, n) {
204
204
  schedulerId: n
205
205
  });
206
206
  }
207
- function Tt(e, t, n) {
207
+ function Vt(e, t, n) {
208
208
  const o = /* @__PURE__ */ new Set();
209
209
  function r(a, l) {
210
210
  if (!e || !a || !l || o.has(l)) return !1;
@@ -234,18 +234,18 @@ function Ft(e, t, n) {
234
234
  }
235
235
  return r(t, n);
236
236
  }
237
- const L = /* @__PURE__ */ new Map();
237
+ const q = /* @__PURE__ */ new Map();
238
238
  async function at(e, t, n) {
239
239
  const o = `${e._id}-${e.updatedAt}-${t || "null"}-${n || "null"}`;
240
- if (L.has(o))
241
- return L.get(o);
240
+ if (q.has(o))
241
+ return q.get(o);
242
242
  const r = await ce(e, t, n);
243
- return L.set(o, r), r;
243
+ return q.set(o, r), r;
244
244
  }
245
245
  async function Kt(e, t, n) {
246
246
  var l, u;
247
247
  const o = await at(e, t, null), r = [], a = (c, i) => {
248
- const f = I(c);
248
+ const f = C(c);
249
249
  for (const h in i)
250
250
  i[h] && (f[h] = i[h]);
251
251
  return f;
@@ -254,8 +254,8 @@ async function Kt(e, t, n) {
254
254
  const i = (l = c.items) == null ? void 0 : l.find((h) => h._id === n && !h.combinationKey), f = e.modules.item.find((h) => h._id === n);
255
255
  if (i) {
256
256
  const h = (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(
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(
259
259
  (R) => R.combinationKey === v.combinationKey
260
260
  ) : f, b = p && f ? a(f, p) : v;
261
261
  return a(b, v);
@@ -360,8 +360,8 @@ function lt(e, t, n) {
360
360
  if (b !== void 0) {
361
361
  const w = J(e[p], t[b], n);
362
362
  if (w !== void 0 && (o[b] = w), r && b !== p) {
363
- const C = `_${p}`, R = a ? [e[p], b, F] : ["", b, F];
364
- o[C] = R;
363
+ const I = `_${p}`, R = a ? [e[p], b, F] : ["", b, F];
364
+ o[I] = R;
365
365
  }
366
366
  } else {
367
367
  const w = `_${p}`;
@@ -491,7 +491,7 @@ 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 a = X(r);
494
+ const a = Q(r);
495
495
  a !== void 0 && (t[n] = a);
496
496
  }
497
497
  }
@@ -504,13 +504,13 @@ function ht(e) {
504
504
  if (Array.isArray(o))
505
505
  o.length === 1 ? t[n] = [o[0], M, M] : o.length === 3 && o[2] === M ? t[n] = [o[0]] : o.length === 2 && (t[n] = [o[1], o[0]]);
506
506
  else {
507
- const r = X(o);
507
+ const r = Q(o);
508
508
  r !== void 0 && (t[n] = r);
509
509
  }
510
510
  }
511
511
  return t;
512
512
  }
513
- function X(e) {
513
+ function Q(e) {
514
514
  if (e !== void 0) {
515
515
  if (Array.isArray(e)) {
516
516
  if (e.length === 1)
@@ -526,7 +526,7 @@ function X(e) {
526
526
  }
527
527
  }
528
528
  function de(e) {
529
- return X(e);
529
+ return Q(e);
530
530
  }
531
531
  function pt(e, t, n) {
532
532
  const o = de(t);
@@ -566,22 +566,22 @@ function St({
566
566
  includeValueOnMove: !1
567
567
  },
568
568
  cloneDiffValues: !1
569
- }), n = j(null), o = j([]), r = q(-1), a = j(null), l = S(() => r.value > 0), u = 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 = I(v), a.value = I(v), o.value = [{ delta: null }], r.value = 0;
572
+ n.value = C(v), a.value = C(v), o.value = [{ delta: null }], r.value = 0;
573
573
  return;
574
574
  }
575
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) {
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 = C(v), o.value.length > e) {
577
577
  const b = o.value[1].delta;
578
- b && n.value && (n.value = t.patch(I(n.value), b)), o.value.shift(), r.value--;
578
+ b && n.value && (n.value = t.patch(C(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 = I(n.value);
584
+ let p = C(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,14 +592,14 @@ function St({
592
592
  if (l.value) {
593
593
  r.value--;
594
594
  const v = i(r.value);
595
- return v && (a.value = I(v)), v;
595
+ return v && (a.value = C(v)), v;
596
596
  }
597
597
  }
598
598
  function h() {
599
599
  if (u.value) {
600
600
  r.value++;
601
601
  const v = i(r.value);
602
- return v && (a.value = I(v)), v;
602
+ return v && (a.value = C(v)), v;
603
603
  }
604
604
  }
605
605
  function m() {
@@ -667,12 +667,12 @@ function wt() {
667
667
  const Pt = Ye(
668
668
  "mf-menu-store-v2",
669
669
  () => {
670
- const e = Xe(wt()), t = se(), n = et(), o = S(() => e.menu.modules.serveSequence ? x(e.menu.modules.serveSequence, {
670
+ const e = Qe(wt()), t = se(), n = et(), o = S(() => e.menu.modules.serveSequence ? x(e.menu.modules.serveSequence, {
671
671
  selector: "position"
672
672
  }) : []), r = S(() => {
673
673
  var s;
674
- return ((s = t.currentBusiness.value) == null ? void 0 : s.menuVersion) || z.F_MENU_VERSION.v3;
675
- }), a = S(() => r.value === z.F_MENU_VERSION.v4), l = S(() => {
674
+ return ((s = t.currentBusiness.value) == null ? void 0 : s.menuVersion) || L.F_MENU_VERSION.v3;
675
+ }), 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
678
  }), u = S(() => {
@@ -680,7 +680,7 @@ const Pt = Ye(
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 = T.populateCatalog({
683
+ return s && ((d = s.linkItemRules) != null && d.length) && (s = V.populateCatalog({
684
684
  catalog: s,
685
685
  ruleGroupSettings: e.menu.ruleGroupSettings,
686
686
  items: e.menu.modules.item,
@@ -692,13 +692,13 @@ 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 = q(!1), v = q(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
700
  if (u.value && ((y = u.value.linkItemRules) != null && y.length)) {
701
- const g = T.populateCatalog({
701
+ const g = V.populateCatalog({
702
702
  catalog: u.value,
703
703
  ruleGroupSettings: e.menu.ruleGroupSettings,
704
704
  items: e.menu.modules.item,
@@ -728,16 +728,16 @@ 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 C = null, R = null;
732
- function Q() {
733
- R && (R(), R = null), C && C.stop(), C = Qe(!0), R = C.run(() => Ze(
731
+ let I = null, R = null;
732
+ function X() {
733
+ R && (R(), R = null), I && I.stop(), I = Xe(!0), R = I.run(() => Ze(
734
734
  () => [e.menu, e.currentCatalogId, e.currentSchedulerId],
735
735
  () => {
736
736
  m.value || w();
737
737
  }
738
738
  )) || null;
739
739
  }
740
- Q();
740
+ X();
741
741
  const me = S(() => [
742
742
  {
743
743
  label: "Main",
@@ -757,11 +757,11 @@ const Pt = Ye(
757
757
  position: 0
758
758
  }
759
759
  ] : [],
760
- ...V(s, (d) => d.name)
760
+ ...T(s, (d) => d.name)
761
761
  ];
762
762
  }), ve = S(() => {
763
763
  const s = h.value.modules.subCategory || [];
764
- return V(s, (d) => d.name);
764
+ return T(s, (d) => d.name);
765
765
  }), ee = S(() => {
766
766
  var d;
767
767
  let s = h.value.modules.item;
@@ -775,13 +775,13 @@ const Pt = Ye(
775
775
  return (_ == null ? void 0 : _.orderFrom) !== ae.F_ORDER_FROM.enum.NONE;
776
776
  });
777
777
  }
778
- return V(s, (y) => y.code || y.name);
778
+ return T(s, (y) => y.code || y.name);
779
779
  }), ye = S(() => {
780
- const s = e.menu.modules.category, d = V(s, (g) => g.name).reduce(
780
+ const s = e.menu.modules.category, d = T(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 V(
784
+ return T(
785
785
  y,
786
786
  (g) => g.code || g.name
787
787
  ).reduce((g, _, A) => (g[_._id] = A + d[_.category || ""], g), {});
@@ -805,17 +805,17 @@ 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 T.fullVariantCombination(d).reduce((g, _) => (g[_.combinationKey] = _.selectionName.join(" / "), g), {});
808
+ return V.fullVariantCombination(d).reduce((g, _) => (g[_.combinationKey] = _.selectionName.join(" / "), g), {});
809
809
  }
810
- const _e = S(() => V(h.value.modules.group, (s) => s.name)), Se = S(() => x(h.value.modules.takeaway, { selector: "name" })), be = S(() => x(e.menu.modules.printDepartment || [], {
810
+ const _e = S(() => T(h.value.modules.group, (s) => s.name)), Se = S(() => x(h.value.modules.takeaway, { selector: "name" })), be = S(() => x(e.menu.modules.printDepartment || [], {
811
811
  selector: "name"
812
- })), we = S(() => x(e.menu.modules.unit, { selector: "name" })), Me = S(() => x(ze(e.menu.modules.recipe, e.menu.modules.sku), {
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), Ie = S(() => {
815
- const s = He(e.menu.modules.sku);
814
+ })), Ae = S(() => e.menu.modules.cookingGuide), Ce = S(() => {
815
+ const s = ze(e.menu.modules.sku);
816
816
  return x(s, { selector: "code" });
817
817
  }), U = S(() => {
818
- const s = !e.currentCatalogId, d = r.value === z.F_MENU_VERSION.v4, y = !e.currentSchedulerId, g = {
818
+ const s = !e.currentCatalogId, d = r.value === L.F_MENU_VERSION.v4, y = !e.currentSchedulerId, g = {
819
819
  create: s && y,
820
820
  edit: s && y,
821
821
  delete: s && y
@@ -886,7 +886,7 @@ const Pt = Ye(
886
886
  function W(s) {
887
887
  return `${s.systemCode}/${s.taxCode}`;
888
888
  }
889
- function Ce(s) {
889
+ function Ie(s) {
890
890
  const [d, y] = s.split("/");
891
891
  return { systemCode: d, taxCode: y };
892
892
  }
@@ -895,7 +895,7 @@ const Pt = Ye(
895
895
  }
896
896
  const ke = S(() => {
897
897
  var g;
898
- const s = ["SV5", "SV10"], d = Le.Country.getCountryFlattenTaxes(
898
+ const s = ["SV5", "SV10"], d = qe.Country.getCountryFlattenTaxes(
899
899
  se().currentCountry.value
900
900
  ), y = d.filter((_) => a.value || !s.includes(_.taxCode)).map((_) => ({
901
901
  label: `${_.name} (${Ge(_.rate)}%)`,
@@ -924,9 +924,9 @@ const Pt = Ye(
924
924
  e.currentSchedulerId = s;
925
925
  }, De = (s) => {
926
926
  e.currentCategoryIds = s;
927
- }, Ve = (s) => {
927
+ }, Te = (s) => {
928
928
  e.currentRestaurantAttrParams = s;
929
- }, Te = async (s, d) => {
929
+ }, Ve = async (s, d) => {
930
930
  const y = Array.isArray(s) ? s : [s];
931
931
  if (!y.length) return;
932
932
  const g = y.map((_) => ({
@@ -938,7 +938,7 @@ const Pt = Ye(
938
938
  if (d || g.some(
939
939
  (A) => [G.F_OPERATION_TYPE.delete, G.F_OPERATION_TYPE.deleteMany].includes(A.operation)
940
940
  )) {
941
- const A = await qe(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);
@@ -996,7 +996,7 @@ const Pt = Ye(
996
996
  units: we,
997
997
  recipes: Me,
998
998
  cookingGuide: Ae,
999
- skus: Ie,
999
+ skus: Ce,
1000
1000
  rules: U,
1001
1001
  taxSetting: ke,
1002
1002
  // Action
@@ -1006,13 +1006,13 @@ const Pt = Ye(
1006
1006
  selectCatalog: te,
1007
1007
  selectScheduler: Oe,
1008
1008
  selectCategory: De,
1009
- setRestaurantAttrParams: Ve,
1010
- updateMenu: Te,
1009
+ setRestaurantAttrParams: Te,
1010
+ updateMenu: Ve,
1011
1011
  updateMenuSetting: Fe,
1012
1012
  computeMergedMenu: p,
1013
1013
  // helper
1014
1014
  encodeTax: W,
1015
- decodeTax: Ce,
1015
+ decodeTax: Ie,
1016
1016
  getSelectedTax: Re,
1017
1017
  mapVariant: ge,
1018
1018
  // history
@@ -1022,17 +1022,17 @@ const Pt = Ye(
1022
1022
  redoHistory: je,
1023
1023
  // cleanup
1024
1024
  $dispose: () => {
1025
- w.cancel(), R && (R(), R = null), C && (C.stop(), C = null), Ne();
1025
+ w.cancel(), R && (R(), R = null), I && (I.stop(), I = null), Ne();
1026
1026
  },
1027
1027
  $reinitialize: () => {
1028
- Q();
1028
+ X();
1029
1029
  }
1030
1030
  };
1031
1031
  }
1032
1032
  );
1033
1033
  export {
1034
- Vt as a,
1035
- Tt as b,
1034
+ Tt as a,
1035
+ Vt as b,
1036
1036
  Ft as c,
1037
1037
  Kt as f,
1038
1038
  Dt as g,
@@ -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-U8mwR2QD.js";
4
+ import { u as k, G as M } from "./menu-CbIzWmhP.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-U8mwR2QD.js";
2
+ import { H as S, A as r, u as pe, I as ve, J as ue } from "./menu-CbIzWmhP.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-D9-zftG3.js";
5
+ import { _ as ne, a as fe } from "./customAttributes-PLOo5TFF.js";
6
6
  import { u as ye } from "./discardConfirm-BHni0LNu.js";
7
- import { u as he } from "./menu-dIq2-n2M.js";
8
- import { L as ge } from "./LinkProductSideSheet-Dl7ZCKLX.js";
7
+ import { u as he } from "./menu-DhH8YWvV.js";
8
+ import { L as ge } from "./LinkProductSideSheet-0p5Z66Ua.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-U8mwR2QD.js";
2
+ import { J as l, A as d, u as F } from "./menu-CbIzWmhP.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-G2IOgnAS.js";
5
+ import { u as v } from "./menuV2-B3QHrvzJ.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-dygqJ3VG.js";
2
- import "./menu-U8mwR2QD.js";
1
+ import { u as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-DLVjK7wR.js";
2
+ import "./menu-CbIzWmhP.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-U8mwR2QD.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-CbIzWmhP.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-G2IOgnAS.js";
10
+ import "./menuV2-B3QHrvzJ.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.57-beta.1",
3
+ "version": "0.31.58-prod",
4
4
  "files": [
5
5
  "dist"
6
6
  ],