@feedmepos/mf-menu 0.31.17-dev → 0.31.17

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 (67) hide show
  1. package/dist/{App-Bi92tsdR.js → App-C0zWv8Bb.js} +6 -6
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-C3rIskDF.js → ApplyProduct.vue_vue_type_script_setup_true_lang-BlBfa-ly.js} +2 -2
  3. package/dist/{Catalog-d_9KGaWO.js → Catalog-hTR0c1zS.js} +18 -18
  4. package/dist/{Category-DCjOc3ks.js → Category-BTpAWhsI.js} +36 -36
  5. package/dist/{Category-BO0EYYGP.js → Category-CxDoeXi_.js} +24 -24
  6. package/dist/{CookingGuide-B3YHoKP-.js → CookingGuide-C87lhZ67.js} +56 -56
  7. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-B454jEg0.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-BEKiJBLy.js} +1 -1
  8. package/dist/{Group-BTmRo5b4.js → Group-D1kUgRjF.js} +3 -3
  9. package/dist/{Group-Cj39szTY.js → Group-Dad3CsPD.js} +1 -1
  10. package/dist/{Group.vue_vue_type_script_setup_true_lang-CIZithwK.js → Group.vue_vue_type_script_setup_true_lang-C-AS_gUD.js} +54 -54
  11. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DubOzDU3.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-Dz9BUoZe.js} +6 -6
  12. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-C2TnjKpu.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-BfZuETkY.js} +317 -317
  13. package/dist/{Ingredient-BTV0a-Tz.js → Ingredient-CL0V9EvP.js} +52 -52
  14. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-C7X1K-jY.js → InventoryBinding.vue_vue_type_script_setup_true_lang-BFTt-8OI.js} +1052 -1052
  15. package/dist/{LinkProductSideSheet-Cyb0Eex4.js → LinkProductSideSheet-CWMNlFCF.js} +14 -14
  16. package/dist/{MenuSetting-DozrYwzG.js → MenuSetting-DA35bTTq.js} +11 -11
  17. package/dist/{PrintRoute-B2kOXN6N.js → PrintRoute-B49FDrP6.js} +26 -26
  18. package/dist/{Product-DCqWb9i2.js → Product-CBGfSsYA.js} +1 -1
  19. package/dist/{Product.vue_vue_type_script_setup_true_lang-DFaQiLsv.js → Product.vue_vue_type_script_setup_true_lang-B3kyqD2S.js} +113 -113
  20. package/dist/ProductInternalTools-DiISILIn.js +415 -0
  21. package/dist/Products-BDvqmjZI.js +270 -0
  22. package/dist/{Publish-BzreviuZ.js → Publish-1zBRSD7U.js} +37 -37
  23. package/dist/{Recipe-BgJFJ4Dx.js → Recipe-D0VAcSN-.js} +25 -25
  24. package/dist/{Scheduler-Xp0G2vel.js → Scheduler-8BDLlHCV.js} +13 -13
  25. package/dist/{ServingSequence-CzA1hyup.js → ServingSequence-Bh3DhN3i.js} +36 -36
  26. package/dist/{Setting-DAkorx7V.js → Setting-BdSJCn6q.js} +24 -24
  27. package/dist/{Subcategory-BCbM_yd4.js → Subcategory-CBfEsTKy.js} +39 -39
  28. package/dist/{Takeaway-DKpjh1Ij.js → Takeaway-WPQ-ow5H.js} +1 -1
  29. package/dist/{Takeaway-DtnIyLkz.js → Takeaway-aLJ1QKbm.js} +12 -12
  30. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-PAB0AAfO.js → Takeaway.vue_vue_type_script_setup_true_lang-ZYP7hH6p.js} +25 -25
  31. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-CDABZaRa.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-aHMZigPA.js} +116 -116
  32. package/dist/{Unit-Da9V4qF7.js → Unit-Csan3-PW.js} +8 -8
  33. package/dist/{Variant-ONSE3GDp.js → Variant-aYCqqz9A.js} +18 -18
  34. package/dist/{_id_-Dlu5oAk9.js → _id_-BL-Q5Nck.js} +19 -19
  35. package/dist/{app-nWiUbcbv.js → app-CV3Y87bf.js} +262 -247
  36. package/dist/{app-BNF756eJ.js → app-CngqdPlx.js} +1 -1
  37. package/dist/app.js +1 -1
  38. package/dist/apps/mf-menu/src/app.d.ts +12 -0
  39. package/dist/apps/mf-menu/src/components/productInternalTools/ImageUpdatePreview.vue.d.ts +33 -0
  40. package/dist/apps/mf-menu/src/components/productInternalTools/ImageUploadDialog.vue.d.ts +28 -0
  41. package/dist/apps/mf-menu/src/utils/batchProcessor.d.ts +33 -0
  42. package/dist/apps/mf-menu/src/utils/images.d.ts +44 -0
  43. package/dist/apps/mf-menu/src/views/Product/ProductInternalTools.vue.d.ts +2 -0
  44. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  45. package/dist/assets/{linked-status-C195HQ8m.js → linked-status-CQPFAl1J.js} +2 -2
  46. package/dist/assets/{override-menu-AQwvxLhn.js → override-menu-DP9T_24q.js} +2 -2
  47. package/dist/assets/{validate-menu-BvGiRNmy.js → validate-menu-CcOso72D.js} +2 -2
  48. package/dist/{catalog-DJDsoY-2.js → catalog-ClQJMV9X.js} +1 -1
  49. package/dist/{catalogSetting-C8FvJ4OQ.js → catalogSetting-CXeRg55T.js} +1 -1
  50. package/dist/{category-Bf-qn7ic.js → category-_lR1fIWU.js} +1 -1
  51. package/dist/{currency-DMhhoVtl.js → currency-x_SA4GNt.js} +1 -1
  52. package/dist/{dayjs.min-BN8QQck7.js → dayjs.min-JzYVBtTX.js} +1 -1
  53. package/dist/{index-BWXnodS5.js → index-BaLeGLHZ.js} +23 -23
  54. package/dist/{index-DIDVppoP.js → index-Cb7zxMMe.js} +1 -1
  55. package/dist/{index-DWIFeRdA.js → index-Cjo_VHIT.js} +14 -14
  56. package/dist/{item-2jMu-J2m.js → item-E-Egz6v8.js} +1747 -1711
  57. package/dist/jszip.min-8UVTn3ZT.js +2393 -0
  58. package/dist/{menu-Dk9WJ37H.js → menu-CrEs_Qy-.js} +1 -1
  59. package/dist/{menu-CAzTKH28.js → menu-DYMiA6Oc.js} +156 -156
  60. package/dist/mf-menu.css +1 -1
  61. package/dist/{priceTier-BtHmZYAn.js → priceTier-Bs3jL4nk.js} +1 -1
  62. package/dist/{scheduler-R20M5JrX.js → scheduler-DxMNHPSa.js} +3 -3
  63. package/dist/{subcategory-CyDndVTK.js → subcategory-h4VL-0kK.js} +63 -63
  64. package/dist/{toExcel-DjH_qdTv.js → toExcel-DRJ3j3P7.js} +2 -2
  65. package/dist/{unit-BA6MtbAH.js → unit-D4v2m10X.js} +24 -24
  66. package/package.json +1 -1
  67. package/dist/Products-CybC3HCA.js +0 -2656
