@feedmepos/mf-menu 0.31.43-prod → 0.31.44-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-DudzVdxN.js → App-CE04qaBV.js} +8 -8
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-Cx6BY_nW.js → ApplyProduct.vue_vue_type_script_setup_true_lang-IXokuKO2.js} +3 -3
  3. package/dist/{Catalog-BMuTQtqx.js → Catalog-Dqri4B_K.js} +6 -6
  4. package/dist/{Category-CUZ_xxMs.js → Category-BT52ihK5.js} +4 -4
  5. package/dist/{Category-NDkmqvdw.js → Category-olIN3yBI.js} +6 -6
  6. package/dist/{CookingGuide-3SgKZVRT.js → CookingGuide-C9M77Ga5.js} +4 -4
  7. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-FuOBls0m.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-Dstn6d56.js} +1 -1
  8. package/dist/{Group-ClTlb1X2.js → Group-CPcZFZH6.js} +1 -1
  9. package/dist/{Group-CvUWYuaR.js → Group-W3ZrHyCO.js} +3 -3
  10. package/dist/{Group.vue_vue_type_script_setup_true_lang-jbtZjvRL.js → Group.vue_vue_type_script_setup_true_lang-CgRgoh7Z.js} +7 -7
  11. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-C_nvZOlm.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DhVuW8aF.js} +5 -5
  12. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-BiwIRHka.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-D_4hnCq_.js} +13 -8
  13. package/dist/{Ingredient-C3a4gt_G.js → Ingredient-10MlbVqy.js} +3 -3
  14. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-CYoMl-_4.js → InventoryBinding.vue_vue_type_script_setup_true_lang-Hs_PzqFc.js} +2 -2
  15. package/dist/{LinkProductSideSheet-4GgEt5LN.js → LinkProductSideSheet-CkVGUuoe.js} +3 -3
  16. package/dist/{MenuSetting-DMDHHBs2.js → MenuSetting-DCLUjNwM.js} +5 -5
  17. package/dist/{PrintRoute-D8mE_R6M.js → PrintRoute-BrhANH1t.js} +4 -4
  18. package/dist/{Product-B7oT5kJ6.js → Product-De-E-J_j.js} +1 -1
  19. package/dist/{Product.vue_vue_type_script_setup_true_lang-CUn6_bGq.js → Product.vue_vue_type_script_setup_true_lang-Dh7mC8hn.js} +13 -13
  20. package/dist/{ProductInternalTools-BPnnO5dR.js → ProductInternalTools-Dil7n2gK.js} +5 -5
  21. package/dist/{Products-iYZPVp8Y.js → Products-DAPg9yxc.js} +11 -11
  22. package/dist/{Publish-BCFYIz0P.js → Publish-BxpcIXDd.js} +3 -3
  23. package/dist/{Recipe-Be6kHRWd.js → Recipe-CK0p6fbM.js} +4 -4
  24. package/dist/{Scheduler-DTULqkZU.js → Scheduler-DZ9IH39B.js} +3 -3
  25. package/dist/{ServingSequence-1B2t3IOz.js → ServingSequence-CoyninAQ.js} +3 -3
  26. package/dist/{Setting-Bfx_kAhO.js → Setting-DcLPx_lC.js} +5 -5
  27. package/dist/{Subcategory-CspNxL0A.js → Subcategory-Dvf99HZe.js} +4 -4
  28. package/dist/{Takeaway-DS9QWvP4.js → Takeaway-BI3BSmj-.js} +1 -1
  29. package/dist/{Takeaway-8ZrctPk8.js → Takeaway-Duf5dc5y.js} +4 -4
  30. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-DPtA07uy.js → Takeaway.vue_vue_type_script_setup_true_lang-CExG47-4.js} +5 -5
  31. package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-CdaiLu5o.js → Thumbnail.vue_vue_type_script_setup_true_lang-RhLPLt90.js} +4 -4
  32. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-C39Fg0ZP.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-QlYurNG-.js} +14 -14
  33. package/dist/{Unit-qDXlKpxA.js → Unit-xAQFBe2l.js} +2 -2
  34. package/dist/{Variant-tGw0WZcw.js → Variant-BeXHSOeG.js} +3 -3
  35. package/dist/{_id_-nUIFi5Lq.js → _id_-BZoPiysO.js} +10 -10
  36. package/dist/{app-B-AEzoH6.js → app-BvxLw0f0.js} +1 -1
  37. package/dist/{app-BPqH1NSp.js → app-DAMQTumw.js} +25 -25
  38. package/dist/app.js +1 -1
  39. package/dist/assets/{linked-status-CXZIhnqe.js → linked-status-BijTcBbU.js} +2 -2
  40. package/dist/assets/{override-menu-xw0Dqkm6.js → override-menu-_g9wGcVo.js} +2 -2
  41. package/dist/assets/{validate-menu-ByQAWT_D.js → validate-menu-DD0a2ff1.js} +2 -2
  42. package/dist/{catalog-DLqIkhbq.js → catalog-J9m8IuRd.js} +1 -1
  43. package/dist/{catalogSetting-CD1xVSYG.js → catalogSetting-BFnHRNQj.js} +1 -1
  44. package/dist/{category-CrJofVZH.js → category--YAf_z7-.js} +1 -1
  45. package/dist/{currency-DvON4euj.js → currency-D79lBxet.js} +1 -1
  46. package/dist/{customAttributes-C81bk6Ag.js → customAttributes-C2N2a9F5.js} +1 -1
  47. package/dist/{dayjs.min-DkxnzHIf.js → dayjs.min-BgEoKNAA.js} +1 -1
  48. package/dist/{index-Bi-tjPhn.js → index-BJmYOnat.js} +1 -1
  49. package/dist/{index-k8JBMmlm.js → index-C9IrCEc8.js} +4 -4
  50. package/dist/{index-Y2Y_5NeG.js → index-D_EUl7K2.js} +1 -1
  51. package/dist/{index-DoMiLJrG.js → index-viulBWxZ.js} +3 -3
  52. package/dist/{item-BI77lImE.js → item-C-R2IsKj.js} +16 -16
  53. package/dist/{jszip.min-K1Xi3iCG.js → jszip.min-CtGy1TmD.js} +537 -537
  54. package/dist/{menu-v8tF5owz.js → menu-COLYBjn5.js} +1 -1
  55. package/dist/{menu-Cg_li9fp.js → menu-DULInHbp.js} +5 -5
  56. package/dist/{menuV2-BmOhyQh2.js → menuV2-BMPakMM0.js} +63 -63
  57. package/dist/{priceTier-D89QKPQZ.js → priceTier-BxjRuWto.js} +1 -1
  58. package/dist/{scheduler-CFnDK-I3.js → scheduler-VPXMDWGd.js} +4 -4
  59. package/dist/{subcategory-CyIY_sdl.js → subcategory-DgOK28o5.js} +2 -2
  60. package/dist/{toExcel-DIGelQ9s.js → toExcel-CZG2oLU_.js} +2 -2
  61. package/dist/{unit-Bk_zO_6l.js → unit-DZwyWK-0.js} +2 -2
  62. package/package.json +1 -1
