@feedmepos/mf-menu 0.32.40 → 0.32.41-dev.2

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-DqpxV0zp.js → App-mCGGnjeS.js} +7 -7
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-BQM40AWC.js → ApplyProduct.vue_vue_type_script_setup_true_lang-MWoYiClD.js} +3 -3
  3. package/dist/{Catalog-RdpK3RmL.js → Catalog-CM2wnQ4l.js} +44 -44
  4. package/dist/{Category-ar15UpWV.js → Category-Bp9tGWwJ.js} +24 -24
  5. package/dist/{Category-DbvCHZU4.js → Category-bsL9IQ5n.js} +24 -24
  6. package/dist/{CookingGuide-x2w_WTnE.js → CookingGuide-Cy0Kt6Ys.js} +105 -105
  7. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-pRoVDEEM.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-CX4s7NYy.js} +1 -1
  8. package/dist/{Group-D30WEl2L.js → Group-0hMArGNs.js} +1 -1
  9. package/dist/{Group-DevhimQn.js → Group-BKFZMvZg.js} +3 -3
  10. package/dist/{Group.vue_vue_type_script_setup_true_lang-BY3nr67e.js → Group.vue_vue_type_script_setup_true_lang-st4plK2R.js} +18 -18
  11. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CPvumpiM.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-8zW2KIMn.js} +30 -30
  12. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-hEPchEwW.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-UhuYuL-A.js} +4129 -4125
  13. package/dist/{Ingredient-CiJSeTgO.js → Ingredient-CvE0xujL.js} +20 -20
  14. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-Cnq9QAeQ.js → InventoryBinding.vue_vue_type_script_setup_true_lang-iEhZ4_5G.js} +2 -2
  15. package/dist/{LinkProductSideSheet-CJxffg6I.js → LinkProductSideSheet-CbppLDSB.js} +45 -45
  16. package/dist/{MenuSetting-BMuUIgLN.js → MenuSetting-CQ9HnQKx.js} +47 -47
  17. package/dist/{PrintRoute-Uu2n0dAY.js → PrintRoute-Cc81zV6Q.js} +39 -39
  18. package/dist/{Product-e81DLAaw.js → Product-kFoTn7zI.js} +1 -1
  19. package/dist/{Product.vue_vue_type_script_setup_true_lang-1axfwskP.js → Product.vue_vue_type_script_setup_true_lang-BVF9SBEL.js} +128 -128
  20. package/dist/{ProductInternalTools-BiK5b7KA.js → ProductInternalTools-CwxPRqTy.js} +66 -66
  21. package/dist/Products-IBe-R8XN.js +334 -0
  22. package/dist/{Publish-d_T1ROxG.js → Publish-BE-PPNO8.js} +29 -29
  23. package/dist/{Recipe-QIACzb3h.js → Recipe-Ddts2It2.js} +24 -24
  24. package/dist/{RuleView.vue_vue_type_script_setup_true_lang-01qpukRE.js → RuleView.vue_vue_type_script_setup_true_lang-DQjE4JRi.js} +369 -369
  25. package/dist/{Scheduler-VxoCoh9o.js → Scheduler-CqP0Ha2K.js} +11 -11
  26. package/dist/{ServingSequence-C7aNpyh4.js → ServingSequence-WpneAUiB.js} +44 -44
  27. package/dist/{Setting-BzoqHU2T.js → Setting-CNGZaUUT.js} +17 -17
  28. package/dist/{Subcategory-dyK9h6SV.js → Subcategory-BVN0OH_q.js} +51 -51
  29. package/dist/{Takeaway-C3UnFVOa.js → Takeaway-BtnGTcvW.js} +1 -1
  30. package/dist/{Takeaway-DxLGfrmv.js → Takeaway-LFslRotB.js} +13 -13
  31. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-zsgXKNRt.js → Takeaway.vue_vue_type_script_setup_true_lang-CJZfd5JB.js} +28 -28
  32. package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-Ba0ZuCdS.js → Thumbnail.vue_vue_type_script_setup_true_lang-CI8eK98T.js} +27 -27
  33. package/dist/{TranslationSideSheet.vue_vue_type_script_setup_true_lang-Xfmvx9wx.js → TranslationSideSheet.vue_vue_type_script_setup_true_lang-CfA400oN.js} +4 -4
  34. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang--vNq7F0Z.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-SNBrW4Or.js} +13 -13
  35. package/dist/{Unit-Clc8AYHy.js → Unit-kL0Wjfb6.js} +8 -8
  36. package/dist/{Variant-DOGe2aJK.js → Variant-Cj82yGYE.js} +24 -24
  37. package/dist/{_id_-Bbc2mu9G.js → _id_-B-guZ25K.js} +28 -28
  38. package/dist/app-D4se7Sr4.js +1643 -0
  39. package/dist/{app-DQD4sPc8.js → app-DiVDYcc9.js} +1 -1
  40. package/dist/app.js +2 -2
  41. package/dist/apps/mf-menu/src/helper/import-export-utils.d.ts +2 -0
  42. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  43. package/dist/assets/{linked-status-DojmxFzq.js → linked-status-C4nECq-3.js} +5 -5
  44. package/dist/assets/{menu-export-rmsdV9dK.js → menu-export-PPICN1VA.js} +5 -3
  45. package/dist/assets/{override-menu-CVjWw9he.js → override-menu-BaYdZfDk.js} +5 -5
  46. package/dist/assets/{validate-menu-BB1XuZ9d.js → validate-menu-DCyVSa7R.js} +2 -2
  47. package/dist/{catalog-ku3nqGmL.js → catalog-BTsgJdVe.js} +1 -1
  48. package/dist/{catalogSetting-CpgLgy9o.js → catalogSetting-BNYPChMH.js} +1 -1
  49. package/dist/{currency-B58wqs-1.js → currency-2KuoTCt5.js} +1 -1
  50. package/dist/dayjs.min-BE8PtbAQ.js +7 -0
  51. package/dist/{index-BGm9S8Ih.js → index-GaHNc4iH.js} +43 -43
  52. package/dist/{index-CPY_DjD2.js → index-UthDVOpX.js} +31 -31
  53. package/dist/{index-ByMVMoTu.js → index-fLVJt8Pt.js} +1 -1
  54. package/dist/{index.vue_vue_type_script_setup_true_lang-IHmRgZTC.js → index.vue_vue_type_script_setup_true_lang-CsnEYmWv.js} +244 -269
  55. package/dist/{item-DotiWZRv.js → item-DYsNPLH9.js} +759 -754
  56. package/dist/{jszip.min-OZZMb1gD.js → jszip.min-CLQSAAHL.js} +7 -6
  57. package/dist/{menu-v_Cm5BNh.js → menu-Btb1sPTh.js} +1 -1
  58. package/dist/{menuV2-DsvYmLeh.js → menuV2-Bfj5ljzI.js} +129 -129
  59. package/dist/{priceTier-BQeJLJUu.js → priceTier-DHp_DiBo.js} +1 -1
  60. package/dist/{rules-D3qosTfl.js → rules-B5QEx6OC.js} +11 -11
  61. package/dist/{scheduler-B32ag1lR.js → scheduler-CI-LJfho.js} +29 -29
  62. package/dist/{toExcel-CIrCsrWL.js → toExcel-CHdQxEnw.js} +2 -2
  63. package/dist/{unit-y1on6-W3.js → unit-D53f5n16.js} +35 -35
  64. package/package.json +2 -1
  65. package/dist/Products-DOIcfgzd.js +0 -291
  66. package/dist/app-BSpY6Pgy.js +0 -363
  67. package/dist/dayjs.min-Dj2ONTtr.js +0 -6
