@feedmepos/mf-menu 0.31.14-beta.1 → 0.31.14-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-zFX3uush.js → App-B1vRSn4G.js} +6 -6
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-CHUFMaWx.js → ApplyProduct.vue_vue_type_script_setup_true_lang-eDOuUKea.js} +2 -2
  3. package/dist/{Catalog-D2FTURpx.js → Catalog-DINSs8NF.js} +5 -5
  4. package/dist/{Category-BmYM9mSA.js → Category-Gf1b-9KQ.js} +5 -5
  5. package/dist/{Category-Weso_H_Z.js → Category-lYrlrBEY.js} +4 -4
  6. package/dist/{CookingGuide-uJHE_Fb6.js → CookingGuide-xkK-57gr.js} +3 -3
  7. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-Dk5FypdM.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-T2yhTt-O.js} +1 -1
  8. package/dist/{Group-DyJJJzzC.js → Group-CLSjp-iO.js} +1 -1
  9. package/dist/{Group-Br4SVdfw.js → Group-VqLrp3Zi.js} +3 -3
  10. package/dist/{Group.vue_vue_type_script_setup_true_lang-0NLKlLn0.js → Group.vue_vue_type_script_setup_true_lang-ubxvQqUr.js} +7 -7
  11. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-B9qitqLz.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BlC1hJSV.js} +3 -3
  12. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-L3eIj10P.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-1SzMrwsu.js} +1267 -1267
  13. package/dist/{Ingredient-C8Gdb9xg.js → Ingredient-BJY2qss1.js} +3 -3
  14. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-DhSZIPOD.js → InventoryBinding.vue_vue_type_script_setup_true_lang-X4CJx1MD.js} +1052 -1052
  15. package/dist/{LinkProductSideSheet-NwwdRb-j.js → LinkProductSideSheet-BPqxOKFE.js} +1 -1
  16. package/dist/{MenuSetting-CKS0c1Kc.js → MenuSetting-DoH1hCL2.js} +4 -4
  17. package/dist/{PrintRoute-DLwub8uW.js → PrintRoute-C_7hQlKF.js} +3 -3
  18. package/dist/{Product-DowKo0s7.js → Product-BY6rYNWs.js} +1 -1
  19. package/dist/{Product.vue_vue_type_script_setup_true_lang-DiK-MIBy.js → Product.vue_vue_type_script_setup_true_lang-CPB_80UB.js} +11 -11
  20. package/dist/{Products-Bn7xaGhh.js → Products-Bo0GLhqh.js} +59 -59
  21. package/dist/{Publish-CpNC0tWj.js → Publish-yx7N-Mpv.js} +3 -3
  22. package/dist/{Recipe-DH_e8MrT.js → Recipe-CrtkqI4g.js} +4 -4
  23. package/dist/{Scheduler-PXidqEyf.js → Scheduler-BXWkFbPl.js} +3 -3
  24. package/dist/{ServingSequence-DzWaHfwb.js → ServingSequence-Ip13GxVP.js} +3 -3
  25. package/dist/{Setting-EtztudWO.js → Setting-DWEhlh22.js} +4 -4
  26. package/dist/{Subcategory-DkkEu6gx.js → Subcategory-DjqfRJ4l.js} +4 -4
  27. package/dist/{Takeaway-BP96ZCL2.js → Takeaway-C_NseTz5.js} +4 -4
  28. package/dist/{Takeaway-CArF4v3D.js → Takeaway-DCEN8U_L.js} +1 -1
  29. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-dOCLq4xp.js → Takeaway.vue_vue_type_script_setup_true_lang-BM9GpET_.js} +5 -5
  30. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DCV9KgmK.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-D-FwzQwW.js} +13 -13
  31. package/dist/{Unit-SA3YP3kw.js → Unit-Dox7Xn2H.js} +2 -2
  32. package/dist/{Variant-CzNIvE36.js → Variant-DyaoY_F4.js} +3 -3
  33. package/dist/{_id_-8uQ9YdPK.js → _id_-BkZNSeHB.js} +9 -9
  34. package/dist/{app-My0NMUdz.js → app-Dt4HxTgk.js} +23 -23
  35. package/dist/{app-BolRuPEq.js → app-QF6YR_br.js} +1 -1
  36. package/dist/app.js +1 -1
  37. package/dist/assets/{linked-status-CEPycTlk.js → linked-status-cHzQAg5J.js} +2 -2
  38. package/dist/assets/{override-menu-_OICQSvN.js → override-menu-C_imEkkD.js} +2 -2
  39. package/dist/assets/{validate-menu-yLFq_6YK.js → validate-menu-BylCfbEQ.js} +2 -2
  40. package/dist/{catalog--wILrjkl.js → catalog-BBJLCMQs.js} +1 -1
  41. package/dist/{catalogSetting-B_tAzhVc.js → catalogSetting-BT3SGTnr.js} +1 -1
  42. package/dist/{category-csE2-2hB.js → category-DHIAo9R_.js} +1 -1
  43. package/dist/{currency-BDn4uyqM.js → currency-CF2elIGc.js} +1 -1
  44. package/dist/{dayjs.min-CEFQW6qP.js → dayjs.min-DTD3s98V.js} +1 -1
  45. package/dist/{index-DQvyosax.js → index-9ldMbFkz.js} +1 -1
  46. package/dist/{index-gHNvvnIH.js → index-E-3k6_wI.js} +2 -2
  47. package/dist/{index-Ctkjk6Ve.js → index-tOyM3etE.js} +3 -3
  48. package/dist/{item-DBg87Y2g.js → item-DbD19dTs.js} +720 -720
  49. package/dist/{menu-CcLYdceI.js → menu-D2bBcj5l.js} +1 -1
  50. package/dist/{menu-CnPKcWjf.js → menu-Ds6C2AI_.js} +7 -7
  51. package/dist/{priceTier-Bofl7Ezb.js → priceTier-Dey5MTGI.js} +1 -1
  52. package/dist/{scheduler-C7vSQnXy.js → scheduler-BzEqKDCE.js} +3 -3
  53. package/dist/{subcategory-tMzAqsJC.js → subcategory-korIzSgU.js} +57 -57
  54. package/dist/{toExcel-CwKo0jnF.js → toExcel-CLuJDFoU.js} +2 -2
  55. package/dist/{unit-C7iGFlv7.js → unit-BNIcNwgS.js} +1 -1
  56. package/package.json +1 -1
