@feedmepos/mf-menu 0.31.47-beta.2 → 0.31.47-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-CTg_6vUj.js → App-8_Vr3J1_.js} +9 -9
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-DG94_pPU.js → ApplyProduct.vue_vue_type_script_setup_true_lang-BXLO4wRK.js} +3 -3
  3. package/dist/{Catalog-Bzgts2sk.js → Catalog-CtxYDf8U.js} +6 -6
  4. package/dist/{Category-DCM45_oJ.js → Category-eJPVt-__.js} +4 -4
  5. package/dist/{Category-BIKHXRkY.js → Category-t5USmy5W.js} +6 -6
  6. package/dist/{CookingGuide-Cwa8Zvaq.js → CookingGuide-C8WASY_U.js} +4 -4
  7. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-CPhvDT5Y.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-gkkLbJmk.js} +1 -1
  8. package/dist/{Group-jykoAj91.js → Group-CvCCFBQd.js} +1 -1
  9. package/dist/{Group-BIQM-z72.js → Group-DHpRTZYX.js} +3 -3
  10. package/dist/{Group.vue_vue_type_script_setup_true_lang-BMzIgewX.js → Group.vue_vue_type_script_setup_true_lang-IAO1fyPW.js} +7 -7
  11. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DW40OxBf.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CzSyXGSd.js} +5 -5
  12. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-BunZbexX.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-BsQYL-bI.js} +7 -7
  13. package/dist/{Ingredient-Bs7l6ZOB.js → Ingredient-CQlggbtt.js} +3 -3
  14. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-DNKk5c4O.js → InventoryBinding.vue_vue_type_script_setup_true_lang-BbWRtnQ8.js} +1052 -1052
  15. package/dist/{LinkProductSideSheet-Bo842rXz.js → LinkProductSideSheet-qWebf6C7.js} +3 -3
  16. package/dist/{MenuSetting-C1g3myT1.js → MenuSetting-Cr0V03uO.js} +5 -5
  17. package/dist/{PrintRoute-F0SXUUQ8.js → PrintRoute-Be-cJqee.js} +4 -4
  18. package/dist/{Product-DXlIz2Qk.js → Product-D9PJsQWT.js} +1 -1
  19. package/dist/{Product.vue_vue_type_script_setup_true_lang-1AAs8iSp.js → Product.vue_vue_type_script_setup_true_lang-Caq2QMeN.js} +13 -13
  20. package/dist/{ProductInternalTools-4o3PTxIX.js → ProductInternalTools-Z6roJxjy.js} +6 -6
  21. package/dist/{Products-B9YN8CTT.js → Products-VEZuFeYe.js} +11 -11
  22. package/dist/{Publish-BNE_JZbm.js → Publish-VtjhyJMe.js} +3 -3
  23. package/dist/{Recipe-CJKvVwh2.js → Recipe-6lpED5Jo.js} +4 -4
  24. package/dist/{Scheduler-DBN_CArW.js → Scheduler-C8ADLbDO.js} +3 -3
  25. package/dist/{ServingSequence-DAyHUbWP.js → ServingSequence-blQqZaDi.js} +3 -3
  26. package/dist/{Setting-D47rZHbJ.js → Setting-w3lilAhR.js} +5 -5
  27. package/dist/{Subcategory-D8yScJnc.js → Subcategory-CKtwfQrk.js} +4 -4
  28. package/dist/{Takeaway-C3wKrLsn.js → Takeaway-BIs7qdXT.js} +1 -1
  29. package/dist/{Takeaway-DlS9ZfsC.js → Takeaway-PatPZog3.js} +4 -4
  30. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-DNdds488.js → Takeaway.vue_vue_type_script_setup_true_lang-DQJ1E-nv.js} +5 -5
  31. package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-qgTv9-jS.js → Thumbnail.vue_vue_type_script_setup_true_lang-D3szwli1.js} +4 -4
  32. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DSx_XMVs.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-CzK37ydr.js} +15 -15
  33. package/dist/{Unit-DxZhCF3e.js → Unit-D9K8aQkO.js} +2 -2
  34. package/dist/{Variant-CKp-skTJ.js → Variant-Mlc7mOFQ.js} +3 -3
  35. package/dist/{_id_-Ds9QZEuW.js → _id_-DSnUrneJ.js} +10 -10
  36. package/dist/{app-ahPcEM24.js → app-CFcEoZ6g.js} +26 -26
  37. package/dist/{app-DY30T0bf.js → app-DAW9YGKu.js} +1 -1
  38. package/dist/app.js +1 -1
  39. package/dist/assets/{linked-status-Nq_j-EnG.js → linked-status-CcbwR1Re.js} +2 -2
  40. package/dist/assets/{override-menu-D4Lr4hDe.js → override-menu-dSXkmmTm.js} +2 -2
  41. package/dist/assets/{validate-menu-xc2ggG-Z.js → validate-menu-8ibnWZpF.js} +2 -2
  42. package/dist/{catalog-BQ3pub_f.js → catalog-CyBWoMx9.js} +1 -1
  43. package/dist/{catalogSetting-CWxy4N_P.js → catalogSetting-BEuK6iSU.js} +1 -1
  44. package/dist/{category-BEL6Zn3H.js → category-CH86FpDF.js} +1 -1
  45. package/dist/{currency-QvNDYZeQ.js → currency-B7e3Bn-5.js} +1 -1
  46. package/dist/{customAttributes-BLzOgSG7.js → customAttributes-C5SxhXst.js} +1 -1
  47. package/dist/{dayjs.min-B_ga73mA.js → dayjs.min-0wOo37zY.js} +1 -1
  48. package/dist/{index-DrF7dMbl.js → index-BQRQtKtb.js} +4 -4
  49. package/dist/{index-C-h0yNfj.js → index-C4wpev23.js} +1 -1
  50. package/dist/{index-BzWG1buw.js → index-CcWwRY7j.js} +3 -3
  51. package/dist/{index-BDMkU-Zt.js → index-wQFnsXZM.js} +1 -1
  52. package/dist/{item-3j6cgIMs.js → item-YOVwd-Jf.js} +677 -677
  53. package/dist/{jszip.min-Apg35uVE.js → jszip.min-DdVRNxeR.js} +353 -353
  54. package/dist/{menu-CQeeYRbK.js → menu-5V5zXzja.js} +1 -1
  55. package/dist/{menu-DdAdjvV6.js → menu-DPDGA5BU.js} +7 -7
  56. package/dist/{menuV2-mjlaHb_o.js → menuV2-DrMICNsd.js} +63 -63
  57. package/dist/{priceTier-A9x4t7Hv.js → priceTier-ZWgpadCg.js} +1 -1
  58. package/dist/{scheduler-BYNC_2IB.js → scheduler-BhONdYht.js} +4 -4
  59. package/dist/{subcategory-BabsTiSa.js → subcategory-BWp35Kp3.js} +2 -2
  60. package/dist/{toExcel-DT6bLZtl.js → toExcel-D0K9W29E.js} +2 -2
  61. package/dist/{unit-B3nuUocE.js → unit-DkmcIwvs.js} +2 -2
  62. package/package.json +1 -1
