@feedmepos/mf-menu 0.19.10 → 0.19.12-prod

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 (51) hide show
  1. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-D8oPkq5O.js → ApplyProduct.vue_vue_type_script_setup_true_lang-COW-6G-u.js} +2 -2
  2. package/dist/{ApplyProducts.vue_vue_type_script_setup_true_lang-CpOb953I.js → ApplyProducts.vue_vue_type_script_setup_true_lang-Dq2hLi4U.js} +2 -2
  3. package/dist/{Catalog-MeNvmj8t.js → Catalog-DmcvO10_.js} +3 -3
  4. package/dist/{Category-kVIMeue1.js → Category-tSmaLltL.js} +93 -92
  5. package/dist/{CookingGuide-B_WiHZzg.js → CookingGuide-CcPZNi5U.js} +3 -3
  6. package/dist/{Group-DJEaCbxt.js → Group-B6Gy7o62.js} +4 -4
  7. package/dist/{Group-BJ-b_6Di.js → Group-Dck2LRaB.js} +1 -1
  8. package/dist/{Group.vue_vue_type_script_setup_true_lang-DLPgl1rx.js → Group.vue_vue_type_script_setup_true_lang-BAn00lZI.js} +109 -110
  9. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CGxsJVjN.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-Diu_3ewt.js} +2 -2
  10. package/dist/{Ingredient-DjvaJol8.js → Ingredient-4vJitru3.js} +4 -4
  11. package/dist/{LinkProductSideSheet-BjRnFW9c.js → LinkProductSideSheet-eVGHNO_K.js} +2 -2
  12. package/dist/{PrintRoute-BtvNheOu.js → PrintRoute-jQ8T3wxU.js} +3 -3
  13. package/dist/{Product-BcUZeZK8.js → Product-BuLIqnSJ.js} +1 -1
  14. package/dist/Product.vue_vue_type_script_setup_true_lang-BKIP_YPK.js +841 -0
  15. package/dist/{Products-DUJs01ch.js → Products-BcuyVVLG.js} +8 -8
  16. package/dist/{Publish-BA919WsC.js → Publish-huOPwg_X.js} +2 -2
  17. package/dist/{Recipe-BXeTLaTO.js → Recipe-DOkgs-Gk.js} +4 -4
  18. package/dist/{Scheduler-DlIB4aam.js → Scheduler-BOQwvQ-a.js} +2 -2
  19. package/dist/SchedulerSelector.vue_vue_type_script_setup_true_lang-CzvPCFrE.js +61 -0
  20. package/dist/ServingSequence-D2-iucoS.js +4 -0
  21. package/dist/{Setting-CcvMDyl-.js → Setting-DWNBs4ng.js} +1 -1
  22. package/dist/{Setting.vue_vue_type_script_setup_true_lang-BNOeyOXi.js → Setting.vue_vue_type_script_setup_true_lang-BkuOmRCq.js} +3 -3
  23. package/dist/{Takeaway-DFgzPHGD.js → Takeaway-BMRJTj4u.js} +1 -1
  24. package/dist/{Takeaway-X_1rdXpl.js → Takeaway-Bt3Mo60K.js} +4 -4
  25. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-PNxea2tU.js → Takeaway.vue_vue_type_script_setup_true_lang-CnsghzLP.js} +4 -4
  26. package/dist/{TaxSetting-DSnexle9.js → TaxSetting-DTDctGoD.js} +4 -4
  27. package/dist/{Unit-CFlZdKTb.js → Unit-yZayRbqv.js} +2 -2
  28. package/dist/{Variant-CaN1uZVO.js → Variant-CKe8l7ym.js} +2 -2
  29. package/dist/{_id_-Coey43BM.js → _id_-Dhhvo5kE.js} +6 -6
  30. package/dist/{app-BIPWfZz3.js → app-CrAwLz_D.js} +35 -33
  31. package/dist/app.js +2 -2
  32. package/dist/assets/{validate-menu-KC9-P-NT.js → linked-status-Dc-H37_W.js} +10 -10
  33. package/dist/assets/{linked-status-BgZ87XrZ.js → validate-menu-CmdvrdJP.js} +10 -10
  34. package/dist/{catalog-B3owHaKA.js → catalog-B5h5iqlt.js} +1 -1
  35. package/dist/{catalog-k-L27IXS.js → catalog-DChHYh3l.js} +2403 -2403
  36. package/dist/{category-g_kXcOb4.js → category-BWNe4fVe.js} +1 -1
  37. package/dist/{currency-CDCpkx_2.js → currency-BtTnay3r.js} +1 -1
  38. package/dist/{index-ZKsVxi1k.js → index-CpvbDlR2.js} +58 -58
  39. package/dist/{index-B20Mpnsm.js → index-DHRCsTlX.js} +3 -3
  40. package/dist/{item-I9aNge-f.js → item-o6u8Dfcc.js} +14 -12
  41. package/dist/{lodash-Wg6I-Jg3.js → lodash-CEP6gkpN.js} +1 -1
  42. package/dist/{menu-CA-tPjqr.js → menu-D8zm7WHw.js} +1 -1
  43. package/dist/{object-G9Kt-yNp.js → object-DS3hCadU.js} +1 -1
  44. package/dist/{scheduler-DVbQQkmU.js → scheduler-Cj_quMjC.js} +4 -4
  45. package/dist/{takeaway-D4auYk5H.js → takeaway-W8LvfU4T.js} +4 -4
  46. package/dist/{toExcel-Cjqi_t6u.js → toExcel-BoPg4w1f.js} +2 -2
  47. package/dist/{unit-CboNgXI0.js → unit-DGyrxUji.js} +2 -2
  48. package/package.json +2 -2
  49. package/dist/Product.vue_vue_type_script_setup_true_lang-DoZ5qtPd.js +0 -826
  50. package/dist/SchedulerSelector.vue_vue_type_script_setup_true_lang-tzbR32BM.js +0 -49
  51. package/dist/ServingSequence-8-2PRWvk.js +0 -4
