@feedmepos/mf-menu 0.32.64 → 0.32.65

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 (72) hide show
  1. package/dist/{App-W8bH6kiT.js → App-rjcnTQzq.js} +8 -8
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-DvHmwIP2.js → ApplyProduct.vue_vue_type_script_setup_true_lang-BlX-ygeo.js} +3 -3
  3. package/dist/{ApplyProductDialog.vue_vue_type_script_setup_true_lang-2nFIpZv4.js → ApplyProductDialog.vue_vue_type_script_setup_true_lang-DTEZouRz.js} +3 -3
  4. package/dist/{Catalog-pywklogh.js → Catalog-nWzKN1u3.js} +6 -6
  5. package/dist/{Category-UMDcymDA.js → Category-DoUtDyuB.js} +14 -14
  6. package/dist/{Category-CLs58F_F.js → Category-Q42BO86t.js} +8 -8
  7. package/dist/{CookingGuide-Cefv83hr.js → CookingGuide-DGVhn_Yb.js} +5 -5
  8. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-C9CvjWEO.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-Dc_Ec9Pf.js} +1 -1
  9. package/dist/{Group-Ujeo9noG.js → Group-B9vMDg2m.js} +3 -3
  10. package/dist/{Group-CfxNpgp7.js → Group-D8st1q0o.js} +1 -1
  11. package/dist/{Group.vue_vue_type_script_setup_true_lang-C-eZ5PGS.js → Group.vue_vue_type_script_setup_true_lang-CV_w5c7T.js} +48 -48
  12. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-qTEz4XWJ.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-36kp3qi8.js} +5 -5
  13. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-Kf10i_T2.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-ZbhwNALE.js} +6282 -6280
  14. package/dist/{Ingredient-CsHbFizZ.js → Ingredient-DWN4vTKf.js} +4 -4
  15. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-NKoRT-LI.js → InventoryBinding.vue_vue_type_script_setup_true_lang-DJrz0wWm.js} +2 -2
  16. package/dist/{LinkProductSideSheet-B-Trz4a6.js → LinkProductSideSheet-DXmxJs-1.js} +4 -4
  17. package/dist/{MenuSetting-BNWjJAp4.js → MenuSetting-BSlQXo8m.js} +7 -7
  18. package/dist/{OrderPacing-DhKmymC7.js → OrderPacing-B8pgEMjf.js} +5 -5
  19. package/dist/{PrintRoute-DaIY94Ts.js → PrintRoute-agfebph4.js} +5 -5
  20. package/dist/{Product-SBeMVZBU.js → Product-CaA1CdTN.js} +1 -1
  21. package/dist/{Product.vue_vue_type_script_setup_true_lang-CDoJwAFZ.js → Product.vue_vue_type_script_setup_true_lang-Bsx6JceZ.js} +108 -108
  22. package/dist/{ProductInternalTools-BAHMukHo.js → ProductInternalTools-DHQz_Z8o.js} +25 -25
  23. package/dist/{Products-CvUK4ngP.js → Products-CeVnRRFO.js} +63 -63
  24. package/dist/{Publish-BqI8LP_Y.js → Publish-rN34cEkS.js} +4 -4
  25. package/dist/{Recipe--LCvPofA.js → Recipe-C_qTZ_E1.js} +5 -5
  26. package/dist/{RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-DaqG3ZEC.js → RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-C6lkwlc5.js} +1 -1
  27. package/dist/{RuleView.vue_vue_type_script_setup_true_lang-DsCNLIVd.js → RuleView.vue_vue_type_script_setup_true_lang-LbagGtcn.js} +595 -595
  28. package/dist/{Scheduler-BkXNha9_.js → Scheduler-DeixLUzk.js} +3 -3
  29. package/dist/{ServingSequence-DvF8yZTp.js → ServingSequence-CAmQBzaK.js} +3 -3
  30. package/dist/{Setting-dfdQhacG.js → Setting-C_Dl4MiB.js} +5 -5
  31. package/dist/{Subcategory-DoiEnCY-.js → Subcategory-C8DHzzkd.js} +6 -6
  32. package/dist/{Takeaway-CfTKoZgq.js → Takeaway-CIRpXPFx.js} +1 -1
  33. package/dist/{Takeaway-Pyol2JIm.js → Takeaway-CxYihXC0.js} +4 -4
  34. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-A2Uz3Vx5.js → Takeaway.vue_vue_type_script_setup_true_lang-CcSjxPY4.js} +5 -5
  35. package/dist/{TranslationFieldSection.vue_vue_type_script_setup_true_lang-BAMLQtFW.js → TranslationFieldSection.vue_vue_type_script_setup_true_lang-D-ojP61R.js} +1 -1
  36. package/dist/{TranslationSideSheet.vue_vue_type_script_setup_true_lang-Bx6Dfb9q.js → TranslationSideSheet.vue_vue_type_script_setup_true_lang-BztGh7n9.js} +2 -2
  37. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-Bex1NCnU.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-Cv4iVhML.js} +341 -340
  38. package/dist/{Unit-ODy76xeS.js → Unit-Cd0y2m5k.js} +2 -2
  39. package/dist/{Variant-BFUqQyub.js → Variant-B2CKhSOl.js} +3 -3
  40. package/dist/{_id_-DQO6Zi8b.js → _id_-DZiXY0H3.js} +10 -10
  41. package/dist/{app-BNF3d7ks.js → app-T7VNSy7v.js} +1 -1
  42. package/dist/{app-BNqI06Lw.js → app-T8AXgSEa.js} +32 -32
  43. package/dist/app.js +1 -1
  44. package/dist/apps/mf-menu/src/helper/itemCategories.d.ts +18 -0
  45. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  46. package/dist/assets/{override-menu-BCrsilnp.js → linked-status-CCYZRm4Q.js} +3 -3
  47. package/dist/assets/{menu-export-oSHHIKfH.js → menu-export-CAHQqTea.js} +34 -34
  48. package/dist/assets/{linked-status-OJYsf1K1.js → override-menu-CHSXJZzL.js} +3 -3
  49. package/dist/assets/{validate-menu-CoDW8e4r.js → validate-menu-B4fZvuxj.js} +2 -2
  50. package/dist/{catalog-BiUOGVhu.js → catalog-JKO0yOoK.js} +1 -1
  51. package/dist/{catalogSetting-Dt03eB79.js → catalogSetting-88ecNK3c.js} +1 -1
  52. package/dist/{currency-I2Plgz6g.js → currency-FtZ1Kndg.js} +1 -1
  53. package/dist/{dayjs.min-CVgq1MI5.js → dayjs.min-4vLGgFCE.js} +2 -2
  54. package/dist/{discardConfirm-CU5H7XLz.js → discardConfirm-CM6g-V_v.js} +1 -1
  55. package/dist/{index-OUaL4kl7.js → index-BRKz6YXB.js} +5 -5
  56. package/dist/{index-D79td5bo.js → index-DJLvriHh.js} +6 -6
  57. package/dist/index-wiJWDZ8Q.js +310 -0
  58. package/dist/{index.vue_vue_type_script_setup_true_lang-BJ5dPd5h.js → index.vue_vue_type_script_setup_true_lang-qm3HbXBN.js} +895 -895
  59. package/dist/{item-BPryyFAB.js → item-DZ7QwbXg.js} +1262 -1338
  60. package/dist/{jszip.min-D3CS7h7J.js → jszip.min-CMMOVzck.js} +167 -167
  61. package/dist/{linkProducts-ClCfYWFx.js → linkProducts-H4GRfufL.js} +4 -4
  62. package/dist/{memberPricing-CLr-Y_7e.js → memberPricing-DHWy5fqz.js} +1 -1
  63. package/dist/{menu-gBc-za7C.js → menu-CIm-Royr.js} +1 -1
  64. package/dist/{menuV2-D7O1K9Ej.js → menuV2-BAdmIxrF.js} +52 -52
  65. package/dist/{order_pacing-DVn2Kb9a.js → order_pacing-D58D3fak.js} +5 -5
  66. package/dist/{priceTier-33L1xIZW.js → priceTier-BQ8NefKy.js} +1 -1
  67. package/dist/{rules-C7ujXDzl.js → rules-CCMx9A-T.js} +3 -3
  68. package/dist/{scheduler-Dzj2Ed1a.js → scheduler-CV0r5tCc.js} +5 -5
  69. package/dist/{toExcel-CGOr53pl.js → toExcel-D4fh3tgH.js} +2 -2
  70. package/dist/{unit-CfREeFuX.js → unit-p_16wmg2.js} +3 -3
  71. package/package.json +1 -1
  72. package/dist/index-CD_omf3p.js +0 -222