@@ -1,15 +1,15 @@
1
- import { ao as z, H as k, D as I, A as J, ap as W, J as D, I as Y, a9 as w, c as V, X as E, aj as B, aq as Me, ar as Ee, B as ke, ab as Ie, as as Re, at as Te, a8 as Fe } from "./menu-DdAdjvV6.js";
1
+ import { ao as L, H as k, D as E, A as J, ap as q, J as U, I as X, a9 as w, c as N, X as R, aj as B, aq as Me, ar as Re, B as ke, ab as Ee, as as Ie, at as Te, a8 as Fe } from "./menu-DPDGA5BU.js";
2
2
  import { defineStore as Ae } from "pinia";
3
- import { shallowRef as X, ref as U, computed as h, shallowReactive as Pe, effectScope as Ke, watch as Ne } from "vue";
4
- import { useCoreStore as L } from "@feedmepos/mf-common";
5
- import { useSnackbar as Oe } from "@feedmepos/ui-library";
6
- const Ve = "/assets/linked-status-Nq_j-EnG.js", xe = "/assets/override-menu-D4Lr4hDe.js";
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 z } from "@feedmepos/mf-common";
5
+ import { useSnackbar as Ve } from "@feedmepos/ui-library";
6
+ const Ne = "/assets/linked-status-CcbwR1Re.js", xe = "/assets/override-menu-dSXkmmTm.js";
7
7
  function $e(e) {
8
8
  var a;
9
9
  const n = k(e), o = (a = n.variant) == null ? void 0 : a.variantCombinations;
10
10
  return delete n.variant, delete n.thumbnail, [n, ...o || []];
11
11
  }
