@feedmepos/mf-menu 0.32.7-dev → 0.32.8-dev

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-DCkQc7e4.js → App-B5S9byVJ.js} +5456 -4621
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-uzmq3vwy.js → ApplyProduct.vue_vue_type_script_setup_true_lang-bSXFWpq_.js} +3 -3
  3. package/dist/{Catalog-CUPoRid3.js → Catalog-CTfF5FmI.js} +52 -52
  4. package/dist/{Category-BkvhZ57Y.js → Category-BntCVeoT.js} +57 -57
  5. package/dist/{Category-Cdw0ikhP.js → Category-Z3bphlCX.js} +26 -26
  6. package/dist/{CookingGuide-BZ-4oULM.js → CookingGuide-CoPo2Alx.js} +127 -127
  7. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-CJvVFWdR.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-DJ3sb3XV.js} +1 -1
  8. package/dist/{Group-Cec83DWm.js → Group-B7rZfFlT.js} +3 -3
  9. package/dist/{Group-C1FaXdUb.js → Group-CblWJOl1.js} +1 -1
  10. package/dist/{Group.vue_vue_type_script_setup_true_lang-2_lLBdX2.js → Group.vue_vue_type_script_setup_true_lang-wX7yqw0Z.js} +33 -33
  11. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BEDyKWhK.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DW1gBCBA.js} +27 -27
  12. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-BteTvMnx.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-CcQBD0I8.js} +7 -7
  13. package/dist/{Ingredient-DulL8h2B.js → Ingredient-Bn-jeNeI.js} +46 -46
  14. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-DoBx7Dal.js → InventoryBinding.vue_vue_type_script_setup_true_lang-DbGNFA3D.js} +2 -2
  15. package/dist/{LinkProductSideSheet-Br2eE8pC.js → LinkProductSideSheet-BjcQDT4U.js} +61 -61
  16. package/dist/{MenuSetting-DxW4LCW4.js → MenuSetting-BT5YSMgK.js} +14 -14
  17. package/dist/{PrintRoute-Da6Zkx-0.js → PrintRoute-B0j0eqNM.js} +34 -34
  18. package/dist/{Product-Cs76t18_.js → Product-BOMprFhc.js} +1 -1
  19. package/dist/{Product.vue_vue_type_script_setup_true_lang-C6SOu4Vv.js → Product.vue_vue_type_script_setup_true_lang-q9xFzQ0v.js} +142 -142
  20. package/dist/{ProductInternalTools-DPbeRvTM.js → ProductInternalTools-O5d2jMAH.js} +39 -39
  21. package/dist/{Products--7dGfuuT.js → Products-BnMrK40x.js} +15 -15
  22. package/dist/{Publish-COmZtiyX.js → Publish-dTP5mQS3.js} +26 -26
  23. package/dist/{Recipe-BaN_1zrP.js → Recipe-DnftcZPO.js} +26 -26
  24. package/dist/{RuleView.vue_vue_type_script_setup_true_lang-DputprQj.js → RuleView.vue_vue_type_script_setup_true_lang-DSfiVSBV.js} +2 -2
  25. package/dist/{Scheduler-BSUpIAaK.js → Scheduler-DRLaQK_V.js} +22 -22
  26. package/dist/{ServingSequence-dXBb7e5d.js → ServingSequence-CPIyJ7T8.js} +39 -39
  27. package/dist/{Setting-CalEQW0n.js → Setting-CLtISC4c.js} +22 -22
  28. package/dist/{Subcategory-zPHtX7Vc.js → Subcategory-b0bXCYYY.js} +32 -32
  29. package/dist/{Takeaway-CRDj2Bpe.js → Takeaway-CCIKDCoF.js} +12 -12
  30. package/dist/{Takeaway-CcnmeTmu.js → Takeaway-h9uUxFJd.js} +1 -1
  31. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-Cj7vyOaP.js → Takeaway.vue_vue_type_script_setup_true_lang-BOG_W-2a.js} +26 -26
  32. package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-B0552qsN.js → Thumbnail.vue_vue_type_script_setup_true_lang-D4KcX3XQ.js} +26 -26
  33. package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-B3EByLES.js +6016 -0
  34. package/dist/{Unit-C7-Oj5S3.js → Unit-B0kiwrN6.js} +13 -13
  35. package/dist/{Variant-CYiMkE0q.js → Variant-CJSk0kTW.js} +18 -18
  36. package/dist/{_id_-D75ZcNlf.js → _id_-108G3lsv.js} +22 -22
  37. package/dist/{app-DzVMOviz.js → app-BTn28hDr.js} +1 -1
  38. package/dist/{app-BhLVpUSl.js → app-CPJH5bgs.js} +26 -26
  39. package/dist/app.js +1 -1
  40. package/dist/apps/mf-menu/src/stores/menu.d.ts +4 -0
  41. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  42. package/dist/assets/{linked-status-BoIPm5hC.js → linked-status-Bp5piT25.js} +2 -2
  43. package/dist/assets/{override-menu-DfTrwWpR.js → override-menu-D47qVZAi.js} +2 -2
  44. package/dist/assets/{validate-menu-BhWvQ3T9.js → validate-menu-YuXYm9iE.js} +2 -2
  45. package/dist/{catalog-CudNSsIP.js → catalog-CpFTifAS.js} +1 -1
  46. package/dist/{catalogSetting-BVHO9tK3.js → catalogSetting-DjGqI2Vf.js} +1 -1
  47. package/dist/{category-BQpgz1lk.js → category-DaRWiQd8.js} +5 -5
  48. package/dist/{currency-BfS7H2KE.js → currency-DbURufyM.js} +1 -1
  49. package/dist/{index-aaoziUNI.js → index-C6AkIinM.js} +1 -1
  50. package/dist/{index-DmGJvREM.js → index-D67GKEzf.js} +1 -1
  51. package/dist/{index-DuLXS699.js → index-kjRAsH_h.js} +38 -38
  52. package/dist/{index-BHdPJta4.js → index-pJtym1c6.js} +21 -21
  53. package/dist/{index.vue_vue_type_script_setup_true_lang-Dje9kp-F.js → index.vue_vue_type_script_setup_true_lang-BvohjQ00.js} +438 -428
  54. package/dist/item-2WoPAnNJ.js +6838 -0
  55. package/dist/{iteration-CaliNodx.js → iteration-BGItxpWj.js} +1 -1
  56. package/dist/{jszip.min-DXbkmgRD.js → jszip.min-D8NeBCPG.js} +2 -2
  57. package/dist/{menu-D-lUEuvX.js → menu-DVdMR0zo.js} +1 -1
  58. package/dist/{menuV2-D-6O36DO.js → menuV2-CcBdUc80.js} +41 -41
  59. package/dist/mf-menu.css +1 -1
  60. package/dist/{priceTier-DKnYaOA9.js → priceTier-CTfRyTuS.js} +1 -1
  61. package/dist/{scheduler-DEwfbYPL.js → scheduler-DOMDX4d7.js} +20 -20
  62. package/dist/{subcategory-CQKklgcd.js → subcategory-NsslZ1my.js} +6 -6
  63. package/dist/{toExcel-CRwL-QqF.js → toExcel-Bdne-Dw_.js} +2 -2
  64. package/dist/{unit-BzM1rmN7.js → unit-DKyvdauo.js} +29 -29
  65. package/package.json +1 -1
  66. package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BwnyIDNH.js +0 -6038
  67. package/dist/item-BtKW0wdj.js +0 -7685
