@feedmepos/mf-menu 0.31.50-beta.1 → 0.31.50-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 (62) hide show
  1. package/dist/{App-DXXisW3y.js → App-ib8y7Z7D.js} +9 -9
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-DRPvBB9r.js → ApplyProduct.vue_vue_type_script_setup_true_lang-oZubJ0RK.js} +3 -3
  3. package/dist/{Catalog-xqNebB7d.js → Catalog-DGqA_gZ4.js} +6 -6
  4. package/dist/{Category-CYt-0_IK.js → Category-DDE5OXHH.js} +4 -4
  5. package/dist/{Category-DRXXgCoT.js → Category-DQialqcU.js} +6 -6
  6. package/dist/{CookingGuide-DLfr6-fm.js → CookingGuide-Gt2XTl8c.js} +4 -4
  7. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-toajeers.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-0ymABSZd.js} +1 -1
  8. package/dist/{Group-BKYzG6fU.js → Group-CFKRe-T1.js} +3 -3
  9. package/dist/{Group-DIA_XL_I.js → Group-CXPywXQs.js} +1 -1
  10. package/dist/{Group.vue_vue_type_script_setup_true_lang-CgpkpOvk.js → Group.vue_vue_type_script_setup_true_lang-B11uEJHk.js} +7 -7
  11. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-Dt0ELF4j.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CzYQ4zdO.js} +5 -5
  12. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-CvrZKjus.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-Ak4DmRou.js} +7 -7
  13. package/dist/{Ingredient-BI44dYAP.js → Ingredient-CITAGQ2k.js} +3 -3
  14. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-CBnGxphp.js → InventoryBinding.vue_vue_type_script_setup_true_lang-Bl3Wb2Bk.js} +2 -2
  15. package/dist/{LinkProductSideSheet-CCAges9q.js → LinkProductSideSheet-CVVdawcL.js} +3 -3
  16. package/dist/{MenuSetting-CVakiCVk.js → MenuSetting-CuxGeHzc.js} +5 -5
  17. package/dist/{PrintRoute-DlW6n7Mn.js → PrintRoute-DIG2mYNA.js} +4 -4
  18. package/dist/{Product-m8cMT1LX.js → Product-B6Ju3RbA.js} +1 -1
  19. package/dist/{Product.vue_vue_type_script_setup_true_lang-a55WiF4U.js → Product.vue_vue_type_script_setup_true_lang-Dbb5Zom-.js} +13 -13
  20. package/dist/{ProductInternalTools-CkTx11_s.js → ProductInternalTools-ZIZoPhTx.js} +6 -6
  21. package/dist/{Products-BJuWo6iE.js → Products-2C7SY7ek.js} +11 -11
  22. package/dist/{Publish-CM8QYU-j.js → Publish-BLV7qd6G.js} +3 -3
  23. package/dist/{Recipe-BRDAybvK.js → Recipe-ccZyuTv5.js} +4 -4
  24. package/dist/{Scheduler-BTRJwBGC.js → Scheduler-D9qQirzX.js} +3 -3
  25. package/dist/{ServingSequence-CD_DdM9d.js → ServingSequence-C1l1WIJh.js} +3 -3
  26. package/dist/{Setting-BeO4Vkut.js → Setting-D7jb_oAF.js} +5 -5
  27. package/dist/{Subcategory-_1l7Bx1S.js → Subcategory-B-18Fx7U.js} +4 -4
  28. package/dist/{Takeaway-BZk0NtGE.js → Takeaway-BoK_M3Yg.js} +1 -1
  29. package/dist/{Takeaway-BFI4svUt.js → Takeaway-CzjrTykI.js} +4 -4
  30. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-CIfMWu9j.js → Takeaway.vue_vue_type_script_setup_true_lang-_HSarFfM.js} +5 -5
  31. package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-BP9fJ0Bu.js → Thumbnail.vue_vue_type_script_setup_true_lang-30sdV5FK.js} +4 -4
  32. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-t1fMjOZR.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DkJ8nd2Z.js} +15 -15
  33. package/dist/{Unit-Ctw281mK.js → Unit-CJ5FyYnQ.js} +2 -2
  34. package/dist/{Variant-C3ZYOitW.js → Variant-hCsc2cMr.js} +3 -3
  35. package/dist/{_id_-CoT8bjO6.js → _id_-Df_dc66c.js} +10 -10
  36. package/dist/{app-OcteyEm5.js → app-DC_okRiZ.js} +1 -1
  37. package/dist/{app-Brm1kWbu.js → app-Dyy1s-uX.js} +26 -26
  38. package/dist/app.js +1 -1
  39. package/dist/assets/{linked-status-DAHyhlx2.js → linked-status-Ck-8Ravz.js} +2 -2
  40. package/dist/assets/{override-menu-BnY4XZnY.js → override-menu-fzQkrDvQ.js} +2 -2
  41. package/dist/assets/{validate-menu-BraLzbnR.js → validate-menu-Cno2miU3.js} +2 -2
  42. package/dist/{catalog-gKppJzig.js → catalog-Y133zf_6.js} +1 -1
  43. package/dist/{catalogSetting-Su45SyJ-.js → catalogSetting-BWAs6AQD.js} +1 -1
  44. package/dist/{category-8y6-08Mv.js → category-BhY_lDHW.js} +1 -1
  45. package/dist/{currency-B_e-dhFu.js → currency-CmONP3oI.js} +1 -1
  46. package/dist/{customAttributes-C2vr-SKM.js → customAttributes-c6-DoSIq.js} +1 -1
  47. package/dist/{dayjs.min-dKmkrzl4.js → dayjs.min-DTdZBcTY.js} +1 -1
  48. package/dist/{index-D4faLWap.js → index-BBaGc5fR.js} +3 -3
  49. package/dist/{index-C9tWvhY2.js → index-BMUwK29a.js} +1 -1
  50. package/dist/{index-BHvV964b.js → index-BlCKSyJJ.js} +4 -4
  51. package/dist/{index-Dr59iGVp.js → index-Czv8z2yJ.js} +1 -1
  52. package/dist/{item-DEucLegT.js → item-CFP4tXW_.js} +386 -386
  53. package/dist/{jszip.min-yRZ7rNLS.js → jszip.min-larlghLD.js} +2 -2
  54. package/dist/{menu-C_Qpm-ah.js → menu-As9Zbucy.js} +1 -1
  55. package/dist/{menu-D1ph5NBB.js → menu-D4_Sj9Gq.js} +164 -164
  56. package/dist/{menuV2-DlyT8PNo.js → menuV2-CeslfuJU.js} +68 -68
  57. package/dist/{priceTier-BsiwgiPs.js → priceTier-C2gju0y3.js} +1 -1
  58. package/dist/{scheduler-Cyq65N6m.js → scheduler-D9jkW002.js} +4 -4
  59. package/dist/{subcategory-CMW9rWpo.js → subcategory-BhmU1Q7V.js} +2 -2
  60. package/dist/{toExcel-B9qHcJCR.js → toExcel-Cl8MVoV6.js} +2 -2
  61. package/dist/{unit-bsmM8Os6.js → unit-VF2CWKx9.js} +2 -2
  62. package/package.json +1 -1
