@feedmepos/mf-menu 0.32.61-dev.3 → 0.32.63-dev.1

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 (98) hide show
  1. package/dist/{App-TgWTfhbY.js → App-DhfTGlgM.js} +466 -461
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-BeW-aCRL.js → ApplyProduct.vue_vue_type_script_setup_true_lang-C5-8qdJK.js} +3 -3
  3. package/dist/{ApplyProductDialog.vue_vue_type_script_setup_true_lang-C8il14gy.js → ApplyProductDialog.vue_vue_type_script_setup_true_lang-CXm-0H18.js} +8 -8
  4. package/dist/{Catalog-hnhpn9Of.js → Catalog-WuZJfM6l.js} +78 -78
  5. package/dist/{Category-DIubPG8Y.js → Category-BeIo7XWY.js} +20 -20
  6. package/dist/{Category-wXfspM5v.js → Category-D-cQQCPS.js} +19 -19
  7. package/dist/{CookingGuide-CR1cBZ3S.js → CookingGuide-B-yvD9ZA.js} +88 -88
  8. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-DlpZfbx-.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-2_yzXoa4.js} +1 -1
  9. package/dist/{Group-DbG3cLfp.js → Group-13i5igrS.js} +5 -5
  10. package/dist/{Group-DTzbprcr.js → Group-CY8lUzQG.js} +1 -1
  11. package/dist/{Group.vue_vue_type_script_setup_true_lang-CMEdW613.js → Group.vue_vue_type_script_setup_true_lang-DZhxy0tb.js} +95 -94
  12. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-aLcNgJLb.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CWqv-oUd.js} +13 -13
  13. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-CnChdePY.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-DTs4Vpdi.js} +219 -220
  14. package/dist/{Ingredient-BBGzGfS2.js → Ingredient-vrUOW6gk.js} +49 -49
  15. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-B9CfZ7oA.js → InventoryBinding.vue_vue_type_script_setup_true_lang-xcVjRjqD.js} +2 -2
  16. package/dist/{LinkProductSideSheet-CLd4LEy4.js → LinkProductSideSheet-DMbJG6wf.js} +8 -8
  17. package/dist/{MenuSetting-BuS9_e0y.js → MenuSetting-Di2xwm00.js} +10 -10
  18. package/dist/{OrderPacing-2QPouAql.js → OrderPacing-CCe-IcGO.js} +28 -28
  19. package/dist/{PrintRoute-D-SiyoaP.js → PrintRoute-CcfObcHY.js} +27 -27
  20. package/dist/{Product-nmlc3rrr.js → Product-ChUVnMgG.js} +1 -1
  21. package/dist/{Product.vue_vue_type_script_setup_true_lang-DYn_bqcn.js → Product.vue_vue_type_script_setup_true_lang-C9Qp50hL.js} +153 -152
  22. package/dist/{ProductInternalTools-BgDSe1XP.js → ProductInternalTools-D9HXhgo5.js} +80 -79
  23. package/dist/{Products-BPa6wC-o.js → Products-Bly2ktEC.js} +82 -81
  24. package/dist/{Publish-DbI1wemN.js → Publish-C8ubb8Qf.js} +113 -113
  25. package/dist/{Recipe-CAgscHCL.js → Recipe-BpMRLsyO.js} +32 -32
  26. package/dist/{RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-DNG5WX4W.js → RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-BD5OCDRn.js} +1 -1
  27. package/dist/{RuleView.vue_vue_type_script_setup_true_lang-DNk48PUl.js → RuleView.vue_vue_type_script_setup_true_lang-Ba3djmX1.js} +313 -312
  28. package/dist/{Scheduler-C8TXHcb2.js → Scheduler-CiB4b2Fn.js} +9 -9
  29. package/dist/{ServingSequence-CQzQWvUA.js → ServingSequence-BlcyW-dv.js} +18 -18
  30. package/dist/{Setting-gun4ZUQ4.js → Setting-DqkL6YYU.js} +31 -31
  31. package/dist/{Subcategory-CqcWpp94.js → Subcategory-B4Jg_wtT.js} +43 -43
  32. package/dist/{Takeaway-DV_ND3Ts.js → Takeaway-5G3f7jWT.js} +1 -1
  33. package/dist/{Takeaway-DsRU9wBO.js → Takeaway-5rFPYYNA.js} +16 -16
  34. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-GMA7-Hrb.js → Takeaway.vue_vue_type_script_setup_true_lang-CVsOhg_E.js} +23 -23
  35. package/dist/{TranslationFieldSection.vue_vue_type_script_setup_true_lang-DAwsbPs4.js → TranslationFieldSection.vue_vue_type_script_setup_true_lang-CPqxA6JD.js} +1 -1
  36. package/dist/{TranslationSideSheet.vue_vue_type_script_setup_true_lang-DYVBVDBy.js → TranslationSideSheet.vue_vue_type_script_setup_true_lang-yrNuTD-3.js} +8 -9
  37. package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-T71R68sq.js +5836 -0
  38. package/dist/{Unit-BcPn6opY.js → Unit-CAkdmQLg.js} +2 -2
  39. package/dist/{Variant-Wkd9mHWk.js → Variant-BbLQqbAK.js} +13 -13
  40. package/dist/{_id_-CuOgqnZ3.js → _id_-Dzacr40I.js} +13 -13
  41. package/dist/{app-BsNMWUZ9.js → app-4yWs09Fr.js} +495 -495
  42. package/dist/{app-kS8tUq_w.js → app-Deov1985.js} +3 -3
  43. package/dist/app.js +1 -1
  44. package/dist/apps/mf-menu/src/api/media.d.ts +161 -0
  45. package/dist/apps/mf-menu/src/app.d.ts +340 -0
  46. package/dist/apps/mf-menu/src/components/feature/CategoryManager/CategoriesSelector.vue.d.ts +1 -1
  47. package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/productImages.d.ts +150 -0
  48. package/dist/apps/mf-menu/src/components/feature/TreeEditor/image/CustomDimensionDialog.vue.d.ts +17 -0
  49. package/dist/apps/mf-menu/src/components/feature/TreeEditor/image/ImageUploadDialog.vue.d.ts +16 -1
  50. package/dist/apps/mf-menu/src/components/feature/TreeEditor/image/ManageImageDrawer.vue.d.ts +42 -0
  51. package/dist/apps/mf-menu/src/components/feature/TreeEditor/image/ProductImageField.vue.d.ts +75 -0
  52. package/dist/apps/mf-menu/src/components/feature/TreeEditor/image/RegenerateImageDialog.vue.d.ts +17 -0
  53. package/dist/apps/mf-menu/src/components/feature/TreeEditor/item/ProductDetail.vue.d.ts +3 -6
  54. package/dist/apps/mf-menu/src/components/feature/TreeEditor/store/menuV2.d.ts +1 -1
  55. package/dist/apps/mf-menu/src/composable/remyImageTarget.d.ts +5 -0
  56. package/dist/apps/mf-menu/src/helper/menu.d.ts +14 -1
  57. package/dist/apps/mf-menu/src/stores/menu.d.ts +1 -0
  58. package/dist/apps/mf-menu/src/types/rule.d.ts +2 -0
  59. package/dist/apps/mf-menu/src/views/Catalog/Edit/AddProductPopup/Form.vue.d.ts +3 -2
  60. package/dist/apps/mf-menu/src/views/Catalog/Edit/AddProductPopup/ProductDetail.vue.d.ts +8 -8
  61. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  62. package/dist/assets/{linked-status-CHvHJGH9.js → linked-status-B2WLhKkV.js} +4 -4
  63. package/dist/assets/{menu-export-Bd2A9o3e.js → menu-export-Dcw5a_dN.js} +3 -3
  64. package/dist/assets/{override-menu-cifFGmrk.js → override-menu-cBe2aMY6.js} +4 -4
  65. package/dist/assets/{validate-menu-B8cp1kCt.js → validate-menu-BM-5GK85.js} +3 -3
  66. package/dist/{catalog-BxfmkFrE.js → catalog-DKygS2Cs.js} +6 -6
  67. package/dist/{catalogSetting-ebS4mr1i.js → catalogSetting-Bn2TplvM.js} +1 -1
  68. package/dist/currency-DXgNHtK8.js +7 -0
  69. package/dist/dayjs.min-DpX65tgj.js +7 -0
  70. package/dist/discardConfirm-DZwzKO-Q.js +3704 -0
  71. package/dist/{index-CUrfs4iN.js → index-B48KLyqg.js} +61 -61
  72. package/dist/{index-BxvnAb0l.js → index-BEocaqRK.js} +30 -30
  73. package/dist/index-K-MBqJJo.js +222 -0
  74. package/dist/{index.vue_vue_type_script_setup_true_lang-C3c2B-qJ.js → index.vue_vue_type_script_setup_true_lang-Nl505vPi.js} +44918 -51563
  75. package/dist/item-Da3ArD-G.js +13213 -0
  76. package/dist/{jszip.min-DccvCJln.js → jszip.min-Cc2eR4Cq.js} +52 -52
  77. package/dist/linkProducts-GNuUxFEE.js +331 -0
  78. package/dist/{memberPricing-FatZi_6k.js → memberPricing-T-jr7tn1.js} +1 -1
  79. package/dist/{menu-DcPMF0nf.js → menu-DSDRAil-.js} +1 -1
  80. package/dist/{menuV2-CVo-19H-.js → menuV2-fTlJdjxi.js} +89 -87
  81. package/dist/mf-menu.css +1 -1
  82. package/dist/{order_pacing-CWDYwJcW.js → order_pacing-Dgo1fySS.js} +17 -17
  83. package/dist/packages/shared/src/helpers/agentCode.d.ts +9 -0
  84. package/dist/{priceTier-C58Ixr5m.js → priceTier-aT_gIfrN.js} +3 -3
  85. package/dist/{rules-DwomOoC9.js → rules-Cx2hkV20.js} +8 -8
  86. package/dist/{scheduler-CJcxPgeF.js → scheduler-Bd-q7yF8.js} +62 -62
  87. package/dist/{toExcel-DjWt9SEm.js → toExcel-qfjR83qT.js} +2 -2
  88. package/dist/{unit-KhTILQfe.js → unit-n1T9grbM.js} +64 -64
  89. package/package.json +3 -3
  90. package/dist/Thumbnail.vue_vue_type_script_setup_true_lang-C5hn1NYM.js +0 -399
  91. package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BFUOqfDO.js +0 -6058
  92. package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/thumbnailUpload.d.ts +0 -6
  93. package/dist/apps/mf-menu/src/components/feature/TreeEditor/image/ImageUploadForm.vue.d.ts +0 -38
  94. package/dist/currency-BM5m7MDE.js +0 -7
  95. package/dist/dayjs.min-X4vHGjJn.js +0 -7
  96. package/dist/discardConfirm-BHni0LNu.js +0 -28
  97. package/dist/index-CisutoS9.js +0 -156
  98. package/dist/item-26-Gw7Ug.js +0 -9098
