@feedmepos/mf-menu 0.31.48-prod → 0.31.50-beta.1

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-D-dcqNRb.js → App-DXXisW3y.js} +9 -9
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-na_OOlYX.js → ApplyProduct.vue_vue_type_script_setup_true_lang-DRPvBB9r.js} +3 -3
  3. package/dist/{Catalog-BT_NvH4H.js → Catalog-xqNebB7d.js} +6 -6
  4. package/dist/{Category-CIlVNPov.js → Category-CYt-0_IK.js} +4 -4
  5. package/dist/{Category-bsYxspvu.js → Category-DRXXgCoT.js} +6 -6
  6. package/dist/{CookingGuide-C7IxQzTM.js → CookingGuide-DLfr6-fm.js} +4 -4
  7. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-CJnE543q.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-toajeers.js} +1 -1
  8. package/dist/{Group-CuQ0gDgC.js → Group-BKYzG6fU.js} +3 -3
  9. package/dist/{Group-B5882UFx.js → Group-DIA_XL_I.js} +1 -1
  10. package/dist/{Group.vue_vue_type_script_setup_true_lang-Btk8J3Tp.js → Group.vue_vue_type_script_setup_true_lang-CgpkpOvk.js} +7 -7
  11. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-yIXsPtY4.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-Dt0ELF4j.js} +5 -5
  12. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-DFSHCb9I.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-CvrZKjus.js} +806 -825
  13. package/dist/{Ingredient-24hSAj8Z.js → Ingredient-BI44dYAP.js} +3 -3
  14. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-BVcdOrDO.js → InventoryBinding.vue_vue_type_script_setup_true_lang-CBnGxphp.js} +2 -2
  15. package/dist/{LinkProductSideSheet-CD9mIEpc.js → LinkProductSideSheet-CCAges9q.js} +3 -3
  16. package/dist/{MenuSetting-CVySuMK8.js → MenuSetting-CVakiCVk.js} +5 -5
  17. package/dist/{PrintRoute-CT0-6o2w.js → PrintRoute-DlW6n7Mn.js} +4 -4
  18. package/dist/{Product-C2CtWFM5.js → Product-m8cMT1LX.js} +1 -1
  19. package/dist/{Product.vue_vue_type_script_setup_true_lang-Ts0KnCTU.js → Product.vue_vue_type_script_setup_true_lang-a55WiF4U.js} +13 -13
  20. package/dist/{ProductInternalTools-CyKeO24R.js → ProductInternalTools-CkTx11_s.js} +6 -6
  21. package/dist/{Products-wRIs1LNY.js → Products-BJuWo6iE.js} +11 -11
  22. package/dist/{Publish-BKRVvye3.js → Publish-CM8QYU-j.js} +150 -150
  23. package/dist/{Recipe-BQvRhIeZ.js → Recipe-BRDAybvK.js} +4 -4
  24. package/dist/{Scheduler-CaQu66-9.js → Scheduler-BTRJwBGC.js} +3 -3
  25. package/dist/{ServingSequence-BlUi0Hzb.js → ServingSequence-CD_DdM9d.js} +3 -3
  26. package/dist/{Setting-DFsZYxSB.js → Setting-BeO4Vkut.js} +5 -5
  27. package/dist/{Subcategory-BYnb9L7M.js → Subcategory-_1l7Bx1S.js} +4 -4
  28. package/dist/{Takeaway-BQINJijW.js → Takeaway-BFI4svUt.js} +4 -4
  29. package/dist/{Takeaway-DYiN0Yws.js → Takeaway-BZk0NtGE.js} +1 -1
  30. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-CnMEeZrd.js → Takeaway.vue_vue_type_script_setup_true_lang-CIfMWu9j.js} +5 -5
  31. package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-Bp40RcvB.js → Thumbnail.vue_vue_type_script_setup_true_lang-BP9fJ0Bu.js} +4 -4
  32. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-jzJLp-Ac.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-t1fMjOZR.js} +16 -16
  33. package/dist/{Unit-rT9SjnsI.js → Unit-Ctw281mK.js} +2 -2
  34. package/dist/{Variant-B7aqcbez.js → Variant-C3ZYOitW.js} +3 -3
  35. package/dist/{_id_-DY1Fitul.js → _id_-CoT8bjO6.js} +10 -10
  36. package/dist/{app-BO6bn7uh.js → app-Brm1kWbu.js} +26 -26
  37. package/dist/{app-RULuHy55.js → app-OcteyEm5.js} +1 -1
  38. package/dist/app.js +1 -1
  39. package/dist/apps/mf-menu/src/api/menu.d.ts +1 -0
  40. package/dist/apps/mf-menu/src/stores/menu.d.ts +1 -0
  41. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  42. package/dist/assets/{linked-status-DRWIBDK1.js → linked-status-DAHyhlx2.js} +2 -2
  43. package/dist/assets/{override-menu-BLjzPUsy.js → override-menu-BnY4XZnY.js} +2 -2
  44. package/dist/assets/{validate-menu-5sybvnwS.js → validate-menu-BraLzbnR.js} +2 -2
  45. package/dist/{catalog-bwlWW8PZ.js → catalog-gKppJzig.js} +1 -1
  46. package/dist/{catalogSetting-DzX172wP.js → catalogSetting-Su45SyJ-.js} +1 -1
  47. package/dist/{category-B28CLR_r.js → category-8y6-08Mv.js} +1 -1
  48. package/dist/{currency-SjGU_s1p.js → currency-B_e-dhFu.js} +1 -1
  49. package/dist/{customAttributes-D8y8beXk.js → customAttributes-C2vr-SKM.js} +1 -1
  50. package/dist/{dayjs.min-CUujDjy2.js → dayjs.min-dKmkrzl4.js} +1 -1
  51. package/dist/{index-BjlPBJit.js → index-BHvV964b.js} +4 -4
  52. package/dist/{index-KiKL6590.js → index-C9tWvhY2.js} +1 -1
  53. package/dist/{index-TqIfnnRh.js → index-D4faLWap.js} +3 -3
  54. package/dist/{index-Dc0tIOma.js → index-Dr59iGVp.js} +1 -1
  55. package/dist/{item-Bk4ePGsA.js → item-DEucLegT.js} +386 -386
  56. package/dist/iteration-BoeoXAHD.js +23 -0
  57. package/dist/{jszip.min-Cb0oLCRU.js → jszip.min-yRZ7rNLS.js} +2 -2
  58. package/dist/{menu-J976EXhb.js → menu-C_Qpm-ah.js} +1 -1
  59. package/dist/{menu-CKvTLOA7.js → menu-D1ph5NBB.js} +6569 -6521
  60. package/dist/{menuV2-BWSBAnVp.js → menuV2-DlyT8PNo.js} +60 -60
  61. package/dist/{priceTier-BpWKl-29.js → priceTier-BsiwgiPs.js} +1 -1
  62. package/dist/{scheduler-CnU_uh6T.js → scheduler-Cyq65N6m.js} +4 -4
  63. package/dist/{subcategory-Bn1Jr1uy.js → subcategory-CMW9rWpo.js} +2 -2
  64. package/dist/{toExcel-DxAn19PY.js → toExcel-B9qHcJCR.js} +2 -2
  65. package/dist/{unit-BzHG0aHZ.js → unit-bsmM8Os6.js} +2 -2
  66. package/package.json +1 -1
