@feedmepos/mf-menu 0.20.2 → 0.21.0

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 (54) hide show
  1. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-Ds2qfY_X.js → ApplyProduct.vue_vue_type_script_setup_true_lang-DxlJ6xrN.js} +10 -10
  2. package/dist/{ApplyProducts.vue_vue_type_script_setup_true_lang-BRepaPR3.js → ApplyProducts.vue_vue_type_script_setup_true_lang-CF-fCyCs.js} +5 -4
  3. package/dist/{Catalog-S5KDEWzG.js → Catalog-CVmJyr3D.js} +74 -73
  4. package/dist/{Category-DLaNEtA5.js → Category-CjzACwyb.js} +6 -6
  5. package/dist/{CookingGuide-DSGZapxz.js → CookingGuide-COZFvS4P.js} +7 -6
  6. package/dist/{Group-CBMSkmwQ.js → Group-Bun-FrIN.js} +1 -1
  7. package/dist/{Group-B0VQ-64x.js → Group-xCFTbuXd.js} +7 -7
  8. package/dist/{Group.vue_vue_type_script_setup_true_lang-DKzrhXtM.js → Group.vue_vue_type_script_setup_true_lang-DSfas9NO.js} +57 -56
  9. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BV-FC8tM.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-kl0WpFCW.js} +24 -24
  10. package/dist/{Ingredient-CnPQ0kiR.js → Ingredient-w4kVvEml.js} +69 -68
  11. package/dist/{LinkProductSideSheet-A26Otbdm.js → LinkProductSideSheet-CBHtwxCb.js} +30 -29
  12. package/dist/{PrintRoute-BlJMdPP0.js → PrintRoute-DXsa638J.js} +30 -29
  13. package/dist/{Product-BvD813LL.js → Product-BAtB4ebt.js} +1 -1
  14. package/dist/{Product.vue_vue_type_script_setup_true_lang-D_oKtXbh.js → Product.vue_vue_type_script_setup_true_lang-DeJy-daz.js} +276 -279
  15. package/dist/{Products-B8Ok-bkN.js → Products-BQHiOdhZ.js} +24 -23
  16. package/dist/{Publish-qBiJUQ4X.js → Publish-DbxeuyRV.js} +68 -67
  17. package/dist/{Recipe-CJxJJAUV.js → Recipe-T2PlHYY_.js} +84 -83
  18. package/dist/{Scheduler-DfAMwXCu.js → Scheduler-C-W85pjK.js} +2 -2
  19. package/dist/{SchedulerSelector.vue_vue_type_script_setup_true_lang-CArE_Hua.js → SchedulerSelector.vue_vue_type_script_setup_true_lang-DQNfBh14.js} +1 -1
  20. package/dist/ServingSequence-lNzb6f-1.js +4 -0
  21. package/dist/{Setting-BbgJcWsN.js → Setting-C8gm77EA.js} +1 -1
  22. package/dist/{Setting.vue_vue_type_script_setup_true_lang-BbVEzNve.js → Setting.vue_vue_type_script_setup_true_lang-BR3_ywqR.js} +13 -12
  23. package/dist/{Takeaway-wAXsZQN2.js → Takeaway-CCw_DHze.js} +12 -12
  24. package/dist/{Takeaway-CMDFYeUw.js → Takeaway-DbHgvpIH.js} +1 -1
  25. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-DSphRs_i.js → Takeaway.vue_vue_type_script_setup_true_lang-DsUQ3Dlh.js} +22 -21
  26. package/dist/{TaxSetting-C1XOTv-9.js → TaxSetting-BQdKVfBi.js} +4 -4
  27. package/dist/{Unit-BW3iqgp8.js → Unit-M217TP4K.js} +22 -21
  28. package/dist/{Variant-BJIxp9PJ.js → Variant-Boy7TugQ.js} +10 -10
  29. package/dist/{_id_-B25OxuPV.js → _id_-DA8Gpcqf.js} +6 -6
  30. package/dist/{app-BFJlAowN.js → app-rWkFl8Vq.js} +43468 -73420
  31. package/dist/app.js +4 -4
  32. package/dist/assets/linked-status-C8QAoUQr.js +24 -0
  33. package/dist/assets/validate-menu-DuCKFpOM.js +24 -0
  34. package/dist/{catalog-Do7RfIKm.js → catalog-Bas11mgo.js} +21595 -21593
  35. package/dist/{catalog-B-Z6lEFK.js → catalog-CfrgLaRX.js} +1 -1
  36. package/dist/{category-DEWEor3m.js → category-D-4M9HY7.js} +5 -4
  37. package/dist/currency-BPHwez-E.js +7 -0
  38. package/dist/index-Cwb_hpVz.js +7393 -0
  39. package/dist/{index-BEdHzZvu.js → index-v25k4isU.js} +47 -47
  40. package/dist/{item-BooojPpg.js → item-DTVh14mw.js} +1195 -1194
  41. package/dist/{lodash-247YxYiQ.js → lodash-BsZHKgKE.js} +439 -439
  42. package/dist/{menu-DCnWrgH7.js → menu-CUz01P4H.js} +6 -5
  43. package/dist/{object-B2cP_UeG.js → object-CbSdUbPF.js} +25 -25
  44. package/dist/{scheduler-0cChIv2I.js → scheduler-BuIczYeS.js} +13 -12
  45. package/dist/{takeaway-mwqVQ1ij.js → takeaway-DC-YsV2Q.js} +28 -27
  46. package/dist/{toExcel-Dha8Vf3u.js → toExcel-CaiFM8FE.js} +237 -237
  47. package/dist/{unit-BgfdgXAu.js → unit-D_VflvJf.js} +6 -5
  48. package/dist/{vuedraggable-BEszc36M.js → vuedraggable-WU01qJgi.js} +110 -110
  49. package/package.json +3 -3
  50. package/dist/ServingSequence-DxDMeto7.js +0 -4
  51. package/dist/assets/linked-status-4i88AmvK.js +0 -24
  52. package/dist/assets/validate-menu-CTKwgXfw.js +0 -24
  53. package/dist/currency-33gUke3q.js +0 -7
  54. package/dist/index-BXl09ebx.js +0 -21908
