@feedmepos/mf-menu 0.32.43 → 0.32.44

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 (71) hide show
  1. package/dist/{App-C9b4SjED.js → App-BXkiQoTM.js} +5 -5
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-C1T4Ewek.js → ApplyProduct.vue_vue_type_script_setup_true_lang-BoSL4dm7.js} +3 -3
  3. package/dist/{Catalog-BVrf3VaX.js → Catalog-CLFVLyor.js} +44 -44
  4. package/dist/{Category-BkReM5IG.js → Category-BdyouDU8.js} +24 -24
  5. package/dist/{Category-BMzIQqIE.js → Category-CNuVHuI3.js} +25 -25
  6. package/dist/{CookingGuide-CvctI1TH.js → CookingGuide-Bed7bUt1.js} +105 -105
  7. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-bYSEp6Wb.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-CZDL2xJC.js} +1 -1
  8. package/dist/{Group-CHkNuuHE.js → Group-D4UTsIxI.js} +3 -3
  9. package/dist/{Group-BQzmXagr.js → Group-TUqCPmO3.js} +1 -1
  10. package/dist/{Group.vue_vue_type_script_setup_true_lang-BkruJTpL.js → Group.vue_vue_type_script_setup_true_lang-BJPT8flL.js} +19 -19
  11. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CBz83Qd1.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-D83liryu.js} +30 -30
  12. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-Dpx4meDa.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-CRIRinHB.js} +10 -11
  13. package/dist/{Ingredient-BNsKYrQB.js → Ingredient-CcxoeuDd.js} +20 -20
  14. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-DzzwwdA_.js → InventoryBinding.vue_vue_type_script_setup_true_lang-58tyxdVh.js} +2 -2
  15. package/dist/{LinkProductSideSheet-C6-wef-M.js → LinkProductSideSheet-DazOkwkd.js} +45 -45
  16. package/dist/{MenuSetting-DRaw7b6m.js → MenuSetting-B3oLll4C.js} +47 -47
  17. package/dist/{PrintRoute-BKB-thVp.js → PrintRoute-D878qPu8.js} +39 -39
  18. package/dist/{Product-vviXmBR1.js → Product-DOC8y_mW.js} +1 -1
  19. package/dist/{Product.vue_vue_type_script_setup_true_lang-5h-k6zad.js → Product.vue_vue_type_script_setup_true_lang-tZyBhWYT.js} +140 -140
  20. package/dist/{ProductInternalTools-DtLk3xFR.js → ProductInternalTools-9TgIc2bR.js} +66 -66
  21. package/dist/Products-DfUGnHmD.js +1568 -0
  22. package/dist/{Publish-jx0_H_26.js → Publish-BktK_PKq.js} +29 -29
  23. package/dist/{Recipe-Dk04ge-_.js → Recipe-eA0xrGYk.js} +24 -24
  24. package/dist/{RuleView.vue_vue_type_script_setup_true_lang-DaCVUn1i.js → RuleView.vue_vue_type_script_setup_true_lang-t8M7z09s.js} +2 -2
  25. package/dist/{Scheduler-vFTvCVcY.js → Scheduler-CKSqPZLQ.js} +11 -11
  26. package/dist/{ServingSequence-DiBqQ_iS.js → ServingSequence-Ea20baNj.js} +44 -44
  27. package/dist/{Setting-CtzJ_pVM.js → Setting-u6lX_Dzg.js} +17 -17
  28. package/dist/{Subcategory-Cmv2W67T.js → Subcategory-C6s7OMOb.js} +51 -51
  29. package/dist/{Takeaway-DBW4UPFZ.js → Takeaway-B9kr-Nf4.js} +13 -13
  30. package/dist/{Takeaway-ChaYk0Ix.js → Takeaway-lWxS9oWe.js} +1 -1
  31. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-C7RL3ITP.js → Takeaway.vue_vue_type_script_setup_true_lang-oA0e9oI5.js} +54 -54
  32. package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-edwJ1203.js → Thumbnail.vue_vue_type_script_setup_true_lang-T40ChY7j.js} +27 -27
  33. package/dist/TranslationSideSheet.vue_vue_type_script_setup_true_lang-CcIGCUwk.js +194 -0
  34. package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-B1e3d-uX.js +6130 -0
  35. package/dist/{Unit-BgLqPMLe.js → Unit-DkQlUg2l.js} +8 -8
  36. package/dist/{Variant-B8yxF5mJ.js → Variant-BF5r2WLL.js} +25 -25
  37. package/dist/{_id_-CDN7as0K.js → _id_-_oqk-OhC.js} +28 -28
  38. package/dist/app-CfCYl2pO.js +363 -0
  39. package/dist/{app-0AQBxO0B.js → app-DIYHNWEw.js} +1 -1
  40. package/dist/app.js +1 -1
  41. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  42. package/dist/assets/{linked-status-DTIHdzDw.js → linked-status-AoXjo9FF.js} +2 -2
  43. package/dist/assets/{menu-export-CpcyYnR-.js → menu-export-BHcaWhM3.js} +2 -2
  44. package/dist/assets/{override-menu-CASoFjhZ.js → override-menu-B9xQcjuJ.js} +2 -2
  45. package/dist/assets/{validate-menu-C5AkexWv.js → validate-menu-D-ezd4W8.js} +2 -2
  46. package/dist/{catalog-BA1e4WAu.js → catalog-CvN9Wu8V.js} +1 -1
  47. package/dist/{catalogSetting-DE5rjVfj.js → catalogSetting-qS5Np22q.js} +1 -1
  48. package/dist/{currency-D5qYOpxI.js → currency-Nxod6uwl.js} +1 -1
  49. package/dist/dayjs.min-B1AjAGva.js +6 -0
  50. package/dist/index-C0Zw1cSS.js +545 -0
  51. package/dist/{index-vPs04fVf.js → index-Cq-czJjU.js} +31 -31
  52. package/dist/index-nKlYiotY.js +246 -0
  53. package/dist/{index.vue_vue_type_script_setup_true_lang-DSZsSghE.js → index.vue_vue_type_script_setup_true_lang-YXKayPEp.js} +103 -78
  54. package/dist/{item-Dp17qTYi.js → item-CUZSonzT.js} +2587 -2587
  55. package/dist/{jszip.min-DlpCmtaR.js → jszip.min-BnkZQ6lD.js} +6 -7
  56. package/dist/{menu-BOVrJ7di.js → menu-BP_ArXCI.js} +1 -1
  57. package/dist/{menuV2-BHnldQiM.js → menuV2-BGEYgQ8-.js} +59 -59
  58. package/dist/{priceTier-BRQz1GRF.js → priceTier-B-Qa0xaO.js} +1 -1
  59. package/dist/{rules-CO49kqfr.js → rules-Dchd_ilF.js} +12 -12
  60. package/dist/{scheduler-BDHjl8t7.js → scheduler-DN7ZGLk8.js} +29 -29
  61. package/dist/{toExcel-DGdZKSxT.js → toExcel-jHmkDqcm.js} +2 -2
  62. package/dist/{translation-BCZ1Ruvv.js → translation-Cdap0IVg.js} +21 -35
  63. package/dist/{unit-D7QVgTp_.js → unit-DgL56pkI.js} +35 -35
  64. package/package.json +1 -1
  65. package/dist/Products-BR3iBVFd.js +0 -307
  66. package/dist/RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-I6qrPmxY.js +0 -144
  67. package/dist/TranslationSideSheet.vue_vue_type_script_setup_true_lang-Cs6s_csi.js +0 -196
  68. package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DIbjlDVn.js +0 -5767
  69. package/dist/app-BU6wILmn.js +0 -2286
  70. package/dist/dayjs.min-BFDAHpA8.js +0 -7
  71. package/dist/index--nQbIQ0d.js +0 -545
