@feedmepos/mf-menu 0.32.13 → 0.32.15

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 (73) hide show
  1. package/dist/{App-D70-FH5L.js → App-BFUyUrdi.js} +16 -9
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-BJdja2N0.js → ApplyProduct.vue_vue_type_script_setup_true_lang-BbjRIN7Z.js} +20 -20
  3. package/dist/{Catalog-WMpN3a0p.js → Catalog-B6VFmr6e.js} +20 -20
  4. package/dist/{Category-C_VsQIHU.js → Category-B-bTjNFI.js} +24 -24
  5. package/dist/{Category-BwHhFTZ-.js → Category-C8uGxpST.js} +84 -84
  6. package/dist/{CookingGuide-D9RNkYDL.js → CookingGuide-BL3uetlO.js} +65 -65
  7. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-DtmrxDZm.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-8yIVwc8E.js} +1 -1
  8. package/dist/{Group-DexONgr2.js → Group-BvO-gQZe.js} +1 -1
  9. package/dist/{Group-qRZlg5ST.js → Group-DT9UkkOx.js} +3 -3
  10. package/dist/{Group.vue_vue_type_script_setup_true_lang-DtPY9uUt.js → Group.vue_vue_type_script_setup_true_lang-DZhM1Tpb.js} +56 -56
  11. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-B5Qpmj2f.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-D48u_DHq.js} +5 -5
  12. package/dist/ImportProductDialog.vue_vue_type_script_setup_true_lang-C_X-lTnN.js +72979 -0
  13. package/dist/{Ingredient-BuOS_Wvm.js → Ingredient-7qWDD9e6.js} +26 -26
  14. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-DFvXklj9.js → InventoryBinding.vue_vue_type_script_setup_true_lang-CwjW0wfz.js} +2 -2
  15. package/dist/{LinkProductSideSheet-DJj8Nn4X.js → LinkProductSideSheet-BXW6eNgZ.js} +3 -3
  16. package/dist/{MenuSetting-D6B0gCGV.js → MenuSetting-BSF7O2NL.js} +5 -5
  17. package/dist/{PrintRoute-B7G8f1iC.js → PrintRoute-b1ii5Uz9.js} +20 -20
  18. package/dist/{Product-DpS5EepJ.js → Product-Ce0GJb3c.js} +1 -1
  19. package/dist/{Product.vue_vue_type_script_setup_true_lang-CdIukLqA.js → Product.vue_vue_type_script_setup_true_lang-BZVvTAOX.js} +49 -49
  20. package/dist/{ProductInternalTools-CBCyWHOS.js → ProductInternalTools-igbOLRap.js} +20 -20
  21. package/dist/Products-GAyUdhnN.js +292 -0
  22. package/dist/Publish-g60odzhM.js +1300 -0
  23. package/dist/{Recipe-D14rkATU.js → Recipe-B6aye_iC.js} +9 -9
  24. package/dist/{RuleView.vue_vue_type_script_setup_true_lang-CdH2ius3.js → RuleView.vue_vue_type_script_setup_true_lang-By8kwuMB.js} +134 -134
  25. package/dist/{Scheduler-DWZqa-jf.js → Scheduler-CyaG6Y5v.js} +7 -7
  26. package/dist/{ServingSequence-Mx7ovvJ1.js → ServingSequence-BXeypgrN.js} +27 -27
  27. package/dist/{Setting-DmHuVXVn.js → Setting-D7GcaNTk.js} +17 -17
  28. package/dist/{Subcategory-DixZPdnT.js → Subcategory-DNUp9ojI.js} +37 -37
  29. package/dist/{Takeaway-BVIymFV_.js → Takeaway-Baqvq5nP.js} +9 -9
  30. package/dist/{Takeaway-DDKeDEbV.js → Takeaway-BjXPeYRv.js} +1 -1
  31. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-CTaCQgRv.js → Takeaway.vue_vue_type_script_setup_true_lang-CgXT2UVL.js} +54 -54
  32. package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-DveI9xvU.js → Thumbnail.vue_vue_type_script_setup_true_lang-CX8cSbDe.js} +12 -12
  33. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-2nBbq_Yk.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DcjGVQEO.js} +756 -763
  34. package/dist/{Unit-utuaNZBw.js → Unit-mI7lLzCf.js} +2 -2
  35. package/dist/{Variant-CzuJNwen.js → Variant-CVwnODRz.js} +14 -14
  36. package/dist/{_id_-DMDhPQCr.js → _id_-fpn0nBru.js} +14 -14
  37. package/dist/{app-BQUkvrAS.js → app-CCKI85Te.js} +26 -26
  38. package/dist/{app-Bqj3cAPJ.js → app-U5MEN4U1.js} +1 -1
  39. package/dist/app.js +1 -1
  40. package/dist/apps/mf-menu/src/Entry.vue.d.ts +1 -0
  41. package/dist/apps/mf-menu/src/components/feature/Fields/ImageDropField.vue.d.ts +0 -2
  42. package/dist/apps/mf-menu/src/composable/useClientEvent.d.ts +14 -0
  43. package/dist/apps/mf-menu/src/helper/import-export-utils.d.ts +22 -22
  44. package/dist/apps/mf-menu/src/helper/menuExport.d.ts +59 -33
  45. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  46. package/dist/assets/{linked-status-ILQVL8r9.js → linked-status-6Jt70XBp.js} +2 -2
  47. package/dist/assets/menu-export-CR0a98CA.js +107 -0
  48. package/dist/assets/{override-menu-DVkGhbA9.js → override-menu-Chsc0CSI.js} +2 -2
  49. package/dist/assets/{validate-menu-y_NQUL02.js → validate-menu-pb0aN4gj.js} +2 -2
  50. package/dist/{catalog-BYzITAmC.js → catalog-BgQmytEA.js} +1 -1
  51. package/dist/{catalogSetting-DAo5tN3P.js → catalogSetting-BS5IaQKq.js} +1 -1
  52. package/dist/{category-D4x8r_lY.js → category-DJMVbmzx.js} +1 -1
  53. package/dist/{currency-CvoBdMM2.js → currency-FHrLDvzy.js} +1 -1
  54. package/dist/dayjs.min-DJGdQr-B.js +6 -0
  55. package/dist/{index-LuH6PJzW.js → index-BywPDIFW.js} +4 -4
  56. package/dist/{index-BLUIaanj.js → index-DYxLHjeC.js} +1 -1
  57. package/dist/{index-6lju0f3r.js → index-XVWDnyu-.js} +17 -17
  58. package/dist/{index.vue_vue_type_script_setup_true_lang-DxF14kn9.js → index.vue_vue_type_script_setup_true_lang-kj6HkxwD.js} +2306 -2306
  59. package/dist/{item-lXMLaKOb.js → item-cmnP2N-a.js} +1089 -1091
  60. package/dist/{jszip.min-CdZ-wY5m.js → jszip.min-psVCZNVl.js} +545 -545
  61. package/dist/{menu-PJc2dQHQ.js → menu-CgQPOu3W.js} +1 -1
  62. package/dist/{menuV2-DinFmdTL.js → menuV2-DHO9OmzU.js} +159 -159
  63. package/dist/mf-menu.css +1 -1
  64. package/dist/{priceTier-CzKIo11g.js → priceTier-CLm9vzaK.js} +1 -1
  65. package/dist/{scheduler-DQjxnoCk.js → scheduler-BMdZdtpj.js} +4 -4
  66. package/dist/{subcategory-CLkDImEU.js → subcategory-Dj_DOvFt.js} +2 -2
  67. package/dist/{toExcel-DPh8DaM0.js → toExcel-XwFFiTiA.js} +2 -2
  68. package/dist/{unit-QYkVoC6_.js → unit-CsuAQsy7.js} +12 -12
  69. package/package.json +3 -3
  70. package/dist/ImportProductDialog.vue_vue_type_script_setup_true_lang-BqhNkaw_.js +0 -96043
  71. package/dist/Products-CcyGNlUl.js +0 -794
  72. package/dist/Publish-rZLHFaJ5.js +0 -1264
  73. package/dist/dayjs.min-C6xioui7.js +0 -6