@@ -1,15 +1,15 @@
1
- import { defineComponent as W, ref as S, resolveComponent as C, openBlock as d, createElementBlock as F, Fragment as T, renderSlot as ke, createVNode as m, unref as o, withCtx as h, createElementVNode as c, toDisplayString as N, computed as g, createBlock as P, renderList as ne, normalizeClass as K, watch as Oe, mergeProps as we, createCommentVNode as E, createSlots as De, withModifiers as Ce, isRef as oe, h as Me, nextTick as xe } from "vue";
2
- import { u as ue, g as Ae, i as Fe, a as Ge, n as Ne, c as Pe, b as v, m as Ve, k as Re, j as Ue, h as Ee } from "./app-BIPWfZz3.js";
3
- import { _ as le } from "./SchedulerSelector.vue_vue_type_script_setup_true_lang-tzbR32BM.js";
4
- import { M as ae, S as Se, _ as Te, A as Ie, e as $e, a as Ye } from "./item-I9aNge-f.js";
1
+ import { defineComponent as W, ref as S, resolveComponent as C, openBlock as p, createElementBlock as F, Fragment as T, renderSlot as ke, createVNode as m, unref as o, withCtx as h, createElementVNode as d, toDisplayString as V, computed as g, createBlock as N, renderList as ne, normalizeClass as K, watch as Oe, mergeProps as we, createCommentVNode as E, createSlots as De, withModifiers as Ce, isRef as oe, h as Me, nextTick as xe } from "vue";
2
+ import { u as ue, g as Ae, i as Fe, a as Ge, n as Ve, c as Ne, b as v, m as Pe, k as Re, j as Ue, h as Ee } from "./app-CrAwLz_D.js";
3
+ import { _ as le } from "./SchedulerSelector.vue_vue_type_script_setup_true_lang-CzvPCFrE.js";
4
+ import { M as ae, S as Se, _ as Te, A as Ie, e as $e, a as Ye } from "./item-o6u8Dfcc.js";
5
5
  import { components as Le, useBreakpoints as re, useSnackbar as ze, useDialog as je, FmButtonVariant as Ke } from "@feedmepos/ui-library";
6
- import { C as Be } from "./catalog-B3owHaKA.js";
7
- import { l as z, u as qe } from "./lodash-Wg6I-Jg3.js";
8
- import { _ as He } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-D8oPkq5O.js";
6
+ import { C as Be } from "./catalog-B5h5iqlt.js";
7
+ import { l as z, u as qe } from "./lodash-CEP6gkpN.js";
8
+ import { _ as He } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-COW-6G-u.js";
9
9
  import { useI18n as se } from "@feedmepos/mf-common";
10
10
  import { V as Je } from "./vuedraggable-WU01qJgi.js";
11
11
  import { _ as Qe, a as We } from "./BottomSheetMenuItem.vue_vue_type_script_setup_true_lang-DPis3HVx.js";
12
- import { c as Xe } from "./object-G9Kt-yNp.js";
12
+ import { c as Xe } from "./object-DS3hCadU.js";
13
13
  const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items-center justify-start" }, tt = /* @__PURE__ */ W({
14
14
  __name: "ApplyProductDialog",
15
15
  props: {
@@ -20,22 +20,22 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
20
20
  },
21
21
  emits: ["apply:product"],
