@feedmepos/mf-menu 0.31.18-prod → 0.31.19-beta
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-CA9Sl2_e.js → App-y2Q2D6AO.js} +2400 -1296
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-DXC06G_p.js → ApplyProduct.vue_vue_type_script_setup_true_lang-XV96dt6h.js} +2 -2
- package/dist/{Catalog-DO0Z3SSz.js → Catalog-Di-YSP-w.js} +5 -5
- package/dist/{Category-B1kXrXpy.js → Category-BzydRf7k.js} +21 -21
- package/dist/{Category-DTh_5WI5.js → Category-CAccN9m6.js} +8 -8
- package/dist/{CookingGuide-eHhSbisd.js → CookingGuide-BQcVxx1R.js} +66 -66
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-DKGEMS0s.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-BjUqhzCZ.js} +1 -1
- package/dist/{Group-Bd61FXOa.js → Group-B8TuooWf.js} +3 -3
- package/dist/{Group-Dh5RNyxf.js → Group-CAV74Npz.js} +1 -1
- package/dist/{Group.vue_vue_type_script_setup_true_lang-p3ZeU8Ad.js → Group.vue_vue_type_script_setup_true_lang-ClnFek9W.js} +7 -7
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CuR3HOn4.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DsC5e95X.js} +3 -3
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-BjwTTR43.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-DV0-XcfW.js} +3078 -3074
- package/dist/{Ingredient-BLfFgX0g.js → Ingredient-DMLmjp-1.js} +3 -3
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-C2f4oQV_.js → InventoryBinding.vue_vue_type_script_setup_true_lang-C0tjGp89.js} +2 -2
- package/dist/{LinkProductSideSheet-DPIxXikN.js → LinkProductSideSheet-DIvOzMB8.js} +1 -1
- package/dist/{MenuSetting-UVUYswl1.js → MenuSetting-C5sIpDMN.js} +16 -16
- package/dist/{PrintRoute-B4WpCa5j.js → PrintRoute-NHoHTnMc.js} +26 -26
- package/dist/{Product-DMqUEuUP.js → Product-C2SOvPy4.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-DvqDdaNh.js → Product.vue_vue_type_script_setup_true_lang-BEHnUKcc.js} +62 -59
- package/dist/{ProductInternalTools-BjQILwqA.js → ProductInternalTools-eXFZoo1G.js} +14 -14
- package/dist/{Products-BR612MbF.js → Products-3J5DcGEc.js} +15 -15
- package/dist/{Publish-HQprte7i.js → Publish-BdWd54a5.js} +32 -32
- package/dist/{Recipe-CW8DpUib.js → Recipe-DrNJifKH.js} +9 -9
- package/dist/{Scheduler-jwxuWWBc.js → Scheduler-OLKgjhjM.js} +3 -3
- package/dist/{ServingSequence-DILOiy8d.js → ServingSequence-DZ-eaRkW.js} +25 -25
- package/dist/{Setting-DtHcu5eE.js → Setting-t5Edfa6F.js} +10 -10
- package/dist/{Subcategory-BuBhmpHK.js → Subcategory-B1BeXahn.js} +18 -18
- package/dist/{Takeaway-CFH-2jGX.js → Takeaway-CS31a0G6.js} +1 -1
- package/dist/{Takeaway-Dadg_p4p.js → Takeaway-q69U7AjK.js} +10 -10
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-Ccm340Do.js → Takeaway.vue_vue_type_script_setup_true_lang-CNheVEqy.js} +17 -17
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BO_RY7Nb.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-0kXXOsyC.js} +356 -352
- package/dist/{Unit-BhC7HKdj.js → Unit-R0fBKDBQ.js} +8 -8
- package/dist/{Variant-op1jI8lu.js → Variant-DdIfbckf.js} +8 -8
- package/dist/{_id_-C8aH00wO.js → _id_-Cpxz3UoN.js} +17 -17
- package/dist/{app-CgdrcHjA.js → app-CMGlnsG5.js} +24 -24
- package/dist/{app-DTuhoxK_.js → app-DRorRq_c.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/components/Announcements.vue.d.ts +19 -0
- package/dist/apps/mf-menu/src/components/feature/Fields/OrderFrom.vue.d.ts +1 -1
- package/dist/apps/mf-menu/src/helper/menu.d.ts +1 -1
- package/dist/apps/mf-menu/src/stores/announcement/announcement.d.ts +11 -0
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/linked-status-CdVNB55V.js +24 -0
- package/dist/assets/override-menu-CjvOi-J-.js +24 -0
- package/dist/assets/validate-menu-BU_-Jge5.js +24 -0
- package/dist/{catalog-C_ivwYaQ.js → catalog-BXSv7rZo.js} +1 -1
- package/dist/{catalogSetting-DZueIrzX.js → catalogSetting-DhXLcwI_.js} +1 -1
- package/dist/{category-B3iKQFQ-.js → category-LHZTSH3_.js} +1 -1
- package/dist/{currency-CA5FQbXi.js → currency-C05JOYSJ.js} +1 -1
- package/dist/{dayjs.min-B5JdMy-O.js → dayjs.min-OqJAuW-9.js} +1 -1
- package/dist/{index-g0Su2v11.js → index-BgrBG_Iz.js} +11 -11
- package/dist/{index-jZfKRlag.js → index-CxytOxGX.js} +1 -1
- package/dist/{index-BFdAL_N3.js → index-kz099Vvw.js} +6 -6
- package/dist/{item-SVoStXDW.js → item-vz-nrIWG.js} +694 -691
- package/dist/{jszip.min-DYjqumCW.js → jszip.min-C2aY4t8L.js} +2 -2
- package/dist/menu-CAVt_lFp.js +107896 -0
- package/dist/{menu-CTQtotYO.js → menu-DJkyk-fC.js} +1 -1
- package/dist/mf-menu.css +1 -1
- package/dist/{priceTier-D7hqwCP7.js → priceTier-xvRS9QN2.js} +1 -1
- package/dist/{scheduler-sOWjTP9q.js → scheduler-Du42t5zf.js} +3 -3
- package/dist/{subcategory-DzOnwchb.js → subcategory-CqKHknsQ.js} +219 -219
- package/dist/{toExcel-CXiBEHW2.js → toExcel-BvBlj-X5.js} +2 -2
- package/dist/{unit-CejxJLsQ.js → unit-DENherye.js} +1 -1
- package/package.json +3 -2
- package/dist/assets/linked-status-DjuegQzl.js +0 -24
- package/dist/assets/override-menu-SwLrxhgz.js +0 -24
- package/dist/assets/validate-menu-kf0hkaus.js +0 -24
- package/dist/menu-GZ7mL7Mu.js +0 -132202
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { shallowRef as Z, ref as
|
|
2
|
-
import { H as k,
|
|
1
|
+
import { shallowRef as Z, ref as T, computed as h, shallowReactive as Ve, effectScope as Te, watch as H, defineComponent as Re, resolveComponent as z, createBlock as Ne, openBlock as Oe, unref as N, withCtx as xe, createVNode as Pe } from "vue";
|
|
2
|
+
import { H as k, B as O, aj as ee, G as I, ak as G, J as S, I as te, a9 as M, c as D, Y as E, ai as L, al as Ae, am as Ue, A as Ke, ab as De, an as $e, a8 as J, u as qe } from "./menu-CAVt_lFp.js";
|
|
3
3
|
import { useCoreStore as Q, useI18n as ne } from "@feedmepos/mf-common";
|
|
4
4
|
import { useSnackbar as He, useDialogChild as Ye } from "@feedmepos/ui-library";
|
|
5
5
|
import { defineStore as We } from "pinia";
|
|
6
|
-
const je = "/assets/linked-status-
|
|
7
|
-
function
|
|
6
|
+
const je = "/assets/linked-status-CdVNB55V.js", Be = "/assets/override-menu-CjvOi-J-.js";
|
|
7
|
+
function ze(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
12
|
function Ge(e, n, a, o) {
|
|
13
|
-
const r = k(n), f = a ? r.modules.catalog.find((
|
|
14
|
-
function p(
|
|
13
|
+
const r = k(n), f = a ? r.modules.catalog.find((g) => g._id === a) : null, l = o ? r.modules.scheduler.find((g) => g._id === o) : null, i = f ? k(f) : void 0, d = a ? r.modules.catalog.filter((g) => g._id !== a) : [], u = l ? k(l) : void 0, s = e.reduce((g, y) => (g[y._id] = ze(y), g), {});
|
|
14
|
+
function p(g = []) {
|
|
15
15
|
const y = e.map((b) => b._id);
|
|
16
16
|
return [
|
|
17
|
-
...
|
|
17
|
+
...g.filter((b) => !y.includes(b._id)),
|
|
18
18
|
...Object.values(s).flatMap((b) => b)
|
|
19
19
|
];
|
|
20
20
|
}
|
|
@@ -23,16 +23,16 @@ function Ge(e, n, a, o) {
|
|
|
23
23
|
[o]: {
|
|
24
24
|
...i.override.scheduler[o],
|
|
25
25
|
_id: o,
|
|
26
|
-
items: p(u == null ? void 0 : u.items).map((
|
|
27
|
-
...
|
|
26
|
+
items: p(u == null ? void 0 : u.items).map((g) => ({
|
|
27
|
+
...g,
|
|
28
28
|
orderFrom: I.F_ORDER_FROM.enum.ALL
|
|
29
29
|
}))
|
|
30
30
|
}
|
|
31
|
-
}, r.modules.catalog = [...
|
|
31
|
+
}, r.modules.catalog = [...d, i], r) : i ? (i.override.items = {
|
|
32
32
|
...i.override.items,
|
|
33
33
|
...s
|
|
34
|
-
}, r.modules.catalog = [...
|
|
35
|
-
...r.modules.scheduler.filter((
|
|
34
|
+
}, r.modules.catalog = [...d, i], r) : u ? (u.items = p(u.items), r.modules.scheduler = [
|
|
35
|
+
...r.modules.scheduler.filter((g) => g._id !== o),
|
|
36
36
|
u
|
|
37
37
|
], r) : {
|
|
38
38
|
...G(),
|
|
@@ -46,25 +46,25 @@ function Ge(e, n, a, o) {
|
|
|
46
46
|
_id: r._id
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function V(e, n, a) {
|
|
50
50
|
var f;
|
|
51
51
|
if (a >= 3) return e;
|
|
52
|
-
const o = n.modules.item.find((
|
|
52
|
+
const o = n.modules.item.find((l) => l._id === e._id);
|
|
53
53
|
if (!o)
|
|
54
54
|
throw new Error(`_insertItemOverriders - Item not found - ${e._id}`);
|
|
55
|
-
const r = (f = o.groups) == null ? void 0 : f.map((
|
|
55
|
+
const r = (f = o.groups) == null ? void 0 : f.map((l) => {
|
|
56
56
|
var u, s, p;
|
|
57
|
-
const i = (u = e == null ? void 0 : e.groups) == null ? void 0 : u.find((
|
|
58
|
-
let
|
|
59
|
-
return i ?
|
|
57
|
+
const i = (u = e == null ? void 0 : e.groups) == null ? void 0 : u.find((g) => g._id === l._id);
|
|
58
|
+
let d;
|
|
59
|
+
return i ? d = ((s = l.items) == null ? void 0 : s.map((g) => {
|
|
60
60
|
var b;
|
|
61
61
|
const y = (b = i.items) == null ? void 0 : b.find(
|
|
62
|
-
(F) => F._id ===
|
|
62
|
+
(F) => F._id === g._id && F.combinationKey === g.combinationKey
|
|
63
63
|
);
|
|
64
|
-
return
|
|
65
|
-
})) ?? [] :
|
|
66
|
-
...
|
|
67
|
-
items:
|
|
64
|
+
return V(y || g, n, a + 1);
|
|
65
|
+
})) ?? [] : d = ((p = l.items) == null ? void 0 : p.map((g) => V(g, n, a + 1))) ?? [], {
|
|
66
|
+
...l,
|
|
67
|
+
items: d
|
|
68
68
|
};
|
|
69
69
|
});
|
|
70
70
|
return {
|
|
@@ -77,22 +77,22 @@ function T(e, n, a) {
|
|
|
77
77
|
}
|
|
78
78
|
function Le(e, n) {
|
|
79
79
|
const a = e.groups.map((f) => {
|
|
80
|
-
const
|
|
80
|
+
const l = n.modules.group.find((d) => d._id === f._id), i = ((l == null ? void 0 : l.items) || []).map((d) => {
|
|
81
81
|
var p;
|
|
82
82
|
const u = (p = f.items) == null ? void 0 : p.find(
|
|
83
|
-
(
|
|
83
|
+
(g) => g._id === d._id && g.combinationKey === d.combinationKey
|
|
84
84
|
);
|
|
85
85
|
if (u)
|
|
86
|
-
return
|
|
86
|
+
return V(u, n, 1);
|
|
87
87
|
const s = {
|
|
88
88
|
...O.generator.initMenuV4ItemOverrider(),
|
|
89
|
-
_id:
|
|
90
|
-
combinationKey:
|
|
89
|
+
_id: d._id,
|
|
90
|
+
combinationKey: d.combinationKey
|
|
91
91
|
};
|
|
92
|
-
return
|
|
92
|
+
return V(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) => V(f, n, 1)) : [], r = {
|
|
96
96
|
...O.generator.initMenuV4ItemOverrider(),
|
|
97
97
|
_id: e._id,
|
|
98
98
|
name: e.name,
|
|
@@ -107,14 +107,14 @@ function Y(e, n) {
|
|
|
107
107
|
return e;
|
|
108
108
|
const a = { ...e, code: n.code };
|
|
109
109
|
return a.groups = (o = a.groups) == null ? void 0 : o.map((r) => {
|
|
110
|
-
var
|
|
111
|
-
const f = (
|
|
112
|
-
return r.items = (i = r.items) == null ? void 0 : i.map((
|
|
110
|
+
var l, i;
|
|
111
|
+
const f = (l = n.groups) == null ? void 0 : l.find((d) => d._id === r._id);
|
|
112
|
+
return r.items = (i = r.items) == null ? void 0 : i.map((d) => {
|
|
113
113
|
var s;
|
|
114
114
|
const u = (s = f == null ? void 0 : f.items) == null ? void 0 : s.find(
|
|
115
|
-
(p) => p._id ===
|
|
115
|
+
(p) => p._id === d._id && p.combinationKey === d.combinationKey
|
|
116
116
|
);
|
|
117
|
-
return Y(
|
|
117
|
+
return Y(d, u);
|
|
118
118
|
}), r;
|
|
119
119
|
}), a;
|
|
120
120
|
}
|
|
@@ -124,7 +124,7 @@ function Je(e, n) {
|
|
|
124
124
|
...n.variant,
|
|
125
125
|
variantCombinations: n.variant.variantCombinations.map((r) => {
|
|
126
126
|
const f = a.find(
|
|
127
|
-
(
|
|
127
|
+
(l) => l._id === r._id && l.combinationKey === r.combinationKey
|
|
128
128
|
);
|
|
129
129
|
if (!f)
|
|
130
130
|
throw new Error(`Item overrider not found - ${r._id} - ${r.combinationKey}`);
|
|
@@ -135,14 +135,14 @@ function Je(e, n) {
|
|
|
135
135
|
if (!o)
|
|
136
136
|
throw new Error(`Base item overrider not found - ${n._id}`);
|
|
137
137
|
return n.groups = (o.groups || []).map((r) => {
|
|
138
|
-
var
|
|
138
|
+
var l;
|
|
139
139
|
const f = n.groups.find((i) => i._id === r._id);
|
|
140
|
-
return r.items = (
|
|
140
|
+
return r.items = (l = r.items) == null ? void 0 : l.map((i) => {
|
|
141
141
|
var u;
|
|
142
|
-
const
|
|
142
|
+
const d = (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 Y(i,
|
|
145
|
+
return Y(i, d);
|
|
146
146
|
}), r;
|
|
147
147
|
}), {
|
|
148
148
|
...n,
|
|
@@ -150,9 +150,9 @@ function Je(e, n) {
|
|
|
150
150
|
};
|
|
151
151
|
}
|
|
152
152
|
async function lt(e, n, a, o, r, f = !0) {
|
|
153
|
-
const
|
|
154
|
-
const y =
|
|
155
|
-
return p[y] = Le(
|
|
153
|
+
const l = k(a), i = f ? Ge(n, l, o, r) : l, d = n.reduce((p, g) => (p[g._id] = i.modules.item.find((y) => y._id === g._id), p), {}), u = n.reduce((p, g) => {
|
|
154
|
+
const y = g._id;
|
|
155
|
+
return p[y] = Le(d[y], e), p;
|
|
156
156
|
}, {}), s = O.getFallbackPrices({
|
|
157
157
|
rawMenu: i,
|
|
158
158
|
items: u,
|
|
@@ -160,7 +160,7 @@ async function lt(e, n, a, o, r, f = !0) {
|
|
|
160
160
|
schedulerId: r
|
|
161
161
|
});
|
|
162
162
|
return n.map((p) => {
|
|
163
|
-
const
|
|
163
|
+
const g = p._id, y = d[g];
|
|
164
164
|
return {
|
|
165
165
|
...Je(s, y),
|
|
166
166
|
category: o || r ? y == null ? void 0 : y.category : null
|
|
@@ -172,8 +172,8 @@ function dt(e, n) {
|
|
|
172
172
|
const a = e == null ? void 0 : e.split("variant");
|
|
173
173
|
return ((a == null ? void 0 : a.reduce((r, f) => {
|
|
174
174
|
if (f && f.length > 0) {
|
|
175
|
-
const
|
|
176
|
-
({ _id: s }) => s ===
|
|
175
|
+
const l = `variant${f.split("/")[0]}`, i = f.split("/")[1], u = n.find(
|
|
176
|
+
({ _id: s }) => s === l
|
|
177
177
|
).options.find(({ _id: s }) => s === i);
|
|
178
178
|
r.push(((u == null ? void 0 : u.name) || "").trim());
|
|
179
179
|
}
|
|
@@ -195,7 +195,7 @@ async function mt(e, n) {
|
|
|
195
195
|
return $.set(a, o), o;
|
|
196
196
|
}
|
|
197
197
|
async function oe(e, n, a) {
|
|
198
|
-
return await ee(
|
|
198
|
+
return await ee(Be, {
|
|
199
199
|
menu: e,
|
|
200
200
|
catalogId: n,
|
|
201
201
|
schedulerId: a
|
|
@@ -203,12 +203,12 @@ async function oe(e, n, a) {
|
|
|
203
203
|
}
|
|
204
204
|
function ft(e, n, a) {
|
|
205
205
|
const o = /* @__PURE__ */ new Set();
|
|
206
|
-
function r(f,
|
|
207
|
-
if (!e || !f || !
|
|
208
|
-
o.add(
|
|
209
|
-
const i = e.modules.item.find((
|
|
210
|
-
return !i || !i.groups ? !1 : i.groups.some((
|
|
211
|
-
const u = e.modules.group.find((s) => s._id ===
|
|
206
|
+
function r(f, l) {
|
|
207
|
+
if (!e || !f || !l || o.has(l)) return !1;
|
|
208
|
+
o.add(l);
|
|
209
|
+
const i = e.modules.item.find((d) => d._id === l);
|
|
210
|
+
return !i || !i.groups ? !1 : i.groups.some((d) => d._id === f) ? !0 : i.groups.some((d) => {
|
|
211
|
+
const u = e.modules.group.find((s) => s._id === d._id);
|
|
212
212
|
for (const s of (u == null ? void 0 : u.items) || [])
|
|
213
213
|
if (r(f, s._id)) return !0;
|
|
214
214
|
return !1;
|
|
@@ -218,14 +218,14 @@ function ft(e, n, a) {
|
|
|
218
218
|
}
|
|
219
219
|
function pt(e, n, a) {
|
|
220
220
|
const o = /* @__PURE__ */ new Set();
|
|
221
|
-
function r(f,
|
|
222
|
-
if (!e || !f || !
|
|
221
|
+
function r(f, l) {
|
|
222
|
+
if (!e || !f || !l || o.has(f)) return !1;
|
|
223
223
|
o.add(f);
|
|
224
|
-
const i = e.modules.group.find((
|
|
225
|
-
return !i || !i.items ? !1 : i.items.some((
|
|
226
|
-
const u = e.modules.item.find((s) => s._id ===
|
|
224
|
+
const i = e.modules.group.find((d) => d._id === f);
|
|
225
|
+
return !i || !i.items ? !1 : i.items.some((d) => d._id === l) ? !0 : i.items.some((d) => {
|
|
226
|
+
const u = e.modules.item.find((s) => s._id === d._id);
|
|
227
227
|
for (const s of (u == null ? void 0 : u.groups) || [])
|
|
228
|
-
if (r(s._id,
|
|
228
|
+
if (r(s._id, l)) return !0;
|
|
229
229
|
return !1;
|
|
230
230
|
});
|
|
231
231
|
}
|
|
@@ -240,26 +240,26 @@ async function Qe(e, n, a) {
|
|
|
240
240
|
return q.set(o, r), r;
|
|
241
241
|
}
|
|
242
242
|
async function _t(e, n, a) {
|
|
243
|
-
var
|
|
244
|
-
const o = await Qe(e, n, null), r = [], f = (
|
|
245
|
-
const s = k(
|
|
243
|
+
var l, i;
|
|
244
|
+
const o = await Qe(e, n, null), r = [], f = (d, u) => {
|
|
245
|
+
const s = k(d);
|
|
246
246
|
for (const p in u)
|
|
247
247
|
u[p] && (s[p] = u[p]);
|
|
248
248
|
return s;
|
|
249
249
|
};
|
|
250
|
-
for (const
|
|
251
|
-
const u = (
|
|
250
|
+
for (const d of o.modules.group) {
|
|
251
|
+
const u = (l = d.items) == null ? void 0 : l.find((p) => p._id === a && !p.combinationKey), s = e.modules.item.find((p) => p._id === a);
|
|
252
252
|
if (u) {
|
|
253
|
-
const p = (i =
|
|
254
|
-
var
|
|
255
|
-
const b = y.combinationKey ? (
|
|
256
|
-
(
|
|
253
|
+
const p = (i = d.items) == null ? void 0 : i.filter((y) => y._id === a && y.combinationKey), g = [u, ...p].map((y) => {
|
|
254
|
+
var R, x;
|
|
255
|
+
const b = y.combinationKey ? (x = (R = s == null ? void 0 : s.variant) == null ? void 0 : R.variantCombinations) == null ? void 0 : x.find(
|
|
256
|
+
(P) => P.combinationKey === y.combinationKey
|
|
257
257
|
) : s, F = b && s ? f(s, b) : y;
|
|
258
258
|
return f(F, y);
|
|
259
259
|
});
|
|
260
260
|
r.push({
|
|
261
|
-
group:
|
|
262
|
-
items:
|
|
261
|
+
group: d,
|
|
262
|
+
items: g
|
|
263
263
|
});
|
|
264
264
|
}
|
|
265
265
|
}
|
|
@@ -268,11 +268,11 @@ async function _t(e, n, a) {
|
|
|
268
268
|
function Xe({
|
|
269
269
|
maxHistorySize: e = 50
|
|
270
270
|
}) {
|
|
271
|
-
const n = Z([]), a =
|
|
271
|
+
const n = Z([]), a = T(-1), o = h(() => a.value > 0), r = h(() => a.value < n.value.length - 1);
|
|
272
272
|
function f(u) {
|
|
273
273
|
n.value.push(u), a.value++, n.value.length > e && (n.value.shift(), a.value--);
|
|
274
274
|
}
|
|
275
|
-
function
|
|
275
|
+
function l() {
|
|
276
276
|
if (o.value)
|
|
277
277
|
return a.value--, n.value[a.value];
|
|
278
278
|
}
|
|
@@ -280,16 +280,16 @@ function Xe({
|
|
|
280
280
|
if (r.value)
|
|
281
281
|
return a.value++, n.value[a.value];
|
|
282
282
|
}
|
|
283
|
-
function
|
|
283
|
+
function d() {
|
|
284
284
|
n.value = [], a.value = -1;
|
|
285
285
|
}
|
|
286
286
|
return {
|
|
287
287
|
push: f,
|
|
288
288
|
canUndo: o,
|
|
289
289
|
canRedo: r,
|
|
290
|
-
undo:
|
|
290
|
+
undo: l,
|
|
291
291
|
redo: i,
|
|
292
|
-
clear:
|
|
292
|
+
clear: d
|
|
293
293
|
};
|
|
294
294
|
}
|
|
295
295
|
const Ze = {
|
|
@@ -341,53 +341,53 @@ function et() {
|
|
|
341
341
|
const tt = We(
|
|
342
342
|
"mf-menu-store-v2",
|
|
343
343
|
() => {
|
|
344
|
-
const e =
|
|
344
|
+
const e = Ve(et()), n = Q(), a = He(), o = h(() => e.menu.modules.serveSequence ? M(e.menu.modules.serveSequence, {
|
|
345
345
|
selector: "position"
|
|
346
346
|
}) : []), r = h(() => {
|
|
347
347
|
var t;
|
|
348
348
|
return ((t = n.currentBusiness.value) == null ? void 0 : t.menuVersion) || D.F_MENU_VERSION.v3;
|
|
349
|
-
}), f = h(() => r.value === D.F_MENU_VERSION.v4),
|
|
349
|
+
}), f = h(() => r.value === D.F_MENU_VERSION.v4), l = h(() => {
|
|
350
350
|
const t = e.menu.modules.catalog;
|
|
351
|
-
return
|
|
352
|
-
}), i = h(() => e.menu.modules.catalog.find((t) => t._id === e.currentCatalogId)),
|
|
351
|
+
return M(t, { selector: "name" });
|
|
352
|
+
}), i = h(() => e.menu.modules.catalog.find((t) => t._id === e.currentCatalogId)), d = h(() => M(p.value.modules.scheduler, { selector: "name" })), u = h(() => e.menu.modules.scheduler.find(
|
|
353
353
|
(t) => t._id === e.currentSchedulerId
|
|
354
354
|
));
|
|
355
|
-
function s(t,
|
|
356
|
-
e.menu = { ...t, _rev: e.menu._rev },
|
|
355
|
+
function s(t, c = !0) {
|
|
356
|
+
e.menu = { ...t, _rev: e.menu._rev }, c && w.push(e.menu);
|
|
357
357
|
}
|
|
358
|
-
const p = Z(re()),
|
|
358
|
+
const p = Z(re()), g = T(!1), y = T(1);
|
|
359
359
|
async function b() {
|
|
360
|
-
|
|
360
|
+
g.value = !0;
|
|
361
361
|
const t = await oe(
|
|
362
362
|
e.menu,
|
|
363
363
|
e.currentCatalogId,
|
|
364
364
|
e.currentSchedulerId
|
|
365
365
|
);
|
|
366
366
|
if (e.currentSchedulerId != null) {
|
|
367
|
-
const
|
|
368
|
-
(
|
|
369
|
-
),
|
|
370
|
-
(
|
|
371
|
-
),
|
|
372
|
-
t.modules.item = t.modules.item.filter((
|
|
367
|
+
const c = e.menu.modules.catalog.find(
|
|
368
|
+
(_) => _._id === e.currentCatalogId
|
|
369
|
+
), m = c ? c.override.scheduler[e.currentSchedulerId] : e.menu.modules.scheduler.find(
|
|
370
|
+
(_) => _._id === e.currentSchedulerId
|
|
371
|
+
), v = new Set(((m == null ? void 0 : m.items) || []).map((_) => _._id));
|
|
372
|
+
t.modules.item = t.modules.item.filter((_) => v.has(_._id));
|
|
373
373
|
}
|
|
374
|
-
return p.value = t,
|
|
374
|
+
return p.value = t, g.value = !1, y.value = y.value + 1, t;
|
|
375
375
|
}
|
|
376
|
-
const
|
|
377
|
-
|
|
376
|
+
const R = te.debounce(b, 200);
|
|
377
|
+
Te(!0).run(() => {
|
|
378
378
|
H(
|
|
379
379
|
() => [e.menu, e.currentCatalogId, e.currentSchedulerId],
|
|
380
380
|
() => {
|
|
381
|
-
|
|
381
|
+
g.value || R();
|
|
382
382
|
}
|
|
383
383
|
);
|
|
384
384
|
});
|
|
385
|
-
const
|
|
385
|
+
const P = h(() => [
|
|
386
386
|
{
|
|
387
387
|
label: "Main",
|
|
388
388
|
value: null
|
|
389
389
|
},
|
|
390
|
-
...
|
|
390
|
+
...l.value.map((t) => ({
|
|
391
391
|
label: t.name,
|
|
392
392
|
value: t._id
|
|
393
393
|
}))
|
|
@@ -401,34 +401,34 @@ const tt = We(
|
|
|
401
401
|
position: 0
|
|
402
402
|
}
|
|
403
403
|
] : [],
|
|
404
|
-
...E(t, (
|
|
404
|
+
...E(t, (c) => c.name)
|
|
405
405
|
];
|
|
406
406
|
}), ae = h(() => {
|
|
407
407
|
const t = p.value.modules.subCategory || [];
|
|
408
|
-
return E(t, (
|
|
408
|
+
return E(t, (c) => c.name);
|
|
409
409
|
}), j = h(() => {
|
|
410
|
-
var
|
|
410
|
+
var c;
|
|
411
411
|
let t = p.value.modules.item;
|
|
412
412
|
if (i.value) {
|
|
413
|
-
const
|
|
414
|
-
t = t.filter((
|
|
415
|
-
var
|
|
416
|
-
const
|
|
413
|
+
const m = (c = i.value) == null ? void 0 : c.override.items;
|
|
414
|
+
t = t.filter((v) => {
|
|
415
|
+
var C;
|
|
416
|
+
const _ = (C = m == null ? void 0 : m[v._id]) == null ? void 0 : C.find(
|
|
417
417
|
(Fe) => !Fe.combinationKey
|
|
418
418
|
);
|
|
419
|
-
return (
|
|
419
|
+
return (_ == null ? void 0 : _.orderFrom) !== I.F_ORDER_FROM.enum.NONE;
|
|
420
420
|
});
|
|
421
421
|
}
|
|
422
|
-
return E(t, (
|
|
422
|
+
return E(t, (m) => m.code || m.name);
|
|
423
423
|
}), se = h(() => {
|
|
424
|
-
const t = e.menu.modules.category,
|
|
425
|
-
(
|
|
424
|
+
const t = e.menu.modules.category, c = E(t, (v) => v.name).reduce(
|
|
425
|
+
(v, _, C) => (v[_._id] = C, v),
|
|
426
426
|
{ "": 0 }
|
|
427
|
-
),
|
|
427
|
+
), m = e.menu.modules.item;
|
|
428
428
|
return E(
|
|
429
|
-
|
|
430
|
-
(
|
|
431
|
-
).reduce((
|
|
429
|
+
m,
|
|
430
|
+
(v) => v.code || v.name
|
|
431
|
+
).reduce((v, _, C) => (v[_._id] = C + c[_.category || ""], v), {});
|
|
432
432
|
}), ue = h(() => L(A.value, W.value, j.value)), ie = h(() => {
|
|
433
433
|
const t = U.value.item.addon ? [
|
|
434
434
|
{
|
|
@@ -445,85 +445,85 @@ const tt = We(
|
|
|
445
445
|
);
|
|
446
446
|
}), A = h(() => {
|
|
447
447
|
const t = p.value.modules.variant;
|
|
448
|
-
return
|
|
448
|
+
return M(t, { selector: "name" });
|
|
449
449
|
});
|
|
450
450
|
function ce(t = []) {
|
|
451
|
-
const
|
|
452
|
-
return O.fullVariantCombination(
|
|
451
|
+
const c = t.map((v) => A.value.find((_) => _._id === v)).filter((v) => !!v);
|
|
452
|
+
return O.fullVariantCombination(c).reduce((v, _) => (v[_.combinationKey] = _.selectionName.join(" / "), v), {});
|
|
453
453
|
}
|
|
454
|
-
const le = h(() => E(p.value.modules.group, (t) => t.name)), de = h(() =>
|
|
454
|
+
const le = h(() => E(p.value.modules.group, (t) => t.name)), de = h(() => M(p.value.modules.takeaway, { selector: "name" })), me = h(() => M(e.menu.modules.printDepartment || [], {
|
|
455
455
|
selector: "name"
|
|
456
|
-
})), fe = h(() =>
|
|
456
|
+
})), fe = h(() => M(e.menu.modules.unit, { selector: "name" })), pe = h(() => M(Ae(e.menu.modules.recipe, e.menu.modules.sku), {
|
|
457
457
|
selector: "name"
|
|
458
458
|
})), _e = h(() => e.menu.modules.cookingGuide), ge = h(() => {
|
|
459
459
|
const t = Ue(e.menu.modules.sku);
|
|
460
|
-
return
|
|
460
|
+
return M(t, { selector: "code" });
|
|
461
461
|
}), U = h(() => {
|
|
462
|
-
const t = !e.currentCatalogId,
|
|
463
|
-
create: t &&
|
|
464
|
-
edit: t &&
|
|
465
|
-
delete: t &&
|
|
462
|
+
const t = !e.currentCatalogId, c = r.value === D.F_MENU_VERSION.v4, m = !e.currentSchedulerId, v = {
|
|
463
|
+
create: t && m,
|
|
464
|
+
edit: t && m,
|
|
465
|
+
delete: t && m
|
|
466
466
|
};
|
|
467
467
|
return {
|
|
468
468
|
item: {
|
|
469
|
-
...
|
|
470
|
-
edit:
|
|
471
|
-
sort:
|
|
472
|
-
addon:
|
|
473
|
-
code:
|
|
474
|
-
name: t &&
|
|
475
|
-
description: t &&
|
|
476
|
-
category: t &&
|
|
477
|
-
thumbnail: t &&
|
|
478
|
-
orderFrom: (
|
|
469
|
+
...v,
|
|
470
|
+
edit: c || m,
|
|
471
|
+
sort: c && t && m,
|
|
472
|
+
addon: c,
|
|
473
|
+
code: m,
|
|
474
|
+
name: t && m,
|
|
475
|
+
description: t && m,
|
|
476
|
+
category: t && m,
|
|
477
|
+
thumbnail: t && m,
|
|
478
|
+
orderFrom: (c || t) && m,
|
|
479
479
|
orderFromNone: t,
|
|
480
|
-
orderFromActiveOnly: !
|
|
481
|
-
openPrice: t &&
|
|
482
|
-
unit: t &&
|
|
480
|
+
orderFromActiveOnly: !c,
|
|
481
|
+
openPrice: t && m,
|
|
482
|
+
unit: t && m,
|
|
483
483
|
price: t,
|
|
484
484
|
editPrice: t,
|
|
485
|
-
minPrice:
|
|
486
|
-
costing:
|
|
487
|
-
tax: t &&
|
|
488
|
-
variant: t &&
|
|
489
|
-
maxVariant:
|
|
490
|
-
group: t &&
|
|
491
|
-
overrideProductGroup:
|
|
492
|
-
inventory: (
|
|
493
|
-
bindToVariant:
|
|
494
|
-
print: t &&
|
|
495
|
-
toRoot:
|
|
496
|
-
takeaway: (
|
|
497
|
-
multiScheduler:
|
|
498
|
-
canRearrange:
|
|
499
|
-
printConfig:
|
|
485
|
+
minPrice: c && m,
|
|
486
|
+
costing: c && t && m,
|
|
487
|
+
tax: t && m,
|
|
488
|
+
variant: t && m,
|
|
489
|
+
maxVariant: c ? 4 : 2,
|
|
490
|
+
group: t && m,
|
|
491
|
+
overrideProductGroup: c && m,
|
|
492
|
+
inventory: (c || t) && m,
|
|
493
|
+
bindToVariant: c,
|
|
494
|
+
print: t && m,
|
|
495
|
+
toRoot: c && m,
|
|
496
|
+
takeaway: (_) => !!_ && (c || t) && m,
|
|
497
|
+
multiScheduler: c,
|
|
498
|
+
canRearrange: c,
|
|
499
|
+
printConfig: c
|
|
500
500
|
},
|
|
501
501
|
category: {
|
|
502
|
-
...
|
|
503
|
-
sort: t &&
|
|
502
|
+
...v,
|
|
503
|
+
sort: t && m
|
|
504
504
|
},
|
|
505
505
|
group: {
|
|
506
|
-
...
|
|
507
|
-
edit:
|
|
506
|
+
...v,
|
|
507
|
+
edit: c || m,
|
|
508
508
|
sort: t,
|
|
509
509
|
applyProduct: t,
|
|
510
|
-
showAppliedProduct:
|
|
511
|
-
type: !
|
|
512
|
-
insertRawItems: !
|
|
513
|
-
multiScheduler:
|
|
510
|
+
showAppliedProduct: m,
|
|
511
|
+
type: !c,
|
|
512
|
+
insertRawItems: !c,
|
|
513
|
+
multiScheduler: c
|
|
514
514
|
},
|
|
515
515
|
scheduler: {
|
|
516
|
-
override:
|
|
516
|
+
override: c
|
|
517
517
|
},
|
|
518
518
|
takeaway: {
|
|
519
|
-
...
|
|
520
|
-
edit: (
|
|
519
|
+
...v,
|
|
520
|
+
edit: (c || t) && m,
|
|
521
521
|
name: t
|
|
522
522
|
},
|
|
523
523
|
catalog: {
|
|
524
524
|
name: !t,
|
|
525
|
-
defaultOrderFrom:
|
|
526
|
-
markup:
|
|
525
|
+
defaultOrderFrom: c,
|
|
526
|
+
markup: c
|
|
527
527
|
}
|
|
528
528
|
};
|
|
529
529
|
});
|
|
@@ -531,76 +531,76 @@ const tt = We(
|
|
|
531
531
|
return `${t.systemCode}/${t.taxCode}`;
|
|
532
532
|
}
|
|
533
533
|
function ve(t) {
|
|
534
|
-
const [
|
|
535
|
-
return { systemCode:
|
|
534
|
+
const [c, m] = t.split("/");
|
|
535
|
+
return { systemCode: c, taxCode: m };
|
|
536
536
|
}
|
|
537
|
-
function ye(t,
|
|
538
|
-
return (t ??
|
|
537
|
+
function ye(t, c, m) {
|
|
538
|
+
return (t ?? c ?? []).map((v) => K(v)).find((v) => m.some((_) => _.value === v));
|
|
539
539
|
}
|
|
540
540
|
const he = h(() => {
|
|
541
|
-
var
|
|
542
|
-
const t = Ke.Country.getCountryFlattenTaxes(
|
|
541
|
+
var v;
|
|
542
|
+
const t = ["SV5", "SV10"], c = Ke.Country.getCountryFlattenTaxes(
|
|
543
543
|
Q().currentCountry.value
|
|
544
|
-
)
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
544
|
+
), m = c.filter((_) => f.value || !t.includes(_.taxCode)).map((_) => ({
|
|
545
|
+
label: `${_.name} (${De(_.rate)}%)`,
|
|
546
|
+
value: K(_),
|
|
547
|
+
meta: {
|
|
548
|
+
rate: _.rate
|
|
549
|
+
}
|
|
550
|
+
}));
|
|
551
|
+
return m.sort((_, C) => _.label.localeCompare(C.label, void 0, { numeric: !0 })), {
|
|
552
|
+
systemCode: (v = c[0]) == null ? void 0 : v.systemCode,
|
|
553
|
+
countryTaxOptions: m
|
|
554
554
|
};
|
|
555
555
|
}), be = async () => {
|
|
556
556
|
const t = await J.readMenu();
|
|
557
|
-
e.menu = t ?? e.menu,
|
|
558
|
-
},
|
|
557
|
+
e.menu = t ?? e.menu, B(null);
|
|
558
|
+
}, Ce = async () => {
|
|
559
559
|
const t = await J.readRestaurantsWithMenu();
|
|
560
|
-
e.restaurants =
|
|
561
|
-
},
|
|
560
|
+
e.restaurants = M(t, { selector: "name" });
|
|
561
|
+
}, B = (t) => {
|
|
562
562
|
e.currentCatalogId = t;
|
|
563
|
-
},
|
|
563
|
+
}, Me = (t) => {
|
|
564
564
|
e.currentSchedulerId = t;
|
|
565
565
|
}, Se = (t) => {
|
|
566
566
|
e.currentCategoryIds = t;
|
|
567
|
-
}, we = async (t,
|
|
568
|
-
const
|
|
569
|
-
if (!
|
|
570
|
-
const
|
|
571
|
-
...
|
|
567
|
+
}, we = async (t, c) => {
|
|
568
|
+
const m = Array.isArray(t) ? t : [t];
|
|
569
|
+
if (!m.length) return;
|
|
570
|
+
const v = m.map((_) => ({
|
|
571
|
+
..._,
|
|
572
572
|
_id: e.menu._id,
|
|
573
573
|
_rev: e.menu._rev
|
|
574
574
|
}));
|
|
575
575
|
try {
|
|
576
|
-
if (
|
|
577
|
-
(
|
|
576
|
+
if (c || v.some(
|
|
577
|
+
(C) => [S.F_OPERATION_TYPE.delete, S.F_OPERATION_TYPE.deleteMany].includes(C.operation)
|
|
578
578
|
)) {
|
|
579
|
-
const
|
|
580
|
-
if (
|
|
579
|
+
const C = await $e(v, e.menu.modules);
|
|
580
|
+
if (C !== !0) throw new Error(C);
|
|
581
581
|
}
|
|
582
|
-
const
|
|
583
|
-
return s(
|
|
584
|
-
} catch (
|
|
582
|
+
const _ = await Ze.updateMenuModule(e.menu, v);
|
|
583
|
+
return s(_.menu), _;
|
|
584
|
+
} catch (_) {
|
|
585
585
|
a.open({
|
|
586
586
|
type: "error",
|
|
587
587
|
title: "Failed to update menu",
|
|
588
|
-
message:
|
|
588
|
+
message: _
|
|
589
589
|
});
|
|
590
590
|
}
|
|
591
591
|
}, Ee = async (t) => {
|
|
592
|
-
const
|
|
592
|
+
const c = {
|
|
593
593
|
...e.menu,
|
|
594
594
|
masterCatalogSetting: t.masterCatalogSetting,
|
|
595
595
|
lowStockThreshold: t.lowStockThreshold,
|
|
596
596
|
priceTierSettings: t.priceTierSettings
|
|
597
597
|
};
|
|
598
|
-
return s(
|
|
598
|
+
return s(c), c;
|
|
599
599
|
}, w = Xe({ maxHistorySize: 50 }), Ie = h(() => w.canUndo.value), ke = h(() => w.canRedo.value);
|
|
600
600
|
return {
|
|
601
601
|
state: e,
|
|
602
602
|
// loading state
|
|
603
|
-
workerIsComputing:
|
|
603
|
+
workerIsComputing: g,
|
|
604
604
|
mergedMenuChangeId: y,
|
|
605
605
|
// async computed state
|
|
606
606
|
mergedMenu: p,
|
|
@@ -608,11 +608,11 @@ const tt = We(
|
|
|
608
608
|
version: r,
|
|
609
609
|
isV4: f,
|
|
610
610
|
serveSequence: o,
|
|
611
|
-
catalogs:
|
|
611
|
+
catalogs: l,
|
|
612
612
|
currentCatalog: i,
|
|
613
|
-
schedulers:
|
|
613
|
+
schedulers: d,
|
|
614
614
|
currentScheduler: u,
|
|
615
|
-
catalogOptions:
|
|
615
|
+
catalogOptions: P,
|
|
616
616
|
categories: W,
|
|
617
617
|
subcategories: ae,
|
|
618
618
|
items: j,
|
|
@@ -632,9 +632,9 @@ const tt = We(
|
|
|
632
632
|
// Action
|
|
633
633
|
setMenu: s,
|
|
634
634
|
readMenu: be,
|
|
635
|
-
readRestaurants:
|
|
636
|
-
selectCatalog:
|
|
637
|
-
selectScheduler:
|
|
635
|
+
readRestaurants: Ce,
|
|
636
|
+
selectCatalog: B,
|
|
637
|
+
selectScheduler: Me,
|
|
638
638
|
selectCategory: Se,
|
|
639
639
|
updateMenu: we,
|
|
640
640
|
updateMenuSetting: Ee,
|
|
@@ -660,7 +660,7 @@ const tt = We(
|
|
|
660
660
|
}
|
|
661
661
|
};
|
|
662
662
|
}
|
|
663
|
-
), X = /* @__PURE__ */
|
|
663
|
+
), X = /* @__PURE__ */ Re({
|
|
664
664
|
__name: "AddSubcategoryDialogContentComponent",
|
|
665
665
|
props: {
|
|
666
666
|
initialValue: {}
|
|
@@ -669,26 +669,26 @@ const tt = We(
|
|
|
669
669
|
const n = e, { t: a } = ne();
|
|
670
670
|
H(
|
|
671
671
|
() => n.initialValue,
|
|
672
|
-
(
|
|
673
|
-
o.value =
|
|
672
|
+
(l) => {
|
|
673
|
+
o.value = l ?? "";
|
|
674
674
|
}
|
|
675
675
|
);
|
|
676
|
-
const o =
|
|
676
|
+
const o = T(n.initialValue), { emitData: r, emitAction: f } = Ye();
|
|
677
677
|
return H(
|
|
678
678
|
o,
|
|
679
|
-
(
|
|
680
|
-
r(
|
|
679
|
+
(l) => {
|
|
680
|
+
r(l);
|
|
681
681
|
},
|
|
682
682
|
{
|
|
683
683
|
immediate: !0
|
|
684
684
|
}
|
|
685
|
-
), (
|
|
686
|
-
const
|
|
685
|
+
), (l, i) => {
|
|
686
|
+
const d = z("fm-text-field"), u = z("FmForm");
|
|
687
687
|
return Oe(), Ne(u, {
|
|
688
688
|
onValidationSuccess: i[1] || (i[1] = (s) => N(f)("primary"))
|
|
689
689
|
}, {
|
|
690
|
-
default:
|
|
691
|
-
|
|
690
|
+
default: xe(() => [
|
|
691
|
+
Pe(d, {
|
|
692
692
|
modelValue: o.value,
|
|
693
693
|
"onUpdate:modelValue": i[0] || (i[0] = (s) => o.value = s),
|
|
694
694
|
rules: [(s) => !!s || N(a)("menu.subcategory.dialog.add.name.required")],
|
|
@@ -708,7 +708,7 @@ const tt = We(
|
|
|
708
708
|
}) => {
|
|
709
709
|
const { t: o } = ne(), r = tt().updateMenu;
|
|
710
710
|
function f() {
|
|
711
|
-
const u =
|
|
711
|
+
const u = T(!1);
|
|
712
712
|
e.open({
|
|
713
713
|
title: o("menu.subcategory.manager.dialog.add.title"),
|
|
714
714
|
contentComponent: X,
|
|
@@ -739,7 +739,7 @@ const tt = We(
|
|
|
739
739
|
}
|
|
740
740
|
});
|
|
741
741
|
}
|
|
742
|
-
function
|
|
742
|
+
function l(u) {
|
|
743
743
|
e.open({
|
|
744
744
|
title: o("menu.subcategory.manager.dialog.update.title"),
|
|
745
745
|
contentComponent: X,
|
|
@@ -785,7 +785,7 @@ const tt = We(
|
|
|
785
785
|
a ? await r(s) : await n.updateMenu(s, u.name, !0), e.close();
|
|
786
786
|
});
|
|
787
787
|
}
|
|
788
|
-
async function
|
|
788
|
+
async function d(u) {
|
|
789
789
|
const s = {
|
|
790
790
|
module: I.F_MENU_MODULE_V4_KEY.enum.subCategory,
|
|
791
791
|
operation: S.F_OPERATION_TYPE.rearrange,
|
|
@@ -795,9 +795,9 @@ const tt = We(
|
|
|
795
795
|
}
|
|
796
796
|
return {
|
|
797
797
|
create: f,
|
|
798
|
-
update:
|
|
798
|
+
update: l,
|
|
799
799
|
deleteSubcategory: i,
|
|
800
|
-
rearrange:
|
|
800
|
+
rearrange: d
|
|
801
801
|
};
|
|
802
802
|
};
|
|
803
803
|
export {
|