@feedmepos/mf-menu 0.20.3 → 0.20.4

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-DY5ZAvXD.js → ApplyProduct.vue_vue_type_script_setup_true_lang-DwTwUBHZ.js} +10 -10
  2. package/dist/{ApplyProducts.vue_vue_type_script_setup_true_lang-CTQXFXig.js → ApplyProducts.vue_vue_type_script_setup_true_lang-BZG7Ya6Y.js} +2 -2
  3. package/dist/{Catalog-DDLkwHEl.js → Catalog-C5BXrhPP.js} +3 -3
  4. package/dist/{Category-Dvijo086.js → Category-CpTm1rg3.js} +6 -6
  5. package/dist/{CookingGuide-CsE9_yha.js → CookingGuide-Dpp9o1JY.js} +3 -3
  6. package/dist/{Group-BIQU7w0g.js → Group-DJxPCFma.js} +1 -1
  7. package/dist/{Group-CMMIHqaG.js → Group-sr9GoXZa.js} +6 -6
  8. package/dist/{Group.vue_vue_type_script_setup_true_lang-BTL9j3_B.js → Group.vue_vue_type_script_setup_true_lang-B7fTVzh9.js} +40 -40
  9. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-pogjGaYM.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-B64yEcae.js} +23 -23
  10. package/dist/{Ingredient-m0hSAC1U.js → Ingredient-CI1qBsqE.js} +15 -15
  11. package/dist/{LinkProductSideSheet-DfZrxiHw.js → LinkProductSideSheet-Drg8cNHU.js} +24 -25
  12. package/dist/{PrintRoute-iSOdrR8L.js → PrintRoute-C3sIwh5a.js} +27 -27
  13. package/dist/{Product-LV9usgIQ.js → Product-BXH8VQKX.js} +1 -1
  14. package/dist/{Product.vue_vue_type_script_setup_true_lang-D2840VfX.js → Product.vue_vue_type_script_setup_true_lang-DYP83xUs.js} +66 -66
  15. package/dist/{Products-C3u76O52.js → Products-BWnHcHPG.js} +37 -37
  16. package/dist/{Publish-_OkfKSnM.js → Publish-T_vCwIz0.js} +39 -39
  17. package/dist/{Recipe-CB_uktjY.js → Recipe-DRXR_aqS.js} +4 -4
  18. package/dist/{Scheduler-DWIGrzZY.js → Scheduler-BsDC-IO7.js} +2 -2
  19. package/dist/{SchedulerSelector.vue_vue_type_script_setup_true_lang-BcruguLb.js → SchedulerSelector.vue_vue_type_script_setup_true_lang-Cnoku5ln.js} +1 -1
  20. package/dist/ServingSequence-Dqx8sEIw.js +4 -0
  21. package/dist/{Setting-N_eRQUsY.js → Setting-voFN_-pX.js} +1 -1
  22. package/dist/{Setting.vue_vue_type_script_setup_true_lang-WQ6hWgnm.js → Setting.vue_vue_type_script_setup_true_lang-vO7KKEcE.js} +13 -13
  23. package/dist/{Takeaway-DiOnksOz.js → Takeaway-BS3y1Co9.js} +1 -1
  24. package/dist/{Takeaway-NrqUpXFx.js → Takeaway-BZNKPAIO.js} +9 -9
  25. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-CHAbaRBT.js → Takeaway.vue_vue_type_script_setup_true_lang-CGU-A2tn.js} +9 -9
  26. package/dist/{TaxSetting-V0dnzYo3.js → TaxSetting-Bg5GswMY.js} +6 -6
  27. package/dist/{Unit-DOsZE2qJ.js → Unit-BIQGUWnn.js} +15 -15
  28. package/dist/{Variant-CYP1P6ns.js → Variant-BsE3DliN.js} +40 -40
  29. package/dist/{_id_-B6Hne1hp.js → _id_-nwzDvUSZ.js} +34 -34
  30. package/dist/app-DPQYBZQl.js +146364 -0
  31. package/dist/app.js +4 -4
  32. package/dist/assets/{linked-status-B-90MiJw.js → linked-status-_dZBe-KP.js} +3 -3
  33. package/dist/assets/{validate-menu-C1LwcZzw.js → validate-menu-DG5wVtaT.js} +3 -3
  34. package/dist/{catalog-C8CFP-ny.js → catalog-CYZ0463N.js} +7 -7
  35. package/dist/{catalog-Bq6JWNgk.js → catalog-Ez6mUaCd.js} +1 -1
  36. package/dist/{category-DJo3MbY6.js → category-1S2ifJD8.js} +1 -1
  37. package/dist/{currency-Ccc8KrCJ.js → currency-D4RRRzjV.js} +1 -1
  38. package/dist/{index-BS64cx1H.js → index-AkLsIcs2.js} +2 -2
  39. package/dist/{index-PJVryAUX.js → index-B4FPNVpj.js} +43 -43
  40. package/dist/{item-Dj35T3VU.js → item-AtZKXXux.js} +21 -23
  41. package/dist/{lodash-MHSu1pkA.js → lodash-C05hYW_e.js} +1 -1
  42. package/dist/{menu-CUXJ9cXY.js → menu-DXRd3wdK.js} +1 -1
  43. package/dist/{object-BN9wCbKv.js → object-D-ZNxSWx.js} +1 -1
  44. package/dist/{scheduler-DZwOVztH.js → scheduler-DnjnY3od.js} +4 -4
  45. package/dist/style.css +1 -1
  46. package/dist/{takeaway-PjB5BC80.js → takeaway-yk6LDZ8E.js} +17 -17
  47. package/dist/{toExcel-D9nGg3_g.js → toExcel-C_5sNbcQ.js} +2 -2
  48. package/dist/{unit-97ZKmnbi.js → unit-CIgHfClT.js} +11 -11
  49. package/package.json +1 -1
  50. package/dist/App-DGK08eRV.js +0 -18860
  51. package/dist/ServingSequence-Cq1ZZlrm.js +0 -4
  52. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
  53. package/dist/app-D2FqvCaC.js +0 -127479
  54. package/dist/remy-BWBsUWuo.js +0 -36
