@feedmepos/mf-menu 0.31.30-beta.1 → 0.31.31-beta.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 (62) hide show
  1. package/dist/{App-CrQBq4gc.js → App-1TX8v7ZA.js} +10 -8
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-D00UOSsK.js → ApplyProduct.vue_vue_type_script_setup_true_lang-CR7QrFUG.js} +12 -12
  3. package/dist/{Catalog-D4m8x_f2.js → Catalog-DWClc58s.js} +75 -74
  4. package/dist/{Category-sQll5ITQ.js → Category-BqKFvFam.js} +60 -60
  5. package/dist/{Category-Ql1kDDH-.js → Category-IYMtMoT-.js} +28 -28
  6. package/dist/{CookingGuide-CSutufcu.js → CookingGuide-BayJ6zj4.js} +103 -101
  7. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-BqhYFXNG.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-Ceq86b3d.js} +1 -1
  8. package/dist/{Group-CnBE6CiB.js → Group-LqSX7ue6.js} +1 -1
  9. package/dist/{Group-YqVh5hC0.js → Group-RujTPTns.js} +3 -3
  10. package/dist/{Group.vue_vue_type_script_setup_true_lang-D9TSH4sS.js → Group.vue_vue_type_script_setup_true_lang-Dj9ZmkYe.js} +138 -137
  11. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CqriuXVC.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-D5GWkh3G.js} +16 -16
  12. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-CaIU0RsG.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-C4IrA3es.js} +4616 -4610
  13. package/dist/{Ingredient-MhLxJzAU.js → Ingredient-_tc8llr1.js} +65 -64
  14. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-CIbExsMI.js → InventoryBinding.vue_vue_type_script_setup_true_lang-DLFDf-VZ.js} +14 -12
  15. package/dist/{LinkProductSideSheet-D7vYZbFy.js → LinkProductSideSheet-C6rF-G1v.js} +14 -12
  16. package/dist/{MenuSetting-n0me5wY8.js → MenuSetting-xDHeeROY.js} +27 -26
  17. package/dist/{PrintRoute-CudZZYbe.js → PrintRoute-B_TFMn5e.js} +17 -15
  18. package/dist/{Product-DPZQgWET.js → Product-DdEEqrtc.js} +1 -1
  19. package/dist/{Product.vue_vue_type_script_setup_true_lang-CdaeZy_o.js → Product.vue_vue_type_script_setup_true_lang-zcistmwh.js} +257 -256
  20. package/dist/{ProductInternalTools-DgANHliV.js → ProductInternalTools-BcC7BF6W.js} +45 -45
  21. package/dist/{Products-Ez4R3jKW.js → Products-Cu0cJshV.js} +74 -72
  22. package/dist/{Publish-B4DEPe1I.js → Publish-Bm3Xiks1.js} +34 -32
  23. package/dist/{Recipe-Cripr-gY.js → Recipe-DWK-luIZ.js} +65 -63
  24. package/dist/{Scheduler-C-OV9d7d.js → Scheduler-Cb1TeBhW.js} +19 -19
  25. package/dist/{ServingSequence-DAumDXP1.js → ServingSequence-evSIET_8.js} +34 -34
  26. package/dist/{Setting-ByaHpIAN.js → Setting-Cn3kwC9F.js} +54 -53
  27. package/dist/{Subcategory-ro2aGt2H.js → Subcategory-q4m4qHsU.js} +34 -34
  28. package/dist/{Takeaway-CJb0ayDC.js → Takeaway-ClepHYGu.js} +14 -14
  29. package/dist/{Takeaway-AEg_0gKg.js → Takeaway-D-rdUZuh.js} +1 -1
  30. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-Cjj4bxoL.js → Takeaway.vue_vue_type_script_setup_true_lang-y9Yxstu2.js} +41 -40
  31. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-Drf4n4rj.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BSeLfoOA.js} +1108 -1106
  32. package/dist/{Unit-1wzUBplb.js → Unit-IM8Naj82.js} +12 -12
  33. package/dist/{Variant-Dnz2v5u0.js → Variant-fzGvwaMo.js} +16 -16
  34. package/dist/{_id_-C3rBZ6zL.js → _id_-BsKNG9Qv.js} +22 -22
  35. package/dist/{app-sDPxNF11.js → app-BzQRUMTK.js} +3 -3
  36. package/dist/{app-CLY6CoaV.js → app-CoVUUCa_.js} +24 -24
  37. package/dist/app.js +1 -1
  38. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  39. package/dist/assets/{linked-status-BZ4FSJ_Z.js → linked-status-eQqjvOq_.js} +2 -2
  40. package/dist/assets/{override-menu-C-fWJdVd.js → override-menu-C8NTBJgN.js} +2 -2
  41. package/dist/assets/{validate-menu-BDEM_Odz.js → validate-menu-Dn-OO7Ed.js} +2 -2
  42. package/dist/{catalog-bkFntZNz.js → catalog-CaXceaA2.js} +1 -1
  43. package/dist/{catalogSetting-zrKwGJ_C.js → catalogSetting-BGvckFdh.js} +1 -1
  44. package/dist/{category-BuPYaEsy.js → category-u5eo_Vjd.js} +5 -3
  45. package/dist/currency-BPHwez-E.js +7 -0
  46. package/dist/{dayjs.min-CR2NIyKn.js → dayjs.min-Bsr3tJCn.js} +1 -1
  47. package/dist/{index-BNORpjos.js → index-Bbx4iZ6n.js} +27 -27
  48. package/dist/{index-Dp_vLFQp.js → index-DSAG0yWh.js} +22 -20
  49. package/dist/{index-D20u0bCl.js → index-tRQb7RN_.js} +1 -1
  50. package/dist/{item-D4DcBt7N.js → item-BAqzKh4O.js} +801 -799
  51. package/dist/{jszip.min-CRJ61J9H.js → jszip.min-BKJtvCjM.js} +353 -353
  52. package/dist/{menu-Dw-Hpy07.js → menu-CDrsBjmr.js} +11 -9
  53. package/dist/menu-CsIzrBEr.js +74044 -0
  54. package/dist/packages/shared/src/permission/posPermission.d.ts +6 -0
  55. package/dist/{priceTier-EDLTGEjz.js → priceTier-DfbHonGe.js} +4 -4
  56. package/dist/{scheduler-CpPn2BlK.js → scheduler-DTWaBudB.js} +13 -11
  57. package/dist/{subcategory-B_W6vbM8.js → subcategory-D-R5r1Tr.js} +86 -84
  58. package/dist/{toExcel-D02OlDJu.js → toExcel-84VTtSA7.js} +2 -2
  59. package/dist/{unit-fro9wz1K.js → unit-B4zscxzo.js} +24 -23
  60. package/package.json +1 -1
  61. package/dist/currency-BISImIgX.js +0 -7
  62. package/dist/menu-ibc-yXVt.js +0 -107745
