@feedmepos/mf-menu 0.31.29-beta.2 → 0.31.29-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-mMEYHIvv.js → App-CMyk-4AP.js} +20 -20
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-DpcNehmr.js → ApplyProduct.vue_vue_type_script_setup_true_lang-DUjX2e36.js} +2 -2
- package/dist/{Catalog-1u-am_FX.js → Catalog-Cw5zYfIL.js} +5 -5
- package/dist/{Category-DyoBKWIp.js → Category-D-QPYuce.js} +4 -4
- package/dist/{Category-BOhcaS6z.js → Category-HZX511Ux.js} +5 -5
- package/dist/{CookingGuide-Cdq208_U.js → CookingGuide-Bt3yJKCA.js} +3 -3
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-g1bMUIfW.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-BxXs-hTQ.js} +1 -1
- package/dist/{Group-DdNBAASx.js → Group-2WjeuJCg.js} +1 -1
- package/dist/{Group-kZ3QKwQl.js → Group-Q4qL57Y5.js} +3 -3
- package/dist/{Group.vue_vue_type_script_setup_true_lang-CBcmAsNu.js → Group.vue_vue_type_script_setup_true_lang-CTmnzXb0.js} +7 -7
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-D8yUcVne.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-ChYyAvkk.js} +3 -3
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-BdZHHJkx.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-CGqRGVlp.js} +6 -6
- package/dist/{Ingredient-OxE_2RsQ.js → Ingredient-B70lpP-Q.js} +3 -3
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-61O3gJVK.js → InventoryBinding.vue_vue_type_script_setup_true_lang-KJ2LJBeb.js} +1052 -1052
- package/dist/{LinkProductSideSheet-Db-VYgLg.js → LinkProductSideSheet-BLAl_qoF.js} +1 -1
- package/dist/{MenuSetting-BFG_kPcE.js → MenuSetting-B8_mOqtt.js} +4 -4
- package/dist/{PrintRoute-DdtcN9Jk.js → PrintRoute-Bn2uLVtS.js} +3 -3
- package/dist/{Product-ByD2RaDF.js → Product-CZKM9NYe.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-DKMKnfo0.js → Product.vue_vue_type_script_setup_true_lang-B5GWCs2t.js} +11 -11
- package/dist/{ProductInternalTools-C8ct9UF_.js → ProductInternalTools-CP0U2zKu.js} +6 -6
- package/dist/{Products-B8LC1_Yu.js → Products-CZndIzqL.js} +10 -10
- package/dist/{Publish-CH7UjwXd.js → Publish-rWEr9KPU.js} +3 -3
- package/dist/{Recipe-DEA1jiQQ.js → Recipe-DdsS8hD1.js} +4 -4
- package/dist/{Scheduler-CNKDOdF5.js → Scheduler-BJuQehh7.js} +3 -3
- package/dist/{ServingSequence-CkPg7OfU.js → ServingSequence-awf57m3o.js} +3 -3
- package/dist/{Setting-CcSzsxKe.js → Setting-5bgL09SA.js} +4 -4
- package/dist/{Subcategory-B05uoVbA.js → Subcategory-DNNYtQIX.js} +4 -4
- package/dist/{Takeaway-CJ-hyYdf.js → Takeaway-Bk0WCnsw.js} +4 -4
- package/dist/{Takeaway-BeoGeZ1T.js → Takeaway-CkPJs_VK.js} +1 -1
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-s3mb2KFQ.js → Takeaway.vue_vue_type_script_setup_true_lang-Cic3lXSP.js} +5 -5
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-Be7wI5xW.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BgPho0ew.js} +13 -13
- package/dist/{Unit-CTEgpYaY.js → Unit-ByI1kTCU.js} +2 -2
- package/dist/{Variant-BCegY53u.js → Variant-CskfGYC0.js} +3 -3
- package/dist/{_id_-9TJoo0aN.js → _id_-ugAvUs79.js} +9 -9
- package/dist/{app-B--sy3j2.js → app-DMCJ_R02.js} +24 -24
- package/dist/{app-Ce4p5ca1.js → app-ppru9sUj.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/assets/{linked-status-CPBAaoFw.js → linked-status-A42gjyVD.js} +2 -2
- package/dist/assets/{override-menu-CTs6oLCv.js → override-menu-BN1IdF2m.js} +2 -2
- package/dist/assets/{validate-menu-CdKeoHIj.js → validate-menu-s_h4-vy1.js} +8 -8
- package/dist/{catalog-Yu-WJ-LS.js → catalog-BxSSNFKk.js} +1 -1
- package/dist/{catalogSetting-BoBsA847.js → catalogSetting-Bpw8xIpV.js} +1 -1
- package/dist/{category-C3FwVR88.js → category-m2OV2dMK.js} +1 -1
- package/dist/{currency-mHFf4hgM.js → currency-B8VqeFp4.js} +1 -1
- package/dist/{dayjs.min-aM8Fexqk.js → dayjs.min-EVvlo7LL.js} +1 -1
- package/dist/{index-CmI0pkdD.js → index-BnUmaguT.js} +3 -3
- package/dist/{index-D6uQiFl4.js → index-Cd9pDskw.js} +2 -2
- package/dist/{index-C3Jloal_.js → index-Daqvv4mX.js} +1 -1
- package/dist/{item-RtOnXZ95.js → item-D03KCH0T.js} +15 -15
- package/dist/{jszip.min-BwJI1yDA.js → jszip.min-FyS79FZm.js} +2 -2
- package/dist/{menu-DV0gnAwl.js → menu-DHpNXY4e.js} +1 -1
- package/dist/{menu-B7gXWw3l.js → menu-uqtS2o-w.js} +11 -10
- package/dist/{priceTier-DyPvznD-.js → priceTier-DgPiKhhP.js} +1 -1
- package/dist/{scheduler-g_vNEoma.js → scheduler-CZeKFAwZ.js} +3 -3
- package/dist/{subcategory-1X2IKz1M.js → subcategory-CkoGJkAy.js} +66 -66
- package/dist/{toExcel-Civ--TaG.js → toExcel-Cb2UzJ4N.js} +2 -2
- package/dist/{unit-DJhtCloJ.js → unit-DiY2T4YH.js} +1 -1
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { shallowRef as X, ref as
|
|
2
|
-
import { H as k, B as O, ak as Z, G as I, al as G, J as S, I as ee, aa as M, c as D, Y as
|
|
1
|
+
import { shallowRef as X, ref as T, computed as h, shallowReactive as Fe, effectScope as Re, watch as H, defineComponent as Te, resolveComponent as z, createBlock as Ve, openBlock as Ne, unref as N, withCtx as Oe, createVNode as xe } from "vue";
|
|
2
|
+
import { H as k, B as O, ak as Z, G as I, al as G, J as S, I as ee, aa as M, c as D, Y as w, aj as L, am as Pe, an as Ae, A as Ue, ac as Ke, ao as De, ap as $e, a9 as qe, u as He } from "./menu-uqtS2o-w.js";
|
|
3
3
|
import { useCoreStore as J, useI18n as te } from "@feedmepos/mf-common";
|
|
4
4
|
import { useSnackbar as Ye, useDialogChild as Be } from "@feedmepos/ui-library";
|
|
5
|
-
import { defineStore as
|
|
6
|
-
const
|
|
5
|
+
import { defineStore as je } from "pinia";
|
|
6
|
+
const We = "/assets/linked-status-A42gjyVD.js", ze = "/assets/override-menu-BN1IdF2m.js";
|
|
7
7
|
function Ge(e) {
|
|
8
8
|
var o;
|
|
9
9
|
const n = k(e), a = (o = n.variant) == null ? void 0 : o.variantCombinations;
|
|
@@ -12,10 +12,10 @@ function Ge(e) {
|
|
|
12
12
|
function Le(e, n, a, o) {
|
|
13
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] = Ge(y), g), {});
|
|
14
14
|
function p(g = []) {
|
|
15
|
-
const y = e.map((
|
|
15
|
+
const y = e.map((b) => b._id);
|
|
16
16
|
return [
|
|
17
|
-
...g.filter((
|
|
18
|
-
...Object.values(s).flatMap((
|
|
17
|
+
...g.filter((b) => !y.includes(b._id)),
|
|
18
|
+
...Object.values(s).flatMap((b) => b)
|
|
19
19
|
];
|
|
20
20
|
}
|
|
21
21
|
return i && o ? (i.override.scheduler = {
|
|
@@ -46,7 +46,7 @@ function Le(e, n, a, o) {
|
|
|
46
46
|
_id: r._id
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function R(e, n, a) {
|
|
50
50
|
var f;
|
|
51
51
|
if (a >= 3) return e;
|
|
52
52
|
const o = n.modules.item.find((l) => l._id === e._id);
|
|
@@ -57,12 +57,12 @@ function T(e, n, a) {
|
|
|
57
57
|
const i = (u = e == null ? void 0 : e.groups) == null ? void 0 : u.find((g) => g._id === l._id);
|
|
58
58
|
let d;
|
|
59
59
|
return i ? d = ((s = l.items) == null ? void 0 : s.map((g) => {
|
|
60
|
-
var
|
|
61
|
-
const y = (
|
|
60
|
+
var b;
|
|
61
|
+
const y = (b = i.items) == null ? void 0 : b.find(
|
|
62
62
|
(F) => F._id === g._id && F.combinationKey === g.combinationKey
|
|
63
63
|
);
|
|
64
|
-
return
|
|
65
|
-
})) ?? [] : d = ((p = l.items) == null ? void 0 : p.map((g) =>
|
|
64
|
+
return R(y || g, n, a + 1);
|
|
65
|
+
})) ?? [] : d = ((p = l.items) == null ? void 0 : p.map((g) => R(g, n, a + 1))) ?? [], {
|
|
66
66
|
...l,
|
|
67
67
|
items: d
|
|
68
68
|
};
|
|
@@ -83,16 +83,16 @@ function Je(e, n) {
|
|
|
83
83
|
(g) => g._id === d._id && g.combinationKey === d.combinationKey
|
|
84
84
|
);
|
|
85
85
|
if (u)
|
|
86
|
-
return
|
|
86
|
+
return R(u, n, 1);
|
|
87
87
|
const s = {
|
|
88
88
|
...O.generator.initMenuV4ItemOverrider(),
|
|
89
89
|
_id: d._id,
|
|
90
90
|
combinationKey: d.combinationKey
|
|
91
91
|
};
|
|
92
|
-
return
|
|
92
|
+
return R(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) => R(f, n, 1)) : [], r = {
|
|
96
96
|
...O.generator.initMenuV4ItemOverrider(),
|
|
97
97
|
_id: e._id,
|
|
98
98
|
name: e.name,
|
|
@@ -186,7 +186,7 @@ async function ft(e, n) {
|
|
|
186
186
|
if ($.has(a))
|
|
187
187
|
return $.get(a);
|
|
188
188
|
const o = await Z(
|
|
189
|
-
|
|
189
|
+
We,
|
|
190
190
|
JSON.stringify({
|
|
191
191
|
menu: e,
|
|
192
192
|
itemId: n
|
|
@@ -251,10 +251,10 @@ async function gt(e, n, a) {
|
|
|
251
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
253
|
const p = (i = d.items) == null ? void 0 : i.filter((y) => y._id === a && y.combinationKey), g = [u, ...p].map((y) => {
|
|
254
|
-
var V,
|
|
255
|
-
const
|
|
256
|
-
(
|
|
257
|
-
) : s, F =
|
|
254
|
+
var V, x;
|
|
255
|
+
const b = y.combinationKey ? (x = (V = s == null ? void 0 : s.variant) == null ? void 0 : V.variantCombinations) == null ? void 0 : x.find(
|
|
256
|
+
(P) => P.combinationKey === y.combinationKey
|
|
257
|
+
) : s, F = b && s ? f(s, b) : y;
|
|
258
258
|
return f(F, y);
|
|
259
259
|
});
|
|
260
260
|
r.push({
|
|
@@ -268,7 +268,7 @@ async function gt(e, n, a) {
|
|
|
268
268
|
function Ze({
|
|
269
269
|
maxHistorySize: e = 50
|
|
270
270
|
}) {
|
|
271
|
-
const n = X([]), a =
|
|
271
|
+
const n = X([]), 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
|
}
|
|
@@ -338,7 +338,7 @@ function tt() {
|
|
|
338
338
|
currentSchedulerId: ""
|
|
339
339
|
};
|
|
340
340
|
}
|
|
341
|
-
const nt =
|
|
341
|
+
const nt = je(
|
|
342
342
|
"mf-menu-store-v2",
|
|
343
343
|
() => {
|
|
344
344
|
const e = Fe(tt()), n = J(), a = Ye(), o = h(() => e.menu.modules.serveSequence ? M(e.menu.modules.serveSequence, {
|
|
@@ -353,10 +353,10 @@ const nt = We(
|
|
|
353
353
|
(t) => t._id === e.currentSchedulerId
|
|
354
354
|
));
|
|
355
355
|
function s(t, c = !0) {
|
|
356
|
-
e.menu = { ...t, _rev: e.menu._rev }, c &&
|
|
356
|
+
e.menu = { ...t, _rev: e.menu._rev }, c && E.push(e.menu);
|
|
357
357
|
}
|
|
358
|
-
const p = X(oe()), g =
|
|
359
|
-
async function
|
|
358
|
+
const p = X(oe()), g = T(!1), y = T(1);
|
|
359
|
+
async function b() {
|
|
360
360
|
g.value = !0;
|
|
361
361
|
const t = await ne(
|
|
362
362
|
e.menu,
|
|
@@ -373,8 +373,8 @@ const nt = We(
|
|
|
373
373
|
}
|
|
374
374
|
return p.value = t, g.value = !1, y.value = y.value + 1, t;
|
|
375
375
|
}
|
|
376
|
-
const V = ee.debounce(
|
|
377
|
-
|
|
376
|
+
const V = ee.debounce(b, 200);
|
|
377
|
+
Re(!0).run(() => {
|
|
378
378
|
H(
|
|
379
379
|
() => [e.menu, e.currentCatalogId, e.currentSchedulerId],
|
|
380
380
|
() => {
|
|
@@ -382,7 +382,7 @@ const nt = We(
|
|
|
382
382
|
}
|
|
383
383
|
);
|
|
384
384
|
});
|
|
385
|
-
const
|
|
385
|
+
const P = h(() => [
|
|
386
386
|
{
|
|
387
387
|
label: "Main",
|
|
388
388
|
value: null
|
|
@@ -401,35 +401,35 @@ const nt = We(
|
|
|
401
401
|
position: 0
|
|
402
402
|
}
|
|
403
403
|
] : [],
|
|
404
|
-
...
|
|
404
|
+
...w(t, (c) => c.name)
|
|
405
405
|
];
|
|
406
406
|
}), re = h(() => {
|
|
407
407
|
const t = p.value.modules.subCategory || [];
|
|
408
|
-
return
|
|
409
|
-
}),
|
|
408
|
+
return w(t, (c) => c.name);
|
|
409
|
+
}), j = h(() => {
|
|
410
410
|
var c;
|
|
411
411
|
let t = p.value.modules.item;
|
|
412
412
|
if (i.value) {
|
|
413
413
|
const m = (c = i.value) == null ? void 0 : c.override.items;
|
|
414
414
|
t = t.filter((v) => {
|
|
415
|
-
var
|
|
416
|
-
const _ = (
|
|
415
|
+
var C;
|
|
416
|
+
const _ = (C = m == null ? void 0 : m[v._id]) == null ? void 0 : C.find(
|
|
417
417
|
(ke) => !ke.combinationKey
|
|
418
418
|
);
|
|
419
419
|
return (_ == null ? void 0 : _.orderFrom) !== I.F_ORDER_FROM.enum.NONE;
|
|
420
420
|
});
|
|
421
421
|
}
|
|
422
|
-
return
|
|
422
|
+
return w(t, (m) => m.code || m.name);
|
|
423
423
|
}), ae = h(() => {
|
|
424
|
-
const t = e.menu.modules.category, c =
|
|
425
|
-
(v, _,
|
|
424
|
+
const t = e.menu.modules.category, c = w(t, (v) => v.name).reduce(
|
|
425
|
+
(v, _, C) => (v[_._id] = C, v),
|
|
426
426
|
{ "": 0 }
|
|
427
427
|
), m = e.menu.modules.item;
|
|
428
|
-
return
|
|
428
|
+
return w(
|
|
429
429
|
m,
|
|
430
430
|
(v) => v.code || v.name
|
|
431
|
-
).reduce((v, _,
|
|
432
|
-
}), se = h(() => L(A.value, B.value,
|
|
431
|
+
).reduce((v, _, C) => (v[_._id] = C + c[_.category || ""], v), {});
|
|
432
|
+
}), se = h(() => L(A.value, B.value, j.value)), ue = h(() => {
|
|
433
433
|
const t = U.value.item.addon ? [
|
|
434
434
|
{
|
|
435
435
|
_id: e.currentCatalogId ? "" : null,
|
|
@@ -451,9 +451,9 @@ const nt = We(
|
|
|
451
451
|
const c = t.map((v) => A.value.find((_) => _._id === v)).filter((v) => !!v);
|
|
452
452
|
return O.fullVariantCombination(c).reduce((v, _) => (v[_.combinationKey] = _.selectionName.join(" / "), v), {});
|
|
453
453
|
}
|
|
454
|
-
const ce = h(() =>
|
|
454
|
+
const ce = h(() => w(p.value.modules.group, (t) => t.name)), le = h(() => M(p.value.modules.takeaway, { selector: "name" })), de = h(() => M(e.menu.modules.printDepartment || [], {
|
|
455
455
|
selector: "name"
|
|
456
|
-
})), me = h(() => M(e.menu.modules.unit, { selector: "name" })), fe = h(() => M(
|
|
456
|
+
})), me = h(() => M(e.menu.modules.unit, { selector: "name" })), fe = h(() => M(Pe(e.menu.modules.recipe, e.menu.modules.sku), {
|
|
457
457
|
selector: "name"
|
|
458
458
|
})), pe = h(() => e.menu.modules.cookingGuide), _e = h(() => {
|
|
459
459
|
const t = Ae(e.menu.modules.sku);
|
|
@@ -548,23 +548,23 @@ const nt = We(
|
|
|
548
548
|
rate: _.rate
|
|
549
549
|
}
|
|
550
550
|
}));
|
|
551
|
-
return m.sort((_,
|
|
551
|
+
return m.sort((_, C) => _.label.localeCompare(C.label, void 0, { numeric: !0 })), {
|
|
552
552
|
systemCode: (v = c[0]) == null ? void 0 : v.systemCode,
|
|
553
553
|
countryTaxOptions: m
|
|
554
554
|
};
|
|
555
555
|
}), he = async () => {
|
|
556
556
|
const t = await qe.readMenu();
|
|
557
|
-
e.menu = t ?? e.menu,
|
|
558
|
-
},
|
|
557
|
+
e.menu = t ?? e.menu, W(null);
|
|
558
|
+
}, be = async () => {
|
|
559
559
|
const { fetchAllRestaurants: t } = $e();
|
|
560
560
|
await t({
|
|
561
561
|
onBatchEnd: (c) => {
|
|
562
562
|
e.restaurants = c;
|
|
563
563
|
}
|
|
564
564
|
});
|
|
565
|
-
},
|
|
565
|
+
}, W = (t) => {
|
|
566
566
|
e.currentCatalogId = t;
|
|
567
|
-
},
|
|
567
|
+
}, Ce = (t) => {
|
|
568
568
|
e.currentSchedulerId = t;
|
|
569
569
|
}, Me = (t) => {
|
|
570
570
|
e.currentCategoryIds = t;
|
|
@@ -578,10 +578,10 @@ const nt = We(
|
|
|
578
578
|
}));
|
|
579
579
|
try {
|
|
580
580
|
if (c || v.some(
|
|
581
|
-
(
|
|
581
|
+
(C) => [S.F_OPERATION_TYPE.delete, S.F_OPERATION_TYPE.deleteMany].includes(C.operation)
|
|
582
582
|
)) {
|
|
583
|
-
const
|
|
584
|
-
if (
|
|
583
|
+
const C = await De(v, e.menu.modules);
|
|
584
|
+
if (C !== !0) throw new Error(C);
|
|
585
585
|
}
|
|
586
586
|
const _ = await et.updateMenuModule(e.menu, v);
|
|
587
587
|
return s(_.menu), _;
|
|
@@ -592,7 +592,7 @@ const nt = We(
|
|
|
592
592
|
message: _
|
|
593
593
|
});
|
|
594
594
|
}
|
|
595
|
-
},
|
|
595
|
+
}, Ee = async (t) => {
|
|
596
596
|
const c = {
|
|
597
597
|
...e.menu,
|
|
598
598
|
masterCatalogSetting: t.masterCatalogSetting,
|
|
@@ -600,7 +600,7 @@ const nt = We(
|
|
|
600
600
|
priceTierSettings: t.priceTierSettings
|
|
601
601
|
};
|
|
602
602
|
return s(c), c;
|
|
603
|
-
},
|
|
603
|
+
}, E = Ze({ maxHistorySize: 50 }), we = h(() => E.canUndo.value), Ie = h(() => E.canRedo.value);
|
|
604
604
|
return {
|
|
605
605
|
state: e,
|
|
606
606
|
// loading state
|
|
@@ -616,10 +616,10 @@ const nt = We(
|
|
|
616
616
|
currentCatalog: i,
|
|
617
617
|
schedulers: d,
|
|
618
618
|
currentScheduler: u,
|
|
619
|
-
catalogOptions:
|
|
619
|
+
catalogOptions: P,
|
|
620
620
|
categories: B,
|
|
621
621
|
subcategories: re,
|
|
622
|
-
items:
|
|
622
|
+
items: j,
|
|
623
623
|
sortedItems: ae,
|
|
624
624
|
categorizedItems: se,
|
|
625
625
|
categorizedRawMenuItems: ue,
|
|
@@ -636,35 +636,35 @@ const nt = We(
|
|
|
636
636
|
// Action
|
|
637
637
|
setMenu: s,
|
|
638
638
|
readMenu: he,
|
|
639
|
-
readRestaurants:
|
|
640
|
-
selectCatalog:
|
|
641
|
-
selectScheduler:
|
|
639
|
+
readRestaurants: be,
|
|
640
|
+
selectCatalog: W,
|
|
641
|
+
selectScheduler: Ce,
|
|
642
642
|
selectCategory: Me,
|
|
643
643
|
updateMenu: Se,
|
|
644
|
-
updateMenuSetting:
|
|
645
|
-
computeMergedMenu:
|
|
644
|
+
updateMenuSetting: Ee,
|
|
645
|
+
computeMergedMenu: b,
|
|
646
646
|
// helper
|
|
647
647
|
encodeTax: K,
|
|
648
648
|
decodeTax: ge,
|
|
649
649
|
getSelectedTax: ve,
|
|
650
650
|
mapVariant: ie,
|
|
651
651
|
// history
|
|
652
|
-
canUndoHistory:
|
|
652
|
+
canUndoHistory: we,
|
|
653
653
|
canRedoHistory: Ie,
|
|
654
654
|
undoHistory: () => {
|
|
655
|
-
const t =
|
|
655
|
+
const t = E.undo();
|
|
656
656
|
t && s(t, !1);
|
|
657
657
|
},
|
|
658
658
|
redoHistory: () => {
|
|
659
|
-
const t =
|
|
659
|
+
const t = E.redo();
|
|
660
660
|
t && s(t, !1);
|
|
661
661
|
},
|
|
662
662
|
clearHistory: () => {
|
|
663
|
-
|
|
663
|
+
E.clear();
|
|
664
664
|
}
|
|
665
665
|
};
|
|
666
666
|
}
|
|
667
|
-
), Q = /* @__PURE__ */
|
|
667
|
+
), Q = /* @__PURE__ */ Te({
|
|
668
668
|
__name: "AddSubcategoryDialogContentComponent",
|
|
669
669
|
props: {
|
|
670
670
|
initialValue: {}
|
|
@@ -677,7 +677,7 @@ const nt = We(
|
|
|
677
677
|
o.value = l ?? "";
|
|
678
678
|
}
|
|
679
679
|
);
|
|
680
|
-
const o =
|
|
680
|
+
const o = T(n.initialValue), { emitData: r, emitAction: f } = Be();
|
|
681
681
|
return H(
|
|
682
682
|
o,
|
|
683
683
|
(l) => {
|
|
@@ -692,7 +692,7 @@ const nt = We(
|
|
|
692
692
|
onValidationSuccess: i[1] || (i[1] = (s) => N(f)("primary"))
|
|
693
693
|
}, {
|
|
694
694
|
default: Oe(() => [
|
|
695
|
-
|
|
695
|
+
xe(d, {
|
|
696
696
|
modelValue: o.value,
|
|
697
697
|
"onUpdate:modelValue": i[0] || (i[0] = (s) => o.value = s),
|
|
698
698
|
rules: [(s) => !!s || N(a)("menu.subcategory.dialog.add.name.required")],
|
|
@@ -712,7 +712,7 @@ const nt = We(
|
|
|
712
712
|
}) => {
|
|
713
713
|
const { t: o } = te(), r = nt().updateMenu;
|
|
714
714
|
function f() {
|
|
715
|
-
const u =
|
|
715
|
+
const u = T(!1);
|
|
716
716
|
e.open({
|
|
717
717
|
title: o("menu.subcategory.manager.dialog.add.title"),
|
|
718
718
|
contentComponent: Q,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import "./menu-
|
|
1
|
+
import { b as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-CGqRGVlp.js";
|
|
2
|
+
import "./menu-uqtS2o-w.js";
|
|
3
3
|
var Z = {
|
|
4
4
|
defaultAmount: 0,
|
|
5
5
|
defaultCurrency: "USD",
|
|
@@ -1,6 +1,6 @@
|
|
|
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 { a7 as B, a8 as te, a5 as P, H as k, O as $, D as I, B as E, I as ne, a6 as ae, J as C, G as D, u as oe } from "./menu-
|
|
3
|
+
import { a7 as B, a8 as te, a5 as P, H as k, O as $, D as I, B as E, I as ne, a6 as ae, J as C, G as D, u as oe } from "./menu-uqtS2o-w.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";
|