@@ -1,13 +1,13 @@
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 q, isRef as A, Fragment as D, renderList as G } from "vue";
2
- import { u as H, q as M, V as O } from "./app-D2FqvCaC.js";
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-DPQYBZQl.js";
3
3
  import { components as I, FmButtonVariant as B, FmButtonColorThemeVariant as b } from "@feedmepos/ui-library";
4
- import { L as $ } from "./LinkProductSideSheet-DfZrxiHw.js";
4
+ import { L as q } from "./LinkProductSideSheet-Drg8cNHU.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 = {
8
8
  key: 0,
9
9
  class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary"
10
- }, ne = /* @__PURE__ */ K({
10
+ }, ne = /* @__PURE__ */ U({
11
11
  __name: "ApplyProduct",
12
12
  props: {
13
13
  title: {},
@@ -21,7 +21,7 @@ const W = { class: "space-y-16" }, X = { class: "flex items-center space-x-24" }
21
21
  },
22
22
  emits: ["update:overrides", "row-click"],
23
23
  setup(z, { emit: F }) {
24
- const s = z, _ = F, P = H(), { searchKey: m, filter: w } = M(), y = i(() => s.categorizedItems || P.categorizedItems), k = i(() => O(y.value, s.overrides)), R = i(() => k.value.reduce((t, e) => {
24
+ const s = z, _ = F, P = M(), { searchKey: m, filter: w } = O(), y = i(() => s.categorizedItems || P.categorizedItems), k = i(() => $(y.value, s.overrides)), R = i(() => k.value.reduce((t, e) => {
25
25
  if (w([e.name]))
26
26
  return t.push(e), t;
27
27
  const r = e.items.filter((a) => w([a.label]));
@@ -91,14 +91,14 @@ const W = { class: "space-y-16" }, X = { class: "flex items-center space-x-24" }
91
91
  }
92
92
  }
93
93
  ]
94
- ), S = U({}), L = (t) => t.variant, T = i(() => k.value.reduce((t, e) => t + e.items.length, 0));
94
+ ), S = K({}), L = (t) => t.variant, T = i(() => k.value.reduce((t, e) => t + e.items.length, 0));
95
95
  return (t, e) => {
96
96
  const r = g("fm-button"), a = g("fm-search"), l = g("fm-table");
97
97
  return d(), p("div", W, [
98
98
  v(J, { title: t.title }, {
99
99
  "append-title": h(() => [
100
100
  V("div", null, [
101
- t.editable ? (d(), j($, {
101
+ t.editable ? (d(), j(q, {
102
102
  key: 0,
103
103
  "categorized-items": y.value,
104
104
  "initial-value": t.overrides,
@@ -123,10 +123,10 @@ const W = { class: "space-y-16" }, X = { class: "flex items-center space-x-24" }
123
123
  ]),
124
124
  default: h(() => [
125
125
  V("div", X, [
126
- t.editable ? (d(), p("p", Y, q(n(c)("menu.common.labels.product_count", { count: T.value })), 1)) : C("", !0),
126
+ t.editable ? (d(), p("p", Y, A(n(c)("menu.common.labels.product_count", { count: T.value })), 1)) : C("", !0),
127
127
  v(a, {
128
128
  modelValue: n(m),
129
- "onUpdate:modelValue": e[1] || (e[1] = (o) => A(m) ? m.value = o : null),
129
+ "onUpdate:modelValue": e[1] || (e[1] = (o) => D(m) ? m.value = o : null),
130
130
  placeholder: n(c)("menu.common.labels.search_product"),
131
131
  class: "flex-1"
132
132
  }, null, 8, ["modelValue", "placeholder"])
@@ -134,7 +134,7 @@ const W = { class: "space-y-16" }, X = { class: "flex items-center space-x-24" }
134
134
  ]),
135
135
  _: 1
136
136
  }, 8, ["title"]),
137
- (d(!0), p(D, null, G(R.value, (o) => (d(), p("div", {
137
+ (d(!0), p(G, null, H(R.value, (o) => (d(), p("div", {
138
138
  key: o.id || "",
139
139
  class: "xs:overflow-x-scroll"
140
140
  }, [
@@ -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 { h as V } from "./app-D2FqvCaC.js";
2
+ import { d as V } from "./app-DPQYBZQl.js";
3
3
  import "@feedmepos/ui-library";
4
4
  import "@feedmepos/mf-common";
5
- import { u as H, l as J } from "./lodash-MHSu1pkA.js";
5
+ import { u as H, l as J } from "./lodash-C05hYW_e.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 { f as O, u as de, l as pe, b as fe, m as oe, d as xe, j as ke, h as ae, k as ge, A as ne, _ as Ce, o as he, n as Oe, R as se } from "./app-D2FqvCaC.js";
4
- import { C as Fe } from "./catalog-Bq6JWNgk.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, x as ne, _ as Ce, k as he, j as Oe, R as se } from "./app-DPQYBZQl.js";
4
+ import { C as Fe } from "./catalog-Ez6mUaCd.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-pogjGaYM.js";
7
+ import { C as R, a as L, _ as re } from "./GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-B64yEcae.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-CUXJ9cXY.js";
3
- import { b as Y, u as pe, f as I, j as fe, k as ee, l as q, n as ge, _ as _e, o as ye, i as ve } from "./app-D2FqvCaC.js";
2
+ import { u as j, a as me } from "./menu-DXRd3wdK.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-DPQYBZQl.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-DJo3MbY6.js";
5
+ import { u as ae } from "./category-1S2ifJD8.js";
6
6
  import { c as xe } from "./createForm-TSiJzrqa.js";
7
- import { c as W } from "./object-BN9wCbKv.js";
8
- import { u as Ce } from "./item-Dj35T3VU.js";
7
+ import { c as W } from "./object-D-ZNxSWx.js";
8
+ import { u as Ce } from "./item-AtZKXXux.js";
9
9
  import { _ as X } from "./FormSection.vue_vue_type_script_setup_true_lang-BWJUD8NZ.js";
10
- import { u as ke } from "./lodash-MHSu1pkA.js";
10
+ import { u as ke } from "./lodash-C05hYW_e.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 { h as Z, f as ee, k as ue, u as ye, l as ke, b as he, _ as xe, i as Ce, o as we, n as Ve } from "./app-D2FqvCaC.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-DPQYBZQl.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-CTQXFXig.js";
5
+ import { _ as Ie } from "./ApplyProducts.vue_vue_type_script_setup_true_lang-BZG7Ya6Y.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-MHSu1pkA.js";
8
+ import { u as me, l as pe } from "./lodash-C05hYW_e.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,4 +1,4 @@
1
- import { _ as f } from "./Group.vue_vue_type_script_setup_true_lang-BTL9j3_B.js";
1
+ import { _ as f } from "./Group.vue_vue_type_script_setup_true_lang-B7fTVzh9.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,14 +1,14 @@
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 { _, i as f } from "./app-D2FqvCaC.js";
3
- import { _ as g } from "./Group.vue_vue_type_script_setup_true_lang-BTL9j3_B.js";
4
- import { a as y } from "./menu-CUXJ9cXY.js";
5
- import { A as b } from "./item-Dj35T3VU.js";
2
+ import { _ as f, f as _ } from "./app-DPQYBZQl.js";
3
+ import { _ as g } from "./Group.vue_vue_type_script_setup_true_lang-B7fTVzh9.js";
4
+ import { a as y } from "./menu-DXRd3wdK.js";
5
+ import { A as b } from "./item-AtZKXXux.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",
9
9
  setup(N) {
10
10
  const t = c(0), { t: s } = h();
11
- return y().resetOnMount(), (V, r) => (i(), d(_, {
11
+ return y().resetOnMount(), (V, r) => (i(), d(f, {
12
12
  heading: n(s)("menu.group.title")
13
13
  }, {
14
14
  default: a(() => [
@@ -26,7 +26,7 @@ const v = { class: "flex-1 flex justify-between gap-8 pl-8" }, x = { class: "fle
26
26
  e("div", null, [
27
27
  t.value > 0 ? (i(), d(n(b), { key: 0 }, {
28
28
  default: a(({ trigger: o }) => [
29
- l(f, {
29
+ l(_, {
30
30
  label: n(s)("menu.group.actions.add"),
31
31
  "prepend-icon": "add",
32
32
  type: "button",
@@ -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 he, createVNode as m, unref as o, withCtx as k, 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, j as Ae, l as Fe, b as Ge, q as Ve, d as Ne, f as v, m as Pe, o as Re, n as Ue, k as Ee } from "./app-D2FqvCaC.js";
3
- import { _ as le } from "./SchedulerSelector.vue_vue_type_script_setup_true_lang-BcruguLb.js";
4
- import { M as ae, S as Se, _ as Te, A as Ie, e as $e, a as Ye } from "./item-Dj35T3VU.js";
1
+ import { defineComponent as W, ref as S, resolveComponent as C, openBlock as p, createElementBlock as F, Fragment as T, renderSlot as ke, createVNode as m, unref as o, withCtx as h, createElementVNode as d, toDisplayString as V, computed as g, createBlock as N, renderList as ne, normalizeClass as K, watch as Oe, mergeProps as we, createCommentVNode as E, createSlots as De, withModifiers as Ce, isRef as oe, h as Me, nextTick as xe } from "vue";
2
+ import { u as ue, g as Ae, i as Fe, a as Ge, n as Ve, c as Ne, b as v, m as Pe, k as Re, j as Ue, h as Ee } from "./app-DPQYBZQl.js";
3
+ import { _ as le } from "./SchedulerSelector.vue_vue_type_script_setup_true_lang-Cnoku5ln.js";
4
+ import { M as ae, S as Se, _ as Te, A as Ie, e as $e, a as Ye } from "./item-AtZKXXux.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-Bq6JWNgk.js";
7
- import { l as z, u as qe } from "./lodash-MHSu1pkA.js";
8
- import { _ as He } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-DY5ZAvXD.js";
6
+ import { C as Be } from "./catalog-Ez6mUaCd.js";
7
+ import { l as z, u as qe } from "./lodash-C05hYW_e.js";
8
+ import { _ as He } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-DwTwUBHZ.js";
9
9
  import { useI18n as se } from "@feedmepos/mf-common";
10
10
  import { V as Je } from "./vuedraggable-WU01qJgi.js";
11
11
  import { _ as Qe, a as We } from "./BottomSheetMenuItem.vue_vue_type_script_setup_true_lang-DPis3HVx.js";
12
- import { c as Xe } from "./object-BN9wCbKv.js";
12
+ import { c as Xe } from "./object-D-ZNxSWx.js";
13
13
  const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items-center justify-start" }, tt = /* @__PURE__ */ W({
14
14
  __name: "ApplyProductDialog",
15
15
  props: {
@@ -20,8 +20,8 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
20
20
  },
21
21
  emits: ["apply:product"],
22
22
  setup(B, { emit: I }) {
23
- const l = B, M = I, { t: G } = se(), h = l.initialValue.map((r) => ({ _id: r })), O = S(z.clone(h)), R = qe(
24
- () => !z.isEqual(O.value, h),
23
+ const l = B, M = I, { t: G } = se(), k = l.initialValue.map((r) => ({ _id: r })), O = S(z.clone(k)), R = qe(
24
+ () => !z.isEqual(O.value, k),
25
25
  () => {
26
26
  f.value = !1;
27
27
  }
@@ -31,7 +31,7 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
31
31
  return (r, c) => {
32
32
  const j = C("fm-button"), s = C("fm-side-sheet");
33
33
  return p(), F(T, null, [
34
- he(r.$slots, "default", { trigger: w }),
34
+ ke(r.$slots, "default", { trigger: w }),
35
35
  m(s, {
36
36
  id: "group-form",
37
37
  modelValue: f.value,
@@ -47,10 +47,10 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
47
47
  "z-index": 100,
48
48
  "onOn:clickedAway": o(R)
49
49
  }, {
50
- "side-sheet-header": k(() => [
50
+ "side-sheet-header": h(() => [
51
51
  d("p", Ze, V(r.title), 1)
52
52
  ]),
53
- "side-sheet-footer": k(() => [
53
+ "side-sheet-footer": h(() => [
54
54
  d("div", et, [
55
55
  m(j, {
56
56
  label: o(G)("common.save"),
@@ -66,7 +66,7 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
66
66
  })
67
67
  ])
68
68
  ]),
69
- default: k(() => [
69
+ default: h(() => [
70
70
  m(He, {
71
71
  overrides: O.value,
72
72
  "onUpdate:overrides": c[0] || (c[0] = ($) => O.value = $),
@@ -90,9 +90,9 @@ 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 h = C("FmButton"), O = C("FmMenuItem"), R = C("FmMenu");
93
+ const k = C("FmButton"), O = C("FmMenuItem"), R = C("FmMenu");
94
94
  return l.value ? (p(), N(Qe, { key: 0 }, {
95
- default: k(() => [
95
+ default: h(() => [
96
96
  (p(!0), F(T, null, ne(M.items, ({ icon: f, label: w, disabled: x, itemClass: r, onClick: c }) => (p(), N(We, {
97
97
  key: w,
98
98
  icon: f,
@@ -110,8 +110,8 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
110
110
  "stop-click-propagation": "",
111
111
  shift: !0
112
112
  }, {
113
- "menu-button": k(() => [
114
- m(h, {
113
+ "menu-button": h(() => [
114
+ m(k, {
115
115
  type: "button",
116
116
  variant: "tertiary",
117
117
  icon: "more_vert",
@@ -119,7 +119,7 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
119
119
  size: "md"
120
120
  })
121
121
  ]),
122
- default: k(() => [
122
+ default: h(() => [
123
123
  (p(!0), F(T, null, ne(M.items, ({ icon: f, label: w, disabled: x, itemClass: r, onClick: c }) => (p(), N(O, {
124
124
  key: w,
125
125
  disabled: x,
@@ -128,7 +128,7 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
128
128
  },
129
129
  label: w
130
130
  }, {
131
- label: k(() => [
131
+ label: h(() => [
132
132
  d("span", {
133
133
  class: K(x ? "text-fm-color-typo-disabled" : r)
134
134
  }, V(w), 3)
@@ -171,7 +171,7 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
171
171
  setup(B, {
172
172
  emit: I
173
173
  }) {
174
- const l = ue(), M = Fe(Ge(ze())), G = je(), h = g(() => l.rules.group), O = g(() => new ae(l, M.updateMenu, G)), R = g(() => O.value.mapGroups(l.groups, !1)), {
174
+ const l = ue(), M = Fe(Ge(ze())), G = je(), k = g(() => l.rules.group), O = g(() => new ae(l, M.updateMenu, G)), R = g(() => O.value.mapGroups(l.groups, !1)), {
175
175
  searchKey: f,
176
176
  filter: w
177
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;
@@ -246,7 +246,7 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
246
246
  let e = t;
247
247
  if (s.value) {
248
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), {}), ke = (A.items ?? []).filter((y) => {
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
250
  var P;
251
251
  return !((P = Q[y._id]) != null && P.includes(y.combinationKey || ""));
252
252
  }).map((y) => ({
@@ -257,7 +257,7 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
257
257
  return {
258
258
  ...A,
259
259
  ...Object.fromEntries(Object.entries(D).filter(([, y]) => !!y)),
260
- items: [...D.items ?? [], ...ke]
260
+ items: [...D.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);
@@ -293,7 +293,7 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
293
293
  key: e._id,
294
294
  initialValue: e.itemsLinked,
295
295
  group: $e(e),
296
- editable: h.value.applyProduct,
296
+ editable: k.value.applyProduct,
297
297
  "onApply:product": async (a) => {
298
298
  await O.value.applyItems(e, a.map((i) => i._id));
299
299
  }
@@ -306,16 +306,16 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
306
306
  onClick: () => te(e)
307
307
  }, {
308
308
  label: n("menu.group.actions.apply_product"),
309
- disable: !h.value.applyProduct,
309
+ disable: !k.value.applyProduct,
310
310
  onClick: a
311
311
  }, {
312
312
  label: n("menu.group.actions.duplicate_action"),
313
- disabled: !h.value.create,
313
+ disabled: !k.value.create,
314
314
  onClick: () => ce(e)
315
315
  }, {
316
316
  label: n("menu.common.actions.delete"),
317
317
  itemClass: "text-fm-color-typo-error",
318
- disabled: !h.value.delete,
318
+ disabled: !k.value.delete,
319
319
  onClick: () => pe(e)
320
320
  }];
321
321
  return m(nt, {
@@ -383,8 +383,8 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
383
383
  });
384
384
  }
385
385
  }]), fe = g(() => ({
386
- itemsLinked: h.value.showAppliedProduct,
387
- type: h.value.type
386
+ itemsLinked: k.value.showAppliedProduct,
387
+ type: k.value.type
388
388
  })), _e = async (t) => {
389
389
  const e = Ye(t), a = e.group;
390
390
  if (s.value)
@@ -429,10 +429,10 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
429
429
  title: o(n)("menu.group.empty.title")
430
430
  }, De({
431
431
  _: 2
432
- }, [h.value.create ? {
432
+ }, [k.value.create ? {
433
433
  name: "action",
434
- fn: k(() => [m(o(Ie), null, {
435
- default: k(({
434
+ fn: h(() => [m(o(Ie), null, {
435
+ default: h(({
436
436
  trigger: u
437
437
  }) => [m(a, {
438
438
  "prepend-icon": "add",
@@ -453,21 +453,21 @@ 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, [h.value.multiScheduler ? (p(), N(le, {
456
+ }, null, -1)), d("div", st, [k.value.multiScheduler ? (p(), N(le, {
457
457
  key: 0
458
458
  })) : E("", !0), q.value ? (p(), N(Q, {
459
459
  key: 1,
460
460
  modelValue: x.value,
461
461
  "onUpdate:modelValue": e[13] || (e[13] = (u) => x.value = u)
462
462
  }, {
463
- "bottom-sheet-button": k(() => [m(i, {
463
+ "bottom-sheet-button": h(() => [m(i, {
464
464
  label: o(n)("menu.group.type.title", {
465
465
  type: r.value ? o(z.capitalize)(r.value) : o(n)("menu.common.labels.all")
466
466
  }),
467
467
  class: "text-fm-color-typo-secondary",
468
468
  "right-icon": "keyboard_arrow_down"
469
469
  }, null, 8, ["label"])]),
470
- default: k(() => [d("div", null, [d("div", {
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
473
  }, V(o(n)("menu.group.type.all")), 1), d("div", {
@@ -489,7 +489,7 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
489
489
  "item-key": "_id",
490
490
  "onUpdate:modelValue": e[14] || (e[14] = (u) => X(u))
491
491
  }, {
492
- item: k(({
492
+ item: h(({
493
493
  element: u
494
494
  }) => [(p(), F("div", {
495
495
  key: u._id,
@@ -500,19 +500,19 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
500
500
  group: u
501
501
  }, null, 8, ["group"])])]))]),
502
502
  _: 1
503
- }, 8, ["model-value"])], 64)) : (p(), F("div", lt, [d("div", at, [h.value.multiScheduler ? (p(), N(le, {
503
+ }, 8, ["model-value"])], 64)) : (p(), F("div", lt, [d("div", at, [k.value.multiScheduler ? (p(), N(le, {
504
504
  key: 0
505
505
  })) : E("", !0), q.value ? (p(), N(D, {
506
506
  key: 1
507
507
  }, {
508
- "menu-button": k(() => [m(i, {
508
+ "menu-button": h(() => [m(i, {
509
509
  label: o(n)("menu.group.type.title", {
510
510
  type: r.value ? o(z.capitalize)(r.value) : o(n)("menu.common.labels.all")
511
511
  }),
512
512
  class: "text-fm-color-typo-secondary",
513
513
  "right-icon": "keyboard_arrow_down"
514
514
  }, null, 8, ["label"])]),
515
- default: k(() => [d("div", null, [m(_, {
515
+ default: h(() => [d("div", null, [m(_, {
516
516
  class: "px-16 py-8",
517
517
  label: o(n)("menu.group.type.all"),
518
518
  onClick: e[2] || (e[2] = (u) => r.value = null)
@@ -536,7 +536,7 @@ const Ze = { class: "fm-typo-en-title-md-600" }, et = { class: "flex gap-8 items
536
536
  "onUpdate:modelValue": e[6] || (e[6] = (u) => oe(f) ? f.value = u : null),
537
537
  placeholder: o(n)("menu.group.search.placeholder")
538
538
  }, null, 8, ["modelValue", "placeholder"])])]), m(Ue, null, {
539
- default: k(() => [m(A, {
539
+ default: h(() => [m(A, {
540
540
  "column-defs": ve.value,
541
541
  "column-visibility": fe.value,
542
542
  loading: o(M).checkMenuIsLoading(),
@@ -1,8 +1,8 @@
1
- import { f as k, h as c, u as j, J as q, j as C } from "./app-D2FqvCaC.js";
2
- import { defineComponent as G, computed as V, ref as b, watch as J, onMounted as H, 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 h, createCommentVNode as R } from "vue";
1
+ import { b as k, d as c, u as q, H as G, g as C } from "./app-DPQYBZQl.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";
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-DfZrxiHw.js";
5
+ import { L as ae } from "./LinkProductSideSheet-Drg8cNHU.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__ */ G({
67
+ }, pe = /* @__PURE__ */ H({
68
68
  __name: "GroupMarkupPriceDialog",
69
69
  props: {
70
70
  modelValue: {},
@@ -74,17 +74,17 @@ const oe = { class: "space-y-16" }, ne = { class: "ml-32 mt-16 space-y-8" }, re
74
74
  },
75
75
  emits: ["update:model-value"],
76
76
  setup(p, { emit: e }) {
77
- const n = p, g = j();
77
+ const n = p, g = q();
78
78
  Y();
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) => {
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) => {
80
80
  C.isBoolean(t) ? m.value = t : m.value = !m.value;
81
- }, a = b(
81
+ }, a = V(
82
82
  n.modelValue ? c(n.modelValue) : {
83
83
  percentage: 0,
84
84
  includeItems: null
85
85
  }
86
86
  );
87
- J(
87
+ j(
88
88
  () => m.value,
89
89
  (t) => {
90
90
  t && (a.value = n.modelValue ? c(n.modelValue) : {
@@ -92,8 +92,8 @@ 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
- ), V(
96
- () => q(g.variants, n.categories, n.items)
95
+ ), F(
96
+ () => G(g.variants, n.categories, n.items)
97
97
  );
98
98
  function z(t) {
99
99
  a.value = {
@@ -101,7 +101,7 @@ const oe = { class: "space-y-16" }, ne = { class: "ml-32 mt-16 space-y-8" }, re
101
101
  includeItems: t
102
102
  };
103
103
  }
104
- const f = b(
104
+ const f = V(
105
105
  0
106
106
  /* ALL */
107
107
  );
@@ -111,7 +111,7 @@ const oe = { class: "space-y-16" }, ne = { class: "ml-32 mt-16 space-y-8" }, re
111
111
  includeItems: t === 0 ? null : []
112
112
  };
113
113
  }
114
- const D = V(() => [
114
+ const D = F(() => [
115
115
  {
116
116
  label: r("menu.markup.dialog.options.all"),
117
117
  value: 0
@@ -124,14 +124,14 @@ const oe = { class: "space-y-16" }, ne = { class: "ml-32 mt-16 space-y-8" }, re
124
124
  }
125
125
  ]);
126
126
  async function E() {
127
- M("update:model-value", a.value), x(!1);
127
+ M("update:model-value", a.value), b(!1);
128
128
  }
129
- return H(() => {
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"), F = 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"), x = s("fm-button"), $ = s("fm-dialog");
133
133
  return _(), y(S, null, [
134
- K(t.$slots, "default", { trigger: x }),
134
+ K(t.$slots, "default", { trigger: b }),
135
135
  i($, {
136
136
  modelValue: m.value,
137
137
  "onUpdate:modelValue": u[3] || (u[3] = (v) => m.value = v),
@@ -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(F, {
148
+ i(x, {
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) => x(!1))
152
+ onClick: u[2] || (u[2] = (v) => b(!1))
153
153
  }),
154
- i(F, {
154
+ i(x, {
155
155
  label: o(X)(t.action),
156
156
  class: "sm:w-full xs:w-full",
157
157
  size: "md",
@@ -190,7 +190,7 @@ const oe = { class: "space-y-16" }, ne = { class: "ml-32 mt-16 space-y-8" }, re
190
190
  class: "space-y-8"
191
191
  }, {
192
192
  default: d(() => [
193
- (_(!0), y(S, null, W(D.value, (l) => (_(), h(U, {
193
+ (_(!0), y(S, null, W(D.value, (l) => (_(), R(U, {
194
194
  key: l.value,
195
195
  label: l.label,
196
196
  value: l.value
@@ -207,7 +207,7 @@ const oe = { class: "space-y-16" }, ne = { class: "ml-32 mt-16 space-y-8" }, re
207
207
  onSubmit: z
208
208
  }, {
209
209
  default: d(({ trigger: l }) => [
210
- f.value === 1 ? (_(), h(F, {
210
+ f.value === 1 ? (_(), R(x, {
211
211
  key: 0,
212
212
  "text-color": o(L).ColorPrimary,
213
213
  "border-color": o(L).ColorPrimary,
@@ -215,11 +215,11 @@ const oe = { class: "space-y-16" }, ne = { class: "ml-32 mt-16 space-y-8" }, re
215
215
  label: o(r)("menu.markup.dialog.products.link"),
216
216
  "prepend-icon": "link",
217
217
  onClick: l
218
- }, null, 8, ["text-color", "border-color", "variant", "label", "onClick"])) : R("", !0)
218
+ }, null, 8, ["text-color", "border-color", "variant", "label", "onClick"])) : h("", !0)
219
219
  ]),
220
220
  _: 1
221
221
  }, 8, ["categorized-items", "initial-value"]),
222
- (v = a.value.includeItems) != null && v.length ? (_(), y("p", re, I(o(r)("menu.markup.dialog.products.count", { count: a.value.includeItems.length })), 1)) : R("", !0)
222
+ (v = a.value.includeItems) != null && v.length ? (_(), y("p", re, I(o(r)("menu.markup.dialog.products.count", { count: a.value.includeItems.length })), 1)) : h("", !0)
223
223
  ])
224
224
  ])
225
225
  ])