@feedmepos/mf-menu 0.31.26-prod → 0.31.27-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-CwpjeIPT.js → App-DNeZM8ET.js} +6 -6
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-DT0i67rp.js → ApplyProduct.vue_vue_type_script_setup_true_lang-Dts9vyEs.js} +2 -2
  3. package/dist/{Catalog-CT-i7auP.js → Catalog-CeTkUKrT.js} +5 -5
  4. package/dist/{Category-CaG7F89O.js → Category-B5nVkGhy.js} +4 -4
  5. package/dist/{Category-CvD5BNEf.js → Category-CjzEcwi7.js} +5 -5
  6. package/dist/{CookingGuide-C6kI-lVz.js → CookingGuide-JnqAkFij.js} +3 -3
  7. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-B0Pc11jx.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-B-1YHLD5.js} +4 -4
  8. package/dist/{Group-DnYa3pBU.js → Group-BqHJfrJ7.js} +1 -1
  9. package/dist/{Group-MBctP-Yk.js → Group-o6M3kKKJ.js} +3 -3
  10. package/dist/{Group.vue_vue_type_script_setup_true_lang-Di_CpYFV.js → Group.vue_vue_type_script_setup_true_lang-CnbnU1ip.js} +13 -13
  11. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DN1vIHD8.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-Bk4FKdGN.js} +3 -3
  12. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-BXelyqP6.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-b3I1aq9G.js} +317 -317
  13. package/dist/{Ingredient-DBOLaSCP.js → Ingredient-3zpQ29jx.js} +3 -3
  14. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-NsPsfHP9.js → InventoryBinding.vue_vue_type_script_setup_true_lang-BUcad7JD.js} +2 -2
  15. package/dist/{LinkProductSideSheet-s_Vn3Jk9.js → LinkProductSideSheet-DJPCs98V.js} +1 -1
  16. package/dist/{MenuSetting-DK19FZ0C.js → MenuSetting-ExdGEbLJ.js} +4 -4
  17. package/dist/{PrintRoute-BwoVw0-d.js → PrintRoute-BhK034L7.js} +3 -3
  18. package/dist/{Product-CR5Sw4RL.js → Product-D4slYS6Q.js} +1 -1
  19. package/dist/{Product.vue_vue_type_script_setup_true_lang-Dfn38cy7.js → Product.vue_vue_type_script_setup_true_lang-Bbt-iaJU.js} +11 -11
  20. package/dist/{ProductInternalTools-I0eVE9GA.js → ProductInternalTools-pvFhPiGK.js} +5 -5
  21. package/dist/{Products-Bp7yFGy6.js → Products-nCLjAlVS.js} +10 -10
  22. package/dist/{Publish-DPukPXs1.js → Publish-q5H6YR77.js} +3 -3
  23. package/dist/{Recipe-Cg9ejr8E.js → Recipe-DVrJJaPO.js} +4 -4
  24. package/dist/{Scheduler-DhEyEh5N.js → Scheduler-CXzGNhon.js} +3 -3
  25. package/dist/{ServingSequence-hjuAVKw2.js → ServingSequence-cF0WnmX2.js} +3 -3
  26. package/dist/{Setting-BxTlPw3U.js → Setting-lLEy9-v7.js} +4 -4
  27. package/dist/{Subcategory-CabjbiUb.js → Subcategory-YMQc9cw2.js} +4 -4
  28. package/dist/{Takeaway-DTvObuMd.js → Takeaway-Dxmuae3b.js} +4 -4
  29. package/dist/{Takeaway-3mPHxu0C.js → Takeaway-StVhYDE6.js} +1 -1
  30. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-BQ8CKeG4.js → Takeaway.vue_vue_type_script_setup_true_lang-Dqo1Y_HR.js} +5 -5
  31. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-zfej6GgR.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DgG2YTNE.js} +2351 -2361
  32. package/dist/{Unit-CEe8o3wE.js → Unit-aNDeDuXz.js} +2 -2
  33. package/dist/{Variant-D3A-IyWi.js → Variant-DOsU90mI.js} +3 -3
  34. package/dist/{_id_-a4v5xtyE.js → _id_-C9wsTtS9.js} +9 -9
  35. package/dist/{app-C0wYUOuU.js → app-CMGBe_oB.js} +1 -1
  36. package/dist/app-k4zSZTgi.js +2063 -0
  37. package/dist/app.js +1 -1
  38. package/dist/apps/mf-menu/src/app.d.ts +8 -0
  39. package/dist/apps/mf-menu/src/composable/groupValidation.d.ts +6 -0
  40. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  41. package/dist/assets/{linked-status-BwPlkj-y.js → linked-status-anphKLbj.js} +2 -2
  42. package/dist/assets/{override-menu-BDYrIWwZ.js → override-menu-iBJzLjBb.js} +2 -2
  43. package/dist/assets/{validate-menu-Ce562zRB.js → validate-menu-DkSZDIeq.js} +2 -2
  44. package/dist/{catalog-ZDQKAcGM.js → catalog-mYpynZrD.js} +1 -1
  45. package/dist/{catalogSetting-CWgOo8tv.js → catalogSetting-Dj64AAo1.js} +1 -1
  46. package/dist/{category-DTszMsaS.js → category-BG0hgYmR.js} +1 -1
  47. package/dist/{currency-nAGwGE7G.js → currency-BIwbtKPe.js} +1 -1
  48. package/dist/{dayjs.min-CKn85sfQ.js → dayjs.min-CKV4mIiZ.js} +1 -1
  49. package/dist/{index-Cp97p2Ay.js → index-Busw77Ye.js} +1 -1
  50. package/dist/{index-zAiyNWat.js → index-CuCHkIDK.js} +2 -2
  51. package/dist/{index-SXBxt6-5.js → index-DdeKrSfd.js} +3 -3
  52. package/dist/{item-BCKz-DuV.js → item-DNEXwR_6.js} +2390 -2351
  53. package/dist/{jszip.min-DgCMCf7Q.js → jszip.min-DjLhV4XW.js} +545 -545
  54. package/dist/{menu-DFbDA2iI.js → menu-BPdXZD7E.js} +1 -1
  55. package/dist/{menu-rWewPGcS.js → menu-yNY0i5iA.js} +4 -4
  56. package/dist/{priceTier-C9YZ6-Pk.js → priceTier-BfT2SJmZ.js} +1 -1
  57. package/dist/{scheduler-BNUN2f8f.js → scheduler-BYKqbSt6.js} +3 -3
  58. package/dist/{subcategory-DBUVruTG.js → subcategory-D1d-_URD.js} +65 -65
  59. package/dist/{toExcel-CJCP97Lg.js → toExcel-sqDI-glp.js} +2 -2
  60. package/dist/{unit-yBSgh88e.js → unit-D7x7R7uL.js} +1 -1
  61. package/package.json +1 -1
  62. package/dist/app-CZBM0hF-.js +0 -2063
