@feedmepos/mf-menu 0.19.0-beta.4 → 0.19.0-beta.6

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 (49) hide show
  1. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-C45Q_1IM.js → ApplyProduct.vue_vue_type_script_setup_true_lang-B27q9I4-.js} +2 -2
  2. package/dist/{ApplyProducts.vue_vue_type_script_setup_true_lang-Bw0eRP0_.js → ApplyProducts.vue_vue_type_script_setup_true_lang-CGCK2-4h.js} +2 -2
  3. package/dist/{Catalog-C-AEqpUC.js → Catalog-CyTski9f.js} +3 -3
  4. package/dist/{Category-DWY_6gGi.js → Category-DmGxbAfy.js} +6 -6
  5. package/dist/{CookingGuide-CkPqzJF3.js → CookingGuide-CILQKZCL.js} +3 -3
  6. package/dist/{Group-CiWoE4Vo.js → Group-71S15iig.js} +4 -4
  7. package/dist/{Group-B0W1AO6N.js → Group-Sdap3r2V.js} +1 -1
  8. package/dist/{Group.vue_vue_type_script_setup_true_lang-C2PPu7R-.js → Group.vue_vue_type_script_setup_true_lang-BlDQAvSP.js} +83 -83
  9. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BXFECj9y.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DAI2Fymw.js} +2 -2
  10. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-BlomLJt6.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-DuN46TWA.js} +7 -7
  11. package/dist/{Ingredient-CYUzI7wJ.js → Ingredient-BPNgd0l4.js} +4 -4
  12. package/dist/{LinkProductSideSheet-wA8OD99m.js → LinkProductSideSheet-Bzt1y2xz.js} +2 -2
  13. package/dist/{PrintRoute-Dl6tlfZF.js → PrintRoute-D7QOVQUl.js} +3 -3
  14. package/dist/{Product-BmFV30vI.js → Product-JCLWTFXo.js} +1 -1
  15. package/dist/{Product.vue_vue_type_script_setup_true_lang-UhKXOQDB.js → Product.vue_vue_type_script_setup_true_lang-Ax2zE0ci.js} +11 -11
  16. package/dist/{Products-DquNQ-N-.js → Products-CWrdGJjC.js} +8 -8
  17. package/dist/{Publish-pnzF4Pbv.js → Publish-D3xfJwik.js} +2 -2
  18. package/dist/{Recipe-DsdTYtye.js → Recipe-C7VUkElG.js} +4 -4
  19. package/dist/{Scheduler-CFzloCjd.js → Scheduler-Cmncmxr-.js} +2 -2
  20. package/dist/{SchedulerSelector.vue_vue_type_script_setup_true_lang-D-OkZFJH.js → SchedulerSelector.vue_vue_type_script_setup_true_lang-CQQ9ROHt.js} +1 -1
  21. package/dist/ServingSequence-C5Wm_7iE.js +4 -0
  22. package/dist/{Setting-DsMRn-Ia.js → Setting-BtarENg5.js} +1 -1
  23. package/dist/{Setting.vue_vue_type_script_setup_true_lang-C9uAy1-j.js → Setting.vue_vue_type_script_setup_true_lang-uQIrjE-E.js} +3 -3
  24. package/dist/{Takeaway-C9By55vk.js → Takeaway-C9UaRrP6.js} +4 -4
  25. package/dist/{Takeaway-MVeH5v8f.js → Takeaway-q38gDF2B.js} +1 -1
  26. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-BgKQbBDs.js → Takeaway.vue_vue_type_script_setup_true_lang-Dyo6Teyr.js} +4 -4
  27. package/dist/{TaxSetting-CcrihUNl.js → TaxSetting-C8rff8FP.js} +4 -4
  28. package/dist/{Unit-B-qshtLt.js → Unit-CrKv73XB.js} +2 -2
  29. package/dist/{Variant-DXeawrTh.js → Variant-DLGWZe6B.js} +2 -2
  30. package/dist/{_id_-CigfDtJf.js → _id_-CTPf6V2m.js} +6 -6
  31. package/dist/{app-DVKG0BMi.js → app-DbpSuMJM.js} +62 -62
  32. package/dist/app.js +2 -2
  33. package/dist/assets/{linked-status-C8GpMp0Z.js → linked-status-D_0zTBn7.js} +3 -3
  34. package/dist/assets/{validate-menu-C-fUldRU.js → validate-menu-Bhc7q-h1.js} +3 -3
  35. package/dist/{catalog-BbVdP-8N.js → catalog-CsJszRzp.js} +1 -1
  36. package/dist/{category-Bt9KDJ6B.js → category-DmPZ0W7s.js} +1 -1
  37. package/dist/{currency-D6xBWrUs.js → currency-DGzsoM3H.js} +1 -1
  38. package/dist/{index-Dn7EeLjQ.js → index-BAzBBnD8.js} +3 -3
  39. package/dist/{index-Dd9OC8GA.js → index-BNeVoPDQ.js} +2 -2
  40. package/dist/{item-ByiQdSMs.js → item-BOpaOkY5.js} +11 -11
  41. package/dist/{lodash-CmHWU72-.js → lodash-DUyy4hdd.js} +1 -1
  42. package/dist/{menu-B4dngoTB.js → menu-By_o5LzA.js} +1 -1
  43. package/dist/{object-CPuD4Sa4.js → object-eToDWJLi.js} +1 -1
  44. package/dist/{scheduler-BeunDafE.js → scheduler-DojWuZMA.js} +4 -4
  45. package/dist/{takeaway-Chd_ireZ.js → takeaway-CegrDnvf.js} +4 -4
  46. package/dist/{toExcel-Dn4BxbqO.js → toExcel-C8Sl89Xs.js} +2 -2
  47. package/dist/{unit-C9TM_HE7.js → unit-B5WCJ5vs.js} +2 -2
  48. package/package.json +1 -1
  49. package/dist/ServingSequence-f5o64Sg-.js +0 -4
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as K, computed as i, h as u, ref as U, 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, o as O, V as $, n as q } from "./app-DVKG0BMi.js";
2
+ import { u as M, o as O, V as $, n as q } from "./app-DbpSuMJM.js";
3
3
  import { components as I, FmButtonVariant as B, FmButtonColorThemeVariant as b } from "@feedmepos/ui-library";
