@feedmepos/mf-menu 0.32.13 → 0.32.15
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-D70-FH5L.js → App-BFUyUrdi.js} +16 -9
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-BJdja2N0.js → ApplyProduct.vue_vue_type_script_setup_true_lang-BbjRIN7Z.js} +20 -20
- package/dist/{Catalog-WMpN3a0p.js → Catalog-B6VFmr6e.js} +20 -20
- package/dist/{Category-C_VsQIHU.js → Category-B-bTjNFI.js} +24 -24
- package/dist/{Category-BwHhFTZ-.js → Category-C8uGxpST.js} +84 -84
- package/dist/{CookingGuide-D9RNkYDL.js → CookingGuide-BL3uetlO.js} +65 -65
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-DtmrxDZm.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-8yIVwc8E.js} +1 -1
- package/dist/{Group-DexONgr2.js → Group-BvO-gQZe.js} +1 -1
- package/dist/{Group-qRZlg5ST.js → Group-DT9UkkOx.js} +3 -3
- package/dist/{Group.vue_vue_type_script_setup_true_lang-DtPY9uUt.js → Group.vue_vue_type_script_setup_true_lang-DZhM1Tpb.js} +56 -56
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-B5Qpmj2f.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-D48u_DHq.js} +5 -5
- package/dist/ImportProductDialog.vue_vue_type_script_setup_true_lang-C_X-lTnN.js +72979 -0
- package/dist/{Ingredient-BuOS_Wvm.js → Ingredient-7qWDD9e6.js} +26 -26
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-DFvXklj9.js → InventoryBinding.vue_vue_type_script_setup_true_lang-CwjW0wfz.js} +2 -2
- package/dist/{LinkProductSideSheet-DJj8Nn4X.js → LinkProductSideSheet-BXW6eNgZ.js} +3 -3
- package/dist/{MenuSetting-D6B0gCGV.js → MenuSetting-BSF7O2NL.js} +5 -5
- package/dist/{PrintRoute-B7G8f1iC.js → PrintRoute-b1ii5Uz9.js} +20 -20
- package/dist/{Product-DpS5EepJ.js → Product-Ce0GJb3c.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-CdIukLqA.js → Product.vue_vue_type_script_setup_true_lang-BZVvTAOX.js} +49 -49
- package/dist/{ProductInternalTools-CBCyWHOS.js → ProductInternalTools-igbOLRap.js} +20 -20
- package/dist/Products-GAyUdhnN.js +292 -0
- package/dist/Publish-g60odzhM.js +1300 -0
- package/dist/{Recipe-D14rkATU.js → Recipe-B6aye_iC.js} +9 -9
- package/dist/{RuleView.vue_vue_type_script_setup_true_lang-CdH2ius3.js → RuleView.vue_vue_type_script_setup_true_lang-By8kwuMB.js} +134 -134
- package/dist/{Scheduler-DWZqa-jf.js → Scheduler-CyaG6Y5v.js} +7 -7
- package/dist/{ServingSequence-Mx7ovvJ1.js → ServingSequence-BXeypgrN.js} +27 -27
- package/dist/{Setting-DmHuVXVn.js → Setting-D7GcaNTk.js} +17 -17
- package/dist/{Subcategory-DixZPdnT.js → Subcategory-DNUp9ojI.js} +37 -37
- package/dist/{Takeaway-BVIymFV_.js → Takeaway-Baqvq5nP.js} +9 -9
- package/dist/{Takeaway-DDKeDEbV.js → Takeaway-BjXPeYRv.js} +1 -1
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-CTaCQgRv.js → Takeaway.vue_vue_type_script_setup_true_lang-CgXT2UVL.js} +54 -54
- package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-DveI9xvU.js → Thumbnail.vue_vue_type_script_setup_true_lang-CX8cSbDe.js} +12 -12
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-2nBbq_Yk.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DcjGVQEO.js} +756 -763
- package/dist/{Unit-utuaNZBw.js → Unit-mI7lLzCf.js} +2 -2
- package/dist/{Variant-CzuJNwen.js → Variant-CVwnODRz.js} +14 -14
- package/dist/{_id_-DMDhPQCr.js → _id_-fpn0nBru.js} +14 -14
- package/dist/{app-BQUkvrAS.js → app-CCKI85Te.js} +26 -26
- package/dist/{app-Bqj3cAPJ.js → app-U5MEN4U1.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/Entry.vue.d.ts +1 -0
- package/dist/apps/mf-menu/src/components/feature/Fields/ImageDropField.vue.d.ts +0 -2
- package/dist/apps/mf-menu/src/composable/useClientEvent.d.ts +14 -0
- package/dist/apps/mf-menu/src/helper/import-export-utils.d.ts +22 -22
- package/dist/apps/mf-menu/src/helper/menuExport.d.ts +59 -33
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{linked-status-ILQVL8r9.js → linked-status-6Jt70XBp.js} +2 -2
- package/dist/assets/menu-export-CR0a98CA.js +107 -0
- package/dist/assets/{override-menu-DVkGhbA9.js → override-menu-Chsc0CSI.js} +2 -2
- package/dist/assets/{validate-menu-y_NQUL02.js → validate-menu-pb0aN4gj.js} +2 -2
- package/dist/{catalog-BYzITAmC.js → catalog-BgQmytEA.js} +1 -1
- package/dist/{catalogSetting-DAo5tN3P.js → catalogSetting-BS5IaQKq.js} +1 -1
- package/dist/{category-D4x8r_lY.js → category-DJMVbmzx.js} +1 -1
- package/dist/{currency-CvoBdMM2.js → currency-FHrLDvzy.js} +1 -1
- package/dist/dayjs.min-DJGdQr-B.js +6 -0
- package/dist/{index-LuH6PJzW.js → index-BywPDIFW.js} +4 -4
- package/dist/{index-BLUIaanj.js → index-DYxLHjeC.js} +1 -1
- package/dist/{index-6lju0f3r.js → index-XVWDnyu-.js} +17 -17
- package/dist/{index.vue_vue_type_script_setup_true_lang-DxF14kn9.js → index.vue_vue_type_script_setup_true_lang-kj6HkxwD.js} +2306 -2306
- package/dist/{item-lXMLaKOb.js → item-cmnP2N-a.js} +1089 -1091
- package/dist/{jszip.min-CdZ-wY5m.js → jszip.min-psVCZNVl.js} +545 -545
- package/dist/{menu-PJc2dQHQ.js → menu-CgQPOu3W.js} +1 -1
- package/dist/{menuV2-DinFmdTL.js → menuV2-DHO9OmzU.js} +159 -159
- package/dist/mf-menu.css +1 -1
- package/dist/{priceTier-CzKIo11g.js → priceTier-CLm9vzaK.js} +1 -1
- package/dist/{scheduler-DQjxnoCk.js → scheduler-BMdZdtpj.js} +4 -4
- package/dist/{subcategory-CLkDImEU.js → subcategory-Dj_DOvFt.js} +2 -2
- package/dist/{toExcel-DPh8DaM0.js → toExcel-XwFFiTiA.js} +2 -2
- package/dist/{unit-QYkVoC6_.js → unit-CsuAQsy7.js} +12 -12
- package/package.json +3 -3
- package/dist/ImportProductDialog.vue_vue_type_script_setup_true_lang-BqhNkaw_.js +0 -96043
- package/dist/Products-CcyGNlUl.js +0 -794
- package/dist/Publish-rZLHFaJ5.js +0 -1264
- package/dist/dayjs.min-C6xioui7.js +0 -6
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { getCurrentInstance as te, defineComponent as
|
|
2
|
-
import { G as
|
|
1
|
+
import { getCurrentInstance as te, defineComponent as oe, computed as h, watch as ne, h as R, resolveComponent as S, createElementBlock as C, openBlock as _, Fragment as O, normalizeClass as D, createElementVNode as k, createVNode as V, unref as t, isRef as j, withCtx as P, renderList as ie, createBlock as G, createCommentVNode as $, toDisplayString as I, withModifiers as Q } from "vue";
|
|
2
|
+
import { G as H, u as J, Q as W, M as N, A as z, I as L, B as se, ao as q, a4 as re } from "./index.vue_vue_type_script_setup_true_lang-kj6HkxwD.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-
|
|
5
|
+
import { _ as me } from "./app-CCKI85Te.js";
|
|
6
|
+
import { a as ye, l as ee, T as pe } from "./index-BywPDIFW.js";
|
|
7
7
|
import { u as fe } from "./search-BAPEUu1R.js";
|
|
8
|
-
import { f as F } from "./currency-
|
|
8
|
+
import { f as F } from "./currency-FHrLDvzy.js";
|
|
9
9
|
import { defineStore as _e } from "pinia";
|
|
10
|
-
import { C as ke } from "./catalog-
|
|
10
|
+
import { C as ke } from "./catalog-BgQmytEA.js";
|
|
11
11
|
import { c as ve } from "./createComponentProgrammatically-Bt2rn1IQ.js";
|
|
12
|
-
function we(T,
|
|
12
|
+
function we(T, M, l, m) {
|
|
13
13
|
var y, v, w, g;
|
|
14
14
|
const i = L(T);
|
|
15
15
|
i.override.takeaway[l._id] = {
|
|
16
16
|
price: l.price || void 0
|
|
17
17
|
};
|
|
18
|
-
const f = [...l.usedBy, ...
|
|
18
|
+
const f = [...l.usedBy, ...M.usedBy];
|
|
19
19
|
for (const r of f) {
|
|
20
20
|
const c = l.usedBy.some(
|
|
21
21
|
(e) => e._id == r._id && e.combinationKey == r.combinationKey
|
|
@@ -45,7 +45,7 @@ function we(T, U, l, m) {
|
|
|
45
45
|
return i;
|
|
46
46
|
}
|
|
47
47
|
const ge = _e("takeaway-manager", () => {
|
|
48
|
-
const T = ce(),
|
|
48
|
+
const T = ce(), M = Z(), l = H(M), m = W(l), i = J(), f = te(), { t: y } = X(), v = (a) => {
|
|
49
49
|
var e, u;
|
|
50
50
|
const { vNode: d } = ve(
|
|
51
51
|
ye,
|
|
@@ -55,8 +55,8 @@ const ge = _e("takeaway-manager", () => {
|
|
|
55
55
|
(u = (e = d.component) == null ? void 0 : e.exposed) == null || u.trigger();
|
|
56
56
|
};
|
|
57
57
|
async function w(a) {
|
|
58
|
-
var u,
|
|
59
|
-
const e = ((
|
|
58
|
+
var u, U;
|
|
59
|
+
const e = ((U = (u = i.currentCatalog) == null ? void 0 : u.override.takeaway[a._id]) == null ? void 0 : U.price) ? null : i.state.menu.modules.takeaway.find((b) => b._id === a._id);
|
|
60
60
|
v({
|
|
61
61
|
initialValue: a,
|
|
62
62
|
applyProduct: !0,
|
|
@@ -64,8 +64,8 @@ const ge = _e("takeaway-manager", () => {
|
|
|
64
64
|
fallback: e,
|
|
65
65
|
action: "update",
|
|
66
66
|
"onUpdate:takeaway": async (b) => {
|
|
67
|
-
let
|
|
68
|
-
b.price ?
|
|
67
|
+
let o = L(i.currentCatalog);
|
|
68
|
+
b.price ? o.override.takeaway[a._id] = { price: b.price } : delete o.override.takeaway[a._id], o = we(o, a, b, i.state.menu.modules.item), await new ke(o, i, m.updateMenu, T).update();
|
|
69
69
|
}
|
|
70
70
|
});
|
|
71
71
|
}
|
|
@@ -131,9 +131,9 @@ const ge = _e("takeaway-manager", () => {
|
|
|
131
131
|
class: "px-16 pt-8"
|
|
132
132
|
}, Ve = {
|
|
133
133
|
class: /* @__PURE__ */ D(["flex-1", "overflow-scroll", "divide-y divide-fm-color-neutral-gray-100"])
|
|
134
|
-
}, Te = ["onClick"],
|
|
134
|
+
}, Te = ["onClick"], Me = {
|
|
135
135
|
class: "flex-1"
|
|
136
|
-
},
|
|
136
|
+
}, Ue = {
|
|
137
137
|
class: "fm-typo-en-body-lg-600 mb-4"
|
|
138
138
|
}, Ee = {
|
|
139
139
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
@@ -142,23 +142,23 @@ const ge = _e("takeaway-manager", () => {
|
|
|
142
142
|
}, Ie = {
|
|
143
143
|
key: 1,
|
|
144
144
|
class: "xs:pt-24"
|
|
145
|
-
}, Re = /* @__PURE__ */
|
|
145
|
+
}, Re = /* @__PURE__ */ oe({
|
|
146
146
|
__name: "Takeaway",
|
|
147
147
|
emits: ["update:count"],
|
|
148
148
|
setup(T, {
|
|
149
|
-
emit:
|
|
149
|
+
emit: M
|
|
150
150
|
}) {
|
|
151
|
-
const l =
|
|
152
|
-
...
|
|
151
|
+
const l = J(), m = ge(), i = h(() => l.rules.item.bindToVariant), f = h(() => l.rules.takeaway), y = W(H(Z())), v = le(), w = h(() => se.Country.getCountry(v.currentCountry.value).currency), g = h(() => l.takeaways.map((o) => ({
|
|
152
|
+
...o,
|
|
153
153
|
usedBy: l.items.reduce((s, p) => {
|
|
154
|
-
var
|
|
155
|
-
const x = p.takeawayUsed ===
|
|
156
|
-
if ((!i.value || !((E = (
|
|
154
|
+
var n, E, Y;
|
|
155
|
+
const x = p.takeawayUsed === o._id;
|
|
156
|
+
if ((!i.value || !((E = (n = p.variant) == null ? void 0 : n.variantGroupIds) != null && E.length)) && x)
|
|
157
157
|
s.push({
|
|
158
158
|
_id: p._id
|
|
159
159
|
});
|
|
160
160
|
else {
|
|
161
|
-
const ae = (((Y = p.variant) == null ? void 0 : Y.variantCombinations) || []).filter((K) => K.takeawayUsed ===
|
|
161
|
+
const ae = (((Y = p.variant) == null ? void 0 : Y.variantCombinations) || []).filter((K) => K.takeawayUsed === o._id || !K.takeawayUsed && x).map((K) => ({
|
|
162
162
|
_id: p._id,
|
|
163
163
|
combinationKey: K.combinationKey
|
|
164
164
|
}));
|
|
@@ -169,9 +169,9 @@ const ge = _e("takeaway-manager", () => {
|
|
|
169
169
|
}))), {
|
|
170
170
|
filter: r,
|
|
171
171
|
searchKey: c
|
|
172
|
-
} = fe(), a = h(() => g.value.filter((
|
|
173
|
-
|
|
174
|
-
d("update:count",
|
|
172
|
+
} = fe(), a = h(() => g.value.filter((o) => r([o.name, F(o.price, !1)]))), d = M;
|
|
173
|
+
ne(() => a.value.length, (o) => {
|
|
174
|
+
d("update:count", o);
|
|
175
175
|
}, {
|
|
176
176
|
immediate: !0
|
|
177
177
|
});
|
|
@@ -192,8 +192,8 @@ const ge = _e("takeaway-manager", () => {
|
|
|
192
192
|
meta: {
|
|
193
193
|
textAlign: "right"
|
|
194
194
|
},
|
|
195
|
-
cell: (
|
|
196
|
-
const s =
|
|
195
|
+
cell: (o) => {
|
|
196
|
+
const s = o.getValue();
|
|
197
197
|
return F(s, !1);
|
|
198
198
|
}
|
|
199
199
|
}, {
|
|
@@ -201,8 +201,8 @@ const ge = _e("takeaway-manager", () => {
|
|
|
201
201
|
header: () => e("menu.takeaway.table.columns.products"),
|
|
202
202
|
enableSorting: !1,
|
|
203
203
|
size: 200,
|
|
204
|
-
cell: (
|
|
205
|
-
const s =
|
|
204
|
+
cell: (o) => {
|
|
205
|
+
const s = o.getValue(), p = q(l.categorizedItems, s).flatMap((x) => x.items).length ?? 0;
|
|
206
206
|
return e("menu.takeaway.table.items_linked", {
|
|
207
207
|
count: p
|
|
208
208
|
});
|
|
@@ -214,48 +214,48 @@ const ge = _e("takeaway-manager", () => {
|
|
|
214
214
|
cellClass: "pl-16",
|
|
215
215
|
headerContentClass: "-mx-16"
|
|
216
216
|
},
|
|
217
|
-
cell: (
|
|
217
|
+
cell: (o) => R("div", {
|
|
218
218
|
class: "flex justify-end items-center"
|
|
219
219
|
}, [f.value.delete ? R(de.FmButton, {
|
|
220
220
|
prependIcon: "delete",
|
|
221
221
|
variant: A.Tertiary,
|
|
222
222
|
textColor: "neutral-gray-400",
|
|
223
223
|
onClick: (s) => {
|
|
224
|
-
s.stopPropagation(), m.deleteTakeaway(
|
|
224
|
+
s.stopPropagation(), m.deleteTakeaway(o.row.original);
|
|
225
225
|
}
|
|
226
226
|
}) : null])
|
|
227
|
-
}]),
|
|
228
|
-
return (
|
|
227
|
+
}]), U = ue(), b = h(() => U.breakpoints.value.xs);
|
|
228
|
+
return (o, s) => {
|
|
229
229
|
const p = S("fm-search"), x = S("fm-table"), B = S("fm-button");
|
|
230
|
-
return g.value.length ? (_(), C(
|
|
230
|
+
return g.value.length ? (_(), C(O, {
|
|
231
231
|
key: 0
|
|
232
|
-
}, [b.value ? (_(), C(
|
|
232
|
+
}, [b.value ? (_(), C(O, {
|
|
233
233
|
key: 1
|
|
234
234
|
}, [k("div", Ce, [V(p, {
|
|
235
235
|
class: "w-full",
|
|
236
236
|
autofocus: "",
|
|
237
237
|
modelValue: t(c),
|
|
238
|
-
"onUpdate:modelValue": s[2] || (s[2] = (
|
|
238
|
+
"onUpdate:modelValue": s[2] || (s[2] = (n) => j(c) ? c.value = n : null),
|
|
239
239
|
placeholder: t(e)("menu.takeaway.table.search.placeholder")
|
|
240
|
-
}, null, 8, ["modelValue", "placeholder"])]), k("div", Ve, [(_(!0), C(
|
|
241
|
-
key:
|
|
240
|
+
}, null, 8, ["modelValue", "placeholder"])]), k("div", Ve, [(_(!0), C(O, null, ie(a.value, (n) => (_(), C("div", {
|
|
241
|
+
key: n._id,
|
|
242
242
|
class: D(["py-12 px-16", "flex space-x-8", "items-center"]),
|
|
243
243
|
onClick: () => {
|
|
244
|
-
f.value.edit && t(m).updateTakeaway(
|
|
244
|
+
f.value.edit && t(m).updateTakeaway(n);
|
|
245
245
|
}
|
|
246
|
-
}, [k("div",
|
|
246
|
+
}, [k("div", Me, [k("p", Ue, I(n.name), 1), k("p", Ee, I(`${t(q)(t(l).categorizedItems, n.usedBy).flatMap((E) => E.items).length ?? 0} items linked`), 1), k("p", Ke, " Price: " + I(w.value.symbol) + I(t(F)(n.price, !1)), 1)]), f.value.delete ? (_(), G(B, {
|
|
247
247
|
key: 0,
|
|
248
248
|
variant: t(A).Tertiary,
|
|
249
249
|
"text-color": "neutral-gray-400",
|
|
250
250
|
"prepend-icon": "delete",
|
|
251
|
-
onClick:
|
|
251
|
+
onClick: Q(() => t(m).deleteTakeaway(n), ["stop"])
|
|
252
252
|
}, null, 8, ["variant", "onClick"])) : $("", !0)], 8, Te))), 128))])], 64)) : (_(), C("div", be, [k("div", he, [k("div", xe, [V(p, {
|
|
253
253
|
autofocus: "",
|
|
254
254
|
modelValue: t(c),
|
|
255
|
-
"onUpdate:modelValue": s[0] || (s[0] = (
|
|
255
|
+
"onUpdate:modelValue": s[0] || (s[0] = (n) => j(c) ? c.value = n : null),
|
|
256
256
|
placeholder: t(e)("menu.takeaway.table.search.placeholder")
|
|
257
257
|
}, null, 8, ["modelValue", "placeholder"])])]), V(me, null, {
|
|
258
|
-
default:
|
|
258
|
+
default: P(() => [V(x, {
|
|
259
259
|
"column-defs": u.value,
|
|
260
260
|
loading: t(y).checkMenuIsLoading(),
|
|
261
261
|
"page-size": a.value.length,
|
|
@@ -265,8 +265,8 @@ const ge = _e("takeaway-manager", () => {
|
|
|
265
265
|
class: "flex-1 overflow-hidden",
|
|
266
266
|
"hide-footer": "",
|
|
267
267
|
"pin-header-row": "",
|
|
268
|
-
onRowClick: s[1] || (s[1] = (
|
|
269
|
-
f.value.edit && t(m).updateTakeaway(
|
|
268
|
+
onRowClick: s[1] || (s[1] = (n) => {
|
|
269
|
+
f.value.edit && t(m).updateTakeaway(n.original);
|
|
270
270
|
})
|
|
271
271
|
}, null, 8, ["column-defs", "loading", "page-size", "row-data", "search-value"])]),
|
|
272
272
|
_: 1
|
|
@@ -274,24 +274,24 @@ const ge = _e("takeaway-manager", () => {
|
|
|
274
274
|
subtitle: t(e)("menu.takeaway.empty.subtitle"),
|
|
275
275
|
title: t(e)("menu.takeaway.empty.title")
|
|
276
276
|
}, {
|
|
277
|
-
action:
|
|
277
|
+
action: P(() => [f.value.create ? (_(), G(t(pe), {
|
|
278
278
|
key: 0,
|
|
279
279
|
"bind-to-variant": i.value,
|
|
280
280
|
action: "add",
|
|
281
281
|
"apply-product": "",
|
|
282
|
-
"onUpdate:takeaway": s[3] || (s[3] = (
|
|
282
|
+
"onUpdate:takeaway": s[3] || (s[3] = (n) => t(y).updateMenu({
|
|
283
283
|
module: t(z.F_MENU_MODULE_V4_KEY).enum.takeaway,
|
|
284
284
|
operation: t(N.F_OPERATION_TYPE).create,
|
|
285
|
-
data:
|
|
286
|
-
link: t(ee)(
|
|
287
|
-
},
|
|
285
|
+
data: n,
|
|
286
|
+
link: t(ee)(n.usedBy || [])
|
|
287
|
+
}, n.name))
|
|
288
288
|
}, {
|
|
289
|
-
default:
|
|
290
|
-
trigger:
|
|
289
|
+
default: P(({
|
|
290
|
+
trigger: n
|
|
291
291
|
}) => [V(B, {
|
|
292
292
|
"prepend-icon": "add",
|
|
293
293
|
label: t(e)("menu.takeaway.empty.action"),
|
|
294
|
-
onClick:
|
|
294
|
+
onClick: Q(n, ["stop"])
|
|
295
295
|
}, null, 8, ["label", "onClick"])]),
|
|
296
296
|
_: 1
|
|
297
297
|
}, 8, ["bind-to-variant"])) : $("", !0)]),
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { computed as d, defineComponent as x, ref as F, resolveComponent as b, createElementBlock as L, openBlock as w, normalizeClass as R, createVNode as K, normalizeStyle as $, withCtx as B, createBlock as U, createCommentVNode as j } from "vue";
|
|
2
|
-
import { A as h,
|
|
3
|
-
import { u as S } from "./menuV2-
|
|
4
|
-
import { C as v, h as N } from "./catalog-
|
|
2
|
+
import { A as h, M as E, G as C, Q as O, al as Y, u as y, a as G } from "./index.vue_vue_type_script_setup_true_lang-kj6HkxwD.js";
|
|
3
|
+
import { u as S } from "./menuV2-DHO9OmzU.js";
|
|
4
|
+
import { C as v, h as N } from "./catalog-BgQmytEA.js";
|
|
5
5
|
import { useSnackbar as P, useDialog as z } from "@feedmepos/ui-library";
|
|
6
|
-
import { a as T } from "./LinkProductSideSheet-
|
|
7
|
-
import { useI18n as
|
|
8
|
-
function
|
|
6
|
+
import { a as T } from "./LinkProductSideSheet-BXW6eNgZ.js";
|
|
7
|
+
import { useI18n as Q } from "@feedmepos/mf-common";
|
|
8
|
+
function q() {
|
|
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 })) : [];
|
|
@@ -96,7 +96,7 @@ async function A(t, o) {
|
|
|
96
96
|
data: _
|
|
97
97
|
});
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function H() {
|
|
100
100
|
const t = S(), o = P(), i = z(), c = C(o), g = O(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)
|
|
@@ -159,7 +159,7 @@ function J() {
|
|
|
159
159
|
applyProduct: u
|
|
160
160
|
};
|
|
161
161
|
}
|
|
162
|
-
const
|
|
162
|
+
const J = () => {
|
|
163
163
|
const t = y(), o = P(), i = C(o), c = O(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 })) : [];
|
|
@@ -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 = J(), 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 =
|
|
311
|
+
}), p = H(), _ = q(), 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;
|
|
@@ -394,6 +394,6 @@ const X = ["alt", "src", "crossorigin"], ue = /* @__PURE__ */ x({
|
|
|
394
394
|
});
|
|
395
395
|
export {
|
|
396
396
|
ue as _,
|
|
397
|
-
|
|
397
|
+
q as a,
|
|
398
398
|
se as u
|
|
399
399
|
};
|