@@ -1,16 +1,16 @@
1
- import { shallowRef as Q, ref as T, computed as h, shallowReactive as Fe, effectScope as Re, watch as q, defineComponent as Te, resolveComponent as z, createBlock as Ve, openBlock as Ne, unref as N, withCtx as Oe, createVNode as Pe } from "vue";
2
- import { H as k, B as O, ak as X, G as I, al as G, J as S, I as ee, aa as M, c as D, Y as E, aj as L, am as xe, an as Ae, A as Ue, ac as Ke, ao as De, ap as $e, a9 as Ye, u as qe } from "./menu-rWewPGcS.js";
1
+ import { shallowRef as X, ref as T, computed as h, shallowReactive as Fe, effectScope as Re, watch as H, defineComponent as Te, resolveComponent as z, createBlock as Ve, openBlock as Ne, unref as N, withCtx as Oe, createVNode as xe } from "vue";
2
+ import { H as k, B as O, ak as Z, G as I, al as L, J as S, I as ee, aa as M, c as D, Y as E, aj as G, am as Pe, an as Ae, A as Ke, ac as Ue, ao as De, ap as $e, a9 as qe, u as He } from "./menu-yNY0i5iA.js";
3
3
  import { useCoreStore as J, useI18n as te } from "@feedmepos/mf-common";