@@ -1,25 +1,25 @@
1
- import { ref as F, computed as x, defineComponent as N, resolveComponent as j, createBlock as I, openBlock as m, withCtx as T, createElementVNode as g, createVNode as d, unref as a, createElementBlock as w, Fragment as pe, renderList as we, createCommentVNode as M, normalizeClass as ve, toDisplayString as K, withModifiers as fe, mergeModels as Ze, useModel as Xe, renderSlot as _e, watch as de, createTextVNode as et, watchEffect as tt, nextTick as Ae, resolveDynamicComponent as lt, onMounted as at, h as D, isRef as Ne, normalizeStyle as ft } from "vue";
2
- import { u as Fe, T as Ce, B as me, I as Re, J as ge, V as gt, ae as bt, af as _t, ag as Pe, ah as yt, R as ht, a4 as be, ai as Ee } from "./index.vue_vue_type_script_setup_true_lang-IHmRgZTC.js";
3
- import { useI18n as Ie, useCoreStore as Oe, useCustomAttributes as xt } from "@feedmepos/mf-common";
4
- import { u as Se } from "./menu-v_Cm5BNh.js";
5
- import { L as Ge } from "./LinkProductSideSheet-CJxffg6I.js";
6
- import { r as Ct, _ as Le } from "./index-ByMVMoTu.js";
7
- import { _ as Me, a as qe } from "./CustomAttributeChip.vue_vue_type_script_setup_true_lang-pRoVDEEM.js";
8
- import { _ as Ue, u as kt } from "./Thumbnail.vue_vue_type_script_setup_true_lang-Ba0ZuCdS.js";
9
- import { f as wt, o as St, a as Vt, m as Ft } from "./menuV2-DsvYmLeh.js";
10
- import { u as ot, C as It } from "./item-DotiWZRv.js";
1
+ import { ref as F, computed as x, defineComponent as B, resolveComponent as j, createBlock as I, openBlock as m, withCtx as T, createElementVNode as g, createVNode as d, unref as a, createElementBlock as w, Fragment as pe, renderList as we, createCommentVNode as M, normalizeClass as ve, toDisplayString as N, withModifiers as fe, mergeModels as Je, useModel as Xe, renderSlot as _e, watch as de, createTextVNode as et, watchEffect as tt, nextTick as Ae, resolveDynamicComponent as lt, onMounted as at, h as D, isRef as Be, normalizeStyle as ft } from "vue";
2
+ import { u as Fe, Q as Ce, z as me, G as Re, H as ge, T as gt, ac as bt, ad as _t, ae as Pe, af as yt, P as ht, a2 as be, ag as Ee } from "./index.vue_vue_type_script_setup_true_lang-CsnEYmWv.js";
3
+ import { useI18n as Ie, useCoreStore as ze, useCustomAttributes as xt } from "@feedmepos/mf-common";
4
+ import { u as Se } from "./menu-Btb1sPTh.js";
5
+ import { L as Ge } from "./LinkProductSideSheet-CbppLDSB.js";
6
+ import { r as Ct, _ as Le } from "./index-fLVJt8Pt.js";
7
+ import { _ as Me, a as qe } from "./CustomAttributeChip.vue_vue_type_script_setup_true_lang-CX4s7NYy.js";
8
+ import { _ as Ue, u as kt } from "./Thumbnail.vue_vue_type_script_setup_true_lang-CI8eK98T.js";
9
+ import { f as wt, o as St, a as Vt, m as Ft } from "./menuV2-Bfj5ljzI.js";
10
+ import { u as ot, C as It } from "./item-DYsNPLH9.js";
11
11
  import { b as We, H as $t } from "./app-5fxKLAzS.js";
12
12
  import { useBreakpoints as rt, components as te, useDialog as Tt, FmButtonColorThemeVariant as W, FmButtonVariant as ee } from "@feedmepos/ui-library";
13
13
  import { F as Pt } from "./index-CisutoS9.js";
14
- import { _ as ze, a as At } from "./app-BSpY6Pgy.js";
14
+ import { _ as Oe, a as At } from "./app-D4se7Sr4.js";
15
15
  import { _ as ke } from "./TextChip.vue_vue_type_script_setup_true_lang-8frWuZFL.js";
16
- import { _ as Rt } from "./index-CPY_DjD2.js";
17
- import { r as Mt, _ as Ut } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-hEPchEwW.js";
18
- import { c as Ot } from "./check-C9mY6LiX.js";
19
- import { f as zt } from "./currency-B58wqs-1.js";
16
+ import { _ as Rt } from "./index-UthDVOpX.js";
17
+ import { r as Mt, _ as Ut } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-UhuYuL-A.js";
18
+ import { c as zt } from "./check-C9mY6LiX.js";
19
+ import { f as Ot } from "./currency-2KuoTCt5.js";
20
20
  import { w as Dt } from "./tooltip-B5BiPMx9.js";
21
21
  import { g as jt } from "./translation-Cdap0IVg.js";