@@ -1,16 +1,16 @@
1
- import { ao as L, H as E, D as I, A as J, ap as j, J as U, I as X, a9 as w, c as x, X as k, aj as B, aq as Me, ar as ke, B as Ee, ab as Ie, as as Re, at as Te, a8 as Fe } from "./menu-Cg_li9fp.js";
1
+ import { ao as L, H as k, D as I, A as J, ap as W, J as U, I as Y, a9 as w, c as N, 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-DULInHbp.js";
2
2
  import { defineStore as Ae } from "pinia";
3
- import { shallowRef as Y, ref as D, computed as h, shallowReactive as Pe, effectScope as Ke, watch as Oe } from "vue";
3
+ import { shallowRef as X, ref as D, computed as h, shallowReactive as Pe, effectScope as Ve, watch as Ke } from "vue";
4
4
  import { useCoreStore as z } from "@feedmepos/mf-common";
5
- import { useSnackbar as Ve } from "@feedmepos/ui-library";
6
- const xe = "/assets/linked-status-CXZIhnqe.js", Ne = "/assets/override-menu-xw0Dqkm6.js";
5
+ import { useSnackbar as Oe } from "@feedmepos/ui-library";
6
+ const Ne = "/assets/linked-status-BijTcBbU.js", xe = "/assets/override-menu-_g9wGcVo.js";
7
7
  function $e(e) {
8
8
  var a;
9
- const n = E(e), o = (a = n.variant) == null ? void 0 : a.variantCombinations;
9
+ const n = 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 = E(n), l = o ? r.modules.catalog.find((_) => _._id === o) : null, d = a ? r.modules.scheduler.find((_) => _._id === a) : null, i = l ? E(l) : void 0, c = o ? r.modules.catalog.filter((_) => _._id !== o) : [], m = d ? E(d) : void 0, f = e.reduce((_, y) => (_[y._id] = $e(y), _), {});
13
+ const r = 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 [
@@ -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,
@@ -150,7 +150,7 @@ function He(e, n) {
150
150
  };
151
151
  }
152
152
  async function et(e, n, o, a, r, l = !0) {
153
- const d = E(o), i = l ? Ue(n, d, a, r) : d, c = n.reduce((v, _) => (v[_._id] = i.modules.item.find((y) => y._id === _._id), v), {}), m = n.reduce((v, _) => {
153
+ const d = 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
156
  }, {}), f = I.getFallbackPrices({
@@ -180,22 +180,22 @@ function tt(e, n) {
180
180
  return r;
181
181
  }, [])) || []).join(" / ");
182
182
  }
183
- const N = /* @__PURE__ */ new Map();
183
+ const x = /* @__PURE__ */ new Map();
184
184
  async function nt(e, n) {
185
185
  const o = `${e._id}-${e.updatedAt}-${n}`;
186
- if (N.has(o))
187
- return N.get(o);
186
+ if (x.has(o))
187
+ return x.get(o);
188
188
  const a = await L(
189
- xe,
189
+ Ne,
190
190
  JSON.stringify({
191
191
  menu: e,
192
192
  itemId: n
193
193
  })
194
194
  );
195
- return N.set(o, a), a;
195
+ return x.set(o, a), a;
196
196
  }
197
- async function Z(e, n, o) {
198
- return await L(Ne, {
197
+ async function Q(e, n, o) {
198
+ return await L(xe, {
199
199
  menu: e,
200
200
  catalogId: n,
201
201
  schedulerId: o
@@ -232,17 +232,17 @@ function ot(e, n, o) {
232
232
  return r(n, o);
233
233
  }
234
234
  const $ = /* @__PURE__ */ new Map();
235
- async function qe(e, n, o) {
235
+ async function Be(e, n, o) {
236
236
  const a = `${e._id}-${e.updatedAt}-${n || "null"}-${o || "null"}`;
237
237
  if ($.has(a))
238
238
  return $.get(a);
239
- const r = await Z(e, n, o);
239
+ const r = await Q(e, n, o);
240
240
  return $.set(a, r), r;
241
241
  }
242
242
  async function st(e, n, o) {
243
243
  var d, i;
244
- const a = await qe(e, n, null), r = [], l = (c, m) => {
245
- const f = E(c);
244
+ const a = await Be(e, n, null), r = [], l = (c, m) => {
245
+ const f = k(c);
246
246
  for (const v in m)
247
247
  m[v] && (f[v] = m[v]);
248
248
  return f;
@@ -268,7 +268,7 @@ async function st(e, n, o) {
268
268
  function Ge({
269
269
  maxHistorySize: e = 50
270
270
  }) {
271
- const n = Y([]), o = D(-1), a = h(() => o.value > 0), r = h(() => o.value < n.value.length - 1);
271
+ const n = X([]), o = D(-1), a = h(() => o.value > 0), r = h(() => o.value < n.value.length - 1);
272
272
  function l(m) {
273
273
  n.value.push(m), o.value++, n.value.length > e && (n.value.shift(), o.value--);
274
274
  }
@@ -292,7 +292,7 @@ function Ge({
292
292
  clear: c
293
293
  };
294
294
  }
295
- const We = {
295
+ const je = {
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 We = {
303
303
  modules: o.result || e.modules,
304
304
  _rev: o.id ?? ""
305
305
  };
306
- return X.cloneDeep({ menu: a, updateId: o.id ?? null });
306
+ return Y.cloneDeep({ menu: a, updateId: o.id ?? null });
307
307
  }
308
308
  };
309
- function Q() {
309
+ function Z() {
310
310
  return {
311
311
  _id: "",
312
312
  masterCatalogSetting: { inclusiveTaxes: [] },
@@ -329,10 +329,10 @@ function Q() {
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: { ...Q(), _rev: "" },
335
+ menu: { ...Z(), _rev: "" },
336
336
  currentCatalogId: null,
337
337
  currentCategoryIds: null,
338
338
  currentSchedulerId: "",
@@ -345,12 +345,12 @@ function je() {
345
345
  const at = Ae(
346
346
  "mf-menu-store-v2",
347
347
  () => {
348
- const e = Pe(je()), n = z(), o = Ve(), a = h(() => e.menu.modules.serveSequence ? w(e.menu.modules.serveSequence, {
348
+ const e = Pe(We()), n = z(), o = Oe(), 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) || x.F_MENU_VERSION.v3;
353
- }), l = h(() => r.value === x.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(() => {
@@ -370,7 +370,7 @@ const at = Ae(
370
370
  function f(t, s = !0) {
371
371
  e.menu = { ...t, _rev: e.menu._rev }, s && M.push(e.menu);
372
372
  }
373
- const v = Y(Q()), _ = D(!1), y = D(1);
373
+ const v = X(Z()), _ = D(!1), y = D(1);
374
374
  async function C() {
375
375
  var u;
376
376
  _.value = !0;
@@ -384,7 +384,7 @@ const at = Ae(
384
384
  });
385
385
  t = e.menu.modules.catalog.map((g) => g._id === (p == null ? void 0 : p._id) ? p : g);
386
386
  }
387
- const s = await Z(
387
+ const s = await Q(
388
388
  {
389
389
  ...e.menu,
390
390
  modules: {
@@ -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 = X.debounce(C, 200);
409
- Ke(!0).run(() => {
410
- Oe(
408
+ const F = Y.debounce(C, 200);
409
+ Ve(!0).run(() => {
410
+ Ke(
411
411
  () => [e.menu, e.currentCatalogId, e.currentSchedulerId],
412
412
  () => {
413
413
  _.value || F();
@@ -423,21 +423,21 @@ const at = Ae(
423
423
  label: t.name,
424
424
  value: t._id
425
425
  }))
426
- ]), q = h(() => {
426
+ ]), B = h(() => {
427
427
  const t = v.value.modules.category;
428
428
  return [
429
- ...O.value.item.addon ? [
429
+ ...K.value.item.addon ? [
430
430
  {
431
431
  _id: e.currentCatalogId ? "" : null,
432
432
  name: "Addon",
433
433
  position: 0
434
434
  }
435
435
  ] : [],
436
- ...k(t, (s) => s.name)
436
+ ...E(t, (s) => s.name)
437
437
  ];
438
438
  }), ee = h(() => {
439
439
  const t = v.value.modules.subCategory || [];
440
- return k(t, (s) => s.name);
440
+ return E(t, (s) => s.name);
441
441
  }), G = h(() => {
442
442
  var s;
443
443
  let t = v.value.modules.item;
@@ -451,18 +451,18 @@ const at = Ae(
451
451
  return (g == null ? void 0 : g.orderFrom) !== J.F_ORDER_FROM.enum.NONE;
452
452
  });
453
453
  }
454
- return k(t, (u) => u.code || u.name);
454
+ return E(t, (u) => u.code || u.name);
455
455
  }), te = h(() => {
456
- const t = e.menu.modules.category, s = k(t, (p) => p.name).reduce(
456
+ const t = e.menu.modules.category, s = E(t, (p) => p.name).reduce(
457
457
  (p, g, S) => (p[g._id] = S, p),
458
458
  { "": 0 }
459
459
  ), u = e.menu.modules.item;
460
- return k(
460
+ return E(
461
461
  u,
462
462
  (p) => p.code || p.name
463
463
  ).reduce((p, g, S) => (p[g._id] = S + s[g.category || ""], p), {});
464
- }), ne = h(() => B(K.value, q.value, G.value)), re = h(() => {
465
- const t = O.value.item.addon ? [
464
+ }), ne = h(() => q(V.value, B.value, G.value)), re = h(() => {
465
+ const t = K.value.item.addon ? [
466
466
  {
467
467
  _id: e.currentCatalogId ? "" : null,
468
468
  name: "Addon",
@@ -470,28 +470,28 @@ const at = Ae(
470
470
  },
471
471
  ...e.menu.modules.category
472
472
  ] : e.menu.modules.category;
473
- return B(
473
+ return q(
474
474
  e.menu.modules.variant,
475
475
  t,
476
476
  e.menu.modules.item
477
477
  );
478
- }), K = h(() => {
478
+ }), V = 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) => V.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
- const se = h(() => k(v.value.modules.group, (t) => t.name)), ae = h(() => w(v.value.modules.takeaway, { selector: "name" })), ue = h(() => w(e.menu.modules.printDepartment || [], {
486
+ const se = h(() => E(v.value.modules.group, (t) => t.name)), ae = h(() => w(v.value.modules.takeaway, { selector: "name" })), ue = h(() => w(e.menu.modules.printDepartment || [], {
487
487
  selector: "name"
488
488
  })), ie = h(() => w(e.menu.modules.unit, { selector: "name" })), ce = h(() => w(Me(e.menu.modules.recipe, e.menu.modules.sku), {
489
489
  selector: "name"
490
490
  })), le = h(() => e.menu.modules.cookingGuide), de = h(() => {
491
- const t = ke(e.menu.modules.sku);
491
+ const t = Ee(e.menu.modules.sku);
492
492
  return w(t, { selector: "code" });
493
- }), O = h(() => {
494
- const t = !e.currentCatalogId, s = r.value === x.F_MENU_VERSION.v4, u = !e.currentSchedulerId, p = {
493
+ }), K = 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 V(t) {
562
+ function O(t) {
563
563
  return `${t.systemCode}/${t.taxCode}`;
564
564
  }
565
565
  function me(t) {
@@ -567,15 +567,15 @@ const at = Ae(
567
567
  return { systemCode: s, taxCode: u };
568
568
  }
569
569
  function fe(t, s, u) {
570
- return (t ?? s ?? []).map((p) => V(p)).find((p) => u.some((g) => g.value === p));
570
+ return (t ?? s ?? []).map((p) => O(p)).find((p) => u.some((g) => g.value === p));
571
571
  }
572
572
  const pe = h(() => {
573
573
  var p;
574
- const t = ["SV5", "SV10"], s = Ee.Country.getCountryFlattenTaxes(
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
577
  label: `${g.name} (${Ie(g.rate)}%)`,
578
- value: V(g),
578
+ value: O(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, W(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
- }, W = (t) => {
597
+ }, j = (t) => {
598
598
  e.currentCatalogId = t;
599
599
  }, _e = (t) => {
600
600
  e.currentSchedulerId = t;
@@ -617,7 +617,7 @@ const at = Ae(
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 je.updateMenuModule(e.menu, p);
621
621
  return f(g.menu), g;
622
622
  } catch (g) {
623
623
  o.open({
@@ -651,13 +651,13 @@ const at = Ae(
651
651
  schedulers: c,
652
652
  currentScheduler: m,
653
653
  catalogOptions: P,
654
- categories: q,
654
+ categories: B,
655
655
  subcategories: ee,
656
656
  items: G,
657
657
  sortedItems: te,
658
658
  categorizedItems: ne,
659
659
  categorizedRawMenuItems: re,
660
- variants: K,
660
+ variants: V,
661
661
  groups: se,
662
662
  takeaways: ae,
663
663
  printDepartments: ue,
@@ -665,13 +665,13 @@ const at = Ae(
665
665
  recipes: ce,
666
666
  cookingGuide: le,
667
667
  skus: de,
668
- rules: O,
668
+ rules: K,
669
669
  taxSetting: pe,
670
670
  // Action
671
671
  setMenu: f,
672
672
  readMenu: ve,
673
673
  readRestaurants: ge,
674
- selectCatalog: W,
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: V,
682
+ encodeTax: O,
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
- qe as o,
710
+ Be as o,
711
711
  at as u
712
712
  };
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as d, ref as g, watch as _, resolveComponent as S, createBlock as T, openBlock as f, unref as y, computed as h } from "vue";
2
2
  import { useI18n as m } from "@feedmepos/mf-common";
3
3
  import { useDialogChild as w, useDialog as x, useSnackbar as C } from "@feedmepos/ui-library";
4
- import { u as k, G as M } from "./menu-Cg_li9fp.js";
4
+ import { u as k, G as M } from "./menu-DULInHbp.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-Cg_li9fp.js";
2
+ import { H as S, A as r, u as pe, I as ve, J as ue } from "./menu-DULInHbp.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-C81bk6Ag.js";
5
+ import { _ as ne, a as fe } from "./customAttributes-C2N2a9F5.js";
6
6
  import { u as ye } from "./discardConfirm-BHni0LNu.js";
7
- import { u as he } from "./menu-v8tF5owz.js";
8
- import { L as ge } from "./LinkProductSideSheet-4GgEt5LN.js";
7
+ import { u as he } from "./menu-COLYBjn5.js";
8
+ import { L as ge } from "./LinkProductSideSheet-CkVGUuoe.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-Cg_li9fp.js";
2
+ import { J as l, A as d, u as F } from "./menu-DULInHbp.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-BmOhyQh2.js";
5
+ import { u as v } from "./menuV2-BMPakMM0.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-BiwIRHka.js";
2
- import "./menu-Cg_li9fp.js";
1
+ import { u as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-D_4hnCq_.js";
2
+ import "./menu-DULInHbp.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-Cg_li9fp.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-DULInHbp.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-BmOhyQh2.js";
10
+ import "./menuV2-BMPakMM0.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.43-prod",
3
+ "version": "0.31.44-prod",
4
4
  "files": [
5
5
  "dist"
6
6
  ],