4
- import { useSnackbar as He, useDialogChild as Be } from "@feedmepos/ui-library";
5
- import { defineStore as We } from "pinia";
6
- const je = "/assets/linked-status-BwPlkj-y.js", ze = "/assets/override-menu-BDYrIWwZ.js";
7
- function Ge(e) {
4
+ import { useSnackbar as Ye, useDialogChild as Be } from "@feedmepos/ui-library";
5
+ import { defineStore as je } from "pinia";
6
+ const We = "/assets/linked-status-anphKLbj.js", ze = "/assets/override-menu-iBJzLjBb.js";
7
+ function Le(e) {
8
8
  var o;
9
9
  const n = k(e), a = (o = n.variant) == null ? void 0 : o.variantCombinations;
10
10
  return delete n.variant, delete n.thumbnail, [n, ...a || []];
11
11
  }
12
- function Le(e, n, a, o) {
13
- const r = k(n), f = a ? r.modules.catalog.find((g) => g._id === a) : null, l = o ? r.modules.scheduler.find((g) => g._id === o) : null, i = f ? k(f) : void 0, d = a ? r.modules.catalog.filter((g) => g._id !== a) : [], u = l ? k(l) : void 0, s = e.reduce((g, y) => (g[y._id] = Ge(y), g), {});
12
+ function Ge(e, n, a, o) {
13
+ const r = k(n), f = a ? r.modules.catalog.find((g) => g._id === a) : null, l = o ? r.modules.scheduler.find((g) => g._id === o) : null, i = f ? k(f) : void 0, d = a ? r.modules.catalog.filter((g) => g._id !== a) : [], u = l ? k(l) : void 0, s = e.reduce((g, y) => (g[y._id] = Le(y), g), {});
14
14
  function p(g = []) {
15
15
  const y = e.map((b) => b._id);
16
16
  return [
@@ -35,9 +35,9 @@ function Le(e, n, a, o) {
35
35
  ...r.modules.scheduler.filter((g) => g._id !== o),
36
36
  u
37
37
  ], r) : {
38
- ...G(),
38
+ ...L(),
39
39
  modules: {
40
- ...G().modules,
40
+ ...L().modules,
41
41
  catalog: r.modules.catalog,
42
42
  item: r.modules.item,
43
43
  group: r.modules.group,
@@ -101,7 +101,7 @@ function Je(e, n) {
101
101
  };
102
102
  return [...o, r];
103
103
  }
104
- function H(e, n) {
104
+ function Y(e, n) {
105
105
  var o;
106
106
  if (!n)
107
107
  return e;
@@ -114,11 +114,11 @@ function H(e, n) {
114
114
  const u = (s = f == null ? void 0 : f.items) == null ? void 0 : s.find(
115
115
  (p) => p._id === d._id && p.combinationKey === d.combinationKey
116
116
  );
117
- return H(d, u);
117
+ return Y(d, u);
118
118
  }), r;
119
119
  }), a;
120
120
  }
121
- function Ze(e, n) {
121
+ function Qe(e, n) {
122
122
  const a = e.items[n._id];
123
123
  n.variant && (n.variant = {
124
124
  ...n.variant,
@@ -128,7 +128,7 @@ function Ze(e, n) {
128
128
  );
129
129
  if (!f)
130
130
  throw new Error(`Item overrider not found - ${r._id} - ${r.combinationKey}`);
131
- return H(f, r);
131
+ return Y(f, r);
132
132
  })
133
133
  });
134
134
  const o = a.find((r) => !r.combinationKey);
@@ -142,7 +142,7 @@ function Ze(e, n) {
142
142
  const d = (u = f == null ? void 0 : f.items) == null ? void 0 : u.find(
143
143
  (s) => s._id === i._id && s.combinationKey === i.combinationKey
144
144
  );
145
- return H(i, d);
145
+ return Y(i, d);
146
146
  }), r;
147
147
  }), {
148
148
  ...n,
@@ -150,7 +150,7 @@ function Ze(e, n) {
150
150
  };
151
151
  }