@@ -1,24 +1,24 @@
1
- import { ref as F, computed as h, defineComponent as G, resolveComponent as B, createBlock as I, openBlock as m, withCtx as $, createElementVNode as b, createVNode as d, unref as r, createElementBlock as w, Fragment as de, renderList as Se, createCommentVNode as M, normalizeClass as me, toDisplayString as E, withModifiers as fe, mergeModels as lt, useModel as at, renderSlot as ye, watch as ie, createTextVNode as ot, watchEffect as rt, nextTick as Me, resolveDynamicComponent as nt, onMounted as st, h as U, isRef as Le, normalizeStyle as ht } from "vue";
2
- import { l as be } from "./discardConfirm-CU5H7XLz.js";
3
- import { u as Ie, o as we, a as ce, d as Ue, I as xt, Q as Ct, _ as _e } from "./index.vue_vue_type_script_setup_true_lang-BJ5dPd5h.js";
4
- import { useI18n as $e, useCoreStore as ze, useCustomAttributes as wt } from "@feedmepos/mf-common";
5
- import { u as Ve } from "./menu-gBc-za7C.js";
6
- import { L as qe } from "./LinkProductSideSheet-B-Trz4a6.js";
7
- import { _ as We } from "./RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-DaqG3ZEC.js";
8
- import { _ as Ne, a as He } from "./CustomAttributeChip.vue_vue_type_script_setup_true_lang-C9CvjWEO.js";
9
- import { u as kt } from "./linkProducts-ClCfYWFx.js";
10
- import { f as St, o as Vt, a as Ft, m as It } from "./menuV2-D7O1K9Ej.js";
11
- import { w as ut, aq as $t, ar as Re, as as Tt, B as Pt, N as At, H as Rt, at as Qe } from "./item-BPryyFAB.js";
12
- import { b as Ye, H as Mt } from "./app-5fxKLAzS.js";
13
- import { useBreakpoints as it, components as ee, useDialog as Ut, FmButtonColorThemeVariant as W, FmButtonVariant as X } from "@feedmepos/ui-library";
14
- import { a as Oe, F as Nt } from "./index-CD_omf3p.js";
15
- import { _ as De, d as Ot, e as zt } from "./app-BNqI06Lw.js";
1
+ import { ref as F, computed as h, defineComponent as G, resolveComponent as K, createBlock as I, openBlock as m, withCtx as $, createElementVNode as b, createVNode as d, unref as r, createElementBlock as w, Fragment as de, renderList as Se, createCommentVNode as M, normalizeClass as me, toDisplayString as E, withModifiers as fe, mergeModels as lt, useModel as at, renderSlot as ye, watch as ie, createTextVNode as ot, watchEffect as rt, nextTick as Me, resolveDynamicComponent as nt, onMounted as st, h as U, isRef as Le, normalizeStyle as ht } from "vue";
2
+ import { l as be } from "./discardConfirm-CM6g-V_v.js";
3
+ import { u as Ie, o as we, a as ce, d as Ue, I as xt, Q as Ct, _ as _e } from "./index.vue_vue_type_script_setup_true_lang-qm3HbXBN.js";
4
+ import { useI18n as $e, useCoreStore as Ne, useCustomAttributes as wt } from "@feedmepos/mf-common";
5
+ import { u as Ve } from "./menu-CIm-Royr.js";
6
+ import { L as qe } from "./LinkProductSideSheet-DXmxJs-1.js";
7
+ import { _ as We } from "./RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-C6lkwlc5.js";
8
+ import { _ as Oe, a as He } from "./CustomAttributeChip.vue_vue_type_script_setup_true_lang-Dc_Ec9Pf.js";
9
+ import { u as kt } from "./linkProducts-H4GRfufL.js";
10
+ import { f as St, o as Vt, a as Ft, m as It } from "./menuV2-BAdmIxrF.js";
11
+ import { w as ut, al as $t, am as Tt, M as Pt, G as At, an as Qe } from "./item-DZ7QwbXg.js";
12
+ import { b as Ye, H as Rt } from "./app-5fxKLAzS.js";
13
+ import { useBreakpoints as it, components as ee, useDialog as Mt, FmButtonColorThemeVariant as W, FmButtonVariant as X } from "@feedmepos/ui-library";
14
+ import { f as ze, h as Re, g as Ut, F as Ot } from "./index-wiJWDZ8Q.js";
15
+ import { _ as De, d as zt, e as Nt } from "./app-T8AXgSEa.js";
16
16
  import { _ as ke } from "./TextChip.vue_vue_type_script_setup_true_lang-8frWuZFL.js";