22
- function Bt(k, e, i = k) {
22
+ function Kt(k, e, i = k) {
23
23
  const n = F(!0), t = x(() => {
24
24
  if (!n.value && !e.value)
25
25
  return !0;
@@ -42,50 +42,50 @@ function Bt(k, e, i = k) {
42
42
  }, toggleOption: (f) => {
43
43
  var b, y, S;
44
44
  let s;
45
- e.value === void 0 && n.value ? s = [f] : e.value === void 0 && !n.value ? s = (b = k.value.map((O) => O.value)) == null ? void 0 : b.filter((O) => O !== f) : (y = e.value) != null && y.includes(f) ? s = (S = e.value) == null ? void 0 : S.filter((O) => O !== f) : s = [...e.value || [], f], s.length === 0 ? (e.value = void 0, n.value = !0) : s.length === k.value.length ? (e.value = void 0, n.value = !1) : e.value = s;
45
+ e.value === void 0 && n.value ? s = [f] : e.value === void 0 && !n.value ? s = (b = k.value.map((z) => z.value)) == null ? void 0 : b.filter((z) => z !== f) : (y = e.value) != null && y.includes(f) ? s = (S = e.value) == null ? void 0 : S.filter((z) => z !== f) : s = [...e.value || [], f], s.length === 0 ? (e.value = void 0, n.value = !0) : s.length === k.value.length ? (e.value = void 0, n.value = !1) : e.value = s;
46
46
  } };
47
47
  }
48
- const Kt = { class: "inline-flex items-center" }, Nt = {
48
+ const Nt = { class: "inline-flex items-center" }, Bt = {
49
49
  key: 0,
50
50
  class: /* @__PURE__ */ ve([
51
51
  "fm-typo-en-body-md-600 select-none text-ellipsis overflow-hidden whitespace-nowrap",
52
52
  "text-fm-color-neutral-gray-400"
53
53
  ])
54
- }, Et = { class: "p-4" }, Gt = { class: "flex-1 overflow-y-auto min-h-0" }, He = /* @__PURE__ */ N({
54
+ }, Et = { class: "p-4" }, Gt = { class: "flex-1 overflow-y-auto min-h-0" }, He = /* @__PURE__ */ B({
55
55
  __name: "CategorySelector",
56
56
  emits: ["toggleAttributeFilter"],
57
57
  setup(k, { emit: e }) {
58
58
  const i = e, n = Fe(), { categories: t, selectedCategories: u } = Se(), l = x(() => n.state.currentCategoryIds), v = x(
59
- () => t.value.map((B) => ({ label: B.name, value: B.id }))
59
+ () => t.value.map((K) => ({ label: K.name, value: K.id }))
60
60
  ), f = x(() => v.value.filter(
61
- (B) => B.label.toLowerCase().includes(y.value.toLowerCase())
61
+ (K) => K.label.toLowerCase().includes(y.value.toLowerCase())
62
62
  )), { t: s } = Ie(), b = x(() => {
63
- var B, z, H;
64
- return t.value.length === ((B = u.value) == null ? void 0 : B.length) ? s("menu.category.selector.all") : ((z = u.value) == null ? void 0 : z.length) === 1 ? u.value[0].name : `${(H = u.value) == null ? void 0 : H.length}`;
63
+ var K, O, H;
64
+ return t.value.length === ((K = u.value) == null ? void 0 : K.length) ? s("menu.category.selector.all") : ((O = u.value) == null ? void 0 : O.length) === 1 ? u.value[0].name : `${(H = u.value) == null ? void 0 : H.length}`;
65
65
  }), y = F(""), S = x({
66
66
  get: () => l.value,
67
- set: (B) => {
68
- n.selectCategory(B);
67
+ set: (K) => {
68
+ n.selectCategory(K);
69
69
  }
70
- }), { allSelected: O, toggleAll: Y, toggleOption: V, indeterminate: oe } = Bt(
70
+ }), { allSelected: z, toggleAll: Y, toggleOption: V, indeterminate: oe } = Kt(
71
71
  v,
72
72
  S,
73
73
  f
74
- ), J = Oe(), re = x(() => J.itemAttributeSettings.value.length > 0);
74
+ ), Z = ze(), re = x(() => Z.itemAttributeSettings.value.length > 0);
75
75
  function L() {
76
76
  i("toggleAttributeFilter");
77
77
  }
78
- return (B, z) => {
79
- const H = j("FmIcon"), Z = j("FmChip"), ne = j("FmSearch"), Q = j("FmMenuItem"), se = j("FmMenu");
78
+ return (K, O) => {
79
+ const H = j("FmIcon"), J = j("FmChip"), ne = j("FmSearch"), Q = j("FmMenuItem"), se = j("FmMenu");
80
80
  return m(), I(se, {
81
81
  "close-on-click": !1,
82
82
  width: 220
83
83
  }, {
84
84
  "menu-button": T(() => [
85
- g("div", Kt, [
86
- d(Z, null, {
85
+ g("div", Nt, [
86
+ d(J, null, {
87
87
  default: T(() => [
88
- b.value ? (m(), w("div", Nt, K(a(s)("menu.category.selector.title", { label: b.value })), 1)) : M("", !0),
88
+ b.value ? (m(), w("div", Bt, N(a(s)("menu.category.selector.title", { label: b.value })), 1)) : M("", !0),
89
89
  d(H, {
90
90
  color: "neutral-gray-400",
91
91
  name: "expand_more",
@@ -101,7 +101,7 @@ const Kt = { class: "inline-flex items-center" }, Nt = {
101
101
  outline: "",
102
102
  color: "neutral-gray-400",
103
103
  size: "sm",
104
- onClick: z[0] || (z[0] = fe(() => {
104
+ onClick: O[0] || (O[0] = fe(() => {
105
105
  }, ["prevent"]))
106
106
  })
107
107
  ])) : M("", !0)
@@ -115,7 +115,7 @@ const Kt = { class: "inline-flex items-center" }, Nt = {
115
115
  d(ne, {
116
116
  autofocus: "",
117
117
  modelValue: y.value,
118
- "onUpdate:modelValue": z[1] || (z[1] = (R) => y.value = R),
118
+ "onUpdate:modelValue": O[1] || (O[1] = (R) => y.value = R),
119
119
  placeholder: a(s)("menu.common.actions.search")
120
120
  }, null, 8, ["modelValue", "placeholder"])
121
121
  ]),
@@ -123,7 +123,7 @@ const Kt = { class: "inline-flex items-center" }, Nt = {
123
123
  d(Q, {
124
124
  label: "All",
125
125
  "has-checkbox": "",
126
- "model-value": a(O),
126
+ "model-value": a(z),
127
127
  indeterminate: a(oe),
128
128
  onClick: a(Y)
129
129
  }, null, 8, ["model-value", "indeterminate", "onClick"]),
@@ -133,7 +133,7 @@ const Kt = { class: "inline-flex items-center" }, Nt = {
133
133
  key: R.value || "",
134
134
  label: R.label,
135
135
  "has-checkbox": "",
136
- "model-value": a(O) || (($ = S.value) == null ? void 0 : $.includes(R.value)),
136
+ "model-value": a(z) || (($ = S.value) == null ? void 0 : $.includes(R.value)),
137
137
  onClick: (P) => a(V)(R.value)
138
138
  }, null, 8, ["label", "model-value", "onClick"]);
139
139
  }), 128))
@@ -146,10 +146,10 @@ const Kt = { class: "inline-flex items-center" }, Nt = {
146
146
  }), Lt = { class: "flex flex-wrap gap-8" }, qt = { class: "py-12 px-16 space-y-12" }, Wt = { class: "fm-typo-en-body-md-600 text-fm-color-neutral-gray-600" }, Ht = { class: "flex flex-wrap gap-8" }, Qt = {
147
147
  key: 0,
148
148
  class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
149
- }, Yt = { key: 0 }, Jt = {
149
+ }, Yt = { key: 0 }, Zt = {
150
150
  key: 1,
151
151
  class: "inline-block w-8"
152
- }, Zt = { key: 0 }, Xt = { key: 1 }, Qe = /* @__PURE__ */ N({
152
+ }, Jt = { key: 0 }, Xt = { key: 1 }, Qe = /* @__PURE__ */ B({
153
153
  __name: "CategoriesChip",
154
154
  props: {
155
155
  categories: { default: () => [] },
@@ -167,15 +167,15 @@ const Kt = { class: "inline-flex items-center" }, Nt = {
167
167
  const y = j("FmTooltip");
168
168
  return t.value ? (m(), w(pe, { key: 1 }, [
169
169
  s.categories.length > 0 ? (m(), w("p", Qt, [
170
- g("span", null, K(a(i)("menu.product.table.columns.category")) + ": ", 1),
171
- g("span", null, K(f.value), 1),
172
- v.value ? (m(), w("span", Jt)) : (m(), w("br", Yt)),
170
+ g("span", null, N(a(i)("menu.product.table.columns.category")) + ": ", 1),
171
+ g("span", null, N(f.value), 1),
172
+ v.value ? (m(), w("span", Zt)) : (m(), w("br", Yt)),
173
173
  s.categories.length > u.value ? (m(), w("span", {
174
174
  key: 2,
175
175
  class: "fm-typo-en-body-md-400 text-fm-color-primary cursor-pointer",
176
176
  onClick: b[0] || (b[0] = fe((S) => v.value = !v.value, ["stop", "prevent"]))
177
177
  }, [
178
- v.value ? (m(), w("span", Zt, K(a(i)("menu.product.table.category.expand", { count: s.categories.length - u.value })), 1)) : (m(), w("span", Xt, K(a(i)("menu.product.table.category.collapse")), 1))
178
+ v.value ? (m(), w("span", Jt, N(a(i)("menu.product.table.category.expand", { count: s.categories.length - u.value })), 1)) : (m(), w("span", Xt, N(a(i)("menu.product.table.category.collapse")), 1))
179
179
  ])) : M("", !0)
180
180
  ])) : M("", !0)
181
181
  ], 64)) : (m(), I(y, {
@@ -187,7 +187,7 @@ const Kt = { class: "inline-flex items-center" }, Nt = {
187
187
  }, {
188
188
  content: T(() => [
189
189
  g("div", qt, [
190
- g("p", Wt, K(a(i)("menu.product.table.category.all")), 1),
190
+ g("p", Wt, N(a(i)("menu.product.table.category.all")), 1),
191
191
  g("div", Ht, [
192
192
  (m(!0), w(pe, null, we(e.categories, (S) => (m(), I(ke, {
193
193
  key: S,
@@ -215,9 +215,9 @@ const Kt = { class: "inline-flex items-center" }, Nt = {
215
215
  }));
216
216
  };
217
217
  }
218
- }), el = /* @__PURE__ */ N({
218
+ }), el = /* @__PURE__ */ B({
219
219
  __name: "ProductSearcher",
220
- props: /* @__PURE__ */ Ze({
220
+ props: /* @__PURE__ */ Je({
221
221
  label: {},
222
222
  helperText: {},
223
223
  menu: {}
@@ -248,9 +248,9 @@ const Kt = { class: "inline-flex items-center" }, Nt = {
248
248
  }), tl = { class: "flex" }, ll = { class: "w-[260px] space-y-16 h-full" }, al = { class: "flex items-center gap-4 px-8" }, ol = { class: "fm-typo-en-title-sm-600" }, rl = {
249
249
  key: 0,
250
250
  class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4"
251
- }, nl = { class: "fm-typo-en-body-md-600" }, sl = { class: "flex-1" }, nt = /* @__PURE__ */ N({
251
+ }, nl = { class: "fm-typo-en-body-md-600" }, sl = { class: "flex-1" }, nt = /* @__PURE__ */ B({
252
252
  __name: "ViewLayout",
253
- props: /* @__PURE__ */ Ze({
253
+ props: /* @__PURE__ */ Je({
254
254
  title: {},
255
255
  titleBadge: {},
256
256
  items: {}
@@ -266,12 +266,12 @@ const Kt = { class: "inline-flex items-center" }, Nt = {
266
266
  return m(), w("div", tl, [
267
267
  g("div", ll, [
268
268
  g("div", al, [
269
- g("p", ol, K(i.title), 1),
269
+ g("p", ol, N(i.title), 1),
270
270
  i.titleBadge !== void 0 ? (m(), w("div", rl, [
271
- g("p", nl, K(i.titleBadge), 1)
271
+ g("p", nl, N(i.titleBadge), 1)
272
272
  ])) : M("", !0)
273
273
  ]),
274
- d(ze, null, {
274
+ d(Oe, null, {
275
275
  default: T(() => [
276
276
  d(t, {
277
277
  modelValue: e.value,
@@ -289,7 +289,7 @@ const Kt = { class: "inline-flex items-center" }, Nt = {
289
289
  ]);
290
290
  };
291
291
  }
292
- }), Ve = /* @__PURE__ */ N({
292
+ }), Ve = /* @__PURE__ */ B({
293
293
  __name: "OrderFromChip",
294
294
  props: {
295
295
  orderFrom: {}
@@ -304,7 +304,7 @@ const Kt = { class: "inline-flex items-center" }, Nt = {
304
304
  }, null, 8, ["label", "variant"]);
305
305
  };
306
306
  }
307
- }), ul = /* @__PURE__ */ N({
307
+ }), ul = /* @__PURE__ */ B({
308
308
  __name: "GroupViewTable",
309
309
  props: {
310
310
  data: {}
@@ -372,7 +372,7 @@ const Kt = { class: "inline-flex items-center" }, Nt = {
372
372
  u();
373
373
  }), (l, v) => {
374
374
  const f = j("FmTable");
375
- return m(), I(ze, null, {
375
+ return m(), I(Oe, null, {
376
376
  default: T(() => [d(f, {
377
377
  "column-defs": i,
378
378
  "row-data": l.data,
@@ -387,7 +387,7 @@ const Kt = { class: "inline-flex items-center" }, Nt = {
387
387
  });
388
388
  };
389
389
  }
390
- }), il = /* @__PURE__ */ N({
390
+ }), il = /* @__PURE__ */ B({
391
391
  __name: "GroupView",
392
392
  props: {
393
393
  itemId: {},
@@ -462,7 +462,7 @@ const Kt = { class: "inline-flex items-center" }, Nt = {
462
462
  }
463
463
  }), cl = {
464
464
  class: "scroll-x-auto"
465
- }, dl = /* @__PURE__ */ N({
465
+ }, dl = /* @__PURE__ */ B({
466
466
  __name: "ProductViewTable",
467
467
  props: {
468
468
  itemId: {},
@@ -530,7 +530,7 @@ const Kt = { class: "inline-flex items-center" }, Nt = {
530
530
  });
531
531
  }), (u, l) => {
532
532
  const v = j("FmTable");
533
- return m(), I(ze, null, {
533
+ return m(), I(Oe, null, {
534
534
  default: T(() => [g("div", cl, [d(v, {
535
535
  class: "min-w-[800px]",
536
536
  "column-defs": i,
@@ -543,7 +543,7 @@ const Kt = { class: "inline-flex items-center" }, Nt = {
543
543
  });
544
544
  };
545
545
  }
546
- }), ml = /* @__PURE__ */ N({
546
+ }), ml = /* @__PURE__ */ B({
547
547
  __name: "ProductView",
548
548
  props: {
549
549
  itemId: {},
@@ -602,7 +602,7 @@ const Kt = { class: "inline-flex items-center" }, Nt = {
602
602
  }), pl = { class: "flex items-center gap-8" }, vl = { class: "space-y-4" }, fl = { class: "fm-typo-en-title-md-600" }, gl = { key: 0 }, bl = { class: "text-fm-color-typo-secondary" }, _l = {
603
603
  key: 0,
604
604
  class: "text-fm-color-typo-secondary"
605
- }, yl = { class: "flex items-center gap-4" }, hl = /* @__PURE__ */ N({
605
+ }, yl = { class: "flex items-center gap-4" }, hl = /* @__PURE__ */ B({
606
606
  __name: "ProductBaseInfo",
607
607
  props: {
608
608
  itemId: {},
@@ -624,10 +624,10 @@ const Kt = { class: "inline-flex items-center" }, Nt = {
624
624
  }, null, 8, ["alt", "src"]),
625
625
  g("div", vl, [
626
626
  g("p", fl, [
627
- (f = i.value) != null && f.code ? (m(), w("span", gl, K((s = i.value) == null ? void 0 : s.code) + ", ", 1)) : M("", !0),
628
- g("span", null, K((b = i.value) == null ? void 0 : b.name), 1)
627
+ (f = i.value) != null && f.code ? (m(), w("span", gl, N((s = i.value) == null ? void 0 : s.code) + ", ", 1)) : M("", !0),
628
+ g("span", null, N((b = i.value) == null ? void 0 : b.name), 1)
629
629
  ]),
630
- g("p", bl, "Base price: " + K(n.value), 1),
630
+ g("p", bl, "Base price: " + N(n.value), 1),
631
631
  (y = i.value) != null && y.customAttributes ? (m(), w("div", _l, [
632
632
  g("div", yl, [
633
633
  u[0] || (u[0] = g("span", null, "Tagging:", -1)),
@@ -641,7 +641,7 @@ const Kt = { class: "inline-flex items-center" }, Nt = {
641
641
  ]);
642
642
  };
643
643
  }
644
- }), xl = { class: "space-y-16" }, Cl = /* @__PURE__ */ N({
644
+ }), xl = { class: "space-y-16" }, Cl = /* @__PURE__ */ B({
645
645
  __name: "ProductViewer",
646
646
  props: {
647
647
  itemId: {},
@@ -684,7 +684,7 @@ const Kt = { class: "inline-flex items-center" }, Nt = {
684
684
  ]);
685
685
  };
686
686
  }
687
- }), kl = { class: "space-y-24" }, wl = { key: 0 }, Sl = /* @__PURE__ */ N({
687
+ }), kl = { class: "space-y-24" }, wl = { key: 0 }, Sl = /* @__PURE__ */ B({
688
688
  __name: "ProductOverview",
689
689
  props: {
690
690
  itemId: {},
@@ -714,7 +714,7 @@ const Kt = { class: "inline-flex items-center" }, Nt = {
714
714
  ])
715
715
  ]));
716
716
  }
717
- }), Vl = /* @__PURE__ */ N({
717
+ }), Vl = /* @__PURE__ */ B({
718
718
  __name: "OverviewSheet",
719
719
  setup(k) {
720
720
  const e = F(null), i = F(!1);
@@ -750,14 +750,14 @@ const Kt = { class: "inline-flex items-center" }, Nt = {
750
750
  }
751
751
  });
752
752
  var Fl = Mt();
753
- const Ye = /* @__PURE__ */ N({
753
+ const Ye = /* @__PURE__ */ B({
754
754
  __name: "ImportButton",
755
755
  setup(k) {
756
756
  const e = F(!1);
757
757
  function i() {
758
758
  e.value = !e.value;
759
759
  }
760
- const n = Oe();
760
+ const n = ze();
761
761
  return at(() => {
762
762
  const t = n.currentCountry.value;
763
763
  if (t)
@@ -774,7 +774,7 @@ const Ye = /* @__PURE__ */ N({
774
774
  _e(t.$slots, "default", { trigger: i })
775
775
  ], 64));
776
776
  }
777
- }), Je = (k) => d("div", {
777
+ }), Ze = (k) => d("div", {
778
778
  class: "flex flex-1 justify-end"
779
779
  }, [d("span", null, [k, et(" ")])]), Il = {
780
780
  class: "flex justify-between items-center space-x-8"
@@ -795,20 +795,20 @@ const Ye = /* @__PURE__ */ N({
795
795
  }, Ul = {
796
796
  key: 1,
797
797
  class: "px-16 py-4 space-x-8 flex justify-end"
798
- }, Ol = {
799
- key: 2
800
798
  }, zl = {
799
+ key: 2
800
+ }, Ol = {
801
801
  class: "flex space-x-8"
802
802
  }, Dl = {
803
803
  key: 1,
804
804
  class: "pt-8 flex flex-col flex-1 overflow-hidden"
805
805
  }, jl = {
806
806
  class: "space-y-8 pb-8"
807
- }, Bl = {
808
- class: "w-full px-8"
809
807
  }, Kl = {
810
- class: "flex space-x-8 px-8"
808
+ class: "w-full px-8"
811
809
  }, Nl = {
810
+ class: "flex space-x-8 px-8"
811
+ }, Bl = {
812
812
  key: 0,
813
813
  class: "px-8"
814
814
  }, El = {
@@ -826,13 +826,13 @@ const Ye = /* @__PURE__ */ N({
826
826
  class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
827
827
  }, Yl = {
828
828
  class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
829
- }, Jl = {
830
- class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
831
829
  }, Zl = {
830
+ class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
831
+ }, Jl = {
832
832
  key: 1
833
833
  }, Xl = {
834
834
  class: "flex space-x-8"
835
- }, ea = /* @__PURE__ */ N({
835
+ }, ea = /* @__PURE__ */ B({
836
836
  __name: "ProductTable",
837
837
  props: {
838
838
  modelValue: {},
@@ -848,9 +848,9 @@ const Ye = /* @__PURE__ */ N({
848
848
  }) {
849
849
  const n = k, {
850
850
  t
851
- } = Ie(), u = Oe(), l = Fe(), v = Tt(), f = ot(), s = u.currentCountry, b = x(() => s.value ? me.Country.getCountry(s.value) : null), y = x(() => l.rules.item), {
851
+ } = Ie(), u = ze(), l = Fe(), v = Tt(), f = ot(), s = u.currentCountry, b = x(() => s.value ? me.Country.getCountry(s.value) : null), y = x(() => l.rules.item), {
852
852
  selectedCategories: S
853
- } = Se(), O = x(() => {
853
+ } = Se(), z = x(() => {
854
854
  const o = ge.flatten(S.value.map((r) => r.items));
855
855
  return ge.uniqBy(o, (r) => r._id);
856
856
  }), Y = i, V = F(!1);
@@ -858,27 +858,27 @@ const Ye = /* @__PURE__ */ N({
858
858
  Y("update:editing", o);
859
859
  });
860
860
  const oe = (o) => {
861
- Ot.isBoolean(o) ? V.value = o : V.value = !V.value;
862
- }, J = F(!1), re = F(null);
861
+ zt.isBoolean(o) ? V.value = o : V.value = !V.value;
862
+ }, Z = F(!1), re = F(null);
863
863
  async function L() {
864
- J.value = !J.value, J.value && (await Ae(), re.value && re.value.toggleProperty(!0));
864
+ Z.value = !Z.value, Z.value && (await Ae(), re.value && re.value.toggleProperty(!0));
865
865
  }
866
866
  e({
867
867
  toggleAttributeFilter: L
868
868
  });
869
869
  const {
870
- attributes: B,
871
- filterRule: z,
870
+ attributes: K,
871
+ filterRule: O,
872
872
  mongoQuery: H
873
873
  } = xt({
874
- valueSource: O,
874
+ valueSource: z,
875
875
  entity: "item"
876
- }), Z = F(""), ne = Ct(Z, 300), Q = x(() => {
876
+ }), J = F(""), ne = Ct(J, 300), Q = x(() => {
877
877
  const o = (c) => {
878
878
  var h;
879
879
  return !ne.value || !ne.value.trim() ? !0 : [c.code, c.name, je(c), ...Pe(se.value, c), (h = Ce()[c.orderFrom]) == null ? void 0 : h.label, Object.values(c.customAttributes ?? {}).join(" ")].join(" ").toLowerCase().includes(ne.value.toLowerCase());
880
880
  }, r = (c) => H.value ? $t(c.customAttributes, H.value) : !0;
881
- return O.value.filter((c) => o(c) && r(c));
881
+ return z.value.filter((c) => o(c) && r(c));
882
882
  }), {
883
883
  categories: se
884
884
  } = Se(), R = x(() => l.categories.map((o) => ({
@@ -969,7 +969,7 @@ const Ye = /* @__PURE__ */ N({
969
969
  accessorKey: "price",
970
970
  header: () => {
971
971
  var o;
972
- return Je(t("menu.product.table.columns.price", {
972
+ return Ze(t("menu.product.table.columns.price", {
973
973
  currency: (o = b.value) == null ? void 0 : o.currency.symbol
974
974
  }));
975
975
  },
@@ -987,7 +987,7 @@ const Ye = /* @__PURE__ */ N({
987
987
  min: 0,
988
988
  disabled: !c.editPrice,
989
989
  // @ts-ignore
990
- placeholder: p ? zt(p, !1) : void 0,
990
+ placeholder: p ? Ot(p, !1) : void 0,
991
991
  modelValue: P(c._id, "price") ?? ((h = Te(c._id)) == null ? void 0 : h.price),
992
992
  // @ts-ignore
993
993
  "onUpdate:modelValue": (C) => {
@@ -998,7 +998,7 @@ const Ye = /* @__PURE__ */ N({
998
998
  }
999
999
  }, {
1000
1000
  accessorKey: "taxes",
1001
- header: () => Je(G.value.systemCode),
1001
+ header: () => Ze(G.value.systemCode),
1002
1002
  size: V.value ? 120 : 80,
1003
1003
  enableSorting: !1,
1004
1004
  meta: {
@@ -1042,8 +1042,8 @@ const Ye = /* @__PURE__ */ N({
1042
1042
  A(r._id, {
1043
1043
  category: _,
1044
1044
  additionalCategories: ae.map((xe) => {
1045
- const Ke = h == null ? void 0 : h[xe];
1046
- return Ke || {
1045
+ const Ne = h == null ? void 0 : h[xe];
1046
+ return Ne || {
1047
1047
  _id: xe,
1048
1048
  position: null
1049
1049
  };
@@ -1141,7 +1141,7 @@ const Ye = /* @__PURE__ */ N({
1141
1141
  const p = o[0][c], h = Q.value[parseInt(c)];
1142
1142
  h && (p ? r.push(h) : X.value = r.filter((C) => C !== h));
1143
1143
  }), X.value = r;
1144
- }), de(() => O.value, () => {
1144
+ }), de(() => z.value, () => {
1145
1145
  le.value = {}, X.value = [];
1146
1146
  }), de(() => V.value, () => {
1147
1147
  le.value = {}, X.value = [];
@@ -1224,9 +1224,9 @@ const Ye = /* @__PURE__ */ N({
1224
1224
  if (r && c) {
1225
1225
  const h = r.override.scheduler[c] ?? {}, C = (p = h == null ? void 0 : h.items) == null ? void 0 : p.filter((_) => _._id === o);
1226
1226
  return C == null ? void 0 : C[0];
1227
- } else return r ? r.override.items[o][0] : c ? l.schedulers.find((_) => _._id === c).items.filter((_) => _._id === o)[0] : O.value.find((h) => h._id === o);
1227
+ } else return r ? r.override.items[o][0] : c ? l.schedulers.find((_) => _._id === c).items.filter((_) => _._id === o)[0] : z.value.find((h) => h._id === o);
1228
1228
  }
1229
- const dt = rt(), mt = x(() => dt.breakpoints.value.xs), Be = F(null), pt = At(Be, J), vt = x(() => {
1229
+ const dt = rt(), mt = x(() => dt.breakpoints.value.xs), Ke = F(null), pt = At(Ke, Z), vt = x(() => {
1230
1230
  var r;
1231
1231
  return {
1232
1232
  height: `calc(100vh - ${((r = pt.value) == null ? void 0 : r.top) + 24}px)`
@@ -1234,20 +1234,20 @@ const Ye = /* @__PURE__ */ N({
1234
1234
  });
1235
1235
  return (o, r) => {
1236
1236
  const c = j("fm-search"), p = j("fm-button"), h = j("fm-table"), C = j("fm-form");
1237
- return mt.value ? (m(), w("div", Dl, [g("div", jl, [g("div", Bl, [d(c, {
1238
- "model-value": Z.value,
1239
- "onUpdate:modelValue": r[5] || (r[5] = (_) => Z.value = _),
1237
+ return mt.value ? (m(), w("div", Dl, [g("div", jl, [g("div", Kl, [d(c, {
1238
+ "model-value": J.value,
1239
+ "onUpdate:modelValue": r[5] || (r[5] = (_) => J.value = _),
1240
1240
  autofocus: "",
1241
1241
  placeholder: a(t)("menu.product.table.search.placeholder")
1242
1242
  }, null, 8, ["model-value", "placeholder"])]), r[8] || (r[8] = g("div", {
1243
1243
  class: "w-full h-[1px] bg-fm-color-neutral-gray-100"
1244
- }, null, -1)), g("div", Kl, [_e(o.$slots, "filter")]), J.value ? (m(), w("div", Nl, [d(a(We), {
1244
+ }, null, -1)), g("div", Nl, [_e(o.$slots, "filter")]), Z.value ? (m(), w("div", Bl, [d(a(We), {
1245
1245
  ref_key: "attributeFilterRef",
1246
1246
  ref: re,
1247
- attributes: a(B),
1248
- modelValue: a(z),
1249
- "onUpdate:modelValue": r[6] || (r[6] = (_) => Ne(z) ? z.value = _ : null)
1250
- }, null, 8, ["attributes", "modelValue"])])) : M("", !0)]), O.value.length ? (m(), w("div", El, [(m(!0), w(pe, null, we(Q.value, (_) => {
1247
+ attributes: a(K),
1248
+ modelValue: a(O),
1249
+ "onUpdate:modelValue": r[6] || (r[6] = (_) => Be(O) ? O.value = _ : null)
1250
+ }, null, 8, ["attributes", "modelValue"])])) : M("", !0)]), z.value.length ? (m(), w("div", El, [(m(!0), w(pe, null, we(Q.value, (_) => {
1251
1251
  var ae;
1252
1252
  return m(), w("div", {
1253
1253
  key: _._id,
@@ -1257,9 +1257,9 @@ const Ye = /* @__PURE__ */ N({
1257
1257
  alt: _.name,
1258
1258
  size: 72,
1259
1259
  src: _.thumbnail
1260
- }, null, 8, ["alt", "src"]), g("div", ql, [g("div", Wl, [g("p", Hl, K(_.name), 1), d(Ve, {
1260
+ }, null, 8, ["alt", "src"]), g("div", ql, [g("div", Wl, [g("p", Hl, N(_.name), 1), d(Ve, {
1261
1261
  "order-from": _.orderFrom
1262
- }, null, 8, ["order-from"])]), g("p", Ql, K(je(_)), 1), g("p", Yl, K(a(t)("menu.product.table.columns.code")) + ": " + K(((ae = Te(_._id)) == null ? void 0 : ae.code) || "--"), 1), g("p", Jl, [d(Qe, {
1262
+ }, null, 8, ["order-from"])]), g("p", Ql, N(je(_)), 1), g("p", Yl, N(a(t)("menu.product.table.columns.code")) + ": " + N(((ae = Te(_._id)) == null ? void 0 : ae.code) || "--"), 1), g("p", Zl, [d(Qe, {
1263
1263
  categories: a(Pe)(a(se), _)
1264
1264
  }, null, 8, ["categories"])]), d(Me, {
1265
1265
  "custom-attributes": _.customAttributes
@@ -1273,7 +1273,7 @@ const Ye = /* @__PURE__ */ N({
1273
1273
  thumbnail: _.thumbnail
1274
1274
  }]), ["stop"])
1275
1275
  }, null, 8, ["text-color", "variant", "onClick"])], 8, Gl);
1276
- }), 128))])) : (m(), w("div", Zl, [d(be, {
1276
+ }), 128))])) : (m(), w("div", Jl, [d(be, {
1277
1277
  subtitle: a(t)("menu.product.table.empty.subtitle"),
1278
1278
  title: a(t)("menu.product.table.empty.title")
1279
1279
  }, {
@@ -1303,17 +1303,17 @@ const Ye = /* @__PURE__ */ N({
1303
1303
  onValidationSuccess: De
1304
1304
  }, {
1305
1305
  default: T(() => [g("div", Il, [g("div", $l, [_e(o.$slots, "filter")]), g("div", Tl, [d(c, {
1306
- "model-value": Z.value,
1307
- "onUpdate:modelValue": r[0] || (r[0] = (_) => Z.value = _),
1306
+ "model-value": J.value,
1307
+ "onUpdate:modelValue": r[0] || (r[0] = (_) => J.value = _),
1308
1308
  autofocus: "",
1309
1309
  placeholder: a(t)("menu.product.table.search.placeholder")
1310
- }, null, 8, ["model-value", "placeholder"])])]), J.value ? (m(), w("div", Pl, [d(a(We), {
1310
+ }, null, 8, ["model-value", "placeholder"])])]), Z.value ? (m(), w("div", Pl, [d(a(We), {
1311
1311
  ref_key: "attributeFilterRef",
1312
1312
  ref: re,
1313
- attributes: a(B),
1314
- modelValue: a(z),
1315
- "onUpdate:modelValue": r[1] || (r[1] = (_) => Ne(z) ? z.value = _ : null)
1316
- }, null, 8, ["attributes", "modelValue"])])) : M("", !0), O.value.length ? (m(), w("div", Al, [X.value.length && !V.value ? (m(), w("div", Rl, [g("p", Ml, K(a(t)("menu.product.table.selection.count", {
1313
+ attributes: a(K),
1314
+ modelValue: a(O),
1315
+ "onUpdate:modelValue": r[1] || (r[1] = (_) => Be(O) ? O.value = _ : null)
1316
+ }, null, 8, ["attributes", "modelValue"])])) : M("", !0), z.value.length ? (m(), w("div", Al, [X.value.length && !V.value ? (m(), w("div", Rl, [g("p", Ml, N(a(t)("menu.product.table.selection.count", {
1317
1317
  count: X.value.length
1318
1318
  })), 1), d(p, {
1319
1319
  label: a(t)("menu.product.table.selection.actions.deselect_all"),
@@ -1344,7 +1344,7 @@ const Ye = /* @__PURE__ */ N({
1344
1344
  type: "submit"
1345
1345
  }, null, 8, ["borderColor", "textColor", "variant", "label"])])) : M("", !0), g("div", {
1346
1346
  ref_key: "tableWrapper",
1347
- ref: Be
1347
+ ref: Ke
1348
1348
  }, [(m(), I(lt(V.value ? Pt : "div"), {
1349
1349
  ref: "fullWrapper",
1350
1350
  title: V.value ? a(t)("menu.product.table.bulk_edit.title") : "",
@@ -1385,11 +1385,11 @@ const Ye = /* @__PURE__ */ N({
1385
1385
  onRowClick: r[3] || (r[3] = (_) => V.value ? void 0 : ct(_))
1386
1386
  }, null, 8, ["class", "modelValue", "column-defs", "column-visibility", "loading", "page-size", "row-data", "selection", "virtual-row-height"])]),
1387
1387
  _: 1
1388
- }, 40, ["title", "show", "primary-action", "secondary-actions", "style"]))], 512)])) : (m(), w("div", Ol, [d(be, {
1388
+ }, 40, ["title", "show", "primary-action", "secondary-actions", "style"]))], 512)])) : (m(), w("div", zl, [d(be, {
1389
1389
  subtitle: a(t)("menu.product.table.empty.subtitle"),
1390
1390
  title: a(t)("menu.product.table.empty.title")
1391
1391
  }, {
1392
- action: T(() => [g("div", zl, [d(p, {
1392
+ action: T(() => [g("div", Ol, [d(p, {
1393
1393
  variant: a(ee).Primary,
1394
1394
  label: a(t)("menu.product.table.empty.actions.add"),
1395
1395
  "prepend-icon": "add",
@@ -1421,7 +1421,7 @@ const Ye = /* @__PURE__ */ N({
1421
1421
  }, aa = { class: "flex flex-col flex-1 overflow-hidden" }, oa = {
1422
1422
  key: 1,
1423
1423
  class: "pt-16 xs:pt-8 space-y-24"
1424
- }, ra = { class: "flex items-center gap-8 px-16" }, Fa = /* @__PURE__ */ N({
1424
+ }, ra = { class: "flex items-center gap-8 px-16" }, Fa = /* @__PURE__ */ B({
1425
1425
  __name: "Product",
1426
1426
  setup(k) {
1427
1427
  const e = Fe(), i = x(() => e.rules.item), n = ot(), t = x(() => !e.state.currentCatalogId), u = x(() => e.rules.item), l = x(() => !e.state.currentSchedulerId), v = F(!1), f = F(!1), s = x(() => {
@@ -1466,32 +1466,32 @@ const Ye = /* @__PURE__ */ N({
1466
1466
  }, E;
1467
1467
  }, {});
1468
1468
  b.value = A, y.value = { ...A }, f.value = !1;
1469
- }, { categories: O, selectedCategories: Y } = Se(), V = F(null);
1469
+ }, { categories: z, selectedCategories: Y } = Se(), V = F(null);
1470
1470
  function oe() {
1471
1471
  V.value && V.value.toggleAttributeFilter();
1472
1472
  }
1473
1473
  tt(async () => {
1474
1474
  Y.value && await S();
1475
1475
  });
1476
- function J() {
1476
+ function Z() {
1477
1477
  n.create(null);
1478
1478
  }
1479
1479
  const re = () => {
1480
1480
  Y.value && S();
1481
- }, { t: L } = Ie(), B = x(() => {
1481
+ }, { t: L } = Ie(), K = x(() => {
1482
1482
  var R, $;
1483
1483
  return ($ = (R = e.currentCatalog) == null ? void 0 : R.linkItemRules) == null ? void 0 : $.length;
1484
1484
  }), {
1485
- menuItems: z,
1485
+ menuItems: O,
1486
1486
  categories: H,
1487
- linkItemRules: Z,
1487
+ linkItemRules: J,
1488
1488
  handleSubmit: ne,
1489
1489
  catalogManager: Q,
1490
1490
  schedulerManager: se
1491
1491
  } = kt(!1);
1492
1492
  return (R, $) => {
1493
1493
  const P = j("fm-button");
1494
- return a(O).length ? (m(), w("div", ta, [
1494
+ return a(z).length ? (m(), w("div", ta, [
1495
1495
  g("div", la, [
1496
1496
  g("div", aa, [
1497
1497
  a(Y) ? (m(), I(ea, {
@@ -1508,7 +1508,7 @@ const Ye = /* @__PURE__ */ N({
1508
1508
  filter: T(() => [
1509
1509
  d(He, { onToggleAttributeFilter: oe }),
1510
1510
  u.value.multiScheduler ? (m(), I(qe, { key: 0 })) : M("", !0),
1511
- B.value ? (m(), I(Le, {
1511
+ K.value ? (m(), I(Le, {
1512
1512
  key: 1,
1513
1513
  "current-restaurant-attr-params": a(e).state.currentRestaurantAttrParams,
1514
1514
  onConfirm: $[0] || ($[0] = (A) => a(e).setRestaurantAttrParams(A))
@@ -1522,7 +1522,7 @@ const Ye = /* @__PURE__ */ N({
1522
1522
  g("div", ra, [
1523
1523
  d(He),
1524
1524
  u.value.multiScheduler ? (m(), I(qe, { key: 0 })) : M("", !0),
1525
- B.value ? (m(), I(Le, {
1525
+ K.value ? (m(), I(Le, {
1526
1526
  key: 1,
1527
1527
  "current-restaurant-attr-params": a(e).state.currentRestaurantAttrParams,
1528
1528
  onConfirm: $[3] || ($[3] = (A) => a(e).setRestaurantAttrParams(A))
@@ -1532,7 +1532,7 @@ const Ye = /* @__PURE__ */ N({
1532
1532
  key: 0,
1533
1533
  action: {
1534
1534
  text: a(L)("menu.product.empty.with_create.action"),
1535
- callback: J
1535
+ callback: Z
1536
1536
  },
1537
1537
  subtitle: a(L)("menu.product.empty.with_create.subtitle"),
1538
1538
  title: a(L)("menu.product.empty.with_create.title")
@@ -1546,9 +1546,9 @@ const Ye = /* @__PURE__ */ N({
1546
1546
  "categorized-items": a(Q).linkableItems.value,
1547
1547
  "initial-value": a(Q).currentItems.value,
1548
1548
  "show-variant": !1,
1549
- "menu-items": a(z),
1549
+ "menu-items": a(O),
1550
1550
  categories: a(H),
1551
- "link-item-rules": a(Z),
1551
+ "link-item-rules": a(J),
1552
1552
  "no-scheduler": l.value,
1553
1553
  "is-local-only": !0,
1554
1554
  onSubmit: a(ne)
@@ -1574,9 +1574,9 @@ const Ye = /* @__PURE__ */ N({
1574
1574
  "categorized-items": a(se).linkableItems.value,
1575
1575
  "initial-value": a(se).currentItems.value,
1576
1576
  "show-variant": !1,
1577
- "menu-items": a(z),
1577
+ "menu-items": a(O),
1578
1578
  categories: a(H),
1579
- "link-item-rules": a(Z),
1579
+ "link-item-rules": a(J),
1580
1580
  "no-scheduler": l.value,
1581
1581
  "is-local-only": !0,
1582
1582
  onSubmit: a(ne)