152
152
  async function dt(e, n, a, o, r, f = !0) {
153
- const l = k(a), i = f ? Le(n, l, o, r) : l, d = n.reduce((p, g) => (p[g._id] = i.modules.item.find((y) => y._id === g._id), p), {}), u = n.reduce((p, g) => {
153
+ const l = k(a), i = f ? Ge(n, l, o, r) : l, d = n.reduce((p, g) => (p[g._id] = i.modules.item.find((y) => y._id === g._id), p), {}), u = n.reduce((p, g) => {
154
154
  const y = g._id;
155
155
  return p[y] = Je(d[y], e), p;
156
156
  }, {}), s = O.getFallbackPrices({
@@ -162,7 +162,7 @@ async function dt(e, n, a, o, r, f = !0) {
162
162
  return n.map((p) => {
163
163
  const g = p._id, y = d[g];
164
164
  return {
165
- ...Ze(s, y),
165
+ ...Qe(s, y),
166
166
  category: o || r ? y == null ? void 0 : y.category : null
167
167
  };
168
168
  });
@@ -185,8 +185,8 @@ async function ft(e, n) {
185
185
  const a = `${e._id}-${e.updatedAt}-${n}`;
186
186
  if ($.has(a))
187
187
  return $.get(a);
188
- const o = await X(
189
- je,
188
+ const o = await Z(
189
+ We,
190
190
  JSON.stringify({
191
191
  menu: e,
192
192
  itemId: n
@@ -195,7 +195,7 @@ async function ft(e, n) {
195
195
  return $.set(a, o), o;
196
196
  }
197
197
  async function ne(e, n, a) {
198
- return await X(ze, {
198
+ return await Z(ze, {
199
199
  menu: e,
200
200
  catalogId: n,
201
201
  schedulerId: a
@@ -231,17 +231,17 @@ function _t(e, n, a) {
231
231
  }
232
232
  return r(n, a);
233
233
  }
234
- const Y = /* @__PURE__ */ new Map();
235
- async function Qe(e, n, a) {
234
+ const q = /* @__PURE__ */ new Map();
235
+ async function Xe(e, n, a) {
236
236
  const o = `${e._id}-${e.updatedAt}-${n || "null"}-${a || "null"}`;
237
- if (Y.has(o))
238
- return Y.get(o);
237
+ if (q.has(o))
238
+ return q.get(o);
239
239
  const r = await ne(e, n, a);
240
- return Y.set(o, r), r;
240
+ return q.set(o, r), r;
241
241
  }
242
242
  async function gt(e, n, a) {
243
243
  var l, i;
244
- const o = await Qe(e, n, null), r = [], f = (d, u) => {
244
+ const o = await Xe(e, n, null), r = [], f = (d, u) => {
245
245
  const s = k(d);
246
246
  for (const p in u)
247
247
  u[p] && (s[p] = u[p]);
@@ -251,9 +251,9 @@ async function gt(e, n, a) {
251
251
  const u = (l = d.items) == null ? void 0 : l.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 = d.items) == null ? void 0 : i.filter((y) => y._id === a && y.combinationKey), g = [u, ...p].map((y) => {
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
- (x) => x.combinationKey === y.combinationKey
254
+ var V, x;
255
+ const b = y.combinationKey ? (x = (V = s == null ? void 0 : s.variant) == null ? void 0 : V.variantCombinations) == null ? void 0 : x.find(
256
+ (P) => P.combinationKey === y.combinationKey
257
257
  ) : s, F = b && s ? f(s, b) : y;
258
258
  return f(F, y);
259
259
  });
@@ -265,10 +265,10 @@ async function gt(e, n, a) {
265
265
  }
266
266
  return r;
267
267
  }
268
- function Xe({
268
+ function Ze({
269
269
  maxHistorySize: e = 50
270
270
  }) {
271
- const n = Q([]), a = T(-1), o = h(() => a.value > 0), r = h(() => a.value < n.value.length - 1);
271
+ const n = X([]), a = T(-1), o = h(() => a.value > 0), r = h(() => a.value < n.value.length - 1);
272
272
  function f(u) {
273
273
  n.value.push(u), a.value++, n.value.length > e && (n.value.shift(), a.value--);
274
274
  }
@@ -338,10 +338,10 @@ function tt() {
338
338
  currentSchedulerId: ""
339
339
  };
340
340
  }
341
- const nt = We(
341
+ const nt = je(
342
342
  "mf-menu-store-v2",
343
343
  () => {
344
- const e = Fe(tt()), n = J(), a = He(), o = h(() => e.menu.modules.serveSequence ? M(e.menu.modules.serveSequence, {
344
+ const e = Fe(tt()), n = J(), a = Ye(), o = h(() => e.menu.modules.serveSequence ? M(e.menu.modules.serveSequence, {
345
345
  selector: "position"
346
346
  }) : []), r = h(() => {
347
347
  var t;
@@ -355,7 +355,7 @@ const nt = We(
355
355
  function s(t, c = !0) {
356
356
  e.menu = { ...t, _rev: e.menu._rev }, c && w.push(e.menu);
357
357
  }
358
- const p = Q(oe()), g = T(!1), y = T(1);
358
+ const p = X(oe()), g = T(!1), y = T(1);
359
359
  async function b() {
360
360
  g.value = !0;
361
361
  const t = await ne(
@@ -375,14 +375,14 @@ const nt = We(
375
375
  }
376
376
  const V = ee.debounce(b, 200);
377
377
  Re(!0).run(() => {
378
- q(
378
+ H(
379
379
  () => [e.menu, e.currentCatalogId, e.currentSchedulerId],
380
380
  () => {
381
381
  g.value || V();
382
382
  }
383
383
  );
384
384
  });
385
- const x = h(() => [
385
+ const P = h(() => [
386
386
  {
387
387
  label: "Main",
388
388
  value: null
@@ -394,7 +394,7 @@ const nt = We(
394
394
  ]), B = h(() => {
395
395
  const t = p.value.modules.category;
396
396
  return [
397
- ...U.value.item.addon ? [
397
+ ...K.value.item.addon ? [
398
398
  {
399
399
  _id: e.currentCatalogId ? "" : null,
400
400
  name: "Addon",
@@ -406,7 +406,7 @@ const nt = We(
406
406
  }), re = h(() => {
407
407
  const t = p.value.modules.subCategory || [];
408
408
  return E(t, (c) => c.name);
409
- }), W = h(() => {
409
+ }), j = h(() => {
410
410
  var c;
411
411
  let t = p.value.modules.item;
412
412
  if (i.value) {
@@ -429,8 +429,8 @@ const nt = We(
429
429
  m,
430
430
  (v) => v.code || v.name
431
431
  ).reduce((v, _, C) => (v[_._id] = C + c[_.category || ""], v), {});
432
- }), se = h(() => L(A.value, B.value, W.value)), ue = h(() => {
433
- const t = U.value.item.addon ? [
432
+ }), se = h(() => G(A.value, B.value, j.value)), ue = h(() => {
433
+ const t = K.value.item.addon ? [
434
434
  {
435
435
  _id: e.currentCatalogId ? "" : null,
436
436
  name: "Addon",
@@ -438,7 +438,7 @@ const nt = We(
438
438
  },
439
439
  ...e.menu.modules.category
440
440
  ] : e.menu.modules.category;
441
- return L(
441
+ return G(
442
442
  e.menu.modules.variant,
443
443
  t,
444
444
  e.menu.modules.item
@@ -453,12 +453,12 @@ const nt = We(
453
453
  }
454
454
  const ce = h(() => E(p.value.modules.group, (t) => t.name)), le = h(() => M(p.value.modules.takeaway, { selector: "name" })), de = h(() => M(e.menu.modules.printDepartment || [], {
455
455
  selector: "name"
456
- })), me = h(() => M(e.menu.modules.unit, { selector: "name" })), fe = h(() => M(xe(e.menu.modules.recipe, e.menu.modules.sku), {
456
+ })), me = h(() => M(e.menu.modules.unit, { selector: "name" })), fe = h(() => M(Pe(e.menu.modules.recipe, e.menu.modules.sku), {
457
457
  selector: "name"
458
458
  })), pe = h(() => e.menu.modules.cookingGuide), _e = h(() => {
459
459
  const t = Ae(e.menu.modules.sku);
460
460
  return M(t, { selector: "code" });
461
- }), U = h(() => {
461
+ }), K = h(() => {
462
462
  const t = !e.currentCatalogId, c = r.value === D.F_MENU_VERSION.v4, m = !e.currentSchedulerId, v = {
463
463
  create: t && m,
464
464
  edit: t && m,
@@ -527,7 +527,7 @@ const nt = We(
527
527
  }
528
528
  };
529
529
  });
530
- function K(t) {
530
+ function U(t) {
531
531
  return `${t.systemCode}/${t.taxCode}`;
532
532
  }
533
533
  function ge(t) {
@@ -535,15 +535,15 @@ const nt = We(
535
535
  return { systemCode: c, taxCode: m };
536
536
  }
537
537
  function ve(t, c, m) {
538
- return (t ?? c ?? []).map((v) => K(v)).find((v) => m.some((_) => _.value === v));
538
+ return (t ?? c ?? []).map((v) => U(v)).find((v) => m.some((_) => _.value === v));
539
539
  }
540
540
  const ye = h(() => {
541
541
  var v;
542
- const t = ["SV5", "SV10"], c = Ue.Country.getCountryFlattenTaxes(
542
+ const t = ["SV5", "SV10"], c = Ke.Country.getCountryFlattenTaxes(
543
543
  J().currentCountry.value
544
544
  ), m = c.filter((_) => f.value || !t.includes(_.taxCode)).map((_) => ({
545
- label: `${_.name} (${Ke(_.rate)}%)`,
546
- value: K(_),
545
+ label: `${_.name} (${Ue(_.rate)}%)`,
546
+ value: U(_),
547
547
  meta: {
548
548
  rate: _.rate
549
549
  }
@@ -553,12 +553,12 @@ const nt = We(
553
553
  countryTaxOptions: m
554
554
  };
555
555
  }), he = async () => {
556
- const t = await Ye.readMenu();
557
- e.menu = t ?? e.menu, j(null);
556
+ const t = await qe.readMenu();
557
+ e.menu = t ?? e.menu, W(null);
558
558
  }, be = async () => {
559
559
  const { fetchAllRestaurants: t } = $e(), c = await t();
560
560
  e.restaurants = M(c, { selector: "name" });
561
- }, j = (t) => {
561
+ }, W = (t) => {
562
562
  e.currentCatalogId = t;
563
563
  }, Ce = (t) => {
564
564
  e.currentSchedulerId = t;
@@ -596,7 +596,7 @@ const nt = We(
596
596
  priceTierSettings: t.priceTierSettings
597
597
  };
598
598
  return s(c), c;
599
- }, w = Xe({ maxHistorySize: 50 }), Ee = h(() => w.canUndo.value), Ie = h(() => w.canRedo.value);
599
+ }, w = Ze({ maxHistorySize: 50 }), Ee = h(() => w.canUndo.value), Ie = h(() => w.canRedo.value);
600
600
  return {
601
601
  state: e,
602
602
  // loading state
@@ -612,10 +612,10 @@ const nt = We(
612
612
  currentCatalog: i,
613
613
  schedulers: d,
614
614
  currentScheduler: u,
615
- catalogOptions: x,
615
+ catalogOptions: P,
616
616
  categories: B,
617
617
  subcategories: re,
618
- items: W,
618
+ items: j,
619
619
  sortedItems: ae,
620
620
  categorizedItems: se,
621
621
  categorizedRawMenuItems: ue,
@@ -627,20 +627,20 @@ const nt = We(
627
627
  recipes: fe,
628
628
  cookingGuide: pe,
629
629
  skus: _e,
630
- rules: U,
630
+ rules: K,
631
631
  taxSetting: ye,
632
632
  // Action
633
633
  setMenu: s,
634
634
  readMenu: he,
635
635
  readRestaurants: be,
636
- selectCatalog: j,
636
+ selectCatalog: W,
637
637
  selectScheduler: Ce,
638
638
  selectCategory: Me,
639
639
  updateMenu: Se,
640
640
  updateMenuSetting: we,
641
641
  computeMergedMenu: b,
642
642
  // helper
643
- encodeTax: K,
643
+ encodeTax: U,
644
644
  decodeTax: ge,
645
645
  getSelectedTax: ve,
646
646
  mapVariant: ie,
@@ -660,21 +660,21 @@ const nt = We(
660
660
  }
661
661
  };
662
662
  }
663
- ), Z = /* @__PURE__ */ Te({
663
+ ), Q = /* @__PURE__ */ Te({
664
664
  __name: "AddSubcategoryDialogContentComponent",
665
665
  props: {
666
666
  initialValue: {}
667
667
  },
668
668
  setup(e) {
669
669
  const n = e, { t: a } = te();
670
- q(
670
+ H(
671
671
  () => n.initialValue,
672
672
  (l) => {
673
673
  o.value = l ?? "";
674
674
  }
675
675
  );
676
676
  const o = T(n.initialValue), { emitData: r, emitAction: f } = Be();
677
- return q(
677
+ return H(
678
678
  o,
679
679
  (l) => {
680
680
  r(l);
@@ -688,7 +688,7 @@ const nt = We(
688
688
  onValidationSuccess: i[1] || (i[1] = (s) => N(f)("primary"))
689
689
  }, {
690
690
  default: Oe(() => [
691
- Pe(d, {
691
+ xe(d, {
692
692
  modelValue: o.value,
693
693
  "onUpdate:modelValue": i[0] || (i[0] = (s) => o.value = s),
694
694
  rules: [(s) => !!s || N(a)("menu.subcategory.dialog.add.name.required")],
@@ -711,7 +711,7 @@ const nt = We(
711
711
  const u = T(!1);
712
712
  e.open({
713
713
  title: o("menu.subcategory.manager.dialog.add.title"),
714
- contentComponent: Z,
714
+ contentComponent: Q,
715
715
  primaryActions: {
716
716
  text: o("menu.subcategory.manager.dialog.add.action"),
717
717
  close: !1,
@@ -730,7 +730,7 @@ const nt = We(
730
730
  operation: S.F_OPERATION_TYPE.create,
731
731
  data: {
732
732
  name: s,
733
- position: qe().subcategories.length
733
+ position: He().subcategories.length
734
734
  }
735
735
  };
736
736
  a ? await r(p) : await n.updateMenu(p, s), e.close();
@@ -742,7 +742,7 @@ const nt = We(
742
742
  function l(u) {
743
743
  e.open({
744
744
  title: o("menu.subcategory.manager.dialog.update.title"),
745
- contentComponent: Z,
745
+ contentComponent: Q,
746
746
  contentComponentProps: {
747
747
  initialValue: u.name
748
748
  },
@@ -808,6 +808,6 @@ export {
808
808
  gt as f,
809
809
  mt as g,
810
810
  dt as m,
811
- Qe as o,
811
+ Xe as o,
812
812
  nt as u
813
813
  };
@@ -1,5 +1,5 @@
1
- import { b as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-BXelyqP6.js";
2
- import "./menu-rWewPGcS.js";
1
+ import { b as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-b3I1aq9G.js";
2
+ import "./menu-yNY0i5iA.js";
3
3
  var Z = {
4
4
  defaultAmount: 0,
5
5
  defaultCurrency: "USD",
@@ -1,6 +1,6 @@
1
1
  import { defineStore as J } from "pinia";
2
2
  import { defineComponent as O, computed as U, ref as h, watch as T, resolveComponent as V, createBlock as W, openBlock as F, withCtx as w, createVNode as m, createElementVNode as f, normalizeClass as Q, createElementBlock as A, toDisplayString as M, unref as l, Fragment as q, renderSlot as X, renderList as Z, getCurrentInstance as ee } from "vue";
3
- import { a7 as B, a8 as te, a5 as P, H as k, O as $, D as I, B as E, I as ne, a6 as ae, J as C, G as D, u as oe } from "./menu-rWewPGcS.js";
3
+ import { a7 as B, a8 as te, a5 as P, H as k, O as $, D as I, B as E, I as ne, a6 as ae, J as C, G as D, u as oe } from "./menu-yNY0i5iA.js";
4
4
  import { useI18n as L } from "@feedmepos/mf-common";
5
5
  import { useSnackbar as j, components as le, useDialog as ue, FmButtonVariant as ie } from "@feedmepos/ui-library";
6
6
  import { u as se } from "./discardConfirm-BHni0LNu.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-menu",
3
- "version": "0.31.26-prod",
3
+ "version": "0.31.27-prod",
4
4
  "files": [
5
5
  "dist"
6
6
  ],