@feedmepos/mf-menu 0.32.57-dev.2 → 0.32.57
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-CE5s0l9A.js → App-DUxN7yt3.js} +7 -7
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-DZ5sZWpU.js → ApplyProduct.vue_vue_type_script_setup_true_lang-Cnjt_wfR.js} +3 -3
- package/dist/{ApplyProductDialog.vue_vue_type_script_setup_true_lang-B0POr6JV.js → ApplyProductDialog.vue_vue_type_script_setup_true_lang-bM6TM5x1.js} +2 -2
- package/dist/{Catalog-CY6RvjyS.js → Catalog-BpdfaEWd.js} +6 -6
- package/dist/{Category-DIpJlX_N.js → Category-CRsvI23c.js} +4 -4
- package/dist/{Category-BoVnd_-a.js → Category-h0mVpwHr.js} +4 -4
- package/dist/{CookingGuide-CHzasZA9.js → CookingGuide-DFgQ2jxt.js} +4 -4
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-DIhsGYRl.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-D8nqY4jC.js} +1 -1
- package/dist/{Group-SUmVQxSU.js → Group-PG5pxNfh.js} +3 -3
- package/dist/{Group-CwBojMky.js → Group-slvcd4if.js} +1 -1
- package/dist/{Group.vue_vue_type_script_setup_true_lang-BBqXiV3r.js → Group.vue_vue_type_script_setup_true_lang-Ca0RTf7d.js} +6 -6
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CcQdvzMy.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BpeIXVCs.js} +5 -5
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-C8VMeXoW.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-Ck2KAv76.js} +7 -7
- package/dist/{Ingredient-DmsJNTi3.js → Ingredient-xKI7y0XB.js} +3 -3
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-CZ3Ti5o-.js → InventoryBinding.vue_vue_type_script_setup_true_lang-CH3jTi1A.js} +2 -2
- package/dist/{LinkProductSideSheet-D8Dvdhk0.js → LinkProductSideSheet-BF_00Jg8.js} +3 -3
- package/dist/{MenuSetting-CmFx4CKw.js → MenuSetting-BAbfo028.js} +6 -6
- package/dist/{OrderPacing-CFuteZjm.js → OrderPacing-BPz3MCxe.js} +5 -5
- package/dist/{PrintRoute-CeHNsLcv.js → PrintRoute-CiXCACml.js} +4 -4
- package/dist/{Product-bJfbi1yz.js → Product-DrSEg6_V.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-kvqrUjei.js → Product.vue_vue_type_script_setup_true_lang-BsgdvCz2.js} +12 -12
- package/dist/{ProductInternalTools-BkKbXFdG.js → ProductInternalTools-BerUVFF6.js} +6 -6
- package/dist/{Products-Bv9gINb8.js → Products-DhJlfhP5.js} +38 -38
- package/dist/{Publish-CSMkGRiV.js → Publish-BAjNPk_P.js} +3 -3
- package/dist/{Recipe-CDK1f07t.js → Recipe-CkVcMchR.js} +4 -4
- package/dist/{RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-hYs_2e94.js → RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-CSZz_CAP.js} +1 -1
- package/dist/{RuleView.vue_vue_type_script_setup_true_lang-DdSe-i8f.js → RuleView.vue_vue_type_script_setup_true_lang-DVQKrN9R.js} +602 -602
- package/dist/{Scheduler-Ce6qK5xo.js → Scheduler-Dj1MR5rm.js} +3 -3
- package/dist/{ServingSequence-BSX_g50j.js → ServingSequence-BqsD44ye.js} +3 -3
- package/dist/{Setting-BNS9ggtX.js → Setting-DMSyoLbv.js} +5 -5
- package/dist/{Subcategory-62g1JEwl.js → Subcategory-CZ4i-zBw.js} +5 -5
- package/dist/{Takeaway-f4VO0ZJ-.js → Takeaway-Bl9Srdio.js} +4 -4
- package/dist/{Takeaway-DR0Ax44B.js → Takeaway-qHbk6yp-.js} +1 -1
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-B3UE1p7X.js → Takeaway.vue_vue_type_script_setup_true_lang-C6z0FcYx.js} +5 -5
- package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-CTw2lKns.js → Thumbnail.vue_vue_type_script_setup_true_lang-DZSD2_pk.js} +4 -4
- package/dist/{TranslationFieldSection.vue_vue_type_script_setup_true_lang-hd6JGri0.js → TranslationFieldSection.vue_vue_type_script_setup_true_lang-C74nkozY.js} +1 -1
- package/dist/{TranslationSideSheet.vue_vue_type_script_setup_true_lang-BRXHWG5s.js → TranslationSideSheet.vue_vue_type_script_setup_true_lang-BI5I0IXp.js} +2 -2
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-ClDRf-88.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DMd8Z0TE.js} +14 -14
- package/dist/{Unit-DnrLxe1V.js → Unit-DXysALJ4.js} +2 -2
- package/dist/{Variant-DM2r3Of9.js → Variant-pFLHZVO9.js} +3 -3
- package/dist/{_id_-BhFeSJIu.js → _id_-4-U7cNsx.js} +9 -9
- package/dist/{app-CO3nuOc3.js → app-CR7NhNht.js} +1 -1
- package/dist/{app-DH7q5VuL.js → app-D2NOhx2Z.js} +32 -32
- package/dist/app.js +1 -1
- package/dist/assets/{linked-status-BR-paOgW.js → linked-status-DYxk695w.js} +2 -2
- package/dist/assets/{menu-export-Dwpl4c_S.js → menu-export-CyN_O3Kf.js} +2 -2
- package/dist/assets/{override-menu-BS1DhRTo.js → override-menu-BTTTU6jX.js} +2 -2
- package/dist/assets/{validate-menu-B-YCNUDR.js → validate-menu-C2al0uj-.js} +2 -2
- package/dist/{catalog-DN1unMjl.js → catalog-BF2fCHSi.js} +1 -1
- package/dist/{catalogSetting-CI8dXYw5.js → catalogSetting-BCrV4DCa.js} +1 -1
- package/dist/{currency-BFqLFFOP.js → currency-DrKjxBJB.js} +1 -1
- package/dist/{dayjs.min-BXDB3ec6.js → dayjs.min-DzJl7L78.js} +2 -2
- package/dist/{index-CCKQLhW1.js → index-Bxm8mZ6g.js} +4 -4
- package/dist/{index-CYexEfd8.js → index-Dhou0UEg.js} +5 -5
- package/dist/{index.vue_vue_type_script_setup_true_lang-BbQF5cdO.js → index.vue_vue_type_script_setup_true_lang-CKIfNp-a.js} +6 -6
- package/dist/{item-eua4dBDT.js → item-Dyckwjo-.js} +18 -18
- package/dist/{jszip.min-C10zcIsO.js → jszip.min-ByutR7rj.js} +175 -175
- package/dist/{memberPricing-BlITNLhE.js → memberPricing-BMRI1Z7U.js} +1 -1
- package/dist/{menu-C4vsCvFL.js → menu-CDzIVGfu.js} +1 -1
- package/dist/{menuV2-DB-VttRA.js → menuV2-puLrcFs3.js} +50 -50
- package/dist/{order_pacing-CDQ6wUL_.js → order_pacing-Cs212Wff.js} +5 -5
- package/dist/{priceTier-pJMZysfK.js → priceTier-WPgZnKsU.js} +1 -1
- package/dist/{rules-BScEYhiY.js → rules-DCnNMPmp.js} +3 -3
- package/dist/{scheduler-BTiyl-EY.js → scheduler-BWWxcljn.js} +4 -4
- package/dist/{toExcel-CSdnEWqk.js → toExcel-DuXu6LJi.js} +2 -2
- package/dist/{unit-BcPS3VM3.js → unit-DLzvIszm.js} +2 -2
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as d, ref as _, watch as S, resolveComponent as b, createBlock as f, openBlock as y, unref as M, computed as T } from "vue";
|
|
2
|
-
import { u as h, B as w } from "./index.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { u as h, B as w } from "./index.vue_vue_type_script_setup_true_lang-CKIfNp-a.js";
|
|
3
3
|
import { useI18n as l } from "@feedmepos/mf-common";
|
|
4
4
|
import { useDialogChild as x, useDialog as C, useSnackbar as P } from "@feedmepos/ui-library";
|
|
5
5
|
const k = /* @__PURE__ */ d({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { computed as n, onMounted as d, onBeforeUnmount as m } from "vue";
|
|
2
|
-
import { u as c } from "./index.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { u as c } from "./index.vue_vue_type_script_setup_true_lang-CKIfNp-a.js";
|
|
3
3
|
import "@feedmepos/mf-common";
|
|
4
4
|
import "@feedmepos/ui-library";
|
|
5
5
|
function p() {
|
|
@@ -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
|
|
5
|
-
import { defineStore as
|
|
6
|
-
import { shallowRef as j, ref as H, computed as S, shallowReactive as
|
|
4
|
+
import { I as ae, G as I, A as V, U as ue, ax as re, J as B, H as ie, aj as x, c as z, a0 as D, au as oe, ay as Le, az as qe, z as Be, am as He, aA as Ge, aB as Je, ah as Ye } from "./index.vue_vue_type_script_setup_true_lang-CKIfNp-a.js";
|
|
5
|
+
import { defineStore as Xe } from "pinia";
|
|
6
|
+
import { shallowRef as j, ref as H, computed as S, shallowReactive as Qe, 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-DYxk695w.js", rt = "/assets/override-menu-BTTTU6jX.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;
|
|
@@ -88,7 +88,7 @@ function at(e, t) {
|
|
|
88
88
|
if (c)
|
|
89
89
|
return F(c, t, 1);
|
|
90
90
|
const g = {
|
|
91
|
-
...
|
|
91
|
+
...V.generator.initMenuV4ItemOverrider(),
|
|
92
92
|
_id: d._id,
|
|
93
93
|
combinationKey: d.combinationKey
|
|
94
94
|
};
|
|
@@ -96,7 +96,7 @@ function at(e, t) {
|
|
|
96
96
|
});
|
|
97
97
|
return { ...u, items: a };
|
|
98
98
|
}), s = e.variant ? e.variant.variantCombinations.map((u) => F(u, t, 1)) : [], o = {
|
|
99
|
-
...
|
|
99
|
+
...V.generator.initMenuV4ItemOverrider(),
|
|
100
100
|
_id: e._id,
|
|
101
101
|
name: e.name,
|
|
102
102
|
code: e.code,
|
|
@@ -152,11 +152,11 @@ function ut(e, t) {
|
|
|
152
152
|
price: (s == null ? void 0 : s.price) || t.price
|
|
153
153
|
};
|
|
154
154
|
}
|
|
155
|
-
async function
|
|
155
|
+
async function Tt(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;
|
|
159
|
-
}, {}), g =
|
|
159
|
+
}, {}), g = V.getFallbackPrices({
|
|
160
160
|
rawMenu: a,
|
|
161
161
|
items: c,
|
|
162
162
|
catalogId: s || void 0,
|
|
@@ -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) => {
|
|
@@ -184,7 +184,7 @@ function Vt(e, t) {
|
|
|
184
184
|
}, [])) || []).join(" / ");
|
|
185
185
|
}
|
|
186
186
|
const L = /* @__PURE__ */ new Map();
|
|
187
|
-
async function
|
|
187
|
+
async function Vt(e, t) {
|
|
188
188
|
const n = `${e._id}-${e.updatedAt}-${t}`;
|
|
189
189
|
if (L.has(n))
|
|
190
190
|
return L.get(n);
|
|
@@ -204,13 +204,13 @@ async function ce(e, t, n) {
|
|
|
204
204
|
schedulerId: n
|
|
205
205
|
});
|
|
206
206
|
}
|
|
207
|
-
const
|
|
207
|
+
const q = /* @__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 (q.has(s))
|
|
211
|
+
return q.get(s);
|
|
212
212
|
const o = await ce(e, t, n);
|
|
213
|
-
return
|
|
213
|
+
return q.set(s, o), o;
|
|
214
214
|
}
|
|
215
215
|
async function Kt(e, t, n) {
|
|
216
216
|
var l, a;
|
|
@@ -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 = X(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 = X(s);
|
|
478
478
|
o !== void 0 && (t[n] = o);
|
|
479
479
|
}
|
|
480
480
|
}
|
|
481
481
|
return t;
|
|
482
482
|
}
|
|
483
|
-
function
|
|
483
|
+
function X(e) {
|
|
484
484
|
if (e !== void 0) {
|
|
485
485
|
if (Array.isArray(e)) {
|
|
486
486
|
if (e.length === 1)
|
|
@@ -496,7 +496,7 @@ function Q(e) {
|
|
|
496
496
|
}
|
|
497
497
|
}
|
|
498
498
|
function de(e) {
|
|
499
|
-
return
|
|
499
|
+
return X(e);
|
|
500
500
|
}
|
|
501
501
|
function pt(e, t, n) {
|
|
502
502
|
const s = de(t);
|
|
@@ -586,7 +586,7 @@ function bt({
|
|
|
586
586
|
}
|
|
587
587
|
const wt = {
|
|
588
588
|
async updateMenuModule(e, t) {
|
|
589
|
-
const n =
|
|
589
|
+
const n = B.RequestRunner.operation(t, e.modules);
|
|
590
590
|
if (n.validateError.length > 0)
|
|
591
591
|
throw new Error(n.validateError.join(`
|
|
592
592
|
`));
|
|
@@ -634,10 +634,10 @@ function Mt() {
|
|
|
634
634
|
}
|
|
635
635
|
};
|
|
636
636
|
}
|
|
637
|
-
const Pt =
|
|
637
|
+
const Pt = Xe(
|
|
638
638
|
"mf-menu-store-v2",
|
|
639
639
|
() => {
|
|
640
|
-
const e =
|
|
640
|
+
const e = Qe(Mt()), t = se(), n = tt(), s = S(() => e.menu.modules.serveSequence ? x(e.menu.modules.serveSequence, {
|
|
641
641
|
selector: "position"
|
|
642
642
|
}) : []), o = S(() => {
|
|
643
643
|
var r;
|
|
@@ -650,7 +650,7 @@ const Pt = Qe(
|
|
|
650
650
|
let r = e.menu.modules.catalog.find(
|
|
651
651
|
(m) => m._id === e.currentCatalogId
|
|
652
652
|
);
|
|
653
|
-
return r && ((i = r.linkItemRules) != null && i.length) && (r =
|
|
653
|
+
return r && ((i = r.linkItemRules) != null && i.length) && (r = V.populateCatalog({
|
|
654
654
|
catalog: r,
|
|
655
655
|
ruleGroupSettings: e.menu.ruleGroupSettings,
|
|
656
656
|
items: e.menu.modules.item,
|
|
@@ -660,7 +660,7 @@ const Pt = Qe(
|
|
|
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 && T.push(e.menu);
|
|
664
664
|
}
|
|
665
665
|
const y = j(me()), f = H(!1), v = H(1);
|
|
666
666
|
async function h() {
|
|
@@ -668,7 +668,7 @@ const Pt = Qe(
|
|
|
668
668
|
f.value = !0;
|
|
669
669
|
let r = e.menu.modules.catalog;
|
|
670
670
|
if (a.value && ((m = a.value.linkItemRules) != null && m.length)) {
|
|
671
|
-
const p =
|
|
671
|
+
const p = V.populateCatalog({
|
|
672
672
|
catalog: a.value,
|
|
673
673
|
ruleGroupSettings: e.menu.ruleGroupSettings,
|
|
674
674
|
items: e.menu.modules.item,
|
|
@@ -699,7 +699,7 @@ const Pt = Qe(
|
|
|
699
699
|
}
|
|
700
700
|
const w = ie.debounce(h, 200);
|
|
701
701
|
let C = null, E = null;
|
|
702
|
-
function
|
|
702
|
+
function Q() {
|
|
703
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
|
() => {
|
|
@@ -707,7 +707,7 @@ const Pt = Qe(
|
|
|
707
707
|
}
|
|
708
708
|
)) || null;
|
|
709
709
|
}
|
|
710
|
-
|
|
710
|
+
Q();
|
|
711
711
|
const fe = S(() => [
|
|
712
712
|
{
|
|
713
713
|
label: "Main",
|
|
@@ -727,11 +727,11 @@ const Pt = Qe(
|
|
|
727
727
|
position: 0
|
|
728
728
|
}
|
|
729
729
|
] : [],
|
|
730
|
-
...
|
|
730
|
+
...D(r, (i) => i.name)
|
|
731
731
|
];
|
|
732
732
|
}), ve = S(() => {
|
|
733
733
|
const r = y.value.modules.subCategory || [];
|
|
734
|
-
return
|
|
734
|
+
return D(r, (i) => i.name);
|
|
735
735
|
}), ee = S(() => {
|
|
736
736
|
var i;
|
|
737
737
|
let r = y.value.modules.item;
|
|
@@ -745,13 +745,13 @@ const Pt = Qe(
|
|
|
745
745
|
return (_ == null ? void 0 : _.orderFrom) !== ue.enum.NONE;
|
|
746
746
|
});
|
|
747
747
|
}
|
|
748
|
-
return
|
|
748
|
+
return D(r, (m) => m.code || m.name);
|
|
749
749
|
}), ye = S(() => {
|
|
750
|
-
const r = e.menu.modules.category, i =
|
|
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), {});
|
|
@@ -775,14 +775,14 @@ const Pt = Qe(
|
|
|
775
775
|
});
|
|
776
776
|
function pe(r = []) {
|
|
777
777
|
const i = r.map((p) => N.value.find((_) => _._id === p)).filter((p) => !!p);
|
|
778
|
-
return
|
|
778
|
+
return V.fullVariantCombination(i).reduce((p, _) => (p[_.combinationKey] = _.selectionName.join(" / "), p), {});
|
|
779
779
|
}
|
|
780
|
-
const _e = S(() =>
|
|
780
|
+
const _e = S(() => D(y.value.modules.group, (r) => r.name)), Se = S(() => x(y.value.modules.takeaway, { selector: "name" })), be = S(() => x(e.menu.modules.printDepartment || [], {
|
|
781
781
|
selector: "name"
|
|
782
782
|
})), we = S(() => x(e.menu.modules.unit, { selector: "name" })), Me = S(() => x(Le(e.menu.modules.recipe, e.menu.modules.sku), {
|
|
783
783
|
selector: "name"
|
|
784
784
|
})), Ae = S(() => e.menu.modules.cookingGuide), Ie = S(() => {
|
|
785
|
-
const r =
|
|
785
|
+
const r = qe(e.menu.modules.sku);
|
|
786
786
|
return x(r, { selector: "code" });
|
|
787
787
|
}), Ce = S(() => {
|
|
788
788
|
const r = /* @__PURE__ */ new Map();
|
|
@@ -877,7 +877,7 @@ const Pt = Qe(
|
|
|
877
877
|
}
|
|
878
878
|
const Re = S(() => {
|
|
879
879
|
var p;
|
|
880
|
-
const r = ["SV5", "SV10"], i =
|
|
880
|
+
const r = ["SV5", "SV10"], i = Be.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,11 +902,11 @@ const Pt = Qe(
|
|
|
902
902
|
});
|
|
903
903
|
}, te = (r) => {
|
|
904
904
|
e.currentCatalogId = r;
|
|
905
|
-
},
|
|
905
|
+
}, Te = (r) => {
|
|
906
906
|
e.currentSchedulerId = r;
|
|
907
|
-
},
|
|
907
|
+
}, De = (r) => {
|
|
908
908
|
e.currentCategoryIds = r;
|
|
909
|
-
},
|
|
909
|
+
}, Ve = (r) => {
|
|
910
910
|
e.currentRestaurantAttrParams = r;
|
|
911
911
|
}, Ke = async (r, i) => {
|
|
912
912
|
const m = Array.isArray(r) ? r : [r];
|
|
@@ -918,7 +918,7 @@ const Pt = Qe(
|
|
|
918
918
|
}));
|
|
919
919
|
try {
|
|
920
920
|
if (i || p.some(
|
|
921
|
-
(A) => [
|
|
921
|
+
(A) => [B.F_OPERATION_TYPE.delete, B.F_OPERATION_TYPE.deleteMany].includes(A.operation)
|
|
922
922
|
)) {
|
|
923
923
|
const A = await Ge(p, e.menu.modules);
|
|
924
924
|
if (A !== !0) throw new Error(A);
|
|
@@ -940,14 +940,14 @@ const Pt = Qe(
|
|
|
940
940
|
priceTierSettings: r.priceTierSettings
|
|
941
941
|
};
|
|
942
942
|
return g(i), i;
|
|
943
|
-
},
|
|
944
|
-
const r =
|
|
943
|
+
}, T = bt({ maxHistorySize: 50 }), $e = S(() => T.canUndo.value), Fe = S(() => T.canRedo.value), je = () => {
|
|
944
|
+
const r = T.undo();
|
|
945
945
|
r && g(r, !1);
|
|
946
946
|
}, Ne = () => {
|
|
947
|
-
const r =
|
|
947
|
+
const r = T.redo();
|
|
948
948
|
r && g(r, !1);
|
|
949
949
|
}, Ue = () => {
|
|
950
|
-
|
|
950
|
+
T.clear();
|
|
951
951
|
};
|
|
952
952
|
return {
|
|
953
953
|
state: e,
|
|
@@ -987,9 +987,9 @@ const Pt = Qe(
|
|
|
987
987
|
readMenu: xe,
|
|
988
988
|
readRestaurants: Oe,
|
|
989
989
|
selectCatalog: te,
|
|
990
|
-
selectScheduler:
|
|
991
|
-
selectCategory:
|
|
992
|
-
setRestaurantAttrParams:
|
|
990
|
+
selectScheduler: Te,
|
|
991
|
+
selectCategory: De,
|
|
992
|
+
setRestaurantAttrParams: Ve,
|
|
993
993
|
updateMenu: Ke,
|
|
994
994
|
updateMenuSetting: Pe,
|
|
995
995
|
computeMergedMenu: h,
|
|
@@ -1008,16 +1008,16 @@ const Pt = Qe(
|
|
|
1008
1008
|
w.cancel(), E && (E(), E = null), C && (C.stop(), C = null), Ue();
|
|
1009
1009
|
},
|
|
1010
1010
|
$reinitialize: () => {
|
|
1011
|
-
|
|
1011
|
+
Q();
|
|
1012
1012
|
}
|
|
1013
1013
|
};
|
|
1014
1014
|
}
|
|
1015
1015
|
);
|
|
1016
1016
|
export {
|
|
1017
|
-
|
|
1017
|
+
Vt as a,
|
|
1018
1018
|
Kt as f,
|
|
1019
|
-
|
|
1020
|
-
|
|
1019
|
+
Dt as g,
|
|
1020
|
+
Tt 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-CKIfNp-a.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-DVQKrN9R.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-D2NOhx2Z.js";
|
|
8
|
+
import { L as ce } from "./LinkProductSideSheet-BF_00Jg8.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-BI5I0IXp.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";
|
|
@@ -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-CKIfNp-a.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-CKIfNp-a.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-puLrcFs3.js";
|
|
6
|
+
import { _ as $ } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-BI5I0IXp.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-CKIfNp-a.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-DVQKrN9R.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-CDzIVGfu.js";
|
|
9
|
+
import { L as Fe } from "./LinkProductSideSheet-BF_00Jg8.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-Ck2KAv76.js";
|
|
2
|
+
import "./index.vue_vue_type_script_setup_true_lang-CKIfNp-a.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-CKIfNp-a.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-puLrcFs3.js";
|
|
10
10
|
import "./app-5fxKLAzS.js";
|
|
11
11
|
/* empty css */
|
|
12
12
|
import { c as me } from "./createComponentProgrammatically-Bt2rn1IQ.js";
|