22
22
  setup(B, { emit: I }) {
23
- const u = B, M = I, { t: G } = se(), k = u.initialValue.map((r) => ({ _id: r })), O = S(z.clone(k)), R = qe(
23
+ const l = B, M = I, { t: G } = se(), k = l.initialValue.map((r) => ({ _id: r })), O = S(z.clone(k)), R = qe(
24
24
  () => !z.isEqual(O.value, k),
25
25
  () => {
26
26
  f.value = !1;
27
27
  }
28
28
  ), f = S(!1), w = (r) => {
29
- Ae.isBoolean(r) ? f.value = r : f.value = !f.value;
29
+ Ae.isBoolean(r) ? f.value = r : f.value = !f.value, f.value && (O.value = l.initialValue.map((c) => ({ _id: c })));
30
30
  }, x = ue();
31
- return (r, p) => {
31
+ return (r, c) => {
32
32
  const j = C("fm-button"), s = C("fm-side-sheet");
33
- return d(), F(T, null, [
33
+ return p(), F(T, null, [
34
34
  ke(r.$slots, "default", { trigger: w }),
35
35
  m(s, {
36
36
  id: "group-form",
37
37
  modelValue: f.value,
38
- "onUpdate:modelValue": p[1] || (p[1] = ($) => f.value = $),
38
+ "onUpdate:modelValue": c[1] || (c[1] = ($) => f.value = $),
39
39
  "is-container": o(Le).FmForm,
40
40
  "is-container-props": {
41
41
  onValidationSuccess: () => {
@@ -48,10 +48,10 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
48
48
  "onOn:clickedAway": o(R)
49
49
  }, {
50
50
  "side-sheet-header": h(() => [
51
- c("p", Ze, N(r.title), 1)
51
+ d("p", Ze, V(r.title), 1)
52
52
  ]),
53
53
  "side-sheet-footer": h(() => [
54
- c("div", et, [
54
+ d("div", et, [
55
55
  m(j, {
56
56
  label: o(G)("common.save"),
57
57
  size: "lg",
@@ -69,7 +69,7 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
69
69
  default: h(() => [
70
70
  m(He, {
71
71
  overrides: O.value,
72
- "onUpdate:overrides": p[0] || (p[0] = ($) => O.value = $),
72
+ "onUpdate:overrides": c[0] || (c[0] = ($) => O.value = $),
73
73
  "categorized-items": o(x).categorizedItems,
74
74
  editable: r.editable,
75
75
  "select-variant": !1,
@@ -88,24 +88,24 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
88
88
  items: {}
89
89
  },
90
90
  setup(B) {
91
- const I = re(), u = g(() => I.breakpoints.value.xs);
91
+ const I = re(), l = g(() => I.breakpoints.value.xs);
92
92
  return (M, G) => {
93
93
  const k = C("FmButton"), O = C("FmMenuItem"), R = C("FmMenu");
94
- return u.value ? (d(), P(Qe, { key: 0 }, {
94
+ return l.value ? (p(), N(Qe, { key: 0 }, {
95
95
  default: h(() => [
96
- (d(!0), F(T, null, ne(M.items, ({ icon: f, label: w, disabled: x, itemClass: r, onClick: p }) => (d(), P(We, {
96
+ (p(!0), F(T, null, ne(M.items, ({ icon: f, label: w, disabled: x, itemClass: r, onClick: c }) => (p(), N(We, {
97
97
  key: w,
98
98
  icon: f,
99
99
  label: w,
100
100
  disabled: x,
101
101
  itemClass: r,
102
102
  onClick: () => {
103
- !x && (p == null || p());
103
+ !x && (c == null || c());
104
104
  }
105
105
  }, null, 8, ["icon", "label", "disabled", "itemClass", "onClick"]))), 128))
106
106
  ]),
107
107
  _: 1
108
- })) : (d(), P(R, {
108
+ })) : (p(), N(R, {
109
109
  key: 1,
110
110
  "stop-click-propagation": "",
111
111
  shift: !0
@@ -120,18 +120,18 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
120
120
  })
121
121
  ]),
122
122
  default: h(() => [
123
- (d(!0), F(T, null, ne(M.items, ({ icon: f, label: w, disabled: x, itemClass: r, onClick: p }) => (d(), P(O, {
123
+ (p(!0), F(T, null, ne(M.items, ({ icon: f, label: w, disabled: x, itemClass: r, onClick: c }) => (p(), N(O, {
124
124
  key: w,
125
125
  disabled: x,
126
126
  onClick: () => {
127
- !x && (p == null || p());
127
+ !x && (c == null || c());
128
128
  },
129
129
  label: w
130
130
  }, {
131
131
  label: h(() => [
132
- c("span", {
132
+ d("span", {
133
133
  class: K(x ? "text-fm-color-typo-disabled" : r)
134
- }, N(w), 3)
134
+ }, V(w), 3)
135
135
  ]),
136
136
  _: 2
137
137
  }, 1032, ["disabled", "onClick", "label"]))), 128))
@@ -171,20 +171,20 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
171
171
  setup(B, {
172
172
  emit: I
173
173
  }) {
174
- const u = ue(), M = Fe(Ge(ze())), G = je(), k = g(() => u.rules.group), O = g(() => new ae(u, M.updateMenu, G)), R = g(() => O.value.mapGroups(u.groups, !1)), {
174
+ const l = ue(), M = Fe(Ge(ze())), G = je(), k = g(() => l.rules.group), O = g(() => new ae(l, M.updateMenu, G)), R = g(() => O.value.mapGroups(l.groups, !1)), {
175
175
  searchKey: f,
176
176
  filter: w
177
- } = Ne(), x = S(!1), r = S(null), p = g(() => R.value.filter((t) => w([t.name, Object.values(t.items).flatMap((e) => `${e.code} ${e.name} ${Pe.Dinero.fromFdoDinero(e.price).toFormat()}`), t.type])).filter((t) => !r.value || t.type === r.value)), j = I;
178
- Oe(() => p.value.length, () => {
179
- j("update:count", p.value.length);
177
+ } = Ve(), x = S(!1), r = S(null), c = g(() => R.value.filter((t) => w([t.name, ...Object.values(t.items).flatMap((e) => `${e.code} ${e.name} ${Ne.Dinero.fromFdoDinero(e.price).toFormat()}`), t.type])).filter((t) => !r.value || t.type === r.value)), j = I;
178
+ Oe(() => c.value.length, () => {
179
+ j("update:count", c.value.length);
180
180
  }, {
181
181
  immediate: !0
182
182
  });
183
- const s = g(() => !!u.state.currentCatalogId || !!u.state.currentSchedulerId);
183
+ const s = g(() => !!l.state.currentCatalogId || !!l.state.currentSchedulerId);
184
184
  function $(t) {
185
- const e = !u.state.currentSchedulerId, l = u.rules.item.bindToVariant, i = u.rules.group.type, _ = u.version === v.F_MENU_VERSION.enum.v3, D = u.rules.item.orderFromActiveOnly;
185
+ const e = !l.state.currentSchedulerId, a = l.rules.item.bindToVariant, i = l.rules.group.type, _ = l.version === v.F_MENU_VERSION.enum.v3, D = l.rules.item.orderFromActiveOnly;
186
186
  return {
187
- link: (b) => !s.value && (!b || l),
187
+ link: (b) => !s.value && (!b || a),
188
188
  name: (b) => !s.value && !b,
189
189
  type: i && !t._id && !s.value,
190
190
  price: t.type !== v.F_ADDON_GROUP_TYPE.enum.DYNAMIC,
@@ -192,35 +192,35 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
192
192
  orderFrom: (b) => e ? _ ? t.type === v.F_ADDON_GROUP_TYPE.enum.DYNAMIC ? s.value : !!s.value == !b : s.value : !1,
193
193
  orderFromActiveOnly: D,
194
194
  showOrderFrom: e ? _ ? s.value ? !0 : t.type === v.F_ADDON_GROUP_TYPE.enum.PRODUCT : s.value : !1,
195
- bindToVariant: l,
195
+ bindToVariant: a,
196
196
  isOverride: s.value,
197
197
  isItemGroup: !1,
198
198
  isV4: !_
199
199
  };
200
200
  }
201
201
  const ie = g(() => {
202
- const t = !u.state.currentSchedulerId, e = u.rules.group.type, l = u.version === v.F_MENU_VERSION.enum.v3, i = u.rules.item.orderFromActiveOnly, _ = u.rules.item.bindToVariant;
202
+ const t = !l.state.currentSchedulerId, e = l.rules.group.type, a = l.version === v.F_MENU_VERSION.enum.v3, i = l.rules.item.orderFromActiveOnly, _ = l.rules.item.bindToVariant;
203
203
  return function(b) {
204
204
  return {
205
205
  link: (A) => !s.value && (!A || _),
206
206
  name: (A) => !s.value && !A,
207
207
  type: e && !b._id && !s.value,
208
208
  price: b.type !== v.F_ADDON_GROUP_TYPE.enum.DYNAMIC,
209
- inventory: t ? l ? !s.value && b.type === v.F_ADDON_GROUP_TYPE.enum.NORMAL : !s.value : !1,
210
- orderFrom: (A) => t ? l ? b.type === v.F_ADDON_GROUP_TYPE.enum.DYNAMIC ? s.value : !!s.value == !A : s.value : !1,
209
+ inventory: t ? a ? !s.value && b.type === v.F_ADDON_GROUP_TYPE.enum.NORMAL : !s.value : !1,
210
+ orderFrom: (A) => t ? a ? b.type === v.F_ADDON_GROUP_TYPE.enum.DYNAMIC ? s.value : !!s.value == !A : s.value : !1,
211
211
  orderFromActiveOnly: i,
212
- showOrderFrom: t ? l ? s.value ? !0 : b.type === v.F_ADDON_GROUP_TYPE.enum.PRODUCT : s.value : !1,
212
+ showOrderFrom: t ? a ? s.value ? !0 : b.type === v.F_ADDON_GROUP_TYPE.enum.PRODUCT : s.value : !1,
213
213
  bindToVariant: _,
214
214
  isOverride: s.value,
215
215
  isItemGroup: !1,
216
- isV4: !l
216
+ isV4: !a
217
217
  };
218
218
  };
219
219
  }), me = g(() => ({
220
- ...Ve.generator.initMenuV4Group(),
221
- type: u.version === v.F_MENU_VERSION.enum.v4 ? v.F_ADDON_GROUP_TYPE.enum.PRODUCT : v.F_ADDON_GROUP_TYPE.enum.NORMAL,
220
+ ...Pe.generator.initMenuV4Group(),
221
+ type: l.version === v.F_MENU_VERSION.enum.v4 ? v.F_ADDON_GROUP_TYPE.enum.PRODUCT : v.F_ADDON_GROUP_TYPE.enum.NORMAL,
222
222
  items: {},
223
- position: u.groups.length - 1,
223
+ position: l.groups.length - 1,
224
224
  itemsLinked: []
225
225
  })), q = g(() => ie.value(me.value).type);
226
226
  function X(t) {
@@ -242,32 +242,32 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
242
242
  }
243
243
  }).onPrimary(() => O.value.duplicateGroup(t));
244
244
  }
245
- const H = g(() => u.currentCatalog), Y = g(() => u.currentScheduler), L = g(() => new Be(H.value, u, M.updateMenu, G)), J = g(() => new Se(Y.value, u, M.updateMenu, G)), de = (t) => {
245
+ const H = g(() => l.currentCatalog), Y = g(() => l.currentScheduler), L = g(() => new Be(H.value, l, M.updateMenu, G)), J = g(() => new Se(Y.value, l, M.updateMenu, G)), de = (t) => {
246
246
  let e = t;
247
247
  if (s.value) {
248
248
  let i = function(D) {
249
- const A = u.state.menu.modules.group.find((y) => y._id === D._id), Q = (D.items ?? []).reduce((y, V) => (y[V._id] = [...y[V._id] || [], V.combinationKey || ""], y), {}), he = (A.items ?? []).filter((y) => {
250
- var V;
251
- return !((V = Q[y._id]) != null && V.includes(y.combinationKey || ""));
249
+ const A = l.state.menu.modules.group.find((y) => y._id === D._id), Q = (D.items ?? []).reduce((y, P) => (y[P._id] = [...y[P._id] || [], P.combinationKey || ""], y), {}), he = (A.items ?? []).filter((y) => {
250
+ var P;
251
+ return !((P = Q[y._id]) != null && P.includes(y.combinationKey || ""));
252
252
  }).map((y) => ({
253
253
  _id: y._id,
254
254
  combinationKey: y.combinationKey,
255
255
  selection: y.selection
256
- })).filter((y) => !!u.mergedMenu.modules.item.find((V) => V._id === y._id));
256
+ })).filter((y) => !!l.mergedMenu.modules.item.find((P) => P._id === y._id));
257
257
  return {
258
258
  ...A,
259
259
  ...Object.fromEntries(Object.entries(D).filter(([, y]) => !!y)),
260
260
  items: [...D.items ?? [], ...he]
261
261
  };
262
- }, l;
263
- H.value ? Y.value ? l = L.value.getCatalogSchedulerGroup(t._id, Y.value._id) : l = L.value.getCatalogGroup(t._id) : l = J.value.getSchedulerGroup(t._id);
264
- const _ = i(l);
265
- e = new ae(u, M.updateMenu, G).mapGroups([_], !0)[0];
262
+ }, a;
263
+ H.value ? Y.value ? a = L.value.getCatalogSchedulerGroup(t._id, Y.value._id) : a = L.value.getCatalogGroup(t._id) : a = J.value.getSchedulerGroup(t._id);
264
+ const _ = i(a);
265
+ e = new ae(l, M.updateMenu, G).mapGroups([_], !0)[0];
266
266
  }
267
267
  return {
268
268
  group: e,
269
269
  config: $,
270
- categorizedItems: u.categorizedItems
270
+ categorizedItems: l.categorizedItems
271
271
  };
272
272
  };
273
273
  function pe(t) {
@@ -294,12 +294,12 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
294
294
  initialValue: e.itemsLinked,
295
295
  group: $e(e),
296
296
  editable: k.value.applyProduct,
297
- "onApply:product": async (l) => {
298
- await O.value.applyItems(e, l.map((i) => i._id));
297
+ "onApply:product": async (a) => {
298
+ await O.value.applyItems(e, a.map((i) => i._id));
299
299
  }
300
300
  }, {
301
301
  default: ({
302
- trigger: l
302
+ trigger: a
303
303
  }) => {
304
304
  const i = [{
305
305
  label: n("menu.common.actions.edit"),
@@ -307,7 +307,7 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
307
307
  }, {
308
308
  label: n("menu.group.actions.apply_product"),
309
309
  disable: !k.value.applyProduct,
310
- onClick: l
310
+ onClick: a
311
311
  }, {
312
312
  label: n("menu.group.actions.duplicate_action"),
313
313
  disabled: !k.value.create,
@@ -333,16 +333,16 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
333
333
  header: () => n("menu.group.list.columns.products"),
334
334
  enableSorting: !1,
335
335
  cell: (t) => {
336
- const e = t.getValue(), l = Object.values(e).map((i) => {
336
+ const e = t.getValue(), a = Object.values(e).map((i) => {
337
337
  var D;
338
338
  const _ = [(i == null ? void 0 : i.code) || "", i.name ?? i.fallbackName].join(" ").trim();
339
339
  return (i.items || []).length > 1 ? `${_} (${n("menu.group.list.variants", {
340
340
  count: (D = i.items) == null ? void 0 : D.length
341
341
  })})` : _;
342
342
  });
343
- return l.length > 5 ? `${l.slice(0, 5).join(", ")} ${n("menu.group.list.more_items", {
344
- count: l.length - 5
345
- })}` : l.join(", ");
343
+ return a.length > 5 ? `${a.slice(0, 5).join(", ")} ${n("menu.group.list.more_items", {
344
+ count: a.length - 5
345
+ })}` : a.join(", ");
346
346
  }
347
347
  }, {
348
348
  accessorKey: "type",
@@ -386,21 +386,21 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
386
386
  itemsLinked: k.value.showAppliedProduct,
387
387
  type: k.value.type
388
388
  })), _e = async (t) => {
389
- const e = Ye(t), l = e.group;
389
+ const e = Ye(t), a = e.group;
390
390
  if (s.value)
391
- H.value ? (Y.value ? L.value.overrideCatalogSchedulerGroups([l], Y.value._id) : L.value.overrideCatalogGroups([l]), await L.value.update()) : (J.value.overrideSchedulerGroups([l]), await J.value.update());
391
+ H.value ? (Y.value ? L.value.overrideCatalogSchedulerGroups([a], Y.value._id) : L.value.overrideCatalogGroups([a]), await L.value.update()) : (J.value.overrideSchedulerGroups([a]), await J.value.update());
392
392
  else {
393
393
  const i = {
394
394
  module: v.F_MENU_MODULE_V4_KEY.enum.group,
395
395
  operation: Ee.F_OPERATION_TYPE.update,
396
- data: l,
396
+ data: a,
397
397
  link: [{
398
398
  module: v.F_MENU_MODULE_V4_KEY.enum.item,
399
399
  id: "",
400
400
  data: e.linkItems
401
401
  }]
402
402
  };
403
- await M.updateMenu(i, l.name);
403
+ await M.updateMenu(i, a.name);
404
404
  }
405
405
  }, U = S(null), ee = S(null), te = async (t) => {
406
406
  var e;
@@ -413,8 +413,8 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
413
413
  t: n
414
414
  } = se();
415
415
  return (t, e) => {
416
- const l = C("fm-button"), i = C("fm-chip"), _ = C("fm-menu-item"), D = C("fm-menu"), b = C("fm-search"), A = C("fm-table"), Q = C("fm-bottom-sheet");
417
- return d(), F(T, null, [U.value ? (d(), P(Te, we({
416
+ const a = C("fm-button"), i = C("fm-chip"), _ = C("fm-menu-item"), D = C("fm-menu"), b = C("fm-search"), A = C("fm-table"), Q = C("fm-bottom-sheet");
417
+ return p(), F(T, null, [U.value ? (p(), N(Te, we({
418
418
  ref_key: "groupManagerFormRef",
419
419
  ref: ee,
420
420
  key: U.value._id
@@ -422,9 +422,9 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
422
422
  action: "update",
423
423
  title: o(n)("menu.group.dialogs.update.title"),
424
424
  group: U.value,
425
- "onUpdate:group": e[0] || (e[0] = (a) => U.value = a),
426
- "onSubmit:group": e[1] || (e[1] = (a) => _e(a))
427
- }), null, 16, ["title", "group"])) : E("", !0), R.value.length === 0 ? (d(), F("div", ot, [m(Re, {
425
+ "onUpdate:group": e[0] || (e[0] = (u) => U.value = u),
426
+ "onSubmit:group": e[1] || (e[1] = (u) => _e(u))
427
+ }), null, 16, ["title", "group"])) : E("", !0), R.value.length === 0 ? (p(), F("div", ot, [m(Re, {
428
428
  subtitle: o(n)("menu.group.empty.subtitle"),
429
429
  title: o(n)("menu.group.empty.title")
430
430
  }, De({
@@ -433,32 +433,32 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
433
433
  name: "action",
434
434
  fn: h(() => [m(o(Ie), null, {
435
435
  default: h(({
436
- trigger: a
437
- }) => [m(l, {
436
+ trigger: u
437
+ }) => [m(a, {
438
438
  "prepend-icon": "add",
439
439
  label: o(n)("menu.group.actions.add"),
440
- onClick: Ce(a, ["stop"])
440
+ onClick: Ce(u, ["stop"])
441
441
  }, null, 8, ["label", "onClick"])]),
442
442
  _: 1
443
443
  })]),
444
444
  key: "0"
445
- } : void 0]), 1032, ["subtitle", "title"])])) : (d(), F(T, {
445
+ } : void 0]), 1032, ["subtitle", "title"])])) : (p(), F(T, {
446
446
  key: 2
447
- }, [be.value ? (d(), F(T, {
447
+ }, [be.value ? (p(), F(T, {
448
448
  key: 1
449
- }, [c("div", rt, [m(b, {
449
+ }, [d("div", rt, [m(b, {
450
450
  autofocus: "",
451
451
  modelValue: o(f),
452
- "onUpdate:modelValue": e[8] || (e[8] = (a) => oe(f) ? f.value = a : null),
452
+ "onUpdate:modelValue": e[8] || (e[8] = (u) => oe(f) ? f.value = u : null),
453
453
  placeholder: o(n)("menu.group.search.placeholder")
454
- }, null, 8, ["modelValue", "placeholder"])]), e[15] || (e[15] = c("div", {
454
+ }, null, 8, ["modelValue", "placeholder"])]), e[15] || (e[15] = d("div", {
455
455
  class: "bg-fm-color-neutral-gray-100 w-full h-px rounded-md"
456
- }, null, -1)), c("div", st, [k.value.multiScheduler ? (d(), P(le, {
456
+ }, null, -1)), d("div", st, [k.value.multiScheduler ? (p(), N(le, {
457
457
  key: 0
458
- })) : E("", !0), q.value ? (d(), P(Q, {
458
+ })) : E("", !0), q.value ? (p(), N(Q, {
459
459
  key: 1,
460
460
  modelValue: x.value,
461
- "onUpdate:modelValue": e[13] || (e[13] = (a) => x.value = a)
461
+ "onUpdate:modelValue": e[13] || (e[13] = (u) => x.value = u)
462
462
  }, {
463
463
  "bottom-sheet-button": h(() => [m(i, {
464
464
  label: o(n)("menu.group.type.title", {
@@ -467,42 +467,42 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
467
467
  class: "text-fm-color-typo-secondary",
468
468
  "right-icon": "keyboard_arrow_down"
469
469
  }, null, 8, ["label"])]),
470
- default: h(() => [c("div", null, [c("div", {
470
+ default: h(() => [d("div", null, [d("div", {
471
471
  class: "px-16 py-8",
472
- onClick: e[9] || (e[9] = (a) => r.value = null)
473
- }, N(o(n)("menu.group.type.all")), 1), c("div", {
472
+ onClick: e[9] || (e[9] = (u) => r.value = null)
473
+ }, V(o(n)("menu.group.type.all")), 1), d("div", {
474
474
  class: "px-16 py-8",
475
- onClick: e[10] || (e[10] = (a) => r.value = "NORMAL")
476
- }, N(o(n)("menu.group.type.normal")), 1), c("div", {
475
+ onClick: e[10] || (e[10] = (u) => r.value = "NORMAL")
476
+ }, V(o(n)("menu.group.type.normal")), 1), d("div", {
477
477
  class: "px-16 py-8",
478
- onClick: e[11] || (e[11] = (a) => r.value = "PRODUCT")
479
- }, N(o(n)("menu.group.type.product")), 1), c("div", {
478
+ onClick: e[11] || (e[11] = (u) => r.value = "PRODUCT")
479
+ }, V(o(n)("menu.group.type.product")), 1), d("div", {
480
480
  class: "px-16 py-8",
481
- onClick: e[12] || (e[12] = (a) => r.value = "DYNAMIC")
482
- }, N(o(n)("menu.group.type.dynamic")), 1)])]),
481
+ onClick: e[12] || (e[12] = (u) => r.value = "DYNAMIC")
482
+ }, V(o(n)("menu.group.type.dynamic")), 1)])]),
483
483
  _: 1
484
484
  }, 8, ["modelValue"])) : E("", !0)]), m(o(Je), {
485
485
  class: K(["flex-1", "overflow-scroll", "divide-y divide-fm-color-neutral-gray-100", "pb-64"]),
486
- "model-value": p.value,
486
+ "model-value": c.value,
487
487
  group: "categories",
488
488
  handle: ".handle",
489
489
  "item-key": "_id",
490
- "onUpdate:modelValue": e[14] || (e[14] = (a) => X(a))
490
+ "onUpdate:modelValue": e[14] || (e[14] = (u) => X(u))
491
491
  }, {
492
492
  item: h(({
493
- element: a
494
- }) => [(d(), F("div", {
495
- key: a._id,
493
+ element: u
494
+ }) => [(p(), F("div", {
495
+ key: u._id,
496
496
  class: K(["py-12 px-16", "flex space-x-16", "items-center"])
497
- }, [c("div", it, [c("div", mt, [c("p", ct, N(a.name), 1), c("div", null, [q.value ? (d(), F("p", dt, N(o(z.capitalize)(a.type)) + " type ", 1)) : E("", !0), c("p", pt, N(o(n)("menu.group.list.products_linked", {
498
- count: a.itemsLinked.length
497
+ }, [d("div", it, [d("div", mt, [d("p", ct, V(u.name), 1), d("div", null, [q.value ? (p(), F("p", dt, V(o(z.capitalize)(u.type)) + " type ", 1)) : E("", !0), d("p", pt, V(o(n)("menu.group.list.products_linked", {
498
+ count: u.itemsLinked.length
499
499
  })), 1)])]), m(Z, {
500
- group: a
500
+ group: u
501
501
  }, null, 8, ["group"])])]))]),
502
502
  _: 1
503
- }, 8, ["model-value"])], 64)) : (d(), F("div", lt, [c("div", at, [k.value.multiScheduler ? (d(), P(le, {
503
+ }, 8, ["model-value"])], 64)) : (p(), F("div", lt, [d("div", at, [k.value.multiScheduler ? (p(), N(le, {
504
504
  key: 0
505
- })) : E("", !0), q.value ? (d(), P(D, {
505
+ })) : E("", !0), q.value ? (p(), N(D, {
506
506
  key: 1
507
507
  }, {
508
508
  "menu-button": h(() => [m(i, {
@@ -512,45 +512,44 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
512
512
  class: "text-fm-color-typo-secondary",
513
513
  "right-icon": "keyboard_arrow_down"
514
514
  }, null, 8, ["label"])]),
515
- default: h(() => [c("div", null, [m(_, {
515
+ default: h(() => [d("div", null, [m(_, {
516
516
  class: "px-16 py-8",
517
517
  label: o(n)("menu.group.type.all"),
518
- onClick: e[2] || (e[2] = (a) => r.value = null)
518
+ onClick: e[2] || (e[2] = (u) => r.value = null)
519
519
  }, null, 8, ["label"]), m(_, {
520
520
  class: "px-16 py-8",
521
521
  label: o(n)("menu.group.type.normal"),
522
- onClick: e[3] || (e[3] = (a) => r.value = "NORMAL")
522
+ onClick: e[3] || (e[3] = (u) => r.value = "NORMAL")
523
523
  }, null, 8, ["label"]), m(_, {
524
524
  class: "px-16 py-8",
525
525
  label: o(n)("menu.group.type.product"),
526
- onClick: e[4] || (e[4] = (a) => r.value = "PRODUCT")
526
+ onClick: e[4] || (e[4] = (u) => r.value = "PRODUCT")
527
527
  }, null, 8, ["label"]), m(_, {
528
528
  class: "px-16 py-8",
529
529
  label: o(n)("menu.group.type.dynamic"),
530
- onClick: e[5] || (e[5] = (a) => r.value = "DYNAMIC")
530
+ onClick: e[5] || (e[5] = (u) => r.value = "DYNAMIC")
531
531
  }, null, 8, ["label"])])]),
532
532
  _: 1
533
- })) : E("", !0), c("div", ut, [m(b, {
533
+ })) : E("", !0), d("div", ut, [m(b, {
534
534
  autofocus: "",
535
535
  modelValue: o(f),
536
- "onUpdate:modelValue": e[6] || (e[6] = (a) => oe(f) ? f.value = a : null),
536
+ "onUpdate:modelValue": e[6] || (e[6] = (u) => oe(f) ? f.value = u : null),
537
537
  placeholder: o(n)("menu.group.search.placeholder")
538
538
  }, null, 8, ["modelValue", "placeholder"])])]), m(Ue, null, {
539
539
  default: h(() => [m(A, {
540
540
  "column-defs": ve.value,
541
541
  "column-visibility": fe.value,
542
542
  loading: o(M).checkMenuIsLoading(),
543
- "page-size": p.value.length,
544
- "row-data": p.value,
545
- "search-value": o(f),
543
+ "page-size": c.value.length,
544
+ "row-data": c.value,
546
545
  "shrink-at": !1,
547
546
  class: "flex-1 overflow-hidden",
548
547
  draggable: "",
549
548
  "hide-footer": "",
550
549
  "pin-header-row": "",
551
550
  onRowClick: ye,
552
- onDndChanged: e[7] || (e[7] = (a) => X(a))
553
- }, null, 8, ["column-defs", "column-visibility", "loading", "page-size", "row-data", "search-value"])]),
551
+ onDndChanged: e[7] || (e[7] = (u) => X(u))
552
+ }, null, 8, ["column-defs", "column-visibility", "loading", "page-size", "row-data"])]),
554
553
  _: 1
555
554
  })]))], 64))], 64);
556
555
  };
@@ -1,8 +1,8 @@
1
- import { b as k, d as c, u as q, H as G, g as C } from "./app-BIPWfZz3.js";
1
+ import { b as k, d as c, u as q, H as G, g as C } from "./app-CrAwLz_D.js";
2
2
  import { defineComponent as H, computed as F, ref as V, watch as j, onMounted as J, resolveComponent as s, openBlock as _, createElementBlock as y, Fragment as S, renderSlot as K, createVNode as i, unref as o, withCtx as d, createTextVNode as Q, toDisplayString as I, createElementVNode as O, renderList as W, createBlock as R, createCommentVNode as h } from "vue";
3
3
  import { c as X } from "./string-DpfFixWH.js";
4
4
  import { useDialog as Y, components as Z, FmButtonColorThemeVariant as L, FmButtonVariant as ee } from "@feedmepos/ui-library";
5
- import { L as ae } from "./LinkProductSideSheet-BjRnFW9c.js";
5
+ import { L as ae } from "./LinkProductSideSheet-eVGHNO_K.js";
6
6
  import { useI18n as te } from "@feedmepos/mf-common";
7
7
  var le = /* @__PURE__ */ ((p) => (p.AUTO = "auto", p.MANUAL = "manual", p))(le || {});
8
8
  class T {
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as ie, computed as b, ref as E, reactive as Ve, watch as Ce, resolveComponent as d, openBlock as m, createElementBlock as y, Fragment as V, renderSlot as Me, createVNode as s, unref as e, withCtx as k, createElementVNode as v, toDisplayString as U, createBlock as B, createCommentVNode as j, normalizeClass as J, createTextVNode as we, renderList as q, getCurrentInstance as $e, h as te, withModifiers as le } from "vue";
2
- import { i as se, a as Q, u as W, d as Ee, m as K, k as ue, e as oe, g as Ue, b as G, h as H, l as Ne, _ as Oe, f as Te } from "./app-BIPWfZz3.js";
2
+ import { i as se, a as Q, u as W, d as Ee, m as K, k as ue, e as oe, g as Ue, b as G, h as H, l as Ne, _ as Oe, f as Te } from "./app-CrAwLz_D.js";
3
3
  import { useSnackbar as X, components as re, useDialog as Be, FmButtonVariant as ce, useBreakpoints as Ie } from "@feedmepos/ui-library";
4
4
  import { useI18n as Z } from "@feedmepos/mf-common";
5
5
  import "vue-router";
6
6
  import { defineStore as Le } from "pinia";
7
- import { u as Pe } from "./unit-CboNgXI0.js";
8
- import { _ as ae, j as Re } from "./index-ZKsVxi1k.js";
9
- import { u as De, l as Ae } from "./lodash-Wg6I-Jg3.js";
7
+ import { u as Pe } from "./unit-DGyrxUji.js";
8
+ import { _ as ae, j as Re } from "./index-CpvbDlR2.js";
9
+ import { u as De, l as Ae } from "./lodash-CEP6gkpN.js";
10
10
  const Ye = { class: "fm-typo-en-title-md-600" }, ze = {
11
11
  key: 0,
12
12
  class: "pt-8 flex flex-col gap-8"
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as z, ref as p, computed as S, watch as F, resolveComponent as v, openBlock as V, createElementBlock as I, Fragment as D, renderSlot as E, createVNode as i, unref as n, withCtx as m, createBlock as N, createCommentVNode as O, createElementVNode as h, toDisplayString as L } from "vue";
2
2
  import { components as j, FmButtonVariant as A } from "@feedmepos/ui-library";
3
- import { d as _, V as P, g as U, N as $ } from "./app-BIPWfZz3.js";
3
+ import { d as _, V as P, g as U, N as $ } from "./app-CrAwLz_D.js";
4
4
  import { useI18n as q } from "@feedmepos/mf-common";
5
- import { u as x, l as M } from "./lodash-Wg6I-Jg3.js";
5
+ import { u as x, l as M } from "./lodash-CEP6gkpN.js";
6
6
  /* empty css */
7
7
  const T = { class: "fm-typo-en-title-md-600 mr-auto" }, G = { class: "flex gap-8 items-center justify-start" }, H = /* @__PURE__ */ z({
8
8
  __name: "LinkProductSideSheet",
@@ -1,10 +1,10 @@
1
1
  import { defineComponent as Q, ref as k, computed as p, resolveComponent as g, openBlock as d, createElementBlock as w, Fragment as D, createVNode as i, unref as a, withCtx as _, createElementVNode as s, toDisplayString as M, createBlock as U, renderList as Y, createCommentVNode as W, h as m, withModifiers as G } from "vue";
2
- import { d as H, b as C, h as q, u as te, i as ne, a as oe, _ as ae, f as le, k as re, j as se } from "./app-BIPWfZz3.js";
2
+ import { d as H, b as C, h as q, u as te, i as ne, a as oe, _ as ae, f as le, k as re, j as se } from "./app-CrAwLz_D.js";
3
3
  import { components as X, useSnackbar as ie, useDialog as ue } from "@feedmepos/ui-library";
4
- import { _ as de } from "./ApplyProducts.vue_vue_type_script_setup_true_lang-CpOb953I.js";
4
+ import { _ as de } from "./ApplyProducts.vue_vue_type_script_setup_true_lang-Dq2hLi4U.js";
5
5
  import { useI18n as Z } from "@feedmepos/mf-common";
6
6
  import { _ as J } from "./FormSection.vue_vue_type_script_setup_true_lang-BWJUD8NZ.js";
7
- import { u as ce, l as me } from "./lodash-Wg6I-Jg3.js";
7
+ import { u as ce, l as me } from "./lodash-CEP6gkpN.js";
8
8
  const pe = { class: "fm-typo-en-title-md-600" }, _e = { class: "space-y-32" }, fe = { class: "space-y-16" }, ve = { class: "flex items-center gap-8" }, ye = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, ge = { class: "flex-1" }, he = { class: "grow overflow-y-auto" }, be = { class: "text-fm-color-typo-secondary bg-fm-color-neutral-gray-100 px-16 py-8 border-b border-b-fm-color-neutral-gray-200" }, ke = { class: "flex items-center border-b border-b-fm-color-neutral-gray-100" }, xe = { class: "px-16 py-8 flex-1" }, Fe = { class: "py-8" }, Ie = { class: "flex gap-8 items-center justify-start" }, we = /* @__PURE__ */ Q({
9
9
  __name: "PrintDepartmentDialog",
10
10
  props: {
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./Product.vue_vue_type_script_setup_true_lang-DoZ5qtPd.js";
1
+ import { _ as f } from "./Product.vue_vue_type_script_setup_true_lang-BKIP_YPK.js";
2
2
  export {
3
3
  f as default
4
4
  };