@@ -1,15 +1,16 @@
1
- import { defineComponent as W, ref as S, resolveComponent as D, 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 N, computed as g, createBlock as P, renderList as ne, normalizeClass as K, watch as Oe, mergeProps as we, createCommentVNode as E, createSlots as Ce, withModifiers as De, 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-BFJlAowN.js";
3
- import { _ as le } from "./SchedulerSelector.vue_vue_type_script_setup_true_lang-CArE_Hua.js";
4
- import { M as ae, S as Se, _ as Te, A as Ie, e as $e, a as Ye } from "./item-BooojPpg.js";
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-B-Z6lEFK.js";
7
- import { l as z, u as qe } from "./lodash-247YxYiQ.js";
8
- import { _ as He } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-Ds2qfY_X.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, d as Ae, g as Fe, a as Ge, k as Ve, e as v, m as Ne, i as Pe, h as Re, f as Ue } from "./app-rWkFl8Vq.js";
3
+ import { _ as le } from "./SchedulerSelector.vue_vue_type_script_setup_true_lang-DQNfBh14.js";
4
+ import { M as ae, S as Ee, _ as Se, A as Te, e as Ie, a as $e } from "./item-DTVh14mw.js";
5
+ import { components as Ye, useBreakpoints as re, useSnackbar as Le, useDialog as ze, FmButtonVariant as je } from "@feedmepos/ui-library";
6
+ import { Dinero as Ke } from "@feedmepos/core";
7
+ import { C as Be } from "./catalog-CfrgLaRX.js";
8
+ import { l as z, u as qe } from "./lodash-BsZHKgKE.js";
9
+ import { _ as He } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-DxlJ6xrN.js";
9
10
  import { useI18n as se } from "@feedmepos/mf-common";
