@feedmepos/mf-menu 0.32.62 → 0.32.63-dev.1
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-CE4fZP2_.js → App-DhfTGlgM.js} +467 -462
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-PpYjjdOP.js → ApplyProduct.vue_vue_type_script_setup_true_lang-C5-8qdJK.js} +3 -3
- package/dist/{ApplyProductDialog.vue_vue_type_script_setup_true_lang-C_JKiJRD.js → ApplyProductDialog.vue_vue_type_script_setup_true_lang-CXm-0H18.js} +8 -8
- package/dist/{Catalog-C2MyXkps.js → Catalog-WuZJfM6l.js} +78 -78
- package/dist/{Category-B7Uxbyug.js → Category-BeIo7XWY.js} +20 -20
- package/dist/{Category-BoV0MYQp.js → Category-D-cQQCPS.js} +19 -19
- package/dist/{CookingGuide-Bdyj8XMv.js → CookingGuide-B-yvD9ZA.js} +88 -88
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-EDbgLHTU.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-2_yzXoa4.js} +1 -1
- package/dist/{Group-BuFbi0Z-.js → Group-13i5igrS.js} +5 -5
- package/dist/{Group-DYpxc5ui.js → Group-CY8lUzQG.js} +1 -1
- package/dist/{Group.vue_vue_type_script_setup_true_lang-B5Uw2Rzm.js → Group.vue_vue_type_script_setup_true_lang-DZhxy0tb.js} +95 -94
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-COYg8e7h.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CWqv-oUd.js} +13 -13
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-YY25YW4B.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-DTs4Vpdi.js} +219 -220
- package/dist/{Ingredient-Ddw06I0B.js → Ingredient-vrUOW6gk.js} +49 -49
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-CsWdL5Lz.js → InventoryBinding.vue_vue_type_script_setup_true_lang-xcVjRjqD.js} +2 -2
- package/dist/{LinkProductSideSheet-COAMZqOM.js → LinkProductSideSheet-DMbJG6wf.js} +8 -8
- package/dist/{MenuSetting--G1_lGoV.js → MenuSetting-Di2xwm00.js} +10 -10
- package/dist/{OrderPacing-DnvLJh5M.js → OrderPacing-CCe-IcGO.js} +28 -28
- package/dist/{PrintRoute-CP-3JGP3.js → PrintRoute-CcfObcHY.js} +27 -27
- package/dist/{Product-D-q15-Qw.js → Product-ChUVnMgG.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-BaOg60Q6.js → Product.vue_vue_type_script_setup_true_lang-C9Qp50hL.js} +153 -152
- package/dist/{ProductInternalTools-wYn0bzml.js → ProductInternalTools-D9HXhgo5.js} +80 -79
- package/dist/{Products-CxEsB-7l.js → Products-Bly2ktEC.js} +75 -74
- package/dist/{Publish-BCljLztW.js → Publish-C8ubb8Qf.js} +113 -113
- package/dist/{Recipe-DgfobgnQ.js → Recipe-BpMRLsyO.js} +32 -32
- package/dist/{RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-BgDVFKRI.js → RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-BD5OCDRn.js} +1 -1
- package/dist/{RuleView.vue_vue_type_script_setup_true_lang-DCbrAMxd.js → RuleView.vue_vue_type_script_setup_true_lang-Ba3djmX1.js} +474 -473
- package/dist/{Scheduler-C-LJs7Gl.js → Scheduler-CiB4b2Fn.js} +9 -9
- package/dist/{ServingSequence-BoaDRfsc.js → ServingSequence-BlcyW-dv.js} +18 -18
- package/dist/{Setting-BfFqBD9u.js → Setting-DqkL6YYU.js} +31 -31
- package/dist/{Subcategory-BsnC9ZSS.js → Subcategory-B4Jg_wtT.js} +43 -43
- package/dist/{Takeaway-PilRifJP.js → Takeaway-5G3f7jWT.js} +1 -1
- package/dist/{Takeaway-dSEAc70g.js → Takeaway-5rFPYYNA.js} +16 -16
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-CgioM0sV.js → Takeaway.vue_vue_type_script_setup_true_lang-CVsOhg_E.js} +23 -23
- package/dist/{TranslationFieldSection.vue_vue_type_script_setup_true_lang-CHf3g1ia.js → TranslationFieldSection.vue_vue_type_script_setup_true_lang-CPqxA6JD.js} +1 -1
- package/dist/{TranslationSideSheet.vue_vue_type_script_setup_true_lang-A43XxqyC.js → TranslationSideSheet.vue_vue_type_script_setup_true_lang-yrNuTD-3.js} +8 -9
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-T71R68sq.js +5836 -0
- package/dist/{Unit-DW1dFJas.js → Unit-CAkdmQLg.js} +2 -2
- package/dist/{Variant-CzLzrt2N.js → Variant-BbLQqbAK.js} +13 -13
- package/dist/{_id_-qfASfKMD.js → _id_-Dzacr40I.js} +13 -13
- package/dist/{app-BB33yKM6.js → app-4yWs09Fr.js} +495 -495
- package/dist/{app-CJnEQz-U.js → app-Deov1985.js} +3 -3
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/api/media.d.ts +161 -0
- package/dist/apps/mf-menu/src/app.d.ts +340 -0
- package/dist/apps/mf-menu/src/components/feature/CategoryManager/CategoriesSelector.vue.d.ts +1 -1
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/productImages.d.ts +150 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/image/CustomDimensionDialog.vue.d.ts +17 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/image/ImageUploadDialog.vue.d.ts +16 -1
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/image/ManageImageDrawer.vue.d.ts +42 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/image/ProductImageField.vue.d.ts +75 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/image/RegenerateImageDialog.vue.d.ts +17 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/item/ProductDetail.vue.d.ts +3 -6
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/store/menuV2.d.ts +1 -1
- package/dist/apps/mf-menu/src/composable/remyImageTarget.d.ts +5 -0
- package/dist/apps/mf-menu/src/helper/menu.d.ts +14 -1
- package/dist/apps/mf-menu/src/stores/menu.d.ts +1 -0
- package/dist/apps/mf-menu/src/types/rule.d.ts +2 -0
- package/dist/apps/mf-menu/src/views/Catalog/Edit/AddProductPopup/Form.vue.d.ts +3 -2
- package/dist/apps/mf-menu/src/views/Catalog/Edit/AddProductPopup/ProductDetail.vue.d.ts +8 -8
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{linked-status-VaVE9Pyh.js → linked-status-B2WLhKkV.js} +3 -3
- package/dist/assets/{menu-export-DD9Zt6XH.js → menu-export-Dcw5a_dN.js} +3 -3
- package/dist/assets/{override-menu-DZCgrhuF.js → override-menu-cBe2aMY6.js} +3 -3
- package/dist/assets/{validate-menu-BFsQlikL.js → validate-menu-BM-5GK85.js} +2 -2
- package/dist/{catalog-Cvn1ZMGp.js → catalog-DKygS2Cs.js} +6 -6
- package/dist/{catalogSetting-D2bOCGW7.js → catalogSetting-Bn2TplvM.js} +1 -1
- package/dist/currency-DXgNHtK8.js +7 -0
- package/dist/dayjs.min-DpX65tgj.js +7 -0
- package/dist/discardConfirm-DZwzKO-Q.js +3704 -0
- package/dist/{index-B2fxLO4K.js → index-B48KLyqg.js} +61 -61
- package/dist/{index-CizrxT_e.js → index-BEocaqRK.js} +30 -30
- package/dist/index-K-MBqJJo.js +222 -0
- package/dist/{index.vue_vue_type_script_setup_true_lang-gaRM4vfS.js → index.vue_vue_type_script_setup_true_lang-Nl505vPi.js} +44918 -51563
- package/dist/item-Da3ArD-G.js +13213 -0
- package/dist/{jszip.min-BXLegUsz.js → jszip.min-Cc2eR4Cq.js} +119 -119
- package/dist/linkProducts-GNuUxFEE.js +331 -0
- package/dist/{memberPricing-CizI1rUM.js → memberPricing-T-jr7tn1.js} +1 -1
- package/dist/{menu-BCed1YCE.js → menu-DSDRAil-.js} +1 -1
- package/dist/{menuV2-Bo9AHrdr.js → menuV2-fTlJdjxi.js} +162 -160
- package/dist/mf-menu.css +1 -1
- package/dist/{order_pacing-BkfQeNeC.js → order_pacing-Dgo1fySS.js} +17 -17
- package/dist/packages/shared/src/helpers/agentCode.d.ts +9 -0
- package/dist/{priceTier-rjuK-b6U.js → priceTier-aT_gIfrN.js} +3 -3
- package/dist/{rules-DHX_hK6G.js → rules-Cx2hkV20.js} +8 -8
- package/dist/{scheduler-BsfPbtM2.js → scheduler-Bd-q7yF8.js} +62 -62
- package/dist/{toExcel-DJHljg_L.js → toExcel-qfjR83qT.js} +2 -2
- package/dist/{unit-BxTWR1dZ.js → unit-n1T9grbM.js} +64 -64
- package/package.json +3 -3
- package/dist/Thumbnail.vue_vue_type_script_setup_true_lang-DGqao47l.js +0 -399
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DY1umres.js +0 -6058
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/thumbnailUpload.d.ts +0 -6
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/image/ImageUploadForm.vue.d.ts +0 -38
- package/dist/currency-DQDsuXB5.js +0 -7
- package/dist/dayjs.min-CzUkrXIR.js +0 -7
- package/dist/discardConfirm-BHni0LNu.js +0 -28
- package/dist/index-CisutoS9.js +0 -156
- package/dist/item-DOHVD6CN.js +0 -9098
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as W, computed as y, h as p, withModifiers as I, ref as M, resolveComponent as h, createBlock as k, openBlock as c, unref as i, withCtx as _, createElementBlock as F, createVNode as f, Fragment as z, createElementVNode as s, renderList as H, toDisplayString as x, createCommentVNode as q } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { v as d, x as Y, i as Q, u as G, b as J, _ as X } from "./index.vue_vue_type_script_setup_true_lang-Nl505vPi.js";
|
|
3
3
|
import { useI18n as Z } from "@feedmepos/mf-common";
|
|
4
4
|
import { components as ee, useDialog as te, useSnackbar as ne } from "@feedmepos/ui-library";
|
|
5
5
|
import { _ as ae } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
6
|
-
import { _ as oe } from "./app-
|
|
7
|
-
import { d as le, _ as se, u as re, c as ue } from "./scheduler-
|
|
6
|
+
import { _ as oe } from "./app-4yWs09Fr.js";
|
|
7
|
+
import { d as le, _ as se, u as re, c as ue } from "./scheduler-Bd-q7yF8.js";
|
|
8
8
|
import { _ as ce } from "./PageLayout.vue_vue_type_script_setup_true_lang-BVmHMvKD.js";
|
|
9
9
|
const ie = {
|
|
10
10
|
class: "flex flex-1 justify-end"
|
|
@@ -27,7 +27,7 @@ const ie = {
|
|
|
27
27
|
setup(ge) {
|
|
28
28
|
const {
|
|
29
29
|
t: a
|
|
30
|
-
} = Z(),
|
|
30
|
+
} = Z(), O = y(() => [{
|
|
31
31
|
accessorKey: "name",
|
|
32
32
|
header: () => a("menu.scheduler.table.columns.name"),
|
|
33
33
|
cell: (e) => e.getValue(),
|
|
@@ -86,7 +86,7 @@ const ie = {
|
|
|
86
86
|
[d.enum.friday]: "Friday",
|
|
87
87
|
[d.enum.saturday]: "Saturday",
|
|
88
88
|
[d.enum.sunday]: "Sunday"
|
|
89
|
-
},
|
|
89
|
+
}, B = Object.keys(r).slice(0, 5), K = Object.keys(r).slice(5);
|
|
90
90
|
function L(e, t) {
|
|
91
91
|
if (e === Y.enum.daily || t.length === Object.keys(r).length)
|
|
92
92
|
return "Daily";
|
|
@@ -97,7 +97,7 @@ const ie = {
|
|
|
97
97
|
includes: [],
|
|
98
98
|
excludes: []
|
|
99
99
|
});
|
|
100
|
-
return v.length === 1 ? `Daily except ${r[v[0]]}` : $(o,
|
|
100
|
+
return v.length === 1 ? `Daily except ${r[v[0]]}` : $(o, B) ? "Weekdays" : $(o, K) ? "Weekends" : o.every((u, n) => {
|
|
101
101
|
if (n === 0) return !0;
|
|
102
102
|
const b = l.findIndex((U) => U === u);
|
|
103
103
|
return o[n - 1] === l[b - 1];
|
|
@@ -115,12 +115,12 @@ const ie = {
|
|
|
115
115
|
var t;
|
|
116
116
|
C.value || (t = S.value) == null || t.show(e);
|
|
117
117
|
}
|
|
118
|
-
const
|
|
118
|
+
const P = te();
|
|
119
119
|
function R(e) {
|
|
120
120
|
let t = [p("span", a("menu.scheduler.dialogs.remove.message", {
|
|
121
121
|
name: e.name
|
|
122
122
|
}))];
|
|
123
|
-
|
|
123
|
+
P.open({
|
|
124
124
|
title: a("menu.scheduler.dialogs.remove.title"),
|
|
125
125
|
contentComponent: p("div", t),
|
|
126
126
|
primaryActions: {
|
|
@@ -177,7 +177,7 @@ const ie = {
|
|
|
177
177
|
class: "xs:hidden block"
|
|
178
178
|
}, {
|
|
179
179
|
default: _(() => [f(o, {
|
|
180
|
-
"column-defs":
|
|
180
|
+
"column-defs": O.value,
|
|
181
181
|
"page-size": m.value.length,
|
|
182
182
|
"row-data": m.value,
|
|
183
183
|
"search-value": g.value,
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as J, ref as E, computed as M, resolveComponent as y, createElementBlock as g, openBlock as d, Fragment as S, renderSlot as ae, createVNode as l, unref as t, withCtx as m, createElementVNode as b, toDisplayString as U, onBeforeMount as oe, watch as D, watchEffect as se, h as T, getCurrentInstance as le, onMounted as re, createBlock as j, createCommentVNode as G, isRef as ie, normalizeClass as Q, renderList as ue } from "vue";
|
|
2
2
|
import { useRouter as ce } from "vue-router";
|
|
3
|
-
import {
|
|
3
|
+
import { d as H, u as W, b as X, i as Z, g as I, h as L, _ as de, F as me } from "./index.vue_vue_type_script_setup_true_lang-Nl505vPi.js";
|
|
4
4
|
import { useI18n as ee, ItemSelector as pe, useCoreStore as fe } from "@feedmepos/mf-common";
|
|
5
5
|
import { useSnackbar as ne, components as K, useDialog as _e, FmButtonVariant as z, useBreakpoints as ve } from "@feedmepos/ui-library";
|
|
6
6
|
import { _ as ge } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
7
|
-
import { _ as he, R as ye } from "./app-
|
|
7
|
+
import { _ as he, R as ye } from "./app-4yWs09Fr.js";
|
|
8
8
|
import { c as be } from "./check-C9mY6LiX.js";
|
|
9
9
|
import { _ as ke } from "./PageLayout.vue_vue_type_script_setup_true_lang-BVmHMvKD.js";
|
|
10
10
|
import { u as xe } from "./search-BAPEUu1R.js";
|
|
11
|
-
import { u as Se } from "./app-
|
|
11
|
+
import { u as Se } from "./app-Deov1985.js";
|
|
12
12
|
import { c as Ce } from "./createComponentProgrammatically-Bt2rn1IQ.js";
|
|
13
|
-
const qe = { class: "fm-typo-en-title-md-600" }, we = { class: "space-y-32 flex flex-col h-full" }, Ve = { class: "flex gap-8 items-center justify-start" }, Fe = /* @__PURE__ */
|
|
13
|
+
const qe = { class: "fm-typo-en-title-md-600" }, we = { class: "space-y-32 flex flex-col h-full" }, Ve = { class: "flex gap-8 items-center justify-start" }, Fe = /* @__PURE__ */ J({
|
|
14
14
|
__name: "Form",
|
|
15
15
|
props: {
|
|
16
16
|
action: {},
|
|
17
17
|
initialValue: {}
|
|
18
18
|
},
|
|
19
19
|
emits: ["submitted"],
|
|
20
|
-
setup(Y, { expose: k, emit:
|
|
21
|
-
const { t: r } = ee(), p = Y,
|
|
22
|
-
p.initialValue ?
|
|
20
|
+
setup(Y, { expose: k, emit: R }) {
|
|
21
|
+
const { t: r } = ee(), p = Y, P = R, s = E(
|
|
22
|
+
p.initialValue ? H(p.initialValue) : {
|
|
23
23
|
_id: "",
|
|
24
24
|
name: "",
|
|
25
25
|
position: 0,
|
|
@@ -54,7 +54,7 @@ const qe = { class: "fm-typo-en-title-md-600" }, we = { class: "space-y-32 flex
|
|
|
54
54
|
else
|
|
55
55
|
throw new Error("Invalid action");
|
|
56
56
|
} finally {
|
|
57
|
-
u.value = !1,
|
|
57
|
+
u.value = !1, P("submitted");
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
k({
|
|
@@ -71,7 +71,7 @@ const qe = { class: "fm-typo-en-title-md-600" }, we = { class: "space-y-32 flex
|
|
|
71
71
|
return a[v._id] = [...a[h._id] ?? [], h], a;
|
|
72
72
|
}, {});
|
|
73
73
|
}
|
|
74
|
-
const $ = M(() => N(
|
|
74
|
+
const $ = M(() => N(H(s.value.items)));
|
|
75
75
|
return (_, a) => {
|
|
76
76
|
const v = y("fm-text-field"), h = y("fm-button"), e = y("fm-side-sheet");
|
|
77
77
|
return d(), g(S, null, [
|
|
@@ -144,19 +144,19 @@ const qe = { class: "fm-typo-en-title-md-600" }, we = { class: "space-y-32 flex
|
|
|
144
144
|
}, Ie = {
|
|
145
145
|
key: 1,
|
|
146
146
|
class: /* @__PURE__ */ Q(["flex-1", "overflow-scroll", "divide-y divide-fm-color-neutral-gray-100", "pb-64"])
|
|
147
|
-
}, Le = ["onClick"],
|
|
147
|
+
}, Le = ["onClick"], Re = {
|
|
148
148
|
class: "flex-1 space-y-4"
|
|
149
|
-
},
|
|
149
|
+
}, Pe = {
|
|
150
150
|
class: "fm-typo-en-body-lg-600"
|
|
151
151
|
}, Be = {
|
|
152
152
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
153
|
-
},
|
|
153
|
+
}, Je = /* @__PURE__ */ J({
|
|
154
154
|
__name: "ServingSequence",
|
|
155
155
|
setup(Y) {
|
|
156
156
|
const {
|
|
157
157
|
searchKey: k,
|
|
158
|
-
filter:
|
|
159
|
-
} = xe(), r = W(), p = ne(),
|
|
158
|
+
filter: R
|
|
159
|
+
} = xe(), r = W(), p = ne(), P = X(p), s = Z(P), C = _e(), i = fe(), B = Se(), q = ce(), {
|
|
160
160
|
t: c
|
|
161
161
|
} = ee(), u = (e) => {
|
|
162
162
|
e && e !== me.enum.v4 && q.push({
|
|
@@ -183,7 +183,7 @@ const qe = { class: "fm-typo-en-title-md-600" }, we = { class: "space-y-32 flex
|
|
|
183
183
|
});
|
|
184
184
|
const f = M(() => r.serveSequence.filter(({
|
|
185
185
|
name: e
|
|
186
|
-
}) =>
|
|
186
|
+
}) => R([e])) ?? []);
|
|
187
187
|
function w(e) {
|
|
188
188
|
C.open({
|
|
189
189
|
title: "Delete sequence",
|
|
@@ -304,7 +304,7 @@ const qe = { class: "fm-typo-en-title-md-600" }, we = { class: "space-y-32 flex
|
|
|
304
304
|
key: o._id,
|
|
305
305
|
class: Q(["py-12 px-16", "flex items-center space-x-8"]),
|
|
306
306
|
onClick: (Oe) => a(o)
|
|
307
|
-
}, [b("div",
|
|
307
|
+
}, [b("div", Re, [b("p", Pe, U(o.name), 1), b("p", Be, U(t(c)("menu.common.labels.products_linked", {
|
|
308
308
|
count: o.items.length
|
|
309
309
|
})), 1)]), l(O, {
|
|
310
310
|
servingSequence: o
|
|
@@ -350,5 +350,5 @@ const qe = { class: "fm-typo-en-title-md-600" }, we = { class: "space-y-32 flex
|
|
|
350
350
|
}
|
|
351
351
|
});
|
|
352
352
|
export {
|
|
353
|
-
|
|
353
|
+
Je as default
|
|
354
354
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as ne, computed as p, ref as se, watch as ue, watchEffect as ie, resolveComponent as m, createElementBlock as M, openBlock as r, normalizeClass as H, createVNode as s, withCtx as c, createElementVNode as v, createBlock as g, createCommentVNode as y, unref as e, Fragment as D, renderList as
|
|
2
|
-
import { u as me,
|
|
1
|
+
import { defineComponent as ne, computed as p, ref as se, watch as ue, watchEffect as ie, resolveComponent as m, createElementBlock as M, openBlock as r, normalizeClass as H, createVNode as s, withCtx as c, createElementVNode as v, createBlock as g, createCommentVNode as y, unref as e, Fragment as D, renderList as $, createTextVNode as re, toDisplayString as F } from "vue";
|
|
2
|
+
import { u as me, b as ce, F as de, i as pe, a as ve, k, d as T } from "./index.vue_vue_type_script_setup_true_lang-Nl505vPi.js";
|
|
3
3
|
import { useCoreStore as ge, useI18n as fe } from "@feedmepos/mf-common";
|
|
4
|
-
import { useSnackbar as _e, useDialog as be, FmButtonVariant as
|
|
5
|
-
import { _ as
|
|
6
|
-
import { _ as ke } from "./RuleView.vue_vue_type_script_setup_true_lang-
|
|
7
|
-
import { _ as z, a as xe } from "./GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-
|
|
8
|
-
import { C as f, a as x } from "./catalogSetting-
|
|
9
|
-
import { C as Ce } from "./catalog-
|
|
4
|
+
import { useSnackbar as _e, useDialog as be, FmButtonVariant as P, FmButtonColorThemeVariant as R, components as ye } from "@feedmepos/ui-library";
|
|
5
|
+
import { _ as A } from "./FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js";
|
|
6
|
+
import { _ as ke } from "./RuleView.vue_vue_type_script_setup_true_lang-Ba3djmX1.js";
|
|
7
|
+
import { _ as z, a as xe } from "./GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CWqv-oUd.js";
|
|
8
|
+
import { C as f, a as x } from "./catalogSetting-Bn2TplvM.js";
|
|
9
|
+
import { C as Ce } from "./catalog-DKygS2Cs.js";
|
|
10
10
|
const Oe = {
|
|
11
11
|
class: /* @__PURE__ */ H(["overflow-scroll", "flex-1", "xs:px-16 xs:py-16", "pt-16"])
|
|
12
12
|
}, Se = {
|
|
@@ -24,20 +24,20 @@ const Oe = {
|
|
|
24
24
|
class: "fm-typo-en-body-lg-400"
|
|
25
25
|
}, we = {
|
|
26
26
|
class: "fm-typo-en-body-md-400"
|
|
27
|
-
},
|
|
27
|
+
}, Fe = {
|
|
28
28
|
class: "flex justify-end"
|
|
29
29
|
}, He = /* @__PURE__ */ ne({
|
|
30
30
|
__name: "Setting",
|
|
31
|
-
setup(
|
|
31
|
+
setup(Te) {
|
|
32
32
|
const U = ge(), u = me(), j = _e(), I = ce(j), {
|
|
33
33
|
minor: q
|
|
34
|
-
} = I,
|
|
34
|
+
} = I, J = be(), {
|
|
35
35
|
t: n
|
|
36
36
|
} = fe(), O = p(() => u.currentCatalog), _ = p(() => !O.value), S = p(() => u.version === de.enum.v4), {
|
|
37
|
-
updateMenu:
|
|
38
|
-
} = pe(I), l = se(f.initCatalogSetting()),
|
|
37
|
+
updateMenu: W
|
|
38
|
+
} = pe(I), l = se(f.initCatalogSetting()), Y = p(() => u.catalogs.filter((t) => t._id !== u.state.currentCatalogId).map((t) => t.name)), G = p(() => u.state.restaurants.filter((t) => [...t.additionalCatalogs, t.inHouseDelivery, ...t.linkedDeliveryCatalogs.map((o) => o.catalog), t.pickupCatalog, t.takeawayCatalog, t.catalogId].includes(u.state.currentCatalogId)).map((t) => t.name));
|
|
39
39
|
function L() {
|
|
40
|
-
return
|
|
40
|
+
return G.value.length > 0 ? s("div", {
|
|
41
41
|
class: ["flex items-center", "bg-fm-color-system-warning-100", "rounded-lg", "py-16 px-24 space-x-8"]
|
|
42
42
|
}, [s(ye.FmIcon, {
|
|
43
43
|
color: "system-warning-300",
|
|
@@ -63,7 +63,7 @@ const Oe = {
|
|
|
63
63
|
});
|
|
64
64
|
});
|
|
65
65
|
function K(t) {
|
|
66
|
-
const o = l.value.taxSetting, i = o.mode === x.AUTO ? f.manualTax(h.value) :
|
|
66
|
+
const o = l.value.taxSetting, i = o.mode === x.AUTO ? f.manualTax(h.value) : T(o);
|
|
67
67
|
i.inclusive ?? (i.inclusive = []);
|
|
68
68
|
const d = i.inclusive.findIndex((C) => C.systemCode === t.systemCode);
|
|
69
69
|
d < 0 ? i.inclusive.push(t) : i.inclusive.splice(d, 1, t), N.value = i;
|
|
@@ -81,7 +81,7 @@ const Oe = {
|
|
|
81
81
|
O.value ? await new Ce({
|
|
82
82
|
...O.value,
|
|
83
83
|
...t
|
|
84
|
-
}, u,
|
|
84
|
+
}, u, W, J).update() : await q(async () => {
|
|
85
85
|
await u.updateMainCatalogSetting({
|
|
86
86
|
inclusiveTaxes: t.inclusiveTaxes
|
|
87
87
|
});
|
|
@@ -91,11 +91,11 @@ const Oe = {
|
|
|
91
91
|
});
|
|
92
92
|
};
|
|
93
93
|
function X(t, o) {
|
|
94
|
-
const i =
|
|
94
|
+
const i = T(l.value);
|
|
95
95
|
i.markupOptions && (i.markupOptions[t] = o, l.value = i);
|
|
96
96
|
}
|
|
97
97
|
function Z(t) {
|
|
98
|
-
const o =
|
|
98
|
+
const o = T(l.value);
|
|
99
99
|
o.markupOptions && (o.markupOptions.splice(t, 1), l.value = o);
|
|
100
100
|
}
|
|
101
101
|
return (t, o) => {
|
|
@@ -112,11 +112,11 @@ const Oe = {
|
|
|
112
112
|
default: c(() => [s(i, {
|
|
113
113
|
modelValue: l.value.name,
|
|
114
114
|
"onUpdate:modelValue": o[0] || (o[0] = (a) => l.value.name = a),
|
|
115
|
-
rules: [(a) => !
|
|
115
|
+
rules: [(a) => !Y.value.includes(a.trim()) || e(n)("menu.setting.catalog.fields.name.used"), (a) => !!a.trim() || e(n)("menu.setting.catalog.fields.name.required")],
|
|
116
116
|
label: e(n)("menu.setting.catalog.fields.name.label")
|
|
117
117
|
}, null, 8, ["modelValue", "rules", "label"]), s(L)]),
|
|
118
118
|
_: 1
|
|
119
|
-
}, 8, ["title"])), s(
|
|
119
|
+
}, 8, ["title"])), s(A, {
|
|
120
120
|
label: e(n)("menu.setting.tax.title")
|
|
121
121
|
}, {
|
|
122
122
|
default: c(() => [s(C, {
|
|
@@ -135,7 +135,7 @@ const Oe = {
|
|
|
135
135
|
sublabel: e(n)("menu.setting.tax.modes.manual.sublabel")
|
|
136
136
|
}, null, 8, ["value", "label", "sublabel"])]),
|
|
137
137
|
_: 1
|
|
138
|
-
}, 8, ["model-value"]), l.value.taxSetting.mode === e(x).MANUAL ? (r(), M("div", Ve, [(r(!0), M(D, null,
|
|
138
|
+
}, 8, ["model-value"]), l.value.taxSetting.mode === e(x).MANUAL ? (r(), M("div", Ve, [(r(!0), M(D, null, $(h.value, (a) => (r(), g(ee, {
|
|
139
139
|
key: a.systemCode,
|
|
140
140
|
"model-value": a.inclusive,
|
|
141
141
|
value: !0,
|
|
@@ -150,7 +150,7 @@ const Oe = {
|
|
|
150
150
|
}
|
|
151
151
|
}, null, 8, ["model-value", "label", "onUpdate:modelValue"]))), 128))])) : y("", !0)]),
|
|
152
152
|
_: 1
|
|
153
|
-
}, 8, ["label"]), !_.value && S.value ? (r(), g(
|
|
153
|
+
}, 8, ["label"]), !_.value && S.value ? (r(), g(A, {
|
|
154
154
|
key: 1,
|
|
155
155
|
label: e(n)("menu.setting.link.title")
|
|
156
156
|
}, {
|
|
@@ -174,7 +174,7 @@ const Oe = {
|
|
|
174
174
|
"onUpdate:modelValue": o[3] || (o[3] = (a) => l.value.orderFrom = a)
|
|
175
175
|
}, null, 8, ["items", "model-value"])) : y("", !0)]),
|
|
176
176
|
_: 1
|
|
177
|
-
}, 8, ["label"])) : y("", !0), !_.value && S.value ? (r(), g(
|
|
177
|
+
}, 8, ["label"])) : y("", !0), !_.value && S.value ? (r(), g(A, {
|
|
178
178
|
key: 2,
|
|
179
179
|
label: e(n)("menu.setting.markup.title")
|
|
180
180
|
}, {
|
|
@@ -197,13 +197,13 @@ const Oe = {
|
|
|
197
197
|
}) => [s(w, {
|
|
198
198
|
"text-color": e(R).ColorPrimary,
|
|
199
199
|
"border-color": e(R).ColorPrimary,
|
|
200
|
-
variant: e(
|
|
200
|
+
variant: e(P).Secondary,
|
|
201
201
|
label: "Add markup configuration",
|
|
202
202
|
"prepend-icon": "add",
|
|
203
203
|
onClick: a
|
|
204
204
|
}, null, 8, ["text-color", "border-color", "variant", "onClick"])]),
|
|
205
205
|
_: 1
|
|
206
|
-
}, 8, ["categories", "items"]), (r(!0), M(D, null,
|
|
206
|
+
}, 8, ["categories", "items"]), (r(!0), M(D, null, $(l.value.markupOptions, (a, b) => (r(), g(z, {
|
|
207
207
|
key: b,
|
|
208
208
|
categories: e(u).categories,
|
|
209
209
|
items: e(u).items,
|
|
@@ -224,16 +224,16 @@ const Oe = {
|
|
|
224
224
|
default: c(() => [v("div", Ue, [v("div", he, [s(ae, {
|
|
225
225
|
class: "text-fm-color-typo-info bg-fm-color-system-info-100 font-semibold"
|
|
226
226
|
}, {
|
|
227
|
-
default: c(() => [re(" Markup percentage: " +
|
|
227
|
+
default: c(() => [re(" Markup percentage: " + F(a.percentage) + "% ", 1)]),
|
|
228
228
|
_: 2
|
|
229
|
-
}, 1024), v("p", Ne,
|
|
229
|
+
}, 1024), v("p", Ne, F(e(n)("menu.setting.markup.config", {
|
|
230
230
|
number: b + 1
|
|
231
|
-
})), 1), v("p", we,
|
|
231
|
+
})), 1), v("p", we, F(a.includeItems ? e(n)("menu.setting.markup.products.linked", {
|
|
232
232
|
count: a.includeItems.length
|
|
233
233
|
}) : e(n)("menu.setting.markup.products.all")), 1)]), s(w, {
|
|
234
|
-
variant: e(
|
|
234
|
+
variant: e(P).Tertiary,
|
|
235
235
|
"prepend-icon": "delete",
|
|
236
|
-
onClick: (
|
|
236
|
+
onClick: (Ae) => Z(b)
|
|
237
237
|
}, null, 8, ["variant", "onClick"])])]),
|
|
238
238
|
_: 2
|
|
239
239
|
}, 1032, ["id", "onClick"])]),
|
|
@@ -247,7 +247,7 @@ const Oe = {
|
|
|
247
247
|
"is-v4": S.value
|
|
248
248
|
}, null, 8, ["modelValue", "is-main-catalog", "is-v4"]), _.value ? (r(), g(L, {
|
|
249
249
|
key: 3
|
|
250
|
-
})) : y("", !0)]), v("div",
|
|
250
|
+
})) : y("", !0)]), v("div", Fe, [s(w, {
|
|
251
251
|
label: e(n)("common.save"),
|
|
252
252
|
type: "submit"
|
|
253
253
|
}, null, 8, ["label"])])]),
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { defineComponent as A, ref as x, computed as V, watch as te, resolveComponent as C, createElementBlock as k, openBlock as p, Fragment as z, renderSlot as oe, createVNode as m, unref as n, withCtx as b, createElementVNode as c, renderList as Q, toDisplayString as E, h as M, withModifiers as
|
|
2
|
-
import { useI18n as
|
|
3
|
-
import { useSnackbar as
|
|
1
|
+
import { defineComponent as A, ref as x, computed as V, watch as te, resolveComponent as C, createElementBlock as k, openBlock as p, Fragment as z, renderSlot as oe, createVNode as m, unref as n, withCtx as b, createElementVNode as c, renderList as Q, toDisplayString as E, h as M, withModifiers as K, getCurrentInstance as ne, createBlock as U, createCommentVNode as le } from "vue";
|
|
2
|
+
import { useI18n as R } from "@feedmepos/mf-common";
|
|
3
|
+
import { useSnackbar as j, components as W, useDialog as X, FmButtonVariant as q, useBreakpoints as se, FmButtonColorThemeVariant as ie } from "@feedmepos/ui-library";
|
|
4
4
|
import { _ as re } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
5
|
-
import {
|
|
5
|
+
import { b as P, u as Y, i as J, g as Z, h as ee, _ as ce } from "./index.vue_vue_type_script_setup_true_lang-Nl505vPi.js";
|
|
6
6
|
import { _ as ue } from "./PageLayout.vue_vue_type_script_setup_true_lang-BVmHMvKD.js";
|
|
7
|
-
import { _ as me } from "./app-
|
|
7
|
+
import { _ as me } from "./app-4yWs09Fr.js";
|
|
8
8
|
import { c as de } from "./createForm-BoUQeZTd.js";
|
|
9
|
-
import { u as pe } from "./discardConfirm-
|
|
9
|
+
import { u as pe } from "./discardConfirm-DZwzKO-Q.js";
|
|
10
10
|
import { c as G } from "./object-DVUNCr7w.js";
|
|
11
|
-
import { r as
|
|
12
|
-
import { _ as
|
|
11
|
+
import { r as _e, u as ae } from "./rules-Cx2hkV20.js";
|
|
12
|
+
import { _ as fe } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-yrNuTD-3.js";
|
|
13
13
|
import { c as ve } from "./check-C9mY6LiX.js";
|
|
14
14
|
import { g as H } from "./translation-fNx6yEpy.js";
|
|
15
15
|
import { _ as ge } from "./TranslationViewChip.vue_vue_type_script_setup_true_lang-DiK3fi9J.js";
|
|
16
|
-
import { a as ye } from "./menu-
|
|
16
|
+
import { a as ye } from "./menu-DSDRAil-.js";
|
|
17
17
|
const be = {
|
|
18
18
|
class: "fm-typo-en-title-md-600"
|
|
19
19
|
}, he = {
|
|
@@ -27,16 +27,16 @@ const be = {
|
|
|
27
27
|
props: {
|
|
28
28
|
initialValue: {}
|
|
29
29
|
},
|
|
30
|
-
setup(
|
|
30
|
+
setup(B, {
|
|
31
31
|
expose: w
|
|
32
32
|
}) {
|
|
33
|
-
const h =
|
|
33
|
+
const h = B, S = j(), F = P(S), T = J(F), d = Y(), {
|
|
34
34
|
t: l
|
|
35
|
-
} =
|
|
35
|
+
} = R(), $ = x(!1), o = x(!1), L = x(!1), u = x(void 0), N = (e) => {
|
|
36
36
|
ve.isBoolean(e) ? o.value = e : o.value = !o.value;
|
|
37
37
|
}, s = x(G(h.initialValue)), O = V(() => !!s.value.name), D = V(() => {
|
|
38
|
-
var
|
|
39
|
-
const e = [], a = "en-US", t = (
|
|
38
|
+
var f;
|
|
39
|
+
const e = [], a = "en-US", t = (f = u.value) == null ? void 0 : f[a];
|
|
40
40
|
return s.value.name && !t && e.push({
|
|
41
41
|
locale: a,
|
|
42
42
|
name: s.value.name,
|
|
@@ -56,13 +56,13 @@ const be = {
|
|
|
56
56
|
s.value.name = e;
|
|
57
57
|
}
|
|
58
58
|
const r = pe(() => {
|
|
59
|
-
const e = d.subcategories.find((v) => v._id === s.value._id), a = s.value.name !== (e == null ? void 0 : e.name), t = (e == null ? void 0 : e.name_locale) || {},
|
|
59
|
+
const e = d.subcategories.find((v) => v._id === s.value._id), a = s.value.name !== (e == null ? void 0 : e.name), t = (e == null ? void 0 : e.name_locale) || {}, f = u.value || {}, y = JSON.stringify(t) !== JSON.stringify(f);
|
|
60
60
|
return a || y;
|
|
61
61
|
}, () => {
|
|
62
62
|
o.value = !1;
|
|
63
63
|
});
|
|
64
|
-
async function
|
|
65
|
-
const e = d.subcategories.find((
|
|
64
|
+
async function _() {
|
|
65
|
+
const e = d.subcategories.find((f) => f._id === s.value._id), {
|
|
66
66
|
updateMenu: a
|
|
67
67
|
} = T, t = u.value;
|
|
68
68
|
await a({
|
|
@@ -85,7 +85,7 @@ const be = {
|
|
|
85
85
|
trigger: N,
|
|
86
86
|
show: o
|
|
87
87
|
}), (e, a) => {
|
|
88
|
-
const t = C("fm-button"),
|
|
88
|
+
const t = C("fm-button"), f = C("FmTooltip"), y = C("FmTextField"), v = C("fm-side-sheet");
|
|
89
89
|
return p(), k(z, null, [oe(e.$slots, "default", {
|
|
90
90
|
trigger: N
|
|
91
91
|
}), m(v, {
|
|
@@ -94,7 +94,7 @@ const be = {
|
|
|
94
94
|
"onUpdate:modelValue": a[3] || (a[3] = (g) => o.value = g),
|
|
95
95
|
"is-container": n(W).FmForm,
|
|
96
96
|
"is-container-props": {
|
|
97
|
-
onValidationSuccess:
|
|
97
|
+
onValidationSuccess: _,
|
|
98
98
|
blameFormChildOnValidationFailed: !0
|
|
99
99
|
},
|
|
100
100
|
"max-width": 560,
|
|
@@ -119,9 +119,9 @@ const be = {
|
|
|
119
119
|
modelValue: s.value.name,
|
|
120
120
|
"onUpdate:modelValue": a[1] || (a[1] = (g) => s.value.name = g),
|
|
121
121
|
disabled: !s.value._id,
|
|
122
|
-
rules: [n(
|
|
122
|
+
rules: [n(_e)]
|
|
123
123
|
}, {
|
|
124
|
-
append: b(() => [m(
|
|
124
|
+
append: b(() => [m(f, {
|
|
125
125
|
variant: "plain",
|
|
126
126
|
placement: "top",
|
|
127
127
|
"z-index": 999
|
|
@@ -140,7 +140,7 @@ const be = {
|
|
|
140
140
|
_: 1
|
|
141
141
|
}, 8, ["label", "modelValue", "disabled", "rules"])])]),
|
|
142
142
|
_: 1
|
|
143
|
-
}, 8, ["modelValue", "is-container", "is-container-props", "onOn:clickedAway"]), m(
|
|
143
|
+
}, 8, ["modelValue", "is-container", "is-container-props", "onOn:clickedAway"]), m(fe, {
|
|
144
144
|
modelValue: L.value,
|
|
145
145
|
"onUpdate:modelValue": a[4] || (a[4] = (g) => L.value = g),
|
|
146
146
|
title: n(l)("menu.subcategory.title"),
|
|
@@ -170,13 +170,13 @@ const be = {
|
|
|
170
170
|
class: "fm-typo-en-body-lg-600"
|
|
171
171
|
}, Oe = /* @__PURE__ */ A({
|
|
172
172
|
__name: "SubcategoryTable",
|
|
173
|
-
setup(
|
|
174
|
-
const w = X(), h =
|
|
173
|
+
setup(B) {
|
|
174
|
+
const w = X(), h = j(), S = P(h), F = J(S), T = ae({
|
|
175
175
|
dialog: w,
|
|
176
176
|
menuLoader: F
|
|
177
|
-
}), d = V(() =>
|
|
177
|
+
}), d = V(() => Y().subcategories), l = x(""), $ = V(() => d.value.filter((i) => i.name.toLowerCase().includes(l.value.toLowerCase()))), {
|
|
178
178
|
t: o
|
|
179
|
-
} =
|
|
179
|
+
} = R(), L = x([{
|
|
180
180
|
accessorKey: "name",
|
|
181
181
|
header: () => o("menu.subcategory.columns.title"),
|
|
182
182
|
enableSorting: !1,
|
|
@@ -184,12 +184,12 @@ const be = {
|
|
|
184
184
|
width: "auto"
|
|
185
185
|
},
|
|
186
186
|
cell: (i) => {
|
|
187
|
-
const r = i.row.original,
|
|
187
|
+
const r = i.row.original, _ = i.getValue();
|
|
188
188
|
return M("div", {
|
|
189
189
|
class: "flex items-center gap-8"
|
|
190
190
|
}, [M("span", {
|
|
191
191
|
class: "break-all"
|
|
192
|
-
},
|
|
192
|
+
}, _), r.name_locale ? M(ge, {
|
|
193
193
|
nameLocale: r.name_locale ?? {}
|
|
194
194
|
}) : null]);
|
|
195
195
|
}
|
|
@@ -210,7 +210,7 @@ const be = {
|
|
|
210
210
|
disabled: !r._id,
|
|
211
211
|
variant: "tertiary",
|
|
212
212
|
textColor: "neutral-gray-400",
|
|
213
|
-
onClick:
|
|
213
|
+
onClick: K(async () => {
|
|
214
214
|
await u(r);
|
|
215
215
|
}, ["stop", "prevent"])
|
|
216
216
|
})]);
|
|
@@ -247,7 +247,7 @@ const be = {
|
|
|
247
247
|
});
|
|
248
248
|
}
|
|
249
249
|
async function N(i) {
|
|
250
|
-
const r = i.map((
|
|
250
|
+
const r = i.map((_) => _._id).filter((_) => !!_);
|
|
251
251
|
await T.rearrange(r);
|
|
252
252
|
}
|
|
253
253
|
const s = ne();
|
|
@@ -258,8 +258,8 @@ const be = {
|
|
|
258
258
|
}
|
|
259
259
|
const D = se(), I = V(() => D.breakpoints.value.xs);
|
|
260
260
|
return (i, r) => {
|
|
261
|
-
const
|
|
262
|
-
return I.value ? (p(), k("div", Le, [c("div", Se, [m(
|
|
261
|
+
const _ = C("FmSearch"), e = C("FmTable"), a = C("FmButton");
|
|
262
|
+
return I.value ? (p(), k("div", Le, [c("div", Se, [m(_, {
|
|
263
263
|
autofocus: "",
|
|
264
264
|
modelValue: l.value,
|
|
265
265
|
"onUpdate:modelValue": r[2] || (r[2] = (t) => l.value = t),
|
|
@@ -270,14 +270,14 @@ const be = {
|
|
|
270
270
|
}, null, 8, ["modelValue", "placeholder"])]), c("div", Te, [(p(!0), k(z, null, Q($.value, (t) => (p(), k("div", {
|
|
271
271
|
key: t._id || "",
|
|
272
272
|
class: "flex flex-row py-12 px-16",
|
|
273
|
-
onClick: (
|
|
273
|
+
onClick: (f) => O(t)
|
|
274
274
|
}, [c("div", Me, [c("p", Ee, E(t.name), 1)]), m(a, {
|
|
275
275
|
"text-color": n(ie).NeutralGray400,
|
|
276
276
|
variant: n(q).Tertiary,
|
|
277
277
|
"prepend-icon": "delete",
|
|
278
278
|
disabled: !t._id,
|
|
279
|
-
onClick:
|
|
280
|
-
}, null, 8, ["text-color", "variant", "disabled", "onClick"])], 8, Ne))), 128))])])) : (p(), k("div", we, [c("div", Fe, [c("div", $e, [m(
|
|
279
|
+
onClick: K((f) => u(t), ["stop"])
|
|
280
|
+
}, null, 8, ["text-color", "variant", "disabled", "onClick"])], 8, Ne))), 128))])])) : (p(), k("div", we, [c("div", Fe, [c("div", $e, [m(_, {
|
|
281
281
|
modelValue: l.value,
|
|
282
282
|
"onUpdate:modelValue": r[0] || (r[0] = (t) => l.value = t),
|
|
283
283
|
autofocus: "",
|
|
@@ -302,19 +302,19 @@ const be = {
|
|
|
302
302
|
})]));
|
|
303
303
|
};
|
|
304
304
|
}
|
|
305
|
-
}),
|
|
305
|
+
}), Ue = { class: "flex-1 flex justify-between gap-8 pl-8" }, Be = { class: "flex items-center" }, De = { class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4" }, Ie = { class: "fm-typo-en-body-md-600 font-semibold" }, aa = /* @__PURE__ */ A({
|
|
306
306
|
__name: "Subcategory",
|
|
307
|
-
setup(
|
|
308
|
-
const w = X(), h =
|
|
307
|
+
setup(B) {
|
|
308
|
+
const w = X(), h = j(), S = P(h), F = J(S), T = ae({ dialog: w, menuLoader: F }), d = V(() => Y().subcategories), { t: l } = R();
|
|
309
309
|
function $() {
|
|
310
310
|
T.create();
|
|
311
311
|
}
|
|
312
312
|
const o = V(() => d.value.length);
|
|
313
|
-
return ye().resetOnMount(), (L, u) => (p(),
|
|
313
|
+
return ye().resetOnMount(), (L, u) => (p(), U(ue, {
|
|
314
314
|
heading: n(l)("menu.subcategory.title")
|
|
315
315
|
}, {
|
|
316
316
|
default: b(() => [
|
|
317
|
-
d.value.length > 0 ? (p(),
|
|
317
|
+
d.value.length > 0 ? (p(), U(Oe, { key: 0 })) : (p(), U(n(ce), {
|
|
318
318
|
key: 1,
|
|
319
319
|
action: {
|
|
320
320
|
text: n(l)("menu.subcategory.add"),
|
|
@@ -325,13 +325,13 @@ const be = {
|
|
|
325
325
|
}, null, 8, ["action", "subtitle", "title"]))
|
|
326
326
|
]),
|
|
327
327
|
"append-heading": b(() => [
|
|
328
|
-
c("div",
|
|
329
|
-
c("div",
|
|
328
|
+
c("div", Ue, [
|
|
329
|
+
c("div", Be, [
|
|
330
330
|
c("div", De, [
|
|
331
331
|
c("p", Ie, E(o.value), 1)
|
|
332
332
|
])
|
|
333
333
|
]),
|
|
334
|
-
d.value.length > 0 ? (p(),
|
|
334
|
+
d.value.length > 0 ? (p(), U(re, {
|
|
335
335
|
key: 0,
|
|
336
336
|
label: n(l)("menu.subcategory.add"),
|
|
337
337
|
"prepend-icon": "add",
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { defineComponent as f, computed as y, ref as k, createBlock as i, openBlock as d, unref as a, withCtx as s, createElementVNode as t, toDisplayString as b, createCommentVNode as g, createVNode as m } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { b as v, u as w, i as x, g as E, h as M } from "./index.vue_vue_type_script_setup_true_lang-Nl505vPi.js";
|
|
3
3
|
import { useI18n as T } from "@feedmepos/mf-common";
|
|
4
|
-
import { useSnackbar as
|
|
5
|
-
import { _ as
|
|
4
|
+
import { useSnackbar as h } from "@feedmepos/ui-library";
|
|
5
|
+
import { _ as V } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
6
6
|
import { _ as C } from "./PageLayout.vue_vue_type_script_setup_true_lang-BVmHMvKD.js";
|
|
7
|
-
import { _ as N } from "./Takeaway.vue_vue_type_script_setup_true_lang-
|
|
8
|
-
import { T as S, l as
|
|
9
|
-
import { a as
|
|
10
|
-
const
|
|
7
|
+
import { _ as N } from "./Takeaway.vue_vue_type_script_setup_true_lang-CVsOhg_E.js";
|
|
8
|
+
import { T as S, l as L } from "./index-BEocaqRK.js";
|
|
9
|
+
import { a as O } from "./menu-DSDRAil-.js";
|
|
10
|
+
const U = { class: "flex-1 flex justify-between gap-8 pl-8" }, B = { class: "flex items-center" }, F = { class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4" }, D = { class: "fm-typo-en-body-md-600 font-semibold" }, H = /* @__PURE__ */ f({
|
|
11
11
|
__name: "Takeaway",
|
|
12
|
-
setup(
|
|
13
|
-
const u =
|
|
14
|
-
return
|
|
12
|
+
setup(I) {
|
|
13
|
+
const u = h(), l = v(u), c = w(), p = x(l), _ = y(() => c.rules.item.bindToVariant), n = k(0), { t: r } = T();
|
|
14
|
+
return O().resetOnMount(), (P, o) => (d(), i(C, {
|
|
15
15
|
heading: a(r)("menu.takeaway.title")
|
|
16
16
|
}, {
|
|
17
17
|
default: s(() => [
|
|
@@ -20,10 +20,10 @@ const O = { class: "flex-1 flex justify-between gap-8 pl-8" }, U = { class: "fle
|
|
|
20
20
|
})
|
|
21
21
|
]),
|
|
22
22
|
"append-heading": s(() => [
|
|
23
|
-
t("div",
|
|
24
|
-
t("div",
|
|
23
|
+
t("div", U, [
|
|
24
|
+
t("div", B, [
|
|
25
25
|
t("div", F, [
|
|
26
|
-
t("p",
|
|
26
|
+
t("p", D, b(n.value), 1)
|
|
27
27
|
])
|
|
28
28
|
]),
|
|
29
29
|
t("div", null, [
|
|
@@ -37,13 +37,13 @@ const O = { class: "flex-1 flex justify-between gap-8 pl-8" }, U = { class: "fle
|
|
|
37
37
|
module: a(M).enum.takeaway,
|
|
38
38
|
operation: a(E.F_OPERATION_TYPE).create,
|
|
39
39
|
data: e,
|
|
40
|
-
link: a(
|
|
40
|
+
link: a(L)(e.usedBy || [])
|
|
41
41
|
},
|
|
42
42
|
e.name
|
|
43
43
|
))
|
|
44
44
|
}, {
|
|
45
45
|
default: s(({ trigger: e }) => [
|
|
46
|
-
m(
|
|
46
|
+
m(V, {
|
|
47
47
|
label: a(r)("menu.takeaway.actions.add"),
|
|
48
48
|
"prepend-icon": "add",
|
|
49
49
|
type: "button",
|
|
@@ -60,5 +60,5 @@ const O = { class: "flex-1 flex justify-between gap-8 pl-8" }, U = { class: "fle
|
|
|
60
60
|
}
|
|
61
61
|
});
|
|
62
62
|
export {
|
|
63
|
-
|
|
63
|
+
H as default
|
|
64
64
|
};
|