@feedmepos/mf-menu 0.32.43 → 0.32.45-dev

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 (84) hide show
  1. package/dist/{App-C9b4SjED.js → App-u5AOIdU4.js} +1472 -1459
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-C1T4Ewek.js → ApplyProduct.vue_vue_type_script_setup_true_lang-RTdI8EVk.js} +3 -3
  3. package/dist/{Catalog-BVrf3VaX.js → Catalog-DDMz6wD9.js} +44 -44
  4. package/dist/{Category-BkReM5IG.js → Category-BE0d0_de.js} +24 -24
  5. package/dist/{Category-BMzIQqIE.js → Category-DoIleKPb.js} +78 -78
  6. package/dist/{CookingGuide-CvctI1TH.js → CookingGuide-iP5hFtlB.js} +105 -105
  7. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-bYSEp6Wb.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-CSaMT7Gr.js} +1 -1
  8. package/dist/{Group-CHkNuuHE.js → Group-AXDRjsKC.js} +3 -3
  9. package/dist/{Group-BQzmXagr.js → Group-xjimyqnO.js} +1 -1
  10. package/dist/{Group.vue_vue_type_script_setup_true_lang-BkruJTpL.js → Group.vue_vue_type_script_setup_true_lang-DB_X7ws3.js} +173 -173
  11. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CBz83Qd1.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-D_IUSYDa.js} +30 -30
  12. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-Dpx4meDa.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-Suib7m8i.js} +1750 -1751
  13. package/dist/{Ingredient-BNsKYrQB.js → Ingredient-yr2DWIMw.js} +20 -20
  14. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-DzzwwdA_.js → InventoryBinding.vue_vue_type_script_setup_true_lang-BpiU1gRP.js} +2 -2
  15. package/dist/{LinkProductSideSheet-C6-wef-M.js → LinkProductSideSheet-2MbaATTn.js} +45 -45
  16. package/dist/{MenuSetting-DRaw7b6m.js → MenuSetting-BhkjzPiN.js} +47 -47
  17. package/dist/{PrintRoute-BKB-thVp.js → PrintRoute-ChqpbVo4.js} +39 -39
  18. package/dist/{Product-vviXmBR1.js → Product-BpnGnMzm.js} +1 -1
  19. package/dist/{Product.vue_vue_type_script_setup_true_lang-5h-k6zad.js → Product.vue_vue_type_script_setup_true_lang-COkk299w.js} +465 -463
  20. package/dist/{ProductInternalTools-DtLk3xFR.js → ProductInternalTools-BEwLYcEn.js} +66 -66
  21. package/dist/Products-lONe7x_i.js +291 -0
  22. package/dist/{Publish-jx0_H_26.js → Publish-CXRgBz-S.js} +29 -29
  23. package/dist/{Recipe-Dk04ge-_.js → Recipe-Bbt3hG6N.js} +24 -24
  24. package/dist/{RuleView.vue_vue_type_script_setup_true_lang-DaCVUn1i.js → RuleView.vue_vue_type_script_setup_true_lang-DXisBADc.js} +366 -366
  25. package/dist/{Scheduler-vFTvCVcY.js → Scheduler-DJsgP_Hi.js} +11 -11
  26. package/dist/{ServingSequence-DiBqQ_iS.js → ServingSequence-DALjVV2I.js} +44 -44
  27. package/dist/{Setting-CtzJ_pVM.js → Setting-B23o5SoS.js} +17 -17
  28. package/dist/{Subcategory-Cmv2W67T.js → Subcategory-CS4MEgtM.js} +109 -110
  29. package/dist/{Takeaway-DBW4UPFZ.js → Takeaway-CI2Y-_LF.js} +13 -13
  30. package/dist/{Takeaway-ChaYk0Ix.js → Takeaway-D27iA6M6.js} +1 -1
  31. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-C7RL3ITP.js → Takeaway.vue_vue_type_script_setup_true_lang-Ca3qK9zO.js} +111 -111
  32. package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-edwJ1203.js → Thumbnail.vue_vue_type_script_setup_true_lang-Da2jQE45.js} +27 -27
  33. package/dist/TranslationFieldSection.vue_vue_type_script_setup_true_lang-DUScE-82.js +278 -0
  34. package/dist/TranslationSideSheet.vue_vue_type_script_setup_true_lang-E3-hgVdd.js +140 -0
  35. package/dist/TranslationViewChip.vue_vue_type_script_setup_true_lang-BlACWsDs.js +60 -0
  36. package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DnuNFxC7.js +6130 -0
  37. package/dist/{Unit-BgLqPMLe.js → Unit-5pv3oxSc.js} +8 -8
  38. package/dist/Variant-CTAI6p6r.js +248 -0
  39. package/dist/{_id_-CDN7as0K.js → _id_-D09xegPQ.js} +28 -28
  40. package/dist/{app-0AQBxO0B.js → app-8-JCz9b5.js} +1 -1
  41. package/dist/app-Bk0DN7oZ.js +363 -0
  42. package/dist/app.js +1 -1
  43. package/dist/apps/mf-menu/src/components/translation/LanguageChip.vue.d.ts +18 -0
  44. package/dist/apps/mf-menu/src/components/translation/LanguageSelector.vue.d.ts +33 -0
  45. package/dist/apps/mf-menu/src/components/translation/LocaleIconBadge.vue.d.ts +29 -0
  46. package/dist/apps/mf-menu/src/components/translation/TranslationFieldRow.vue.d.ts +39 -0
  47. package/dist/apps/mf-menu/src/components/translation/TranslationViewChip.vue.d.ts +15 -0
  48. package/dist/apps/mf-menu/src/composable/translationLanguages.d.ts +16 -0
  49. package/dist/apps/mf-menu/src/stores/menu.d.ts +1 -0
  50. package/dist/apps/mf-menu/src/utils/translation.d.ts +1 -1
  51. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  52. package/dist/assets/{linked-status-DTIHdzDw.js → linked-status-dENy3aw3.js} +5 -5
  53. package/dist/assets/{menu-export-CpcyYnR-.js → menu-export-E9V7bg-T.js} +2 -2
  54. package/dist/assets/{override-menu-CASoFjhZ.js → override-menu-HaI7O9Fu.js} +5 -5
  55. package/dist/assets/{validate-menu-C5AkexWv.js → validate-menu-C8LhbVSM.js} +2 -2
  56. package/dist/{catalog-BA1e4WAu.js → catalog-DhXoYsFF.js} +1 -1
  57. package/dist/{catalogSetting-DE5rjVfj.js → catalogSetting-DyRqWzdW.js} +1 -1
  58. package/dist/{currency-D5qYOpxI.js → currency-BkmIftYM.js} +1 -1
  59. package/dist/dayjs.min-nQqVHQcC.js +6 -0
  60. package/dist/index-28XF3UnN.js +246 -0
  61. package/dist/{index-vPs04fVf.js → index-BQ95VVc6.js} +33 -32
  62. package/dist/index-BXWquw9Z.js +472 -0
  63. package/dist/{index.vue_vue_type_script_setup_true_lang-DSZsSghE.js → index.vue_vue_type_script_setup_true_lang-CJO2XWIn.js} +270 -244
  64. package/dist/{item-Dp17qTYi.js → item-DmTvGVsp.js} +3270 -3406
  65. package/dist/{jszip.min-DlpCmtaR.js → jszip.min-8Z5To_Pk.js} +6 -7
  66. package/dist/{menu-BOVrJ7di.js → menu-Csu9X1_I.js} +1 -1
  67. package/dist/{menuV2-BHnldQiM.js → menuV2-CC-vGiv5.js} +71 -71
  68. package/dist/{priceTier-BRQz1GRF.js → priceTier-Bj9Y6SSr.js} +1 -1
  69. package/dist/{rules-CO49kqfr.js → rules-Dod2cBHH.js} +12 -12
  70. package/dist/{scheduler-BDHjl8t7.js → scheduler-B3M-715v.js} +29 -29
  71. package/dist/{toExcel-DGdZKSxT.js → toExcel-67ufpOxx.js} +2 -2
  72. package/dist/{unit-D7QVgTp_.js → unit-BQrnccs6.js} +35 -35
  73. package/package.json +1 -1
  74. package/dist/Products-BR3iBVFd.js +0 -307
  75. package/dist/RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-I6qrPmxY.js +0 -144
  76. package/dist/TranslationSideSheet.vue_vue_type_script_setup_true_lang-Cs6s_csi.js +0 -196
  77. package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DIbjlDVn.js +0 -5767
  78. package/dist/Variant-B8yxF5mJ.js +0 -247
  79. package/dist/app-BU6wILmn.js +0 -2286
  80. package/dist/dayjs.min-BFDAHpA8.js +0 -7
  81. package/dist/index--nQbIQ0d.js +0 -545
  82. package/dist/translation-BCZ1Ruvv.js +0 -93
  83. /package/dist/apps/mf-menu/src/components/{TranslationBadge.vue.d.ts → translation/TranslationBadge.vue.d.ts} +0 -0
  84. /package/dist/apps/mf-menu/src/components/{TranslationFieldSection.vue.d.ts → translation/TranslationFieldSection.vue.d.ts} +0 -0
