@feedmepos/mf-menu 0.31.67-beta.1 → 0.31.67-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-BgtuKRMa.js → App-BZ-1lY6F.js} +9 -9
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-DRJ-dCti.js → ApplyProduct.vue_vue_type_script_setup_true_lang-CbTUz8iR.js} +3 -3
- package/dist/{Catalog-Q2enESBT.js → Catalog-C7DXO6Fc.js} +6 -6
- package/dist/{Category-Q-qYKZqu.js → Category-CLmPBPLq.js} +4 -4
- package/dist/{Category-BFfdYBN7.js → Category-FtSeFzMI.js} +6 -6
- package/dist/{CookingGuide-BBqZFxtA.js → CookingGuide-CqdtzE_a.js} +4 -4
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-CWJxK057.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-Qo5DDmWl.js} +1 -1
- package/dist/{Group-_qDB8mqR.js → Group-1yDxCqvq.js} +3 -3
- package/dist/{Group-csHmZk5i.js → Group-CrsRDipx.js} +1 -1
- package/dist/{Group.vue_vue_type_script_setup_true_lang-BB3aRQRD.js → Group.vue_vue_type_script_setup_true_lang-DAiHbuYd.js} +7 -7
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DiS1jDRb.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-dFwRB-_v.js} +5 -5
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-CZCpbUDI.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-CwJM22EQ.js} +7 -7
- package/dist/{Ingredient-BIlBT1Yz.js → Ingredient-CEChS5Ff.js} +3 -3
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-CcgFIX_P.js → InventoryBinding.vue_vue_type_script_setup_true_lang-DTjlsqr7.js} +2 -2
- package/dist/{LinkProductSideSheet-qNlonkzd.js → LinkProductSideSheet-C3SCYF7r.js} +3 -3
- package/dist/{MenuSetting-Bru9POND.js → MenuSetting-dNoCFvc8.js} +5 -5
- package/dist/{PrintRoute-DIXrOEIJ.js → PrintRoute-CW3xLyxn.js} +4 -4
- package/dist/{Product-vi4skW2p.js → Product-C2aLJbaN.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-CVSQppwM.js → Product.vue_vue_type_script_setup_true_lang-_70bTbou.js} +13 -13
- package/dist/{ProductInternalTools-BLkSOWVD.js → ProductInternalTools-B6v4buBO.js} +6 -6
- package/dist/{Products-D-t6mnNI.js → Products-CIpzNuqE.js} +11 -11
- package/dist/{Publish-jfkvHs3G.js → Publish-dcfNCGJN.js} +3 -3
- package/dist/{Recipe-CBTV3XBd.js → Recipe-D6zqxtw7.js} +4 -4
- package/dist/{Scheduler-BbGYMUQP.js → Scheduler-BeF0X3ut.js} +3 -3
- package/dist/{ServingSequence-nj6YsrK2.js → ServingSequence-bciSoyU0.js} +3 -3
- package/dist/{Setting-D0PhdLRs.js → Setting-BOw2Jxcu.js} +5 -5
- package/dist/{Subcategory-BlEr5nNw.js → Subcategory-DcwxOnVJ.js} +4 -4
- package/dist/{Takeaway-ul8hDN5c.js → Takeaway-BYhYJ4Gu.js} +4 -4
- package/dist/{Takeaway-BbKsY6CF.js → Takeaway-Bw-c7CEZ.js} +1 -1
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-BQ3XzzXs.js → Takeaway.vue_vue_type_script_setup_true_lang-TIbvLKEz.js} +5 -5
- package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-CuMIPVtH.js → Thumbnail.vue_vue_type_script_setup_true_lang-BflW1Nxw.js} +4 -4
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-Dun4TjI_.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BYWD3xZ1.js} +15 -15
- package/dist/{Unit-MCrJlTmZ.js → Unit-DoJEBmGl.js} +2 -2
- package/dist/{Variant-chXO_AWA.js → Variant-LWdV75Cy.js} +3 -3
- package/dist/{_id_-BikJUNFR.js → _id_-Bzm60el0.js} +10 -10
- package/dist/{app-er04sPwq.js → app-DdZ05cHa.js} +26 -26
- package/dist/{app-BS_awWcc.js → app-ZuBVPTpe.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/assets/{validate-menu-CoWC7z7U.js → linked-status-D8_kl_R-.js} +7 -7
- package/dist/assets/{override-menu-95TIU8uO.js → override-menu-DWekzz3L.js} +5 -5
- package/dist/assets/{linked-status-GgoZVbVE.js → validate-menu-mYcHo6nS.js} +7 -7
- package/dist/{catalog-CP1gPn9o.js → catalog-D1jECnrN.js} +1 -1
- package/dist/{catalogSetting-CVTmiziw.js → catalogSetting-CHB9QKfV.js} +1 -1
- package/dist/{category-CuX_wYbf.js → category-4P_Uw9xy.js} +1 -1
- package/dist/{currency-D9mAovyo.js → currency-CqUpSDLu.js} +1 -1
- package/dist/{customAttributes-DEkj8bf6.js → customAttributes-CwHcnsuN.js} +1 -1
- package/dist/{dayjs.min-mjC9hWTK.js → dayjs.min-BZ_Sns_Q.js} +1 -1
- package/dist/{index-D36anPDy.js → index-BbTaOoC_.js} +1 -1
- package/dist/{index-CC2dBDfa.js → index-Cjw6xpGI.js} +1 -1
- package/dist/{index-B1IrZjMt.js → index-DG9nBEK_.js} +4 -4
- package/dist/{index-Bc2oLMsK.js → index-DryKu40j.js} +3 -3
- package/dist/{item-yG4J6gWA.js → item-D341EYE_.js} +375 -375
- package/dist/{jszip.min-D3G4g4K3.js → jszip.min-BTszB-oF.js} +245 -245
- package/dist/{menu-CwLRPJ37.js → menu-C86Xn-9_.js} +1776 -1776
- package/dist/{menu-BIT0OYWT.js → menu-D9Yd8DVH.js} +1 -1
- package/dist/{menuV2-Chm820yv.js → menuV2-nMFvrA1G.js} +55 -55
- package/dist/{priceTier-DKK8Q2Rk.js → priceTier-e-ik7BkB.js} +1 -1
- package/dist/{scheduler-DOel2750.js → scheduler-GN8-R-kn.js} +4 -4
- package/dist/{subcategory-CgrfaNRV.js → subcategory-D6g5QRp6.js} +2 -2
- package/dist/{toExcel-ilQ4r1cC.js → toExcel-MWLP_jB_.js} +2 -2
- package/dist/{unit-BxjNIBbH.js → unit-BkO1onKW.js} +2 -2
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
var Ue = Object.defineProperty;
|
|
2
2
|
var We = (e, t, n) => t in e ? Ue(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var ne = (e, t, n) => We(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
-
import { an as ue, H as I, D as T, A as ae, ao as re, J as
|
|
4
|
+
import { an as ue, H as I, D as T, A as ae, ao as re, J as G, I as ie, a8 as x, c as L, X as V, ai as oe, ap as Le, aq as ze, B as qe, aa as Ge, ar as He, as as Be, a7 as Je } from "./menu-C86Xn-9_.js";
|
|
5
5
|
import { defineStore as Ye } from "pinia";
|
|
6
|
-
import { shallowRef as j, ref as H, computed as S, shallowReactive as Xe, effectScope as
|
|
6
|
+
import { shallowRef as j, ref as H, computed as S, shallowReactive as Xe, effectScope as Qe, watch as Ze } from "vue";
|
|
7
7
|
import { useCoreStore as se } from "@feedmepos/mf-common";
|
|
8
8
|
import { useSnackbar as et } from "@feedmepos/ui-library";
|
|
9
|
-
const tt = "/assets/linked-status-
|
|
9
|
+
const tt = "/assets/linked-status-D8_kl_R-.js", nt = "/assets/override-menu-DWekzz3L.js";
|
|
10
10
|
function rt(e) {
|
|
11
11
|
var o;
|
|
12
12
|
const t = I(e), n = (o = t.variant) == null ? void 0 : o.variantCombinations;
|
|
@@ -170,7 +170,7 @@ async function Ot(e, t, n, o, r, a = !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((r, a) => {
|
|
@@ -183,11 +183,11 @@ function Vt(e, t) {
|
|
|
183
183
|
return r;
|
|
184
184
|
}, [])) || []).join(" / ");
|
|
185
185
|
}
|
|
186
|
-
const
|
|
187
|
-
async function
|
|
186
|
+
const z = /* @__PURE__ */ new Map();
|
|
187
|
+
async function Vt(e, t) {
|
|
188
188
|
const n = `${e._id}-${e.updatedAt}-${t}`;
|
|
189
|
-
if (
|
|
190
|
-
return
|
|
189
|
+
if (z.has(n))
|
|
190
|
+
return z.get(n);
|
|
191
191
|
const o = await ue(
|
|
192
192
|
tt,
|
|
193
193
|
JSON.stringify({
|
|
@@ -195,7 +195,7 @@ async function Dt(e, t) {
|
|
|
195
195
|
itemId: t
|
|
196
196
|
})
|
|
197
197
|
);
|
|
198
|
-
return
|
|
198
|
+
return z.set(n, o), o;
|
|
199
199
|
}
|
|
200
200
|
async function ce(e, t, n) {
|
|
201
201
|
return await ue(nt, {
|
|
@@ -254,9 +254,9 @@ async function Kt(e, t, n) {
|
|
|
254
254
|
const i = (l = c.items) == null ? void 0 : l.find((h) => h._id === n && !h.combinationKey), f = e.modules.item.find((h) => h._id === n);
|
|
255
255
|
if (i) {
|
|
256
256
|
const h = (u = c.items) == null ? void 0 : u.filter((v) => v._id === n && v.combinationKey), m = [i, ...h].map((v) => {
|
|
257
|
-
var w,
|
|
258
|
-
const p = v.combinationKey ? (
|
|
259
|
-
(
|
|
257
|
+
var w, k;
|
|
258
|
+
const p = v.combinationKey ? (k = (w = f == null ? void 0 : f.variant) == null ? void 0 : w.variantCombinations) == null ? void 0 : k.find(
|
|
259
|
+
(C) => C.combinationKey === v.combinationKey
|
|
260
260
|
) : f, b = p && f ? a(f, p) : v;
|
|
261
261
|
return a(b, v);
|
|
262
262
|
});
|
|
@@ -360,8 +360,8 @@ function lt(e, t, n) {
|
|
|
360
360
|
if (b !== void 0) {
|
|
361
361
|
const w = J(e[p], t[b], n);
|
|
362
362
|
if (w !== void 0 && (o[b] = w), r && b !== p) {
|
|
363
|
-
const
|
|
364
|
-
o[
|
|
363
|
+
const k = `_${p}`, C = a ? [e[p], b, F] : ["", b, F];
|
|
364
|
+
o[k] = C;
|
|
365
365
|
}
|
|
366
366
|
} else {
|
|
367
367
|
const w = `_${p}`;
|
|
@@ -616,7 +616,7 @@ function St({
|
|
|
616
616
|
}
|
|
617
617
|
const bt = {
|
|
618
618
|
async updateMenuModule(e, t) {
|
|
619
|
-
const n =
|
|
619
|
+
const n = G.RequestRunner.operation(t, e.modules);
|
|
620
620
|
if (n.validateError.length > 0)
|
|
621
621
|
throw new Error(n.validateError.join(`
|
|
622
622
|
`));
|
|
@@ -690,7 +690,7 @@ const Pt = Ye(
|
|
|
690
690
|
(s) => s._id === e.currentSchedulerId
|
|
691
691
|
));
|
|
692
692
|
function f(s, d = !0) {
|
|
693
|
-
e.menu = { ...s, _rev: e.menu._rev }, d &&
|
|
693
|
+
e.menu = { ...s, _rev: e.menu._rev }, d && D.push(e.menu);
|
|
694
694
|
}
|
|
695
695
|
const h = j(fe()), m = H(!1), v = H(1);
|
|
696
696
|
async function p() {
|
|
@@ -719,25 +719,25 @@ const Pt = Ye(
|
|
|
719
719
|
);
|
|
720
720
|
if (e.currentSchedulerId != null) {
|
|
721
721
|
const g = e.menu.modules.catalog.find(
|
|
722
|
-
(
|
|
722
|
+
(E) => E._id === e.currentCatalogId
|
|
723
723
|
), _ = g ? g.override.scheduler[e.currentSchedulerId] : e.menu.modules.scheduler.find(
|
|
724
|
-
(
|
|
725
|
-
), A = new Set(((_ == null ? void 0 : _.items) || []).map((
|
|
726
|
-
d.modules.item = d.modules.item.filter((
|
|
724
|
+
(E) => E._id === e.currentSchedulerId
|
|
725
|
+
), A = new Set(((_ == null ? void 0 : _.items) || []).map((E) => E._id));
|
|
726
|
+
d.modules.item = d.modules.item.filter((E) => A.has(E._id));
|
|
727
727
|
}
|
|
728
728
|
return h.value = d, m.value = !1, v.value = v.value + 1, d;
|
|
729
729
|
}
|
|
730
730
|
const w = ie.debounce(p, 200);
|
|
731
|
-
let
|
|
732
|
-
function
|
|
733
|
-
|
|
731
|
+
let k = null, C = null;
|
|
732
|
+
function Q() {
|
|
733
|
+
C && (C(), C = null), k && k.stop(), k = Qe(!0), C = k.run(() => Ze(
|
|
734
734
|
() => [e.menu, e.currentCatalogId, e.currentSchedulerId],
|
|
735
735
|
() => {
|
|
736
736
|
m.value || w();
|
|
737
737
|
}
|
|
738
738
|
)) || null;
|
|
739
739
|
}
|
|
740
|
-
|
|
740
|
+
Q();
|
|
741
741
|
const me = S(() => [
|
|
742
742
|
{
|
|
743
743
|
label: "Main",
|
|
@@ -747,7 +747,7 @@ const Pt = Ye(
|
|
|
747
747
|
label: s.name,
|
|
748
748
|
value: s._id
|
|
749
749
|
}))
|
|
750
|
-
]),
|
|
750
|
+
]), Z = S(() => {
|
|
751
751
|
const s = h.value.modules.category;
|
|
752
752
|
return [
|
|
753
753
|
...U.value.item.addon ? [
|
|
@@ -757,11 +757,11 @@ const Pt = Ye(
|
|
|
757
757
|
position: 0
|
|
758
758
|
}
|
|
759
759
|
] : [],
|
|
760
|
-
...
|
|
760
|
+
...V(s, (d) => d.name)
|
|
761
761
|
];
|
|
762
762
|
}), ve = S(() => {
|
|
763
763
|
const s = h.value.modules.subCategory || [];
|
|
764
|
-
return
|
|
764
|
+
return V(s, (d) => d.name);
|
|
765
765
|
}), ee = S(() => {
|
|
766
766
|
var d;
|
|
767
767
|
let s = h.value.modules.item;
|
|
@@ -770,22 +770,22 @@ const Pt = Ye(
|
|
|
770
770
|
s = s.filter((g) => {
|
|
771
771
|
var A;
|
|
772
772
|
const _ = (A = y == null ? void 0 : y[g._id]) == null ? void 0 : A.find(
|
|
773
|
-
(
|
|
773
|
+
(E) => !E.combinationKey
|
|
774
774
|
);
|
|
775
775
|
return (_ == null ? void 0 : _.orderFrom) !== ae.F_ORDER_FROM.enum.NONE;
|
|
776
776
|
});
|
|
777
777
|
}
|
|
778
|
-
return
|
|
778
|
+
return V(s, (y) => y.code || y.name);
|
|
779
779
|
}), ye = S(() => {
|
|
780
|
-
const s = e.menu.modules.category, d =
|
|
780
|
+
const s = e.menu.modules.category, d = V(s, (g) => g.name).reduce(
|
|
781
781
|
(g, _, A) => (g[_._id] = A, g),
|
|
782
782
|
{ "": 0 }
|
|
783
783
|
), y = e.menu.modules.item;
|
|
784
|
-
return
|
|
784
|
+
return V(
|
|
785
785
|
y,
|
|
786
786
|
(g) => g.code || g.name
|
|
787
787
|
).reduce((g, _, A) => (g[_._id] = A + d[_.category || ""], g), {});
|
|
788
|
-
}), he = S(() => oe(N.value,
|
|
788
|
+
}), he = S(() => oe(N.value, Z.value, ee.value)), pe = S(() => {
|
|
789
789
|
const s = U.value.item.addon ? [
|
|
790
790
|
{
|
|
791
791
|
_id: e.currentCatalogId ? "" : null,
|
|
@@ -807,12 +807,12 @@ const Pt = Ye(
|
|
|
807
807
|
const d = s.map((g) => N.value.find((_) => _._id === g)).filter((g) => !!g);
|
|
808
808
|
return T.fullVariantCombination(d).reduce((g, _) => (g[_.combinationKey] = _.selectionName.join(" / "), g), {});
|
|
809
809
|
}
|
|
810
|
-
const _e = S(() =>
|
|
810
|
+
const _e = S(() => V(h.value.modules.group, (s) => s.name)), Se = S(() => x(h.value.modules.takeaway, { selector: "name" })), be = S(() => x(e.menu.modules.printDepartment || [], {
|
|
811
811
|
selector: "name"
|
|
812
812
|
})), we = S(() => x(e.menu.modules.unit, { selector: "name" })), Me = S(() => x(Le(e.menu.modules.recipe, e.menu.modules.sku), {
|
|
813
813
|
selector: "name"
|
|
814
814
|
})), Ae = S(() => e.menu.modules.cookingGuide), Ie = S(() => {
|
|
815
|
-
const s =
|
|
815
|
+
const s = ze(e.menu.modules.sku);
|
|
816
816
|
return x(s, { selector: "code" });
|
|
817
817
|
}), U = S(() => {
|
|
818
818
|
const s = !e.currentCatalogId, d = r.value === L.F_MENU_VERSION.v4, y = !e.currentSchedulerId, g = {
|
|
@@ -886,11 +886,11 @@ const Pt = Ye(
|
|
|
886
886
|
function W(s) {
|
|
887
887
|
return `${s.systemCode}/${s.taxCode}`;
|
|
888
888
|
}
|
|
889
|
-
function
|
|
889
|
+
function ke(s) {
|
|
890
890
|
const [d, y] = s.split("/");
|
|
891
891
|
return { systemCode: d, taxCode: y };
|
|
892
892
|
}
|
|
893
|
-
function
|
|
893
|
+
function Ce(s, d, y) {
|
|
894
894
|
return (s ?? d ?? []).map((g) => W(g)).find((g) => y.some((_) => _.value === g));
|
|
895
895
|
}
|
|
896
896
|
const Re = S(() => {
|
|
@@ -898,7 +898,7 @@ const Pt = Ye(
|
|
|
898
898
|
const s = ["SV5", "SV10"], d = qe.Country.getCountryFlattenTaxes(
|
|
899
899
|
se().currentCountry.value
|
|
900
900
|
), y = d.filter((_) => a.value || !s.includes(_.taxCode)).map((_) => ({
|
|
901
|
-
label: `${_.name} (${
|
|
901
|
+
label: `${_.name} (${Ge(_.rate)}%)`,
|
|
902
902
|
value: W(_),
|
|
903
903
|
meta: {
|
|
904
904
|
rate: _.rate
|
|
@@ -908,7 +908,7 @@ const Pt = Ye(
|
|
|
908
908
|
systemCode: (g = d[0]) == null ? void 0 : g.systemCode,
|
|
909
909
|
countryTaxOptions: y
|
|
910
910
|
};
|
|
911
|
-
}),
|
|
911
|
+
}), Ee = async () => {
|
|
912
912
|
const s = await Je.readMenu();
|
|
913
913
|
e.menu = s ?? e.menu, te(null);
|
|
914
914
|
}, xe = async () => {
|
|
@@ -922,9 +922,9 @@ const Pt = Ye(
|
|
|
922
922
|
e.currentCatalogId = s;
|
|
923
923
|
}, Oe = (s) => {
|
|
924
924
|
e.currentSchedulerId = s;
|
|
925
|
-
}, Ve = (s) => {
|
|
926
|
-
e.currentCategoryIds = s;
|
|
927
925
|
}, De = (s) => {
|
|
926
|
+
e.currentCategoryIds = s;
|
|
927
|
+
}, Ve = (s) => {
|
|
928
928
|
e.currentRestaurantAttrParams = s;
|
|
929
929
|
}, Te = async (s, d) => {
|
|
930
930
|
const y = Array.isArray(s) ? s : [s];
|
|
@@ -936,7 +936,7 @@ const Pt = Ye(
|
|
|
936
936
|
}));
|
|
937
937
|
try {
|
|
938
938
|
if (d || g.some(
|
|
939
|
-
(A) => [
|
|
939
|
+
(A) => [G.F_OPERATION_TYPE.delete, G.F_OPERATION_TYPE.deleteMany].includes(A.operation)
|
|
940
940
|
)) {
|
|
941
941
|
const A = await He(g, e.menu.modules);
|
|
942
942
|
if (A !== !0) throw new Error(A);
|
|
@@ -958,14 +958,14 @@ const Pt = Ye(
|
|
|
958
958
|
priceTierSettings: s.priceTierSettings
|
|
959
959
|
};
|
|
960
960
|
return f(d), d;
|
|
961
|
-
},
|
|
962
|
-
const s =
|
|
961
|
+
}, D = St({ maxHistorySize: 50 }), Ke = S(() => D.canUndo.value), Pe = S(() => D.canRedo.value), $e = () => {
|
|
962
|
+
const s = D.undo();
|
|
963
963
|
s && f(s, !1);
|
|
964
964
|
}, je = () => {
|
|
965
|
-
const s =
|
|
965
|
+
const s = D.redo();
|
|
966
966
|
s && f(s, !1);
|
|
967
967
|
}, Ne = () => {
|
|
968
|
-
|
|
968
|
+
D.clear();
|
|
969
969
|
};
|
|
970
970
|
return {
|
|
971
971
|
state: e,
|
|
@@ -983,7 +983,7 @@ const Pt = Ye(
|
|
|
983
983
|
schedulers: c,
|
|
984
984
|
currentScheduler: i,
|
|
985
985
|
catalogOptions: me,
|
|
986
|
-
categories:
|
|
986
|
+
categories: Z,
|
|
987
987
|
subcategories: ve,
|
|
988
988
|
items: ee,
|
|
989
989
|
sortedItems: ye,
|
|
@@ -1001,19 +1001,19 @@ const Pt = Ye(
|
|
|
1001
1001
|
taxSetting: Re,
|
|
1002
1002
|
// Action
|
|
1003
1003
|
setMenu: f,
|
|
1004
|
-
readMenu:
|
|
1004
|
+
readMenu: Ee,
|
|
1005
1005
|
readRestaurants: xe,
|
|
1006
1006
|
selectCatalog: te,
|
|
1007
1007
|
selectScheduler: Oe,
|
|
1008
|
-
selectCategory:
|
|
1009
|
-
setRestaurantAttrParams:
|
|
1008
|
+
selectCategory: De,
|
|
1009
|
+
setRestaurantAttrParams: Ve,
|
|
1010
1010
|
updateMenu: Te,
|
|
1011
1011
|
updateMenuSetting: Fe,
|
|
1012
1012
|
computeMergedMenu: p,
|
|
1013
1013
|
// helper
|
|
1014
1014
|
encodeTax: W,
|
|
1015
|
-
decodeTax:
|
|
1016
|
-
getSelectedTax:
|
|
1015
|
+
decodeTax: ke,
|
|
1016
|
+
getSelectedTax: Ce,
|
|
1017
1017
|
mapVariant: ge,
|
|
1018
1018
|
// history
|
|
1019
1019
|
canUndoHistory: Ke,
|
|
@@ -1022,20 +1022,20 @@ const Pt = Ye(
|
|
|
1022
1022
|
redoHistory: je,
|
|
1023
1023
|
// cleanup
|
|
1024
1024
|
$dispose: () => {
|
|
1025
|
-
w.cancel(),
|
|
1025
|
+
w.cancel(), C && (C(), C = null), k && (k.stop(), k = null), Ne();
|
|
1026
1026
|
},
|
|
1027
1027
|
$reinitialize: () => {
|
|
1028
|
-
|
|
1028
|
+
Q();
|
|
1029
1029
|
}
|
|
1030
1030
|
};
|
|
1031
1031
|
}
|
|
1032
1032
|
);
|
|
1033
1033
|
export {
|
|
1034
|
-
|
|
1034
|
+
Vt as a,
|
|
1035
1035
|
Tt as b,
|
|
1036
1036
|
Ft as c,
|
|
1037
1037
|
Kt as f,
|
|
1038
|
-
|
|
1038
|
+
Dt as g,
|
|
1039
1039
|
Ot as m,
|
|
1040
1040
|
at as o,
|
|
1041
1041
|
Pt as u
|
|
@@ -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-C86Xn-9_.js";
|
|
5
5
|
const v = /* @__PURE__ */ d({
|
|
6
6
|
__name: "AddPriceGroupDialog",
|
|
7
7
|
setup(s) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as ie, computed as Y, resolveComponent as _, createElementBlock as d, openBlock as u, createVNode as t, createCommentVNode as F, unref as n, toDisplayString as L, createElementVNode as h, withCtx as v, Fragment as N, renderList as M, createBlock as I, ref as H, Transition as se, createTextVNode as me } from "vue";
|
|
2
|
-
import { H as S, A as r, u as pe, I as ve, J as ue } from "./menu-
|
|
2
|
+
import { H as S, A as r, u as pe, I as ve, J as ue } from "./menu-C86Xn-9_.js";
|
|
3
3
|
import { useI18n as de } from "@feedmepos/mf-common";
|
|
4
4
|
import { components as _e } from "@feedmepos/ui-library";
|
|
5
|
-
import { _ as ne, a as fe } from "./customAttributes-
|
|
5
|
+
import { _ as ne, a as fe } from "./customAttributes-CwHcnsuN.js";
|
|
6
6
|
import { u as ye } from "./discardConfirm-BHni0LNu.js";
|
|
7
|
-
import { u as he } from "./menu-
|
|
8
|
-
import { L as ge } from "./LinkProductSideSheet-
|
|
7
|
+
import { u as he } from "./menu-D9Yd8DVH.js";
|
|
8
|
+
import { L as ge } from "./LinkProductSideSheet-C3SCYF7r.js";
|
|
9
9
|
const Ve = { class: "space-y-8" }, Fe = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "space-y-16"
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as M, watch as _, ref as E, resolveComponent as f, createBlock as x, openBlock as A, unref as c, withCtx as C, createVNode as V } from "vue";
|
|
2
|
-
import { J as l, A as d, u as F } from "./menu-
|
|
2
|
+
import { J as l, A as d, u as F } from "./menu-C86Xn-9_.js";
|
|
3
3
|
import { useI18n as b } from "@feedmepos/mf-common";
|
|
4
4
|
import { useDialogChild as P } from "@feedmepos/ui-library";
|
|
5
|
-
import { u as v } from "./menuV2-
|
|
5
|
+
import { u as v } from "./menuV2-nMFvrA1G.js";
|
|
6
6
|
const y = /* @__PURE__ */ M({
|
|
7
7
|
__name: "AddSubcategoryDialogContentComponent",
|
|
8
8
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { u as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import "./menu-
|
|
1
|
+
import { u as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-CwJM22EQ.js";
|
|
2
|
+
import "./menu-C86Xn-9_.js";
|
|
3
3
|
var Z = {
|
|
4
4
|
defaultAmount: 0,
|
|
5
5
|
defaultCurrency: "USD",
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { defineStore as J } from "pinia";
|
|
2
2
|
import { defineComponent as O, computed as U, ref as h, watch as T, resolveComponent as V, createBlock as W, openBlock as F, withCtx as w, createVNode as m, createElementVNode as f, normalizeClass as Q, createElementBlock as A, toDisplayString as M, unref as l, Fragment as q, renderSlot as X, renderList as Z, getCurrentInstance as ee } from "vue";
|
|
3
|
-
import { a5 as P, a6 as te, a3 as B, H as k, O as $, G as I, D as E, a4 as ne, J as C, A as D, I as oe, u as ae } from "./menu-
|
|
3
|
+
import { a5 as P, a6 as te, a3 as B, H as k, O as $, G as I, D as E, a4 as ne, J as C, A as D, I as oe, u as ae } from "./menu-C86Xn-9_.js";
|
|
4
4
|
import { useI18n as L } from "@feedmepos/mf-common";
|
|
5
5
|
import { useSnackbar as j, components as le, useDialog as ue, FmButtonVariant as ie } from "@feedmepos/ui-library";
|
|
6
6
|
import { u as se } from "./discardConfirm-BHni0LNu.js";
|
|
7
7
|
import { c as re } from "./check-C9mY6LiX.js";
|
|
8
8
|
import "./vuedraggable-CK8z7qA8.js";
|
|
9
9
|
import "./app-5fxKLAzS.js";
|
|
10
|
-
import "./menuV2-
|
|
10
|
+
import "./menuV2-nMFvrA1G.js";
|
|
11
11
|
/* empty css */
|
|
12
12
|
import { c as me } from "./createComponentProgrammatically-Bt2rn1IQ.js";
|
|
13
13
|
const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
|