@feedmepos/mf-menu 0.31.32-prod → 0.31.33-beta.10

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 (101) hide show
  1. package/dist/{App-NHdXEdrJ.js → App-DLoBsgTh.js} +79 -33
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-DoTx23iL.js → ApplyProduct.vue_vue_type_script_setup_true_lang-AdxIn_cb.js} +20 -20
  3. package/dist/{Catalog-B0fV6Yje.js → Catalog-CEvqDKD0.js} +80 -80
  4. package/dist/{Category-CJZs9I7F.js → Category-CPrXxkVI.js} +41 -41
  5. package/dist/{Category-CUKZ10xq.js → Category-CnsBFgvu.js} +37 -33
  6. package/dist/{CookingGuide-kVclP--T.js → CookingGuide-Day6eG7h.js} +66 -66
  7. package/dist/CustomAttributeChip.vue_vue_type_script_setup_true_lang-CzrjTv0X.js +113 -0
  8. package/dist/{Group-Bgkye2LL.js → Group-HAAm8its.js} +1 -1
  9. package/dist/{Group-CAS6o4Fo.js → Group-_G2GnGz-.js} +3 -3
  10. package/dist/Group.vue_vue_type_script_setup_true_lang-CTDR_kMg.js +686 -0
  11. package/dist/GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-KuT-w6bF.js +367 -0
  12. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-RsDAGQ3o.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-DwXWiz77.js} +4982 -5081
  13. package/dist/{Ingredient-DpAPMsPZ.js → Ingredient-BerGQ0W3.js} +23 -23
  14. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-MoApzjt6.js → InventoryBinding.vue_vue_type_script_setup_true_lang-Bf9GYRjF.js} +2 -2
  15. package/dist/LinkProductSideSheet-32r2l60j.js +297 -0
  16. package/dist/LinkProductSideSheet.vue_vue_type_style_index_0_scoped_97fa9d58_lang-DvG3mOom.js +8024 -0
  17. package/dist/{MenuSetting-CoqMT8Vh.js → MenuSetting-DmyEGemp.js} +20 -20
  18. package/dist/{PrintRoute-DyJil1Hl.js → PrintRoute-8gipiFdT.js} +99 -98
  19. package/dist/{Product-BPIUTn0_.js → Product-Cqvq9DAA.js} +1 -1
  20. package/dist/Product.vue_vue_type_script_setup_true_lang-DcMr8wkh.js +1578 -0
  21. package/dist/{ProductInternalTools-DXgWE6JU.js → ProductInternalTools--w7YOgx2.js} +17 -17
  22. package/dist/Products-BIRGYu47.js +283 -0
  23. package/dist/{Publish-DDzpmm72.js → Publish-BcbzhAa5.js} +3 -3
  24. package/dist/{Recipe-DHYzO0IS.js → Recipe-z1zhmblA.js} +13 -13
  25. package/dist/{Scheduler-DBad2mO3.js → Scheduler-Cv9Y5M6i.js} +7 -7
  26. package/dist/{ServingSequence-DC7raAtF.js → ServingSequence-DWFJD-1y.js} +24 -24
  27. package/dist/Setting-BgCssMcE.js +259 -0
  28. package/dist/{Subcategory-DHjc7WeF.js → Subcategory-D4BYtWMN.js} +10 -10
  29. package/dist/{Takeaway-CJRTaygj.js → Takeaway-126rJXs4.js} +9 -9
  30. package/dist/{Takeaway-CAIAHpA-.js → Takeaway-D-UZAzfn.js} +1 -1
  31. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-BNu9JjwH.js → Takeaway.vue_vue_type_script_setup_true_lang-CVsyWrTL.js} +12 -12
  32. package/dist/Thumbnail.vue_vue_type_script_setup_true_lang-szHjE_UD.js +431 -0
  33. package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-CLNlU4BJ.js +5990 -0
  34. package/dist/{Unit-DSMSKE6_.js → Unit-7APP9HLD.js} +13 -13
  35. package/dist/{Variant-DMXxUWnj.js → Variant-lJW6pFqT.js} +14 -14
  36. package/dist/_id_-R-pHc7HA.js +202 -0
  37. package/dist/{app-D23N7tJ0.js → app-CAhJXoa3.js} +390 -377
  38. package/dist/{app-BTgdGTYz.js → app-DoJgznLl.js} +1 -1
  39. package/dist/app.js +1 -1
  40. package/dist/apps/mf-menu/src/app.d.ts +60 -1
  41. package/dist/apps/mf-menu/src/components/feature/PriceTier/LinkPriceTierSection.vue.d.ts +24 -0
  42. package/dist/apps/mf-menu/src/components/feature/PriceTier/PriceTierRuleEditor.vue.d.ts +30 -0
  43. package/dist/apps/mf-menu/src/components/feature/RestaurantAttributesSelector.vue.d.ts +33 -0
  44. package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/catalog.d.ts +2 -0
  45. package/dist/apps/mf-menu/src/components/feature/TreeEditor/store/menuV2.d.ts +80 -1
  46. package/dist/apps/mf-menu/src/composable/linkProducts.d.ts +1276 -0
  47. package/dist/apps/mf-menu/src/helper/import-export.d.ts +77 -0
  48. package/dist/apps/mf-menu/src/helper/menu.d.ts +77 -0
  49. package/dist/apps/mf-menu/src/helper/setting/catalogSetting.d.ts +11 -2
  50. package/dist/apps/mf-menu/src/manager/menu/item.d.ts +77 -0
  51. package/dist/apps/mf-menu/src/router/shared.d.ts +2 -1
  52. package/dist/apps/mf-menu/src/stores/manager/catalog.d.ts +2 -0
  53. package/dist/apps/mf-menu/src/stores/menu.d.ts +79 -0
  54. package/dist/apps/mf-menu/src/types/linkProducts.d.ts +21 -0
  55. package/dist/apps/mf-menu/src/views/PrintRoute/PrintDepartmentDialog.vue.d.ts +5 -3
  56. package/dist/apps/mf-menu/src/views/Publish/UpdateCatalogDialog.vue.d.ts +82 -0
  57. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  58. package/dist/assets/linked-status-BbJj0WW0.js +24 -0
  59. package/dist/assets/override-menu-CRaqJDr8.js +24 -0
  60. package/dist/assets/validate-menu-BQ2BFUmD.js +24 -0
  61. package/dist/{catalog-DcciqmWK.js → catalog-C1fna-Yk.js} +1 -1
  62. package/dist/catalogSetting-BKP36lej.js +71 -0
  63. package/dist/{category-bhqVqDzJ.js → category-DK_MXlvY.js} +5 -5
  64. package/dist/{currency-Clgvy00I.js → currency-D2fl1Bk0.js} +1 -1
  65. package/dist/{dayjs.min-DeSv8lfJ.js → dayjs.min-Bk9ZYtg9.js} +1 -1
  66. package/dist/{index-BHbYu_OM.js → index-BJ3_8aUL.js} +14 -14
  67. package/dist/{index-CTUaJyIh.js → index-CSuF-4Sa.js} +14 -14
  68. package/dist/{index-DZZJjEOs.js → index-Cc2J6T0N.js} +28 -28
  69. package/dist/index-D7yR1j9C.js +215 -0
  70. package/dist/{item-DH1xf2Sa.js → item-DX44khy2.js} +201 -199
  71. package/dist/{jszip.min-CMM2HN8J.js → jszip.min-Dbu7MIcI.js} +427 -427
  72. package/dist/{menu-Dx39P1vR.js → menu-DT5c-FqY.js} +4 -4
  73. package/dist/menu-D_Cckz_p.js +133287 -0
  74. package/dist/menuV2-DTBH_-tm.js +707 -0
  75. package/dist/mf-menu.css +1 -1
  76. package/dist/{priceTier-3M5cxSYX.js → priceTier-wLQ8p4bJ.js} +1 -1
  77. package/dist/{scheduler-BT3EJBK6.js → scheduler-D6UbXLXR.js} +36 -37
  78. package/dist/subcategory-DjN3X1BI.js +148 -0
  79. package/dist/{toExcel-BLoj4Wqb.js → toExcel-CWyoDcRd.js} +15 -15
  80. package/dist/{unit-BsNOQHvZ.js → unit-CLa8caCJ.js} +11 -10
  81. package/package.json +5 -5
  82. package/dist/CustomAttributeChip.vue_vue_type_script_setup_true_lang-RI_d10bz.js +0 -7949
  83. package/dist/FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js +0 -26
  84. package/dist/Group.vue_vue_type_script_setup_true_lang-Bij0tGMP.js +0 -698
  85. package/dist/GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CUa_0qzX.js +0 -206
  86. package/dist/LinkProductSideSheet-CEClo07H.js +0 -112
  87. package/dist/Product.vue_vue_type_script_setup_true_lang-fjFGg49e.js +0 -1560
  88. package/dist/Products-dWmgQ_di.js +0 -270
  89. package/dist/Setting-CPjvUYU9.js +0 -258
  90. package/dist/Thumbnail.vue_vue_type_script_setup_true_lang-DzQ8_6Bi.js +0 -71
  91. package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-ZRv8Dg6x.js +0 -6149
  92. package/dist/_id_-CTq4qK7z.js +0 -200
  93. package/dist/apps/mf-menu/src/components/feature/LinkProduct/LinkProductSideSheet.vue.d.ts +0 -70
  94. package/dist/assets/linked-status-Cfc9wZst.js +0 -24
  95. package/dist/assets/override-menu-BNZggtO_.js +0 -24
  96. package/dist/assets/validate-menu-CPwUvy9F.js +0 -24
  97. package/dist/catalogSetting-D4iwoJLb.js +0 -65
  98. package/dist/index-Ce4v8o7D.js +0 -106
  99. package/dist/menu-DcGo3sn5.js +0 -108039
  100. package/dist/subcategory-B5atmACN.js +0 -817
  101. /package/dist/{apps/mf-menu/src/components → packages/shared/src/components/info}/CustomAttributeChip.vue.d.ts +0 -0
