@feedmepos/mf-menu 0.20.2 → 0.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-Ds2qfY_X.js → ApplyProduct.vue_vue_type_script_setup_true_lang-DxlJ6xrN.js} +10 -10
  2. package/dist/{ApplyProducts.vue_vue_type_script_setup_true_lang-BRepaPR3.js → ApplyProducts.vue_vue_type_script_setup_true_lang-CF-fCyCs.js} +5 -4
  3. package/dist/{Catalog-S5KDEWzG.js → Catalog-CVmJyr3D.js} +74 -73
  4. package/dist/{Category-DLaNEtA5.js → Category-CjzACwyb.js} +6 -6
  5. package/dist/{CookingGuide-DSGZapxz.js → CookingGuide-COZFvS4P.js} +7 -6
  6. package/dist/{Group-CBMSkmwQ.js → Group-Bun-FrIN.js} +1 -1
  7. package/dist/{Group-B0VQ-64x.js → Group-xCFTbuXd.js} +7 -7
  8. package/dist/{Group.vue_vue_type_script_setup_true_lang-DKzrhXtM.js → Group.vue_vue_type_script_setup_true_lang-DSfas9NO.js} +57 -56
  9. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BV-FC8tM.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-kl0WpFCW.js} +24 -24
  10. package/dist/{Ingredient-CnPQ0kiR.js → Ingredient-w4kVvEml.js} +69 -68
  11. package/dist/{LinkProductSideSheet-A26Otbdm.js → LinkProductSideSheet-CBHtwxCb.js} +30 -29
  12. package/dist/{PrintRoute-BlJMdPP0.js → PrintRoute-DXsa638J.js} +30 -29
  13. package/dist/{Product-BvD813LL.js → Product-BAtB4ebt.js} +1 -1
  14. package/dist/{Product.vue_vue_type_script_setup_true_lang-D_oKtXbh.js → Product.vue_vue_type_script_setup_true_lang-DeJy-daz.js} +276 -279
  15. package/dist/{Products-B8Ok-bkN.js → Products-BQHiOdhZ.js} +24 -23
  16. package/dist/{Publish-qBiJUQ4X.js → Publish-DbxeuyRV.js} +68 -67
  17. package/dist/{Recipe-CJxJJAUV.js → Recipe-T2PlHYY_.js} +84 -83
  18. package/dist/{Scheduler-DfAMwXCu.js → Scheduler-C-W85pjK.js} +2 -2
  19. package/dist/{SchedulerSelector.vue_vue_type_script_setup_true_lang-CArE_Hua.js → SchedulerSelector.vue_vue_type_script_setup_true_lang-DQNfBh14.js} +1 -1
  20. package/dist/ServingSequence-lNzb6f-1.js +4 -0
  21. package/dist/{Setting-BbgJcWsN.js → Setting-C8gm77EA.js} +1 -1
  22. package/dist/{Setting.vue_vue_type_script_setup_true_lang-BbVEzNve.js → Setting.vue_vue_type_script_setup_true_lang-BR3_ywqR.js} +13 -12
  23. package/dist/{Takeaway-wAXsZQN2.js → Takeaway-CCw_DHze.js} +12 -12
  24. package/dist/{Takeaway-CMDFYeUw.js → Takeaway-DbHgvpIH.js} +1 -1
  25. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-DSphRs_i.js → Takeaway.vue_vue_type_script_setup_true_lang-DsUQ3Dlh.js} +22 -21
  26. package/dist/{TaxSetting-C1XOTv-9.js → TaxSetting-BQdKVfBi.js} +4 -4
  27. package/dist/{Unit-BW3iqgp8.js → Unit-M217TP4K.js} +22 -21
  28. package/dist/{Variant-BJIxp9PJ.js → Variant-Boy7TugQ.js} +10 -10
  29. package/dist/{_id_-B25OxuPV.js → _id_-DA8Gpcqf.js} +6 -6
  30. package/dist/{app-BFJlAowN.js → app-rWkFl8Vq.js} +43468 -73420
  31. package/dist/app.js +4 -4
  32. package/dist/assets/linked-status-C8QAoUQr.js +24 -0
  33. package/dist/assets/validate-menu-DuCKFpOM.js +24 -0
  34. package/dist/{catalog-Do7RfIKm.js → catalog-Bas11mgo.js} +21595 -21593
  35. package/dist/{catalog-B-Z6lEFK.js → catalog-CfrgLaRX.js} +1 -1
  36. package/dist/{category-DEWEor3m.js → category-D-4M9HY7.js} +5 -4
  37. package/dist/currency-BPHwez-E.js +7 -0
  38. package/dist/index-Cwb_hpVz.js +7393 -0
  39. package/dist/{index-BEdHzZvu.js → index-v25k4isU.js} +47 -47
  40. package/dist/{item-BooojPpg.js → item-DTVh14mw.js} +1195 -1194
  41. package/dist/{lodash-247YxYiQ.js → lodash-BsZHKgKE.js} +439 -439
  42. package/dist/{menu-DCnWrgH7.js → menu-CUz01P4H.js} +6 -5
  43. package/dist/{object-B2cP_UeG.js → object-CbSdUbPF.js} +25 -25
  44. package/dist/{scheduler-0cChIv2I.js → scheduler-BuIczYeS.js} +13 -12
  45. package/dist/{takeaway-mwqVQ1ij.js → takeaway-DC-YsV2Q.js} +28 -27
  46. package/dist/{toExcel-Dha8Vf3u.js → toExcel-CaiFM8FE.js} +237 -237
  47. package/dist/{unit-BgfdgXAu.js → unit-D_VflvJf.js} +6 -5
  48. package/dist/{vuedraggable-BEszc36M.js → vuedraggable-WU01qJgi.js} +110 -110
  49. package/package.json +3 -3
  50. package/dist/ServingSequence-DxDMeto7.js +0 -4
  51. package/dist/assets/linked-status-4i88AmvK.js +0 -24
  52. package/dist/assets/validate-menu-CTKwgXfw.js +0 -24
  53. package/dist/currency-33gUke3q.js +0 -7
  54. package/dist/index-BXl09ebx.js +0 -21908