12
- function De(e, n, o, a) {
12
+ function Ue(e, n, o, a) {
13
13
  const r = k(n), l = o ? r.modules.catalog.find((_) => _._id === o) : null, d = a ? r.modules.scheduler.find((_) => _._id === a) : null, i = l ? k(l) : void 0, c = o ? r.modules.catalog.filter((_) => _._id !== o) : [], m = d ? k(d) : void 0, f = e.reduce((_, y) => (_[y._id] = $e(y), _), {});
14
14
  function v(_ = []) {
15
15
  const y = e.map((C) => C._id);
@@ -35,9 +35,9 @@ function De(e, n, o, a) {
35
35
  ...r.modules.scheduler.filter((_) => _._id !== a),
36
36
  m
37
37
  ], r) : {
38
- ...W(),
38
+ ...q(),
39
39
  modules: {
40
- ...W().modules,
40
+ ...q().modules,
41
41
  catalog: r.modules.catalog,
42
42
  item: r.modules.item,
43
43
  group: r.modules.group,
@@ -59,7 +59,7 @@ function T(e, n, o) {
59
59
  return i ? c = ((f = d.items) == null ? void 0 : f.map((_) => {
60
60
  var C;
61
61
  const y = (C = i.items) == null ? void 0 : C.find(
62
- (R) => R._id === _._id && R.combinationKey === _.combinationKey
62
+ (I) => I._id === _._id && I.combinationKey === _.combinationKey
63
63
  );
64
64
  return T(y || _, n, o + 1);
65
65
  })) ?? [] : c = ((v = d.items) == null ? void 0 : v.map((_) => T(_, n, o + 1))) ?? [], {
@@ -75,7 +75,7 @@ function T(e, n, o) {
75
75
  groups: r
76
76
  };
77
77
  }
78
- function Ue(e, n) {
78
+ function De(e, n) {
79
79
  const o = e.groups.map((l) => {
80
80
  const d = n.modules.group.find((c) => c._id === l._id), i = ((d == null ? void 0 : d.items) || []).map((c) => {
81
81
  var v;
@@ -85,7 +85,7 @@ function Ue(e, n) {
85
85
  if (m)
86
86
  return T(m, n, 1);
87
87
  const f = {
88
- ...I.generator.initMenuV4ItemOverrider(),
88
+ ...E.generator.initMenuV4ItemOverrider(),
89
89
  _id: c._id,
90
90
  combinationKey: c.combinationKey
91
91
  };
@@ -93,7 +93,7 @@ function Ue(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
- ...I.generator.initMenuV4ItemOverrider(),
96
+ ...E.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 = k(o), i = l ? De(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 = k(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
- return v[y] = Ue(c[y], e), v;
156
- }, {}), f = I.getFallbackPrices({
155
+ return v[y] = De(c[y], e), v;
156
+ }, {}), f = E.getFallbackPrices({
157
157
  rawMenu: i,
158
158
  items: m,
159
159
  catalogId: a || void 0,
@@ -185,8 +185,8 @@ async function nt(e, n) {
185
185
  const o = `${e._id}-${e.updatedAt}-${n}`;
186
186
  if (x.has(o))
187
187
  return x.get(o);
188
- const a = await z(
189
- Ve,
188
+ const a = await L(
189
+ Ne,
190
190
  JSON.stringify({
191
191
  menu: e,
192
192
  itemId: n
@@ -195,7 +195,7 @@ async function nt(e, n) {
195
195
  return x.set(o, a), a;
196
196
  }
197
197
  async function Q(e, n, o) {
198
- return await z(xe, {
198
+ return await L(xe, {
199
199
  menu: e,
200
200
  catalogId: n,
201
201
  schedulerId: o
@@ -254,8 +254,8 @@ async function st(e, n, o) {
254
254
  var F, A;
255
255
  const C = y.combinationKey ? (A = (F = f == null ? void 0 : f.variant) == null ? void 0 : F.variantCombinations) == null ? void 0 : A.find(
256
256
  (P) => P.combinationKey === y.combinationKey
257
- ) : f, R = C && f ? l(f, C) : y;
258
- return l(R, y);
257
+ ) : f, I = C && f ? l(f, C) : y;
258
+ return l(I, y);
259
259
  });
260
260
  r.push({
261
261
  group: c,
@@ -265,10 +265,10 @@ async function st(e, n, o) {
265
265
  }
266
266
  return r;
267
267
  }
268
- function je({
268
+ function We({
269
269
  maxHistorySize: e = 50
270
270
  }) {
271
- const n = X([]), o = U(-1), a = h(() => o.value > 0), r = h(() => o.value < n.value.length - 1);
271
+ const n = Y([]), 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
  }
@@ -292,9 +292,9 @@ function je({
292
292
  clear: c
293
293
  };
294
294
  }
295
- const qe = {
295
+ const je = {
296
296
  async updateMenuModule(e, n) {
297
- const o = D.RequestRunner.operation(n, e.modules);
297
+ const o = U.RequestRunner.operation(n, e.modules);
298
298
  if (o.validateError.length > 0)
299
299
  throw new Error(o.validateError.join(`
300
300
  `));
@@ -303,7 +303,7 @@ const qe = {
303
303
  modules: o.result || e.modules,
304
304
  _rev: o.id ?? ""
305
305
  };
306
- return Y.cloneDeep({ menu: a, updateId: o.id ?? null });
306
+ return X.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 We() {
332
+ function qe() {
333
333
  return {
334
334
  restaurants: [],
335
335
  menu: { ...Z(), _rev: "" },
@@ -345,12 +345,12 @@ function We() {
345
345
  const at = Ae(
346
346
  "mf-menu-store-v2",
347
347
  () => {
348
- const e = Pe(We()), n = L(), o = Oe(), a = h(() => e.menu.modules.serveSequence ? w(e.menu.modules.serveSequence, {
348
+ const e = Pe(qe()), n = z(), o = Ve(), a = h(() => e.menu.modules.serveSequence ? w(e.menu.modules.serveSequence, {
349
349
  selector: "position"
350
350
  }) : []), r = h(() => {
351
351
  var t;
352
- return ((t = n.currentBusiness.value) == null ? void 0 : t.menuVersion) || V.F_MENU_VERSION.v3;
353
- }), l = h(() => r.value === V.F_MENU_VERSION.v4), d = h(() => {
352
+ return ((t = n.currentBusiness.value) == null ? void 0 : t.menuVersion) || N.F_MENU_VERSION.v3;
353
+ }), l = h(() => r.value === N.F_MENU_VERSION.v4), d = h(() => {
354
354
  const t = e.menu.modules.catalog;
355
355
  return w(t, { selector: "name" });
356
356
  }), i = h(() => {
@@ -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 = I.populateCatalog({
361
+ return t && ((s = t.linkItemRules) != null && s.length) && (t = E.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 = X(Z()), _ = U(!1), y = U(1);
373
+ const v = Y(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 = I.populateCatalog({
379
+ const p = E.populateCatalog({
380
380
  catalog: i.value,
381
381
  ruleGroupSettings: e.menu.ruleGroupSettings,
382
382
  items: e.menu.modules.item,
@@ -405,9 +405,9 @@ const at = Ae(
405
405
  }
406
406
  return v.value = s, _.value = !1, y.value = y.value + 1, s;
407
407
  }
408
- const F = Y.debounce(C, 200);
408
+ const F = X.debounce(C, 200);
409
409
  Ke(!0).run(() => {
410
- Ne(
410
+ Oe(
411
411
  () => [e.menu, e.currentCatalogId, e.currentSchedulerId],
412
412
  () => {
413
413
  _.value || F();
@@ -426,19 +426,19 @@ const at = Ae(
426
426
  ]), G = h(() => {
427
427
  const t = v.value.modules.category;
428
428
  return [
429
- ...N.value.item.addon ? [
429
+ ...O.value.item.addon ? [
430
430
  {
431
431
  _id: e.currentCatalogId ? "" : null,
432
432
  name: "Addon",
433
433
  position: 0
434
434
  }
435
435
  ] : [],
436
- ...E(t, (s) => s.name)
436
+ ...R(t, (s) => s.name)
437
437
  ];
438
438
  }), ee = h(() => {
439
439
  const t = v.value.modules.subCategory || [];
440
- return E(t, (s) => s.name);
441
- }), j = h(() => {
440
+ return R(t, (s) => s.name);
441
+ }), W = 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 E(t, (u) => u.code || u.name);
454
+ return R(t, (u) => u.code || u.name);
455
455
  }), te = h(() => {
456
- const t = e.menu.modules.category, s = E(t, (p) => p.name).reduce(
456
+ const t = e.menu.modules.category, s = R(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 E(
460
+ return R(
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, j.value)), re = h(() => {
465
- const t = N.value.item.addon ? [
464
+ }), ne = h(() => B(K.value, G.value, W.value)), re = h(() => {
465
+ const t = O.value.item.addon ? [
466
466
  {
467
467
  _id: e.currentCatalogId ? "" : null,
468
468
  name: "Addon",
@@ -481,17 +481,17 @@ const at = Ae(
481
481
  });
482
482
  function oe(t = []) {
483
483
  const s = t.map((p) => K.value.find((g) => g._id === p)).filter((p) => !!p);
484
- return I.fullVariantCombination(s).reduce((p, g) => (p[g.combinationKey] = g.selectionName.join(" / "), p), {});
484
+ return E.fullVariantCombination(s).reduce((p, g) => (p[g.combinationKey] = g.selectionName.join(" / "), p), {});
485
485
  }
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 || [], {
486
+ const se = h(() => R(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 = Ee(e.menu.modules.sku);
491
+ const t = Re(e.menu.modules.sku);
492
492
  return w(t, { selector: "code" });
493
- }), N = h(() => {
494
- const t = !e.currentCatalogId, s = r.value === V.F_MENU_VERSION.v4, u = !e.currentSchedulerId, p = {
493
+ }), O = h(() => {
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,
497
497
  delete: t && u
@@ -559,7 +559,7 @@ const at = Ae(
559
559
  }
560
560
  };
561
561
  });
562
- function O(t) {
562
+ function V(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) => O(p)).find((p) => u.some((g) => g.value === p));
570
+ return (t ?? s ?? []).map((p) => V(p)).find((p) => u.some((g) => g.value === p));
571
571
  }
572
572
  const pe = h(() => {
573
573
  var p;
574
574
  const t = ["SV5", "SV10"], s = ke.Country.getCountryFlattenTaxes(
575
- L().currentCountry.value
575
+ z().currentCountry.value
576
576
  ), u = s.filter((g) => l.value || !t.includes(g.taxCode)).map((g) => ({
577
- label: `${g.name} (${Ie(g.rate)}%)`,
578
- value: O(g),
577
+ label: `${g.name} (${Ee(g.rate)}%)`,
578
+ value: V(g),
579
579
  meta: {
580
580
  rate: g.rate
581
581
  }
@@ -586,7 +586,7 @@ const at = Ae(
586
586
  };
587
587
  }), ve = async () => {
588
588
  const t = await Fe.readMenu();
589
- e.menu = t ?? e.menu, q(null);
589
+ e.menu = t ?? e.menu, j(null);
590
590
  }, ge = async () => {
591
591
  const { fetchAllRestaurants: t } = Te();
592
592
  await t({
@@ -594,7 +594,7 @@ const at = Ae(
594
594
  e.restaurants = s;
595
595
  }
596
596
  });
597
- }, q = (t) => {
597
+ }, j = (t) => {
598
598
  e.currentCatalogId = t;
599
599
  }, _e = (t) => {
600
600
  e.currentSchedulerId = t;
@@ -612,12 +612,12 @@ const at = Ae(
612
612
  }));
613
613
  try {
614
614
  if (s || p.some(
615
- (S) => [D.F_OPERATION_TYPE.delete, D.F_OPERATION_TYPE.deleteMany].includes(S.operation)
615
+ (S) => [U.F_OPERATION_TYPE.delete, U.F_OPERATION_TYPE.deleteMany].includes(S.operation)
616
616
  )) {
617
- const S = await Re(p, e.menu.modules);
617
+ const S = await Ie(p, e.menu.modules);
618
618
  if (S !== !0) throw new Error(S);
619
619
  }
620
- const g = await qe.updateMenuModule(e.menu, p);
620
+ const g = await je.updateMenuModule(e.menu, p);
621
621
  return f(g.menu), g;
622
622
  } catch (g) {
623
623
  o.open({
@@ -634,7 +634,7 @@ const at = Ae(
634
634
  priceTierSettings: t.priceTierSettings
635
635
  };
636
636
  return f(s), s;
637
- }, M = je({ maxHistorySize: 50 }), be = h(() => M.canUndo.value), we = h(() => M.canRedo.value);
637
+ }, M = We({ maxHistorySize: 50 }), be = h(() => M.canUndo.value), we = h(() => M.canRedo.value);
638
638
  return {
639
639
  state: e,
640
640
  // loading state
@@ -653,7 +653,7 @@ const at = Ae(
653
653
  catalogOptions: P,
654
654
  categories: G,
655
655
  subcategories: ee,
656
- items: j,
656
+ items: W,
657
657
  sortedItems: te,
658
658
  categorizedItems: ne,
659
659
  categorizedRawMenuItems: re,
@@ -665,13 +665,13 @@ const at = Ae(
665
665
  recipes: ce,
666
666
  cookingGuide: le,
667
667
  skus: de,
668
- rules: N,
668
+ rules: O,
669
669
  taxSetting: pe,
670
670
  // Action
671
671
  setMenu: f,
672
672
  readMenu: ve,
673
673
  readRestaurants: ge,
674
- selectCatalog: q,
674
+ selectCatalog: j,
675
675
  selectScheduler: _e,
676
676
  selectCategory: ye,
677
677
  setRestaurantAttrParams: he,
@@ -679,7 +679,7 @@ const at = Ae(
679
679
  updateMenuSetting: Ce,
680
680
  computeMergedMenu: C,
681
681
  // helper
682
- encodeTax: O,
682
+ encodeTax: V,
683
683
  decodeTax: me,
684
684
  getSelectedTax: fe,
685
685
  mapVariant: oe,
@@ -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-DdAdjvV6.js";
4
+ import { u as k, G as M } from "./menu-DPDGA5BU.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-DdAdjvV6.js";
2
+ import { H as S, A as r, u as pe, I as ve, J as ue } from "./menu-DPDGA5BU.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-BLzOgSG7.js";
5
+ import { _ as ne, a as fe } from "./customAttributes-C5SxhXst.js";
6
6
  import { u as ye } from "./discardConfirm-BHni0LNu.js";
7
- import { u as he } from "./menu-CQeeYRbK.js";
8
- import { L as ge } from "./LinkProductSideSheet-Bo842rXz.js";
7
+ import { u as he } from "./menu-5V5zXzja.js";
8
+ import { L as ge } from "./LinkProductSideSheet-qWebf6C7.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-DdAdjvV6.js";
2
+ import { J as l, A as d, u as F } from "./menu-DPDGA5BU.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-mjlaHb_o.js";
5
+ import { u as v } from "./menuV2-DrMICNsd.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-BunZbexX.js";
2
- import "./menu-DdAdjvV6.js";
1
+ import { u as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-BsQYL-bI.js";
2
+ import "./menu-DPDGA5BU.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 { a6 as P, a7 as te, a4 as B, H as k, O as $, G as I, D as E, a5 as ne, J as C, A as D, I as oe, u as ae } from "./menu-DdAdjvV6.js";
3
+ import { a6 as P, a7 as te, a4 as B, H as k, O as $, G as I, D as E, a5 as ne, J as C, A as D, I as oe, u as ae } from "./menu-DPDGA5BU.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-mjlaHb_o.js";
10
+ import "./menuV2-DrMICNsd.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.47-beta.2",
3
+ "version": "0.31.47-prod",
4
4
  "files": [
5
5
  "dist"
6
6
  ],