@feedmepos/mf-menu 0.31.12-beta.1 → 0.31.12-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 (56) hide show
  1. package/dist/{App-DUaVnMKY.js → App-DXbBCn_X.js} +6 -6
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-BQjH58c8.js → ApplyProduct.vue_vue_type_script_setup_true_lang-aF5R6xBm.js} +2 -2
  3. package/dist/{Catalog-BBX3Pq4h.js → Catalog-CuwJd3_O.js} +5 -5
  4. package/dist/{Category-CdQRh_dy.js → Category-DOfvA0Ft.js} +5 -5
  5. package/dist/{Category-CslEpONp.js → Category-GUsCXKcH.js} +4 -4
  6. package/dist/{CookingGuide-DKv5bs5r.js → CookingGuide-yK-qJmEv.js} +3 -3
  7. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-BZmxz1MA.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-B4-2X13b.js} +1 -1
  8. package/dist/{Group-CXV2YABG.js → Group-BcIz41so.js} +3 -3
  9. package/dist/{Group-I5Yg2wzg.js → Group-X-b_M8VD.js} +1 -1
  10. package/dist/{Group.vue_vue_type_script_setup_true_lang-DZWJw7HR.js → Group.vue_vue_type_script_setup_true_lang-DZvBL_ZC.js} +7 -7
  11. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-Dv_XaQh4.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CBiw2fOV.js} +3 -3
  12. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-BHiI2JNW.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-C0CclPfJ.js} +1459 -1459
  13. package/dist/{Ingredient-Bjfd73Gs.js → Ingredient-DrJi2L7-.js} +3 -3
  14. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-BY8E-MXM.js → InventoryBinding.vue_vue_type_script_setup_true_lang-0Tfla7Q2.js} +1052 -1052
  15. package/dist/{LinkProductSideSheet-CexHNJkJ.js → LinkProductSideSheet-D95C1b2A.js} +1 -1
  16. package/dist/{MenuSetting-KUUyO4fI.js → MenuSetting-DUOgzCoP.js} +4 -4
  17. package/dist/{PrintRoute-B1vwUMqf.js → PrintRoute-DTRZd6rA.js} +3 -3
  18. package/dist/{Product-CxVknZIk.js → Product-Bmg_UwgC.js} +1 -1
  19. package/dist/{Product.vue_vue_type_script_setup_true_lang-CptNLcjQ.js → Product.vue_vue_type_script_setup_true_lang-DhGnLOKx.js} +11 -11
  20. package/dist/{Products-Bfy4uouC.js → Products-dDvx6AOu.js} +59 -59
  21. package/dist/{Publish-GdVl9zk1.js → Publish-AdcB_KT4.js} +3 -3
  22. package/dist/{Recipe-6w19ZJJK.js → Recipe-SOST15qr.js} +4 -4
  23. package/dist/{Scheduler-C05ezynD.js → Scheduler-C4TNAKAJ.js} +3 -3
  24. package/dist/{ServingSequence-CZCg-JF_.js → ServingSequence-Tjf-s2aj.js} +3 -3
  25. package/dist/{Setting-BbWTF4XX.js → Setting-CmjFLVOK.js} +4 -4
  26. package/dist/{Subcategory-CmrTtyid.js → Subcategory-Ddovcrxp.js} +4 -4
  27. package/dist/{Takeaway-DwMEWLO2.js → Takeaway-D5PBkJh_.js} +4 -4
  28. package/dist/{Takeaway-D2-FtYgp.js → Takeaway-DeeklwTu.js} +1 -1
  29. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-DkdxfKzw.js → Takeaway.vue_vue_type_script_setup_true_lang-D4gswYtk.js} +5 -5
  30. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-EhXKdsxk.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-kWSE_40n.js} +13 -13
  31. package/dist/{Unit-SFOSdJrF.js → Unit-DMxvA7H5.js} +2 -2
  32. package/dist/{Variant-DLAHAM6_.js → Variant-B2pilaJJ.js} +3 -3
  33. package/dist/{_id_-C_K_0jJR.js → _id_-GV1UMXEc.js} +9 -9
  34. package/dist/{app-C3zqJmd-.js → app-BdrTuNRd.js} +1 -1
  35. package/dist/{app-CN-sHkMr.js → app-DUVhcqWX.js} +23 -23
  36. package/dist/app.js +1 -1
  37. package/dist/assets/{linked-status-BClKFg5a.js → linked-status-BapXE5Fs.js} +2 -2
  38. package/dist/assets/{override-menu-Cs7sEWri.js → override-menu-BC7rOlN4.js} +2 -2
  39. package/dist/assets/{validate-menu-koi7hTe7.js → validate-menu-RgPh4oSb.js} +2 -2
  40. package/dist/{catalog-CSQ_MVB4.js → catalog-B3HPF1Zm.js} +1 -1
  41. package/dist/{catalogSetting-Dd8hg6lc.js → catalogSetting-D3srmeIL.js} +1 -1
  42. package/dist/{category-DMdeZtAC.js → category-DCQJ57O4.js} +1 -1
  43. package/dist/{currency-G39so7E9.js → currency-D4GdI_X_.js} +1 -1
  44. package/dist/{dayjs.min-Curl0gja.js → dayjs.min-Bz6-FIIy.js} +1 -1
  45. package/dist/{index-0al5q1KP.js → index-BrR7d0DI.js} +1 -1
  46. package/dist/{index-DeVPhG1v.js → index-CmQpmVdJ.js} +3 -3
  47. package/dist/{index-B8pkovx3.js → index-CzKG_QVm.js} +2 -2
  48. package/dist/{item-fQKCg9Fj.js → item-CbmzFTRV.js} +932 -932
  49. package/dist/{menu-DiOTTn-g.js → menu-BjeZ0rce.js} +1 -1
  50. package/dist/{menu-DPhZMKfP.js → menu-DiYltG70.js} +132 -132
  51. package/dist/{priceTier-ZK9n29An.js → priceTier-BGGyCMAz.js} +1 -1
  52. package/dist/{scheduler-DSVUVnRa.js → scheduler-BWoIKahu.js} +3 -3
  53. package/dist/{subcategory-Ozr1vPRf.js → subcategory-CwMwuKB7.js} +68 -68
  54. package/dist/{toExcel-BfCJ430y.js → toExcel-Ci42q4v8.js} +2 -2
  55. package/dist/{unit-iSgNkRTG.js → unit-RfUfENpu.js} +1 -1
  56. package/package.json +2 -2
