@feedmepos/mf-menu 0.32.13 → 0.32.15

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 (73) hide show
  1. package/dist/{App-D70-FH5L.js → App-BFUyUrdi.js} +16 -9
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-BJdja2N0.js → ApplyProduct.vue_vue_type_script_setup_true_lang-BbjRIN7Z.js} +20 -20
  3. package/dist/{Catalog-WMpN3a0p.js → Catalog-B6VFmr6e.js} +20 -20
  4. package/dist/{Category-C_VsQIHU.js → Category-B-bTjNFI.js} +24 -24
  5. package/dist/{Category-BwHhFTZ-.js → Category-C8uGxpST.js} +84 -84
  6. package/dist/{CookingGuide-D9RNkYDL.js → CookingGuide-BL3uetlO.js} +65 -65
  7. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-DtmrxDZm.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-8yIVwc8E.js} +1 -1
  8. package/dist/{Group-DexONgr2.js → Group-BvO-gQZe.js} +1 -1
  9. package/dist/{Group-qRZlg5ST.js → Group-DT9UkkOx.js} +3 -3
  10. package/dist/{Group.vue_vue_type_script_setup_true_lang-DtPY9uUt.js → Group.vue_vue_type_script_setup_true_lang-DZhM1Tpb.js} +56 -56
  11. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-B5Qpmj2f.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-D48u_DHq.js} +5 -5
  12. package/dist/ImportProductDialog.vue_vue_type_script_setup_true_lang-C_X-lTnN.js +72979 -0
  13. package/dist/{Ingredient-BuOS_Wvm.js → Ingredient-7qWDD9e6.js} +26 -26
  14. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-DFvXklj9.js → InventoryBinding.vue_vue_type_script_setup_true_lang-CwjW0wfz.js} +2 -2
  15. package/dist/{LinkProductSideSheet-DJj8Nn4X.js → LinkProductSideSheet-BXW6eNgZ.js} +3 -3
  16. package/dist/{MenuSetting-D6B0gCGV.js → MenuSetting-BSF7O2NL.js} +5 -5
  17. package/dist/{PrintRoute-B7G8f1iC.js → PrintRoute-b1ii5Uz9.js} +20 -20
  18. package/dist/{Product-DpS5EepJ.js → Product-Ce0GJb3c.js} +1 -1
  19. package/dist/{Product.vue_vue_type_script_setup_true_lang-CdIukLqA.js → Product.vue_vue_type_script_setup_true_lang-BZVvTAOX.js} +49 -49
  20. package/dist/{ProductInternalTools-CBCyWHOS.js → ProductInternalTools-igbOLRap.js} +20 -20
  21. package/dist/Products-GAyUdhnN.js +292 -0
  22. package/dist/Publish-g60odzhM.js +1300 -0
  23. package/dist/{Recipe-D14rkATU.js → Recipe-B6aye_iC.js} +9 -9
  24. package/dist/{RuleView.vue_vue_type_script_setup_true_lang-CdH2ius3.js → RuleView.vue_vue_type_script_setup_true_lang-By8kwuMB.js} +134 -134
  25. package/dist/{Scheduler-DWZqa-jf.js → Scheduler-CyaG6Y5v.js} +7 -7
  26. package/dist/{ServingSequence-Mx7ovvJ1.js → ServingSequence-BXeypgrN.js} +27 -27
  27. package/dist/{Setting-DmHuVXVn.js → Setting-D7GcaNTk.js} +17 -17
  28. package/dist/{Subcategory-DixZPdnT.js → Subcategory-DNUp9ojI.js} +37 -37
  29. package/dist/{Takeaway-BVIymFV_.js → Takeaway-Baqvq5nP.js} +9 -9
  30. package/dist/{Takeaway-DDKeDEbV.js → Takeaway-BjXPeYRv.js} +1 -1
  31. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-CTaCQgRv.js → Takeaway.vue_vue_type_script_setup_true_lang-CgXT2UVL.js} +54 -54
  32. package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-DveI9xvU.js → Thumbnail.vue_vue_type_script_setup_true_lang-CX8cSbDe.js} +12 -12
  33. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-2nBbq_Yk.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DcjGVQEO.js} +756 -763
  34. package/dist/{Unit-utuaNZBw.js → Unit-mI7lLzCf.js} +2 -2
  35. package/dist/{Variant-CzuJNwen.js → Variant-CVwnODRz.js} +14 -14
  36. package/dist/{_id_-DMDhPQCr.js → _id_-fpn0nBru.js} +14 -14
  37. package/dist/{app-BQUkvrAS.js → app-CCKI85Te.js} +26 -26
  38. package/dist/{app-Bqj3cAPJ.js → app-U5MEN4U1.js} +1 -1
  39. package/dist/app.js +1 -1
  40. package/dist/apps/mf-menu/src/Entry.vue.d.ts +1 -0
  41. package/dist/apps/mf-menu/src/components/feature/Fields/ImageDropField.vue.d.ts +0 -2
  42. package/dist/apps/mf-menu/src/composable/useClientEvent.d.ts +14 -0
  43. package/dist/apps/mf-menu/src/helper/import-export-utils.d.ts +22 -22
  44. package/dist/apps/mf-menu/src/helper/menuExport.d.ts +59 -33
  45. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  46. package/dist/assets/{linked-status-ILQVL8r9.js → linked-status-6Jt70XBp.js} +2 -2
  47. package/dist/assets/menu-export-CR0a98CA.js +107 -0
  48. package/dist/assets/{override-menu-DVkGhbA9.js → override-menu-Chsc0CSI.js} +2 -2
  49. package/dist/assets/{validate-menu-y_NQUL02.js → validate-menu-pb0aN4gj.js} +2 -2
  50. package/dist/{catalog-BYzITAmC.js → catalog-BgQmytEA.js} +1 -1
  51. package/dist/{catalogSetting-DAo5tN3P.js → catalogSetting-BS5IaQKq.js} +1 -1
  52. package/dist/{category-D4x8r_lY.js → category-DJMVbmzx.js} +1 -1
  53. package/dist/{currency-CvoBdMM2.js → currency-FHrLDvzy.js} +1 -1
  54. package/dist/dayjs.min-DJGdQr-B.js +6 -0
  55. package/dist/{index-LuH6PJzW.js → index-BywPDIFW.js} +4 -4
  56. package/dist/{index-BLUIaanj.js → index-DYxLHjeC.js} +1 -1
  57. package/dist/{index-6lju0f3r.js → index-XVWDnyu-.js} +17 -17
  58. package/dist/{index.vue_vue_type_script_setup_true_lang-DxF14kn9.js → index.vue_vue_type_script_setup_true_lang-kj6HkxwD.js} +2306 -2306
  59. package/dist/{item-lXMLaKOb.js → item-cmnP2N-a.js} +1089 -1091
  60. package/dist/{jszip.min-CdZ-wY5m.js → jszip.min-psVCZNVl.js} +545 -545
  61. package/dist/{menu-PJc2dQHQ.js → menu-CgQPOu3W.js} +1 -1
  62. package/dist/{menuV2-DinFmdTL.js → menuV2-DHO9OmzU.js} +159 -159
  63. package/dist/mf-menu.css +1 -1
  64. package/dist/{priceTier-CzKIo11g.js → priceTier-CLm9vzaK.js} +1 -1
  65. package/dist/{scheduler-DQjxnoCk.js → scheduler-BMdZdtpj.js} +4 -4
  66. package/dist/{subcategory-CLkDImEU.js → subcategory-Dj_DOvFt.js} +2 -2
  67. package/dist/{toExcel-DPh8DaM0.js → toExcel-XwFFiTiA.js} +2 -2
  68. package/dist/{unit-QYkVoC6_.js → unit-CsuAQsy7.js} +12 -12
  69. package/package.json +3 -3
  70. package/dist/ImportProductDialog.vue_vue_type_script_setup_true_lang-BqhNkaw_.js +0 -96043
  71. package/dist/Products-CcyGNlUl.js +0 -794
  72. package/dist/Publish-rZLHFaJ5.js +0 -1264
  73. package/dist/dayjs.min-C6xioui7.js +0 -6
