@feedmepos/mf-menu 0.31.32-beta.1 → 0.31.32-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 (58) hide show
  1. package/dist/{App-yoGgbqrM.js → App-NHdXEdrJ.js} +20 -20
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-BVMh9pzs.js → ApplyProduct.vue_vue_type_script_setup_true_lang-DoTx23iL.js} +2 -2
  3. package/dist/{Catalog-DWd4efi8.js → Catalog-B0fV6Yje.js} +5 -5
  4. package/dist/{Category-9z0kkVLe.js → Category-CJZs9I7F.js} +5 -5
  5. package/dist/{Category-C_UM22c2.js → Category-CUKZ10xq.js} +4 -4
  6. package/dist/{CookingGuide-NcJxtCtr.js → CookingGuide-kVclP--T.js} +3 -3
  7. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-BcTbvvKC.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-RI_d10bz.js} +1 -1
  8. package/dist/{Group-D0C2wOCd.js → Group-Bgkye2LL.js} +1 -1
  9. package/dist/{Group-ARggNMfD.js → Group-CAS6o4Fo.js} +3 -3
  10. package/dist/{Group.vue_vue_type_script_setup_true_lang-5Eh-CZWE.js → Group.vue_vue_type_script_setup_true_lang-Bij0tGMP.js} +7 -7
  11. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BTPKqEge.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CUa_0qzX.js} +3 -3
  12. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-CD9G715F.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-RsDAGQ3o.js} +317 -317
  13. package/dist/{Ingredient-Dn92XCcb.js → Ingredient-DpAPMsPZ.js} +3 -3
  14. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-Orm3VUIW.js → InventoryBinding.vue_vue_type_script_setup_true_lang-MoApzjt6.js} +2 -2
  15. package/dist/{LinkProductSideSheet-BAHtc-N_.js → LinkProductSideSheet-CEClo07H.js} +1 -1
  16. package/dist/{MenuSetting-C3KA280i.js → MenuSetting-CoqMT8Vh.js} +4 -4
  17. package/dist/{PrintRoute--Shz3LaS.js → PrintRoute-DyJil1Hl.js} +3 -3
  18. package/dist/{Product-CO-6260H.js → Product-BPIUTn0_.js} +1 -1
  19. package/dist/{Product.vue_vue_type_script_setup_true_lang-BdnjlsP4.js → Product.vue_vue_type_script_setup_true_lang-fjFGg49e.js} +11 -11
  20. package/dist/{ProductInternalTools-D76Li9N4.js → ProductInternalTools-DXgWE6JU.js} +6 -6
  21. package/dist/{Products-DE7_VRGo.js → Products-dWmgQ_di.js} +10 -10
  22. package/dist/{Publish-DtGB-qLN.js → Publish-DDzpmm72.js} +3 -3
  23. package/dist/{Recipe-DYTKW3WF.js → Recipe-DHYzO0IS.js} +4 -4
  24. package/dist/{Scheduler-4XCiKqSf.js → Scheduler-DBad2mO3.js} +3 -3
  25. package/dist/{ServingSequence-DUrmY-I4.js → ServingSequence-DC7raAtF.js} +3 -3
  26. package/dist/{Setting-DAPcBpdV.js → Setting-CPjvUYU9.js} +4 -4
  27. package/dist/{Subcategory-BFL6ayml.js → Subcategory-DHjc7WeF.js} +4 -4
  28. package/dist/{Takeaway-dg_9E-b_.js → Takeaway-CAIAHpA-.js} +1 -1
  29. package/dist/{Takeaway-IzItYMn1.js → Takeaway-CJRTaygj.js} +4 -4
  30. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-DYWH-hf-.js → Takeaway.vue_vue_type_script_setup_true_lang-BNu9JjwH.js} +5 -5
  31. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BiKsz8oU.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-ZRv8Dg6x.js} +13 -13
  32. package/dist/{Unit-BxkdcTob.js → Unit-DSMSKE6_.js} +2 -2
  33. package/dist/{Variant-DO3kI2Mq.js → Variant-DMXxUWnj.js} +3 -3
  34. package/dist/{_id_-Bgtie8Eq.js → _id_-CTq4qK7z.js} +9 -9
  35. package/dist/{app-4mp76LBw.js → app-BTgdGTYz.js} +1 -1
  36. package/dist/{app-DmzrVi1v.js → app-D23N7tJ0.js} +24 -24
  37. package/dist/app.js +1 -1
  38. package/dist/assets/{linked-status-B3GK0lkt.js → linked-status-Cfc9wZst.js} +7 -7
  39. package/dist/assets/{override-menu-BDiFcZqQ.js → override-menu-BNZggtO_.js} +2 -2
  40. package/dist/assets/{validate-menu-ByfkOKUz.js → validate-menu-CPwUvy9F.js} +2 -2
  41. package/dist/{catalog-j7WdQV3w.js → catalog-DcciqmWK.js} +1 -1
  42. package/dist/{catalogSetting-DR2wkdhm.js → catalogSetting-D4iwoJLb.js} +1 -1
  43. package/dist/{category-65gMW4we.js → category-bhqVqDzJ.js} +1 -1
  44. package/dist/{currency-k6CAzMi0.js → currency-Clgvy00I.js} +1 -1
  45. package/dist/{dayjs.min-BJ08QQbt.js → dayjs.min-DeSv8lfJ.js} +1 -1
  46. package/dist/{index-Djltsima.js → index-BHbYu_OM.js} +2 -2
  47. package/dist/{index-C7EMP2i4.js → index-CTUaJyIh.js} +3 -3
  48. package/dist/{index-DbX8VUTJ.js → index-DZZJjEOs.js} +1 -1
  49. package/dist/{item-D1xBXT5U.js → item-DH1xf2Sa.js} +373 -373
  50. package/dist/{jszip.min-i_8AZTD0.js → jszip.min-CMM2HN8J.js} +689 -689
  51. package/dist/{menu-DvADmo1b.js → menu-DcGo3sn5.js} +160 -160
  52. package/dist/{menu-BavjwQ0r.js → menu-Dx39P1vR.js} +1 -1
  53. package/dist/{priceTier-D-rhuTb5.js → priceTier-3M5cxSYX.js} +1 -1
  54. package/dist/{scheduler-Vsrzit9V.js → scheduler-BT3EJBK6.js} +3 -3
  55. package/dist/{subcategory-DpIvUGdf.js → subcategory-B5atmACN.js} +57 -57
  56. package/dist/{toExcel-DRc4oNPw.js → toExcel-BLoj4Wqb.js} +2 -2
  57. package/dist/{unit-26oewOyX.js → unit-BsNOQHvZ.js} +1 -1
  58. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import { computed as n, onMounted as d, onBeforeUnmount as g } from "vue";