@@ -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-DPhZMKfP.js";
4
+ import { u as k, G as M } from "./menu-DiYltG70.js";
5
5
  const v = /* @__PURE__ */ d({
6
6
  __name: "AddPriceGroupDialog",
7
7
  setup(s) {
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as le, computed as Y, resolveComponent as v, createElementBlock as i, openBlock as u, createVNode as l, createCommentVNode as g, unref as a, toDisplayString as P, createElementVNode as y, withCtx as _, Fragment as D, renderList as A, createBlock as N, ref as T, Transition as ee, createTextVNode as se } from "vue";
2
- import { J as b, I as d, u as ie, K as de, M as X } from "./menu-DPhZMKfP.js";
2
+ import { J as b, I as d, u as ie, K as de, M as X } from "./menu-DiYltG70.js";
3
3
  import { useI18n as te } from "@feedmepos/mf-common";
4
4
  import { components as re } from "@feedmepos/ui-library";
5
5
  import { _ as ce } from "./FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js";
6
6
  import { _ as W } from "./FormSection.vue_vue_type_script_setup_true_lang-CO4YGYLB.js";
7
7
  import { u as me } from "./discardConfirm-BHni0LNu.js";
8
- import { u as pe } from "./menu-DiOTTn-g.js";
9
- import { L as _e } from "./LinkProductSideSheet-CexHNJkJ.js";
8
+ import { u as pe } from "./menu-BjeZ0rce.js";
9
+ import { L as _e } from "./LinkProductSideSheet-D95C1b2A.js";
10
10
  const ve = { class: "space-y-8" }, fe = {
11
11
  key: 0,
12
12
  class: "space-y-16"
@@ -1,16 +1,16 @@
1
- import { shallowRef as X, ref as R, computed as h, shallowReactive as Fe, watch as H, defineComponent as Te, resolveComponent as B, createBlock as Re, openBlock as Ve, unref as P, withCtx as Ne, createVNode as Oe } from "vue";
2
- import { J as k, A as x, aj as Z, I, ak as z, M as E, K as ee, a9 as M, c as $, $ as w, ai as G, al as Pe, am as xe, z as Ke, ab as Ae, an as Ue, a8 as L, u as $e } from "./menu-DPhZMKfP.js";
1
+ import { shallowRef as Q, ref as R, computed as h, shallowReactive as Fe, watch as H, defineComponent as Te, resolveComponent as j, createBlock as Re, openBlock as Ne, unref as P, withCtx as Oe, createVNode as Ve } from "vue";
2
+ import { J as k, A as x, aj as Z, I, ak as z, M as E, K as ee, a9 as C, c as $, $ as w, ai as G, al as Pe, am as xe, z as Ae, ab as Ke, an as Ue, a8 as L, u as $e } from "./menu-DiYltG70.js";
3
3
  import { useCoreStore as J, useI18n as te } from "@feedmepos/mf-common";
4
4
  import { useSnackbar as De, useDialogChild as qe } from "@feedmepos/ui-library";
5
5
  import { defineStore as He } from "pinia";
6
- const We = "/assets/linked-status-BClKFg5a.js", Ye = "/assets/override-menu-Cs7sEWri.js";
7
- function je(e) {
6
+ const Ye = "/assets/linked-status-BapXE5Fs.js", We = "/assets/override-menu-BC7rOlN4.js";
7
+ function Be(e) {
8
8
  var o;
9
9
  const n = k(e), a = (o = n.variant) == null ? void 0 : o.variantCombinations;
10
10
  return delete n.variant, delete n.thumbnail, [n, ...a || []];
11
11
  }
12
- function Be(e, n, a, o) {
13
- const r = k(n), f = a ? r.modules.catalog.find((_) => _._id === a) : null, d = o ? r.modules.scheduler.find((_) => _._id === o) : null, i = f ? k(f) : void 0, m = a ? r.modules.catalog.filter((_) => _._id !== a) : [], u = d ? k(d) : void 0, s = e.reduce((_, y) => (_[y._id] = je(y), _), {});
12
+ function je(e, n, a, o) {
13
+ const r = k(n), f = a ? r.modules.catalog.find((_) => _._id === a) : null, d = o ? r.modules.scheduler.find((_) => _._id === o) : null, i = f ? k(f) : void 0, m = a ? r.modules.catalog.filter((_) => _._id !== a) : [], u = d ? k(d) : void 0, s = e.reduce((_, y) => (_[y._id] = Be(y), _), {});
14
14
  function p(_ = []) {
15
15
  const y = e.map((b) => b._id);
16
16
  return [
@@ -101,7 +101,7 @@ function ze(e, n) {
101
101
  };
102
102
  return [...o, r];
103
103
  }
104
- function W(e, n) {
104
+ function Y(e, n) {
105
105
  var o;
106
106
  if (!n)
107
107
  return e;
@@ -114,7 +114,7 @@ function W(e, n) {
114
114
  const u = (s = f == null ? void 0 : f.items) == null ? void 0 : s.find(
115
115
  (p) => p._id === m._id && p.combinationKey === m.combinationKey
116
116
  );
117
- return W(m, u);
117
+ return Y(m, u);
118
118
  }), r;
119
119
  }), a;
120
120
  }
@@ -128,7 +128,7 @@ function Ge(e, n) {
128
128
  );
129
129
  if (!f)
130
130
  throw new Error(`Item overrider not found - ${r._id} - ${r.combinationKey}`);
131
- return W(f, r);
131
+ return Y(f, r);
132
132
  })
133
133
  });
134
134
  const o = a.find((r) => !r.combinationKey);
@@ -142,7 +142,7 @@ function Ge(e, n) {
142
142
  const m = (u = f == null ? void 0 : f.items) == null ? void 0 : u.find(
143
143
  (s) => s._id === i._id && s.combinationKey === i.combinationKey
144
144
  );
145
- return W(i, m);
145
+ return Y(i, m);
146
146
  }), r;
