@feedmepos/mf-menu 0.32.69 → 0.32.71
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-CkqcWg7S.js → App-Bay6p3xd.js} +8 -8
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-BhG20Otb.js → ApplyProduct.vue_vue_type_script_setup_true_lang-Je_NoQ3y.js} +3 -3
- package/dist/{ApplyProductDialog.vue_vue_type_script_setup_true_lang-VtSDhyxF.js → ApplyProductDialog.vue_vue_type_script_setup_true_lang-DBjYkJhB.js} +3 -3
- package/dist/{Catalog-DFt5sHAc.js → Catalog-DfWHNm4n.js} +6 -6
- package/dist/{Category-Ky71Gp-v.js → Category-51BrJsdv.js} +4 -4
- package/dist/{Category-CsunLGhh.js → Category-m45WrP7O.js} +4 -4
- package/dist/{CookingGuide-CCtT6m33.js → CookingGuide-Dk-ibGYd.js} +5 -5
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-BoL0i1uZ.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-CzpScELw.js} +1 -1
- package/dist/{Group-llBpSqev.js → Group-CZDoqPK7.js} +3 -3
- package/dist/{Group-CPF8_pyC.js → Group-NUWfR17j.js} +1 -1
- package/dist/{Group.vue_vue_type_script_setup_true_lang-B1eL9TxG.js → Group.vue_vue_type_script_setup_true_lang-h8zygLBJ.js} +7 -7
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CXWmmLn6.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-Dq5jMv3_.js} +5 -5
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-xAjv38VK.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-EsQKUSJa.js} +7 -7
- package/dist/{Ingredient-10tyBIdU.js → Ingredient-CcnUyiM5.js} +4 -4
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-DHdCl7qE.js → InventoryBinding.vue_vue_type_script_setup_true_lang-BwxZEDVT.js} +2 -2
- package/dist/{LinkProductSideSheet-DvzRszmI.js → LinkProductSideSheet-ClMiajzX.js} +4 -4
- package/dist/{MenuSetting-D_fJ0Nh1.js → MenuSetting-Dw3lVHtp.js} +7 -7
- package/dist/{OrderPacing-BLGBL00l.js → OrderPacing-Dh8T7OKW.js} +5 -5
- package/dist/{PrintRoute-CTJePpsK.js → PrintRoute-BrSaSZI3.js} +5 -5
- package/dist/{Product-B1BEM32b.js → Product-CQ7AuhbY.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-lUGzPr_a.js → Product.vue_vue_type_script_setup_true_lang-Bw6l2IEC.js} +14 -14
- package/dist/{ProductInternalTools-DO1On9V6.js → ProductInternalTools-2rYX2GR0.js} +7 -7
- package/dist/{Products-Dw1aYtPB.js → Products-CoL7S7-1.js} +65 -65
- package/dist/Publish-C_lOqrSX.js +1581 -0
- package/dist/{Recipe-p8OmyzT8.js → Recipe-Ce8qXnG5.js} +5 -5
- package/dist/{RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-7Ab3OzAU.js → RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-DMB9bFg9.js} +1 -1
- package/dist/{RuleView.vue_vue_type_script_setup_true_lang-DMRyx0V7.js → RuleView.vue_vue_type_script_setup_true_lang-D9i9tMAj.js} +722 -722
- package/dist/{Scheduler-bJIwoxJQ.js → Scheduler-B2ZtWIPp.js} +65 -64
- package/dist/{ServingSequence-DXpq5-Sv.js → ServingSequence-BWZ1YpzI.js} +3 -3
- package/dist/{Setting-BOxDPwyd.js → Setting-CdxNVi7G.js} +5 -5
- package/dist/{Subcategory-CtapgQWV.js → Subcategory-Bn0O6i5t.js} +6 -6
- package/dist/{Takeaway-BOvGqe0f.js → Takeaway-luRkknPl.js} +1 -1
- package/dist/{Takeaway-CKo0enwK.js → Takeaway-yE0GhL5I.js} +4 -4
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-BWoq54ru.js → Takeaway.vue_vue_type_script_setup_true_lang-CnZTbF3e.js} +5 -5
- package/dist/{TranslationFieldSection.vue_vue_type_script_setup_true_lang-VYrjC7c8.js → TranslationFieldSection.vue_vue_type_script_setup_true_lang-B3N7_zfR.js} +1 -1
- package/dist/{TranslationSideSheet.vue_vue_type_script_setup_true_lang-CGCx6D5Y.js → TranslationSideSheet.vue_vue_type_script_setup_true_lang-BLzzBcqV.js} +2 -2
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-xHzhKbpN.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BvnoCeCw.js} +15 -15
- package/dist/{Unit-CtFTRvvy.js → Unit-JPFtrbuS.js} +2 -2
- package/dist/{Variant-D4QMrOee.js → Variant-BGJ-aKF1.js} +3 -3
- package/dist/{_id_-BYr-NECf.js → _id_-BUlkRwgU.js} +10 -10
- package/dist/{app-DNh5SqEy.js → app-2VeaJE9t.js} +37 -37
- package/dist/{app-B0TUeVKL.js → app-CMjz-bvL.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/productImages.d.ts +29 -17
- package/dist/apps/mf-menu/src/components/feature/publish.d.ts +2 -2
- package/dist/assets/{linked-status-VS3D4vr6.js → linked-status-B9caUckb.js} +2 -2
- package/dist/assets/{menu-export-wMnl913u.js → menu-export-DYfPYpgS.js} +34 -34
- package/dist/assets/{override-menu-0N_qNcuX.js → override-menu-uNjUqcak.js} +2 -2
- package/dist/assets/{validate-menu-CUOc0Cpy.js → validate-menu-BiXMOXpN.js} +2 -2
- package/dist/{catalog-D7lA7mT_.js → catalog--64fgdzd.js} +1 -1
- package/dist/{catalogSetting-O0tJo-T7.js → catalogSetting-CplTgRmk.js} +1 -1
- package/dist/{currency-CHsj_J0b.js → currency-CjYkQ4FL.js} +1 -1
- package/dist/{dayjs.min-DeBV2WG7.js → dayjs.min-DCMtwvjf.js} +2 -2
- package/dist/{discardConfirm-CYxTrfx-.js → discardConfirm-DOc0ieeO.js} +1 -1
- package/dist/{index-BFldIBpf.js → index-BrtZ42qx.js} +6 -6
- package/dist/{index-DQUODrNy.js → index-CTA48kW2.js} +1 -1
- package/dist/{index-D5gtDsAd.js → index-Dw_Fw5ni.js} +5 -5
- package/dist/{index.vue_vue_type_script_setup_true_lang-C7ZQI7Ck.js → index.vue_vue_type_script_setup_true_lang-BCZZq6zJ.js} +10760 -10755
- package/dist/{item-KLAdfYvM.js → item-DL0lbXPC.js} +592 -586
- package/dist/{jszip.min-Vn2-CH88.js → jszip.min-CTn9qnAT.js} +167 -167
- package/dist/{linkProducts-BC3LTMzZ.js → linkProducts-DNPyRjOC.js} +4 -4
- package/dist/{memberPricing-CoFY9U1J.js → memberPricing-ByMD7Sun.js} +1 -1
- package/dist/{menu-BwtqZ_Yz.js → menu-C77otNXH.js} +1 -1
- package/dist/{menuV2-Cadt2gJu.js → menuV2-Bi_EMfOM.js} +38 -38
- package/dist/mf-menu.css +1 -1
- package/dist/{order_pacing-Dr7DHsai.js → order_pacing-29v64nh0.js} +5 -5
- package/dist/{priceTier-DnD28JYo.js → priceTier-BscL3YjX.js} +1 -1
- package/dist/{rules-BL4uMD7m.js → rules-BYL-otiB.js} +3 -3
- package/dist/{scheduler-B0UE4CHB.js → scheduler-Cqvnr0u1.js} +166 -166
- package/dist/{toExcel-OdTMnhFs.js → toExcel-421pbm-Z.js} +2 -2
- package/dist/{unit-MUk9trKB.js → unit-DDtyAbV0.js} +3 -3
- package/package.json +2 -2
- package/dist/Publish-ZTiUf2NT.js +0 -1565
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { defineComponent as Z, ref as v, computed as $, resolveComponent as W, 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 R, createBlock as oe, withCtx as A } from "vue";
|
|
2
|
-
import { J as O, F as ne } from "./jszip.min-
|
|
3
|
-
import { l as D } from "./discardConfirm-
|
|
2
|
+
import { J as O, F as ne } from "./jszip.min-CTn9qnAT.js";
|
|
3
|
+
import { l as D } from "./discardConfirm-DOc0ieeO.js";
|
|
4
4
|
import { useI18n as le } from "@feedmepos/mf-common";
|
|
5
5
|
import { FmButtonVariant as z, useSnackbar as V, useDialog as ie, FmButtonColorThemeVariant as M } from "@feedmepos/ui-library";
|
|
6
|
-
import { b as re, u as ce, p as de, x as me } from "./index.vue_vue_type_script_setup_true_lang-
|
|
6
|
+
import { b as re, u as ce, p as de, x as me } from "./index.vue_vue_type_script_setup_true_lang-BCZZq6zJ.js";
|
|
7
7
|
import { _ as ue } from "./PageLayout.vue_vue_type_script_setup_true_lang-BVmHMvKD.js";
|
|
8
|
-
import { u as ge, a as pe } from "./menu-
|
|
9
|
-
import { a as fe } from "./Product.vue_vue_type_script_setup_true_lang-
|
|
10
|
-
import { af as he, ag as ye, ah as be, ai as ve, aj as _e } from "./item-
|
|
8
|
+
import { u as ge, a as pe } from "./menu-C77otNXH.js";
|
|
9
|
+
import { a as fe } from "./Product.vue_vue_type_script_setup_true_lang-Bw6l2IEC.js";
|
|
10
|
+
import { af as he, ag as ye, ah as be, ai as ve, aj as _e } from "./item-DL0lbXPC.js";
|
|
11
11
|
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 = {
|
|
12
12
|
key: 0,
|
|
13
13
|
class: "h-full flex flex-col"
|
|
@@ -152,7 +152,7 @@ const we = { class: "h-full flex flex-col" }, xe = { class: "flex items-center j
|
|
|
152
152
|
};
|
|
153
153
|
}
|
|
154
154
|
});
|
|
155
|
-
var Je = { firebase: { storageBucket: "image.
|
|
155
|
+
var Je = { firebase: { storageBucket: "image.feedmedev.cc" } };
|
|
156
156
|
const He = {
|
|
157
157
|
key: 0,
|
|
158
158
|
class: "h-screen"
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { D as T } from "./dayjs.min-
|
|
3
|
-
import { J as re, F as ie } from "./jszip.min-
|
|
4
|
-
import { l as R } from "./discardConfirm-
|
|
5
|
-
import { w as le } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-
|
|
6
|
-
import { h as V, A as j } from "./app-
|
|
7
|
-
import { u as K, b as Q, a as H, e as q, F as X, m as ue, d as ce, f as me } from "./index.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { defineComponent as Y, computed as _, ref as W, resolveComponent as F, createBlock as m, openBlock as l, unref as e, withCtx as f, createElementVNode as d, toDisplayString as Z, createVNode as u, createCommentVNode as w, createElementBlock as U, Fragment as z } from "vue";
|
|
2
|
+
import { D as T } from "./dayjs.min-DCMtwvjf.js";
|
|
3
|
+
import { J as re, F as ie } from "./jszip.min-CTn9qnAT.js";
|
|
4
|
+
import { l as R } from "./discardConfirm-DOc0ieeO.js";
|
|
5
|
+
import { w as le } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-EsQKUSJa.js";
|
|
6
|
+
import { h as V, A as j } from "./app-2VeaJE9t.js";
|
|
7
|
+
import { u as K, b as Q, a as H, e as q, F as X, m as ue, d as ce, f as me } from "./index.vue_vue_type_script_setup_true_lang-BCZZq6zJ.js";
|
|
8
8
|
import { useCoreStore as ee, useI18n as de } from "@feedmepos/mf-common";
|
|
9
|
-
import { useDialog as te, useDialogChild as pe, useSnackbar as ne, useBreakpoints as fe, FmButtonVariant as
|
|
10
|
-
import { _ as
|
|
9
|
+
import { useDialog as te, useDialogChild as pe, useSnackbar as ne, useBreakpoints as fe, FmButtonVariant as D, FmButtonColorThemeVariant as S } from "@feedmepos/ui-library";
|
|
10
|
+
import { _ as I } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
11
11
|
import { _ as _e, a as O } from "./BottomSheetMenuItem.vue_vue_type_script_setup_true_lang-DhrXKy3b.js";
|
|
12
|
-
import { _ as
|
|
13
|
-
import { u as
|
|
14
|
-
import { w as ye } from "./item-
|
|
15
|
-
import { _ as G, a as ke } from "./Product.vue_vue_type_script_setup_true_lang-
|
|
16
|
-
import { L as J } from "./LinkProductSideSheet-
|
|
17
|
-
import { _ as xe } from "./TreeEditorOpenner.vue_vue_type_script_setup_true_lang-
|
|
18
|
-
import { u as Se } from "./linkProducts-
|
|
19
|
-
import { m as he } from "./toExcel-
|
|
20
|
-
const Me = { class: "space-y-24 mb-24" },
|
|
12
|
+
import { _ as ge } from "./PageLayout.vue_vue_type_script_setup_true_lang-BVmHMvKD.js";
|
|
13
|
+
import { u as ve, a as be } from "./menu-C77otNXH.js";
|
|
14
|
+
import { w as ye } from "./item-DL0lbXPC.js";
|
|
15
|
+
import { _ as G, a as ke } from "./Product.vue_vue_type_script_setup_true_lang-Bw6l2IEC.js";
|
|
16
|
+
import { L as J } from "./LinkProductSideSheet-ClMiajzX.js";
|
|
17
|
+
import { _ as xe } from "./TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BvnoCeCw.js";
|
|
18
|
+
import { u as Se } from "./linkProducts-DNPyRjOC.js";
|
|
19
|
+
import { m as he } from "./toExcel-421pbm-Z.js";
|
|
20
|
+
const Me = { class: "space-y-24 mb-24" }, Ce = ["innerHTML"], we = { class: "flex justify-end gap-8" }, Fe = /* @__PURE__ */ Y({
|
|
21
21
|
__name: "ConfirmActionDialog",
|
|
22
22
|
props: {
|
|
23
23
|
description: {},
|
|
@@ -26,16 +26,16 @@ const Me = { class: "space-y-24 mb-24" }, we = ["innerHTML"], Ce = { class: "fle
|
|
|
26
26
|
},
|
|
27
27
|
setup(A) {
|
|
28
28
|
const n = A, p = _(() => n.message.replace("[[value]]", n.value)), k = W(""), o = te(), { emitAction: h } = pe();
|
|
29
|
-
return (
|
|
30
|
-
const M = F("FmTextField"),
|
|
29
|
+
return (g, r) => {
|
|
30
|
+
const M = F("FmTextField"), v = F("FmButton"), x = F("FmForm");
|
|
31
31
|
return l(), m(x, {
|
|
32
32
|
"on-validation-success": () => e(h)("primary"),
|
|
33
33
|
"blame-form-child-on-validation-failed": ""
|
|
34
34
|
}, {
|
|
35
35
|
default: f(() => [
|
|
36
36
|
d("div", Me, [
|
|
37
|
-
d("div", null, Z(
|
|
38
|
-
d("div", { innerHTML: p.value }, null, 8,
|
|
37
|
+
d("div", null, Z(g.description), 1),
|
|
38
|
+
d("div", { innerHTML: p.value }, null, 8, Ce),
|
|
39
39
|
d("div", null, [
|
|
40
40
|
u(M, {
|
|
41
41
|
modelValue: k.value,
|
|
@@ -44,17 +44,17 @@ const Me = { class: "space-y-24 mb-24" }, we = ["innerHTML"], Ce = { class: "fle
|
|
|
44
44
|
r[1] || (r[1] = () => {
|
|
45
45
|
})
|
|
46
46
|
],
|
|
47
|
-
placeholder:
|
|
48
|
-
rules: [(c) => c ===
|
|
47
|
+
placeholder: g.value,
|
|
48
|
+
rules: [(c) => c === g.value || "Value does not match"]
|
|
49
49
|
}, null, 8, ["modelValue", "placeholder", "rules"])
|
|
50
50
|
]),
|
|
51
|
-
d("div",
|
|
52
|
-
u(
|
|
51
|
+
d("div", we, [
|
|
52
|
+
u(v, {
|
|
53
53
|
label: "Cancel",
|
|
54
54
|
variant: "secondary",
|
|
55
55
|
onClick: r[2] || (r[2] = (c) => e(o).close())
|
|
56
56
|
}),
|
|
57
|
-
u(
|
|
57
|
+
u(v, {
|
|
58
58
|
label: "Confirm",
|
|
59
59
|
type: "submit"
|
|
60
60
|
})
|
|
@@ -65,12 +65,12 @@ const Me = { class: "space-y-24 mb-24" }, we = ["innerHTML"], Ce = { class: "fle
|
|
|
65
65
|
}, 8, ["on-validation-success"]);
|
|
66
66
|
};
|
|
67
67
|
}
|
|
68
|
-
}), $e = /* @__PURE__ */
|
|
68
|
+
}), $e = /* @__PURE__ */ Y({
|
|
69
69
|
__name: "Migrate",
|
|
70
70
|
setup(A) {
|
|
71
|
-
const n = K(), p = ee(), { isRestaurantLevelMenu: k } = p, o = ne(), { minor: h } = Q(o),
|
|
71
|
+
const n = K(), p = ee(), { isRestaurantLevelMenu: k } = p, o = ne(), { minor: h } = Q(o), g = W(!1), r = te();
|
|
72
72
|
async function M() {
|
|
73
|
-
|
|
73
|
+
v.value || g.value || r.open({
|
|
74
74
|
title: "Migrate to new version",
|
|
75
75
|
contentComponent: Fe,
|
|
76
76
|
contentComponentProps: {
|
|
@@ -85,7 +85,7 @@ const Me = { class: "space-y-24 mb-24" }, we = ["innerHTML"], Ce = { class: "fle
|
|
|
85
85
|
}, 2e3);
|
|
86
86
|
},
|
|
87
87
|
{
|
|
88
|
-
isLoading:
|
|
88
|
+
isLoading: g,
|
|
89
89
|
customId: n.state.menu._id,
|
|
90
90
|
message: "Migrating menu",
|
|
91
91
|
successMessage: "Migration completed"
|
|
@@ -93,9 +93,9 @@ const Me = { class: "space-y-24 mb-24" }, we = ["innerHTML"], Ce = { class: "fle
|
|
|
93
93
|
);
|
|
94
94
|
});
|
|
95
95
|
}
|
|
96
|
-
const
|
|
97
|
-
var
|
|
98
|
-
if (((
|
|
96
|
+
const v = _(() => {
|
|
97
|
+
var C;
|
|
98
|
+
if (((C = p.sessionUser.value) == null ? void 0 : C.role.isAdmin) === !0)
|
|
99
99
|
return null;
|
|
100
100
|
const c = p.restaurants.value;
|
|
101
101
|
if (!c.length) return "Required at least one restaurant to migrate";
|
|
@@ -104,7 +104,7 @@ const Me = { class: "space-y-24 mb-24" }, we = ["innerHTML"], Ce = { class: "fle
|
|
|
104
104
|
});
|
|
105
105
|
return (x, c) => {
|
|
106
106
|
const b = F("FmSnackbar");
|
|
107
|
-
return !e(k) && !
|
|
107
|
+
return !e(k) && !v.value && e(n).version !== e(X).enum.v4 ? (l(), m(b, {
|
|
108
108
|
key: 0,
|
|
109
109
|
class: "!max-w-full",
|
|
110
110
|
title: "New version of menu is out now!",
|
|
@@ -113,13 +113,13 @@ const Me = { class: "space-y-24 mb-24" }, we = ["innerHTML"], Ce = { class: "fle
|
|
|
113
113
|
action: "Migrate",
|
|
114
114
|
"z-index": 0,
|
|
115
115
|
onOnAction: M
|
|
116
|
-
})) :
|
|
116
|
+
})) : w("", !0);
|
|
117
117
|
};
|
|
118
118
|
}
|
|
119
|
-
}), Ve = "/assets/menu-export-
|
|
119
|
+
}), Ve = "/assets/menu-export-DYfPYpgS.js", Ae = { class: "flex-1 flex justify-between gap-8 pl-8" }, Ee = { class: "flex items-center" }, Te = { 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" }, et = /* @__PURE__ */ Y({
|
|
120
120
|
__name: "Products",
|
|
121
121
|
setup(A) {
|
|
122
|
-
const { t: n } = de(), p = ee(), k = Q(ne()), o = K(), h = _(() => o.rules.item),
|
|
122
|
+
const { t: n } = de(), p = ee(), k = Q(ne()), o = K(), h = _(() => o.rules.item), g = ye(), r = _(() => !o.state.currentSchedulerId), { selectedCategories: M } = ve(), v = _(() => ({
|
|
123
123
|
...ue.menuV4ToV3(ce(o.state.menu)),
|
|
124
124
|
_id: o.state.menu._id,
|
|
125
125
|
_rev: o.state.menu._rev
|
|
@@ -153,7 +153,7 @@ const Me = { class: "space-y-24 mb-24" }, we = ["innerHTML"], Ce = { class: "fle
|
|
|
153
153
|
);
|
|
154
154
|
await c(s, a);
|
|
155
155
|
} else {
|
|
156
|
-
const i = he(
|
|
156
|
+
const i = he(v.value), t = `menu_${T().format("DD-MM-YYYY_HH-mm")}`;
|
|
157
157
|
await le(i, `${t}.xlsx`, {
|
|
158
158
|
bookType: "xlsx",
|
|
159
159
|
bookSST: !0,
|
|
@@ -167,11 +167,11 @@ const Me = { class: "space-y-24 mb-24" }, we = ["innerHTML"], Ce = { class: "fle
|
|
|
167
167
|
}
|
|
168
168
|
const {
|
|
169
169
|
menuItems: E,
|
|
170
|
-
categories:
|
|
170
|
+
categories: C,
|
|
171
171
|
linkItemRules: y,
|
|
172
|
-
handleSubmit:
|
|
172
|
+
handleSubmit: B,
|
|
173
173
|
catalogManager: N,
|
|
174
|
-
schedulerManager:
|
|
174
|
+
schedulerManager: P
|
|
175
175
|
} = Se(!1), oe = fe(), ae = _(() => oe.breakpoints.value.xs), se = _(() => {
|
|
176
176
|
var a;
|
|
177
177
|
const i = ((a = p.sessionUser.value) == null ? void 0 : a.permissions) ?? [], t = {
|
|
@@ -179,7 +179,7 @@ const Me = { class: "space-y-24 mb-24" }, we = ["innerHTML"], Ce = { class: "fle
|
|
|
179
179
|
subject: V.Subject.Business.menu_menuManagement
|
|
180
180
|
};
|
|
181
181
|
return j([t], i).granted;
|
|
182
|
-
}),
|
|
182
|
+
}), L = _(() => {
|
|
183
183
|
var a;
|
|
184
184
|
const i = ((a = p.sessionUser.value) == null ? void 0 : a.permissions) ?? [], t = {
|
|
185
185
|
action: V.Action.manage,
|
|
@@ -189,7 +189,7 @@ const Me = { class: "space-y-24 mb-24" }, we = ["innerHTML"], Ce = { class: "fle
|
|
|
189
189
|
});
|
|
190
190
|
return be().resetOnMount(), (i, t) => {
|
|
191
191
|
const a = F("fm-button");
|
|
192
|
-
return l(), m(
|
|
192
|
+
return l(), m(ge, {
|
|
193
193
|
heading: e(n)("menu.products.title")
|
|
194
194
|
}, {
|
|
195
195
|
default: f(() => [
|
|
@@ -200,10 +200,10 @@ const Me = { class: "space-y-24 mb-24" }, we = ["innerHTML"], Ce = { class: "fle
|
|
|
200
200
|
d("div", Ae, [
|
|
201
201
|
d("div", Ee, [
|
|
202
202
|
d("div", Te, [
|
|
203
|
-
d("p",
|
|
203
|
+
d("p", De, Z(x.value), 1)
|
|
204
204
|
])
|
|
205
205
|
]),
|
|
206
|
-
d("div",
|
|
206
|
+
d("div", Ie, [
|
|
207
207
|
ae.value ? (l(), m(G, { key: 1 }, {
|
|
208
208
|
default: f(({ trigger: s }) => [
|
|
209
209
|
u(_e, null, {
|
|
@@ -228,52 +228,52 @@ const Me = { class: "space-y-24 mb-24" }, we = ["innerHTML"], Ce = { class: "fle
|
|
|
228
228
|
label: e(n)("menu.tree_editor.title"),
|
|
229
229
|
"bg-color": e(S).NeutralGray100,
|
|
230
230
|
"text-color": e(S).TypoSecondary,
|
|
231
|
-
variant: e(
|
|
231
|
+
variant: e(D).Primary,
|
|
232
232
|
onClick: s
|
|
233
233
|
}, null, 8, ["label", "bg-color", "text-color", "variant", "onClick"])
|
|
234
234
|
]),
|
|
235
235
|
_: 1
|
|
236
|
-
})) :
|
|
237
|
-
|
|
236
|
+
})) : w("", !0),
|
|
237
|
+
L.value ? (l(), m(a, {
|
|
238
238
|
key: 1,
|
|
239
239
|
"bg-color": e(S).NeutralGray100,
|
|
240
240
|
"text-color": e(S).TypoSecondary,
|
|
241
|
-
variant: e(
|
|
241
|
+
variant: e(D).Primary,
|
|
242
242
|
label: e(n)("menu.products.actions.export"),
|
|
243
243
|
onClick: b
|
|
244
|
-
}, null, 8, ["bg-color", "text-color", "variant", "label"])) :
|
|
245
|
-
|
|
244
|
+
}, null, 8, ["bg-color", "text-color", "variant", "label"])) : w("", !0),
|
|
245
|
+
L.value ? (l(), m(G, { key: 2 }, {
|
|
246
246
|
default: f(({ trigger: s }) => [
|
|
247
247
|
u(a, {
|
|
248
248
|
"bg-color": e(S).NeutralGray100,
|
|
249
249
|
"text-color": e(S).TypoSecondary,
|
|
250
|
-
variant: e(
|
|
250
|
+
variant: e(D).Primary,
|
|
251
251
|
label: e(n)("menu.products.actions.import"),
|
|
252
252
|
onClick: s
|
|
253
253
|
}, null, 8, ["bg-color", "text-color", "variant", "label", "onClick"])
|
|
254
254
|
]),
|
|
255
255
|
_: 1
|
|
256
|
-
})) :
|
|
256
|
+
})) : w("", !0)
|
|
257
257
|
], 64)),
|
|
258
258
|
x.value > 0 ? (l(), U(z, { key: 2 }, [
|
|
259
|
-
h.value.create ? (l(), m(
|
|
259
|
+
h.value.create ? (l(), m(I, {
|
|
260
260
|
key: 0,
|
|
261
261
|
label: e(n)("menu.products.actions.add"),
|
|
262
262
|
"prepend-icon": "add",
|
|
263
|
-
onClick: t[0] || (t[0] = (s) => e(
|
|
263
|
+
onClick: t[0] || (t[0] = (s) => e(g).create(null))
|
|
264
264
|
}, null, 8, ["label"])) : r.value ? (l(), m(J, {
|
|
265
265
|
key: 1,
|
|
266
266
|
"categorized-items": e(N).linkableItems.value,
|
|
267
267
|
"initial-value": e(N).currentItems.value,
|
|
268
268
|
"show-variant": !1,
|
|
269
269
|
"menu-items": e(E),
|
|
270
|
-
categories: e(
|
|
270
|
+
categories: e(C),
|
|
271
271
|
"link-item-rules": e(y),
|
|
272
272
|
"no-scheduler": r.value,
|
|
273
|
-
onSubmit: e(
|
|
273
|
+
onSubmit: e(B)
|
|
274
274
|
}, {
|
|
275
275
|
default: f(({ trigger: s }) => [
|
|
276
|
-
u(
|
|
276
|
+
u(I, {
|
|
277
277
|
label: e(n)("menu.products.actions.link"),
|
|
278
278
|
"prepend-icon": "link",
|
|
279
279
|
onClick: s
|
|
@@ -282,24 +282,24 @@ const Me = { class: "space-y-24 mb-24" }, we = ["innerHTML"], Ce = { class: "fle
|
|
|
282
282
|
_: 1
|
|
283
283
|
}, 8, ["categorized-items", "initial-value", "menu-items", "categories", "link-item-rules", "no-scheduler", "onSubmit"])) : (l(), m(J, {
|
|
284
284
|
key: 2,
|
|
285
|
-
"categorized-items": e(
|
|
286
|
-
"initial-value": e(
|
|
285
|
+
"categorized-items": e(P).linkableItems.value,
|
|
286
|
+
"initial-value": e(P).currentItems.value,
|
|
287
287
|
"show-variant": !1,
|
|
288
288
|
"menu-items": e(E),
|
|
289
|
-
categories: e(
|
|
289
|
+
categories: e(C),
|
|
290
290
|
"link-item-rules": e(y),
|
|
291
291
|
"no-scheduler": r.value,
|
|
292
|
-
onSubmit: e(
|
|
292
|
+
onSubmit: e(B)
|
|
293
293
|
}, {
|
|
294
294
|
default: f(({ trigger: s }) => [
|
|
295
|
-
u(
|
|
295
|
+
u(I, {
|
|
296
296
|
label: e(n)("menu.products.actions.apply_scheduler"),
|
|
297
297
|
onClick: s
|
|
298
298
|
}, null, 8, ["label", "onClick"])
|
|
299
299
|
]),
|
|
300
300
|
_: 1
|
|
301
301
|
}, 8, ["categorized-items", "initial-value", "menu-items", "categories", "link-item-rules", "no-scheduler", "onSubmit"]))
|
|
302
|
-
], 64)) :
|
|
302
|
+
], 64)) : w("", !0)
|
|
303
303
|
])
|
|
304
304
|
])
|
|
305
305
|
]),
|