@feedmepos/mf-menu 0.32.60-dev.1 → 0.32.60

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 (67) hide show
  1. package/dist/{App-21Fh45As.js → App-qJJD8JDg.js} +7 -7
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-l0PLyvfS.js → ApplyProduct.vue_vue_type_script_setup_true_lang-3IAymj0v.js} +3 -3
  3. package/dist/{ApplyProductDialog.vue_vue_type_script_setup_true_lang-D9F_qZUW.js → ApplyProductDialog.vue_vue_type_script_setup_true_lang-BCaHfdwI.js} +2 -2
  4. package/dist/{Catalog-BNFBfeVl.js → Catalog-BJLVNbtg.js} +6 -6
  5. package/dist/{Category-KedP0bLk.js → Category-BvSlf9Jr.js} +4 -4
  6. package/dist/{Category-D46Zh0U2.js → Category-CdZbMTjh.js} +4 -4
  7. package/dist/{CookingGuide-L_yCYzVo.js → CookingGuide-DZuBUaAY.js} +4 -4
  8. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-CWnwBGb4.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-D6j6hf94.js} +1 -1
  9. package/dist/{Group-BnogWBW3.js → Group-CHPX3H86.js} +3 -3
  10. package/dist/{Group-C6f8CbIA.js → Group-DmFHx6jN.js} +1 -1
  11. package/dist/{Group.vue_vue_type_script_setup_true_lang-0YR_ZV8F.js → Group.vue_vue_type_script_setup_true_lang-DZSl5qcO.js} +6 -6
  12. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CXjapKCh.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-B2bl86Fv.js} +5 -5
  13. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-CFjS_1Ws.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-DR8QkK1A.js} +7 -7
  14. package/dist/{Ingredient-fTfAFfrQ.js → Ingredient-D0KdIrJq.js} +3 -3
  15. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-BUZjQ6V4.js → InventoryBinding.vue_vue_type_script_setup_true_lang-CgUfMeJA.js} +2 -2
  16. package/dist/{LinkProductSideSheet-CQRvO3h0.js → LinkProductSideSheet-DekFylFC.js} +3 -3
  17. package/dist/{MenuSetting-Dh8ZUdTV.js → MenuSetting-myHnou7F.js} +6 -6
  18. package/dist/{OrderPacing-BAyNtquU.js → OrderPacing-MonT1vZe.js} +5 -5
  19. package/dist/{PrintRoute-Cwjj0Yjh.js → PrintRoute-DN9Brbcf.js} +4 -4
  20. package/dist/{Product-DyPD27o5.js → Product-lPh8v5hj.js} +1 -1
  21. package/dist/{Product.vue_vue_type_script_setup_true_lang-D8VJf6ck.js → Product.vue_vue_type_script_setup_true_lang-o7PbyjC5.js} +12 -12
  22. package/dist/{ProductInternalTools-CjtfIem0.js → ProductInternalTools-BG6HIIC7.js} +6 -6
  23. package/dist/{Products-B4zwJdTK.js → Products-AqyIFFON.js} +43 -43
  24. package/dist/{Publish-B-d-HDdC.js → Publish-2bUhATD1.js} +3 -3
  25. package/dist/{Recipe-B6XhSSjL.js → Recipe-CDguB2NC.js} +4 -4
  26. package/dist/{RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-B5NNOtuC.js → RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-DiDtVQmO.js} +1 -1
  27. package/dist/{RuleView.vue_vue_type_script_setup_true_lang-C7MR2OwK.js → RuleView.vue_vue_type_script_setup_true_lang-DATrEmoz.js} +460 -460
  28. package/dist/{Scheduler-aTMeXc1J.js → Scheduler-DY5kdIr1.js} +3 -3
  29. package/dist/{ServingSequence-u10_LImJ.js → ServingSequence-DV8JSkfn.js} +3 -3
  30. package/dist/{Setting-mqRO9M3A.js → Setting-C2iYE9Nf.js} +5 -5
  31. package/dist/{Subcategory-Dws247zO.js → Subcategory-C3TDDesl.js} +5 -5
  32. package/dist/{Takeaway-l6t2P0CM.js → Takeaway-1RTym_29.js} +1 -1
  33. package/dist/{Takeaway-xrF-l_5-.js → Takeaway-DeKOn78v.js} +4 -4
  34. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-CTGqjfPL.js → Takeaway.vue_vue_type_script_setup_true_lang-DCg5EZ-Q.js} +5 -5
  35. package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-ny91N8sC.js → Thumbnail.vue_vue_type_script_setup_true_lang-CZmN9QIF.js} +4 -4
  36. package/dist/{TranslationFieldSection.vue_vue_type_script_setup_true_lang-D2i3w3vg.js → TranslationFieldSection.vue_vue_type_script_setup_true_lang-BzEjweqc.js} +1 -1
  37. package/dist/{TranslationSideSheet.vue_vue_type_script_setup_true_lang-YLRlDi4-.js → TranslationSideSheet.vue_vue_type_script_setup_true_lang-qp1XGtIS.js} +2 -2
  38. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-D5YGS6OF.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-jeDWAfrj.js} +14 -14
  39. package/dist/{Unit-CWgfilET.js → Unit-CWf321-e.js} +2 -2
  40. package/dist/{Variant-Bz1KfxAa.js → Variant-DPbgLfVh.js} +3 -3
  41. package/dist/{_id_-L2rFq9_N.js → _id_-BGo_iZ3b.js} +9 -9
  42. package/dist/{app-CHE3ax6p.js → app-17c6pvZw.js} +1 -1
  43. package/dist/{app-B-k_3Xub.js → app-CUT-XiX7.js} +32 -32
  44. package/dist/app.js +1 -1
  45. package/dist/assets/{linked-status-BJ87x0uc.js → linked-status-D1ElNa8U.js} +2 -2
  46. package/dist/assets/{menu-export-JPnS6OhL.js → menu-export-BJnF70YD.js} +2 -2
  47. package/dist/assets/{override-menu-Bbcn8K2b.js → override-menu-DIisF_bD.js} +2 -2
  48. package/dist/assets/{validate-menu-DV2Q2SYz.js → validate-menu-D_7tXxG5.js} +2 -2
  49. package/dist/{catalog-DaO8QBSU.js → catalog-0cjjJP7-.js} +1 -1
  50. package/dist/{catalogSetting-Bks6N0Pq.js → catalogSetting-D2bHVIkK.js} +1 -1
  51. package/dist/{currency-BVqmQ8Pm.js → currency-X4rTV0SS.js} +1 -1
  52. package/dist/{dayjs.min-C5JlG2KX.js → dayjs.min-BhGX_phM.js} +2 -2
  53. package/dist/{index-B__5-vsM.js → index-DbgT8DgR.js} +4 -4
  54. package/dist/{index-CCO0ZsOp.js → index-f8bZr7SF.js} +5 -5
  55. package/dist/{index.vue_vue_type_script_setup_true_lang-DsMFmYGf.js → index.vue_vue_type_script_setup_true_lang-Bxs-AkVQ.js} +6 -6
  56. package/dist/{item-DBtmeIW9.js → item-9EebIIoe.js} +18 -18
  57. package/dist/{jszip.min-BIg_yHC8.js → jszip.min-DU30B0hI.js} +537 -537
  58. package/dist/{memberPricing-C0qx6TEN.js → memberPricing-DPDxnp5u.js} +1 -1
  59. package/dist/{menu-DzWUnx8X.js → menu-BCV_96fD.js} +1 -1
  60. package/dist/{menuV2-COSJ__9Q.js → menuV2-DxGiWEWy.js} +74 -74
  61. package/dist/{order_pacing-C8jdjM6u.js → order_pacing-DEN-iiUf.js} +5 -5
  62. package/dist/{priceTier-BP2_Mn24.js → priceTier-5RWOh5Wn.js} +1 -1
  63. package/dist/{rules-4DOmc5Ho.js → rules-Dzzqi10w.js} +3 -3
  64. package/dist/{scheduler-Dn9jQp6E.js → scheduler-BjhDOBcr.js} +4 -4
  65. package/dist/{toExcel-CXdU7vZw.js → toExcel-oD9GONEM.js} +2 -2
  66. package/dist/{unit-UV-cxB98.js → unit-D7C8fM49.js} +2 -2
  67. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as d, ref as _, watch as S, resolveComponent as b, createBlock as f, openBlock as y, unref as M, computed as T } from "vue";