@@ -1,16 +1,16 @@
1
- import { shallowRef as Z, ref as R, computed as h, shallowReactive as Te, effectScope as Re, watch as H, defineComponent as Ne, resolveComponent as B, createBlock as Oe, openBlock as Ve, unref as O, withCtx as Pe, createVNode as xe } from "vue";
2
- import { J as k, A as V, aj as ee, I, ak as G, M as S, K as te, a9 as M, c as $, $ as w, ai as L, al as Ae, am as Ke, z as Ue, ab as $e, an as De, a8 as J, u as qe } from "./menu-CnPKcWjf.js";
1
+ import { shallowRef as Z, ref as R, computed as h, shallowReactive as Te, effectScope as Re, watch as H, defineComponent as Ve, resolveComponent as B, createBlock as Ne, openBlock as Oe, unref as N, withCtx as Pe, createVNode as xe } from "vue";
2
+ import { J as I, A as O, aj as ee, I as k, ak as G, M as S, K as te, a9 as C, c as D, $ as w, ai as L, al as Ae, am as Ke, z as Ue, ab as De, an as $e, a8 as J, u as qe } from "./menu-Ds6C2AI_.js";
3
3
  import { useCoreStore as Q, useI18n as ne } from "@feedmepos/mf-common";
4
4
  import { useSnackbar as He, useDialogChild as Ye } from "@feedmepos/ui-library";
5
5
  import { defineStore as We } from "pinia";
