@feedmepos/mf-menu 0.31.10-prod → 0.31.11-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.
- package/dist/{App-BT1TFoYK.js → App-DjpjTtf9.js} +6 -6
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-CdblAni_.js → ApplyProduct.vue_vue_type_script_setup_true_lang-CzyuBhuB.js} +2 -2
- package/dist/{Catalog-BZ1vTBvo.js → Catalog-DyueiSOE.js} +5 -5
- package/dist/{Category-CKY7yTEE.js → Category-BLXOZPb3.js} +5 -5
- package/dist/{Category-CgPtntD6.js → Category-CKdYO3VF.js} +4 -4
- package/dist/{CookingGuide-aI9Vl3u3.js → CookingGuide-BS3RkGSk.js} +3 -3
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-DhgzR0nK.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-DA9L_N2q.js} +1 -1
- package/dist/{Group-RXdG0cCj.js → Group-CfXvwlMh.js} +1 -1
- package/dist/{Group-zsrgbAFX.js → Group-D6bsaOPs.js} +3 -3
- package/dist/{Group.vue_vue_type_script_setup_true_lang-krHMmK8E.js → Group.vue_vue_type_script_setup_true_lang-BZXXFaLD.js} +7 -7
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-kTIm9xhC.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BJjTwizA.js} +3 -3
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-DNXzTmh2.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-CDM1sCGe.js} +1267 -1267
- package/dist/{Ingredient-C3VgBz5w.js → Ingredient-Bdoiuoof.js} +3 -3
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-D4Rx4mRi.js → InventoryBinding.vue_vue_type_script_setup_true_lang-ByTF88jv.js} +2 -2
- package/dist/{LinkProductSideSheet-iMU1KvJX.js → LinkProductSideSheet-8NLHPTlx.js} +1 -1
- package/dist/{MenuSetting-Cy3sqhCM.js → MenuSetting-BVo1bZt6.js} +4 -4
- package/dist/{PrintRoute-BGCv9aJ1.js → PrintRoute-pUr-YxdH.js} +3 -3
- package/dist/{Product-B3g-oH8x.js → Product-CjSfO1gl.js} +1 -1
- package/dist/Product.vue_vue_type_script_setup_true_lang-DReaXqTg.js +1557 -0
- package/dist/{Products-DlVYzd53.js → Products-DSWEX-ij.js} +59 -59
- package/dist/{Publish-CeH-gl9b.js → Publish-BR7A0n7S.js} +3 -3
- package/dist/{Recipe-C1dUPLkk.js → Recipe-BinSrA0Q.js} +4 -4
- package/dist/{Scheduler-BLcfkRA1.js → Scheduler-bsR3LO8H.js} +3 -3
- package/dist/{ServingSequence-B0jNatHo.js → ServingSequence-BJlAW_1V.js} +3 -3
- package/dist/{Setting-QRszSbBR.js → Setting-XcqCBHOL.js} +4 -4
- package/dist/{Subcategory-CWHNmrQE.js → Subcategory-BDgPfJZA.js} +4 -4
- package/dist/{Takeaway-DRS6Vz-5.js → Takeaway-BCfMJfoi.js} +4 -4
- package/dist/{Takeaway-D7DmH15s.js → Takeaway-CsTGl6n5.js} +1 -1
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-IWTTcs2f.js → Takeaway.vue_vue_type_script_setup_true_lang-BJUbTljE.js} +5 -5
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BdWx5fdf.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-CF3AXC4l.js} +14 -14
- package/dist/{Unit-CIv-PqCt.js → Unit-lkjqKb5W.js} +2 -2
- package/dist/{Variant-DjGvYuzh.js → Variant-BeZ4BIn8.js} +3 -3
- package/dist/{_id_-DnVVmOCe.js → _id_-hlATDCsB.js} +9 -9
- package/dist/{app-B2RQcPjC.js → app-2Tw5RdT8.js} +1 -1
- package/dist/{app-Bg99M05B.js → app-BXBHiPQ7.js} +23 -23
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/helper/item.d.ts +3 -1
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{linked-status-Vp0TQYKf.js → linked-status-a56gAWtJ.js} +2 -2
- package/dist/assets/{override-menu-BHiYT11B.js → override-menu-CvaMxNc9.js} +2 -2
- package/dist/assets/{validate-menu-CduiPk11.js → validate-menu-CRjvqfSv.js} +2 -2
- package/dist/{catalog-Bm09LCrm.js → catalog-BM-O01IV.js} +1 -1
- package/dist/{catalogSetting-vPZUe0xY.js → catalogSetting-DOhVr93e.js} +1 -1
- package/dist/{category-CIMek6Dw.js → category-DI7rVP_A.js} +1 -1
- package/dist/{currency-DCJtEa6B.js → currency-CvEozH3g.js} +1 -1
- package/dist/{dayjs.min-m6NoqWj6.js → dayjs.min-CzFwvtdR.js} +1 -1
- package/dist/{index-BrCtR-Hd.js → index-BW9HstSe.js} +2 -2
- package/dist/{index-1JUdOzJ9.js → index-CtAZ0vuL.js} +1 -1
- package/dist/{index-Wik8mJjL.js → index-tfW-GKN1.js} +3 -3
- package/dist/{item-CYFoV9HF.js → item-SUbVYbe0.js} +932 -932
- package/dist/{menu-Tfvz3TZW.js → menu-B3kJ7du7.js} +3215 -3169
- package/dist/{menu-CllScy8p.js → menu-CcKfPthb.js} +1 -1
- package/dist/{priceTier-D15kaHnA.js → priceTier-DK9ob6lk.js} +1 -1
- package/dist/{scheduler-CDOBpsHB.js → scheduler-vfXhieiT.js} +3 -3
- package/dist/{subcategory-KC674Rqg.js → subcategory-D549uxxb.js} +63 -63
- package/dist/{toExcel-RNwSGsFf.js → toExcel-C7X2TLo4.js} +2 -2
- package/dist/{unit-CT1mqXgg.js → unit-Da9qanXG.js} +1 -1
- package/package.json +1 -1
- package/dist/Product.vue_vue_type_script_setup_true_lang-BSW-4pwk.js +0 -1582
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as d, ref as g, watch as _, resolveComponent as S, createBlock as T, openBlock as f, unref as y, computed as h } from "vue";
|
|
2
2
|
import { useI18n as m } from "@feedmepos/mf-common";
|
|
3
3
|
import { useDialogChild as w, useDialog as x, useSnackbar as C } from "@feedmepos/ui-library";
|
|
4
|
-
import { u as k, G as M } from "./menu-
|
|
4
|
+
import { u as k, G as M } from "./menu-B3kJ7du7.js";
|
|
5
5
|
const v = /* @__PURE__ */ d({
|
|
6
6
|
__name: "AddPriceGroupDialog",
|
|
7
7
|
setup(s) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent as le, computed as Y, resolveComponent as v, createElementBlock as i, openBlock as u, createVNode as l, createCommentVNode as g, unref as a, toDisplayString as P, createElementVNode as y, withCtx as _, Fragment as D, renderList as A, createBlock as N, ref as T, Transition as ee, createTextVNode as se } from "vue";
|
|
2
|
-
import { J as b, I as d, u as ie, K as de, M as X } from "./menu-
|
|
2
|
+
import { J as b, I as d, u as ie, K as de, M as X } from "./menu-B3kJ7du7.js";
|
|
3
3
|
import { useI18n as te } from "@feedmepos/mf-common";
|
|
4
4
|
import { components as re } from "@feedmepos/ui-library";
|
|
5
5
|
import { _ as ce } from "./FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js";
|
|
6
6
|
import { _ as W } from "./FormSection.vue_vue_type_script_setup_true_lang-CO4YGYLB.js";
|
|
7
7
|
import { u as me } from "./discardConfirm-BHni0LNu.js";
|
|
8
|
-
import { u as pe } from "./menu-
|
|
9
|
-
import { L as _e } from "./LinkProductSideSheet-
|
|
8
|
+
import { u as pe } from "./menu-CcKfPthb.js";
|
|
9
|
+
import { L as _e } from "./LinkProductSideSheet-8NLHPTlx.js";
|
|
10
10
|
const ve = { class: "space-y-8" }, fe = {
|
|
11
11
|
key: 0,
|
|
12
12
|
class: "space-y-16"
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { shallowRef as X, ref as R, computed as h, shallowReactive as
|
|
2
|
-
import { J as k, A as x,
|
|
1
|
+
import { shallowRef as X, ref as R, computed as h, shallowReactive as Fe, watch as H, defineComponent as Te, resolveComponent as z, createBlock as Re, openBlock as Ne, unref as P, withCtx as Ve, createVNode as Oe } from "vue";
|
|
2
|
+
import { J as k, A as x, aj as Z, I, ak as B, M as S, K as ee, a9 as C, c as $, $ as w, ai as G, al as Pe, am as xe, z as Ae, ab as Ke, an as Ue, a8 as L, u as $e } from "./menu-B3kJ7du7.js";
|
|
3
3
|
import { useCoreStore as J, useI18n as te } from "@feedmepos/mf-common";
|
|
4
|
-
import { useSnackbar as De, useDialogChild as
|
|
5
|
-
import { defineStore as
|
|
6
|
-
const
|
|
7
|
-
function
|
|
4
|
+
import { useSnackbar as De, useDialogChild as qe } from "@feedmepos/ui-library";
|
|
5
|
+
import { defineStore as He } from "pinia";
|
|
6
|
+
const We = "/assets/linked-status-a56gAWtJ.js", Ye = "/assets/override-menu-CvaMxNc9.js";
|
|
7
|
+
function je(e) {
|
|
8
8
|
var o;
|
|
9
9
|
const n = k(e), a = (o = n.variant) == null ? void 0 : o.variantCombinations;
|
|
10
10
|
return delete n.variant, delete n.thumbnail, [n, ...a || []];
|
|
11
11
|
}
|
|
12
|
-
function
|
|
13
|
-
const r = k(n), f = a ? r.modules.catalog.find((_) => _._id === a) : null, d = o ? r.modules.scheduler.find((_) => _._id === o) : null, i = f ? k(f) : void 0, m = a ? r.modules.catalog.filter((_) => _._id !== a) : [], u = d ? k(d) : void 0, s = e.reduce((_, y) => (_[y._id] =
|
|
12
|
+
function ze(e, n, a, o) {
|
|
13
|
+
const r = k(n), f = a ? r.modules.catalog.find((_) => _._id === a) : null, d = o ? r.modules.scheduler.find((_) => _._id === o) : null, i = f ? k(f) : void 0, m = a ? r.modules.catalog.filter((_) => _._id !== a) : [], u = d ? k(d) : void 0, s = e.reduce((_, y) => (_[y._id] = je(y), _), {});
|
|
14
14
|
function p(_ = []) {
|
|
15
15
|
const y = e.map((b) => b._id);
|
|
16
16
|
return [
|
|
@@ -35,9 +35,9 @@ function je(e, n, a, o) {
|
|
|
35
35
|
...r.modules.scheduler.filter((_) => _._id !== o),
|
|
36
36
|
u
|
|
37
37
|
], r) : {
|
|
38
|
-
...
|
|
38
|
+
...B(),
|
|
39
39
|
modules: {
|
|
40
|
-
...
|
|
40
|
+
...B().modules,
|
|
41
41
|
catalog: r.modules.catalog,
|
|
42
42
|
item: r.modules.item,
|
|
43
43
|
group: r.modules.group,
|
|
@@ -46,7 +46,7 @@ function je(e, n, a, o) {
|
|
|
46
46
|
_id: r._id
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function T(e, n, a) {
|
|
50
50
|
var f;
|
|
51
51
|
if (a >= 3) return e;
|
|
52
52
|
const o = n.modules.item.find((d) => d._id === e._id);
|
|
@@ -59,10 +59,10 @@ function F(e, n, a) {
|
|
|
59
59
|
return i ? m = ((s = d.items) == null ? void 0 : s.map((_) => {
|
|
60
60
|
var b;
|
|
61
61
|
const y = (b = i.items) == null ? void 0 : b.find(
|
|
62
|
-
(
|
|
62
|
+
(F) => F._id === _._id && F.combinationKey === _.combinationKey
|
|
63
63
|
);
|
|
64
|
-
return
|
|
65
|
-
})) ?? [] : m = ((p = d.items) == null ? void 0 : p.map((_) =>
|
|
64
|
+
return T(y || _, n, a + 1);
|
|
65
|
+
})) ?? [] : m = ((p = d.items) == null ? void 0 : p.map((_) => T(_, n, a + 1))) ?? [], {
|
|
66
66
|
...d,
|
|
67
67
|
items: m
|
|
68
68
|
};
|
|
@@ -75,7 +75,7 @@ function F(e, n, a) {
|
|
|
75
75
|
groups: r
|
|
76
76
|
};
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function Be(e, n) {
|
|
79
79
|
const a = e.groups.map((f) => {
|
|
80
80
|
const d = n.modules.group.find((m) => m._id === f._id), i = ((d == null ? void 0 : d.items) || []).map((m) => {
|
|
81
81
|
var p;
|
|
@@ -83,16 +83,16 @@ function ze(e, n) {
|
|
|
83
83
|
(_) => _._id === m._id && _.combinationKey === m.combinationKey
|
|
84
84
|
);
|
|
85
85
|
if (u)
|
|
86
|
-
return
|
|
86
|
+
return T(u, n, 1);
|
|
87
87
|
const s = {
|
|
88
88
|
...x.generator.initMenuV4ItemOverrider(),
|
|
89
89
|
_id: m._id,
|
|
90
90
|
combinationKey: m.combinationKey
|
|
91
91
|
};
|
|
92
|
-
return
|
|
92
|
+
return T(s, n, 1);
|
|
93
93
|
});
|
|
94
94
|
return { ...f, items: i };
|
|
95
|
-
}), o = e.variant ? e.variant.variantCombinations.map((f) =>
|
|
95
|
+
}), o = e.variant ? e.variant.variantCombinations.map((f) => T(f, n, 1)) : [], r = {
|
|
96
96
|
...x.generator.initMenuV4ItemOverrider(),
|
|
97
97
|
_id: e._id,
|
|
98
98
|
name: e.name,
|
|
@@ -101,7 +101,7 @@ function ze(e, n) {
|
|
|
101
101
|
};
|
|
102
102
|
return [...o, r];
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function W(e, n) {
|
|
105
105
|
var o;
|
|
106
106
|
if (!n)
|
|
107
107
|
return e;
|
|
@@ -114,7 +114,7 @@ function H(e, n) {
|
|
|
114
114
|
const u = (s = f == null ? void 0 : f.items) == null ? void 0 : s.find(
|
|
115
115
|
(p) => p._id === m._id && p.combinationKey === m.combinationKey
|
|
116
116
|
);
|
|
117
|
-
return
|
|
117
|
+
return W(m, u);
|
|
118
118
|
}), r;
|
|
119
119
|
}), a;
|
|
120
120
|
}
|
|
@@ -128,7 +128,7 @@ function Ge(e, n) {
|
|
|
128
128
|
);
|
|
129
129
|
if (!f)
|
|
130
130
|
throw new Error(`Item overrider not found - ${r._id} - ${r.combinationKey}`);
|
|
131
|
-
return
|
|
131
|
+
return W(f, r);
|
|
132
132
|
})
|
|
133
133
|
});
|
|
134
134
|
const o = a.find((r) => !r.combinationKey);
|
|
@@ -142,7 +142,7 @@ function Ge(e, n) {
|
|
|
142
142
|
const m = (u = f == null ? void 0 : f.items) == null ? void 0 : u.find(
|
|
143
143
|
(s) => s._id === i._id && s.combinationKey === i.combinationKey
|
|
144
144
|
);
|
|
145
|
-
return
|
|
145
|
+
return W(i, m);
|
|
146
146
|
}), r;
|
|
147
147
|
}), {
|
|
148
148
|
...n,
|
|
@@ -150,9 +150,9 @@ function Ge(e, n) {
|
|
|
150
150
|
};
|
|
151
151
|
}
|
|
152
152
|
async function it(e, n, a, o, r, f = !0) {
|
|
153
|
-
const d = k(a), i = f ?
|
|
153
|
+
const d = k(a), i = f ? ze(n, d, o, r) : d, m = n.reduce((p, _) => (p[_._id] = i.modules.item.find((y) => y._id === _._id), p), {}), u = n.reduce((p, _) => {
|
|
154
154
|
const y = _._id;
|
|
155
|
-
return p[y] =
|
|
155
|
+
return p[y] = Be(m[y], e), p;
|
|
156
156
|
}, {}), s = x.getFallbackPrices({
|
|
157
157
|
rawMenu: i,
|
|
158
158
|
items: u,
|
|
@@ -186,7 +186,7 @@ async function lt(e, n) {
|
|
|
186
186
|
if (D.has(a))
|
|
187
187
|
return D.get(a);
|
|
188
188
|
const o = await Z(
|
|
189
|
-
|
|
189
|
+
We,
|
|
190
190
|
JSON.stringify({
|
|
191
191
|
menu: e,
|
|
192
192
|
itemId: n
|
|
@@ -195,7 +195,7 @@ async function lt(e, n) {
|
|
|
195
195
|
return D.set(a, o), o;
|
|
196
196
|
}
|
|
197
197
|
async function ne(e, n, a) {
|
|
198
|
-
return await Z(
|
|
198
|
+
return await Z(Ye, {
|
|
199
199
|
menu: e,
|
|
200
200
|
catalogId: n,
|
|
201
201
|
schedulerId: a
|
|
@@ -231,13 +231,13 @@ function mt(e, n, a) {
|
|
|
231
231
|
}
|
|
232
232
|
return r(n, a);
|
|
233
233
|
}
|
|
234
|
-
const
|
|
234
|
+
const q = /* @__PURE__ */ new Map();
|
|
235
235
|
async function Le(e, n, a) {
|
|
236
236
|
const o = `${e._id}-${e.updatedAt}-${n || "null"}-${a || "null"}`;
|
|
237
|
-
if (
|
|
238
|
-
return
|
|
237
|
+
if (q.has(o))
|
|
238
|
+
return q.get(o);
|
|
239
239
|
const r = await ne(e, n, a);
|
|
240
|
-
return
|
|
240
|
+
return q.set(o, r), r;
|
|
241
241
|
}
|
|
242
242
|
async function ft(e, n, a) {
|
|
243
243
|
var d, i;
|
|
@@ -251,11 +251,11 @@ async function ft(e, n, a) {
|
|
|
251
251
|
const u = (d = m.items) == null ? void 0 : d.find((p) => p._id === a && !p.combinationKey), s = e.modules.item.find((p) => p._id === a);
|
|
252
252
|
if (u) {
|
|
253
253
|
const p = (i = m.items) == null ? void 0 : i.filter((y) => y._id === a && y.combinationKey), _ = [u, ...p].map((y) => {
|
|
254
|
-
var
|
|
255
|
-
const b = y.combinationKey ? (
|
|
254
|
+
var N, V;
|
|
255
|
+
const b = y.combinationKey ? (V = (N = s == null ? void 0 : s.variant) == null ? void 0 : N.variantCombinations) == null ? void 0 : V.find(
|
|
256
256
|
(O) => O.combinationKey === y.combinationKey
|
|
257
|
-
) : s,
|
|
258
|
-
return f(
|
|
257
|
+
) : s, F = b && s ? f(s, b) : y;
|
|
258
|
+
return f(F, y);
|
|
259
259
|
});
|
|
260
260
|
r.push({
|
|
261
261
|
group: m,
|
|
@@ -338,10 +338,10 @@ function Xe() {
|
|
|
338
338
|
currentSchedulerId: ""
|
|
339
339
|
};
|
|
340
340
|
}
|
|
341
|
-
const Ze =
|
|
341
|
+
const Ze = He(
|
|
342
342
|
"mf-menu-store-v2",
|
|
343
343
|
() => {
|
|
344
|
-
const e =
|
|
344
|
+
const e = Fe(Xe()), n = J(), a = De(), o = h(() => e.menu.modules.serveSequence ? C(e.menu.modules.serveSequence, {
|
|
345
345
|
selector: "position"
|
|
346
346
|
}) : []), r = h(() => {
|
|
347
347
|
var t;
|
|
@@ -373,14 +373,14 @@ const Ze = qe(
|
|
|
373
373
|
}
|
|
374
374
|
return p.value = t, _.value = !1, y.value = y.value + 1, t;
|
|
375
375
|
}
|
|
376
|
-
const
|
|
377
|
-
|
|
376
|
+
const N = ee.debounce(b, 200);
|
|
377
|
+
H(
|
|
378
378
|
() => [e.menu, e.currentCatalogId, e.currentSchedulerId],
|
|
379
379
|
() => {
|
|
380
|
-
_.value ||
|
|
380
|
+
_.value || N();
|
|
381
381
|
}
|
|
382
382
|
);
|
|
383
|
-
const
|
|
383
|
+
const V = h(() => [
|
|
384
384
|
{
|
|
385
385
|
label: "Main",
|
|
386
386
|
value: null
|
|
@@ -392,7 +392,7 @@ const Ze = qe(
|
|
|
392
392
|
]), O = h(() => {
|
|
393
393
|
const t = p.value.modules.category;
|
|
394
394
|
return [
|
|
395
|
-
...
|
|
395
|
+
...K.value.item.addon ? [
|
|
396
396
|
{
|
|
397
397
|
_id: e.currentCatalogId ? "" : null,
|
|
398
398
|
name: "Addon",
|
|
@@ -404,7 +404,7 @@ const Ze = qe(
|
|
|
404
404
|
}), re = h(() => {
|
|
405
405
|
const t = p.value.modules.subCategory || [];
|
|
406
406
|
return w(t, (l) => l.name);
|
|
407
|
-
}),
|
|
407
|
+
}), Y = h(() => {
|
|
408
408
|
var l;
|
|
409
409
|
let t = p.value.modules.item;
|
|
410
410
|
if (i.value) {
|
|
@@ -427,8 +427,8 @@ const Ze = qe(
|
|
|
427
427
|
c,
|
|
428
428
|
(g) => g.code || g.name
|
|
429
429
|
).reduce((g, v, M) => (g[v._id] = M + l[v.category || ""], g), {});
|
|
430
|
-
}), se = h(() => G(
|
|
431
|
-
const t =
|
|
430
|
+
}), se = h(() => G(A.value, O.value, Y.value)), ue = h(() => {
|
|
431
|
+
const t = K.value.item.addon ? [
|
|
432
432
|
{
|
|
433
433
|
_id: e.currentCatalogId ? "" : null,
|
|
434
434
|
name: "Addon",
|
|
@@ -441,12 +441,12 @@ const Ze = qe(
|
|
|
441
441
|
t,
|
|
442
442
|
e.menu.modules.item
|
|
443
443
|
);
|
|
444
|
-
}),
|
|
444
|
+
}), A = h(() => {
|
|
445
445
|
const t = p.value.modules.variant;
|
|
446
446
|
return C(t, { selector: "name" });
|
|
447
447
|
});
|
|
448
448
|
function ie(t = []) {
|
|
449
|
-
const l = t.map((g) =>
|
|
449
|
+
const l = t.map((g) => A.value.find((v) => v._id === g)).filter((g) => !!g);
|
|
450
450
|
return x.fullVariantCombination(l).reduce((g, v) => (g[v.combinationKey] = v.selectionName.join(" / "), g), {});
|
|
451
451
|
}
|
|
452
452
|
const ce = h(() => w(p.value.modules.group, (t) => t.name)), le = h(() => C(p.value.modules.takeaway, { selector: "name" })), de = h(() => C(e.menu.modules.printDepartment || [], {
|
|
@@ -456,7 +456,7 @@ const Ze = qe(
|
|
|
456
456
|
})), pe = h(() => e.menu.modules.cookingGuide), _e = h(() => {
|
|
457
457
|
const t = xe(e.menu.modules.sku);
|
|
458
458
|
return C(t, { selector: "code" });
|
|
459
|
-
}),
|
|
459
|
+
}), K = h(() => {
|
|
460
460
|
const t = !e.currentCatalogId, l = r.value === $.F_MENU_VERSION.v4, c = !e.currentSchedulerId, g = {
|
|
461
461
|
create: t && c,
|
|
462
462
|
edit: t && c,
|
|
@@ -537,13 +537,13 @@ const Ze = qe(
|
|
|
537
537
|
}
|
|
538
538
|
const ye = h(() => {
|
|
539
539
|
var l;
|
|
540
|
-
const t =
|
|
540
|
+
const t = Ae.Country.getCountryFlattenTaxes(
|
|
541
541
|
J().currentCountry.value
|
|
542
542
|
);
|
|
543
543
|
return {
|
|
544
544
|
systemCode: (l = t[0]) == null ? void 0 : l.systemCode,
|
|
545
545
|
countryTaxOptions: t.map((c) => ({
|
|
546
|
-
label: `${c.name} (${
|
|
546
|
+
label: `${c.name} (${Ke(c.rate)}%)`,
|
|
547
547
|
value: U(c),
|
|
548
548
|
meta: {
|
|
549
549
|
rate: c.rate
|
|
@@ -552,11 +552,11 @@ const Ze = qe(
|
|
|
552
552
|
};
|
|
553
553
|
}), he = async () => {
|
|
554
554
|
const t = await L.readMenu();
|
|
555
|
-
e.menu = t ?? e.menu,
|
|
555
|
+
e.menu = t ?? e.menu, j(null);
|
|
556
556
|
}, be = async () => {
|
|
557
557
|
const t = await L.readRestaurantsWithMenu();
|
|
558
558
|
e.restaurants = C(t, { selector: "name" });
|
|
559
|
-
},
|
|
559
|
+
}, j = (t) => {
|
|
560
560
|
e.currentCatalogId = t;
|
|
561
561
|
}, Me = (t) => {
|
|
562
562
|
e.currentSchedulerId = t;
|
|
@@ -610,14 +610,14 @@ const Ze = qe(
|
|
|
610
610
|
currentCatalog: i,
|
|
611
611
|
schedulers: m,
|
|
612
612
|
currentScheduler: u,
|
|
613
|
-
catalogOptions:
|
|
613
|
+
catalogOptions: V,
|
|
614
614
|
categories: O,
|
|
615
615
|
subcategories: re,
|
|
616
|
-
items:
|
|
616
|
+
items: Y,
|
|
617
617
|
sortedItems: ae,
|
|
618
618
|
categorizedItems: se,
|
|
619
619
|
categorizedRawMenuItems: ue,
|
|
620
|
-
variants:
|
|
620
|
+
variants: A,
|
|
621
621
|
groups: ce,
|
|
622
622
|
takeaways: le,
|
|
623
623
|
printDepartments: de,
|
|
@@ -625,13 +625,13 @@ const Ze = qe(
|
|
|
625
625
|
recipes: fe,
|
|
626
626
|
cookingGuide: pe,
|
|
627
627
|
skus: _e,
|
|
628
|
-
rules:
|
|
628
|
+
rules: K,
|
|
629
629
|
taxSetting: ye,
|
|
630
630
|
// Action
|
|
631
631
|
setMenu: s,
|
|
632
632
|
readMenu: he,
|
|
633
633
|
readRestaurants: be,
|
|
634
|
-
selectCatalog:
|
|
634
|
+
selectCatalog: j,
|
|
635
635
|
selectScheduler: Me,
|
|
636
636
|
selectCategory: Ce,
|
|
637
637
|
updateMenu: Se,
|
|
@@ -658,21 +658,21 @@ const Ze = qe(
|
|
|
658
658
|
}
|
|
659
659
|
};
|
|
660
660
|
}
|
|
661
|
-
), Q = /* @__PURE__ */
|
|
661
|
+
), Q = /* @__PURE__ */ Te({
|
|
662
662
|
__name: "AddSubcategoryDialogContentComponent",
|
|
663
663
|
props: {
|
|
664
664
|
initialValue: {}
|
|
665
665
|
},
|
|
666
666
|
setup(e) {
|
|
667
667
|
const n = e, { t: a } = te();
|
|
668
|
-
|
|
668
|
+
H(
|
|
669
669
|
() => n.initialValue,
|
|
670
670
|
(d) => {
|
|
671
671
|
o.value = d ?? "";
|
|
672
672
|
}
|
|
673
673
|
);
|
|
674
|
-
const o = R(n.initialValue), { emitData: r, emitAction: f } =
|
|
675
|
-
return
|
|
674
|
+
const o = R(n.initialValue), { emitData: r, emitAction: f } = qe();
|
|
675
|
+
return H(
|
|
676
676
|
o,
|
|
677
677
|
(d) => {
|
|
678
678
|
r(d);
|
|
@@ -681,11 +681,11 @@ const Ze = qe(
|
|
|
681
681
|
immediate: !0
|
|
682
682
|
}
|
|
683
683
|
), (d, i) => {
|
|
684
|
-
const m =
|
|
685
|
-
return
|
|
684
|
+
const m = z("fm-text-field"), u = z("FmForm");
|
|
685
|
+
return Ne(), Re(u, {
|
|
686
686
|
onValidationSuccess: i[1] || (i[1] = (s) => P(f)("primary"))
|
|
687
687
|
}, {
|
|
688
|
-
default:
|
|
688
|
+
default: Ve(() => [
|
|
689
689
|
Oe(m, {
|
|
690
690
|
modelValue: o.value,
|
|
691
691
|
"onUpdate:modelValue": i[0] || (i[0] = (s) => o.value = s),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import "./menu-
|
|
1
|
+
import { c as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-CDM1sCGe.js";
|
|
2
|
+
import "./menu-B3kJ7du7.js";
|
|
3
3
|
var Z = {
|
|
4
4
|
defaultAmount: 0,
|
|
5
5
|
defaultCurrency: "USD",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineStore as Q } from "pinia";
|
|
2
2
|
import { defineComponent as T, computed as U, ref as h, watch as L, resolveComponent as V, createBlock as W, openBlock as F, withCtx as w, createVNode as m, createElementVNode as f, normalizeClass as H, createElementBlock as A, toDisplayString as M, unref as l, Fragment as q, renderSlot as X, renderList as Z, getCurrentInstance as ee } from "vue";
|
|
3
|
-
import { a6 as P, a7 as te, a4 as B, J as k, Q as $, G as I, A as E, K as ne, a5 as ae, M as C, I as D, u as oe } from "./menu-
|
|
3
|
+
import { a6 as P, a7 as te, a4 as B, J as k, Q as $, G as I, A as E, K as ne, a5 as ae, M as C, I as D, u as oe } from "./menu-B3kJ7du7.js";
|
|
4
4
|
import { useI18n as N } from "@feedmepos/mf-common";
|
|
5
5
|
import { useSnackbar as j, components as le, useDialog as ue, FmButtonVariant as ie } from "@feedmepos/ui-library";
|
|
6
6
|
import { u as se } from "./discardConfirm-BHni0LNu.js";
|