@@ -1,16 +1,16 @@
1
- import { an as L, H as k, D as I, A as Y, ao as q, J as U, I as J, a8 as w, c as x, X as E, ai as j, ap as Me, aq as Ee, B as ke, aa as Ie, ar as Re, as as Te, a7 as Fe } from "./menu-D1ph5NBB.js";
1
+ import { an as L, H as E, D as R, A as J, ao as z, J as U, I as Q, a8 as w, c as N, X as k, ai as B, ap as Me, aq as ke, B as Ee, aa as Re, ar as Ie, as as Te, a7 as Fe } from "./menu-D4_Sj9Gq.js";
2
2
  import { defineStore as Ae } from "pinia";
3
- import { shallowRef as X, ref as D, computed as h, shallowReactive as Pe, effectScope as Ke, watch as Oe } from "vue";
4
- import { useCoreStore as z } from "@feedmepos/mf-common";
3
+ import { shallowRef as Y, ref as D, computed as h, shallowReactive as Pe, effectScope as Ke, watch as Oe } from "vue";
4
+ import { useCoreStore as j } from "@feedmepos/mf-common";
5
5
  import { useSnackbar as Ve } from "@feedmepos/ui-library";
6
- const xe = "/assets/linked-status-DAHyhlx2.js", Ne = "/assets/override-menu-BnY4XZnY.js";
6
+ const Ne = "/assets/linked-status-Ck-8Ravz.js", xe = "/assets/override-menu-fzQkrDvQ.js";
7
7
  function $e(e) {
8
8
  var a;
9
- const n = k(e), o = (a = n.variant) == null ? void 0 : a.variantCombinations;
9
+ const n = E(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 = k(n), l = o ? r.modules.catalog.find((_) => _._id === o) : null, d = a ? r.modules.scheduler.find((_) => _._id === a) : null, i = l ? k(l) : void 0, c = o ? r.modules.catalog.filter((_) => _._id !== o) : [], m = d ? k(d) : void 0, f = e.reduce((_, y) => (_[y._id] = $e(y), _), {});
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), _), {});
14
14
  function v(_ = []) {
15
15
  const y = e.map((C) => C._id);
16
16
  return [
@@ -25,7 +25,7 @@ function Ue(e, n, o, a) {
25
25
  _id: a,
26
26
  items: v(m == null ? void 0 : m.items).map((_) => ({
27
27
  ..._,
28
- orderFrom: Y.F_ORDER_FROM.enum.ALL
28
+ orderFrom: J.F_ORDER_FROM.enum.ALL
29
29
  }))
30
30
  }
31
31
  }, r.modules.catalog = [...c, i], r) : i ? (i.override.items = {
@@ -35,9 +35,9 @@ function Ue(e, n, o, a) {
35
35
  ...r.modules.scheduler.filter((_) => _._id !== a),
36
36
  m
37
37
  ], r) : {
38
- ...q(),
38
+ ...z(),
39
39
  modules: {
40
- ...q().modules,
40
+ ...z().modules,
41
41
  catalog: r.modules.catalog,
42
42
  item: r.modules.item,
43
43
  group: r.modules.group,
@@ -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
- (R) => R._id === _._id && R.combinationKey === _.combinationKey
62
+ (I) => I._id === _._id && I.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))) ?? [], {
@@ -85,7 +85,7 @@ function De(e, n) {
85
85
  if (m)
86
86
  return T(m, n, 1);
87
87
  const f = {
88
- ...I.generator.initMenuV4ItemOverrider(),
88
+ ...R.generator.initMenuV4ItemOverrider(),
89
89
  _id: c._id,
90
90
  combinationKey: c.combinationKey
91
91
  };
@@ -93,7 +93,7 @@ function De(e, n) {
93
93
  });
94
94
  return { ...l, items: i };
95
95
  }), a = e.variant ? e.variant.variantCombinations.map((l) => T(l, n, 1)) : [], r = {
96
- ...I.generator.initMenuV4ItemOverrider(),
96
+ ...R.generator.initMenuV4ItemOverrider(),
97
97
  _id: e._id,
98
98
  name: e.name,
99
99
  code: e.code,
@@ -150,10 +150,10 @@ function He(e, n) {
150
150
  };
151
151
  }
