@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,19 +1,19 @@
1
- import { defineComponent as A, ref as F, computed as B, watch as se, resolveComponent as p, createElementBlock as E, openBlock as f, Fragment as Z, renderSlot as re, createVNode as d, unref as e, withCtx as g, createElementVNode as n, toDisplayString as T, h as L, withModifiers as z, getCurrentInstance as ie, renderList as ce, createBlock as U, createCommentVNode as ue } from "vue";
1
+ import { defineComponent as K, ref as F, computed as B, watch as se, resolveComponent as p, createElementBlock as E, openBlock as f, Fragment as Q, renderSlot as re, createVNode as d, unref as e, withCtx as g, createElementVNode as n, toDisplayString as T, h as L, withModifiers as D, getCurrentInstance as ie, renderList as ce, createBlock as U, createCommentVNode as ue } from "vue";
2
2
  import { useI18n as j } from "@feedmepos/mf-common";
3
- import { useSnackbar as Y, components as R, useDialog as ee, FmButtonVariant as H, useBreakpoints as de, FmButtonColorThemeVariant as me } from "@feedmepos/ui-library";
3
+ import { useSnackbar as Y, components as R, useDialog as ee, FmButtonVariant as X, useBreakpoints as de, FmButtonColorThemeVariant as me } from "@feedmepos/ui-library";
4
4
  import { _ as pe } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
5
- import { D as G, u as ge, $ as fe, Y as _e, G as K, a4 as ye, O as q, J as te } from "./menu-DcGo3sn5.js";
5
+ import { G, u as ge, Z as fe, X as _e, A, a3 as ye, O as q, J as te } from "./menu-D_Cckz_p.js";
6
6
  import { _ as ve } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
7
- import { _ as he } from "./app-D23N7tJ0.js";
7
+ import { _ as he } from "./app-CAhJXoa3.js";
8
8
  import { c as be } from "./createForm-BoUQeZTd.js";
9
- import { _ as Q } from "./FormSection.vue_vue_type_script_setup_true_lang-CO4YGYLB.js";
9
+ import { _ as Z } from "./FormSection.vue_vue_type_script_setup_true_lang-CO4YGYLB.js";
10
10
  import { u as xe } from "./discardConfirm-BHni0LNu.js";
11
- import { c as X } from "./object-DVUNCr7w.js";
11
+ import { c as H } from "./object-DVUNCr7w.js";
12
12
  import { r as Ce } from "./rules-CIWTZQfh.js";
13
- import { u as J, a as ke } from "./menu-Dx39P1vR.js";
13
+ import { u as J, a as ke } from "./menu-DT5c-FqY.js";
14
14
  import { c as we } from "./check-C9mY6LiX.js";
15
- import { u as Fe } from "./item-DH1xf2Sa.js";
16
- import { u as oe } from "./category-bhqVqDzJ.js";
15
+ import { u as Fe } from "./item-DX44khy2.js";
16
+ import { u as oe } from "./category-DK_MXlvY.js";
17
17
  import { _ as Ve } from "./index.vue_vue_type_script_setup_true_lang-BgqsTzLI.js";
