@feedmepos/mf-menu 0.31.14-prod → 0.31.15-beta.1
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-B1vRSn4G.js → App-D87EP5SE.js} +7 -7
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-eDOuUKea.js → ApplyProduct.vue_vue_type_script_setup_true_lang-BnthFRoy.js} +2 -2
- package/dist/{Catalog-DINSs8NF.js → Catalog-DS4wKymx.js} +5 -5
- package/dist/{Category-Gf1b-9KQ.js → Category-D1TPC-aA.js} +5 -5
- package/dist/{Category-lYrlrBEY.js → Category-GbhIPLBW.js} +4 -4
- package/dist/{CookingGuide-xkK-57gr.js → CookingGuide-C39Ecv1F.js} +3 -3
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-T2yhTt-O.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-DUeeVaHx.js} +1 -1
- package/dist/{Group-CLSjp-iO.js → Group-BzhEIgZk.js} +1 -1
- package/dist/{Group-VqLrp3Zi.js → Group-dErNLF6H.js} +3 -3
- package/dist/{Group.vue_vue_type_script_setup_true_lang-ubxvQqUr.js → Group.vue_vue_type_script_setup_true_lang-BFXGHdMi.js} +7 -7
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BlC1hJSV.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-B5lGsR6N.js} +3 -3
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-1SzMrwsu.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-D24MTd_K.js} +1459 -1459
- package/dist/{Ingredient-BJY2qss1.js → Ingredient-laBtGjS5.js} +3 -3
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-X4CJx1MD.js → InventoryBinding.vue_vue_type_script_setup_true_lang-DL8q7CNv.js} +2 -2
- package/dist/{LinkProductSideSheet-BPqxOKFE.js → LinkProductSideSheet-DX-MRKfp.js} +1 -1
- package/dist/{MenuSetting-DoH1hCL2.js → MenuSetting-BIT1THUu.js} +4 -4
- package/dist/{PrintRoute-C_7hQlKF.js → PrintRoute-BIvz4aN1.js} +3 -3
- package/dist/{Product-BY6rYNWs.js → Product-CtfrgVK0.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-CPB_80UB.js → Product.vue_vue_type_script_setup_true_lang-CvlMJdJf.js} +11 -11
- package/dist/{Products-Bo0GLhqh.js → Products-Ds2Yxmxo.js} +521 -521
- package/dist/Publish-BOWb-F33.js +569 -0
- package/dist/{Recipe-CrtkqI4g.js → Recipe-ul4kMBPm.js} +4 -4
- package/dist/{Scheduler-BXWkFbPl.js → Scheduler-CoGSCUHZ.js} +3 -3
- package/dist/{ServingSequence-Ip13GxVP.js → ServingSequence-BLf6AqJ8.js} +3 -3
- package/dist/{Setting-DWEhlh22.js → Setting-Du7gpreX.js} +4 -4
- package/dist/{Subcategory-DjqfRJ4l.js → Subcategory-DTwKpA8u.js} +4 -4
- package/dist/{Takeaway-DCEN8U_L.js → Takeaway-8xbOp8Xa.js} +1 -1
- package/dist/{Takeaway-C_NseTz5.js → Takeaway-DxgaJnU0.js} +4 -4
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-BM9GpET_.js → Takeaway.vue_vue_type_script_setup_true_lang-vdmvli1A.js} +5 -5
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-D-FwzQwW.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-b9NscJTY.js} +13 -13
- package/dist/{Unit-Dox7Xn2H.js → Unit-Ap7qpY-q.js} +2 -2
- package/dist/{Variant-DyaoY_F4.js → Variant-POkEu-3s.js} +3 -3
- package/dist/{_id_-BkZNSeHB.js → _id_--9S7--di.js} +9 -9
- package/dist/{app-QF6YR_br.js → app-BFZyK9BE.js} +1 -1
- package/dist/{app-Dt4HxTgk.js → app-CK6ZrpdZ.js} +26 -25
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{linked-status-cHzQAg5J.js → linked-status-CXhE5uCO.js} +2 -2
- package/dist/assets/{override-menu-C_imEkkD.js → override-menu-DVX8Orl1.js} +2 -2
- package/dist/assets/{validate-menu-BylCfbEQ.js → validate-menu-Di70DZHf.js} +2 -2
- package/dist/{catalog-BBJLCMQs.js → catalog-cJG6G1UU.js} +1 -1
- package/dist/{catalogSetting-BT3SGTnr.js → catalogSetting-CXaK7AC0.js} +1 -1
- package/dist/{category-DHIAo9R_.js → category-RIXHr3i-.js} +1 -1
- package/dist/{currency-CF2elIGc.js → currency-Bh0cQzAv.js} +1 -1
- package/dist/{dayjs.min-DTD3s98V.js → dayjs.min-CeOhrh22.js} +1 -1
- package/dist/{index-tOyM3etE.js → index-9k68QbSm.js} +3 -3
- package/dist/{index-E-3k6_wI.js → index-BjLVYbeK.js} +2 -2
- package/dist/{index-9ldMbFkz.js → index-CkF36-Yy.js} +1 -1
- package/dist/{item-DbD19dTs.js → item-hh2futyR.js} +720 -720
- package/dist/{menu-Ds6C2AI_.js → menu-CkxpNa3P.js} +2275 -2275
- package/dist/{menu-D2bBcj5l.js → menu-b1EX-c7r.js} +1 -1
- package/dist/{priceTier-Dey5MTGI.js → priceTier-_xtW9BQW.js} +1 -1
- package/dist/{scheduler-BzEqKDCE.js → scheduler-DpPfzjup.js} +3 -3
- package/dist/{subcategory-korIzSgU.js → subcategory-CH1FS_Is.js} +57 -57
- package/dist/{toExcel-CLuJDFoU.js → toExcel-C808hu94.js} +2 -2
- package/dist/{unit-BNIcNwgS.js → unit-Bj_UFAWe.js} +1 -1
- package/package.json +1 -1
- package/dist/Publish-yx7N-Mpv.js +0 -547
|
@@ -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-CkxpNa3P.js";
|
|
5
5
|
const v = /* @__PURE__ */ d({
|
|
6
6
|
__name: "AddPriceGroupDialog",
|
|
7
7
|
setup(s) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent as le, computed as Y, resolveComponent as v, createElementBlock as i, openBlock as u, createVNode as l, createCommentVNode as g, unref as a, toDisplayString as P, createElementVNode as y, withCtx as _, Fragment as D, renderList as A, createBlock as N, ref as T, Transition as ee, createTextVNode as se } from "vue";
|
|
2
|
-
import { J as b, I as d, u as ie, K as de, M as X } from "./menu-
|
|
2
|
+
import { J as b, I as d, u as ie, K as de, M as X } from "./menu-CkxpNa3P.js";
|
|
3
3
|
import { useI18n as te } from "@feedmepos/mf-common";
|
|
4
4
|
import { components as re } from "@feedmepos/ui-library";
|
|
5
5
|
import { _ as ce } from "./FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js";
|
|
6
6
|
import { _ as W } from "./FormSection.vue_vue_type_script_setup_true_lang-CO4YGYLB.js";
|
|
7
7
|
import { u as me } from "./discardConfirm-BHni0LNu.js";
|
|
8
|
-
import { u as pe } from "./menu-
|
|
9
|
-
import { L as _e } from "./LinkProductSideSheet-
|
|
8
|
+
import { u as pe } from "./menu-b1EX-c7r.js";
|
|
9
|
+
import { L as _e } from "./LinkProductSideSheet-DX-MRKfp.js";
|
|
10
10
|
const ve = { class: "space-y-8" }, fe = {
|
|
11
11
|
key: 0,
|
|
12
12
|
class: "space-y-16"
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { shallowRef as Z, ref as R, computed as h, shallowReactive as Te, effectScope as Re, watch as H, defineComponent as
|
|
2
|
-
import { J as
|
|
3
|
-
import { useCoreStore as
|
|
1
|
+
import { shallowRef as Z, ref as R, computed as h, shallowReactive as Te, effectScope as Re, watch as H, defineComponent as Oe, resolveComponent as B, createBlock as Ve, openBlock as Ne, unref as V, withCtx as Pe, createVNode as xe } from "vue";
|
|
2
|
+
import { J as k, A as N, aj as ee, I, ak as G, M as S, K as te, a9 as M, c as D, $ as w, ai as L, al as Ae, am as Ke, z as Ue, ab as De, an as $e, a8 as J, u as qe } from "./menu-CkxpNa3P.js";
|
|
3
|
+
import { useCoreStore as X, useI18n as ne } from "@feedmepos/mf-common";
|
|
4
4
|
import { useSnackbar as He, useDialogChild as Ye } from "@feedmepos/ui-library";
|
|
5
5
|
import { defineStore as We } from "pinia";
|
|
6
|
-
const je = "/assets/linked-status-
|
|
6
|
+
const je = "/assets/linked-status-CXhE5uCO.js", ze = "/assets/override-menu-DVX8Orl1.js";
|
|
7
7
|
function Be(e) {
|
|
8
8
|
var o;
|
|
9
|
-
const n =
|
|
9
|
+
const n = k(e), a = (o = n.variant) == null ? void 0 : o.variantCombinations;
|
|
10
10
|
return delete n.variant, delete n.thumbnail, [n, ...a || []];
|
|
11
11
|
}
|
|
12
12
|
function Ge(e, n, a, o) {
|
|
13
|
-
const r =
|
|
13
|
+
const r = k(n), f = a ? r.modules.catalog.find((_) => _._id === a) : null, d = o ? r.modules.scheduler.find((_) => _._id === o) : null, i = f ? k(f) : void 0, m = a ? r.modules.catalog.filter((_) => _._id !== a) : [], u = d ? k(d) : void 0, s = e.reduce((_, y) => (_[y._id] = Be(y), _), {});
|
|
14
14
|
function p(_ = []) {
|
|
15
15
|
const y = e.map((b) => b._id);
|
|
16
16
|
return [
|
|
@@ -25,7 +25,7 @@ function Ge(e, n, a, o) {
|
|
|
25
25
|
_id: o,
|
|
26
26
|
items: p(u == null ? void 0 : u.items).map((_) => ({
|
|
27
27
|
..._,
|
|
28
|
-
orderFrom:
|
|
28
|
+
orderFrom: I.F_ORDER_FROM.enum.ALL
|
|
29
29
|
}))
|
|
30
30
|
}
|
|
31
31
|
}, r.modules.catalog = [...m, i], r) : i ? (i.override.items = {
|
|
@@ -85,7 +85,7 @@ function Le(e, n) {
|
|
|
85
85
|
if (u)
|
|
86
86
|
return T(u, n, 1);
|
|
87
87
|
const s = {
|
|
88
|
-
...
|
|
88
|
+
...N.generator.initMenuV4ItemOverrider(),
|
|
89
89
|
_id: m._id,
|
|
90
90
|
combinationKey: m.combinationKey
|
|
91
91
|
};
|
|
@@ -93,7 +93,7 @@ function Le(e, n) {
|
|
|
93
93
|
});
|
|
94
94
|
return { ...f, items: i };
|
|
95
95
|
}), o = e.variant ? e.variant.variantCombinations.map((f) => T(f, n, 1)) : [], r = {
|
|
96
|
-
...
|
|
96
|
+
...N.generator.initMenuV4ItemOverrider(),
|
|
97
97
|
_id: e._id,
|
|
98
98
|
name: e.name,
|
|
99
99
|
code: e.code,
|
|
@@ -150,10 +150,10 @@ function Je(e, n) {
|
|
|
150
150
|
};
|
|
151
151
|
}
|
|
152
152
|
async function lt(e, n, a, o, r, f = !0) {
|
|
153
|
-
const d =
|
|
153
|
+
const d = k(a), i = f ? Ge(n, d, o, r) : d, m = n.reduce((p, _) => (p[_._id] = i.modules.item.find((y) => y._id === _._id), p), {}), u = n.reduce((p, _) => {
|
|
154
154
|
const y = _._id;
|
|
155
155
|
return p[y] = Le(m[y], e), p;
|
|
156
|
-
}, {}), s =
|
|
156
|
+
}, {}), s = N.getFallbackPrices({
|
|
157
157
|
rawMenu: i,
|
|
158
158
|
items: u,
|
|
159
159
|
catalogId: o || void 0,
|
|
@@ -232,7 +232,7 @@ function pt(e, n, a) {
|
|
|
232
232
|
return r(n, a);
|
|
233
233
|
}
|
|
234
234
|
const q = /* @__PURE__ */ new Map();
|
|
235
|
-
async function
|
|
235
|
+
async function Xe(e, n, a) {
|
|
236
236
|
const o = `${e._id}-${e.updatedAt}-${n || "null"}-${a || "null"}`;
|
|
237
237
|
if (q.has(o))
|
|
238
238
|
return q.get(o);
|
|
@@ -241,8 +241,8 @@ async function Qe(e, n, a) {
|
|
|
241
241
|
}
|
|
242
242
|
async function _t(e, n, a) {
|
|
243
243
|
var d, i;
|
|
244
|
-
const o = await
|
|
245
|
-
const s =
|
|
244
|
+
const o = await Xe(e, n, null), r = [], f = (m, u) => {
|
|
245
|
+
const s = k(m);
|
|
246
246
|
for (const p in u)
|
|
247
247
|
u[p] && (s[p] = u[p]);
|
|
248
248
|
return s;
|
|
@@ -251,8 +251,8 @@ async function _t(e, n, a) {
|
|
|
251
251
|
const u = (d = m.items) == null ? void 0 : d.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 = m.items) == null ? void 0 : i.filter((y) => y._id === a && y.combinationKey), _ = [u, ...p].map((y) => {
|
|
254
|
-
var
|
|
255
|
-
const b = y.combinationKey ? (P = (
|
|
254
|
+
var O, P;
|
|
255
|
+
const b = y.combinationKey ? (P = (O = s == null ? void 0 : s.variant) == null ? void 0 : O.variantCombinations) == null ? void 0 : P.find(
|
|
256
256
|
(x) => x.combinationKey === y.combinationKey
|
|
257
257
|
) : s, F = b && s ? f(s, b) : y;
|
|
258
258
|
return f(F, y);
|
|
@@ -265,7 +265,7 @@ async function _t(e, n, a) {
|
|
|
265
265
|
}
|
|
266
266
|
return r;
|
|
267
267
|
}
|
|
268
|
-
function
|
|
268
|
+
function Qe({
|
|
269
269
|
maxHistorySize: e = 50
|
|
270
270
|
}) {
|
|
271
271
|
const n = Z([]), a = R(-1), o = h(() => a.value > 0), r = h(() => a.value < n.value.length - 1);
|
|
@@ -341,15 +341,15 @@ function et() {
|
|
|
341
341
|
const tt = We(
|
|
342
342
|
"mf-menu-store-v2",
|
|
343
343
|
() => {
|
|
344
|
-
const e = Te(et()), n =
|
|
344
|
+
const e = Te(et()), n = X(), a = He(), o = h(() => e.menu.modules.serveSequence ? M(e.menu.modules.serveSequence, {
|
|
345
345
|
selector: "position"
|
|
346
346
|
}) : []), r = h(() => {
|
|
347
347
|
var t;
|
|
348
348
|
return ((t = n.currentBusiness.value) == null ? void 0 : t.menuVersion) || D.F_MENU_VERSION.v3;
|
|
349
349
|
}), f = h(() => r.value === D.F_MENU_VERSION.v4), d = h(() => {
|
|
350
350
|
const t = e.menu.modules.catalog;
|
|
351
|
-
return
|
|
352
|
-
}), i = h(() => e.menu.modules.catalog.find((t) => t._id === e.currentCatalogId)), m = h(() =>
|
|
351
|
+
return M(t, { selector: "name" });
|
|
352
|
+
}), i = h(() => e.menu.modules.catalog.find((t) => t._id === e.currentCatalogId)), m = h(() => M(p.value.modules.scheduler, { selector: "name" })), u = h(() => e.menu.modules.scheduler.find(
|
|
353
353
|
(t) => t._id === e.currentSchedulerId
|
|
354
354
|
));
|
|
355
355
|
function s(t, l = !0) {
|
|
@@ -373,12 +373,12 @@ const tt = We(
|
|
|
373
373
|
}
|
|
374
374
|
return p.value = t, _.value = !1, y.value = y.value + 1, t;
|
|
375
375
|
}
|
|
376
|
-
const
|
|
376
|
+
const O = te.debounce(b, 200);
|
|
377
377
|
Re(!0).run(() => {
|
|
378
378
|
H(
|
|
379
379
|
() => [e.menu, e.currentCatalogId, e.currentSchedulerId],
|
|
380
380
|
() => {
|
|
381
|
-
_.value ||
|
|
381
|
+
_.value || O();
|
|
382
382
|
}
|
|
383
383
|
);
|
|
384
384
|
});
|
|
@@ -412,23 +412,23 @@ const tt = We(
|
|
|
412
412
|
if (i.value) {
|
|
413
413
|
const c = (l = i.value) == null ? void 0 : l.override.items;
|
|
414
414
|
t = t.filter((g) => {
|
|
415
|
-
var
|
|
416
|
-
const v = (
|
|
415
|
+
var C;
|
|
416
|
+
const v = (C = c == null ? void 0 : c[g._id]) == null ? void 0 : C.find(
|
|
417
417
|
(Fe) => !Fe.combinationKey
|
|
418
418
|
);
|
|
419
|
-
return (v == null ? void 0 : v.orderFrom) !==
|
|
419
|
+
return (v == null ? void 0 : v.orderFrom) !== I.F_ORDER_FROM.enum.NONE;
|
|
420
420
|
});
|
|
421
421
|
}
|
|
422
422
|
return w(t, (c) => c.code || c.name);
|
|
423
423
|
}), se = h(() => {
|
|
424
424
|
const t = e.menu.modules.category, l = w(t, (g) => g.name).reduce(
|
|
425
|
-
(g, v,
|
|
425
|
+
(g, v, C) => (g[v._id] = C, g),
|
|
426
426
|
{ "": 0 }
|
|
427
427
|
), c = e.menu.modules.item;
|
|
428
428
|
return w(
|
|
429
429
|
c,
|
|
430
430
|
(g) => g.code || g.name
|
|
431
|
-
).reduce((g, v,
|
|
431
|
+
).reduce((g, v, C) => (g[v._id] = C + l[v.category || ""], g), {});
|
|
432
432
|
}), ue = h(() => L(A.value, W.value, j.value)), ie = h(() => {
|
|
433
433
|
const t = K.value.item.addon ? [
|
|
434
434
|
{
|
|
@@ -445,19 +445,19 @@ const tt = We(
|
|
|
445
445
|
);
|
|
446
446
|
}), A = h(() => {
|
|
447
447
|
const t = p.value.modules.variant;
|
|
448
|
-
return
|
|
448
|
+
return M(t, { selector: "name" });
|
|
449
449
|
});
|
|
450
450
|
function ce(t = []) {
|
|
451
451
|
const l = t.map((g) => A.value.find((v) => v._id === g)).filter((g) => !!g);
|
|
452
|
-
return
|
|
452
|
+
return N.fullVariantCombination(l).reduce((g, v) => (g[v.combinationKey] = v.selectionName.join(" / "), g), {});
|
|
453
453
|
}
|
|
454
|
-
const le = h(() => w(p.value.modules.group, (t) => t.name)), de = h(() =>
|
|
454
|
+
const le = h(() => w(p.value.modules.group, (t) => t.name)), de = h(() => M(p.value.modules.takeaway, { selector: "name" })), me = h(() => M(e.menu.modules.printDepartment || [], {
|
|
455
455
|
selector: "name"
|
|
456
|
-
})), fe = h(() =>
|
|
456
|
+
})), fe = h(() => M(e.menu.modules.unit, { selector: "name" })), pe = h(() => M(Ae(e.menu.modules.recipe, e.menu.modules.sku), {
|
|
457
457
|
selector: "name"
|
|
458
458
|
})), _e = h(() => e.menu.modules.cookingGuide), ge = h(() => {
|
|
459
459
|
const t = Ke(e.menu.modules.sku);
|
|
460
|
-
return
|
|
460
|
+
return M(t, { selector: "code" });
|
|
461
461
|
}), K = h(() => {
|
|
462
462
|
const t = !e.currentCatalogId, l = r.value === D.F_MENU_VERSION.v4, c = !e.currentSchedulerId, g = {
|
|
463
463
|
create: t && c,
|
|
@@ -540,7 +540,7 @@ const tt = We(
|
|
|
540
540
|
const he = h(() => {
|
|
541
541
|
var l;
|
|
542
542
|
const t = Ue.Country.getCountryFlattenTaxes(
|
|
543
|
-
|
|
543
|
+
X().currentCountry.value
|
|
544
544
|
);
|
|
545
545
|
return {
|
|
546
546
|
systemCode: (l = t[0]) == null ? void 0 : l.systemCode,
|
|
@@ -555,12 +555,12 @@ const tt = We(
|
|
|
555
555
|
}), be = async () => {
|
|
556
556
|
const t = await J.readMenu();
|
|
557
557
|
e.menu = t ?? e.menu, z(null);
|
|
558
|
-
},
|
|
558
|
+
}, Ce = async () => {
|
|
559
559
|
const t = await J.readRestaurantsWithMenu();
|
|
560
|
-
e.restaurants =
|
|
560
|
+
e.restaurants = M(t, { selector: "name" });
|
|
561
561
|
}, z = (t) => {
|
|
562
562
|
e.currentCatalogId = t;
|
|
563
|
-
},
|
|
563
|
+
}, Me = (t) => {
|
|
564
564
|
e.currentSchedulerId = t;
|
|
565
565
|
}, Se = (t) => {
|
|
566
566
|
e.currentCategoryIds = t;
|
|
@@ -574,10 +574,10 @@ const tt = We(
|
|
|
574
574
|
}));
|
|
575
575
|
try {
|
|
576
576
|
if (l || g.some(
|
|
577
|
-
(
|
|
577
|
+
(C) => [S.F_OPERATION_TYPE.delete, S.F_OPERATION_TYPE.deleteMany].includes(C.operation)
|
|
578
578
|
)) {
|
|
579
|
-
const
|
|
580
|
-
if (
|
|
579
|
+
const C = await $e(g, e.menu.modules);
|
|
580
|
+
if (C !== !0) throw new Error(C);
|
|
581
581
|
}
|
|
582
582
|
const v = await Ze.updateMenuModule(e.menu, g);
|
|
583
583
|
return s(v.menu), v;
|
|
@@ -596,7 +596,7 @@ const tt = We(
|
|
|
596
596
|
priceTierSettings: t.priceTierSettings
|
|
597
597
|
};
|
|
598
598
|
return s(l), l;
|
|
599
|
-
}, E =
|
|
599
|
+
}, E = Qe({ maxHistorySize: 50 }), Ie = h(() => E.canUndo.value), ke = h(() => E.canRedo.value);
|
|
600
600
|
return {
|
|
601
601
|
state: e,
|
|
602
602
|
// loading state
|
|
@@ -632,9 +632,9 @@ const tt = We(
|
|
|
632
632
|
// Action
|
|
633
633
|
setMenu: s,
|
|
634
634
|
readMenu: be,
|
|
635
|
-
readRestaurants:
|
|
635
|
+
readRestaurants: Ce,
|
|
636
636
|
selectCatalog: z,
|
|
637
|
-
selectScheduler:
|
|
637
|
+
selectScheduler: Me,
|
|
638
638
|
selectCategory: Se,
|
|
639
639
|
updateMenu: Ee,
|
|
640
640
|
updateMenuSetting: we,
|
|
@@ -645,8 +645,8 @@ const tt = We(
|
|
|
645
645
|
getSelectedTax: ye,
|
|
646
646
|
mapVariant: ce,
|
|
647
647
|
// history
|
|
648
|
-
canUndoHistory:
|
|
649
|
-
canRedoHistory:
|
|
648
|
+
canUndoHistory: Ie,
|
|
649
|
+
canRedoHistory: ke,
|
|
650
650
|
undoHistory: () => {
|
|
651
651
|
const t = E.undo();
|
|
652
652
|
t && s(t, !1);
|
|
@@ -660,7 +660,7 @@ const tt = We(
|
|
|
660
660
|
}
|
|
661
661
|
};
|
|
662
662
|
}
|
|
663
|
-
),
|
|
663
|
+
), Q = /* @__PURE__ */ Oe({
|
|
664
664
|
__name: "AddSubcategoryDialogContentComponent",
|
|
665
665
|
props: {
|
|
666
666
|
initialValue: {}
|
|
@@ -684,17 +684,17 @@ const tt = We(
|
|
|
684
684
|
}
|
|
685
685
|
), (d, i) => {
|
|
686
686
|
const m = B("fm-text-field"), u = B("FmForm");
|
|
687
|
-
return
|
|
688
|
-
onValidationSuccess: i[1] || (i[1] = (s) =>
|
|
687
|
+
return Ne(), Ve(u, {
|
|
688
|
+
onValidationSuccess: i[1] || (i[1] = (s) => V(f)("primary"))
|
|
689
689
|
}, {
|
|
690
690
|
default: Pe(() => [
|
|
691
691
|
xe(m, {
|
|
692
692
|
modelValue: o.value,
|
|
693
693
|
"onUpdate:modelValue": i[0] || (i[0] = (s) => o.value = s),
|
|
694
|
-
rules: [(s) => !!s ||
|
|
694
|
+
rules: [(s) => !!s || V(a)("menu.subcategory.dialog.add.name.required")],
|
|
695
695
|
autofocus: "",
|
|
696
|
-
label:
|
|
697
|
-
placeholder:
|
|
696
|
+
label: V(a)("menu.subcategory.dialog.add.name.label"),
|
|
697
|
+
placeholder: V(a)("menu.subcategory.dialog.add.name.placeholder")
|
|
698
698
|
}, null, 8, ["modelValue", "rules", "label", "placeholder"])
|
|
699
699
|
]),
|
|
700
700
|
_: 1
|
|
@@ -711,7 +711,7 @@ const tt = We(
|
|
|
711
711
|
const u = R(!1);
|
|
712
712
|
e.open({
|
|
713
713
|
title: o("menu.subcategory.manager.dialog.add.title"),
|
|
714
|
-
contentComponent:
|
|
714
|
+
contentComponent: Q,
|
|
715
715
|
primaryActions: {
|
|
716
716
|
text: o("menu.subcategory.manager.dialog.add.action"),
|
|
717
717
|
close: !1,
|
|
@@ -726,7 +726,7 @@ const tt = We(
|
|
|
726
726
|
try {
|
|
727
727
|
u.value = !0;
|
|
728
728
|
const p = {
|
|
729
|
-
module:
|
|
729
|
+
module: I.F_MENU_MODULE_V4_KEY.enum.subCategory,
|
|
730
730
|
operation: S.F_OPERATION_TYPE.create,
|
|
731
731
|
data: {
|
|
732
732
|
name: s,
|
|
@@ -742,7 +742,7 @@ const tt = We(
|
|
|
742
742
|
function d(u) {
|
|
743
743
|
e.open({
|
|
744
744
|
title: o("menu.subcategory.manager.dialog.update.title"),
|
|
745
|
-
contentComponent:
|
|
745
|
+
contentComponent: Q,
|
|
746
746
|
contentComponentProps: {
|
|
747
747
|
initialValue: u.name
|
|
748
748
|
},
|
|
@@ -757,7 +757,7 @@ const tt = We(
|
|
|
757
757
|
}).onPrimary(async (s) => {
|
|
758
758
|
if (!s) return;
|
|
759
759
|
const p = {
|
|
760
|
-
module:
|
|
760
|
+
module: I.F_MENU_MODULE_V4_KEY.enum.subCategory,
|
|
761
761
|
operation: S.F_OPERATION_TYPE.update,
|
|
762
762
|
data: { ...u, name: s ?? u.name }
|
|
763
763
|
};
|
|
@@ -778,7 +778,7 @@ const tt = We(
|
|
|
778
778
|
}
|
|
779
779
|
}).onPrimary(async () => {
|
|
780
780
|
const s = {
|
|
781
|
-
module:
|
|
781
|
+
module: I.F_MENU_MODULE_V4_KEY.enum.subCategory,
|
|
782
782
|
operation: S.F_OPERATION_TYPE.delete,
|
|
783
783
|
data: u._id
|
|
784
784
|
};
|
|
@@ -787,7 +787,7 @@ const tt = We(
|
|
|
787
787
|
}
|
|
788
788
|
async function m(u) {
|
|
789
789
|
const s = {
|
|
790
|
-
module:
|
|
790
|
+
module: I.F_MENU_MODULE_V4_KEY.enum.subCategory,
|
|
791
791
|
operation: S.F_OPERATION_TYPE.rearrange,
|
|
792
792
|
data: u
|
|
793
793
|
};
|
|
@@ -808,6 +808,6 @@ export {
|
|
|
808
808
|
_t as f,
|
|
809
809
|
dt as g,
|
|
810
810
|
lt as m,
|
|
811
|
-
|
|
811
|
+
Xe as o,
|
|
812
812
|
tt as u
|
|
813
813
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import "./menu-
|
|
1
|
+
import { c as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-D24MTd_K.js";
|
|
2
|
+
import "./menu-CkxpNa3P.js";
|
|
3
3
|
var Z = {
|
|
4
4
|
defaultAmount: 0,
|
|
5
5
|
defaultCurrency: "USD",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineStore as Q } from "pinia";
|
|
2
2
|
import { defineComponent as T, computed as U, ref as h, watch as L, resolveComponent as V, createBlock as W, openBlock as F, withCtx as w, createVNode as m, createElementVNode as f, normalizeClass as H, 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, J as k, Q as $, G as I, A as E, K as ne, a5 as ae, M as C, I as D, u as oe } from "./menu-
|
|
3
|
+
import { a6 as P, a7 as te, a4 as B, J as k, Q as $, G as I, A as E, K as ne, a5 as ae, M as C, I as D, u as oe } from "./menu-CkxpNa3P.js";
|
|
4
4
|
import { useI18n as N } 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";
|