@feedmepos/mf-menu 0.31.34-alpha.3 → 0.31.35-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-BxXV800X.js → App-schXXC0o.js} +28 -25
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-Bfr9FXJK.js → ApplyProduct.vue_vue_type_script_setup_true_lang-SHveTZDi.js} +2 -2
- package/dist/{Catalog-CXGnjwRq.js → Catalog-CFiRHml3.js} +6 -6
- package/dist/{Category-DSWjavfm.js → Category-DWXpWb7c.js} +4 -4
- package/dist/{Category-MwEDdQKv.js → Category-DXcqRu28.js} +5 -5
- package/dist/{CookingGuide-BnKAzFVg.js → CookingGuide-B9ILPxx7.js} +3 -3
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-Bao11tbm.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-DhgkDa2p.js} +1 -1
- package/dist/{Group-WBZgj9Tz.js → Group-CgFBwU2f.js} +3 -3
- package/dist/{Group-Cs53s1xE.js → Group-DTAy9ufS.js} +1 -1
- package/dist/{Group.vue_vue_type_script_setup_true_lang-CX2kiV14.js → Group.vue_vue_type_script_setup_true_lang-CDH70wTs.js} +7 -7
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-OCaHriX-.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-B0WkXSZX.js} +4 -4
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-BBlXwIRn.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-BoKngyJ5.js} +7 -7
- package/dist/{Ingredient-C1iSmu4C.js → Ingredient-CqMx98kK.js} +3 -3
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-uhcCfSZj.js → InventoryBinding.vue_vue_type_script_setup_true_lang-z2qHsJsc.js} +2 -2
- package/dist/{LinkProductSideSheet-DxWozW1L.js → LinkProductSideSheet-BnQDQ6UL.js} +2 -2
- package/dist/{MenuSetting-C2_hXHCW.js → MenuSetting-COmwCBZo.js} +4 -4
- package/dist/{PrintRoute-CCT-i3Ge.js → PrintRoute-CQ301knH.js} +3 -3
- package/dist/{Product-Cbvul6L9.js → Product-Cf0lCXQC.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-BsVffgL_.js → Product.vue_vue_type_script_setup_true_lang-C8FcjB9O.js} +12 -12
- package/dist/{ProductInternalTools-ChVHngEN.js → ProductInternalTools-H7mmjzeA.js} +5 -5
- package/dist/{Products-B4tLxwHk.js → Products--a9WHv_V.js} +11 -11
- package/dist/{Publish-j9-9daIl.js → Publish-BqztugXu.js} +3 -3
- package/dist/{Recipe-wxTC4x14.js → Recipe-9L_jN-VT.js} +4 -4
- package/dist/{Scheduler-CQtVllY9.js → Scheduler-hQ4PxWM_.js} +3 -3
- package/dist/{ServingSequence-XI6BZaMD.js → ServingSequence-rDC9vl6P.js} +3 -3
- package/dist/{Setting-Bu_4Pvrj.js → Setting-DU8Tk7I1.js} +5 -5
- package/dist/{Subcategory-B46NLkUt.js → Subcategory-CVd7AaP6.js} +4 -4
- package/dist/{Takeaway-ChprHqco.js → Takeaway-BDPWGB8g.js} +1 -1
- package/dist/{Takeaway-ojCtvOfB.js → Takeaway-whWaNyxf.js} +4 -4
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-ex265GUN.js → Takeaway.vue_vue_type_script_setup_true_lang-bf5mq5Qm.js} +5 -5
- package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-BuKPAKqV.js → Thumbnail.vue_vue_type_script_setup_true_lang-D8upmC7p.js} +4 -4
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DQbs_fPY.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-CcjgiwmJ.js} +12 -12
- package/dist/{Unit-B7kQ60m_.js → Unit-nFzxU2ng.js} +2 -2
- package/dist/{Variant-DlgIwlym.js → Variant-CSN6b5VD.js} +3 -3
- package/dist/{_id_-CmD91gZl.js → _id_-DPKWTBT3.js} +10 -10
- package/dist/{app-bc8HZQHE.js → app-C50WDjvV.js} +1 -1
- package/dist/{app-DdW_CQ3X.js → app-KiV4YOrY.js} +24 -24
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{linked-status-BPmt9jaM.js → linked-status-BOBY4HhK.js} +2 -2
- package/dist/assets/{override-menu-BtKpvcZq.js → override-menu-CwIOZ_lE.js} +2 -2
- package/dist/assets/{validate-menu-BUsH76bE.js → validate-menu-DKhnKstP.js} +2 -2
- package/dist/{catalog-CLqgJ3Q9.js → catalog-DDazW8cJ.js} +1 -1
- package/dist/{catalogSetting-BMgceTMu.js → catalogSetting-Ck9L899_.js} +1 -1
- package/dist/{category-UP5VNVxY.js → category-Do_VxAkG.js} +1 -1
- package/dist/{currency-YVaoDuEi.js → currency-6KkWWXo5.js} +1 -1
- package/dist/{dayjs.min-BHJxLCRs.js → dayjs.min-Crr5C_Kj.js} +1 -1
- package/dist/{index-bR5o3QIl.js → index-BQp0L403.js} +3 -3
- package/dist/{index-DgKifTH1.js → index-C6dANAhw.js} +3 -3
- package/dist/{index-BfOUgQCp.js → index-aohReVG9.js} +1 -1
- package/dist/{item-DJf_x9N_.js → item-By-hXMnb.js} +15 -15
- package/dist/{jszip.min-BHroFSR1.js → jszip.min-CXMgtC82.js} +353 -353
- package/dist/{menu-BWrgMKUH.js → menu-D_PYQxDI.js} +1 -1
- package/dist/{menu-LWajM6UY.js → menu-eema7gCH.js} +308 -308
- package/dist/{menuV2-EjGKg6EZ.js → menuV2-CdXrhShM.js} +65 -65
- package/dist/{priceTier-KTkBWeRX.js → priceTier-DfGEi9ZL.js} +1 -1
- package/dist/{scheduler-DrJE_WpG.js → scheduler-D75V3NMp.js} +3 -3
- package/dist/{subcategory-IuaVUJpE.js → subcategory-BRNhr8ug.js} +2 -2
- package/dist/{toExcel-CU0mgN3d.js → toExcel-Brby6bBq.js} +2 -2
- package/dist/{unit-CKL2uG8-.js → unit-bySeFPH-.js} +2 -2
- package/package.json +1 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { ao as L, H as
|
|
2
|
-
import { defineStore as
|
|
3
|
-
import { shallowRef as X, ref as D, computed as h, shallowReactive as
|
|
1
|
+
import { ao as L, H as I, B as k, G as Y, ap as q, J as U, I as J, a9 as w, c as x, X as E, aj as z, aq as Me, ar as Ee, A as Ie, ab as ke, as as Re, at as Te, a8 as Fe } from "./menu-eema7gCH.js";
|
|
2
|
+
import { defineStore as Oe } from "pinia";
|
|
3
|
+
import { shallowRef as X, ref as D, computed as h, shallowReactive as Ae, effectScope as Ke, watch as Ve } from "vue";
|
|
4
4
|
import { useCoreStore as G } from "@feedmepos/mf-common";
|
|
5
5
|
import { useSnackbar as Ne } from "@feedmepos/ui-library";
|
|
6
|
-
const xe = "/assets/linked-status-
|
|
7
|
-
function
|
|
6
|
+
const xe = "/assets/linked-status-BOBY4HhK.js", $e = "/assets/override-menu-CwIOZ_lE.js";
|
|
7
|
+
function Pe(e) {
|
|
8
8
|
var a;
|
|
9
|
-
const n =
|
|
9
|
+
const n = I(e), o = (a = n.variant) == null ? void 0 : a.variantCombinations;
|
|
10
10
|
return delete n.variant, delete n.thumbnail, [n, ...o || []];
|
|
11
11
|
}
|
|
12
12
|
function Ue(e, n, o, a) {
|
|
13
|
-
const r =
|
|
13
|
+
const r = I(n), l = o ? r.modules.catalog.find((g) => g._id === o) : null, d = a ? r.modules.scheduler.find((g) => g._id === a) : null, i = l ? I(l) : void 0, c = o ? r.modules.catalog.filter((g) => g._id !== o) : [], m = d ? I(d) : void 0, f = e.reduce((g, y) => (g[y._id] = Pe(y), g), {});
|
|
14
14
|
function v(g = []) {
|
|
15
15
|
const y = e.map((b) => b._id);
|
|
16
16
|
return [
|
|
@@ -25,7 +25,7 @@ function Ue(e, n, o, a) {
|
|
|
25
25
|
_id: a,
|
|
26
26
|
items: v(m == null ? void 0 : m.items).map((g) => ({
|
|
27
27
|
...g,
|
|
28
|
-
orderFrom:
|
|
28
|
+
orderFrom: Y.F_ORDER_FROM.enum.ALL
|
|
29
29
|
}))
|
|
30
30
|
}
|
|
31
31
|
}, r.modules.catalog = [...c, i], r) : i ? (i.override.items = {
|
|
@@ -35,9 +35,9 @@ function Ue(e, n, o, a) {
|
|
|
35
35
|
...r.modules.scheduler.filter((g) => g._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,
|
|
@@ -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
|
+
...k.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
|
+
...k.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 = I(o), i = l ? Ue(n, d, a, r) : d, c = n.reduce((v, g) => (v[g._id] = i.modules.item.find((y) => y._id === g._id), v), {}), m = n.reduce((v, g) => {
|
|
154
154
|
const y = g._id;
|
|
155
155
|
return v[y] = De(c[y], e), v;
|
|
156
|
-
}, {}), f =
|
|
156
|
+
}, {}), f = k.getFallbackPrices({
|
|
157
157
|
rawMenu: i,
|
|
158
158
|
items: m,
|
|
159
159
|
catalogId: a || void 0,
|
|
@@ -180,11 +180,11 @@ function tt(e, n) {
|
|
|
180
180
|
return r;
|
|
181
181
|
}, [])) || []).join(" / ");
|
|
182
182
|
}
|
|
183
|
-
const
|
|
183
|
+
const $ = /* @__PURE__ */ new Map();
|
|
184
184
|
async function nt(e, n) {
|
|
185
185
|
const o = `${e._id}-${e.updatedAt}-${n}`;
|
|
186
|
-
if (
|
|
187
|
-
return
|
|
186
|
+
if ($.has(o))
|
|
187
|
+
return $.get(o);
|
|
188
188
|
const a = await L(
|
|
189
189
|
xe,
|
|
190
190
|
JSON.stringify({
|
|
@@ -192,10 +192,10 @@ async function nt(e, n) {
|
|
|
192
192
|
itemId: n
|
|
193
193
|
})
|
|
194
194
|
);
|
|
195
|
-
return
|
|
195
|
+
return $.set(o, a), a;
|
|
196
196
|
}
|
|
197
197
|
async function Z(e, n, o) {
|
|
198
|
-
return await L(
|
|
198
|
+
return await L($e, {
|
|
199
199
|
menu: e,
|
|
200
200
|
catalogId: n,
|
|
201
201
|
schedulerId: o
|
|
@@ -231,18 +231,18 @@ function ot(e, n, o) {
|
|
|
231
231
|
}
|
|
232
232
|
return r(n, o);
|
|
233
233
|
}
|
|
234
|
-
const
|
|
234
|
+
const P = /* @__PURE__ */ new Map();
|
|
235
235
|
async function Be(e, n, o) {
|
|
236
236
|
const a = `${e._id}-${e.updatedAt}-${n || "null"}-${o || "null"}`;
|
|
237
|
-
if (
|
|
238
|
-
return
|
|
237
|
+
if (P.has(a))
|
|
238
|
+
return P.get(a);
|
|
239
239
|
const r = await Z(e, n, o);
|
|
240
|
-
return
|
|
240
|
+
return P.set(a, r), r;
|
|
241
241
|
}
|
|
242
242
|
async function st(e, n, o) {
|
|
243
243
|
var d, i;
|
|
244
244
|
const a = await Be(e, n, null), r = [], l = (c, m) => {
|
|
245
|
-
const f =
|
|
245
|
+
const f = I(c);
|
|
246
246
|
for (const v in m)
|
|
247
247
|
m[v] && (f[v] = m[v]);
|
|
248
248
|
return f;
|
|
@@ -251,9 +251,9 @@ 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), g = [m, ...v].map((y) => {
|
|
254
|
-
var F,
|
|
255
|
-
const b = y.combinationKey ? (
|
|
256
|
-
(
|
|
254
|
+
var F, O;
|
|
255
|
+
const b = y.combinationKey ? (O = (F = f == null ? void 0 : f.variant) == null ? void 0 : F.variantCombinations) == null ? void 0 : O.find(
|
|
256
|
+
(A) => A.combinationKey === y.combinationKey
|
|
257
257
|
) : f, R = b && f ? l(f, b) : y;
|
|
258
258
|
return l(R, y);
|
|
259
259
|
});
|
|
@@ -265,7 +265,7 @@ 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
271
|
const n = X([]), o = D(-1), a = h(() => o.value > 0), r = h(() => o.value < n.value.length - 1);
|
|
@@ -292,7 +292,7 @@ function je({
|
|
|
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 qe = {
|
|
|
303
303
|
modules: o.result || e.modules,
|
|
304
304
|
_rev: o.id ?? ""
|
|
305
305
|
};
|
|
306
|
-
return
|
|
306
|
+
return J.cloneDeep({ menu: a, updateId: o.id ?? null });
|
|
307
307
|
}
|
|
308
308
|
};
|
|
309
309
|
function Q() {
|
|
@@ -329,7 +329,7 @@ function Q() {
|
|
|
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: { ...Q(), _rev: "" },
|
|
@@ -339,32 +339,32 @@ function We() {
|
|
|
339
339
|
currentRestaurantCustomAttributes: null
|
|
340
340
|
};
|
|
341
341
|
}
|
|
342
|
-
const at =
|
|
342
|
+
const at = Oe(
|
|
343
343
|
"mf-menu-store-v2",
|
|
344
344
|
() => {
|
|
345
|
-
const e =
|
|
345
|
+
const e = Ae(qe()), n = G(), o = Ne(), a = h(() => e.menu.modules.serveSequence ? w(e.menu.modules.serveSequence, {
|
|
346
346
|
selector: "position"
|
|
347
347
|
}) : []), r = h(() => {
|
|
348
348
|
var t;
|
|
349
349
|
return ((t = n.currentBusiness.value) == null ? void 0 : t.menuVersion) || x.F_MENU_VERSION.v3;
|
|
350
350
|
}), l = h(() => r.value === x.F_MENU_VERSION.v4), d = h(() => {
|
|
351
351
|
const t = e.menu.modules.catalog;
|
|
352
|
-
return
|
|
352
|
+
return w(t, { selector: "name" });
|
|
353
353
|
}), i = h(() => {
|
|
354
354
|
var s;
|
|
355
355
|
let t = e.menu.modules.catalog.find(
|
|
356
356
|
(u) => u._id === e.currentCatalogId
|
|
357
357
|
);
|
|
358
|
-
return t && ((s = t.linkItemRules) != null && s.length) && (t =
|
|
358
|
+
return t && ((s = t.linkItemRules) != null && s.length) && (t = k.populateCatalog({
|
|
359
359
|
catalog: t,
|
|
360
360
|
items: e.menu.modules.item,
|
|
361
361
|
restaurantCustomAttributes: e.currentRestaurantCustomAttributes || {}
|
|
362
362
|
})), t;
|
|
363
|
-
}), c = h(() =>
|
|
363
|
+
}), c = h(() => w(v.value.modules.scheduler, { selector: "name" })), m = h(() => e.menu.modules.scheduler.find(
|
|
364
364
|
(t) => t._id === e.currentSchedulerId
|
|
365
365
|
));
|
|
366
366
|
function f(t, s = !0) {
|
|
367
|
-
e.menu = { ...t, _rev: e.menu._rev }, s &&
|
|
367
|
+
e.menu = { ...t, _rev: e.menu._rev }, s && M.push(e.menu);
|
|
368
368
|
}
|
|
369
369
|
const v = X(Q()), g = D(!1), y = D(1);
|
|
370
370
|
async function b() {
|
|
@@ -372,7 +372,7 @@ const at = Ae(
|
|
|
372
372
|
g.value = !0;
|
|
373
373
|
let t = e.menu.modules.catalog;
|
|
374
374
|
if (i.value && ((u = i.value.linkItemRules) != null && u.length)) {
|
|
375
|
-
const p =
|
|
375
|
+
const p = k.populateCatalog({
|
|
376
376
|
catalog: i.value,
|
|
377
377
|
items: e.menu.modules.item,
|
|
378
378
|
restaurantCustomAttributes: e.currentRestaurantCustomAttributes || {}
|
|
@@ -400,8 +400,8 @@ const at = Ae(
|
|
|
400
400
|
}
|
|
401
401
|
return v.value = s, g.value = !1, y.value = y.value + 1, s;
|
|
402
402
|
}
|
|
403
|
-
const F =
|
|
404
|
-
|
|
403
|
+
const F = J.debounce(b, 200);
|
|
404
|
+
Ke(!0).run(() => {
|
|
405
405
|
Ve(
|
|
406
406
|
() => [e.menu, e.currentCatalogId, e.currentSchedulerId],
|
|
407
407
|
() => {
|
|
@@ -409,7 +409,7 @@ const at = Ae(
|
|
|
409
409
|
}
|
|
410
410
|
);
|
|
411
411
|
});
|
|
412
|
-
const
|
|
412
|
+
const A = h(() => [
|
|
413
413
|
{
|
|
414
414
|
label: "Main",
|
|
415
415
|
value: null
|
|
@@ -433,7 +433,7 @@ const at = Ae(
|
|
|
433
433
|
}), ee = h(() => {
|
|
434
434
|
const t = v.value.modules.subCategory || [];
|
|
435
435
|
return E(t, (s) => s.name);
|
|
436
|
-
}),
|
|
436
|
+
}), W = h(() => {
|
|
437
437
|
var s;
|
|
438
438
|
let t = v.value.modules.item;
|
|
439
439
|
if (i.value) {
|
|
@@ -443,7 +443,7 @@ const at = Ae(
|
|
|
443
443
|
const _ = (C = u == null ? void 0 : u[p._id]) == null ? void 0 : C.find(
|
|
444
444
|
(S) => !S.combinationKey
|
|
445
445
|
);
|
|
446
|
-
return (_ == null ? void 0 : _.orderFrom) !==
|
|
446
|
+
return (_ == null ? void 0 : _.orderFrom) !== Y.F_ORDER_FROM.enum.NONE;
|
|
447
447
|
});
|
|
448
448
|
}
|
|
449
449
|
return E(t, (u) => u.code || u.name);
|
|
@@ -456,7 +456,7 @@ const at = Ae(
|
|
|
456
456
|
u,
|
|
457
457
|
(p) => p.code || p.name
|
|
458
458
|
).reduce((p, _, C) => (p[_._id] = C + s[_.category || ""], p), {});
|
|
459
|
-
}), ne = h(() => z(
|
|
459
|
+
}), ne = h(() => z(K.value, B.value, W.value)), re = h(() => {
|
|
460
460
|
const t = V.value.item.addon ? [
|
|
461
461
|
{
|
|
462
462
|
_id: e.currentCatalogId ? "" : null,
|
|
@@ -470,21 +470,21 @@ const at = Ae(
|
|
|
470
470
|
t,
|
|
471
471
|
e.menu.modules.item
|
|
472
472
|
);
|
|
473
|
-
}),
|
|
473
|
+
}), K = h(() => {
|
|
474
474
|
const t = v.value.modules.variant;
|
|
475
|
-
return
|
|
475
|
+
return w(t, { selector: "name" });
|
|
476
476
|
});
|
|
477
477
|
function oe(t = []) {
|
|
478
|
-
const s = t.map((p) =>
|
|
479
|
-
return
|
|
478
|
+
const s = t.map((p) => K.value.find((_) => _._id === p)).filter((p) => !!p);
|
|
479
|
+
return k.fullVariantCombination(s).reduce((p, _) => (p[_.combinationKey] = _.selectionName.join(" / "), p), {});
|
|
480
480
|
}
|
|
481
|
-
const se = h(() => E(v.value.modules.group, (t) => t.name)), ae = h(() =>
|
|
481
|
+
const se = h(() => E(v.value.modules.group, (t) => t.name)), ae = h(() => w(v.value.modules.takeaway, { selector: "name" })), ue = h(() => w(e.menu.modules.printDepartment || [], {
|
|
482
482
|
selector: "name"
|
|
483
|
-
})), ie = h(() =>
|
|
483
|
+
})), ie = h(() => w(e.menu.modules.unit, { selector: "name" })), ce = h(() => w(Me(e.menu.modules.recipe, e.menu.modules.sku), {
|
|
484
484
|
selector: "name"
|
|
485
485
|
})), le = h(() => e.menu.modules.cookingGuide), de = h(() => {
|
|
486
486
|
const t = Ee(e.menu.modules.sku);
|
|
487
|
-
return
|
|
487
|
+
return w(t, { selector: "code" });
|
|
488
488
|
}), V = h(() => {
|
|
489
489
|
const t = !e.currentCatalogId, s = r.value === x.F_MENU_VERSION.v4, u = !e.currentSchedulerId, p = {
|
|
490
490
|
create: t && u,
|
|
@@ -566,10 +566,10 @@ const at = Ae(
|
|
|
566
566
|
}
|
|
567
567
|
const pe = h(() => {
|
|
568
568
|
var p;
|
|
569
|
-
const t = ["SV5", "SV10"], s =
|
|
569
|
+
const t = ["SV5", "SV10"], s = Ie.Country.getCountryFlattenTaxes(
|
|
570
570
|
G().currentCountry.value
|
|
571
571
|
), u = s.filter((_) => l.value || !t.includes(_.taxCode)).map((_) => ({
|
|
572
|
-
label: `${_.name} (${
|
|
572
|
+
label: `${_.name} (${ke(_.rate)}%)`,
|
|
573
573
|
value: N(_),
|
|
574
574
|
meta: {
|
|
575
575
|
rate: _.rate
|
|
@@ -581,7 +581,7 @@ const at = Ae(
|
|
|
581
581
|
};
|
|
582
582
|
}), ve = async () => {
|
|
583
583
|
const t = await Fe.readMenu();
|
|
584
|
-
e.menu = t ?? e.menu,
|
|
584
|
+
e.menu = t ?? e.menu, j(null);
|
|
585
585
|
}, _e = async () => {
|
|
586
586
|
const { fetchAllRestaurants: t } = Te();
|
|
587
587
|
await t({
|
|
@@ -589,7 +589,7 @@ const at = Ae(
|
|
|
589
589
|
e.restaurants = s;
|
|
590
590
|
}
|
|
591
591
|
});
|
|
592
|
-
},
|
|
592
|
+
}, j = (t) => {
|
|
593
593
|
e.currentCatalogId = t;
|
|
594
594
|
}, ge = (t) => {
|
|
595
595
|
e.currentSchedulerId = t;
|
|
@@ -612,7 +612,7 @@ const at = Ae(
|
|
|
612
612
|
const C = await Re(p, e.menu.modules);
|
|
613
613
|
if (C !== !0) throw new Error(C);
|
|
614
614
|
}
|
|
615
|
-
const _ = await
|
|
615
|
+
const _ = await je.updateMenuModule(e.menu, p);
|
|
616
616
|
return f(_.menu), _;
|
|
617
617
|
} catch (_) {
|
|
618
618
|
o.open({
|
|
@@ -629,7 +629,7 @@ const at = Ae(
|
|
|
629
629
|
priceTierSettings: t.priceTierSettings
|
|
630
630
|
};
|
|
631
631
|
return f(s), s;
|
|
632
|
-
},
|
|
632
|
+
}, M = We({ maxHistorySize: 50 }), Se = h(() => M.canUndo.value), we = h(() => M.canRedo.value);
|
|
633
633
|
return {
|
|
634
634
|
state: e,
|
|
635
635
|
// loading state
|
|
@@ -645,14 +645,14 @@ const at = Ae(
|
|
|
645
645
|
currentCatalog: i,
|
|
646
646
|
schedulers: c,
|
|
647
647
|
currentScheduler: m,
|
|
648
|
-
catalogOptions:
|
|
648
|
+
catalogOptions: A,
|
|
649
649
|
categories: B,
|
|
650
650
|
subcategories: ee,
|
|
651
|
-
items:
|
|
651
|
+
items: W,
|
|
652
652
|
sortedItems: te,
|
|
653
653
|
categorizedItems: ne,
|
|
654
654
|
categorizedRawMenuItems: re,
|
|
655
|
-
variants:
|
|
655
|
+
variants: K,
|
|
656
656
|
groups: se,
|
|
657
657
|
takeaways: ae,
|
|
658
658
|
printDepartments: ue,
|
|
@@ -666,7 +666,7 @@ const at = Ae(
|
|
|
666
666
|
setMenu: f,
|
|
667
667
|
readMenu: ve,
|
|
668
668
|
readRestaurants: _e,
|
|
669
|
-
selectCatalog:
|
|
669
|
+
selectCatalog: j,
|
|
670
670
|
selectScheduler: ge,
|
|
671
671
|
selectCategory: ye,
|
|
672
672
|
setRestaurantCustomAttributes: he,
|
|
@@ -680,17 +680,17 @@ const at = Ae(
|
|
|
680
680
|
mapVariant: oe,
|
|
681
681
|
// history
|
|
682
682
|
canUndoHistory: Se,
|
|
683
|
-
canRedoHistory:
|
|
683
|
+
canRedoHistory: we,
|
|
684
684
|
undoHistory: () => {
|
|
685
|
-
const t =
|
|
685
|
+
const t = M.undo();
|
|
686
686
|
t && f(t, !1);
|
|
687
687
|
},
|
|
688
688
|
redoHistory: () => {
|
|
689
|
-
const t =
|
|
689
|
+
const t = M.redo();
|
|
690
690
|
t && f(t, !1);
|
|
691
691
|
},
|
|
692
692
|
clearHistory: () => {
|
|
693
|
-
|
|
693
|
+
M.clear();
|
|
694
694
|
}
|
|
695
695
|
};
|
|
696
696
|
}
|
|
@@ -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, D as M } from "./menu-
|
|
4
|
+
import { u as k, D as M } from "./menu-eema7gCH.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 A, 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, G as r, u as pe, I as ve, J as ue } from "./menu-
|
|
2
|
+
import { H as S, G as r, u as pe, I as ve, J as ue } from "./menu-eema7gCH.js";
|
|
3
3
|
import { useI18n as de } from "@feedmepos/mf-common";
|
|
4
4
|
import { components as _e } from "@feedmepos/ui-library";
|
|
5
|
-
import { a as fe, L as ye } from "./LinkProductSideSheet-
|
|
5
|
+
import { a as fe, L as ye } from "./LinkProductSideSheet-BnQDQ6UL.js";
|
|
6
6
|
import { _ as ne } from "./FormSection.vue_vue_type_script_setup_true_lang-CO4YGYLB.js";
|
|
7
7
|
import { u as he } from "./discardConfirm-BHni0LNu.js";
|
|
8
|
-
import { u as ge } from "./menu-
|
|
8
|
+
import { u as ge } from "./menu-D_PYQxDI.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 C, unref as c, withCtx as V, createVNode as A } from "vue";
|
|
2
|
-
import { J as l, G as d, u as F } from "./menu-
|
|
2
|
+
import { J as l, G as d, u as F } from "./menu-eema7gCH.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-CdXrhShM.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-BoKngyJ5.js";
|
|
2
|
+
import "./menu-eema7gCH.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 B, a7 as te, a4 as P, H as k, O as $, D as I, B as E, a5 as ne, J as C, G as D, I as ae, u as oe } from "./menu-
|
|
3
|
+
import { a6 as B, a7 as te, a4 as P, H as k, O as $, D as I, B as E, a5 as ne, J as C, G as D, I as ae, u as oe } from "./menu-eema7gCH.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 "./LinkProductSideSheet.vue_vue_type_style_index_0_scoped_97fa9d58_lang-DvG3mOom.js";
|
|
10
|
-
import "./menuV2-
|
|
10
|
+
import "./menuV2-CdXrhShM.js";
|
|
11
11
|
import { c as me } from "./createComponentProgrammatically-Bt2rn1IQ.js";
|
|
12
12
|
const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
|
|
13
13
|
__name: "NumberPrecisionInput",
|