@feedmepos/mf-menu 0.20.1 → 0.20.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-CYQnhiBN.js → ApplyProduct.vue_vue_type_script_setup_true_lang-Ds2qfY_X.js} +2 -2
  2. package/dist/{ApplyProducts.vue_vue_type_script_setup_true_lang-DKlRd-kN.js → ApplyProducts.vue_vue_type_script_setup_true_lang-BRepaPR3.js} +2 -2
  3. package/dist/{Catalog-C_MjlkAH.js → Catalog-S5KDEWzG.js} +3 -3
  4. package/dist/{Category-hDpbuKdl.js → Category-DLaNEtA5.js} +6 -6
  5. package/dist/{CookingGuide-DoTQcfZo.js → CookingGuide-DSGZapxz.js} +4 -4
  6. package/dist/{Group-CnbKRGYg.js → Group-B0VQ-64x.js} +4 -4
  7. package/dist/{Group-CIwshUNs.js → Group-CBMSkmwQ.js} +1 -1
  8. package/dist/{Group.vue_vue_type_script_setup_true_lang-BmqRBXoX.js → Group.vue_vue_type_script_setup_true_lang-DKzrhXtM.js} +43 -43
  9. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BKuXmC_M.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BV-FC8tM.js} +2 -2
  10. package/dist/{Ingredient-E4dxFuRx.js → Ingredient-CnPQ0kiR.js} +5 -5
  11. package/dist/{LinkProductSideSheet-CN4VpQoC.js → LinkProductSideSheet-A26Otbdm.js} +9 -9
  12. package/dist/{PrintRoute-Cp9qAt37.js → PrintRoute-BlJMdPP0.js} +3 -3
  13. package/dist/{Product-CukHHpY7.js → Product-BvD813LL.js} +1 -1
  14. package/dist/{Product.vue_vue_type_script_setup_true_lang-Bwlojikf.js → Product.vue_vue_type_script_setup_true_lang-D_oKtXbh.js} +251 -247
  15. package/dist/{Products----2Vzee.js → Products-B8Ok-bkN.js} +8 -8
  16. package/dist/{Publish-CTL7_VDW.js → Publish-qBiJUQ4X.js} +33 -33
  17. package/dist/{Recipe-C71_p_4o.js → Recipe-CJxJJAUV.js} +34 -34
  18. package/dist/{Scheduler-CMY10OCN.js → Scheduler-DfAMwXCu.js} +2 -2
  19. package/dist/{SchedulerSelector.vue_vue_type_script_setup_true_lang-DIyqCShi.js → SchedulerSelector.vue_vue_type_script_setup_true_lang-CArE_Hua.js} +1 -1
  20. package/dist/ServingSequence-DxDMeto7.js +4 -0
  21. package/dist/{Setting-N_IomrUQ.js → Setting-BbgJcWsN.js} +1 -1
  22. package/dist/{Setting.vue_vue_type_script_setup_true_lang-BTiZlc2E.js → Setting.vue_vue_type_script_setup_true_lang-BbVEzNve.js} +3 -3
  23. package/dist/{Takeaway-C6wwnu5v.js → Takeaway-CMDFYeUw.js} +1 -1
  24. package/dist/{Takeaway-DThy6R7w.js → Takeaway-wAXsZQN2.js} +4 -4
  25. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-CrIDoLuT.js → Takeaway.vue_vue_type_script_setup_true_lang-DSphRs_i.js} +4 -4
  26. package/dist/{TaxSetting-f09g9uzO.js → TaxSetting-C1XOTv-9.js} +4 -4
  27. package/dist/{Unit-DpN-cIoI.js → Unit-BW3iqgp8.js} +2 -2
  28. package/dist/{Variant-DVj3Rl1M.js → Variant-BJIxp9PJ.js} +2 -2
  29. package/dist/{_id_-D_LlvKj8.js → _id_-B25OxuPV.js} +6 -6
  30. package/dist/{app-Cn8ejMq2.js → app-BFJlAowN.js} +63563 -80078
  31. package/dist/app.js +2 -2
  32. package/dist/assets/linked-status-4i88AmvK.js +24 -0
  33. package/dist/assets/validate-menu-CTKwgXfw.js +24 -0
  34. package/dist/{catalog-DYe86x7O.js → catalog-B-Z6lEFK.js} +1 -1
  35. package/dist/{catalog-B4hTLUkg.js → catalog-Do7RfIKm.js} +22510 -22511
  36. package/dist/{category-Cn9bav8Y.js → category-DEWEor3m.js} +14 -14
  37. package/dist/{currency-ak89ne8W.js → currency-33gUke3q.js} +1 -1
  38. package/dist/{index-B-PHXxgb.js → index-BEdHzZvu.js} +44 -44
  39. package/dist/index-BXl09ebx.js +21908 -0
  40. package/dist/{item-CtPBj2_Y.js → item-BooojPpg.js} +930 -930
  41. package/dist/{lodash-QRXx-M3X.js → lodash-247YxYiQ.js} +439 -439
  42. package/dist/{menu-DyHXKzGq.js → menu-DCnWrgH7.js} +1 -1
  43. package/dist/{object-DrR2KRA7.js → object-B2cP_UeG.js} +19 -19
  44. package/dist/{scheduler-C8HLf4JH.js → scheduler-0cChIv2I.js} +4 -4
  45. package/dist/{takeaway-D1YMjOoE.js → takeaway-mwqVQ1ij.js} +4 -4
  46. package/dist/{toExcel-CeOvEnsu.js → toExcel-Dha8Vf3u.js} +237 -237
  47. package/dist/{unit-DJPAcXZf.js → unit-BgfdgXAu.js} +3 -3
  48. package/dist/{vuedraggable-WU01qJgi.js → vuedraggable-BEszc36M.js} +110 -110
  49. package/package.json +3 -3
  50. package/dist/ServingSequence-C6L1_ijp.js +0 -4
  51. package/dist/assets/linked-status-CcasRdDR.js +0 -24
  52. package/dist/assets/validate-menu-Dsx_6ljN.js +0 -24
  53. package/dist/index-D1sxBB7B.js +0 -7392
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as U, computed as i, h as u, ref as K, resolveComponent as g, openBlock as d, createElementBlock as p, createVNode as v, withCtx as h, createElementVNode as V, createBlock as j, unref as n, createCommentVNode as C, toDisplayString as A, isRef as D, Fragment as G, renderList as H } from "vue";
2
- import { u as M, n as O, U as $ } from "./app-Cn8ejMq2.js";
2
+ import { u as M, n as O, U as $ } from "./app-BFJlAowN.js";
3
3
  import { components as I, FmButtonVariant as B, FmButtonColorThemeVariant as b } from "@feedmepos/ui-library";
