@feedmepos/mf-menu 0.31.42-beta.2 → 0.31.42-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-BIRrS3La.js → App-2JChZsbD.js} +9 -9
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-Ch7-ic6J.js → ApplyProduct.vue_vue_type_script_setup_true_lang-D2LLOZrw.js} +3 -3
  3. package/dist/{Catalog-B605xVZR.js → Catalog-BmiGl1s_.js} +6 -6
  4. package/dist/{Category-BXoK_pgb.js → Category-BV4b15dp.js} +4 -4
  5. package/dist/{Category-BoRXo44K.js → Category-C4aYzE74.js} +6 -6
  6. package/dist/{CookingGuide-BauVrnFT.js → CookingGuide-CcdqS3EL.js} +4 -4
  7. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-BbRLZXiA.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-Brcc_WN7.js} +1 -1
  8. package/dist/{Group-CxV0o5XZ.js → Group-DTRgvVko.js} +3 -3
  9. package/dist/{Group-DRbXetRS.js → Group-DYnOQq0q.js} +1 -1
  10. package/dist/{Group.vue_vue_type_script_setup_true_lang-xLMGdgte.js → Group.vue_vue_type_script_setup_true_lang-BJiPe3tH.js} +7 -7
  11. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DX-FW2lM.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BBeDpoKA.js} +5 -5
  12. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-Dk-hs_07.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-Do-V1ceo.js} +7 -7
  13. package/dist/{Ingredient-awz_D3J6.js → Ingredient-BGRNUHBO.js} +3 -3
  14. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-TYmfJm0p.js → InventoryBinding.vue_vue_type_script_setup_true_lang-B8UmHWQq.js} +1052 -1052
  15. package/dist/{LinkProductSideSheet-CpLGN83Z.js → LinkProductSideSheet-zAHlypah.js} +3 -3
  16. package/dist/{MenuSetting-Zd37XWJ4.js → MenuSetting-CJb8sWNZ.js} +5 -5
  17. package/dist/{PrintRoute-PgumrAcK.js → PrintRoute-nSaHp9qi.js} +4 -4
  18. package/dist/{Product-Cf4qQ2Hs.js → Product-BULdwb1Q.js} +1 -1
  19. package/dist/{Product.vue_vue_type_script_setup_true_lang-DfDnuNhp.js → Product.vue_vue_type_script_setup_true_lang-CBh0gBr2.js} +13 -13
  20. package/dist/{ProductInternalTools-BBhv0ttl.js → ProductInternalTools-CPDtesKz.js} +6 -6
  21. package/dist/{Products-FdE9wKzA.js → Products-B_VJPTVs.js} +11 -11
  22. package/dist/{Publish-CuoBeIsQ.js → Publish-DHIlFwkI.js} +3 -3
  23. package/dist/{Recipe-CC6dLu9a.js → Recipe-CldQTZfD.js} +4 -4
  24. package/dist/{Scheduler-CZzjfN-Y.js → Scheduler-DHQiJk0r.js} +3 -3
  25. package/dist/{ServingSequence-BxEf5yPv.js → ServingSequence-HAF3-DVb.js} +3 -3
  26. package/dist/{Setting-CBTJrbRH.js → Setting-C0tsedhx.js} +5 -5
  27. package/dist/{Subcategory-0-emUIEr.js → Subcategory-DeUrA-yT.js} +4 -4
  28. package/dist/{Takeaway-z7WRCQCI.js → Takeaway-BAl6SWU-.js} +4 -4
  29. package/dist/{Takeaway-BA_VKKUw.js → Takeaway-CnqY1GJT.js} +1 -1
  30. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-CeKSmOQV.js → Takeaway.vue_vue_type_script_setup_true_lang-BLIT_vSE.js} +5 -5
  31. package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-tqQkazvr.js → Thumbnail.vue_vue_type_script_setup_true_lang-CTXytwNl.js} +4 -4
  32. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-CN8Zglcy.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DC64EAri.js} +15 -15
  33. package/dist/{Unit-CndLlk_X.js → Unit-BNghOE-p.js} +2 -2
  34. package/dist/{Variant-DdeZ3f6x.js → Variant-BJgWQnCr.js} +3 -3
  35. package/dist/{_id_-D9_6BBVX.js → _id_-DyxLgR7H.js} +10 -10
  36. package/dist/{app-CoO3BIEu.js → app-BrdLq53I.js} +25 -25
  37. package/dist/{app-BAhzMO2K.js → app-CUB5WG-_.js} +1 -1
  38. package/dist/app.js +1 -1
  39. package/dist/assets/{linked-status-BBTvedGe.js → linked-status-Dydn-qHJ.js} +2 -2
  40. package/dist/assets/{override-menu-rN2lSipP.js → override-menu-BZxKccD-.js} +2 -2
  41. package/dist/assets/{validate-menu-DlbGSq3_.js → validate-menu-yzthJ_kL.js} +2 -2
  42. package/dist/{catalog-Bv-at1c9.js → catalog-D_-zPbeP.js} +1 -1
  43. package/dist/{catalogSetting-CdOR5osN.js → catalogSetting-DYqtFHuW.js} +1 -1
  44. package/dist/{category-BkiR9ct2.js → category-Ds6mhoE_.js} +1 -1
  45. package/dist/{currency-5Q0W6WOS.js → currency-D0LVH4Rm.js} +1 -1
  46. package/dist/{customAttributes-DYZ1-Ak2.js → customAttributes-B0VHSDMv.js} +1 -1
  47. package/dist/{dayjs.min-DObqJaNF.js → dayjs.min-Dv2twIbC.js} +1 -1
  48. package/dist/{index-CAt03gJQ.js → index-BHoiDppz.js} +3 -3
  49. package/dist/{index-7Gro_wfy.js → index-DKi3mpaS.js} +1 -1
  50. package/dist/{index-B4MWwakK.js → index-DZ46q9oh.js} +1 -1
  51. package/dist/{index-RfSFByAn.js → index-N5K98R3Q.js} +4 -4
  52. package/dist/{item-UogIz2VR.js → item-C8iSUmWK.js} +386 -386
  53. package/dist/{jszip.min-9fOTOLzt.js → jszip.min-ubvTgNXq.js} +2 -2
  54. package/dist/{menu-onwhSbn-.js → menu-CdKiY8ht.js} +1 -1
  55. package/dist/{menu-DA-IYwFx.js → menu-Cvzv8myY.js} +7 -7
  56. package/dist/{menuV2-1-YKf6_A.js → menuV2-h9I06V2J.js} +66 -66
  57. package/dist/{priceTier-1gQSMcbN.js → priceTier-B_8G5Phm.js} +1 -1
  58. package/dist/{scheduler-BfZTL5YU.js → scheduler-C7YXb2vA.js} +4 -4
  59. package/dist/{subcategory-JVtc0Fwc.js → subcategory-BoSu3WbF.js} +2 -2
  60. package/dist/{toExcel-B4k_d7u6.js → toExcel-Da46LGX1.js} +2 -2
  61. package/dist/{unit-DgmJTaJY.js → unit-a1gpxhcI.js} +2 -2
  62. package/package.json +1 -1
