@feedmepos/mf-menu 0.32.71 → 0.32.72
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-Bay6p3xd.js → App-BqlWMfMd.js} +8 -8
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-Je_NoQ3y.js → ApplyProduct.vue_vue_type_script_setup_true_lang-CGm_HCN-.js} +12 -12
- package/dist/{ApplyProductDialog.vue_vue_type_script_setup_true_lang-DBjYkJhB.js → ApplyProductDialog.vue_vue_type_script_setup_true_lang-DKwW-KuQ.js} +3 -3
- package/dist/{Catalog-DfWHNm4n.js → Catalog-DmSqkb83.js} +20 -20
- package/dist/{Category-51BrJsdv.js → Category-BViqkFeL.js} +4 -4
- package/dist/{Category-m45WrP7O.js → Category-Dlj54Cvf.js} +4 -4
- package/dist/{CookingGuide-Dk-ibGYd.js → CookingGuide-CTy27R3R.js} +46 -46
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-CzpScELw.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-DnkFD9Qo.js} +1 -1
- package/dist/{Group-NUWfR17j.js → Group-B_XL8419.js} +1 -1
- package/dist/{Group-CZDoqPK7.js → Group-CCHCA3-l.js} +3 -3
- package/dist/{Group.vue_vue_type_script_setup_true_lang-h8zygLBJ.js → Group.vue_vue_type_script_setup_true_lang-D4UZ_9r_.js} +7 -7
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-Dq5jMv3_.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-Hq-gI8hs.js} +24 -24
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-EsQKUSJa.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-CMNiLTsy.js} +7 -7
- package/dist/{Ingredient-CcnUyiM5.js → Ingredient-BKMpffiK.js} +4 -4
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-BwxZEDVT.js → InventoryBinding.vue_vue_type_script_setup_true_lang-B-A8Yae3.js} +2 -2
- package/dist/{LinkProductSideSheet-ClMiajzX.js → LinkProductSideSheet-C0OwARv3.js} +4 -4
- package/dist/{MenuSetting-Dw3lVHtp.js → MenuSetting-t2SC98j8.js} +7 -7
- package/dist/{OrderPacing-Dh8T7OKW.js → OrderPacing-BeOxlK5N.js} +5 -5
- package/dist/{PrintRoute-BrSaSZI3.js → PrintRoute-BehVCEKW.js} +10 -10
- package/dist/{Product-CQ7AuhbY.js → Product-JhmPZPy5.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-Bw6l2IEC.js → Product.vue_vue_type_script_setup_true_lang-CaIdoW_3.js} +14 -14
- package/dist/ProductInternalTools-BaOhffU-.js +439 -0
- package/dist/{Products-CoL7S7-1.js → Products-BEL7jDXA.js} +78 -78
- package/dist/{Publish-C_lOqrSX.js → Publish-0paPWlI9.js} +4 -4
- package/dist/{Recipe-Ce8qXnG5.js → Recipe-C2EDxRF-.js} +5 -5
- package/dist/{RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-DMB9bFg9.js → RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-BpGAz8tp.js} +1 -1
- package/dist/{RuleView.vue_vue_type_script_setup_true_lang-D9i9tMAj.js → RuleView.vue_vue_type_script_setup_true_lang-DP2Sx5Ik.js} +514 -514
- package/dist/{Scheduler-B2ZtWIPp.js → Scheduler-Q5uM5gxh.js} +17 -17
- package/dist/{ServingSequence-BWZ1YpzI.js → ServingSequence-T4C9GPzV.js} +3 -3
- package/dist/{Setting-CdxNVi7G.js → Setting-Ck9fOSnA.js} +5 -5
- package/dist/{Subcategory-Bn0O6i5t.js → Subcategory-DA9P_jgR.js} +6 -6
- package/dist/{Takeaway-luRkknPl.js → Takeaway-BWHTHlyY.js} +1 -1
- package/dist/{Takeaway-yE0GhL5I.js → Takeaway-BhBwxuQ1.js} +4 -4
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-CnZTbF3e.js → Takeaway.vue_vue_type_script_setup_true_lang-CoW3ltrF.js} +5 -5
- package/dist/{TranslationFieldSection.vue_vue_type_script_setup_true_lang-B3N7_zfR.js → TranslationFieldSection.vue_vue_type_script_setup_true_lang-B_NVIotA.js} +1 -1
- package/dist/{TranslationSideSheet.vue_vue_type_script_setup_true_lang-BLzzBcqV.js → TranslationSideSheet.vue_vue_type_script_setup_true_lang-DKAvaKvf.js} +2 -2
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BvnoCeCw.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-KLajCLq6.js} +15 -15
- package/dist/{Unit-JPFtrbuS.js → Unit-Cn8MfZ3t.js} +2 -2
- package/dist/{Variant-BGJ-aKF1.js → Variant-D8YObOjv.js} +3 -3
- package/dist/{_id_-BUlkRwgU.js → _id_-D3xdoF7g.js} +10 -10
- package/dist/{app-CMjz-bvL.js → app-CytlajzP.js} +1 -1
- package/dist/{app-2VeaJE9t.js → app-DW6oW0Ma.js} +37 -37
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/app.d.ts +20 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/productImages.d.ts +65 -16
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{linked-status-B9caUckb.js → linked-status-6NCMYr9j.js} +4 -4
- package/dist/assets/{menu-export-DYfPYpgS.js → menu-export-B0G2UoQu.js} +34 -34
- package/dist/assets/{override-menu-uNjUqcak.js → override-menu-BLTWWMwC.js} +4 -4
- package/dist/assets/{validate-menu-BiXMOXpN.js → validate-menu-Bw1SjjTD.js} +3 -3
- package/dist/{catalog--64fgdzd.js → catalog-D-eYUu3U.js} +1 -1
- package/dist/{catalogSetting-CplTgRmk.js → catalogSetting-DTuat7sH.js} +1 -1
- package/dist/{currency-CjYkQ4FL.js → currency-Dj_Wt0Hv.js} +1 -1
- package/dist/dayjs.min-DEj15U1R.js +7 -0
- package/dist/{discardConfirm-DOc0ieeO.js → discardConfirm-D8fV6Aag.js} +1 -1
- package/dist/{index-Dw_Fw5ni.js → index--oIuzXeT.js} +5 -5
- package/dist/{index-CTA48kW2.js → index-DM0Bzsz_.js} +1 -1
- package/dist/{index-BrtZ42qx.js → index-Kuoa82jl.js} +6 -6
- package/dist/{index.vue_vue_type_script_setup_true_lang-BCZZq6zJ.js → index.vue_vue_type_script_setup_true_lang-COHdIM2S.js} +3988 -3982
- package/dist/{item-DL0lbXPC.js → item-DY5crb6D.js} +1159 -1164
- package/dist/{jszip.min-CTn9qnAT.js → jszip.min-BZ1Z78MP.js} +167 -167
- package/dist/{linkProducts-DNPyRjOC.js → linkProducts-96XgmBUL.js} +4 -4
- package/dist/{memberPricing-ByMD7Sun.js → memberPricing-WDnr_fBu.js} +1 -1
- package/dist/{menu-C77otNXH.js → menu-xKq7gpBv.js} +1 -1
- package/dist/{menuV2-Bi_EMfOM.js → menuV2-y6RgekH4.js} +49 -49
- package/dist/{order_pacing-29v64nh0.js → order_pacing-5FfwO1W8.js} +5 -5
- package/dist/{priceTier-BscL3YjX.js → priceTier-C-qqjKEP.js} +1 -1
- package/dist/{rules-BYL-otiB.js → rules-BUN28pvZ.js} +3 -3
- package/dist/{scheduler-Cqvnr0u1.js → scheduler-CHwF5zGU.js} +5 -5
- package/dist/{toExcel-421pbm-Z.js → toExcel-Doi2nxOH.js} +2 -2
- package/dist/{unit-DDtyAbV0.js → unit-BnAly_uA.js} +17 -17
- package/package.json +1 -1
- package/dist/ProductInternalTools-2rYX2GR0.js +0 -416
- package/dist/dayjs.min-DCMtwvjf.js +0 -7
|
@@ -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 D, 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 P, Fragment as z } from "vue";
|
|
2
|
+
import { D as T } from "./dayjs.min-DEj15U1R.js";
|
|
3
|
+
import { J as re, F as ie } from "./jszip.min-BZ1Z78MP.js";
|
|
4
|
+
import { l as R } from "./discardConfirm-D8fV6Aag.js";
|
|
5
|
+
import { w as le } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-CMNiLTsy.js";
|
|
6
|
+
import { h as V, A as j } from "./app-DW6oW0Ma.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-COHdIM2S.js";
|
|
8
8
|
import { useCoreStore as ee, useI18n as de } from "@feedmepos/mf-common";
|
|
9
|
-
import { useDialog as te, useDialogChild as pe, useSnackbar as
|
|
10
|
-
import { _ as
|
|
11
|
-
import { _ as _e, a as
|
|
12
|
-
import { _ as
|
|
13
|
-
import { u as
|
|
14
|
-
import { w as ye } from "./item-
|
|
15
|
-
import { _ as
|
|
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" }, Ce = ["innerHTML"], we = { class: "flex justify-end gap-8" }, Fe = /* @__PURE__ */
|
|
9
|
+
import { useDialog as te, useDialogChild as pe, useSnackbar as oe, useBreakpoints as fe, FmButtonVariant as I, FmButtonColorThemeVariant as S } from "@feedmepos/ui-library";
|
|
10
|
+
import { _ as B } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
11
|
+
import { _ as _e, a as G } from "./BottomSheetMenuItem.vue_vue_type_script_setup_true_lang-DhrXKy3b.js";
|
|
12
|
+
import { _ as ve } from "./PageLayout.vue_vue_type_script_setup_true_lang-BVmHMvKD.js";
|
|
13
|
+
import { u as ge, a as be } from "./menu-xKq7gpBv.js";
|
|
14
|
+
import { w as ye } from "./item-DY5crb6D.js";
|
|
15
|
+
import { _ as O, a as ke } from "./Product.vue_vue_type_script_setup_true_lang-CaIdoW_3.js";
|
|
16
|
+
import { L as J } from "./LinkProductSideSheet-C0OwARv3.js";
|
|
17
|
+
import { _ as xe } from "./TreeEditorOpenner.vue_vue_type_script_setup_true_lang-KLajCLq6.js";
|
|
18
|
+
import { u as Se } from "./linkProducts-96XgmBUL.js";
|
|
19
|
+
import { m as he } from "./toExcel-Doi2nxOH.js";
|
|
20
|
+
const Me = { class: "space-y-24 mb-24" }, Ce = ["innerHTML"], we = { class: "flex justify-end gap-8" }, Fe = /* @__PURE__ */ D({
|
|
21
21
|
__name: "ConfirmActionDialog",
|
|
22
22
|
props: {
|
|
23
23
|
description: {},
|
|
@@ -25,16 +25,16 @@ const Me = { class: "space-y-24 mb-24" }, Ce = ["innerHTML"], we = { class: "fle
|
|
|
25
25
|
message: { default: "To confirm your action, type <b>[[value]]</b> in the text field." }
|
|
26
26
|
},
|
|
27
27
|
setup(A) {
|
|
28
|
-
const
|
|
29
|
-
return (
|
|
30
|
-
const M = F("FmTextField"),
|
|
28
|
+
const o = A, p = _(() => o.message.replace("[[value]]", o.value)), k = W(""), n = te(), { emitAction: h } = pe();
|
|
29
|
+
return (v, r) => {
|
|
30
|
+
const M = F("FmTextField"), g = 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(
|
|
37
|
+
d("div", null, Z(v.description), 1),
|
|
38
38
|
d("div", { innerHTML: p.value }, null, 8, Ce),
|
|
39
39
|
d("div", null, [
|
|
40
40
|
u(M, {
|
|
@@ -44,17 +44,17 @@ const Me = { class: "space-y-24 mb-24" }, Ce = ["innerHTML"], we = { class: "fle
|
|
|
44
44
|
r[1] || (r[1] = () => {
|
|
45
45
|
})
|
|
46
46
|
],
|
|
47
|
-
placeholder:
|
|
48
|
-
rules: [(c) => c ===
|
|
47
|
+
placeholder: v.value,
|
|
48
|
+
rules: [(c) => c === v.value || "Value does not match"]
|
|
49
49
|
}, null, 8, ["modelValue", "placeholder", "rules"])
|
|
50
50
|
]),
|
|
51
51
|
d("div", we, [
|
|
52
|
-
u(
|
|
52
|
+
u(g, {
|
|
53
53
|
label: "Cancel",
|
|
54
54
|
variant: "secondary",
|
|
55
|
-
onClick: r[2] || (r[2] = (c) => e(
|
|
55
|
+
onClick: r[2] || (r[2] = (c) => e(n).close())
|
|
56
56
|
}),
|
|
57
|
-
u(
|
|
57
|
+
u(g, {
|
|
58
58
|
label: "Confirm",
|
|
59
59
|
type: "submit"
|
|
60
60
|
})
|
|
@@ -65,12 +65,12 @@ const Me = { class: "space-y-24 mb-24" }, Ce = ["innerHTML"], we = { class: "fle
|
|
|
65
65
|
}, 8, ["on-validation-success"]);
|
|
66
66
|
};
|
|
67
67
|
}
|
|
68
|
-
}), $e = /* @__PURE__ */
|
|
68
|
+
}), $e = /* @__PURE__ */ D({
|
|
69
69
|
__name: "Migrate",
|
|
70
70
|
setup(A) {
|
|
71
|
-
const
|
|
71
|
+
const o = K(), p = ee(), { isRestaurantLevelMenu: k } = p, n = oe(), { minor: h } = Q(n), v = W(!1), r = te();
|
|
72
72
|
async function M() {
|
|
73
|
-
|
|
73
|
+
g.value || v.value || r.open({
|
|
74
74
|
title: "Migrate to new version",
|
|
75
75
|
contentComponent: Fe,
|
|
76
76
|
contentComponentProps: {
|
|
@@ -80,20 +80,20 @@ const Me = { class: "space-y-24 mb-24" }, Ce = ["innerHTML"], we = { class: "fle
|
|
|
80
80
|
}).onPrimary(async () => {
|
|
81
81
|
r.close(), await h(
|
|
82
82
|
async () => {
|
|
83
|
-
await
|
|
83
|
+
await o.migrate(), setTimeout(() => {
|
|
84
84
|
window.location.reload();
|
|
85
85
|
}, 2e3);
|
|
86
86
|
},
|
|
87
87
|
{
|
|
88
|
-
isLoading:
|
|
89
|
-
customId:
|
|
88
|
+
isLoading: v,
|
|
89
|
+
customId: o.state.menu._id,
|
|
90
90
|
message: "Migrating menu",
|
|
91
91
|
successMessage: "Migration completed"
|
|
92
92
|
}
|
|
93
93
|
);
|
|
94
94
|
});
|
|
95
95
|
}
|
|
96
|
-
const
|
|
96
|
+
const g = _(() => {
|
|
97
97
|
var C;
|
|
98
98
|
if (((C = p.sessionUser.value) == null ? void 0 : C.role.isAdmin) === !0)
|
|
99
99
|
return null;
|
|
@@ -104,7 +104,7 @@ const Me = { class: "space-y-24 mb-24" }, Ce = ["innerHTML"], we = { class: "fle
|
|
|
104
104
|
});
|
|
105
105
|
return (x, c) => {
|
|
106
106
|
const b = F("FmSnackbar");
|
|
107
|
-
return !e(k) && !
|
|
107
|
+
return !e(k) && !g.value && e(o).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!",
|
|
@@ -116,13 +116,13 @@ const Me = { class: "space-y-24 mb-24" }, Ce = ["innerHTML"], we = { class: "fle
|
|
|
116
116
|
})) : w("", !0);
|
|
117
117
|
};
|
|
118
118
|
}
|
|
119
|
-
}), Ve = "/assets/menu-export-
|
|
119
|
+
}), Ve = "/assets/menu-export-B0G2UoQu.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" }, Ie = { class: "fm-typo-en-body-md-600 font-semibold" }, Be = { class: "flex gap-8" }, et = /* @__PURE__ */ D({
|
|
120
120
|
__name: "Products",
|
|
121
121
|
setup(A) {
|
|
122
|
-
const { t:
|
|
123
|
-
...ue.menuV4ToV3(ce(
|
|
124
|
-
_id:
|
|
125
|
-
_rev:
|
|
122
|
+
const { t: o } = de(), p = ee(), k = Q(oe()), n = K(), h = _(() => n.rules.item), v = ye(), r = _(() => !n.state.currentSchedulerId), { selectedCategories: M } = ge(), g = _(() => ({
|
|
123
|
+
...ue.menuV4ToV3(ce(n.state.menu)),
|
|
124
|
+
_id: n.state.menu._id,
|
|
125
|
+
_rev: n.state.menu._rev
|
|
126
126
|
})), x = _(() => {
|
|
127
127
|
const i = R.flatten(M.value.map((t) => t.items));
|
|
128
128
|
return R.uniqBy(i, (t) => t._id).length;
|
|
@@ -137,8 +137,8 @@ const Me = { class: "space-y-24 mb-24" }, Ce = ["innerHTML"], we = { class: "fle
|
|
|
137
137
|
async function b() {
|
|
138
138
|
await k.minor(
|
|
139
139
|
async () => {
|
|
140
|
-
if (await
|
|
141
|
-
const i =
|
|
140
|
+
if (await n.readMenu(), n.version === X.enum.v4) {
|
|
141
|
+
const i = n.state.menu, t = T().format("DD-MM-YYYY_HH-mm"), a = [
|
|
142
142
|
`menu_${t}`,
|
|
143
143
|
`addonGroup_${t}`,
|
|
144
144
|
`itemLinkedAddon_${t}`,
|
|
@@ -148,12 +148,12 @@ const Me = { class: "space-y-24 mb-24" }, Ce = ["innerHTML"], we = { class: "fle
|
|
|
148
148
|
JSON.stringify({
|
|
149
149
|
menu: i,
|
|
150
150
|
attributeSettings: p.itemAttributeSettings.value,
|
|
151
|
-
localizationKeys:
|
|
151
|
+
localizationKeys: n.state.featureFlags.supportedLocales
|
|
152
152
|
})
|
|
153
153
|
);
|
|
154
154
|
await c(s, a);
|
|
155
155
|
} else {
|
|
156
|
-
const i = he(
|
|
156
|
+
const i = he(g.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,
|
|
@@ -162,17 +162,17 @@ const Me = { class: "space-y-24 mb-24" }, Ce = ["innerHTML"], we = { class: "fle
|
|
|
162
162
|
});
|
|
163
163
|
}
|
|
164
164
|
},
|
|
165
|
-
{ successMessage: "Menu exported", customId:
|
|
165
|
+
{ successMessage: "Menu exported", customId: n.state.menu._id }
|
|
166
166
|
);
|
|
167
167
|
}
|
|
168
168
|
const {
|
|
169
169
|
menuItems: E,
|
|
170
170
|
categories: C,
|
|
171
171
|
linkItemRules: y,
|
|
172
|
-
handleSubmit:
|
|
172
|
+
handleSubmit: Y,
|
|
173
173
|
catalogManager: N,
|
|
174
|
-
schedulerManager:
|
|
175
|
-
} = Se(!1),
|
|
174
|
+
schedulerManager: U
|
|
175
|
+
} = Se(!1), ne = fe(), ae = _(() => ne.breakpoints.value.xs), se = _(() => {
|
|
176
176
|
var a;
|
|
177
177
|
const i = ((a = p.sessionUser.value) == null ? void 0 : a.permissions) ?? [], t = {
|
|
178
178
|
action: V.Action.manage,
|
|
@@ -189,8 +189,8 @@ const Me = { class: "space-y-24 mb-24" }, Ce = ["innerHTML"], we = { class: "fle
|
|
|
189
189
|
});
|
|
190
190
|
return be().resetOnMount(), (i, t) => {
|
|
191
191
|
const a = F("fm-button");
|
|
192
|
-
return l(), m(
|
|
193
|
-
heading: e(
|
|
192
|
+
return l(), m(ve, {
|
|
193
|
+
heading: e(o)("menu.products.title")
|
|
194
194
|
}, {
|
|
195
195
|
default: f(() => [
|
|
196
196
|
u($e),
|
|
@@ -200,20 +200,20 @@ const Me = { class: "space-y-24 mb-24" }, Ce = ["innerHTML"], we = { class: "fle
|
|
|
200
200
|
d("div", Ae, [
|
|
201
201
|
d("div", Ee, [
|
|
202
202
|
d("div", Te, [
|
|
203
|
-
d("p",
|
|
203
|
+
d("p", Ie, Z(x.value), 1)
|
|
204
204
|
])
|
|
205
205
|
]),
|
|
206
|
-
d("div",
|
|
207
|
-
ae.value ? (l(), m(
|
|
206
|
+
d("div", Be, [
|
|
207
|
+
ae.value ? (l(), m(O, { key: 1 }, {
|
|
208
208
|
default: f(({ trigger: s }) => [
|
|
209
209
|
u(_e, null, {
|
|
210
210
|
default: f(() => [
|
|
211
|
-
u(
|
|
212
|
-
label: e(
|
|
211
|
+
u(G, {
|
|
212
|
+
label: e(o)("menu.products.actions.export"),
|
|
213
213
|
onClick: b
|
|
214
214
|
}, null, 8, ["label"]),
|
|
215
|
-
u(
|
|
216
|
-
label: e(
|
|
215
|
+
u(G, {
|
|
216
|
+
label: e(o)("menu.products.actions.import"),
|
|
217
217
|
onClick: s
|
|
218
218
|
}, null, 8, ["label", "onClick"])
|
|
219
219
|
]),
|
|
@@ -221,14 +221,14 @@ const Me = { class: "space-y-24 mb-24" }, Ce = ["innerHTML"], we = { class: "fle
|
|
|
221
221
|
}, 1024)
|
|
222
222
|
]),
|
|
223
223
|
_: 1
|
|
224
|
-
})) : (l(),
|
|
224
|
+
})) : (l(), P(z, { key: 0 }, [
|
|
225
225
|
se.value ? (l(), m(xe, { key: 0 }, {
|
|
226
226
|
default: f(({ trigger: s }) => [
|
|
227
227
|
u(a, {
|
|
228
|
-
label: e(
|
|
228
|
+
label: e(o)("menu.tree_editor.title"),
|
|
229
229
|
"bg-color": e(S).NeutralGray100,
|
|
230
230
|
"text-color": e(S).TypoSecondary,
|
|
231
|
-
variant: e(
|
|
231
|
+
variant: e(I).Primary,
|
|
232
232
|
onClick: s
|
|
233
233
|
}, null, 8, ["label", "bg-color", "text-color", "variant", "onClick"])
|
|
234
234
|
]),
|
|
@@ -238,29 +238,29 @@ const Me = { class: "space-y-24 mb-24" }, Ce = ["innerHTML"], we = { class: "fle
|
|
|
238
238
|
key: 1,
|
|
239
239
|
"bg-color": e(S).NeutralGray100,
|
|
240
240
|
"text-color": e(S).TypoSecondary,
|
|
241
|
-
variant: e(
|
|
242
|
-
label: e(
|
|
241
|
+
variant: e(I).Primary,
|
|
242
|
+
label: e(o)("menu.products.actions.export"),
|
|
243
243
|
onClick: b
|
|
244
244
|
}, null, 8, ["bg-color", "text-color", "variant", "label"])) : w("", !0),
|
|
245
|
-
L.value ? (l(), m(
|
|
245
|
+
L.value ? (l(), m(O, { 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(
|
|
251
|
-
label: e(
|
|
250
|
+
variant: e(I).Primary,
|
|
251
|
+
label: e(o)("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
|
-
x.value > 0 ? (l(),
|
|
259
|
-
h.value.create ? (l(), m(
|
|
258
|
+
x.value > 0 ? (l(), P(z, { key: 2 }, [
|
|
259
|
+
h.value.create ? (l(), m(B, {
|
|
260
260
|
key: 0,
|
|
261
|
-
label: e(
|
|
261
|
+
label: e(o)("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(v).create(null))
|
|
264
264
|
}, null, 8, ["label"])) : r.value ? (l(), m(J, {
|
|
265
265
|
key: 1,
|
|
266
266
|
"categorized-items": e(N).linkableItems.value,
|
|
@@ -270,11 +270,11 @@ const Me = { class: "space-y-24 mb-24" }, Ce = ["innerHTML"], we = { class: "fle
|
|
|
270
270
|
categories: e(C),
|
|
271
271
|
"link-item-rules": e(y),
|
|
272
272
|
"no-scheduler": r.value,
|
|
273
|
-
onSubmit: e(
|
|
273
|
+
onSubmit: e(Y)
|
|
274
274
|
}, {
|
|
275
275
|
default: f(({ trigger: s }) => [
|
|
276
|
-
u(
|
|
277
|
-
label: e(
|
|
276
|
+
u(B, {
|
|
277
|
+
label: e(o)("menu.products.actions.link"),
|
|
278
278
|
"prepend-icon": "link",
|
|
279
279
|
onClick: s
|
|
280
280
|
}, null, 8, ["label", "onClick"])
|
|
@@ -282,18 +282,18 @@ const Me = { class: "space-y-24 mb-24" }, Ce = ["innerHTML"], we = { 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(U).linkableItems.value,
|
|
286
|
+
"initial-value": e(U).currentItems.value,
|
|
287
287
|
"show-variant": !1,
|
|
288
288
|
"menu-items": e(E),
|
|
289
289
|
categories: e(C),
|
|
290
290
|
"link-item-rules": e(y),
|
|
291
291
|
"no-scheduler": r.value,
|
|
292
|
-
onSubmit: e(
|
|
292
|
+
onSubmit: e(Y)
|
|
293
293
|
}, {
|
|
294
294
|
default: f(({ trigger: s }) => [
|
|
295
|
-
u(
|
|
296
|
-
label: e(
|
|
295
|
+
u(B, {
|
|
296
|
+
label: e(o)("menu.products.actions.apply_scheduler"),
|
|
297
297
|
onClick: s
|
|
298
298
|
}, null, 8, ["label", "onClick"])
|
|
299
299
|
]),
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { defineComponent as ee, ref as I, computed as $, onMounted as we, resolveComponent as A, createElementBlock as N, openBlock as C, createVNode as _, createElementVNode as h, toDisplayString as K, unref as p, Fragment as Y, renderList as te, createBlock as W, watch as Re, withCtx as j, h as E, normalizeClass as ke, createCommentVNode as ae, createTextVNode as Me, mergeProps as Ye, normalizeStyle as Je, renderSlot as We, withModifiers as re, onUnmounted as Qe } from "vue";
|
|
2
2
|
import { useRouter as Xe } from "vue-router";
|
|
3
3
|
import { O as Ze, b as et } from "./app-5fxKLAzS.js";
|
|
4
|
-
import { a as tt, e as at, b as De,
|
|
4
|
+
import { a as tt, e as at, b as De, N as lt, _ as Oe, O as z, u as Ue, d as Ne, F as st } from "./index.vue_vue_type_script_setup_true_lang-COHdIM2S.js";
|
|
5
5
|
import { formatDateTime as ie, useI18n as le, useAppLocale as ce, useCoreStore as xe, RestaurantSelector as Te, prefersHour12 as nt } from "@feedmepos/mf-common";
|
|
6
6
|
import { useSnackbar as Se, useDialogChild as ot, useProxiedModel as ut, useDialog as Be, components as oe, FmButtonVariant as $e } from "@feedmepos/ui-library";
|
|
7
7
|
import { _ as rt } from "./TextChip.vue_vue_type_script_setup_true_lang-8frWuZFL.js";
|
|
8
|
-
import { _ as it } from "./app-
|
|
8
|
+
import { _ as it } from "./app-DW6oW0Ma.js";
|
|
9
9
|
import { a as ct, w as dt } from "./tooltip-B5BiPMx9.js";
|
|
10
|
-
import { D as H } from "./dayjs.min-
|
|
11
|
-
import { u as Ee, l as mt } from "./discardConfirm-
|
|
10
|
+
import { D as H } from "./dayjs.min-DEj15U1R.js";
|
|
11
|
+
import { u as Ee, l as mt } from "./discardConfirm-D8fV6Aag.js";
|
|
12
12
|
import { _ as Le } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
13
|
function ze(V, v, l) {
|
|
14
14
|
return V ? ie(
|
|
@@ -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 $, 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 { i as q, b as P, d as ie, m as B, e as D, g as O, h as A, u as H, _ as se } from "./index.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { _ as le } from "./app-DW6oW0Ma.js";
|
|
6
|
+
import { i as q, b as P, d as ie, m as B, e as D, g as O, h as A, u as H, _ as se } from "./index.vue_vue_type_script_setup_true_lang-COHdIM2S.js";
|
|
7
7
|
import { _ as re } from "./PageLayout.vue_vue_type_script_setup_true_lang-BVmHMvKD.js";
|
|
8
8
|
import { defineStore as ce } from "pinia";
|
|
9
|
-
import { _ as Y, g as ue } from "./InventoryBinding.vue_vue_type_script_setup_true_lang-
|
|
10
|
-
import { u as me, l as de } from "./discardConfirm-
|
|
9
|
+
import { _ as Y, g as ue } from "./InventoryBinding.vue_vue_type_script_setup_true_lang-B-A8Yae3.js";
|
|
10
|
+
import { u as me, l as de } from "./discardConfirm-D8fV6Aag.js";
|
|
11
11
|
import { c as pe } from "./check-C9mY6LiX.js";
|
|
12
|
-
import "./unit-
|
|
12
|
+
import "./unit-BnAly_uA.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-DP2Sx5Ik.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 = {
|