@@ -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 I, createCommentVNode as ue } from "vue";
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";
2
2
  import { useI18n as j } from "@feedmepos/mf-common";
3
3
  import { useSnackbar as Y, components as R, useDialog as ee, FmButtonVariant as H, 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, a1 as fe, $ as _e, I as K, a3 as ye, Q as q, M as te } from "./menu-CAzTKH28.js";
5
+ import { B as G, u as ge, $ as fe, Y as _e, G as K, a3 as ye, O as q, J as te } from "./menu-DYMiA6Oc.js";
6
6
  import { _ as ve } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
7
- import { _ as he } from "./app-nWiUbcbv.js";
7
+ import { _ as he } from "./app-CV3Y87bf.js";
8
8
  import { c as be } from "./createForm-BoUQeZTd.js";
9
- import { _ as J } from "./FormSection.vue_vue_type_script_setup_true_lang-CO4YGYLB.js";
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 Q, a as ke } from "./menu-Dk9WJ37H.js";
13
+ import { u as J, a as ke } from "./menu-CrEs_Qy-.js";
14
14
  import { c as we } from "./check-C9mY6LiX.js";
15
- import { u as Fe } from "./item-2jMu-J2m.js";
16
- import { u as oe } from "./category-Bf-qn7ic.js";
15
+ import { u as Fe } from "./item-E-Egz6v8.js";
16
+ import { u as oe } from "./category-_lR1fIWU.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,9 +27,9 @@ const $e = {
27
27
  class: "flex-1"