@@ -1,10 +1,10 @@
1
1
  import { defineComponent as W, computed as y, h as p, withModifiers as I, ref as M, resolveComponent as h, createBlock as k, openBlock as c, unref as i, withCtx as _, createElementBlock as F, createVNode as f, Fragment as z, createElementVNode as s, renderList as H, toDisplayString as x, createCommentVNode as q } from "vue";
2
- import { a6 as d, a7 as Y, P as Q, u as G, B as J, a5 as X } from "./index.vue_vue_type_script_setup_true_lang-C3c2B-qJ.js";
2
+ import { v as d, x as Y, i as Q, u as G, b as J, _ as X } from "./index.vue_vue_type_script_setup_true_lang-Nl505vPi.js";
3
3
  import { useI18n as Z } from "@feedmepos/mf-common";
4
4
  import { components as ee, useDialog as te, useSnackbar as ne } from "@feedmepos/ui-library";
5
5
  import { _ as ae } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
6
- import { _ as oe } from "./app-BsNMWUZ9.js";
7
- import { d as le, _ as se, u as re, c as ue } from "./scheduler-CJcxPgeF.js";
6
+ import { _ as oe } from "./app-4yWs09Fr.js";
7
+ import { d as le, _ as se, u as re, c as ue } from "./scheduler-Bd-q7yF8.js";
8
8
  import { _ as ce } from "./PageLayout.vue_vue_type_script_setup_true_lang-BVmHMvKD.js";
