@feedmepos/mf-menu 0.31.30-beta.1 → 0.31.31-beta.1

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 (62) hide show
  1. package/dist/{App-CrQBq4gc.js → App-1TX8v7ZA.js} +10 -8
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-D00UOSsK.js → ApplyProduct.vue_vue_type_script_setup_true_lang-CR7QrFUG.js} +12 -12
  3. package/dist/{Catalog-D4m8x_f2.js → Catalog-DWClc58s.js} +75 -74
  4. package/dist/{Category-sQll5ITQ.js → Category-BqKFvFam.js} +60 -60
  5. package/dist/{Category-Ql1kDDH-.js → Category-IYMtMoT-.js} +28 -28
  6. package/dist/{CookingGuide-CSutufcu.js → CookingGuide-BayJ6zj4.js} +103 -101
  7. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-BqhYFXNG.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-Ceq86b3d.js} +1 -1
  8. package/dist/{Group-CnBE6CiB.js → Group-LqSX7ue6.js} +1 -1
  9. package/dist/{Group-YqVh5hC0.js → Group-RujTPTns.js} +3 -3
  10. package/dist/{Group.vue_vue_type_script_setup_true_lang-D9TSH4sS.js → Group.vue_vue_type_script_setup_true_lang-Dj9ZmkYe.js} +138 -137
  11. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CqriuXVC.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-D5GWkh3G.js} +16 -16
  12. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-CaIU0RsG.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-C4IrA3es.js} +4616 -4610
  13. package/dist/{Ingredient-MhLxJzAU.js → Ingredient-_tc8llr1.js} +65 -64
  14. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-CIbExsMI.js → InventoryBinding.vue_vue_type_script_setup_true_lang-DLFDf-VZ.js} +14 -12
  15. package/dist/{LinkProductSideSheet-D7vYZbFy.js → LinkProductSideSheet-C6rF-G1v.js} +14 -12
  16. package/dist/{MenuSetting-n0me5wY8.js → MenuSetting-xDHeeROY.js} +27 -26
  17. package/dist/{PrintRoute-CudZZYbe.js → PrintRoute-B_TFMn5e.js} +17 -15
  18. package/dist/{Product-DPZQgWET.js → Product-DdEEqrtc.js} +1 -1
  19. package/dist/{Product.vue_vue_type_script_setup_true_lang-CdaeZy_o.js → Product.vue_vue_type_script_setup_true_lang-zcistmwh.js} +257 -256
  20. package/dist/{ProductInternalTools-DgANHliV.js → ProductInternalTools-BcC7BF6W.js} +45 -45
  21. package/dist/{Products-Ez4R3jKW.js → Products-Cu0cJshV.js} +74 -72
  22. package/dist/{Publish-B4DEPe1I.js → Publish-Bm3Xiks1.js} +34 -32
  23. package/dist/{Recipe-Cripr-gY.js → Recipe-DWK-luIZ.js} +65 -63
  24. package/dist/{Scheduler-C-OV9d7d.js → Scheduler-Cb1TeBhW.js} +19 -19
  25. package/dist/{ServingSequence-DAumDXP1.js → ServingSequence-evSIET_8.js} +34 -34
  26. package/dist/{Setting-ByaHpIAN.js → Setting-Cn3kwC9F.js} +54 -53
  27. package/dist/{Subcategory-ro2aGt2H.js → Subcategory-q4m4qHsU.js} +34 -34
  28. package/dist/{Takeaway-CJb0ayDC.js → Takeaway-ClepHYGu.js} +14 -14
  29. package/dist/{Takeaway-AEg_0gKg.js → Takeaway-D-rdUZuh.js} +1 -1
  30. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-Cjj4bxoL.js → Takeaway.vue_vue_type_script_setup_true_lang-y9Yxstu2.js} +41 -40
  31. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-Drf4n4rj.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BSeLfoOA.js} +1108 -1106
  32. package/dist/{Unit-1wzUBplb.js → Unit-IM8Naj82.js} +12 -12
  33. package/dist/{Variant-Dnz2v5u0.js → Variant-fzGvwaMo.js} +16 -16
  34. package/dist/{_id_-C3rBZ6zL.js → _id_-BsKNG9Qv.js} +22 -22
  35. package/dist/{app-sDPxNF11.js → app-BzQRUMTK.js} +3 -3
  36. package/dist/{app-CLY6CoaV.js → app-CoVUUCa_.js} +24 -24
  37. package/dist/app.js +1 -1
  38. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  39. package/dist/assets/{linked-status-BZ4FSJ_Z.js → linked-status-eQqjvOq_.js} +2 -2
  40. package/dist/assets/{override-menu-C-fWJdVd.js → override-menu-C8NTBJgN.js} +2 -2
  41. package/dist/assets/{validate-menu-BDEM_Odz.js → validate-menu-Dn-OO7Ed.js} +2 -2
  42. package/dist/{catalog-bkFntZNz.js → catalog-CaXceaA2.js} +1 -1
  43. package/dist/{catalogSetting-zrKwGJ_C.js → catalogSetting-BGvckFdh.js} +1 -1
  44. package/dist/{category-BuPYaEsy.js → category-u5eo_Vjd.js} +5 -3
  45. package/dist/currency-BPHwez-E.js +7 -0
  46. package/dist/{dayjs.min-CR2NIyKn.js → dayjs.min-Bsr3tJCn.js} +1 -1
  47. package/dist/{index-BNORpjos.js → index-Bbx4iZ6n.js} +27 -27
  48. package/dist/{index-Dp_vLFQp.js → index-DSAG0yWh.js} +22 -20
  49. package/dist/{index-D20u0bCl.js → index-tRQb7RN_.js} +1 -1
  50. package/dist/{item-D4DcBt7N.js → item-BAqzKh4O.js} +801 -799
  51. package/dist/{jszip.min-CRJ61J9H.js → jszip.min-BKJtvCjM.js} +353 -353
  52. package/dist/{menu-Dw-Hpy07.js → menu-CDrsBjmr.js} +11 -9
  53. package/dist/menu-CsIzrBEr.js +74044 -0
  54. package/dist/packages/shared/src/permission/posPermission.d.ts +6 -0
  55. package/dist/{priceTier-EDLTGEjz.js → priceTier-DfbHonGe.js} +4 -4
  56. package/dist/{scheduler-CpPn2BlK.js → scheduler-DTWaBudB.js} +13 -11
  57. package/dist/{subcategory-B_W6vbM8.js → subcategory-D-R5r1Tr.js} +86 -84
  58. package/dist/{toExcel-D02OlDJu.js → toExcel-84VTtSA7.js} +2 -2
  59. package/dist/{unit-fro9wz1K.js → unit-B4zscxzo.js} +24 -23
  60. package/package.json +1 -1
  61. package/dist/currency-BISImIgX.js +0 -7
  62. package/dist/menu-ibc-yXVt.js +0 -107745