@@ -1,21 +1,21 @@
1
- import { getCurrentInstance as te, defineComponent as ne, computed as h, watch as oe, h as R, resolveComponent as S, createElementBlock as C, openBlock as _, Fragment as P, normalizeClass as D, createElementVNode as k, createVNode as V, unref as t, isRef as j, withCtx as O, renderList as ie, createBlock as G, createCommentVNode as $, toDisplayString as I, withModifiers as q } from "vue";
2
- import { G as J, u as Q, P as W, K as N, A as z, I as L, B as se, an as H, a3 as re } from "./index.vue_vue_type_script_setup_true_lang-DxF14kn9.js";
1
+ import { getCurrentInstance as te, defineComponent as oe, computed as h, watch as ne, h as R, resolveComponent as S, createElementBlock as C, openBlock as _, Fragment as O, normalizeClass as D, createElementVNode as k, createVNode as V, unref as t, isRef as j, withCtx as P, renderList as ie, createBlock as G, createCommentVNode as $, toDisplayString as I, withModifiers as Q } from "vue";
2
+ import { G as H, u as J, Q as W, M as N, A as z, I as L, B as se, ao as q, a4 as re } from "./index.vue_vue_type_script_setup_true_lang-kj6HkxwD.js";
3
3
  import { useI18n as X, useCoreStore as le } from "@feedmepos/mf-common";