4
- import { L as q } from "./LinkProductSideSheet-CN4VpQoC.js";
4
+ import { L as q } from "./LinkProductSideSheet-A26Otbdm.js";
5
5
  import { _ as J } from "./FormSection.vue_vue_type_script_setup_true_lang-BWJUD8NZ.js";
6
6
  import { useI18n as Q } from "@feedmepos/mf-common";
7
7
  const W = { class: "space-y-16" }, X = { class: "flex items-center space-x-24" }, Y = {
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as T, ref as y, computed as k, resolveComponent as m, openBlock as p, createBlock as w, unref as G, withCtx as f, createElementVNode as s, createVNode as u, toDisplayString as g, createElementBlock as b, Fragment as F, renderList as B } from "vue";
2
- import { d as V } from "./app-Cn8ejMq2.js";
2
+ import { d as V } from "./app-BFJlAowN.js";
3
3
  import "@feedmepos/ui-library";
4
4
  import "@feedmepos/mf-common";
5
- import { u as H, l as J } from "./lodash-QRXx-M3X.js";
5
+ import { u as H, l as J } from "./lodash-247YxYiQ.js";
6
6
  const M = { class: "flex items-center gap-8" }, Q = { class: "flex flex-col h-full" }, R = { class: "flex items-center gap-24 mb-16" }, W = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, X = { class: "flex-1" }, Y = { class: "grow overflow-y-auto py-16 space-y-24" }, Z = { class: "flex items-center" }, ee = { class: "ml-8 fm-card__title grow overflow-hidden text-nowrap text-ellipsis" }, te = { class: "ml-16" }, le = { class: "flex gap-8 items-center justify-start" }, ie = /* @__PURE__ */ T({
7
7
  __name: "ApplyProducts",
8
8
  props: {
@@ -1,10 +1,10 @@
1
1
  import { defineComponent as ie, ref as I, computed as $, resolveComponent as g, openBlock as m, createElementBlock as b, Fragment as V, renderSlot as ye, createVNode as i, unref as e, withCtx as p, createElementVNode as f, renderList as w, createBlock as F, createCommentVNode as z, createTextVNode as be, toDisplayString as k, h as J, withModifiers as Q, normalizeClass as ee } from "vue";
2
2
  import { useCoreStore as ce, useI18n as me } from "@feedmepos/mf-common";
3
- import { b as O, u as de, i as pe, a as fe, m as oe, c as xe, g as ke, d as ae, h as ge, x as ne, _ as Ce, k as he, j as Oe, R as se } from "./app-Cn8ejMq2.js";
4
- import { C as Fe } from "./catalog-DYe86x7O.js";
3
+ import { b as O, u as de, i as pe, a as fe, m as oe, c as xe, g as ke, d as ae, h as ge, w as ne, _ as Ce, k as he, j as Oe, R as se } from "./app-BFJlAowN.js";
4
+ import { C as Fe } from "./catalog-B-Z6lEFK.js";
5
5
  import { useRouter as Me } from "vue-router";
6
6
  import { useSnackbar as _e, components as le, FmButtonColorThemeVariant as W, FmButtonVariant as G, useDialog as De, useBreakpoints as Ve } from "@feedmepos/ui-library";
7
- import { C as R, a as L, _ as re } from "./GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BKuXmC_M.js";
7
+ import { C as R, a as L, _ as re } from "./GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BV-FC8tM.js";
8
8
  import { _ as Se } from "./FormSection.vue_vue_type_script_setup_true_lang-BWJUD8NZ.js";
9
9
  import { _ as te } from "./FormItem.vue_vue_type_script_setup_true_lang-DKsxEK-8.js";
10
10
  const Ae = { class: "space-y-32" }, Ne = {
@@ -1,13 +1,13 @@
1
1
  import { defineComponent as P, ref as w, computed as B, watch as re, resolveComponent as y, openBlock as h, createElementBlock as T, Fragment as Z, renderSlot as ie, createVNode as d, unref as e, withCtx as v, createElementVNode as o, toDisplayString as L, h as z, withModifiers as A, getCurrentInstance as ce, renderList as ue, createBlock as O, createCommentVNode as de } from "vue";
2
- import { u as j, a as me } from "./menu-DyHXKzGq.js";
3
- import { a as Y, u as pe, b as I, g as fe, h as ee, i as q, j as ge, _ as _e, k as ye, f as ve } from "./app-Cn8ejMq2.js";
2
+ import { u as j, a as me } from "./menu-DCnWrgH7.js";
3
+ import { a as Y, u as pe, b as I, g as fe, h as ee, i as q, j as ge, _ as _e, k as ye, f as ve } from "./app-BFJlAowN.js";
4
4
  import { useSnackbar as G, components as K, useDialog as te, FmButtonVariant as Q, useBreakpoints as he, FmButtonColorThemeVariant as be } from "@feedmepos/ui-library";
5
- import { u as ae } from "./category-Cn9bav8Y.js";
5
+ import { u as ae } from "./category-DEWEor3m.js";
6
6
  import { c as xe } from "./createForm-TSiJzrqa.js";
7
- import { c as W } from "./object-DrR2KRA7.js";
8
- import { u as Ce } from "./item-CtPBj2_Y.js";
7
+ import { c as W } from "./object-B2cP_UeG.js";
8
+ import { u as Ce } from "./item-BooojPpg.js";
9
9
  import { _ as X } from "./FormSection.vue_vue_type_script_setup_true_lang-BWJUD8NZ.js";
10
- import { u as ke } from "./lodash-QRXx-M3X.js";
10
+ import { u as ke } from "./lodash-247YxYiQ.js";
11
11
  import { useI18n as H } from "@feedmepos/mf-common";
12
12
  function we(p, f = "This field can't be empty.") {
13
13
  return p == null || Array.isArray(p) && p.length === 0 || typeof p == "string" && p.trim() === "" ? f : !0;
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as le, ref as h, computed as w, resolveComponent as x, openBlock as g, createBlock as P, unref as t, withCtx as c, createElementVNode as a, createVNode as i, toDisplayString as V, createElementBlock as $, Fragment as z, renderList as q, createTextVNode as be, withModifiers as se, createCommentVNode as ce, h as R } from "vue";
2
- import { d as Z, b as ee, h as ue, u as ye, i as ke, a as he, _ as xe, f as Ce, k as we, j as Ve } from "./app-Cn8ejMq2.js";
2
+ import { d as Z, b as ee, h as ue, u as ye, i as ke, a as he, _ as xe, f as Ce, k as we, j as Ve } from "./app-BFJlAowN.js";
3
3
  import { components as de, useSnackbar as Fe, useDialog as Se } from "@feedmepos/ui-library";
4
- import { V as $e } from "./vuedraggable-WU01qJgi.js";
5
- import { _ as Ie } from "./ApplyProducts.vue_vue_type_script_setup_true_lang-DKlRd-kN.js";
4
+ import { d as $e } from "./vuedraggable-BEszc36M.js";
5
+ import { _ as Ie } from "./ApplyProducts.vue_vue_type_script_setup_true_lang-BRepaPR3.js";
6
6
  import { useI18n as ie } from "@feedmepos/mf-common";
7
7
  import { _ as X } from "./FormSection.vue_vue_type_script_setup_true_lang-BWJUD8NZ.js";
8
- import { u as me, l as pe } from "./lodash-QRXx-M3X.js";
8
+ import { u as me, l as pe } from "./lodash-247YxYiQ.js";
9
9
  const Oe = { class: "flex items-center gap-8" }, De = { class: "grow" }, Ne = { class: "space-y-32" }, Le = { class: "flex bg-fm-color-neutral-gray-100 border-b border-b-fm-color-neutral-gray-200" }, Ue = { class: "px-16 py-8 w-[40%]" }, Ge = { class: "px-16 py-8 grow" }, Ke = { class: "flex items-center border-b border-b-fm-color-neutral-gray-100" }, Be = { class: "px-16 py-8 w-[40%]" }, Ee = { class: "px-16 py-8 grow" }, Me = { class: "space-y-16" }, ze = { class: "flex flex-wrap gap-8 overflow-hidden mb-8" }, Te = { class: "flex gap-8 items-center justify-start" }, Re = /* @__PURE__ */ le({
10
10
  __name: "CookingGuideStepDialog",
11
11
  emits: ["onComplete"],
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as m, ref as c, openBlock as i, createBlock as d, unref as n, withCtx as a, createVNode as l, createElementVNode as e, toDisplayString as p, createCommentVNode as u } from "vue";
2
- import { _ as f, f as _ } from "./app-Cn8ejMq2.js";
3
- import { _ as g } from "./Group.vue_vue_type_script_setup_true_lang-BmqRBXoX.js";
4
- import { a as y } from "./menu-DyHXKzGq.js";
5
- import { A as b } from "./item-CtPBj2_Y.js";
2
+ import { _ as f, f as _ } from "./app-BFJlAowN.js";
3
+ import { _ as g } from "./Group.vue_vue_type_script_setup_true_lang-DKzrhXtM.js";
4
+ import { a as y } from "./menu-DCnWrgH7.js";
5
+ import { A as b } from "./item-BooojPpg.js";
6
6
  import { useI18n as h } from "@feedmepos/mf-common";
7
7
  const v = { class: "flex-1 flex justify-between gap-8 pl-8" }, x = { class: "flex items-center" }, k = { class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4" }, C = { class: "fm-typo-en-body-md-600 font-semibold" }, S = /* @__PURE__ */ m({
8
8
  __name: "Group",
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./Group.vue_vue_type_script_setup_true_lang-BmqRBXoX.js";
1
+ import { _ as f } from "./Group.vue_vue_type_script_setup_true_lang-DKzrhXtM.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,15 +1,15 @@
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-Cn8ejMq2.js";
3
- import { _ as le } from "./SchedulerSelector.vue_vue_type_script_setup_true_lang-DIyqCShi.js";
4
- import { M as ae, S as Se, _ as Te, A as Ie, e as $e, a as Ye } from "./item-CtPBj2_Y.js";
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
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-DYe86x7O.js";
7
- import { l as z, u as qe } from "./lodash-QRXx-M3X.js";
8
- import { _ as He } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-CYQnhiBN.js";
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";
9
9
  import { useI18n as se } from "@feedmepos/mf-common";
10
- import { V as Je } from "./vuedraggable-WU01qJgi.js";
10
+ import { d as Je } from "./vuedraggable-BEszc36M.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-DrR2KRA7.js";
12
+ import { c as Xe } from "./object-B2cP_UeG.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: {
@@ -29,7 +29,7 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
29
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
31
  return (r, c) => {
32
- const j = C("fm-button"), s = C("fm-side-sheet");
32
+ const j = D("fm-button"), s = D("fm-side-sheet");
33
33
  return p(), F(T, null, [
34
34
  ke(r.$slots, "default", { trigger: w }),
35
35
  m(s, {
@@ -48,7 +48,7 @@ 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
- d("p", Ze, V(r.title), 1)
51
+ d("p", Ze, N(r.title), 1)
52
52
  ]),
53
53
  "side-sheet-footer": h(() => [
54
54
  d("div", et, [
@@ -90,10 +90,10 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
90
90
  setup(B) {
91
91
  const I = re(), l = g(() => I.breakpoints.value.xs);
92
92
  return (M, G) => {
93
- const k = C("FmButton"), O = C("FmMenuItem"), R = C("FmMenu");
94
- return l.value ? (p(), N(Qe, { key: 0 }, {
93
+ const k = D("FmButton"), O = D("FmMenuItem"), R = D("FmMenu");
94
+ return l.value ? (p(), P(Qe, { key: 0 }, {
95
95
  default: h(() => [
96
- (p(!0), F(T, null, ne(M.items, ({ icon: f, label: w, disabled: x, itemClass: r, onClick: c }) => (p(), N(We, {
96
+ (p(!0), F(T, null, ne(M.items, ({ icon: f, label: w, disabled: x, itemClass: r, onClick: c }) => (p(), P(We, {
97
97
  key: w,
98
98
  icon: f,
99
99
  label: w,
@@ -105,7 +105,7 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
105
105
  }, null, 8, ["icon", "label", "disabled", "itemClass", "onClick"]))), 128))
106
106
  ]),
107
107
  _: 1
108
- })) : (p(), N(R, {
108
+ })) : (p(), P(R, {
109
109
  key: 1,
110
110
  "stop-click-propagation": "",
111
111
  shift: !0
@@ -120,7 +120,7 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
120
120
  })
121
121
  ]),
122
122
  default: h(() => [
123
- (p(!0), F(T, null, ne(M.items, ({ icon: f, label: w, disabled: x, itemClass: r, onClick: c }) => (p(), N(O, {
123
+ (p(!0), F(T, null, ne(M.items, ({ icon: f, label: w, disabled: x, itemClass: r, onClick: c }) => (p(), P(O, {
124
124
  key: w,
125
125
  disabled: x,
126
126
  onClick: () => {
@@ -131,7 +131,7 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
131
131
  label: h(() => [
132
132
  d("span", {
133
133
  class: K(x ? "text-fm-color-typo-disabled" : r)
134
- }, V(w), 3)
134
+ }, N(w), 3)
135
135
  ]),
136
136
  _: 2
137
137
  }, 1032, ["disabled", "onClick", "label"]))), 128))
@@ -174,7 +174,7 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
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
175
  searchKey: f,
176
176
  filter: w
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;
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
178
  Oe(() => c.value.length, () => {
179
179
  j("update:count", c.value.length);
180
180
  }, {
@@ -182,7 +182,7 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
182
182
  });
183
183
  const s = g(() => !!l.state.currentCatalogId || !!l.state.currentSchedulerId);
184
184
  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, D = l.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, C = l.rules.item.orderFromActiveOnly;
186
186
  return {
187
187
  link: (b) => !s.value && (!b || a),
188
188
  name: (b) => !s.value && !b,
@@ -190,7 +190,7 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
190
190
  price: t.type !== v.F_ADDON_GROUP_TYPE.enum.DYNAMIC,
191
191
  inventory: e ? _ ? !s.value && t.type === v.F_ADDON_GROUP_TYPE.enum.NORMAL : !s.value : !1,
192
192
  orderFrom: (b) => e ? _ ? t.type === v.F_ADDON_GROUP_TYPE.enum.DYNAMIC ? s.value : !!s.value == !b : s.value : !1,
193
- orderFromActiveOnly: D,
193
+ orderFromActiveOnly: C,
194
194
  showOrderFrom: e ? _ ? s.value ? !0 : t.type === v.F_ADDON_GROUP_TYPE.enum.PRODUCT : s.value : !1,
195
195
  bindToVariant: a,
196
196
  isOverride: s.value,
@@ -217,7 +217,7 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
217
217
  };
218
218
  };
219
219
  }), me = g(() => ({
220
- ...Pe.generator.initMenuV4Group(),
220
+ ...Ve.generator.initMenuV4Group(),
221
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
223
  position: l.groups.length - 1,
@@ -245,19 +245,19 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
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
246
  let e = t;
247
247
  if (s.value) {
248
- let i = function(D) {
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 || ""));
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 || ""));
252
252
  }).map((y) => ({
253
253
  _id: y._id,
254
254
  combinationKey: y.combinationKey,
255
255
  selection: y.selection
256
- })).filter((y) => !!l.mergedMenu.modules.item.find((P) => P._id === y._id));
256
+ })).filter((y) => !!l.mergedMenu.modules.item.find((V) => V._id === y._id));
257
257
  return {
258
258
  ...A,
259
- ...Object.fromEntries(Object.entries(D).filter(([, y]) => !!y)),
260
- items: [...D.items ?? [], ...he]
259
+ ...Object.fromEntries(Object.entries(C).filter(([, y]) => !!y)),
260
+ items: [...C.items ?? [], ...he]
261
261
  };
262
262
  }, a;
263
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);
@@ -334,10 +334,10 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
334
334
  enableSorting: !1,
335
335
  cell: (t) => {
336
336
  const e = t.getValue(), a = Object.values(e).map((i) => {
337
- var D;
337
+ var C;
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
- count: (D = i.items) == null ? void 0 : D.length
340
+ count: (C = i.items) == null ? void 0 : C.length
341
341
  })})` : _;
342
342
  });
343
343
  return a.length > 5 ? `${a.slice(0, 5).join(", ")} ${n("menu.group.list.more_items", {
@@ -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 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({
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({
418
418
  ref_key: "groupManagerFormRef",
419
419
  ref: ee,
420
420
  key: U.value._id
@@ -427,7 +427,7 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
427
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
- }, De({
430
+ }, Ce({
431
431
  _: 2
432
432
  }, [k.value.create ? {
433
433
  name: "action",
@@ -437,7 +437,7 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
437
437
  }) => [m(a, {
438
438
  "prepend-icon": "add",
439
439
  label: o(n)("menu.group.actions.add"),
440
- onClick: Ce(u, ["stop"])
440
+ onClick: De(u, ["stop"])
441
441
  }, null, 8, ["label", "onClick"])]),
442
442
  _: 1
443
443
  })]),
@@ -453,9 +453,9 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
453
453
  placeholder: o(n)("menu.group.search.placeholder")
454
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)), d("div", st, [k.value.multiScheduler ? (p(), N(le, {
456
+ }, null, -1)), d("div", st, [k.value.multiScheduler ? (p(), P(le, {
457
457
  key: 0
458
- })) : E("", !0), q.value ? (p(), N(Q, {
458
+ })) : E("", !0), q.value ? (p(), P(Q, {
459
459
  key: 1,
460
460
  modelValue: x.value,
461
461
  "onUpdate:modelValue": e[13] || (e[13] = (u) => x.value = u)
@@ -470,16 +470,16 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
470
470
  default: h(() => [d("div", null, [d("div", {
471
471
  class: "px-16 py-8",
472
472
  onClick: e[9] || (e[9] = (u) => r.value = null)
473
- }, V(o(n)("menu.group.type.all")), 1), d("div", {
473
+ }, N(o(n)("menu.group.type.all")), 1), d("div", {
474
474
  class: "px-16 py-8",
475
475
  onClick: e[10] || (e[10] = (u) => r.value = "NORMAL")
476
- }, V(o(n)("menu.group.type.normal")), 1), d("div", {
476
+ }, N(o(n)("menu.group.type.normal")), 1), d("div", {
477
477
  class: "px-16 py-8",
478
478
  onClick: e[11] || (e[11] = (u) => r.value = "PRODUCT")
479
- }, V(o(n)("menu.group.type.product")), 1), d("div", {
479
+ }, N(o(n)("menu.group.type.product")), 1), d("div", {
480
480
  class: "px-16 py-8",
481
481
  onClick: e[12] || (e[12] = (u) => r.value = "DYNAMIC")
482
- }, V(o(n)("menu.group.type.dynamic")), 1)])]),
482
+ }, N(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"]),
@@ -494,15 +494,15 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
494
494
  }) => [(p(), F("div", {
495
495
  key: u._id,
496
496
  class: K(["py-12 px-16", "flex space-x-16", "items-center"])
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", {
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
498
  count: u.itemsLinked.length
499
499
  })), 1)])]), m(Z, {
500
500
  group: u
501
501
  }, null, 8, ["group"])])]))]),
502
502
  _: 1
503
- }, 8, ["model-value"])], 64)) : (p(), F("div", lt, [d("div", at, [k.value.multiScheduler ? (p(), N(le, {
503
+ }, 8, ["model-value"])], 64)) : (p(), F("div", lt, [d("div", at, [k.value.multiScheduler ? (p(), P(le, {
504
504
  key: 0
505
- })) : E("", !0), q.value ? (p(), N(D, {
505
+ })) : E("", !0), q.value ? (p(), P(C, {
506
506
  key: 1
507
507
  }, {
508
508
  "menu-button": h(() => [m(i, {
@@ -1,8 +1,8 @@
1
- import { b as k, d as c, u as q, H as G, g as C } from "./app-Cn8ejMq2.js";
1
+ import { b as k, d as c, u as q, H as G, g as C } from "./app-BFJlAowN.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-CN4VpQoC.js";
5
+ import { L as ae } from "./LinkProductSideSheet-A26Otbdm.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-Cn8ejMq2.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-BFJlAowN.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-DJPAcXZf.js";
8
- import { _ as ae, j as Re } from "./index-D1sxBB7B.js";
9
- import { u as De, l as Ae } from "./lodash-QRXx-M3X.js";
7
+ import { u as Pe } from "./unit-BgfdgXAu.js";
8
+ import { _ as ae, g as Re } from "./index-BXl09ebx.js";
9
+ import { u as De, l as Ae } from "./lodash-247YxYiQ.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"
@@ -306,7 +306,7 @@ const Ye = { class: "fm-typo-en-title-md-600" }, ze = {
306
306
  x({
307
307
  initialValue: a,
308
308
  usedCodes: u.skus.filter(({ _id: i }) => i !== (a == null ? void 0 : a._id)).map((i) => i.code),
309
- invalidSkuAndRecipe: a ? Re.getInvalidSkuAndRecipe({
309
+ invalidSkuAndRecipe: a ? Re({
310
310
  id: a._id,
311
311
  skus: u.skus,
312
312
  recipes: u.state.menu.modules.recipe
@@ -1,8 +1,8 @@
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";
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 d, 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-Cn8ejMq2.js";
3
+ import { d as _, V as P, g as U, N as $ } from "./app-BFJlAowN.js";
4
4
  import { useI18n as q } from "@feedmepos/mf-common";
5
- import { u as x, l as M } from "./lodash-QRXx-M3X.js";
5
+ import { u as x, l as M } from "./lodash-247YxYiQ.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",
@@ -16,7 +16,7 @@ const T = { class: "fm-typo-en-title-md-600 mr-auto" }, G = { class: "flex gap-8
16
16
  },
17
17
  emits: ["submit"],
18
18
  setup(b, { emit: g }) {
19
- const s = b, k = g, a = p(!1), d = (e) => {
19
+ const s = b, k = g, a = p(!1), m = (e) => {
20
20
  U.isBoolean(e) ? a.value = e : a.value = !a.value;
21
21
  };
22
22
  function r(e) {
@@ -41,7 +41,7 @@ const T = { class: "fm-typo-en-title-md-600 mr-auto" }, G = { class: "flex gap-8
41
41
  return (e, t) => {
42
42
  const o = v("fm-button"), C = v("fm-side-sheet");
43
43
  return V(), I(D, null, [
44
- E(e.$slots, "default", { trigger: d }, void 0, !0),
44
+ E(e.$slots, "default", { trigger: m }, void 0, !0),
45
45
  i(C, {
46
46
  id: "group-form",
47
47
  modelValue: a.value,
@@ -56,17 +56,17 @@ const T = { class: "fm-typo-en-title-md-600 mr-auto" }, G = { class: "flex gap-8
56
56
  "z-index": 103,
57
57
  "onOn:clickedAway": n(w)
58
58
  }, {
59
- "side-sheet-header": m(() => [
59
+ "side-sheet-header": d(() => [
60
60
  e.useCloseBtn ? O("", !0) : (V(), N(o, {
61
61
  key: 0,
62
62
  variant: n(A).Tertiary,
63
63
  class: "cursor-pointer mr-4",
64
64
  "prepend-icon": "arrow_back",
65
- onClick: d
65
+ onClick: m
66
66
  }, null, 8, ["variant"])),
67
67
  h("p", T, L(e.title || n(u)("menu.link_product.title")), 1)
68
68
  ]),
69
- "side-sheet-footer": m(() => [
69
+ "side-sheet-footer": d(() => [
70
70
  h("div", G, [
71
71
  i(o, {
72
72
  label: n(u)("menu.common.actions.confirm"),
@@ -82,7 +82,7 @@ const T = { class: "fm-typo-en-title-md-600 mr-auto" }, G = { class: "flex gap-8
82
82
  }, null, 8, ["label"])
83
83
  ])
84
84
  ]),
85
- default: m(() => [
85
+ default: d(() => [
86
86
  i(P, {
87
87
  "auto-focus-search": !0,
88
88
  "categorized-items": e.categorizedItems,
@@ -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-Cn8ejMq2.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-BFJlAowN.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-DKlRd-kN.js";
4
+ import { _ as de } from "./ApplyProducts.vue_vue_type_script_setup_true_lang-BRepaPR3.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-QRXx-M3X.js";
7
+ import { u as ce, l as me } from "./lodash-247YxYiQ.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-Bwlojikf.js";
1
+ import { _ as f } from "./Product.vue_vue_type_script_setup_true_lang-D_oKtXbh.js";
2
2
  export {
3
3
  f as default
4
4
  };