6
- const je = "/assets/linked-status-CEPycTlk.js", ze = "/assets/override-menu-_OICQSvN.js";
6
+ const je = "/assets/linked-status-cHzQAg5J.js", ze = "/assets/override-menu-C_imEkkD.js";
7
7
  function Be(e) {
8
8
  var o;
9
- const n = k(e), a = (o = n.variant) == null ? void 0 : o.variantCombinations;
9
+ const n = I(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 Ge(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), _), {});
13
+ const r = I(n), f = a ? r.modules.catalog.find((_) => _._id === a) : null, d = o ? r.modules.scheduler.find((_) => _._id === o) : null, i = f ? I(f) : void 0, m = a ? r.modules.catalog.filter((_) => _._id !== a) : [], u = d ? I(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 [
@@ -25,7 +25,7 @@ function Ge(e, n, a, o) {
25
25
  _id: o,
26
26
  items: p(u == null ? void 0 : u.items).map((_) => ({
27
27
  ..._,
28
- orderFrom: I.F_ORDER_FROM.enum.ALL
28
+ orderFrom: k.F_ORDER_FROM.enum.ALL
29
29
  }))
30
30
  }
31
31
  }, r.modules.catalog = [...m, i], r) : i ? (i.override.items = {
@@ -85,7 +85,7 @@ function Le(e, n) {
85
85
  if (u)
86
86
  return T(u, n, 1);
87
87
  const s = {
88
- ...V.generator.initMenuV4ItemOverrider(),
88
+ ...O.generator.initMenuV4ItemOverrider(),
89
89
  _id: m._id,
90
90
  combinationKey: m.combinationKey
91
91
  };
@@ -93,7 +93,7 @@ function Le(e, n) {
93
93
  });
94
94
  return { ...f, items: i };
95
95
  }), o = e.variant ? e.variant.variantCombinations.map((f) => T(f, n, 1)) : [], r = {
96
- ...V.generator.initMenuV4ItemOverrider(),
96
+ ...O.generator.initMenuV4ItemOverrider(),
97
97
  _id: e._id,
98
98
  name: e.name,
99
99
  code: e.code,
@@ -150,10 +150,10 @@ function Je(e, n) {
150
150
  };
151
151
  }
152
152
  async function lt(e, n, a, o, r, f = !0) {
153
- const d = k(a), i = f ? Ge(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 = I(a), i = f ? Ge(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] = Le(m[y], e), p;
156
- }, {}), s = V.getFallbackPrices({
156
+ }, {}), s = O.getFallbackPrices({
157
157
  rawMenu: i,
158
158
  items: u,
159
159
  catalogId: o || void 0,
@@ -180,11 +180,11 @@ function dt(e, n) {
180
180
  return r;
181
181
  }, [])) || []).join(" / ");
182
182
  }