9
9
  const ie = {
10
10
  class: "flex flex-1 justify-end"
@@ -27,7 +27,7 @@ const ie = {
27
27
  setup(ge) {
28
28
  const {
29
29
  t: a
30
- } = Z(), B = y(() => [{
30
+ } = Z(), O = y(() => [{
31
31
  accessorKey: "name",
32
32
  header: () => a("menu.scheduler.table.columns.name"),
33
33
  cell: (e) => e.getValue(),
@@ -86,7 +86,7 @@ const ie = {
86
86
  [d.enum.friday]: "Friday",
87
87
  [d.enum.saturday]: "Saturday",
88
88
  [d.enum.sunday]: "Sunday"
89
- }, O = Object.keys(r).slice(0, 5), P = Object.keys(r).slice(5);
89
+ }, B = Object.keys(r).slice(0, 5), K = Object.keys(r).slice(5);
90
90
  function L(e, t) {
91
91
  if (e === Y.enum.daily || t.length === Object.keys(r).length)
92
92
  return "Daily";
@@ -97,7 +97,7 @@ const ie = {
97
97
  includes: [],
98
98
  excludes: []
99
99
  });
100
- return v.length === 1 ? `Daily except ${r[v[0]]}` : $(o, O) ? "Weekdays" : $(o, P) ? "Weekends" : o.every((u, n) => {
100
+ return v.length === 1 ? `Daily except ${r[v[0]]}` : $(o, B) ? "Weekdays" : $(o, K) ? "Weekends" : o.every((u, n) => {
101
101
  if (n === 0) return !0;
102
102
  const b = l.findIndex((U) => U === u);
103
103
  return o[n - 1] === l[b - 1];
@@ -115,12 +115,12 @@ const ie = {
115
115
  var t;
116
116
  C.value || (t = S.value) == null || t.show(e);
117
117
  }
118
- const K = te();
118
+ const P = te();
119
119
  function R(e) {
120
120
  let t = [p("span", a("menu.scheduler.dialogs.remove.message", {
121
121
  name: e.name
122
122
  }))];
123
- K.open({
123
+ P.open({
124
124
  title: a("menu.scheduler.dialogs.remove.title"),
125
125
  contentComponent: p("div", t),
126
126
  primaryActions: {
@@ -177,7 +177,7 @@ const ie = {
177
177
  class: "xs:hidden block"
178
178
  }, {
179
179
  default: _(() => [f(o, {
180
- "column-defs": B.value,
180
+ "column-defs": O.value,
181
181
  "page-size": m.value.length,
182
182
  "row-data": m.value,
183
183
  "search-value": g.value,
@@ -1,25 +1,25 @@
1
- import { defineComponent as H, ref as E, computed as M, resolveComponent as y, createElementBlock as g, openBlock as d, Fragment as S, renderSlot as ae, createVNode as l, unref as t, withCtx as m, createElementVNode as b, toDisplayString as U, onBeforeMount as oe, watch as D, watchEffect as se, h as T, 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 E, computed as M, resolveComponent as y, createElementBlock as g, openBlock as d, Fragment as S, renderSlot as ae, createVNode as l, unref as t, withCtx as m, createElementVNode as b, toDisplayString as U, onBeforeMount as oe, watch as D, watchEffect as se, h as T, 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 { G as J, u as W, B as X, P as Z, J as I, K as L, a5 as de, y as me } from "./index.vue_vue_type_script_setup_true_lang-C3c2B-qJ.js";
3
+ import { d as H, u as W, b as X, i as Z, g as I, h as L, _ as de, F as me } from "./index.vue_vue_type_script_setup_true_lang-Nl505vPi.js";
4
4
  import { useI18n as ee, ItemSelector as pe, useCoreStore as fe } from "@feedmepos/mf-common";
5
5
  import { useSnackbar as ne, components as K, useDialog as _e, FmButtonVariant as z, useBreakpoints as ve } from "@feedmepos/ui-library";
6
6
  import { _ as ge } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
7
- import { _ as he, R as ye } from "./app-BsNMWUZ9.js";
7
+ import { _ as he, R as ye } from "./app-4yWs09Fr.js";
8
8
  import { c as be } from "./check-C9mY6LiX.js";
9
9
  import { _ as ke } from "./PageLayout.vue_vue_type_script_setup_true_lang-BVmHMvKD.js";
10
10
  import { u as xe } from "./search-BAPEUu1R.js";
11
- import { u as Se } from "./app-kS8tUq_w.js";
11
+ import { u as Se } from "./app-Deov1985.js";
12
12
  import { c as Ce } from "./createComponentProgrammatically-Bt2rn1IQ.js";
13
- const qe = { class: "fm-typo-en-title-md-600" }, we = { class: "space-y-32 flex flex-col h-full" }, Ve = { class: "flex gap-8 items-center justify-start" }, Fe = /* @__PURE__ */ H({
13
+ const qe = { class: "fm-typo-en-title-md-600" }, we = { class: "space-y-32 flex flex-col h-full" }, Ve = { class: "flex gap-8 items-center justify-start" }, Fe = /* @__PURE__ */ J({
14
14
  __name: "Form",
15
15
  props: {
16
16
  action: {},
17
17
  initialValue: {}
18
18
  },
19
19
  emits: ["submitted"],
20
- setup(Y, { expose: k, emit: P }) {
21
- const { t: r } = ee(), p = Y, R = P, s = E(
22
- p.initialValue ? J(p.initialValue) : {
20
+ setup(Y, { expose: k, emit: R }) {
21
+ const { t: r } = ee(), p = Y, P = R, s = E(
22
+ p.initialValue ? H(p.initialValue) : {
23
23
  _id: "",
24
24
  name: "",
25
25
  position: 0,
@@ -54,7 +54,7 @@ const qe = { class: "fm-typo-en-title-md-600" }, we = { class: "space-y-32 flex
54
54
  else
55
55
  throw new Error("Invalid action");
56
56
  } finally {
57
- u.value = !1, R("submitted");
57
+ u.value = !1, P("submitted");
58
58
  }
59
59
  }
60
60
  k({
@@ -71,7 +71,7 @@ const qe = { class: "fm-typo-en-title-md-600" }, we = { class: "space-y-32 flex
71
71
  return a[v._id] = [...a[h._id] ?? [], h], a;
72
72
  }, {});
73
73
  }
74
- const $ = M(() => N(J(s.value.items)));
74
+ const $ = M(() => N(H(s.value.items)));
75
75
  return (_, a) => {
76
76
  const v = y("fm-text-field"), h = y("fm-button"), e = y("fm-side-sheet");
77
77
  return d(), g(S, null, [
@@ -144,19 +144,19 @@ const qe = { class: "fm-typo-en-title-md-600" }, we = { class: "space-y-32 flex
144
144
  }, Ie = {
145
145
  key: 1,
146
146
  class: /* @__PURE__ */ Q(["flex-1", "overflow-scroll", "divide-y divide-fm-color-neutral-gray-100", "pb-64"])
147
- }, Le = ["onClick"], Pe = {
147
+ }, Le = ["onClick"], Re = {
148
148
  class: "flex-1 space-y-4"
149
- }, Re = {
149
+ }, Pe = {
150
150
  class: "fm-typo-en-body-lg-600"
151
151
  }, Be = {
152
152
  class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
153
- }, He = /* @__PURE__ */ H({
153
+ }, Je = /* @__PURE__ */ J({
154
154
  __name: "ServingSequence",
155
155
  setup(Y) {
156
156
  const {
157
157
  searchKey: k,
158
- filter: P
159
- } = xe(), r = W(), p = ne(), R = X(p), s = Z(R), C = _e(), i = fe(), B = Se(), q = ce(), {
158
+ filter: R
159
+ } = xe(), r = W(), p = ne(), P = X(p), s = Z(P), C = _e(), i = fe(), B = Se(), q = ce(), {
160
160
  t: c
161
161
  } = ee(), u = (e) => {
162
162
  e && e !== me.enum.v4 && q.push({
@@ -183,7 +183,7 @@ const qe = { class: "fm-typo-en-title-md-600" }, we = { class: "space-y-32 flex
183
183
  });
184
184
  const f = M(() => r.serveSequence.filter(({
185
185
  name: e
186
- }) => P([e])) ?? []);
186
+ }) => R([e])) ?? []);
187
187
  function w(e) {
188
188
  C.open({
189
189
  title: "Delete sequence",
@@ -304,7 +304,7 @@ const qe = { class: "fm-typo-en-title-md-600" }, we = { class: "space-y-32 flex
304
304
  key: o._id,
305
305
  class: Q(["py-12 px-16", "flex items-center space-x-8"]),
306
306
  onClick: (Oe) => a(o)
307
- }, [b("div", Pe, [b("p", Re, U(o.name), 1), b("p", Be, U(t(c)("menu.common.labels.products_linked", {
307
+ }, [b("div", Re, [b("p", Pe, U(o.name), 1), b("p", Be, U(t(c)("menu.common.labels.products_linked", {
308
308
  count: o.items.length
309
309
  })), 1)]), l(O, {
310
310
  servingSequence: o
@@ -350,5 +350,5 @@ const qe = { class: "fm-typo-en-title-md-600" }, we = { class: "space-y-32 flex
350
350
  }
351
351
  });
352
352
  export {
353
- He as default
353
+ Je as default
354
354
  };
@@ -1,12 +1,12 @@
1
- import { defineComponent as ne, computed as p, ref as se, watch as ue, watchEffect as ie, resolveComponent as m, createElementBlock as M, openBlock as r, normalizeClass as H, createVNode as s, withCtx as c, createElementVNode as v, createBlock as g, createCommentVNode as y, unref as e, Fragment as D, renderList as P, createTextVNode as re, toDisplayString as T } from "vue";
2
- import { u as me, B as ce, y as de, P as pe, z as ve, U as k, G as A } from "./index.vue_vue_type_script_setup_true_lang-C3c2B-qJ.js";
1
+ import { defineComponent as ne, computed as p, ref as se, watch as ue, watchEffect as ie, resolveComponent as m, createElementBlock as M, openBlock as r, normalizeClass as H, createVNode as s, withCtx as c, createElementVNode as v, createBlock as g, createCommentVNode as y, unref as e, Fragment as D, renderList as $, createTextVNode as re, toDisplayString as F } from "vue";
2
+ import { u as me, b as ce, F as de, i as pe, a as ve, k, d as T } from "./index.vue_vue_type_script_setup_true_lang-Nl505vPi.js";
3
3
  import { useCoreStore as ge, useI18n as fe } from "@feedmepos/mf-common";
4
- import { useSnackbar as _e, useDialog as be, FmButtonVariant as $, FmButtonColorThemeVariant as R, components as ye } from "@feedmepos/ui-library";
5
- import { _ as F } from "./FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js";
6
- import { _ as ke } from "./RuleView.vue_vue_type_script_setup_true_lang-DNk48PUl.js";
7
- import { _ as z, a as xe } from "./GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-aLcNgJLb.js";
8
- import { C as f, a as x } from "./catalogSetting-ebS4mr1i.js";
9
- import { C as Ce } from "./catalog-BxfmkFrE.js";
4
+ import { useSnackbar as _e, useDialog as be, FmButtonVariant as P, FmButtonColorThemeVariant as R, components as ye } from "@feedmepos/ui-library";
5
+ import { _ as A } from "./FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js";
6
+ import { _ as ke } from "./RuleView.vue_vue_type_script_setup_true_lang-Ba3djmX1.js";
7
+ import { _ as z, a as xe } from "./GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CWqv-oUd.js";
8
+ import { C as f, a as x } from "./catalogSetting-Bn2TplvM.js";
9
+ import { C as Ce } from "./catalog-DKygS2Cs.js";
10
10
  const Oe = {
11
11
  class: /* @__PURE__ */ H(["overflow-scroll", "flex-1", "xs:px-16 xs:py-16", "pt-16"])
12
12
  }, Se = {
@@ -24,20 +24,20 @@ const Oe = {
24
24
  class: "fm-typo-en-body-lg-400"
25
25
  }, we = {
26
26
  class: "fm-typo-en-body-md-400"
27
- }, Te = {
27
+ }, Fe = {
28
28
  class: "flex justify-end"
29
29
  }, He = /* @__PURE__ */ ne({
30
30
  __name: "Setting",
31
- setup(Ae) {
31
+ setup(Te) {
32
32
  const U = ge(), u = me(), j = _e(), I = ce(j), {
33
33
  minor: q
34
- } = I, G = be(), {
34
+ } = I, J = be(), {
35
35
  t: n
36
36
  } = fe(), O = p(() => u.currentCatalog), _ = p(() => !O.value), S = p(() => u.version === de.enum.v4), {
37
- updateMenu: J
38
- } = pe(I), l = se(f.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));
37
+ updateMenu: W
38
+ } = pe(I), l = se(f.initCatalogSetting()), Y = p(() => u.catalogs.filter((t) => t._id !== u.state.currentCatalogId).map((t) => t.name)), G = 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
39
  function L() {
40
- return Y.value.length > 0 ? s("div", {
40
+ return G.value.length > 0 ? s("div", {
41
41
  class: ["flex items-center", "bg-fm-color-system-warning-100", "rounded-lg", "py-16 px-24 space-x-8"]
42
42
  }, [s(ye.FmIcon, {
43
43
  color: "system-warning-300",
@@ -63,7 +63,7 @@ const Oe = {
63
63
  });
64
64
  });
65
65
  function K(t) {
66
- const o = l.value.taxSetting, i = o.mode === x.AUTO ? f.manualTax(h.value) : A(o);
66
+ const o = l.value.taxSetting, i = o.mode === x.AUTO ? f.manualTax(h.value) : T(o);
67
67
  i.inclusive ?? (i.inclusive = []);
68
68
  const d = i.inclusive.findIndex((C) => C.systemCode === t.systemCode);
69
69
  d < 0 ? i.inclusive.push(t) : i.inclusive.splice(d, 1, t), N.value = i;
@@ -81,7 +81,7 @@ const Oe = {
81
81
  O.value ? await new Ce({
82
82
  ...O.value,
83
83
  ...t
84
- }, u, J, G).update() : await q(async () => {
84
+ }, u, W, J).update() : await q(async () => {
85
85
  await u.updateMainCatalogSetting({
86
86
  inclusiveTaxes: t.inclusiveTaxes
87
87
  });
@@ -91,11 +91,11 @@ const Oe = {
91
91
  });
92
92
  };
93
93
  function X(t, o) {
94
- const i = A(l.value);
94
+ const i = T(l.value);
95
95
  i.markupOptions && (i.markupOptions[t] = o, l.value = i);
96
96
  }
97
97
  function Z(t) {
98
- const o = A(l.value);
98
+ const o = T(l.value);
99
99
  o.markupOptions && (o.markupOptions.splice(t, 1), l.value = o);
100
100
  }
101
101
  return (t, o) => {
@@ -112,11 +112,11 @@ const Oe = {
112
112
  default: c(() => [s(i, {
113
113
  modelValue: l.value.name,
114
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")],
115
+ rules: [(a) => !Y.value.includes(a.trim()) || e(n)("menu.setting.catalog.fields.name.used"), (a) => !!a.trim() || e(n)("menu.setting.catalog.fields.name.required")],
116
116
  label: e(n)("menu.setting.catalog.fields.name.label")
117
117
  }, null, 8, ["modelValue", "rules", "label"]), s(L)]),
118
118
  _: 1
119
- }, 8, ["title"])), s(F, {
119
+ }, 8, ["title"])), s(A, {
120
120
  label: e(n)("menu.setting.tax.title")
121
121
  }, {
122
122
  default: c(() => [s(C, {
@@ -135,7 +135,7 @@ const Oe = {
135
135
  sublabel: e(n)("menu.setting.tax.modes.manual.sublabel")
136
136
  }, null, 8, ["value", "label", "sublabel"])]),
137
137
  _: 1
138
- }, 8, ["model-value"]), l.value.taxSetting.mode === e(x).MANUAL ? (r(), M("div", Ve, [(r(!0), M(D, null, P(h.value, (a) => (r(), g(ee, {
138
+ }, 8, ["model-value"]), l.value.taxSetting.mode === e(x).MANUAL ? (r(), M("div", Ve, [(r(!0), M(D, null, $(h.value, (a) => (r(), g(ee, {
139
139
  key: a.systemCode,
140
140
  "model-value": a.inclusive,
141
141
  value: !0,
@@ -150,7 +150,7 @@ const Oe = {
150
150
  }
151
151
  }, null, 8, ["model-value", "label", "onUpdate:modelValue"]))), 128))])) : y("", !0)]),
152
152
  _: 1
153
- }, 8, ["label"]), !_.value && S.value ? (r(), g(F, {
153
+ }, 8, ["label"]), !_.value && S.value ? (r(), g(A, {
154
154
  key: 1,
155
155
  label: e(n)("menu.setting.link.title")
156
156
  }, {
@@ -174,7 +174,7 @@ const Oe = {
174
174
  "onUpdate:modelValue": o[3] || (o[3] = (a) => l.value.orderFrom = a)
175
175
  }, null, 8, ["items", "model-value"])) : y("", !0)]),
176
176
  _: 1
177
- }, 8, ["label"])) : y("", !0), !_.value && S.value ? (r(), g(F, {
177
+ }, 8, ["label"])) : y("", !0), !_.value && S.value ? (r(), g(A, {
178
178
  key: 2,
179
179
  label: e(n)("menu.setting.markup.title")
180
180
  }, {
@@ -197,13 +197,13 @@ const Oe = {
197
197
  }) => [s(w, {
198
198
  "text-color": e(R).ColorPrimary,
199
199
  "border-color": e(R).ColorPrimary,
200
- variant: e($).Secondary,
200
+ variant: e(P).Secondary,
201
201
  label: "Add markup configuration",
202
202
  "prepend-icon": "add",
203
203
  onClick: a
204
204
  }, null, 8, ["text-color", "border-color", "variant", "onClick"])]),
205
205
  _: 1
206
- }, 8, ["categories", "items"]), (r(!0), M(D, null, P(l.value.markupOptions, (a, b) => (r(), g(z, {
206
+ }, 8, ["categories", "items"]), (r(!0), M(D, null, $(l.value.markupOptions, (a, b) => (r(), g(z, {
207
207
  key: b,
208
208
  categories: e(u).categories,
209
209
  items: e(u).items,
@@ -224,16 +224,16 @@ const Oe = {
224
224
  default: c(() => [v("div", Ue, [v("div", he, [s(ae, {
225
225
  class: "text-fm-color-typo-info bg-fm-color-system-info-100 font-semibold"
226
226
  }, {
227
- default: c(() => [re(" Markup percentage: " + T(a.percentage) + "% ", 1)]),
227
+ default: c(() => [re(" Markup percentage: " + F(a.percentage) + "% ", 1)]),
228
228
  _: 2
229
- }, 1024), v("p", Ne, T(e(n)("menu.setting.markup.config", {
229
+ }, 1024), v("p", Ne, F(e(n)("menu.setting.markup.config", {
230
230
  number: b + 1
231
- })), 1), v("p", we, T(a.includeItems ? e(n)("menu.setting.markup.products.linked", {
231
+ })), 1), v("p", we, F(a.includeItems ? e(n)("menu.setting.markup.products.linked", {
232
232
  count: a.includeItems.length
233
233
  }) : e(n)("menu.setting.markup.products.all")), 1)]), s(w, {
234
- variant: e($).Tertiary,
234
+ variant: e(P).Tertiary,
235
235
  "prepend-icon": "delete",
236
- onClick: (Fe) => Z(b)
236
+ onClick: (Ae) => Z(b)
237
237
  }, null, 8, ["variant", "onClick"])])]),
238
238
  _: 2
239
239
  }, 1032, ["id", "onClick"])]),
@@ -247,7 +247,7 @@ const Oe = {
247
247
  "is-v4": S.value
248
248
  }, null, 8, ["modelValue", "is-main-catalog", "is-v4"]), _.value ? (r(), g(L, {
249
249
  key: 3
250
- })) : y("", !0)]), v("div", Te, [s(w, {
250
+ })) : y("", !0)]), v("div", Fe, [s(w, {
251
251
  label: e(n)("common.save"),
252
252
  type: "submit"
253
253
  }, null, 8, ["label"])])]),
@@ -1,19 +1,19 @@
1
- import { defineComponent as A, ref as x, computed as V, watch as te, resolveComponent as C, createElementBlock as k, openBlock as p, Fragment as z, renderSlot as oe, createVNode as m, unref as n, withCtx as b, createElementVNode as c, renderList as Q, toDisplayString as E, h as M, withModifiers as Y, getCurrentInstance as ne, createBlock as B, createCommentVNode as le } from "vue";
2
- import { useI18n as P } from "@feedmepos/mf-common";
3
- import { useSnackbar as R, components as W, useDialog as X, FmButtonVariant as q, useBreakpoints as se, FmButtonColorThemeVariant as ie } from "@feedmepos/ui-library";
1
+ import { defineComponent as A, ref as x, computed as V, watch as te, resolveComponent as C, createElementBlock as k, openBlock as p, Fragment as z, renderSlot as oe, createVNode as m, unref as n, withCtx as b, createElementVNode as c, renderList as Q, toDisplayString as E, h as M, withModifiers as K, getCurrentInstance as ne, createBlock as U, createCommentVNode as le } from "vue";
2
+ import { useI18n as R } from "@feedmepos/mf-common";
3
+ import { useSnackbar as j, components as W, useDialog as X, FmButtonVariant as q, useBreakpoints as se, FmButtonColorThemeVariant as ie } from "@feedmepos/ui-library";
4
4
  import { _ as re } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
5
- import { B as j, u as J, P as K, J as Z, K as ee, a5 as ce } from "./index.vue_vue_type_script_setup_true_lang-C3c2B-qJ.js";
5
+ import { b as P, u as Y, i as J, g as Z, h as ee, _ as ce } from "./index.vue_vue_type_script_setup_true_lang-Nl505vPi.js";
6
6
  import { _ as ue } from "./PageLayout.vue_vue_type_script_setup_true_lang-BVmHMvKD.js";
7
- import { _ as me } from "./app-BsNMWUZ9.js";
7
+ import { _ as me } from "./app-4yWs09Fr.js";
8
8
  import { c as de } from "./createForm-BoUQeZTd.js";
9
- import { u as pe } from "./discardConfirm-BHni0LNu.js";
9
+ import { u as pe } from "./discardConfirm-DZwzKO-Q.js";
10
10
  import { c as G } from "./object-DVUNCr7w.js";
11
- import { r as fe, u as ae } from "./rules-DwomOoC9.js";
12
- import { _ as _e } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-DYVBVDBy.js";
11
+ import { r as _e, u as ae } from "./rules-Cx2hkV20.js";
12
+ import { _ as fe } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-yrNuTD-3.js";
13
13
  import { c as ve } from "./check-C9mY6LiX.js";
14
14
  import { g as H } from "./translation-fNx6yEpy.js";
15
15
  import { _ as ge } from "./TranslationViewChip.vue_vue_type_script_setup_true_lang-DiK3fi9J.js";
16
- import { a as ye } from "./menu-DcPMF0nf.js";
16
+ import { a as ye } from "./menu-DSDRAil-.js";
17
17
  const be = {
18
18
  class: "fm-typo-en-title-md-600"
19
19
  }, he = {
@@ -27,16 +27,16 @@ const be = {
27
27
  props: {
28
28
  initialValue: {}
29
29
  },
30
- setup(U, {
30
+ setup(B, {
31
31
  expose: w
32
32
  }) {
33
- const h = U, S = R(), F = j(S), T = K(F), d = J(), {
33
+ const h = B, S = j(), F = P(S), T = J(F), d = Y(), {
34
34
  t: l
35
- } = P(), $ = x(!1), o = x(!1), L = x(!1), u = x(void 0), N = (e) => {
35
+ } = R(), $ = x(!1), o = x(!1), L = x(!1), u = x(void 0), N = (e) => {
36
36
  ve.isBoolean(e) ? o.value = e : o.value = !o.value;
37
37
  }, s = x(G(h.initialValue)), O = V(() => !!s.value.name), D = V(() => {
38
- var _;
39
- const e = [], a = "en-US", t = (_ = u.value) == null ? void 0 : _[a];
38
+ var f;
39
+ const e = [], a = "en-US", t = (f = u.value) == null ? void 0 : f[a];
40
40
  return s.value.name && !t && e.push({
41
41
  locale: a,
42
42
  name: s.value.name,
@@ -56,13 +56,13 @@ const be = {
56
56
  s.value.name = e;
57
57
  }
58
58
  const r = pe(() => {
59
- const e = d.subcategories.find((v) => v._id === s.value._id), a = s.value.name !== (e == null ? void 0 : e.name), t = (e == null ? void 0 : e.name_locale) || {}, _ = u.value || {}, y = JSON.stringify(t) !== JSON.stringify(_);
59
+ const e = d.subcategories.find((v) => v._id === s.value._id), a = s.value.name !== (e == null ? void 0 : e.name), t = (e == null ? void 0 : e.name_locale) || {}, f = u.value || {}, y = JSON.stringify(t) !== JSON.stringify(f);
60
60
  return a || y;
61
61
  }, () => {
62
62
  o.value = !1;
63
63
  });
64
- async function f() {
65
- const e = d.subcategories.find((_) => _._id === s.value._id), {
64
+ async function _() {
65
+ const e = d.subcategories.find((f) => f._id === s.value._id), {
66
66
  updateMenu: a
67
67
  } = T, t = u.value;
68
68
  await a({
@@ -85,7 +85,7 @@ const be = {
85
85
  trigger: N,
86
86
  show: o
87
87
  }), (e, a) => {
88
- const t = C("fm-button"), _ = C("FmTooltip"), y = C("FmTextField"), v = C("fm-side-sheet");
88
+ const t = C("fm-button"), f = C("FmTooltip"), y = C("FmTextField"), v = C("fm-side-sheet");
89
89
  return p(), k(z, null, [oe(e.$slots, "default", {
90
90
  trigger: N
91
91
  }), m(v, {
@@ -94,7 +94,7 @@ const be = {
94
94
  "onUpdate:modelValue": a[3] || (a[3] = (g) => o.value = g),
95
95
  "is-container": n(W).FmForm,
96
96
  "is-container-props": {
97
- onValidationSuccess: f,
97
+ onValidationSuccess: _,
98
98
  blameFormChildOnValidationFailed: !0
99
99
  },
100
100
  "max-width": 560,
@@ -119,9 +119,9 @@ const be = {
119
119
  modelValue: s.value.name,
120
120
  "onUpdate:modelValue": a[1] || (a[1] = (g) => s.value.name = g),
121
121
  disabled: !s.value._id,
122
- rules: [n(fe)]
122
+ rules: [n(_e)]
123
123
  }, {
124
- append: b(() => [m(_, {
124
+ append: b(() => [m(f, {
125
125
  variant: "plain",
126
126
  placement: "top",
127
127
  "z-index": 999
@@ -140,7 +140,7 @@ const be = {
140
140
  _: 1
141
141
  }, 8, ["label", "modelValue", "disabled", "rules"])])]),
142
142
  _: 1
143
- }, 8, ["modelValue", "is-container", "is-container-props", "onOn:clickedAway"]), m(_e, {
143
+ }, 8, ["modelValue", "is-container", "is-container-props", "onOn:clickedAway"]), m(fe, {
144
144
  modelValue: L.value,
145
145
  "onUpdate:modelValue": a[4] || (a[4] = (g) => L.value = g),
146
146
  title: n(l)("menu.subcategory.title"),
@@ -170,13 +170,13 @@ const be = {
170
170
  class: "fm-typo-en-body-lg-600"
171
171
  }, Oe = /* @__PURE__ */ A({
172
172
  __name: "SubcategoryTable",
173
- setup(U) {
174
- const w = X(), h = R(), S = j(h), F = K(S), T = ae({
173
+ setup(B) {
174
+ const w = X(), h = j(), S = P(h), F = J(S), T = ae({
175
175
  dialog: w,
176
176
  menuLoader: F
177
- }), d = V(() => J().subcategories), l = x(""), $ = V(() => d.value.filter((i) => i.name.toLowerCase().includes(l.value.toLowerCase()))), {
177
+ }), d = V(() => Y().subcategories), l = x(""), $ = V(() => d.value.filter((i) => i.name.toLowerCase().includes(l.value.toLowerCase()))), {
178
178
  t: o
179
- } = P(), L = x([{
179
+ } = R(), L = x([{
180
180
  accessorKey: "name",
181
181
  header: () => o("menu.subcategory.columns.title"),
182
182
  enableSorting: !1,
@@ -184,12 +184,12 @@ const be = {
184
184
  width: "auto"
185
185
  },
186
186
  cell: (i) => {
187
- const r = i.row.original, f = i.getValue();
187
+ const r = i.row.original, _ = i.getValue();
188
188
  return M("div", {
189
189
  class: "flex items-center gap-8"
190
190
  }, [M("span", {
191
191
  class: "break-all"
192
- }, f), r.name_locale ? M(ge, {
192
+ }, _), r.name_locale ? M(ge, {
193
193
  nameLocale: r.name_locale ?? {}
194
194
  }) : null]);
195
195
  }
@@ -210,7 +210,7 @@ const be = {
210
210
  disabled: !r._id,
211
211
  variant: "tertiary",
212
212
  textColor: "neutral-gray-400",
213
- onClick: Y(async () => {
213
+ onClick: K(async () => {
214
214
  await u(r);
215
215
  }, ["stop", "prevent"])
216
216
  })]);
@@ -247,7 +247,7 @@ const be = {
247
247
  });
248
248
  }
249
249
  async function N(i) {
250
- const r = i.map((f) => f._id).filter((f) => !!f);
250
+ const r = i.map((_) => _._id).filter((_) => !!_);
251
251
  await T.rearrange(r);
252
252
  }
253
253
  const s = ne();
@@ -258,8 +258,8 @@ const be = {
258
258
  }
259
259
  const D = se(), I = V(() => D.breakpoints.value.xs);
260
260
  return (i, r) => {
261
- const f = C("FmSearch"), e = C("FmTable"), a = C("FmButton");
262
- return I.value ? (p(), k("div", Le, [c("div", Se, [m(f, {
261
+ const _ = C("FmSearch"), e = C("FmTable"), a = C("FmButton");
262
+ return I.value ? (p(), k("div", Le, [c("div", Se, [m(_, {
263
263
  autofocus: "",
264
264
  modelValue: l.value,
265
265
  "onUpdate:modelValue": r[2] || (r[2] = (t) => l.value = t),
@@ -270,14 +270,14 @@ const be = {
270
270
  }, null, 8, ["modelValue", "placeholder"])]), c("div", Te, [(p(!0), k(z, null, Q($.value, (t) => (p(), k("div", {
271
271
  key: t._id || "",
272
272
  class: "flex flex-row py-12 px-16",
273
- onClick: (_) => O(t)
273
+ onClick: (f) => O(t)
274
274
  }, [c("div", Me, [c("p", Ee, E(t.name), 1)]), m(a, {
275
275
  "text-color": n(ie).NeutralGray400,
276
276
  variant: n(q).Tertiary,
277
277
  "prepend-icon": "delete",
278
278
  disabled: !t._id,
279
- onClick: Y((_) => u(t), ["stop"])
280
- }, null, 8, ["text-color", "variant", "disabled", "onClick"])], 8, Ne))), 128))])])) : (p(), k("div", we, [c("div", Fe, [c("div", $e, [m(f, {
279
+ onClick: K((f) => u(t), ["stop"])
280
+ }, null, 8, ["text-color", "variant", "disabled", "onClick"])], 8, Ne))), 128))])])) : (p(), k("div", we, [c("div", Fe, [c("div", $e, [m(_, {
281
281
  modelValue: l.value,
282
282
  "onUpdate:modelValue": r[0] || (r[0] = (t) => l.value = t),
283
283
  autofocus: "",
@@ -302,19 +302,19 @@ const be = {
302
302
  })]));
303
303
  };
304
304
  }
305
- }), Be = { class: "flex-1 flex justify-between gap-8 pl-8" }, Ue = { class: "flex items-center" }, De = { class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4" }, Ie = { class: "fm-typo-en-body-md-600 font-semibold" }, aa = /* @__PURE__ */ A({
305
+ }), Ue = { class: "flex-1 flex justify-between gap-8 pl-8" }, Be = { class: "flex items-center" }, De = { class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4" }, Ie = { class: "fm-typo-en-body-md-600 font-semibold" }, aa = /* @__PURE__ */ A({
306
306
  __name: "Subcategory",
307
- setup(U) {
308
- const w = X(), h = R(), S = j(h), F = K(S), T = ae({ dialog: w, menuLoader: F }), d = V(() => J().subcategories), { t: l } = P();
307
+ setup(B) {
308
+ const w = X(), h = j(), S = P(h), F = J(S), T = ae({ dialog: w, menuLoader: F }), d = V(() => Y().subcategories), { t: l } = R();
309
309
  function $() {
310
310
  T.create();
311
311
  }
312
312
  const o = V(() => d.value.length);
313
- return ye().resetOnMount(), (L, u) => (p(), B(ue, {
313
+ return ye().resetOnMount(), (L, u) => (p(), U(ue, {
314
314
  heading: n(l)("menu.subcategory.title")
315
315
  }, {
316
316
  default: b(() => [
317
- d.value.length > 0 ? (p(), B(Oe, { key: 0 })) : (p(), B(n(ce), {
317
+ d.value.length > 0 ? (p(), U(Oe, { key: 0 })) : (p(), U(n(ce), {
318
318
  key: 1,
319
319
  action: {
320
320
  text: n(l)("menu.subcategory.add"),
@@ -325,13 +325,13 @@ const be = {
325
325
  }, null, 8, ["action", "subtitle", "title"]))
326
326
  ]),
327
327
  "append-heading": b(() => [
328
- c("div", Be, [
329
- c("div", Ue, [
328
+ c("div", Ue, [
329
+ c("div", Be, [
330
330
  c("div", De, [
331
331
  c("p", Ie, E(o.value), 1)
332
332
  ])
333
333
  ]),
334
- d.value.length > 0 ? (p(), B(re, {
334
+ d.value.length > 0 ? (p(), U(re, {
335
335
  key: 0,
336
336
  label: n(l)("menu.subcategory.add"),
337
337
  "prepend-icon": "add",
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./Takeaway.vue_vue_type_script_setup_true_lang-GMA7-Hrb.js";
1
+ import { _ as f } from "./Takeaway.vue_vue_type_script_setup_true_lang-CVsOhg_E.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -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 v, u as w, P as x, J as E, K as M } from "./index.vue_vue_type_script_setup_true_lang-C3c2B-qJ.js";
2
+ import { b as v, u as w, i as x, g as E, h as M } from "./index.vue_vue_type_script_setup_true_lang-Nl505vPi.js";
3
3
  import { useI18n as T } from "@feedmepos/mf-common";
4
- import { useSnackbar as V } from "@feedmepos/ui-library";
5
- import { _ as h } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
4
+ import { useSnackbar as h } from "@feedmepos/ui-library";
5
+ import { _ as V } 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-BVmHMvKD.js";
7
- import { _ as N } from "./Takeaway.vue_vue_type_script_setup_true_lang-GMA7-Hrb.js";
8
- import { T as S, l as B } from "./index-BxvnAb0l.js";
9
- import { a as L } from "./menu-DcPMF0nf.js";
10
- const O = { 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" }, P = { 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-CVsOhg_E.js";
8
+ import { T as S, l as L } from "./index-BEocaqRK.js";
9
+ import { a as O } from "./menu-DSDRAil-.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" }, D = { class: "fm-typo-en-body-md-600 font-semibold" }, H = /* @__PURE__ */ f({
11
11
  __name: "Takeaway",
12
- setup(D) {
13
- const u = V(), l = v(u), c = w(), p = x(l), _ = y(() => c.rules.item.bindToVariant), n = k(0), { t: r } = T();
14
- return L().resetOnMount(), (I, o) => (d(), i(C, {
12
+ setup(I) {
13
+ const u = h(), l = v(u), c = w(), p = x(l), _ = y(() => c.rules.item.bindToVariant), n = k(0), { t: r } = T();
14
+ return O().resetOnMount(), (P, o) => (d(), i(C, {
15
15
  heading: a(r)("menu.takeaway.title")
16
16
  }, {
17
17
  default: s(() => [
@@ -20,10 +20,10 @@ const O = { 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", O, [
24
- t("div", U, [
23
+ t("div", U, [
24
+ t("div", B, [
25
25
  t("div", F, [
26
- t("p", P, b(n.value), 1)
26
+ t("p", D, b(n.value), 1)
27
27
  ])
28
28
  ]),
29
29
  t("div", null, [
@@ -37,13 +37,13 @@ const O = { class: "flex-1 flex justify-between gap-8 pl-8" }, U = { class: "fle
37
37
  module: a(M).enum.takeaway,
38
38
  operation: a(E.F_OPERATION_TYPE).create,
39
39
  data: e,
40
- link: a(B)(e.usedBy || [])
40
+ link: a(L)(e.usedBy || [])
41
41
  },
42
42
  e.name
43
43
  ))
44
44
  }, {
45
45
  default: s(({ trigger: e }) => [
46
- m(h, {
46
+ m(V, {
47
47
  label: a(r)("menu.takeaway.actions.add"),
48
48
  "prepend-icon": "add",
49
49
  type: "button",
@@ -60,5 +60,5 @@ const O = { 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
+ H as default
64
64
  };