@@ -1,17 +1,17 @@
1
1
  import { defineComponent as f, computed as y, ref as k, createBlock as i, openBlock as d, unref as a, withCtx as s, createElementVNode as t, toDisplayString as b, createCommentVNode as g, createVNode as m } from "vue";
2
- import { B as x, u as v, O as w, J as E, y as M } from "./index.vue_vue_type_script_setup_true_lang-DSZsSghE.js";
2
+ import { G as x, u as v, Q as w, M as E, A as M } from "./index.vue_vue_type_script_setup_true_lang-YXKayPEp.js";
3
3
  import { useI18n as T } from "@feedmepos/mf-common";
4
4
  import { useSnackbar as V } from "@feedmepos/ui-library";
5
5
  import { _ as h } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
6
6
  import { _ as C } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
7
- import { _ as N } from "./Takeaway.vue_vue_type_script_setup_true_lang-C7RL3ITP.js";
8
- import { T as O, l as S } from "./index-vPs04fVf.js";
9
- import { a as B } from "./menu-BOVrJ7di.js";
10
- const L = { class: "flex-1 flex justify-between gap-8 pl-8" }, U = { class: "flex items-center" }, F = { class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4" }, D = { class: "fm-typo-en-body-md-600 font-semibold" }, G = /* @__PURE__ */ f({
7
+ import { _ as N } from "./Takeaway.vue_vue_type_script_setup_true_lang-oA0e9oI5.js";
8
+ import { T as S, l as L } from "./index-Cq-czJjU.js";
9
+ import { a as O } from "./menu-BP_ArXCI.js";
10
+ const U = { class: "flex-1 flex justify-between gap-8 pl-8" }, B = { class: "flex items-center" }, F = { class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4" }, A = { class: "fm-typo-en-body-md-600 font-semibold" }, z = /* @__PURE__ */ f({
11
11
  __name: "Takeaway",
12
- setup(I) {
12
+ setup(D) {
13
13
  const u = V(), l = x(u), p = v(), c = w(l), _ = y(() => p.rules.item.bindToVariant), n = k(0), { t: r } = T();
14
- return B().resetOnMount(), (P, o) => (d(), i(C, {
14
+ return O().resetOnMount(), (I, o) => (d(), i(C, {
15
15
  heading: a(r)("menu.takeaway.title")
16
16
  }, {
17
17
  default: s(() => [
@@ -20,14 +20,14 @@ const L = { class: "flex-1 flex justify-between gap-8 pl-8" }, U = { class: "fle
20
20
  })
21
21
  ]),
22
22
  "append-heading": s(() => [
23
- t("div", L, [
24
- t("div", U, [
23
+ t("div", U, [
24
+ t("div", B, [
25
25
  t("div", F, [
26
- t("p", D, b(n.value), 1)
26
+ t("p", A, b(n.value), 1)
27
27
  ])
28
28
  ]),
29
29
  t("div", null, [
30
- n.value > 0 ? (d(), i(a(O), {
30
+ n.value > 0 ? (d(), i(a(S), {
31
31
  key: 0,
32
32
  "bind-to-variant": _.value,
33
33
  action: "add",
@@ -37,7 +37,7 @@ const L = { class: "flex-1 flex justify-between gap-8 pl-8" }, U = { class: "fle
37
37
  module: a(M.F_MENU_MODULE_V4_KEY).enum.takeaway,
38
38
  operation: a(E.F_OPERATION_TYPE).create,
39
39
  data: e,
40
- link: a(S)(e.usedBy || [])
40
+ link: a(L)(e.usedBy || [])
41
41
  },
42
42
  e.name
43
43
  ))
@@ -60,5 +60,5 @@ const L = { class: "flex-1 flex justify-between gap-8 pl-8" }, U = { class: "fle
60
60
  }
61
61
  });
62
62
  export {
63
- G as default
63
+ z as default
64
64
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./Takeaway.vue_vue_type_script_setup_true_lang-C7RL3ITP.js";
1
+ import { _ as f } from "./Takeaway.vue_vue_type_script_setup_true_lang-oA0e9oI5.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,26 +1,26 @@
1
- import { getCurrentInstance as te, defineComponent as ne, computed as T, watch as oe, h as M, resolveComponent as O, createElementBlock as V, openBlock as w, Fragment as L, normalizeClass as D, createElementVNode as g, createVNode as I, unref as i, isRef as j, withCtx as P, renderList as ie, createBlock as G, createCommentVNode as $, toDisplayString as B, withModifiers as q } from "vue";
2
- import { B as H, u as Q, O as W, J as z, y as N, G as Y, z as se, am as J, a2 as re } from "./index.vue_vue_type_script_setup_true_lang-DSZsSghE.js";
1
+ import { getCurrentInstance as te, defineComponent as ne, computed as T, watch as oe, h as U, resolveComponent as L, createElementBlock as V, openBlock as w, Fragment as O, normalizeClass as D, createElementVNode as g, createVNode as I, unref as i, isRef as j, withCtx as P, renderList as ie, createBlock as G, createCommentVNode as $, toDisplayString as B, withModifiers as q } from "vue";
2
+ import { G as H, u as J, Q as W, M as N, A as z, I as Y, B as se, ap as Q, a4 as re } from "./index.vue_vue_type_script_setup_true_lang-YXKayPEp.js";
3
3
  import { useI18n as X, useCoreStore as le } from "@feedmepos/mf-common";
4
- import { useDialog as ce, useSnackbar as Z, FmButtonVariant as A, components as de, useBreakpoints as me } from "@feedmepos/ui-library";
5
- import { _ as ue } from "./app-BU6wILmn.js";
6
- import { a as ye, l as ee, T as pe } from "./index-vPs04fVf.js";
4
+ import { useDialog as ce, useSnackbar as Z, FmButtonVariant as A, components as de, useBreakpoints as ue } from "@feedmepos/ui-library";
5
+ import { _ as me } from "./app-CfCYl2pO.js";
6
+ import { a as ye, l as ee, T as pe } from "./index-Cq-czJjU.js";
7
7
  import { u as fe } from "./search-BAPEUu1R.js";
8
- import { f as F } from "./currency-D5qYOpxI.js";
8
+ import { f as F } from "./currency-Nxod6uwl.js";
9
9
  import { defineStore as _e } from "pinia";
10
- import { C as ke } from "./catalog-BA1e4WAu.js";
10
+ import { C as ke } from "./catalog-CvN9Wu8V.js";
11
11
  import { c as ve } from "./createComponentProgrammatically-Bt2rn1IQ.js";
12
- import { g as we } from "./translation-BCZ1Ruvv.js";
13
- function ge(b, _, l, m) {
12
+ import { g as we } from "./translation-Cdap0IVg.js";
13
+ function ge(b, _, l, u) {
14
14
  var y, p, k;
15
- if (m >= 0) {
16
- const u = (y = b.override.items[_._id][m]) == null ? void 0 : y.takeawayUsed;
17
- return u == null ? void 0 : Y(u);
15
+ if (u >= 0) {
16
+ const m = (y = b.override.items[_._id][u]) == null ? void 0 : y.takeawayUsed;
17
+ return m == null ? void 0 : Y(m);
18
18
  }
19
- const e = l.find((u) => u._id === _._id);
20
- return _.combinationKey ? ((k = (p = e == null ? void 0 : e.variant) == null ? void 0 : p.variantCombinations.find((u) => u.combinationKey === _.combinationKey)) == null ? void 0 : k.takeawayUsed) ?? (e == null ? void 0 : e.takeawayUsed) : e == null ? void 0 : e.takeawayUsed;
19
+ const e = l.find((m) => m._id === _._id);
20
+ return _.combinationKey ? ((k = (p = e == null ? void 0 : e.variant) == null ? void 0 : p.variantCombinations.find((m) => m.combinationKey === _.combinationKey)) == null ? void 0 : k.takeawayUsed) ?? (e == null ? void 0 : e.takeawayUsed) : e == null ? void 0 : e.takeawayUsed;
21
21
  }
22
- function be(b, _, l, m) {
23
- var k, u;
22
+ function be(b, _, l, u) {
23
+ var k, m;
24
24
  const e = Y(b);
25
25
  e.override.takeaway[l._id] = { price: l.price || void 0 };
26
26
  const y = [...l.usedBy, ..._.usedBy];
@@ -29,7 +29,7 @@ function be(b, _, l, m) {
29
29
  (s) => s._id === o._id && s.combinationKey === o.combinationKey
30
30
  ) ? l._id : "", a = (e.override.items[o._id] || []).findIndex(
31
31
  (s) => s.combinationKey === o.combinationKey
32
- ), d = ge(e, o, m, a);
32
+ ), d = ge(e, o, u, a);
33
33
  if (a >= 0)
34
34
  e.override.items[o._id][a].takeawayUsed = c;
35
35
  else if (d !== c) {
@@ -43,8 +43,8 @@ function be(b, _, l, m) {
43
43
  }
44
44
  const p = [...new Set(y.map((o) => o._id))];
45
45
  for (const o of p) {
46
- const v = m.find((d) => d._id === o);
47
- if (!((u = (k = v == null ? void 0 : v.variant) == null ? void 0 : k.variantCombinations) != null && u.length)) continue;
46
+ const v = u.find((d) => d._id === o);
47
+ if (!((m = (k = v == null ? void 0 : v.variant) == null ? void 0 : k.variantCombinations) != null && m.length)) continue;
48
48
  const c = (e.override.items[o] || []).findIndex(
49
49
  (d) => !d.combinationKey
50
50
  );
@@ -54,7 +54,7 @@ function be(b, _, l, m) {
54
54
  return e;
55
55
  }
56
56
  const he = _e("takeaway-manager", () => {
57
- const b = ce(), _ = Z(), l = H(_), m = W(l), e = Q(), y = te(), { t: p } = X(), k = (a) => {
57
+ const b = ce(), _ = Z(), l = H(_), u = W(l), e = J(), y = te(), { t: p } = X(), k = (a) => {
58
58
  var s, h;
59
59
  const { vNode: d } = ve(
60
60
  ye,
@@ -63,7 +63,7 @@ const he = _e("takeaway-manager", () => {
63
63
  );
64
64
  (h = (s = d.component) == null ? void 0 : s.exposed) == null || h.trigger();
65
65
  };
66
- async function u(a) {
66
+ async function m(a) {
67
67
  var h, E;
68
68
  const s = ((E = (h = e.currentCatalog) == null ? void 0 : h.override.takeaway[a._id]) == null ? void 0 : E.price) ? null : e.state.menu.modules.takeaway.find((x) => x._id === a._id);
69
69
  k({
@@ -74,7 +74,7 @@ const he = _e("takeaway-manager", () => {
74
74
  action: "update",
75
75
  "onUpdate:takeaway": async (x) => {
76
76
  let n = Y(e.currentCatalog);
77
- x.price ? n.override.takeaway[a._id] = { price: x.price } : delete n.override.takeaway[a._id], n = be(n, a, x, e.state.menu.modules.item), await new ke(n, e, m.updateMenu, b).update();
77
+ x.price ? n.override.takeaway[a._id] = { price: x.price } : delete n.override.takeaway[a._id], n = be(n, a, x, e.state.menu.modules.item), await new ke(n, e, u.updateMenu, b).update();
78
78
  }
79
79
  });
80
80
  }
@@ -85,10 +85,10 @@ const he = _e("takeaway-manager", () => {
85
85
  applyProduct: !0,
86
86
  action: "update",
87
87
  "onUpdate:takeaway": async (d) => {
88
- await m.updateMenu(
88
+ await u.updateMenu(
89
89
  {
90
- module: N.F_MENU_MODULE_V4_KEY.enum.takeaway,
91
- operation: z.F_OPERATION_TYPE.update,
90
+ module: z.F_MENU_MODULE_V4_KEY.enum.takeaway,
91
+ operation: N.F_OPERATION_TYPE.update,
92
92
  data: d,
93
93
  link: ee(d.usedBy || [])
94
94
  },
@@ -98,7 +98,7 @@ const he = _e("takeaway-manager", () => {
98
98
  });
99
99
  }
100
100
  async function v(a) {
101
- e.currentCatalog ? await u(a) : await o(a);
101
+ e.currentCatalog ? await m(a) : await o(a);
102
102
  }
103
103
  async function c(a) {
104
104
  b.open({
@@ -114,10 +114,10 @@ const he = _e("takeaway-manager", () => {
114
114
  close: !0
115
115
  }
116
116
  }).onPrimary(async () => {
117
- await m.updateMenu(
117
+ await u.updateMenu(
118
118
  {
119
- module: N.F_MENU_MODULE_V4_KEY.enum.takeaway,
120
- operation: z.F_OPERATION_TYPE.delete,
119
+ module: z.F_MENU_MODULE_V4_KEY.enum.takeaway,
120
+ operation: N.F_OPERATION_TYPE.delete,
121
121
  data: a._id
122
122
  },
123
123
  a.name,
@@ -140,7 +140,7 @@ const he = _e("takeaway-manager", () => {
140
140
  class: "px-16 pt-8"
141
141
  }, Ie = {
142
142
  class: /* @__PURE__ */ D(["flex-1", "overflow-scroll", "divide-y divide-fm-color-neutral-gray-100"])
143
- }, Ue = ["onClick"], Me = {
143
+ }, Me = ["onClick"], Ue = {
144
144
  class: "flex-1"
145
145
  }, Ee = {
146
146
  class: "fm-typo-en-body-lg-600 mb-4"
@@ -157,7 +157,7 @@ const he = _e("takeaway-manager", () => {
157
157
  setup(b, {
158
158
  emit: _
159
159
  }) {
160
- const l = Q(), m = he(), e = T(() => l.rules.item.bindToVariant), y = T(() => l.rules.takeaway), p = W(H(Z())), k = le(), u = T(() => se.Country.getCountry(k.currentCountry.value).currency), o = T(() => l.takeaways.map((n) => ({
160
+ const l = J(), u = he(), e = T(() => l.rules.item.bindToVariant), y = T(() => l.rules.takeaway), p = W(H(Z())), k = le(), m = T(() => se.Country.getCountry(k.currentCountry.value).currency), o = T(() => l.takeaways.map((n) => ({
161
161
  ...n,
162
162
  usedBy: l.items.reduce((r, f) => {
163
163
  var t, K, R;
@@ -192,19 +192,19 @@ const he = _e("takeaway-manager", () => {
192
192
  enableSorting: !1,
193
193
  size: 700,
194
194
  cell: (n) => {
195
- const r = n.row.original, f = n.getValue(), U = Object.keys(r.name_locale ?? {}).map((t) => we(t));
196
- return M("div", {
195
+ const r = n.row.original, f = n.getValue(), M = Object.keys(r.name_locale ?? {}).map((t) => we(t));
196
+ return U("div", {
197
197
  class: "flex items-center gap-8"
198
- }, [M("span", {
198
+ }, [U("span", {
199
199
  class: "break-all"
200
- }, f), ...U.map((t) => M("div", {
200
+ }, f), ...M.map((t) => U("div", {
201
201
  class: "rounded-lg border border-fm-color-primary text-fm-color-primary flex items-center justify-center fm-typo-en-body-sm-600 px-8"
202
202
  }, t))]);
203
203
  }
204
204
  }, {
205
205
  accessorKey: "price",
206
206
  header: () => s("menu.takeaway.table.columns.price", {
207
- symbol: u.value.symbol
207
+ symbol: m.value.symbol
208
208
  }),
209
209
  enableSorting: !1,
210
210
  size: 200,
@@ -221,7 +221,7 @@ const he = _e("takeaway-manager", () => {
221
221
  enableSorting: !1,
222
222
  size: 200,
223
223
  cell: (n) => {
224
- const r = n.getValue(), f = J(l.categorizedItems, r).flatMap((C) => C.items).length ?? 0;
224
+ const r = n.getValue(), f = Q(l.categorizedItems, r).flatMap((C) => C.items).length ?? 0;
225
225
  return s("menu.takeaway.table.items_linked", {
226
226
  count: f
227
227
  });
@@ -233,22 +233,22 @@ const he = _e("takeaway-manager", () => {
233
233
  cellClass: "pl-16",
234
234
  headerContentClass: "-mx-16"
235
235
  },
236
- cell: (n) => M("div", {
236
+ cell: (n) => U("div", {
237
237
  class: "flex justify-end items-center"
238
- }, [y.value.delete ? M(de.FmButton, {
238
+ }, [y.value.delete ? U(de.FmButton, {
239
239
  prependIcon: "delete",
240
240
  variant: A.Tertiary,
241
241
  textColor: "neutral-gray-400",
242
242
  onClick: (r) => {
243
- r.stopPropagation(), m.deleteTakeaway(n.row.original);
243
+ r.stopPropagation(), u.deleteTakeaway(n.row.original);
244
244
  }
245
245
  }) : null])
246
- }]), E = me(), x = T(() => E.breakpoints.value.xs);
246
+ }]), E = ue(), x = T(() => E.breakpoints.value.xs);
247
247
  return (n, r) => {
248
- const f = O("fm-search"), C = O("fm-table"), U = O("fm-button");
249
- return o.value.length ? (w(), V(L, {
248
+ const f = L("fm-search"), C = L("fm-table"), M = L("fm-button");
249
+ return o.value.length ? (w(), V(O, {
250
250
  key: 0
251
- }, [x.value ? (w(), V(L, {
251
+ }, [x.value ? (w(), V(O, {
252
252
  key: 1
253
253
  }, [g("div", Ve, [I(f, {
254
254
  class: "w-full",
@@ -256,24 +256,24 @@ const he = _e("takeaway-manager", () => {
256
256
  modelValue: i(c),
257
257
  "onUpdate:modelValue": r[2] || (r[2] = (t) => j(c) ? c.value = t : null),
258
258
  placeholder: i(s)("menu.takeaway.table.search.placeholder")
259
- }, null, 8, ["modelValue", "placeholder"])]), g("div", Ie, [(w(!0), V(L, null, ie(a.value, (t) => (w(), V("div", {
259
+ }, null, 8, ["modelValue", "placeholder"])]), g("div", Ie, [(w(!0), V(O, null, ie(a.value, (t) => (w(), V("div", {
260
260
  key: t._id,
261
261
  class: D(["py-12 px-16", "flex space-x-8", "items-center"]),
262
262
  onClick: () => {
263
- y.value.edit && i(m).updateTakeaway(t);
263
+ y.value.edit && i(u).updateTakeaway(t);
264
264
  }
265
- }, [g("div", Me, [g("p", Ee, B(t.name), 1), g("p", Ke, B(`${i(J)(i(l).categorizedItems, t.usedBy).flatMap((K) => K.items).length ?? 0} items linked`), 1), g("p", Se, " Price: " + B(u.value.symbol) + B(i(F)(t.price, !1)), 1)]), y.value.delete ? (w(), G(U, {
265
+ }, [g("div", Ue, [g("p", Ee, B(t.name), 1), g("p", Ke, B(`${i(Q)(i(l).categorizedItems, t.usedBy).flatMap((K) => K.items).length ?? 0} items linked`), 1), g("p", Se, " Price: " + B(m.value.symbol) + B(i(F)(t.price, !1)), 1)]), y.value.delete ? (w(), G(M, {
266
266
  key: 0,
267
267
  variant: i(A).Tertiary,
268
268
  "text-color": "neutral-gray-400",
269
269
  "prepend-icon": "delete",
270
- onClick: q(() => i(m).deleteTakeaway(t), ["stop"])
271
- }, null, 8, ["variant", "onClick"])) : $("", !0)], 8, Ue))), 128))])], 64)) : (w(), V("div", xe, [g("div", Ce, [g("div", Te, [I(f, {
270
+ onClick: q(() => i(u).deleteTakeaway(t), ["stop"])
271
+ }, null, 8, ["variant", "onClick"])) : $("", !0)], 8, Me))), 128))])], 64)) : (w(), V("div", xe, [g("div", Ce, [g("div", Te, [I(f, {
272
272
  autofocus: "",
273
273
  modelValue: i(c),
274
274
  "onUpdate:modelValue": r[0] || (r[0] = (t) => j(c) ? c.value = t : null),
275
275
  placeholder: i(s)("menu.takeaway.table.search.placeholder")
276
- }, null, 8, ["modelValue", "placeholder"])])]), I(ue, null, {
276
+ }, null, 8, ["modelValue", "placeholder"])])]), I(me, null, {
277
277
  default: P(() => [I(C, {
278
278
  "column-defs": h.value,
279
279
  loading: i(p).checkMenuIsLoading(),
@@ -285,7 +285,7 @@ const he = _e("takeaway-manager", () => {
285
285
  "hide-footer": "",
286
286
  "pin-header-row": "",
287
287
  onRowClick: r[1] || (r[1] = (t) => {
288
- y.value.edit && i(m).updateTakeaway(t.original);
288
+ y.value.edit && i(u).updateTakeaway(t.original);
289
289
  })
290
290
  }, null, 8, ["column-defs", "loading", "page-size", "row-data", "search-value"])]),
291
291
  _: 1
@@ -299,15 +299,15 @@ const he = _e("takeaway-manager", () => {
299
299
  action: "add",
300
300
  "apply-product": "",
301
301
  "onUpdate:takeaway": r[3] || (r[3] = (t) => i(p).updateMenu({
302
- module: i(N.F_MENU_MODULE_V4_KEY).enum.takeaway,
303
- operation: i(z.F_OPERATION_TYPE).create,
302
+ module: i(z.F_MENU_MODULE_V4_KEY).enum.takeaway,
303
+ operation: i(N.F_OPERATION_TYPE).create,
304
304
  data: t,
305
305
  link: i(ee)(t.usedBy || [])
306
306
  }, t.name))
307
307
  }, {
308
308
  default: P(({
309
309
  trigger: t
310
- }) => [I(U, {
310
+ }) => [I(M, {
311
311
  "prepend-icon": "add",
312
312
  label: i(s)("menu.takeaway.empty.action"),
313
313
  onClick: q(t, ["stop"])
@@ -1,11 +1,11 @@
1
- import { computed as d, defineComponent as x, ref as F, resolveComponent as b, createElementBlock as L, openBlock as w, normalizeClass as O, createVNode as K, normalizeStyle as B, withCtx as $, createBlock as U, createCommentVNode as j } from "vue";
2
- import { y as h, J as E, B as R, O as C, ai as z, u as y, c as J } from "./index.vue_vue_type_script_setup_true_lang-DSZsSghE.js";
3
- import { u as S } from "./menuV2-BHnldQiM.js";
4
- import { C as v, h as N } from "./catalog-BA1e4WAu.js";
5
- import { useSnackbar as P, useDialog as A } from "@feedmepos/ui-library";
6
- import { a as T } from "./LinkProductSideSheet-C6-wef-M.js";
7
- import { useI18n as q } from "@feedmepos/mf-common";
8
- function G() {
1
+ import { computed as d, defineComponent as x, ref as F, resolveComponent as b, createElementBlock as L, openBlock as w, normalizeClass as R, createVNode as K, normalizeStyle as $, withCtx as B, createBlock as U, createCommentVNode as j } from "vue";
2
+ import { A as h, M as E, G as C, Q as O, al as Y, u as y, a as G } from "./index.vue_vue_type_script_setup_true_lang-YXKayPEp.js";
3
+ import { u as S } from "./menuV2-BGEYgQ8-.js";
4
+ import { C as v, h as N } from "./catalog-CvN9Wu8V.js";
5
+ import { useSnackbar as P, useDialog as z } from "@feedmepos/ui-library";
6
+ import { a as T } from "./LinkProductSideSheet-DazOkwkd.js";
7
+ import { useI18n as Q } from "@feedmepos/mf-common";
8
+ function q() {
9
9
  const t = S(), o = d(() => t.categorizedRawMenuItems.filter((u) => u.items.length > 0)), i = d(() => {
10
10
  const u = t.currentCatalog;
11
11
  return u ? v.getItemAvailable(u).map((n) => ({ _id: n })) : [];
@@ -43,10 +43,10 @@ function G() {
43
43
  });
44
44
  }
45
45
  async function g(u) {
46
- await Y(u, !0);
46
+ await A(u, !0);
47
47
  }
48
48
  async function p(u) {
49
- await Y(u, !1);
49
+ await A(u, !1);
50
50
  }
51
51
  async function _(u) {
52
52
  const n = t.currentCatalog;
@@ -70,7 +70,7 @@ function G() {
70
70
  saveLinkItemRules: _
71
71
  };
72
72
  }
73
- async function Y(t, o) {
73
+ async function A(t, o) {
74
74
  var u;
75
75
  const i = S(), c = i.currentCatalog;
76
76
  if (!c || t.length === 0) return;
@@ -97,7 +97,7 @@ async function Y(t, o) {
97
97
  });
98
98
  }
99
99
  function H() {
100
- const t = S(), o = P(), i = A(), c = R(o), g = C(c), p = d(() => {
100
+ const t = S(), o = P(), i = z(), c = C(o), g = O(c), p = d(() => {
101
101
  const n = t.categorizedRawMenuItems, a = new Set(
102
102
  t.currentCatalog ? v.getItemAvailable(t.currentCatalog) : t.state.menu.modules.item.map((e) => e._id)
103
103
  );
@@ -135,7 +135,7 @@ function H() {
135
135
  (l, m) => {
136
136
  const f = a.items.filter((I) => I._id == m) ?? [];
137
137
  return l = l.concat(
138
- z(m, f, (I) => ({
138
+ Y(m, f, (I) => ({
139
139
  ...I,
140
140
  orderFrom: null
141
141
  }))
@@ -159,8 +159,8 @@ function H() {
159
159
  applyProduct: u
160
160
  };
161
161
  }
162
- const Q = () => {
163
- const t = y(), o = P(), i = R(o), c = C(i), g = d(() => t.categorizedRawMenuItems.filter((n) => n.items.length > 0)), p = d(() => {
162
+ const J = () => {
163
+ const t = y(), o = P(), i = C(o), c = O(i), g = d(() => t.categorizedRawMenuItems.filter((n) => n.items.length > 0)), p = d(() => {
164
164
  const n = t.currentCatalog;
165
165
  return n ? v.getItemAvailable(n).map((a) => ({ _id: a })) : [];
166
166
  });
@@ -174,7 +174,7 @@ const Q = () => {
174
174
  f,
175
175
  I,
176
176
  e.has(f),
177
- t.version === J.F_MENU_VERSION.v3
177
+ t.version === G.F_MENU_VERSION.v3
178
178
  ), m;
179
179
  },
180
180
  {}
@@ -219,7 +219,7 @@ const Q = () => {
219
219
  saveLinkItemRules: u
220
220
  };
221
221
  }, W = () => {
222
- const t = y(), o = P(), i = A(), c = R(o), g = C(c), p = d(() => {
222
+ const t = y(), o = P(), i = z(), c = C(o), g = O(c), p = d(() => {
223
223
  const n = t.categorizedRawMenuItems, a = new Set(
224
224
  t.currentCatalog ? v.getItemAvailable(t.currentCatalog) : t.state.menu.modules.item.map((e) => e._id)
225
225
  );
@@ -248,7 +248,7 @@ const Q = () => {
248
248
  (l, m) => {
249
249
  const f = a.items.filter((I) => I._id == m) ?? [];
250
250
  return l = l.concat(
251
- z(m, f, (I) => ({
251
+ Y(m, f, (I) => ({
252
252
  ...I,
253
253
  orderFrom: null
254
254
  }))
@@ -287,7 +287,7 @@ function se(t) {
287
287
  const e = y(), r = d(() => e.state.menu.modules.item ?? []), s = d(() => {
288
288
  var M;
289
289
  return ((M = e.currentCatalog) == null ? void 0 : M.linkItemRules) ?? null;
290
- }), l = W(), m = Q(), f = d(() => !e.state.currentSchedulerId), I = (M) => {
290
+ }), l = W(), m = J(), f = d(() => !e.state.currentSchedulerId), I = (M) => {
291
291
  if (M.mode === T.Rules)
292
292
  m.saveLinkItemRules(M.linkItemRules);
293
293
  else {
@@ -308,7 +308,7 @@ function se(t) {
308
308
  const i = S(), c = d(() => i.state.menu.modules.item ?? []), g = d(() => {
309
309
  var e;
310
310
  return ((e = i.currentCatalog) == null ? void 0 : e.linkItemRules) ?? null;
311
- }), p = H(), _ = G(), u = d(() => !i.state.currentSchedulerId), n = (e) => {
311
+ }), p = H(), _ = q(), u = d(() => !i.state.currentSchedulerId), n = (e) => {
312
312
  if (e.mode === T.Rules)
313
313
  _.saveLinkItemRules(e.linkItemRules);
314
314
  else {
@@ -336,7 +336,7 @@ const X = ["alt", "src", "crossorigin"], ue = /* @__PURE__ */ x({
336
336
  crossorigin: { type: Boolean, default: !0 }
337
337
  },
338
338
  setup(t) {
339
- const o = t, { t: i } = q(), c = F(!1), g = F(!o.src), p = () => {
339
+ const o = t, { t: i } = Q(), c = F(!1), g = F(!o.src), p = () => {
340
340
  c.value = !1, g.value = !0;
341
341
  }, _ = () => {
342
342
  c.value = !0, g.value = !0;
@@ -357,18 +357,18 @@ const X = ["alt", "src", "crossorigin"], ue = /* @__PURE__ */ x({
357
357
  return (e, r) => {
358
358
  const s = b("fm-icon"), l = b("fm-card");
359
359
  return w(), L("div", {
360
- class: O([e.className, "flex items-center justify-center"])
360
+ class: R([e.className, "flex items-center justify-center"])
361
361
  }, [
362
362
  K(l, {
363
- class: O(["flex items-center justify-center", "rounded-md"]),
364
- style: B({ width: `${n.value.width}px`, height: `${n.value.height}px` }),
363
+ class: R(["flex items-center justify-center", "rounded-md"]),
364
+ style: $({ width: `${n.value.width}px`, height: `${n.value.height}px` }),
365
365
  variant: "outlined"
366
366
  }, {
367
- default: $(() => [
367
+ default: B(() => [
368
368
  a.value && !c.value ? (w(), L("img", {
369
369
  key: 0,
370
370
  alt: u.value,
371
- class: O(["w-full h-full", "object-cover", g.value ? "" : "hidden"]),
371
+ class: R(["w-full h-full", "object-cover", g.value ? "" : "hidden"]),
372
372
  src: a.value,
373
373
  crossorigin: o.crossorigin ? "anonymous" : void 0,
374
374
  onError: _,
@@ -394,6 +394,6 @@ const X = ["alt", "src", "crossorigin"], ue = /* @__PURE__ */ x({
394
394
  });
395
395
  export {
396
396
  ue as _,
397
- G as a,
397
+ q as a,
398
398
  se as u
399
399
  };