183
- const D = /* @__PURE__ */ new Map();
183
+ const $ = /* @__PURE__ */ new Map();
184
184
  async function mt(e, n) {
185
185
  const a = `${e._id}-${e.updatedAt}-${n}`;
186
- if (D.has(a))
187
- return D.get(a);
186
+ if ($.has(a))
187
+ return $.get(a);
188
188
  const o = await ee(
189
189
  je,
190
190
  JSON.stringify({
@@ -192,7 +192,7 @@ async function mt(e, n) {
192
192
  itemId: n
193
193
  })
194
194
  );
195
- return D.set(a, o), o;
195
+ return $.set(a, o), o;
196
196
  }
197
197
  async function oe(e, n, a) {
198
198
  return await ee(ze, {
@@ -242,7 +242,7 @@ async function Qe(e, n, a) {
242
242
  async function _t(e, n, a) {
243
243
  var d, i;
244
244
  const o = await Qe(e, n, null), r = [], f = (m, u) => {
245
- const s = k(m);
245
+ const s = I(m);
246
246
  for (const p in u)
247
247
  u[p] && (s[p] = u[p]);
248
248
  return s;
@@ -251,8 +251,8 @@ async function _t(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 N, P;
255
- const b = y.combinationKey ? (P = (N = s == null ? void 0 : s.variant) == null ? void 0 : N.variantCombinations) == null ? void 0 : P.find(
254
+ var V, P;
255
+ const b = y.combinationKey ? (P = (V = s == null ? void 0 : s.variant) == null ? void 0 : V.variantCombinations) == null ? void 0 : P.find(
256
256
  (x) => x.combinationKey === y.combinationKey
257
257
  ) : s, F = b && s ? f(s, b) : y;
258
258
  return f(F, y);
@@ -341,15 +341,15 @@ function et() {
341
341
  const tt = We(
342
342
  "mf-menu-store-v2",
343
343
  () => {
344
- const e = Te(et()), n = Q(), a = He(), o = h(() => e.menu.modules.serveSequence ? M(e.menu.modules.serveSequence, {
344
+ const e = Te(et()), n = Q(), a = He(), o = h(() => e.menu.modules.serveSequence ? C(e.menu.modules.serveSequence, {
345
345
  selector: "position"
346
346
  }) : []), r = h(() => {
347
347
  var t;
348
- return ((t = n.currentBusiness.value) == null ? void 0 : t.menuVersion) || $.F_MENU_VERSION.v3;
349
- }), f = h(() => r.value === $.F_MENU_VERSION.v4), d = h(() => {
348
+ return ((t = n.currentBusiness.value) == null ? void 0 : t.menuVersion) || D.F_MENU_VERSION.v3;
349
+ }), f = h(() => r.value === D.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) {
@@ -373,12 +373,12 @@ const tt = We(
373
373
  }
374
374
  return p.value = t, _.value = !1, y.value = y.value + 1, t;
375
375
  }
376
- const N = te.debounce(b, 200);
376
+ const V = te.debounce(b, 200);
377
377
  Re(!0).run(() => {
378
378
  H(
379
379
  () => [e.menu, e.currentCatalogId, e.currentSchedulerId],
380
380
  () => {
381
- _.value || N();
381
+ _.value || V();
382
382
  }
383
383
  );
384
384
  });
@@ -412,23 +412,23 @@ const tt = We(
412
412
  if (i.value) {
413
413
  const c = (l = i.value) == null ? void 0 : l.override.items;
414
414
  t = t.filter((g) => {
415
- var C;
416
- const v = (C = c == null ? void 0 : c[g._id]) == null ? void 0 : C.find(
415
+ var M;
416
+ const v = (M = c == null ? void 0 : c[g._id]) == null ? void 0 : M.find(
417
417
  (Fe) => !Fe.combinationKey
418
418
  );
419
- return (v == null ? void 0 : v.orderFrom) !== I.F_ORDER_FROM.enum.NONE;
419
+ return (v == null ? void 0 : v.orderFrom) !== k.F_ORDER_FROM.enum.NONE;
420
420
  });
421
421
  }
422
422
  return w(t, (c) => c.code || c.name);
423
423
  }), se = h(() => {
424
424
  const t = e.menu.modules.category, l = w(t, (g) => g.name).reduce(
425
- (g, v, C) => (g[v._id] = C, g),
425
+ (g, v, M) => (g[v._id] = M, g),
426
426
  { "": 0 }
427
427
  ), c = e.menu.modules.item;
428
428
  return w(
429
429
  c,
430
430
  (g) => g.code || g.name
431
- ).reduce((g, v, C) => (g[v._id] = C + l[v.category || ""], g), {});
431
+ ).reduce((g, v, M) => (g[v._id] = M + l[v.category || ""], g), {});
432
432
  }), ue = h(() => L(A.value, W.value, j.value)), ie = h(() => {
433
433
  const t = K.value.item.addon ? [
434
434
  {
@@ -445,21 +445,21 @@ const tt = We(
445
445
  );
446
446
  }), A = h(() => {
447
447
  const t = p.value.modules.variant;
448
- return M(t, { selector: "name" });
448
+ return C(t, { selector: "name" });
449
449
  });
450
450
  function ce(t = []) {
451
451
  const l = t.map((g) => A.value.find((v) => v._id === g)).filter((g) => !!g);
452
- return V.fullVariantCombination(l).reduce((g, v) => (g[v.combinationKey] = v.selectionName.join(" / "), g), {});
452
+ return O.fullVariantCombination(l).reduce((g, v) => (g[v.combinationKey] = v.selectionName.join(" / "), g), {});
453
453
  }
454
- const le = h(() => w(p.value.modules.group, (t) => t.name)), de = h(() => M(p.value.modules.takeaway, { selector: "name" })), me = h(() => M(e.menu.modules.printDepartment || [], {
454
+ const le = h(() => w(p.value.modules.group, (t) => t.name)), de = h(() => C(p.value.modules.takeaway, { selector: "name" })), me = h(() => C(e.menu.modules.printDepartment || [], {
455
455
  selector: "name"
456
- })), fe = h(() => M(e.menu.modules.unit, { selector: "name" })), pe = h(() => M(Ae(e.menu.modules.recipe, e.menu.modules.sku), {
456
+ })), fe = h(() => C(e.menu.modules.unit, { selector: "name" })), pe = h(() => C(Ae(e.menu.modules.recipe, e.menu.modules.sku), {
457
457
  selector: "name"
458
458
  })), _e = h(() => e.menu.modules.cookingGuide), ge = h(() => {
459
459
  const t = Ke(e.menu.modules.sku);
460
- return M(t, { selector: "code" });
460
+ return C(t, { selector: "code" });
461
461
  }), K = h(() => {
462
- const t = !e.currentCatalogId, l = r.value === $.F_MENU_VERSION.v4, c = !e.currentSchedulerId, g = {
462
+ const t = !e.currentCatalogId, l = r.value === D.F_MENU_VERSION.v4, c = !e.currentSchedulerId, g = {
463
463
  create: t && c,
464
464
  edit: t && c,
465
465
  delete: t && c
@@ -545,7 +545,7 @@ const tt = We(
545
545
  return {
546
546
  systemCode: (l = t[0]) == null ? void 0 : l.systemCode,
547
547
  countryTaxOptions: t.map((c) => ({
548
- label: `${c.name} (${$e(c.rate)}%)`,
548
+ label: `${c.name} (${De(c.rate)}%)`,
549
549
  value: U(c),
550
550
  meta: {
551
551
  rate: c.rate
@@ -555,12 +555,12 @@ const tt = We(
555
555
  }), be = async () => {
556
556
  const t = await J.readMenu();
557
557
  e.menu = t ?? e.menu, z(null);
558
- }, Ce = async () => {
558
+ }, Me = async () => {
559
559
  const t = await J.readRestaurantsWithMenu();
560
- e.restaurants = M(t, { selector: "name" });
560
+ e.restaurants = C(t, { selector: "name" });
561
561
  }, z = (t) => {
562
562
  e.currentCatalogId = t;
563
- }, Me = (t) => {
563
+ }, Ce = (t) => {
564
564
  e.currentSchedulerId = t;
565
565
  }, Se = (t) => {
566
566
  e.currentCategoryIds = t;
@@ -574,10 +574,10 @@ const tt = We(
574
574
  }));
575
575
  try {
576
576
  if (l || g.some(
577
- (C) => [S.F_OPERATION_TYPE.delete, S.F_OPERATION_TYPE.deleteMany].includes(C.operation)
577
+ (M) => [S.F_OPERATION_TYPE.delete, S.F_OPERATION_TYPE.deleteMany].includes(M.operation)
578
578
  )) {
579
- const C = await De(g, e.menu.modules);
580
- if (C !== !0) throw new Error(C);
579
+ const M = await $e(g, e.menu.modules);
580
+ if (M !== !0) throw new Error(M);
581
581
  }
582
582
  const v = await Ze.updateMenuModule(e.menu, g);
583
583
  return s(v.menu), v;
@@ -596,7 +596,7 @@ const tt = We(
596
596
  priceTierSettings: t.priceTierSettings
597
597
  };
598
598
  return s(l), l;
599
- }, E = Xe({ maxHistorySize: 50 }), Ie = h(() => E.canUndo.value), ke = h(() => E.canRedo.value);
599
+ }, E = Xe({ maxHistorySize: 50 }), ke = h(() => E.canUndo.value), Ie = h(() => E.canRedo.value);
600
600
  return {
601
601
  state: e,
602
602
  // loading state
@@ -632,9 +632,9 @@ const tt = We(
632
632
  // Action
633
633
  setMenu: s,
634
634
  readMenu: be,
635
- readRestaurants: Ce,
635
+ readRestaurants: Me,
636
636
  selectCatalog: z,
637
- selectScheduler: Me,
637
+ selectScheduler: Ce,
638
638
  selectCategory: Se,
639
639
  updateMenu: Ee,
640
640
  updateMenuSetting: we,
@@ -645,8 +645,8 @@ const tt = We(
645
645
  getSelectedTax: ye,
646
646
  mapVariant: ce,
647
647
  // history
648
- canUndoHistory: Ie,
649
- canRedoHistory: ke,
648
+ canUndoHistory: ke,
649
+ canRedoHistory: Ie,
650
650
  undoHistory: () => {
651
651
  const t = E.undo();
652
652
  t && s(t, !1);
@@ -660,7 +660,7 @@ const tt = We(
660
660
  }
661
661
  };
662
662
  }
663
- ), X = /* @__PURE__ */ Ne({
663
+ ), X = /* @__PURE__ */ Ve({
664
664
  __name: "AddSubcategoryDialogContentComponent",
665
665
  props: {
666
666
  initialValue: {}
@@ -684,17 +684,17 @@ const tt = We(
684
684
  }
685
685
  ), (d, i) => {
686
686
  const m = B("fm-text-field"), u = B("FmForm");
687
- return Ve(), Oe(u, {
688
- onValidationSuccess: i[1] || (i[1] = (s) => O(f)("primary"))
687
+ return Oe(), Ne(u, {
688
+ onValidationSuccess: i[1] || (i[1] = (s) => N(f)("primary"))
689
689
  }, {
690
690
  default: Pe(() => [
691
691
  xe(m, {
692
692
  modelValue: o.value,
693
693
  "onUpdate:modelValue": i[0] || (i[0] = (s) => o.value = s),
694
- rules: [(s) => !!s || O(a)("menu.subcategory.dialog.add.name.required")],
694
+ rules: [(s) => !!s || N(a)("menu.subcategory.dialog.add.name.required")],
695
695
  autofocus: "",
696
- label: O(a)("menu.subcategory.dialog.add.name.label"),
697
- placeholder: O(a)("menu.subcategory.dialog.add.name.placeholder")
696
+ label: N(a)("menu.subcategory.dialog.add.name.label"),
697
+ placeholder: N(a)("menu.subcategory.dialog.add.name.placeholder")
698
698
  }, null, 8, ["modelValue", "rules", "label", "placeholder"])
699
699
  ]),
700
700
  _: 1
@@ -726,7 +726,7 @@ const tt = We(
726
726
  try {
727
727
  u.value = !0;
728
728
  const p = {
729
- module: I.F_MENU_MODULE_V4_KEY.enum.subCategory,
729
+ module: k.F_MENU_MODULE_V4_KEY.enum.subCategory,
730
730
  operation: S.F_OPERATION_TYPE.create,
731
731
  data: {
732
732
  name: s,
@@ -757,7 +757,7 @@ const tt = We(
757
757
  }).onPrimary(async (s) => {
758
758
  if (!s) return;
759
759
  const p = {
760
- module: I.F_MENU_MODULE_V4_KEY.enum.subCategory,
760
+ module: k.F_MENU_MODULE_V4_KEY.enum.subCategory,
761
761
  operation: S.F_OPERATION_TYPE.update,
762
762
  data: { ...u, name: s ?? u.name }
763
763
  };
@@ -778,7 +778,7 @@ const tt = We(
778
778
  }
779
779
  }).onPrimary(async () => {
780
780
  const s = {
781
- module: I.F_MENU_MODULE_V4_KEY.enum.subCategory,
781
+ module: k.F_MENU_MODULE_V4_KEY.enum.subCategory,
782
782
  operation: S.F_OPERATION_TYPE.delete,
783
783
  data: u._id
784
784
  };
@@ -787,7 +787,7 @@ const tt = We(
787
787
  }
788
788
  async function m(u) {
789
789
  const s = {
790
- module: I.F_MENU_MODULE_V4_KEY.enum.subCategory,
790
+ module: k.F_MENU_MODULE_V4_KEY.enum.subCategory,
791
791
  operation: S.F_OPERATION_TYPE.rearrange,
792
792
  data: u
793
793
  };
@@ -1,5 +1,5 @@
1
- import { c as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-L3eIj10P.js";
2
- import "./menu-CnPKcWjf.js";
1
+ import { c as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-1SzMrwsu.js";
2
+ import "./menu-Ds6C2AI_.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-CnPKcWjf.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-Ds6C2AI_.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.14-beta.1",
3
+ "version": "0.31.14-prod",
4
4
  "files": [
5
5
  "dist"
6
6
  ],