@@ -1,15 +1,15 @@
1
- import { defineComponent as J, ref as L, computed as O, resolveComponent as h, createElementBlock as g, openBlock as d, Fragment as x, renderSlot as ae, createVNode as l, unref as t, withCtx as m, createElementVNode as y, toDisplayString as A, onBeforeMount as oe, watch as F, watchEffect as se, h as $, getCurrentInstance as le, onMounted as re, createBlock as j, createCommentVNode as G, isRef as ie, normalizeClass as Q, renderList as ue } from "vue";
1
+ import { defineComponent as J, ref as L, computed as O, resolveComponent as h, createElementBlock as g, openBlock as d, Fragment as x, renderSlot as ae, createVNode as l, unref as t, withCtx as m, createElementVNode as y, toDisplayString as z, onBeforeMount as oe, watch as F, watchEffect as se, h as $, getCurrentInstance as le, onMounted as re, createBlock as j, createCommentVNode as G, isRef as ie, normalizeClass as Q, renderList as ue } from "vue";
2
2
  import { useRouter as ce } from "vue-router";
3
- import { H, u as W, D as X, O as Z, J as I, G as S } from "./menu-DcGo3sn5.js";
3
+ import { H, u as W, G as X, O as Z, J as I, A as S } from "./menu-D_Cckz_p.js";
4
4
  import { useI18n as ee, ItemSelector as de, useCoreStore as me } from "@feedmepos/mf-common";
5
- import { useSnackbar as ne, components as Y, useDialog as pe, FmButtonVariant as T, useBreakpoints as _e } from "@feedmepos/ui-library";
5
+ import { useSnackbar as ne, components as Y, useDialog as pe, FmButtonVariant as A, useBreakpoints as _e } from "@feedmepos/ui-library";
6
6
  import { _ as fe } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
7
- import { _ as ge, R as ve } from "./app-D23N7tJ0.js";
7
+ import { _ as ge, R as ve } from "./app-CAhJXoa3.js";
8
8
  import { _ as he } from "./index.vue_vue_type_script_setup_true_lang-BgqsTzLI.js";
