@feedmepos/mf-menu 0.31.35-beta.1 → 0.31.36-beta

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 (63) hide show
  1. package/dist/{App-BkDEqZHN.js → App-Cui-XStB.js} +30 -53
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-YeaxfcJN.js → ApplyProduct.vue_vue_type_script_setup_true_lang-cUYW6sW5.js} +2 -2
  3. package/dist/{Catalog-6pOytZU3.js → Catalog-MktLa55D.js} +68 -68
  4. package/dist/{Category-PtVyxTJZ.js → Category-C-s_lW3M.js} +14 -14
  5. package/dist/{Category-CXk98gto.js → Category-CEMqueNk.js} +29 -29
  6. package/dist/{CookingGuide-Cy8w8cd9.js → CookingGuide-eWdk6mho.js} +65 -65
  7. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-Bxn29Ylq.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-CcKt1abw.js} +1 -1
  8. package/dist/{Group-D_fipwz6.js → Group-Bg2Ylu9p.js} +1 -1
  9. package/dist/{Group-DmNtEt9J.js → Group-VircdSF_.js} +3 -3
  10. package/dist/{Group.vue_vue_type_script_setup_true_lang-C8W8uPvN.js → Group.vue_vue_type_script_setup_true_lang-CyW8Gh6c.js} +7 -7
  11. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DfgXJWUw.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-yQjS-X1R.js} +4 -4
  12. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-KFWive_R.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-26ogJPxR.js} +7 -7
  13. package/dist/{Ingredient-BbGs11gS.js → Ingredient-CegrU_cQ.js} +23 -23
  14. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-fNVMd9PS.js → InventoryBinding.vue_vue_type_script_setup_true_lang-CzhbZPKE.js} +2 -2
  15. package/dist/{LinkProductSideSheet-CIUQw7oo.js → LinkProductSideSheet-BJlrPykg.js} +24 -24
  16. package/dist/{MenuSetting-BXSAAPma.js → MenuSetting-D70NMQWp.js} +20 -20
  17. package/dist/{PrintRoute-Bb25Wqx5.js → PrintRoute-bAS3UL9d.js} +18 -18
  18. package/dist/{Product-qNa1EPNM.js → Product-Cu2f-ZSs.js} +1 -1
  19. package/dist/{Product.vue_vue_type_script_setup_true_lang-DI0d2huN.js → Product.vue_vue_type_script_setup_true_lang-CYfDGs7M.js} +65 -65
  20. package/dist/{ProductInternalTools-CyiAzThW.js → ProductInternalTools-6X6XUdH6.js} +16 -16
  21. package/dist/{Products-oCEkdzLE.js → Products-DYgr_65I.js} +11 -11
  22. package/dist/{Publish-CWGdR3nh.js → Publish-DhdYNYH2.js} +3 -3
  23. package/dist/{Recipe-DWlzfgXY.js → Recipe-Bb5gqrsE.js} +13 -13
  24. package/dist/{Scheduler-BGhRV9Yi.js → Scheduler-Tk0cPXz4.js} +7 -7
  25. package/dist/{ServingSequence-Dj6eZp3x.js → ServingSequence-DUghx8CU.js} +24 -24
  26. package/dist/{Setting-Di_Rn61o.js → Setting-DIl9WhmE.js} +11 -11
  27. package/dist/{Subcategory-CGinXMy8.js → Subcategory-C8Igjkze.js} +10 -10
  28. package/dist/{Takeaway-C1KdbLMw.js → Takeaway-ZfBLSZMG.js} +1 -1
  29. package/dist/{Takeaway-BSWrXSGI.js → Takeaway-xHGsoah-.js} +9 -9
  30. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-wONUlNNM.js → Takeaway.vue_vue_type_script_setup_true_lang-DItRiL8J.js} +11 -11
  31. package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-_pWcSpCk.js → Thumbnail.vue_vue_type_script_setup_true_lang-Dmk-5eGV.js} +7 -7
  32. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-ncoMfO1b.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-OJ0A70lo.js} +13 -13
  33. package/dist/{Unit-B71wMP-S.js → Unit-CfmYi7kG.js} +13 -13
  34. package/dist/{Variant-B14TfXg7.js → Variant-D6hyic1A.js} +14 -14
  35. package/dist/{_id_-CjlhUxyd.js → _id_-DT2EQjcY.js} +32 -32
  36. package/dist/{app-C0_ZxHle.js → app-Do8sOqMh.js} +362 -367
  37. package/dist/{app-NhsMLypF.js → app-jvyTuOVi.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/src/router/shared.d.ts +1 -3
  41. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  42. package/dist/assets/{linked-status-DaKKqv0U.js → linked-status-DQ161R27.js} +2 -2
  43. package/dist/assets/{override-menu-BzQzJzDM.js → override-menu-VGwIGccm.js} +2 -2
  44. package/dist/assets/{validate-menu-DH8daaxV.js → validate-menu-Dx9kwuMh.js} +2 -2
  45. package/dist/{catalog-DDA5CEEW.js → catalog-BL6h_DDN.js} +1 -1
  46. package/dist/{catalogSetting-B2UCaWJL.js → catalogSetting-DEabwfXZ.js} +1 -1
  47. package/dist/{category-B29E8Z6Z.js → category-CKujA-NM.js} +5 -5
  48. package/dist/{currency-D8F5PN67.js → currency-BFai41BQ.js} +1 -1
  49. package/dist/{dayjs.min-C5O_Xdlu.js → dayjs.min-B5ost3s4.js} +1 -1
  50. package/dist/{index-Chaiecso.js → index-D70F0uL_.js} +14 -14
  51. package/dist/{index-DzWK9GfE.js → index-D9PdlnOv.js} +14 -14
  52. package/dist/{index-D6qeYZH_.js → index-nSRvCNb9.js} +1 -1
  53. package/dist/{item-CRYbpxtN.js → item-DqdhjOW8.js} +15 -15
  54. package/dist/{jszip.min-CEFKmniH.js → jszip.min-_LmXapMc.js} +2 -2
  55. package/dist/{menu-CyVBU_ww.js → menu-Cj3d6im1.js} +9 -9
  56. package/dist/{menu-Bi0HvP-T.js → menu-S1W5eNCT.js} +1 -1
  57. package/dist/{menuV2-DUplflZy.js → menuV2-K6oaeFE4.js} +70 -70
  58. package/dist/{priceTier-BKUDkpVL.js → priceTier-Cnci8Hf5.js} +1 -1
  59. package/dist/{scheduler-BQnvljfv.js → scheduler-D7qY3sLN.js} +30 -30
  60. package/dist/{subcategory-DI_tttwh.js → subcategory-CHsH67ID.js} +6 -6
  61. package/dist/{toExcel-Cld55eZa.js → toExcel-DhVG55bK.js} +2 -2
  62. package/dist/{unit-DCXUBn-h.js → unit-C3zaQSoS.js} +6 -6
  63. package/package.json +2 -2
@@ -1,16 +1,16 @@
1
- import { ao as G, H as k, D as I, A as J, ap as W, J as U, I as Y, a9 as M, c as x, X as E, aj as j, aq as we, ar as Ee, B as ke, ab as Ie, as as Re, at as Te, a8 as Fe } from "./menu-CyVBU_ww.js";
2
- import { defineStore as Ke } from "pinia";
3
- import { shallowRef as Q, ref as D, computed as h, shallowReactive as Ae, effectScope as Oe, watch as Ve } from "vue";
4
- import { useCoreStore as L } from "@feedmepos/mf-common";
1
+ import { ao as L, H as I, B as R, G as J, ap as B, J as U, I as Y, a9 as w, c as x, X as E, aj as G, aq as Me, ar as Ee, A as Ie, ab as Re, as as ke, at as Te, a8 as Fe } from "./menu-Cj3d6im1.js";
2
+ import { defineStore as Ae } from "pinia";
3
+ import { shallowRef as Q, ref as D, computed as h, shallowReactive as Ve, effectScope as Ke, watch as Oe } from "vue";
4
+ import { useCoreStore as z } from "@feedmepos/mf-common";
5
5
  import { useSnackbar as Ne } from "@feedmepos/ui-library";
6
- const xe = "/assets/linked-status-DaKKqv0U.js", $e = "/assets/override-menu-BzQzJzDM.js";
6
+ const xe = "/assets/linked-status-DQ161R27.js", $e = "/assets/override-menu-VGwIGccm.js";
7
7
  function Pe(e) {
8
8
  var a;
9
- const n = k(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 = k(n), l = o ? r.modules.catalog.find((g) => g._id === o) : null, d = a ? r.modules.scheduler.find((g) => g._id === a) : null, i = l ? k(l) : void 0, c = o ? r.modules.catalog.filter((g) => g._id !== o) : [], m = d ? k(d) : void 0, f = e.reduce((g, y) => (g[y._id] = Pe(y), g), {});
13
+ const r = I(n), l = o ? r.modules.catalog.find((g) => g._id === o) : null, d = a ? r.modules.scheduler.find((g) => g._id === a) : null, i = l ? I(l) : void 0, c = o ? r.modules.catalog.filter((g) => g._id !== o) : [], m = d ? I(d) : void 0, f = e.reduce((g, y) => (g[y._id] = Pe(y), g), {});
14
14
  function v(g = []) {
15
15
  const y = e.map((b) => b._id);
16
16
  return [
@@ -35,9 +35,9 @@ function Ue(e, n, o, a) {
35
35
  ...r.modules.scheduler.filter((g) => g._id !== a),
36
36
  m
37
37
  ], r) : {
38
- ...W(),
38
+ ...B(),
39
39
  modules: {
40
- ...W().modules,
40
+ ...B().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((g) => {
60
60
  var b;
61
61
  const y = (b = i.items) == null ? void 0 : b.find(
62
- (R) => R._id === g._id && R.combinationKey === g.combinationKey
62
+ (k) => k._id === g._id && k.combinationKey === g.combinationKey
63
63
  );
64
64
  return T(y || g, n, o + 1);
65
65
  })) ?? [] : c = ((v = d.items) == null ? void 0 : v.map((g) => T(g, 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, g) => (v[g._id] = i.modules.item.find((y) => y._id === g._id), v), {}), m = n.reduce((v, g) => {
153
+ const d = I(o), i = l ? Ue(n, d, a, r) : d, c = n.reduce((v, g) => (v[g._id] = i.modules.item.find((y) => y._id === g._id), v), {}), m = n.reduce((v, g) => {
154
154
  const y = g._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,
@@ -185,7 +185,7 @@ async function nt(e, n) {
185
185
  const o = `${e._id}-${e.updatedAt}-${n}`;
186
186
  if ($.has(o))
187
187
  return $.get(o);
188
- const a = await G(
188
+ const a = await L(
189
189
  xe,
190
190
  JSON.stringify({
191
191
  menu: e,
@@ -195,7 +195,7 @@ async function nt(e, n) {
195
195
  return $.set(o, a), a;
196
196
  }
197
197
  async function X(e, n, o) {
198
- return await G($e, {
198
+ return await L($e, {
199
199
  menu: e,
200
200
  catalogId: n,
201
201
  schedulerId: o
@@ -232,7 +232,7 @@ function ot(e, n, o) {
232
232
  return r(n, o);
233
233
  }
234
234
  const P = /* @__PURE__ */ new Map();
235
- async function qe(e, n, o) {
235
+ async function We(e, n, o) {
236
236
  const a = `${e._id}-${e.updatedAt}-${n || "null"}-${o || "null"}`;
237
237
  if (P.has(a))
238
238
  return P.get(a);
@@ -241,8 +241,8 @@ async function qe(e, n, o) {
241
241
  }
242
242
  async function st(e, n, o) {
243
243
  var d, i;
244
- const a = await qe(e, n, null), r = [], l = (c, m) => {
245
- const f = k(c);
244
+ const a = await We(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;
@@ -251,11 +251,11 @@ async function st(e, n, o) {
251
251
  const m = (d = c.items) == null ? void 0 : d.find((v) => v._id === o && !v.combinationKey), f = e.modules.item.find((v) => v._id === o);
252
252
  if (m) {
253
253
  const v = (i = c.items) == null ? void 0 : i.filter((y) => y._id === o && y.combinationKey), g = [m, ...v].map((y) => {
254
- var F, K;
255
- const b = y.combinationKey ? (K = (F = f == null ? void 0 : f.variant) == null ? void 0 : F.variantCombinations) == null ? void 0 : K.find(
256
- (A) => A.combinationKey === y.combinationKey
257
- ) : f, R = b && f ? l(f, b) : y;
258
- return l(R, y);
254
+ var F, A;
255
+ const b = y.combinationKey ? (A = (F = f == null ? void 0 : f.variant) == null ? void 0 : F.variantCombinations) == null ? void 0 : A.find(
256
+ (V) => V.combinationKey === y.combinationKey
257
+ ) : f, k = b && f ? l(f, b) : 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 ze({
268
+ function je({
269
269
  maxHistorySize: e = 50
270
270
  }) {
271
271
  const n = Q([]), o = D(-1), a = h(() => o.value > 0), r = h(() => o.value < n.value.length - 1);
@@ -292,7 +292,7 @@ function ze({
292
292
  clear: c
293
293
  };
294
294
  }
295
- const Be = {
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)
@@ -329,7 +329,7 @@ function Z() {
329
329
  updatedAt: (/* @__PURE__ */ new Date()).toISOString()
330
330
  };
331
331
  }
332
- function We() {
332
+ function Be() {
333
333
  return {
334
334
  restaurants: [],
335
335
  menu: { ...Z(), _rev: "" },
@@ -339,32 +339,32 @@ function We() {
339
339
  currentRestaurantCustomAttributes: null
340
340
  };
341
341
  }
342
- const at = Ke(
342
+ const at = Ae(
343
343
  "mf-menu-store-v2",
344
344
  () => {
345
- const e = Ae(We()), n = L(), o = Ne(), a = h(() => e.menu.modules.serveSequence ? M(e.menu.modules.serveSequence, {
345
+ const e = Ve(Be()), n = z(), o = Ne(), a = h(() => e.menu.modules.serveSequence ? w(e.menu.modules.serveSequence, {
346
346
  selector: "position"
347
347
  }) : []), r = h(() => {
348
348
  var t;
349
349
  return ((t = n.currentBusiness.value) == null ? void 0 : t.menuVersion) || x.F_MENU_VERSION.v3;
350
350
  }), l = h(() => r.value === x.F_MENU_VERSION.v4), d = h(() => {
351
351
  const t = e.menu.modules.catalog;
352
- return M(t, { selector: "name" });
352
+ return w(t, { selector: "name" });
353
353
  }), i = h(() => {
354
354
  var s;
355
355
  let t = e.menu.modules.catalog.find(
356
356
  (u) => u._id === e.currentCatalogId
357
357
  );
358
- return t && ((s = t.linkItemRules) != null && s.length) && (t = I.populateCatalog({
358
+ return t && ((s = t.linkItemRules) != null && s.length) && (t = R.populateCatalog({
359
359
  catalog: t,
360
360
  items: e.menu.modules.item,
361
361
  restaurantCustomAttributes: e.currentRestaurantCustomAttributes || {}
362
362
  })), t;
363
- }), c = h(() => M(v.value.modules.scheduler, { selector: "name" })), m = h(() => e.menu.modules.scheduler.find(
363
+ }), c = h(() => w(v.value.modules.scheduler, { selector: "name" })), m = h(() => e.menu.modules.scheduler.find(
364
364
  (t) => t._id === e.currentSchedulerId
365
365
  ));
366
366
  function f(t, s = !0) {
367
- e.menu = { ...t, _rev: e.menu._rev }, s && w.push(e.menu);
367
+ e.menu = { ...t, _rev: e.menu._rev }, s && M.push(e.menu);
368
368
  }
369
369
  const v = Q(Z()), g = D(!1), y = D(1);
370
370
  async function b() {
@@ -372,7 +372,7 @@ const at = Ke(
372
372
  g.value = !0;
373
373
  let t = e.menu.modules.catalog;
374
374
  if (i.value && ((u = i.value.linkItemRules) != null && u.length)) {
375
- const p = I.populateCatalog({
375
+ const p = R.populateCatalog({
376
376
  catalog: i.value,
377
377
  items: e.menu.modules.item,
378
378
  restaurantCustomAttributes: e.currentRestaurantCustomAttributes || {}
@@ -401,15 +401,15 @@ const at = Ke(
401
401
  return v.value = s, g.value = !1, y.value = y.value + 1, s;
402
402
  }
403
403
  const F = Y.debounce(b, 200);
404
- Oe(!0).run(() => {
405
- Ve(
404
+ Ke(!0).run(() => {
405
+ Oe(
406
406
  () => [e.menu, e.currentCatalogId, e.currentSchedulerId],
407
407
  () => {
408
408
  g.value || F();
409
409
  }
410
410
  );
411
411
  });
412
- const A = h(() => [
412
+ const V = h(() => [
413
413
  {
414
414
  label: "Main",
415
415
  value: null
@@ -418,10 +418,10 @@ const at = Ke(
418
418
  label: t.name,
419
419
  value: t._id
420
420
  }))
421
- ]), q = h(() => {
421
+ ]), W = h(() => {
422
422
  const t = v.value.modules.category;
423
423
  return [
424
- ...V.value.item.addon ? [
424
+ ...O.value.item.addon ? [
425
425
  {
426
426
  _id: e.currentCatalogId ? "" : null,
427
427
  name: "Addon",
@@ -433,7 +433,7 @@ const at = Ke(
433
433
  }), ee = h(() => {
434
434
  const t = v.value.modules.subCategory || [];
435
435
  return E(t, (s) => s.name);
436
- }), z = h(() => {
436
+ }), j = h(() => {
437
437
  var s;
438
438
  let t = v.value.modules.item;
439
439
  if (i.value) {
@@ -456,8 +456,8 @@ const at = Ke(
456
456
  u,
457
457
  (p) => p.code || p.name
458
458
  ).reduce((p, _, C) => (p[_._id] = C + s[_.category || ""], p), {});
459
- }), ne = h(() => j(O.value, q.value, z.value)), re = h(() => {
460
- const t = V.value.item.addon ? [
459
+ }), ne = h(() => G(K.value, W.value, j.value)), re = h(() => {
460
+ const t = O.value.item.addon ? [
461
461
  {
462
462
  _id: e.currentCatalogId ? "" : null,
463
463
  name: "Addon",
@@ -465,27 +465,27 @@ const at = Ke(
465
465
  },
466
466
  ...e.menu.modules.category
467
467
  ] : e.menu.modules.category;
468
- return j(
468
+ return G(
469
469
  e.menu.modules.variant,
470
470
  t,
471
471
  e.menu.modules.item
472
472
  );
473
- }), O = h(() => {
473
+ }), K = h(() => {
474
474
  const t = v.value.modules.variant;
475
- return M(t, { selector: "name" });
475
+ return w(t, { selector: "name" });
476
476
  });
477
477
  function oe(t = []) {
478
- const s = t.map((p) => O.value.find((_) => _._id === p)).filter((p) => !!p);
479
- return I.fullVariantCombination(s).reduce((p, _) => (p[_.combinationKey] = _.selectionName.join(" / "), p), {});
478
+ const s = t.map((p) => K.value.find((_) => _._id === p)).filter((p) => !!p);
479
+ return R.fullVariantCombination(s).reduce((p, _) => (p[_.combinationKey] = _.selectionName.join(" / "), p), {});
480
480
  }
481
- const se = h(() => E(v.value.modules.group, (t) => t.name)), ae = h(() => M(v.value.modules.takeaway, { selector: "name" })), ue = h(() => M(e.menu.modules.printDepartment || [], {
481
+ 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 || [], {
482
482
  selector: "name"
483
- })), ie = h(() => M(e.menu.modules.unit, { selector: "name" })), ce = h(() => M(we(e.menu.modules.recipe, e.menu.modules.sku), {
483
+ })), ie = h(() => w(e.menu.modules.unit, { selector: "name" })), ce = h(() => w(Me(e.menu.modules.recipe, e.menu.modules.sku), {
484
484
  selector: "name"
485
485
  })), le = h(() => e.menu.modules.cookingGuide), de = h(() => {
486
486
  const t = Ee(e.menu.modules.sku);
487
- return M(t, { selector: "code" });
488
- }), V = h(() => {
487
+ return w(t, { selector: "code" });
488
+ }), O = h(() => {
489
489
  const t = !e.currentCatalogId, s = r.value === x.F_MENU_VERSION.v4, u = !e.currentSchedulerId, p = {
490
490
  create: t && u,
491
491
  edit: t && u,
@@ -566,10 +566,10 @@ const at = Ke(
566
566
  }
567
567
  const pe = h(() => {
568
568
  var p;
569
- const t = ["SV5", "SV10"], s = ke.Country.getCountryFlattenTaxes(
570
- L().currentCountry.value
569
+ const t = ["SV5", "SV10"], s = Ie.Country.getCountryFlattenTaxes(
570
+ z().currentCountry.value
571
571
  ), u = s.filter((_) => l.value || !t.includes(_.taxCode)).map((_) => ({
572
- label: `${_.name} (${Ie(_.rate)}%)`,
572
+ label: `${_.name} (${Re(_.rate)}%)`,
573
573
  value: N(_),
574
574
  meta: {
575
575
  rate: _.rate
@@ -581,7 +581,7 @@ const at = Ke(
581
581
  };
582
582
  }), ve = async () => {
583
583
  const t = await Fe.readMenu();
584
- e.menu = t ?? e.menu, B(null);
584
+ e.menu = t ?? e.menu, q(null);
585
585
  }, _e = async () => {
586
586
  const { fetchAllRestaurants: t } = Te();
587
587
  await t({
@@ -589,7 +589,7 @@ const at = Ke(
589
589
  e.restaurants = s;
590
590
  }
591
591
  });
592
- }, B = (t) => {
592
+ }, q = (t) => {
593
593
  e.currentCatalogId = t;
594
594
  }, ge = (t) => {
595
595
  e.currentSchedulerId = t;
@@ -609,10 +609,10 @@ const at = Ke(
609
609
  if (s || p.some(
610
610
  (C) => [U.F_OPERATION_TYPE.delete, U.F_OPERATION_TYPE.deleteMany].includes(C.operation)
611
611
  )) {
612
- const C = await Re(p, e.menu.modules);
612
+ const C = await ke(p, e.menu.modules);
613
613
  if (C !== !0) throw new Error(C);
614
614
  }
615
- const _ = await Be.updateMenuModule(e.menu, p);
615
+ const _ = await qe.updateMenuModule(e.menu, p);
616
616
  return f(_.menu), _;
617
617
  } catch (_) {
618
618
  o.open({
@@ -629,7 +629,7 @@ const at = Ke(
629
629
  priceTierSettings: t.priceTierSettings
630
630
  };
631
631
  return f(s), s;
632
- }, w = ze({ maxHistorySize: 50 }), Se = h(() => w.canUndo.value), Me = h(() => w.canRedo.value);
632
+ }, M = je({ maxHistorySize: 50 }), Se = h(() => M.canUndo.value), we = h(() => M.canRedo.value);
633
633
  return {
634
634
  state: e,
635
635
  // loading state
@@ -645,14 +645,14 @@ const at = Ke(
645
645
  currentCatalog: i,
646
646
  schedulers: c,
647
647
  currentScheduler: m,
648
- catalogOptions: A,
649
- categories: q,
648
+ catalogOptions: V,
649
+ categories: W,
650
650
  subcategories: ee,
651
- items: z,
651
+ items: j,
652
652
  sortedItems: te,
653
653
  categorizedItems: ne,
654
654
  categorizedRawMenuItems: re,
655
- variants: O,
655
+ variants: K,
656
656
  groups: se,
657
657
  takeaways: ae,
658
658
  printDepartments: ue,
@@ -660,13 +660,13 @@ const at = Ke(
660
660
  recipes: ce,
661
661
  cookingGuide: le,
662
662
  skus: de,
663
- rules: V,
663
+ rules: O,
664
664
  taxSetting: pe,
665
665
  // Action
666
666
  setMenu: f,
667
667
  readMenu: ve,
668
668
  readRestaurants: _e,
669
- selectCatalog: B,
669
+ selectCatalog: q,
670
670
  selectScheduler: ge,
671
671
  selectCategory: ye,
672
672
  setRestaurantCustomAttributes: he,
@@ -680,17 +680,17 @@ const at = Ke(
680
680
  mapVariant: oe,
681
681
  // history
682
682
  canUndoHistory: Se,
683
- canRedoHistory: Me,
683
+ canRedoHistory: we,
684
684
  undoHistory: () => {
685
- const t = w.undo();
685
+ const t = M.undo();
686
686
  t && f(t, !1);
687
687
  },
688
688
  redoHistory: () => {
689
- const t = w.redo();
689
+ const t = M.redo();
690
690
  t && f(t, !1);
691
691
  },
692
692
  clearHistory: () => {
693
- w.clear();
693
+ M.clear();
694
694
  }
695
695
  };
696
696
  }
@@ -702,6 +702,6 @@ export {
702
702
  st as f,
703
703
  tt as g,
704
704
  et as m,
705
- qe as o,
705
+ We as o,
706
706
  at as u
707
707
  };
@@ -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-CyVBU_ww.js";
4
+ import { u as k, D as M } from "./menu-Cj3d6im1.js";
5
5
  const v = /* @__PURE__ */ d({
6
6
  __name: "AddPriceGroupDialog",
7
7
  setup(s) {
@@ -1,11 +1,11 @@
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-CyVBU_ww.js";
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 A, 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, G as r, u as pe, I as ve, J as ue } from "./menu-Cj3d6im1.js";
3
3
  import { useI18n as de } from "@feedmepos/mf-common";
4
4
  import { components as _e } from "@feedmepos/ui-library";
5
- import { a as fe, L as ye } from "./LinkProductSideSheet-CIUQw7oo.js";
5
+ import { a as fe, L as ye } from "./LinkProductSideSheet-BJlrPykg.js";
6
6
  import { _ as ne } from "./FormSection.vue_vue_type_script_setup_true_lang-CO4YGYLB.js";
7
7
  import { u as he } from "./discardConfirm-BHni0LNu.js";
8
- import { u as ge } from "./menu-Bi0HvP-T.js";
8
+ import { u as ge } from "./menu-S1W5eNCT.js";
9
9
  const Ve = { class: "space-y-8" }, Fe = {
10
10
  key: 0,
11
11
  class: "space-y-16"
@@ -18,8 +18,8 @@ const Ve = { class: "space-y-8" }, Fe = {
18
18
  modelValue: {}
19
19
  },
20
20
  emits: ["update:modelValue"],
21
- setup(V, { emit: G }) {
22
- const f = V, e = G, { categories: J } = ge(), W = Y(() => J.value.map((s) => s.id === null ? { label: s.name, value: "" } : {
21
+ setup(V, { emit: j }) {
22
+ const f = V, e = j, { categories: J } = ge(), W = Y(() => J.value.map((s) => s.id === null ? { label: s.name, value: "" } : {
23
23
  label: s.name,
24
24
  value: s.id
25
25
  })), X = (s) => {
@@ -61,9 +61,9 @@ const Ve = { class: "space-y-8" }, Fe = {
61
61
  "onUpdate:modelValue": X
62
62
  }, null, 8, ["model-value", "label", "sublabel"]),
63
63
  f.modelValue ? (u(), d("div", Fe, [
64
- (($ = f.modelValue) == null ? void 0 : $.length) === 0 ? (u(), d("div", ke, L(n(p)("menu.scheduler.dialog.sections.autolink.all_items")), 1)) : F("", !0),
64
+ (($ = f.modelValue) == null ? void 0 : $.length) === 0 ? (u(), d("div", ke, A(n(p)("menu.scheduler.dialog.sections.autolink.all_items")), 1)) : F("", !0),
65
65
  ((K = f.modelValue) == null ? void 0 : K.length) > 0 ? (u(), d("div", be, [
66
- h("div", null, L(n(p)("menu.scheduler.dialog.sections.autolink.filter_message")), 1),
66
+ h("div", null, A(n(p)("menu.scheduler.dialog.sections.autolink.filter_message")), 1),
67
67
  t(te, {
68
68
  content: n(p)("menu.scheduler.dialog.sections.autolink.tooltip"),
69
69
  variant: "plain",
@@ -87,7 +87,7 @@ const Ve = { class: "space-y-8" }, Fe = {
87
87
  items: Z,
88
88
  "onUpdate:modelValue": (b) => z(k, b)
89
89
  }, null, 8, ["model-value", "onUpdate:modelValue"]),
90
- h("div", null, L(n(p)("menu.scheduler.dialog.sections.filter.matches")), 1),
90
+ h("div", null, A(n(p)("menu.scheduler.dialog.sections.filter.matches")), 1),
91
91
  T.type === "category" ? (u(), I(B, {
92
92
  key: 0,
93
93
  "model-value": T.value,
@@ -100,7 +100,7 @@ const Ve = { class: "space-y-8" }, Fe = {
100
100
  class: "flex items-center gap-4",
101
101
  key: U
102
102
  }, [
103
- U > 0 ? (u(), d("div", Ue, L(n(p)("menu.scheduler.dialog.sections.filter.or")), 1)) : F("", !0),
103
+ U > 0 ? (u(), d("div", Ue, A(n(p)("menu.scheduler.dialog.sections.filter.or")), 1)) : F("", !0),
104
104
  h("div", xe, [
105
105
  t(q, {
106
106
  "model-value": b,
@@ -147,10 +147,10 @@ const Ve = { class: "space-y-8" }, Fe = {
147
147
  }, Pe = { class: "flex flex-wrap gap-8" }, Te = {
148
148
  key: 0,
149
149
  class: "pl-32 flex flex-col items-start gap-16"
150
- }, Ae = { class: "w-full" }, Le = {
150
+ }, Le = { class: "w-full" }, Ae = {
151
151
  key: 0,
152
152
  class: "mt-8"
153
- }, Ne = { class: "text-red-500 text-sm" }, Re = { class: "bg-fm-color-neutral-gray-100 px-16 py-8 border-b border-b-gray-200" }, Ye = { class: "px-16 py-8 flex-1" }, Me = { class: "px-16 py-8" }, Oe = { class: "flex gap-8 items-center justify-start" }, je = /* @__PURE__ */ ie({
153
+ }, Ne = { class: "text-red-500 text-sm" }, Re = { class: "bg-fm-color-neutral-gray-100 px-16 py-8 border-b border-b-gray-200" }, Ye = { class: "px-16 py-8 flex-1" }, Me = { class: "px-16 py-8" }, Oe = { class: "flex gap-8 items-center justify-start" }, Ge = /* @__PURE__ */ ie({
154
154
  __name: "SchedulerDialog",
155
155
  props: {
156
156
  categorizedItems: {
@@ -163,9 +163,9 @@ const Ve = { class: "space-y-8" }, Fe = {
163
163
  }
164
164
  },
165
165
  emits: ["onComplete"],
166
- setup(V, { expose: G, emit: f }) {
166
+ setup(V, { expose: j, emit: f }) {
167
167
  const { t: e } = de(), J = V;
168
- G({
168
+ j({
169
169
  show: le,
170
170
  hide: O
171
171
  });
@@ -225,9 +225,9 @@ const Ve = { class: "space-y-8" }, Fe = {
225
225
  if (i.length <= 1) return null;
226
226
  for (let l = 0; l < i.length; l++)
227
227
  for (let y = l + 1; y < i.length; y++) {
228
- const g = i[l], A = i[y], ae = w(g.start, g.end), j = w(A.start, A.end);
228
+ const g = i[l], L = i[y], ae = w(g.start, g.end), G = w(L.start, L.end);
229
229
  for (const x of ae)
230
- for (const oe of j)
230
+ for (const oe of G)
231
231
  if (te(x, oe))
232
232
  return e("menu.scheduler.dialog.sections.period.overlap");
233
233
  }
@@ -250,7 +250,7 @@ const Ve = { class: "space-y-8" }, Fe = {
250
250
  }
251
251
  const b = Y(() => J.categorizedItems.reduce((i, l) => {
252
252
  const y = l.items.filter(
253
- (g) => a.value.items.some(({ _id: A }) => g._id === A)
253
+ (g) => a.value.items.some(({ _id: L }) => g._id === L)
254
254
  );
255
255
  return y.length && i.push({ ...l, items: y }), i;
256
256
  }, [])), U = Y(() => C.value === "custom" && a.value.timePeriod.length > 0 ? B(a.value.timePeriod) : null), Q = he(
@@ -260,7 +260,7 @@ const Ve = { class: "space-y-8" }, Fe = {
260
260
  }
261
261
  );
262
262
  return (i, l) => {
263
- const y = _("FmTextField"), g = _("FmRadio"), A = _("FmRadioGroup"), ae = _("FmCheckbox"), j = _("FmTimePicker"), x = _("FmButton"), oe = _("FmSpacer"), re = _("FmForm"), ce = _("FmSideSheet");
263
+ const y = _("FmTextField"), g = _("FmRadio"), L = _("FmRadioGroup"), ae = _("FmCheckbox"), G = _("FmTimePicker"), x = _("FmButton"), oe = _("FmSpacer"), re = _("FmForm"), ce = _("FmSideSheet");
264
264
  return u(), I(ce, {
265
265
  modelValue: D.value,
266
266
  "onUpdate:modelValue": l[7] || (l[7] = (o) => D.value = o),
@@ -321,7 +321,7 @@ const Ve = { class: "space-y-8" }, Fe = {
321
321
  }, {
322
322
  default: v(() => [
323
323
  h("div", null, [
324
- t(A, {
324
+ t(L, {
325
325
  modelValue: a.value.repeat,
326
326
  "onUpdate:modelValue": l[1] || (l[1] = (o) => a.value.repeat = o)
327
327
  }, {
@@ -355,7 +355,7 @@ const Ve = { class: "space-y-8" }, Fe = {
355
355
  })
356
356
  ]),
357
357
  h("div", null, [
358
- t(A, {
358
+ t(L, {
359
359
  label: n(e)("menu.scheduler.dialog.sections.period.title"),
360
360
  modelValue: C.value,
361
361
  "onUpdate:modelValue": l[3] || (l[3] = (o) => C.value = o)
@@ -375,18 +375,18 @@ const Ve = { class: "space-y-8" }, Fe = {
375
375
  t(se, { name: "expand" }, {
376
376
  default: v(() => [
377
377
  C.value === "custom" ? (u(), d("div", Te, [
378
- h("div", Ae, [
378
+ h("div", Le, [
379
379
  (u(!0), d(N, null, M(a.value.timePeriod, (o, E) => (u(), d("div", {
380
380
  key: E,
381
381
  class: "w-full flex gap-8 items-center"
382
382
  }, [
383
- t(j, {
383
+ t(G, {
384
384
  modelValue: o.start,
385
385
  "onUpdate:modelValue": (R) => o.start = R,
386
386
  class: "flex-1"
387
387
  }, null, 8, ["modelValue", "onUpdate:modelValue"]),
388
388
  l[8] || (l[8] = me(" - ")),
389
- t(j, {
389
+ t(G, {
390
390
  modelValue: o.end,
391
391
  "onUpdate:modelValue": (R) => o.end = R,
392
392
  class: "flex-1"
@@ -397,8 +397,8 @@ const Ve = { class: "space-y-8" }, Fe = {
397
397
  onClick: (R) => c(E)
398
398
  }, null, 8, ["onClick"])
399
399
  ]))), 128)),
400
- U.value ? (u(), d("div", Le, [
401
- h("div", Ne, L(U.value), 1)
400
+ U.value ? (u(), d("div", Ae, [
401
+ h("div", Ne, A(U.value), 1)
402
402
  ])) : F("", !0)
403
403
  ]),
404
404
  t(x, {
@@ -457,12 +457,12 @@ const Ve = { class: "space-y-8" }, Fe = {
457
457
  (u(!0), d(N, null, M(b.value, (o) => (u(), d("div", {
458
458
  key: o.id
459
459
  }, [
460
- h("div", Re, L(o.name), 1),
460
+ h("div", Re, A(o.name), 1),
461
461
  (u(!0), d(N, null, M(o.items, (E) => (u(), d("div", {
462
462
  key: E._id,
463
463
  class: "flex border-b border-b-gray-100 items-center"
464
464
  }, [
465
- h("div", Ye, L(E.name), 1),
465
+ h("div", Ye, A(E.name), 1),
466
466
  h("div", Me, [
467
467
  t(x, {
468
468
  icon: "delete",
@@ -485,7 +485,7 @@ const Ve = { class: "space-y-8" }, Fe = {
485
485
  };
486
486
  }
487
487
  });
488
- function Ge(V) {
488
+ function je(V) {
489
489
  return {
490
490
  module: r.F_MENU_MODULE_V4_KEY.enum.scheduler,
491
491
  operation: ue.F_OPERATION_TYPE.create,
@@ -507,8 +507,8 @@ function We(V) {
507
507
  };
508
508
  }
509
509
  export {
510
- je as _,
511
- Ge as c,
510
+ Ge as _,
511
+ je as c,
512
512
  We as d,
513
513
  Je as u
514
514
  };
@@ -1,8 +1,8 @@
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-CyVBU_ww.js";
1
+ import { defineComponent as M, watch as _, ref as E, resolveComponent as f, createBlock as x, openBlock as C, unref as c, withCtx as V, createVNode as A } from "vue";
2
+ import { J as l, G as d, u as F } from "./menu-Cj3d6im1.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-DUplflZy.js";
5
+ import { u as v } from "./menuV2-K6oaeFE4.js";
6
6
  const y = /* @__PURE__ */ M({
7
7
  __name: "AddSubcategoryDialogContentComponent",
8
8
  props: {
@@ -27,11 +27,11 @@ const y = /* @__PURE__ */ M({
27
27
  }
28
28
  ), (i, s) => {
29
29
  const g = f("fm-text-field"), a = f("FmForm");
30
- return A(), x(a, {
30
+ return C(), x(a, {
31
31
  onValidationSuccess: s[1] || (s[1] = (e) => c(p)("primary"))
32
32
  }, {
33
- default: C(() => [
34
- V(g, {
33
+ default: V(() => [
34
+ A(g, {
35
35
  modelValue: t.value,
36
36
  "onUpdate:modelValue": s[0] || (s[0] = (e) => t.value = e),
37
37
  rules: [(e) => !!e || c(n)("menu.subcategory.dialog.add.name.required")],
@@ -1,5 +1,5 @@
1
- import { u as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-KFWive_R.js";
2
- import "./menu-CyVBU_ww.js";
1
+ import { u as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-26ogJPxR.js";
2
+ import "./menu-Cj3d6im1.js";
3
3
  var Z = {
4
4
  defaultAmount: 0,
5
5
  defaultCurrency: "USD",