@@ -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 D, 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 X, renderSlot as re, createVNode as d, unref as e, withCtx as g, createElementVNode as n, toDisplayString as T, h as N, withModifiers as D, getCurrentInstance as ie, renderList as ce, createBlock as L, 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 J, useBreakpoints as de, FmButtonColorThemeVariant as me } from "@feedmepos/ui-library";
3
+ import { useSnackbar as Y, components as R, useDialog as ee, FmButtonVariant as Z, 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 { G, u as ge, $ as fe, Y as _e, A as K, a2 as ye, P as q, K as te, a3 as ve } from "./index.vue_vue_type_script_setup_true_lang-DxF14kn9.js";
5
+ import { G, u as ge, a0 as fe, Z as _e, A, a3 as ye, Q as q, M as te, a4 as ve } from "./index.vue_vue_type_script_setup_true_lang-kj6HkxwD.js";
6
6
  import { _ as he } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
7
- import { _ as be } from "./app-BQUkvrAS.js";
7
+ import { _ as be } from "./app-CCKI85Te.js";
8
8
  import { c as xe } from "./createForm-BoUQeZTd.js";
9
- import { _ as Q } from "./RuleView.vue_vue_type_script_setup_true_lang-CdH2ius3.js";
9
+ import { _ as H } from "./RuleView.vue_vue_type_script_setup_true_lang-By8kwuMB.js";
10
10
  import { u as Ce } from "./discardConfirm-BHni0LNu.js";
11
- import { c as X } from "./object-DVUNCr7w.js";
11
+ import { c as J } from "./object-DVUNCr7w.js";
12
12
  import { r as ke } from "./rules-CIWTZQfh.js";
13
- import { u as W, a as we } from "./menu-PJc2dQHQ.js";
13
+ import { u as Q, a as we } from "./menu-CgQPOu3W.js";
14
14
  import { c as Fe } from "./check-C9mY6LiX.js";
15
- import { u as Ve } from "./item-lXMLaKOb.js";
16
- import { u as oe } from "./category-D4x8r_lY.js";
15
+ import { u as Ve } from "./item-cmnP2N-a.js";
16
+ import { u as ae } from "./category-DJMVbmzx.js";
17
17
  const $e = {
18
18
  class: "fm-typo-en-title-md-600"
19
19
  }, Me = {
@@ -26,27 +26,27 @@ const $e = {
26
26
  class: "flex-1"
27
27
  }, Te = {
28
28
  class: "flex-1 overflow-hidden min-h-[300px]"
29
- }, Pe = {
29
+ }, Ue = {
30
30
  class: "flex gap-8 items-center justify-start"
31
- }, Ue = /* @__PURE__ */ A({
31
+ }, Le = /* @__PURE__ */ K({
32
32
  __name: "Form",
33
33
  props: {
34
34
  initialValue: {}
35
35
  },
36
- setup(N, {
36
+ setup(O, {
37
37
  expose: h
38
38
  }) {
39
- const _ = N, V = Y(), b = G(V), $ = q(b), m = ge(), r = Ve(), {
39
+ const _ = O, V = Y(), b = G(V), $ = q(b), m = ge(), r = Ve(), {
40
40
  categories: x
41
- } = W(), {
41
+ } = Q(), {
42
42
  t
43
- } = j(), P = F(!1), u = F(!1), M = (o) => {
44
- Fe.isBoolean(o) ? u.value = o : u.value = !u.value;
45
- }, i = F(X(_.initialValue)), C = F(""), S = B(() => {
43
+ } = j(), U = F(!1), u = F(!1), M = (a) => {
44
+ Fe.isBoolean(a) ? u.value = a : u.value = !u.value;
45
+ }, i = F(J(_.initialValue)), C = F(""), S = B(() => {
46
46
  var k;
47
- const o = ((k = x.value.find((w) => w.id === i.value.id)) == null ? void 0 : k.items) || [], a = fe(i.value.id);
48
- return _e(o, (w) => w.code || w.name, a);
49
- }), O = [{
47
+ const a = ((k = x.value.find((w) => w.id === i.value.id)) == null ? void 0 : k.items) || [], o = fe(i.value.id);
48
+ return _e(a, (w) => w.code || w.name, o);
49
+ }), P = [{
50
50
  accessorKey: "name",
51
51
  header: () => t("menu.category.products.columns.name"),
52
52
  enableSorting: !1
@@ -62,17 +62,17 @@ const $e = {
62
62
  headerContentClass: "-mx-16"
63
63
  },
64
64
  header: "",
65
- cell: (o) => {
66
- const a = o.row.original;
67
- return L("div", {
65
+ cell: (a) => {
66
+ const o = a.row.original;
67
+ return N("div", {
68
68
  class: "flex justify-end"
69
- }, [L(R.FmButton, {
69
+ }, [N(R.FmButton, {
70
70
  icon: "edit",
71
71
  outline: !0,
72
72
  variant: "tertiary",
73
73
  textColor: "neutral-gray-400",
74
74
  onClick: D(async () => {
75
- await s(a);
75
+ await s(o);
76
76
  }, ["stop", "prevent"])
77
77
  })]);
78
78
  }
@@ -80,43 +80,43 @@ const $e = {
80
80
  async function l() {
81
81
  await r.create(i.value.id);
82
82
  }
83
- async function s(o) {
84
- await r.update(o._id);
83
+ async function s(a) {
84
+ await r.update(a._id);
85
85
  }
86
- const y = B(() => m.version === K.F_MENU_VERSION.enum.v4);
87
- async function I(o) {
88
- const a = ye(o, i.value.id);
89
- await r.updateMany(a);
86
+ const y = B(() => m.version === A.F_MENU_VERSION.enum.v4);
87
+ async function I(a) {
88
+ const o = ye(a, i.value.id);
89
+ await r.updateMany(o);
90
90
  }
91
91
  const z = Ce(() => i.value.name !== _.initialValue.name, () => {
92
92
  u.value = !1;
93
93
  });
94
94
  async function c() {
95
- const o = m.categories.find((k) => k._id === i.value.id), {
96
- updateMenu: a
95
+ const a = m.categories.find((k) => k._id === i.value.id), {
96
+ updateMenu: o
97
97
  } = $;
98
- await a({
99
- module: K.F_MENU_MODULE_V4_KEY.enum.category,
98
+ await o({
99
+ module: A.F_MENU_MODULE_V4_KEY.enum.category,
100
100
  operation: te.F_OPERATION_TYPE.update,
101
101
  data: {
102
- ...o,
103
- name: i.value.name ?? (o == null ? void 0 : o.name)
102
+ ...a,
103
+ name: i.value.name ?? (a == null ? void 0 : a.name)
104
104
  }
105
105
  }, i.value.name), M(!1);
106
106
  }
107
107
  return se(() => u.value, () => {
108
- u.value && (i.value = X(_.initialValue));
108
+ u.value && (i.value = J(_.initialValue));
109
109
  }), h({
110
110
  trigger: M,
111
111
  show: u
112
- }), (o, a) => {
113
- const k = p("FmTextField"), w = p("FmButton"), ae = p("FmSearch"), ne = p("FmTable"), H = p("fm-button"), le = p("fm-side-sheet");
114
- return f(), E(Z, null, [re(o.$slots, "default", {
112
+ }), (a, o) => {
113
+ const k = p("FmTextField"), w = p("FmButton"), oe = p("FmSearch"), ne = p("FmTable"), W = p("fm-button"), le = p("fm-side-sheet");
114
+ return f(), E(X, null, [re(a.$slots, "default", {
115
115
  trigger: M
116
116
  }), d(le, {
117
117
  id: "group-form",
118
118
  modelValue: u.value,
119
- "onUpdate:modelValue": a[4] || (a[4] = (v) => u.value = v),
119
+ "onUpdate:modelValue": o[4] || (o[4] = (v) => u.value = v),
120
120
  "is-container": e(R).FmForm,
121
121
  "is-container-props": {
122
122
  onValidationSuccess: c,
@@ -126,31 +126,31 @@ const $e = {
126
126
  "onOn:clickedAway": e(z)
127
127
  }, {
128
128
  "side-sheet-header": g(() => [n("p", $e, T(e(t)("menu.category.title")), 1)]),
129
- "side-sheet-footer": g(() => [n("div", Pe, [d(H, {
129
+ "side-sheet-footer": g(() => [n("div", Ue, [d(W, {
130
130
  label: e(t)("menu.common.actions.update"),
131
- loading: P.value,
131
+ loading: U.value,
132
132
  size: "lg",
133
133
  type: "submit",
134
134
  variant: "primary",
135
135
  disabled: !i.value.id
136
- }, null, 8, ["label", "loading", "disabled"]), d(H, {
136
+ }, null, 8, ["label", "loading", "disabled"]), d(W, {
137
137
  label: e(t)("menu.common.actions.cancel"),
138
138
  size: "lg",
139
139
  variant: "tertiary",
140
- onClick: a[3] || (a[3] = () => u.value = !1)
140
+ onClick: o[3] || (o[3] = () => u.value = !1)
141
141
  }, null, 8, ["label"])])]),
142
- default: g(() => [n("div", Me, [d(Q, {
142
+ default: g(() => [n("div", Me, [d(H, {
143
143
  title: e(t)("menu.category.detail")
144
144
  }, {
145
145
  default: g(() => [d(k, {
146
146
  label: e(t)("menu.category.name"),
147
147
  modelValue: i.value.name,
148
- "onUpdate:modelValue": a[0] || (a[0] = (v) => i.value.name = v),
148
+ "onUpdate:modelValue": o[0] || (o[0] = (v) => i.value.name = v),
149
149
  disabled: !i.value.id,
150
150
  rules: [e(ke)]
151
151
  }, null, 8, ["label", "modelValue", "disabled", "rules"])]),
152
152
  _: 1
153
- }, 8, ["title"]), d(Q, {
153
+ }, 8, ["title"]), d(H, {
154
154
  title: e(t)("menu.category.products.title"),
155
155
  class: "flex-1 min-h-0",
156
156
  shrinkable: !0
@@ -165,12 +165,12 @@ const $e = {
165
165
  }, null, 8, ["label"])]),
166
166
  default: g(() => [n("div", Se, [n("div", Ee, T(e(t)("menu.category.products.linked_count", {
167
167
  count: S.value.length
168
- })), 1), n("div", Be, [d(ae, {
168
+ })), 1), n("div", Be, [d(oe, {
169
169
  placeholder: e(t)("menu.common.actions.search"),
170
170
  modelValue: C.value,
171
- "onUpdate:modelValue": a[1] || (a[1] = (v) => C.value = v)
171
+ "onUpdate:modelValue": o[1] || (o[1] = (v) => C.value = v)
172
172
  }, null, 8, ["placeholder", "modelValue"])])]), n("div", Te, [d(ne, {
173
- "column-defs": O,
173
+ "column-defs": P,
174
174
  draggable: y.value,
175
175
  "page-size": S.value.length,
176
176
  "row-data": S.value,
@@ -179,7 +179,7 @@ const $e = {
179
179
  "hide-footer": "",
180
180
  "pin-header-row": "",
181
181
  onDndChanged: I,
182
- onRowClick: a[2] || (a[2] = (v) => s(v.original))
182
+ onRowClick: o[2] || (o[2] = (v) => s(v.original))
183
183
  }, null, 8, ["draggable", "page-size", "row-data", "search-value"])])]),
184
184
  _: 1
185
185
  }, 8, ["title"])])]),
@@ -187,9 +187,9 @@ const $e = {
187
187
  }, 8, ["modelValue", "is-container", "is-container-props", "onOn:clickedAway"])], 64);
188
188
  };
189
189
  }
190
- }), Le = Ue, Ne = {
190
+ }), Ne = Le, Oe = {
191
191
  key: 0
192
- }, Oe = {
192
+ }, Pe = {
193
193
  class: "flex justify-end items-center"
194
194
  }, Ie = {
195
195
  class: "w-[320px]"
@@ -200,23 +200,23 @@ const $e = {
200
200
  class: "p-8"
201
201
  }, Re = {
202
202
  class: "flex flex-1 flex-col min-h-0 overflow-scroll divide-y divide-fm-color-neutral-gray-100 pb-64"
203
- }, Ke = ["onClick"], Ae = {
203
+ }, Ae = ["onClick"], Ke = {
204
204
  class: "flex-1 space-y-4"
205
205
  }, je = {
206
206
  class: "fm-typo-en-body-lg-600"
207
207
  }, Ye = {
208
208
  class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
209
- }, Ge = /* @__PURE__ */ A({
209
+ }, Ge = /* @__PURE__ */ K({
210
210
  __name: "CategoryTable",
211
- setup(N) {
212
- const h = ee(), _ = Y(), V = G(_), b = q(V), $ = oe({
211
+ setup(O) {
212
+ const h = ee(), _ = Y(), V = G(_), b = q(V), $ = ae({
213
213
  dialog: h,
214
214
  menuLoader: b
215
215
  }), {
216
216
  categories: m
217
- } = W(), r = F(""), x = B(() => m.value.filter((l) => l.name.toLowerCase().includes(r.value.toLowerCase()))), {
217
+ } = Q(), r = F(""), x = B(() => m.value.filter((l) => l.name.toLowerCase().includes(r.value.toLowerCase()))), {
218
218
  t
219
- } = j(), P = F([{
219
+ } = j(), U = F([{
220
220
  accessorKey: "name",
221
221
  header: () => t("menu.category.columns.title"),
222
222
  enableSorting: !1,
@@ -244,9 +244,9 @@ const $e = {
244
244
  header: "",
245
245
  cell: (l) => {
246
246
  const s = l.row.original;
247
- return L("div", {
247
+ return N("div", {
248
248
  class: "flex justify-end"
249
- }, [L(R.FmButton, {
249
+ }, [N(R.FmButton, {
250
250
  icon: "delete",
251
251
  disabled: !s.id,
252
252
  variant: "tertiary",
@@ -273,7 +273,7 @@ const $e = {
273
273
  primaryActions: {
274
274
  text: "Remove",
275
275
  close: !0,
276
- variant: J.Destructive
276
+ variant: Z.Destructive
277
277
  },
278
278
  secondaryActions: {
279
279
  text: "Cancel",
@@ -281,7 +281,7 @@ const $e = {
281
281
  }
282
282
  }).onPrimary(async () => {
283
283
  await b.updateMenu({
284
- module: K.F_MENU_MODULE_V4_KEY.enum.category,
284
+ module: A.F_MENU_MODULE_V4_KEY.enum.category,
285
285
  operation: te.F_OPERATION_TYPE.delete,
286
286
  // `category.id` is guaranteed to be defined due to the earlier check in `deleteCategory`.
287
287
  data: l.id
@@ -294,14 +294,14 @@ const $e = {
294
294
  }
295
295
  const i = ie();
296
296
  async function C(l) {
297
- xe(i, Le, {
297
+ xe(i, Ne, {
298
298
  initialValue: l
299
299
  });
300
300
  }
301
- const S = de(), O = B(() => S.breakpoints.value.xs);
301
+ const S = de(), P = B(() => S.breakpoints.value.xs);
302
302
  return (l, s) => {
303
303
  const y = p("FmSearch"), I = p("FmTable"), z = p("FmButton");
304
- return O.value ? (f(), E("div", ze, [n("div", De, [d(y, {
304
+ return P.value ? (f(), E("div", ze, [n("div", De, [d(y, {
305
305
  autofocus: "",
306
306
  modelValue: r.value,
307
307
  "onUpdate:modelValue": s[2] || (s[2] = (c) => r.value = c),
@@ -309,19 +309,19 @@ const $e = {
309
309
  placeholder: e(t)("menu.common.labels.search_placeholder", {
310
310
  type: "categories"
311
311
  })
312
- }, null, 8, ["modelValue", "placeholder"])]), n("div", Re, [(f(!0), E(Z, null, ce(x.value, (c) => (f(), E("div", {
312
+ }, null, 8, ["modelValue", "placeholder"])]), n("div", Re, [(f(!0), E(X, null, ce(x.value, (c) => (f(), E("div", {
313
313
  key: c.id || "",
314
314
  class: "flex flex-row py-12 px-16",
315
- onClick: (o) => C(c)
316
- }, [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", {
315
+ onClick: (a) => C(c)
316
+ }, [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", {
317
317
  count: c.items.length
318
318
  })), 1)]), d(z, {
319
319
  "text-color": e(me).NeutralGray400,
320
- variant: e(J).Tertiary,
320
+ variant: e(Z).Tertiary,
321
321
  "prepend-icon": "delete",
322
322
  disabled: !c.id,
323
- onClick: D((o) => u(c), ["stop"])
324
- }, null, 8, ["text-color", "variant", "disabled", "onClick"])], 8, Ke))), 128))])])) : (f(), E("div", Ne, [n("div", Oe, [n("div", Ie, [d(y, {
323
+ onClick: D((a) => u(c), ["stop"])
324
+ }, null, 8, ["text-color", "variant", "disabled", "onClick"])], 8, Ae))), 128))])])) : (f(), E("div", Oe, [n("div", Pe, [n("div", Ie, [d(y, {
325
325
  modelValue: r.value,
326
326
  "onUpdate:modelValue": s[0] || (s[0] = (c) => r.value = c),
327
327
  autofocus: "",
@@ -331,7 +331,7 @@ const $e = {
331
331
  })
332
332
  }, null, 8, ["modelValue", "placeholder"])])]), d(be, null, {
333
333
  default: g(() => [d(I, {
334
- "column-defs": P.value,
334
+ "column-defs": U.value,
335
335
  draggable: !0,
336
336
  "page-size": e(m).length,
337
337
  "row-data": e(m),
@@ -346,19 +346,19 @@ const $e = {
346
346
  })]));
347
347
  };
348
348
  }
349
- }), qe = { class: "flex-1 flex justify-between gap-8 pl-8" }, We = { class: "flex items-center" }, He = { class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4" }, Je = { class: "fm-typo-en-body-md-600 font-semibold" }, pt = /* @__PURE__ */ A({
349
+ }), qe = { class: "flex-1 flex justify-between gap-8 pl-8" }, Qe = { class: "flex items-center" }, We = { class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4" }, Ze = { class: "fm-typo-en-body-md-600 font-semibold" }, pt = /* @__PURE__ */ K({
350
350
  __name: "Category",
351
- setup(N) {
352
- const h = ee(), _ = Y(), V = G(_), b = q(V), $ = oe({ dialog: h, menuLoader: b }), { categories: m } = W(), { t: r } = j();
351
+ setup(O) {
352
+ const h = ee(), _ = Y(), V = G(_), b = q(V), $ = ae({ dialog: h, menuLoader: b }), { categories: m } = Q(), { t: r } = j();
353
353
  function x() {
354
354
  $.create();
355
355
  }
356
356
  const t = B(() => m.value.length);
357
- return we().resetOnMount(), (P, u) => (f(), U(he, {
357
+ return we().resetOnMount(), (U, u) => (f(), L(he, {
358
358
  heading: e(r)("menu.category.title")
359
359
  }, {
360
360
  default: g(() => [
361
- e(m).length > 0 ? (f(), U(Ge, { key: 0 })) : (f(), U(e(ve), {
361
+ e(m).length > 0 ? (f(), L(Ge, { key: 0 })) : (f(), L(e(ve), {
362
362
  key: 1,
363
363
  action: {
364
364
  text: e(r)("menu.category.add"),
@@ -370,12 +370,12 @@ const $e = {
370
370
  ]),
371
371
  "append-heading": g(() => [
372
372
  n("div", qe, [
373
- n("div", We, [
374
- n("div", He, [
375
- n("p", Je, T(t.value), 1)
373
+ n("div", Qe, [
374
+ n("div", We, [
375
+ n("p", Ze, T(t.value), 1)
376
376
  ])
377
377
  ]),
378
- e(m).length > 0 ? (f(), U(pe, {
378
+ e(m).length > 0 ? (f(), L(pe, {
379
379
  key: 0,
380
380
  label: e(r)("menu.category.add"),
381
381
  "prepend-icon": "add",