@@ -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 Z, 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 H, useBreakpoints as de, FmButtonColorThemeVariant as me } from "@feedmepos/ui-library";
3
+ import { useSnackbar as Y, components as R, useDialog as ee, FmButtonVariant as J, 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-ibc-yXVt.js";
5
+ import { A as W, u as ge, Y as fe, W as _e, B as A, a2 as ye, M as q, H as te } from "./menu-CsIzrBEr.js";
6
6
  import { _ as ve } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
7
- import { _ as he } from "./app-CLY6CoaV.js";
7
+ import { _ as he } from "./app-CoVUUCa_.js";
8
8
  import { c as be } from "./createForm-BoUQeZTd.js";
9
9
  import { _ as Q } from "./FormSection.vue_vue_type_script_setup_true_lang-CO4YGYLB.js";
10
10
  import { u as xe } from "./discardConfirm-BHni0LNu.js";
11
11
  import { c as X } from "./object-DVUNCr7w.js";
12
12
  import { r as Ce } from "./rules-CIWTZQfh.js";
13
- import { u as J, a as ke } from "./menu-Dw-Hpy07.js";
13
+ import { u as G, a as ke } from "./menu-CDrsBjmr.js";
14
14
  import { c as we } from "./check-C9mY6LiX.js";
15
- import { u as Fe } from "./item-D4DcBt7N.js";
16
- import { u as oe } from "./category-BuPYaEsy.js";
15
+ import { u as Fe } from "./item-BAqzKh4O.js";
16
+ import { u as oe } from "./category-u5eo_Vjd.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"
@@ -27,21 +27,21 @@ const $e = {
27
27
  class: "flex-1"
28
28
  }, Te = {
29
29
  class: "flex-1 overflow-hidden min-h-[300px]"
30
- }, Oe = {
30
+ }, Ue = {
31
31
  class: "flex gap-8 items-center justify-start"
32
- }, Ue = /* @__PURE__ */ A({
32
+ }, Le = /* @__PURE__ */ K({
33
33
  __name: "Form",
34
34
  props: {
35
35
  initialValue: {}
36
36
  },
37
- setup(N, {
37
+ setup(O, {
38
38
  expose: h
39
39
  }) {
40
- const _ = N, V = Y(), b = G(V), $ = q(b), m = ge(), r = Fe(), {
40
+ const _ = O, V = Y(), b = W(V), $ = q(b), m = ge(), r = Fe(), {
41
41
  categories: x
42
- } = J(), {
42
+ } = G(), {
43
43
  t
44
- } = j(), O = F(!1), u = F(!1), M = (o) => {
44
+ } = j(), U = F(!1), u = F(!1), M = (o) => {
45
45
  we.isBoolean(o) ? u.value = o : u.value = !u.value;
46
46
  }, i = F(X(_.initialValue)), C = F(""), S = B(() => {
47
47
  var k;
@@ -65,14 +65,14 @@ const $e = {
65
65
  header: "",
66
66
  cell: (o) => {
67
67
  const a = o.row.original;
68
- return L("div", {
68
+ return N("div", {
69
69
  class: "flex justify-end"
70
- }, [L(R.FmButton, {
70
+ }, [N(R.FmButton, {
71
71
  icon: "edit",
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,
@@ -111,7 +111,7 @@ const $e = {
111
111
  trigger: M,
112
112
  show: u
113
113
  }), (o, a) => {
114
- const k = p("FmTextField"), w = p("FmButton"), ae = p("FmSearch"), ne = p("FmTable"), W = p("fm-button"), le = p("fm-side-sheet");
114
+ const k = p("FmTextField"), w = p("FmButton"), ae = p("FmSearch"), ne = p("FmTable"), H = p("fm-button"), le = p("fm-side-sheet");
115
115
  return f(), E(Z, null, [re(o.$slots, "default", {
116
116
  trigger: M
117
117
  }), d(le, {
@@ -124,17 +124,17 @@ 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
- "side-sheet-footer": g(() => [n("div", Oe, [d(W, {
130
+ "side-sheet-footer": g(() => [n("div", Ue, [d(H, {
131
131
  label: e(t)("menu.common.actions.update"),
132
- loading: O.value,
132
+ loading: U.value,
133
133
  size: "lg",
134
134
  type: "submit",
135
135
  variant: "primary",
136
136
  disabled: !i.value.id
137
- }, null, 8, ["label", "loading", "disabled"]), d(W, {
137
+ }, null, 8, ["label", "loading", "disabled"]), d(H, {
138
138
  label: e(t)("menu.common.actions.cancel"),
139
139
  size: "lg",
140
140
  variant: "tertiary",
@@ -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
@@ -188,36 +188,36 @@ const $e = {
188
188
  }, 8, ["modelValue", "is-container", "is-container-props", "onOn:clickedAway"])], 64);
189
189
  };
190
190
  }
191
- }), Le = Ue, Ne = {
191
+ }), Ne = Le, Oe = {
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
+ }, We = /* @__PURE__ */ K({
211
211
  __name: "CategoryTable",
212
- setup(N) {
213
- const h = ee(), _ = Y(), V = G(_), b = q(V), $ = oe({
212
+ setup(O) {
213
+ const h = ee(), _ = Y(), V = W(_), b = q(V), $ = oe({
214
214
  dialog: h,
215
215
  menuLoader: b
216
216
  }), {
217
217
  categories: m
218
- } = J(), r = F(""), x = B(() => m.value.filter((l) => l.name.toLowerCase().includes(r.value.toLowerCase()))), {
218
+ } = G(), r = F(""), x = B(() => m.value.filter((l) => l.name.toLowerCase().includes(r.value.toLowerCase()))), {
219
219
  t
220
- } = j(), O = F([{
220
+ } = j(), U = F([{
221
221
  accessorKey: "name",
222
222
  header: () => t("menu.category.columns.title"),
223
223
  enableSorting: !1,
@@ -245,14 +245,14 @@ const $e = {
245
245
  header: "",
246
246
  cell: (l) => {
247
247
  const s = l.row.original;
248
- return L("div", {
248
+ return N("div", {
249
249
  class: "flex justify-end"
250
- }, [L(R.FmButton, {
250
+ }, [N(R.FmButton, {
251
251
  icon: "delete",
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: J.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
@@ -295,14 +295,14 @@ const $e = {
295
295
  }
296
296
  const i = ie();
297
297
  async function C(l) {
298
- be(i, Le, {
298
+ be(i, Ne, {
299
299
  initialValue: l
300
300
  });
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),
@@ -314,15 +314,15 @@ const $e = {
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(J).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", Oe, [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,8 +331,8 @@ 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, {
335
- "column-defs": O.value,
334
+ default: g(() => [d(I, {
335
+ "column-defs": U.value,
336
336
  draggable: !0,
337
337
  "page-size": e(m).length,
338
338
  "row-data": e(m),
@@ -347,19 +347,19 @@ 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" }, Ge = { 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" }, gt = /* @__PURE__ */ K({
351
351
  __name: "Category",
352
- setup(N) {
353
- const h = ee(), _ = Y(), V = G(_), b = q(V), $ = oe({ dialog: h, menuLoader: b }), { categories: m } = J(), { t: r } = j();
352
+ setup(O) {
353
+ const h = ee(), _ = Y(), V = W(_), b = q(V), $ = oe({ dialog: h, menuLoader: b }), { categories: m } = G(), { t: r } = j();
354
354
  function x() {
355
355
  $.create();
356
356
  }
357
357
  const t = B(() => m.value.length);
358
- return ke().resetOnMount(), (O, u) => (f(), U(ve, {
358
+ return ke().resetOnMount(), (U, u) => (f(), L(ve, {
359
359
  heading: e(r)("menu.category.title")
360
360
  }, {
361
361
  default: g(() => [
362
- e(m).length > 0 ? (f(), U(Ge, { key: 0 })) : (f(), U(e(Ve), {
362
+ e(m).length > 0 ? (f(), L(We, { key: 0 })) : (f(), L(e(Ve), {
363
363
  key: 1,
364
364
  action: {
365
365
  text: e(r)("menu.category.add"),
@@ -371,12 +371,12 @@ const $e = {
371
371
  ]),
372
372
  "append-heading": g(() => [
373
373
  n("div", qe, [
374
- n("div", Je, [
375
- n("div", We, [
376
- n("p", He, T(t.value), 1)
374
+ n("div", Ge, [
375
+ n("div", He, [
376
+ n("p", Je, T(t.value), 1)
377
377
  ])
378
378
  ]),
379
- e(m).length > 0 ? (f(), U(pe, {
379
+ e(m).length > 0 ? (f(), L(pe, {
380
380
  key: 0,
381
381
  label: e(r)("menu.category.add"),
382
382
  "prepend-icon": "add",
@@ -1,16 +1,16 @@
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
- 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-ibc-yXVt.js";
5
- import { _ as J } from "./app-CLY6CoaV.js";
6
- import { u as O } from "./menu-Dw-Hpy07.js";
7
- import { _ as R } from "./index.vue_vue_type_script_setup_true_lang-BgqsTzLI.js";
8
- import { u as q } from "./category-BuPYaEsy.js";
9
- const H = {
1
+ import { defineComponent as M, 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
+ import { useI18n as S } from "@feedmepos/mf-common";
3
+ import { useSnackbar as L, useBreakpoints as $, useDialog as A } from "@feedmepos/ui-library";
4
+ import { A as F, u as I, W as Y, M as B, H as j, B as H } from "./menu-CsIzrBEr.js";
5
+ import { _ as R } from "./app-CoVUUCa_.js";
6
+ import { u as T } from "./menu-CDrsBjmr.js";
7
+ import { _ as W } from "./index.vue_vue_type_script_setup_true_lang-BgqsTzLI.js";
8
+ import { u as q } from "./category-u5eo_Vjd.js";
9
+ const G = {
10
10
  key: 0
11
- }, Q = {
11
+ }, J = {
12
12
  class: "flex justify-end items-center"
13
- }, W = {
13
+ }, Q = {
14
14
  class: "w-[320px]"
15
15
  }, X = {
16
16
  key: 1,
@@ -25,12 +25,12 @@ const H = {
25
25
  class: "fm-typo-en-body-lg-600"
26
26
  }, ae = {
27
27
  class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
28
- }, ne = /* @__PURE__ */ S({
28
+ }, ne = /* @__PURE__ */ M({
29
29
  __name: "CategoryTable",
30
- setup(T) {
31
- const f = M(), y = F(f), h = D(y), p = I(), {
30
+ setup(D) {
31
+ const f = L(), y = F(f), h = B(y), p = I(), {
32
32
  categories: v
33
- } = O(), b = k(() => {
33
+ } = T(), b = k(() => {
34
34
  var l, t;
35
35
  const r = ((t = (l = p.currentCatalog) == null ? void 0 : l.override) == null ? void 0 : t.category) ?? {}, o = v.value.map((e, c) => {
36
36
  var m;
@@ -40,10 +40,10 @@ const H = {
40
40
  position: e.id ? ((m = r[e.id]) == null ? void 0 : m.position) ?? c + 1 : null
41
41
  };
42
42
  });
43
- return j(o, (e) => e.name);
43
+ return Y(o, (e) => e.name);
44
44
  }), a = C(""), d = k(() => b.value.filter((r) => r.name.toLowerCase().includes(a.value.toLowerCase()))), {
45
45
  t: s
46
- } = L(), x = C([{
46
+ } = S(), x = C([{
47
47
  accessorKey: "name",
48
48
  header: () => s("menu.category.columns.title"),
49
49
  enableSorting: !1,
@@ -62,7 +62,7 @@ const H = {
62
62
  });
63
63
  }
64
64
  }]);
65
- async function B(r) {
65
+ async function N(r) {
66
66
  var e;
67
67
  const o = p.currentCatalog;
68
68
  if (!o)
@@ -76,8 +76,8 @@ const H = {
76
76
  _id: c.id
77
77
  });
78
78
  }), await l({
79
- module: G.F_MENU_MODULE_V4_KEY.enum.catalog,
80
- operation: A.F_OPERATION_TYPE.update,
79
+ module: H.F_MENU_MODULE_V4_KEY.enum.catalog,
80
+ operation: j.F_OPERATION_TYPE.update,
81
81
  data: {
82
82
  ...o,
83
83
  override: {
@@ -87,7 +87,7 @@ const H = {
87
87
  }
88
88
  }, "Category");
89
89
  }
90
- const N = Y(), z = k(() => N.breakpoints.value.xs);
90
+ const O = $(), z = k(() => O.breakpoints.value.xs);
91
91
  return (r, o) => {
92
92
  const l = w("FmSearch"), t = w("FmTable");
93
93
  return z.value ? (u(), _("div", X, [i("div", Z, [g(l, {
@@ -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", G, [i("div", J, [i("div", Q, [g(l, {
107
107
  modelValue: a.value,
108
108
  "onUpdate:modelValue": o[0] || (o[0] = (e) => a.value = e),
109
109
  autofocus: "",
@@ -111,7 +111,7 @@ const H = {
111
111
  placeholder: n(s)("menu.common.labels.search_placeholder", {
112
112
  type: n(s)("menu.category.title")
113
113
  })
114
- }, null, 8, ["modelValue", "placeholder"])])]), g(J, null, {
114
+ }, null, 8, ["modelValue", "placeholder"])])]), g(R, null, {
115
115
  default: K(() => [g(t, {
116
116
  "column-defs": x.value,
117
117
  draggable: !0,
@@ -121,20 +121,20 @@ const H = {
121
121
  "shrink-at": !1,
122
122
  "hide-footer": "",
123
123
  "pin-header-row": "",
124
- onDndChanged: B
124
+ onDndChanged: N
125
125
  }, null, 8, ["column-defs", "page-size", "row-data", "search-value"])]),
126
126
  _: 1
127
127
  })]));
128
128
  };
129
129
  }
130
- }), pe = /* @__PURE__ */ S({
130
+ }), pe = /* @__PURE__ */ M({
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(D) {
133
+ const f = A(), y = L(), h = F(y), p = B(h), v = q({ dialog: f, menuLoader: p }), { categories: b } = T(), { t: a } = S();
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, { key: 0 })) : (u(), V(n(W), {
138
138
  key: 1,
139
139
  action: {
140
140
  text: n(a)("menu.category.add"),