@feedmepos/mf-menu 0.31.15-prod → 0.31.16-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-BNGtZx9p.js → App-CWEkQYD3.js} +6 -6
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-Dx2lCyY5.js → ApplyProduct.vue_vue_type_script_setup_true_lang-aPRHMKRd.js} +2 -2
- package/dist/{Catalog-CKFay-NG.js → Catalog-DufbhZZA.js} +5 -5
- package/dist/{Category-DXqKlHDs.js → Category-0vkklH0d.js} +4 -4
- package/dist/{Category-B9hu1DoY.js → Category-CjKetV0v.js} +5 -5
- package/dist/{CookingGuide-Ba7NNekZ.js → CookingGuide-DJafMcF9.js} +3 -3
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-EXgH1nPG.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-qcl3hFo5.js} +1 -1
- package/dist/{Group-C6bEA2TE.js → Group-CduUpKVd.js} +3 -3
- package/dist/{Group-BZJVxJZ9.js → Group-OxlwPu_d.js} +1 -1
- package/dist/{Group.vue_vue_type_script_setup_true_lang-bpgH2tWK.js → Group.vue_vue_type_script_setup_true_lang-EZAc2XZt.js} +7 -7
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-Ba1Lz1HY.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-Cd1Ttwm9.js} +3 -3
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-DjlIlelb.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-D94RDCY0.js} +12638 -12504
- package/dist/{Ingredient-CAaFa_2m.js → Ingredient-ZCs8umST.js} +3 -3
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-yrW9h3H1.js → InventoryBinding.vue_vue_type_script_setup_true_lang-BMH7fVdY.js} +2 -2
- package/dist/{LinkProductSideSheet-BjpwyV_8.js → LinkProductSideSheet-CfXH9p8Y.js} +1 -1
- package/dist/{MenuSetting-BywcRxzf.js → MenuSetting-By7j4NeX.js} +4 -4
- package/dist/{PrintRoute-Br_Ie74F.js → PrintRoute-gns3dMny.js} +3 -3
- package/dist/{Product-Bxj__V02.js → Product-2bLFYV0m.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-CW5dxXYX.js → Product.vue_vue_type_script_setup_true_lang-BJzEX6li.js} +11 -11
- package/dist/{Products-BMIBDD3d.js → Products-DefprxGI.js} +24 -23
- package/dist/Publish-CPCTvddb.js +547 -0
- package/dist/{Recipe-Dx3dYqdb.js → Recipe-BxbD3xM5.js} +4 -4
- package/dist/{Scheduler-6tzAN57N.js → Scheduler-DMIGWyAn.js} +3 -3
- package/dist/{ServingSequence-GrDAyx3q.js → ServingSequence-BofLRwEa.js} +3 -3
- package/dist/{Setting-CQlb1VMr.js → Setting-DJ6TgqfU.js} +4 -4
- package/dist/{Subcategory-DooQjAXv.js → Subcategory-DNAodc-3.js} +4 -4
- package/dist/{Takeaway-BOnWybP6.js → Takeaway-Dh8tcAAZ.js} +4 -4
- package/dist/{Takeaway-CTDbbeKl.js → Takeaway-oZnyr5Fr.js} +1 -1
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-BcQtsmUg.js → Takeaway.vue_vue_type_script_setup_true_lang-QGEzZ9cK.js} +5 -5
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BPV9qeZy.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-vT0caoQT.js} +12 -12
- package/dist/{Unit-CSCzRQhO.js → Unit-C9iHfKB4.js} +2 -2
- package/dist/{Variant-DU4qDPVh.js → Variant-BnWYyHRm.js} +3 -3
- package/dist/{_id_-CsKRJkRu.js → _id_-DtKXYSXn.js} +9 -9
- package/dist/{app-CyCl1JpX.js → app-1Zomyo6k.js} +1 -1
- package/dist/{app-DBfpUTQf.js → app-DLi6LfJa.js} +25 -26
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/components/import/PreviewAddonContent.vue.d.ts +4 -4
- package/dist/apps/mf-menu/src/helper/import-export.d.ts +9 -1
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{linked-status-BqD4090R.js → linked-status-DMN_KYTj.js} +2 -2
- package/dist/assets/{override-menu-53i43cdt.js → override-menu-D9Q9Gr3h.js} +2 -2
- package/dist/assets/{validate-menu-C5v2SE5a.js → validate-menu-BpY4lsF6.js} +2 -2
- package/dist/{catalog-DAK_puhU.js → catalog-3yjLeulU.js} +1 -1
- package/dist/{catalogSetting-jINNA5Fm.js → catalogSetting-D_8nswWL.js} +1 -1
- package/dist/{category-DMknD6Kh.js → category-BGwPDaR4.js} +1 -1
- package/dist/{currency-BtdSEyhz.js → currency-zYfWFXsF.js} +1 -1
- package/dist/{dayjs.min-CqOcu-iz.js → dayjs.min-Bn_BJ5QU.js} +1 -1
- package/dist/{index-D-jITW50.js → index-BY24FAMF.js} +3 -3
- package/dist/{index-ClTCetL-.js → index-Cq2LA7yJ.js} +2 -2
- package/dist/{index-JBLupN1N.js → index-zoDXvq6O.js} +1 -1
- package/dist/{item-BRrINn5Y.js → item-XtOziOzQ.js} +14 -14
- package/dist/{menu-CcEfeFDL.js → menu-BQpmW9K7.js} +5 -5
- package/dist/{menu-CWfNA8NU.js → menu-BuAapsgb.js} +1 -1
- package/dist/{priceTier-B14je4mZ.js → priceTier-D5Mfnvx1.js} +1 -1
- package/dist/{scheduler-e4KGVxkR.js → scheduler-BXoHuC-_.js} +3 -3
- package/dist/{subcategory-p52kWLwr.js → subcategory-CLSFMZKc.js} +50 -50
- package/dist/{toExcel-BGQTOb53.js → toExcel-Bi_AcHsG.js} +2 -2
- package/dist/{unit-CjIeseVY.js → unit-CKyRIKCA.js} +1 -1
- package/package.json +1 -1
- package/dist/Publish-Dw4hgBsT.js +0 -569
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { shallowRef as Z, ref as
|
|
2
|
-
import { J as k, A as O, aj as ee, I, ak as G, M as S, K as te, a9 as C, c as D, $ as E, ai as L, al as
|
|
1
|
+
import { shallowRef as Z, ref as R, computed as h, shallowReactive as Te, effectScope as Re, watch as Y, defineComponent as Ne, resolveComponent as B, createBlock as Ve, openBlock as Oe, unref as V, withCtx as Pe, createVNode as xe } from "vue";
|
|
2
|
+
import { J as k, A as O, aj as ee, I, ak as G, M as S, K as te, a9 as C, c as D, $ as E, ai as L, al as Ke, am as Ae, z as Ue, ab as De, an as $e, a8 as J, u as qe } from "./menu-BQpmW9K7.js";
|
|
3
3
|
import { useCoreStore as Q, useI18n as ne } from "@feedmepos/mf-common";
|
|
4
|
-
import { useSnackbar as
|
|
4
|
+
import { useSnackbar as Ye, useDialogChild as He } from "@feedmepos/ui-library";
|
|
5
5
|
import { defineStore as We } from "pinia";
|
|
6
|
-
const je = "/assets/linked-status-
|
|
7
|
-
function
|
|
6
|
+
const je = "/assets/linked-status-DMN_KYTj.js", ze = "/assets/override-menu-D9Q9Gr3h.js";
|
|
7
|
+
function Be(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
12
|
function Ge(e, n, a, o) {
|
|
13
|
-
const r = k(n), f = a ? r.modules.catalog.find((_) => _._id === a) : null, d = o ? r.modules.scheduler.find((_) => _._id === o) : null, i = f ? k(f) : void 0, m = a ? r.modules.catalog.filter((_) => _._id !== a) : [], u = d ? k(d) : void 0, s = e.reduce((_, y) => (_[y._id] =
|
|
13
|
+
const r = k(n), f = a ? r.modules.catalog.find((_) => _._id === a) : null, d = o ? r.modules.scheduler.find((_) => _._id === o) : null, i = f ? k(f) : void 0, m = a ? r.modules.catalog.filter((_) => _._id !== a) : [], u = d ? k(d) : void 0, s = e.reduce((_, y) => (_[y._id] = Be(y), _), {});
|
|
14
14
|
function p(_ = []) {
|
|
15
15
|
const y = e.map((b) => b._id);
|
|
16
16
|
return [
|
|
@@ -46,7 +46,7 @@ function Ge(e, n, a, o) {
|
|
|
46
46
|
_id: r._id
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function T(e, n, a) {
|
|
50
50
|
var f;
|
|
51
51
|
if (a >= 3) return e;
|
|
52
52
|
const o = n.modules.item.find((d) => d._id === e._id);
|
|
@@ -61,8 +61,8 @@ function R(e, n, a) {
|
|
|
61
61
|
const y = (b = i.items) == null ? void 0 : b.find(
|
|
62
62
|
(F) => F._id === _._id && F.combinationKey === _.combinationKey
|
|
63
63
|
);
|
|
64
|
-
return
|
|
65
|
-
})) ?? [] : m = ((p = d.items) == null ? void 0 : p.map((_) =>
|
|
64
|
+
return T(y || _, n, a + 1);
|
|
65
|
+
})) ?? [] : m = ((p = d.items) == null ? void 0 : p.map((_) => T(_, n, a + 1))) ?? [], {
|
|
66
66
|
...d,
|
|
67
67
|
items: m
|
|
68
68
|
};
|
|
@@ -83,16 +83,16 @@ function Le(e, n) {
|
|
|
83
83
|
(_) => _._id === m._id && _.combinationKey === m.combinationKey
|
|
84
84
|
);
|
|
85
85
|
if (u)
|
|
86
|
-
return
|
|
86
|
+
return T(u, n, 1);
|
|
87
87
|
const s = {
|
|
88
88
|
...O.generator.initMenuV4ItemOverrider(),
|
|
89
89
|
_id: m._id,
|
|
90
90
|
combinationKey: m.combinationKey
|
|
91
91
|
};
|
|
92
|
-
return
|
|
92
|
+
return T(s, n, 1);
|
|
93
93
|
});
|
|
94
94
|
return { ...f, items: i };
|
|
95
|
-
}), o = e.variant ? e.variant.variantCombinations.map((f) =>
|
|
95
|
+
}), o = e.variant ? e.variant.variantCombinations.map((f) => T(f, n, 1)) : [], r = {
|
|
96
96
|
...O.generator.initMenuV4ItemOverrider(),
|
|
97
97
|
_id: e._id,
|
|
98
98
|
name: e.name,
|
|
@@ -101,7 +101,7 @@ function Le(e, n) {
|
|
|
101
101
|
};
|
|
102
102
|
return [...o, r];
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function H(e, n) {
|
|
105
105
|
var o;
|
|
106
106
|
if (!n)
|
|
107
107
|
return e;
|
|
@@ -114,7 +114,7 @@ function Y(e, n) {
|
|
|
114
114
|
const u = (s = f == null ? void 0 : f.items) == null ? void 0 : s.find(
|
|
115
115
|
(p) => p._id === m._id && p.combinationKey === m.combinationKey
|
|
116
116
|
);
|
|
117
|
-
return
|
|
117
|
+
return H(m, u);
|
|
118
118
|
}), r;
|
|
119
119
|
}), a;
|
|
120
120
|
}
|
|
@@ -128,7 +128,7 @@ function Je(e, n) {
|
|
|
128
128
|
);
|
|
129
129
|
if (!f)
|
|
130
130
|
throw new Error(`Item overrider not found - ${r._id} - ${r.combinationKey}`);
|
|
131
|
-
return
|
|
131
|
+
return H(f, r);
|
|
132
132
|
})
|
|
133
133
|
});
|
|
134
134
|
const o = a.find((r) => !r.combinationKey);
|
|
@@ -142,7 +142,7 @@ function Je(e, n) {
|
|
|
142
142
|
const m = (u = f == null ? void 0 : f.items) == null ? void 0 : u.find(
|
|
143
143
|
(s) => s._id === i._id && s.combinationKey === i.combinationKey
|
|
144
144
|
);
|
|
145
|
-
return
|
|
145
|
+
return H(i, m);
|
|
146
146
|
}), r;
|
|
147
147
|
}), {
|
|
148
148
|
...n,
|
|
@@ -195,7 +195,7 @@ async function mt(e, n) {
|
|
|
195
195
|
return $.set(a, o), o;
|
|
196
196
|
}
|
|
197
197
|
async function oe(e, n, a) {
|
|
198
|
-
return await ee(
|
|
198
|
+
return await ee(ze, {
|
|
199
199
|
menu: e,
|
|
200
200
|
catalogId: n,
|
|
201
201
|
schedulerId: a
|
|
@@ -251,8 +251,8 @@ async function _t(e, n, a) {
|
|
|
251
251
|
const u = (d = m.items) == null ? void 0 : d.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 = m.items) == null ? void 0 : i.filter((y) => y._id === a && y.combinationKey), _ = [u, ...p].map((y) => {
|
|
254
|
-
var
|
|
255
|
-
const b = y.combinationKey ? (P = (
|
|
254
|
+
var N, P;
|
|
255
|
+
const b = y.combinationKey ? (P = (N = s == null ? void 0 : s.variant) == null ? void 0 : N.variantCombinations) == null ? void 0 : P.find(
|
|
256
256
|
(x) => x.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 _t(e, n, a) {
|
|
|
268
268
|
function Xe({
|
|
269
269
|
maxHistorySize: e = 50
|
|
270
270
|
}) {
|
|
271
|
-
const n = Z([]), a =
|
|
271
|
+
const n = Z([]), a = R(-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
|
}
|
|
@@ -341,7 +341,7 @@ function et() {
|
|
|
341
341
|
const tt = We(
|
|
342
342
|
"mf-menu-store-v2",
|
|
343
343
|
() => {
|
|
344
|
-
const e =
|
|
344
|
+
const e = Te(et()), n = Q(), a = Ye(), o = h(() => e.menu.modules.serveSequence ? C(e.menu.modules.serveSequence, {
|
|
345
345
|
selector: "position"
|
|
346
346
|
}) : []), r = h(() => {
|
|
347
347
|
var t;
|
|
@@ -355,7 +355,7 @@ const tt = We(
|
|
|
355
355
|
function s(t, l = !0) {
|
|
356
356
|
e.menu = { ...t, _rev: e.menu._rev }, l && w.push(e.menu);
|
|
357
357
|
}
|
|
358
|
-
const p = Z(re()), _ =
|
|
358
|
+
const p = Z(re()), _ = R(!1), y = R(1);
|
|
359
359
|
async function b() {
|
|
360
360
|
_.value = !0;
|
|
361
361
|
const t = await oe(
|
|
@@ -373,12 +373,12 @@ const tt = We(
|
|
|
373
373
|
}
|
|
374
374
|
return p.value = t, _.value = !1, y.value = y.value + 1, t;
|
|
375
375
|
}
|
|
376
|
-
const
|
|
377
|
-
|
|
378
|
-
|
|
376
|
+
const N = te.debounce(b, 200);
|
|
377
|
+
Re(!0).run(() => {
|
|
378
|
+
Y(
|
|
379
379
|
() => [e.menu, e.currentCatalogId, e.currentSchedulerId],
|
|
380
380
|
() => {
|
|
381
|
-
_.value ||
|
|
381
|
+
_.value || N();
|
|
382
382
|
}
|
|
383
383
|
);
|
|
384
384
|
});
|
|
@@ -394,7 +394,7 @@ const tt = We(
|
|
|
394
394
|
]), W = h(() => {
|
|
395
395
|
const t = p.value.modules.category;
|
|
396
396
|
return [
|
|
397
|
-
...
|
|
397
|
+
...A.value.item.addon ? [
|
|
398
398
|
{
|
|
399
399
|
_id: e.currentCatalogId ? "" : null,
|
|
400
400
|
name: "Addon",
|
|
@@ -429,8 +429,8 @@ const tt = We(
|
|
|
429
429
|
c,
|
|
430
430
|
(g) => g.code || g.name
|
|
431
431
|
).reduce((g, v, M) => (g[v._id] = M + l[v.category || ""], g), {});
|
|
432
|
-
}), ue = h(() => L(
|
|
433
|
-
const t =
|
|
432
|
+
}), ue = h(() => L(K.value, W.value, j.value)), ie = h(() => {
|
|
433
|
+
const t = A.value.item.addon ? [
|
|
434
434
|
{
|
|
435
435
|
_id: e.currentCatalogId ? "" : null,
|
|
436
436
|
name: "Addon",
|
|
@@ -443,22 +443,22 @@ const tt = We(
|
|
|
443
443
|
t,
|
|
444
444
|
e.menu.modules.item
|
|
445
445
|
);
|
|
446
|
-
}),
|
|
446
|
+
}), K = h(() => {
|
|
447
447
|
const t = p.value.modules.variant;
|
|
448
448
|
return C(t, { selector: "name" });
|
|
449
449
|
});
|
|
450
450
|
function ce(t = []) {
|
|
451
|
-
const l = t.map((g) =>
|
|
451
|
+
const l = t.map((g) => K.value.find((v) => v._id === g)).filter((g) => !!g);
|
|
452
452
|
return O.fullVariantCombination(l).reduce((g, v) => (g[v.combinationKey] = v.selectionName.join(" / "), g), {});
|
|
453
453
|
}
|
|
454
454
|
const le = h(() => E(p.value.modules.group, (t) => t.name)), de = h(() => C(p.value.modules.takeaway, { selector: "name" })), me = h(() => C(e.menu.modules.printDepartment || [], {
|
|
455
455
|
selector: "name"
|
|
456
|
-
})), fe = h(() => C(e.menu.modules.unit, { selector: "name" })), pe = h(() => C(
|
|
456
|
+
})), fe = h(() => C(e.menu.modules.unit, { selector: "name" })), pe = h(() => C(Ke(e.menu.modules.recipe, e.menu.modules.sku), {
|
|
457
457
|
selector: "name"
|
|
458
458
|
})), _e = h(() => e.menu.modules.cookingGuide), ge = h(() => {
|
|
459
|
-
const t =
|
|
459
|
+
const t = Ae(e.menu.modules.sku);
|
|
460
460
|
return C(t, { selector: "code" });
|
|
461
|
-
}),
|
|
461
|
+
}), A = h(() => {
|
|
462
462
|
const t = !e.currentCatalogId, l = r.value === D.F_MENU_VERSION.v4, c = !e.currentSchedulerId, g = {
|
|
463
463
|
create: t && c,
|
|
464
464
|
edit: t && c,
|
|
@@ -554,11 +554,11 @@ const tt = We(
|
|
|
554
554
|
};
|
|
555
555
|
}), be = async () => {
|
|
556
556
|
const t = await J.readMenu();
|
|
557
|
-
e.menu = t ?? e.menu,
|
|
557
|
+
e.menu = t ?? e.menu, z(null);
|
|
558
558
|
}, Me = async () => {
|
|
559
559
|
const t = await J.readRestaurantsWithMenu();
|
|
560
560
|
e.restaurants = C(t, { selector: "name" });
|
|
561
|
-
},
|
|
561
|
+
}, z = (t) => {
|
|
562
562
|
e.currentCatalogId = t;
|
|
563
563
|
}, Ce = (t) => {
|
|
564
564
|
e.currentSchedulerId = t;
|
|
@@ -619,7 +619,7 @@ const tt = We(
|
|
|
619
619
|
sortedItems: se,
|
|
620
620
|
categorizedItems: ue,
|
|
621
621
|
categorizedRawMenuItems: ie,
|
|
622
|
-
variants:
|
|
622
|
+
variants: K,
|
|
623
623
|
groups: le,
|
|
624
624
|
takeaways: de,
|
|
625
625
|
printDepartments: me,
|
|
@@ -627,13 +627,13 @@ const tt = We(
|
|
|
627
627
|
recipes: pe,
|
|
628
628
|
cookingGuide: _e,
|
|
629
629
|
skus: ge,
|
|
630
|
-
rules:
|
|
630
|
+
rules: A,
|
|
631
631
|
taxSetting: he,
|
|
632
632
|
// Action
|
|
633
633
|
setMenu: s,
|
|
634
634
|
readMenu: be,
|
|
635
635
|
readRestaurants: Me,
|
|
636
|
-
selectCatalog:
|
|
636
|
+
selectCatalog: z,
|
|
637
637
|
selectScheduler: Ce,
|
|
638
638
|
selectCategory: Se,
|
|
639
639
|
updateMenu: we,
|
|
@@ -660,21 +660,21 @@ const tt = We(
|
|
|
660
660
|
}
|
|
661
661
|
};
|
|
662
662
|
}
|
|
663
|
-
), X = /* @__PURE__ */
|
|
663
|
+
), X = /* @__PURE__ */ Ne({
|
|
664
664
|
__name: "AddSubcategoryDialogContentComponent",
|
|
665
665
|
props: {
|
|
666
666
|
initialValue: {}
|
|
667
667
|
},
|
|
668
668
|
setup(e) {
|
|
669
669
|
const n = e, { t: a } = ne();
|
|
670
|
-
|
|
670
|
+
Y(
|
|
671
671
|
() => n.initialValue,
|
|
672
672
|
(d) => {
|
|
673
673
|
o.value = d ?? "";
|
|
674
674
|
}
|
|
675
675
|
);
|
|
676
|
-
const o =
|
|
677
|
-
return
|
|
676
|
+
const o = R(n.initialValue), { emitData: r, emitAction: f } = He();
|
|
677
|
+
return Y(
|
|
678
678
|
o,
|
|
679
679
|
(d) => {
|
|
680
680
|
r(d);
|
|
@@ -683,18 +683,18 @@ const tt = We(
|
|
|
683
683
|
immediate: !0
|
|
684
684
|
}
|
|
685
685
|
), (d, i) => {
|
|
686
|
-
const m =
|
|
687
|
-
return Oe(),
|
|
688
|
-
onValidationSuccess: i[1] || (i[1] = (s) =>
|
|
686
|
+
const m = B("fm-text-field"), u = B("FmForm");
|
|
687
|
+
return Oe(), Ve(u, {
|
|
688
|
+
onValidationSuccess: i[1] || (i[1] = (s) => V(f)("primary"))
|
|
689
689
|
}, {
|
|
690
690
|
default: Pe(() => [
|
|
691
691
|
xe(m, {
|
|
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 || V(a)("menu.subcategory.dialog.add.name.required")],
|
|
695
695
|
autofocus: "",
|
|
696
|
-
label:
|
|
697
|
-
placeholder:
|
|
696
|
+
label: V(a)("menu.subcategory.dialog.add.name.label"),
|
|
697
|
+
placeholder: V(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 tt = We(
|
|
|
708
708
|
}) => {
|
|
709
709
|
const { t: o } = ne(), r = tt().updateMenu;
|
|
710
710
|
function f() {
|
|
711
|
-
const u =
|
|
711
|
+
const u = R(!1);
|
|
712
712
|
e.open({
|
|
713
713
|
title: o("menu.subcategory.manager.dialog.add.title"),
|
|
714
714
|
contentComponent: X,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import "./menu-
|
|
1
|
+
import { c as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-D94RDCY0.js";
|
|
2
|
+
import "./menu-BQpmW9K7.js";
|
|
3
3
|
var Z = {
|
|
4
4
|
defaultAmount: 0,
|
|
5
5
|
defaultCurrency: "USD",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineStore as Q } from "pinia";
|
|
2
2
|
import { defineComponent as T, computed as U, ref as h, watch as L, resolveComponent as V, createBlock as W, openBlock as F, withCtx as w, createVNode as m, createElementVNode as f, normalizeClass as H, 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 { a6 as P, a7 as te, a4 as B, J as k, Q as $, G as I, A as E, K as ne, a5 as ae, M as C, I as D, u as oe } from "./menu-
|
|
3
|
+
import { a6 as P, a7 as te, a4 as B, J as k, Q as $, G as I, A as E, K as ne, a5 as ae, M as C, I as D, u as oe } from "./menu-BQpmW9K7.js";
|
|
4
4
|
import { useI18n as N } 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";
|