@feedmepos/mf-menu 0.31.48-beta.1 → 0.31.48-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 (66) hide show
  1. package/dist/{App-DqaxtxJK.js → App-D-dcqNRb.js} +9 -9
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-CKb6F6yF.js → ApplyProduct.vue_vue_type_script_setup_true_lang-na_OOlYX.js} +20 -20
  3. package/dist/{Catalog-C6hW1N0j.js → Catalog-BT_NvH4H.js} +6 -6
  4. package/dist/{Category-BZ06AfX_.js → Category-CIlVNPov.js} +4 -4
  5. package/dist/{Category-CP0eack4.js → Category-bsYxspvu.js} +6 -6
  6. package/dist/{CookingGuide-BbjDjhF2.js → CookingGuide-C7IxQzTM.js} +4 -4
  7. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-DARKrU5I.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-CJnE543q.js} +1 -1
  8. package/dist/{Group-BqZYoYAN.js → Group-B5882UFx.js} +1 -1
  9. package/dist/{Group-HHJ5xT_Z.js → Group-CuQ0gDgC.js} +3 -3
  10. package/dist/{Group.vue_vue_type_script_setup_true_lang-gVv3L3aP.js → Group.vue_vue_type_script_setup_true_lang-Btk8J3Tp.js} +7 -7
  11. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BOHeg9pv.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-yIXsPtY4.js} +9 -9
  12. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-Dxdu18qG.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-DFSHCb9I.js} +7 -7
  13. package/dist/{Ingredient-BCft-dGL.js → Ingredient-24hSAj8Z.js} +3 -3
  14. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-C03AF5zB.js → InventoryBinding.vue_vue_type_script_setup_true_lang-BVcdOrDO.js} +2 -2
  15. package/dist/{LinkProductSideSheet-3MBW9XxA.js → LinkProductSideSheet-CD9mIEpc.js} +3 -3
  16. package/dist/{MenuSetting-D7gIUm15.js → MenuSetting-CVySuMK8.js} +5 -5
  17. package/dist/{PrintRoute-DTC1VckQ.js → PrintRoute-CT0-6o2w.js} +4 -4
  18. package/dist/{Product-Bl6y4YQK.js → Product-C2CtWFM5.js} +1 -1
  19. package/dist/{Product.vue_vue_type_script_setup_true_lang-D99nWJzA.js → Product.vue_vue_type_script_setup_true_lang-Ts0KnCTU.js} +14 -14
  20. package/dist/{ProductInternalTools-YXyxrYyk.js → ProductInternalTools-CyKeO24R.js} +33 -32
  21. package/dist/{Products-DtxWQT5j.js → Products-wRIs1LNY.js} +11 -11
  22. package/dist/{Publish-Di483Zh0.js → Publish-BKRVvye3.js} +16 -16
  23. package/dist/{Recipe-BLx2oMBS.js → Recipe-BQvRhIeZ.js} +4 -4
  24. package/dist/{Scheduler-DHLSQyD5.js → Scheduler-CaQu66-9.js} +3 -3
  25. package/dist/{ServingSequence-BBbZ2F7Q.js → ServingSequence-BlUi0Hzb.js} +3 -3
  26. package/dist/{Setting-DS3wGywo.js → Setting-DFsZYxSB.js} +5 -5
  27. package/dist/{Subcategory-DGl8k9dv.js → Subcategory-BYnb9L7M.js} +4 -4
  28. package/dist/{Takeaway-CN2iYpYz.js → Takeaway-BQINJijW.js} +4 -4
  29. package/dist/{Takeaway-oR-Vwx4b.js → Takeaway-DYiN0Yws.js} +1 -1
  30. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-DB9JiHBV.js → Takeaway.vue_vue_type_script_setup_true_lang-CnMEeZrd.js} +5 -5
  31. package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-zORaCVRY.js → Thumbnail.vue_vue_type_script_setup_true_lang-Bp40RcvB.js} +4 -4
  32. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BwAdC7FF.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-jzJLp-Ac.js} +16 -16
  33. package/dist/{Unit-5-aI9G84.js → Unit-rT9SjnsI.js} +2 -2
  34. package/dist/{Variant-CnChCn6y.js → Variant-B7aqcbez.js} +3 -3
  35. package/dist/{_id_-7XqzOD2a.js → _id_-DY1Fitul.js} +10 -10
  36. package/dist/{app-BHd48ptL.js → app-BO6bn7uh.js} +26 -26
  37. package/dist/{app-DN1egfMq.js → app-RULuHy55.js} +1 -1
  38. package/dist/app.js +1 -1
  39. package/dist/apps/mf-menu/src/components/feature/TreeEditor/store/menuV2.d.ts +1 -1
  40. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  41. package/dist/assets/{linked-status-CyPUqGcf.js → linked-status-DRWIBDK1.js} +2 -2
  42. package/dist/assets/{override-menu-DTTkR82H.js → override-menu-BLjzPUsy.js} +2 -2
  43. package/dist/assets/{validate-menu-DvETGMF0.js → validate-menu-5sybvnwS.js} +2 -2
  44. package/dist/{catalog-Dc6iQ5O8.js → catalog-bwlWW8PZ.js} +4 -4
  45. package/dist/{catalogSetting-C4WoJxdP.js → catalogSetting-DzX172wP.js} +1 -1
  46. package/dist/{category-CYPnYGYD.js → category-B28CLR_r.js} +1 -1
  47. package/dist/{currency-SYc_bz_9.js → currency-SjGU_s1p.js} +1 -1
  48. package/dist/{customAttributes-DgnkFhNM.js → customAttributes-D8y8beXk.js} +1 -1
  49. package/dist/{dayjs.min-Dz-DcSsk.js → dayjs.min-CUujDjy2.js} +1 -1
  50. package/dist/{index-CQmcIv1Z.js → index-BjlPBJit.js} +4 -4
  51. package/dist/{index-CIiuL7KY.js → index-Dc0tIOma.js} +1 -1
  52. package/dist/{index-Wlgw4uYJ.js → index-KiKL6590.js} +1 -1
  53. package/dist/{index-7uCie6ZA.js → index-TqIfnnRh.js} +3 -3
  54. package/dist/{item-BO-XkhED.js → item-Bk4ePGsA.js} +394 -394
  55. package/dist/{jszip.min-BQTVHKlp.js → jszip.min-Cb0oLCRU.js} +353 -353
  56. package/dist/{menu-CvpqXXRv.js → menu-CKvTLOA7.js} +2615 -2661
  57. package/dist/{menu-xpxg5zG3.js → menu-J976EXhb.js} +1 -1
  58. package/dist/{menuV2-Drc6xmjY.js → menuV2-BWSBAnVp.js} +34 -34
  59. package/dist/{priceTier-yPJt7fty.js → priceTier-BpWKl-29.js} +1 -1
  60. package/dist/{scheduler-v8bTRhv1.js → scheduler-CnU_uh6T.js} +4 -4
  61. package/dist/{subcategory-DzW3tzot.js → subcategory-Bn1Jr1uy.js} +2 -2
  62. package/dist/{toExcel-DU7ZV6__.js → toExcel-DxAn19PY.js} +2 -2
  63. package/dist/tooltip-CQW9YRO5.js +60 -0
  64. package/dist/{unit-CQOHOhyJ.js → unit-BzHG0aHZ.js} +2 -2
  65. package/package.json +1 -1
  66. package/dist/tooltip-B5BiPMx9.js +0 -32