18
18
  const $e = {
19
19
  class: "fm-typo-en-title-md-600"
@@ -29,7 +29,7 @@ const $e = {
29
29
  class: "flex-1 overflow-hidden min-h-[300px]"
30
30
  }, Oe = {
31
31
  class: "flex gap-8 items-center justify-start"
32
- }, Ue = /* @__PURE__ */ A({
32
+ }, Ue = /* @__PURE__ */ K({
33
33
  __name: "Form",
34
34
  props: {
35
35
  initialValue: {}
@@ -43,7 +43,7 @@ const $e = {
43
43
  t
44
44
  } = j(), O = F(!1), u = F(!1), M = (o) => {
45
45
  we.isBoolean(o) ? u.value = o : u.value = !u.value;
46
- }, i = F(X(_.initialValue)), C = F(""), S = B(() => {
46
+ }, i = F(H(_.initialValue)), C = F(""), S = B(() => {
47
47
  var k;
48
48
  const o = ((k = x.value.find((w) => w.id === i.value.id)) == null ? void 0 : k.items) || [], a = fe(i.value.id);
49
49
  return _e(o, (w) => w.code || w.name, a);
@@ -72,7 +72,7 @@ const $e = {
72
72
  outline: !0,
73
73
  variant: "tertiary",
74
74
  textColor: "neutral-gray-400",
75
- onClick: z(async () => {
75
+ onClick: D(async () => {
76
76
  await s(a);
77
77
  }, ["stop", "prevent"])
78
78
  })]);
@@ -84,12 +84,12 @@ const $e = {
84
84
  async function s(o) {
85
85
  await r.update(o._id);
86
86
  }
87
- const y = B(() => m.version === K.F_MENU_VERSION.enum.v4);
88
- async function D(o) {
87
+ const y = B(() => m.version === A.F_MENU_VERSION.enum.v4);
88
+ async function I(o) {
89
89
  const a = ye(o, i.value.id);
90
90
  await r.updateMany(a);
91
91
  }
92
- const I = xe(() => i.value.name !== _.initialValue.name, () => {
92
+ const z = xe(() => i.value.name !== _.initialValue.name, () => {
93
93
  u.value = !1;
94
94
  });
95
95
  async function c() {
@@ -97,7 +97,7 @@ const $e = {
97
97
  updateMenu: a
98
98
  } = $;
99
99
  await a({
100
- module: K.F_MENU_MODULE_V4_KEY.enum.category,
100
+ module: A.F_MENU_MODULE_V4_KEY.enum.category,
101
101
  operation: te.F_OPERATION_TYPE.update,
102
102
  data: {
103
103
  ...o,
@@ -106,13 +106,13 @@ const $e = {
106
106
  }, i.value.name), M(!1);
107
107
  }
108
108
  return se(() => u.value, () => {
109
- u.value && (i.value = X(_.initialValue));
109
+ u.value && (i.value = H(_.initialValue));
110
110
  }), h({
111
111
  trigger: M,
112
112
  show: u
113
113
  }), (o, a) => {
114
114
  const k = p("FmTextField"), w = p("FmButton"), ae = p("FmSearch"), ne = p("FmTable"), W = p("fm-button"), le = p("fm-side-sheet");
115
- return f(), E(Z, null, [re(o.$slots, "default", {
115
+ return f(), E(Q, null, [re(o.$slots, "default", {
116
116
  trigger: M
117
117
  }), d(le, {
118
118
  id: "group-form",
@@ -124,7 +124,7 @@ const $e = {
124
124
  blameFormChildOnValidationFailed: !0
125
125
  },
126
126
  "max-width": 560,
127
- "onOn:clickedAway": e(I)
127
+ "onOn:clickedAway": e(z)
128
128
  }, {
129
129
  "side-sheet-header": g(() => [n("p", $e, T(e(t)("menu.category.title")), 1)]),
130
130
  "side-sheet-footer": g(() => [n("div", Oe, [d(W, {
@@ -140,7 +140,7 @@ const $e = {
140
140
  variant: "tertiary",
141
141
  onClick: a[3] || (a[3] = () => u.value = !1)
142
142
  }, null, 8, ["label"])])]),
143
- default: g(() => [n("div", Me, [d(Q, {
143
+ default: g(() => [n("div", Me, [d(Z, {
144
144
  title: e(t)("menu.category.detail")
145
145
  }, {
146
146
  default: g(() => [d(k, {
@@ -151,7 +151,7 @@ const $e = {
151
151
  rules: [e(Ce)]
152
152
  }, null, 8, ["label", "modelValue", "disabled", "rules"])]),
153
153
  _: 1
154
- }, 8, ["title"]), d(Q, {
154
+ }, 8, ["title"]), d(Z, {
155
155
  title: e(t)("menu.category.products.title"),
156
156
  class: "flex-1 min-h-0",
157
157
  shrinkable: !0
@@ -179,7 +179,7 @@ const $e = {
179
179
  "shrink-at": !1,
180
180
  "hide-footer": "",
181
181
  "pin-header-row": "",
182
- onDndChanged: D,
182
+ onDndChanged: I,
183
183
  onRowClick: a[2] || (a[2] = (v) => s(v.original))
184
184
  }, null, 8, ["draggable", "page-size", "row-data", "search-value"])])]),
185
185
  _: 1
@@ -192,22 +192,22 @@ const $e = {
192
192
  key: 0
193
193
  }, Pe = {
194
194
  class: "flex justify-end items-center"
195
- }, De = {
196
- class: "w-[320px]"
197
195
  }, Ie = {
196
+ class: "w-[320px]"
197
+ }, ze = {
198
198
  key: 1,
199
199
  class: "flex-1 flex flex-col min-h-0"
200
- }, ze = {
200
+ }, De = {
201
201
  class: "p-8"
202
202
  }, Re = {
203
203
  class: "flex flex-1 flex-col min-h-0 overflow-scroll divide-y divide-fm-color-neutral-gray-100 pb-64"
204
- }, Ke = ["onClick"], Ae = {
204
+ }, Ae = ["onClick"], Ke = {
205
205
  class: "flex-1 space-y-4"
206
206
  }, je = {
207
207
  class: "fm-typo-en-body-lg-600"
208
208
  }, Ye = {
209
209
  class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
210
- }, Ge = /* @__PURE__ */ A({
210
+ }, Ge = /* @__PURE__ */ K({
211
211
  __name: "CategoryTable",
212
212
  setup(N) {
213
213
  const h = ee(), _ = Y(), V = G(_), b = q(V), $ = oe({
@@ -252,7 +252,7 @@ const $e = {
252
252
  disabled: !s.id,
253
253
  variant: "tertiary",
254
254
  textColor: "neutral-gray-400",
255
- onClick: z(async () => {
255
+ onClick: D(async () => {
256
256
  await u(s);
257
257
  }, ["stop", "prevent"])
258
258
  })]);
@@ -274,7 +274,7 @@ const $e = {
274
274
  primaryActions: {
275
275
  text: "Remove",
276
276
  close: !0,
277
- variant: H.Destructive
277
+ variant: X.Destructive
278
278
  },
279
279
  secondaryActions: {
280
280
  text: "Cancel",
@@ -282,7 +282,7 @@ const $e = {
282
282
  }
283
283
  }).onPrimary(async () => {
284
284
  await b.updateMenu({
285
- module: K.F_MENU_MODULE_V4_KEY.enum.category,
285
+ module: A.F_MENU_MODULE_V4_KEY.enum.category,
286
286
  operation: te.F_OPERATION_TYPE.delete,
287
287
  // `category.id` is guaranteed to be defined due to the earlier check in `deleteCategory`.
288
288
  data: l.id
@@ -301,8 +301,8 @@ const $e = {
301
301
  }
302
302
  const S = de(), P = B(() => S.breakpoints.value.xs);
303
303
  return (l, s) => {
304
- const y = p("FmSearch"), D = p("FmTable"), I = p("FmButton");
305
- return P.value ? (f(), E("div", Ie, [n("div", ze, [d(y, {
304
+ const y = p("FmSearch"), I = p("FmTable"), z = p("FmButton");
305
+ return P.value ? (f(), E("div", ze, [n("div", De, [d(y, {
306
306
  autofocus: "",
307
307
  modelValue: r.value,
308
308
  "onUpdate:modelValue": s[2] || (s[2] = (c) => r.value = c),
@@ -310,19 +310,19 @@ const $e = {
310
310
  placeholder: e(t)("menu.common.labels.search_placeholder", {
311
311
  type: "categories"
312
312
  })
313
- }, null, 8, ["modelValue", "placeholder"])]), n("div", Re, [(f(!0), E(Z, null, ce(x.value, (c) => (f(), E("div", {
313
+ }, null, 8, ["modelValue", "placeholder"])]), n("div", Re, [(f(!0), E(Q, null, ce(x.value, (c) => (f(), E("div", {
314
314
  key: c.id || "",
315
315
  class: "flex flex-row py-12 px-16",
316
316
  onClick: (o) => C(c)
317
- }, [n("div", Ae, [n("p", je, T(c.name), 1), n("p", Ye, T(e(t)(c.items.length > 1 ? "menu.common.labels.product_linked_plural" : "menu.common.labels.product_linked_singular", {
317
+ }, [n("div", Ke, [n("p", je, T(c.name), 1), n("p", Ye, T(e(t)(c.items.length > 1 ? "menu.common.labels.product_linked_plural" : "menu.common.labels.product_linked_singular", {
318
318
  count: c.items.length
319
- })), 1)]), d(I, {
319
+ })), 1)]), d(z, {
320
320
  "text-color": e(me).NeutralGray400,
321
- variant: e(H).Tertiary,
321
+ variant: e(X).Tertiary,
322
322
  "prepend-icon": "delete",
323
323
  disabled: !c.id,
324
- onClick: z((o) => u(c), ["stop"])
325
- }, null, 8, ["text-color", "variant", "disabled", "onClick"])], 8, Ke))), 128))])])) : (f(), E("div", Ne, [n("div", Pe, [n("div", De, [d(y, {
324
+ onClick: D((o) => u(c), ["stop"])
325
+ }, null, 8, ["text-color", "variant", "disabled", "onClick"])], 8, Ae))), 128))])])) : (f(), E("div", Ne, [n("div", Pe, [n("div", Ie, [d(y, {
326
326
  modelValue: r.value,
327
327
  "onUpdate:modelValue": s[0] || (s[0] = (c) => r.value = c),
328
328
  autofocus: "",
@@ -331,7 +331,7 @@ const $e = {
331
331
  type: e(t)("menu.category.title")
332
332
  })
333
333
  }, null, 8, ["modelValue", "placeholder"])])]), d(he, null, {
334
- default: g(() => [d(D, {
334
+ default: g(() => [d(I, {
335
335
  "column-defs": O.value,
336
336
  draggable: !0,
337
337
  "page-size": e(m).length,
@@ -347,7 +347,7 @@ const $e = {
347
347
  })]));
348
348
  };
349
349
  }
350
- }), qe = { class: "flex-1 flex justify-between gap-8 pl-8" }, Je = { class: "flex items-center" }, We = { class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4" }, He = { class: "fm-typo-en-body-md-600 font-semibold" }, gt = /* @__PURE__ */ A({
350
+ }), qe = { class: "flex-1 flex justify-between gap-8 pl-8" }, Je = { class: "flex items-center" }, We = { class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4" }, Xe = { class: "fm-typo-en-body-md-600 font-semibold" }, gt = /* @__PURE__ */ K({
351
351
  __name: "Category",
352
352
  setup(N) {
353
353
  const h = ee(), _ = Y(), V = G(_), b = q(V), $ = oe({ dialog: h, menuLoader: b }), { categories: m } = J(), { t: r } = j();
@@ -373,7 +373,7 @@ const $e = {
373
373
  n("div", qe, [
374
374
  n("div", Je, [
375
375
  n("div", We, [
376
- n("p", He, T(t.value), 1)
376
+ n("p", Xe, T(t.value), 1)
377
377
  ])
378
378
  ]),
379
379
  e(m).length > 0 ? (f(), U(pe, {
@@ -1,18 +1,18 @@
1
1
  import { defineComponent as S, computed as k, ref as C, resolveComponent as w, createElementBlock as _, openBlock as u, createElementVNode as i, createVNode as g, unref as n, withCtx as K, Fragment as P, renderList as U, toDisplayString as E, createBlock as V } from "vue";
2
2
  import { useI18n as L } from "@feedmepos/mf-common";
3
- import { useSnackbar as M, useBreakpoints as Y, useDialog as $ } from "@feedmepos/ui-library";
4
- import { D as F, u as I, Y as j, O as D, J as A, G } from "./menu-DcGo3sn5.js";
5
- import { _ as J } from "./app-D23N7tJ0.js";
6
- import { u as O } from "./menu-Dx39P1vR.js";
3
+ import { useSnackbar as M, useBreakpoints as $, useDialog as A } from "@feedmepos/ui-library";
4
+ import { G as F, u as I, X as Y, O, J as j, A as G } from "./menu-D_Cckz_p.js";
5
+ import { _ as J } from "./app-CAhJXoa3.js";
6
+ import { u as T } from "./menu-DT5c-FqY.js";
7
7
  import { _ as R } from "./index.vue_vue_type_script_setup_true_lang-BgqsTzLI.js";
8
- import { u as q } from "./category-bhqVqDzJ.js";
9
- const H = {
8
+ import { u as X } from "./category-DK_MXlvY.js";
9
+ const q = {
10
10
  key: 0
11
- }, Q = {
11
+ }, H = {
12
12
  class: "flex justify-end items-center"
13
- }, W = {
13
+ }, Q = {
14
14
  class: "w-[320px]"
15
- }, X = {
15
+ }, W = {
16
16
  key: 1,
17
17
  class: "flex-1 flex flex-col min-h-0"
18
18
  }, Z = {
@@ -27,21 +27,21 @@ const H = {
27
27
  class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
28
28
  }, ne = /* @__PURE__ */ S({
29
29
  __name: "CategoryTable",
30
- setup(T) {
31
- const f = M(), y = F(f), h = D(y), p = I(), {
30
+ setup(B) {
31
+ const f = M(), y = F(f), h = O(y), p = I(), {
32
32
  categories: v
33
- } = O(), b = k(() => {
34
- var l, t;
35
- const r = ((t = (l = p.currentCatalog) == null ? void 0 : l.override) == null ? void 0 : t.category) ?? {}, o = v.value.map((e, c) => {
33
+ } = T(), b = k(() => {
34
+ var r, t;
35
+ const l = ((t = (r = p.currentCatalog) == null ? void 0 : r.override) == null ? void 0 : t.category) ?? {}, o = v.value.map((e, c) => {
36
36
  var m;
37
37
  return {
38
38
  ...e,
39
39
  // Addon should be at the end of the list
40
- position: e.id ? ((m = r[e.id]) == null ? void 0 : m.position) ?? c + 1 : null
40
+ position: e.id ? ((m = l[e.id]) == null ? void 0 : m.position) ?? c + 1 : null
41
41
  };
42
42
  });
43
- return j(o, (e) => e.name);
44
- }), a = C(""), d = k(() => b.value.filter((r) => r.name.toLowerCase().includes(a.value.toLowerCase()))), {
43
+ return Y(o, (e) => e.name);
44
+ }), a = C(""), d = k(() => b.value.filter((l) => l.name.toLowerCase().includes(a.value.toLowerCase()))), {
45
45
  t: s
46
46
  } = L(), x = C([{
47
47
  accessorKey: "name",
@@ -55,29 +55,29 @@ const H = {
55
55
  header: () => s("menu.category.columns.products"),
56
56
  enableSorting: !1,
57
57
  size: 200,
58
- cell: (r) => {
59
- const o = r.row.original;
58
+ cell: (l) => {
59
+ const o = l.row.original;
60
60
  return s(o.items.length > 1 ? "menu.common.labels.product_linked_plural" : "menu.common.labels.product_linked_singular", {
61
61
  count: o.items.length
62
62
  });
63
63
  }
64
64
  }]);
65
- async function B(r) {
65
+ async function D(l) {
66
66
  var e;
67
67
  const o = p.currentCatalog;
68
68
  if (!o)
69
69
  return;
70
70
  const {
71
- updateMenu: l
71
+ updateMenu: r
72
72
  } = h, t = ((e = o.override) == null ? void 0 : e.category) ?? {};
73
- r.forEach((c, m) => {
73
+ l.forEach((c, m) => {
74
74
  c.id && (t != null && t[c.id] ? t[c.id].position = m + 1 : t[c.id] = {
75
75
  position: m + 1,
76
76
  _id: c.id
77
77
  });
78
- }), await l({
78
+ }), await r({
79
79
  module: G.F_MENU_MODULE_V4_KEY.enum.catalog,
80
- operation: A.F_OPERATION_TYPE.update,
80
+ operation: j.F_OPERATION_TYPE.update,
81
81
  data: {
82
82
  ...o,
83
83
  override: {
@@ -87,10 +87,10 @@ const H = {
87
87
  }
88
88
  }, "Category");
89
89
  }
90
- const N = Y(), z = k(() => N.breakpoints.value.xs);
91
- return (r, o) => {
92
- const l = w("FmSearch"), t = w("FmTable");
93
- return z.value ? (u(), _("div", X, [i("div", Z, [g(l, {
90
+ const N = $(), z = k(() => N.breakpoints.value.xs);
91
+ return (l, o) => {
92
+ const r = w("FmSearch"), t = w("FmTable");
93
+ return z.value ? (u(), _("div", W, [i("div", Z, [g(r, {
94
94
  autofocus: "",
95
95
  modelValue: a.value,
96
96
  "onUpdate:modelValue": o[1] || (o[1] = (e) => a.value = e),
@@ -103,7 +103,7 @@ const H = {
103
103
  class: "flex flex-row py-12 px-16"
104
104
  }, [i("div", oe, [i("p", te, E(e.name), 1), i("p", ae, E(n(s)(e.items.length > 1 ? "menu.common.labels.product_linked_plural" : "menu.common.labels.product_linked_singular", {
105
105
  count: e.items.length
106
- })), 1)])]))), 128))])])) : (u(), _("div", H, [i("div", Q, [i("div", W, [g(l, {
106
+ })), 1)])]))), 128))])])) : (u(), _("div", q, [i("div", H, [i("div", Q, [g(r, {
107
107
  modelValue: a.value,
108
108
  "onUpdate:modelValue": o[0] || (o[0] = (e) => a.value = e),
109
109
  autofocus: "",
@@ -121,7 +121,7 @@ const H = {
121
121
  "shrink-at": !1,
122
122
  "hide-footer": "",
123
123
  "pin-header-row": "",
124
- onDndChanged: B
124
+ onDndChanged: D
125
125
  }, null, 8, ["column-defs", "page-size", "row-data", "search-value"])]),
126
126
  _: 1
127
127
  })]));
@@ -129,13 +129,17 @@ const H = {
129
129
  }
130
130
  }), pe = /* @__PURE__ */ S({
131
131
  __name: "Category",
132
- setup(T) {
133
- const f = $(), y = M(), h = F(y), p = D(h), v = q({ dialog: f, menuLoader: p }), { categories: b } = O(), { t: a } = L();
132
+ setup(B) {
133
+ const f = A(), y = M(), h = F(y), p = O(h), v = X({ dialog: f, menuLoader: p }), { categories: b } = T(), { t: a } = L();
134
134
  function d() {
135
135
  v.create();
136
136
  }
137
- return (s, x) => n(b).length > 0 ? (u(), V(ne, { key: 0 })) : (u(), V(n(R), {
137
+ return (s, x) => n(b).length > 0 ? (u(), V(ne, {
138
+ key: 0,
139
+ class: "pt-16"
140
+ })) : (u(), V(n(R), {
138
141
  key: 1,
142
+ class: "pt-16",
139
143
  action: {
140
144
  text: n(a)("menu.category.add"),
141
145
  callback: d