152
152
  async function et(e, n, o, a, r, l = !0) {
153
- const d = k(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 = 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, _) => {
154
154
  const y = _._id;
155
155
  return v[y] = De(c[y], e), v;
156
- }, {}), f = I.getFallbackPrices({
156
+ }, {}), f = R.getFallbackPrices({
157
157
  rawMenu: i,
158
158
  items: m,
159
159
  catalogId: a || void 0,
@@ -180,22 +180,22 @@ function tt(e, n) {
180
180
  return r;
181
181
  }, [])) || []).join(" / ");
182
182
  }
183
- const N = /* @__PURE__ */ new Map();
183
+ const x = /* @__PURE__ */ new Map();
184
184
  async function nt(e, n) {
185
185
  const o = `${e._id}-${e.updatedAt}-${n}`;
186
- if (N.has(o))
187
- return N.get(o);
186
+ if (x.has(o))
187
+ return x.get(o);
188
188
  const a = await L(
189
- xe,
189
+ Ne,
190
190
  JSON.stringify({
191
191
  menu: e,
192
192
  itemId: n
193
193
  })
194
194
  );
195
- return N.set(o, a), a;
195
+ return x.set(o, a), a;
196
196
  }
197
- async function Z(e, n, o) {
198
- return await L(Ne, {
197
+ async function X(e, n, o) {
198
+ return await L(xe, {
199
199
  menu: e,
200
200
  catalogId: n,
201
201
  schedulerId: o
@@ -232,17 +232,17 @@ function ot(e, n, o) {
232
232
  return r(n, o);
233
233
  }
234
234
  const $ = /* @__PURE__ */ new Map();
235
- async function Be(e, n, o) {
235
+ async function Ge(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);
239
- const r = await Z(e, n, o);
239
+ const r = await X(e, n, o);
240
240
  return $.set(a, r), r;
241
241
  }
242
242
  async function st(e, n, o) {
243
243
  var d, i;
244
- const a = await Be(e, n, null), r = [], l = (c, m) => {
245
- const f = k(c);
244
+ const a = await Ge(e, n, null), r = [], l = (c, m) => {
245
+ const f = E(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, A;
255
255
  const C = y.combinationKey ? (A = (F = f == null ? void 0 : f.variant) == null ? void 0 : F.variantCombinations) == null ? void 0 : A.find(
256
256
  (P) => P.combinationKey === y.combinationKey
257
- ) : f, R = C && f ? l(f, C) : y;
258
- return l(R, y);
257
+ ) : f, I = C && f ? l(f, C) : y;
258
+ return l(I, y);
259
259
  });
260
260
  r.push({
261
261
  group: c,
@@ -265,10 +265,10 @@ async function st(e, n, o) {
265
265
  }
266
266
  return r;
267
267
  }
268
- function Ge({
268
+ function We({
269
269
  maxHistorySize: e = 50
270
270
  }) {
271
- const n = X([]), o = D(-1), a = h(() => o.value > 0), r = h(() => o.value < n.value.length - 1);
271
+ const n = Y([]), o = D(-1), a = h(() => o.value > 0), r = h(() => o.value < n.value.length - 1);
272
272
  function l(m) {
273
273
  n.value.push(m), o.value++, n.value.length > e && (n.value.shift(), o.value--);
274
274
  }
@@ -292,7 +292,7 @@ function Ge({
292
292
  clear: c
293
293
  };
294
294
  }
295
- const We = {
295
+ const qe = {
296
296
  async updateMenuModule(e, n) {
297
297
  const o = U.RequestRunner.operation(n, e.modules);
298
298
  if (o.validateError.length > 0)
@@ -303,10 +303,10 @@ const We = {
303
303
  modules: o.result || e.modules,
304
304
  _rev: o.id ?? ""
305
305
  };
306
- return J.cloneDeep({ menu: a, updateId: o.id ?? null });
306
+ return Q.cloneDeep({ menu: a, updateId: o.id ?? null });
307
307
  }
308
308
  };
309
- function Q() {
309
+ function Z() {
310
310
  return {
311
311
  _id: "",
312
312
  masterCatalogSetting: { inclusiveTaxes: [] },
@@ -329,10 +329,10 @@ function Q() {
329
329
  updatedAt: (/* @__PURE__ */ new Date()).toISOString()
330
330
  };
331
331
  }
332
- function qe() {
332
+ function ze() {
333
333
  return {
334
334
  restaurants: [],
335
- menu: { ...Q(), _rev: "" },
335
+ menu: { ...Z(), _rev: "" },
336
336
  currentCatalogId: null,
337
337
  currentCategoryIds: null,
338
338
  currentSchedulerId: "",
@@ -345,12 +345,12 @@ function qe() {
345
345
  const at = Ae(
346
346
  "mf-menu-store-v2",
347
347
  () => {
348
- const e = Pe(qe()), n = z(), o = Ve(), a = h(() => e.menu.modules.serveSequence ? w(e.menu.modules.serveSequence, {
348
+ const e = Pe(ze()), n = j(), o = Ve(), a = h(() => e.menu.modules.serveSequence ? w(e.menu.modules.serveSequence, {
349
349
  selector: "position"
350
350
  }) : []), r = h(() => {
351
351
  var t;
352
- return ((t = n.currentBusiness.value) == null ? void 0 : t.menuVersion) || x.F_MENU_VERSION.v3;
353
- }), l = h(() => r.value === x.F_MENU_VERSION.v4), d = h(() => {
352
+ return ((t = n.currentBusiness.value) == null ? void 0 : t.menuVersion) || N.F_MENU_VERSION.v3;
353
+ }), l = h(() => r.value === N.F_MENU_VERSION.v4), d = h(() => {
354
354
  const t = e.menu.modules.catalog;
355
355
  return w(t, { selector: "name" });
356
356
  }), i = h(() => {
@@ -358,7 +358,7 @@ const at = Ae(
358
358
  let t = e.menu.modules.catalog.find(
359
359
  (u) => u._id === e.currentCatalogId
360
360
  );
361
- return t && ((s = t.linkItemRules) != null && s.length) && (t = I.populateCatalog({
361
+ return t && ((s = t.linkItemRules) != null && s.length) && (t = R.populateCatalog({
362
362
  catalog: t,
363
363
  ruleGroupSettings: e.menu.ruleGroupSettings,
364
364
  items: e.menu.modules.item,
@@ -370,13 +370,13 @@ const at = Ae(
370
370
  function f(t, s = !0) {
371
371
  e.menu = { ...t, _rev: e.menu._rev }, s && M.push(e.menu);
372
372
  }
373
- const v = X(Q()), _ = D(!1), y = D(1);
373
+ const v = Y(Z()), _ = D(!1), y = D(1);
374
374
  async function C() {
375
375
  var u;
376
376
  _.value = !0;
377
377
  let t = e.menu.modules.catalog;
378
378
  if (i.value && ((u = i.value.linkItemRules) != null && u.length)) {
379
- const p = I.populateCatalog({
379
+ const p = R.populateCatalog({
380
380
  catalog: i.value,
381
381
  ruleGroupSettings: e.menu.ruleGroupSettings,
382
382
  items: e.menu.modules.item,
@@ -384,7 +384,7 @@ const at = Ae(
384
384
  });
385
385
  t = e.menu.modules.catalog.map((g) => g._id === (p == null ? void 0 : p._id) ? p : g);
386
386
  }
387
- const s = await Z(
387
+ const s = await X(
388
388
  {
389
389
  ...e.menu,
390
390
  modules: {
@@ -405,7 +405,7 @@ const at = Ae(
405
405
  }
406
406
  return v.value = s, _.value = !1, y.value = y.value + 1, s;
407
407
  }
408
- const F = J.debounce(C, 200);
408
+ const F = Q.debounce(C, 200);
409
409
  Ke(!0).run(() => {
410
410
  Oe(
411
411
  () => [e.menu, e.currentCatalogId, e.currentSchedulerId],
@@ -423,7 +423,7 @@ const at = Ae(
423
423
  label: t.name,
424
424
  value: t._id
425
425
  }))
426
- ]), B = h(() => {
426
+ ]), G = h(() => {
427
427
  const t = v.value.modules.category;
428
428
  return [
429
429
  ...O.value.item.addon ? [
@@ -433,12 +433,12 @@ const at = Ae(
433
433
  position: 0
434
434
  }
435
435
  ] : [],
436
- ...E(t, (s) => s.name)
436
+ ...k(t, (s) => s.name)
437
437
  ];
438
438
  }), ee = h(() => {
439
439
  const t = v.value.modules.subCategory || [];
440
- return E(t, (s) => s.name);
441
- }), G = h(() => {
440
+ return k(t, (s) => s.name);
441
+ }), W = h(() => {
442
442
  var s;
443
443
  let t = v.value.modules.item;
444
444
  if (i.value) {
@@ -448,20 +448,20 @@ const at = Ae(
448
448
  const g = (S = u == null ? void 0 : u[p._id]) == null ? void 0 : S.find(
449
449
  (b) => !b.combinationKey
450
450
  );
451
- return (g == null ? void 0 : g.orderFrom) !== Y.F_ORDER_FROM.enum.NONE;
451
+ return (g == null ? void 0 : g.orderFrom) !== J.F_ORDER_FROM.enum.NONE;
452
452
  });
453
453
  }
454
- return E(t, (u) => u.code || u.name);
454
+ return k(t, (u) => u.code || u.name);
455
455
  }), te = h(() => {
456
- const t = e.menu.modules.category, s = E(t, (p) => p.name).reduce(
456
+ const t = e.menu.modules.category, s = k(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 E(
460
+ return k(
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(() => j(K.value, B.value, G.value)), re = h(() => {
464
+ }), ne = h(() => B(K.value, G.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 = Ae(
470
470
  },
471
471
  ...e.menu.modules.category
472
472
  ] : e.menu.modules.category;
473
- return j(
473
+ return B(
474
474
  e.menu.modules.variant,
475
475
  t,
476
476
  e.menu.modules.item
@@ -481,17 +481,17 @@ const at = Ae(
481
481
  });
482
482
  function oe(t = []) {
483
483
  const s = t.map((p) => K.value.find((g) => g._id === p)).filter((p) => !!p);
484
- return I.fullVariantCombination(s).reduce((p, g) => (p[g.combinationKey] = g.selectionName.join(" / "), p), {});
484
+ return R.fullVariantCombination(s).reduce((p, g) => (p[g.combinationKey] = g.selectionName.join(" / "), p), {});
485
485
  }
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 || [], {
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 || [], {
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 = Ee(e.menu.modules.sku);
491
+ const t = ke(e.menu.modules.sku);
492
492
  return w(t, { selector: "code" });
493
493
  }), O = h(() => {
494
- const t = !e.currentCatalogId, s = r.value === x.F_MENU_VERSION.v4, u = !e.currentSchedulerId, p = {
494
+ const t = !e.currentCatalogId, s = r.value === N.F_MENU_VERSION.v4, u = !e.currentSchedulerId, p = {
495
495
  create: t && u,
496
496
  edit: t && u,
497
497
  delete: t && u
@@ -571,10 +571,10 @@ const at = Ae(
571
571
  }
572
572
  const pe = h(() => {
573
573
  var p;
574
- const t = ["SV5", "SV10"], s = ke.Country.getCountryFlattenTaxes(
575
- z().currentCountry.value
574
+ const t = ["SV5", "SV10"], s = Ee.Country.getCountryFlattenTaxes(
575
+ j().currentCountry.value
576
576
  ), u = s.filter((g) => l.value || !t.includes(g.taxCode)).map((g) => ({
577
- label: `${g.name} (${Ie(g.rate)}%)`,
577
+ label: `${g.name} (${Re(g.rate)}%)`,
578
578
  value: V(g),
579
579
  meta: {
580
580
  rate: g.rate
@@ -586,7 +586,7 @@ const at = Ae(
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, q(null);
590
590
  }, ge = async () => {
591
591
  const { fetchAllRestaurants: t } = Te();
592
592
  await t({
@@ -594,7 +594,7 @@ const at = Ae(
594
594
  e.restaurants = s;
595
595
  }
596
596
  });
597
- }, W = (t) => {
597
+ }, q = (t) => {
598
598
  e.currentCatalogId = t;
599
599
  }, _e = (t) => {
600
600
  e.currentSchedulerId = t;
@@ -614,10 +614,10 @@ const at = Ae(
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 Re(p, e.menu.modules);
617
+ const S = await Ie(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 qe.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 = Ae(
634
634
  priceTierSettings: t.priceTierSettings
635
635
  };
636
636
  return f(s), s;
637
- }, M = Ge({ 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 = Ae(
651
651
  schedulers: c,
652
652
  currentScheduler: m,
653
653
  catalogOptions: P,
654
- categories: B,
654
+ categories: G,
655
655
  subcategories: ee,
656
- items: G,
656
+ items: W,
657
657
  sortedItems: te,
658
658
  categorizedItems: ne,
659
659
  categorizedRawMenuItems: re,
@@ -671,7 +671,7 @@ const at = Ae(
671
671
  setMenu: f,
672
672
  readMenu: ve,
673
673
  readRestaurants: ge,
674
- selectCatalog: W,
674
+ selectCatalog: q,
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
- Be as o,
710
+ Ge 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-D1ph5NBB.js";
4
+ import { u as k, G as M } from "./menu-D4_Sj9Gq.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-D1ph5NBB.js";
2
+ import { H as S, A as r, u as pe, I as ve, J as ue } from "./menu-D4_Sj9Gq.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-C2vr-SKM.js";
5
+ import { _ as ne, a as fe } from "./customAttributes-c6-DoSIq.js";
6
6
  import { u as ye } from "./discardConfirm-BHni0LNu.js";
7
- import { u as he } from "./menu-C_Qpm-ah.js";
8
- import { L as ge } from "./LinkProductSideSheet-CCAges9q.js";
7
+ import { u as he } from "./menu-As9Zbucy.js";
8
+ import { L as ge } from "./LinkProductSideSheet-CVVdawcL.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-D1ph5NBB.js";
2
+ import { J as l, A as d, u as F } from "./menu-D4_Sj9Gq.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-DlyT8PNo.js";
5
+ import { u as v } from "./menuV2-CeslfuJU.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-CvrZKjus.js";
2
- import "./menu-D1ph5NBB.js";
1
+ import { u as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-Ak4DmRou.js";
2
+ import "./menu-D4_Sj9Gq.js";
3
3
  var Z = {
4
4
  defaultAmount: 0,
5
5
  defaultCurrency: "USD",
@@ -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 { 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-D1ph5NBB.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-D4_Sj9Gq.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-DlyT8PNo.js";
10
+ import "./menuV2-CeslfuJU.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.50-beta.1",
3
+ "version": "0.31.50-prod",
4
4
  "files": [
5
5
  "dist"
6
6
  ],