10
- import { d as Je } from "./vuedraggable-BEszc36M.js";
11
+ import { V as Je } from "./vuedraggable-WU01qJgi.js";
11
12
  import { _ as Qe, a as We } from "./BottomSheetMenuItem.vue_vue_type_script_setup_true_lang-DPis3HVx.js";
12
- import { c as Xe } from "./object-B2cP_UeG.js";
13
+ import { c as Xe } from "./object-CbSdUbPF.js";
13
14
  const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items-center justify-start" }, tt = /* @__PURE__ */ W({
14
15
  __name: "ApplyProductDialog",
15
16
  props: {
@@ -29,14 +30,14 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
29
30
  Ae.isBoolean(r) ? f.value = r : f.value = !f.value, f.value && (O.value = l.initialValue.map((c) => ({ _id: c })));
30
31
  }, x = ue();
31
32
  return (r, c) => {
32
- const j = D("fm-button"), s = D("fm-side-sheet");
33
+ const j = C("fm-button"), s = C("fm-side-sheet");
33
34
  return p(), F(T, null, [
34
35
  ke(r.$slots, "default", { trigger: w }),
35
36
  m(s, {
36
37
  id: "group-form",
37
38
  modelValue: f.value,
38
39
  "onUpdate:modelValue": c[1] || (c[1] = ($) => f.value = $),
39
- "is-container": o(Le).FmForm,
40
+ "is-container": o(Ye).FmForm,
40
41
  "is-container-props": {
41
42
  onValidationSuccess: () => {
42
43
  M("apply:product", O.value), w(!1);
@@ -48,7 +49,7 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
48
49
  "onOn:clickedAway": o(R)
49
50
  }, {
50
51
  "side-sheet-header": h(() => [
51
- d("p", Ze, N(r.title), 1)
52
+ d("p", Ze, V(r.title), 1)
52
53
  ]),
53
54
  "side-sheet-footer": h(() => [
54
55
  d("div", et, [
@@ -90,10 +91,10 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
90
91
  setup(B) {
91
92
  const I = re(), l = g(() => I.breakpoints.value.xs);
92
93
  return (M, G) => {
93
- const k = D("FmButton"), O = D("FmMenuItem"), R = D("FmMenu");
94
- return l.value ? (p(), P(Qe, { key: 0 }, {
94
+ const k = C("FmButton"), O = C("FmMenuItem"), R = C("FmMenu");
95
+ return l.value ? (p(), N(Qe, { key: 0 }, {
95
96
  default: h(() => [
96
- (p(!0), F(T, null, ne(M.items, ({ icon: f, label: w, disabled: x, itemClass: r, onClick: c }) => (p(), P(We, {
97
+ (p(!0), F(T, null, ne(M.items, ({ icon: f, label: w, disabled: x, itemClass: r, onClick: c }) => (p(), N(We, {
97
98
  key: w,
98
99
  icon: f,
99
100
  label: w,
@@ -105,7 +106,7 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
105
106
  }, null, 8, ["icon", "label", "disabled", "itemClass", "onClick"]))), 128))
106
107
  ]),
107
108
  _: 1
108
- })) : (p(), P(R, {
109
+ })) : (p(), N(R, {
109
110
  key: 1,
110
111
  "stop-click-propagation": "",
111
112
  shift: !0
@@ -120,7 +121,7 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
120
121
  })
121
122
  ]),
122
123
  default: h(() => [
123
- (p(!0), F(T, null, ne(M.items, ({ icon: f, label: w, disabled: x, itemClass: r, onClick: c }) => (p(), P(O, {
124
+ (p(!0), F(T, null, ne(M.items, ({ icon: f, label: w, disabled: x, itemClass: r, onClick: c }) => (p(), N(O, {
124
125
  key: w,
125
126
  disabled: x,
126
127
  onClick: () => {
@@ -131,7 +132,7 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
131
132
  label: h(() => [
132
133
  d("span", {
133
134
  class: K(x ? "text-fm-color-typo-disabled" : r)
134
- }, N(w), 3)
135
+ }, V(w), 3)
135
136
  ]),
136
137
  _: 2
137
138
  }, 1032, ["disabled", "onClick", "label"]))), 128))
@@ -165,16 +166,16 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
165
166
  class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
166
167
  }, pt = {
167
168
  class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
168
- }, Mt = /* @__PURE__ */ W({
169
+ }, xt = /* @__PURE__ */ W({
169
170
  __name: "Group",
170
171
  emits: ["update:count"],
171
172
  setup(B, {
172
173
  emit: I
173
174
  }) {
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
+ const l = ue(), M = Fe(Ge(Le())), G = ze(), k = g(() => l.rules.group), O = g(() => new ae(l, M.updateMenu, G)), R = g(() => O.value.mapGroups(l.groups, !1)), {
175
176
  searchKey: f,
176
177
  filter: w
177
- } = Ne(), 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} ${Pe.Dinero.fromFdoDinero(e.price).toFormat()}`), t.type])).filter((t) => !r.value || t.type === r.value)), j = I;
178
+ } = 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} ${Ke.fromFdoDinero(e.price).toFormat()}`), t.type])).filter((t) => !r.value || t.type === r.value)), j = I;
178
179
  Oe(() => c.value.length, () => {
179
180
  j("update:count", c.value.length);
180
181
  }, {
@@ -182,7 +183,7 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
182
183
  });
183
184
  const s = g(() => !!l.state.currentCatalogId || !!l.state.currentSchedulerId);
184
185
  function $(t) {
185
- const e = !l.state.currentSchedulerId, a = l.rules.item.bindToVariant, i = l.rules.group.type, _ = l.version === v.F_MENU_VERSION.enum.v3, C = l.rules.item.orderFromActiveOnly;
186
+ 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
187
  return {
187
188
  link: (b) => !s.value && (!b || a),
188
189
  name: (b) => !s.value && !b,
@@ -190,7 +191,7 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
190
191
  price: t.type !== v.F_ADDON_GROUP_TYPE.enum.DYNAMIC,
191
192
  inventory: e ? _ ? !s.value && t.type === v.F_ADDON_GROUP_TYPE.enum.NORMAL : !s.value : !1,
192
193
  orderFrom: (b) => e ? _ ? t.type === v.F_ADDON_GROUP_TYPE.enum.DYNAMIC ? s.value : !!s.value == !b : s.value : !1,
193
- orderFromActiveOnly: C,
194
+ orderFromActiveOnly: D,
194
195
  showOrderFrom: e ? _ ? s.value ? !0 : t.type === v.F_ADDON_GROUP_TYPE.enum.PRODUCT : s.value : !1,
195
196
  bindToVariant: a,
196
197
  isOverride: s.value,
@@ -217,7 +218,7 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
217
218
  };
218
219
  };
219
220
  }), me = g(() => ({
220
- ...Ve.generator.initMenuV4Group(),
221
+ ...Ne.generator.initMenuV4Group(),
221
222
  type: l.version === v.F_MENU_VERSION.enum.v4 ? v.F_ADDON_GROUP_TYPE.enum.PRODUCT : v.F_ADDON_GROUP_TYPE.enum.NORMAL,
222
223
  items: {},
223
224
  position: l.groups.length - 1,
@@ -242,22 +243,22 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
242
243
  }
243
244
  }).onPrimary(() => O.value.duplicateGroup(t));
244
245
  }
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
+ const H = g(() => l.currentCatalog), Y = g(() => l.currentScheduler), L = g(() => new Be(H.value, l, M.updateMenu, G)), J = g(() => new Ee(Y.value, l, M.updateMenu, G)), de = (t) => {
246
247
  let e = t;
247
248
  if (s.value) {
248
- let i = function(C) {
249
- const A = l.state.menu.modules.group.find((y) => y._id === C._id), Q = (C.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
+ let i = function(D) {
250
+ 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) => {
251
+ var P;
252
+ return !((P = Q[y._id]) != null && P.includes(y.combinationKey || ""));
252
253
  }).map((y) => ({
253
254
  _id: y._id,
254
255
  combinationKey: y.combinationKey,
255
256
  selection: y.selection
256
- })).filter((y) => !!l.mergedMenu.modules.item.find((V) => V._id === y._id));
257
+ })).filter((y) => !!l.mergedMenu.modules.item.find((P) => P._id === y._id));
257
258
  return {
258
259
  ...A,
259
- ...Object.fromEntries(Object.entries(C).filter(([, y]) => !!y)),
260
- items: [...C.items ?? [], ...he]
260
+ ...Object.fromEntries(Object.entries(D).filter(([, y]) => !!y)),
261
+ items: [...D.items ?? [], ...he]
261
262
  };
262
263
  }, a;
263
264
  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);
@@ -279,7 +280,7 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
279
280
  primaryActions: {
280
281
  text: n("menu.common.actions.delete"),
281
282
  close: !0,
282
- variant: Ke.Destructive
283
+ variant: je.Destructive
283
284
  },
284
285
  secondaryActions: {
285
286
  text: n("menu.common.actions.cancel"),
@@ -292,7 +293,7 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
292
293
  return Me(tt, {
293
294
  key: e._id,
294
295
  initialValue: e.itemsLinked,
295
- group: $e(e),
296
+ group: Ie(e),
296
297
  editable: k.value.applyProduct,
297
298
  "onApply:product": async (a) => {
298
299
  await O.value.applyItems(e, a.map((i) => i._id));
@@ -334,10 +335,10 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
334
335
  enableSorting: !1,
335
336
  cell: (t) => {
336
337
  const e = t.getValue(), a = Object.values(e).map((i) => {
337
- var C;
338
+ var D;
338
339
  const _ = [(i == null ? void 0 : i.code) || "", i.name ?? i.fallbackName].join(" ").trim();
339
340
  return (i.items || []).length > 1 ? `${_} (${n("menu.group.list.variants", {
340
- count: (C = i.items) == null ? void 0 : C.length
341
+ count: (D = i.items) == null ? void 0 : D.length
341
342
  })})` : _;
342
343
  });
343
344
  return a.length > 5 ? `${a.slice(0, 5).join(", ")} ${n("menu.group.list.more_items", {
@@ -386,13 +387,13 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
386
387
  itemsLinked: k.value.showAppliedProduct,
387
388
  type: k.value.type
388
389
  })), _e = async (t) => {
389
- const e = Ye(t), a = e.group;
390
+ const e = $e(t), a = e.group;
390
391
  if (s.value)
391
392
  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
393
  else {
393
394
  const i = {
394
395
  module: v.F_MENU_MODULE_V4_KEY.enum.group,
395
- operation: Ee.F_OPERATION_TYPE.update,
396
+ operation: Ue.F_OPERATION_TYPE.update,
396
397
  data: a,
397
398
  link: [{
398
399
  module: v.F_MENU_MODULE_V4_KEY.enum.item,
@@ -413,8 +414,8 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
413
414
  t: n
414
415
  } = se();
415
416
  return (t, e) => {
416
- const a = D("fm-button"), i = D("fm-chip"), _ = D("fm-menu-item"), C = D("fm-menu"), b = D("fm-search"), A = D("fm-table"), Q = D("fm-bottom-sheet");
417
- return p(), F(T, null, [U.value ? (p(), P(Te, we({
417
+ 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");
418
+ return p(), F(T, null, [U.value ? (p(), N(Se, we({
418
419
  ref_key: "groupManagerFormRef",
419
420
  ref: ee,
420
421
  key: U.value._id
@@ -424,20 +425,20 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
424
425
  group: U.value,
425
426
  "onUpdate:group": e[0] || (e[0] = (u) => U.value = u),
426
427
  "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
+ }), null, 16, ["title", "group"])) : E("", !0), R.value.length === 0 ? (p(), F("div", ot, [m(Pe, {
428
429
  subtitle: o(n)("menu.group.empty.subtitle"),
429
430
  title: o(n)("menu.group.empty.title")
430
- }, Ce({
431
+ }, De({
431
432
  _: 2
432
433
  }, [k.value.create ? {
433
434
  name: "action",
434
- fn: h(() => [m(o(Ie), null, {
435
+ fn: h(() => [m(o(Te), null, {
435
436
  default: h(({
436
437
  trigger: u
437
438
  }) => [m(a, {
438
439
  "prepend-icon": "add",
439
440
  label: o(n)("menu.group.actions.add"),
440
- onClick: De(u, ["stop"])
441
+ onClick: Ce(u, ["stop"])
441
442
  }, null, 8, ["label", "onClick"])]),
442
443
  _: 1
443
444
  })]),
@@ -453,9 +454,9 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
453
454
  placeholder: o(n)("menu.group.search.placeholder")
454
455
  }, null, 8, ["modelValue", "placeholder"])]), e[15] || (e[15] = d("div", {
455
456
  class: "bg-fm-color-neutral-gray-100 w-full h-px rounded-md"
456
- }, null, -1)), d("div", st, [k.value.multiScheduler ? (p(), P(le, {
457
+ }, null, -1)), d("div", st, [k.value.multiScheduler ? (p(), N(le, {
457
458
  key: 0
458
- })) : E("", !0), q.value ? (p(), P(Q, {
459
+ })) : E("", !0), q.value ? (p(), N(Q, {
459
460
  key: 1,
460
461
  modelValue: x.value,
461
462
  "onUpdate:modelValue": e[13] || (e[13] = (u) => x.value = u)
@@ -470,16 +471,16 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
470
471
  default: h(() => [d("div", null, [d("div", {
471
472
  class: "px-16 py-8",
472
473
  onClick: e[9] || (e[9] = (u) => r.value = null)
473
- }, N(o(n)("menu.group.type.all")), 1), d("div", {
474
+ }, V(o(n)("menu.group.type.all")), 1), d("div", {
474
475
  class: "px-16 py-8",
475
476
  onClick: e[10] || (e[10] = (u) => r.value = "NORMAL")
476
- }, N(o(n)("menu.group.type.normal")), 1), d("div", {
477
+ }, V(o(n)("menu.group.type.normal")), 1), d("div", {
477
478
  class: "px-16 py-8",
478
479
  onClick: e[11] || (e[11] = (u) => r.value = "PRODUCT")
479
- }, N(o(n)("menu.group.type.product")), 1), d("div", {
480
+ }, V(o(n)("menu.group.type.product")), 1), d("div", {
480
481
  class: "px-16 py-8",
481
482
  onClick: e[12] || (e[12] = (u) => r.value = "DYNAMIC")
482
- }, N(o(n)("menu.group.type.dynamic")), 1)])]),
483
+ }, V(o(n)("menu.group.type.dynamic")), 1)])]),
483
484
  _: 1
484
485
  }, 8, ["modelValue"])) : E("", !0)]), m(o(Je), {
485
486
  class: K(["flex-1", "overflow-scroll", "divide-y divide-fm-color-neutral-gray-100", "pb-64"]),
@@ -494,15 +495,15 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
494
495
  }) => [(p(), F("div", {
495
496
  key: u._id,
496
497
  class: K(["py-12 px-16", "flex space-x-16", "items-center"])
497
- }, [d("div", it, [d("div", mt, [d("p", ct, N(u.name), 1), d("div", null, [q.value ? (p(), F("p", dt, N(o(z.capitalize)(u.type)) + " type ", 1)) : E("", !0), d("p", pt, N(o(n)("menu.group.list.products_linked", {
498
+ }, [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
499
  count: u.itemsLinked.length
499
500
  })), 1)])]), m(Z, {
500
501
  group: u
501
502
  }, null, 8, ["group"])])]))]),
502
503
  _: 1
503
- }, 8, ["model-value"])], 64)) : (p(), F("div", lt, [d("div", at, [k.value.multiScheduler ? (p(), P(le, {
504
+ }, 8, ["model-value"])], 64)) : (p(), F("div", lt, [d("div", at, [k.value.multiScheduler ? (p(), N(le, {
504
505
  key: 0
505
- })) : E("", !0), q.value ? (p(), P(C, {
506
+ })) : E("", !0), q.value ? (p(), N(D, {
506
507
  key: 1
507
508
  }, {
508
509
  "menu-button": h(() => [m(i, {
@@ -535,7 +536,7 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
535
536
  modelValue: o(f),
536
537
  "onUpdate:modelValue": e[6] || (e[6] = (u) => oe(f) ? f.value = u : null),
537
538
  placeholder: o(n)("menu.group.search.placeholder")
538
- }, null, 8, ["modelValue", "placeholder"])])]), m(Ue, null, {
539
+ }, null, 8, ["modelValue", "placeholder"])])]), m(Re, null, {
539
540
  default: h(() => [m(A, {
540
541
  "column-defs": ve.value,
541
542
  "column-visibility": fe.value,
@@ -556,5 +557,5 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
556
557
  }
557
558
  });
558
559
  export {
559
- Mt as _
560
+ xt as _
560
561
  };
@@ -1,8 +1,8 @@
1
- import { b as k, d as c, u as q, H as G, g as C } from "./app-BFJlAowN.js";
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";
1
+ import { e as k, c, u as q, E as G, d as C } from "./app-rWkFl8Vq.js";
2
+ import { defineComponent as j, computed as V, ref as b, watch as H, 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-A26Otbdm.js";
5
+ import { L as ae } from "./LinkProductSideSheet-CBHtwxCb.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 {
@@ -64,7 +64,7 @@ class T {
64
64
  const oe = { class: "space-y-16" }, ne = { class: "ml-32 mt-16 space-y-8" }, re = {
65
65
  key: 0,
66
66
  class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary"
67
- }, pe = /* @__PURE__ */ H({
67
+ }, pe = /* @__PURE__ */ j({
68
68
  __name: "GroupMarkupPriceDialog",
69
69
  props: {
70
70
  modelValue: {},
@@ -76,15 +76,15 @@ const oe = { class: "space-y-16" }, ne = { class: "ml-32 mt-16 space-y-8" }, re
76
76
  setup(p, { emit: e }) {
77
77
  const n = p, g = q();
78
78
  Y();
79
- const { t: r } = te(), M = e, w = F(() => n.action === "add" ? r("menu.markup.dialog.title.add") : r("menu.markup.dialog.title.update")), m = V(!1), b = (t) => {
79
+ const { t: r } = te(), M = e, w = V(() => n.action === "add" ? r("menu.markup.dialog.title.add") : r("menu.markup.dialog.title.update")), m = b(!1), x = (t) => {
80
80
  C.isBoolean(t) ? m.value = t : m.value = !m.value;
81
- }, a = V(
81
+ }, a = b(
82
82
  n.modelValue ? c(n.modelValue) : {
83
83
  percentage: 0,
84
84
  includeItems: null
85
85
  }
86
86
  );
87
- j(
87
+ H(
88
88
  () => m.value,
89
89
  (t) => {
90
90
  t && (a.value = n.modelValue ? c(n.modelValue) : {
@@ -92,26 +92,26 @@ const oe = { class: "space-y-16" }, ne = { class: "ml-32 mt-16 space-y-8" }, re
92
92
  includeItems: null
93
93
  });
94
94
  }
95
- ), F(
95
+ ), V(
96
96
  () => G(g.variants, n.categories, n.items)
97
97
  );
98
- function z(t) {
98
+ function E(t) {
99
99
  a.value = {
100
100
  ...a.value,
101
101
  includeItems: t
102
102
  };
103
103
  }
104
- const f = V(
104
+ const f = b(
105
105
  0
106
106
  /* ALL */
107
107
  );
108
- function A(t) {
108
+ function z(t) {
109
109
  f.value = t, a.value = {
110
110
  ...a.value,
111
111
  includeItems: t === 0 ? null : []
112
112
  };
113
113
  }
114
- const D = F(() => [
114
+ const A = V(() => [
115
115
  {
116
116
  label: r("menu.markup.dialog.options.all"),
117
117
  value: 0
@@ -123,21 +123,21 @@ const oe = { class: "space-y-16" }, ne = { class: "ml-32 mt-16 space-y-8" }, re
123
123
  /* CUSTOM */
124
124
  }
125
125
  ]);
126
- async function E() {
127
- M("update:model-value", a.value), b(!1);
126
+ async function D() {
127
+ M("update:model-value", a.value), x(!1);
128
128
  }
129
129
  return J(() => {
130
130
  f.value = a.value && a.value.includeItems === null ? 0 : 1;
131
131
  }), (t, u) => {
132
- const N = s("fm-icon"), B = s("fm-stepper-field"), U = s("fm-radio"), P = s("fm-radio-group"), x = s("fm-button"), $ = s("fm-dialog");
132
+ const N = s("fm-icon"), B = s("fm-stepper-field"), U = s("fm-radio"), P = s("fm-radio-group"), F = s("fm-button"), $ = s("fm-dialog");
133
133
  return _(), y(S, null, [
134
- K(t.$slots, "default", { trigger: b }),
134
+ K(t.$slots, "default", { trigger: x }),
135
135
  i($, {
136
136
  modelValue: m.value,
137
137
  "onUpdate:modelValue": u[3] || (u[3] = (v) => m.value = v),
138
138
  "is-component": o(Z).FmForm,
139
139
  "is-component-props": {
140
- onValidationSuccess: E
140
+ onValidationSuccess: D
141
141
  },
142
142
  "z-index": 101
143
143
  }, {
@@ -145,13 +145,13 @@ const oe = { class: "space-y-16" }, ne = { class: "ml-32 mt-16 space-y-8" }, re
145
145
  Q(I(w.value), 1)
146
146
  ]),
147
147
  "dialog-footer": d(() => [
148
- i(x, {
148
+ i(F, {
149
149
  class: "sm:w-full xs:w-full ml-auto",
150
150
  label: "Cancel",
151
151
  variant: "tertiary",
152
- onClick: u[2] || (u[2] = (v) => b(!1))
152
+ onClick: u[2] || (u[2] = (v) => x(!1))
153
153
  }),
154
- i(x, {
154
+ i(F, {
155
155
  label: o(X)(t.action),
156
156
  class: "sm:w-full xs:w-full",
157
157
  size: "md",
@@ -185,12 +185,12 @@ const oe = { class: "space-y-16" }, ne = { class: "ml-32 mt-16 space-y-8" }, re
185
185
  modelValue: f.value,
186
186
  "onUpdate:modelValue": [
187
187
  u[1] || (u[1] = (l) => f.value = l),
188
- A
188
+ z
189
189
  ],
190
190
  class: "space-y-8"
191
191
  }, {
192
192
  default: d(() => [
193
- (_(!0), y(S, null, W(D.value, (l) => (_(), R(U, {
193
+ (_(!0), y(S, null, W(A.value, (l) => (_(), R(U, {
194
194
  key: l.value,
195
195
  label: l.label,
196
196
  value: l.value
@@ -204,10 +204,10 @@ const oe = { class: "space-y-16" }, ne = { class: "ml-32 mt-16 space-y-8" }, re
204
204
  "categorized-items": o(g).categorizedItems,
205
205
  "initial-value": a.value.includeItems || [],
206
206
  "show-variant": !1,
207
- onSubmit: z
207
+ onSubmit: E
208
208
  }, {
209
209
  default: d(({ trigger: l }) => [
210
- f.value === 1 ? (_(), R(x, {
210
+ f.value === 1 ? (_(), R(F, {
211
211
  key: 0,
212
212
  "text-color": o(L).ColorPrimary,
213
213
  "border-color": o(L).ColorPrimary,