@@ -1,4 +1,4 @@
1
- import { u as h, y as n, J as d, ai as _ } from "./index.vue_vue_type_script_setup_true_lang-DSZsSghE.js";
1
+ import { u as h, A as n, M as d, al as _ } from "./index.vue_vue_type_script_setup_true_lang-CJO2XWIn.js";
2
2
  import "@feedmepos/ui-library";
3
3
  class u {
4
4
  constructor(t, e, r, a) {
@@ -1,4 +1,4 @@
1
- import { y as u, G as i } from "./index.vue_vue_type_script_setup_true_lang-DSZsSghE.js";
1
+ import { A as u, I as i } from "./index.vue_vue_type_script_setup_true_lang-CJO2XWIn.js";
2
2
  var a = /* @__PURE__ */ ((e) => (e.AUTO = "auto", e.MANUAL = "manual", e))(a || {}), m = /* @__PURE__ */ ((e) => (e[e.Normal = 0] = "Normal", e[e.Rules = 1] = "Rules", e))(m || {});
3
3
  class s {
4
4
  static fromCatalog(r, n) {
@@ -1,4 +1,4 @@
1
- import { z as e } from "./index.vue_vue_type_script_setup_true_lang-DSZsSghE.js";
1
+ import { B as e } from "./index.vue_vue_type_script_setup_true_lang-CJO2XWIn.js";
2
2
  function n(r, o = !0) {
3
3
  return e.Dinero.fromFdoDinero(r).toFormat(o).replaceAll(" ", "");
4
4
  }
@@ -0,0 +1,6 @@
1
+ import { g as a, am as r } from "./index.vue_vue_type_script_setup_true_lang-CJO2XWIn.js";
2
+ var s = r();
3
+ const t = /* @__PURE__ */ a(s);
4
+ export {
5
+ t as D
6
+ };
@@ -0,0 +1,246 @@
1
+ import { defineComponent as W, ref as A, resolveComponent as v, createElementBlock as E, openBlock as I, Fragment as B, createElementVNode as g, createVNode as c, normalizeClass as T, withCtx as _, toDisplayString as S, unref as i, h as G, watch as O, onMounted as K, nextTick as M, readonly as N, getCurrentInstance as U, getCurrentScope as L, onScopeDispose as $ } from "vue";
2
+ import { useI18n as q, useCustomAttributes as H, useCoreStore as J } from "@feedmepos/mf-common";
3
+ import { components as Q } from "@feedmepos/ui-library";
4
+ import { d as X, _ as k } from "./RuleView.vue_vue_type_script_setup_true_lang-DXisBADc.js";
5
+ const Y = {
6
+ class: /* @__PURE__ */ T(["fm-typo-en-body-md-600 select-none text-ellipsis overflow-hidden whitespace-nowrap", "text-fm-color-neutral-gray-400"])
7
+ }, Z = {
8
+ class: "fm-typo-en-title-sm-600"
9
+ }, ee = {
10
+ class: "max-h-[60vh] flex-1 overflow-y-auto min-h-0"
11
+ }, me = /* @__PURE__ */ W({
12
+ __name: "RestaurantAttributesSelector",
13
+ props: {
14
+ fullWidth: {
15
+ type: Boolean,
16
+ default: !1
17
+ },
18
+ currentRestaurantAttrParams: {}
19
+ },
20
+ emits: ["confirm"],
21
+ setup(e, {
22
+ emit: n
23
+ }) {
24
+ const o = e, {
25
+ t
26
+ } = q(), {
27
+ attributes: r
28
+ } = H({
29
+ valueSource: J().restaurants,
30
+ entity: "restaurant"
31
+ }), {
32
+ restaurantAttributes: a
33
+ } = X(), y = [{
34
+ header: () => t("portalshell.customAttributes.form.key"),
35
+ accessorKey: "key",
36
+ enableSorting: !1
37
+ }, {
38
+ header: () => t("portalshell.customAttributes.form.value"),
39
+ accessorKey: "values",
40
+ enableSorting: !1,
41
+ cell: (f) => {
42
+ const s = f.row.original, u = s.values;
43
+ return G(Q.FmSelect, {
44
+ modelValue: s.value,
45
+ placeholder: t("portalshell.customAttributes.form.valuePlaceholder"),
46
+ items: u.map((l) => ({
47
+ label: l,
48
+ value: l
49
+ })),
50
+ clearable: !0,
51
+ searchable: !0,
52
+ "onUpdate:modelValue": (l) => s.value = l
53
+ });
54
+ }
55
+ }], m = n;
56
+ function b(f) {
57
+ return f.reduce((s, u) => (u.value != null && (s[u.key] = u.value), s), {});
58
+ }
59
+ const h = () => {
60
+ const f = r.value.filter((l) => l.value != null), s = a.value.filter((l) => l.value != null), u = {
61
+ restaurantCustomAttributes: b(f),
62
+ restaurantAttributes: b(s)
63
+ };
64
+ m("confirm", u), C();
65
+ }, p = A(!1);
66
+ function w() {
67
+ var u, l;
68
+ p.value = !0;
69
+ const f = ((u = o.currentRestaurantAttrParams) == null ? void 0 : u.restaurantCustomAttributes) ?? {};
70
+ r.value.forEach((d) => {
71
+ d.value = f[d.key] ?? void 0;
72
+ });
73
+ const s = ((l = o.currentRestaurantAttrParams) == null ? void 0 : l.restaurantAttributes) ?? {};
74
+ a.value.forEach((d) => {
75
+ d.value = s[d.key] ?? void 0;
76
+ });
77
+ }
78
+ function C() {
79
+ p.value = !1;
80
+ }
81
+ return (f, s) => {
82
+ const u = v("FmIcon"), l = v("FmChip"), d = v("FmTable"), V = v("FmSpacer"), F = v("fm-button"), j = v("FmDialog");
83
+ return I(), E(B, null, [g("div", {
84
+ class: "cursor-pointer",
85
+ onClick: w
86
+ }, [c(l, {
87
+ class: T([f.fullWidth ? "w-full justify-between" : ""])
88
+ }, {
89
+ default: _(() => [g("div", Y, S(i(t)("menu.catalog.form.restaurant_attributes_title")), 1), c(u, {
90
+ color: "neutral-gray-400",
91
+ name: "launch",
92
+ size: "sm"
93
+ })]),
94
+ _: 1
95
+ }, 8, ["class"])]), c(j, {
96
+ modelValue: p.value,
97
+ "onUpdate:modelValue": s[0] || (s[0] = (R) => p.value = R),
98
+ overlay: !0,
99
+ "min-width": "min(calc(100% - 48px), 560px)"
100
+ }, {
101
+ "dialog-header": _(() => [g("div", Z, S(i(t)("menu.catalog.form.restaurant_attributes_title")), 1)]),
102
+ "dialog-footer": _(() => [c(V), c(F, {
103
+ label: i(t)("menu.common.actions.confirm"),
104
+ size: "lg",
105
+ type: "submit",
106
+ variant: "primary",
107
+ onClick: h
108
+ }, null, 8, ["label"]), c(F, {
109
+ label: i(t)("menu.common.actions.cancel"),
110
+ size: "lg",
111
+ variant: "tertiary",
112
+ onClick: C
113
+ }, null, 8, ["label"])]),
114
+ default: _(() => [g("div", ee, [c(k, {
115
+ title: i(t)("menu.link_product.rules.restaurant_custom_attributes_filter")
116
+ }, {
117
+ default: _(() => [c(d, {
118
+ "column-defs": y,
119
+ "row-data": i(r),
120
+ "shrink-at": !1,
121
+ "page-size": i(r).length,
122
+ "hide-footer": ""
123
+ }, null, 8, ["row-data", "page-size"])]),
124
+ _: 1
125
+ }, 8, ["title"]), c(k, {
126
+ title: i(t)("menu.link_product.rules.restaurant_filter")
127
+ }, {
128
+ default: _(() => [c(d, {
129
+ "column-defs": y,
130
+ "row-data": i(a),
131
+ "shrink-at": !1,
132
+ "page-size": i(a).length,
133
+ "hide-footer": ""
134
+ }, null, 8, ["row-data", "page-size"])]),
135
+ _: 1
136
+ }, 8, ["title"])])]),
137
+ _: 1
138
+ }, 8, ["modelValue"])], 64);
139
+ };
140
+ }
141
+ });
142
+ function fe(e) {
143
+ return L() ? ($(e), !0) : !1;
144
+ }
145
+ function x(e) {
146
+ return typeof e == "function" ? e() : i(e);
147
+ }
148
+ const pe = typeof window < "u" && typeof document < "u";
149
+ typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
150
+ const te = Object.prototype.toString, de = (e) => te.call(e) === "[object Object]", D = () => {
151
+ };
152
+ function P(e, n) {
153
+ function o(...t) {
154
+ return new Promise((r, a) => {
155
+ Promise.resolve(e(() => n.apply(this, t), { fn: n, thisArg: this, args: t })).then(r).catch(a);
156
+ });
157
+ }
158
+ return o;
159
+ }
160
+ const z = (e) => e();
161
+ function ne(e, n = {}) {
162
+ let o, t, r = D;
163
+ const a = (m) => {
164
+ clearTimeout(m), r(), r = D;
165
+ };
166
+ return (m) => {
167
+ const b = x(e), h = x(n.maxWait);
168
+ return o && a(o), b <= 0 || h !== void 0 && h <= 0 ? (t && (a(t), t = null), Promise.resolve(m())) : new Promise((p, w) => {
169
+ r = n.rejectOnCancel ? w : p, h && !t && (t = setTimeout(() => {
170
+ o && a(o), t = null, p(m());
171
+ }, h)), o = setTimeout(() => {
172
+ t && a(t), t = null, p(m());
173
+ }, b);
174
+ });
175
+ };
176
+ }
177
+ function oe(e = z) {
178
+ const n = A(!0);
179
+ function o() {
180
+ n.value = !1;
181
+ }
182
+ function t() {
183
+ n.value = !0;
184
+ }
185
+ const r = (...a) => {
186
+ n.value && e(...a);
187
+ };
188
+ return { isActive: N(n), pause: o, resume: t, eventFilter: r };
189
+ }
190
+ function re(e) {
191
+ return U();
192
+ }
193
+ function ae(e, n = 200, o = {}) {
194
+ return P(
195
+ ne(n, o),
196
+ e
197
+ );
198
+ }
199
+ function be(e, n = 200, o = {}) {
200
+ const t = A(e.value), r = ae(() => {
201
+ t.value = e.value;
202
+ }, n, o);
203
+ return O(e, () => r()), t;
204
+ }
205
+ function se(e, n, o = {}) {
206
+ const {
207
+ eventFilter: t = z,
208
+ ...r
209
+ } = o;
210
+ return O(
211
+ e,
212
+ P(
213
+ t,
214
+ n
215
+ ),
216
+ r
217
+ );
218
+ }
219
+ function he(e, n, o = {}) {
220
+ const {
221
+ eventFilter: t,
222
+ ...r
223
+ } = o, { eventFilter: a, pause: y, resume: m, isActive: b } = oe(t);
224
+ return { stop: se(
225
+ e,
226
+ n,
227
+ {
228
+ ...r,
229
+ eventFilter: a
230
+ }
231
+ ), pause: y, resume: m, isActive: b };
232
+ }
233
+ function ve(e, n = !0, o) {
234
+ re() ? K(e, o) : n ? e() : M(e);
235
+ }
236
+ export {
237
+ me as _,
238
+ ve as a,
239
+ fe as b,
240
+ de as c,
241
+ pe as i,
242
+ D as n,
243
+ be as r,
244
+ x as t,
245
+ he as w
246
+ };
@@ -1,15 +1,15 @@
1
- import { z as $, y as Y, u as Z, G as Q, A as z, H as X } from "./index.vue_vue_type_script_setup_true_lang-DSZsSghE.js";
2
- import { defineComponent as R, ref as h, computed as _, watch as j, onMounted as ee, onBeforeUnmount as ae, resolveComponent as x, createBlock as H, openBlock as L, withModifiers as q, withCtx as k, renderSlot as P, createElementBlock as I, Fragment as A, createVNode as v, unref as i, createElementVNode as U, createCommentVNode as te, renderList as le, toDisplayString as O } from "vue";
1
+ import { B as $, A as Z, u as G, I as Q, D as A, J as X } from "./index.vue_vue_type_script_setup_true_lang-CJO2XWIn.js";
2
+ import { defineComponent as R, ref as h, computed as _, watch as j, onMounted as ee, onBeforeUnmount as ae, resolveComponent as x, createBlock as J, openBlock as L, withModifiers as q, withCtx as k, renderSlot as P, createElementBlock as I, Fragment as K, createVNode as v, unref as i, createElementVNode as U, createCommentVNode as te, renderList as le, toDisplayString as O } from "vue";
3
3
  import { useI18n as W } from "@feedmepos/mf-common";
4
4
  import { components as ne } from "@feedmepos/ui-library";
5
- import { _ as oe } from "./RuleView.vue_vue_type_script_setup_true_lang-DaCVUn1i.js";
5
+ import { _ as oe } from "./RuleView.vue_vue_type_script_setup_true_lang-DXisBADc.js";
6
6
  import { u as ie } from "./discardConfirm-BHni0LNu.js";
7
- import { _ as re } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-C1T4Ewek.js";
8
- import { _ as ue } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-Cs6s_csi.js";
7
+ import { _ as re } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-RTdI8EVk.js";
8
+ import { _ as ue } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-E3-hgVdd.js";
9
9
  import { c as se } from "./check-C9mY6LiX.js";
10
- import { f as me } from "./currency-D5qYOpxI.js";
10
+ import { f as me } from "./currency-BkmIftYM.js";
11
11
  import { c as de } from "./string-DpfFixWH.js";
12
- import { g as K } from "./translation-BCZ1Ruvv.js";
12
+ import { g as z } from "./TranslationFieldSection.vue_vue_type_script_setup_true_lang-DUScE-82.js";
13
13
  const pe = /* @__PURE__ */ R({
14
14
  __name: "CurrencyInput",
15
15
  props: {
@@ -79,14 +79,14 @@ const pe = /* @__PURE__ */ R({
79
79
  n = Number.isNaN(n) ? 0 : n, N("update:model-value", $.Dinero.fromNumber({ number: n }).toObject());
80
80
  }
81
81
  }
82
- const F = _(() => typeof l.min == "number" && l.min >= 0), D = (e) => {
82
+ const D = _(() => typeof l.min == "number" && l.min >= 0), F = (e) => {
83
83
  var n, c, f;
84
84
  if (!(e.ctrlKey || e.metaKey)) {
85
85
  if (e.key === "Enter") {
86
86
  (n = r.value) != null && n.inputEl && s((f = (c = r.value) == null ? void 0 : c.inputEl) == null ? void 0 : f.value);
87
87
  return;
88
88
  }
89
- if (e.key === "-" && F.value) {
89
+ if (e.key === "-" && D.value) {
90
90
  e.preventDefault();
91
91
  return;
92
92
  }
@@ -95,13 +95,13 @@ const pe = /* @__PURE__ */ R({
95
95
  };
96
96
  return ee(() => {
97
97
  var e;
98
- r.value && ((e = r.value.inputEl) == null || e.addEventListener("keydown", D));
98
+ r.value && ((e = r.value.inputEl) == null || e.addEventListener("keydown", F));
99
99
  }), ae(() => {
100
100
  var e;
101
- r.value && ((e = r.value.inputEl) == null || e.removeEventListener("keydown", D));
101
+ r.value && ((e = r.value.inputEl) == null || e.removeEventListener("keydown", F));
102
102
  }), (e, n) => {
103
103
  const c = x("fm-text-field");
104
- return L(), H(c, {
104
+ return L(), J(c, {
105
105
  ref_key: "inputRef",
106
106
  ref: r,
107
107
  autofocus: l.autofocus,
@@ -130,7 +130,7 @@ const pe = /* @__PURE__ */ R({
130
130
  });
131
131
  function Le(B) {
132
132
  return B.map((g) => ({
133
- module: Y.F_MENU_MODULE_V4_KEY.enum.item,
133
+ module: Z.F_MENU_MODULE_V4_KEY.enum.item,
134
134
  id: g._id,
135
135
  discriminator: g.combinationKey,
136
136
  data: void 0
@@ -147,30 +147,30 @@ const ce = { class: "fm-typo-en-title-md-600" }, fe = { class: "space-y-32" }, v
147
147
  },
148
148
  emits: ["update:takeaway"],
149
149
  setup(B, { expose: g, emit: l }) {
150
- const { t: o } = W(), m = B, E = l, r = Z(), M = _(() => r.rules.takeaway), N = h(!1), u = h(!1), C = h(!1), s = h(void 0), F = (a) => {
150
+ const { t: o } = W(), m = B, E = l, r = G(), M = _(() => r.rules.takeaway), N = h(!1), u = h(!1), C = h(!1), s = h(void 0), D = (a) => {
151
151
  se.isBoolean(a) ? u.value = a : u.value = !u.value;
152
152
  };
153
- function D() {
153
+ function F() {
154
154
  var t;
155
155
  const a = {
156
- ...z.generator.initMenuV4Takeaway(),
156
+ ...A.generator.initMenuV4Takeaway(),
157
157
  usedBy: [],
158
158
  ...Q(m.initialValue ?? {})
159
159
  };
160
160
  return (t = m.fallback) != null && t.price && (a.price = null), a;
161
161
  }
162
- const e = h(D()), n = _(() => m.action === "add" ? o("menu.takeaway.add") : o("menu.takeaway.update")), c = _(() => !!e.value.name), f = _(() => {
162
+ const e = h(F()), n = _(() => m.action === "add" ? o("menu.takeaway.add") : o("menu.takeaway.update")), c = _(() => !!e.value.name), f = _(() => {
163
163
  var V;
164
164
  const a = [], t = "en-US", w = (V = s.value) == null ? void 0 : V[t];
165
165
  return e.value.name && !w && a.push({
166
166
  locale: t,
167
167
  name: e.value.name,
168
- localeDisplay: K(t)
168
+ localeDisplay: z(t)
169
169
  }), s.value && Object.entries(s.value).filter(([d, y]) => y && y.trim()).sort(([d], [y]) => d.localeCompare(y)).forEach(([d, y]) => {
170
170
  a.push({
171
171
  locale: d,
172
172
  name: y,
173
- localeDisplay: K(d)
173
+ localeDisplay: z(d)
174
174
  });
175
175
  }), a;
176
176
  });
@@ -180,13 +180,13 @@ const ce = { class: "fm-typo-en-title-md-600" }, fe = { class: "space-y-32" }, v
180
180
  function T(a) {
181
181
  e.value.name = a;
182
182
  }
183
- const J = ie(
183
+ const H = ie(
184
184
  () => {
185
185
  var d;
186
186
  const a = !X.isEqual(
187
187
  e.value,
188
188
  m.initialValue || {
189
- ...z.generator.initMenuV4Takeaway(),
189
+ ...A.generator.initMenuV4Takeaway(),
190
190
  usedBy: []
191
191
  }
192
192
  ), t = ((d = m.initialValue) == null ? void 0 : d.name_locale) || {}, w = s.value || {}, V = JSON.stringify(t) !== JSON.stringify(w);
@@ -194,36 +194,37 @@ const ce = { class: "fm-typo-en-title-md-600" }, fe = { class: "space-y-32" }, v
194
194
  },
195
195
  () => u.value = !1
196
196
  );
197
- function G() {
197
+ function Y() {
198
+ const a = s.value;
198
199
  E("update:takeaway", {
199
200
  ...e.value,
200
- ...s.value && { name_locale: s.value }
201
- }), F(!1);
201
+ name_locale: a
202
+ }), D(!1);
202
203
  }
203
204
  return j(
204
205
  () => u.value,
205
206
  () => {
206
207
  var a;
207
- u.value && (e.value = D(), s.value = (a = m.initialValue) == null ? void 0 : a.name_locale);
208
+ u.value && (e.value = F(), s.value = (a = m.initialValue) == null ? void 0 : a.name_locale);
208
209
  }
209
210
  ), g({
210
- trigger: F,
211
+ trigger: D,
211
212
  show: u
212
213
  }), (a, t) => {
213
214
  const w = x("fm-button"), V = x("FmTooltip"), d = x("fm-text-field"), y = x("fm-side-sheet");
214
- return L(), I(A, null, [
215
- P(a.$slots, "default", { trigger: F }),
215
+ return L(), I(K, null, [
216
+ P(a.$slots, "default", { trigger: D }),
216
217
  v(y, {
217
218
  id: "group-form",
218
219
  modelValue: u.value,
219
220
  "onUpdate:modelValue": t[5] || (t[5] = (b) => u.value = b),
220
221
  "is-container": i(ne).FmForm,
221
222
  "is-container-props": {
222
- onValidationSuccess: G,
223
+ onValidationSuccess: Y,
223
224
  blameFormChildOnValidationFailed: !0
224
225
  },
225
226
  "max-width": 560,
226
- "onOn:clickedAway": i(J)
227
+ "onOn:clickedAway": i(H)
227
228
  }, {
228
229
  "side-sheet-header": k(() => [
229
230
  U("p", ce, O(n.value), 1)
@@ -274,7 +275,7 @@ const ce = { class: "fm-typo-en-title-md-600" }, fe = { class: "space-y-32" }, v
274
275
  }, {
275
276
  content: k(() => [
276
277
  U("div", ve, [
277
- (L(!0), I(A, null, le(f.value, (p) => (L(), I("div", {
278
+ (L(!0), I(K, null, le(f.value, (p) => (L(), I("div", {
278
279
  key: p.locale
279
280
  }, O(p.name) + " (" + O(p.localeDisplay) + ") ", 1))), 128))
280
281
  ])
@@ -306,7 +307,7 @@ const ce = { class: "fm-typo-en-title-md-600" }, fe = { class: "space-y-32" }, v
306
307
  }),
307
308
  _: 1
308
309
  }),
309
- a.applyProduct ? (L(), H(re, {
310
+ a.applyProduct ? (L(), J(re, {
310
311
  key: 0,
311
312
  overrides: e.value.usedBy,
312
313
  "onUpdate:overrides": t[3] || (t[3] = (b) => e.value.usedBy = b),