4
4
  import { useDialog as ce, useSnackbar as Z, FmButtonVariant as A, components as de, useBreakpoints as ue } from "@feedmepos/ui-library";
5
- import { _ as me } from "./app-BQUkvrAS.js";
6
- import { a as ye, l as ee, T as pe } from "./index-LuH6PJzW.js";
5
+ import { _ as me } from "./app-CCKI85Te.js";
6
+ import { a as ye, l as ee, T as pe } from "./index-BywPDIFW.js";
7
7
  import { u as fe } from "./search-BAPEUu1R.js";
8
- import { f as F } from "./currency-CvoBdMM2.js";
8
+ import { f as F } from "./currency-FHrLDvzy.js";
9
9
  import { defineStore as _e } from "pinia";
10
- import { C as ke } from "./catalog-BYzITAmC.js";
10
+ import { C as ke } from "./catalog-BgQmytEA.js";
11
11
  import { c as ve } from "./createComponentProgrammatically-Bt2rn1IQ.js";
12
- function we(T, U, l, m) {
12
+ function we(T, M, l, m) {
13
13
  var y, v, w, g;
14
14
  const i = L(T);
15
15
  i.override.takeaway[l._id] = {
16
16
  price: l.price || void 0
17
17
  };
18
- const f = [...l.usedBy, ...U.usedBy];
18
+ const f = [...l.usedBy, ...M.usedBy];
19
19
  for (const r of f) {
20
20
  const c = l.usedBy.some(
21
21
  (e) => e._id == r._id && e.combinationKey == r.combinationKey
@@ -45,7 +45,7 @@ function we(T, U, l, m) {
45
45
  return i;
46
46
  }
47
47
  const ge = _e("takeaway-manager", () => {
48
- const T = ce(), U = Z(), l = J(U), m = W(l), i = Q(), f = te(), { t: y } = X(), v = (a) => {
48
+ const T = ce(), M = Z(), l = H(M), m = W(l), i = J(), f = te(), { t: y } = X(), v = (a) => {
49
49
  var e, u;
50
50
  const { vNode: d } = ve(
51
51
  ye,
@@ -55,8 +55,8 @@ const ge = _e("takeaway-manager", () => {
55
55
  (u = (e = d.component) == null ? void 0 : e.exposed) == null || u.trigger();
56
56
  };
57
57
  async function w(a) {
58
- var u, M;
59
- const e = ((M = (u = i.currentCatalog) == null ? void 0 : u.override.takeaway[a._id]) == null ? void 0 : M.price) ? null : i.state.menu.modules.takeaway.find((b) => b._id === a._id);
58
+ var u, U;
59
+ const e = ((U = (u = i.currentCatalog) == null ? void 0 : u.override.takeaway[a._id]) == null ? void 0 : U.price) ? null : i.state.menu.modules.takeaway.find((b) => b._id === a._id);
60
60
  v({
61
61
  initialValue: a,
62
62
  applyProduct: !0,
@@ -64,8 +64,8 @@ const ge = _e("takeaway-manager", () => {
64
64
  fallback: e,
65
65
  action: "update",
66
66
  "onUpdate:takeaway": async (b) => {
67
- let n = L(i.currentCatalog);
68
- b.price ? n.override.takeaway[a._id] = { price: b.price } : delete n.override.takeaway[a._id], n = we(n, a, b, i.state.menu.modules.item), await new ke(n, i, m.updateMenu, T).update();
67
+ let o = L(i.currentCatalog);
68
+ b.price ? o.override.takeaway[a._id] = { price: b.price } : delete o.override.takeaway[a._id], o = we(o, a, b, i.state.menu.modules.item), await new ke(o, i, m.updateMenu, T).update();
69
69
  }
70
70
  });
71
71
  }
@@ -131,9 +131,9 @@ const ge = _e("takeaway-manager", () => {
131
131
  class: "px-16 pt-8"
132
132
  }, Ve = {
133
133
  class: /* @__PURE__ */ D(["flex-1", "overflow-scroll", "divide-y divide-fm-color-neutral-gray-100"])
134
- }, Te = ["onClick"], Ue = {
134
+ }, Te = ["onClick"], Me = {
135
135
  class: "flex-1"
136
- }, Me = {
136
+ }, Ue = {
137
137
  class: "fm-typo-en-body-lg-600 mb-4"
138
138
  }, Ee = {
139
139
  class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
@@ -142,23 +142,23 @@ const ge = _e("takeaway-manager", () => {
142
142
  }, Ie = {
143
143
  key: 1,
144
144
  class: "xs:pt-24"
145
- }, Re = /* @__PURE__ */ ne({
145
+ }, Re = /* @__PURE__ */ oe({
146
146
  __name: "Takeaway",
147
147
  emits: ["update:count"],
148
148
  setup(T, {
149
- emit: U
149
+ emit: M
150
150
  }) {
151
- const l = Q(), m = ge(), i = h(() => l.rules.item.bindToVariant), f = h(() => l.rules.takeaway), y = W(J(Z())), v = le(), w = h(() => se.Country.getCountry(v.currentCountry.value).currency), g = h(() => l.takeaways.map((n) => ({
152
- ...n,
151
+ const l = J(), m = ge(), i = h(() => l.rules.item.bindToVariant), f = h(() => l.rules.takeaway), y = W(H(Z())), v = le(), w = h(() => se.Country.getCountry(v.currentCountry.value).currency), g = h(() => l.takeaways.map((o) => ({
152
+ ...o,
153
153
  usedBy: l.items.reduce((s, p) => {
154
- var o, E, Y;
155
- const x = p.takeawayUsed === n._id;
156
- if ((!i.value || !((E = (o = p.variant) == null ? void 0 : o.variantGroupIds) != null && E.length)) && x)
154
+ var n, E, Y;
155
+ const x = p.takeawayUsed === o._id;
156
+ if ((!i.value || !((E = (n = p.variant) == null ? void 0 : n.variantGroupIds) != null && E.length)) && x)
157
157
  s.push({
158
158
  _id: p._id
159
159
  });
160
160
  else {
161
- const ae = (((Y = p.variant) == null ? void 0 : Y.variantCombinations) || []).filter((K) => K.takeawayUsed === n._id || !K.takeawayUsed && x).map((K) => ({
161
+ const ae = (((Y = p.variant) == null ? void 0 : Y.variantCombinations) || []).filter((K) => K.takeawayUsed === o._id || !K.takeawayUsed && x).map((K) => ({
162
162
  _id: p._id,
163
163
  combinationKey: K.combinationKey
164
164
  }));
@@ -169,9 +169,9 @@ const ge = _e("takeaway-manager", () => {
169
169
  }))), {
170
170
  filter: r,
171
171
  searchKey: c
172
- } = fe(), a = h(() => g.value.filter((n) => r([n.name, F(n.price, !1)]))), d = U;
173
- oe(() => a.value.length, (n) => {
174
- d("update:count", n);
172
+ } = fe(), a = h(() => g.value.filter((o) => r([o.name, F(o.price, !1)]))), d = M;
173
+ ne(() => a.value.length, (o) => {
174
+ d("update:count", o);
175
175
  }, {
176
176
  immediate: !0
177
177
  });
@@ -192,8 +192,8 @@ const ge = _e("takeaway-manager", () => {
192
192
  meta: {
193
193
  textAlign: "right"
194
194
  },
195
- cell: (n) => {
196
- const s = n.getValue();
195
+ cell: (o) => {
196
+ const s = o.getValue();
197
197
  return F(s, !1);
198
198
  }
199
199
  }, {
@@ -201,8 +201,8 @@ const ge = _e("takeaway-manager", () => {
201
201
  header: () => e("menu.takeaway.table.columns.products"),
202
202
  enableSorting: !1,
203
203
  size: 200,
204
- cell: (n) => {
205
- const s = n.getValue(), p = H(l.categorizedItems, s).flatMap((x) => x.items).length ?? 0;
204
+ cell: (o) => {
205
+ const s = o.getValue(), p = q(l.categorizedItems, s).flatMap((x) => x.items).length ?? 0;
206
206
  return e("menu.takeaway.table.items_linked", {
207
207
  count: p
208
208
  });
@@ -214,48 +214,48 @@ const ge = _e("takeaway-manager", () => {
214
214
  cellClass: "pl-16",
215
215
  headerContentClass: "-mx-16"
216
216
  },
217
- cell: (n) => R("div", {
217
+ cell: (o) => R("div", {
218
218
  class: "flex justify-end items-center"
219
219
  }, [f.value.delete ? R(de.FmButton, {
220
220
  prependIcon: "delete",
221
221
  variant: A.Tertiary,
222
222
  textColor: "neutral-gray-400",
223
223
  onClick: (s) => {
224
- s.stopPropagation(), m.deleteTakeaway(n.row.original);
224
+ s.stopPropagation(), m.deleteTakeaway(o.row.original);
225
225
  }
226
226
  }) : null])
227
- }]), M = ue(), b = h(() => M.breakpoints.value.xs);
228
- return (n, s) => {
227
+ }]), U = ue(), b = h(() => U.breakpoints.value.xs);
228
+ return (o, s) => {
229
229
  const p = S("fm-search"), x = S("fm-table"), B = S("fm-button");
230
- return g.value.length ? (_(), C(P, {
230
+ return g.value.length ? (_(), C(O, {
231
231
  key: 0
232
- }, [b.value ? (_(), C(P, {
232
+ }, [b.value ? (_(), C(O, {
233
233
  key: 1
234
234
  }, [k("div", Ce, [V(p, {
235
235
  class: "w-full",
236
236
  autofocus: "",
237
237
  modelValue: t(c),
238
- "onUpdate:modelValue": s[2] || (s[2] = (o) => j(c) ? c.value = o : null),
238
+ "onUpdate:modelValue": s[2] || (s[2] = (n) => j(c) ? c.value = n : null),
239
239
  placeholder: t(e)("menu.takeaway.table.search.placeholder")
240
- }, null, 8, ["modelValue", "placeholder"])]), k("div", Ve, [(_(!0), C(P, null, ie(a.value, (o) => (_(), C("div", {
241
- key: o._id,
240
+ }, null, 8, ["modelValue", "placeholder"])]), k("div", Ve, [(_(!0), C(O, null, ie(a.value, (n) => (_(), C("div", {
241
+ key: n._id,
242
242
  class: D(["py-12 px-16", "flex space-x-8", "items-center"]),
243
243
  onClick: () => {
244
- f.value.edit && t(m).updateTakeaway(o);
244
+ f.value.edit && t(m).updateTakeaway(n);
245
245
  }
246
- }, [k("div", Ue, [k("p", Me, I(o.name), 1), k("p", Ee, I(`${t(H)(t(l).categorizedItems, o.usedBy).flatMap((E) => E.items).length ?? 0} items linked`), 1), k("p", Ke, " Price: " + I(w.value.symbol) + I(t(F)(o.price, !1)), 1)]), f.value.delete ? (_(), G(B, {
246
+ }, [k("div", Me, [k("p", Ue, I(n.name), 1), k("p", Ee, I(`${t(q)(t(l).categorizedItems, n.usedBy).flatMap((E) => E.items).length ?? 0} items linked`), 1), k("p", Ke, " Price: " + I(w.value.symbol) + I(t(F)(n.price, !1)), 1)]), f.value.delete ? (_(), G(B, {
247
247
  key: 0,
248
248
  variant: t(A).Tertiary,
249
249
  "text-color": "neutral-gray-400",
250
250
  "prepend-icon": "delete",
251
- onClick: q(() => t(m).deleteTakeaway(o), ["stop"])
251
+ onClick: Q(() => t(m).deleteTakeaway(n), ["stop"])
252
252
  }, null, 8, ["variant", "onClick"])) : $("", !0)], 8, Te))), 128))])], 64)) : (_(), C("div", be, [k("div", he, [k("div", xe, [V(p, {
253
253
  autofocus: "",
254
254
  modelValue: t(c),
255
- "onUpdate:modelValue": s[0] || (s[0] = (o) => j(c) ? c.value = o : null),
255
+ "onUpdate:modelValue": s[0] || (s[0] = (n) => j(c) ? c.value = n : null),
256
256
  placeholder: t(e)("menu.takeaway.table.search.placeholder")
257
257
  }, null, 8, ["modelValue", "placeholder"])])]), V(me, null, {
258
- default: O(() => [V(x, {
258
+ default: P(() => [V(x, {
259
259
  "column-defs": u.value,
260
260
  loading: t(y).checkMenuIsLoading(),
261
261
  "page-size": a.value.length,
@@ -265,8 +265,8 @@ const ge = _e("takeaway-manager", () => {
265
265
  class: "flex-1 overflow-hidden",
266
266
  "hide-footer": "",
267
267
  "pin-header-row": "",
268
- onRowClick: s[1] || (s[1] = (o) => {
269
- f.value.edit && t(m).updateTakeaway(o.original);
268
+ onRowClick: s[1] || (s[1] = (n) => {
269
+ f.value.edit && t(m).updateTakeaway(n.original);
270
270
  })
271
271
  }, null, 8, ["column-defs", "loading", "page-size", "row-data", "search-value"])]),
272
272
  _: 1
@@ -274,24 +274,24 @@ const ge = _e("takeaway-manager", () => {
274
274
  subtitle: t(e)("menu.takeaway.empty.subtitle"),
275
275
  title: t(e)("menu.takeaway.empty.title")
276
276
  }, {
277
- action: O(() => [f.value.create ? (_(), G(t(pe), {
277
+ action: P(() => [f.value.create ? (_(), G(t(pe), {
278
278
  key: 0,
279
279
  "bind-to-variant": i.value,
280
280
  action: "add",
281
281
  "apply-product": "",
282
- "onUpdate:takeaway": s[3] || (s[3] = (o) => t(y).updateMenu({
282
+ "onUpdate:takeaway": s[3] || (s[3] = (n) => t(y).updateMenu({
283
283
  module: t(z.F_MENU_MODULE_V4_KEY).enum.takeaway,
284
284
  operation: t(N.F_OPERATION_TYPE).create,
285
- data: o,
286
- link: t(ee)(o.usedBy || [])
287
- }, o.name))
285
+ data: n,
286
+ link: t(ee)(n.usedBy || [])
287
+ }, n.name))
288
288
  }, {
289
- default: O(({
290
- trigger: o
289
+ default: P(({
290
+ trigger: n
291
291
  }) => [V(B, {
292
292
  "prepend-icon": "add",
293
293
  label: t(e)("menu.takeaway.empty.action"),
294
- onClick: q(o, ["stop"])
294
+ onClick: Q(n, ["stop"])
295
295
  }, null, 8, ["label", "onClick"])]),
296
296
  _: 1
297
297
  }, 8, ["bind-to-variant"])) : $("", !0)]),
@@ -1,11 +1,11 @@
1
1
  import { computed as d, defineComponent as x, ref as F, resolveComponent as b, createElementBlock as L, openBlock as w, normalizeClass as R, createVNode as K, normalizeStyle as $, withCtx as B, createBlock as U, createCommentVNode as j } from "vue";
2
- import { A as h, K as E, G as C, P as O, ak as Y, u as y, a as G } from "./index.vue_vue_type_script_setup_true_lang-DxF14kn9.js";
3
- import { u as S } from "./menuV2-DinFmdTL.js";
4
- import { C as v, h as N } from "./catalog-BYzITAmC.js";
2
+ import { A as h, M as E, G as C, Q as O, al as Y, u as y, a as G } from "./index.vue_vue_type_script_setup_true_lang-kj6HkxwD.js";
3
+ import { u as S } from "./menuV2-DHO9OmzU.js";
4
+ import { C as v, h as N } from "./catalog-BgQmytEA.js";
5
5
  import { useSnackbar as P, useDialog as z } from "@feedmepos/ui-library";
6
- import { a as T } from "./LinkProductSideSheet-DJj8Nn4X.js";
7
- import { useI18n as q } from "@feedmepos/mf-common";
8
- function H() {
6
+ import { a as T } from "./LinkProductSideSheet-BXW6eNgZ.js";
7
+ import { useI18n as Q } from "@feedmepos/mf-common";
8
+ function q() {
9
9
  const t = S(), o = d(() => t.categorizedRawMenuItems.filter((u) => u.items.length > 0)), i = d(() => {
10
10
  const u = t.currentCatalog;
11
11
  return u ? v.getItemAvailable(u).map((n) => ({ _id: n })) : [];
@@ -96,7 +96,7 @@ async function A(t, o) {
96
96
  data: _
97
97
  });
98
98
  }
99
- function J() {
99
+ function H() {
100
100
  const t = S(), o = P(), i = z(), c = C(o), g = O(c), p = d(() => {
101
101
  const n = t.categorizedRawMenuItems, a = new Set(
102
102
  t.currentCatalog ? v.getItemAvailable(t.currentCatalog) : t.state.menu.modules.item.map((e) => e._id)
@@ -159,7 +159,7 @@ function J() {
159
159
  applyProduct: u
160
160
  };
161
161
  }
162
- const Q = () => {
162
+ const J = () => {
163
163
  const t = y(), o = P(), i = C(o), c = O(i), g = d(() => t.categorizedRawMenuItems.filter((n) => n.items.length > 0)), p = d(() => {
164
164
  const n = t.currentCatalog;
165
165
  return n ? v.getItemAvailable(n).map((a) => ({ _id: a })) : [];
@@ -287,7 +287,7 @@ function se(t) {
287
287
  const e = y(), r = d(() => e.state.menu.modules.item ?? []), s = d(() => {
288
288
  var M;
289
289
  return ((M = e.currentCatalog) == null ? void 0 : M.linkItemRules) ?? null;
290
- }), l = W(), m = Q(), f = d(() => !e.state.currentSchedulerId), I = (M) => {
290
+ }), l = W(), m = J(), f = d(() => !e.state.currentSchedulerId), I = (M) => {
291
291
  if (M.mode === T.Rules)
292
292
  m.saveLinkItemRules(M.linkItemRules);
293
293
  else {
@@ -308,7 +308,7 @@ function se(t) {
308
308
  const i = S(), c = d(() => i.state.menu.modules.item ?? []), g = d(() => {
309
309
  var e;
310
310
  return ((e = i.currentCatalog) == null ? void 0 : e.linkItemRules) ?? null;
311
- }), p = J(), _ = H(), u = d(() => !i.state.currentSchedulerId), n = (e) => {
311
+ }), p = H(), _ = q(), u = d(() => !i.state.currentSchedulerId), n = (e) => {
312
312
  if (e.mode === T.Rules)
313
313
  _.saveLinkItemRules(e.linkItemRules);
314
314
  else {
@@ -336,7 +336,7 @@ const X = ["alt", "src", "crossorigin"], ue = /* @__PURE__ */ x({
336
336
  crossorigin: { type: Boolean, default: !0 }
337
337
  },
338
338
  setup(t) {
339
- const o = t, { t: i } = q(), c = F(!1), g = F(!o.src), p = () => {
339
+ const o = t, { t: i } = Q(), c = F(!1), g = F(!o.src), p = () => {
340
340
  c.value = !1, g.value = !0;
341
341
  }, _ = () => {
342
342
  c.value = !0, g.value = !0;
@@ -394,6 +394,6 @@ const X = ["alt", "src", "crossorigin"], ue = /* @__PURE__ */ x({
394
394
  });
395
395
  export {
396
396
  ue as _,
397
- H as a,
397
+ q as a,
398
398
  se as u
399
399
  };