147
147
  }), {
148
148
  ...n,
@@ -150,7 +150,7 @@ function Ge(e, n) {
150
150
  };
151
151
  }
152
152
  async function it(e, n, a, o, r, f = !0) {
153
- const d = k(a), i = f ? Be(n, d, o, r) : d, m = n.reduce((p, _) => (p[_._id] = i.modules.item.find((y) => y._id === _._id), p), {}), u = n.reduce((p, _) => {
153
+ const d = k(a), i = f ? je(n, d, o, r) : d, m = n.reduce((p, _) => (p[_._id] = i.modules.item.find((y) => y._id === _._id), p), {}), u = n.reduce((p, _) => {
154
154
  const y = _._id;
155
155
  return p[y] = ze(m[y], e), p;
156
156
  }, {}), s = x.getFallbackPrices({
@@ -186,7 +186,7 @@ async function lt(e, n) {
186
186
  if (D.has(a))
187
187
  return D.get(a);
188
188
  const o = await Z(
189
- We,
189
+ Ye,
190
190
  JSON.stringify({
191
191
  menu: e,
192
192
  itemId: n
@@ -195,7 +195,7 @@ async function lt(e, n) {
195
195
  return D.set(a, o), o;
196
196
  }
197
197
  async function ne(e, n, a) {
198
- return await Z(Ye, {
198
+ return await Z(We, {
199
199
  menu: e,
200
200
  catalogId: n,
201
201
  schedulerId: a
@@ -251,9 +251,9 @@ async function ft(e, n, a) {
251
251
  const u = (d = m.items) == null ? void 0 : d.find((p) => p._id === a && !p.combinationKey), s = e.modules.item.find((p) => p._id === a);
252
252
  if (u) {
253
253
  const p = (i = m.items) == null ? void 0 : i.filter((y) => y._id === a && y.combinationKey), _ = [u, ...p].map((y) => {
254
- var V, N;
255
- const b = y.combinationKey ? (N = (V = s == null ? void 0 : s.variant) == null ? void 0 : V.variantCombinations) == null ? void 0 : N.find(
256
- (O) => O.combinationKey === y.combinationKey
254
+ var N, O;
255
+ const b = y.combinationKey ? (O = (N = s == null ? void 0 : s.variant) == null ? void 0 : N.variantCombinations) == null ? void 0 : O.find(
256
+ (V) => V.combinationKey === y.combinationKey
257
257
  ) : s, F = b && s ? f(s, b) : y;
258
258
  return f(F, y);
259
259
  });
@@ -268,7 +268,7 @@ async function ft(e, n, a) {
268
268
  function Je({
269
269
  maxHistorySize: e = 50
270
270
  }) {
271
- const n = X([]), a = R(-1), o = h(() => a.value > 0), r = h(() => a.value < n.value.length - 1);
271
+ const n = Q([]), a = R(-1), o = h(() => a.value > 0), r = h(() => a.value < n.value.length - 1);
272
272
  function f(u) {
273
273
  n.value.push(u), a.value++, n.value.length > e && (n.value.shift(), a.value--);
274
274
  }
@@ -292,7 +292,7 @@ function Je({
292
292
  clear: m
293
293
  };
294
294
  }
295
- const Qe = {
295
+ const Xe = {
296
296
  async updateMenuModule(e, n) {
297
297
  const a = E.RequestRunner.operation(n, e.modules);
298
298
  if (a.validateError.length > 0)
@@ -329,7 +329,7 @@ function oe() {
329
329
  updatedAt: (/* @__PURE__ */ new Date()).toISOString()
330
330
  };
331
331
  }
332
- function Xe() {
332
+ function Qe() {
333
333
  return {
334
334
  restaurants: [],
335
335
  menu: { ...oe(), _rev: "" },
@@ -341,21 +341,21 @@ function Xe() {
341
341
  const Ze = He(
342
342
  "mf-menu-store-v2",
343
343
  () => {
344
- const e = Fe(Xe()), n = J(), a = De(), o = h(() => e.menu.modules.serveSequence ? M(e.menu.modules.serveSequence, {
344
+ const e = Fe(Qe()), n = J(), a = De(), o = h(() => e.menu.modules.serveSequence ? C(e.menu.modules.serveSequence, {
345
345
  selector: "position"
346
346
  }) : []), r = h(() => {
347
347
  var t;
348
348
  return ((t = n.currentBusiness.value) == null ? void 0 : t.menuVersion) || $.F_MENU_VERSION.v3;
349
349
  }), f = h(() => r.value === $.F_MENU_VERSION.v4), d = h(() => {
350
350
  const t = e.menu.modules.catalog;
351
- return M(t, { selector: "name" });
352
- }), i = h(() => e.menu.modules.catalog.find((t) => t._id === e.currentCatalogId)), m = h(() => M(p.value.modules.scheduler, { selector: "name" })), u = h(() => e.menu.modules.scheduler.find(
351
+ return C(t, { selector: "name" });
352
+ }), i = h(() => e.menu.modules.catalog.find((t) => t._id === e.currentCatalogId)), m = h(() => C(p.value.modules.scheduler, { selector: "name" })), u = h(() => e.menu.modules.scheduler.find(
353
353
  (t) => t._id === e.currentSchedulerId
354
354
  ));
355
355
  function s(t, l = !0) {
356
356
  e.menu = { ...t, _rev: e.menu._rev }, l && S.push(e.menu);
357
357
  }
358
- const p = X(oe()), _ = R(!1), y = R(1);
358
+ const p = Q(oe()), _ = R(!1), y = R(1);
359
359
  async function b() {
360
360
  _.value = !0;
361
361
  const t = await ne(
@@ -373,14 +373,14 @@ const Ze = He(
373
373
  }
374
374
  return p.value = t, _.value = !1, y.value = y.value + 1, t;
375
375
  }
376
- const V = ee.debounce(b, 200);
376
+ const N = ee.debounce(b, 200);
377
377
  H(
378
378
  () => [e.menu, e.currentCatalogId, e.currentSchedulerId],
379
379
  () => {
380
- _.value || V();
380
+ _.value || N();
381
381
  }
382
382
  );
383
- const N = h(() => [
383
+ const O = h(() => [
384
384
  {
385
385
  label: "Main",
386
386
  value: null
@@ -389,10 +389,10 @@ const Ze = He(
389
389
  label: t.name,
390
390
  value: t._id
391
391
  }))
392
- ]), O = h(() => {
392
+ ]), V = h(() => {
393
393
  const t = p.value.modules.category;
394
394
  return [
395
- ...A.value.item.addon ? [
395
+ ...K.value.item.addon ? [
396
396
  {
397
397
  _id: e.currentCatalogId ? "" : null,
398
398
  name: "Addon",
@@ -404,14 +404,14 @@ const Ze = He(
404
404
  }), re = h(() => {
405
405
  const t = p.value.modules.subCategory || [];
406
406
  return w(t, (l) => l.name);
407
- }), Y = h(() => {
407
+ }), W = h(() => {
408
408
  var l;
409
409
  let t = p.value.modules.item;
410
410
  if (i.value) {
411
411
  const c = (l = i.value) == null ? void 0 : l.override.items;
412
412
  t = t.filter((g) => {
413
- var C;
414
- const v = (C = c == null ? void 0 : c[g._id]) == null ? void 0 : C.find(
413
+ var M;
414
+ const v = (M = c == null ? void 0 : c[g._id]) == null ? void 0 : M.find(
415
415
  (ke) => !ke.combinationKey
416
416
  );
417
417
  return (v == null ? void 0 : v.orderFrom) !== I.F_ORDER_FROM.enum.NONE;
@@ -420,15 +420,15 @@ const Ze = He(
420
420
  return w(t, (c) => c.code || c.name);
421
421
  }), ae = h(() => {
422
422
  const t = e.menu.modules.category, l = w(t, (g) => g.name).reduce(
423
- (g, v, C) => (g[v._id] = C, g),
423
+ (g, v, M) => (g[v._id] = M, g),
424
424
  { "": 0 }
425
425
  ), c = e.menu.modules.item;
426
426
  return w(
427
427
  c,
428
428
  (g) => g.code || g.name
429
- ).reduce((g, v, C) => (g[v._id] = C + l[v.category || ""], g), {});
430
- }), se = h(() => G(K.value, O.value, Y.value)), ue = h(() => {
431
- const t = A.value.item.addon ? [
429
+ ).reduce((g, v, M) => (g[v._id] = M + l[v.category || ""], g), {});
430
+ }), se = h(() => G(A.value, V.value, W.value)), ue = h(() => {
431
+ const t = K.value.item.addon ? [
432
432
  {
433
433
  _id: e.currentCatalogId ? "" : null,
434
434
  name: "Addon",
@@ -441,22 +441,22 @@ const Ze = He(
441
441
  t,
442
442
  e.menu.modules.item
443
443
  );
444
- }), K = h(() => {
444
+ }), A = h(() => {
445
445
  const t = p.value.modules.variant;
446
- return M(t, { selector: "name" });
446
+ return C(t, { selector: "name" });
447
447
  });
448
448
  function ie(t = []) {
449
- const l = t.map((g) => K.value.find((v) => v._id === g)).filter((g) => !!g);
449
+ const l = t.map((g) => A.value.find((v) => v._id === g)).filter((g) => !!g);
450
450
  return x.fullVariantCombination(l).reduce((g, v) => (g[v.combinationKey] = v.selectionName.join(" / "), g), {});
451
451
  }
452
- const ce = h(() => w(p.value.modules.group, (t) => t.name)), le = h(() => M(p.value.modules.takeaway, { selector: "name" })), de = h(() => M(e.menu.modules.printDepartment || [], {
452
+ const ce = h(() => w(p.value.modules.group, (t) => t.name)), le = h(() => C(p.value.modules.takeaway, { selector: "name" })), de = h(() => C(e.menu.modules.printDepartment || [], {
453
453
  selector: "name"
454
- })), me = h(() => M(e.menu.modules.unit, { selector: "name" })), fe = h(() => M(Pe(e.menu.modules.recipe, e.menu.modules.sku), {
454
+ })), me = h(() => C(e.menu.modules.unit, { selector: "name" })), fe = h(() => C(Pe(e.menu.modules.recipe, e.menu.modules.sku), {
455
455
  selector: "name"
456
456
  })), pe = h(() => e.menu.modules.cookingGuide), _e = h(() => {
457
457
  const t = xe(e.menu.modules.sku);
458
- return M(t, { selector: "code" });
459
- }), A = h(() => {
458
+ return C(t, { selector: "code" });
459
+ }), K = h(() => {
460
460
  const t = !e.currentCatalogId, l = r.value === $.F_MENU_VERSION.v4, c = !e.currentSchedulerId, g = {
461
461
  create: t && c,
462
462
  edit: t && c,
@@ -537,13 +537,13 @@ const Ze = He(
537
537
  }
538
538
  const ye = h(() => {
539
539
  var l;
540
- const t = Ke.Country.getCountryFlattenTaxes(
540
+ const t = Ae.Country.getCountryFlattenTaxes(
541
541
  J().currentCountry.value
542
542
  );
543
543
  return {
544
544
  systemCode: (l = t[0]) == null ? void 0 : l.systemCode,
545
545
  countryTaxOptions: t.map((c) => ({
546
- label: `${c.name} (${Ae(c.rate)}%)`,
546
+ label: `${c.name} (${Ke(c.rate)}%)`,
547
547
  value: U(c),
548
548
  meta: {
549
549
  rate: c.rate
@@ -552,15 +552,15 @@ const Ze = He(
552
552
  };
553
553
  }), he = async () => {
554
554
  const t = await L.readMenu();
555
- e.menu = t ?? e.menu, j(null);
555
+ e.menu = t ?? e.menu, B(null);
556
556
  }, be = async () => {
557
557
  const t = await L.readRestaurantsWithMenu();
558
- e.restaurants = M(t, { selector: "name" });
559
- }, j = (t) => {
558
+ e.restaurants = C(t, { selector: "name" });
559
+ }, B = (t) => {
560
560
  e.currentCatalogId = t;
561
- }, Ce = (t) => {
562
- e.currentSchedulerId = t;
563
561
  }, Me = (t) => {
562
+ e.currentSchedulerId = t;
563
+ }, Ce = (t) => {
564
564
  e.currentCategoryIds = t;
565
565
  }, Ee = async (t, l) => {
566
566
  const c = Array.isArray(t) ? t : [t];
@@ -572,12 +572,12 @@ const Ze = He(
572
572
  }));
573
573
  try {
574
574
  if (l || g.some(
575
- (C) => [E.F_OPERATION_TYPE.delete, E.F_OPERATION_TYPE.deleteMany].includes(C.operation)
575
+ (M) => [E.F_OPERATION_TYPE.delete, E.F_OPERATION_TYPE.deleteMany].includes(M.operation)
576
576
  )) {
577
- const C = await Ue(g, e.menu.modules);
578
- if (C !== !0) throw new Error(C);
577
+ const M = await Ue(g, e.menu.modules);
578
+ if (M !== !0) throw new Error(M);
579
579
  }
580
- const v = await Qe.updateMenuModule(e.menu, g);
580
+ const v = await Xe.updateMenuModule(e.menu, g);
581
581
  return s(v.menu), v;
582
582
  } catch (v) {
583
583
  a.open({
@@ -610,14 +610,14 @@ const Ze = He(
610
610
  currentCatalog: i,
611
611
  schedulers: m,
612
612
  currentScheduler: u,
613
- catalogOptions: N,
614
- categories: O,
613
+ catalogOptions: O,
614
+ categories: V,
615
615
  subcategories: re,
616
- items: Y,
616
+ items: W,
617
617
  sortedItems: ae,
618
618
  categorizedItems: se,
619
619
  categorizedRawMenuItems: ue,
620
- variants: K,
620
+ variants: A,
621
621
  groups: ce,
622
622
  takeaways: le,
623
623
  printDepartments: de,
@@ -625,15 +625,15 @@ const Ze = He(
625
625
  recipes: fe,
626
626
  cookingGuide: pe,
627
627
  skus: _e,
628
- rules: A,
628
+ rules: K,
629
629
  taxSetting: ye,
630
630
  // Action
631
631
  setMenu: s,
632
632
  readMenu: he,
633
633
  readRestaurants: be,
634
- selectCatalog: j,
635
- selectScheduler: Ce,
636
- selectCategory: Me,
634
+ selectCatalog: B,
635
+ selectScheduler: Me,
636
+ selectCategory: Ce,
637
637
  updateMenu: Ee,
638
638
  updateMenuSetting: Se,
639
639
  computeMergedMenu: b,
@@ -658,7 +658,7 @@ const Ze = He(
658
658
  }
659
659
  };
660
660
  }
661
- ), Q = /* @__PURE__ */ Te({
661
+ ), X = /* @__PURE__ */ Te({
662
662
  __name: "AddSubcategoryDialogContentComponent",
663
663
  props: {
664
664
  initialValue: {}
@@ -681,12 +681,12 @@ const Ze = He(
681
681
  immediate: !0
682
682
  }
683
683
  ), (d, i) => {
684
- const m = B("fm-text-field"), u = B("FmForm");
685
- return Ve(), Re(u, {
684
+ const m = j("fm-text-field"), u = j("FmForm");
685
+ return Ne(), Re(u, {
686
686
  onValidationSuccess: i[1] || (i[1] = (s) => P(f)("primary"))
687
687
  }, {
688
- default: Ne(() => [
689
- Oe(m, {
688
+ default: Oe(() => [
689
+ Ve(m, {
690
690
  modelValue: o.value,
691
691
  "onUpdate:modelValue": i[0] || (i[0] = (s) => o.value = s),
692
692
  rules: [(s) => !!s || P(a)("menu.subcategory.dialog.add.name.required")],
@@ -709,7 +709,7 @@ const Ze = He(
709
709
  const u = R(!1);
710
710
  e.open({
711
711
  title: o("menu.subcategory.manager.dialog.add.title"),
712
- contentComponent: Q,
712
+ contentComponent: X,
713
713
  primaryActions: {
714
714
  text: o("menu.subcategory.manager.dialog.add.action"),
715
715
  close: !1,
@@ -740,7 +740,7 @@ const Ze = He(
740
740
  function d(u) {
741
741
  e.open({
742
742
  title: o("menu.subcategory.manager.dialog.update.title"),
743
- contentComponent: Q,
743
+ contentComponent: X,
744
744
  contentComponentProps: {
745
745
  initialValue: u.name
746
746
  },
@@ -1,5 +1,5 @@
1
- import { c as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-BHiI2JNW.js";
2
- import "./menu-DPhZMKfP.js";
1
+ import { c as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-C0CclPfJ.js";
2
+ import "./menu-DiYltG70.js";
3
3
  var Z = {
4
4
  defaultAmount: 0,
5
5
  defaultCurrency: "USD",
@@ -1,6 +1,6 @@
1
1
  import { defineStore as Q } from "pinia";
2
2
  import { defineComponent as T, computed as U, ref as h, watch as L, resolveComponent as V, createBlock as W, openBlock as F, withCtx as w, createVNode as m, createElementVNode as f, normalizeClass as H, 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, J as k, Q as $, G as I, A as E, K as ne, a5 as ae, M as C, I as D, u as oe } from "./menu-DPhZMKfP.js";
3
+ import { a6 as P, a7 as te, a4 as B, J as k, Q as $, G as I, A as E, K as ne, a5 as ae, M as C, I as D, u as oe } from "./menu-DiYltG70.js";
4
4
  import { useI18n as N } 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";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-menu",
3
- "version": "0.31.12-beta.1",
3
+ "version": "0.31.12-prod",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -51,7 +51,7 @@
51
51
  "vue3-lottie": "^3.3.0",
52
52
  "vuedraggable": "^4.1.0",
53
53
  "xlsx": "^0.18.5",
54
- "@feedmepos/mf-common": "^1.26.9-beta.1"
54
+ "@feedmepos/mf-common": "^1.26.10"
55
55
  },
56
56
  "devDependencies": {
57
57
  "@rollup/plugin-commonjs": "^28.0.2",