@feedmepos/mf-menu 0.32.53-dev → 0.32.53
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-PbFbM-b9.js → App-opl8VW_R.js} +7 -7
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-DRl0F9ex.js → ApplyProduct.vue_vue_type_script_setup_true_lang-CI685o_y.js} +3 -3
- package/dist/{ApplyProductDialog.vue_vue_type_script_setup_true_lang-Dxaiz_KJ.js → ApplyProductDialog.vue_vue_type_script_setup_true_lang-BE37wS9F.js} +2 -2
- package/dist/{Catalog-BV1mgE-z.js → Catalog-CFgFi7F4.js} +6 -6
- package/dist/{Category-C5RNTUST.js → Category-C-QIBnv4.js} +4 -4
- package/dist/{Category-C2ymwzxI.js → Category-C9D0g8il.js} +4 -4
- package/dist/{CookingGuide-Byn0p1cx.js → CookingGuide-miSijISx.js} +4 -4
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-CftleIRB.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-CNXLlPC4.js} +1 -1
- package/dist/{Group-CAOu7mTu.js → Group-C1sw05Nm.js} +3 -3
- package/dist/{Group-B-Z1yY_a.js → Group-DetasO-_.js} +1 -1
- package/dist/{Group.vue_vue_type_script_setup_true_lang-CMfGMwA5.js → Group.vue_vue_type_script_setup_true_lang-DiKZMMau.js} +7 -7
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DEzXdEtH.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BY1jcgZ2.js} +5 -5
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-BtZtkQHn.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-Bjk8zzYz.js} +7 -7
- package/dist/{Ingredient-_-Z-auCy.js → Ingredient-CyZHvNUy.js} +3 -3
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-rBo5MgKk.js → InventoryBinding.vue_vue_type_script_setup_true_lang-5YtnqTmW.js} +2 -2
- package/dist/{LinkProductSideSheet-Cpr-OzhV.js → LinkProductSideSheet-CwW76B20.js} +3 -3
- package/dist/{MenuSetting-BHAYHNoL.js → MenuSetting-DAchuXJ6.js} +6 -6
- package/dist/{OrderPacing-0xP2FLqE.js → OrderPacing-BVIQnDTl.js} +5 -5
- package/dist/{PrintRoute-BXqPWXr-.js → PrintRoute-70IyWjgJ.js} +4 -4
- package/dist/{Product-CCwCq0oF.js → Product-DctvRQlQ.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-BHjCwlbX.js → Product.vue_vue_type_script_setup_true_lang-mJYcstbm.js} +12 -12
- package/dist/{ProductInternalTools-BsUazT7k.js → ProductInternalTools-D_iKLDbw.js} +6 -6
- package/dist/{Products-Y2h_hLvm.js → Products-B0DlF5sy.js} +58 -58
- package/dist/{Publish-10DtltRY.js → Publish-DGsHCtxz.js} +3 -3
- package/dist/{Recipe-BKCEiBY4.js → Recipe-Cu8NbZR7.js} +4 -4
- package/dist/{RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-Y2Ei1h4p.js → RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-DO8Z3QJ3.js} +1 -1
- package/dist/{RuleView.vue_vue_type_script_setup_true_lang-Bc-WFsaf.js → RuleView.vue_vue_type_script_setup_true_lang-avzZyXl2.js} +302 -302
- package/dist/{Scheduler-D1WnpvQd.js → Scheduler-CY8eSvsu.js} +3 -3
- package/dist/{ServingSequence-DZ4MchF3.js → ServingSequence-C4gh5jvR.js} +3 -3
- package/dist/{Setting-BgO-a6VG.js → Setting-CwCP1uIf.js} +5 -5
- package/dist/{Subcategory-mLhMiNx9.js → Subcategory-Chcr9PWi.js} +5 -5
- package/dist/{Takeaway-BN8itU_F.js → Takeaway-C6vyEwBR.js} +4 -4
- package/dist/{Takeaway-B9fVwXW3.js → Takeaway-C8ohkkYR.js} +1 -1
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-CNNtpfY0.js → Takeaway.vue_vue_type_script_setup_true_lang-BqKRwZNT.js} +5 -5
- package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-IEPm4c9G.js → Thumbnail.vue_vue_type_script_setup_true_lang-_dnxm97U.js} +4 -4
- package/dist/{TranslationFieldSection.vue_vue_type_script_setup_true_lang-BWq9E3Pr.js → TranslationFieldSection.vue_vue_type_script_setup_true_lang-Bm4W6NHD.js} +1 -1
- package/dist/{TranslationSideSheet.vue_vue_type_script_setup_true_lang-D2Mdr76E.js → TranslationSideSheet.vue_vue_type_script_setup_true_lang-DD-vqSBo.js} +2 -2
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-CgEcWKsF.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DXhITV7s.js} +14 -14
- package/dist/{Unit-CJTyfSaA.js → Unit-BJOTS840.js} +2 -2
- package/dist/{Variant-CSR0PyJt.js → Variant-1yx-tba5.js} +3 -3
- package/dist/{_id_-B-uZfPBS.js → _id_-Bli_eaaw.js} +9 -9
- package/dist/{app-vpEeMZuq.js → app-CEjAGMYK.js} +1 -1
- package/dist/{app-nRTse_K5.js → app-Df2OaMeW.js} +32 -32
- package/dist/app.js +1 -1
- package/dist/assets/{linked-status-kcewbkLn.js → linked-status-gnRlCKBX.js} +2 -2
- package/dist/assets/{menu-export-LL-Hfzyk.js → menu-export-DVgG2q3T.js} +2 -2
- package/dist/assets/{override-menu-kO9kvtlN.js → override-menu-B5Xlrlwf.js} +2 -2
- package/dist/assets/{validate-menu-Bv0NTZv1.js → validate-menu-Ce8h_1g0.js} +2 -2
- package/dist/{catalog-CVMKoUf8.js → catalog-CKUQEphe.js} +1 -1
- package/dist/{catalogSetting-CJofGu7O.js → catalogSetting-D1cRj-bD.js} +1 -1
- package/dist/{currency-DeBYT9j_.js → currency-BVe0-Ftm.js} +1 -1
- package/dist/{dayjs.min-Ws3b1WxF.js → dayjs.min-Cky8XfOQ.js} +2 -2
- package/dist/{index-v56nMLPD.js → index-CGHFswp3.js} +4 -4
- package/dist/{index-OUJmHOAU.js → index-DLC-j2RG.js} +5 -5
- package/dist/{index.vue_vue_type_script_setup_true_lang-DPaHA1bp.js → index.vue_vue_type_script_setup_true_lang-D8icZ01s.js} +6 -6
- package/dist/{item-D5rytEqk.js → item-C2zRGcji.js} +18 -18
- package/dist/{jszip.min-C6uUCcnL.js → jszip.min-Cw0XEEly.js} +153 -153
- package/dist/{memberPricing-CBzr9qLU.js → memberPricing-vGotpgxh.js} +1 -1
- package/dist/{menu-BhxWRy0N.js → menu-33fQZyJt.js} +1 -1
- package/dist/{menuV2-Ds1f3a8P.js → menuV2-BolaQLav.js} +76 -76
- package/dist/{order_pacing-CYuEj5Sb.js → order_pacing-By6jv8HG.js} +5 -5
- package/dist/{priceTier-KEgRA3RV.js → priceTier-DhA6Ve0R.js} +1 -1
- package/dist/{rules-C1xA7rwc.js → rules-glZCxFHS.js} +3 -3
- package/dist/{scheduler-C5YdAro0.js → scheduler-Cnzgnk6d.js} +4 -4
- package/dist/{toExcel-Dv-vcMzg.js → toExcel-Bym1fMDm.js} +2 -2
- package/dist/{unit-WEAw3qgL.js → unit-BWwoKT39.js} +2 -2
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent as Z, ref as v, computed as $, resolveComponent as G, createElementBlock as c, openBlock as r, createElementVNode as s, createVNode as I, unref as h, createCommentVNode as T, normalizeClass as E, toDisplayString as U, createStaticVNode as B, Fragment as P, renderList as O, createBlock as oe, withCtx as R } from "vue";
|
|
2
|
-
import { J as A, F as ne } from "./jszip.min-
|
|
3
|
-
import { B as le, u as ie, H as D, a3 as re, M as ce, N as de, O as me } from "./index.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { J as A, F as ne } from "./jszip.min-Cw0XEEly.js";
|
|
3
|
+
import { B as le, u as ie, H as D, a3 as re, M as ce, N as de, O as me } from "./index.vue_vue_type_script_setup_true_lang-D8icZ01s.js";
|
|
4
4
|
import { useI18n as ue } from "@feedmepos/mf-common";
|
|
5
5
|
import { FmButtonVariant as z, useSnackbar as V, useDialog as ge, FmButtonColorThemeVariant as S } from "@feedmepos/ui-library";
|
|
6
6
|
import { _ as pe } from "./PageLayout.vue_vue_type_script_setup_true_lang-BVmHMvKD.js";
|
|
7
|
-
import { u as fe, a as he } from "./menu-
|
|
8
|
-
import { a as ye } from "./Product.vue_vue_type_script_setup_true_lang-
|
|
9
|
-
import { D as be, E as ve, G as _e } from "./item-
|
|
7
|
+
import { u as fe, a as he } from "./menu-33fQZyJt.js";
|
|
8
|
+
import { a as ye } from "./Product.vue_vue_type_script_setup_true_lang-mJYcstbm.js";
|
|
9
|
+
import { D as be, E as ve, G as _e } from "./item-C2zRGcji.js";
|
|
10
10
|
const we = { class: "h-full flex flex-col" }, xe = { class: "flex items-center justify-between p-16 border-b border-gray-200" }, Ie = { class: "flex gap-8" }, ke = { class: "border-b border-gray-200" }, Ce = { class: "flex" }, Ue = { class: "flex-1 overflow-hidden" }, je = {
|
|
11
11
|
key: 0,
|
|
12
12
|
class: "h-full flex flex-col"
|
|
@@ -151,7 +151,7 @@ const we = { class: "h-full flex flex-col" }, xe = { class: "flex items-center j
|
|
|
151
151
|
};
|
|
152
152
|
}
|
|
153
153
|
});
|
|
154
|
-
var He = { firebase: { storageBucket: "image.
|
|
154
|
+
var He = { firebase: { storageBucket: "image.feedme.cc" } };
|
|
155
155
|
const Je = {
|
|
156
156
|
key: 0,
|
|
157
157
|
class: "h-screen"
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { D as
|
|
3
|
-
import { J as re, F as ie } from "./jszip.min-
|
|
4
|
-
import { u as K, B as Q, z as
|
|
5
|
-
import { w as me } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-
|
|
6
|
-
import { h as $, A as q } from "./app-
|
|
1
|
+
import { defineComponent as I, computed as _, ref as W, resolveComponent as w, createBlock as m, openBlock as l, unref as e, withCtx as p, createElementVNode as d, toDisplayString as Z, createVNode as u, createCommentVNode as C, createElementBlock as U, Fragment as L } from "vue";
|
|
2
|
+
import { D as T } from "./dayjs.min-Cky8XfOQ.js";
|
|
3
|
+
import { J as re, F as ie } from "./jszip.min-Cw0XEEly.js";
|
|
4
|
+
import { u as K, B as Q, z as j, D as H, y as X, A as le, G as ue, H as R, I as ce } from "./index.vue_vue_type_script_setup_true_lang-D8icZ01s.js";
|
|
5
|
+
import { w as me } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-Bjk8zzYz.js";
|
|
6
|
+
import { h as $, A as q } from "./app-Df2OaMeW.js";
|
|
7
7
|
import { useCoreStore as ee, useI18n as de } from "@feedmepos/mf-common";
|
|
8
|
-
import { useDialog as te, useDialogChild as pe, useSnackbar as ne, useBreakpoints as
|
|
9
|
-
import { _ as
|
|
10
|
-
import { _ as
|
|
8
|
+
import { useDialog as te, useDialogChild as pe, useSnackbar as ne, useBreakpoints as _e, FmButtonVariant as E, FmButtonColorThemeVariant as h } from "@feedmepos/ui-library";
|
|
9
|
+
import { _ as D } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
10
|
+
import { _ as fe, a as G } from "./BottomSheetMenuItem.vue_vue_type_script_setup_true_lang-DhrXKy3b.js";
|
|
11
11
|
import { _ as ge } from "./PageLayout.vue_vue_type_script_setup_true_lang-BVmHMvKD.js";
|
|
12
|
-
import { u as ve, a as be } from "./menu-
|
|
13
|
-
import { u as ye } from "./item-
|
|
14
|
-
import { _ as O, a as ke } from "./Product.vue_vue_type_script_setup_true_lang-
|
|
15
|
-
import { L as J } from "./LinkProductSideSheet-
|
|
16
|
-
import { _ as xe } from "./TreeEditorOpenner.vue_vue_type_script_setup_true_lang-
|
|
17
|
-
import { u as Se } from "./Thumbnail.vue_vue_type_script_setup_true_lang-
|
|
18
|
-
import { m as he } from "./toExcel-
|
|
19
|
-
const Me = { class: "space-y-24 mb-24" }, Ce = ["innerHTML"], we = { class: "flex justify-end gap-8" }, Fe = /* @__PURE__ */
|
|
12
|
+
import { u as ve, a as be } from "./menu-33fQZyJt.js";
|
|
13
|
+
import { u as ye } from "./item-C2zRGcji.js";
|
|
14
|
+
import { _ as O, a as ke } from "./Product.vue_vue_type_script_setup_true_lang-mJYcstbm.js";
|
|
15
|
+
import { L as J } from "./LinkProductSideSheet-CwW76B20.js";
|
|
16
|
+
import { _ as xe } from "./TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DXhITV7s.js";
|
|
17
|
+
import { u as Se } from "./Thumbnail.vue_vue_type_script_setup_true_lang-_dnxm97U.js";
|
|
18
|
+
import { m as he } from "./toExcel-Bym1fMDm.js";
|
|
19
|
+
const Me = { class: "space-y-24 mb-24" }, Ce = ["innerHTML"], we = { class: "flex justify-end gap-8" }, Fe = /* @__PURE__ */ I({
|
|
20
20
|
__name: "ConfirmActionDialog",
|
|
21
21
|
props: {
|
|
22
22
|
description: {},
|
|
@@ -24,7 +24,7 @@ const Me = { class: "space-y-24 mb-24" }, Ce = ["innerHTML"], we = { class: "fle
|
|
|
24
24
|
message: { default: "To confirm your action, type <b>[[value]]</b> in the text field." }
|
|
25
25
|
},
|
|
26
26
|
setup(V) {
|
|
27
|
-
const n = V,
|
|
27
|
+
const n = V, f = _(() => n.message.replace("[[value]]", n.value)), y = W(""), o = te(), { emitAction: k } = pe();
|
|
28
28
|
return (g, i) => {
|
|
29
29
|
const x = w("FmTextField"), S = w("FmButton"), v = w("FmForm");
|
|
30
30
|
return l(), m(v, {
|
|
@@ -34,7 +34,7 @@ const Me = { class: "space-y-24 mb-24" }, Ce = ["innerHTML"], we = { class: "fle
|
|
|
34
34
|
default: p(() => [
|
|
35
35
|
d("div", Me, [
|
|
36
36
|
d("div", null, Z(g.description), 1),
|
|
37
|
-
d("div", { innerHTML:
|
|
37
|
+
d("div", { innerHTML: f.value }, null, 8, Ce),
|
|
38
38
|
d("div", null, [
|
|
39
39
|
u(x, {
|
|
40
40
|
modelValue: y.value,
|
|
@@ -64,10 +64,10 @@ const Me = { class: "space-y-24 mb-24" }, Ce = ["innerHTML"], we = { class: "fle
|
|
|
64
64
|
}, 8, ["on-validation-success"]);
|
|
65
65
|
};
|
|
66
66
|
}
|
|
67
|
-
}), $e = /* @__PURE__ */
|
|
67
|
+
}), $e = /* @__PURE__ */ I({
|
|
68
68
|
__name: "Migrate",
|
|
69
69
|
setup(V) {
|
|
70
|
-
const n = K(),
|
|
70
|
+
const n = K(), f = ee(), y = ne(), { minor: o } = Q(y), k = W(!1), g = te();
|
|
71
71
|
async function i() {
|
|
72
72
|
x.value || k.value || g.open({
|
|
73
73
|
title: "Migrate to new version",
|
|
@@ -92,14 +92,14 @@ const Me = { class: "space-y-24 mb-24" }, Ce = ["innerHTML"], we = { class: "fle
|
|
|
92
92
|
);
|
|
93
93
|
});
|
|
94
94
|
}
|
|
95
|
-
const x =
|
|
95
|
+
const x = _(() => {
|
|
96
96
|
var M;
|
|
97
|
-
if (((M =
|
|
97
|
+
if (((M = f.sessionUser.value) == null ? void 0 : M.role.isAdmin) === !0)
|
|
98
98
|
return null;
|
|
99
|
-
const v =
|
|
99
|
+
const v = f.restaurants.value;
|
|
100
100
|
if (!v.length) return "Required at least one restaurant to migrate";
|
|
101
|
-
const c = v.filter((b) => !b.posVersion || !
|
|
102
|
-
return c.length ? `Upgrade POS to V${
|
|
101
|
+
const c = v.filter((b) => !b.posVersion || !j.Pos.canUse({ feature: H.F_FEATURE.enum.menuV4, posVersion: b.posVersion }));
|
|
102
|
+
return c.length ? `Upgrade POS to V${j.Pos.minVersionToUse(H.F_FEATURE.enum.menuV4)} to use new menu: ${c.map((b) => b.profile.name).join(", ")}` : null;
|
|
103
103
|
});
|
|
104
104
|
return (S, v) => {
|
|
105
105
|
const c = w("FmSnackbar");
|
|
@@ -115,14 +115,14 @@ const Me = { class: "space-y-24 mb-24" }, Ce = ["innerHTML"], we = { class: "fle
|
|
|
115
115
|
})) : C("", !0);
|
|
116
116
|
};
|
|
117
117
|
}
|
|
118
|
-
}), Ve = "/assets/menu-export-
|
|
118
|
+
}), Ve = "/assets/menu-export-DVgG2q3T.js", Ae = { class: "flex-1 flex justify-between gap-8 pl-8" }, Te = { class: "flex items-center" }, Ee = { class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4" }, De = { class: "fm-typo-en-body-md-600 font-semibold" }, Ie = { class: "flex gap-8" }, Xe = /* @__PURE__ */ I({
|
|
119
119
|
__name: "Products",
|
|
120
120
|
setup(V) {
|
|
121
|
-
const { t: n } = de(),
|
|
121
|
+
const { t: n } = de(), f = ee(), y = Q(ne()), o = K(), k = _(() => o.rules.item), g = ye(), i = _(() => !o.state.currentSchedulerId), { selectedCategories: x } = ve(), S = _(() => ({
|
|
122
122
|
...le.menuV4ToV3(ue(o.state.menu)),
|
|
123
123
|
_id: o.state.menu._id,
|
|
124
124
|
_rev: o.state.menu._rev
|
|
125
|
-
})), v =
|
|
125
|
+
})), v = _(() => {
|
|
126
126
|
const r = R.flatten(x.value.map((t) => t.items));
|
|
127
127
|
return R.uniqBy(r, (t) => t._id).length;
|
|
128
128
|
});
|
|
@@ -131,13 +131,13 @@ const Me = { class: "space-y-24 mb-24" }, Ce = ["innerHTML"], we = { class: "fle
|
|
|
131
131
|
for (let F = 0; F < r.length; F++)
|
|
132
132
|
a.file(`${t[F]}.xlsx`, r[F]);
|
|
133
133
|
const s = await a.generateAsync({ type: "blob" });
|
|
134
|
-
ie.saveAs(s, `books_${
|
|
134
|
+
ie.saveAs(s, `books_${T().format("DD-MM-YYYY_HH-mm")}.zip`);
|
|
135
135
|
}
|
|
136
136
|
async function A() {
|
|
137
137
|
await y.minor(
|
|
138
138
|
async () => {
|
|
139
139
|
if (await o.readMenu(), o.version === X.enum.v4) {
|
|
140
|
-
const r = o.state.menu, t =
|
|
140
|
+
const r = o.state.menu, t = T().format("DD-MM-YYYY_HH-mm"), a = [
|
|
141
141
|
`menu_${t}`,
|
|
142
142
|
`addonGroup_${t}`,
|
|
143
143
|
`itemLinkedAddon_${t}`,
|
|
@@ -146,13 +146,13 @@ const Me = { class: "space-y-24 mb-24" }, Ce = ["innerHTML"], we = { class: "fle
|
|
|
146
146
|
Ve,
|
|
147
147
|
JSON.stringify({
|
|
148
148
|
menu: r,
|
|
149
|
-
attributeSettings:
|
|
149
|
+
attributeSettings: f.itemAttributeSettings.value,
|
|
150
150
|
localizationKeys: o.state.featureFlags.supportedLocales
|
|
151
151
|
})
|
|
152
152
|
);
|
|
153
153
|
await c(s, a);
|
|
154
154
|
} else {
|
|
155
|
-
const r = he(S.value), t = `menu_${
|
|
155
|
+
const r = he(S.value), t = `menu_${T().format("DD-MM-YYYY_HH-mm")}`;
|
|
156
156
|
await me(r, `${t}.xlsx`, {
|
|
157
157
|
bookType: "xlsx",
|
|
158
158
|
bookSST: !0,
|
|
@@ -169,18 +169,18 @@ const Me = { class: "space-y-24 mb-24" }, Ce = ["innerHTML"], we = { class: "fle
|
|
|
169
169
|
categories: b,
|
|
170
170
|
linkItemRules: B,
|
|
171
171
|
handleSubmit: Y,
|
|
172
|
-
catalogManager:
|
|
173
|
-
schedulerManager:
|
|
174
|
-
} = Se(!1), oe =
|
|
172
|
+
catalogManager: N,
|
|
173
|
+
schedulerManager: z
|
|
174
|
+
} = Se(!1), oe = _e(), ae = _(() => oe.breakpoints.value.xs), se = _(() => {
|
|
175
175
|
var a;
|
|
176
|
-
const r = ((a =
|
|
176
|
+
const r = ((a = f.sessionUser.value) == null ? void 0 : a.permissions) ?? [], t = {
|
|
177
177
|
action: $.Action.manage,
|
|
178
178
|
subject: $.Subject.Business.menu_menuManagement
|
|
179
179
|
};
|
|
180
180
|
return q([t], r).granted;
|
|
181
|
-
}),
|
|
181
|
+
}), P = _(() => {
|
|
182
182
|
var a;
|
|
183
|
-
const r = ((a =
|
|
183
|
+
const r = ((a = f.sessionUser.value) == null ? void 0 : a.permissions) ?? [], t = {
|
|
184
184
|
action: $.Action.manage,
|
|
185
185
|
subject: $.Subject.Business.menu_importExport
|
|
186
186
|
};
|
|
@@ -197,15 +197,15 @@ const Me = { class: "space-y-24 mb-24" }, Ce = ["innerHTML"], we = { class: "fle
|
|
|
197
197
|
]),
|
|
198
198
|
"append-heading": p(() => [
|
|
199
199
|
d("div", Ae, [
|
|
200
|
-
d("div",
|
|
201
|
-
d("div",
|
|
202
|
-
d("p",
|
|
200
|
+
d("div", Te, [
|
|
201
|
+
d("div", Ee, [
|
|
202
|
+
d("p", De, Z(v.value), 1)
|
|
203
203
|
])
|
|
204
204
|
]),
|
|
205
|
-
d("div",
|
|
205
|
+
d("div", Ie, [
|
|
206
206
|
ae.value ? (l(), m(O, { key: 1 }, {
|
|
207
207
|
default: p(({ trigger: s }) => [
|
|
208
|
-
u(
|
|
208
|
+
u(fe, null, {
|
|
209
209
|
default: p(() => [
|
|
210
210
|
u(G, {
|
|
211
211
|
label: e(n)("menu.products.actions.export"),
|
|
@@ -220,33 +220,33 @@ const Me = { class: "space-y-24 mb-24" }, Ce = ["innerHTML"], we = { class: "fle
|
|
|
220
220
|
}, 1024)
|
|
221
221
|
]),
|
|
222
222
|
_: 1
|
|
223
|
-
})) : (l(),
|
|
223
|
+
})) : (l(), U(L, { key: 0 }, [
|
|
224
224
|
se.value ? (l(), m(xe, { key: 0 }, {
|
|
225
225
|
default: p(({ trigger: s }) => [
|
|
226
226
|
u(a, {
|
|
227
227
|
label: e(n)("menu.tree_editor.title"),
|
|
228
228
|
"bg-color": e(h).NeutralGray100,
|
|
229
229
|
"text-color": e(h).TypoSecondary,
|
|
230
|
-
variant: e(
|
|
230
|
+
variant: e(E).Primary,
|
|
231
231
|
onClick: s
|
|
232
232
|
}, null, 8, ["label", "bg-color", "text-color", "variant", "onClick"])
|
|
233
233
|
]),
|
|
234
234
|
_: 1
|
|
235
235
|
})) : C("", !0),
|
|
236
|
-
|
|
236
|
+
P.value ? (l(), m(a, {
|
|
237
237
|
key: 1,
|
|
238
238
|
"bg-color": e(h).NeutralGray100,
|
|
239
239
|
"text-color": e(h).TypoSecondary,
|
|
240
|
-
variant: e(
|
|
240
|
+
variant: e(E).Primary,
|
|
241
241
|
label: e(n)("menu.products.actions.export"),
|
|
242
242
|
onClick: A
|
|
243
243
|
}, null, 8, ["bg-color", "text-color", "variant", "label"])) : C("", !0),
|
|
244
|
-
|
|
244
|
+
P.value ? (l(), m(O, { key: 2 }, {
|
|
245
245
|
default: p(({ trigger: s }) => [
|
|
246
246
|
u(a, {
|
|
247
247
|
"bg-color": e(h).NeutralGray100,
|
|
248
248
|
"text-color": e(h).TypoSecondary,
|
|
249
|
-
variant: e(
|
|
249
|
+
variant: e(E).Primary,
|
|
250
250
|
label: e(n)("menu.products.actions.import"),
|
|
251
251
|
onClick: s
|
|
252
252
|
}, null, 8, ["bg-color", "text-color", "variant", "label", "onClick"])
|
|
@@ -254,16 +254,16 @@ const Me = { class: "space-y-24 mb-24" }, Ce = ["innerHTML"], we = { class: "fle
|
|
|
254
254
|
_: 1
|
|
255
255
|
})) : C("", !0)
|
|
256
256
|
], 64)),
|
|
257
|
-
v.value > 0 ? (l(),
|
|
258
|
-
k.value.create ? (l(), m(
|
|
257
|
+
v.value > 0 ? (l(), U(L, { key: 2 }, [
|
|
258
|
+
k.value.create ? (l(), m(D, {
|
|
259
259
|
key: 0,
|
|
260
260
|
label: e(n)("menu.products.actions.add"),
|
|
261
261
|
"prepend-icon": "add",
|
|
262
262
|
onClick: t[0] || (t[0] = (s) => e(g).create(null))
|
|
263
263
|
}, null, 8, ["label"])) : i.value ? (l(), m(J, {
|
|
264
264
|
key: 1,
|
|
265
|
-
"categorized-items": e(
|
|
266
|
-
"initial-value": e(
|
|
265
|
+
"categorized-items": e(N).linkableItems.value,
|
|
266
|
+
"initial-value": e(N).currentItems.value,
|
|
267
267
|
"show-variant": !1,
|
|
268
268
|
"menu-items": e(M),
|
|
269
269
|
categories: e(b),
|
|
@@ -272,7 +272,7 @@ const Me = { class: "space-y-24 mb-24" }, Ce = ["innerHTML"], we = { class: "fle
|
|
|
272
272
|
onSubmit: e(Y)
|
|
273
273
|
}, {
|
|
274
274
|
default: p(({ trigger: s }) => [
|
|
275
|
-
u(
|
|
275
|
+
u(D, {
|
|
276
276
|
label: e(n)("menu.products.actions.link"),
|
|
277
277
|
"prepend-icon": "link",
|
|
278
278
|
onClick: s
|
|
@@ -281,8 +281,8 @@ const Me = { class: "space-y-24 mb-24" }, Ce = ["innerHTML"], we = { class: "fle
|
|
|
281
281
|
_: 1
|
|
282
282
|
}, 8, ["categorized-items", "initial-value", "menu-items", "categories", "link-item-rules", "no-scheduler", "onSubmit"])) : (l(), m(J, {
|
|
283
283
|
key: 2,
|
|
284
|
-
"categorized-items": e(
|
|
285
|
-
"initial-value": e(
|
|
284
|
+
"categorized-items": e(z).linkableItems.value,
|
|
285
|
+
"initial-value": e(z).currentItems.value,
|
|
286
286
|
"show-variant": !1,
|
|
287
287
|
"menu-items": e(M),
|
|
288
288
|
categories: e(b),
|
|
@@ -291,7 +291,7 @@ const Me = { class: "space-y-24 mb-24" }, Ce = ["innerHTML"], we = { class: "fle
|
|
|
291
291
|
onSubmit: e(Y)
|
|
292
292
|
}, {
|
|
293
293
|
default: p(({ trigger: s }) => [
|
|
294
|
-
u(
|
|
294
|
+
u(D, {
|
|
295
295
|
label: e(n)("menu.products.actions.apply_scheduler"),
|
|
296
296
|
onClick: s
|
|
297
297
|
}, null, 8, ["label", "onClick"])
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent as J, ref as P, computed as A, onMounted as me, resolveComponent as $, createElementBlock as F, openBlock as y, createVNode as b, createElementVNode as f, toDisplayString as z, unref as m, Fragment as j, renderList as Q, createBlock as Y, watch as pe, withCtx as T, h as B, normalizeClass as ce, createCommentVNode as X, createTextVNode as _e, mergeProps as Oe, normalizeStyle as Be, renderSlot as Te, withModifiers as le, onUnmounted as ze } from "vue";
|
|
2
|
-
import { D as E } from "./dayjs.min-
|
|
2
|
+
import { D as E } from "./dayjs.min-Cky8XfOQ.js";
|
|
3
3
|
import { useRouter as Ee } from "vue-router";
|
|
4
4
|
import { O as Le, b as je } from "./app-5fxKLAzS.js";
|
|
5
|
-
import { z as Ke, D as Ye, B as Ce, ah as He, a5 as we, ai as W, u as xe, G as ge, H as qe, y as Ge } from "./index.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { z as Ke, D as Ye, B as Ce, ah as He, a5 as we, ai as W, u as xe, G as ge, H as qe, y as Ge } from "./index.vue_vue_type_script_setup_true_lang-D8icZ01s.js";
|
|
6
6
|
import { useI18n as Z, useCoreStore as he, RestaurantSelector as Ve } from "@feedmepos/mf-common";
|
|
7
7
|
import { useSnackbar as fe, useDialogChild as Je, useProxiedModel as We, useDialog as Se, components as ee, FmButtonVariant as ye } from "@feedmepos/ui-library";
|
|
8
8
|
import { _ as Qe } from "./TextChip.vue_vue_type_script_setup_true_lang-8frWuZFL.js";
|
|
9
|
-
import { _ as Fe } from "./app-
|
|
9
|
+
import { _ as Fe } from "./app-Df2OaMeW.js";
|
|
10
10
|
import { a as Xe, w as Ze } from "./tooltip-B5BiPMx9.js";
|
|
11
11
|
import { u as Ie } from "./discardConfirm-BHni0LNu.js";
|
|
12
12
|
import { _ as Pe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
@@ -2,14 +2,14 @@ import { defineComponent as z, computed as h, ref as E, reactive as Q, watch as
|
|
|
2
2
|
import { useI18n as M } from "@feedmepos/mf-common";
|
|
3
3
|
import { useSnackbar as P, components as G, useDialog as ne, FmButtonVariant as K, useBreakpoints as oe } from "@feedmepos/ui-library";
|
|
4
4
|
import { _ as ae } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
5
|
-
import { _ as le } from "./app-
|
|
6
|
-
import { P as q, B as $, G as ie, A as D, H as se, D as L, J as A, K as O, u as H, a5 as re } from "./index.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { _ as le } from "./app-Df2OaMeW.js";
|
|
6
|
+
import { P as q, B as $, G as ie, A as D, H as se, D as L, J as A, K as O, u as H, a5 as re } from "./index.vue_vue_type_script_setup_true_lang-D8icZ01s.js";
|
|
7
7
|
import { _ as ce } from "./PageLayout.vue_vue_type_script_setup_true_lang-BVmHMvKD.js";
|
|
8
8
|
import { defineStore as ue } from "pinia";
|
|
9
|
-
import { _ as Y, g as me } from "./InventoryBinding.vue_vue_type_script_setup_true_lang-
|
|
9
|
+
import { _ as Y, g as me } from "./InventoryBinding.vue_vue_type_script_setup_true_lang-5YtnqTmW.js";
|
|
10
10
|
import { u as de } from "./discardConfirm-BHni0LNu.js";
|
|
11
11
|
import { c as pe } from "./check-C9mY6LiX.js";
|
|
12
|
-
import "./unit-
|
|
12
|
+
import "./unit-BWwoKT39.js";
|
|
13
13
|
import { c as fe } from "./createComponentProgrammatically-Bt2rn1IQ.js";
|
|
14
14
|
const _e = { class: "fm-typo-en-title-md-600" }, ve = { class: "pt-8 space-y-40" }, ye = { class: "flex flex-row gap-16" }, ge = { class: "flex gap-8 items-center justify-start" }, be = /* @__PURE__ */ z({
|
|
15
15
|
__name: "Form",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as D, ref as R, resolveComponent as u, createElementBlock as E, openBlock as P, Fragment as B, createElementVNode as d, createVNode as l, normalizeClass as A, withCtx as i, toDisplayString as g, unref as o, h as I } from "vue";
|
|
2
2
|
import { useI18n as T, useCustomAttributes as K, useCoreStore as N } from "@feedmepos/mf-common";
|
|
3
3
|
import { components as U } from "@feedmepos/ui-library";
|
|
4
|
-
import { e as W, _ as y } from "./RuleView.vue_vue_type_script_setup_true_lang-
|
|
4
|
+
import { e as W, _ as y } from "./RuleView.vue_vue_type_script_setup_true_lang-avzZyXl2.js";
|
|
5
5
|
const j = {
|
|
6
6
|
class: /* @__PURE__ */ A(["fm-typo-en-body-md-600 select-none text-ellipsis overflow-hidden whitespace-nowrap", "text-fm-color-neutral-gray-400"])
|
|
7
7
|
}, O = {
|