@@ -1,15 +1,15 @@
1
- import { ao as L, H as k, D as I, A as J, ap as j, J as U, I as Y, a9 as w, c as V, X as E, aj as q, aq as Me, ar as Ee, B as ke, ab as Ie, as as Re, at as Te, a8 as Fe } from "./menu-DA-IYwFx.js";
2
- import { defineStore as Pe } from "pinia";
3
- import { shallowRef as X, ref as D, computed as h, shallowReactive as Ae, effectScope as Ke, watch as Ne } from "vue";
1
+ import { ao as L, H as k, D as I, A as J, ap as W, J as D, I as Y, a9 as w, c as x, X as E, aj as j, aq as Me, ar as Ee, B as ke, ab as Ie, as as Re, at as Te, a8 as Fe } from "./menu-Cvzv8myY.js";
2
+ import { defineStore as Ae } from "pinia";
3
+ import { shallowRef as X, ref as U, computed as h, shallowReactive as Ke, effectScope as Pe, watch as Oe } from "vue";
4
4
  import { useCoreStore as z } from "@feedmepos/mf-common";
5
- import { useSnackbar as Oe } from "@feedmepos/ui-library";
6
- const Ve = "/assets/linked-status-BBTvedGe.js", xe = "/assets/override-menu-rN2lSipP.js";
5
+ import { useSnackbar as Ve } from "@feedmepos/ui-library";
6
+ const xe = "/assets/linked-status-Dydn-qHJ.js", Ne = "/assets/override-menu-BZxKccD-.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 Ue(e, n, o, a) {
12
+ function De(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 Ue(e, n, o, a) {
35
35
  ...r.modules.scheduler.filter((_) => _._id !== a),
36
36
  m
37
37
  ], r) : {
38
- ...j(),
38
+ ...W(),
39
39
  modules: {
40
- ...j().modules,
40
+ ...W().modules,
41
41
  catalog: r.modules.catalog,
42
42
  item: r.modules.item,
43
43
  group: r.modules.group,
@@ -75,7 +75,7 @@ function T(e, n, o) {
75
75
  groups: r
76
76
  };
77
77
  }
78
- function De(e, n) {
78
+ function Ue(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;
@@ -150,9 +150,9 @@ 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 ? 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 = 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, _) => {
154
154
  const y = _._id;
155
- return v[y] = De(c[y], e), v;
155
+ return v[y] = Ue(c[y], e), v;
156
156
  }, {}), f = I.getFallbackPrices({
157
157
  rawMenu: i,
158
158
  items: m,
@@ -180,22 +180,22 @@ function tt(e, n) {
180
180
  return r;
181
181
  }, [])) || []).join(" / ");