@@ -1,4 +1,4 @@
1
- import { u as h, G as l, J as d, V as _ } from "./menu-ibc-yXVt.js";
1
+ import { u as h, B as l, H as d, T as _ } from "./menu-CsIzrBEr.js";
2
2
  import "@feedmepos/ui-library";
3
3
  class u {
4
4
  constructor(t, e, a, r) {
@@ -1,4 +1,4 @@
1
- import { G as e, H as t } from "./menu-ibc-yXVt.js";
1
+ import { B as e, D as t } from "./menu-CsIzrBEr.js";
2
2
  var m = /* @__PURE__ */ ((n) => (n.AUTO = "auto", n.MANUAL = "manual", n))(m || {});
3
3
  class a {
4
4
  static fromCatalog(r, u) {
@@ -1,7 +1,9 @@
1
1
  import { defineComponent as M, watch as _, ref as f, resolveComponent as g, createBlock as x, openBlock as C, unref as l, withCtx as V, createVNode as A } from "vue";
2
- import { J as s, G as u, u as F } from "./menu-ibc-yXVt.js";
2
+ import { H as s, B as u, u as F } from "./menu-CsIzrBEr.js";
3
3
  import { useI18n as E } from "@feedmepos/mf-common";
4
4
  import { useDialogChild as O } from "@feedmepos/ui-library";
5
+ import "@feedmepos/core";
6
+ import "@feedmepos/core/entity";
5
7
  const y = /* @__PURE__ */ M({
6
8
  __name: "AddCategoryDialogContentComponent",
7
9
  props: {
@@ -43,7 +45,7 @@ const y = /* @__PURE__ */ M({
43
45
  });
44
46
  };
45
47
  }
46
- }), T = ({
48
+ }), D = ({
47
49
  dialog: n,
48
50
  menuLoader: r
49
51
  }) => {
@@ -152,5 +154,5 @@ const y = /* @__PURE__ */ M({
152
154
  };
153
155
  export {
154
156
  y as _,
155
- T as u
157
+ D as u
156
158
  };
@@ -0,0 +1,7 @@
1
+ import { Dinero as e } from "@feedmepos/core";
2
+ function n(r, o = !0) {
3
+ return e.fromFdoDinero(r).toFormat(o).replaceAll(" ", "");
4
+ }
5
+ export {
6
+ n as f
7
+ };
@@ -1,4 +1,4 @@
1
- import { g as a, ai as r } from "./menu-ibc-yXVt.js";
1
+ import { g as a, af as r } from "./menu-CsIzrBEr.js";
2
2
  var s = r();
3
3
  const t = /* @__PURE__ */ a(s);
4
4
  export {
@@ -1,12 +1,12 @@
1
- import { defineComponent as R, computed as w, ref as E, watch as C, resolveComponent as g, createElementBlock as F, openBlock as V, Fragment as K, renderSlot as j, createVNode as s, unref as n, withCtx as m, createElementVNode as d, createBlock as M, createCommentVNode as U, normalizeClass as H, createSlots as J, toDisplayString as Q } from "vue";
2
- import { O as W, D as X, I as Z, H as f, B, J as D, G as I } from "./menu-ibc-yXVt.js";
1
+ import { defineComponent as R, computed as w, ref as E, watch as C, resolveComponent as g, createElementBlock as M, openBlock as V, Fragment as K, renderSlot as j, createVNode as s, unref as n, withCtx as m, createElementVNode as d, createBlock as F, createCommentVNode as U, normalizeClass as H, createSlots as J, toDisplayString as Q } from "vue";
2
+ import { M as W, A as X, G as Z, D as f, z as B, H as D, B as S } from "./menu-CsIzrBEr.js";
3
3
  import { d as ee } from "./vuedraggable-CK8z7qA8.js";
4
4
  import { useI18n as te } from "@feedmepos/mf-common";
5
5
  import { useSnackbar as ae, components as ne } from "@feedmepos/ui-library";
6
6
  import { _ as oe } from "./FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js";
7
7
  import { _ as le } from "./FormSection.vue_vue_type_script_setup_true_lang-CO4YGYLB.js";
8
8
  import { u as ie } from "./discardConfirm-BHni0LNu.js";
9
- import { _ as se } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-D00UOSsK.js";
9
+ import { _ as se } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-CR7QrFUG.js";
10
10
  import { c as re } from "./check-C9mY6LiX.js";
11
11
  const ue = { class: "fm-typo-en-title-md-600" }, me = { class: "py-16 space-y-32" }, de = ["data-not-allow-sort"], ce = {
12
12
  key: 1,
@@ -16,10 +16,10 @@ const ue = { class: "fm-typo-en-title-md-600" }, me = { class: "py-16 space-y-32
16
16
  props: {
17
17
  initialValue: {}
18
18
  },
19
- setup(S, { expose: N }) {
20
- const r = S, b = W(X(ae())), { t: o } = te(), L = w(
19
+ setup(I, { expose: N }) {
20
+ const r = I, b = W(X(ae())), { t: o } = te(), A = w(
21
21
  () => r.initialValue ? o("menu.variant.form.title.edit") : o("menu.variant.form.title.add")
22
- ), A = w(() => r.initialValue ? "Update" : "Add"), O = () => {
22
+ ), L = w(() => r.initialValue ? "Update" : "Add"), k = () => {
23
23
  if (r.initialValue) {
24
24
  const e = f(r.initialValue);
25
25
  return e.options.push({
@@ -28,7 +28,7 @@ const ue = { class: "fm-typo-en-title-md-600" }, me = { class: "py-16 space-y-32
28
28
  }), e;
29
29
  } else
30
30
  return { ...B.generator.initMenuV4VariantGroup(), usedBy: [] };
31
- }, t = E(O()), y = E(!1), i = E(!1), x = (e) => {
31
+ }, t = E(k()), y = E(!1), i = E(!1), x = (e) => {
32
32
  re.isBoolean(e) ? i.value = e : i.value = !i.value;
33
33
  };
34
34
  function $(e) {
@@ -36,9 +36,9 @@ const ue = { class: "fm-typo-en-title-md-600" }, me = { class: "py-16 space-y-32
36
36
  }
37
37
  function q(e, a) {
38
38
  const l = f(t.value.options), c = l.findIndex((v) => v._id == e);
39
- l[c].name = a, t.value.options = l, c === t.value.options.length - 1 && k();
39
+ l[c].name = a, t.value.options = l, c === t.value.options.length - 1 && O();
40
40
  }
41
- function k() {
41
+ function O() {
42
42
  const e = f(t.value.options);
43
43
  t.value.options = [
44
44
  ...e,
@@ -48,24 +48,24 @@ const ue = { class: "fm-typo-en-title-md-600" }, me = { class: "py-16 space-y-32
48
48
  }
49
49
  ];
50
50
  }
51
- function P(e) {
51
+ function z(e) {
52
52
  const a = f(t.value.options);
53
53
  t.value.options = a.filter((l) => l._id !== e);
54
54
  }
55
55
  C(
56
56
  () => t.value.options,
57
57
  (e) => {
58
- e.length <= 0 && k();
58
+ e.length <= 0 && O();
59
59
  },
60
60
  {
61
61
  immediate: !0
62
62
  }
63
63
  );
64
- function T(e) {
64
+ function P(e) {
65
65
  const a = e.draggedContext.futureIndex, l = e.relatedContext.list;
66
66
  return a !== l.length - 1;
67
67
  }
68
- const Y = ie(
68
+ const T = ie(
69
69
  () => {
70
70
  if (r.initialValue) {
71
71
  const e = t.value.options.filter((a) => !!a.name.trim());
@@ -76,20 +76,20 @@ const ue = { class: "fm-typo-en-title-md-600" }, me = { class: "py-16 space-y-32
76
76
  () => {
77
77
  i.value = !1;
78
78
  }
79
- ), z = async () => {
79
+ ), Y = async () => {
80
80
  try {
81
81
  y.value = !0;
82
82
  const e = f(t.value);
83
83
  e.options = e.options.filter((a) => !!a.name.trim()), r.initialValue ? await b.updateMenu(
84
84
  {
85
- module: I.F_MENU_MODULE_V4_KEY.enum.variant,
85
+ module: S.F_MENU_MODULE_V4_KEY.enum.variant,
86
86
  operation: D.F_OPERATION_TYPE.update,
87
87
  data: e
88
88
  },
89
89
  e.name
90
90
  ) : await b.updateMenu(
91
91
  {
92
- module: I.F_MENU_MODULE_V4_KEY.enum.variant,
92
+ module: S.F_MENU_MODULE_V4_KEY.enum.variant,
93
93
  operation: D.F_OPERATION_TYPE.create,
94
94
  data: e
95
95
  },
@@ -102,14 +102,14 @@ const ue = { class: "fm-typo-en-title-md-600" }, me = { class: "py-16 space-y-32
102
102
  return C(
103
103
  () => i.value,
104
104
  (e) => {
105
- e && (t.value = O());
105
+ e && (t.value = k());
106
106
  }
107
107
  ), N({
108
108
  show: i,
109
109
  trigger: x
110
110
  }), (e, a) => {
111
111
  const l = g("fm-text-field"), c = g("fm-icon"), v = g("fm-button"), G = g("fm-side-sheet");
112
- return V(), F(K, null, [
112
+ return V(), M(K, null, [
113
113
  j(e.$slots, "default", { trigger: x }),
114
114
  s(G, {
115
115
  id: "variant-form",
@@ -117,19 +117,19 @@ const ue = { class: "fm-typo-en-title-md-600" }, me = { class: "py-16 space-y-32
117
117
  "onUpdate:modelValue": a[2] || (a[2] = (_) => i.value = _),
118
118
  "is-container": n(ne).FmForm,
119
119
  "is-container-props": {
120
- onValidationSuccess: z,
120
+ onValidationSuccess: Y,
121
121
  blameFormChildOnValidationFailed: !0
122
122
  },
123
123
  "max-width": 560,
124
- "onOn:clickedAway": n(Y)
124
+ "onOn:clickedAway": n(T)
125
125
  }, {
126
126
  "side-sheet-header": m(() => [
127
- d("p", ue, Q(L.value), 1)
127
+ d("p", ue, Q(A.value), 1)
128
128
  ]),
129
129
  "side-sheet-footer": m(() => [
130
130
  d("div", fe, [
131
131
  s(v, {
132
- label: A.value,
132
+ label: L.value,
133
133
  loading: y.value,
134
134
  size: "lg",
135
135
  type: "submit",
@@ -167,7 +167,7 @@ const ue = { class: "fm-typo-en-title-md-600" }, me = { class: "py-16 space-y-32
167
167
  d("div", null, [
168
168
  s(n(ee), {
169
169
  "model-value": t.value.options,
170
- move: T,
170
+ move: P,
171
171
  class: "space-y-16",
172
172
  group: "categories",
173
173
  handle: ".handle",
@@ -179,11 +179,11 @@ const ue = { class: "fm-typo-en-title-md-600" }, me = { class: "py-16 space-y-32
179
179
  class: H(["flex items-center", "space-x-8"]),
180
180
  "data-not-allow-sort": p === t.value.options.length - 1
181
181
  }, [
182
- p !== t.value.options.length - 1 ? (V(), M(c, {
182
+ p !== t.value.options.length - 1 ? (V(), F(c, {
183
183
  key: 0,
184
184
  class: "handle",
185
185
  name: "drag_handle"
186
- })) : p > 0 ? (V(), F("div", ce)) : U("", !0),
186
+ })) : p > 0 ? (V(), M("div", ce)) : U("", !0),
187
187
  d("div", pe, [
188
188
  s(l, {
189
189
  "model-value": u.name,
@@ -200,7 +200,7 @@ const ue = { class: "fm-typo-en-title-md-600" }, me = { class: "py-16 space-y-32
200
200
  fn: m(() => [
201
201
  s(c, {
202
202
  name: "close",
203
- onClick: (h) => P(u._id)
203
+ onClick: (h) => z(u._id)
204
204
  }, null, 8, ["onClick"])
205
205
  ]),
206
206
  key: "0"
@@ -218,7 +218,7 @@ const ue = { class: "fm-typo-en-title-md-600" }, me = { class: "py-16 space-y-32
218
218
  ]),
219
219
  _: 1
220
220
  }, 8, ["title"]),
221
- (_ = t.value.usedBy) != null && _.length ? (V(), M(se, {
221
+ (_ = t.value.usedBy) != null && _.length ? (V(), F(se, {
222
222
  key: 0,
223
223
  editable: !1,
224
224
  overrides: t.value.usedBy || [],
@@ -1,12 +1,14 @@
1
- import { A as S, G as A, u as K, H as O, B as q, I as R } from "./menu-ibc-yXVt.js";
2
- import { defineComponent as T, ref as f, computed as B, watch as L, onMounted as z, onBeforeUnmount as H, resolveComponent as F, createBlock as N, openBlock as M, withModifiers as C, withCtx as g, renderSlot as U, createElementBlock as P, Fragment as W, createVNode as c, unref as i, createElementVNode as D, createCommentVNode as j, toDisplayString as G } from "vue";
1
+ import { B as K, u as O, D as z, z as S, G as A } from "./menu-CsIzrBEr.js";
2
+ import { defineComponent as T, ref as f, computed as B, watch as L, onMounted as R, onBeforeUnmount as P, resolveComponent as F, createBlock as N, openBlock as M, withModifiers as C, withCtx as g, renderSlot as U, createElementBlock as W, Fragment as j, createVNode as c, unref as i, createElementVNode as D, createCommentVNode as H, toDisplayString as G } from "vue";
3
3
  import { useI18n as I } from "@feedmepos/mf-common";
4
4
  import { components as Y } from "@feedmepos/ui-library";
5
5
  import { _ as Z } from "./FormSection.vue_vue_type_script_setup_true_lang-CO4YGYLB.js";
6
6
  import { u as J } from "./discardConfirm-BHni0LNu.js";
7
- import { _ as Q } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-D00UOSsK.js";
7
+ import { _ as Q } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-CR7QrFUG.js";
8
+ import { Dinero as q } from "@feedmepos/core";
9
+ import "@feedmepos/core/entity";
8
10
  import { c as X } from "./check-C9mY6LiX.js";
9
- import { f as ee } from "./currency-BISImIgX.js";
11
+ import { f as ee } from "./currency-BPHwez-E.js";
10
12
  import { c as ae } from "./string-DpfFixWH.js";
11
13
  const te = /* @__PURE__ */ T({
12
14
  __name: "CurrencyInput",
@@ -51,7 +53,7 @@ const te = /* @__PURE__ */ T({
51
53
  },
52
54
  emits: ["update:model-value"],
53
55
  setup(y, { emit: m }) {
54
- const a = y, { t: n } = I(), d = f(!1), v = f(!1), r = f(), x = B(() => a.modelValue ? (v.value && !d.value && (d.value = !0), S.Dinero.fromFdoDinero(a.modelValue).toUnit().toFixed(2)) : "");
56
+ const a = y, { t: n } = I(), d = f(!1), v = f(!1), r = f(), x = B(() => a.modelValue ? (v.value && !d.value && (d.value = !0), q.fromFdoDinero(a.modelValue).toUnit().toFixed(2)) : "");
55
57
  L(
56
58
  () => v.value,
57
59
  (e) => {
@@ -74,7 +76,7 @@ const te = /* @__PURE__ */ T({
74
76
  if (typeof e == "string" && e === "-")
75
77
  return;
76
78
  let t = parseFloat((e || "").toString());
77
- t = Number.isNaN(t) ? 0 : t, V("update:model-value", S.Dinero.fromNumber({ number: t }).toObject());
79
+ t = Number.isNaN(t) ? 0 : t, V("update:model-value", q.fromNumber({ number: t }).toObject());
78
80
  }
79
81
  }
80
82
  const s = B(() => typeof a.min == "number" && a.min >= 0), _ = (e) => {
@@ -91,10 +93,10 @@ const te = /* @__PURE__ */ T({
91
93
  e.key >= "0" && e.key <= "9" || e.key === "." || e.key === "," || e.key === "-" || e.key === "Backspace" || e.key === "ArrowLeft" || e.key === "ArrowRight" || e.key === "Tab" || e.preventDefault();
92
94
  }
93
95
  };
94
- return z(() => {
96
+ return R(() => {
95
97
  var e;
96
98
  r.value && ((e = r.value.inputEl) == null || e.addEventListener("keydown", _));
97
- }), H(() => {
99
+ }), P(() => {
98
100
  var e;
99
101
  r.value && ((e = r.value.inputEl) == null || e.removeEventListener("keydown", _));
100
102
  }), (e, t) => {
@@ -126,9 +128,9 @@ const te = /* @__PURE__ */ T({
126
128
  };
127
129
  }
128
130
  });
129
- function be(y) {
131
+ function we(y) {
130
132
  return y.map((m) => ({
131
- module: A.F_MENU_MODULE_V4_KEY.enum.item,
133
+ module: K.F_MENU_MODULE_V4_KEY.enum.item,
132
134
  id: m._id,
133
135
  discriminator: m.combinationKey,
134
136
  data: void 0
@@ -145,23 +147,23 @@ const le = { class: "fm-typo-en-title-md-600" }, oe = { class: "space-y-32" }, n
145
147
  },
146
148
  emits: ["update:takeaway"],
147
149
  setup(y, { expose: m, emit: a }) {
148
- const { t: n } = I(), d = y, v = a, r = K(), x = B(() => r.rules.takeaway), V = f(!1), u = f(!1), b = (l) => {
150
+ const { t: n } = I(), d = y, v = a, r = O(), x = B(() => r.rules.takeaway), V = f(!1), u = f(!1), b = (l) => {
149
151
  X.isBoolean(l) ? u.value = l : u.value = !u.value;
150
152
  };
151
153
  function k() {
152
154
  var o;
153
155
  const l = {
154
- ...q.generator.initMenuV4Takeaway(),
156
+ ...S.generator.initMenuV4Takeaway(),
155
157
  usedBy: [],
156
- ...O(d.initialValue ?? {})
158
+ ...z(d.initialValue ?? {})
157
159
  };
158
160
  return (o = d.fallback) != null && o.price && (l.price = null), l;
159
161
  }
160
162
  const s = f(k()), _ = B(() => d.action === "add" ? n("menu.takeaway.add") : n("menu.takeaway.update")), e = J(
161
- () => !R.isEqual(
163
+ () => !A.isEqual(
162
164
  s.value,
163
165
  d.initialValue || {
164
- ...q.generator.initMenuV4Takeaway(),
166
+ ...S.generator.initMenuV4Takeaway(),
165
167
  usedBy: []
166
168
  }
167
169
  ),
@@ -180,7 +182,7 @@ const le = { class: "fm-typo-en-title-md-600" }, oe = { class: "space-y-32" }, n
180
182
  show: u
181
183
  }), (l, o) => {
182
184
  const E = F("fm-text-field"), w = F("fm-button"), $ = F("fm-side-sheet");
183
- return M(), P(W, null, [
185
+ return M(), W(j, null, [
184
186
  U(l.$slots, "default", { trigger: b }),
185
187
  c($, {
186
188
  id: "group-form",
@@ -256,7 +258,7 @@ const le = { class: "fm-typo-en-title-md-600" }, oe = { class: "space-y-32" }, n
256
258
  "select-variant": l.bindToVariant,
257
259
  editable: "",
258
260
  title: i(n)("menu.common.labels.product")
259
- }, null, 8, ["overrides", "select-variant", "title"])) : j("", !0)
261
+ }, null, 8, ["overrides", "select-variant", "title"])) : H("", !0)
260
262
  ])
261
263
  ]),
262
264
  _: 1
@@ -264,10 +266,10 @@ const le = { class: "fm-typo-en-title-md-600" }, oe = { class: "space-y-32" }, n
264
266
  ], 64);
265
267
  };
266
268
  }
267
- }), ke = ie;
269
+ }), he = ie;
268
270
  export {
269
- ke as T,
271
+ he as T,
270
272
  te as _,
271
273
  ie as a,
272
- be as l
274
+ we as l
273
275
  };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as y, resolveComponent as p, createBlock as f, openBlock as i, Teleport as E, createVNode as _, Transition as w, withCtx as h, createCommentVNode as L, withKeys as g, normalizeStyle as F, normalizeClass as d, createElementVNode as m, renderSlot as x, createElementBlock as T, toDisplayString as A, Fragment as R, renderList as v, computed as C, unref as I } from "vue";
2
- import { _ as k } from "./LinkProductSideSheet-D7vYZbFy.js";
2
+ import { _ as k } from "./LinkProductSideSheet-C6rF-G1v.js";
3
3
  import { useI18n as U } from "@feedmepos/mf-common";
4
4
  const N = {
5
5
  class: /* @__PURE__ */ d([