@@ -1,13 +1,13 @@
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-BFJlAowN.js";
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, k as O, S as $ } from "./app-rWkFl8Vq.js";
3
3
  import { components as I, FmButtonVariant as B, FmButtonColorThemeVariant as b } from "@feedmepos/ui-library";
4
- import { L as q } from "./LinkProductSideSheet-A26Otbdm.js";
4
+ import { L as q } from "./LinkProductSideSheet-CBHtwxCb.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__ */ U({
10
+ }, ne = /* @__PURE__ */ K({
11
11
  __name: "ApplyProduct",
12
12
  props: {
13
13
  title: {},
@@ -27,7 +27,7 @@ const W = { class: "space-y-16" }, X = { class: "flex items-center space-x-24" }
27
27
  const r = e.items.filter((a) => w([a.label]));
28
28
  return r.length && t.push({ ...e, items: r }), t;
29
29
  }, [])), E = i(() => s.showVariant || s.selectVariant);
30
- function x(t, e) {
30
+ function S(t, e) {
31
31
  var a, l;
32
32
  const r = e ? (a = s.overrides) == null ? void 0 : a.filter((o) => !(o._id === t && o.combinationKey === e)) : (l = s.overrides) == null ? void 0 : l.filter((o) => o._id !== t);
33
33
  _("update:overrides", r ?? []);
@@ -82,16 +82,16 @@ const W = { class: "space-y-16" }, X = { class: "flex items-center space-x-24" }
82
82
  var o;
83
83
  if (a > 0) {
84
84
  const f = (o = e.row.getParentRow()) == null ? void 0 : o.original;
85
- x(f.value, r.value);
85
+ S(f.value, r.value);
86
86
  } else
87
- x(r.value);
87
+ S(r.value);
88
88
  }
89
89
  })
90
90
  ) : null;
91
91
  }
92
92
  }
93
93
  ]
94
- ), S = K({}), L = (t) => t.variant, T = i(() => k.value.reduce((t, e) => t + e.items.length, 0));
94
+ ), x = U({}), 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, [
@@ -140,14 +140,14 @@ const W = { class: "space-y-16" }, X = { class: "flex items-center space-x-24" }
140
140
  }, [
141
141
  v(l, {
142
142
  "column-defs": N.value(o),
143
- "expanded-state": S.value,
143
+ "expanded-state": x.value,
144
144
  "get-sub-row": L,
145
145
  "page-size": 9999,
146
146
  "row-data": o.items,
147
147
  "search-value": n(m),
148
148
  "shrink-at": !1,
149
149
  "hide-footer": "",
150
- "onUpdate:expandedState": e[2] || (e[2] = (f) => S.value = f)
150
+ "onUpdate:expandedState": e[2] || (e[2] = (f) => x.value = f)
151
151
  }, null, 8, ["column-defs", "expanded-state", "row-data", "search-value"])
152
152
  ]))), 128))
153
153
  ]);
@@ -1,9 +1,10 @@
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-BFJlAowN.js";
2
+ import { c as V } from "./app-rWkFl8Vq.js";
3
+ import "@feedmepos/core";
3
4
  import "@feedmepos/ui-library";
4
5
  import "@feedmepos/mf-common";