182
182
  }
183
- const x = /* @__PURE__ */ new Map();
183
+ const N = /* @__PURE__ */ new Map();
184
184
  async function nt(e, n) {
185
185
  const o = `${e._id}-${e.updatedAt}-${n}`;
186
- if (x.has(o))
187
- return x.get(o);
186
+ if (N.has(o))
187
+ return N.get(o);
188
188
  const a = await L(
189
- Ve,
189
+ xe,
190
190
  JSON.stringify({
191
191
  menu: e,
192
192
  itemId: n
193
193
  })
194
194
  );
195
- return x.set(o, a), a;
195
+ return N.set(o, a), a;
196
196
  }
197
- async function Q(e, n, o) {
198
- return await L(xe, {
197
+ async function Z(e, n, o) {
198
+ return await L(Ne, {
199
199
  menu: e,
200
200
  catalogId: n,
201
201
  schedulerId: o
@@ -232,16 +232,16 @@ function ot(e, n, o) {
232
232
  return r(n, o);
233
233
  }
234
234
  const $ = /* @__PURE__ */ new Map();
235
- async function Be(e, n, o) {
235
+ async function qe(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 Q(e, n, o);
239
+ const r = await Z(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 Be(e, n, null), r = [], l = (c, m) => {
244
+ const a = await qe(e, n, null), r = [], l = (c, m) => {
245
245
  const f = k(c);
246
246
  for (const v in m)
247
247
  m[v] && (f[v] = m[v]);
@@ -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, 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
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
+ (K) => K.combinationKey === y.combinationKey
257
257
  ) : f, R = C && f ? l(f, C) : y;
258
258
  return l(R, y);
259
259
  });
@@ -265,10 +265,10 @@ async function st(e, n, o) {
265
265
  }
266
266
  return r;
267
267
  }
268
- function Ge({
268
+ function Be({
269
269
  maxHistorySize: e = 50
270
270
  }) {
271
- const n = X([]), o = D(-1), a = h(() => o.value > 0), r = h(() => o.value < n.value.length - 1);
271
+ const n = X([]), o = U(-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 Ge({
292
292
  clear: c
293
293
  };
294
294
  }
295
- const We = {
295
+ const Ge = {
296
296
  async updateMenuModule(e, n) {
297
- const o = U.RequestRunner.operation(n, e.modules);
297
+ const o = D.RequestRunner.operation(n, e.modules);
298
298
  if (o.validateError.length > 0)
299
299
  throw new Error(o.validateError.join(`
300
300
  `));
@@ -306,7 +306,7 @@ const We = {
306
306
  return Y.cloneDeep({ menu: a, updateId: o.id ?? null });
307
307
  }
308
308
  };
309
- function Z() {
309
+ function Q() {
310
310
  return {
311
311
  _id: "",
312
312
  masterCatalogSetting: { inclusiveTaxes: [] },
@@ -329,10 +329,10 @@ function Z() {
329
329
  updatedAt: (/* @__PURE__ */ new Date()).toISOString()
330
330
  };
331
331
  }
332
- function je() {
332
+ function We() {
333
333
  return {
334
334
  restaurants: [],
335
- menu: { ...Z(), _rev: "" },
335
+ menu: { ...Q(), _rev: "" },
336
336
  currentCatalogId: null,
337
337
  currentCategoryIds: null,
338
338
  currentSchedulerId: "",
@@ -342,15 +342,15 @@ function je() {
342
342
  }
343
343
  };
344
344
  }
345
- const at = Pe(
345
+ const at = Ae(
346
346
  "mf-menu-store-v2",
347
347
  () => {
348
- const e = Ae(je()), n = z(), o = Oe(), a = h(() => e.menu.modules.serveSequence ? w(e.menu.modules.serveSequence, {
348
+ const e = Ke(We()), 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) || x.F_MENU_VERSION.v3;
353
+ }), l = h(() => r.value === x.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(() => {
@@ -370,7 +370,7 @@ const at = Pe(
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()), _ = D(!1), y = D(1);
373
+ const v = X(Q()), _ = U(!1), y = U(1);
374
374
  async function C() {
375
375
  var u;
376
376
  _.value = !0;
@@ -384,7 +384,7 @@ const at = Pe(
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 Q(
387
+ const s = await Z(
388
388
  {
389
389
  ...e.menu,
390
390
  modules: {
@@ -406,15 +406,15 @@ const at = Pe(
406
406
  return v.value = s, _.value = !1, y.value = y.value + 1, s;
407
407
  }
408
408
  const F = Y.debounce(C, 200);
409
- Ke(!0).run(() => {
410
- Ne(
409
+ Pe(!0).run(() => {
410
+ Oe(
411
411
  () => [e.menu, e.currentCatalogId, e.currentSchedulerId],
412
412
  () => {
413
413
  _.value || F();
414
414
  }
415
415
  );
416
416
  });
417
- const A = h(() => [
417
+ const K = h(() => [
418
418
  {
419
419
  label: "Main",
420
420
  value: null
@@ -423,10 +423,10 @@ const at = Pe(
423
423
  label: t.name,
424
424
  value: t._id
425
425
  }))
426
- ]), B = h(() => {
426
+ ]), q = 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",
@@ -438,7 +438,7 @@ const at = Pe(
438
438
  }), ee = h(() => {
439
439
  const t = v.value.modules.subCategory || [];
440
440
  return E(t, (s) => s.name);
441
- }), G = h(() => {
441
+ }), B = h(() => {
442
442
  var s;
443
443
  let t = v.value.modules.item;
444
444
  if (i.value) {
@@ -461,8 +461,8 @@ const at = Pe(
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(() => q(K.value, B.value, G.value)), re = h(() => {
465
- const t = N.value.item.addon ? [
464
+ }), ne = h(() => j(P.value, q.value, B.value)), re = h(() => {
465
+ const t = O.value.item.addon ? [
466
466
  {
467
467
  _id: e.currentCatalogId ? "" : null,
468
468
  name: "Addon",
@@ -470,17 +470,17 @@ const at = Pe(
470
470
  },
471
471
  ...e.menu.modules.category
472
472
  ] : e.menu.modules.category;
473
- return q(
473
+ return j(
474
474
  e.menu.modules.variant,
475
475
  t,
476
476
  e.menu.modules.item
477
477
  );
478
- }), K = h(() => {
478
+ }), P = 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);
483
+ const s = t.map((p) => P.value.find((g) => g._id === p)).filter((p) => !!p);
484
484
  return I.fullVariantCombination(s).reduce((p, g) => (p[g.combinationKey] = g.selectionName.join(" / "), p), {});
485
485
  }
486
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 || [], {
@@ -490,8 +490,8 @@ const at = Pe(
490
490
  })), le = h(() => e.menu.modules.cookingGuide), de = h(() => {
491
491
  const t = Ee(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 === x.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 = Pe(
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,7 +567,7 @@ const at = Pe(
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;
@@ -575,7 +575,7 @@ const at = Pe(
575
575
  z().currentCountry.value
576
576
  ), u = s.filter((g) => l.value || !t.includes(g.taxCode)).map((g) => ({
577
577
  label: `${g.name} (${Ie(g.rate)}%)`,
578
- value: O(g),
578
+ value: V(g),
579
579
  meta: {
580
580
  rate: g.rate
581
581
  }
@@ -586,7 +586,7 @@ const at = Pe(
586
586
  };
587
587
  }), ve = async () => {
588
588
  const t = await Fe.readMenu();
589
- e.menu = t ?? e.menu, W(null);
589
+ e.menu = t ?? e.menu, G(null);
590
590
  }, ge = async () => {
591
591
  const { fetchAllRestaurants: t } = Te();
592
592
  await t({
@@ -594,7 +594,7 @@ const at = Pe(
594
594
  e.restaurants = s;
595
595
  }
596
596
  });
597
- }, W = (t) => {
597
+ }, G = (t) => {
598
598
  e.currentCatalogId = t;
599
599
  }, _e = (t) => {
600
600
  e.currentSchedulerId = t;
@@ -612,12 +612,12 @@ const at = Pe(
612
612
  }));
613
613
  try {
614
614
  if (s || p.some(
615
- (S) => [U.F_OPERATION_TYPE.delete, U.F_OPERATION_TYPE.deleteMany].includes(S.operation)
615
+ (S) => [D.F_OPERATION_TYPE.delete, D.F_OPERATION_TYPE.deleteMany].includes(S.operation)
616
616
  )) {
617
617
  const S = await Re(p, e.menu.modules);
618
618
  if (S !== !0) throw new Error(S);
619
619
  }
620
- const g = await We.updateMenuModule(e.menu, p);
620
+ const g = await Ge.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 = Pe(
634
634
  priceTierSettings: t.priceTierSettings
635
635
  };
636
636
  return f(s), s;
637
- }, M = Ge({ maxHistorySize: 50 }), be = h(() => M.canUndo.value), we = h(() => M.canRedo.value);
637
+ }, M = Be({ 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 = Pe(
650
650
  currentCatalog: i,
651
651
  schedulers: c,
652
652
  currentScheduler: m,
653
- catalogOptions: A,
654
- categories: B,
653
+ catalogOptions: K,
654
+ categories: q,
655
655
  subcategories: ee,
656
- items: G,
656
+ items: B,
657
657
  sortedItems: te,
658
658
  categorizedItems: ne,
659
659
  categorizedRawMenuItems: re,
660
- variants: K,
660
+ variants: P,
661
661
  groups: se,
662
662
  takeaways: ae,
663
663
  printDepartments: ue,
@@ -665,13 +665,13 @@ const at = Pe(
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: W,
674
+ selectCatalog: G,
675
675
  selectScheduler: _e,
676
676
  selectCategory: ye,
677
677
  setRestaurantAttrParams: he,
@@ -679,7 +679,7 @@ const at = Pe(
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,
@@ -707,6 +707,6 @@ export {
707
707
  st as f,
708
708
  tt as g,
709
709
  et as m,
710
- Be as o,
710
+ qe 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-DA-IYwFx.js";
4
+ import { u as k, G as M } from "./menu-Cvzv8myY.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-DA-IYwFx.js";
2
+ import { H as S, A as r, u as pe, I as ve, J as ue } from "./menu-Cvzv8myY.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-DYZ1-Ak2.js";
5
+ import { _ as ne, a as fe } from "./customAttributes-B0VHSDMv.js";
6
6
  import { u as ye } from "./discardConfirm-BHni0LNu.js";
7
- import { u as he } from "./menu-onwhSbn-.js";
8
- import { L as ge } from "./LinkProductSideSheet-CpLGN83Z.js";
7
+ import { u as he } from "./menu-CdKiY8ht.js";
8
+ import { L as ge } from "./LinkProductSideSheet-zAHlypah.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-DA-IYwFx.js";
2
+ import { J as l, A as d, u as F } from "./menu-Cvzv8myY.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-1-YKf6_A.js";
5
+ import { u as v } from "./menuV2-h9I06V2J.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-Dk-hs_07.js";
2
- import "./menu-DA-IYwFx.js";
1
+ import { u as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-Do-V1ceo.js";
2
+ import "./menu-Cvzv8myY.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-DA-IYwFx.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-Cvzv8myY.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-1-YKf6_A.js";
10
+ import "./menuV2-h9I06V2J.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.42-beta.2",
3
+ "version": "0.31.42-prod",
4
4
  "files": [
5
5
  "dist"
6
6
  ],