@feedmepos/mf-menu 0.31.27-beta.1 → 0.31.27-prod
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-CMS69WcY.js → App-DNeZM8ET.js} +20 -20
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-DZRZ5OcA.js → ApplyProduct.vue_vue_type_script_setup_true_lang-Dts9vyEs.js} +2 -2
- package/dist/{Catalog-ffSd6aqq.js → Catalog-CeTkUKrT.js} +5 -5
- package/dist/{Category-BTO8pYAh.js → Category-B5nVkGhy.js} +4 -4
- package/dist/{Category-BC-CGCF7.js → Category-CjzEcwi7.js} +5 -5
- package/dist/{CookingGuide-BTLEbMz8.js → CookingGuide-JnqAkFij.js} +3 -3
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-Bp8YSvTf.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-B-1YHLD5.js} +1 -1
- package/dist/{Group-BJGPdjU2.js → Group-BqHJfrJ7.js} +1 -1
- package/dist/{Group-WTI2IBHI.js → Group-o6M3kKKJ.js} +3 -3
- package/dist/{Group.vue_vue_type_script_setup_true_lang-CLip0CIE.js → Group.vue_vue_type_script_setup_true_lang-CnbnU1ip.js} +7 -7
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-D5piFax4.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-Bk4FKdGN.js} +3 -3
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-CjplMJNQ.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-b3I1aq9G.js} +6 -6
- package/dist/{Ingredient-UvO3motH.js → Ingredient-3zpQ29jx.js} +3 -3
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-DYq7cCQf.js → InventoryBinding.vue_vue_type_script_setup_true_lang-BUcad7JD.js} +2 -2
- package/dist/{LinkProductSideSheet-BPtYQ4XV.js → LinkProductSideSheet-DJPCs98V.js} +1 -1
- package/dist/{MenuSetting-CwAJjD_p.js → MenuSetting-ExdGEbLJ.js} +4 -4
- package/dist/{PrintRoute-Cm3goDUl.js → PrintRoute-BhK034L7.js} +3 -3
- package/dist/{Product-HjuxsN8O.js → Product-D4slYS6Q.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-ClUvPn7_.js → Product.vue_vue_type_script_setup_true_lang-Bbt-iaJU.js} +11 -11
- package/dist/{ProductInternalTools-C9bIXdAk.js → ProductInternalTools-pvFhPiGK.js} +6 -6
- package/dist/{Products-DAPARzpG.js → Products-nCLjAlVS.js} +10 -10
- package/dist/{Publish-DzdbzfwH.js → Publish-q5H6YR77.js} +3 -3
- package/dist/{Recipe-D0-nUdYC.js → Recipe-DVrJJaPO.js} +4 -4
- package/dist/{Scheduler-9Kd5PmoF.js → Scheduler-CXzGNhon.js} +3 -3
- package/dist/{ServingSequence-zo5R8QIh.js → ServingSequence-cF0WnmX2.js} +3 -3
- package/dist/{Setting-CtzteiOM.js → Setting-lLEy9-v7.js} +4 -4
- package/dist/{Subcategory-BmwDMU5H.js → Subcategory-YMQc9cw2.js} +4 -4
- package/dist/{Takeaway-Bkqn5jTE.js → Takeaway-Dxmuae3b.js} +4 -4
- package/dist/{Takeaway-CyMa3NY6.js → Takeaway-StVhYDE6.js} +1 -1
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-CKk2hvBT.js → Takeaway.vue_vue_type_script_setup_true_lang-Dqo1Y_HR.js} +5 -5
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-COaXurQ1.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DgG2YTNE.js} +13 -13
- package/dist/{Unit-Dt8DDjdA.js → Unit-aNDeDuXz.js} +2 -2
- package/dist/{Variant-QOUHDtkr.js → Variant-DOsU90mI.js} +3 -3
- package/dist/{_id_-jopb3ztm.js → _id_-C9wsTtS9.js} +9 -9
- package/dist/{app-yS8K7_sg.js → app-CMGBe_oB.js} +1 -1
- package/dist/{app-DwbO44_c.js → app-k4zSZTgi.js} +24 -24
- package/dist/app.js +1 -1
- package/dist/assets/{linked-status-C1SMYqxL.js → linked-status-anphKLbj.js} +2 -2
- package/dist/assets/{override-menu-BHUTkarJ.js → override-menu-iBJzLjBb.js} +2 -2
- package/dist/assets/{validate-menu-BM2IsXBA.js → validate-menu-DkSZDIeq.js} +2 -2
- package/dist/{catalog-Dpdf5ZHD.js → catalog-mYpynZrD.js} +1 -1
- package/dist/{catalogSetting-D7UWrxID.js → catalogSetting-Dj64AAo1.js} +1 -1
- package/dist/{category-3hnf2fFI.js → category-BG0hgYmR.js} +1 -1
- package/dist/{currency-B2_-inGF.js → currency-BIwbtKPe.js} +1 -1
- package/dist/{dayjs.min-C1jj4j8U.js → dayjs.min-CKV4mIiZ.js} +1 -1
- package/dist/{index-CimxGuue.js → index-Busw77Ye.js} +1 -1
- package/dist/{index-BIZibBLC.js → index-CuCHkIDK.js} +2 -2
- package/dist/{index-Ck1ONRAO.js → index-DdeKrSfd.js} +3 -3
- package/dist/{item-CyutZ1gl.js → item-DNEXwR_6.js} +15 -15
- package/dist/{jszip.min-AyQNVJNb.js → jszip.min-DjLhV4XW.js} +245 -245
- package/dist/{menu-DU1ye-GJ.js → menu-BPdXZD7E.js} +1 -1
- package/dist/{menu-VVCkGXjV.js → menu-yNY0i5iA.js} +409 -409
- package/dist/{priceTier-eKtUcuDB.js → priceTier-BfT2SJmZ.js} +1 -1
- package/dist/{scheduler-BMPmtUvL.js → scheduler-BYKqbSt6.js} +3 -3
- package/dist/{subcategory-CYoskXOE.js → subcategory-D1d-_URD.js} +54 -54
- package/dist/{toExcel-DrBSnbwg.js → toExcel-sqDI-glp.js} +2 -2
- package/dist/{unit-DDfHpHJM.js → unit-D7x7R7uL.js} +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as d, ref as g, watch as _, resolveComponent as S, createBlock as T, openBlock as f, unref as y, computed as h } from "vue";
|
|
2
2
|
import { useI18n as m } from "@feedmepos/mf-common";
|
|
3
3
|
import { useDialogChild as w, useDialog as x, useSnackbar as C } from "@feedmepos/ui-library";
|
|
4
|
-
import { u as k, D as M } from "./menu-
|
|
4
|
+
import { u as k, D as M } from "./menu-yNY0i5iA.js";
|
|
5
5
|
const v = /* @__PURE__ */ d({
|
|
6
6
|
__name: "AddPriceGroupDialog",
|
|
7
7
|
setup(s) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent as le, computed as Y, resolveComponent as v, createElementBlock as i, openBlock as u, createVNode as l, createCommentVNode as g, unref as a, toDisplayString as P, createElementVNode as y, withCtx as _, Fragment as D, renderList as A, createBlock as N, ref as T, Transition as ee, createTextVNode as se } from "vue";
|
|
2
|
-
import { H as b, G as d, u as ie, I as de, J as X } from "./menu-
|
|
2
|
+
import { H as b, G as d, u as ie, I as de, J as X } from "./menu-yNY0i5iA.js";
|
|
3
3
|
import { useI18n as te } from "@feedmepos/mf-common";
|
|
4
4
|
import { components as re } from "@feedmepos/ui-library";
|
|
5
5
|
import { _ as ce } from "./FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js";
|
|
6
6
|
import { _ as W } from "./FormSection.vue_vue_type_script_setup_true_lang-CO4YGYLB.js";
|
|
7
7
|
import { u as me } from "./discardConfirm-BHni0LNu.js";
|
|
8
|
-
import { u as pe } from "./menu-
|
|
9
|
-
import { L as _e } from "./LinkProductSideSheet-
|
|
8
|
+
import { u as pe } from "./menu-BPdXZD7E.js";
|
|
9
|
+
import { L as _e } from "./LinkProductSideSheet-DJPCs98V.js";
|
|
10
10
|
const ve = { class: "space-y-8" }, fe = {
|
|
11
11
|
key: 0,
|
|
12
12
|
class: "space-y-16"
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { shallowRef as X, ref as
|
|
2
|
-
import { H as k, B as
|
|
1
|
+
import { shallowRef as X, ref as T, computed as h, shallowReactive as Fe, effectScope as Re, watch as H, defineComponent as Te, resolveComponent as z, createBlock as Ve, openBlock as Ne, unref as N, withCtx as Oe, createVNode as xe } from "vue";
|
|
2
|
+
import { H as k, B as O, ak as Z, G as I, al as L, J as S, I as ee, aa as M, c as D, Y as E, aj as G, am as Pe, an as Ae, A as Ke, ac as Ue, ao as De, ap as $e, a9 as qe, u as He } from "./menu-yNY0i5iA.js";
|
|
3
3
|
import { useCoreStore as J, useI18n as te } from "@feedmepos/mf-common";
|
|
4
4
|
import { useSnackbar as Ye, useDialogChild as Be } from "@feedmepos/ui-library";
|
|
5
|
-
import { defineStore as
|
|
6
|
-
const
|
|
7
|
-
function
|
|
5
|
+
import { defineStore as je } from "pinia";
|
|
6
|
+
const We = "/assets/linked-status-anphKLbj.js", ze = "/assets/override-menu-iBJzLjBb.js";
|
|
7
|
+
function Le(e) {
|
|
8
8
|
var o;
|
|
9
9
|
const n = k(e), a = (o = n.variant) == null ? void 0 : o.variantCombinations;
|
|
10
10
|
return delete n.variant, delete n.thumbnail, [n, ...a || []];
|
|
11
11
|
}
|
|
12
|
-
function
|
|
13
|
-
const r = k(n), f = a ? r.modules.catalog.find((g) => g._id === a) : null, l = o ? r.modules.scheduler.find((g) => g._id === o) : null, i = f ? k(f) : void 0, d = a ? r.modules.catalog.filter((g) => g._id !== a) : [], u = l ? k(l) : void 0, s = e.reduce((g, y) => (g[y._id] =
|
|
12
|
+
function Ge(e, n, a, o) {
|
|
13
|
+
const r = k(n), f = a ? r.modules.catalog.find((g) => g._id === a) : null, l = o ? r.modules.scheduler.find((g) => g._id === o) : null, i = f ? k(f) : void 0, d = a ? r.modules.catalog.filter((g) => g._id !== a) : [], u = l ? k(l) : void 0, s = e.reduce((g, y) => (g[y._id] = Le(y), g), {});
|
|
14
14
|
function p(g = []) {
|
|
15
15
|
const y = e.map((b) => b._id);
|
|
16
16
|
return [
|
|
@@ -35,9 +35,9 @@ function Le(e, n, a, o) {
|
|
|
35
35
|
...r.modules.scheduler.filter((g) => g._id !== o),
|
|
36
36
|
u
|
|
37
37
|
], r) : {
|
|
38
|
-
...
|
|
38
|
+
...L(),
|
|
39
39
|
modules: {
|
|
40
|
-
...
|
|
40
|
+
...L().modules,
|
|
41
41
|
catalog: r.modules.catalog,
|
|
42
42
|
item: r.modules.item,
|
|
43
43
|
group: r.modules.group,
|
|
@@ -46,7 +46,7 @@ function Le(e, n, a, o) {
|
|
|
46
46
|
_id: r._id
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function R(e, n, a) {
|
|
50
50
|
var f;
|
|
51
51
|
if (a >= 3) return e;
|
|
52
52
|
const o = n.modules.item.find((l) => l._id === e._id);
|
|
@@ -61,8 +61,8 @@ function T(e, n, a) {
|
|
|
61
61
|
const y = (b = i.items) == null ? void 0 : b.find(
|
|
62
62
|
(F) => F._id === g._id && F.combinationKey === g.combinationKey
|
|
63
63
|
);
|
|
64
|
-
return
|
|
65
|
-
})) ?? [] : d = ((p = l.items) == null ? void 0 : p.map((g) =>
|
|
64
|
+
return R(y || g, n, a + 1);
|
|
65
|
+
})) ?? [] : d = ((p = l.items) == null ? void 0 : p.map((g) => R(g, n, a + 1))) ?? [], {
|
|
66
66
|
...l,
|
|
67
67
|
items: d
|
|
68
68
|
};
|
|
@@ -83,17 +83,17 @@ function Je(e, n) {
|
|
|
83
83
|
(g) => g._id === d._id && g.combinationKey === d.combinationKey
|
|
84
84
|
);
|
|
85
85
|
if (u)
|
|
86
|
-
return
|
|
86
|
+
return R(u, n, 1);
|
|
87
87
|
const s = {
|
|
88
|
-
...
|
|
88
|
+
...O.generator.initMenuV4ItemOverrider(),
|
|
89
89
|
_id: d._id,
|
|
90
90
|
combinationKey: d.combinationKey
|
|
91
91
|
};
|
|
92
|
-
return
|
|
92
|
+
return R(s, n, 1);
|
|
93
93
|
});
|
|
94
94
|
return { ...f, items: i };
|
|
95
|
-
}), o = e.variant ? e.variant.variantCombinations.map((f) =>
|
|
96
|
-
...
|
|
95
|
+
}), o = e.variant ? e.variant.variantCombinations.map((f) => R(f, n, 1)) : [], r = {
|
|
96
|
+
...O.generator.initMenuV4ItemOverrider(),
|
|
97
97
|
_id: e._id,
|
|
98
98
|
name: e.name,
|
|
99
99
|
code: e.code,
|
|
@@ -150,10 +150,10 @@ function Qe(e, n) {
|
|
|
150
150
|
};
|
|
151
151
|
}
|
|
152
152
|
async function dt(e, n, a, o, r, f = !0) {
|
|
153
|
-
const l = k(a), i = f ?
|
|
153
|
+
const l = k(a), i = f ? Ge(n, l, o, r) : l, d = n.reduce((p, g) => (p[g._id] = i.modules.item.find((y) => y._id === g._id), p), {}), u = n.reduce((p, g) => {
|
|
154
154
|
const y = g._id;
|
|
155
155
|
return p[y] = Je(d[y], e), p;
|
|
156
|
-
}, {}), s =
|
|
156
|
+
}, {}), s = O.getFallbackPrices({
|
|
157
157
|
rawMenu: i,
|
|
158
158
|
items: u,
|
|
159
159
|
catalogId: o || void 0,
|
|
@@ -186,7 +186,7 @@ async function ft(e, n) {
|
|
|
186
186
|
if ($.has(a))
|
|
187
187
|
return $.get(a);
|
|
188
188
|
const o = await Z(
|
|
189
|
-
|
|
189
|
+
We,
|
|
190
190
|
JSON.stringify({
|
|
191
191
|
menu: e,
|
|
192
192
|
itemId: n
|
|
@@ -251,8 +251,8 @@ async function gt(e, n, a) {
|
|
|
251
251
|
const u = (l = d.items) == null ? void 0 : l.find((p) => p._id === a && !p.combinationKey), s = e.modules.item.find((p) => p._id === a);
|
|
252
252
|
if (u) {
|
|
253
253
|
const p = (i = d.items) == null ? void 0 : i.filter((y) => y._id === a && y.combinationKey), g = [u, ...p].map((y) => {
|
|
254
|
-
var V,
|
|
255
|
-
const b = y.combinationKey ? (
|
|
254
|
+
var V, x;
|
|
255
|
+
const b = y.combinationKey ? (x = (V = s == null ? void 0 : s.variant) == null ? void 0 : V.variantCombinations) == null ? void 0 : x.find(
|
|
256
256
|
(P) => P.combinationKey === y.combinationKey
|
|
257
257
|
) : s, F = b && s ? f(s, b) : y;
|
|
258
258
|
return f(F, y);
|
|
@@ -268,7 +268,7 @@ async function gt(e, n, a) {
|
|
|
268
268
|
function Ze({
|
|
269
269
|
maxHistorySize: e = 50
|
|
270
270
|
}) {
|
|
271
|
-
const n = X([]), a =
|
|
271
|
+
const n = X([]), a = T(-1), o = h(() => a.value > 0), r = h(() => a.value < n.value.length - 1);
|
|
272
272
|
function f(u) {
|
|
273
273
|
n.value.push(u), a.value++, n.value.length > e && (n.value.shift(), a.value--);
|
|
274
274
|
}
|
|
@@ -338,7 +338,7 @@ function tt() {
|
|
|
338
338
|
currentSchedulerId: ""
|
|
339
339
|
};
|
|
340
340
|
}
|
|
341
|
-
const nt =
|
|
341
|
+
const nt = je(
|
|
342
342
|
"mf-menu-store-v2",
|
|
343
343
|
() => {
|
|
344
344
|
const e = Fe(tt()), n = J(), a = Ye(), o = h(() => e.menu.modules.serveSequence ? M(e.menu.modules.serveSequence, {
|
|
@@ -355,7 +355,7 @@ const nt = We(
|
|
|
355
355
|
function s(t, c = !0) {
|
|
356
356
|
e.menu = { ...t, _rev: e.menu._rev }, c && w.push(e.menu);
|
|
357
357
|
}
|
|
358
|
-
const p = X(oe()), g =
|
|
358
|
+
const p = X(oe()), g = T(!1), y = T(1);
|
|
359
359
|
async function b() {
|
|
360
360
|
g.value = !0;
|
|
361
361
|
const t = await ne(
|
|
@@ -374,7 +374,7 @@ const nt = We(
|
|
|
374
374
|
return p.value = t, g.value = !1, y.value = y.value + 1, t;
|
|
375
375
|
}
|
|
376
376
|
const V = ee.debounce(b, 200);
|
|
377
|
-
|
|
377
|
+
Re(!0).run(() => {
|
|
378
378
|
H(
|
|
379
379
|
() => [e.menu, e.currentCatalogId, e.currentSchedulerId],
|
|
380
380
|
() => {
|
|
@@ -394,7 +394,7 @@ const nt = We(
|
|
|
394
394
|
]), B = h(() => {
|
|
395
395
|
const t = p.value.modules.category;
|
|
396
396
|
return [
|
|
397
|
-
...
|
|
397
|
+
...K.value.item.addon ? [
|
|
398
398
|
{
|
|
399
399
|
_id: e.currentCatalogId ? "" : null,
|
|
400
400
|
name: "Addon",
|
|
@@ -406,7 +406,7 @@ const nt = We(
|
|
|
406
406
|
}), re = h(() => {
|
|
407
407
|
const t = p.value.modules.subCategory || [];
|
|
408
408
|
return E(t, (c) => c.name);
|
|
409
|
-
}),
|
|
409
|
+
}), j = h(() => {
|
|
410
410
|
var c;
|
|
411
411
|
let t = p.value.modules.item;
|
|
412
412
|
if (i.value) {
|
|
@@ -429,8 +429,8 @@ const nt = We(
|
|
|
429
429
|
m,
|
|
430
430
|
(v) => v.code || v.name
|
|
431
431
|
).reduce((v, _, C) => (v[_._id] = C + c[_.category || ""], v), {});
|
|
432
|
-
}), se = h(() =>
|
|
433
|
-
const t =
|
|
432
|
+
}), se = h(() => G(A.value, B.value, j.value)), ue = h(() => {
|
|
433
|
+
const t = K.value.item.addon ? [
|
|
434
434
|
{
|
|
435
435
|
_id: e.currentCatalogId ? "" : null,
|
|
436
436
|
name: "Addon",
|
|
@@ -438,7 +438,7 @@ const nt = We(
|
|
|
438
438
|
},
|
|
439
439
|
...e.menu.modules.category
|
|
440
440
|
] : e.menu.modules.category;
|
|
441
|
-
return
|
|
441
|
+
return G(
|
|
442
442
|
e.menu.modules.variant,
|
|
443
443
|
t,
|
|
444
444
|
e.menu.modules.item
|
|
@@ -449,7 +449,7 @@ const nt = We(
|
|
|
449
449
|
});
|
|
450
450
|
function ie(t = []) {
|
|
451
451
|
const c = t.map((v) => A.value.find((_) => _._id === v)).filter((v) => !!v);
|
|
452
|
-
return
|
|
452
|
+
return O.fullVariantCombination(c).reduce((v, _) => (v[_.combinationKey] = _.selectionName.join(" / "), v), {});
|
|
453
453
|
}
|
|
454
454
|
const ce = h(() => E(p.value.modules.group, (t) => t.name)), le = h(() => M(p.value.modules.takeaway, { selector: "name" })), de = h(() => M(e.menu.modules.printDepartment || [], {
|
|
455
455
|
selector: "name"
|
|
@@ -458,7 +458,7 @@ const nt = We(
|
|
|
458
458
|
})), pe = h(() => e.menu.modules.cookingGuide), _e = h(() => {
|
|
459
459
|
const t = Ae(e.menu.modules.sku);
|
|
460
460
|
return M(t, { selector: "code" });
|
|
461
|
-
}),
|
|
461
|
+
}), K = h(() => {
|
|
462
462
|
const t = !e.currentCatalogId, c = r.value === D.F_MENU_VERSION.v4, m = !e.currentSchedulerId, v = {
|
|
463
463
|
create: t && m,
|
|
464
464
|
edit: t && m,
|
|
@@ -527,7 +527,7 @@ const nt = We(
|
|
|
527
527
|
}
|
|
528
528
|
};
|
|
529
529
|
});
|
|
530
|
-
function
|
|
530
|
+
function U(t) {
|
|
531
531
|
return `${t.systemCode}/${t.taxCode}`;
|
|
532
532
|
}
|
|
533
533
|
function ge(t) {
|
|
@@ -535,15 +535,15 @@ const nt = We(
|
|
|
535
535
|
return { systemCode: c, taxCode: m };
|
|
536
536
|
}
|
|
537
537
|
function ve(t, c, m) {
|
|
538
|
-
return (t ?? c ?? []).map((v) =>
|
|
538
|
+
return (t ?? c ?? []).map((v) => U(v)).find((v) => m.some((_) => _.value === v));
|
|
539
539
|
}
|
|
540
540
|
const ye = h(() => {
|
|
541
541
|
var v;
|
|
542
|
-
const t = ["SV5", "SV10"], c =
|
|
542
|
+
const t = ["SV5", "SV10"], c = Ke.Country.getCountryFlattenTaxes(
|
|
543
543
|
J().currentCountry.value
|
|
544
544
|
), m = c.filter((_) => f.value || !t.includes(_.taxCode)).map((_) => ({
|
|
545
|
-
label: `${_.name} (${
|
|
546
|
-
value:
|
|
545
|
+
label: `${_.name} (${Ue(_.rate)}%)`,
|
|
546
|
+
value: U(_),
|
|
547
547
|
meta: {
|
|
548
548
|
rate: _.rate
|
|
549
549
|
}
|
|
@@ -554,11 +554,11 @@ const nt = We(
|
|
|
554
554
|
};
|
|
555
555
|
}), he = async () => {
|
|
556
556
|
const t = await qe.readMenu();
|
|
557
|
-
e.menu = t ?? e.menu,
|
|
557
|
+
e.menu = t ?? e.menu, W(null);
|
|
558
558
|
}, be = async () => {
|
|
559
559
|
const { fetchAllRestaurants: t } = $e(), c = await t();
|
|
560
560
|
e.restaurants = M(c, { selector: "name" });
|
|
561
|
-
},
|
|
561
|
+
}, W = (t) => {
|
|
562
562
|
e.currentCatalogId = t;
|
|
563
563
|
}, Ce = (t) => {
|
|
564
564
|
e.currentSchedulerId = t;
|
|
@@ -615,7 +615,7 @@ const nt = We(
|
|
|
615
615
|
catalogOptions: P,
|
|
616
616
|
categories: B,
|
|
617
617
|
subcategories: re,
|
|
618
|
-
items:
|
|
618
|
+
items: j,
|
|
619
619
|
sortedItems: ae,
|
|
620
620
|
categorizedItems: se,
|
|
621
621
|
categorizedRawMenuItems: ue,
|
|
@@ -627,20 +627,20 @@ const nt = We(
|
|
|
627
627
|
recipes: fe,
|
|
628
628
|
cookingGuide: pe,
|
|
629
629
|
skus: _e,
|
|
630
|
-
rules:
|
|
630
|
+
rules: K,
|
|
631
631
|
taxSetting: ye,
|
|
632
632
|
// Action
|
|
633
633
|
setMenu: s,
|
|
634
634
|
readMenu: he,
|
|
635
635
|
readRestaurants: be,
|
|
636
|
-
selectCatalog:
|
|
636
|
+
selectCatalog: W,
|
|
637
637
|
selectScheduler: Ce,
|
|
638
638
|
selectCategory: Me,
|
|
639
639
|
updateMenu: Se,
|
|
640
640
|
updateMenuSetting: we,
|
|
641
641
|
computeMergedMenu: b,
|
|
642
642
|
// helper
|
|
643
|
-
encodeTax:
|
|
643
|
+
encodeTax: U,
|
|
644
644
|
decodeTax: ge,
|
|
645
645
|
getSelectedTax: ve,
|
|
646
646
|
mapVariant: ie,
|
|
@@ -660,7 +660,7 @@ const nt = We(
|
|
|
660
660
|
}
|
|
661
661
|
};
|
|
662
662
|
}
|
|
663
|
-
), Q = /* @__PURE__ */
|
|
663
|
+
), Q = /* @__PURE__ */ Te({
|
|
664
664
|
__name: "AddSubcategoryDialogContentComponent",
|
|
665
665
|
props: {
|
|
666
666
|
initialValue: {}
|
|
@@ -673,7 +673,7 @@ const nt = We(
|
|
|
673
673
|
o.value = l ?? "";
|
|
674
674
|
}
|
|
675
675
|
);
|
|
676
|
-
const o =
|
|
676
|
+
const o = T(n.initialValue), { emitData: r, emitAction: f } = Be();
|
|
677
677
|
return H(
|
|
678
678
|
o,
|
|
679
679
|
(l) => {
|
|
@@ -684,17 +684,17 @@ const nt = We(
|
|
|
684
684
|
}
|
|
685
685
|
), (l, i) => {
|
|
686
686
|
const d = z("fm-text-field"), u = z("FmForm");
|
|
687
|
-
return
|
|
688
|
-
onValidationSuccess: i[1] || (i[1] = (s) =>
|
|
687
|
+
return Ne(), Ve(u, {
|
|
688
|
+
onValidationSuccess: i[1] || (i[1] = (s) => N(f)("primary"))
|
|
689
689
|
}, {
|
|
690
|
-
default:
|
|
691
|
-
|
|
690
|
+
default: Oe(() => [
|
|
691
|
+
xe(d, {
|
|
692
692
|
modelValue: o.value,
|
|
693
693
|
"onUpdate:modelValue": i[0] || (i[0] = (s) => o.value = s),
|
|
694
|
-
rules: [(s) => !!s ||
|
|
694
|
+
rules: [(s) => !!s || N(a)("menu.subcategory.dialog.add.name.required")],
|
|
695
695
|
autofocus: "",
|
|
696
|
-
label:
|
|
697
|
-
placeholder:
|
|
696
|
+
label: N(a)("menu.subcategory.dialog.add.name.label"),
|
|
697
|
+
placeholder: N(a)("menu.subcategory.dialog.add.name.placeholder")
|
|
698
698
|
}, null, 8, ["modelValue", "rules", "label", "placeholder"])
|
|
699
699
|
]),
|
|
700
700
|
_: 1
|
|
@@ -708,7 +708,7 @@ const nt = We(
|
|
|
708
708
|
}) => {
|
|
709
709
|
const { t: o } = te(), r = nt().updateMenu;
|
|
710
710
|
function f() {
|
|
711
|
-
const u =
|
|
711
|
+
const u = T(!1);
|
|
712
712
|
e.open({
|
|
713
713
|
title: o("menu.subcategory.manager.dialog.add.title"),
|
|
714
714
|
contentComponent: Q,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import "./menu-
|
|
1
|
+
import { b as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-b3I1aq9G.js";
|
|
2
|
+
import "./menu-yNY0i5iA.js";
|
|
3
3
|
var Z = {
|
|
4
4
|
defaultAmount: 0,
|
|
5
5
|
defaultCurrency: "USD",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineStore as J } from "pinia";
|
|
2
2
|
import { defineComponent as O, computed as U, ref as h, watch as T, resolveComponent as V, createBlock as W, openBlock as F, withCtx as w, createVNode as m, createElementVNode as f, normalizeClass as Q, createElementBlock as A, toDisplayString as M, unref as l, Fragment as q, renderSlot as X, renderList as Z, getCurrentInstance as ee } from "vue";
|
|
3
|
-
import { a7 as B, a8 as te, a5 as P, H as k, O as $, D as I, B as E, I as ne, a6 as ae, J as C, G as D, u as oe } from "./menu-
|
|
3
|
+
import { a7 as B, a8 as te, a5 as P, H as k, O as $, D as I, B as E, I as ne, a6 as ae, J as C, G as D, u as oe } from "./menu-yNY0i5iA.js";
|
|
4
4
|
import { useI18n as L } from "@feedmepos/mf-common";
|
|
5
5
|
import { useSnackbar as j, components as le, useDialog as ue, FmButtonVariant as ie } from "@feedmepos/ui-library";
|
|
6
6
|
import { u as se } from "./discardConfirm-BHni0LNu.js";
|