@feedmepos/mf-menu 0.31.47-beta.1 → 0.31.47-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-VIGtqs5G.js → App-8_Vr3J1_.js} +9 -9
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-B6jt16vS.js → ApplyProduct.vue_vue_type_script_setup_true_lang-BXLO4wRK.js} +3 -3
- package/dist/{Catalog-uDlAECfQ.js → Catalog-CtxYDf8U.js} +6 -6
- package/dist/{Category-CaqEwgwv.js → Category-eJPVt-__.js} +4 -4
- package/dist/{Category-BUoV11S7.js → Category-t5USmy5W.js} +6 -6
- package/dist/{CookingGuide-Bs25frtm.js → CookingGuide-C8WASY_U.js} +4 -4
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-fgEq6HLi.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-gkkLbJmk.js} +1 -1
- package/dist/{Group-DnMm_WR7.js → Group-CvCCFBQd.js} +1 -1
- package/dist/{Group-BsEIy2u8.js → Group-DHpRTZYX.js} +3 -3
- package/dist/{Group.vue_vue_type_script_setup_true_lang-CLe7Jkna.js → Group.vue_vue_type_script_setup_true_lang-IAO1fyPW.js} +7 -7
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BRaM48s3.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CzSyXGSd.js} +5 -5
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-DfZpn1TS.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-BsQYL-bI.js} +7 -7
- package/dist/{Ingredient-kfqgga9H.js → Ingredient-CQlggbtt.js} +3 -3
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-DHG6RY2_.js → InventoryBinding.vue_vue_type_script_setup_true_lang-BbWRtnQ8.js} +2 -2
- package/dist/{LinkProductSideSheet-cu6J0m_I.js → LinkProductSideSheet-qWebf6C7.js} +3 -3
- package/dist/{MenuSetting-hhuV9sir.js → MenuSetting-Cr0V03uO.js} +5 -5
- package/dist/{PrintRoute-BNoGwWJC.js → PrintRoute-Be-cJqee.js} +4 -4
- package/dist/{Product-1np9S2wx.js → Product-D9PJsQWT.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-BO59Tw8C.js → Product.vue_vue_type_script_setup_true_lang-Caq2QMeN.js} +13 -13
- package/dist/{ProductInternalTools-B07YONFL.js → ProductInternalTools-Z6roJxjy.js} +6 -6
- package/dist/{Products-Hmd2K1-w.js → Products-VEZuFeYe.js} +11 -11
- package/dist/{Publish-BPQtcmQ5.js → Publish-VtjhyJMe.js} +3 -3
- package/dist/{Recipe-PaF7B7TU.js → Recipe-6lpED5Jo.js} +4 -4
- package/dist/{Scheduler-CSx821Gh.js → Scheduler-C8ADLbDO.js} +3 -3
- package/dist/{ServingSequence-ClwEl9Ol.js → ServingSequence-blQqZaDi.js} +3 -3
- package/dist/{Setting-CiEZg35P.js → Setting-w3lilAhR.js} +5 -5
- package/dist/{Subcategory-BZwaXISZ.js → Subcategory-CKtwfQrk.js} +4 -4
- package/dist/{Takeaway-C7ViCpQ2.js → Takeaway-BIs7qdXT.js} +1 -1
- package/dist/{Takeaway-N5KpSjIG.js → Takeaway-PatPZog3.js} +4 -4
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-CAjxPEct.js → Takeaway.vue_vue_type_script_setup_true_lang-DQJ1E-nv.js} +5 -5
- package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-ClqRNn77.js → Thumbnail.vue_vue_type_script_setup_true_lang-D3szwli1.js} +4 -4
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-x7D49PrL.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-CzK37ydr.js} +15 -15
- package/dist/{Unit-0z8Z9hTW.js → Unit-D9K8aQkO.js} +2 -2
- package/dist/{Variant-BgSF19c4.js → Variant-Mlc7mOFQ.js} +3 -3
- package/dist/{_id_-B7i3CUjW.js → _id_-DSnUrneJ.js} +10 -10
- package/dist/{app-07LgYJVX.js → app-CFcEoZ6g.js} +393 -391
- package/dist/{app-RnNBTVqj.js → app-DAW9YGKu.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/assets/{linked-status-C9LcqlS2.js → linked-status-CcbwR1Re.js} +2 -2
- package/dist/assets/{override-menu-5BEgm7SM.js → override-menu-dSXkmmTm.js} +2 -2
- package/dist/assets/{validate-menu-BnwkSx2G.js → validate-menu-8ibnWZpF.js} +2 -2
- package/dist/{catalog-BkaxLwWK.js → catalog-CyBWoMx9.js} +1 -1
- package/dist/{catalogSetting-7pdIA1_e.js → catalogSetting-BEuK6iSU.js} +1 -1
- package/dist/{category-DPt1bw69.js → category-CH86FpDF.js} +1 -1
- package/dist/{currency-BbE0p4Ac.js → currency-B7e3Bn-5.js} +1 -1
- package/dist/{customAttributes-ByVDDQph.js → customAttributes-C5SxhXst.js} +1 -1
- package/dist/{dayjs.min-ClIpwyI-.js → dayjs.min-0wOo37zY.js} +1 -1
- package/dist/{index-CUPT5mff.js → index-BQRQtKtb.js} +4 -4
- package/dist/{index-BF6HNZe8.js → index-C4wpev23.js} +1 -1
- package/dist/{index-CLhpWOjf.js → index-CcWwRY7j.js} +3 -3
- package/dist/{index-D2dbTPjH.js → index-wQFnsXZM.js} +1 -1
- package/dist/{item-h5iEa9LL.js → item-YOVwd-Jf.js} +677 -677
- package/dist/{jszip.min-j5tvWRj0.js → jszip.min-DdVRNxeR.js} +353 -353
- package/dist/{menu-Do2p30_3.js → menu-5V5zXzja.js} +1 -1
- package/dist/{menu-DZBf1BFb.js → menu-DPDGA5BU.js} +7 -7
- package/dist/{menuV2-DQ0613QG.js → menuV2-DrMICNsd.js} +59 -59
- package/dist/{priceTier-BsKYBjOX.js → priceTier-ZWgpadCg.js} +1 -1
- package/dist/{scheduler-BX83YTAg.js → scheduler-BhONdYht.js} +4 -4
- package/dist/{subcategory-Cvh2hdhi.js → subcategory-BWp35Kp3.js} +2 -2
- package/dist/{toExcel-Di12gvsy.js → toExcel-D0K9W29E.js} +2 -2
- package/dist/{unit-4OdzVRRh.js → unit-DkmcIwvs.js} +2 -2
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ao as
|
|
1
|
+
import { ao as L, H as k, D as E, A as J, ap as q, J as U, I as X, a9 as w, c as N, X as R, aj as B, aq as Me, ar as Re, B as ke, ab as Ee, as as Ie, at as Te, a8 as Fe } from "./menu-DPDGA5BU.js";
|
|
2
2
|
import { defineStore as Ae } from "pinia";
|
|
3
|
-
import { shallowRef as
|
|
4
|
-
import { useCoreStore as
|
|
3
|
+
import { shallowRef as Y, ref as D, computed as h, shallowReactive as Pe, effectScope as Ke, watch as Oe } from "vue";
|
|
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-CcbwR1Re.js", xe = "/assets/override-menu-dSXkmmTm.js";
|
|
7
7
|
function $e(e) {
|
|
8
8
|
var a;
|
|
9
9
|
const n = k(e), o = (a = n.variant) == null ? void 0 : a.variantCombinations;
|
|
@@ -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
|
+
...q(),
|
|
39
39
|
modules: {
|
|
40
|
-
...
|
|
40
|
+
...q().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
|
+
(I) => I._id === _._id && I.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))) ?? [], {
|
|
@@ -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
|
+
...E.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
|
+
...E.generator.initMenuV4ItemOverrider(),
|
|
97
97
|
_id: e._id,
|
|
98
98
|
name: e.name,
|
|
99
99
|
code: e.code,
|
|
@@ -153,7 +153,7 @@ async function et(e, n, o, a, r, l = !0) {
|
|
|
153
153
|
const d = k(o), i = l ? Ue(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
155
|
return v[y] = De(c[y], e), v;
|
|
156
|
-
}, {}), f =
|
|
156
|
+
}, {}), f = E.getFallbackPrices({
|
|
157
157
|
rawMenu: i,
|
|
158
158
|
items: m,
|
|
159
159
|
catalogId: a || void 0,
|
|
@@ -185,7 +185,7 @@ async function nt(e, n) {
|
|
|
185
185
|
const o = `${e._id}-${e.updatedAt}-${n}`;
|
|
186
186
|
if (x.has(o))
|
|
187
187
|
return x.get(o);
|
|
188
|
-
const a = await
|
|
188
|
+
const a = await L(
|
|
189
189
|
Ne,
|
|
190
190
|
JSON.stringify({
|
|
191
191
|
menu: e,
|
|
@@ -195,7 +195,7 @@ async function nt(e, n) {
|
|
|
195
195
|
return x.set(o, a), a;
|
|
196
196
|
}
|
|
197
197
|
async function Q(e, n, o) {
|
|
198
|
-
return await
|
|
198
|
+
return await L(xe, {
|
|
199
199
|
menu: e,
|
|
200
200
|
catalogId: n,
|
|
201
201
|
schedulerId: o
|
|
@@ -232,7 +232,7 @@ 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);
|
|
@@ -241,7 +241,7 @@ async function qe(e, n, o) {
|
|
|
241
241
|
}
|
|
242
242
|
async function st(e, n, o) {
|
|
243
243
|
var d, i;
|
|
244
|
-
const a = await
|
|
244
|
+
const a = await Ge(e, n, null), r = [], l = (c, m) => {
|
|
245
245
|
const f = k(c);
|
|
246
246
|
for (const v in m)
|
|
247
247
|
m[v] && (f[v] = m[v]);
|
|
@@ -254,8 +254,8 @@ async function st(e, n, o) {
|
|
|
254
254
|
var F, A;
|
|
255
255
|
const C = y.combinationKey ? (A = (F = f == null ? void 0 : f.variant) == null ? void 0 : F.variantCombinations) == null ? void 0 : A.find(
|
|
256
256
|
(P) => P.combinationKey === y.combinationKey
|
|
257
|
-
) : f,
|
|
258
|
-
return l(
|
|
257
|
+
) : f, I = C && f ? l(f, C) : y;
|
|
258
|
+
return l(I, 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 = Y([]), o = D(-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,7 +292,7 @@ function Be({
|
|
|
292
292
|
clear: c
|
|
293
293
|
};
|
|
294
294
|
}
|
|
295
|
-
const
|
|
295
|
+
const je = {
|
|
296
296
|
async updateMenuModule(e, n) {
|
|
297
297
|
const o = U.RequestRunner.operation(n, e.modules);
|
|
298
298
|
if (o.validateError.length > 0)
|
|
@@ -303,7 +303,7 @@ const Ge = {
|
|
|
303
303
|
modules: o.result || e.modules,
|
|
304
304
|
_rev: o.id ?? ""
|
|
305
305
|
};
|
|
306
|
-
return
|
|
306
|
+
return X.cloneDeep({ menu: a, updateId: o.id ?? null });
|
|
307
307
|
}
|
|
308
308
|
};
|
|
309
309
|
function Z() {
|
|
@@ -329,7 +329,7 @@ function Z() {
|
|
|
329
329
|
updatedAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
330
330
|
};
|
|
331
331
|
}
|
|
332
|
-
function
|
|
332
|
+
function qe() {
|
|
333
333
|
return {
|
|
334
334
|
restaurants: [],
|
|
335
335
|
menu: { ...Z(), _rev: "" },
|
|
@@ -345,38 +345,38 @@ function We() {
|
|
|
345
345
|
const at = Ae(
|
|
346
346
|
"mf-menu-store-v2",
|
|
347
347
|
() => {
|
|
348
|
-
const e = Pe(
|
|
348
|
+
const e = Pe(qe()), 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;
|
|
352
352
|
return ((t = n.currentBusiness.value) == null ? void 0 : t.menuVersion) || N.F_MENU_VERSION.v3;
|
|
353
353
|
}), l = h(() => r.value === N.F_MENU_VERSION.v4), d = h(() => {
|
|
354
354
|
const t = e.menu.modules.catalog;
|
|
355
|
-
return
|
|
355
|
+
return w(t, { selector: "name" });
|
|
356
356
|
}), i = h(() => {
|
|
357
357
|
var s;
|
|
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 = E.populateCatalog({
|
|
362
362
|
catalog: t,
|
|
363
363
|
ruleGroupSettings: e.menu.ruleGroupSettings,
|
|
364
364
|
items: e.menu.modules.item,
|
|
365
365
|
...e.currentRestaurantAttrParams ?? {}
|
|
366
366
|
})), t;
|
|
367
|
-
}), c = h(() =>
|
|
367
|
+
}), c = h(() => w(v.value.modules.scheduler, { selector: "name" })), m = h(() => e.menu.modules.scheduler.find(
|
|
368
368
|
(t) => t._id === e.currentSchedulerId
|
|
369
369
|
));
|
|
370
370
|
function f(t, s = !0) {
|
|
371
|
-
e.menu = { ...t, _rev: e.menu._rev }, s &&
|
|
371
|
+
e.menu = { ...t, _rev: e.menu._rev }, s && M.push(e.menu);
|
|
372
372
|
}
|
|
373
|
-
const v =
|
|
373
|
+
const v = Y(Z()), _ = D(!1), y = D(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 = E.populateCatalog({
|
|
380
380
|
catalog: i.value,
|
|
381
381
|
ruleGroupSettings: e.menu.ruleGroupSettings,
|
|
382
382
|
items: e.menu.modules.item,
|
|
@@ -405,7 +405,7 @@ const at = Ae(
|
|
|
405
405
|
}
|
|
406
406
|
return v.value = s, _.value = !1, y.value = y.value + 1, s;
|
|
407
407
|
}
|
|
408
|
-
const F =
|
|
408
|
+
const F = X.debounce(C, 200);
|
|
409
409
|
Ke(!0).run(() => {
|
|
410
410
|
Oe(
|
|
411
411
|
() => [e.menu, e.currentCatalogId, e.currentSchedulerId],
|
|
@@ -423,7 +423,7 @@ const at = Ae(
|
|
|
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 = Ae(
|
|
|
433
433
|
position: 0
|
|
434
434
|
}
|
|
435
435
|
] : [],
|
|
436
|
-
...
|
|
436
|
+
...R(t, (s) => s.name)
|
|
437
437
|
];
|
|
438
438
|
}), ee = h(() => {
|
|
439
439
|
const t = v.value.modules.subCategory || [];
|
|
440
|
-
return
|
|
441
|
-
}),
|
|
440
|
+
return R(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 = Ae(
|
|
|
451
451
|
return (g == null ? void 0 : g.orderFrom) !== J.F_ORDER_FROM.enum.NONE;
|
|
452
452
|
});
|
|
453
453
|
}
|
|
454
|
-
return
|
|
454
|
+
return R(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 = R(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 R(
|
|
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,26 +470,26 @@ const at = Ae(
|
|
|
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
|
|
477
477
|
);
|
|
478
478
|
}), K = h(() => {
|
|
479
479
|
const t = v.value.modules.variant;
|
|
480
|
-
return
|
|
480
|
+
return w(t, { selector: "name" });
|
|
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 E.fullVariantCombination(s).reduce((p, g) => (p[g.combinationKey] = g.selectionName.join(" / "), p), {});
|
|
485
485
|
}
|
|
486
|
-
const se = h(() =>
|
|
486
|
+
const se = h(() => R(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
|
-
})), ie = h(() =>
|
|
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 =
|
|
492
|
-
return
|
|
491
|
+
const t = Re(e.menu.modules.sku);
|
|
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 = {
|
|
495
495
|
create: t && u,
|
|
@@ -572,9 +572,9 @@ const at = Ae(
|
|
|
572
572
|
const pe = h(() => {
|
|
573
573
|
var p;
|
|
574
574
|
const t = ["SV5", "SV10"], s = ke.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} (${Ee(g.rate)}%)`,
|
|
578
578
|
value: V(g),
|
|
579
579
|
meta: {
|
|
580
580
|
rate: g.rate
|
|
@@ -586,7 +586,7 @@ const at = Ae(
|
|
|
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, j(null);
|
|
590
590
|
}, ge = async () => {
|
|
591
591
|
const { fetchAllRestaurants: t } = Te();
|
|
592
592
|
await t({
|
|
@@ -594,7 +594,7 @@ const at = Ae(
|
|
|
594
594
|
e.restaurants = s;
|
|
595
595
|
}
|
|
596
596
|
});
|
|
597
|
-
},
|
|
597
|
+
}, j = (t) => {
|
|
598
598
|
e.currentCatalogId = t;
|
|
599
599
|
}, _e = (t) => {
|
|
600
600
|
e.currentSchedulerId = t;
|
|
@@ -614,10 +614,10 @@ const at = Ae(
|
|
|
614
614
|
if (s || p.some(
|
|
615
615
|
(S) => [U.F_OPERATION_TYPE.delete, U.F_OPERATION_TYPE.deleteMany].includes(S.operation)
|
|
616
616
|
)) {
|
|
617
|
-
const S = await
|
|
617
|
+
const S = await Ie(p, e.menu.modules);
|
|
618
618
|
if (S !== !0) throw new Error(S);
|
|
619
619
|
}
|
|
620
|
-
const g = await
|
|
620
|
+
const g = await je.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 = Ae(
|
|
|
634
634
|
priceTierSettings: t.priceTierSettings
|
|
635
635
|
};
|
|
636
636
|
return f(s), s;
|
|
637
|
-
},
|
|
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
|
|
@@ -651,9 +651,9 @@ const at = Ae(
|
|
|
651
651
|
schedulers: c,
|
|
652
652
|
currentScheduler: m,
|
|
653
653
|
catalogOptions: P,
|
|
654
|
-
categories:
|
|
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 = Ae(
|
|
|
671
671
|
setMenu: f,
|
|
672
672
|
readMenu: ve,
|
|
673
673
|
readRestaurants: ge,
|
|
674
|
-
selectCatalog:
|
|
674
|
+
selectCatalog: j,
|
|
675
675
|
selectScheduler: _e,
|
|
676
676
|
selectCategory: ye,
|
|
677
677
|
setRestaurantAttrParams: he,
|
|
@@ -685,17 +685,17 @@ const at = Ae(
|
|
|
685
685
|
mapVariant: oe,
|
|
686
686
|
// history
|
|
687
687
|
canUndoHistory: be,
|
|
688
|
-
canRedoHistory:
|
|
688
|
+
canRedoHistory: we,
|
|
689
689
|
undoHistory: () => {
|
|
690
|
-
const t =
|
|
690
|
+
const t = M.undo();
|
|
691
691
|
t && f(t, !1);
|
|
692
692
|
},
|
|
693
693
|
redoHistory: () => {
|
|
694
|
-
const t =
|
|
694
|
+
const t = M.redo();
|
|
695
695
|
t && f(t, !1);
|
|
696
696
|
},
|
|
697
697
|
clearHistory: () => {
|
|
698
|
-
|
|
698
|
+
M.clear();
|
|
699
699
|
}
|
|
700
700
|
};
|
|
701
701
|
}
|
|
@@ -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-DPDGA5BU.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-DPDGA5BU.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-C5SxhXst.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-5V5zXzja.js";
|
|
8
|
+
import { L as ge } from "./LinkProductSideSheet-qWebf6C7.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-DPDGA5BU.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-DrMICNsd.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-BsQYL-bI.js";
|
|
2
|
+
import "./menu-DPDGA5BU.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-DPDGA5BU.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-DrMICNsd.js";
|
|
11
11
|
/* empty css */
|
|
12
12
|
import { c as me } from "./createComponentProgrammatically-Bt2rn1IQ.js";
|
|
13
13
|
const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
|