@@ -1,24 +1,24 @@
1
- import { ref as F, computed as h, defineComponent as B, resolveComponent as O, createBlock as I, openBlock as m, withCtx as T, createElementVNode as g, createVNode as d, unref as a, createElementBlock as k, Fragment as pe, renderList as we, createCommentVNode as U, 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 q, isRef as je, normalizeStyle as ft } from "vue";
2
- import { u as Fe, Q as Ce, A as me, H as Re, I as ge, U as gt, ad as bt, ae as _t, af as Pe, ag as yt, P as ht, a3 as be, ah as Ee } from "./index.vue_vue_type_script_setup_true_lang-Dje9kp-F.js";
1
+ import { ref as F, computed as h, defineComponent as N, resolveComponent as O, createBlock as I, openBlock as m, withCtx as T, createElementVNode as g, createVNode as d, unref as a, createElementBlock as k, 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 q, isRef as je, normalizeStyle as ft } from "vue";
2
+ import { u as Fe, R as Ce, B as me, I as Re, J as ge, V as gt, ad as bt, ae as _t, af as Pe, ag as yt, Q as ht, a3 as be, ah as Ee } from "./index.vue_vue_type_script_setup_true_lang-BvohjQ00.js";
3
3
  import { useI18n as Ie, useCoreStore as ze, useCustomAttributes as xt } from "@feedmepos/mf-common";
4
- import { u as Se } from "./menu-D-lUEuvX.js";
5
- import { L as Ge } from "./LinkProductSideSheet-Br2eE8pC.js";
6
- import { r as Ct, _ as Le } from "./index-aaoziUNI.js";
7
- import { _ as Ue, a as qe } from "./CustomAttributeChip.vue_vue_type_script_setup_true_lang-CJvVFWdR.js";
8
- import { _ as Me, u as kt } from "./Thumbnail.vue_vue_type_script_setup_true_lang-B0552qsN.js";
9
- import { f as wt, o as St, a as Vt, m as Ft } from "./menuV2-D-6O36DO.js";
10
- import { u as ot, C as It } from "./item-BtKW0wdj.js";
4
+ import { u as Se } from "./menu-DVdMR0zo.js";
5
+ import { L as Ge } from "./LinkProductSideSheet-BjcQDT4U.js";
6
+ import { r as Ct, _ as Le } from "./index-C6AkIinM.js";
7
+ import { _ as Me, a as qe } from "./CustomAttributeChip.vue_vue_type_script_setup_true_lang-DJ3sb3XV.js";
8
+ import { _ as Ue, u as kt } from "./Thumbnail.vue_vue_type_script_setup_true_lang-D4KcX3XQ.js";
9
+ import { f as wt, o as St, a as Vt, m as Ft } from "./menuV2-CcBdUc80.js";
10
+ import { u as ot, C as It } from "./item-2WoPAnNJ.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
- import { F as Pt } from "./index-DmGJvREM.js";
14
- import { _ as De, a as At } from "./app-BhLVpUSl.js";
13
+ import { F as Pt } from "./index-D67GKEzf.js";
14
+ import { _ as De, a as At } from "./app-CPJH5bgs.js";
15
15
  import { _ as ke } from "./TextChip.vue_vue_type_script_setup_true_lang-8frWuZFL.js";
16
- import { _ as Rt } from "./index-BHdPJta4.js";
17
- import { r as Ut, _ as Mt } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-BteTvMnx.js";
16
+ import { _ as Rt } from "./index-pJtym1c6.js";
17
+ import { r as Mt, _ as Ut } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-CcQBD0I8.js";
18
18
  import { c as zt } from "./check-C9mY6LiX.js";
19
- import { f as Dt } from "./currency-BfS7H2KE.js";
19
+ import { f as Dt } from "./currency-DbURufyM.js";
20
20
  import { w as Ot } from "./tooltip-CQW9YRO5.js";