@@ -1,5 +1,5 @@
1
1
  import { computed as n, onMounted as d, onBeforeUnmount as m } from "vue";
2
- import { u as c } from "./menu-CvpqXXRv.js";
2
+ import { u as c } from "./menu-CKvTLOA7.js";
3
3
  import "@feedmepos/mf-common";
4
4
  import "@feedmepos/ui-library";
5
5
  function p() {
@@ -1,16 +1,16 @@
1
- import { ao as L, H as E, D as R, A as J, ap as j, J as U, I as Y, a9 as w, c as N, X as k, aj as B, aq as Me, ar as ke, B as Ee, ab as Re, as as Ie, at as Te, a8 as Fe } from "./menu-CvpqXXRv.js";
1
+ import { an as L, H as I, D as R, A as J, ao as j, J as U, I as Y, a8 as w, c as N, X as E, ai as q, ap as Me, aq as Ee, B as Ie, aa as Re, ar as ke, as as Te, a7 as Fe } from "./menu-CKvTLOA7.js";
2
2
  import { defineStore as Pe } from "pinia";
3
3
  import { shallowRef as X, ref as D, computed as h, shallowReactive as Ae, effectScope as Ke, watch as Oe } from "vue";
4
4
  import { useCoreStore as z } from "@feedmepos/mf-common";
5
5
  import { useSnackbar as Ve } from "@feedmepos/ui-library";
6
- const Ne = "/assets/linked-status-CyPUqGcf.js", xe = "/assets/override-menu-DTTkR82H.js";
6
+ const Ne = "/assets/linked-status-DRWIBDK1.js", xe = "/assets/override-menu-BLjzPUsy.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 = I(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 = I(n), l = o ? r.modules.catalog.find((_) => _._id === o) : null, d = a ? r.modules.scheduler.find((_) => _._id === a) : null, i = l ? I(l) : void 0, c = o ? r.modules.catalog.filter((_) => _._id !== o) : [], m = d ? I(d) : void 0, f = e.reduce((_, y) => (_[y._id] = $e(y), _), {});
14
14
  function v(_ = []) {
15
15
  const y = e.map((C) => C._id);
16
16
  return [
@@ -59,7 +59,7 @@ function T(e, n, o) {
59
59
  return i ? c = ((f = d.items) == null ? void 0 : f.map((_) => {
60
60
  var C;
61
61
  const y = (C = i.items) == null ? void 0 : C.find(
62
- (I) => I._id === _._id && I.combinationKey === _.combinationKey
62
+ (k) => k._id === _._id && k.combinationKey === _.combinationKey
63
63
  );
64
64
  return T(y || _, n, o + 1);
65
65
  })) ?? [] : c = ((v = d.items) == null ? void 0 : v.map((_) => T(_, n, o + 1))) ?? [], {
@@ -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 = I(o), i = l ? Ue(n, d, a, r) : d, c = n.reduce((v, _) => (v[_._id] = i.modules.item.find((y) => y._id === _._id), v), {}), m = n.reduce((v, _) => {
154
154
  const y = _._id;
155
155
  return v[y] = De(c[y], e), v;
156
156
  }, {}), f = R.getFallbackPrices({
@@ -232,7 +232,7 @@ function ot(e, n, o) {
232
232
  return r(n, o);
233
233
  }
234
234
  const $ = /* @__PURE__ */ new Map();
235
- async function Ge(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);
@@ -241,8 +241,8 @@ async function Ge(e, n, o) {
241
241
  }
242
242
  async function st(e, n, o) {
243
243
  var d, i;
244
- const a = await Ge(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 = I(c);
246
246
  for (const v in m)
247
247
  m[v] && (f[v] = m[v]);
248
248
  return f;
@@ -254,8 +254,8 @@ async function st(e, n, o) {
254
254
  var F, P;
255
255
  const C = y.combinationKey ? (P = (F = f == null ? void 0 : f.variant) == null ? void 0 : F.variantCombinations) == null ? void 0 : P.find(
256
256
  (A) => A.combinationKey === y.combinationKey
257
- ) : f, I = C && f ? l(f, C) : y;
258
- return l(I, y);
257
+ ) : f, k = C && f ? l(f, C) : y;
258
+ return l(k, y);
259
259
  });
260
260
  r.push({
261
261
  group: c,
@@ -265,7 +265,7 @@ async function st(e, n, o) {
265
265
  }
266
266
  return r;
267
267
  }
268
- function qe({
268
+ function We({
269
269
  maxHistorySize: e = 50
270
270
  }) {
271
271
  const n = X([]), o = D(-1), a = h(() => o.value > 0), r = h(() => o.value < n.value.length - 1);
@@ -292,7 +292,7 @@ function qe({
292
292
  clear: c
293
293
  };
294
294
  }
295
- const We = {
295
+ const Ge = {
296
296
  async updateMenuModule(e, n) {
297
297
  const o = U.RequestRunner.operation(n, e.modules);
298
298
  if (o.validateError.length > 0)
@@ -423,7 +423,7 @@ const at = Pe(
423
423
  label: t.name,
424
424
  value: t._id
425
425
  }))
426
- ]), G = h(() => {
426
+ ]), B = h(() => {
427
427
  const t = v.value.modules.category;
428
428
  return [
429
429
  ...O.value.item.addon ? [
@@ -433,12 +433,12 @@ const at = Pe(
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);
441
- }), q = h(() => {
440
+ return E(t, (s) => s.name);
441
+ }), W = h(() => {
442
442
  var s;
443
443
  let t = v.value.modules.item;
444
444
  if (i.value) {
@@ -451,17 +451,17 @@ const at = Pe(
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, G.value, q.value)), re = h(() => {
464
+ }), ne = h(() => q(K.value, B.value, W.value)), re = h(() => {
465
465
  const t = O.value.item.addon ? [
466
466
  {
467
467
  _id: e.currentCatalogId ? "" : null,
@@ -470,7 +470,7 @@ const at = Pe(
470
470
  },
471
471
  ...e.menu.modules.category
472
472
  ] : e.menu.modules.category;
473
- return B(
473
+ return q(
474
474
  e.menu.modules.variant,
475
475
  t,
476
476
  e.menu.modules.item
@@ -483,12 +483,12 @@ const at = Pe(
483
483
  const s = t.map((p) => K.value.find((g) => g._id === p)).filter((p) => !!p);
484
484
  return R.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
493
  }), O = h(() => {
494
494
  const t = !e.currentCatalogId, s = r.value === N.F_MENU_VERSION.v4, u = !e.currentSchedulerId, p = {
@@ -571,7 +571,7 @@ const at = Pe(
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 = Ie.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} (${Re(g.rate)}%)`,
@@ -586,7 +586,7 @@ const at = Pe(
586
586
  };
587
587
  }), ve = async () => {
588
588
  const t = await Fe.readMenu();
589
- e.menu = t ?? e.menu, W(null);
589
+ e.menu = t ?? e.menu, G(null);
590
590
  }, ge = async () => {
591
591
  const { fetchAllRestaurants: t } = Te();
592
592
  await t({
@@ -594,7 +594,7 @@ const at = Pe(
594
594
  e.restaurants = s;
595
595
  }
596
596
  });
597
- }, W = (t) => {
597
+ }, G = (t) => {
598
598
  e.currentCatalogId = t;
599
599
  }, _e = (t) => {
600
600
  e.currentSchedulerId = t;
@@ -614,10 +614,10 @@ const at = Pe(
614
614
  if (s || p.some(
615
615
  (S) => [U.F_OPERATION_TYPE.delete, U.F_OPERATION_TYPE.deleteMany].includes(S.operation)
616
616
  )) {
617
- const S = await Ie(p, e.menu.modules);
617
+ const S = await ke(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 Ge.updateMenuModule(e.menu, p);
621
621
  return f(g.menu), g;
622
622
  } catch (g) {
623
623
  o.open({
@@ -634,7 +634,7 @@ const at = Pe(
634
634
  priceTierSettings: t.priceTierSettings
635
635
  };
636
636
  return f(s), s;
637
- }, M = qe({ maxHistorySize: 50 }), be = h(() => M.canUndo.value), we = h(() => M.canRedo.value);
637
+ }, M = We({ maxHistorySize: 50 }), be = h(() => M.canUndo.value), we = h(() => M.canRedo.value);
638
638
  return {
639
639
  state: e,
640
640
  // loading state
@@ -651,9 +651,9 @@ const at = Pe(
651
651
  schedulers: c,
652
652
  currentScheduler: m,
653
653
  catalogOptions: A,
654
- categories: G,
654
+ categories: B,
655
655
  subcategories: ee,
656
- items: q,
656
+ items: W,
657
657
  sortedItems: te,
658
658
  categorizedItems: ne,
659
659
  categorizedRawMenuItems: re,
@@ -671,7 +671,7 @@ const at = Pe(
671
671
  setMenu: f,
672
672
  readMenu: ve,
673
673
  readRestaurants: ge,
674
- selectCatalog: W,
674
+ selectCatalog: G,
675
675
  selectScheduler: _e,
676
676
  selectCategory: ye,
677
677
  setRestaurantAttrParams: he,
@@ -707,6 +707,6 @@ export {
707
707
  st as f,
708
708
  tt as g,
709
709
  et as m,
710
- Ge 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-CvpqXXRv.js";
4
+ import { u as k, G as M } from "./menu-CKvTLOA7.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-CvpqXXRv.js";
2
+ import { H as S, A as r, u as pe, I as ve, J as ue } from "./menu-CKvTLOA7.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-DgnkFhNM.js";
5
+ import { _ as ne, a as fe } from "./customAttributes-D8y8beXk.js";
6
6
  import { u as ye } from "./discardConfirm-BHni0LNu.js";
7
- import { u as he } from "./menu-xpxg5zG3.js";
8
- import { L as ge } from "./LinkProductSideSheet-3MBW9XxA.js";
7
+ import { u as he } from "./menu-J976EXhb.js";
8
+ import { L as ge } from "./LinkProductSideSheet-CD9mIEpc.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-CvpqXXRv.js";
2
+ import { J as l, A as d, u as F } from "./menu-CKvTLOA7.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-Drc6xmjY.js";
5
+ import { u as v } from "./menuV2-BWSBAnVp.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-Dxdu18qG.js";
2
- import "./menu-CvpqXXRv.js";
1
+ import { u as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-DFSHCb9I.js";
2
+ import "./menu-CKvTLOA7.js";
3
3
  var Z = {
4
4
  defaultAmount: 0,
5
5
  defaultCurrency: "USD",
@@ -0,0 +1,60 @@
1
+ import { defineComponent as v, createElementBlock as w, openBlock as B, createElementVNode as d, toDisplayString as f, resolveDirective as P, withDirectives as S } from "vue";
2
+ const x = { class: "space-y-4" }, D = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, E = { class: "fm-typo-en-body-lg-600" }, I = /* @__PURE__ */ v({
3
+ __name: "InfoBasic",
4
+ props: {
5
+ name: {
6
+ type: String,
7
+ required: !0
8
+ },
9
+ value: {
10
+ type: String,
11
+ required: !0
12
+ }
13
+ },
14
+ setup(s) {
15
+ return (t, n) => (B(), w("div", x, [
16
+ d("div", D, f(s.name), 1),
17
+ d("div", E, f(s.value), 1)
18
+ ]));
19
+ }
20
+ });
21
+ async function M(s) {
22
+ const {
23
+ items: t,
24
+ processor: n,
25
+ batchSize: o = 5,
26
+ batchDelay: g = 200,
27
+ onProgress: c,
28
+ progressMessage: a,
29
+ onBatchEnd: r
30
+ } = s, i = t.length, l = [];
31
+ for (let e = 0; e < t.length; e += o) {
32
+ const y = t.slice(e, e + o), h = e + 1, m = Math.min(e + o, t.length), u = `Processing items ${h}-${m}/${i}...`;
33
+ a && (a.value = u), c && c({
34
+ current: e,
35
+ total: i,
36
+ batchStart: h,
37
+ batchEnd: m,
38
+ message: u
39
+ });
40
+ const _ = y.map(n), p = await Promise.all(_);
41
+ l.push(...p), r && r({
42
+ batchIndex: Math.floor(e / o),
43
+ results: p
44
+ }), e + o < t.length && await new Promise((b) => setTimeout(b, g));
45
+ }
46
+ return l;
47
+ }
48
+ function $(s, t, n = 110) {
49
+ const o = P("tooltip");
50
+ return S(s, [[o, { content: t, zIndex: n }]]);
51
+ }
52
+ function k(s, t = 110) {
53
+ return { content: s, zIndex: t };
54
+ }
55
+ export {
56
+ k as _,
57
+ I as a,
58
+ M as p,
59
+ $ as w
60
+ };
@@ -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-CvpqXXRv.js";
3
+ import { a5 as P, a6 as te, a3 as B, H as k, O as $, G as I, D as E, a4 as ne, J as C, A as D, I as oe, u as ae } from "./menu-CKvTLOA7.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-Drc6xmjY.js";
10
+ import "./menuV2-BWSBAnVp.js";
11
11
  /* empty css */
12
12
  import { c as me } from "./createComponentProgrammatically-Bt2rn1IQ.js";
13
13
  const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-menu",
3
- "version": "0.31.48-beta.1",
3
+ "version": "0.31.48-prod",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -1,32 +0,0 @@
1
- import { defineComponent as c, createElementBlock as s, openBlock as a, createElementVNode as n, toDisplayString as i, resolveDirective as l, withDirectives as p } from "vue";
2
- const d = { class: "space-y-4" }, u = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, m = { class: "fm-typo-en-body-lg-600" }, y = /* @__PURE__ */ c({
3
- __name: "InfoBasic",
4
- props: {
5
- name: {
6
- type: String,
7
- required: !0
8
- },
9
- value: {
10
- type: String,
11
- required: !0
12
- }
13
- },
14
- setup(e) {
15
- return (t, o) => (a(), s("div", d, [
16
- n("div", u, i(e.name), 1),
17
- n("div", m, i(e.value), 1)
18
- ]));
19
- }
20
- });
21
- function f(e, t, o = 110) {
22
- const r = l("tooltip");
23
- return p(e, [[r, { content: t, zIndex: o }]]);
24
- }
25
- function v(e, t = 110) {
26
- return { content: e, zIndex: t };
27
- }
28
- export {
29
- v as _,
30
- y as a,
31
- f as w
32
- };