@@ -1,16 +1,16 @@
1
- import { an as L, H as I, D as R, A as J, ao as j, J as U, I as Y, a8 as w, c as N, X as E, ai as q, ap as Me, aq as Ee, B as Ie, aa as Re, ar as ke, as as Te, a7 as Fe } from "./menu-CKvTLOA7.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 Oe } from "vue";
1
+ import { an as L, H as k, D as I, A as Y, ao as q, J as U, I as J, a8 as w, c as x, X as E, ai as j, ap as Me, aq as Ee, B as ke, aa as Ie, ar as Re, as as Te, a7 as Fe } from "./menu-D1ph5NBB.js";
2
+ import { defineStore as Ae } from "pinia";
3
+ import { shallowRef as X, ref as D, computed as h, shallowReactive as Pe, effectScope as Ke, watch as Oe } from "vue";
4
4
  import { useCoreStore as z } from "@feedmepos/mf-common";
5
5
  import { useSnackbar as Ve } from "@feedmepos/ui-library";
6
- const Ne = "/assets/linked-status-DRWIBDK1.js", xe = "/assets/override-menu-BLjzPUsy.js";
6
+ const xe = "/assets/linked-status-DAHyhlx2.js", Ne = "/assets/override-menu-BnY4XZnY.js";
7
7
  function $e(e) {
8
8
  var a;
9
- const n = I(e), o = (a = n.variant) == null ? void 0 : a.variantCombinations;
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
12
  function Ue(e, n, o, a) {
13
- const r = I(n), l = o ? r.modules.catalog.find((_) => _._id === o) : null, d = a ? r.modules.scheduler.find((_) => _._id === a) : null, i = l ? I(l) : void 0, c = o ? r.modules.catalog.filter((_) => _._id !== o) : [], m = d ? I(d) : void 0, f = e.reduce((_, y) => (_[y._id] = $e(y), _), {});
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);
16
16
  return [
@@ -25,7 +25,7 @@ function Ue(e, n, o, a) {
25
25
  _id: a,
26
26
  items: v(m == null ? void 0 : m.items).map((_) => ({
27
27
  ..._,
28
- orderFrom: J.F_ORDER_FROM.enum.ALL
28
+ orderFrom: Y.F_ORDER_FROM.enum.ALL
29
29
  }))
30
30
  }
31
31
  }, r.modules.catalog = [...c, i], r) : i ? (i.override.items = {
@@ -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
+ ...q(),
39
39
  modules: {
40
- ...j().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
- (k) => k._id === _._id && k.combinationKey === _.combinationKey
62
+ (R) => R._id === _._id && R.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))) ?? [], {
@@ -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
+ ...I.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
+ ...I.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 = I(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 ? 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 = I.getFallbackPrices({
157
157
  rawMenu: i,
158
158
  items: m,
159
159
  catalogId: a || void 0,
@@ -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
- Ne,
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
@@ -236,13 +236,13 @@ 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 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
244
  const a = await Be(e, n, null), r = [], l = (c, m) => {
245
- const f = I(c);
245
+ const f = k(c);
246
246
  for (const v in m)
247
247
  m[v] && (f[v] = m[v]);
248
248
  return f;
@@ -251,11 +251,11 @@ 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
257
- ) : f, k = C && f ? l(f, C) : y;
258
- return l(k, 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
257
+ ) : f, R = C && f ? l(f, C) : y;
258
+ return l(R, y);
259
259
  });
260
260
  r.push({
261
261
  group: c,
@@ -265,7 +265,7 @@ 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
271
  const n = X([]), o = D(-1), a = h(() => o.value > 0), r = h(() => o.value < n.value.length - 1);
@@ -292,7 +292,7 @@ function We({
292
292
  clear: c
293
293
  };
294
294
  }
295
- const Ge = {
295
+ const We = {
296
296
  async updateMenuModule(e, n) {
297
297
  const o = U.RequestRunner.operation(n, e.modules);
298
298
  if (o.validateError.length > 0)
@@ -303,10 +303,10 @@ const Ge = {
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 J.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 qe() {
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 = Ve(), 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) || N.F_MENU_VERSION.v3;
353
- }), l = h(() => r.value === N.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(() => {
@@ -358,7 +358,7 @@ const at = Pe(
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 = I.populateCatalog({
362
362
  catalog: t,
363
363
  ruleGroupSettings: e.menu.ruleGroupSettings,
364
364
  items: e.menu.modules.item,
@@ -370,13 +370,13 @@ 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()), _ = 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 = I.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 = 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: {
@@ -405,7 +405,7 @@ const at = Pe(
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 = J.debounce(C, 200);
409
409
  Ke(!0).run(() => {
410
410
  Oe(
411
411
  () => [e.menu, e.currentCatalogId, e.currentSchedulerId],
@@ -414,7 +414,7 @@ const at = Pe(
414
414
  }
415
415
  );
416
416
  });
417
- const A = h(() => [
417
+ const P = h(() => [
418
418
  {
419
419
  label: "Main",
420
420
  value: null
@@ -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
- }), W = h(() => {
441
+ }), G = h(() => {
442
442
  var s;
443
443
  let t = v.value.modules.item;
444
444
  if (i.value) {
@@ -448,7 +448,7 @@ const at = Pe(
448
448
  const g = (S = u == null ? void 0 : u[p._id]) == null ? void 0 : S.find(
449
449
  (b) => !b.combinationKey
450
450
  );
451
- return (g == null ? void 0 : g.orderFrom) !== J.F_ORDER_FROM.enum.NONE;
451
+ return (g == null ? void 0 : g.orderFrom) !== Y.F_ORDER_FROM.enum.NONE;
452
452
  });
453
453
  }
454
454
  return E(t, (u) => u.code || u.name);
@@ -461,7 +461,7 @@ 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, W.value)), re = h(() => {
464
+ }), ne = h(() => j(K.value, B.value, G.value)), re = h(() => {
465
465
  const t = O.value.item.addon ? [
466
466
  {
467
467
  _id: e.currentCatalogId ? "" : null,
@@ -470,7 +470,7 @@ 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
@@ -481,7 +481,7 @@ const at = Pe(
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 R.fullVariantCombination(s).reduce((p, g) => (p[g.combinationKey] = g.selectionName.join(" / "), p), {});
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 || [], {
487
487
  selector: "name"
@@ -491,7 +491,7 @@ const at = Pe(
491
491
  const t = Ee(e.menu.modules.sku);
492
492
  return w(t, { selector: "code" });
493
493
  }), O = h(() => {
494
- const t = !e.currentCatalogId, s = r.value === N.F_MENU_VERSION.v4, u = !e.currentSchedulerId, p = {
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
@@ -571,10 +571,10 @@ const at = Pe(
571
571
  }
572
572
  const pe = h(() => {
573
573
  var p;
574
- const t = ["SV5", "SV10"], s = Ie.Country.getCountryFlattenTaxes(
574
+ const t = ["SV5", "SV10"], s = ke.Country.getCountryFlattenTaxes(
575
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)}%)`,
577
+ label: `${g.name} (${Ie(g.rate)}%)`,
578
578
  value: V(g),
579
579
  meta: {
580
580
  rate: g.rate
@@ -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, G(null);
589
+ e.menu = t ?? e.menu, W(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
- }, G = (t) => {
597
+ }, W = (t) => {
598
598
  e.currentCatalogId = t;
599
599
  }, _e = (t) => {
600
600
  e.currentSchedulerId = t;
@@ -614,10 +614,10 @@ const at = Pe(
614
614
  if (s || p.some(
615
615
  (S) => [U.F_OPERATION_TYPE.delete, U.F_OPERATION_TYPE.deleteMany].includes(S.operation)
616
616
  )) {
617
- const S = await ke(p, e.menu.modules);
617
+ const S = await Re(p, e.menu.modules);
618
618
  if (S !== !0) throw new Error(S);
619
619
  }
620
- const g = await Ge.updateMenuModule(e.menu, p);
620
+ const g = await We.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 = 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,10 +650,10 @@ const at = Pe(
650
650
  currentCatalog: i,
651
651
  schedulers: c,
652
652
  currentScheduler: m,
653
- catalogOptions: A,
653
+ catalogOptions: P,
654
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,
@@ -671,7 +671,7 @@ const at = Pe(
671
671
  setMenu: f,
672
672
  readMenu: ve,
673
673
  readRestaurants: ge,
674
- selectCatalog: G,
674
+ selectCatalog: W,
675
675
  selectScheduler: _e,
676
676
  selectCategory: ye,
677
677
  setRestaurantAttrParams: he,
@@ -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-CKvTLOA7.js";
4
+ import { u as k, G as M } from "./menu-D1ph5NBB.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-CKvTLOA7.js";
2
+ import { H as S, A as r, u as pe, I as ve, J as ue } from "./menu-D1ph5NBB.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-D8y8beXk.js";
5
+ import { _ as ne, a as fe } from "./customAttributes-C2vr-SKM.js";
6
6
  import { u as ye } from "./discardConfirm-BHni0LNu.js";
7
- import { u as he } from "./menu-J976EXhb.js";
8
- import { L as ge } from "./LinkProductSideSheet-CD9mIEpc.js";
7
+ import { u as he } from "./menu-C_Qpm-ah.js";
8
+ import { L as ge } from "./LinkProductSideSheet-CCAges9q.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-CKvTLOA7.js";
2
+ import { J as l, A as d, u as F } from "./menu-D1ph5NBB.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-BWSBAnVp.js";
5
+ import { u as v } from "./menuV2-DlyT8PNo.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-DFSHCb9I.js";
2
- import "./menu-CKvTLOA7.js";
1
+ import { u as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-CvrZKjus.js";
2
+ import "./menu-D1ph5NBB.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-CKvTLOA7.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-D1ph5NBB.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-BWSBAnVp.js";
10
+ import "./menuV2-DlyT8PNo.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.48-prod",
3
+ "version": "0.31.50-beta.1",
4
4
  "files": [
5
5
  "dist"
6
6
  ],