28
28
  }, Te = {
29
29
  class: "flex-1 overflow-hidden min-h-[300px]"
30
- }, Ue = {
30
+ }, Oe = {
31
31
  class: "flex gap-8 items-center justify-start"
32
- }, Ie = /* @__PURE__ */ A({
32
+ }, Ue = /* @__PURE__ */ A({
33
33
  __name: "Form",
34
34
  props: {
35
35
  initialValue: {}
@@ -39,15 +39,15 @@ const $e = {
39
39
  }) {
40
40
  const _ = N, V = Y(), b = G(V), $ = q(b), m = ge(), r = Fe(), {
41
41
  categories: x
42
- } = Q(), {
42
+ } = J(), {
43
43
  t
44
- } = j(), U = F(!1), u = F(!1), M = (o) => {
44
+ } = j(), O = 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;
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);
50
- }), O = [{
50
+ }), P = [{
51
51
  accessorKey: "name",
52
52
  header: () => t("menu.category.products.columns.name"),
53
53
  enableSorting: !1
@@ -85,7 +85,7 @@ const $e = {
85
85
  await r.update(o._id);
86
86
  }
87
87
  const y = B(() => m.version === K.F_MENU_VERSION.enum.v4);
88
- async function P(o) {
88
+ async function I(o) {
89
89
  const a = ye(o, i.value.id);
90
90
  await r.updateMany(a);
91
91
  }
@@ -127,9 +127,9 @@ const $e = {
127
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", Ue, [d(W, {
130
+ "side-sheet-footer": g(() => [n("div", Oe, [d(W, {
131
131
  label: e(t)("menu.common.actions.update"),
132
- loading: U.value,
132
+ loading: O.value,
133
133
  size: "lg",
134
134
  type: "submit",
135
135
  variant: "primary",
@@ -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(J, {
143
+ default: g(() => [n("div", Me, [d(Q, {
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(J, {
154
+ }, 8, ["title"]), d(Q, {
155
155
  title: e(t)("menu.category.products.title"),
156
156
  class: "flex-1 min-h-0",
157
157
  shrinkable: !0
@@ -171,7 +171,7 @@ const $e = {
171
171
  modelValue: C.value,
172
172
  "onUpdate:modelValue": a[1] || (a[1] = (v) => C.value = v)
173
173
  }, null, 8, ["placeholder", "modelValue"])])]), n("div", Te, [d(ne, {
174
- "column-defs": O,
174
+ "column-defs": P,
175
175
  draggable: y.value,
176
176
  "page-size": S.value.length,
177
177
  "row-data": S.value,
@@ -179,7 +179,7 @@ const $e = {
179
179
  "shrink-at": !1,
180
180
  "hide-footer": "",
181
181
  "pin-header-row": "",
182
- onDndChanged: P,
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,11 +188,11 @@ const $e = {
188
188
  }, 8, ["modelValue", "is-container", "is-container-props", "onOn:clickedAway"])], 64);
189
189
  };
190
190
  }
191
- }), Le = Ie, Ne = {
191
+ }), Le = Ue, Ne = {
192
192
  key: 0
193
- }, Oe = {
194
- class: "flex justify-end items-center"
195
193
  }, Pe = {
194
+ class: "flex justify-end items-center"
195
+ }, Ie = {
196
196
  class: "w-[320px]"
197
197
  }, ze = {
198
198
  key: 1,
@@ -215,9 +215,9 @@ const $e = {
215
215
  menuLoader: b
216
216
  }), {
217
217
  categories: m
218
- } = Q(), r = F(""), x = B(() => m.value.filter((l) => l.name.toLowerCase().includes(r.value.toLowerCase()))), {
218
+ } = J(), r = F(""), x = B(() => m.value.filter((l) => l.name.toLowerCase().includes(r.value.toLowerCase()))), {
219
219
  t
220
- } = j(), U = F([{
220
+ } = j(), O = F([{
221
221
  accessorKey: "name",
222
222
  header: () => t("menu.category.columns.title"),
223
223
  enableSorting: !1,
@@ -299,10 +299,10 @@ const $e = {
299
299
  initialValue: l
300
300
  });
301
301
  }
302
- const S = de(), O = B(() => S.breakpoints.value.xs);
302
+ const S = de(), P = B(() => S.breakpoints.value.xs);
303
303
  return (l, s) => {
304
- const y = p("FmSearch"), P = p("FmTable"), z = p("FmButton");
305
- return O.value ? (f(), E("div", ze, [n("div", De, [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),
@@ -322,7 +322,7 @@ const $e = {
322
322
  "prepend-icon": "delete",
323
323
  disabled: !c.id,
324
324
  onClick: D((o) => u(c), ["stop"])
325
- }, null, 8, ["text-color", "variant", "disabled", "onClick"])], 8, Ke))), 128))])])) : (f(), E("div", Ne, [n("div", Oe, [n("div", Pe, [d(y, {
325
+ }, null, 8, ["text-color", "variant", "disabled", "onClick"])], 8, Ke))), 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,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(P, {
335
- "column-defs": U.value,
334
+ default: g(() => [d(I, {
335
+ "column-defs": O.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" }, Qe = { 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" }, He = { class: "fm-typo-en-body-md-600 font-semibold" }, gt = /* @__PURE__ */ A({
351
351
  __name: "Category",
352
352
  setup(N) {
353
- const h = ee(), _ = Y(), V = G(_), b = q(V), $ = oe({ dialog: h, menuLoader: b }), { categories: m } = Q(), { t: r } = j();
353
+ const h = ee(), _ = Y(), V = G(_), b = q(V), $ = oe({ dialog: h, menuLoader: b }), { categories: m } = J(), { t: r } = j();
354
354
  function x() {
355
355
  $.create();
356
356
  }
357
357
  const t = B(() => m.value.length);
358
- return ke().resetOnMount(), (U, u) => (f(), I(ve, {
358
+ return ke().resetOnMount(), (O, u) => (f(), U(ve, {
359
359
  heading: e(r)("menu.category.title")
360
360
  }, {
361
361
  default: g(() => [
362
- e(m).length > 0 ? (f(), I(Ge, { key: 0 })) : (f(), I(e(Ve), {
362
+ e(m).length > 0 ? (f(), U(Ge, { key: 0 })) : (f(), U(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", Qe, [
374
+ n("div", Je, [
375
375
  n("div", We, [
376
376
  n("p", He, T(t.value), 1)
377
377
  ])
378
378
  ]),
379
- e(m).length > 0 ? (f(), I(pe, {
379
+ e(m).length > 0 ? (f(), U(pe, {
380
380
  key: 0,
381
381
  label: e(r)("menu.category.add"),
382
382
  "prepend-icon": "add",
@@ -1,14 +1,14 @@
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 z, Fragment as I, renderList as K, toDisplayString as E, createBlock as V } from "vue";
2
- import { useI18n as S } from "@feedmepos/mf-common";
3
- import { useSnackbar as L, useBreakpoints as P, useDialog as U } from "@feedmepos/ui-library";
4
- import { G as F, u as Y, $ as j, Q as T, M as A, I as G } from "./menu-CAzTKH28.js";
5
- import { _ as Q } from "./app-nWiUbcbv.js";
6
- import { u as B } from "./menu-Dk9WJ37H.js";
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 { B as F, u as I, Y as j, O as B, J as A, G } from "./menu-DYMiA6Oc.js";
5
+ import { _ as J } from "./app-CV3Y87bf.js";
6
+ import { u as O } from "./menu-CrEs_Qy-.js";
7
7
  import { _ as R } from "./index.vue_vue_type_script_setup_true_lang-BgqsTzLI.js";
8
- import { u as q } from "./category-Bf-qn7ic.js";
8
+ import { u as q } from "./category-_lR1fIWU.js";
9
9
  const H = {
10
10
  key: 0
11
- }, J = {
11
+ }, Q = {
12
12
  class: "flex justify-end items-center"
13
13
  }, W = {
14
14
  class: "w-[320px]"
@@ -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__ */ M({
28
+ }, ne = /* @__PURE__ */ S({
29
29
  __name: "CategoryTable",
30
- setup(D) {
31
- const f = L(), y = F(f), h = T(y), p = Y(), {
30
+ setup(T) {
31
+ const f = M(), y = F(f), h = B(y), p = I(), {
32
32
  categories: v
33
- } = B(), b = k(() => {
33
+ } = O(), 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;
@@ -43,7 +43,7 @@ const H = {
43
43
  return j(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
- } = S(), x = C([{
46
+ } = L(), 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 N(r) {
65
+ async function D(r) {
66
66
  var e;
67
67
  const o = p.currentCatalog;
68
68
  if (!o)
@@ -87,10 +87,10 @@ const H = {
87
87
  }
88
88
  }, "Category");
89
89
  }
90
- const O = P(), $ = k(() => O.breakpoints.value.xs);
90
+ const N = Y(), z = k(() => N.breakpoints.value.xs);
91
91
  return (r, o) => {
92
92
  const l = w("FmSearch"), t = w("FmTable");
93
- return $.value ? (u(), _("div", X, [i("div", Z, [g(l, {
93
+ return z.value ? (u(), _("div", X, [i("div", Z, [g(l, {
94
94
  autofocus: "",
95
95
  modelValue: a.value,
96
96
  "onUpdate:modelValue": o[1] || (o[1] = (e) => a.value = e),
@@ -98,12 +98,12 @@ const H = {
98
98
  placeholder: n(s)("menu.common.labels.search_placeholder", {
99
99
  type: n(s)("menu.category.title")
100
100
  })
101
- }, null, 8, ["modelValue", "placeholder"])]), i("div", ee, [(u(!0), _(I, null, K(d.value, (e) => (u(), _("div", {
101
+ }, null, 8, ["modelValue", "placeholder"])]), i("div", ee, [(u(!0), _(P, null, U(d.value, (e) => (u(), _("div", {
102
102
  key: e.id || "",
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", J, [i("div", W, [g(l, {
106
+ })), 1)])]))), 128))])])) : (u(), _("div", H, [i("div", Q, [i("div", W, [g(l, {
107
107
  modelValue: a.value,
108
108
  "onUpdate:modelValue": o[0] || (o[0] = (e) => a.value = e),
109
109
  autofocus: "",
@@ -111,8 +111,8 @@ 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(Q, null, {
115
- default: z(() => [g(t, {
114
+ }, null, 8, ["modelValue", "placeholder"])])]), g(J, null, {
115
+ default: K(() => [g(t, {
116
116
  "column-defs": x.value,
117
117
  draggable: !0,
118
118
  "page-size": d.value.length,
@@ -121,16 +121,16 @@ const H = {
121
121
  "shrink-at": !1,
122
122
  "hide-footer": "",
123
123
  "pin-header-row": "",
124
- onDndChanged: N
124
+ onDndChanged: D
125
125
  }, null, 8, ["column-defs", "page-size", "row-data", "search-value"])]),
126
126
  _: 1
127
127
  })]));
128
128
  };
129
129
  }
130
- }), pe = /* @__PURE__ */ M({
130
+ }), pe = /* @__PURE__ */ S({
131
131
  __name: "Category",
132
- setup(D) {
133
- const f = U(), y = L(), h = F(y), p = T(h), v = q({ dialog: f, menuLoader: p }), { categories: b } = B(), { t: a } = S();
132
+ setup(T) {
133
+ const f = $(), y = M(), h = F(y), p = B(h), v = q({ dialog: f, menuLoader: p }), { categories: b } = O(), { t: a } = L();
134
134
  function d() {
135
135
  v.create();
136
136
  }