9
9
  import { c as ye } from "./check-C9mY6LiX.js";
10
10
  import { _ as be } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
11
11
  import { u as ke } from "./search-BAPEUu1R.js";
12
- import { u as xe } from "./app-BTgdGTYz.js";
12
+ import { u as xe } from "./app-DoJgznLl.js";
13
13
  import { c as Se } from "./createComponentProgrammatically-Bt2rn1IQ.js";
14
14
  const Ce = { class: "fm-typo-en-title-md-600" }, qe = { class: "space-y-32 flex flex-col h-full" }, Ee = { class: "flex gap-8 items-center justify-start" }, Ve = /* @__PURE__ */ J({
15
15
  __name: "Form",
@@ -18,15 +18,15 @@ const Ce = { class: "fm-typo-en-title-md-600" }, qe = { class: "space-y-32 flex
18
18
  initialValue: {}
19
19
  },
20
20
  emits: ["submitted"],
21
- setup(K, { expose: b, emit: D }) {
22
- const { t: r } = ee(), p = K, N = D, s = L(
21
+ setup(K, { expose: b, emit: N }) {
22
+ const { t: r } = ee(), p = K, R = N, s = L(
23
23
  p.initialValue ? H(p.initialValue) : {
24
24
  _id: "",
25
25
  name: "",
26
26
  position: 0,
27
27
  items: []
28
28
  }
29
- ), C = W(), i = ne(), R = X(i), q = Z(R), c = L(!1), u = L(!1), _ = (f) => {
29
+ ), C = W(), i = ne(), D = X(i), q = Z(D), c = L(!1), u = L(!1), _ = (f) => {
30
30
  ye.isBoolean(f) ? u.value = f : u.value = !u.value;
31
31
  }, E = O(() => p.action === "add" ? r("menu.serving_sequence.add") : r("menu.serving_sequence.update"));
32
32
  async function P() {
@@ -55,7 +55,7 @@ const Ce = { class: "fm-typo-en-title-md-600" }, qe = { class: "space-y-32 flex
55
55
  else
56
56
  throw new Error("Invalid action");
57
57
  } finally {
58
- u.value = !1, N("submitted");
58
+ u.value = !1, R("submitted");
59
59
  }
60
60
  }
61
61
  b({
@@ -82,7 +82,7 @@ const Ce = { class: "fm-typo-en-title-md-600" }, qe = { class: "space-y-32 flex
82
82
  "max-width": 560
83
83
  }, {
84
84
  "side-sheet-header": m(() => [
85
- y("p", Ce, A(E.value), 1)
85
+ y("p", Ce, z(E.value), 1)
86
86
  ]),
87
87
  "side-sheet-footer": m(() => [
88
88
  y("div", Ee, [
@@ -130,7 +130,7 @@ const Ce = { class: "fm-typo-en-title-md-600" }, qe = { class: "space-y-32 flex
130
130
  ], 64);
131
131
  };
132
132
  }
133
- }), z = Ve, we = {
133
+ }), T = Ve, we = {
134
134
  key: 0,
135
135
  class: "xs:pt-24"
136
136
  }, Me = {
@@ -142,15 +142,15 @@ const Ce = { class: "fm-typo-en-title-md-600" }, qe = { class: "space-y-32 flex
142
142
  class: "flex-1 space-y-4"
143
143
  }, Ie = {
144
144
  class: "fm-typo-en-body-lg-600"
145
- }, De = {
145
+ }, Ne = {
146
146
  class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
147
147
  }, Je = /* @__PURE__ */ J({
148
148
  __name: "ServingSequence",
149
149
  setup(K) {
150
150
  const {
151
151
  searchKey: b,
152
- filter: D
153
- } = ke(), r = W(), p = ne(), N = X(p), s = Z(N), C = pe(), i = me(), R = xe(), q = ce(), {
152
+ filter: N
153
+ } = ke(), r = W(), p = ne(), R = X(p), s = Z(R), C = pe(), i = me(), D = xe(), q = ce(), {
154
154
  t: c
155
155
  } = ee(), u = (e) => {
156
156
  e && e !== S.F_MENU_VERSION.enum.v4 && q.push({
@@ -166,7 +166,7 @@ const Ce = { class: "fm-typo-en-title-md-600" }, qe = { class: "space-y-32 flex
166
166
  }, (e) => {
167
167
  u(e);
168
168
  }), F(() => i.sessionUser.value, (e) => {
169
- e && R.getPublicSetting();
169
+ e && D.getPublicSetting();
170
170
  }), F(() => i.currentBusiness.value, async (e, n) => {
171
171
  e && e._id !== (n == null ? void 0 : n._id) && await r.readRestaurants();
172
172
  }), F(() => i.currentRestaurant.value, async (e, n) => {
@@ -176,7 +176,7 @@ const Ce = { class: "fm-typo-en-title-md-600" }, qe = { class: "space-y-32 flex
176
176
  });
177
177
  const _ = O(() => r.serveSequence.filter(({
178
178
  name: e
179
- }) => D([e])) ?? []);
179
+ }) => N([e])) ?? []);
180
180
  function E(e) {
181
181
  C.open({
182
182
  title: "Delete sequence",
@@ -184,7 +184,7 @@ const Ce = { class: "fm-typo-en-title-md-600" }, qe = { class: "space-y-32 flex
184
184
  primaryActions: {
185
185
  text: "Delete",
186
186
  close: !0,
187
- variant: T.Destructive
187
+ variant: A.Destructive
188
188
  },
189
189
  secondaryActions: {
190
190
  text: "Cancel",
@@ -202,7 +202,7 @@ const Ce = { class: "fm-typo-en-title-md-600" }, qe = { class: "space-y-32 flex
202
202
  servingSequence: e
203
203
  }) => $(Y.FmButton, {
204
204
  prependIcon: "delete",
205
- variant: T.Tertiary,
205
+ variant: A.Tertiary,
206
206
  textColor: "neutral-gray-400",
207
207
  onClick: (n) => {
208
208
  n.stopPropagation(), E(e);
@@ -237,7 +237,7 @@ const Ce = { class: "fm-typo-en-title-md-600" }, qe = { class: "space-y-32 flex
237
237
  class: "w-full flex justify-end items-center"
238
238
  }, [$(Y.FmButton, {
239
239
  prependIcon: "delete",
240
- variant: T.Tertiary,
240
+ variant: A.Tertiary,
241
241
  textColor: "neutral-gray-400",
242
242
  onClick: (n) => {
243
243
  n.stopPropagation(), E(e.row.original);
@@ -249,7 +249,7 @@ const Ce = { class: "fm-typo-en-title-md-600" }, qe = { class: "space-y-32 flex
249
249
  const {
250
250
  container: n,
251
251
  vNode: k
252
- } = Se(z, f, {
252
+ } = Se(T, f, {
253
253
  initialValue: e,
254
254
  action: "update",
255
255
  onSubmitted: () => {
@@ -268,7 +268,7 @@ const Ce = { class: "fm-typo-en-title-md-600" }, qe = { class: "space-y-32 flex
268
268
  }, {
269
269
  "append-heading": m(() => [!t(s).checkMenuIsLoading() && _.value.length ? (d(), g(x, {
270
270
  key: 0
271
- }, [l(k), l(t(z), {
271
+ }, [l(k), l(t(T), {
272
272
  action: "add"
273
273
  }, {
274
274
  default: m(({
@@ -296,8 +296,8 @@ const Ce = { class: "fm-typo-en-title-md-600" }, qe = { class: "space-y-32 flex
296
296
  }, null, 8, ["modelValue", "placeholder"])]), V.value ? (d(), g("div", Fe, [(d(!0), g(x, null, ue(_.value, (o) => (d(), g("div", {
297
297
  key: o._id,
298
298
  class: Q(["py-12 px-16", "flex items-center space-x-8"]),
299
- onClick: (Ne) => a(o)
300
- }, [y("div", Oe, [y("p", Ie, A(o.name), 1), y("p", De, A(t(c)("menu.common.labels.products_linked", {
299
+ onClick: (Re) => a(o)
300
+ }, [y("div", Oe, [y("p", Ie, z(o.name), 1), y("p", Ne, z(t(c)("menu.common.labels.products_linked", {
301
301
  count: o.items.length
302
302
  })), 1)]), l(P, {
303
303
  servingSequence: o
@@ -323,7 +323,7 @@ const Ce = { class: "fm-typo-en-title-md-600" }, qe = { class: "space-y-32 flex
323
323
  subtitle: t(c)("menu.serving_sequence.empty.subtitle"),
324
324
  title: t(c)("menu.serving_sequence.empty.title")
325
325
  }, {
326
- action: m(() => [l(t(z), {
326
+ action: m(() => [l(t(T), {
327
327
  action: "add"
328
328
  }, {
329
329
  default: m(({
@@ -0,0 +1,259 @@
1
+ import { defineComponent as ne, computed as p, ref as se, watch as ue, watchEffect as ie, resolveComponent as m, createElementBlock as V, openBlock as r, normalizeClass as z, createVNode as s, withCtx as c, createElementVNode as v, createBlock as g, createCommentVNode as k, unref as e, Fragment as D, renderList as B, createTextVNode as re, toDisplayString as N } from "vue";
2
+ import { u as me, G as ce, A as f, O as de, B as pe, H as w } from "./menu-D_Cckz_p.js";
3
+ import { useCoreStore as ve, useI18n as ge } from "@feedmepos/mf-common";
4
+ import { useSnackbar as fe, useDialog as _e, FmButtonVariant as $, FmButtonColorThemeVariant as P, components as be } from "@feedmepos/ui-library";
5
+ import { a as E } from "./LinkProductSideSheet-32r2l60j.js";
6
+ import { _ as ye } from "./FormSection.vue_vue_type_script_setup_true_lang-CO4YGYLB.js";
7
+ import { _ as H, a as ke } from "./GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-KuT-w6bF.js";
8
+ import { C as _, a as x } from "./catalogSetting-BKP36lej.js";
9
+ import { C as xe } from "./catalog-C1fna-Yk.js";
10
+ const Ce = {
11
+ class: /* @__PURE__ */ z(["overflow-scroll", "flex-1", "xs:px-16 xs:py-16", "pt-16"])
12
+ }, Oe = {
13
+ class: "space-y-32"
14
+ }, Se = {
15
+ key: 0,
16
+ class: "pl-32 space-x-8"
17
+ }, Me = {
18
+ class: "pl-[60px] space-y-16"
19
+ }, Ve = {
20
+ class: "space-x-16 flex items-center"
21
+ }, Fe = {
22
+ class: "flex-1 space-y-4"
23
+ }, Re = {
24
+ class: "fm-typo-en-body-lg-400"
25
+ }, Ue = {
26
+ class: "fm-typo-en-body-md-400"
27
+ }, he = {
28
+ class: "flex justify-end"
29
+ }, He = /* @__PURE__ */ ne({
30
+ __name: "Setting",
31
+ setup(Ne) {
32
+ const F = ve(), u = me(), j = fe(), A = ce(j), {
33
+ minor: q
34
+ } = A, G = _e(), {
35
+ t: n
36
+ } = ge(), O = p(() => u.currentCatalog), b = p(() => !O.value), S = p(() => u.version === f.F_MENU_VERSION.enum.v4), {
37
+ updateMenu: J
38
+ } = de(A), l = se(_.initCatalogSetting()), W = p(() => u.catalogs.filter((t) => t._id !== u.state.currentCatalogId).map((t) => t.name)), Y = p(() => u.state.restaurants.filter((t) => [...t.additionalCatalogs, t.inHouseDelivery, ...t.linkedDeliveryCatalogs.map((o) => o.catalog), t.pickupCatalog, t.takeawayCatalog, t.catalogId].includes(u.state.currentCatalogId)).map((t) => t.name));
39
+ function T() {
40
+ return Y.value.length > 0 ? s("div", {
41
+ class: ["flex items-center", "bg-fm-color-system-warning-100", "rounded-lg", "py-16 px-24 space-x-8"]
42
+ }, [s(be.FmIcon, {
43
+ color: "system-warning-300",
44
+ name: "warning"
45
+ }, null), s("p", {
46
+ class: "fm-typo-en-body-lg-400"
47
+ }, [n("menu.setting.catalog.warnings.delivery")])]) : null;
48
+ }
49
+ function I() {
50
+ const t = O.value;
51
+ l.value = t ? _.fromCatalog(t, S.value) : _.fromMainCatalog(u.state.menu.masterCatalogSetting);
52
+ }
53
+ ue(() => u.state.currentCatalogId, I);
54
+ const R = p(() => {
55
+ if (!F.currentCountry.value) return [];
56
+ const t = l.value.taxSetting.mode === x.MANUAL ? l.value.taxSetting.inclusive ?? [] : [];
57
+ return pe.Country.getCountry(F.currentCountry.value).taxSystems.map((i) => {
58
+ const d = t.find((C) => C.systemCode === i.code);
59
+ return {
60
+ inclusive: (d == null ? void 0 : d.inclusive) || !1,
61
+ systemCode: i.code
62
+ };
63
+ });
64
+ });
65
+ function K(t) {
66
+ const o = l.value.taxSetting, i = o.mode === x.AUTO ? _.manualTax(R.value) : w(o);
67
+ i.inclusive ?? (i.inclusive = []);
68
+ const d = i.inclusive.findIndex((C) => C.systemCode === t.systemCode);
69
+ d < 0 ? i.inclusive.push(t) : i.inclusive.splice(d, 1, t), U.value = i;
70
+ }
71
+ ie(async () => {
72
+ F.currentBusiness.value && (b.value && !u.state.menu._id || I());
73
+ });
74
+ const U = p({
75
+ get: () => l.value.taxSetting,
76
+ set: (t) => {
77
+ l.value.taxSetting = t;
78
+ }
79
+ }), Q = async () => {
80
+ const t = _.toCatalog(l.value);
81
+ O.value ? await new xe({
82
+ ...O.value,
83
+ ...t
84
+ }, u, J, G).update() : await q(async () => {
85
+ await u.updateMainCatalogSetting({
86
+ inclusiveTaxes: t.inclusiveTaxes
87
+ });
88
+ }, {
89
+ successMessage: "Main catalog updated",
90
+ customId: u.state.menu._id
91
+ });
92
+ };
93
+ function X(t, o) {
94
+ const i = w(l.value);
95
+ i.markupOptions && (i.markupOptions[t] = o, l.value = i);
96
+ }
97
+ function Z(t) {
98
+ const o = w(l.value);
99
+ o.markupOptions && (o.markupOptions.splice(t, 1), l.value = o);
100
+ }
101
+ return (t, o) => {
102
+ const i = m("fm-text-field"), d = m("fm-radio"), C = m("fm-radio-group"), ee = m("fm-checkbox"), L = m("fm-switch"), te = m("fm-select"), h = m("fm-button"), ae = m("fm-chip"), le = m("fm-card"), oe = m("fm-form");
103
+ return r(), V("div", Ce, [s(oe, {
104
+ class: z(["space-y-40 max-w-[751px]", "h-fit"]),
105
+ "blame-form-child-on-validation-failed": "",
106
+ onValidationSuccess: Q
107
+ }, {
108
+ default: c(() => [v("div", Oe, [b.value ? k("", !0) : (r(), g(ye, {
109
+ key: 0,
110
+ title: e(n)("menu.setting.catalog.title")
111
+ }, {
112
+ default: c(() => [s(i, {
113
+ modelValue: l.value.name,
114
+ "onUpdate:modelValue": o[0] || (o[0] = (a) => l.value.name = a),
115
+ rules: [(a) => !W.value.includes(a.trim()) || e(n)("menu.setting.catalog.fields.name.used"), (a) => !!a.trim() || e(n)("menu.setting.catalog.fields.name.required")],
116
+ label: e(n)("menu.setting.catalog.fields.name.label")
117
+ }, null, 8, ["modelValue", "rules", "label"]), s(T)]),
118
+ _: 1
119
+ }, 8, ["title"])), s(E, {
120
+ label: e(n)("menu.setting.tax.title")
121
+ }, {
122
+ default: c(() => [s(C, {
123
+ "model-value": l.value.taxSetting.mode,
124
+ "onUpdate:modelValue": o[1] || (o[1] = (a) => {
125
+ a === e(x).AUTO ? U.value = e(_).autoTax() : U.value = e(_).manualTax(R.value);
126
+ })
127
+ }, {
128
+ default: c(() => [s(d, {
129
+ value: e(x).AUTO,
130
+ label: e(n)("menu.setting.tax.modes.auto.label"),
131
+ sublabel: e(n)("menu.setting.tax.modes.auto.sublabel")
132
+ }, null, 8, ["value", "label", "sublabel"]), s(d, {
133
+ value: e(x).MANUAL,
134
+ label: e(n)("menu.setting.tax.modes.manual.label"),
135
+ sublabel: e(n)("menu.setting.tax.modes.manual.sublabel")
136
+ }, null, 8, ["value", "label", "sublabel"])]),
137
+ _: 1
138
+ }, 8, ["model-value"]), l.value.taxSetting.mode === e(x).MANUAL ? (r(), V("div", Se, [(r(!0), V(D, null, B(R.value, (a) => (r(), g(ee, {
139
+ key: a.systemCode,
140
+ "model-value": a.inclusive,
141
+ value: !0,
142
+ label: a.systemCode + " inclusive",
143
+ "onUpdate:modelValue": (y) => {
144
+ K({
145
+ ...a,
146
+ inclusive: y
147
+ });
148
+ }
149
+ }, null, 8, ["model-value", "label", "onUpdate:modelValue"]))), 128))])) : k("", !0)]),
150
+ _: 1
151
+ }, 8, ["label"]), !b.value && S.value ? (r(), g(E, {
152
+ key: 1,
153
+ label: e(n)("menu.setting.link.title")
154
+ }, {
155
+ default: c(() => [s(L, {
156
+ "model-value": l.value.orderFrom && l.value.orderFrom !== e(f.F_ORDER_FROM).enum.NONE,
157
+ label: e(n)("menu.setting.link.auto_link.label"),
158
+ "label-placement": "right",
159
+ sublabel: e(n)("menu.setting.link.auto_link.sublabel"),
160
+ "onUpdate:modelValue": o[2] || (o[2] = (a) => l.value.orderFrom = a ? e(f.F_ORDER_FROM).enum.ALL : e(f.F_ORDER_FROM).enum.NONE)
161
+ }, null, 8, ["model-value", "label", "sublabel"]), l.value.orderFrom !== e(f.F_ORDER_FROM).enum.NONE ? (r(), g(te, {
162
+ key: 0,
163
+ class: "ml-[60px]",
164
+ items: [{
165
+ label: "Available for all",
166
+ value: e(f.F_ORDER_FROM).enum.ALL
167
+ }, {
168
+ label: "Order on POS only",
169
+ value: e(f.F_ORDER_FROM).enum.POS_ONLY
170
+ }],
171
+ "model-value": l.value.orderFrom,
172
+ "onUpdate:modelValue": o[3] || (o[3] = (a) => l.value.orderFrom = a)
173
+ }, null, 8, ["items", "model-value"])) : k("", !0)]),
174
+ _: 1
175
+ }, 8, ["label"])) : k("", !0), !b.value && S.value ? (r(), g(E, {
176
+ key: 2,
177
+ label: e(n)("menu.setting.markup.title")
178
+ }, {
179
+ default: c(() => [s(L, {
180
+ "model-value": !!l.value.markupOptions,
181
+ label: e(n)("menu.setting.markup.auto_markup.label"),
182
+ "label-placement": "right",
183
+ sublabel: e(n)("menu.setting.markup.auto_markup.sublabel"),
184
+ "onUpdate:modelValue": o[4] || (o[4] = (a) => l.value.markupOptions = a ? [] : null)
185
+ }, null, 8, ["model-value", "label", "sublabel"]), v("div", Me, [s(H, {
186
+ categories: e(u).categories,
187
+ items: e(u).items,
188
+ action: "add",
189
+ "onUpdate:modelValue": o[5] || (o[5] = (a) => {
190
+ a && (l.value.markupOptions = [...l.value.markupOptions ?? [], a]);
191
+ })
192
+ }, {
193
+ default: c(({
194
+ trigger: a
195
+ }) => [s(h, {
196
+ "text-color": e(P).ColorPrimary,
197
+ "border-color": e(P).ColorPrimary,
198
+ variant: e($).Secondary,
199
+ label: "Add markup configuration",
200
+ "prepend-icon": "add",
201
+ onClick: a
202
+ }, null, 8, ["text-color", "border-color", "variant", "onClick"])]),
203
+ _: 1
204
+ }, 8, ["categories", "items"]), (r(!0), V(D, null, B(l.value.markupOptions, (a, y) => (r(), g(H, {
205
+ key: y,
206
+ categories: e(u).categories,
207
+ items: e(u).items,
208
+ "model-value": a,
209
+ action: "update",
210
+ "onUpdate:modelValue": (M) => {
211
+ M && X(y, M);
212
+ }
213
+ }, {
214
+ default: c(({
215
+ trigger: M
216
+ }) => [s(le, {
217
+ id: JSON.stringify(a),
218
+ class: "py-12 px-16 cursor-pointer",
219
+ variant: "outlined",
220
+ onClick: M
221
+ }, {
222
+ default: c(() => [v("div", Ve, [v("div", Fe, [s(ae, {
223
+ class: "text-fm-color-typo-info bg-fm-color-system-info-100 font-semibold"
224
+ }, {
225
+ default: c(() => [re(" Markup percentage: " + N(a.percentage) + "% ", 1)]),
226
+ _: 2
227
+ }, 1024), v("p", Re, N(e(n)("menu.setting.markup.config", {
228
+ number: y + 1
229
+ })), 1), v("p", Ue, N(a.includeItems ? e(n)("menu.setting.markup.products.linked", {
230
+ count: a.includeItems.length
231
+ }) : e(n)("menu.setting.markup.products.all")), 1)]), s(h, {
232
+ variant: e($).Tertiary,
233
+ "prepend-icon": "delete",
234
+ onClick: (we) => Z(y)
235
+ }, null, 8, ["variant", "onClick"])])]),
236
+ _: 2
237
+ }, 1032, ["id", "onClick"])]),
238
+ _: 2
239
+ }, 1032, ["categories", "items", "model-value", "onUpdate:modelValue"]))), 128))])]),
240
+ _: 1
241
+ }, 8, ["label"])) : k("", !0), s(ke, {
242
+ modelValue: l.value,
243
+ "onUpdate:modelValue": o[6] || (o[6] = (a) => l.value = a),
244
+ "is-main-catalog": b.value,
245
+ "is-v4": S.value
246
+ }, null, 8, ["modelValue", "is-main-catalog", "is-v4"]), b.value ? (r(), g(T, {
247
+ key: 3
248
+ })) : k("", !0)]), v("div", he, [s(h, {
249
+ label: e(n)("common.save"),
250
+ type: "submit"
251
+ }, null, 8, ["label"])])]),
252
+ _: 1
253
+ })]);
254
+ };
255
+ }
256
+ });
257
+ export {
258
+ He as default
259
+ };
@@ -1,18 +1,18 @@
1
- import { defineComponent as L, ref as w, watch as W, resolveComponent as y, createElementBlock as V, openBlock as p, Fragment as P, renderSlot as X, createVNode as m, unref as t, withCtx as h, createElementVNode as s, toDisplayString as O, computed as F, h as A, withModifiers as R, getCurrentInstance as Z, renderList as ee, createBlock as S, createCommentVNode as te } from "vue";
1
+ import { defineComponent as L, ref as w, watch as W, resolveComponent as y, createElementBlock as V, openBlock as p, Fragment as P, renderSlot as X, createVNode as m, unref as t, withCtx as h, createElementVNode as s, toDisplayString as O, computed as F, h as U, withModifiers as R, getCurrentInstance as Z, renderList as ee, createBlock as S, createCommentVNode as te } from "vue";
2
2
  import { useI18n as T } from "@feedmepos/mf-common";
3
3
  import { useSnackbar as B, components as j, useDialog as Y, FmButtonVariant as z, useBreakpoints as ae, FmButtonColorThemeVariant as oe } from "@feedmepos/ui-library";
4
4
  import { _ as ne } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
5
- import { D, u as N, O as U, J as K, G } from "./menu-DcGo3sn5.js";
5
+ import { G as D, u as N, O as A, J as K, A as G } from "./menu-D_Cckz_p.js";
6
6
  import { _ as le } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
7
- import { _ as se } from "./app-D23N7tJ0.js";
7
+ import { _ as se } from "./app-CAhJXoa3.js";
8
8
  import { c as re } from "./createForm-BoUQeZTd.js";
9
9
  import { u as ie } from "./discardConfirm-BHni0LNu.js";
10
10
  import { c as I } from "./object-DVUNCr7w.js";
11
11
  import { r as ce } from "./rules-CIWTZQfh.js";
12
12
  import { c as ue } from "./check-C9mY6LiX.js";
13
- import { a as q } from "./subcategory-B5atmACN.js";
13
+ import { u as q } from "./subcategory-DjN3X1BI.js";
14
14
  import { _ as de } from "./index.vue_vue_type_script_setup_true_lang-BgqsTzLI.js";
15
- import { a as me } from "./menu-Dx39P1vR.js";
15
+ import { a as me } from "./menu-DT5c-FqY.js";
16
16
  const pe = {
17
17
  class: "fm-typo-en-title-md-600"
18
18
  }, _e = {
@@ -27,7 +27,7 @@ const pe = {
27
27
  setup($, {
28
28
  expose: f
29
29
  }) {
30
- const _ = $, x = B(), g = D(x), k = U(g), d = N(), {
30
+ const _ = $, x = B(), g = D(x), k = A(g), d = N(), {
31
31
  t: a
32
32
  } = T(), v = w(!1), e = w(!1), b = (r) => {
33
33
  ue.isBoolean(r) ? e.value = r : e.value = !e.value;
@@ -114,7 +114,7 @@ const pe = {
114
114
  }, Se = /* @__PURE__ */ L({
115
115
  __name: "SubcategoryTable",
116
116
  setup($) {
117
- const f = Y(), _ = B(), x = D(_), g = U(x), k = q({
117
+ const f = Y(), _ = B(), x = D(_), g = A(x), k = q({
118
118
  dialog: f,
119
119
  menuLoader: g
120
120
  }), d = F(() => N().subcategories), a = w(""), v = F(() => d.value.filter((o) => o.name.toLowerCase().includes(a.value.toLowerCase()))), {
@@ -136,9 +136,9 @@ const pe = {
136
136
  header: "",
137
137
  cell: (o) => {
138
138
  const l = o.row.original;
139
- return A("div", {
139
+ return U("div", {
140
140
  class: "flex justify-end"
141
- }, [A(j.FmButton, {
141
+ }, [U(j.FmButton, {
142
142
  icon: "delete",
143
143
  disabled: !l._id,
144
144
  variant: "tertiary",
@@ -238,7 +238,7 @@ const pe = {
238
238
  }), $e = { class: "flex-1 flex justify-between gap-8 pl-8" }, Me = { class: "flex items-center" }, Ee = { class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4" }, Le = { class: "fm-typo-en-body-md-600 font-semibold" }, qe = /* @__PURE__ */ L({
239
239
  __name: "Subcategory",
240
240
  setup($) {
241
- const f = Y(), _ = B(), x = D(_), g = U(x), k = q({ dialog: f, menuLoader: g }), d = F(() => N().subcategories), { t: a } = T();
241
+ const f = Y(), _ = B(), x = D(_), g = A(x), k = q({ dialog: f, menuLoader: g }), d = F(() => N().subcategories), { t: a } = T();
242
242
  function v() {
243
243
  k.create();
244
244
  }
@@ -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 { D as x, u as v, O as w, J as E, G as M } from "./menu-DcGo3sn5.js";
2
+ import { G as x, u as v, O as w, J as E, A as M } from "./menu-D_Cckz_p.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-BNu9JjwH.js";
8
- import { T as O, l as S } from "./index-CTUaJyIh.js";
9
- import { a as L } from "./menu-Dx39P1vR.js";
10
- const U = { class: "flex-1 flex justify-between gap-8 pl-8" }, B = { class: "flex items-center" }, D = { class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4" }, F = { class: "fm-typo-en-body-md-600 font-semibold" }, z = /* @__PURE__ */ f({
7
+ import { _ as N } from "./Takeaway.vue_vue_type_script_setup_true_lang-CVsyWrTL.js";
8
+ import { T as O, l as S } from "./index-CSuF-4Sa.js";
9
+ import { a as L } from "./menu-DT5c-FqY.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 L().resetOnMount(), (P, o) => (d(), i(C, {
14
+ return L().resetOnMount(), (I, o) => (d(), i(C, {
15
15
  heading: a(r)("menu.takeaway.title")
16
16
  }, {
17
17
  default: s(() => [
@@ -22,8 +22,8 @@ const U = { class: "flex-1 flex justify-between gap-8 pl-8" }, B = { class: "fle
22
22
  "append-heading": s(() => [
23
23
  t("div", U, [
24
24
  t("div", B, [
25
- t("div", D, [
26
- t("p", F, b(n.value), 1)
25
+ t("div", F, [
26
+ t("p", A, b(n.value), 1)
27
27
  ])
28
28
  ]),
29
29
  t("div", null, [
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./Takeaway.vue_vue_type_script_setup_true_lang-BNu9JjwH.js";
1
+ import { _ as f } from "./Takeaway.vue_vue_type_script_setup_true_lang-CVsyWrTL.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,14 +1,14 @@
1
- import { getCurrentInstance as te, defineComponent as oe, computed as h, watch as ne, h as R, resolveComponent as S, createElementBlock as C, openBlock as _, Fragment as O, normalizeClass as D, createElementVNode as k, createVNode as V, unref as t, isRef as j, withCtx as P, renderList as ie, createBlock as G, createCommentVNode as $, toDisplayString as I, withModifiers as H } from "vue";
2
- import { D as q, u as Q, O as W, J as N, G as z, H as L, A as se, at as J } from "./menu-DcGo3sn5.js";
1
+ import { getCurrentInstance as te, defineComponent as oe, computed as h, watch as ne, h as R, resolveComponent as S, createElementBlock as C, openBlock as _, Fragment as O, normalizeClass as D, createElementVNode as k, createVNode as V, unref as t, isRef as j, withCtx as P, renderList as ie, createBlock as G, createCommentVNode as $, toDisplayString as B, withModifiers as H } from "vue";
2
+ import { G as q, u as Q, O as W, J as N, A as z, H as L, B as se, an as J } from "./menu-D_Cckz_p.js";
3
3
  import { useI18n as X, useCoreStore as re } from "@feedmepos/mf-common";
4
4
  import { useDialog as le, useSnackbar as Z, FmButtonVariant as A, components as ce, useBreakpoints as de } from "@feedmepos/ui-library";
5
- import { _ as ue } from "./app-D23N7tJ0.js";
5
+ import { _ as ue } from "./app-CAhJXoa3.js";
6
6
  import { _ as me } from "./index.vue_vue_type_script_setup_true_lang-BgqsTzLI.js";
7
- import { a as ye, l as ee, T as pe } from "./index-CTUaJyIh.js";
7
+ import { a as ye, l as ee, T as pe } from "./index-CSuF-4Sa.js";
8
8
  import { u as fe } from "./search-BAPEUu1R.js";
9
- import { f as F } from "./currency-Clgvy00I.js";
9
+ import { f as F } from "./currency-D2fl1Bk0.js";
10
10
  import { defineStore as _e } from "pinia";
11
- import { C as ke } from "./catalog-DcciqmWK.js";
11
+ import { C as ke } from "./catalog-C1fna-Yk.js";
12
12
  import { c as ve } from "./createComponentProgrammatically-Bt2rn1IQ.js";
13
13
  function we(T, U, l, m) {
14
14
  var y, v, w, g;
@@ -123,7 +123,7 @@ const ge = _e("takeaway-manager", () => {
123
123
  };
124
124
  }), be = {
125
125
  key: 0,
126
- class: /* @__PURE__ */ D(["flex-1 overflow-hidden", "space-y-16", "flex flex-col", "overflow-hidden"])
126
+ class: /* @__PURE__ */ D(["flex-1 overflow-hidden", "space-y-16", "flex flex-col", "overflow-hidden", "pt-16"])
127
127
  }, he = {
128
128
  class: "flex items-center space-x-8 justify-end"
129
129
  }, xe = {
@@ -140,7 +140,7 @@ const ge = _e("takeaway-manager", () => {
140
140
  class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
141
141
  }, Ke = {
142
142
  class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
143
- }, Ie = {
143
+ }, Be = {
144
144
  key: 1,
145
145
  class: "xs:pt-24"
146
146
  }, je = /* @__PURE__ */ oe({
@@ -227,7 +227,7 @@ const ge = _e("takeaway-manager", () => {
227
227
  }) : null])
228
228
  }]), M = de(), b = h(() => M.breakpoints.value.xs);
229
229
  return (o, s) => {
230
- const p = S("fm-search"), x = S("fm-table"), B = S("fm-button");
230
+ const p = S("fm-search"), x = S("fm-table"), I = S("fm-button");
231
231
  return g.value.length ? (_(), C(O, {
232
232
  key: 0
233
233
  }, [b.value ? (_(), C(O, {
@@ -244,7 +244,7 @@ const ge = _e("takeaway-manager", () => {
244
244
  onClick: () => {
245
245
  f.value.edit && t(m).updateTakeaway(n);
246
246
  }
247
- }, [k("div", Ue, [k("p", Me, I(n.name), 1), k("p", Ee, I(`${t(J)(t(l).categorizedItems, n.usedBy).flatMap((E) => E.items).length ?? 0} items linked`), 1), k("p", Ke, " Price: " + I(w.value.symbol) + I(t(F)(n.price, !1)), 1)]), f.value.delete ? (_(), G(B, {
247
+ }, [k("div", Ue, [k("p", Me, B(n.name), 1), k("p", Ee, B(`${t(J)(t(l).categorizedItems, n.usedBy).flatMap((E) => E.items).length ?? 0} items linked`), 1), k("p", Ke, " Price: " + B(w.value.symbol) + B(t(F)(n.price, !1)), 1)]), f.value.delete ? (_(), G(I, {
248
248
  key: 0,
249
249
  variant: t(A).Tertiary,
250
250
  "text-color": "neutral-gray-400",
@@ -271,7 +271,7 @@ const ge = _e("takeaway-manager", () => {
271
271
  })
272
272
  }, null, 8, ["column-defs", "loading", "page-size", "row-data", "search-value"])]),
273
273
  _: 1
274
- })]))], 64)) : (_(), C("div", Ie, [V(t(me), {
274
+ })]))], 64)) : (_(), C("div", Be, [V(t(me), {
275
275
  subtitle: t(e)("menu.takeaway.empty.subtitle"),
276
276
  title: t(e)("menu.takeaway.empty.title")
277
277
  }, {
@@ -289,7 +289,7 @@ const ge = _e("takeaway-manager", () => {
289
289
  }, {
290
290
  default: P(({
291
291
  trigger: n
292
- }) => [V(B, {
292
+ }) => [V(I, {
293
293
  "prepend-icon": "add",
294
294
  label: t(e)("menu.takeaway.empty.action"),
295
295
  onClick: H(n, ["stop"])