17
- import { _ as Dt } from "./index-D79td5bo.js";
18
- import { r as Bt, _ as Kt } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-Kf10i_T2.js";
17
+ import { _ as Dt } from "./index-DJLvriHh.js";
18
+ import { r as Kt, _ as Bt } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-ZbhwNALE.js";
19
19
  import { _ as Ze } from "./TranslationViewChip.vue_vue_type_script_setup_true_lang-DiK3fi9J.js";
20
20
  import { c as jt } from "./check-C9mY6LiX.js";
21
- import { f as Et } from "./currency-I2Plgz6g.js";
21
+ import { f as Et } from "./currency-FtZ1Kndg.js";
22
22
  import { w as Gt } from "./tooltip-B5BiPMx9.js";
23
23
  function Lt(C, l, c = C) {
24
24
  const n = F(!0), o = h(() => {
@@ -43,7 +43,7 @@ function Lt(C, l, c = C) {
43
43
  }, toggleOption: (f) => {
44
44
  var _, y, k;
45
45
  let s;
46
- l.value === void 0 && n.value ? s = [f] : l.value === void 0 && !n.value ? s = (_ = C.value.map((z) => z.value)) == null ? void 0 : _.filter((z) => z !== f) : (y = l.value) != null && y.includes(f) ? s = (k = l.value) == null ? void 0 : k.filter((z) => z !== f) : s = [...l.value || [], f], s.length === 0 ? (l.value = void 0, n.value = !0) : s.length === C.value.length ? (l.value = void 0, n.value = !1) : l.value = s;
46
+ l.value === void 0 && n.value ? s = [f] : l.value === void 0 && !n.value ? s = (_ = C.value.map((N) => N.value)) == null ? void 0 : _.filter((N) => N !== f) : (y = l.value) != null && y.includes(f) ? s = (k = l.value) == null ? void 0 : k.filter((N) => N !== f) : s = [...l.value || [], f], s.length === 0 ? (l.value = void 0, n.value = !0) : s.length === C.value.length ? (l.value = void 0, n.value = !1) : l.value = s;
47
47
  } };
48
48
  }
49
49
  const qt = { class: "inline-flex items-center" }, Wt = {
@@ -57,27 +57,27 @@ const qt = { class: "inline-flex items-center" }, Wt = {
57
57
  emits: ["toggleAttributeFilter"],
58
58
  setup(C, { emit: l }) {
59
59
  const c = l, n = Ie(), { categories: o, selectedCategories: u } = Ve(), a = h(() => n.state.currentCategoryIds), v = h(
60
- () => o.value.map((K) => ({ label: K.name, value: K.id }))
60
+ () => o.value.map((B) => ({ label: B.name, value: B.id }))
61
61
  ), f = h(() => v.value.filter(
62
- (K) => K.label.toLowerCase().includes(y.value.toLowerCase())
62
+ (B) => B.label.toLowerCase().includes(y.value.toLowerCase())
63
63
  )), { t: s } = $e(), _ = h(() => {
64
- var K, D, H;
65
- return o.value.length === ((K = u.value) == null ? void 0 : K.length) ? s("menu.category.selector.all") : ((D = u.value) == null ? void 0 : D.length) === 1 ? u.value[0].name : `${(H = u.value) == null ? void 0 : H.length}`;
64
+ var B, D, H;
65
+ return o.value.length === ((B = u.value) == null ? void 0 : B.length) ? s("menu.category.selector.all") : ((D = u.value) == null ? void 0 : D.length) === 1 ? u.value[0].name : `${(H = u.value) == null ? void 0 : H.length}`;
66
66
  }), y = F(""), k = h({
67
67
  get: () => a.value,
68
- set: (K) => {
69
- n.selectCategory(K);
68
+ set: (B) => {
69
+ n.selectCategory(B);
70
70
  }
71
- }), { allSelected: z, toggleAll: Y, toggleOption: S, indeterminate: ae } = Lt(
71
+ }), { allSelected: N, toggleAll: Y, toggleOption: S, indeterminate: ae } = Lt(
72
72
  v,
73
73
  k,
74
74
  f
75
- ), Z = ze(), oe = h(() => Z.itemAttributeSettings.value.length > 0);
75
+ ), Z = Ne(), oe = h(() => Z.itemAttributeSettings.value.length > 0);
76
76
  function q() {
77
77
  c("toggleAttributeFilter");
78
78
  }
79
- return (K, D) => {
80
- const H = B("FmIcon"), J = B("FmChip"), re = B("FmSearch"), Q = B("FmMenuItem"), ne = B("FmMenu");
79
+ return (B, D) => {
80
+ const H = K("FmIcon"), J = K("FmChip"), re = K("FmSearch"), Q = K("FmMenuItem"), ne = K("FmMenu");
81
81
  return m(), I(ne, {
82
82
  "close-on-click": !1,
83
83
  width: 220
@@ -124,7 +124,7 @@ const qt = { class: "inline-flex items-center" }, Wt = {
124
124
  d(Q, {
125
125
  label: "All",
126
126
  "has-checkbox": "",
127
- "model-value": r(z),
127
+ "model-value": r(N),
128
128
  indeterminate: r(ae),
129
129
  onClick: r(Y)
130
130
  }, null, 8, ["model-value", "indeterminate", "onClick"]),
@@ -134,8 +134,8 @@ const qt = { class: "inline-flex items-center" }, Wt = {
134
134
  key: P.value || "",
135
135
  label: P.label,
136
136
  "has-checkbox": "",
137
- "model-value": r(z) || ((T = k.value) == null ? void 0 : T.includes(P.value)),
138
- onClick: (N) => r(S)(P.value)
137
+ "model-value": r(N) || ((T = k.value) == null ? void 0 : T.includes(P.value)),
138
+ onClick: (O) => r(S)(P.value)
139
139
  }, null, 8, ["label", "model-value", "onClick"]);
140
140
  }), 128))
141
141
  ])
@@ -165,7 +165,7 @@ const qt = { class: "inline-flex items-center" }, Wt = {
165
165
  return l.categories.join(", ");
166
166
  });