5
- import { u as H, l as J } from "./lodash-247YxYiQ.js";
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({
6
+ import { u as H, l as J } from "./lodash-BsZHKgKE.js";
7
+ 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" }, de = /* @__PURE__ */ T({
7
8
  __name: "ApplyProducts",
8
9
  props: {
9
10
  title: {
@@ -190,5 +191,5 @@ const M = { class: "flex items-center gap-8" }, Q = { class: "flex flex-col h-fu
190
191
  }
191
192
  });
192
193
  export {
193
- ie as _
194
+ de as _
194
195
  };
@@ -1,20 +1,21 @@
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";
1
+ import { defineComponent as ue, ref as I, computed as $, resolveComponent as g, openBlock as m, createElementBlock as b, Fragment as V, renderSlot as ye, createVNode as u, 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, 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
- import { useRouter as Me } from "vue-router";
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-BV-FC8tM.js";
3
+ import { e as O, u as de, g as pe, a as fe, m as oe, d as xe, c as ae, f as ge, v as ne, _ as ke, i as Ce, h as he, R as se } from "./app-rWkFl8Vq.js";
4
+ import { C as Oe } from "./catalog-CfrgLaRX.js";
5
+ import { useRouter as Fe } from "vue-router";
6
+ import { useSnackbar as _e, components as le, FmButtonColorThemeVariant as W, FmButtonVariant as G, useDialog as Me, useBreakpoints as De } from "@feedmepos/ui-library";
7
+ import { C as R, a as L, _ as re } from "./GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-kl0WpFCW.js";
8
+ import { Country as Ve } from "@feedmepos/core";
8
9
  import { _ as Se } from "./FormSection.vue_vue_type_script_setup_true_lang-BWJUD8NZ.js";
9
10
  import { _ as te } from "./FormItem.vue_vue_type_script_setup_true_lang-DKsxEK-8.js";
10
11
  const Ae = { class: "space-y-32" }, Ne = {
11
12
  key: 0,
12
13
  class: "pl-32 space-x-8"
13
- }, Te = { class: "pl-[60px] space-y-16" }, Ue = { class: "space-x-16 flex items-center" }, Ee = { class: "flex-1 space-y-4" }, Re = { class: "fm-typo-en-body-lg-400" }, Le = { class: "fm-typo-en-body-md-400" }, $e = { class: "flex gap-8 items-center justify-start" }, we = /* @__PURE__ */ ie({
14
+ }, Te = { class: "pl-[60px] space-y-16" }, Ue = { class: "space-x-16 flex items-center" }, Ee = { class: "flex-1 space-y-4" }, Re = { class: "fm-typo-en-body-lg-400" }, Le = { class: "fm-typo-en-body-md-400" }, $e = { class: "flex gap-8 items-center justify-start" }, we = /* @__PURE__ */ ue({
14
15
  __name: "Form",
15
16
  setup(ve, { expose: X }) {
16
17
  const _ = I(!1), A = I(!1), K = (c, s) => {
17
- ke.isBoolean(c) ? _.value = c : _.value = !_.value, _.value && (r.value = R.fromCatalog(
18
+ xe.isBoolean(c) ? _.value = c : _.value = !_.value, _.value && (r.value = R.fromCatalog(
18
19
  s ?? oe.generator.initMenuV4Catalog(),
19
20
  N.value
20
21
  ));
@@ -29,7 +30,7 @@ const Ae = { class: "space-y-32" }, Ne = {
29
30
  var t, a;
30
31
  if (!P.currentCountry.value) return [];
31
32
  const c = ((t = r.value.taxSetting) == null ? void 0 : t.mode) === L.MANUAL ? ((a = r.value.taxSetting) == null ? void 0 : a.inclusive) ?? [] : [];
32
- return xe.Country.getCountry(P.currentCountry.value).taxSystems.map((o) => {
33
+ return Ve.getCountry(P.currentCountry.value).taxSystems.map((o) => {
33
34
  const v = c.find((x) => x.systemCode === o.code);
34
35
  return {
35
36
  inclusive: (v == null ? void 0 : v.inclusive) || !1,
@@ -70,12 +71,12 @@ const Ae = { class: "space-y-32" }, Ne = {
70
71
  A.value = !1;
71
72
  }
72
73
  }
73
- const { t: u } = me();
74
+ const { t: i } = me();
74
75
  return X({ trigger: K }), (c, s) => {
75
76
  const t = g("fm-text-field"), a = g("fm-radio"), o = g("fm-radio-group"), v = g("fm-checkbox"), x = g("fm-switch"), T = g("fm-select"), M = g("fm-button"), U = g("fm-chip"), E = g("fm-card"), l = g("fm-side-sheet");
76
77
  return m(), b(V, null, [
77
78
  ye(c.$slots, "default", { trigger: K }),
78
- i(l, {
79
+ u(l, {
79
80
  modelValue: _.value,
80
81
  "onUpdate:modelValue": s[7] || (s[7] = (n) => _.value = n),
81
82
  "is-container": e(le).FmForm,
@@ -88,15 +89,15 @@ const Ae = { class: "space-y-32" }, Ne = {
88
89
  }, {
89
90
  "side-sheet-footer": p(() => [
90
91
  f("div", $e, [
91
- i(M, {
92
+ u(M, {
92
93
  loading: A.value,
93
- label: e(u)("menu.common.actions.add"),
94
+ label: e(i)("menu.common.actions.add"),
94
95
  size: "lg",
95
96
  type: "submit",
96
97
  variant: "primary"
97
98
  }, null, 8, ["loading", "label"]),
98
- i(M, {
99
- label: e(u)("menu.common.actions.cancel"),
99
+ u(M, {
100
+ label: e(i)("menu.common.actions.cancel"),
100
101
  size: "lg",
101
102
  variant: "tertiary",
102
103
  onClick: s[6] || (s[6] = () => _.value = !1)
@@ -105,43 +106,43 @@ const Ae = { class: "space-y-32" }, Ne = {
105
106
  ]),
106
107
  default: p(() => [
107
108
  f("div", Ae, [
108
- i(Se, {
109
- title: e(u)("menu.catalog.detail")
109
+ u(Se, {
110
+ title: e(i)("menu.catalog.detail")
110
111
  }, {
111
112
  default: p(() => [
112
- i(t, {
113
+ u(t, {
113
114
  modelValue: r.value.name,
114
115
  "onUpdate:modelValue": s[0] || (s[0] = (n) => r.value.name = n),
115
116
  rules: [
116
- (n) => !Z.value.includes(n.trim()) || e(u)("menu.catalog.validation.name_used"),
117
- (n) => !!n || e(u)("menu.catalog.validation.name_required")
117
+ (n) => !Z.value.includes(n.trim()) || e(i)("menu.catalog.validation.name_used"),
118
+ (n) => !!n || e(i)("menu.catalog.validation.name_required")
118
119
  ],
119
120
  autofocus: "",
120
- label: e(u)("menu.catalog.form.name")
121
+ label: e(i)("menu.catalog.form.name")
121
122
  }, null, 8, ["modelValue", "rules", "label"]),
122
- i(te, {
123
- label: e(u)("menu.catalog.form.tax.title")
123
+ u(te, {
124
+ label: e(i)("menu.catalog.form.tax.title")
124
125
  }, {
125
126
  default: p(() => {
126
127
  var n, h;
127
128
  return [
128
- i(o, {
129
+ u(o, {
129
130
  "model-value": (n = r.value.taxSetting) == null ? void 0 : n.mode,
130
131
  "onUpdate:modelValue": s[1] || (s[1] = (y) => {
131
132
  y === e(L).AUTO ? S.value = e(R).autoTax() : S.value = e(R).manualTax(C.value);
132
133
  })
133
134
  }, {
134
135
  default: p(() => [
135
- i(a, {
136
+ u(a, {
136
137
  value: e(L).AUTO,
137
- label: e(u)("menu.catalog.form.tax.auto.label"),
138
- sublabel: e(u)("menu.catalog.form.tax.auto.sublabel"),
138
+ label: e(i)("menu.catalog.form.tax.auto.label"),
139
+ sublabel: e(i)("menu.catalog.form.tax.auto.sublabel"),
139
140
  class: "pl-4"
140
141
  }, null, 8, ["value", "label", "sublabel"]),
141
- i(a, {
142
+ u(a, {
142
143
  value: e(L).MANUAL,
143
- label: e(u)("menu.catalog.form.tax.manual.label"),
144
- sublabel: e(u)("menu.catalog.form.tax.manual.sublabel")
144
+ label: e(i)("menu.catalog.form.tax.manual.label"),
145
+ sublabel: e(i)("menu.catalog.form.tax.manual.sublabel")
145
146
  }, null, 8, ["value", "label", "sublabel"])
146
147
  ]),
147
148
  _: 1
@@ -151,7 +152,7 @@ const Ae = { class: "space-y-32" }, Ne = {
151
152
  key: y.systemCode,
152
153
  "model-value": y.inclusive,
153
154
  value: !0,
154
- label: e(u)("menu.catalog.form.tax.inclusive", { code: y.systemCode }),
155
+ label: e(i)("menu.catalog.form.tax.inclusive", { code: y.systemCode }),
155
156
  "onUpdate:modelValue": (B) => {
156
157
  Y({
157
158
  ...y,
@@ -169,14 +170,14 @@ const Ae = { class: "space-y-32" }, Ne = {
169
170
  }, 8, ["title"]),
170
171
  N.value ? (m(), F(te, {
171
172
  key: 0,
172
- label: e(u)("menu.catalog.form.link.title")
173
+ label: e(i)("menu.catalog.form.link.title")
173
174
  }, {
174
175
  default: p(() => [
175
- i(x, {
176
+ u(x, {
176
177
  "model-value": r.value.orderFrom && r.value.orderFrom !== e(O.F_ORDER_FROM).enum.NONE,
177
- label: e(u)("menu.catalog.form.link.auto_link.label"),
178
+ label: e(i)("menu.catalog.form.link.auto_link.label"),
178
179
  "label-placement": "right",
179
- sublabel: e(u)("menu.catalog.form.link.auto_link.sublabel"),
180
+ sublabel: e(i)("menu.catalog.form.link.auto_link.sublabel"),
180
181
  "onUpdate:modelValue": s[2] || (s[2] = (n) => r.value.orderFrom = n ? e(O.F_ORDER_FROM).enum.ALL : e(O.F_ORDER_FROM).enum.NONE)
181
182
  }, null, 8, ["model-value", "label", "sublabel"]),
182
183
  r.value.orderFrom !== e(O.F_ORDER_FROM).enum.NONE ? (m(), F(T, {
@@ -184,11 +185,11 @@ const Ae = { class: "space-y-32" }, Ne = {
184
185
  class: "ml-[60px]",
185
186
  items: [
186
187
  {
187
- label: e(u)("menu.catalog.form.link.options.all"),
188
+ label: e(i)("menu.catalog.form.link.options.all"),
188
189
  value: e(O.F_ORDER_FROM).enum.ALL
189
190
  },
190
191
  {
191
- label: e(u)("menu.catalog.form.link.options.pos_only"),
192
+ label: e(i)("menu.catalog.form.link.options.pos_only"),
192
193
  value: e(O.F_ORDER_FROM).enum.POS_ONLY
193
194
  }
194
195
  ],
@@ -200,29 +201,29 @@ const Ae = { class: "space-y-32" }, Ne = {
200
201
  }, 8, ["label"])) : z("", !0),
201
202
  N.value ? (m(), F(te, {
202
203
  key: 1,
203
- label: e(u)("menu.catalog.form.markup.title")
204
+ label: e(i)("menu.catalog.form.markup.title")
204
205
  }, {
205
206
  default: p(() => [
206
- i(x, {
207
+ u(x, {
207
208
  "model-value": !!r.value.markupOptions,
208
- label: e(u)("menu.catalog.form.markup.auto.label"),
209
+ label: e(i)("menu.catalog.form.markup.auto.label"),
209
210
  "label-placement": "right",
210
- sublabel: e(u)("menu.catalog.form.markup.auto.sublabel"),
211
+ sublabel: e(i)("menu.catalog.form.markup.auto.sublabel"),
211
212
  "onUpdate:modelValue": s[4] || (s[4] = (n) => r.value.markupOptions = n ? [] : null)
212
213
  }, null, 8, ["model-value", "label", "sublabel"]),
213
214
  f("div", Te, [
214
- i(re, {
215
+ u(re, {
215
216
  categories: e(D).categories,
216
217
  items: e(D).items,
217
218
  action: "add",
218
219
  "onUpdate:modelValue": s[5] || (s[5] = (n) => n && (r.value.markupOptions = [...r.value.markupOptions ?? [], n]))
219
220
  }, {
220
221
  default: p(({ trigger: n }) => [
221
- i(M, {
222
+ u(M, {
222
223
  "text-color": e(W).ColorPrimary,
223
224
  "border-color": e(W).ColorPrimary,
224
225
  variant: e(G).Secondary,
225
- label: e(u)("menu.catalog.form.markup.add"),
226
+ label: e(i)("menu.catalog.form.markup.add"),
226
227
  "prepend-icon": "add",
227
228
  onClick: n
228
229
  }, null, 8, ["text-color", "border-color", "variant", "label", "onClick"])
@@ -238,7 +239,7 @@ const Ae = { class: "space-y-32" }, Ne = {
238
239
  "onUpdate:modelValue": (y) => y && j(h, y)
239
240
  }, {
240
241
  default: p(({ trigger: y }) => [
241
- i(E, {
242
+ u(E, {
242
243
  id: JSON.stringify(n),
243
244
  class: "py-12 px-16 cursor-pointer",
244
245
  variant: "outlined",
@@ -247,18 +248,18 @@ const Ae = { class: "space-y-32" }, Ne = {
247
248
  default: p(() => [
248
249
  f("div", Ue, [
249
250
  f("div", Ee, [
250
- i(U, { class: "text-fm-color-typo-info bg-fm-color-system-info-100 font-semibold" }, {
251
+ u(U, { class: "text-fm-color-typo-info bg-fm-color-system-info-100 font-semibold" }, {
251
252
  default: p(() => [
252
- be(k(e(u)("menu.catalog.form.markup.percentage", { value: n.percentage })), 1)
253
+ be(k(e(i)("menu.catalog.form.markup.percentage", { value: n.percentage })), 1)
253
254
  ]),
254
255
  _: 2
255
256
  }, 1024),
256
- f("p", Re, k(e(u)("menu.catalog.form.markup.config", { number: h + 1 })), 1),
257
- f("p", Le, k(n.includeItems ? e(u)("menu.catalog.form.markup.products", {
257
+ f("p", Re, k(e(i)("menu.catalog.form.markup.config", { number: h + 1 })), 1),
258
+ f("p", Le, k(n.includeItems ? e(i)("menu.catalog.form.markup.products", {
258
259
  count: n.includeItems.length
259
- }) : e(u)("menu.catalog.form.markup.all_items")), 1)
260
+ }) : e(i)("menu.catalog.form.markup.all_items")), 1)
260
261
  ]),
261
- i(M, {
262
+ u(M, {
262
263
  variant: e(G).Tertiary,
263
264
  "prepend-icon": "delete",
264
265
  onClick: (B) => H(h)
@@ -281,7 +282,7 @@ const Ae = { class: "space-y-32" }, Ne = {
281
282
  ], 64);
282
283
  };
283
284
  }
284
- }), ue = we, Ie = {
285
+ }), ie = we, Ie = {
285
286
  key: 1,
286
287
  class: "flex flex-col overflow-scroll divide-y divide-fm-color-neutral-gray-100"
287
288
  }, Pe = ["onClick"], Be = {
@@ -308,10 +309,10 @@ const Ae = { class: "space-y-32" }, Ne = {
308
309
  class: "space-y-8 flex-1"
309
310
  }, Xe = {
310
311
  class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
311
- }, Ze = "main", ia = /* @__PURE__ */ ie({
312
+ }, Ze = "main", ca = /* @__PURE__ */ ue({
312
313
  __name: "Catalog",
313
314
  setup(ve) {
314
- const X = ce(), _ = de(), A = _e(), K = fe(A), N = De(), D = pe(K), P = Me(), {
315
+ const X = ce(), _ = de(), A = _e(), K = fe(A), N = Me(), D = pe(K), P = Fe(), {
315
316
  t: d
316
317
  } = me();
317
318
  function r(t, a) {
@@ -368,7 +369,7 @@ const Ae = { class: "space-y-32" }, Ne = {
368
369
  defaultOrderFrom: a.defaultOrderFrom
369
370
  }))].map((a) => {
370
371
  var x;
371
- const o = Z(((x = a.doc) == null ? void 0 : x._id) || null), v = a.doc ? Fe.getSellingItem(a.doc, _.state.menu) : _.state.menu.modules.item;
372
+ const o = Z(((x = a.doc) == null ? void 0 : x._id) || null), v = a.doc ? Oe.getSellingItem(a.doc, _.state.menu) : _.state.menu.modules.item;
372
373
  return {
373
374
  ...a,
374
375
  taxMode: a.taxes ? "Manual" : "Automatic",
@@ -425,7 +426,7 @@ const Ae = { class: "space-y-32" }, Ne = {
425
426
  });
426
427
  });
427
428
  }
428
- const u = I([{
429
+ const i = I([{
429
430
  accessorKey: "name",
430
431
  header: () => d("menu.catalog.table.columns.title"),
431
432
  enableSorting: !1
@@ -473,13 +474,13 @@ const Ae = { class: "space-y-32" }, Ne = {
473
474
  }, ["stop", "prevent"])
474
475
  })]);
475
476
  }
476
- }]), c = Ve(), s = $(() => c.breakpoints.value.xs);
477
+ }]), c = De(), s = $(() => c.breakpoints.value.xs);
477
478
  return (t, a) => {
478
479
  const o = g("fm-button"), v = g("FmTable"), x = g("FmButton"), T = g("fm-card-header"), M = g("fm-card-section"), U = g("fm-card"), E = g("fm-side-sheet");
479
- return m(), F(Ce, {
480
+ return m(), F(ke, {
480
481
  heading: e(d)("menu.catalog.title")
481
482
  }, {
482
- "append-heading": p(() => [C.value.length > 0 ? (m(), F(e(ue), {
483
+ "append-heading": p(() => [C.value.length > 0 ? (m(), F(e(ie), {
483
484
  key: 0,
484
485
  ref_key: "createCatalogManagerFormRef",
485
486
  ref: j
@@ -488,26 +489,26 @@ const Ae = { class: "space-y-32" }, Ne = {
488
489
  trigger: l
489
490
  }) => [f("div", {
490
491
  class: ee([["xs:fixed xs:z-10 xs:bottom-[68px] xs:right-16"], "ml-auto xs:ml-0 flex flex-row gap-8"])
491
- }, [i(o, {
492
+ }, [u(o, {
492
493
  label: e(d)("menu.catalog.actions.view_usage"),
493
494
  onClick: a[0] || (a[0] = (n) => S.value = !0),
494
495
  variant: "secondary"
495
- }, null, 8, ["label"]), i(o, {
496
+ }, null, 8, ["label"]), u(o, {
496
497
  label: e(d)("menu.catalog.actions.add"),
497
498
  "prepend-icon": "add",
498
499
  onClick: l
499
500
  }, null, 8, ["label", "onClick"])])]),
500
501
  _: 1
501
502
  }, 512)) : z("", !0)]),
502
- default: p(() => [C.value.length === 0 ? (m(), F(e(he), {
503
+ default: p(() => [C.value.length === 0 ? (m(), F(e(Ce), {
503
504
  key: 0,
504
505
  subtitle: e(d)("menu.catalog.empty.subtitle"),
505
506
  title: e(d)("menu.catalog.empty.title")
506
507
  }, {
507
- action: p(() => [i(e(ue), null, {
508
+ action: p(() => [u(e(ie), null, {
508
509
  default: p(({
509
510
  trigger: l
510
- }) => [i(o, {
511
+ }) => [u(o, {
511
512
  label: e(d)("menu.catalog.actions.add"),
512
513
  "prepend-icon": "add",
513
514
  onClick: l
@@ -521,21 +522,21 @@ const Ae = { class: "space-y-32" }, Ne = {
521
522
  key: l.id,
522
523
  class: "flex flex-row py-12 px-16 items-center",
523
524
  onClick: (n) => Y(l.id)
524
- }, [f("div", Be, [f("p", ze, " Tax calculation: " + k(l.taxMode), 1), f("p", Ge, " Auto link product: " + k(l.autoLink), 1), f("p", Ke, k(l.name), 1)]), f("div", Ye, [i(x, {
525
+ }, [f("div", Be, [f("p", ze, " Tax calculation: " + k(l.taxMode), 1), f("p", Ge, " Auto link product: " + k(l.autoLink), 1), f("p", Ke, k(l.name), 1)]), f("div", Ye, [u(x, {
525
526
  "text-color": e(W).NeutralGray400,
526
527
  variant: e(G).Tertiary,
527
528
  "prepend-icon": "file_copy",
528
529
  onClick: Q((n) => H(l), ["stop"])
529
- }, null, 8, ["text-color", "variant", "onClick"]), i(x, {
530
+ }, null, 8, ["text-color", "variant", "onClick"]), u(x, {
530
531
  "text-color": e(W).NeutralGray400,
531
532
  variant: e(G).Tertiary,
532
533
  "prepend-icon": "delete",
533
534
  onClick: Q((n) => q(l), ["stop"])
534
- }, null, 8, ["text-color", "variant", "onClick"])])], 8, Pe))), 128))])) : (m(), F(Oe, {
535
+ }, null, 8, ["text-color", "variant", "onClick"])])], 8, Pe))), 128))])) : (m(), F(he, {
535
536
  key: 0
536
537
  }, {
537
- default: p(() => [i(v, {
538
- "column-defs": u.value,
538
+ default: p(() => [u(v, {
539
+ "column-defs": i.value,
539
540
  "row-data": C.value,
540
541
  "page-size": C.value.length,
541
542
  "hide-footer": !0,
@@ -543,7 +544,7 @@ const Ae = { class: "space-y-32" }, Ne = {
543
544
  onRowClick: a[1] || (a[1] = (l) => Y(l.original.id))
544
545
  }, null, 8, ["column-defs", "row-data", "page-size"])]),
545
546
  _: 1
546
- })), i(E, {
547
+ })), u(E, {
547
548
  modelValue: S.value,
548
549
  "onUpdate:modelValue": a[2] || (a[2] = (l) => S.value = l),
549
550
  "max-width": 560,
@@ -555,12 +556,12 @@ const Ae = { class: "space-y-32" }, Ne = {
555
556
  class: "relative",
556
557
  variant: "outlined"
557
558
  }, {
558
- default: p(() => [i(T, {
559
+ default: p(() => [u(T, {
559
560
  subtitle: e(d)("menu.catalog.usage.tax_calculation") + `: ${l.taxMode} (${l.totalProducts} ${e(d)("menu.catalog.usage.products", {
560
561
  count: l.totalProducts
561
562
  })})`,
562
563
  title: l.name
563
- }, null, 8, ["subtitle", "title"]), i(M, {
564
+ }, null, 8, ["subtitle", "title"]), u(M, {
564
565
  class: ee(["pt-8 space-y-12", "divide-y divide-fm-color-neutral-gray-100"])
565
566
  }, {
566
567
  default: p(() => [(m(!0), b(V, null, w(l.restaurants, (h, y) => (m(), b("div", {
@@ -582,5 +583,5 @@ const Ae = { class: "space-y-32" }, Ne = {
582
583
  }
583
584
  });
584
585
  export {
585
- ia as default
586
+ ca as default
586
587
  };
@@ -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-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";
2
+ import { u as j, a as me } from "./menu-CUz01P4H.js";
3
+ import { a as Y, u as pe, e as I, d as fe, f as ee, g as q, h as ge, _ as _e, i as ye, b as ve } from "./app-rWkFl8Vq.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-DEWEor3m.js";
5
+ import { u as ae } from "./category-D-4M9HY7.js";
6
6
  import { c as xe } from "./createForm-TSiJzrqa.js";
7
- import { c as W } from "./object-B2cP_UeG.js";
8
- import { u as Ce } from "./item-BooojPpg.js";
7
+ import { c as W } from "./object-CbSdUbPF.js";
8
+ import { u as Ce } from "./item-DTVh14mw.js";
9
9
  import { _ as X } from "./FormSection.vue_vue_type_script_setup_true_lang-BWJUD8NZ.js";
10
- import { u as ke } from "./lodash-247YxYiQ.js";
10
+ import { u as ke } from "./lodash-BsZHKgKE.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,12 @@
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-BFJlAowN.js";
2
+ import { c as Z, e as ee, f as ue, u as ye, g as ke, a as he, _ as xe, b as Ce, i as we, h as Ve } from "./app-rWkFl8Vq.js";
3
3
  import { components as de, useSnackbar as Fe, useDialog as Se } from "@feedmepos/ui-library";
4
- import { d as $e } from "./vuedraggable-BEszc36M.js";
5
- import { _ as Ie } from "./ApplyProducts.vue_vue_type_script_setup_true_lang-BRepaPR3.js";
4
+ import { V as $e } from "./vuedraggable-WU01qJgi.js";
5
+ import { _ as Ie } from "./ApplyProducts.vue_vue_type_script_setup_true_lang-CF-fCyCs.js";
6
+ import "@feedmepos/core";
6
7
  import { useI18n as ie } from "@feedmepos/mf-common";
7
8
  import { _ as X } from "./FormSection.vue_vue_type_script_setup_true_lang-BWJUD8NZ.js";
8
- import { u as me, l as pe } from "./lodash-247YxYiQ.js";
9
+ import { u as me, l as pe } from "./lodash-BsZHKgKE.js";
9
10
  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
11
  __name: "CookingGuideStepDialog",
11
12
  emits: ["onComplete"],
@@ -687,7 +688,7 @@ const _o = {
687
688
  class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
688
689
  }, ko = {
689
690
  class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
690
- }, Io = /* @__PURE__ */ le({
691
+ }, Oo = /* @__PURE__ */ le({
691
692
  __name: "CookingGuide",
692
693
  setup(U) {
693
694
  const {
@@ -858,5 +859,5 @@ const _o = {
858
859
  }
859
860
  });
860
861
  export {
861
- Io as default
862
+ Oo as default
862
863
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./Group.vue_vue_type_script_setup_true_lang-DKzrhXtM.js";
1
+ import { _ as f } from "./Group.vue_vue_type_script_setup_true_lang-DSfas9NO.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 { _ 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";
2
+ import { _, b as f } from "./app-rWkFl8Vq.js";
3
+ import { _ as g } from "./Group.vue_vue_type_script_setup_true_lang-DSfas9NO.js";
4
+ import { a as b } from "./menu-CUz01P4H.js";
5
+ import { A as y } from "./item-DTVh14mw.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(f, {
11
+ return b().resetOnMount(), (V, r) => (i(), d(_, {
12
12
  heading: n(s)("menu.group.title")
13
13
  }, {
14
14
  default: a(() => [
@@ -24,9 +24,9 @@ const v = { class: "flex-1 flex justify-between gap-8 pl-8" }, x = { class: "fle
24
24
  ])
25
25
  ]),
26
26
  e("div", null, [
27
- t.value > 0 ? (i(), d(n(b), { key: 0 }, {
27
+ t.value > 0 ? (i(), d(n(y), { key: 0 }, {
28
28
  default: a(({ trigger: o }) => [
29
- l(_, {
29
+ l(f, {
30
30
  label: n(s)("menu.group.actions.add"),
31
31
  "prepend-icon": "add",
32
32
  type: "button",