2
- import { u as a } from "./menu-DvADmo1b.js";
2
+ import { u as a } from "./menu-DcGo3sn5.js";
3
3
  import "@feedmepos/mf-common";
4
4
  import "@feedmepos/ui-library";
5
5
  function p() {
@@ -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, D as M } from "./menu-DvADmo1b.js";
4
+ import { u as k, D as M } from "./menu-DcGo3sn5.js";
5
5
  const v = /* @__PURE__ */ d({
6
6
  __name: "AddPriceGroupDialog",
7
7
  setup(s) {
@@ -1,12 +1,12 @@
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 A, 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, G as r, u as pe, I as ve, J as ue } from "./menu-DvADmo1b.js";
2
+ import { H as S, G as r, u as pe, I as ve, J as ue } from "./menu-DcGo3sn5.js";
3
3
  import { useI18n as de } from "@feedmepos/mf-common";
4
4
  import { components as _e } from "@feedmepos/ui-library";
5
5
  import { _ as fe } from "./FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js";
6
6
  import { _ as ne } from "./FormSection.vue_vue_type_script_setup_true_lang-CO4YGYLB.js";
7
7
  import { u as ye } from "./discardConfirm-BHni0LNu.js";
8
- import { u as he } from "./menu-BavjwQ0r.js";
9
- import { L as ge } from "./LinkProductSideSheet-BAHtc-N_.js";
8
+ import { u as he } from "./menu-Dx39P1vR.js";
9
+ import { L as ge } from "./LinkProductSideSheet-CEClo07H.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 Z, ref as T, computed as h, shallowReactive as Fe, effectScope as Re, watch as B, defineComponent as Te, resolveComponent as G, createBlock as Ve, openBlock as Ne, unref as N, withCtx as Oe, createVNode as xe } from "vue";
2
- import { H as k, B as O, ak as X, G as I, al as z, J as S, I as ee, aa as M, c as D, Y as w, aj as L, am as Pe, an as Ae, A as Ke, ac as Ue, ao as De, ap as $e, a9 as qe, u as Be } from "./menu-DvADmo1b.js";
1
+ import { shallowRef as Q, ref as T, computed as h, shallowReactive as Fe, effectScope as Re, watch as H, defineComponent as Te, resolveComponent as z, createBlock as Ve, openBlock as Ne, unref as N, withCtx as Oe, createVNode as xe } from "vue";
2
+ import { H as k, B as O, ak as X, G as I, al as G, J as S, I as ee, aa as M, c as D, Y as E, aj as L, am as Pe, an as Ae, A as Ue, ac as Ke, ao as De, ap as $e, a9 as qe, u as He } from "./menu-DcGo3sn5.js";
3
3
  import { useCoreStore as J, useI18n as te } from "@feedmepos/mf-common";
4
- import { useSnackbar as He, useDialogChild as Ye } from "@feedmepos/ui-library";
4
+ import { useSnackbar as Ye, useDialogChild as Be } from "@feedmepos/ui-library";
5
5
  import { defineStore as We } from "pinia";
6
- const je = "/assets/linked-status-B3GK0lkt.js", Ge = "/assets/override-menu-BDiFcZqQ.js";
7
- function ze(e) {
6
+ const je = "/assets/linked-status-Cfc9wZst.js", ze = "/assets/override-menu-BNZggtO_.js";
7
+ function Ge(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
12
  function Le(e, n, a, o) {
13
- const r = k(n), m = a ? r.modules.catalog.find((g) => g._id === a) : null, l = o ? r.modules.scheduler.find((g) => g._id === o) : null, i = m ? k(m) : void 0, d = a ? r.modules.catalog.filter((g) => g._id !== a) : [], u = l ? k(l) : void 0, s = e.reduce((g, y) => (g[y._id] = ze(y), g), {});
13
+ const r = k(n), m = a ? r.modules.catalog.find((g) => g._id === a) : null, l = o ? r.modules.scheduler.find((g) => g._id === o) : null, i = m ? k(m) : void 0, d = a ? r.modules.catalog.filter((g) => g._id !== a) : [], u = l ? k(l) : void 0, s = e.reduce((g, y) => (g[y._id] = Ge(y), g), {});
14
14
  function p(g = []) {
15
15
  const y = e.map((b) => b._id);
16
16
  return [
@@ -35,9 +35,9 @@ function Le(e, n, a, o) {
35
35
  ...r.modules.scheduler.filter((g) => g._id !== o),
36
36
  u
37
37
  ], r) : {
38
- ...z(),
38
+ ...G(),
39
39
  modules: {
40
- ...z().modules,
40
+ ...G().modules,
41
41
  catalog: r.modules.catalog,
42
42
  item: r.modules.item,
43
43
  group: r.modules.group,
@@ -101,7 +101,7 @@ function Je(e, n) {
101
101
  };
102
102
  return [...o, r];
103
103
  }
104
- function H(e, n) {
104
+ function Y(e, n) {
105
105
  var o;
106
106
  if (!n)
107
107
  return e;
@@ -114,11 +114,11 @@ function H(e, n) {
114
114
  const u = (s = m == null ? void 0 : m.items) == null ? void 0 : s.find(
115
115
  (p) => p._id === d._id && p.combinationKey === d.combinationKey
116
116
  );
117
- return H(d, u);
117
+ return Y(d, u);
118
118
  }), r;
119
119
  }), a;
120
120
  }
121
- function Qe(e, n) {
121
+ function Ze(e, n) {
122
122
  const a = e.items[n._id];
123
123
  n.variant && (n.variant = {
124
124
  ...n.variant,
@@ -128,7 +128,7 @@ function Qe(e, n) {
128
128
  );
129
129
  if (!m)
130
130
  throw new Error(`Item overrider not found - ${r._id} - ${r.combinationKey}`);
131
- return H(m, r);
131
+ return Y(m, r);
132
132
  })
133
133
  });
134
134
  const o = a.find((r) => !r.combinationKey);
@@ -142,7 +142,7 @@ function Qe(e, n) {
142
142
  const d = (u = m == null ? void 0 : m.items) == null ? void 0 : u.find(
143
143
  (s) => s._id === i._id && s.combinationKey === i.combinationKey
144
144
  );
145
- return H(i, d);
145
+ return Y(i, d);
146
146
  }), r;
147
147
  }), {
148
148
  ...n,
@@ -162,7 +162,7 @@ async function dt(e, n, a, o, r, m = !0) {
162
162
  return n.map((p) => {
163
163
  const g = p._id, y = d[g];
164
164
  return {
165
- ...Qe(s, y),
165
+ ...Ze(s, y),
166
166
  category: o || r ? y == null ? void 0 : y.category : null
167
167
  };
168
168
  });
@@ -195,7 +195,7 @@ async function ft(e, n) {
195
195
  return $.set(a, o), o;
196
196
  }
197
197
  async function ne(e, n, a) {
198
- return await X(Ge, {
198
+ return await X(ze, {
199
199
  menu: e,
200
200
  catalogId: n,
201
201
  schedulerId: a
@@ -232,7 +232,7 @@ function _t(e, n, a) {
232
232
  return r(n, a);
233
233
  }
234
234
  const q = /* @__PURE__ */ new Map();
235
- async function Ze(e, n, a) {
235
+ async function Qe(e, n, a) {
236
236
  const o = `${e._id}-${e.updatedAt}-${n || "null"}-${a || "null"}`;
237
237
  if (q.has(o))
238
238
  return q.get(o);
@@ -241,7 +241,7 @@ async function Ze(e, n, a) {
241
241
  }
242
242
  async function gt(e, n, a) {
243
243
  var l, i;
244
- const o = await Ze(e, n, null), r = [], m = (d, u) => {
244
+ const o = await Qe(e, n, null), r = [], m = (d, u) => {
245
245
  const s = k(d);
246
246
  for (const p in u)
247
247
  u[p] && (s[p] = u[p]);
@@ -268,7 +268,7 @@ async function gt(e, n, a) {
268
268
  function Xe({
269
269
  maxHistorySize: e = 50
270
270
  }) {
271
- const n = Z([]), a = T(-1), o = h(() => a.value > 0), r = h(() => a.value < n.value.length - 1);
271
+ const n = Q([]), a = T(-1), o = h(() => a.value > 0), r = h(() => a.value < n.value.length - 1);
272
272
  function m(u) {
273
273
  n.value.push(u), a.value++, n.value.length > e && (n.value.shift(), a.value--);
274
274
  }
@@ -341,7 +341,7 @@ function tt() {
341
341
  const nt = We(
342
342
  "mf-menu-store-v2",
343
343
  () => {
344
- const e = Fe(tt()), n = J(), a = He(), o = h(() => e.menu.modules.serveSequence ? M(e.menu.modules.serveSequence, {
344
+ const e = Fe(tt()), n = J(), a = Ye(), o = h(() => e.menu.modules.serveSequence ? M(e.menu.modules.serveSequence, {
345
345
  selector: "position"
346
346
  }) : []), r = h(() => {
347
347
  var t;
@@ -353,9 +353,9 @@ const nt = We(
353
353
  (t) => t._id === e.currentSchedulerId
354
354
  ));
355
355
  function s(t, c = !0) {
356
- e.menu = { ...t, _rev: e.menu._rev }, c && E.push(e.menu);
356
+ e.menu = { ...t, _rev: e.menu._rev }, c && w.push(e.menu);
357
357
  }
358
- const p = Z(oe()), g = T(!1), y = T(1);
358
+ const p = Q(oe()), g = T(!1), y = T(1);
359
359
  async function b() {
360
360
  g.value = !0;
361
361
  const t = await ne(
@@ -375,7 +375,7 @@ const nt = We(
375
375
  }
376
376
  const V = ee.debounce(b, 200);
377
377
  Re(!0).run(() => {
378
- B(
378
+ H(
379
379
  () => [e.menu, e.currentCatalogId, e.currentSchedulerId],
380
380
  () => {
381
381
  g.value || V();
@@ -391,21 +391,21 @@ const nt = We(
391
391
  label: t.name,
392
392
  value: t._id
393
393
  }))
394
- ]), Y = h(() => {
394
+ ]), B = h(() => {
395
395
  const t = p.value.modules.category;
396
396
  return [
397
- ...K.value.item.addon ? [
397
+ ...U.value.item.addon ? [
398
398
  {
399
399
  _id: e.currentCatalogId ? "" : null,
400
400
  name: "Addon",
401
401
  position: 0
402
402
  }
403
403
  ] : [],
404
- ...w(t, (c) => c.name)
404
+ ...E(t, (c) => c.name)
405
405
  ];
406
406
  }), re = h(() => {
407
407
  const t = p.value.modules.subCategory || [];
408
- return w(t, (c) => c.name);
408
+ return E(t, (c) => c.name);
409
409
  }), W = h(() => {
410
410
  var c;
411
411
  let t = p.value.modules.item;
@@ -419,18 +419,18 @@ const nt = We(
419
419
  return (_ == null ? void 0 : _.orderFrom) !== I.F_ORDER_FROM.enum.NONE;
420
420
  });
421
421
  }
422
- return w(t, (f) => f.code || f.name);
422
+ return E(t, (f) => f.code || f.name);
423
423
  }), ae = h(() => {
424
- const t = e.menu.modules.category, c = w(t, (v) => v.name).reduce(
424
+ const t = e.menu.modules.category, c = E(t, (v) => v.name).reduce(
425
425
  (v, _, C) => (v[_._id] = C, v),
426
426
  { "": 0 }
427
427
  ), f = e.menu.modules.item;
428
- return w(
428
+ return E(
429
429
  f,
430
430
  (v) => v.code || v.name
431
431
  ).reduce((v, _, C) => (v[_._id] = C + c[_.category || ""], v), {});
432
- }), se = h(() => L(A.value, Y.value, W.value)), ue = h(() => {
433
- const t = K.value.item.addon ? [
432
+ }), se = h(() => L(A.value, B.value, W.value)), ue = h(() => {
433
+ const t = U.value.item.addon ? [
434
434
  {
435
435
  _id: e.currentCatalogId ? "" : null,
436
436
  name: "Addon",
@@ -451,14 +451,14 @@ const nt = We(
451
451
  const c = t.map((v) => A.value.find((_) => _._id === v)).filter((v) => !!v);
452
452
  return O.fullVariantCombination(c).reduce((v, _) => (v[_.combinationKey] = _.selectionName.join(" / "), v), {});
453
453
  }
454
- 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 || [], {
454
+ const ce = h(() => E(p.value.modules.group, (t) => t.name)), le = h(() => M(p.value.modules.takeaway, { selector: "name" })), de = h(() => M(e.menu.modules.printDepartment || [], {
455
455
  selector: "name"
456
456
  })), me = h(() => M(e.menu.modules.unit, { selector: "name" })), fe = h(() => M(Pe(e.menu.modules.recipe, e.menu.modules.sku), {
457
457
  selector: "name"
458
458
  })), pe = h(() => e.menu.modules.cookingGuide), _e = h(() => {
459
459
  const t = Ae(e.menu.modules.sku);
460
460
  return M(t, { selector: "code" });
461
- }), K = h(() => {
461
+ }), U = h(() => {
462
462
  const t = !e.currentCatalogId, c = r.value === D.F_MENU_VERSION.v4, f = !e.currentSchedulerId, v = {
463
463
  create: t && f,
464
464
  edit: t && f,
@@ -527,7 +527,7 @@ const nt = We(
527
527
  }
528
528
  };
529
529
  });
530
- function U(t) {
530
+ function K(t) {
531
531
  return `${t.systemCode}/${t.taxCode}`;
532
532
  }
533
533
  function ge(t) {
@@ -535,15 +535,15 @@ const nt = We(
535
535
  return { systemCode: c, taxCode: f };
536
536
  }
537
537
  function ve(t, c, f) {
538
- return (t ?? c ?? []).map((v) => U(v)).find((v) => f.some((_) => _.value === v));
538
+ return (t ?? c ?? []).map((v) => K(v)).find((v) => f.some((_) => _.value === v));
539
539
  }
540
540
  const ye = h(() => {
541
541
  var v;
542
- const t = ["SV5", "SV10"], c = Ke.Country.getCountryFlattenTaxes(
542
+ const t = ["SV5", "SV10"], c = Ue.Country.getCountryFlattenTaxes(
543
543
  J().currentCountry.value
544
544
  ), f = c.filter((_) => m.value || !t.includes(_.taxCode)).map((_) => ({
545
- label: `${_.name} (${Ue(_.rate)}%)`,
546
- value: U(_),
545
+ label: `${_.name} (${Ke(_.rate)}%)`,
546
+ value: K(_),
547
547
  meta: {
548
548
  rate: _.rate
549
549
  }
@@ -592,7 +592,7 @@ const nt = We(
592
592
  message: _
593
593
  });
594
594
  }
595
- }, Ee = async (t) => {
595
+ }, we = async (t) => {
596
596
  const c = {
597
597
  ...e.menu,
598
598
  masterCatalogSetting: t.masterCatalogSetting,
@@ -600,7 +600,7 @@ const nt = We(
600
600
  priceTierSettings: t.priceTierSettings
601
601
  };
602
602
  return s(c), c;
603
- }, E = Xe({ maxHistorySize: 50 }), we = h(() => E.canUndo.value), Ie = h(() => E.canRedo.value);
603
+ }, w = Xe({ maxHistorySize: 50 }), Ee = h(() => w.canUndo.value), Ie = h(() => w.canRedo.value);
604
604
  return {
605
605
  state: e,
606
606
  // loading state
@@ -617,7 +617,7 @@ const nt = We(
617
617
  schedulers: d,
618
618
  currentScheduler: u,
619
619
  catalogOptions: P,
620
- categories: Y,
620
+ categories: B,
621
621
  subcategories: re,
622
622
  items: W,
623
623
  sortedItems: ae,
@@ -631,7 +631,7 @@ const nt = We(
631
631
  recipes: fe,
632
632
  cookingGuide: pe,
633
633
  skus: _e,
634
- rules: K,
634
+ rules: U,
635
635
  taxSetting: ye,
636
636
  // Action
637
637
  setMenu: s,
@@ -641,44 +641,44 @@ const nt = We(
641
641
  selectScheduler: Ce,
642
642
  selectCategory: Me,
643
643
  updateMenu: Se,
644
- updateMenuSetting: Ee,
644
+ updateMenuSetting: we,
645
645
  computeMergedMenu: b,
646
646
  // helper
647
- encodeTax: U,
647
+ encodeTax: K,
648
648
  decodeTax: ge,
649
649
  getSelectedTax: ve,
650
650
  mapVariant: ie,
651
651
  // history
652
- canUndoHistory: we,
652
+ canUndoHistory: Ee,
653
653
  canRedoHistory: Ie,
654
654
  undoHistory: () => {
655
- const t = E.undo();
655
+ const t = w.undo();
656
656
  t && s(t, !1);
657
657
  },
658
658
  redoHistory: () => {
659
- const t = E.redo();
659
+ const t = w.redo();
660
660
  t && s(t, !1);
661
661
  },
662
662
  clearHistory: () => {
663
- E.clear();
663
+ w.clear();
664
664
  }
665
665
  };
666
666
  }
667
- ), Q = /* @__PURE__ */ Te({
667
+ ), Z = /* @__PURE__ */ Te({
668
668
  __name: "AddSubcategoryDialogContentComponent",
669
669
  props: {
670
670
  initialValue: {}
671
671
  },
672
672
  setup(e) {
673
673
  const n = e, { t: a } = te();
674
- B(
674
+ H(
675
675
  () => n.initialValue,
676
676
  (l) => {
677
677
  o.value = l ?? "";
678
678
  }
679
679
  );
680
- const o = T(n.initialValue), { emitData: r, emitAction: m } = Ye();
681
- return B(
680
+ const o = T(n.initialValue), { emitData: r, emitAction: m } = Be();
681
+ return H(
682
682
  o,
683
683
  (l) => {
684
684
  r(l);
@@ -687,7 +687,7 @@ const nt = We(
687
687
  immediate: !0
688
688
  }
689
689
  ), (l, i) => {
690
- const d = G("fm-text-field"), u = G("FmForm");
690
+ const d = z("fm-text-field"), u = z("FmForm");
691
691
  return Ne(), Ve(u, {
692
692
  onValidationSuccess: i[1] || (i[1] = (s) => N(m)("primary"))
693
693
  }, {
@@ -715,7 +715,7 @@ const nt = We(
715
715
  const u = T(!1);
716
716
  e.open({
717
717
  title: o("menu.subcategory.manager.dialog.add.title"),
718
- contentComponent: Q,
718
+ contentComponent: Z,
719
719
  primaryActions: {
720
720
  text: o("menu.subcategory.manager.dialog.add.action"),
721
721
  close: !1,
@@ -734,7 +734,7 @@ const nt = We(
734
734
  operation: S.F_OPERATION_TYPE.create,
735
735
  data: {
736
736
  name: s,
737
- position: Be().subcategories.length
737
+ position: He().subcategories.length
738
738
  }
739
739
  };
740
740
  a ? await r(p) : await n.updateMenu(p, s), e.close();
@@ -746,7 +746,7 @@ const nt = We(
746
746
  function l(u) {
747
747
  e.open({
748
748
  title: o("menu.subcategory.manager.dialog.update.title"),
749
- contentComponent: Q,
749
+ contentComponent: Z,
750
750
  contentComponentProps: {
751
751
  initialValue: u.name
752
752
  },
@@ -812,6 +812,6 @@ export {
812
812
  gt as f,
813
813
  mt as g,
814
814
  dt as m,
815
- Ze as o,
815
+ Qe as o,
816
816
  nt as u
817
817
  };
@@ -1,5 +1,5 @@
1
- import { b as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-CD9G715F.js";
2
- import "./menu-DvADmo1b.js";
1
+ import { b as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-RsDAGQ3o.js";
2
+ import "./menu-DcGo3sn5.js";
3
3
  var Z = {
4
4
  defaultAmount: 0,
5
5
  defaultCurrency: "USD",
@@ -1,6 +1,6 @@
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 { a7 as B, a8 as te, a5 as P, H as k, O as $, D as I, B as E, I as ne, a6 as ae, J as C, G as D, u as oe } from "./menu-DvADmo1b.js";
3
+ import { a7 as B, a8 as te, a5 as P, H as k, O as $, D as I, B as E, I as ne, a6 as ae, J as C, G as D, u as oe } from "./menu-DcGo3sn5.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";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-menu",
3
- "version": "0.31.32-beta.1",
3
+ "version": "0.31.32-prod",
4
4
  "files": [
5
5
  "dist"
6
6
  ],