4
- import { L as J } from "./LinkProductSideSheet-wA8OD99m.js";
4
+ import { L as J } from "./LinkProductSideSheet-Bzt1y2xz.js";
5
5
  import { _ as Q } from "./FormSection.vue_vue_type_script_setup_true_lang-BWJUD8NZ.js";
6
6
  const W = { class: "space-y-16" }, X = { class: "flex items-center space-x-24" }, Y = {
7
7
  key: 0,
@@ -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-DVKG0BMi.js";
2
+ import { d as V } from "./app-DbpSuMJM.js";
3
3
  import "@feedmepos/ui-library";
4
4
  import "@feedmepos/mf-common";
5
- import { u as H, l as J } from "./lodash-CmHWU72-.js";
5
+ import { u as H, l as J } from "./lodash-DUyy4hdd.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 ue, ref as P, computed as R, watch as ve, resolveComponent as p, openBlock as c, createElementBlock as g, Fragment as V, renderSlot as ye, createVNode as r, unref as e, withCtx as m, createElementVNode as d, renderList as $, createBlock as C, createCommentVNode as I, createTextVNode as be, toDisplayString as b, h as ee, withModifiers as ae, normalizeClass as J } from "vue";
2
2
  import { useCoreStore as ie } from "@feedmepos/mf-common";
3
- import { b as x, u as re, i as ce, a as me, m as te, c as ke, n as de, g as xe, d as Q, h as pe, y as le, _ as Ce, k as he, j as Oe, R as oe } from "./app-DVKG0BMi.js";
4
- import { C as Fe } from "./catalog-BbVdP-8N.js";
3
+ import { b as x, u as re, i as ce, a as me, m as te, c as ke, n as de, g as xe, d as Q, h as pe, y as le, _ as Ce, k as he, j as Oe, R as oe } from "./app-DbpSuMJM.js";
4
+ import { C as Fe } from "./catalog-CsJszRzp.js";
5
5
  import { useRouter as Me } from "vue-router";
6
6
  import { useSnackbar as fe, components as _e, FmButtonColorThemeVariant as X, FmButtonVariant as j, useDialog as De, useBreakpoints as Ve } from "@feedmepos/ui-library";
7
- import { C as E, a as L, _ as ne } from "./GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BXFECj9y.js";
7
+ import { C as E, a as L, _ as ne } from "./GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DAI2Fymw.js";
8
8
  import { _ as Se } from "./FormSection.vue_vue_type_script_setup_true_lang-BWJUD8NZ.js";
9
9
  import { _ as W } from "./FormItem.vue_vue_type_script_setup_true_lang-DKsxEK-8.js";
10
10
  const Ae = { class: "space-y-32" }, Ue = {
@@ -1,13 +1,13 @@
1
1
  import { defineComponent as j, 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 u, unref as e, withCtx as v, createElementVNode as n, 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 K, a as me } from "./menu-B4dngoTB.js";
3
- import { a as Y, u as pe, n as q, b as I, g as fe, h as ee, i as G, j as ge, _ as _e, k as ye, f as ve } from "./app-DVKG0BMi.js";
2
+ import { u as K, a as me } from "./menu-By_o5LzA.js";
3
+ import { a as Y, u as pe, n as q, b as I, g as fe, h as ee, i as G, j as ge, _ as _e, k as ye, f as ve } from "./app-DbpSuMJM.js";
4
4
  import { useSnackbar as H, components as P, useDialog as te, FmButtonVariant as Q, useBreakpoints as he, FmButtonColorThemeVariant as be } from "@feedmepos/ui-library";
5
- import { u as ae } from "./category-Bt9KDJ6B.js";
5
+ import { u as ae } from "./category-DmPZ0W7s.js";
6
6
  import { c as xe } from "./createForm-DPAQWnoK.js";
7
- import { c as W } from "./object-CPuD4Sa4.js";
8
- import { u as Ce } from "./item-ByiQdSMs.js";
7
+ import { c as W } from "./object-eToDWJLi.js";
8
+ import { u as Ce } from "./item-BOpaOkY5.js";
9
9
  import { _ as X } from "./FormSection.vue_vue_type_script_setup_true_lang-BWJUD8NZ.js";
10
- import { u as ke } from "./lodash-CmHWU72-.js";
10
+ import { u as ke } from "./lodash-DUyy4hdd.js";
11
11
  function we(p, f = "This field can't be empty.") {
12
12
  return p == null || Array.isArray(p) && p.length === 0 || typeof p == "string" && p.trim() === "" ? f : !0;
13
13
  }
@@ -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 { n as ie, 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-DVKG0BMi.js";
2
+ import { n as ie, 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-DbpSuMJM.js";
3
3
  import { components as de, useSnackbar as Fe, useDialog as Se } from "@feedmepos/ui-library";
4
4
  import { V as $e } from "./vuedraggable-WU01qJgi.js";
5
- import { _ as Ie } from "./ApplyProducts.vue_vue_type_script_setup_true_lang-Bw0eRP0_.js";
5
+ import { _ as Ie } from "./ApplyProducts.vue_vue_type_script_setup_true_lang-CGCK2-4h.js";
6
6
  import "@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-CmHWU72-.js";
8
+ import { u as me, l as pe } from "./lodash-DUyy4hdd.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 c, ref as m, openBlock as d, createBlock as i, unref as n, withCtx as a, createVNode as l, createElementVNode as e, toDisplayString as p, createCommentVNode as u } from "vue";
2
- import { n as _, _ as f, f as g } from "./app-DVKG0BMi.js";
3
- import { _ as y } from "./Group.vue_vue_type_script_setup_true_lang-C2PPu7R-.js";
4
- import { a as b } from "./menu-B4dngoTB.js";
5
- import { A as h } from "./item-ByiQdSMs.js";
2
+ import { n as _, _ as f, f as g } from "./app-DbpSuMJM.js";
3
+ import { _ as y } from "./Group.vue_vue_type_script_setup_true_lang-BlDQAvSP.js";
4
+ import { a as b } from "./menu-By_o5LzA.js";
5
+ import { A as h } from "./item-BOpaOkY5.js";
6
6
  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" }, M = /* @__PURE__ */ c({
7
7
  __name: "Group",
8
8
  setup(N) {
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./Group.vue_vue_type_script_setup_true_lang-C2PPu7R-.js";
1
+ import { _ as f } from "./Group.vue_vue_type_script_setup_true_lang-BlDQAvSP.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,14 +1,14 @@
1
- import { defineComponent as Q, ref as S, resolveComponent as D, openBlock as d, createElementBlock as G, Fragment as T, renderSlot as he, createVNode as m, unref as a, withCtx as k, createElementVNode as c, toDisplayString as P, computed as g, createBlock as V, renderList as te, normalizeClass as z, watch as ke, mergeProps as Oe, createCommentVNode as E, createSlots as we, withModifiers as De, isRef as ne, h as Ce, nextTick as Me } from "vue";
2
- import { u as ae, g as xe, i as Ae, a as Fe, o as Ge, c as Ne, b as v, m as Pe, n as Ve, k as Re, j as Ue, h as Ee } from "./app-DVKG0BMi.js";
3
- import { _ as oe } from "./SchedulerSelector.vue_vue_type_script_setup_true_lang-D-OkZFJH.js";
4
- import { M as le, S as Se, _ as Te, A as Ie, e as $e, a as Ye } from "./item-ByiQdSMs.js";
1
+ import { defineComponent as Q, ref as S, resolveComponent as D, openBlock as d, createElementBlock as G, Fragment as T, renderSlot as he, createVNode as m, unref as o, withCtx as k, createElementVNode as c, toDisplayString as P, computed as g, createBlock as V, renderList as te, normalizeClass as z, watch as ke, mergeProps as Oe, createCommentVNode as E, createSlots as we, withModifiers as De, isRef as ne, h as Ce, nextTick as Me } from "vue";
2
+ import { u as ae, g as xe, i as Ae, a as Fe, o as Ge, c as Ne, b as v, m as Pe, n as Ve, k as Re, j as Ue, h as Ee } from "./app-DbpSuMJM.js";
3
+ import { _ as oe } from "./SchedulerSelector.vue_vue_type_script_setup_true_lang-CQQ9ROHt.js";
4
+ import { M as le, S as Se, _ as Te, A as Ie, e as $e, a as Ye } from "./item-BOpaOkY5.js";
5
5
  import { components as Le, useBreakpoints as ue, useSnackbar as ze, useDialog as je, FmButtonVariant as Ke } from "@feedmepos/ui-library";
6
- import { C as Be } from "./catalog-BbVdP-8N.js";
7
- import { l as L, u as qe } from "./lodash-CmHWU72-.js";
8
- import { _ as He } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-C45Q_1IM.js";
6
+ import { C as Be } from "./catalog-CsJszRzp.js";
7
+ import { l as L, u as qe } from "./lodash-DUyy4hdd.js";
8
+ import { _ as He } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-B27q9I4-.js";
9
9
  import { V as Je } from "./vuedraggable-WU01qJgi.js";
10
10
  import { _ as Qe, a as We } from "./BottomSheetMenuItem.vue_vue_type_script_setup_true_lang-DPis3HVx.js";
11
- import { c as Xe } from "./object-CPuD4Sa4.js";
11
+ import { c as Xe } from "./object-eToDWJLi.js";
12
12
  const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items-center justify-start" }, tt = /* @__PURE__ */ Q({
13
13
  __name: "ApplyProductDialog",
14
14
  props: {
@@ -35,7 +35,7 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
35
35
  id: "group-form",
36
36
  modelValue: M.value,
37
37
  "onUpdate:modelValue": s[1] || (s[1] = (r) => M.value = r),
38
- "is-container": a(Le).FmForm,
38
+ "is-container": o(Le).FmForm,
39
39
  "is-container-props": {
40
40
  onValidationSuccess: () => {
41
41
  C("apply:product", b.value), O(!1);
@@ -44,7 +44,7 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
44
44
  },
45
45
  "max-width": 560,
46
46
  "z-index": 100,
47
- "onOn:clickedAway": a(N)
47
+ "onOn:clickedAway": o(N)
48
48
  }, {
49
49
  "side-sheet-header": k(() => [
50
50
  c("p", Ze, P(p.title), 1)
@@ -69,7 +69,7 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
69
69
  m(He, {
70
70
  overrides: b.value,
71
71
  "onUpdate:overrides": s[0] || (s[0] = (r) => b.value = r),
72
- "categorized-items": a(A).categorizedItems,
72
+ "categorized-items": o(A).categorizedItems,
73
73
  editable: p.editable,
74
74
  "select-variant": !1,
75
75
  "show-variant": !1,
@@ -180,9 +180,9 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
180
180
  });
181
181
  const r = g(() => !!u.state.currentCatalogId || !!u.state.currentSchedulerId);
182
182
  function re(t) {
183
- const e = !u.state.currentSchedulerId, o = u.rules.item.bindToVariant, i = u.rules.group.type, f = u.version === v.F_MENU_VERSION.enum.v3, w = u.rules.item.orderFromActiveOnly;
183
+ const e = !u.state.currentSchedulerId, l = u.rules.item.bindToVariant, i = u.rules.group.type, f = u.version === v.F_MENU_VERSION.enum.v3, w = u.rules.item.orderFromActiveOnly;
184
184
  return {
185
- link: (h) => !r.value && (!h || o),
185
+ link: (h) => !r.value && (!h || l),
186
186
  name: (h) => !r.value && !h,
187
187
  type: i && !t._id && !r.value,
188
188
  price: t.type !== v.F_ADDON_GROUP_TYPE.enum.DYNAMIC,
@@ -190,28 +190,28 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
190
190
  orderFrom: (h) => e ? f ? t.type === v.F_ADDON_GROUP_TYPE.enum.DYNAMIC ? r.value : !!r.value == !h : r.value : !1,
191
191
  orderFromActiveOnly: w,
192
192
  showOrderFrom: e ? f ? r.value ? !0 : t.type === v.F_ADDON_GROUP_TYPE.enum.PRODUCT : r.value : !1,
193
- bindToVariant: o,
193
+ bindToVariant: l,
194
194
  isOverride: r.value,
195
195
  isItemGroup: !1,
196
196
  isV4: !f
197
197
  };
198
198
  }
199
199
  const se = g(() => {
200
- const t = !u.state.currentSchedulerId, e = u.rules.group.type, o = u.version === v.F_MENU_VERSION.enum.v3, i = u.rules.item.orderFromActiveOnly, f = u.rules.item.bindToVariant;
200
+ const t = !u.state.currentSchedulerId, e = u.rules.group.type, l = u.version === v.F_MENU_VERSION.enum.v3, i = u.rules.item.orderFromActiveOnly, f = u.rules.item.bindToVariant;
201
201
  return function(h) {
202
202
  return {
203
203
  link: (F) => !r.value && (!F || f),
204
204
  name: (F) => !r.value && !F,
205
205
  type: e && !h._id && !r.value,
206
206
  price: h.type !== v.F_ADDON_GROUP_TYPE.enum.DYNAMIC,
207
- inventory: t ? o ? !r.value && h.type === v.F_ADDON_GROUP_TYPE.enum.NORMAL : !r.value : !1,
208
- orderFrom: (F) => t ? o ? h.type === v.F_ADDON_GROUP_TYPE.enum.DYNAMIC ? r.value : !!r.value == !F : r.value : !1,
207
+ inventory: t ? l ? !r.value && h.type === v.F_ADDON_GROUP_TYPE.enum.NORMAL : !r.value : !1,
208
+ orderFrom: (F) => t ? l ? h.type === v.F_ADDON_GROUP_TYPE.enum.DYNAMIC ? r.value : !!r.value == !F : r.value : !1,
209
209
  orderFromActiveOnly: i,
210
- showOrderFrom: t ? o ? r.value ? !0 : h.type === v.F_ADDON_GROUP_TYPE.enum.PRODUCT : r.value : !1,
210
+ showOrderFrom: t ? l ? r.value ? !0 : h.type === v.F_ADDON_GROUP_TYPE.enum.PRODUCT : r.value : !1,
211
211
  bindToVariant: f,
212
212
  isOverride: r.value,
213
213
  isItemGroup: !1,
214
- isV4: !o
214
+ isV4: !l
215
215
  };
216
216
  };
217
217
  }), ie = g(() => ({
@@ -257,9 +257,9 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
257
257
  ...Object.fromEntries(Object.entries(w).filter(([, y]) => !!y)),
258
258
  items: [...w.items ?? [], ...be]
259
259
  };
260
- }, o;
261
- q.value ? $.value ? o = Y.value.getCatalogSchedulerGroup(t._id, $.value._id) : o = Y.value.getCatalogGroup(t._id) : o = H.value.getSchedulerGroup(t._id);
262
- const f = i(o);
260
+ }, l;
261
+ q.value ? $.value ? l = Y.value.getCatalogSchedulerGroup(t._id, $.value._id) : l = Y.value.getCatalogGroup(t._id) : l = H.value.getSchedulerGroup(t._id);
262
+ const f = i(l);
263
263
  e = new le(u, C.updateMenu, x).mapGroups([f], !0)[0];
264
264
  }
265
265
  return {
@@ -292,12 +292,12 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
292
292
  initialValue: e.itemsLinked,
293
293
  group: $e(e),
294
294
  editable: b.value.applyProduct,
295
- "onApply:product": async (o) => {
296
- await N.value.applyItems(e, o.map((i) => i._id));
295
+ "onApply:product": async (l) => {
296
+ await N.value.applyItems(e, l.map((i) => i._id));
297
297
  }
298
298
  }, {
299
299
  default: ({
300
- trigger: o
300
+ trigger: l
301
301
  }) => {
302
302
  const i = [{
303
303
  label: n("menu.common.actions.edit"),
@@ -305,7 +305,7 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
305
305
  }, {
306
306
  label: n("menu.group.actions.apply_product"),
307
307
  disable: !b.value.applyProduct,
308
- onClick: o
308
+ onClick: l
309
309
  }, {
310
310
  label: n("menu.group.actions.duplicate_action"),
311
311
  disabled: !b.value.create,
@@ -331,16 +331,16 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
331
331
  header: () => n("menu.group.list.columns.products"),
332
332
  enableSorting: !1,
333
333
  cell: (t) => {
334
- const e = t.getValue(), o = Object.values(e).map((i) => {
334
+ const e = t.getValue(), l = Object.values(e).map((i) => {
335
335
  var w;
336
336
  const f = [(i == null ? void 0 : i.code) || "", i.name ?? i.fallbackName].join(" ").trim();
337
337
  return (i.items || []).length > 1 ? `${f} (${n("menu.group.list.variants", {
338
338
  count: (w = i.items) == null ? void 0 : w.length
339
339
  })})` : f;
340
340
  });
341
- return o.length > 5 ? `${o.slice(0, 5).join(", ")} ${n("menu.group.list.more_items", {
342
- count: o.length - 5
343
- })}` : o.join(", ");
341
+ return l.length > 5 ? `${l.slice(0, 5).join(", ")} ${n("menu.group.list.more_items", {
342
+ count: l.length - 5
343
+ })}` : l.join(", ");
344
344
  }
345
345
  }, {
346
346
  accessorKey: "type",
@@ -383,21 +383,21 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
383
383
  }]), ve = g(() => ({
384
384
  itemsLinked: b.value.showAppliedProduct
385
385
  })), fe = async (t) => {
386
- const e = Ye(t), o = e.group;
386
+ const e = Ye(t), l = e.group;
387
387
  if (r.value)
388
- q.value ? ($.value ? Y.value.overrideCatalogSchedulerGroups([o], $.value._id) : Y.value.overrideCatalogGroups([o]), await Y.value.update()) : (H.value.overrideSchedulerGroups([o]), await H.value.update());
388
+ q.value ? ($.value ? Y.value.overrideCatalogSchedulerGroups([l], $.value._id) : Y.value.overrideCatalogGroups([l]), await Y.value.update()) : (H.value.overrideSchedulerGroups([l]), await H.value.update());
389
389
  else {
390
390
  const i = {
391
391
  module: v.F_MENU_MODULE_V4_KEY.enum.group,
392
392
  operation: Ee.F_OPERATION_TYPE.update,
393
- data: o,
393
+ data: l,
394
394
  link: [{
395
395
  module: v.F_MENU_MODULE_V4_KEY.enum.item,
396
396
  id: "",
397
397
  data: e.linkItems
398
398
  }]
399
399
  };
400
- await C.updateMenu(i, o.name);
400
+ await C.updateMenu(i, l.name);
401
401
  }
402
402
  }, U = S(null), Z = S(null), ee = async (t) => {
403
403
  var e;
@@ -410,31 +410,31 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
410
410
  t: n
411
411
  } = Ve();
412
412
  return (t, e) => {
413
- const o = D("fm-button"), i = D("fm-chip"), f = D("fm-menu-item"), w = D("fm-menu"), h = D("fm-search"), F = D("fm-table"), J = D("fm-bottom-sheet");
413
+ const l = D("fm-button"), i = D("fm-chip"), f = D("fm-menu-item"), w = D("fm-menu"), h = D("fm-search"), F = D("fm-table"), J = D("fm-bottom-sheet");
414
414
  return d(), G(T, null, [U.value ? (d(), V(Te, Oe({
415
415
  ref_key: "groupManagerFormRef",
416
416
  ref: Z,
417
417
  key: U.value._id
418
418
  }, ce(U.value), {
419
419
  action: "update",
420
- title: "Update group",
420
+ title: o(n)("menu.group.dialogs.update.title"),
421
421
  group: U.value,
422
- "onUpdate:group": e[0] || (e[0] = (l) => U.value = l),
423
- "onSubmit:group": e[1] || (e[1] = (l) => fe(l))
424
- }), null, 16, ["group"])) : E("", !0), M.value.length === 0 ? (d(), G("div", ot, [m(Re, {
425
- subtitle: a(n)("menu.group.empty.subtitle"),
426
- title: a(n)("menu.group.empty.title")
422
+ "onUpdate:group": e[0] || (e[0] = (a) => U.value = a),
423
+ "onSubmit:group": e[1] || (e[1] = (a) => fe(a))
424
+ }), null, 16, ["title", "group"])) : E("", !0), M.value.length === 0 ? (d(), G("div", ot, [m(Re, {
425
+ subtitle: o(n)("menu.group.empty.subtitle"),
426
+ title: o(n)("menu.group.empty.title")
427
427
  }, we({
428
428
  _: 2
429
429
  }, [b.value.create ? {
430
430
  name: "action",
431
- fn: k(() => [m(a(Ie), null, {
431
+ fn: k(() => [m(o(Ie), null, {
432
432
  default: k(({
433
- trigger: l
434
- }) => [m(o, {
433
+ trigger: a
434
+ }) => [m(l, {
435
435
  "prepend-icon": "add",
436
- label: a(n)("menu.group.actions.add"),
437
- onClick: De(l, ["stop"])
436
+ label: o(n)("menu.group.actions.add"),
437
+ onClick: De(a, ["stop"])
438
438
  }, null, 8, ["label", "onClick"])]),
439
439
  _: 1
440
440
  })]),
@@ -445,9 +445,9 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
445
445
  key: 1
446
446
  }, [c("div", rt, [m(h, {
447
447
  autofocus: "",
448
- modelValue: a(O),
449
- "onUpdate:modelValue": e[8] || (e[8] = (l) => ne(O) ? O.value = l : null),
450
- placeholder: a(n)("menu.group.search.placeholder")
448
+ modelValue: o(O),
449
+ "onUpdate:modelValue": e[8] || (e[8] = (a) => ne(O) ? O.value = a : null),
450
+ placeholder: o(n)("menu.group.search.placeholder")
451
451
  }, null, 8, ["modelValue", "placeholder"])]), e[15] || (e[15] = c("div", {
452
452
  class: "bg-fm-color-neutral-gray-100 w-full h-px rounded-md"
453
453
  }, null, -1)), c("div", st, [b.value.multiScheduler ? (d(), V(oe, {
@@ -455,46 +455,46 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
455
455
  })) : E("", !0), B.value ? (d(), V(J, {
456
456
  key: 1,
457
457
  modelValue: p.value,
458
- "onUpdate:modelValue": e[13] || (e[13] = (l) => p.value = l)
458
+ "onUpdate:modelValue": e[13] || (e[13] = (a) => p.value = a)
459
459
  }, {
460
460
  "bottom-sheet-button": k(() => [m(i, {
461
- label: a(n)("menu.group.type.title", {
462
- type: s.value ? a(L.capitalize)(s.value) : a(n)("menu.common.labels.all")
461
+ label: o(n)("menu.group.type.title", {
462
+ type: s.value ? o(L.capitalize)(s.value) : o(n)("menu.common.labels.all")
463
463
  }),
464
464
  class: "text-fm-color-typo-secondary",
465
465
  "right-icon": "keyboard_arrow_down"
466
466
  }, null, 8, ["label"])]),
467
467
  default: k(() => [c("div", null, [c("div", {
468
468
  class: "px-16 py-8",
469
- onClick: e[9] || (e[9] = (l) => s.value = null)
470
- }, P(a(n)("menu.group.type.all")), 1), c("div", {
469
+ onClick: e[9] || (e[9] = (a) => s.value = null)
470
+ }, P(o(n)("menu.group.type.all")), 1), c("div", {
471
471
  class: "px-16 py-8",
472
- onClick: e[10] || (e[10] = (l) => s.value = "NORMAL")
473
- }, P(a(n)("menu.group.type.normal")), 1), c("div", {
472
+ onClick: e[10] || (e[10] = (a) => s.value = "NORMAL")
473
+ }, P(o(n)("menu.group.type.normal")), 1), c("div", {
474
474
  class: "px-16 py-8",
475
- onClick: e[11] || (e[11] = (l) => s.value = "PRODUCT")
476
- }, P(a(n)("menu.group.type.product")), 1), c("div", {
475
+ onClick: e[11] || (e[11] = (a) => s.value = "PRODUCT")
476
+ }, P(o(n)("menu.group.type.product")), 1), c("div", {
477
477
  class: "px-16 py-8",
478
- onClick: e[12] || (e[12] = (l) => s.value = "DYNAMIC")
479
- }, P(a(n)("menu.group.type.dynamic")), 1)])]),
478
+ onClick: e[12] || (e[12] = (a) => s.value = "DYNAMIC")
479
+ }, P(o(n)("menu.group.type.dynamic")), 1)])]),
480
480
  _: 1
481
- }, 8, ["modelValue"])) : E("", !0)]), m(a(Je), {
481
+ }, 8, ["modelValue"])) : E("", !0)]), m(o(Je), {
482
482
  class: z(["flex-1", "overflow-scroll", "divide-y divide-fm-color-neutral-gray-100", "pb-64"]),
483
483
  "model-value": _.value,
484
484
  group: "categories",
485
485
  handle: ".handle",
486
486
  "item-key": "_id",
487
- "onUpdate:modelValue": e[14] || (e[14] = (l) => W(l))
487
+ "onUpdate:modelValue": e[14] || (e[14] = (a) => W(a))
488
488
  }, {
489
489
  item: k(({
490
- element: l
490
+ element: a
491
491
  }) => [(d(), G("div", {
492
- key: l._id,
492
+ key: a._id,
493
493
  class: z(["py-12 px-16", "flex space-x-16", "items-center"])
494
- }, [c("div", it, [c("div", mt, [c("p", ct, P(l.name), 1), c("div", null, [B.value ? (d(), G("p", dt, P(a(L.capitalize)(l.type)) + " type ", 1)) : E("", !0), c("p", pt, P(a(n)("menu.group.list.products_linked", {
495
- count: l.itemsLinked.length
494
+ }, [c("div", it, [c("div", mt, [c("p", ct, P(a.name), 1), c("div", null, [B.value ? (d(), G("p", dt, P(o(L.capitalize)(a.type)) + " type ", 1)) : E("", !0), c("p", pt, P(o(n)("menu.group.list.products_linked", {
495
+ count: a.itemsLinked.length
496
496
  })), 1)])]), m(X, {
497
- group: l
497
+ group: a
498
498
  }, null, 8, ["group"])])]))]),
499
499
  _: 1
500
500
  }, 8, ["model-value"])], 64)) : (d(), G("div", lt, [c("div", at, [b.value.multiScheduler ? (d(), V(oe, {
@@ -503,50 +503,50 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
503
503
  key: 1
504
504
  }, {
505
505
  "menu-button": k(() => [m(i, {
506
- label: a(n)("menu.group.type.title", {
507
- type: s.value ? a(L.capitalize)(s.value) : a(n)("menu.common.labels.all")
506
+ label: o(n)("menu.group.type.title", {
507
+ type: s.value ? o(L.capitalize)(s.value) : o(n)("menu.common.labels.all")
508
508
  }),
509
509
  class: "text-fm-color-typo-secondary",
510
510
  "right-icon": "keyboard_arrow_down"
511
511
  }, null, 8, ["label"])]),
512
512
  default: k(() => [c("div", null, [m(f, {
513
513
  class: "px-16 py-8",
514
- label: a(n)("menu.group.type.all"),
515
- onClick: e[2] || (e[2] = (l) => s.value = null)
514
+ label: o(n)("menu.group.type.all"),
515
+ onClick: e[2] || (e[2] = (a) => s.value = null)
516
516
  }, null, 8, ["label"]), m(f, {
517
517
  class: "px-16 py-8",
518
- label: a(n)("menu.group.type.normal"),
519
- onClick: e[3] || (e[3] = (l) => s.value = "NORMAL")
518
+ label: o(n)("menu.group.type.normal"),
519
+ onClick: e[3] || (e[3] = (a) => s.value = "NORMAL")
520
520
  }, null, 8, ["label"]), m(f, {
521
521
  class: "px-16 py-8",
522
- label: a(n)("menu.group.type.product"),
523
- onClick: e[4] || (e[4] = (l) => s.value = "PRODUCT")
522
+ label: o(n)("menu.group.type.product"),
523
+ onClick: e[4] || (e[4] = (a) => s.value = "PRODUCT")
524
524
  }, null, 8, ["label"]), m(f, {
525
525
  class: "px-16 py-8",
526
- label: a(n)("menu.group.type.dynamic"),
527
- onClick: e[5] || (e[5] = (l) => s.value = "DYNAMIC")
526
+ label: o(n)("menu.group.type.dynamic"),
527
+ onClick: e[5] || (e[5] = (a) => s.value = "DYNAMIC")
528
528
  }, null, 8, ["label"])])]),
529
529
  _: 1
530
530
  })) : E("", !0), c("div", ut, [m(h, {
531
531
  autofocus: "",
532
- modelValue: a(O),
533
- "onUpdate:modelValue": e[6] || (e[6] = (l) => ne(O) ? O.value = l : null),
534
- placeholder: a(n)("menu.group.search.placeholder")
532
+ modelValue: o(O),
533
+ "onUpdate:modelValue": e[6] || (e[6] = (a) => ne(O) ? O.value = a : null),
534
+ placeholder: o(n)("menu.group.search.placeholder")
535
535
  }, null, 8, ["modelValue", "placeholder"])])]), m(Ue, null, {
536
536
  default: k(() => [m(F, {
537
537
  "column-defs": pe.value,
538
538
  "column-visibility": ve.value,
539
- loading: a(C).checkMenuIsLoading(),
539
+ loading: o(C).checkMenuIsLoading(),
540
540
  "page-size": _.value.length,
541
541
  "row-data": _.value,
542
- "search-value": a(O),
542
+ "search-value": o(O),
543
543
  "shrink-at": !1,
544
544
  class: "flex-1 overflow-hidden",
545
545
  draggable: "",
546
546
  "hide-footer": "",
547
547
  "pin-header-row": "",
548
548
  onRowClick: _e,
549
- onDndChanged: e[7] || (e[7] = (l) => W(l))
549
+ onDndChanged: e[7] || (e[7] = (a) => W(a))
550
550
  }, null, 8, ["column-defs", "column-visibility", "loading", "page-size", "row-data", "search-value"])]),
551
551
  _: 1
552
552
  })]))], 64))], 64);
@@ -1,8 +1,8 @@
1
- import { b as k, d as c, u as q, n as G, I as j, g as C } from "./app-DVKG0BMi.js";
1
+ import { b as k, d as c, u as q, n as G, I as j, g as C } from "./app-DbpSuMJM.js";
2
2
  import { defineComponent as H, computed as F, ref as V, watch as J, onMounted as K, resolveComponent as s, openBlock as _, createElementBlock as y, Fragment as S, renderSlot as Q, createVNode as i, unref as o, withCtx as d, createTextVNode as W, toDisplayString as I, createElementVNode as O, renderList as X, createBlock as R, createCommentVNode as h } from "vue";
3
3
  import { c as Y } from "./string-DpfFixWH.js";
4
4
  import { useDialog as Z, components as ee, FmButtonColorThemeVariant as L, FmButtonVariant as ae } from "@feedmepos/ui-library";
5
- import { L as te } from "./LinkProductSideSheet-wA8OD99m.js";
5
+ import { L as te } from "./LinkProductSideSheet-Bzt1y2xz.js";
6
6
  var le = /* @__PURE__ */ ((p) => (p.AUTO = "auto", p.MANUAL = "manual", p))(le || {});
7
7
  class T {
8
8
  static fromCatalog(e, n) {