@feedmepos/mf-menu 0.32.59-dev.1 → 0.32.60-dev.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-CuoWrOYR.js → App-21Fh45As.js} +5 -5
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-CSWCYnxT.js → ApplyProduct.vue_vue_type_script_setup_true_lang-l0PLyvfS.js} +3 -3
- package/dist/{ApplyProductDialog.vue_vue_type_script_setup_true_lang-BKulG5e9.js → ApplyProductDialog.vue_vue_type_script_setup_true_lang-D9F_qZUW.js} +2 -2
- package/dist/{Catalog-DRsec6Ig.js → Catalog-BNFBfeVl.js} +6 -6
- package/dist/{Category-BXhHAEwB.js → Category-D46Zh0U2.js} +4 -4
- package/dist/{Category-hvh65gqu.js → Category-KedP0bLk.js} +4 -4
- package/dist/{CookingGuide-Do_0Tgtz.js → CookingGuide-L_yCYzVo.js} +4 -4
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-COva6_0H.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-CWnwBGb4.js} +1 -1
- package/dist/{Group-BPtZLAc5.js → Group-BnogWBW3.js} +3 -3
- package/dist/{Group-vIkVP4_L.js → Group-C6f8CbIA.js} +1 -1
- package/dist/{Group.vue_vue_type_script_setup_true_lang-C1WZcG7p.js → Group.vue_vue_type_script_setup_true_lang-0YR_ZV8F.js} +6 -6
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BcO8F2vF.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CXjapKCh.js} +5 -5
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-BKY5NE8j.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-CFjS_1Ws.js} +7 -7
- package/dist/{Ingredient-7pgb1jXU.js → Ingredient-fTfAFfrQ.js} +3 -3
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-fQQww7rD.js → InventoryBinding.vue_vue_type_script_setup_true_lang-BUZjQ6V4.js} +2 -2
- package/dist/{LinkProductSideSheet-DhAdC4yD.js → LinkProductSideSheet-CQRvO3h0.js} +3 -3
- package/dist/{MenuSetting-C3AZSkU8.js → MenuSetting-Dh8ZUdTV.js} +6 -6
- package/dist/{OrderPacing-BWwW1-0C.js → OrderPacing-BAyNtquU.js} +5 -5
- package/dist/{PrintRoute-8Sld-z45.js → PrintRoute-Cwjj0Yjh.js} +4 -4
- package/dist/{Product-ClgtoJ4M.js → Product-DyPD27o5.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-BdpdSdiU.js → Product.vue_vue_type_script_setup_true_lang-D8VJf6ck.js} +12 -12
- package/dist/{ProductInternalTools-NLcBF8x9.js → ProductInternalTools-CjtfIem0.js} +5 -5
- package/dist/{Products-B_CDqiPA.js → Products-B4zwJdTK.js} +36 -36
- package/dist/{Publish-C_XoFLpi.js → Publish-B-d-HDdC.js} +3 -3
- package/dist/{Recipe-DPpbkJJ-.js → Recipe-B6XhSSjL.js} +4 -4
- package/dist/{RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-DLu_r24v.js → RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-B5NNOtuC.js} +1 -1
- package/dist/{RuleView.vue_vue_type_script_setup_true_lang-DCU4XcKB.js → RuleView.vue_vue_type_script_setup_true_lang-C7MR2OwK.js} +2 -2
- package/dist/{Scheduler-D-ftSnpH.js → Scheduler-aTMeXc1J.js} +3 -3
- package/dist/{ServingSequence-xctckEc8.js → ServingSequence-u10_LImJ.js} +3 -3
- package/dist/{Setting-CFUt7N5p.js → Setting-mqRO9M3A.js} +5 -5
- package/dist/{Subcategory-DmXgEK8_.js → Subcategory-Dws247zO.js} +5 -5
- package/dist/{Takeaway-hEiQ76OQ.js → Takeaway-l6t2P0CM.js} +1 -1
- package/dist/{Takeaway-Cl8TtYQt.js → Takeaway-xrF-l_5-.js} +4 -4
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-DLEXA5q4.js → Takeaway.vue_vue_type_script_setup_true_lang-CTGqjfPL.js} +5 -5
- package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-D1ekqzGu.js → Thumbnail.vue_vue_type_script_setup_true_lang-ny91N8sC.js} +4 -4
- package/dist/{TranslationFieldSection.vue_vue_type_script_setup_true_lang-lQ6K_B42.js → TranslationFieldSection.vue_vue_type_script_setup_true_lang-D2i3w3vg.js} +1 -1
- package/dist/{TranslationSideSheet.vue_vue_type_script_setup_true_lang-EYE9lTDq.js → TranslationSideSheet.vue_vue_type_script_setup_true_lang-YLRlDi4-.js} +2 -2
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DkS_zLfh.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-D5YGS6OF.js} +15 -13
- package/dist/{Unit-BIJJFFVK.js → Unit-CWgfilET.js} +2 -2
- package/dist/{Variant-C6BEFE5y.js → Variant-Bz1KfxAa.js} +3 -3
- package/dist/{_id_-oWNARmjW.js → _id_-L2rFq9_N.js} +9 -9
- package/dist/{app-CY6He4ir.js → app-B-k_3Xub.js} +32 -32
- package/dist/{app-CUIb4tFD.js → app-CHE3ax6p.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/components/feature/CategoryManager/CategoriesSelector.vue.d.ts +1 -1
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{linked-status-DKZmj6yt.js → linked-status-BJ87x0uc.js} +2 -2
- package/dist/assets/{menu-export-rem2EZDy.js → menu-export-JPnS6OhL.js} +2 -2
- package/dist/assets/{override-menu-DGGb81Ot.js → override-menu-Bbcn8K2b.js} +2 -2
- package/dist/assets/{validate-menu-BFQqxuL3.js → validate-menu-DV2Q2SYz.js} +2 -2
- package/dist/{catalog-0evWni57.js → catalog-DaO8QBSU.js} +1 -1
- package/dist/{catalogSetting-B9n2n6aY.js → catalogSetting-Bks6N0Pq.js} +1 -1
- package/dist/{currency-BljMVbV1.js → currency-BVqmQ8Pm.js} +1 -1
- package/dist/{dayjs.min-BY-Kz7Va.js → dayjs.min-C5JlG2KX.js} +2 -2
- package/dist/{index-BZurrx-m.js → index-B__5-vsM.js} +4 -4
- package/dist/{index-BskNOGNo.js → index-CCO0ZsOp.js} +5 -5
- package/dist/{index.vue_vue_type_script_setup_true_lang-Czb5OWme.js → index.vue_vue_type_script_setup_true_lang-DsMFmYGf.js} +5 -5
- package/dist/{item-CGT_JY44.js → item-DBtmeIW9.js} +19 -17
- package/dist/{jszip.min-VVBJ90FJ.js → jszip.min-BIg_yHC8.js} +3 -3
- package/dist/{memberPricing-CvS4GSKv.js → memberPricing-C0qx6TEN.js} +1 -1
- package/dist/{menu-Bo4qiWLU.js → menu-DzWUnx8X.js} +1 -1
- package/dist/{menuV2-CWEWpH36.js → menuV2-COSJ__9Q.js} +83 -83
- package/dist/{order_pacing-p0zVgK09.js → order_pacing-C8jdjM6u.js} +5 -5
- package/dist/packages/shared/src/components/form/SelectFilter.vue.d.ts +1 -1
- package/dist/{priceTier-dg9K98Ii.js → priceTier-BP2_Mn24.js} +1 -1
- package/dist/{rules-DI69fLXw.js → rules-4DOmc5Ho.js} +3 -3
- package/dist/{scheduler-DYcDjcRt.js → scheduler-Dn9jQp6E.js} +4 -4
- package/dist/{toExcel-BPc8U7VF.js → toExcel-CXdU7vZw.js} +2 -2
- package/dist/{unit-DUgEILRU.js → unit-UV-cxB98.js} +2 -2
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
var We = Object.defineProperty;
|
|
2
2
|
var ze = (e, t, n) => t in e ? We(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var ne = (e, t, n) => ze(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
-
import { I as ae, G as I, A as T, U as ue, ax as re, J as
|
|
5
|
-
import { defineStore as
|
|
6
|
-
import { shallowRef as j, ref as H, computed as
|
|
4
|
+
import { I as ae, G as I, A as T, U as ue, ax as re, J as q, H as ie, aj as x, c as z, a0 as D, au as oe, ay as Le, az as Be, z as qe, am as He, aA as Ge, aB as Je, ah as Ye } from "./index.vue_vue_type_script_setup_true_lang-DsMFmYGf.js";
|
|
5
|
+
import { defineStore as Qe } from "pinia";
|
|
6
|
+
import { shallowRef as j, ref as H, computed as b, shallowReactive as Xe, effectScope as Ze, watch as et } from "vue";
|
|
7
7
|
import { useCoreStore as se } from "@feedmepos/mf-common";
|
|
8
8
|
import { useSnackbar as tt } from "@feedmepos/ui-library";
|
|
9
|
-
const nt = "/assets/linked-status-
|
|
9
|
+
const nt = "/assets/linked-status-BJ87x0uc.js", rt = "/assets/override-menu-Bbcn8K2b.js";
|
|
10
10
|
function ot(e) {
|
|
11
11
|
var s;
|
|
12
12
|
const t = I(e), n = (s = t.variant) == null ? void 0 : s.variantCombinations;
|
|
@@ -62,7 +62,7 @@ function F(e, t, n) {
|
|
|
62
62
|
return a ? d = ((g = l.items) == null ? void 0 : g.map((f) => {
|
|
63
63
|
var h;
|
|
64
64
|
const v = (h = a.items) == null ? void 0 : h.find(
|
|
65
|
-
(
|
|
65
|
+
(S) => S._id === f._id && S.combinationKey === f.combinationKey
|
|
66
66
|
);
|
|
67
67
|
return F(v || f, t, n + 1);
|
|
68
68
|
})) ?? [] : d = ((y = l.items) == null ? void 0 : y.map((f) => F(f, t, n + 1))) ?? [], {
|
|
@@ -104,7 +104,7 @@ function at(e, t) {
|
|
|
104
104
|
};
|
|
105
105
|
return [...s, o];
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function G(e, t) {
|
|
108
108
|
var s;
|
|
109
109
|
if (!t)
|
|
110
110
|
return e;
|
|
@@ -117,7 +117,7 @@ function B(e, t) {
|
|
|
117
117
|
const c = (g = u == null ? void 0 : u.items) == null ? void 0 : g.find(
|
|
118
118
|
(y) => y._id === d._id && y.combinationKey === d.combinationKey
|
|
119
119
|
);
|
|
120
|
-
return
|
|
120
|
+
return G(d, c);
|
|
121
121
|
}), o;
|
|
122
122
|
}), n;
|
|
123
123
|
}
|
|
@@ -131,7 +131,7 @@ function ut(e, t) {
|
|
|
131
131
|
);
|
|
132
132
|
if (!u)
|
|
133
133
|
throw new Error(`Item overrider not found - ${o._id} - ${o.combinationKey}`);
|
|
134
|
-
return
|
|
134
|
+
return G(u, o);
|
|
135
135
|
})
|
|
136
136
|
});
|
|
137
137
|
const s = n.find((o) => !o.combinationKey);
|
|
@@ -145,14 +145,14 @@ function ut(e, t) {
|
|
|
145
145
|
const d = (c = u == null ? void 0 : u.items) == null ? void 0 : c.find(
|
|
146
146
|
(g) => g._id === a._id && g.combinationKey === a.combinationKey
|
|
147
147
|
);
|
|
148
|
-
return
|
|
148
|
+
return G(a, d);
|
|
149
149
|
}), o;
|
|
150
150
|
}), {
|
|
151
151
|
...t,
|
|
152
152
|
price: (s == null ? void 0 : s.price) || t.price
|
|
153
153
|
};
|
|
154
154
|
}
|
|
155
|
-
async function
|
|
155
|
+
async function Vt(e, t, n, s, o, u = !0) {
|
|
156
156
|
const l = I(n), a = u ? st(t, l, s, o) : l, d = t.reduce((y, f) => (y[f._id] = a.modules.item.find((v) => v._id === f._id), y), {}), c = t.reduce((y, f) => {
|
|
157
157
|
const v = f._id;
|
|
158
158
|
return y[v] = at(d[v], e), y;
|
|
@@ -170,7 +170,7 @@ async function Dt(e, t, n, s, o, u = !0) {
|
|
|
170
170
|
};
|
|
171
171
|
});
|
|
172
172
|
}
|
|
173
|
-
function
|
|
173
|
+
function Dt(e, t) {
|
|
174
174
|
if (e.length === 0) return "";
|
|
175
175
|
const n = e == null ? void 0 : e.split("variant");
|
|
176
176
|
return ((n == null ? void 0 : n.reduce((o, u) => {
|
|
@@ -204,13 +204,13 @@ async function ce(e, t, n) {
|
|
|
204
204
|
schedulerId: n
|
|
205
205
|
});
|
|
206
206
|
}
|
|
207
|
-
const
|
|
207
|
+
const B = /* @__PURE__ */ new Map();
|
|
208
208
|
async function it(e, t, n) {
|
|
209
209
|
const s = `${e._id}-${e.updatedAt}-${t || "null"}-${n || "null"}`;
|
|
210
|
-
if (
|
|
211
|
-
return
|
|
210
|
+
if (B.has(s))
|
|
211
|
+
return B.get(s);
|
|
212
212
|
const o = await ce(e, t, n);
|
|
213
|
-
return
|
|
213
|
+
return B.set(s, o), o;
|
|
214
214
|
}
|
|
215
215
|
async function Kt(e, t, n) {
|
|
216
216
|
var l, a;
|
|
@@ -227,8 +227,8 @@ async function Kt(e, t, n) {
|
|
|
227
227
|
var w, C;
|
|
228
228
|
const h = v.combinationKey ? (C = (w = g == null ? void 0 : g.variant) == null ? void 0 : w.variantCombinations) == null ? void 0 : C.find(
|
|
229
229
|
(E) => E.combinationKey === v.combinationKey
|
|
230
|
-
) : g,
|
|
231
|
-
return u(
|
|
230
|
+
) : g, S = h && g ? u(g, h) : v;
|
|
231
|
+
return u(S, v);
|
|
232
232
|
});
|
|
233
233
|
o.push({
|
|
234
234
|
group: d,
|
|
@@ -314,8 +314,8 @@ function dt(e, t, n) {
|
|
|
314
314
|
const s = { _t: "a" }, o = ((f = n == null ? void 0 : n.arrays) == null ? void 0 : f.detectMove) !== !1, u = ((v = n == null ? void 0 : n.arrays) == null ? void 0 : v.includeValueOnMove) === !0, l = n == null ? void 0 : n.objectHash;
|
|
315
315
|
let a = o ? lt(e, t, l) : [];
|
|
316
316
|
if (!l && e.length === t.length && e.length > 0 && a.length < e.length) {
|
|
317
|
-
const h = k(e[0]) || Array.isArray(e[0]),
|
|
318
|
-
if (h ||
|
|
317
|
+
const h = k(e[0]) || Array.isArray(e[0]), S = a.length > 0;
|
|
318
|
+
if (h || S) {
|
|
319
319
|
a = [];
|
|
320
320
|
for (let w = 0; w < e.length; w++)
|
|
321
321
|
a.push({ leftIndex: w, rightIndex: w });
|
|
@@ -326,11 +326,11 @@ function dt(e, t, n) {
|
|
|
326
326
|
for (const h of a)
|
|
327
327
|
c.set(h.leftIndex, h.rightIndex), g.set(h.rightIndex, h.leftIndex);
|
|
328
328
|
for (let h = 0; h < e.length; h++) {
|
|
329
|
-
const
|
|
330
|
-
if (
|
|
331
|
-
const w = J(e[h], t[
|
|
332
|
-
if (w !== void 0 && (s[
|
|
333
|
-
const C = `_${h}`, E = u ? [e[h],
|
|
329
|
+
const S = c.get(h);
|
|
330
|
+
if (S !== void 0) {
|
|
331
|
+
const w = J(e[h], t[S], n);
|
|
332
|
+
if (w !== void 0 && (s[S] = w), o && S !== h) {
|
|
333
|
+
const C = `_${h}`, E = u ? [e[h], S, K] : ["", S, K];
|
|
334
334
|
s[C] = E;
|
|
335
335
|
}
|
|
336
336
|
} else {
|
|
@@ -461,7 +461,7 @@ function gt(e) {
|
|
|
461
461
|
if (Array.isArray(o) && o.length === 1)
|
|
462
462
|
t[`_${s}`] = [o[0], M, M];
|
|
463
463
|
else {
|
|
464
|
-
const u =
|
|
464
|
+
const u = Q(o);
|
|
465
465
|
u !== void 0 && (t[n] = u);
|
|
466
466
|
}
|
|
467
467
|
}
|
|
@@ -474,13 +474,13 @@ function ht(e) {
|
|
|
474
474
|
if (Array.isArray(s))
|
|
475
475
|
s.length === 1 ? t[n] = [s[0], M, M] : s.length === 3 && s[2] === M ? t[n] = [s[0]] : s.length === 2 && (t[n] = [s[1], s[0]]);
|
|
476
476
|
else {
|
|
477
|
-
const o =
|
|
477
|
+
const o = Q(s);
|
|
478
478
|
o !== void 0 && (t[n] = o);
|
|
479
479
|
}
|
|
480
480
|
}
|
|
481
481
|
return t;
|
|
482
482
|
}
|
|
483
|
-
function
|
|
483
|
+
function Q(e) {
|
|
484
484
|
if (e !== void 0) {
|
|
485
485
|
if (Array.isArray(e)) {
|
|
486
486
|
if (e.length === 1)
|
|
@@ -496,7 +496,7 @@ function Z(e) {
|
|
|
496
496
|
}
|
|
497
497
|
}
|
|
498
498
|
function de(e) {
|
|
499
|
-
return
|
|
499
|
+
return Q(e);
|
|
500
500
|
}
|
|
501
501
|
function pt(e, t, n) {
|
|
502
502
|
const s = de(t);
|
|
@@ -523,20 +523,20 @@ class _t {
|
|
|
523
523
|
return O(t);
|
|
524
524
|
}
|
|
525
525
|
}
|
|
526
|
-
function
|
|
526
|
+
function bt(e) {
|
|
527
527
|
return new _t(e);
|
|
528
528
|
}
|
|
529
|
-
function
|
|
529
|
+
function St({
|
|
530
530
|
maxHistorySize: e = 10
|
|
531
531
|
}) {
|
|
532
|
-
const t =
|
|
532
|
+
const t = bt({
|
|
533
533
|
objectHash: (v) => v._id || v.id,
|
|
534
534
|
arrays: {
|
|
535
535
|
detectMove: !0,
|
|
536
536
|
includeValueOnMove: !1
|
|
537
537
|
},
|
|
538
538
|
cloneDiffValues: !1
|
|
539
|
-
}), n = j(null), s = j([]), o = H(-1), u = j(null), l =
|
|
539
|
+
}), n = j(null), s = j([]), o = H(-1), u = j(null), l = b(() => o.value > 0), a = b(() => o.value < s.value.length - 1);
|
|
540
540
|
function d(v) {
|
|
541
541
|
if (n.value === null) {
|
|
542
542
|
n.value = I(v), u.value = I(v), s.value = [{ delta: null }], o.value = 0;
|
|
@@ -544,16 +544,16 @@ function bt({
|
|
|
544
544
|
}
|
|
545
545
|
const h = t.diff(u.value, v);
|
|
546
546
|
if (o.value < s.value.length - 1 && (s.value = s.value.slice(0, o.value + 1)), s.value.push({ delta: h }), o.value++, u.value = I(v), s.value.length > e) {
|
|
547
|
-
const
|
|
548
|
-
|
|
547
|
+
const S = s.value[1].delta;
|
|
548
|
+
S && n.value && (n.value = t.patch(I(n.value), S)), s.value.shift(), o.value--;
|
|
549
549
|
}
|
|
550
550
|
}
|
|
551
551
|
function c(v) {
|
|
552
552
|
if (!n.value || v < 0 || v >= s.value.length)
|
|
553
553
|
return;
|
|
554
554
|
let h = I(n.value);
|
|
555
|
-
for (let
|
|
556
|
-
const w = s.value[
|
|
555
|
+
for (let S = 1; S <= v; S++) {
|
|
556
|
+
const w = s.value[S];
|
|
557
557
|
w.delta && (h = t.patch(h, w.delta));
|
|
558
558
|
}
|
|
559
559
|
return h;
|
|
@@ -586,7 +586,7 @@ function bt({
|
|
|
586
586
|
}
|
|
587
587
|
const wt = {
|
|
588
588
|
async updateMenuModule(e, t) {
|
|
589
|
-
const n =
|
|
589
|
+
const n = q.RequestRunner.operation(t, e.modules);
|
|
590
590
|
if (n.validateError.length > 0)
|
|
591
591
|
throw new Error(n.validateError.join(`
|
|
592
592
|
`));
|
|
@@ -634,18 +634,18 @@ function Mt() {
|
|
|
634
634
|
}
|
|
635
635
|
};
|
|
636
636
|
}
|
|
637
|
-
const Pt =
|
|
637
|
+
const Pt = Qe(
|
|
638
638
|
"mf-menu-store-v2",
|
|
639
639
|
() => {
|
|
640
|
-
const e =
|
|
640
|
+
const e = Xe(Mt()), t = se(), n = tt(), s = b(() => e.menu.modules.serveSequence ? x(e.menu.modules.serveSequence, {
|
|
641
641
|
selector: "position"
|
|
642
|
-
}) : []), o =
|
|
642
|
+
}) : []), o = b(() => {
|
|
643
643
|
var r;
|
|
644
644
|
return ((r = t.currentBusiness.value) == null ? void 0 : r.menuVersion) || z.F_MENU_VERSION.v3;
|
|
645
|
-
}), u =
|
|
645
|
+
}), u = b(() => o.value === z.F_MENU_VERSION.v4), l = b(() => {
|
|
646
646
|
const r = e.menu.modules.catalog;
|
|
647
647
|
return x(r, { selector: "name" });
|
|
648
|
-
}), a =
|
|
648
|
+
}), a = b(() => {
|
|
649
649
|
var i;
|
|
650
650
|
let r = e.menu.modules.catalog.find(
|
|
651
651
|
(m) => m._id === e.currentCatalogId
|
|
@@ -656,11 +656,11 @@ const Pt = Ze(
|
|
|
656
656
|
items: e.menu.modules.item,
|
|
657
657
|
...e.currentRestaurantAttrParams ?? {}
|
|
658
658
|
})), r;
|
|
659
|
-
}), d =
|
|
659
|
+
}), d = b(() => x(y.value.modules.scheduler, { selector: "name" })), c = b(() => e.menu.modules.scheduler.find(
|
|
660
660
|
(r) => r._id === e.currentSchedulerId
|
|
661
661
|
));
|
|
662
662
|
function g(r, i = !0) {
|
|
663
|
-
e.menu = { ...r, _rev: e.menu._rev }, i &&
|
|
663
|
+
e.menu = { ...r, _rev: e.menu._rev }, i && V.push(e.menu);
|
|
664
664
|
}
|
|
665
665
|
const y = j(me()), f = H(!1), v = H(1);
|
|
666
666
|
async function h() {
|
|
@@ -699,16 +699,16 @@ const Pt = Ze(
|
|
|
699
699
|
}
|
|
700
700
|
const w = ie.debounce(h, 200);
|
|
701
701
|
let C = null, E = null;
|
|
702
|
-
function
|
|
703
|
-
E && (E(), E = null), C && C.stop(), C =
|
|
702
|
+
function X() {
|
|
703
|
+
E && (E(), E = null), C && C.stop(), C = Ze(!0), E = C.run(() => et(
|
|
704
704
|
() => [e.menu, e.currentCatalogId, e.currentSchedulerId],
|
|
705
705
|
() => {
|
|
706
706
|
f.value || w();
|
|
707
707
|
}
|
|
708
708
|
)) || null;
|
|
709
709
|
}
|
|
710
|
-
|
|
711
|
-
const fe =
|
|
710
|
+
X();
|
|
711
|
+
const fe = b(() => [
|
|
712
712
|
{
|
|
713
713
|
label: "Main",
|
|
714
714
|
value: null
|
|
@@ -717,7 +717,7 @@ const Pt = Ze(
|
|
|
717
717
|
label: r.name,
|
|
718
718
|
value: r._id
|
|
719
719
|
}))
|
|
720
|
-
]),
|
|
720
|
+
]), Z = b(() => {
|
|
721
721
|
const r = y.value.modules.category;
|
|
722
722
|
return [
|
|
723
723
|
...U.value.item.addon ? [
|
|
@@ -727,12 +727,12 @@ const Pt = Ze(
|
|
|
727
727
|
position: 0
|
|
728
728
|
}
|
|
729
729
|
] : [],
|
|
730
|
-
...
|
|
730
|
+
...D(r, (i) => i.name)
|
|
731
731
|
];
|
|
732
|
-
}), ve =
|
|
732
|
+
}), ve = b(() => {
|
|
733
733
|
const r = y.value.modules.subCategory || [];
|
|
734
|
-
return
|
|
735
|
-
}), ee =
|
|
734
|
+
return D(r, (i) => i.name);
|
|
735
|
+
}), ee = b(() => {
|
|
736
736
|
var i;
|
|
737
737
|
let r = y.value.modules.item;
|
|
738
738
|
if (a.value) {
|
|
@@ -745,17 +745,17 @@ const Pt = Ze(
|
|
|
745
745
|
return (_ == null ? void 0 : _.orderFrom) !== ue.enum.NONE;
|
|
746
746
|
});
|
|
747
747
|
}
|
|
748
|
-
return
|
|
749
|
-
}), ye =
|
|
750
|
-
const r = e.menu.modules.category, i =
|
|
748
|
+
return D(r, (m) => m.code || m.name);
|
|
749
|
+
}), ye = b(() => {
|
|
750
|
+
const r = e.menu.modules.category, i = D(r, (p) => p.name).reduce(
|
|
751
751
|
(p, _, A) => (p[_._id] = A, p),
|
|
752
752
|
{ "": 0 }
|
|
753
753
|
), m = e.menu.modules.item;
|
|
754
|
-
return
|
|
754
|
+
return D(
|
|
755
755
|
m,
|
|
756
756
|
(p) => p.code || p.name
|
|
757
757
|
).reduce((p, _, A) => (p[_._id] = A + i[_.category || ""], p), {});
|
|
758
|
-
}), ge =
|
|
758
|
+
}), ge = b(() => oe(N.value, Z.value, ee.value)), he = b(() => {
|
|
759
759
|
const r = U.value.item.addon ? [
|
|
760
760
|
{
|
|
761
761
|
_id: e.currentCatalogId ? "" : null,
|
|
@@ -769,7 +769,7 @@ const Pt = Ze(
|
|
|
769
769
|
r,
|
|
770
770
|
e.menu.modules.item
|
|
771
771
|
);
|
|
772
|
-
}), N =
|
|
772
|
+
}), N = b(() => {
|
|
773
773
|
const r = y.value.modules.variant;
|
|
774
774
|
return x(r, { selector: "name" });
|
|
775
775
|
});
|
|
@@ -777,14 +777,14 @@ const Pt = Ze(
|
|
|
777
777
|
const i = r.map((p) => N.value.find((_) => _._id === p)).filter((p) => !!p);
|
|
778
778
|
return T.fullVariantCombination(i).reduce((p, _) => (p[_.combinationKey] = _.selectionName.join(" / "), p), {});
|
|
779
779
|
}
|
|
780
|
-
const _e =
|
|
780
|
+
const _e = b(() => D(y.value.modules.group, (r) => r.name)), be = b(() => x(y.value.modules.takeaway, { selector: "name" })), Se = b(() => x(e.menu.modules.printDepartment || [], {
|
|
781
781
|
selector: "name"
|
|
782
|
-
})), we =
|
|
782
|
+
})), we = b(() => x(e.menu.modules.unit, { selector: "name" })), Me = b(() => x(Le(e.menu.modules.recipe, e.menu.modules.sku), {
|
|
783
783
|
selector: "name"
|
|
784
|
-
})), Ae =
|
|
785
|
-
const r =
|
|
784
|
+
})), Ae = b(() => e.menu.modules.cookingGuide), Ie = b(() => {
|
|
785
|
+
const r = Be(e.menu.modules.sku);
|
|
786
786
|
return x(r, { selector: "code" });
|
|
787
|
-
}), Ce =
|
|
787
|
+
}), Ce = b(() => {
|
|
788
788
|
const r = /* @__PURE__ */ new Map();
|
|
789
789
|
return e.menu.modules.item.forEach((i) => {
|
|
790
790
|
var m, p;
|
|
@@ -792,7 +792,7 @@ const Pt = Ze(
|
|
|
792
792
|
_.code && r.set(_.code, (r.get(_.code) || 0) + 1);
|
|
793
793
|
});
|
|
794
794
|
}), r;
|
|
795
|
-
}), U =
|
|
795
|
+
}), U = b(() => {
|
|
796
796
|
const r = !e.currentCatalogId, i = o.value === z.F_MENU_VERSION.v4, m = !e.currentSchedulerId, p = {
|
|
797
797
|
create: r && m,
|
|
798
798
|
edit: r && m,
|
|
@@ -875,9 +875,9 @@ const Pt = Ze(
|
|
|
875
875
|
function ke(r, i, m) {
|
|
876
876
|
return (r ?? i ?? []).map((p) => W(p)).find((p) => m.some((_) => _.value === p));
|
|
877
877
|
}
|
|
878
|
-
const Re =
|
|
878
|
+
const Re = b(() => {
|
|
879
879
|
var p;
|
|
880
|
-
const r = ["SV5", "SV10"], i =
|
|
880
|
+
const r = ["SV5", "SV10"], i = qe.Country.getCountryFlattenTaxes(
|
|
881
881
|
se().currentCountry.value
|
|
882
882
|
), m = i.filter((_) => u.value || !r.includes(_.taxCode)).map((_) => ({
|
|
883
883
|
label: `${_.name} (${He(_.rate)}%)`,
|
|
@@ -902,9 +902,9 @@ const Pt = Ze(
|
|
|
902
902
|
});
|
|
903
903
|
}, te = (r) => {
|
|
904
904
|
e.currentCatalogId = r;
|
|
905
|
-
}, De = (r) => {
|
|
906
|
-
e.currentSchedulerId = r;
|
|
907
905
|
}, Ve = (r) => {
|
|
906
|
+
e.currentSchedulerId = r;
|
|
907
|
+
}, De = (r) => {
|
|
908
908
|
e.currentCategoryIds = r;
|
|
909
909
|
}, Te = (r) => {
|
|
910
910
|
e.currentRestaurantAttrParams = r;
|
|
@@ -918,9 +918,9 @@ const Pt = Ze(
|
|
|
918
918
|
}));
|
|
919
919
|
try {
|
|
920
920
|
if (i || p.some(
|
|
921
|
-
(A) => [
|
|
921
|
+
(A) => [q.F_OPERATION_TYPE.delete, q.F_OPERATION_TYPE.deleteMany].includes(A.operation)
|
|
922
922
|
)) {
|
|
923
|
-
const A = await
|
|
923
|
+
const A = await Ge(p, e.menu.modules);
|
|
924
924
|
if (A !== !0) throw new Error(A);
|
|
925
925
|
}
|
|
926
926
|
const _ = await wt.updateMenuModule(e.menu, p);
|
|
@@ -940,14 +940,14 @@ const Pt = Ze(
|
|
|
940
940
|
priceTierSettings: r.priceTierSettings
|
|
941
941
|
};
|
|
942
942
|
return g(i), i;
|
|
943
|
-
},
|
|
944
|
-
const r =
|
|
943
|
+
}, V = St({ maxHistorySize: 50 }), $e = b(() => V.canUndo.value), Fe = b(() => V.canRedo.value), je = () => {
|
|
944
|
+
const r = V.undo();
|
|
945
945
|
r && g(r, !1);
|
|
946
946
|
}, Ne = () => {
|
|
947
|
-
const r =
|
|
947
|
+
const r = V.redo();
|
|
948
948
|
r && g(r, !1);
|
|
949
949
|
}, Ue = () => {
|
|
950
|
-
|
|
950
|
+
V.clear();
|
|
951
951
|
};
|
|
952
952
|
return {
|
|
953
953
|
state: e,
|
|
@@ -965,7 +965,7 @@ const Pt = Ze(
|
|
|
965
965
|
schedulers: d,
|
|
966
966
|
currentScheduler: c,
|
|
967
967
|
catalogOptions: fe,
|
|
968
|
-
categories:
|
|
968
|
+
categories: Z,
|
|
969
969
|
subcategories: ve,
|
|
970
970
|
items: ee,
|
|
971
971
|
sortedItems: ye,
|
|
@@ -974,8 +974,8 @@ const Pt = Ze(
|
|
|
974
974
|
categorizedRawMenuItems: he,
|
|
975
975
|
variants: N,
|
|
976
976
|
groups: _e,
|
|
977
|
-
takeaways:
|
|
978
|
-
printDepartments:
|
|
977
|
+
takeaways: be,
|
|
978
|
+
printDepartments: Se,
|
|
979
979
|
units: we,
|
|
980
980
|
recipes: Me,
|
|
981
981
|
cookingGuide: Ae,
|
|
@@ -987,8 +987,8 @@ const Pt = Ze(
|
|
|
987
987
|
readMenu: xe,
|
|
988
988
|
readRestaurants: Oe,
|
|
989
989
|
selectCatalog: te,
|
|
990
|
-
selectScheduler:
|
|
991
|
-
selectCategory:
|
|
990
|
+
selectScheduler: Ve,
|
|
991
|
+
selectCategory: De,
|
|
992
992
|
setRestaurantAttrParams: Te,
|
|
993
993
|
updateMenu: Ke,
|
|
994
994
|
updateMenuSetting: Pe,
|
|
@@ -1008,7 +1008,7 @@ const Pt = Ze(
|
|
|
1008
1008
|
w.cancel(), E && (E(), E = null), C && (C.stop(), C = null), Ue();
|
|
1009
1009
|
},
|
|
1010
1010
|
$reinitialize: () => {
|
|
1011
|
-
|
|
1011
|
+
X();
|
|
1012
1012
|
}
|
|
1013
1013
|
};
|
|
1014
1014
|
}
|
|
@@ -1016,8 +1016,8 @@ const Pt = Ze(
|
|
|
1016
1016
|
export {
|
|
1017
1017
|
Tt as a,
|
|
1018
1018
|
Kt as f,
|
|
1019
|
-
|
|
1020
|
-
|
|
1019
|
+
Dt as g,
|
|
1020
|
+
Vt as m,
|
|
1021
1021
|
it as o,
|
|
1022
1022
|
Pt as u
|
|
1023
1023
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { defineComponent as q, ref as V, h as S, computed as N, resolveComponent as I, createBlock as X, openBlock as w, unref as l, withCtx as x, createElementVNode as k, createVNode as v, watch as Z, createElementBlock as L, Fragment as B, renderSlot as ee, renderList as G, toDisplayString as $, createCommentVNode as ae, getCurrentInstance as te, render as ne } from "vue";
|
|
2
|
-
import { u as Y, P as oe, B as le, J as M, K } from "./index.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { u as Y, P as oe, B as le, J as M, K } from "./index.vue_vue_type_script_setup_true_lang-DsMFmYGf.js";
|
|
3
3
|
import { useI18n as R } from "@feedmepos/mf-common";
|
|
4
4
|
import { components as A, FmButtonVariant as re, FmButtonColorThemeVariant as j, useSnackbar as ie } from "@feedmepos/ui-library";
|
|
5
|
-
import { _ as H, u as se } from "./RuleView.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { _ as H, u as se } from "./RuleView.vue_vue_type_script_setup_true_lang-C7MR2OwK.js";
|
|
6
6
|
import { c as de } from "./object-DVUNCr7w.js";
|
|
7
|
-
import { _ as ue } from "./app-
|
|
8
|
-
import { L as ce } from "./LinkProductSideSheet-
|
|
7
|
+
import { _ as ue } from "./app-B-k_3Xub.js";
|
|
8
|
+
import { L as ce } from "./LinkProductSideSheet-CQRvO3h0.js";
|
|
9
9
|
import { u as me } from "./search-BAPEUu1R.js";
|
|
10
|
-
import { _ as pe } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-
|
|
10
|
+
import { _ as pe } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-YLRlDi4-.js";
|
|
11
11
|
import { c as ge } from "./check-C9mY6LiX.js";
|
|
12
12
|
import { g as J } from "./translation-fNx6yEpy.js";
|
|
13
13
|
import { c as _e } from "./createComponentProgrammatically-Bt2rn1IQ.js";
|
|
@@ -85,9 +85,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
|
|
|
85
85
|
placeholder: string;
|
|
86
86
|
maxHeight: string | number;
|
|
87
87
|
searchable: boolean;
|
|
88
|
-
multiple: boolean;
|
|
89
88
|
clearable: boolean;
|
|
90
89
|
searchPlaceholder: string;
|
|
90
|
+
multiple: boolean;
|
|
91
91
|
autoSelectFirst: boolean;
|
|
92
92
|
chipIcon: string;
|
|
93
93
|
showSelectAll: boolean;
|
|
@@ -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, B as M } from "./index.vue_vue_type_script_setup_true_lang-
|
|
4
|
+
import { u as k, B as M } from "./index.vue_vue_type_script_setup_true_lang-DsMFmYGf.js";
|
|
5
5
|
const v = /* @__PURE__ */ d({
|
|
6
6
|
__name: "AddPriceGroupDialog",
|
|
7
7
|
setup(s) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as I, watch as h, ref as E, computed as w, resolveComponent as _, createElementBlock as F, openBlock as P, Fragment as M, createVNode as f, unref as g, withCtx as b, createElementVNode as O, renderList as q, toDisplayString as S } from "vue";
|
|
2
|
-
import { J as v, K as C, u as Y } from "./index.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { J as v, K as C, u as Y } from "./index.vue_vue_type_script_setup_true_lang-DsMFmYGf.js";
|
|
3
3
|
import { useI18n as D } from "@feedmepos/mf-common";
|
|
4
4
|
import { useDialogChild as k } from "@feedmepos/ui-library";
|
|
5
|
-
import { u as R } from "./menuV2-
|
|
6
|
-
import { _ as $ } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { u as R } from "./menuV2-COSJ__9Q.js";
|
|
6
|
+
import { _ as $ } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-YLRlDi4-.js";
|
|
7
7
|
import { g as N } from "./translation-fNx6yEpy.js";
|
|
8
8
|
const B = { class: "py-12 px-16 space-y-4" }, U = /* @__PURE__ */ I({
|
|
9
9
|
__name: "AddSubcategoryDialogContentComponent",
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent as re, computed as N, resolveComponent as v, createElementBlock as d, openBlock as u, createVNode as t, createCommentVNode as V, unref as n, toDisplayString as O, createElementVNode as _, withCtx as p, Fragment as R, renderList as I, createBlock as q, ref as B, Transition as de, createTextVNode as fe } from "vue";
|
|
2
|
-
import { G as w, a6 as $, u as ye, y as _e, a7 as L, H as he, J as se, K as ie, ak as ce } from "./index.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { G as w, a6 as $, u as ye, y as _e, a7 as L, H as he, J as se, K as ie, ak as ce } from "./index.vue_vue_type_script_setup_true_lang-DsMFmYGf.js";
|
|
3
3
|
import { useI18n as me } from "@feedmepos/mf-common";
|
|
4
4
|
import { components as ge } from "@feedmepos/ui-library";
|
|
5
5
|
import { _ as Ve } from "./FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js";
|
|
6
|
-
import { _ as ue } from "./RuleView.vue_vue_type_script_setup_true_lang-
|
|
6
|
+
import { _ as ue } from "./RuleView.vue_vue_type_script_setup_true_lang-C7MR2OwK.js";
|
|
7
7
|
import { u as ke } from "./discardConfirm-BHni0LNu.js";
|
|
8
|
-
import { u as be } from "./menu-
|
|
9
|
-
import { L as Fe } from "./LinkProductSideSheet-
|
|
8
|
+
import { u as be } from "./menu-DzWUnx8X.js";
|
|
9
|
+
import { L as Fe } from "./LinkProductSideSheet-CQRvO3h0.js";
|
|
10
10
|
const xe = { class: "space-y-8" }, Ce = {
|
|
11
11
|
key: 0,
|
|
12
12
|
class: "space-y-16"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { u as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import "./index.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { u as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-CFjS_1Ws.js";
|
|
2
|
+
import "./index.vue_vue_type_script_setup_true_lang-DsMFmYGf.js";
|
|
3
3
|
var Z = {
|
|
4
4
|
defaultAmount: 0,
|
|
5
5
|
defaultCurrency: "USD",
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineStore as J } from "pinia";
|
|
2
2
|
import { defineComponent as S, computed as x, ref as A, watch as D, resolveComponent as V, createBlock as W, openBlock as F, withCtx as w, createVNode as m, createElementVNode as f, normalizeClass as Q, createElementBlock as k, toDisplayString as C, unref as l, Fragment as L, renderSlot as X, renderList as Z, getCurrentInstance as ee } from "vue";
|
|
3
|
-
import { aa as N, ab as te, a8 as O, G as E, P as $, B as j, A as h, a9 as ne, J as T, K as M, H as ae, u as oe } from "./index.vue_vue_type_script_setup_true_lang-
|
|
3
|
+
import { aa as N, ab as te, a8 as O, G as E, P as $, B as j, A as h, a9 as ne, J as T, K as M, H as ae, u as oe } from "./index.vue_vue_type_script_setup_true_lang-DsMFmYGf.js";
|
|
4
4
|
import { useI18n as P } from "@feedmepos/mf-common";
|
|
5
5
|
import { useSnackbar as I, 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 "./RuleConditionSelector.vue_vue_type_style_index_0_lang-CK8z7qA8.js";
|
|
9
|
-
import "./menuV2-
|
|
9
|
+
import "./menuV2-COSJ__9Q.js";
|
|
10
10
|
import "./app-5fxKLAzS.js";
|
|
11
11
|
/* empty css */
|
|
12
12
|
import { c as me } from "./createComponentProgrammatically-Bt2rn1IQ.js";
|