167
167
  return (s, _) => {
168
- const y = B("FmTooltip");
168
+ const y = K("FmTooltip");
169
169
  return o.value ? (m(), w(de, { key: 1 }, [
170
170
  s.categories.length > 0 ? (m(), w("p", el, [
171
171
  b("span", null, E(r(c)("menu.product.table.columns.category")) + ": ", 1),
@@ -233,7 +233,7 @@ const qt = { class: "inline-flex items-center" }, Wt = {
233
233
  value: o._id
234
234
  })));
235
235
  return (o, u) => {
236
- const a = B("FmSelect");
236
+ const a = K("FmSelect");
237
237
  return m(), I(a, {
238
238
  modelValue: c.value,
239
239
  "onUpdate:modelValue": u[0] || (u[0] = (v) => c.value = v),
@@ -263,7 +263,7 @@ const qt = { class: "inline-flex items-center" }, Wt = {
263
263
  setup(C) {
264
264
  const l = at(C, "modelValue");
265
265
  return (c, n) => {
266
- const o = B("FmCollapsibleTabs");
266
+ const o = K("FmCollapsibleTabs");
267
267
  return m(), w("div", nl, [
268
268
  b("div", sl, [
269
269
  b("div", ul, [
@@ -372,7 +372,7 @@ const qt = { class: "inline-flex items-center" }, Wt = {
372
372
  return ie(() => l.data, () => {
373
373
  u();
374
374
  }), (a, v) => {
375
- const f = B("FmTable");
375
+ const f = K("FmTable");
376
376
  return m(), I(De, null, {
377
377
  default: $(() => [d(f, {
378
378
  "column-defs": c,
@@ -530,7 +530,7 @@ const qt = { class: "inline-flex items-center" }, Wt = {
530
530
  }
531
531
  });
532
532
  }), (u, a) => {
533
- const v = B("FmTable");
533
+ const v = K("FmTable");
534
534
  return m(), I(De, null, {
535
535
  default: $(() => [b("div", fl, [d(v, {
536
536
  class: "min-w-[800px]",
@@ -619,7 +619,7 @@ const qt = { class: "inline-flex items-center" }, Wt = {
619
619
  return (o, u) => {
620
620
  var a, v, f, s, _, y, k;
621
621
  return m(), w("div", _l, [
622
- d(Oe, {
622
+ d(ze, {
623
623
  alt: ((a = c.value) == null ? void 0 : a.name) ?? null,
624
624
  size: 72,
625
625
  src: (v = c.value) == null ? void 0 : v.thumbnail,
@@ -634,7 +634,7 @@ const qt = { class: "inline-flex items-center" }, Wt = {
634
634
  (y = c.value) != null && y.customAttributes ? (m(), w("div", wl, [
635
635
  b("div", kl, [
636
636
  u[0] || (u[0] = b("span", null, "Tagging:", -1)),
637
- d(Ne, {
637
+ d(Oe, {
638
638
  ellipsis: !1,
639
639
  "custom-attributes": (k = c.value) == null ? void 0 : k.customAttributes
640
640
  }, null, 8, ["custom-attributes"])
@@ -665,7 +665,7 @@ const qt = { class: "inline-flex items-center" }, Wt = {
665
665
  ]);
666
666
  return (n, o) => {
667
667
  var a;
668
- const u = B("FmTabs");
668
+ const u = K("FmTabs");
669
669
  return m(), w("div", Vl, [
670
670
  d(Sl, {
671
671
  "item-id": n.itemId,
@@ -725,7 +725,7 @@ const qt = { class: "inline-flex items-center" }, Wt = {
725
725
  c.value = !c.value, o && (l.value = o);
726
726
  }
727
727
  return (o, u) => {
728
- const a = B("FmSideSheet");
728
+ const a = K("FmSideSheet");
729
729
  return m(), w(de, null, [
730
730
  ye(o.$slots, "default", { trigger: n }),
731
731
  d(a, {
@@ -752,7 +752,7 @@ const qt = { class: "inline-flex items-center" }, Wt = {
752
752
  };
753
753
  }
754
754
  });
755
- var Al = Bt();
755
+ var Al = Kt();
756
756
  const et = /* @__PURE__ */ G({
757
757
  __name: "ImportButton",
758
758
  setup(C) {
@@ -760,7 +760,7 @@ const et = /* @__PURE__ */ G({
760
760
  function c() {
761
761
  l.value = !l.value;
762
762
  }
763
- const n = ze();
763
+ const n = Ne();
764
764
  return st(() => {
765
765
  const o = n.currentCountry.value;
766
766
  if (o)
@@ -770,7 +770,7 @@ const et = /* @__PURE__ */ G({
770
770
  console.log("Unable to set country config", u);
771
771
  }
772
772
  }), (o, u) => (m(), w(de, null, [
773
- d(Kt, {
773
+ d(Bt, {
774
774
  modelValue: l.value,
775
775
  "onUpdate:modelValue": u[0] || (u[0] = (a) => l.value = a)
776
776
  }, null, 8, ["modelValue"]),
@@ -785,20 +785,20 @@ const et = /* @__PURE__ */ G({
785
785
  class: "flex space-x-8 items-center"
786
786
  }, Ul = {
787
787
  class: "w-[320px]"
788
- }, Nl = {
789
- key: 0
790
788
  }, Ol = {
789
+ key: 0
790
+ }, zl = {
791
791
  key: 1,
792
792
  class: /* @__PURE__ */ me(["flex-1 flex flex-col", "divide-y divide-fm-color-neutral-gray-100", "overflow-hidden"])
793
- }, zl = {
793
+ }, Nl = {
794
794
  key: 0,
795
795
  class: "flex items-center p-4"
796
796
  }, Dl = {
797
797
  class: /* @__PURE__ */ me(["mr-8", "fm-typo-en-body-md-400"])
798
- }, Bl = {
798
+ }, Kl = {
799
799
  key: 1,
800
800
  class: "px-16 py-4 space-x-8 flex justify-end"
801
- }, Kl = {
801
+ }, Bl = {
802
802
  key: 2
803
803
  }, jl = {
804
804
  class: "flex space-x-8"
@@ -851,9 +851,9 @@ const et = /* @__PURE__ */ G({
851
851
  }) {
852
852
  const n = C, {
853
853
  t: o
854
- } = $e(), u = ze(), a = Ie(), v = Ut(), f = ut(), s = u.currentCountry, _ = h(() => s.value ? ce.Country.getCountry(s.value) : null), y = h(() => a.rules.item), {
854
+ } = $e(), u = Ne(), a = Ie(), v = Mt(), f = ut(), s = u.currentCountry, _ = h(() => s.value ? ce.Country.getCountry(s.value) : null), y = h(() => a.rules.item), {
855
855
  selectedCategories: k
856
- } = Ve(), z = h(() => {
856
+ } = Ve(), N = h(() => {
857
857
  const t = be.flatten(k.value.map((e) => e.items));
858
858
  return be.uniqBy(t, (e) => e._id);
859
859
  }), Y = c, S = F(!1);
@@ -870,18 +870,18 @@ const et = /* @__PURE__ */ G({
870
870
  toggleAttributeFilter: q
871
871
  });
872
872
  const {
873
- attributes: K,
873
+ attributes: B,
874
874
  filterRule: D,
875
875
  mongoQuery: H
876
876
  } = wt({
877
- valueSource: z,
877
+ valueSource: N,
878
878
  entity: "item"
879
- }), J = F(""), re = Ot(J, 300), Q = h(() => {
879
+ }), J = F(""), re = zt(J, 300), Q = h(() => {
880
880
  const t = (i) => {
881
881
  var x;
882
- return !re.value || !re.value.trim() ? !0 : [i.code, i.name, Ke(i), ...Re(ne.value, i), A(i.subCategories), (x = we()[i.orderFrom]) == null ? void 0 : x.label, Object.values(i.customAttributes ?? {}).join(" ")].join(" ").toLowerCase().includes(re.value.toLowerCase());
883
- }, e = (i) => H.value ? Mt(i.customAttributes, H.value) : !0;
884
- return z.value.filter((i) => t(i) && e(i));
882
+ return !re.value || !re.value.trim() ? !0 : [i.code, i.name, Be(i), ...Re(ne.value, i), A(i.subCategories), (x = we()[i.orderFrom]) == null ? void 0 : x.label, Object.values(i.customAttributes ?? {}).join(" ")].join(" ").toLowerCase().includes(re.value.toLowerCase());
883
+ }, e = (i) => H.value ? Rt(i.customAttributes, H.value) : !0;
884
+ return N.value.filter((i) => t(i) && e(i));
885
885
  }), {
886
886
  categories: ne
887
887
  } = Ve(), P = h(() => a.categories.map((t) => ({
@@ -890,9 +890,9 @@ const et = /* @__PURE__ */ G({
890
890
  }))), T = h(() => a.subcategories.map((t) => ({
891
891
  label: t.name,
892
892
  value: t._id
893
- }))), N = h(() => a.subcategories.reduce((t, e) => (t[e._id] = e.name, t), {}));
893
+ }))), O = h(() => a.subcategories.reduce((t, e) => (t[e._id] = e.name, t), {}));
894
894
  function A(t) {
895
- return (t == null ? void 0 : t.map((e) => N.value[e]).filter(Boolean).join("/")) || "--";
895
+ return (t == null ? void 0 : t.map((e) => O.value[e]).filter(Boolean).join("/")) || "--";
896
896
  }
897
897
  const te = (t, e, i) => {
898
898
  let p = be.clone(n.modelValue);
@@ -904,7 +904,7 @@ const et = /* @__PURE__ */ G({
904
904
  ...x,
905
905
  [e]: i
906
906
  }, Y("update:model-value", p));
907
- }, j = $t(() => n.originalValue, () => n.modelValue), O = be.debounce(te, 300), R = (t) => (e) => !!e || o("menu.product.table.validation.name_required", {
907
+ }, j = $t(() => n.originalValue, () => n.modelValue), z = be.debounce(te, 300), R = (t) => (e) => !!e || o("menu.product.table.validation.name_required", {
908
908
  field: t
909
909
  }), se = (t) => t >= 0 || o("menu.product.table.validation.price_min"), L = [R("Name")], pe = () => [(t) => se(typeof t == "number" ? t : Number(t) ?? 0)], he = we(), xe = h(() => {
910
910
  const t = a.isV4;
@@ -919,7 +919,7 @@ const et = /* @__PURE__ */ G({
919
919
  },
920
920
  cell: (t) => {
921
921
  var e, i;
922
- return U(Oe, {
922
+ return U(ze, {
923
923
  src: t.getValue(),
924
924
  alt: (i = (e = t == null ? void 0 : t.row) == null ? void 0 : e.original) == null ? void 0 : i.name,
925
925
  className: "my-8 mx-12",
@@ -944,7 +944,7 @@ const et = /* @__PURE__ */ G({
944
944
  modelValue: j(e._id, "code") ?? (p == null ? void 0 : p.code),
945
945
  placeholder: n.modelValue[e._id].fallbackCode,
946
946
  "onUpdate:modelValue": (x) => {
947
- O(e._id, "code", x);
947
+ z(e._id, "code", x);
948
948
  }
949
949
  });
950
950
  }
@@ -961,7 +961,7 @@ const et = /* @__PURE__ */ G({
961
961
  disabled: !y.value.name,
962
962
  modelValue: j(e._id, "name") ?? e.name,
963
963
  "onUpdate:modelValue": (p) => {
964
- O(e._id, "name", p);
964
+ z(e._id, "name", p);
965
965
  },
966
966
  rules: L,
967
967
  placeholder: e.fallbackName
@@ -1027,7 +1027,7 @@ const et = /* @__PURE__ */ G({
1027
1027
  modelValue: g,
1028
1028
  "onUpdate:modelValue": async (le) => {
1029
1029
  const Ae = a.decodeTax(le);
1030
- O(i._id, "taxes", [Ae]);
1030
+ z(i._id, "taxes", [Ae]);
1031
1031
  }
1032
1032
  });
1033
1033
  }
@@ -1042,8 +1042,8 @@ const et = /* @__PURE__ */ G({
1042
1042
  return U(Xe, {
1043
1043
  categories: Re(ne.value, e)
1044
1044
  });
1045
- const i = Tt(n.originalValue, n.modelValue, e._id) ?? Pt(e), p = (i == null ? void 0 : i.map((V) => V._id)) ?? [], x = i == null ? void 0 : i.reduce((V, g) => (V[g._id] = g, V), {});
1046
- return U(At, {
1045
+ const i = Tt(n.originalValue, n.modelValue, e._id) ?? Ut(e), p = (i == null ? void 0 : i.map((V) => V._id)) ?? [], x = i == null ? void 0 : i.reduce((V, g) => (V[g._id] = g, V), {});
1046
+ return U(Pt, {
1047
1047
  shouldShowChips: !1,
1048
1048
  shouldShowSelectedItemsWithinPlaceholder: !0,
1049
1049
  modelValue: p.length > 0 ? p : [null],
@@ -1051,7 +1051,7 @@ const et = /* @__PURE__ */ G({
1051
1051
  disabled: !!(a.state.currentCatalogId || a.state.currentSchedulerId),
1052
1052
  "onUpdate:modelValue": async (V) => {
1053
1053
  const [g, ...le] = V, Ae = g === "" || g === null;
1054
- O(e._id, {
1054
+ z(e._id, {
1055
1055
  category: g,
1056
1056
  additionalCategories: le.map((Ee) => {
1057
1057
  const Ge = x == null ? void 0 : x[Ee];
@@ -1074,7 +1074,7 @@ const et = /* @__PURE__ */ G({
1074
1074
  size: 180,
1075
1075
  cell: (t) => {
1076
1076
  const e = t.row.original;
1077
- return S.value ? U(Rt, {
1077
+ return S.value ? U(At, {
1078
1078
  // Keep virtual table row height stable while editing.
1079
1079
  shouldShowChips: !1,
1080
1080
  modelValue: j(e._id, "subCategories") ?? e.subCategories ?? [],
@@ -1083,7 +1083,7 @@ const et = /* @__PURE__ */ G({
1083
1083
  disabled: !!(a.state.currentCatalogId || a.state.currentSchedulerId),
1084
1084
  isLocalOnly: !1,
1085
1085
  "onUpdate:modelValue": async (i) => {
1086
- O(e._id, "subCategories", i);
1086
+ z(e._id, "subCategories", i);
1087
1087
  }
1088
1088
  }) : U("span", {
1089
1089
  class: "break-all"
@@ -1097,7 +1097,7 @@ const et = /* @__PURE__ */ G({
1097
1097
  size: 140,
1098
1098
  cell: (t) => {
1099
1099
  const e = t.row.original;
1100
- return U(Ne, {
1100
+ return U(Oe, {
1101
1101
  customAttributes: e.customAttributes
1102
1102
  });
1103
1103
  }
@@ -1178,7 +1178,7 @@ const et = /* @__PURE__ */ G({
1178
1178
  const p = t[0][i], x = Q.value[parseInt(i)];
1179
1179
  x && (p ? e.push(x) : ue.value = e.filter((V) => V !== x));
1180
1180
  }), ue.value = e;
1181
- }), ie(() => z.value, () => {
1181
+ }), ie(() => N.value, () => {
1182
1182
  ve.value = {}, ue.value = [];
1183
1183
  }), ie(() => S.value, () => {
1184
1184
  ve.value = {}, ue.value = [];
@@ -1186,7 +1186,7 @@ const et = /* @__PURE__ */ G({
1186
1186
  const dt = () => {
1187
1187
  ve.value = {};
1188
1188
  };
1189
- async function Be() {
1189
+ async function Ke() {
1190
1190
  await Me();
1191
1191
  const t = () => !!a.currentCatalog || !!a.state.currentSchedulerId, e = (p) => p === "" || p === null ? t() ? "" : null : p, i = Object.values(n.modelValue).filter((p) => {
1192
1192
  const x = Object.values(n.originalValue).find((V) => V._id === p._id);
@@ -1241,7 +1241,7 @@ const et = /* @__PURE__ */ G({
1241
1241
  async function ft(t) {
1242
1242
  await f.update(t.original._id);
1243
1243
  }
1244
- function Ke(t) {
1244
+ function Be(t) {
1245
1245
  var g;
1246
1246
  const e = t.price ?? // TODO: fix type error
1247
1247
  // @ts-ignore
@@ -1262,16 +1262,16 @@ const et = /* @__PURE__ */ G({
1262
1262
  if (e && i) {
1263
1263
  const x = e.override.scheduler[i] ?? {}, V = (p = x == null ? void 0 : x.items) == null ? void 0 : p.filter((g) => g._id === t);
1264
1264
  return V == null ? void 0 : V[0];
1265
- } else return e ? e.override.items[t][0] : i ? a.schedulers.find((g) => g._id === i).items.filter((g) => g._id === t)[0] : z.value.find((x) => x._id === t);
1265
+ } else return e ? e.override.items[t][0] : i ? a.schedulers.find((g) => g._id === i).items.filter((g) => g._id === t)[0] : N.value.find((x) => x._id === t);
1266
1266
  }
1267
- const gt = it(), bt = h(() => gt.breakpoints.value.xs), je = F(null), _t = zt(je, Z), yt = h(() => {
1267
+ const gt = it(), bt = h(() => gt.breakpoints.value.xs), je = F(null), _t = Nt(je, Z), yt = h(() => {
1268
1268
  var e;
1269
1269
  return {
1270
1270
  height: `calc(100vh - ${((e = _t.value) == null ? void 0 : e.top) + 24}px)`
1271
1271
  };
1272
1272
  });
1273
1273
  return (t, e) => {
1274
- const i = B("fm-search"), p = B("fm-button"), x = B("fm-table"), V = B("fm-form");
1274
+ const i = K("fm-search"), p = K("fm-button"), x = K("fm-table"), V = K("fm-form");
1275
1275
  return bt.value ? (m(), w("div", El, [b("div", Gl, [b("div", Ll, [d(i, {
1276
1276
  "model-value": J.value,
1277
1277
  "onUpdate:modelValue": e[5] || (e[5] = (g) => J.value = g),
@@ -1282,24 +1282,24 @@ const et = /* @__PURE__ */ G({
1282
1282
  }, null, -1)), b("div", ql, [ye(t.$slots, "filter")]), Z.value ? (m(), w("div", Wl, [d(r(Ye), {
1283
1283
  ref_key: "attributeFilterRef",
1284
1284
  ref: oe,
1285
- attributes: r(K),
1285
+ attributes: r(B),
1286
1286
  modelValue: r(D),
1287
1287
  "onUpdate:modelValue": e[6] || (e[6] = (g) => Le(D) ? D.value = g : null)
1288
- }, null, 8, ["attributes", "modelValue"])])) : M("", !0)]), z.value.length ? (m(), w("div", Hl, [(m(!0), w(de, null, Se(Q.value, (g) => {
1288
+ }, null, 8, ["attributes", "modelValue"])])) : M("", !0)]), N.value.length ? (m(), w("div", Hl, [(m(!0), w(de, null, Se(Q.value, (g) => {
1289
1289
  var le;
1290
1290
  return m(), w("div", {
1291
1291
  key: g._id,
1292
1292
  class: "max-w-full py-12 px-16 space-x-16 flex items-center",
1293
1293
  onClick: () => vt(g)
1294
- }, [b("div", Yl, [d(Oe, {
1294
+ }, [b("div", Yl, [d(ze, {
1295
1295
  alt: g.name,
1296
1296
  size: 72,
1297
1297
  src: g.thumbnail
1298
1298
  }, null, 8, ["alt", "src"]), b("div", Zl, [b("div", Jl, [b("p", Xl, E(g.name), 1), d(Fe, {
1299
1299
  "order-from": g.orderFrom
1300
- }, null, 8, ["order-from"])]), b("p", ea, E(Ke(g)), 1), b("p", ta, E(r(o)("menu.product.table.columns.code")) + ": " + E(((le = Pe(g._id)) == null ? void 0 : le.code) || "--"), 1), b("p", la, [d(Xe, {
1300
+ }, null, 8, ["order-from"])]), b("p", ea, E(Be(g)), 1), b("p", ta, E(r(o)("menu.product.table.columns.code")) + ": " + E(((le = Pe(g._id)) == null ? void 0 : le.code) || "--"), 1), b("p", la, [d(Xe, {
1301
1301
  categories: r(Re)(r(ne), g)
1302
- }, null, 8, ["categories"])]), d(Ne, {
1302
+ }, null, 8, ["categories"])]), d(Oe, {
1303
1303
  "custom-attributes": g.customAttributes
1304
1304
  }, null, 8, ["custom-attributes"])])]), d(p, {
1305
1305
  "text-color": r(W).NeutralGray400,
@@ -1338,20 +1338,20 @@ const et = /* @__PURE__ */ G({
1338
1338
  key: 0,
1339
1339
  "blame-form-child-on-validation-failed": "",
1340
1340
  class: "flex flex-col flex-1 space-y-8 overflow-hidden",
1341
- onValidationSuccess: Be
1341
+ onValidationSuccess: Ke
1342
1342
  }, {
1343
1343
  default: $(() => [b("div", Rl, [b("div", Ml, [ye(t.$slots, "filter")]), b("div", Ul, [d(i, {
1344
1344
  "model-value": J.value,
1345
1345
  "onUpdate:modelValue": e[0] || (e[0] = (g) => J.value = g),
1346
1346
  autofocus: "",
1347
1347
  placeholder: r(o)("menu.product.table.search.placeholder")
1348
- }, null, 8, ["model-value", "placeholder"])])]), Z.value ? (m(), w("div", Nl, [d(r(Ye), {
1348
+ }, null, 8, ["model-value", "placeholder"])])]), Z.value ? (m(), w("div", Ol, [d(r(Ye), {
1349
1349
  ref_key: "attributeFilterRef",
1350
1350
  ref: oe,
1351
- attributes: r(K),
1351
+ attributes: r(B),
1352
1352
  modelValue: r(D),
1353
1353
  "onUpdate:modelValue": e[1] || (e[1] = (g) => Le(D) ? D.value = g : null)
1354
- }, null, 8, ["attributes", "modelValue"])])) : M("", !0), z.value.length ? (m(), w("div", Ol, [ue.value.length && !S.value ? (m(), w("div", zl, [b("p", Dl, E(r(o)("menu.product.table.selection.count", {
1354
+ }, null, 8, ["attributes", "modelValue"])])) : M("", !0), N.value.length ? (m(), w("div", zl, [ue.value.length && !S.value ? (m(), w("div", Nl, [b("p", Dl, E(r(o)("menu.product.table.selection.count", {
1355
1355
  count: ue.value.length
1356
1356
  })), 1), d(p, {
1357
1357
  label: r(o)("menu.product.table.selection.actions.deselect_all"),
@@ -1366,7 +1366,7 @@ const et = /* @__PURE__ */ G({
1366
1366
  "prepend-icon": "delete",
1367
1367
  variant: "secondary",
1368
1368
  onClick: mt
1369
- }, null, 8, ["border-color", "text-color", "label"])])) : M("", !0), S.value ? (m(), w("div", Bl, [d(p, {
1369
+ }, null, 8, ["border-color", "text-color", "label"])])) : M("", !0), S.value ? (m(), w("div", Kl, [d(p, {
1370
1370
  variant: r(X).Tertiary,
1371
1371
  label: r(o)("menu.product.table.bulk_edit.actions.reset_all"),
1372
1372
  onClick: Ce
@@ -1383,7 +1383,7 @@ const et = /* @__PURE__ */ G({
1383
1383
  }, null, 8, ["borderColor", "textColor", "variant", "label"])])) : M("", !0), b("div", {
1384
1384
  ref_key: "tableWrapper",
1385
1385
  ref: je
1386
- }, [(m(), I(nt(S.value ? Nt : "div"), {
1386
+ }, [(m(), I(nt(S.value ? Ot : "div"), {
1387
1387
  ref: "fullWrapper",
1388
1388
  title: S.value ? r(o)("menu.product.table.bulk_edit.title") : "",
1389
1389
  show: S.value,
@@ -1399,7 +1399,7 @@ const et = /* @__PURE__ */ G({
1399
1399
  }],
1400
1400
  class: "overflow-x-scroll",
1401
1401
  style: ht(yt.value),
1402
- onOnPrimary: Be,
1402
+ onOnPrimary: Ke,
1403
1403
  onOnCancel: Te
1404
1404
  }, {
1405
1405
  default: $(() => [d(x, {
@@ -1423,7 +1423,7 @@ const et = /* @__PURE__ */ G({
1423
1423
  onRowClick: e[3] || (e[3] = (g) => S.value ? void 0 : ft(g))
1424
1424
  }, null, 8, ["class", "modelValue", "column-defs", "column-visibility", "loading", "page-size", "row-data", "selection", "virtual-row-height"])]),
1425
1425
  _: 1
1426
- }, 40, ["title", "show", "primary-action", "secondary-actions", "style"]))], 512)])) : (m(), w("div", Kl, [d(_e, {
1426
+ }, 40, ["title", "show", "primary-action", "secondary-actions", "style"]))], 512)])) : (m(), w("div", Bl, [d(_e, {
1427
1427
  subtitle: r(o)("menu.product.table.empty.subtitle"),
1428
1428
  title: r(o)("menu.product.table.empty.title")
1429
1429
  }, {
@@ -1463,30 +1463,30 @@ const et = /* @__PURE__ */ G({
1463
1463
  __name: "Product",
1464
1464
  setup(C) {
1465
1465
  const l = Ie(), c = h(() => l.rules.item), n = ut(), o = h(() => !l.state.currentCatalogId), u = h(() => l.rules.item), a = h(() => !l.state.currentSchedulerId), v = F(!1), f = F(!1), s = h(() => {
1466
- var T, N, A, te;
1466
+ var T, O, A, te;
1467
1467
  if (o.value && a.value) return;
1468
1468
  if (a.value) {
1469
1469
  const j = (T = l.currentCatalog) == null ? void 0 : T.override.items;
1470
- return j ? Object.entries(j).reduce((O, [R, se]) => {
1470
+ return j ? Object.entries(j).reduce((z, [R, se]) => {
1471
1471
  const L = se.find((pe) => !pe.combinationKey);
1472
- return L && (O[R] = L), O;
1472
+ return L && (z[R] = L), z;
1473
1473
  }, {}) : {};
1474
1474
  }
1475
- return ((o.value ? (N = l.currentScheduler) == null ? void 0 : N.items : (te = (A = l.currentCatalog) == null ? void 0 : A.override.scheduler[l.state.currentSchedulerId]) == null ? void 0 : te.items) ?? []).reduce((j, O) => (O.combinationKey || (j[O._id] = O), j), {});
1475
+ return ((o.value ? (O = l.currentScheduler) == null ? void 0 : O.items : (te = (A = l.currentCatalog) == null ? void 0 : A.override.scheduler[l.state.currentSchedulerId]) == null ? void 0 : te.items) ?? []).reduce((j, z) => (z.combinationKey || (j[z._id] = z), j), {});
1476
1476
  }), _ = F({}), y = F({}), k = async () => {
1477
1477
  var te, j;
1478
1478
  f.value = !0;
1479
- const P = !!s.value, T = be.flatten(Y.value.map((O) => O.items)), N = P && v.value ? await It(
1479
+ const P = !!s.value, T = be.flatten(Y.value.map((z) => z.items)), O = P && v.value ? await It(
1480
1480
  l.mergedMenu,
1481
1481
  T,
1482
1482
  l.state.menu,
1483
1483
  (te = l.currentCatalog) == null ? void 0 : te._id,
1484
1484
  (j = l.currentScheduler) == null ? void 0 : j._id,
1485
1485
  !1
1486
- ) : void 0, A = T.reduce((O, R, se) => {
1486
+ ) : void 0, A = T.reduce((z, R, se) => {
1487
1487
  var pe, he, xe, ge;
1488
1488
  const L = (pe = s.value) == null ? void 0 : pe[R._id];
1489
- return O[R._id] = {
1489
+ return z[R._id] = {
1490
1490
  _id: R._id,
1491
1491
  name: R.name,
1492
1492
  code: P ? L == null ? void 0 : L.code : R == null ? void 0 : R.code,
@@ -1497,15 +1497,15 @@ const et = /* @__PURE__ */ G({
1497
1497
  orderFrom: P ? L == null ? void 0 : L.orderFrom : R.orderFrom,
1498
1498
  taxes: P ? null : R.taxes,
1499
1499
  thumbnail: R.thumbnail,
1500
- fallbackPrice: (he = N == null ? void 0 : N[se]) == null ? void 0 : he.price,
1500
+ fallbackPrice: (he = O == null ? void 0 : O[se]) == null ? void 0 : he.price,
1501
1501
  fallbackName: P ? R.name : void 0,
1502
- fallbackCode: (xe = N == null ? void 0 : N[se]) == null ? void 0 : xe.code,
1503
- fallbackOrder: (ge = N == null ? void 0 : N[se]) == null ? void 0 : ge.orderFrom,
1502
+ fallbackCode: (xe = O == null ? void 0 : O[se]) == null ? void 0 : xe.code,
1503
+ fallbackOrder: (ge = O == null ? void 0 : O[se]) == null ? void 0 : ge.orderFrom,
1504
1504
  fallbackTaxes: P ? R.taxes : null
1505
- }, O;
1505
+ }, z;
1506
1506
  }, {});
1507
1507
  _.value = A, y.value = { ...A }, f.value = !1;
1508
- }, { categories: z, selectedCategories: Y } = Ve(), S = F(null);
1508
+ }, { categories: N, selectedCategories: Y } = Ve(), S = F(null);
1509
1509
  function ae() {
1510
1510
  S.value && S.value.toggleAttributeFilter();
1511
1511
  }
@@ -1517,7 +1517,7 @@ const et = /* @__PURE__ */ G({
1517
1517
  }
1518
1518
  const oe = () => {
1519
1519
  Y.value && k();
1520
- }, { t: q } = $e(), K = h(() => {
1520
+ }, { t: q } = $e(), B = h(() => {
1521
1521
  var P, T;
1522
1522
  return (T = (P = l.currentCatalog) == null ? void 0 : P.linkItemRules) == null ? void 0 : T.length;
1523
1523
  }), {
@@ -1529,8 +1529,8 @@ const et = /* @__PURE__ */ G({
1529
1529
  schedulerManager: ne
1530
1530
  } = kt(!1);
1531
1531
  return (P, T) => {
1532
- const N = B("fm-button");
1533
- return r(z).length ? (m(), w("div", na, [
1532
+ const O = K("fm-button");
1533
+ return r(N).length ? (m(), w("div", na, [
1534
1534
  b("div", sa, [
1535
1535
  b("div", ua, [
1536
1536
  r(Y) ? (m(), I(ra, {
@@ -1547,7 +1547,7 @@ const et = /* @__PURE__ */ G({
1547
1547
  filter: $(() => [
1548
1548
  d(Je, { onToggleAttributeFilter: ae }),
1549
1549
  u.value.multiScheduler ? (m(), I(He, { key: 0 })) : M("", !0),
1550
- K.value ? (m(), I(We, {
1550
+ B.value ? (m(), I(We, {
1551
1551
  key: 1,
1552
1552
  "current-restaurant-attr-params": r(l).state.currentRestaurantAttrParams,
1553
1553
  onConfirm: T[0] || (T[0] = (A) => r(l).setRestaurantAttrParams(A))
@@ -1561,7 +1561,7 @@ const et = /* @__PURE__ */ G({
1561
1561
  b("div", ca, [
1562
1562
  d(Je),
1563
1563
  u.value.multiScheduler ? (m(), I(He, { key: 0 })) : M("", !0),
1564
- K.value ? (m(), I(We, {
1564
+ B.value ? (m(), I(We, {
1565
1565
  key: 1,
1566
1566
  "current-restaurant-attr-params": r(l).state.currentRestaurantAttrParams,
1567
1567
  onConfirm: T[3] || (T[3] = (A) => r(l).setRestaurantAttrParams(A))
@@ -1593,7 +1593,7 @@ const et = /* @__PURE__ */ G({
1593
1593
  onSubmit: r(re)
1594
1594
  }, {
1595
1595
  default: $(({ trigger: A }) => [
1596
- d(N, {
1596
+ d(O, {
1597
1597
  label: r(q)("menu.common.actions.link_product"),
1598
1598
  "prepend-icon": "link",
1599
1599
  onClick: A
@@ -1621,7 +1621,7 @@ const et = /* @__PURE__ */ G({
1621
1621
  onSubmit: r(re)
1622
1622
  }, {
1623
1623
  default: $(({ trigger: A }) => [
1624
- d(N, {
1624
+ d(O, {
1625
1625
  label: r(q)("menu.common.actions.apply_product"),
1626
1626
  onClick: A
1627
1627
  }, null, 8, ["label", "onClick"])