@feedmepos/mf-menu 0.32.45-dev → 0.32.46-dev.2
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-u5AOIdU4.js → App-DnmPW7GQ.js} +5 -5
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-RTdI8EVk.js → ApplyProduct.vue_vue_type_script_setup_true_lang-BN_pomak.js} +3 -3
- package/dist/{Catalog-DDMz6wD9.js → Catalog-gxj-MZB8.js} +44 -44
- package/dist/{Category-DoIleKPb.js → Category-CqWHFR6I.js} +19 -19
- package/dist/{Category-BE0d0_de.js → Category-JHb56PfQ.js} +24 -24
- package/dist/{CookingGuide-iP5hFtlB.js → CookingGuide-DNMfIDDf.js} +105 -105
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-CSaMT7Gr.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-BYdToHa3.js} +1 -1
- package/dist/{Group-AXDRjsKC.js → Group-DXEgfQ_e.js} +3 -3
- package/dist/{Group-xjimyqnO.js → Group-bxjyN23A.js} +1 -1
- package/dist/{Group.vue_vue_type_script_setup_true_lang-DB_X7ws3.js → Group.vue_vue_type_script_setup_true_lang-DPhYCl15.js} +19 -19
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-D_IUSYDa.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DAsxXqGu.js} +30 -30
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-Suib7m8i.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-BuD8TeFi.js} +1991 -1990
- package/dist/{Ingredient-yr2DWIMw.js → Ingredient-BAnjcaO0.js} +20 -20
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-BpiU1gRP.js → InventoryBinding.vue_vue_type_script_setup_true_lang-CppjxcTA.js} +2 -2
- package/dist/{LinkProductSideSheet-2MbaATTn.js → LinkProductSideSheet-CvWcioxX.js} +45 -45
- package/dist/{MenuSetting-BhkjzPiN.js → MenuSetting-DCQM7rh6.js} +47 -47
- package/dist/{PrintRoute-ChqpbVo4.js → PrintRoute-Be0WG4oQ.js} +39 -39
- package/dist/{Product-BpnGnMzm.js → Product-DfYmo4vJ.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-COkk299w.js → Product.vue_vue_type_script_setup_true_lang-BsRZ0VVW.js} +93 -93
- package/dist/{ProductInternalTools-BEwLYcEn.js → ProductInternalTools-D2QTAjE7.js} +66 -66
- package/dist/{Products-lONe7x_i.js → Products-BhY4Cwaz.js} +42 -42
- package/dist/{Publish-CXRgBz-S.js → Publish-BfEtLeeh.js} +29 -29
- package/dist/{Recipe-Bbt3hG6N.js → Recipe-ssNUNy2j.js} +24 -24
- package/dist/RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-DHnuxBck.js +144 -0
- package/dist/{RuleView.vue_vue_type_script_setup_true_lang-DXisBADc.js → RuleView.vue_vue_type_script_setup_true_lang-CkpwtUSB.js} +2 -2
- package/dist/{Scheduler-DJsgP_Hi.js → Scheduler-CAUHWrZs.js} +11 -11
- package/dist/{ServingSequence-DALjVV2I.js → ServingSequence-D12rqxa8.js} +44 -44
- package/dist/{Setting-B23o5SoS.js → Setting-pJ06C7wS.js} +17 -17
- package/dist/{Subcategory-CS4MEgtM.js → Subcategory-Dfd-qx6m.js} +54 -54
- package/dist/{Takeaway-CI2Y-_LF.js → Takeaway-Bnat0taD.js} +13 -13
- package/dist/{Takeaway-D27iA6M6.js → Takeaway-Cv-kA3M_.js} +1 -1
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-Ca3qK9zO.js → Takeaway.vue_vue_type_script_setup_true_lang-9aZi7wvY.js} +33 -33
- package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-Da2jQE45.js → Thumbnail.vue_vue_type_script_setup_true_lang-C3Sk0LVd.js} +27 -27
- package/dist/{TranslationFieldSection.vue_vue_type_script_setup_true_lang-DUScE-82.js → TranslationFieldSection.vue_vue_type_script_setup_true_lang-5RV7_0Wc.js} +1 -1
- package/dist/{TranslationSideSheet.vue_vue_type_script_setup_true_lang-E3-hgVdd.js → TranslationSideSheet.vue_vue_type_script_setup_true_lang-BBXAoJje.js} +5 -5
- package/dist/{TranslationViewChip.vue_vue_type_script_setup_true_lang-BlACWsDs.js → TranslationViewChip.vue_vue_type_script_setup_true_lang-CIGgeuKb.js} +1 -1
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-D9EEpjV6.js +5767 -0
- package/dist/{Unit-5pv3oxSc.js → Unit-DeegDDRz.js} +8 -8
- package/dist/{Variant-CTAI6p6r.js → Variant-D8WwGu3E.js} +14 -14
- package/dist/{_id_-D09xegPQ.js → _id_-BfOGbmqs.js} +28 -28
- package/dist/app-BmAr9vNI.js +2283 -0
- package/dist/{app-8-JCz9b5.js → app-DhZxk0zL.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/api/index.d.ts +1 -1
- package/dist/apps/mf-menu/src/api/menu.d.ts +14 -5
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{linked-status-dENy3aw3.js → linked-status-CxpcEFX9.js} +2 -2
- package/dist/assets/{menu-export-E9V7bg-T.js → menu-export-C09ZbTRq.js} +2 -2
- package/dist/assets/{override-menu-HaI7O9Fu.js → override-menu-0rFjySh6.js} +2 -2
- package/dist/assets/{validate-menu-C8LhbVSM.js → validate-menu-cO19zy8y.js} +2 -2
- package/dist/{catalog-DhXoYsFF.js → catalog-tNpB0Dhn.js} +1 -1
- package/dist/{catalogSetting-DyRqWzdW.js → catalogSetting-BRnA4v49.js} +1 -1
- package/dist/{currency-BkmIftYM.js → currency-CyKauaRc.js} +1 -1
- package/dist/dayjs.min-ipgoM27T.js +7 -0
- package/dist/{index-BQ95VVc6.js → index-BGm2uHNk.js} +31 -31
- package/dist/{index-BXWquw9Z.js → index-CXquA22H.js} +30 -30
- package/dist/{index.vue_vue_type_script_setup_true_lang-CJO2XWIn.js → index.vue_vue_type_script_setup_true_lang-D6HyeIid.js} +6917 -6860
- package/dist/{item-DmTvGVsp.js → item-Cik-YX-L.js} +15 -15
- package/dist/{jszip.min-8Z5To_Pk.js → jszip.min-D22BefT1.js} +388 -387
- package/dist/{menu-Csu9X1_I.js → menu-ag-37Ofg.js} +1 -1
- package/dist/{menuV2-CC-vGiv5.js → menuV2-DZDWxmas.js} +135 -135
- package/dist/{priceTier-Bj9Y6SSr.js → priceTier-BmDl3J-3.js} +1 -1
- package/dist/{rules-Dod2cBHH.js → rules-pJdF9REd.js} +12 -12
- package/dist/{scheduler-B3M-715v.js → scheduler-DRHXK6kX.js} +29 -29
- package/dist/{toExcel-67ufpOxx.js → toExcel-5kDfvPVG.js} +2 -2
- package/dist/{unit-BQrnccs6.js → unit-CIlgFZ50.js} +35 -35
- package/package.json +1 -1
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DnuNFxC7.js +0 -6130
- package/dist/app-Bk0DN7oZ.js +0 -363
- package/dist/dayjs.min-nQqVHQcC.js +0 -6
- package/dist/index-28XF3UnN.js +0 -246
|
@@ -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 x, u as v, O as w, J as E, y as M } from "./index.vue_vue_type_script_setup_true_lang-D6HyeIid.js";
|
|
3
3
|
import { useI18n as T } from "@feedmepos/mf-common";
|
|
4
4
|
import { useSnackbar as V } from "@feedmepos/ui-library";
|
|
5
5
|
import { _ as h } 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-2f0QfweQ.js";
|
|
7
|
-
import { _ as N } from "./Takeaway.vue_vue_type_script_setup_true_lang-
|
|
8
|
-
import { T as
|
|
9
|
-
import { a as
|
|
10
|
-
const
|
|
7
|
+
import { _ as N } from "./Takeaway.vue_vue_type_script_setup_true_lang-9aZi7wvY.js";
|
|
8
|
+
import { T as O, l as S } from "./index-BGm2uHNk.js";
|
|
9
|
+
import { a as B } from "./menu-ag-37Ofg.js";
|
|
10
|
+
const L = { class: "flex-1 flex justify-between gap-8 pl-8" }, U = { 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" }, G = /* @__PURE__ */ f({
|
|
11
11
|
__name: "Takeaway",
|
|
12
|
-
setup(
|
|
12
|
+
setup(I) {
|
|
13
13
|
const u = V(), l = x(u), p = v(), c = w(l), _ = y(() => p.rules.item.bindToVariant), n = k(0), { t: r } = T();
|
|
14
|
-
return
|
|
14
|
+
return B().resetOnMount(), (P, o) => (d(), i(C, {
|
|
15
15
|
heading: a(r)("menu.takeaway.title")
|
|
16
16
|
}, {
|
|
17
17
|
default: s(() => [
|
|
@@ -20,14 +20,14 @@ const U = { class: "flex-1 flex justify-between gap-8 pl-8" }, B = { class: "fle
|
|
|
20
20
|
})
|
|
21
21
|
]),
|
|
22
22
|
"append-heading": s(() => [
|
|
23
|
-
t("div",
|
|
24
|
-
t("div",
|
|
23
|
+
t("div", L, [
|
|
24
|
+
t("div", U, [
|
|
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, [
|
|
30
|
-
n.value > 0 ? (d(), i(a(
|
|
30
|
+
n.value > 0 ? (d(), i(a(O), {
|
|
31
31
|
key: 0,
|
|
32
32
|
"bind-to-variant": _.value,
|
|
33
33
|
action: "add",
|
|
@@ -37,7 +37,7 @@ const U = { class: "flex-1 flex justify-between gap-8 pl-8" }, B = { class: "fle
|
|
|
37
37
|
module: a(M.F_MENU_MODULE_V4_KEY).enum.takeaway,
|
|
38
38
|
operation: a(E.F_OPERATION_TYPE).create,
|
|
39
39
|
data: e,
|
|
40
|
-
link: a(
|
|
40
|
+
link: a(S)(e.usedBy || [])
|
|
41
41
|
},
|
|
42
42
|
e.name
|
|
43
43
|
))
|
|
@@ -60,5 +60,5 @@ const U = { class: "flex-1 flex justify-between gap-8 pl-8" }, B = { class: "fle
|
|
|
60
60
|
}
|
|
61
61
|
});
|
|
62
62
|
export {
|
|
63
|
-
|
|
63
|
+
G as default
|
|
64
64
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { getCurrentInstance as te, defineComponent as ne, computed as C, watch as oe, h as
|
|
2
|
-
import {
|
|
1
|
+
import { getCurrentInstance as te, defineComponent as ne, computed as C, watch as oe, h as U, resolveComponent as L, createElementBlock as V, openBlock as w, Fragment as O, normalizeClass as D, createElementVNode as g, createVNode as I, unref as i, isRef as $, withCtx as P, renderList as ie, createBlock as j, createCommentVNode as G, toDisplayString as S, withModifiers as q } from "vue";
|
|
2
|
+
import { B as H, u as Q, O as W, J as z, y as N, G as Y, z as se, am as J, a2 as re } from "./index.vue_vue_type_script_setup_true_lang-D6HyeIid.js";
|
|
3
3
|
import { useI18n as X, useCoreStore as le } from "@feedmepos/mf-common";
|
|
4
4
|
import { useDialog as ce, useSnackbar as Z, FmButtonVariant as A, components as de, useBreakpoints as ue } from "@feedmepos/ui-library";
|
|
5
|
-
import { _ as me } from "./app-
|
|
6
|
-
import { a as ye, l as ee, T as pe } from "./index-
|
|
7
|
-
import { _ as fe } from "./TranslationViewChip.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { _ as me } from "./app-BmAr9vNI.js";
|
|
6
|
+
import { a as ye, l as ee, T as pe } from "./index-BGm2uHNk.js";
|
|
7
|
+
import { _ as fe } from "./TranslationViewChip.vue_vue_type_script_setup_true_lang-CIGgeuKb.js";
|
|
8
8
|
import { u as _e } from "./search-BAPEUu1R.js";
|
|
9
|
-
import { f as F } from "./currency-
|
|
9
|
+
import { f as F } from "./currency-CyKauaRc.js";
|
|
10
10
|
import { defineStore as ke } from "pinia";
|
|
11
|
-
import { C as ve } from "./catalog-
|
|
11
|
+
import { C as ve } from "./catalog-tNpB0Dhn.js";
|
|
12
12
|
import { c as we } from "./createComponentProgrammatically-Bt2rn1IQ.js";
|
|
13
13
|
function ge(b, _, l, u) {
|
|
14
14
|
var y, p, k;
|
|
@@ -54,7 +54,7 @@ function be(b, _, l, u) {
|
|
|
54
54
|
return e;
|
|
55
55
|
}
|
|
56
56
|
const he = ke("takeaway-manager", () => {
|
|
57
|
-
const b = ce(), _ = Z(), l = H(_), u = W(l), e =
|
|
57
|
+
const b = ce(), _ = Z(), l = H(_), u = W(l), e = Q(), y = te(), { t: p } = X(), k = (a) => {
|
|
58
58
|
var s, h;
|
|
59
59
|
const { vNode: d } = we(
|
|
60
60
|
ye,
|
|
@@ -64,8 +64,8 @@ const he = ke("takeaway-manager", () => {
|
|
|
64
64
|
(h = (s = d.component) == null ? void 0 : s.exposed) == null || h.trigger();
|
|
65
65
|
};
|
|
66
66
|
async function m(a) {
|
|
67
|
-
var h,
|
|
68
|
-
const s = ((
|
|
67
|
+
var h, M;
|
|
68
|
+
const s = ((M = (h = e.currentCatalog) == null ? void 0 : h.override.takeaway[a._id]) == null ? void 0 : M.price) ? null : e.state.menu.modules.takeaway.find((x) => x._id === a._id);
|
|
69
69
|
k({
|
|
70
70
|
initialValue: a,
|
|
71
71
|
applyProduct: !0,
|
|
@@ -87,8 +87,8 @@ const he = ke("takeaway-manager", () => {
|
|
|
87
87
|
"onUpdate:takeaway": async (d) => {
|
|
88
88
|
await u.updateMenu(
|
|
89
89
|
{
|
|
90
|
-
module:
|
|
91
|
-
operation:
|
|
90
|
+
module: N.F_MENU_MODULE_V4_KEY.enum.takeaway,
|
|
91
|
+
operation: z.F_OPERATION_TYPE.update,
|
|
92
92
|
data: d,
|
|
93
93
|
link: ee(d.usedBy || [])
|
|
94
94
|
},
|
|
@@ -116,8 +116,8 @@ const he = ke("takeaway-manager", () => {
|
|
|
116
116
|
}).onPrimary(async () => {
|
|
117
117
|
await u.updateMenu(
|
|
118
118
|
{
|
|
119
|
-
module:
|
|
120
|
-
operation:
|
|
119
|
+
module: N.F_MENU_MODULE_V4_KEY.enum.takeaway,
|
|
120
|
+
operation: z.F_OPERATION_TYPE.delete,
|
|
121
121
|
data: a._id
|
|
122
122
|
},
|
|
123
123
|
a.name,
|
|
@@ -140,7 +140,7 @@ const he = ke("takeaway-manager", () => {
|
|
|
140
140
|
class: "px-16 pt-8"
|
|
141
141
|
}, Ie = {
|
|
142
142
|
class: /* @__PURE__ */ D(["flex-1", "overflow-scroll", "divide-y divide-fm-color-neutral-gray-100"])
|
|
143
|
-
},
|
|
143
|
+
}, Ue = ["onClick"], Me = {
|
|
144
144
|
class: "flex-1"
|
|
145
145
|
}, Ee = {
|
|
146
146
|
class: "fm-typo-en-body-lg-600 mb-4"
|
|
@@ -157,7 +157,7 @@ const he = ke("takeaway-manager", () => {
|
|
|
157
157
|
setup(b, {
|
|
158
158
|
emit: _
|
|
159
159
|
}) {
|
|
160
|
-
const l =
|
|
160
|
+
const l = Q(), u = he(), e = C(() => l.rules.item.bindToVariant), y = C(() => l.rules.takeaway), p = W(H(Z())), k = le(), m = C(() => se.Country.getCountry(k.currentCountry.value).currency), n = C(() => l.takeaways.map((t) => ({
|
|
161
161
|
...t,
|
|
162
162
|
usedBy: l.items.reduce((o, f) => {
|
|
163
163
|
var r, E, R;
|
|
@@ -193,11 +193,11 @@ const he = ke("takeaway-manager", () => {
|
|
|
193
193
|
size: 700,
|
|
194
194
|
cell: (t) => {
|
|
195
195
|
const o = t.row.original, f = t.getValue();
|
|
196
|
-
return
|
|
196
|
+
return U("div", {
|
|
197
197
|
class: "flex items-center gap-8"
|
|
198
|
-
}, [
|
|
198
|
+
}, [U("span", {
|
|
199
199
|
class: "break-all"
|
|
200
|
-
}, f), o.name_locale ?
|
|
200
|
+
}, f), o.name_locale ? U(fe, {
|
|
201
201
|
nameLocale: o.name_locale ?? {}
|
|
202
202
|
}) : null]);
|
|
203
203
|
}
|
|
@@ -221,7 +221,7 @@ const he = ke("takeaway-manager", () => {
|
|
|
221
221
|
enableSorting: !1,
|
|
222
222
|
size: 200,
|
|
223
223
|
cell: (t) => {
|
|
224
|
-
const o = t.getValue(), f =
|
|
224
|
+
const o = t.getValue(), f = J(l.categorizedItems, o).flatMap((T) => T.items).length ?? 0;
|
|
225
225
|
return s("menu.takeaway.table.items_linked", {
|
|
226
226
|
count: f
|
|
227
227
|
});
|
|
@@ -233,9 +233,9 @@ const he = ke("takeaway-manager", () => {
|
|
|
233
233
|
cellClass: "pl-16",
|
|
234
234
|
headerContentClass: "-mx-16"
|
|
235
235
|
},
|
|
236
|
-
cell: (t) =>
|
|
236
|
+
cell: (t) => U("div", {
|
|
237
237
|
class: "flex justify-end items-center"
|
|
238
|
-
}, [y.value.delete ?
|
|
238
|
+
}, [y.value.delete ? U(de.FmButton, {
|
|
239
239
|
prependIcon: "delete",
|
|
240
240
|
variant: A.Tertiary,
|
|
241
241
|
textColor: "neutral-gray-400",
|
|
@@ -243,12 +243,12 @@ const he = ke("takeaway-manager", () => {
|
|
|
243
243
|
o.stopPropagation(), u.deleteTakeaway(t.row.original);
|
|
244
244
|
}
|
|
245
245
|
}) : null])
|
|
246
|
-
}]),
|
|
246
|
+
}]), M = ue(), x = C(() => M.breakpoints.value.xs);
|
|
247
247
|
return (t, o) => {
|
|
248
248
|
const f = L("fm-search"), T = L("fm-table"), B = L("fm-button");
|
|
249
|
-
return n.value.length ? (w(), V(
|
|
249
|
+
return n.value.length ? (w(), V(O, {
|
|
250
250
|
key: 0
|
|
251
|
-
}, [x.value ? (w(), V(
|
|
251
|
+
}, [x.value ? (w(), V(O, {
|
|
252
252
|
key: 1
|
|
253
253
|
}, [g("div", Ve, [I(f, {
|
|
254
254
|
class: "w-full",
|
|
@@ -256,25 +256,25 @@ const he = ke("takeaway-manager", () => {
|
|
|
256
256
|
modelValue: i(c),
|
|
257
257
|
"onUpdate:modelValue": o[2] || (o[2] = (r) => $(c) ? c.value = r : null),
|
|
258
258
|
placeholder: i(s)("menu.takeaway.table.search.placeholder")
|
|
259
|
-
}, null, 8, ["modelValue", "placeholder"])]), g("div", Ie, [(w(!0), V(
|
|
259
|
+
}, null, 8, ["modelValue", "placeholder"])]), g("div", Ie, [(w(!0), V(O, null, ie(a.value, (r) => (w(), V("div", {
|
|
260
260
|
key: r._id,
|
|
261
261
|
class: D(["py-12 px-16", "flex space-x-8", "items-center"]),
|
|
262
262
|
onClick: () => {
|
|
263
263
|
y.value.edit && i(u).updateTakeaway(r);
|
|
264
264
|
}
|
|
265
|
-
}, [g("div",
|
|
265
|
+
}, [g("div", Me, [g("p", Ee, S(r.name), 1), g("p", Ke, S(`${i(J)(i(l).categorizedItems, r.usedBy).flatMap((E) => E.items).length ?? 0} items linked`), 1), g("p", Se, " Price: " + S(m.value.symbol) + S(i(F)(r.price, !1)), 1)]), y.value.delete ? (w(), j(B, {
|
|
266
266
|
key: 0,
|
|
267
267
|
variant: i(A).Tertiary,
|
|
268
268
|
"text-color": "neutral-gray-400",
|
|
269
269
|
"prepend-icon": "delete",
|
|
270
270
|
onClick: q(() => i(u).deleteTakeaway(r), ["stop"])
|
|
271
|
-
}, null, 8, ["variant", "onClick"])) : G("", !0)], 8,
|
|
271
|
+
}, null, 8, ["variant", "onClick"])) : G("", !0)], 8, Ue))), 128))])], 64)) : (w(), V("div", xe, [g("div", Ce, [g("div", Te, [I(f, {
|
|
272
272
|
autofocus: "",
|
|
273
273
|
modelValue: i(c),
|
|
274
274
|
"onUpdate:modelValue": o[0] || (o[0] = (r) => $(c) ? c.value = r : null),
|
|
275
275
|
placeholder: i(s)("menu.takeaway.table.search.placeholder")
|
|
276
276
|
}, null, 8, ["modelValue", "placeholder"])])]), I(me, null, {
|
|
277
|
-
default:
|
|
277
|
+
default: P(() => [I(T, {
|
|
278
278
|
"column-defs": h.value,
|
|
279
279
|
loading: i(p).checkMenuIsLoading(),
|
|
280
280
|
"page-size": a.value.length,
|
|
@@ -293,19 +293,19 @@ const he = ke("takeaway-manager", () => {
|
|
|
293
293
|
subtitle: i(s)("menu.takeaway.empty.subtitle"),
|
|
294
294
|
title: i(s)("menu.takeaway.empty.title")
|
|
295
295
|
}, {
|
|
296
|
-
action:
|
|
296
|
+
action: P(() => [y.value.create ? (w(), j(i(pe), {
|
|
297
297
|
key: 0,
|
|
298
298
|
"bind-to-variant": e.value,
|
|
299
299
|
action: "add",
|
|
300
300
|
"apply-product": "",
|
|
301
301
|
"onUpdate:takeaway": o[3] || (o[3] = (r) => i(p).updateMenu({
|
|
302
|
-
module: i(
|
|
303
|
-
operation: i(
|
|
302
|
+
module: i(N.F_MENU_MODULE_V4_KEY).enum.takeaway,
|
|
303
|
+
operation: i(z.F_OPERATION_TYPE).create,
|
|
304
304
|
data: r,
|
|
305
305
|
link: i(ee)(r.usedBy || [])
|
|
306
306
|
}, r.name))
|
|
307
307
|
}, {
|
|
308
|
-
default:
|
|
308
|
+
default: P(({
|
|
309
309
|
trigger: r
|
|
310
310
|
}) => [I(B, {
|
|
311
311
|
"prepend-icon": "add",
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { computed as d, defineComponent as x, ref as F, resolveComponent as b, createElementBlock as L, openBlock as w, normalizeClass as
|
|
2
|
-
import {
|
|
3
|
-
import { u as S } from "./menuV2-
|
|
4
|
-
import { C as v, h as N } from "./catalog-
|
|
5
|
-
import { useSnackbar as P, useDialog as
|
|
6
|
-
import { a as T } from "./LinkProductSideSheet-
|
|
7
|
-
import { useI18n as
|
|
8
|
-
function
|
|
1
|
+
import { computed as d, defineComponent as x, ref as F, resolveComponent as b, createElementBlock as L, openBlock as w, normalizeClass as O, createVNode as K, normalizeStyle as B, withCtx as $, createBlock as U, createCommentVNode as j } from "vue";
|
|
2
|
+
import { y as h, J as E, B as R, O as C, ai as z, u as y, c as J } from "./index.vue_vue_type_script_setup_true_lang-D6HyeIid.js";
|
|
3
|
+
import { u as S } from "./menuV2-DZDWxmas.js";
|
|
4
|
+
import { C as v, h as N } from "./catalog-tNpB0Dhn.js";
|
|
5
|
+
import { useSnackbar as P, useDialog as A } from "@feedmepos/ui-library";
|
|
6
|
+
import { a as T } from "./LinkProductSideSheet-CvWcioxX.js";
|
|
7
|
+
import { useI18n as q } from "@feedmepos/mf-common";
|
|
8
|
+
function G() {
|
|
9
9
|
const t = S(), o = d(() => t.categorizedRawMenuItems.filter((u) => u.items.length > 0)), i = d(() => {
|
|
10
10
|
const u = t.currentCatalog;
|
|
11
11
|
return u ? v.getItemAvailable(u).map((n) => ({ _id: n })) : [];
|
|
@@ -43,10 +43,10 @@ function q() {
|
|
|
43
43
|
});
|
|
44
44
|
}
|
|
45
45
|
async function g(u) {
|
|
46
|
-
await
|
|
46
|
+
await Y(u, !0);
|
|
47
47
|
}
|
|
48
48
|
async function p(u) {
|
|
49
|
-
await
|
|
49
|
+
await Y(u, !1);
|
|
50
50
|
}
|
|
51
51
|
async function _(u) {
|
|
52
52
|
const n = t.currentCatalog;
|
|
@@ -70,7 +70,7 @@ function q() {
|
|
|
70
70
|
saveLinkItemRules: _
|
|
71
71
|
};
|
|
72
72
|
}
|
|
73
|
-
async function
|
|
73
|
+
async function Y(t, o) {
|
|
74
74
|
var u;
|
|
75
75
|
const i = S(), c = i.currentCatalog;
|
|
76
76
|
if (!c || t.length === 0) return;
|
|
@@ -97,7 +97,7 @@ async function A(t, o) {
|
|
|
97
97
|
});
|
|
98
98
|
}
|
|
99
99
|
function H() {
|
|
100
|
-
const t = S(), o = P(), i =
|
|
100
|
+
const t = S(), o = P(), i = A(), c = R(o), g = C(c), p = d(() => {
|
|
101
101
|
const n = t.categorizedRawMenuItems, a = new Set(
|
|
102
102
|
t.currentCatalog ? v.getItemAvailable(t.currentCatalog) : t.state.menu.modules.item.map((e) => e._id)
|
|
103
103
|
);
|
|
@@ -135,7 +135,7 @@ function H() {
|
|
|
135
135
|
(l, m) => {
|
|
136
136
|
const f = a.items.filter((I) => I._id == m) ?? [];
|
|
137
137
|
return l = l.concat(
|
|
138
|
-
|
|
138
|
+
z(m, f, (I) => ({
|
|
139
139
|
...I,
|
|
140
140
|
orderFrom: null
|
|
141
141
|
}))
|
|
@@ -159,8 +159,8 @@ function H() {
|
|
|
159
159
|
applyProduct: u
|
|
160
160
|
};
|
|
161
161
|
}
|
|
162
|
-
const
|
|
163
|
-
const t = y(), o = P(), i =
|
|
162
|
+
const Q = () => {
|
|
163
|
+
const t = y(), o = P(), i = R(o), c = C(i), g = d(() => t.categorizedRawMenuItems.filter((n) => n.items.length > 0)), p = d(() => {
|
|
164
164
|
const n = t.currentCatalog;
|
|
165
165
|
return n ? v.getItemAvailable(n).map((a) => ({ _id: a })) : [];
|
|
166
166
|
});
|
|
@@ -174,7 +174,7 @@ const J = () => {
|
|
|
174
174
|
f,
|
|
175
175
|
I,
|
|
176
176
|
e.has(f),
|
|
177
|
-
t.version ===
|
|
177
|
+
t.version === J.F_MENU_VERSION.v3
|
|
178
178
|
), m;
|
|
179
179
|
},
|
|
180
180
|
{}
|
|
@@ -219,7 +219,7 @@ const J = () => {
|
|
|
219
219
|
saveLinkItemRules: u
|
|
220
220
|
};
|
|
221
221
|
}, W = () => {
|
|
222
|
-
const t = y(), o = P(), i =
|
|
222
|
+
const t = y(), o = P(), i = A(), c = R(o), g = C(c), p = d(() => {
|
|
223
223
|
const n = t.categorizedRawMenuItems, a = new Set(
|
|
224
224
|
t.currentCatalog ? v.getItemAvailable(t.currentCatalog) : t.state.menu.modules.item.map((e) => e._id)
|
|
225
225
|
);
|
|
@@ -248,7 +248,7 @@ const J = () => {
|
|
|
248
248
|
(l, m) => {
|
|
249
249
|
const f = a.items.filter((I) => I._id == m) ?? [];
|
|
250
250
|
return l = l.concat(
|
|
251
|
-
|
|
251
|
+
z(m, f, (I) => ({
|
|
252
252
|
...I,
|
|
253
253
|
orderFrom: null
|
|
254
254
|
}))
|
|
@@ -287,7 +287,7 @@ function se(t) {
|
|
|
287
287
|
const e = y(), r = d(() => e.state.menu.modules.item ?? []), s = d(() => {
|
|
288
288
|
var M;
|
|
289
289
|
return ((M = e.currentCatalog) == null ? void 0 : M.linkItemRules) ?? null;
|
|
290
|
-
}), l = W(), m =
|
|
290
|
+
}), l = W(), m = Q(), f = d(() => !e.state.currentSchedulerId), I = (M) => {
|
|
291
291
|
if (M.mode === T.Rules)
|
|
292
292
|
m.saveLinkItemRules(M.linkItemRules);
|
|
293
293
|
else {
|
|
@@ -308,7 +308,7 @@ function se(t) {
|
|
|
308
308
|
const i = S(), c = d(() => i.state.menu.modules.item ?? []), g = d(() => {
|
|
309
309
|
var e;
|
|
310
310
|
return ((e = i.currentCatalog) == null ? void 0 : e.linkItemRules) ?? null;
|
|
311
|
-
}), p = H(), _ =
|
|
311
|
+
}), p = H(), _ = G(), u = d(() => !i.state.currentSchedulerId), n = (e) => {
|
|
312
312
|
if (e.mode === T.Rules)
|
|
313
313
|
_.saveLinkItemRules(e.linkItemRules);
|
|
314
314
|
else {
|
|
@@ -336,7 +336,7 @@ const X = ["alt", "src", "crossorigin"], ue = /* @__PURE__ */ x({
|
|
|
336
336
|
crossorigin: { type: Boolean, default: !0 }
|
|
337
337
|
},
|
|
338
338
|
setup(t) {
|
|
339
|
-
const o = t, { t: i } =
|
|
339
|
+
const o = t, { t: i } = q(), c = F(!1), g = F(!o.src), p = () => {
|
|
340
340
|
c.value = !1, g.value = !0;
|
|
341
341
|
}, _ = () => {
|
|
342
342
|
c.value = !0, g.value = !0;
|
|
@@ -357,18 +357,18 @@ const X = ["alt", "src", "crossorigin"], ue = /* @__PURE__ */ x({
|
|
|
357
357
|
return (e, r) => {
|
|
358
358
|
const s = b("fm-icon"), l = b("fm-card");
|
|
359
359
|
return w(), L("div", {
|
|
360
|
-
class:
|
|
360
|
+
class: O([e.className, "flex items-center justify-center"])
|
|
361
361
|
}, [
|
|
362
362
|
K(l, {
|
|
363
|
-
class:
|
|
364
|
-
style:
|
|
363
|
+
class: O(["flex items-center justify-center", "rounded-md"]),
|
|
364
|
+
style: B({ width: `${n.value.width}px`, height: `${n.value.height}px` }),
|
|
365
365
|
variant: "outlined"
|
|
366
366
|
}, {
|
|
367
|
-
default:
|
|
367
|
+
default: $(() => [
|
|
368
368
|
a.value && !c.value ? (w(), L("img", {
|
|
369
369
|
key: 0,
|
|
370
370
|
alt: u.value,
|
|
371
|
-
class:
|
|
371
|
+
class: O(["w-full h-full", "object-cover", g.value ? "" : "hidden"]),
|
|
372
372
|
src: a.value,
|
|
373
373
|
crossorigin: o.crossorigin ? "anonymous" : void 0,
|
|
374
374
|
onError: _,
|
|
@@ -394,6 +394,6 @@ const X = ["alt", "src", "crossorigin"], ue = /* @__PURE__ */ x({
|
|
|
394
394
|
});
|
|
395
395
|
export {
|
|
396
396
|
ue as _,
|
|
397
|
-
|
|
397
|
+
G as a,
|
|
398
398
|
se as u
|
|
399
399
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as v, createElementBlock as c, openBlock as t, normalizeClass as h, toDisplayString as y, unref as i, resolveComponent as u, createVNode as _, createElementVNode as d, computed as b, createBlock as g, createCommentVNode as B, Fragment as k, renderList as F, withCtx as x } from "vue";
|
|
2
2
|
import { useI18n as N } from "@feedmepos/mf-common";
|
|
3
|
-
import { u as S } from "./index.vue_vue_type_script_setup_true_lang-
|
|
3
|
+
import { u as S } from "./index.vue_vue_type_script_setup_true_lang-D6HyeIid.js";
|
|
4
4
|
const T = {
|
|
5
5
|
"en-US": {
|
|
6
6
|
icon: "EN",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as z, ref as p, watch as L, computed as k, resolveComponent as v, createBlock as w, openBlock as f, unref as n, withCtx as _, createElementVNode as i, createVNode as r, toDisplayString as h, createElementBlock as x, createCommentVNode as F, Fragment as I, renderList as A } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { H as S } from "./index.vue_vue_type_script_setup_true_lang-D6HyeIid.js";
|
|
3
3
|
import { useI18n as q } from "@feedmepos/mf-common";
|
|
4
|
-
import { u as
|
|
5
|
-
import { _ as G, a as
|
|
4
|
+
import { u as H } from "./discardConfirm-BHni0LNu.js";
|
|
5
|
+
import { _ as G, a as J, b as K, c as M } from "./TranslationFieldSection.vue_vue_type_script_setup_true_lang-5RV7_0Wc.js";
|
|
6
6
|
const P = { class: "fm-typo-en-title-md-600" }, Q = { class: "pt-8 space-y-24" }, R = { class: "flex flex-col gap-16 border p-16 rounded-lg" }, W = { class: "flex items-center gap-16" }, X = { class: "fm-typo-en-body-lg-600" }, Y = { class: "flex flex-col gap-32 pl-32" }, Z = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "space-y-8"
|
|
@@ -66,7 +66,7 @@ const P = { class: "fm-typo-en-title-md-600" }, Q = { class: "pt-8 space-y-24" }
|
|
|
66
66
|
function O() {
|
|
67
67
|
u("update:modelValue", !1);
|
|
68
68
|
}
|
|
69
|
-
const C =
|
|
69
|
+
const C = H(B, O), b = k({
|
|
70
70
|
get: () => l.modelValue,
|
|
71
71
|
set: (e) => u("update:modelValue", e)
|
|
72
72
|
});
|
|
@@ -109,7 +109,7 @@ const P = { class: "fm-typo-en-title-md-600" }, Q = { class: "pt-8 space-y-24" }
|
|
|
109
109
|
i("p", X, h(n(s)("menu.common.translation.name_section", { entity: e.title })), 1)
|
|
110
110
|
]),
|
|
111
111
|
i("div", Y, [
|
|
112
|
-
r(
|
|
112
|
+
r(J, {
|
|
113
113
|
label: n(s)("menu.common.translation.default"),
|
|
114
114
|
modelValue: c.value,
|
|
115
115
|
"onUpdate:modelValue": a[0] || (a[0] = (t) => c.value = t)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as b, computed as a, resolveComponent as x, createElementBlock as o, openBlock as e, Fragment as p, renderList as v, createBlock as g, withCtx as m, createElementVNode as l, toDisplayString as t, createCommentVNode as k, createVNode as L } from "vue";
|
|
2
|
-
import { g as w } from "./TranslationFieldSection.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { g as w } from "./TranslationFieldSection.vue_vue_type_script_setup_true_lang-5RV7_0Wc.js";
|
|
3
3
|
const N = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "flex gap-8"
|