2
- import { u as h, B as w } from "./index.vue_vue_type_script_setup_true_lang-DsMFmYGf.js";
2
+ import { u as h, B as w } from "./index.vue_vue_type_script_setup_true_lang-Bxs-AkVQ.js";
3
3
  import { useI18n as l } from "@feedmepos/mf-common";
4
4
  import { useDialogChild as x, useDialog as C, useSnackbar as P } from "@feedmepos/ui-library";
5
5
  const k = /* @__PURE__ */ d({
@@ -1,5 +1,5 @@
1
1
  import { computed as n, onMounted as d, onBeforeUnmount as m } from "vue";
2
- import { u as c } from "./index.vue_vue_type_script_setup_true_lang-DsMFmYGf.js";
2
+ import { u as c } from "./index.vue_vue_type_script_setup_true_lang-Bxs-AkVQ.js";
3
3
  import "@feedmepos/mf-common";
4
4
  import "@feedmepos/ui-library";
5
5
  function p() {
@@ -1,12 +1,12 @@
1
1
  var We = Object.defineProperty;
2
2
  var ze = (e, t, n) => t in e ? We(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var ne = (e, t, n) => ze(e, typeof t != "symbol" ? t + "" : t, n);
4
- import { I as ae, G as I, A as T, U as ue, ax as re, J as q, H as ie, aj as x, c as z, a0 as D, au as oe, ay as Le, az as Be, z as qe, am as He, aA as Ge, aB as Je, ah as Ye } from "./index.vue_vue_type_script_setup_true_lang-DsMFmYGf.js";
4
+ import { I as ae, G as I, A as T, U as ue, ax as re, J as H, H as ie, aj as x, c as z, a0 as V, au as oe, ay as Le, az as qe, z as He, am as Be, aA as Ge, aB as Je, ah as Ye } from "./index.vue_vue_type_script_setup_true_lang-Bxs-AkVQ.js";
5
5
  import { defineStore as Qe } from "pinia";
6
- import { shallowRef as j, ref as H, computed as b, shallowReactive as Xe, effectScope as Ze, watch as et } from "vue";
6
+ import { shallowRef as N, ref as B, computed as S, shallowReactive as Xe, effectScope as Ze, watch as et } from "vue";
7
7
  import { useCoreStore as se } from "@feedmepos/mf-common";
8
8
  import { useSnackbar as tt } from "@feedmepos/ui-library";
9
- const nt = "/assets/linked-status-BJ87x0uc.js", rt = "/assets/override-menu-Bbcn8K2b.js";
9
+ const nt = "/assets/linked-status-D1ElNa8U.js", rt = "/assets/override-menu-DIisF_bD.js";
10
10
  function ot(e) {
11
11
  var s;
12
12
  const t = I(e), n = (s = t.variant) == null ? void 0 : s.variantCombinations;
@@ -62,7 +62,7 @@ function F(e, t, n) {
62
62
  return a ? d = ((g = l.items) == null ? void 0 : g.map((f) => {
63
63
  var h;
64
64
  const v = (h = a.items) == null ? void 0 : h.find(
65
- (S) => S._id === f._id && S.combinationKey === f.combinationKey
65
+ (b) => b._id === f._id && b.combinationKey === f.combinationKey
66
66
  );
67
67
  return F(v || f, t, n + 1);
68
68
  })) ?? [] : d = ((y = l.items) == null ? void 0 : y.map((f) => F(f, t, n + 1))) ?? [], {
@@ -152,7 +152,7 @@ function ut(e, t) {
152
152
  price: (s == null ? void 0 : s.price) || t.price
153
153
  };
154
154
  }
155
- async function Vt(e, t, n, s, o, u = !0) {
155
+ async function Dt(e, t, n, s, o, u = !0) {
156
156
  const l = I(n), a = u ? st(t, l, s, o) : l, d = t.reduce((y, f) => (y[f._id] = a.modules.item.find((v) => v._id === f._id), y), {}), c = t.reduce((y, f) => {
157
157
  const v = f._id;
158
158
  return y[v] = at(d[v], e), y;
@@ -170,7 +170,7 @@ async function Vt(e, t, n, s, o, u = !0) {
170
170
  };
171
171
  });
172
172
  }
173
- function Dt(e, t) {
173
+ function Vt(e, t) {
174
174
  if (e.length === 0) return "";
175
175
  const n = e == null ? void 0 : e.split("variant");
176
176
  return ((n == null ? void 0 : n.reduce((o, u) => {
@@ -204,13 +204,13 @@ async function ce(e, t, n) {
204
204
  schedulerId: n
205
205
  });
206
206
  }
207
- const B = /* @__PURE__ */ new Map();
207
+ const q = /* @__PURE__ */ new Map();
208
208
  async function it(e, t, n) {
209
209
  const s = `${e._id}-${e.updatedAt}-${t || "null"}-${n || "null"}`;
210
- if (B.has(s))
211
- return B.get(s);
210
+ if (q.has(s))
211
+ return q.get(s);
212
212
  const o = await ce(e, t, n);
213
- return B.set(s, o), o;
213
+ return q.set(s, o), o;
214
214
  }
215
215
  async function Kt(e, t, n) {
216
216
  var l, a;
@@ -227,8 +227,8 @@ async function Kt(e, t, n) {
227
227
  var w, C;
228
228
  const h = v.combinationKey ? (C = (w = g == null ? void 0 : g.variant) == null ? void 0 : w.variantCombinations) == null ? void 0 : C.find(
229
229
  (E) => E.combinationKey === v.combinationKey
230
- ) : g, S = h && g ? u(g, h) : v;
231
- return u(S, v);
230
+ ) : g, b = h && g ? u(g, h) : v;
231
+ return u(b, v);
232
232
  });
233
233
  o.push({
234
234
  group: d,
@@ -314,8 +314,8 @@ function dt(e, t, n) {
314
314
  const s = { _t: "a" }, o = ((f = n == null ? void 0 : n.arrays) == null ? void 0 : f.detectMove) !== !1, u = ((v = n == null ? void 0 : n.arrays) == null ? void 0 : v.includeValueOnMove) === !0, l = n == null ? void 0 : n.objectHash;
315
315
  let a = o ? lt(e, t, l) : [];
316
316
  if (!l && e.length === t.length && e.length > 0 && a.length < e.length) {
317
- const h = k(e[0]) || Array.isArray(e[0]), S = a.length > 0;
318
- if (h || S) {
317
+ const h = k(e[0]) || Array.isArray(e[0]), b = a.length > 0;
318
+ if (h || b) {
319
319
  a = [];
320
320
  for (let w = 0; w < e.length; w++)
321
321
  a.push({ leftIndex: w, rightIndex: w });
@@ -326,11 +326,11 @@ function dt(e, t, n) {
326
326
  for (const h of a)
327
327
  c.set(h.leftIndex, h.rightIndex), g.set(h.rightIndex, h.leftIndex);
328
328
  for (let h = 0; h < e.length; h++) {
329
- const S = c.get(h);
330
- if (S !== void 0) {
331
- const w = J(e[h], t[S], n);
332
- if (w !== void 0 && (s[S] = w), o && S !== h) {
333
- const C = `_${h}`, E = u ? [e[h], S, K] : ["", S, K];
329
+ const b = c.get(h);
330
+ if (b !== void 0) {
331
+ const w = J(e[h], t[b], n);
332
+ if (w !== void 0 && (s[b] = w), o && b !== h) {
333
+ const C = `_${h}`, E = u ? [e[h], b, K] : ["", b, K];
334
334
  s[C] = E;
335
335
  }
336
336
  } else {
@@ -523,20 +523,20 @@ class _t {
523
523
  return O(t);
524
524
  }
525
525
  }
526
- function bt(e) {
526
+ function St(e) {
527
527
  return new _t(e);
528
528
  }
529
- function St({
529
+ function bt({
530
530
  maxHistorySize: e = 10
531
531
  }) {
532
- const t = bt({
532
+ const t = St({
533
533
  objectHash: (v) => v._id || v.id,
534
534
  arrays: {
535
535
  detectMove: !0,
536
536
  includeValueOnMove: !1
537
537
  },
538
538
  cloneDiffValues: !1
539
- }), n = j(null), s = j([]), o = H(-1), u = j(null), l = b(() => o.value > 0), a = b(() => o.value < s.value.length - 1);
539
+ }), n = N(null), s = N([]), o = B(-1), u = N(null), l = S(() => o.value > 0), a = S(() => o.value < s.value.length - 1);
540
540
  function d(v) {
541
541
  if (n.value === null) {
542
542
  n.value = I(v), u.value = I(v), s.value = [{ delta: null }], o.value = 0;
@@ -544,16 +544,16 @@ function St({
544
544
  }
545
545
  const h = t.diff(u.value, v);
546
546
  if (o.value < s.value.length - 1 && (s.value = s.value.slice(0, o.value + 1)), s.value.push({ delta: h }), o.value++, u.value = I(v), s.value.length > e) {
547
- const S = s.value[1].delta;
548
- S && n.value && (n.value = t.patch(I(n.value), S)), s.value.shift(), o.value--;
547
+ const b = s.value[1].delta;
548
+ b && n.value && (n.value = t.patch(I(n.value), b)), s.value.shift(), o.value--;
549
549
  }
550
550
  }
551
551
  function c(v) {
552
552
  if (!n.value || v < 0 || v >= s.value.length)
553
553
  return;
554
554
  let h = I(n.value);
555
- for (let S = 1; S <= v; S++) {
556
- const w = s.value[S];
555
+ for (let b = 1; b <= v; b++) {
556
+ const w = s.value[b];
557
557
  w.delta && (h = t.patch(h, w.delta));
558
558
  }
559
559
  return h;
@@ -586,7 +586,7 @@ function St({
586
586
  }
587
587
  const wt = {
588
588
  async updateMenuModule(e, t) {
589
- const n = q.RequestRunner.operation(t, e.modules);
589
+ const n = H.RequestRunner.operation(t, e.modules);
590
590
  if (n.validateError.length > 0)
591
591
  throw new Error(n.validateError.join(`
592
592
  `));
@@ -637,15 +637,15 @@ function Mt() {
637
637
  const Pt = Qe(
638
638
  "mf-menu-store-v2",
639
639
  () => {
640
- const e = Xe(Mt()), t = se(), n = tt(), s = b(() => e.menu.modules.serveSequence ? x(e.menu.modules.serveSequence, {
640
+ const e = Xe(Mt()), t = se(), n = tt(), s = S(() => e.menu.modules.serveSequence ? x(e.menu.modules.serveSequence, {
641
641
  selector: "position"
642
- }) : []), o = b(() => {
642
+ }) : []), o = S(() => {
643
643
  var r;
644
644
  return ((r = t.currentBusiness.value) == null ? void 0 : r.menuVersion) || z.F_MENU_VERSION.v3;
645
- }), u = b(() => o.value === z.F_MENU_VERSION.v4), l = b(() => {
645
+ }), u = S(() => o.value === z.F_MENU_VERSION.v4), l = S(() => {
646
646
  const r = e.menu.modules.catalog;
647
647
  return x(r, { selector: "name" });
648
- }), a = b(() => {
648
+ }), a = S(() => {
649
649
  var i;
650
650
  let r = e.menu.modules.catalog.find(
651
651
  (m) => m._id === e.currentCatalogId
@@ -656,13 +656,13 @@ const Pt = Qe(
656
656
  items: e.menu.modules.item,
657
657
  ...e.currentRestaurantAttrParams ?? {}
658
658
  })), r;
659
- }), d = b(() => x(y.value.modules.scheduler, { selector: "name" })), c = b(() => e.menu.modules.scheduler.find(
659
+ }), d = S(() => x(y.value.modules.scheduler, { selector: "name" })), c = S(() => e.menu.modules.scheduler.find(
660
660
  (r) => r._id === e.currentSchedulerId
661
661
  ));
662
662
  function g(r, i = !0) {
663
- e.menu = { ...r, _rev: e.menu._rev }, i && V.push(e.menu);
663
+ e.menu = { ...r, _rev: e.menu._rev }, i && D.push(e.menu);
664
664
  }
665
- const y = j(me()), f = H(!1), v = H(1);
665
+ const y = N(me()), f = B(!1), v = B(1);
666
666
  async function h() {
667
667
  var m;
668
668
  f.value = !0;
@@ -708,7 +708,7 @@ const Pt = Qe(
708
708
  )) || null;
709
709
  }
710
710
  X();
711
- const fe = b(() => [
711
+ const fe = S(() => [
712
712
  {
713
713
  label: "Main",
714
714
  value: null
@@ -717,7 +717,7 @@ const Pt = Qe(
717
717
  label: r.name,
718
718
  value: r._id
719
719
  }))
720
- ]), Z = b(() => {
720
+ ]), Z = S(() => {
721
721
  const r = y.value.modules.category;
722
722
  return [
723
723
  ...U.value.item.addon ? [
@@ -727,12 +727,12 @@ const Pt = Qe(
727
727
  position: 0
728
728
  }
729
729
  ] : [],
730
- ...D(r, (i) => i.name)
730
+ ...V(r, (i) => i.name)
731
731
  ];
732
- }), ve = b(() => {
732
+ }), ve = S(() => {
733
733
  const r = y.value.modules.subCategory || [];
734
- return D(r, (i) => i.name);
735
- }), ee = b(() => {
734
+ return V(r, (i) => i.name);
735
+ }), ee = S(() => {
736
736
  var i;
737
737
  let r = y.value.modules.item;
738
738
  if (a.value) {
@@ -745,17 +745,17 @@ const Pt = Qe(
745
745
  return (_ == null ? void 0 : _.orderFrom) !== ue.enum.NONE;
746
746
  });
747
747
  }
748
- return D(r, (m) => m.code || m.name);
749
- }), ye = b(() => {
750
- const r = e.menu.modules.category, i = D(r, (p) => p.name).reduce(
748
+ return V(r, (m) => m.code || m.name);
749
+ }), ye = S(() => {
750
+ const r = e.menu.modules.category, i = V(r, (p) => p.name).reduce(
751
751
  (p, _, A) => (p[_._id] = A, p),
752
752
  { "": 0 }
753
753
  ), m = e.menu.modules.item;
754
- return D(
754
+ return V(
755
755
  m,
756
756
  (p) => p.code || p.name
757
757
  ).reduce((p, _, A) => (p[_._id] = A + i[_.category || ""], p), {});
758
- }), ge = b(() => oe(N.value, Z.value, ee.value)), he = b(() => {
758
+ }), ge = S(() => oe(j.value, Z.value, ee.value)), he = S(() => {
759
759
  const r = U.value.item.addon ? [
760
760
  {
761
761
  _id: e.currentCatalogId ? "" : null,
@@ -769,22 +769,22 @@ const Pt = Qe(
769
769
  r,
770
770
  e.menu.modules.item
771
771
  );
772
- }), N = b(() => {
772
+ }), j = S(() => {
773
773
  const r = y.value.modules.variant;
774
774
  return x(r, { selector: "name" });
775
775
  });
776
776
  function pe(r = []) {
777
- const i = r.map((p) => N.value.find((_) => _._id === p)).filter((p) => !!p);
777
+ const i = r.map((p) => j.value.find((_) => _._id === p)).filter((p) => !!p);
778
778
  return T.fullVariantCombination(i).reduce((p, _) => (p[_.combinationKey] = _.selectionName.join(" / "), p), {});
779
779
  }
780
- const _e = b(() => D(y.value.modules.group, (r) => r.name)), be = b(() => x(y.value.modules.takeaway, { selector: "name" })), Se = b(() => x(e.menu.modules.printDepartment || [], {
780
+ const _e = S(() => V(y.value.modules.group, (r) => r.name)), Se = S(() => x(y.value.modules.takeaway, { selector: "name" })), be = S(() => x(e.menu.modules.printDepartment || [], {
781
781
  selector: "name"
782
- })), we = b(() => x(e.menu.modules.unit, { selector: "name" })), Me = b(() => x(Le(e.menu.modules.recipe, e.menu.modules.sku), {
782
+ })), we = S(() => x(e.menu.modules.unit, { selector: "name" })), Me = S(() => x(Le(e.menu.modules.recipe, e.menu.modules.sku), {
783
783
  selector: "name"
784
- })), Ae = b(() => e.menu.modules.cookingGuide), Ie = b(() => {
785
- const r = Be(e.menu.modules.sku);
784
+ })), Ae = S(() => e.menu.modules.cookingGuide), Ie = S(() => {
785
+ const r = qe(e.menu.modules.sku);
786
786
  return x(r, { selector: "code" });
787
- }), Ce = b(() => {
787
+ }), Ce = S(() => {
788
788
  const r = /* @__PURE__ */ new Map();
789
789
  return e.menu.modules.item.forEach((i) => {
790
790
  var m, p;
@@ -792,7 +792,7 @@ const Pt = Qe(
792
792
  _.code && r.set(_.code, (r.get(_.code) || 0) + 1);
793
793
  });
794
794
  }), r;
795
- }), U = b(() => {
795
+ }), U = S(() => {
796
796
  const r = !e.currentCatalogId, i = o.value === z.F_MENU_VERSION.v4, m = !e.currentSchedulerId, p = {
797
797
  create: r && m,
798
798
  edit: r && m,
@@ -875,12 +875,12 @@ const Pt = Qe(
875
875
  function ke(r, i, m) {
876
876
  return (r ?? i ?? []).map((p) => W(p)).find((p) => m.some((_) => _.value === p));
877
877
  }
878
- const Re = b(() => {
878
+ const Re = S(() => {
879
879
  var p;
880
- const r = ["SV5", "SV10"], i = qe.Country.getCountryFlattenTaxes(
880
+ const r = ["SV5", "SV10"], i = He.Country.getCountryFlattenTaxes(
881
881
  se().currentCountry.value
882
882
  ), m = i.filter((_) => u.value || !r.includes(_.taxCode)).map((_) => ({
883
- label: `${_.name} (${He(_.rate)}%)`,
883
+ label: `${_.name} (${Be(_.rate)}%)`,
884
884
  value: W(_),
885
885
  meta: {
886
886
  rate: _.rate
@@ -902,9 +902,9 @@ const Pt = Qe(
902
902
  });
903
903
  }, te = (r) => {
904
904
  e.currentCatalogId = r;
905
- }, Ve = (r) => {
906
- e.currentSchedulerId = r;
907
905
  }, De = (r) => {
906
+ e.currentSchedulerId = r;
907
+ }, Ve = (r) => {
908
908
  e.currentCategoryIds = r;
909
909
  }, Te = (r) => {
910
910
  e.currentRestaurantAttrParams = r;
@@ -918,7 +918,7 @@ const Pt = Qe(
918
918
  }));
919
919
  try {
920
920
  if (i || p.some(
921
- (A) => [q.F_OPERATION_TYPE.delete, q.F_OPERATION_TYPE.deleteMany].includes(A.operation)
921
+ (A) => [H.F_OPERATION_TYPE.delete, H.F_OPERATION_TYPE.deleteMany].includes(A.operation)
922
922
  )) {
923
923
  const A = await Ge(p, e.menu.modules);
924
924
  if (A !== !0) throw new Error(A);
@@ -940,14 +940,14 @@ const Pt = Qe(
940
940
  priceTierSettings: r.priceTierSettings
941
941
  };
942
942
  return g(i), i;
943
- }, V = St({ maxHistorySize: 50 }), $e = b(() => V.canUndo.value), Fe = b(() => V.canRedo.value), je = () => {
944
- const r = V.undo();
943
+ }, D = bt({ maxHistorySize: 50 }), $e = S(() => D.canUndo.value), Fe = S(() => D.canRedo.value), Ne = () => {
944
+ const r = D.undo();
945
945
  r && g(r, !1);
946
- }, Ne = () => {
947
- const r = V.redo();
946
+ }, je = () => {
947
+ const r = D.redo();
948
948
  r && g(r, !1);
949
949
  }, Ue = () => {
950
- V.clear();
950
+ D.clear();
951
951
  };
952
952
  return {
953
953
  state: e,
@@ -972,10 +972,10 @@ const Pt = Qe(
972
972
  itemCodeMap: Ce,
973
973
  categorizedItems: ge,
974
974
  categorizedRawMenuItems: he,
975
- variants: N,
975
+ variants: j,
976
976
  groups: _e,
977
- takeaways: be,
978
- printDepartments: Se,
977
+ takeaways: Se,
978
+ printDepartments: be,
979
979
  units: we,
980
980
  recipes: Me,
981
981
  cookingGuide: Ae,
@@ -987,8 +987,8 @@ const Pt = Qe(
987
987
  readMenu: xe,
988
988
  readRestaurants: Oe,
989
989
  selectCatalog: te,
990
- selectScheduler: Ve,
991
- selectCategory: De,
990
+ selectScheduler: De,
991
+ selectCategory: Ve,
992
992
  setRestaurantAttrParams: Te,
993
993
  updateMenu: Ke,
994
994
  updateMenuSetting: Pe,
@@ -1001,8 +1001,8 @@ const Pt = Qe(
1001
1001
  // history
1002
1002
  canUndoHistory: $e,
1003
1003
  canRedoHistory: Fe,
1004
- undoHistory: je,
1005
- redoHistory: Ne,
1004
+ undoHistory: Ne,
1005
+ redoHistory: je,
1006
1006
  // cleanup
1007
1007
  $dispose: () => {
1008
1008
  w.cancel(), E && (E(), E = null), C && (C.stop(), C = null), Ue();
@@ -1016,8 +1016,8 @@ const Pt = Qe(
1016
1016
  export {
1017
1017
  Tt as a,
1018
1018
  Kt as f,
1019
- Dt as g,
1020
- Vt as m,
1019
+ Vt as g,
1020
+ Dt as m,
1021
1021
  it as o,
1022
1022
  Pt as u
1023
1023
  };
@@ -1,13 +1,13 @@
1
1
  import { defineComponent as q, ref as V, h as S, computed as N, resolveComponent as I, createBlock as X, openBlock as w, unref as l, withCtx as x, createElementVNode as k, createVNode as v, watch as Z, createElementBlock as L, Fragment as B, renderSlot as ee, renderList as G, toDisplayString as $, createCommentVNode as ae, getCurrentInstance as te, render as ne } from "vue";
2
- import { u as Y, P as oe, B as le, J as M, K } from "./index.vue_vue_type_script_setup_true_lang-DsMFmYGf.js";
2
+ import { u as Y, P as oe, B as le, J as M, K } from "./index.vue_vue_type_script_setup_true_lang-Bxs-AkVQ.js";
3
3
  import { useI18n as R } from "@feedmepos/mf-common";
4
4
  import { components as A, FmButtonVariant as re, FmButtonColorThemeVariant as j, useSnackbar as ie } from "@feedmepos/ui-library";
5
- import { _ as H, u as se } from "./RuleView.vue_vue_type_script_setup_true_lang-C7MR2OwK.js";
5
+ import { _ as H, u as se } from "./RuleView.vue_vue_type_script_setup_true_lang-DATrEmoz.js";
6
6
  import { c as de } from "./object-DVUNCr7w.js";
7
- import { _ as ue } from "./app-B-k_3Xub.js";
8
- import { L as ce } from "./LinkProductSideSheet-CQRvO3h0.js";
7
+ import { _ as ue } from "./app-CUT-XiX7.js";
8
+ import { L as ce } from "./LinkProductSideSheet-DekFylFC.js";
9
9
  import { u as me } from "./search-BAPEUu1R.js";
10
- import { _ as pe } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-YLRlDi4-.js";
10
+ import { _ as pe } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-qp1XGtIS.js";
11
11
  import { c as ge } from "./check-C9mY6LiX.js";
12
12
  import { g as J } from "./translation-fNx6yEpy.js";
13
13
  import { c as _e } from "./createComponentProgrammatically-Bt2rn1IQ.js";
@@ -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, B as M } from "./index.vue_vue_type_script_setup_true_lang-DsMFmYGf.js";
4
+ import { u as k, B as M } from "./index.vue_vue_type_script_setup_true_lang-Bxs-AkVQ.js";
5
5
  const v = /* @__PURE__ */ d({
6
6
  __name: "AddPriceGroupDialog",
7
7
  setup(s) {
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as I, watch as h, ref as E, computed as w, resolveComponent as _, createElementBlock as F, openBlock as P, Fragment as M, createVNode as f, unref as g, withCtx as b, createElementVNode as O, renderList as q, toDisplayString as S } from "vue";
2
- import { J as v, K as C, u as Y } from "./index.vue_vue_type_script_setup_true_lang-DsMFmYGf.js";
2
+ import { J as v, K as C, u as Y } from "./index.vue_vue_type_script_setup_true_lang-Bxs-AkVQ.js";
3
3
  import { useI18n as D } from "@feedmepos/mf-common";
4
4
  import { useDialogChild as k } from "@feedmepos/ui-library";
5
- import { u as R } from "./menuV2-COSJ__9Q.js";
6
- import { _ as $ } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-YLRlDi4-.js";
5
+ import { u as R } from "./menuV2-DxGiWEWy.js";
6
+ import { _ as $ } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-qp1XGtIS.js";
7
7
  import { g as N } from "./translation-fNx6yEpy.js";
8
8
  const B = { class: "py-12 px-16 space-y-4" }, U = /* @__PURE__ */ I({
9
9
  __name: "AddSubcategoryDialogContentComponent",
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as re, computed as N, resolveComponent as v, createElementBlock as d, openBlock as u, createVNode as t, createCommentVNode as V, unref as n, toDisplayString as O, createElementVNode as _, withCtx as p, Fragment as R, renderList as I, createBlock as q, ref as B, Transition as de, createTextVNode as fe } from "vue";
2
- import { G as w, a6 as $, u as ye, y as _e, a7 as L, H as he, J as se, K as ie, ak as ce } from "./index.vue_vue_type_script_setup_true_lang-DsMFmYGf.js";
2
+ import { G as w, a6 as $, u as ye, y as _e, a7 as L, H as he, J as se, K as ie, ak as ce } from "./index.vue_vue_type_script_setup_true_lang-Bxs-AkVQ.js";
3
3
  import { useI18n as me } from "@feedmepos/mf-common";
4
4
  import { components as ge } from "@feedmepos/ui-library";
5
5
  import { _ as Ve } from "./FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js";
6
- import { _ as ue } from "./RuleView.vue_vue_type_script_setup_true_lang-C7MR2OwK.js";
6
+ import { _ as ue } from "./RuleView.vue_vue_type_script_setup_true_lang-DATrEmoz.js";
7
7
  import { u as ke } from "./discardConfirm-BHni0LNu.js";
8
- import { u as be } from "./menu-DzWUnx8X.js";
9
- import { L as Fe } from "./LinkProductSideSheet-CQRvO3h0.js";
8
+ import { u as be } from "./menu-BCV_96fD.js";
9
+ import { L as Fe } from "./LinkProductSideSheet-DekFylFC.js";
10
10
  const xe = { class: "space-y-8" }, Ce = {
11
11
  key: 0,
12
12
  class: "space-y-16"
@@ -1,5 +1,5 @@
1
- import { u as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-CFjS_1Ws.js";
2
- import "./index.vue_vue_type_script_setup_true_lang-DsMFmYGf.js";
1
+ import { u as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-DR8QkK1A.js";
2
+ import "./index.vue_vue_type_script_setup_true_lang-Bxs-AkVQ.js";
3
3
  var Z = {
4
4
  defaultAmount: 0,
5
5
  defaultCurrency: "USD",
@@ -1,12 +1,12 @@
1
1
  import { defineStore as J } from "pinia";
2
2
  import { defineComponent as S, computed as x, ref as A, watch as D, resolveComponent as V, createBlock as W, openBlock as F, withCtx as w, createVNode as m, createElementVNode as f, normalizeClass as Q, createElementBlock as k, toDisplayString as C, unref as l, Fragment as L, renderSlot as X, renderList as Z, getCurrentInstance as ee } from "vue";
3
- import { aa as N, ab as te, a8 as O, G as E, P as $, B as j, A as h, a9 as ne, J as T, K as M, H as ae, u as oe } from "./index.vue_vue_type_script_setup_true_lang-DsMFmYGf.js";
3
+ import { aa as N, ab as te, a8 as O, G as E, P as $, B as j, A as h, a9 as ne, J as T, K as M, H as ae, u as oe } from "./index.vue_vue_type_script_setup_true_lang-Bxs-AkVQ.js";
4
4
  import { useI18n as P } from "@feedmepos/mf-common";
5
5
  import { useSnackbar as I, 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 "./RuleConditionSelector.vue_vue_type_style_index_0_lang-CK8z7qA8.js";
9
- import "./menuV2-COSJ__9Q.js";
9
+ import "./menuV2-DxGiWEWy.js";
10
10
  import "./app-5fxKLAzS.js";
11
11
  /* empty css */
12
12
  import { c as me } from "./createComponentProgrammatically-Bt2rn1IQ.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-menu",
3
- "version": "0.32.60-dev.1",
3
+ "version": "0.32.60",
4
4
  "files": [
5
5
  "dist"
6
6
  ],