@feedmepos/mf-menu 0.31.44 → 0.31.45-prod
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-Bx2oHz_2.js → App-Dk_k4HVK.js} +9 -9
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-DC53jOxl.js → ApplyProduct.vue_vue_type_script_setup_true_lang-DSrvQozf.js} +3 -3
- package/dist/{Catalog-orxlAEbo.js → Catalog-DoeX2gZt.js} +6 -6
- package/dist/{Category-DN6-D26x.js → Category-Bdj8nyJX.js} +4 -4
- package/dist/{Category-EC-9REG9.js → Category-DYtmrs0d.js} +6 -6
- package/dist/{CookingGuide-CeFTfwDB.js → CookingGuide-BoH8324W.js} +4 -4
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-Cpmh3G5W.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-C8L7yQhT.js} +1 -1
- package/dist/{Group-cg8h5KLx.js → Group-oBgB4Rip.js} +1 -1
- package/dist/{Group-B0TQdnHG.js → Group-rSlBX4PW.js} +3 -3
- package/dist/{Group.vue_vue_type_script_setup_true_lang-DwkvSn8N.js → Group.vue_vue_type_script_setup_true_lang-BbqYVzXV.js} +7 -7
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-Bt5rER7h.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-Bp25dogQ.js} +5 -5
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-c4FmNdn4.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-DfNllbYR.js} +7 -7
- package/dist/{Ingredient-B_1B5u9o.js → Ingredient-B0QEmsUg.js} +3 -3
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-CvrPVG7Q.js → InventoryBinding.vue_vue_type_script_setup_true_lang-C3v4DUZE.js} +1052 -1052
- package/dist/{LinkProductSideSheet-DZJY3u1w.js → LinkProductSideSheet-DtDRjTMM.js} +3 -3
- package/dist/{MenuSetting-Bguf-YJI.js → MenuSetting-D6ZFB-Qf.js} +5 -5
- package/dist/{PrintRoute-CkEOWCgg.js → PrintRoute-Dvy6YKcl.js} +4 -4
- package/dist/{Product-DQyZCauS.js → Product-Cxc7kiAq.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-DOsLhx9w.js → Product.vue_vue_type_script_setup_true_lang-Dw5K4Jij.js} +13 -13
- package/dist/{ProductInternalTools-BI7b-zg-.js → ProductInternalTools-hKp2e1fc.js} +6 -6
- package/dist/{Products-D6u_d8Ey.js → Products-DjDJR2jH.js} +11 -11
- package/dist/{Publish-CBbyfrHe.js → Publish-DCD7a33W.js} +3 -3
- package/dist/{Recipe-C9QEKfjo.js → Recipe-Dr0P6NlR.js} +4 -4
- package/dist/{Scheduler-C6OiFU1O.js → Scheduler-Cw-Ddftq.js} +3 -3
- package/dist/{ServingSequence-CdHMuMCB.js → ServingSequence-CTcsTU8R.js} +3 -3
- package/dist/{Setting-CkNI0nqs.js → Setting-BSh-A_8a.js} +5 -5
- package/dist/{Subcategory-C7RViT1r.js → Subcategory-BXJriD4G.js} +4 -4
- package/dist/{Takeaway-D4B2y4nE.js → Takeaway-BJo2d3vL.js} +4 -4
- package/dist/{Takeaway-COo_m0x1.js → Takeaway-DKWUpJDp.js} +1 -1
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-C9umCqte.js → Takeaway.vue_vue_type_script_setup_true_lang-B6kGoFDg.js} +5 -5
- package/dist/Thumbnail.vue_vue_type_script_setup_true_lang-CPqU17LK.js +411 -0
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-CL80TqrT.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BdIozq8u.js} +18 -18
- package/dist/{Unit-5FYoPgac.js → Unit-DZ_r81gD.js} +2 -2
- package/dist/{Variant-CSDZm3n7.js → Variant-C5V9MFVb.js} +3 -3
- package/dist/{_id_-9odGt4jf.js → _id_-BW85oNN8.js} +10 -10
- package/dist/{app-DKARBM7u.js → app-D_jTNakc.js} +1 -1
- package/dist/{app-2bbd_O98.js → app-ntt4GRm3.js} +25 -25
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/catalog.d.ts +1 -1
- package/dist/assets/{linked-status-DmIP1URe.js → linked-status-DzqW-dIk.js} +2 -2
- package/dist/assets/{override-menu-CjsD2KBQ.js → override-menu-DsppwnGw.js} +2 -2
- package/dist/assets/{validate-menu-CC3BocRS.js → validate-menu-CzYoNU7o.js} +2 -2
- package/dist/{catalog-DOFgYg6K.js → catalog-CyrRQdAE.js} +1 -1
- package/dist/{catalogSetting-B1naZ9jL.js → catalogSetting-BYOaDF2P.js} +1 -1
- package/dist/{category-Bz2zsVto.js → category-DSVtFwDD.js} +1 -1
- package/dist/{currency-BZV6-QY3.js → currency-Bv61mvXo.js} +1 -1
- package/dist/{customAttributes-BInvsXiT.js → customAttributes-CRleIu8c.js} +1 -1
- package/dist/{dayjs.min-CnQWW-Z3.js → dayjs.min-BXVEjQmH.js} +1 -1
- package/dist/{index-BHCnGQ06.js → index-BPUDGOpG.js} +3 -3
- package/dist/{index--1Md4WEj.js → index-CWEcdMBL.js} +1 -1
- package/dist/{index-DV7CU53l.js → index-ZL08gfPT.js} +4 -4
- package/dist/{index-C7lfKWR2.js → index-eJ8bZn8o.js} +1 -1
- package/dist/{item-ChaIX32X.js → item-Baro-Xs_.js} +386 -386
- package/dist/{jszip.min-C8gqwhwa.js → jszip.min-C4St6GUn.js} +245 -245
- package/dist/{menu-Cp9RL0oR.js → menu-DChbKKEr.js} +1 -1
- package/dist/{menu-B52eM23G.js → menu-DQ8YB87t.js} +7 -7
- package/dist/{menuV2-D3ExhOoi.js → menuV2-2md8qjF6.js} +63 -63
- package/dist/{priceTier-Ccww0TxU.js → priceTier-DbVxTs3S.js} +1 -1
- package/dist/{scheduler-B8XcfMpi.js → scheduler-BNI0t9f5.js} +4 -4
- package/dist/{subcategory-CbtqvGF5.js → subcategory-gc2qoY5w.js} +2 -2
- package/dist/{toExcel-C04qiFny.js → toExcel-TQ5H4xEZ.js} +2 -2
- package/dist/{unit-_s_zv_iK.js → unit-Dduk5zqJ.js} +2 -2
- package/package.json +1 -1
- package/dist/Thumbnail.vue_vue_type_script_setup_true_lang-DHFaag4B.js +0 -436
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { ao as L, H as
|
|
2
|
-
import { defineStore as
|
|
3
|
-
import { shallowRef as
|
|
1
|
+
import { ao as L, H as E, D as I, A as J, ap as j, J as D, I as Y, a9 as w, c as N, X as k, aj as B, aq as Me, ar as ke, B as Ee, ab as Ie, as as Re, at as Te, a8 as Fe } from "./menu-DQ8YB87t.js";
|
|
2
|
+
import { defineStore as Ae } from "pinia";
|
|
3
|
+
import { shallowRef as X, ref as U, computed as h, shallowReactive as Pe, effectScope as Ke, watch as Oe } from "vue";
|
|
4
4
|
import { useCoreStore as z } from "@feedmepos/mf-common";
|
|
5
5
|
import { useSnackbar as Ve } from "@feedmepos/ui-library";
|
|
6
|
-
const Ne = "/assets/linked-status-
|
|
6
|
+
const Ne = "/assets/linked-status-DzqW-dIk.js", xe = "/assets/override-menu-DsppwnGw.js";
|
|
7
7
|
function $e(e) {
|
|
8
8
|
var a;
|
|
9
|
-
const n =
|
|
9
|
+
const n = E(e), o = (a = n.variant) == null ? void 0 : a.variantCombinations;
|
|
10
10
|
return delete n.variant, delete n.thumbnail, [n, ...o || []];
|
|
11
11
|
}
|
|
12
|
-
function
|
|
13
|
-
const r =
|
|
12
|
+
function De(e, n, o, a) {
|
|
13
|
+
const r = E(n), l = o ? r.modules.catalog.find((_) => _._id === o) : null, d = a ? r.modules.scheduler.find((_) => _._id === a) : null, i = l ? E(l) : void 0, c = o ? r.modules.catalog.filter((_) => _._id !== o) : [], m = d ? E(d) : void 0, f = e.reduce((_, y) => (_[y._id] = $e(y), _), {});
|
|
14
14
|
function v(_ = []) {
|
|
15
15
|
const y = e.map((C) => C._id);
|
|
16
16
|
return [
|
|
@@ -35,9 +35,9 @@ function Ue(e, n, o, a) {
|
|
|
35
35
|
...r.modules.scheduler.filter((_) => _._id !== a),
|
|
36
36
|
m
|
|
37
37
|
], r) : {
|
|
38
|
-
...
|
|
38
|
+
...j(),
|
|
39
39
|
modules: {
|
|
40
|
-
...
|
|
40
|
+
...j().modules,
|
|
41
41
|
catalog: r.modules.catalog,
|
|
42
42
|
item: r.modules.item,
|
|
43
43
|
group: r.modules.group,
|
|
@@ -59,7 +59,7 @@ function T(e, n, o) {
|
|
|
59
59
|
return i ? c = ((f = d.items) == null ? void 0 : f.map((_) => {
|
|
60
60
|
var C;
|
|
61
61
|
const y = (C = i.items) == null ? void 0 : C.find(
|
|
62
|
-
(
|
|
62
|
+
(R) => R._id === _._id && R.combinationKey === _.combinationKey
|
|
63
63
|
);
|
|
64
64
|
return T(y || _, n, o + 1);
|
|
65
65
|
})) ?? [] : c = ((v = d.items) == null ? void 0 : v.map((_) => T(_, n, o + 1))) ?? [], {
|
|
@@ -75,7 +75,7 @@ function T(e, n, o) {
|
|
|
75
75
|
groups: r
|
|
76
76
|
};
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function Ue(e, n) {
|
|
79
79
|
const o = e.groups.map((l) => {
|
|
80
80
|
const d = n.modules.group.find((c) => c._id === l._id), i = ((d == null ? void 0 : d.items) || []).map((c) => {
|
|
81
81
|
var v;
|
|
@@ -85,7 +85,7 @@ function De(e, n) {
|
|
|
85
85
|
if (m)
|
|
86
86
|
return T(m, n, 1);
|
|
87
87
|
const f = {
|
|
88
|
-
...
|
|
88
|
+
...I.generator.initMenuV4ItemOverrider(),
|
|
89
89
|
_id: c._id,
|
|
90
90
|
combinationKey: c.combinationKey
|
|
91
91
|
};
|
|
@@ -93,7 +93,7 @@ function De(e, n) {
|
|
|
93
93
|
});
|
|
94
94
|
return { ...l, items: i };
|
|
95
95
|
}), a = e.variant ? e.variant.variantCombinations.map((l) => T(l, n, 1)) : [], r = {
|
|
96
|
-
...
|
|
96
|
+
...I.generator.initMenuV4ItemOverrider(),
|
|
97
97
|
_id: e._id,
|
|
98
98
|
name: e.name,
|
|
99
99
|
code: e.code,
|
|
@@ -150,10 +150,10 @@ function He(e, n) {
|
|
|
150
150
|
};
|
|
151
151
|
}
|
|
152
152
|
async function et(e, n, o, a, r, l = !0) {
|
|
153
|
-
const d =
|
|
153
|
+
const d = E(o), i = l ? De(n, d, a, r) : d, c = n.reduce((v, _) => (v[_._id] = i.modules.item.find((y) => y._id === _._id), v), {}), m = n.reduce((v, _) => {
|
|
154
154
|
const y = _._id;
|
|
155
|
-
return v[y] =
|
|
156
|
-
}, {}), f =
|
|
155
|
+
return v[y] = Ue(c[y], e), v;
|
|
156
|
+
}, {}), f = I.getFallbackPrices({
|
|
157
157
|
rawMenu: i,
|
|
158
158
|
items: m,
|
|
159
159
|
catalogId: a || void 0,
|
|
@@ -194,7 +194,7 @@ async function nt(e, n) {
|
|
|
194
194
|
);
|
|
195
195
|
return x.set(o, a), a;
|
|
196
196
|
}
|
|
197
|
-
async function
|
|
197
|
+
async function Q(e, n, o) {
|
|
198
198
|
return await L(xe, {
|
|
199
199
|
menu: e,
|
|
200
200
|
catalogId: n,
|
|
@@ -232,17 +232,17 @@ function ot(e, n, o) {
|
|
|
232
232
|
return r(n, o);
|
|
233
233
|
}
|
|
234
234
|
const $ = /* @__PURE__ */ new Map();
|
|
235
|
-
async function
|
|
235
|
+
async function Ge(e, n, o) {
|
|
236
236
|
const a = `${e._id}-${e.updatedAt}-${n || "null"}-${o || "null"}`;
|
|
237
237
|
if ($.has(a))
|
|
238
238
|
return $.get(a);
|
|
239
|
-
const r = await
|
|
239
|
+
const r = await Q(e, n, o);
|
|
240
240
|
return $.set(a, r), r;
|
|
241
241
|
}
|
|
242
242
|
async function st(e, n, o) {
|
|
243
243
|
var d, i;
|
|
244
|
-
const a = await
|
|
245
|
-
const f =
|
|
244
|
+
const a = await Ge(e, n, null), r = [], l = (c, m) => {
|
|
245
|
+
const f = E(c);
|
|
246
246
|
for (const v in m)
|
|
247
247
|
m[v] && (f[v] = m[v]);
|
|
248
248
|
return f;
|
|
@@ -251,11 +251,11 @@ async function st(e, n, o) {
|
|
|
251
251
|
const m = (d = c.items) == null ? void 0 : d.find((v) => v._id === o && !v.combinationKey), f = e.modules.item.find((v) => v._id === o);
|
|
252
252
|
if (m) {
|
|
253
253
|
const v = (i = c.items) == null ? void 0 : i.filter((y) => y._id === o && y.combinationKey), _ = [m, ...v].map((y) => {
|
|
254
|
-
var F,
|
|
255
|
-
const C = y.combinationKey ? (
|
|
256
|
-
(
|
|
257
|
-
) : f,
|
|
258
|
-
return l(
|
|
254
|
+
var F, A;
|
|
255
|
+
const C = y.combinationKey ? (A = (F = f == null ? void 0 : f.variant) == null ? void 0 : F.variantCombinations) == null ? void 0 : A.find(
|
|
256
|
+
(P) => P.combinationKey === y.combinationKey
|
|
257
|
+
) : f, R = C && f ? l(f, C) : y;
|
|
258
|
+
return l(R, y);
|
|
259
259
|
});
|
|
260
260
|
r.push({
|
|
261
261
|
group: c,
|
|
@@ -265,10 +265,10 @@ async function st(e, n, o) {
|
|
|
265
265
|
}
|
|
266
266
|
return r;
|
|
267
267
|
}
|
|
268
|
-
function
|
|
268
|
+
function We({
|
|
269
269
|
maxHistorySize: e = 50
|
|
270
270
|
}) {
|
|
271
|
-
const n =
|
|
271
|
+
const n = X([]), o = U(-1), a = h(() => o.value > 0), r = h(() => o.value < n.value.length - 1);
|
|
272
272
|
function l(m) {
|
|
273
273
|
n.value.push(m), o.value++, n.value.length > e && (n.value.shift(), o.value--);
|
|
274
274
|
}
|
|
@@ -292,9 +292,9 @@ function Be({
|
|
|
292
292
|
clear: c
|
|
293
293
|
};
|
|
294
294
|
}
|
|
295
|
-
const
|
|
295
|
+
const qe = {
|
|
296
296
|
async updateMenuModule(e, n) {
|
|
297
|
-
const o =
|
|
297
|
+
const o = D.RequestRunner.operation(n, e.modules);
|
|
298
298
|
if (o.validateError.length > 0)
|
|
299
299
|
throw new Error(o.validateError.join(`
|
|
300
300
|
`));
|
|
@@ -329,7 +329,7 @@ function Z() {
|
|
|
329
329
|
updatedAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
330
330
|
};
|
|
331
331
|
}
|
|
332
|
-
function
|
|
332
|
+
function je() {
|
|
333
333
|
return {
|
|
334
334
|
restaurants: [],
|
|
335
335
|
menu: { ...Z(), _rev: "" },
|
|
@@ -342,10 +342,10 @@ function We() {
|
|
|
342
342
|
}
|
|
343
343
|
};
|
|
344
344
|
}
|
|
345
|
-
const at =
|
|
345
|
+
const at = Ae(
|
|
346
346
|
"mf-menu-store-v2",
|
|
347
347
|
() => {
|
|
348
|
-
const e =
|
|
348
|
+
const e = Pe(je()), n = z(), o = Ve(), a = h(() => e.menu.modules.serveSequence ? w(e.menu.modules.serveSequence, {
|
|
349
349
|
selector: "position"
|
|
350
350
|
}) : []), r = h(() => {
|
|
351
351
|
var t;
|
|
@@ -358,7 +358,7 @@ const at = Pe(
|
|
|
358
358
|
let t = e.menu.modules.catalog.find(
|
|
359
359
|
(u) => u._id === e.currentCatalogId
|
|
360
360
|
);
|
|
361
|
-
return t && ((s = t.linkItemRules) != null && s.length) && (t =
|
|
361
|
+
return t && ((s = t.linkItemRules) != null && s.length) && (t = I.populateCatalog({
|
|
362
362
|
catalog: t,
|
|
363
363
|
ruleGroupSettings: e.menu.ruleGroupSettings,
|
|
364
364
|
items: e.menu.modules.item,
|
|
@@ -370,13 +370,13 @@ const at = Pe(
|
|
|
370
370
|
function f(t, s = !0) {
|
|
371
371
|
e.menu = { ...t, _rev: e.menu._rev }, s && M.push(e.menu);
|
|
372
372
|
}
|
|
373
|
-
const v =
|
|
373
|
+
const v = X(Z()), _ = U(!1), y = U(1);
|
|
374
374
|
async function C() {
|
|
375
375
|
var u;
|
|
376
376
|
_.value = !0;
|
|
377
377
|
let t = e.menu.modules.catalog;
|
|
378
378
|
if (i.value && ((u = i.value.linkItemRules) != null && u.length)) {
|
|
379
|
-
const p =
|
|
379
|
+
const p = I.populateCatalog({
|
|
380
380
|
catalog: i.value,
|
|
381
381
|
ruleGroupSettings: e.menu.ruleGroupSettings,
|
|
382
382
|
items: e.menu.modules.item,
|
|
@@ -384,7 +384,7 @@ const at = Pe(
|
|
|
384
384
|
});
|
|
385
385
|
t = e.menu.modules.catalog.map((g) => g._id === (p == null ? void 0 : p._id) ? p : g);
|
|
386
386
|
}
|
|
387
|
-
const s = await
|
|
387
|
+
const s = await Q(
|
|
388
388
|
{
|
|
389
389
|
...e.menu,
|
|
390
390
|
modules: {
|
|
@@ -414,7 +414,7 @@ const at = Pe(
|
|
|
414
414
|
}
|
|
415
415
|
);
|
|
416
416
|
});
|
|
417
|
-
const
|
|
417
|
+
const P = h(() => [
|
|
418
418
|
{
|
|
419
419
|
label: "Main",
|
|
420
420
|
value: null
|
|
@@ -423,7 +423,7 @@ const at = Pe(
|
|
|
423
423
|
label: t.name,
|
|
424
424
|
value: t._id
|
|
425
425
|
}))
|
|
426
|
-
]),
|
|
426
|
+
]), G = h(() => {
|
|
427
427
|
const t = v.value.modules.category;
|
|
428
428
|
return [
|
|
429
429
|
...O.value.item.addon ? [
|
|
@@ -433,12 +433,12 @@ const at = Pe(
|
|
|
433
433
|
position: 0
|
|
434
434
|
}
|
|
435
435
|
] : [],
|
|
436
|
-
...
|
|
436
|
+
...k(t, (s) => s.name)
|
|
437
437
|
];
|
|
438
438
|
}), ee = h(() => {
|
|
439
439
|
const t = v.value.modules.subCategory || [];
|
|
440
|
-
return
|
|
441
|
-
}),
|
|
440
|
+
return k(t, (s) => s.name);
|
|
441
|
+
}), W = h(() => {
|
|
442
442
|
var s;
|
|
443
443
|
let t = v.value.modules.item;
|
|
444
444
|
if (i.value) {
|
|
@@ -451,17 +451,17 @@ const at = Pe(
|
|
|
451
451
|
return (g == null ? void 0 : g.orderFrom) !== J.F_ORDER_FROM.enum.NONE;
|
|
452
452
|
});
|
|
453
453
|
}
|
|
454
|
-
return
|
|
454
|
+
return k(t, (u) => u.code || u.name);
|
|
455
455
|
}), te = h(() => {
|
|
456
|
-
const t = e.menu.modules.category, s =
|
|
456
|
+
const t = e.menu.modules.category, s = k(t, (p) => p.name).reduce(
|
|
457
457
|
(p, g, S) => (p[g._id] = S, p),
|
|
458
458
|
{ "": 0 }
|
|
459
459
|
), u = e.menu.modules.item;
|
|
460
|
-
return
|
|
460
|
+
return k(
|
|
461
461
|
u,
|
|
462
462
|
(p) => p.code || p.name
|
|
463
463
|
).reduce((p, g, S) => (p[g._id] = S + s[g.category || ""], p), {});
|
|
464
|
-
}), ne = h(() =>
|
|
464
|
+
}), ne = h(() => B(K.value, G.value, W.value)), re = h(() => {
|
|
465
465
|
const t = O.value.item.addon ? [
|
|
466
466
|
{
|
|
467
467
|
_id: e.currentCatalogId ? "" : null,
|
|
@@ -470,7 +470,7 @@ const at = Pe(
|
|
|
470
470
|
},
|
|
471
471
|
...e.menu.modules.category
|
|
472
472
|
] : e.menu.modules.category;
|
|
473
|
-
return
|
|
473
|
+
return B(
|
|
474
474
|
e.menu.modules.variant,
|
|
475
475
|
t,
|
|
476
476
|
e.menu.modules.item
|
|
@@ -481,14 +481,14 @@ const at = Pe(
|
|
|
481
481
|
});
|
|
482
482
|
function oe(t = []) {
|
|
483
483
|
const s = t.map((p) => K.value.find((g) => g._id === p)).filter((p) => !!p);
|
|
484
|
-
return
|
|
484
|
+
return I.fullVariantCombination(s).reduce((p, g) => (p[g.combinationKey] = g.selectionName.join(" / "), p), {});
|
|
485
485
|
}
|
|
486
|
-
const se = h(() =>
|
|
486
|
+
const se = h(() => k(v.value.modules.group, (t) => t.name)), ae = h(() => w(v.value.modules.takeaway, { selector: "name" })), ue = h(() => w(e.menu.modules.printDepartment || [], {
|
|
487
487
|
selector: "name"
|
|
488
488
|
})), ie = h(() => w(e.menu.modules.unit, { selector: "name" })), ce = h(() => w(Me(e.menu.modules.recipe, e.menu.modules.sku), {
|
|
489
489
|
selector: "name"
|
|
490
490
|
})), le = h(() => e.menu.modules.cookingGuide), de = h(() => {
|
|
491
|
-
const t =
|
|
491
|
+
const t = ke(e.menu.modules.sku);
|
|
492
492
|
return w(t, { selector: "code" });
|
|
493
493
|
}), O = h(() => {
|
|
494
494
|
const t = !e.currentCatalogId, s = r.value === N.F_MENU_VERSION.v4, u = !e.currentSchedulerId, p = {
|
|
@@ -571,10 +571,10 @@ const at = Pe(
|
|
|
571
571
|
}
|
|
572
572
|
const pe = h(() => {
|
|
573
573
|
var p;
|
|
574
|
-
const t = ["SV5", "SV10"], s =
|
|
574
|
+
const t = ["SV5", "SV10"], s = Ee.Country.getCountryFlattenTaxes(
|
|
575
575
|
z().currentCountry.value
|
|
576
576
|
), u = s.filter((g) => l.value || !t.includes(g.taxCode)).map((g) => ({
|
|
577
|
-
label: `${g.name} (${
|
|
577
|
+
label: `${g.name} (${Ie(g.rate)}%)`,
|
|
578
578
|
value: V(g),
|
|
579
579
|
meta: {
|
|
580
580
|
rate: g.rate
|
|
@@ -586,7 +586,7 @@ const at = Pe(
|
|
|
586
586
|
};
|
|
587
587
|
}), ve = async () => {
|
|
588
588
|
const t = await Fe.readMenu();
|
|
589
|
-
e.menu = t ?? e.menu,
|
|
589
|
+
e.menu = t ?? e.menu, q(null);
|
|
590
590
|
}, ge = async () => {
|
|
591
591
|
const { fetchAllRestaurants: t } = Te();
|
|
592
592
|
await t({
|
|
@@ -594,7 +594,7 @@ const at = Pe(
|
|
|
594
594
|
e.restaurants = s;
|
|
595
595
|
}
|
|
596
596
|
});
|
|
597
|
-
},
|
|
597
|
+
}, q = (t) => {
|
|
598
598
|
e.currentCatalogId = t;
|
|
599
599
|
}, _e = (t) => {
|
|
600
600
|
e.currentSchedulerId = t;
|
|
@@ -612,12 +612,12 @@ const at = Pe(
|
|
|
612
612
|
}));
|
|
613
613
|
try {
|
|
614
614
|
if (s || p.some(
|
|
615
|
-
(S) => [
|
|
615
|
+
(S) => [D.F_OPERATION_TYPE.delete, D.F_OPERATION_TYPE.deleteMany].includes(S.operation)
|
|
616
616
|
)) {
|
|
617
|
-
const S = await
|
|
617
|
+
const S = await Re(p, e.menu.modules);
|
|
618
618
|
if (S !== !0) throw new Error(S);
|
|
619
619
|
}
|
|
620
|
-
const g = await
|
|
620
|
+
const g = await qe.updateMenuModule(e.menu, p);
|
|
621
621
|
return f(g.menu), g;
|
|
622
622
|
} catch (g) {
|
|
623
623
|
o.open({
|
|
@@ -634,7 +634,7 @@ const at = Pe(
|
|
|
634
634
|
priceTierSettings: t.priceTierSettings
|
|
635
635
|
};
|
|
636
636
|
return f(s), s;
|
|
637
|
-
}, M =
|
|
637
|
+
}, M = We({ maxHistorySize: 50 }), be = h(() => M.canUndo.value), we = h(() => M.canRedo.value);
|
|
638
638
|
return {
|
|
639
639
|
state: e,
|
|
640
640
|
// loading state
|
|
@@ -650,10 +650,10 @@ const at = Pe(
|
|
|
650
650
|
currentCatalog: i,
|
|
651
651
|
schedulers: c,
|
|
652
652
|
currentScheduler: m,
|
|
653
|
-
catalogOptions:
|
|
654
|
-
categories:
|
|
653
|
+
catalogOptions: P,
|
|
654
|
+
categories: G,
|
|
655
655
|
subcategories: ee,
|
|
656
|
-
items:
|
|
656
|
+
items: W,
|
|
657
657
|
sortedItems: te,
|
|
658
658
|
categorizedItems: ne,
|
|
659
659
|
categorizedRawMenuItems: re,
|
|
@@ -671,7 +671,7 @@ const at = Pe(
|
|
|
671
671
|
setMenu: f,
|
|
672
672
|
readMenu: ve,
|
|
673
673
|
readRestaurants: ge,
|
|
674
|
-
selectCatalog:
|
|
674
|
+
selectCatalog: q,
|
|
675
675
|
selectScheduler: _e,
|
|
676
676
|
selectCategory: ye,
|
|
677
677
|
setRestaurantAttrParams: he,
|
|
@@ -707,6 +707,6 @@ export {
|
|
|
707
707
|
st as f,
|
|
708
708
|
tt as g,
|
|
709
709
|
et as m,
|
|
710
|
-
|
|
710
|
+
Ge as o,
|
|
711
711
|
at as u
|
|
712
712
|
};
|
|
@@ -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-DQ8YB87t.js";
|
|
5
5
|
const v = /* @__PURE__ */ d({
|
|
6
6
|
__name: "AddPriceGroupDialog",
|
|
7
7
|
setup(s) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as ie, computed as Y, resolveComponent as _, createElementBlock as d, openBlock as u, createVNode as t, createCommentVNode as F, unref as n, toDisplayString as L, createElementVNode as h, withCtx as v, Fragment as N, renderList as M, createBlock as I, ref as H, Transition as se, createTextVNode as me } from "vue";
|
|
2
|
-
import { H as S, A as r, u as pe, I as ve, J as ue } from "./menu-
|
|
2
|
+
import { H as S, A as r, u as pe, I as ve, J as ue } from "./menu-DQ8YB87t.js";
|
|
3
3
|
import { useI18n as de } from "@feedmepos/mf-common";
|
|
4
4
|
import { components as _e } from "@feedmepos/ui-library";
|
|
5
|
-
import { _ as ne, a as fe } from "./customAttributes-
|
|
5
|
+
import { _ as ne, a as fe } from "./customAttributes-CRleIu8c.js";
|
|
6
6
|
import { u as ye } from "./discardConfirm-BHni0LNu.js";
|
|
7
|
-
import { u as he } from "./menu-
|
|
8
|
-
import { L as ge } from "./LinkProductSideSheet-
|
|
7
|
+
import { u as he } from "./menu-DChbKKEr.js";
|
|
8
|
+
import { L as ge } from "./LinkProductSideSheet-DtDRjTMM.js";
|
|
9
9
|
const Ve = { class: "space-y-8" }, Fe = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "space-y-16"
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as M, watch as _, ref as E, resolveComponent as f, createBlock as x, openBlock as A, unref as c, withCtx as C, createVNode as V } from "vue";
|
|
2
|
-
import { J as l, A as d, u as F } from "./menu-
|
|
2
|
+
import { J as l, A as d, u as F } from "./menu-DQ8YB87t.js";
|
|
3
3
|
import { useI18n as b } from "@feedmepos/mf-common";
|
|
4
4
|
import { useDialogChild as P } from "@feedmepos/ui-library";
|
|
5
|
-
import { u as v } from "./menuV2-
|
|
5
|
+
import { u as v } from "./menuV2-2md8qjF6.js";
|
|
6
6
|
const y = /* @__PURE__ */ M({
|
|
7
7
|
__name: "AddSubcategoryDialogContentComponent",
|
|
8
8
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { u as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import "./menu-
|
|
1
|
+
import { u as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-DfNllbYR.js";
|
|
2
|
+
import "./menu-DQ8YB87t.js";
|
|
3
3
|
var Z = {
|
|
4
4
|
defaultAmount: 0,
|
|
5
5
|
defaultCurrency: "USD",
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { defineStore as J } from "pinia";
|
|
2
2
|
import { defineComponent as O, computed as U, ref as h, watch as T, resolveComponent as V, createBlock as W, openBlock as F, withCtx as w, createVNode as m, createElementVNode as f, normalizeClass as Q, 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, H as k, O as $, G as I, D as E, a5 as ne, J as C, A as D, I as oe, u as ae } from "./menu-
|
|
3
|
+
import { a6 as P, a7 as te, a4 as B, H as k, O as $, G as I, D as E, a5 as ne, J as C, A as D, I as oe, u as ae } from "./menu-DQ8YB87t.js";
|
|
4
4
|
import { useI18n as L } 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";
|
|
7
7
|
import { c as re } from "./check-C9mY6LiX.js";
|
|
8
8
|
import "./vuedraggable-CK8z7qA8.js";
|
|
9
9
|
import "./app-CiBqmBzO.js";
|
|
10
|
-
import "./menuV2-
|
|
10
|
+
import "./menuV2-2md8qjF6.js";
|
|
11
11
|
/* empty css */
|
|
12
12
|
import { c as me } from "./createComponentProgrammatically-Bt2rn1IQ.js";
|
|
13
13
|
const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
|