21
- function Kt(C, e, i = C) {
21
+ function Bt(C, e, i = C) {
22
22
  const n = F(!0), t = h(() => {
23
23
  if (!n.value && !e.value)
24
24
  return !0;
@@ -44,47 +44,47 @@ function Kt(C, e, i = C) {
44
44
  e.value === void 0 && n.value ? s = [f] : e.value === void 0 && !n.value ? s = (b = C.value.map((z) => z.value)) == null ? void 0 : b.filter((z) => z !== f) : (y = e.value) != null && y.includes(f) ? s = (w = e.value) == null ? void 0 : w.filter((z) => z !== f) : s = [...e.value || [], f], s.length === 0 ? (e.value = void 0, n.value = !0) : s.length === C.value.length ? (e.value = void 0, n.value = !1) : e.value = s;
45
45
  } };
46
46
  }
47
- const Nt = { class: "inline-flex items-center" }, Bt = {
47
+ const Kt = { class: "inline-flex items-center" }, Nt = {
48
48
  key: 0,
49
49
  class: /* @__PURE__ */ ve([
50
50
  "fm-typo-en-body-md-600 select-none text-ellipsis overflow-hidden whitespace-nowrap",
51
51
  "text-fm-color-neutral-gray-400"
52
52
  ])
53
- }, jt = { class: "p-4" }, Et = { class: "flex-1 overflow-y-auto min-h-0" }, He = /* @__PURE__ */ B({
53
+ }, jt = { class: "p-4" }, Et = { class: "flex-1 overflow-y-auto min-h-0" }, He = /* @__PURE__ */ N({
54
54
  __name: "CategorySelector",
55
55
  emits: ["toggleAttributeFilter"],
56
56
  setup(C, { emit: e }) {
57
57
  const i = e, n = Fe(), { categories: t, selectedCategories: u } = Se(), l = h(() => n.state.currentCategoryIds), v = h(
58
- () => t.value.map((K) => ({ label: K.name, value: K.id }))
58
+ () => t.value.map((B) => ({ label: B.name, value: B.id }))
59
59
  ), f = h(() => v.value.filter(
60
- (K) => K.label.toLowerCase().includes(y.value.toLowerCase())
60
+ (B) => B.label.toLowerCase().includes(y.value.toLowerCase())
61
61
  )), { t: s } = Ie(), b = h(() => {
62
- var K, D, H;
63
- return t.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}`;
62
+ var B, D, H;
63
+ return t.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}`;
64
64
  }), y = F(""), w = h({
65
65
  get: () => l.value,
66
- set: (K) => {
67
- n.selectCategory(K);
66
+ set: (B) => {
67
+ n.selectCategory(B);
68
68
  }
69
- }), { allSelected: z, toggleAll: Y, toggleOption: S, indeterminate: oe } = Kt(
69
+ }), { allSelected: z, toggleAll: Y, toggleOption: S, indeterminate: oe } = Bt(
70
70
  v,
71
71
  w,
72
72
  f
73
- ), Z = ze(), re = h(() => Z.itemAttributeSettings.value.length > 0);
73
+ ), J = ze(), re = h(() => J.itemAttributeSettings.value.length > 0);
74
74
  function G() {
75
75
  i("toggleAttributeFilter");
76
76
  }
77
- return (K, D) => {
78
- const H = O("FmIcon"), J = O("FmChip"), ne = O("FmSearch"), Q = O("FmMenuItem"), se = O("FmMenu");
77
+ return (B, D) => {
78
+ const H = O("FmIcon"), Z = O("FmChip"), ne = O("FmSearch"), Q = O("FmMenuItem"), se = O("FmMenu");
79
79
  return m(), I(se, {
80
80
  "close-on-click": !1,
81
81
  width: 220
82
82
  }, {
83
83
  "menu-button": T(() => [
84
- g("div", Nt, [
85
- d(J, null, {
84
+ g("div", Kt, [
85
+ d(Z, null, {
86
86
  default: T(() => [
87
- b.value ? (m(), k("div", Bt, N(a(s)("menu.category.selector.title", { label: b.value })), 1)) : U("", !0),
87
+ b.value ? (m(), k("div", Nt, K(a(s)("menu.category.selector.title", { label: b.value })), 1)) : M("", !0),
88
88
  d(H, {
89
89
  color: "neutral-gray-400",
90
90
  name: "expand_more",
@@ -103,7 +103,7 @@ const Nt = { class: "inline-flex items-center" }, Bt = {
103
103
  onClick: D[0] || (D[0] = fe(() => {
104
104
  }, ["prevent"]))
105
105
  })
106
- ])) : U("", !0)
106
+ ])) : M("", !0)
107
107
  ]),
108
108
  _: 1
109
109
  })
@@ -148,7 +148,7 @@ const Nt = { class: "inline-flex items-center" }, Bt = {
148
148
  }, Qt = { key: 0 }, Yt = {
149
149
  key: 1,
150
150
  class: "inline-block w-8"
151
- }, Zt = { key: 0 }, Jt = { key: 1 }, Qe = /* @__PURE__ */ B({
151
+ }, Jt = { key: 0 }, Zt = { key: 1 }, Qe = /* @__PURE__ */ N({
152
152
  __name: "CategoriesChip",
153
153
  props: {
154
154
  categories: { default: () => [] },
@@ -166,17 +166,17 @@ const Nt = { class: "inline-flex items-center" }, Bt = {
166
166
  const y = O("FmTooltip");
167
167
  return t.value ? (m(), k(pe, { key: 1 }, [
168
168
  s.categories.length > 0 ? (m(), k("p", Ht, [
169
- g("span", null, N(a(i)("menu.product.table.columns.category")) + ": ", 1),
170
- g("span", null, N(f.value), 1),
169
+ g("span", null, K(a(i)("menu.product.table.columns.category")) + ": ", 1),
170
+ g("span", null, K(f.value), 1),
171
171
  v.value ? (m(), k("span", Yt)) : (m(), k("br", Qt)),
172
172
  s.categories.length > u.value ? (m(), k("span", {
173
173
  key: 2,
174
174
  class: "fm-typo-en-body-md-400 text-fm-color-primary cursor-pointer",
175
175
  onClick: b[0] || (b[0] = fe((w) => v.value = !v.value, ["stop", "prevent"]))
176
176
  }, [
177
- v.value ? (m(), k("span", Zt, N(a(i)("menu.product.table.category.expand", { count: s.categories.length - u.value })), 1)) : (m(), k("span", Jt, N(a(i)("menu.product.table.category.collapse")), 1))
178
- ])) : U("", !0)
179
- ])) : U("", !0)
177
+ v.value ? (m(), k("span", Jt, K(a(i)("menu.product.table.category.expand", { count: s.categories.length - u.value })), 1)) : (m(), k("span", Zt, K(a(i)("menu.product.table.category.collapse")), 1))
178
+ ])) : M("", !0)
179
+ ])) : M("", !0)
180
180
  ], 64)) : (m(), I(y, {
181
181
  key: 0,
182
182
  class: "flex",
@@ -186,7 +186,7 @@ const Nt = { class: "inline-flex items-center" }, Bt = {
186
186
  }, {
187
187
  content: T(() => [
188
188
  g("div", Lt, [
189
- g("p", qt, N(a(i)("menu.product.table.category.all")), 1),
189
+ g("p", qt, K(a(i)("menu.product.table.category.all")), 1),
190
190
  g("div", Wt, [
191
191
  (m(!0), k(pe, null, we(e.categories, (w) => (m(), I(ke, {
192
192
  key: w,
@@ -207,16 +207,16 @@ const Nt = { class: "inline-flex items-center" }, Bt = {
207
207
  key: 0,
208
208
  label: "...",
209
209
  variant: "neutral"
210
- })) : U("", !0)
210
+ })) : M("", !0)
211
211
  ])
212
212
  ]),
213
213
  _: 1
214
214
  }));
215
215
  };
216
216
  }
217
- }), Xt = /* @__PURE__ */ B({
217
+ }), Xt = /* @__PURE__ */ N({
218
218
  __name: "ProductSearcher",
219
- props: /* @__PURE__ */ Je({
219
+ props: /* @__PURE__ */ Ze({
220
220
  label: {},
221
221
  helperText: {},
222
222
  menu: {}
@@ -247,9 +247,9 @@ const Nt = { class: "inline-flex items-center" }, Bt = {
247
247
  }), el = { class: "flex" }, tl = { class: "w-[260px] space-y-16 h-full" }, ll = { class: "flex items-center gap-4 px-8" }, al = { class: "fm-typo-en-title-sm-600" }, ol = {
248
248
  key: 0,
249
249
  class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4"
250
- }, rl = { class: "fm-typo-en-body-md-600" }, nl = { class: "flex-1" }, nt = /* @__PURE__ */ B({
250
+ }, rl = { class: "fm-typo-en-body-md-600" }, nl = { class: "flex-1" }, nt = /* @__PURE__ */ N({
251
251
  __name: "ViewLayout",
252
- props: /* @__PURE__ */ Je({
252
+ props: /* @__PURE__ */ Ze({
253
253
  title: {},
254
254
  titleBadge: {},
255
255
  items: {}
@@ -265,10 +265,10 @@ const Nt = { class: "inline-flex items-center" }, Bt = {
265
265
  return m(), k("div", el, [
266
266
  g("div", tl, [
267
267
  g("div", ll, [
268
- g("p", al, N(i.title), 1),
268
+ g("p", al, K(i.title), 1),
269
269
  i.titleBadge !== void 0 ? (m(), k("div", ol, [
270
- g("p", rl, N(i.titleBadge), 1)
271
- ])) : U("", !0)
270
+ g("p", rl, K(i.titleBadge), 1)
271
+ ])) : M("", !0)
272
272
  ]),
273
273
  d(De, null, {
274
274
  default: T(() => [
@@ -288,7 +288,7 @@ const Nt = { class: "inline-flex items-center" }, Bt = {
288
288
  ]);
289
289
  };
290
290
  }
291
- }), Ve = /* @__PURE__ */ B({
291
+ }), Ve = /* @__PURE__ */ N({
292
292
  __name: "OrderFromChip",
293
293
  props: {
294
294
  orderFrom: {}
@@ -303,7 +303,7 @@ const Nt = { class: "inline-flex items-center" }, Bt = {
303
303
  }, null, 8, ["label", "variant"]);
304
304
  };
305
305
  }
306
- }), sl = /* @__PURE__ */ B({
306
+ }), sl = /* @__PURE__ */ N({
307
307
  __name: "GroupViewTable",
308
308
  props: {
309
309
  data: {}
@@ -386,7 +386,7 @@ const Nt = { class: "inline-flex items-center" }, Bt = {
386
386
  });
387
387
  };
388
388
  }
389
- }), ul = /* @__PURE__ */ B({
389
+ }), ul = /* @__PURE__ */ N({
390
390
  __name: "GroupView",
391
391
  props: {
392
392
  itemId: {},
@@ -461,7 +461,7 @@ const Nt = { class: "inline-flex items-center" }, Bt = {
461
461
  }
462
462
  }), il = {
463
463
  class: "scroll-x-auto"
464
- }, cl = /* @__PURE__ */ B({
464
+ }, cl = /* @__PURE__ */ N({
465
465
  __name: "ProductViewTable",
466
466
  props: {
467
467
  itemId: {},
@@ -542,7 +542,7 @@ const Nt = { class: "inline-flex items-center" }, Bt = {
542
542
  });
543
543
  };
544
544
  }
545
- }), dl = /* @__PURE__ */ B({
545
+ }), dl = /* @__PURE__ */ N({
546
546
  __name: "ProductView",
547
547
  props: {
548
548
  itemId: {},
@@ -601,7 +601,7 @@ const Nt = { class: "inline-flex items-center" }, Bt = {
601
601
  }), ml = { class: "flex items-center gap-8" }, pl = { class: "space-y-4" }, vl = { class: "fm-typo-en-title-md-600" }, fl = { key: 0 }, gl = { class: "text-fm-color-typo-secondary" }, bl = {
602
602
  key: 0,
603
603
  class: "text-fm-color-typo-secondary"
604
- }, _l = { class: "flex items-center gap-4" }, yl = /* @__PURE__ */ B({
604
+ }, _l = { class: "flex items-center gap-4" }, yl = /* @__PURE__ */ N({
605
605
  __name: "ProductBaseInfo",
606
606
  props: {
607
607
  itemId: {},
@@ -615,7 +615,7 @@ const Nt = { class: "inline-flex items-center" }, Bt = {
615
615
  return (t, u) => {
616
616
  var l, v, f, s, b, y, w;
617
617
  return m(), k("div", ml, [
618
- d(Me, {
618
+ d(Ue, {
619
619
  alt: ((l = i.value) == null ? void 0 : l.name) ?? null,
620
620
  size: 72,
621
621
  src: (v = i.value) == null ? void 0 : v.thumbnail,
@@ -623,24 +623,24 @@ const Nt = { class: "inline-flex items-center" }, Bt = {
623
623
  }, null, 8, ["alt", "src"]),
624
624
  g("div", pl, [
625
625
  g("p", vl, [
626
- (f = i.value) != null && f.code ? (m(), k("span", fl, N((s = i.value) == null ? void 0 : s.code) + ", ", 1)) : U("", !0),
627
- g("span", null, N((b = i.value) == null ? void 0 : b.name), 1)
626
+ (f = i.value) != null && f.code ? (m(), k("span", fl, K((s = i.value) == null ? void 0 : s.code) + ", ", 1)) : M("", !0),
627
+ g("span", null, K((b = i.value) == null ? void 0 : b.name), 1)
628
628
  ]),
629
- g("p", gl, "Base price: " + N(n.value), 1),
629
+ g("p", gl, "Base price: " + K(n.value), 1),
630
630
  (y = i.value) != null && y.customAttributes ? (m(), k("div", bl, [
631
631
  g("div", _l, [
632
632
  u[0] || (u[0] = g("span", null, "Tagging:", -1)),
633
- d(Ue, {
633
+ d(Me, {
634
634
  ellipsis: !1,
635
635
  "custom-attributes": (w = i.value) == null ? void 0 : w.customAttributes
636
636
  }, null, 8, ["custom-attributes"])
637
637
  ])
638
- ])) : U("", !0)
638
+ ])) : M("", !0)
639
639
  ])
640
640
  ]);
641
641
  };
642
642
  }
643
- }), hl = { class: "space-y-16" }, xl = /* @__PURE__ */ B({
643
+ }), hl = { class: "space-y-16" }, xl = /* @__PURE__ */ N({
644
644
  __name: "ProductViewer",
645
645
  props: {
646
646
  itemId: {},
@@ -683,7 +683,7 @@ const Nt = { class: "inline-flex items-center" }, Bt = {
683
683
  ]);
684
684
  };
685
685
  }
686
- }), Cl = { class: "space-y-24" }, kl = { key: 0 }, wl = /* @__PURE__ */ B({
686
+ }), Cl = { class: "space-y-24" }, kl = { key: 0 }, wl = /* @__PURE__ */ N({
687
687
  __name: "ProductOverview",
688
688
  props: {
689
689
  itemId: {},
@@ -703,17 +703,17 @@ const Nt = { class: "inline-flex items-center" }, Bt = {
703
703
  "helper-text": "Quickly find products and view their prices across different catalogs and schedules.",
704
704
  menu: a(i).state.menu
705
705
  }, null, 8, ["modelValue", "menu"])
706
- ])) : U("", !0),
706
+ ])) : M("", !0),
707
707
  g("div", null, [
708
708
  n.value ? (m(), I(xl, {
709
709
  key: 0,
710
710
  "item-id": n.value,
711
711
  menu: a(i).state.menu
712
- }, null, 8, ["item-id", "menu"])) : U("", !0)
712
+ }, null, 8, ["item-id", "menu"])) : M("", !0)
713
713
  ])
714
714
  ]));
715
715
  }
716
- }), Sl = /* @__PURE__ */ B({
716
+ }), Sl = /* @__PURE__ */ N({
717
717
  __name: "OverviewSheet",
718
718
  setup(C) {
719
719
  const e = F(null), i = F(!1);
@@ -739,7 +739,7 @@ const Nt = { class: "inline-flex items-center" }, Bt = {
739
739
  i.value && e.value ? (m(), I(wl, {
740
740
  key: 0,
741
741
  "item-id": e.value
742
- }, null, 8, ["item-id"])) : U("", !0)
742
+ }, null, 8, ["item-id"])) : M("", !0)
743
743
  ])
744
744
  ]),
745
745
  _: 1
@@ -748,8 +748,8 @@ const Nt = { class: "inline-flex items-center" }, Bt = {
748
748
  };
749
749
  }
750
750
  });
751
- var Vl = Ut();
752
- const Ye = /* @__PURE__ */ B({
751
+ var Vl = Mt();
752
+ const Ye = /* @__PURE__ */ N({
753
753
  __name: "ImportButton",
754
754
  setup(C) {
755
755
  const e = F(!1);
@@ -766,14 +766,14 @@ const Ye = /* @__PURE__ */ B({
766
766
  console.log("Unable to set country config", u);
767
767
  }
768
768
  }), (t, u) => (m(), k(pe, null, [
769
- d(Mt, {
769
+ d(Ut, {
770
770
  modelValue: e.value,
771
771
  "onUpdate:modelValue": u[0] || (u[0] = (l) => e.value = l)
772
772
  }, null, 8, ["modelValue"]),
773
773
  _e(t.$slots, "default", { trigger: i })
774
774
  ], 64));
775
775
  }
776
- }), Ze = (C) => d("div", {
776
+ }), Je = (C) => d("div", {
777
777
  class: "flex flex-1 justify-end"
778
778
  }, [d("span", null, [C, et(" ")])]), Fl = {
779
779
  class: "flex justify-between items-center space-x-8"
@@ -791,10 +791,10 @@ const Ye = /* @__PURE__ */ B({
791
791
  class: "flex items-center p-4"
792
792
  }, Rl = {
793
793
  class: /* @__PURE__ */ ve(["mr-8", "fm-typo-en-body-md-400"])
794
- }, Ul = {
794
+ }, Ml = {
795
795
  key: 1,
796
796
  class: "px-16 py-4 space-x-8 flex justify-end"
797
- }, Ml = {
797
+ }, Ul = {
798
798
  key: 2
799
799
  }, zl = {
800
800
  class: "flex space-x-8"
@@ -803,11 +803,11 @@ const Ye = /* @__PURE__ */ B({
803
803
  class: "pt-8 flex flex-col flex-1 overflow-hidden"
804
804
  }, Ol = {
805
805
  class: "space-y-8 pb-8"
806
- }, Kl = {
806
+ }, Bl = {
807
807
  class: "w-full px-8"
808
- }, Nl = {
808
+ }, Kl = {
809
809
  class: "flex space-x-8 px-8"
810
- }, Bl = {
810
+ }, Nl = {
811
811
  key: 0,
812
812
  class: "px-8"
813
813
  }, jl = {
@@ -827,11 +827,11 @@ const Ye = /* @__PURE__ */ B({
827
827
  class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
828
828
  }, Yl = {
829
829
  class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
830
- }, Zl = {
831
- key: 1
832
830
  }, Jl = {
831
+ key: 1
832
+ }, Zl = {
833
833
  class: "flex space-x-8"
834
- }, Xl = /* @__PURE__ */ B({
834
+ }, Xl = /* @__PURE__ */ N({
835
835
  __name: "ProductTable",
836
836
  props: {
837
837
  modelValue: {},
@@ -858,24 +858,24 @@ const Ye = /* @__PURE__ */ B({
858
858
  });
859
859
  const oe = (o) => {
860
860
  zt.isBoolean(o) ? S.value = o : S.value = !S.value;
861
- }, Z = F(!1), re = F(null);
861
+ }, J = F(!1), re = F(null);
862
862
  async function G() {
863
- Z.value = !Z.value, Z.value && (await Ae(), re.value && re.value.toggleProperty(!0));
863
+ J.value = !J.value, J.value && (await Ae(), re.value && re.value.toggleProperty(!0));
864
864
  }
865
865
  e({
866
866
  toggleAttributeFilter: G
867
867
  });
868
868
  const {
869
- attributes: K,
869
+ attributes: B,
870
870
  filterRule: D,
871
871
  mongoQuery: H
872
872
  } = xt({
873
873
  valueSource: z,
874
874
  entity: "item"
875
- }), J = F(""), ne = Ct(J, 300), Q = h(() => {
875
+ }), Z = F(""), ne = Ct(Z, 300), Q = h(() => {
876
876
  const o = (c) => {
877
877
  var x;
878
- return !ne.value || !ne.value.trim() ? !0 : [c.code, c.name, Ke(c), ...Pe(se.value, c), (x = Ce()[c.orderFrom]) == null ? void 0 : x.label, Object.values(c.customAttributes ?? {}).join(" ")].join(" ").toLowerCase().includes(ne.value.toLowerCase());
878
+ return !ne.value || !ne.value.trim() ? !0 : [c.code, c.name, Be(c), ...Pe(se.value, c), (x = Ce()[c.orderFrom]) == null ? void 0 : x.label, Object.values(c.customAttributes ?? {}).join(" ")].join(" ").toLowerCase().includes(ne.value.toLowerCase());
879
879
  }, r = (c) => H.value ? $t(c.customAttributes, H.value) : !0;
880
880
  return z.value.filter((c) => o(c) && r(c));
881
881
  }), {
@@ -895,7 +895,7 @@ const Ye = /* @__PURE__ */ B({
895
895
  }, Y("update:model-value", p));
896
896
  }, P = bt(() => n.originalValue, () => n.modelValue), A = ge.debounce($, 300), ue = (o) => (r) => !!r || t("menu.product.table.validation.name_required", {
897
897
  field: o
898
- }), L = (o) => o >= 0 || t("menu.product.table.validation.price_min"), j = [ue("Name")], M = () => [(o) => L(typeof o == "number" ? o : Number(o) ?? 0)], ie = Ce(), E = h(() => {
898
+ }), L = (o) => o >= 0 || t("menu.product.table.validation.price_min"), j = [ue("Name")], U = () => [(o) => L(typeof o == "number" ? o : Number(o) ?? 0)], ie = Ce(), E = h(() => {
899
899
  const o = l.isV4;
900
900
  return gt.setCoreStore(u).taxSetting(o);
901
901
  }), ce = h(() => [{
@@ -908,7 +908,7 @@ const Ye = /* @__PURE__ */ B({
908
908
  },
909
909
  cell: (o) => {
910
910
  var r, c;
911
- return q(Me, {
911
+ return q(Ue, {
912
912
  src: o.getValue(),
913
913
  alt: (c = (r = o == null ? void 0 : o.row) == null ? void 0 : r.original) == null ? void 0 : c.name,
914
914
  className: "my-8 mx-12",
@@ -958,7 +958,7 @@ const Ye = /* @__PURE__ */ B({
958
958
  accessorKey: "price",
959
959
  header: () => {
960
960
  var o;
961
- return Ze(t("menu.product.table.columns.price", {
961
+ return Je(t("menu.product.table.columns.price", {
962
962
  currency: (o = b.value) == null ? void 0 : o.currency.symbol
963
963
  }));
964
964
  },
@@ -982,12 +982,12 @@ const Ye = /* @__PURE__ */ B({
982
982
  "onUpdate:modelValue": (V) => {
983
983
  $(c._id, "price", V);
984
984
  },
985
- rules: M()
985
+ rules: U()
986
986
  });
987
987
  }
988
988
  }, {
989
989
  accessorKey: "taxes",
990
- header: () => Ze(E.value.systemCode),
990
+ header: () => Je(E.value.systemCode),
991
991
  size: S.value ? 120 : 80,
992
992
  enableSorting: !1,
993
993
  meta: {
@@ -1031,8 +1031,8 @@ const Ye = /* @__PURE__ */ B({
1031
1031
  A(r._id, {
1032
1032
  category: _,
1033
1033
  additionalCategories: ae.map((xe) => {
1034
- const Be = x == null ? void 0 : x[xe];
1035
- return Be || {
1034
+ const Ne = x == null ? void 0 : x[xe];
1035
+ return Ne || {
1036
1036
  _id: xe,
1037
1037
  position: null
1038
1038
  };
@@ -1049,7 +1049,7 @@ const Ye = /* @__PURE__ */ B({
1049
1049
  size: 140,
1050
1050
  cell: (o) => {
1051
1051
  const r = o.row.original;
1052
- return q(Ue, {
1052
+ return q(Me, {
1053
1053
  customAttributes: r.customAttributes
1054
1054
  });
1055
1055
  }
@@ -1192,7 +1192,7 @@ const Ye = /* @__PURE__ */ B({
1192
1192
  async function ct(o) {
1193
1193
  await f.update(o.original._id);
1194
1194
  }
1195
- function Ke(o) {
1195
+ function Be(o) {
1196
1196
  var _;
1197
1197
  const r = o.price ?? // TODO: fix type error
1198
1198
  // @ts-ignore
@@ -1215,7 +1215,7 @@ const Ye = /* @__PURE__ */ B({
1215
1215
  return V == null ? void 0 : V[0];
1216
1216
  } else return r ? r.override.items[o][0] : c ? l.schedulers.find((_) => _._id === c).items.filter((_) => _._id === o)[0] : z.value.find((x) => x._id === o);
1217
1217
  }
1218
- const dt = rt(), mt = h(() => dt.breakpoints.value.xs), Ne = F(null), pt = At(Ne, Z), vt = h(() => {
1218
+ const dt = rt(), mt = h(() => dt.breakpoints.value.xs), Ke = F(null), pt = At(Ke, J), vt = h(() => {
1219
1219
  var r;
1220
1220
  return {
1221
1221
  height: `calc(100vh - ${((r = pt.value) == null ? void 0 : r.top) + 24}px)`
@@ -1223,34 +1223,34 @@ const Ye = /* @__PURE__ */ B({
1223
1223
  });
1224
1224
  return (o, r) => {
1225
1225
  const c = O("fm-search"), p = O("fm-button"), x = O("fm-table"), V = O("fm-form");
1226
- return mt.value ? (m(), k("div", Dl, [g("div", Ol, [g("div", Kl, [d(c, {
1227
- "model-value": J.value,
1228
- "onUpdate:modelValue": r[5] || (r[5] = (_) => J.value = _),
1226
+ return mt.value ? (m(), k("div", Dl, [g("div", Ol, [g("div", Bl, [d(c, {
1227
+ "model-value": Z.value,
1228
+ "onUpdate:modelValue": r[5] || (r[5] = (_) => Z.value = _),
1229
1229
  autofocus: "",
1230
1230
  placeholder: a(t)("menu.product.table.search.placeholder")
1231
1231
  }, null, 8, ["model-value", "placeholder"])]), r[8] || (r[8] = g("div", {
1232
1232
  class: "w-full h-[1px] bg-fm-color-neutral-gray-100"
1233
- }, null, -1)), g("div", Nl, [_e(o.$slots, "filter")]), Z.value ? (m(), k("div", Bl, [d(a(We), {
1233
+ }, null, -1)), g("div", Kl, [_e(o.$slots, "filter")]), J.value ? (m(), k("div", Nl, [d(a(We), {
1234
1234
  ref_key: "attributeFilterRef",
1235
1235
  ref: re,
1236
- attributes: a(K),
1236
+ attributes: a(B),
1237
1237
  modelValue: a(D),
1238
1238
  "onUpdate:modelValue": r[6] || (r[6] = (_) => je(D) ? D.value = _ : null)
1239
- }, null, 8, ["attributes", "modelValue"])])) : U("", !0)]), z.value.length ? (m(), k("div", jl, [(m(!0), k(pe, null, we(Q.value, (_) => {
1239
+ }, null, 8, ["attributes", "modelValue"])])) : M("", !0)]), z.value.length ? (m(), k("div", jl, [(m(!0), k(pe, null, we(Q.value, (_) => {
1240
1240
  var ae;
1241
1241
  return m(), k("div", {
1242
1242
  key: _._id,
1243
1243
  class: "max-w-full py-12 px-16 space-x-16 flex items-center",
1244
1244
  onClick: () => it(_)
1245
- }, [g("div", Gl, [d(Me, {
1245
+ }, [g("div", Gl, [d(Ue, {
1246
1246
  alt: _.name,
1247
1247
  size: 72,
1248
1248
  src: _.thumbnail
1249
- }, null, 8, ["alt", "src"]), g("div", Ll, [g("div", ql, [g("p", Wl, N(_.name), 1), d(Ve, {
1249
+ }, null, 8, ["alt", "src"]), g("div", Ll, [g("div", ql, [g("p", Wl, K(_.name), 1), d(Ve, {
1250
1250
  "order-from": _.orderFrom
1251
- }, null, 8, ["order-from"])]), g("p", Hl, N(Ke(_)), 1), g("p", Ql, N(a(t)("menu.product.table.columns.code")) + ": " + N(((ae = Te(_._id)) == null ? void 0 : ae.code) || "--"), 1), g("p", Yl, [d(Qe, {
1251
+ }, null, 8, ["order-from"])]), g("p", Hl, K(Be(_)), 1), g("p", Ql, K(a(t)("menu.product.table.columns.code")) + ": " + K(((ae = Te(_._id)) == null ? void 0 : ae.code) || "--"), 1), g("p", Yl, [d(Qe, {
1252
1252
  categories: a(Pe)(a(se), _)
1253
- }, null, 8, ["categories"])]), d(Ue, {
1253
+ }, null, 8, ["categories"])]), d(Me, {
1254
1254
  "custom-attributes": _.customAttributes
1255
1255
  }, null, 8, ["custom-attributes"])])]), d(p, {
1256
1256
  "text-color": a(W).NeutralGray400,
@@ -1262,11 +1262,11 @@ const Ye = /* @__PURE__ */ B({
1262
1262
  thumbnail: _.thumbnail
1263
1263
  }]), ["stop"])
1264
1264
  }, null, 8, ["text-color", "variant", "onClick"])], 8, El);
1265
- }), 128))])) : (m(), k("div", Zl, [d(be, {
1265
+ }), 128))])) : (m(), k("div", Jl, [d(be, {
1266
1266
  subtitle: a(t)("menu.product.table.empty.subtitle"),
1267
1267
  title: a(t)("menu.product.table.empty.title")
1268
1268
  }, {
1269
- action: T(() => [g("div", Jl, [d(p, {
1269
+ action: T(() => [g("div", Zl, [d(p, {
1270
1270
  variant: a(ee).Primary,
1271
1271
  label: a(t)("menu.product.table.empty.actions.add"),
1272
1272
  "prepend-icon": "add",
@@ -1292,17 +1292,17 @@ const Ye = /* @__PURE__ */ B({
1292
1292
  onValidationSuccess: Oe
1293
1293
  }, {
1294
1294
  default: T(() => [g("div", Fl, [g("div", Il, [_e(o.$slots, "filter")]), g("div", $l, [d(c, {
1295
- "model-value": J.value,
1296
- "onUpdate:modelValue": r[0] || (r[0] = (_) => J.value = _),
1295
+ "model-value": Z.value,
1296
+ "onUpdate:modelValue": r[0] || (r[0] = (_) => Z.value = _),
1297
1297
  autofocus: "",
1298
1298
  placeholder: a(t)("menu.product.table.search.placeholder")
1299
- }, null, 8, ["model-value", "placeholder"])])]), Z.value ? (m(), k("div", Tl, [d(a(We), {
1299
+ }, null, 8, ["model-value", "placeholder"])])]), J.value ? (m(), k("div", Tl, [d(a(We), {
1300
1300
  ref_key: "attributeFilterRef",
1301
1301
  ref: re,
1302
- attributes: a(K),
1302
+ attributes: a(B),
1303
1303
  modelValue: a(D),
1304
1304
  "onUpdate:modelValue": r[1] || (r[1] = (_) => je(D) ? D.value = _ : null)
1305
- }, null, 8, ["attributes", "modelValue"])])) : U("", !0), z.value.length ? (m(), k("div", Pl, [X.value.length && !S.value ? (m(), k("div", Al, [g("p", Rl, N(a(t)("menu.product.table.selection.count", {
1305
+ }, null, 8, ["attributes", "modelValue"])])) : M("", !0), z.value.length ? (m(), k("div", Pl, [X.value.length && !S.value ? (m(), k("div", Al, [g("p", Rl, K(a(t)("menu.product.table.selection.count", {
1306
1306
  count: X.value.length
1307
1307
  })), 1), d(p, {
1308
1308
  label: a(t)("menu.product.table.selection.actions.deselect_all"),
@@ -1317,7 +1317,7 @@ const Ye = /* @__PURE__ */ B({
1317
1317
  "prepend-icon": "delete",
1318
1318
  variant: "secondary",
1319
1319
  onClick: st
1320
- }, null, 8, ["border-color", "text-color", "label"])])) : U("", !0), S.value ? (m(), k("div", Ul, [d(p, {
1320
+ }, null, 8, ["border-color", "text-color", "label"])])) : M("", !0), S.value ? (m(), k("div", Ml, [d(p, {
1321
1321
  variant: a(ee).Tertiary,
1322
1322
  label: a(t)("menu.product.table.bulk_edit.actions.reset_all"),
1323
1323
  onClick: he
@@ -1331,9 +1331,9 @@ const Ye = /* @__PURE__ */ B({
1331
1331
  variant: a(ee).Secondary,
1332
1332
  label: a(t)("menu.product.table.bulk_edit.actions.save"),
1333
1333
  type: "submit"
1334
- }, null, 8, ["borderColor", "textColor", "variant", "label"])])) : U("", !0), g("div", {
1334
+ }, null, 8, ["borderColor", "textColor", "variant", "label"])])) : M("", !0), g("div", {
1335
1335
  ref_key: "tableWrapper",
1336
- ref: Ne
1336
+ ref: Ke
1337
1337
  }, [(m(), I(lt(S.value ? Pt : "div"), {
1338
1338
  ref: "fullWrapper",
1339
1339
  title: S.value ? a(t)("menu.product.table.bulk_edit.title") : "",
@@ -1374,7 +1374,7 @@ const Ye = /* @__PURE__ */ B({
1374
1374
  onRowClick: r[3] || (r[3] = (_) => S.value ? void 0 : ct(_))
1375
1375
  }, null, 8, ["class", "modelValue", "column-defs", "column-visibility", "loading", "page-size", "row-data", "selection", "virtual-row-height"])]),
1376
1376
  _: 1
1377
- }, 40, ["title", "show", "primary-action", "secondary-actions", "style"]))], 512)])) : (m(), k("div", Ml, [d(be, {
1377
+ }, 40, ["title", "show", "primary-action", "secondary-actions", "style"]))], 512)])) : (m(), k("div", Ul, [d(be, {
1378
1378
  subtitle: a(t)("menu.product.table.empty.subtitle"),
1379
1379
  title: a(t)("menu.product.table.empty.title")
1380
1380
  }, {
@@ -1410,7 +1410,7 @@ const Ye = /* @__PURE__ */ B({
1410
1410
  }, la = { class: "flex flex-col flex-1 overflow-hidden" }, aa = {
1411
1411
  key: 1,
1412
1412
  class: "pt-16 xs:pt-8 space-y-24"
1413
- }, oa = { class: "flex items-center gap-8 px-16" }, Sa = /* @__PURE__ */ B({
1413
+ }, oa = { class: "flex items-center gap-8 px-16" }, Sa = /* @__PURE__ */ N({
1414
1414
  __name: "Product",
1415
1415
  setup(C) {
1416
1416
  const e = Fe(), i = h(() => e.rules.item), n = ot(), t = h(() => !e.state.currentCatalogId), u = h(() => e.rules.item), l = h(() => !e.state.currentSchedulerId), v = F(!1), f = F(!1), s = h(() => {
@@ -1418,9 +1418,9 @@ const Ye = /* @__PURE__ */ B({
1418
1418
  if (t.value && l.value) return;
1419
1419
  if (l.value) {
1420
1420
  const L = ($ = e.currentCatalog) == null ? void 0 : $.override.items;
1421
- return L ? Object.entries(L).reduce((j, [M, ie]) => {
1421
+ return L ? Object.entries(L).reduce((j, [U, ie]) => {
1422
1422
  const E = ie.find((ce) => !ce.combinationKey);
1423
- return E && (j[M] = E), j;
1423
+ return E && (j[U] = E), j;
1424
1424
  }, {}) : {};
1425
1425
  }
1426
1426
  return ((t.value ? (P = e.currentScheduler) == null ? void 0 : P.items : (ue = (A = e.currentCatalog) == null ? void 0 : A.override.scheduler[e.state.currentSchedulerId]) == null ? void 0 : ue.items) ?? []).reduce((L, j) => (j.combinationKey || (L[j._id] = j), L), {});
@@ -1434,24 +1434,24 @@ const Ye = /* @__PURE__ */ B({
1434
1434
  (ue = e.currentCatalog) == null ? void 0 : ue._id,
1435
1435
  (L = e.currentScheduler) == null ? void 0 : L._id,
1436
1436
  !1
1437
- ) : void 0, A = $.reduce((j, M, ie) => {
1437
+ ) : void 0, A = $.reduce((j, U, ie) => {
1438
1438
  var ce, le, X, ye;
1439
- const E = (ce = s.value) == null ? void 0 : ce[M._id];
1440
- return j[M._id] = {
1441
- _id: M._id,
1442
- name: M.name,
1443
- code: R ? E == null ? void 0 : E.code : M == null ? void 0 : M.code,
1444
- category: M.category,
1445
- additionalCategories: M.additionalCategories,
1446
- price: R && u.value.editPrice ? E == null ? void 0 : E.price : M.price,
1447
- orderFrom: R ? E == null ? void 0 : E.orderFrom : M.orderFrom,
1448
- taxes: R ? null : M.taxes,
1449
- thumbnail: M.thumbnail,
1439
+ const E = (ce = s.value) == null ? void 0 : ce[U._id];
1440
+ return j[U._id] = {
1441
+ _id: U._id,
1442
+ name: U.name,
1443
+ code: R ? E == null ? void 0 : E.code : U == null ? void 0 : U.code,
1444
+ category: U.category,
1445
+ additionalCategories: U.additionalCategories,
1446
+ price: R && u.value.editPrice ? E == null ? void 0 : E.price : U.price,
1447
+ orderFrom: R ? E == null ? void 0 : E.orderFrom : U.orderFrom,
1448
+ taxes: R ? null : U.taxes,
1449
+ thumbnail: U.thumbnail,
1450
1450
  fallbackPrice: (le = P == null ? void 0 : P[ie]) == null ? void 0 : le.price,
1451
- fallbackName: R ? M.name : void 0,
1451
+ fallbackName: R ? U.name : void 0,
1452
1452
  fallbackCode: (X = P == null ? void 0 : P[ie]) == null ? void 0 : X.code,
1453
1453
  fallbackOrder: (ye = P == null ? void 0 : P[ie]) == null ? void 0 : ye.orderFrom,
1454
- fallbackTaxes: R ? M.taxes : null
1454
+ fallbackTaxes: R ? U.taxes : null
1455
1455
  }, j;
1456
1456
  }, {});
1457
1457
  b.value = A, y.value = { ...A }, f.value = !1;
@@ -1462,18 +1462,18 @@ const Ye = /* @__PURE__ */ B({
1462
1462
  tt(async () => {
1463
1463
  Y.value && await w();
1464
1464
  });
1465
- function Z() {
1465
+ function J() {
1466
1466
  n.create(null);
1467
1467
  }
1468
1468
  const re = () => {
1469
1469
  Y.value && w();
1470
- }, { t: G } = Ie(), K = h(() => {
1470
+ }, { t: G } = Ie(), B = h(() => {
1471
1471
  var R, $;
1472
1472
  return ($ = (R = e.currentCatalog) == null ? void 0 : R.linkItemRules) == null ? void 0 : $.length;
1473
1473
  }), {
1474
1474
  menuItems: D,
1475
1475
  categories: H,
1476
- linkItemRules: J,
1476
+ linkItemRules: Z,
1477
1477
  handleSubmit: ne,
1478
1478
  catalogManager: Q,
1479
1479
  schedulerManager: se
@@ -1496,32 +1496,32 @@ const Ye = /* @__PURE__ */ B({
1496
1496
  }, {
1497
1497
  filter: T(() => [
1498
1498
  d(He, { onToggleAttributeFilter: oe }),
1499
- u.value.multiScheduler ? (m(), I(qe, { key: 0 })) : U("", !0),
1500
- K.value ? (m(), I(Le, {
1499
+ u.value.multiScheduler ? (m(), I(qe, { key: 0 })) : M("", !0),
1500
+ B.value ? (m(), I(Le, {
1501
1501
  key: 1,
1502
1502
  "current-restaurant-attr-params": a(e).state.currentRestaurantAttrParams,
1503
1503
  onConfirm: $[0] || ($[0] = (A) => a(e).setRestaurantAttrParams(A))
1504
- }, null, 8, ["current-restaurant-attr-params"])) : U("", !0)
1504
+ }, null, 8, ["current-restaurant-attr-params"])) : M("", !0)
1505
1505
  ]),
1506
1506
  _: 1
1507
- }, 8, ["is-calculating", "model-value", "original-value"])) : U("", !0)
1507
+ }, 8, ["is-calculating", "model-value", "original-value"])) : M("", !0)
1508
1508
  ])
1509
1509
  ])
1510
1510
  ])) : (m(), k("div", aa, [
1511
1511
  g("div", oa, [
1512
1512
  d(He),
1513
- u.value.multiScheduler ? (m(), I(qe, { key: 0 })) : U("", !0),
1514
- K.value ? (m(), I(Le, {
1513
+ u.value.multiScheduler ? (m(), I(qe, { key: 0 })) : M("", !0),
1514
+ B.value ? (m(), I(Le, {
1515
1515
  key: 1,
1516
1516
  "current-restaurant-attr-params": a(e).state.currentRestaurantAttrParams,
1517
1517
  onConfirm: $[3] || ($[3] = (A) => a(e).setRestaurantAttrParams(A))
1518
- }, null, 8, ["current-restaurant-attr-params"])) : U("", !0)
1518
+ }, null, 8, ["current-restaurant-attr-params"])) : M("", !0)
1519
1519
  ]),
1520
1520
  i.value.create ? (m(), I(be, {
1521
1521
  key: 0,
1522
1522
  action: {
1523
1523
  text: a(G)("menu.product.empty.with_create.action"),
1524
- callback: Z
1524
+ callback: J
1525
1525
  },
1526
1526
  subtitle: a(G)("menu.product.empty.with_create.subtitle"),
1527
1527
  title: a(G)("menu.product.empty.with_create.title")
@@ -1537,7 +1537,7 @@ const Ye = /* @__PURE__ */ B({
1537
1537
  "show-variant": !1,
1538
1538
  "menu-items": a(D),
1539
1539
  categories: a(H),
1540
- "link-item-rules": a(J),
1540
+ "link-item-rules": a(Z),
1541
1541
  "no-scheduler": l.value,
1542
1542
  "is-local-only": !0,
1543
1543
  onSubmit: a(ne)
@@ -1565,7 +1565,7 @@ const Ye = /* @__PURE__ */ B({
1565
1565
  "show-variant": !1,
1566
1566
  "menu-items": a(D),
1567
1567
  categories: a(H),
1568
- "link-item-rules": a(J),
1568
+ "link-item-rules": a(Z),
1569
1569
  "no-scheduler": l.value,
1570
1570
  "is-local-only": !0,
1571
1571
  onSubmit: a(ne)