@feedmepos/mf-menu 0.31.32-prod → 0.31.33-beta.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-NHdXEdrJ.js → App-B4rnpCXN.js} +20 -20
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-DoTx23iL.js → ApplyProduct.vue_vue_type_script_setup_true_lang-LtwWMoPW.js} +2 -2
- package/dist/{Catalog-B0fV6Yje.js → Catalog-Cd7J8de0.js} +5 -5
- package/dist/{Category-CJZs9I7F.js → Category-D3WDm9Fe.js} +5 -5
- package/dist/{Category-CUKZ10xq.js → Category-p8UUDEiv.js} +4 -4
- package/dist/{CookingGuide-kVclP--T.js → CookingGuide-hFtxmtGj.js} +3 -3
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-RI_d10bz.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-Cf17Iy5i.js} +1 -1
- package/dist/{Group-CAS6o4Fo.js → Group-BTrqZgFd.js} +3 -3
- package/dist/{Group-Bgkye2LL.js → Group-Bv0dyi8v.js} +1 -1
- package/dist/{Group.vue_vue_type_script_setup_true_lang-Bij0tGMP.js → Group.vue_vue_type_script_setup_true_lang-vk1J9IxK.js} +7 -7
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CUa_0qzX.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-B1wrLnf6.js} +3 -3
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-RsDAGQ3o.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-CxPaVLVu.js} +8336 -8695
- package/dist/{Ingredient-DpAPMsPZ.js → Ingredient-BCostN4Y.js} +3 -3
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-MoApzjt6.js → InventoryBinding.vue_vue_type_script_setup_true_lang-MAqpI7ZD.js} +2 -2
- package/dist/{LinkProductSideSheet-CEClo07H.js → LinkProductSideSheet-abzVzmo3.js} +1 -1
- package/dist/{MenuSetting-CoqMT8Vh.js → MenuSetting-TfAo82-E.js} +4 -4
- package/dist/{PrintRoute-DyJil1Hl.js → PrintRoute-B43rP5A9.js} +3 -3
- package/dist/{Product-BPIUTn0_.js → Product-C7cYyDHH.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-fjFGg49e.js → Product.vue_vue_type_script_setup_true_lang-BOq8wMzq.js} +11 -11
- package/dist/{ProductInternalTools-DXgWE6JU.js → ProductInternalTools-CkswVuAF.js} +6 -6
- package/dist/Products-C7BtAjhB.js +659 -0
- package/dist/{Publish-DDzpmm72.js → Publish-DIKqaH2f.js} +3 -3
- package/dist/{Recipe-DHYzO0IS.js → Recipe-_ApT00c_.js} +4 -4
- package/dist/{Scheduler-DBad2mO3.js → Scheduler-DWY1kKHO.js} +3 -3
- package/dist/{ServingSequence-DC7raAtF.js → ServingSequence-Z1S9zOTO.js} +3 -3
- package/dist/{Setting-CPjvUYU9.js → Setting-Bfuf26Gc.js} +4 -4
- package/dist/{Subcategory-DHjc7WeF.js → Subcategory-Lqq6XHz2.js} +4 -4
- package/dist/{Takeaway-CAIAHpA-.js → Takeaway-DGvM9SBP.js} +1 -1
- package/dist/{Takeaway-CJRTaygj.js → Takeaway-DiGzrarg.js} +4 -4
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-BNu9JjwH.js → Takeaway.vue_vue_type_script_setup_true_lang-BfWy217t.js} +5 -5
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-ZRv8Dg6x.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-B2wC_Mf0.js} +13 -13
- package/dist/{Unit-DSMSKE6_.js → Unit-D11rRFAf.js} +2 -2
- package/dist/{Variant-DMXxUWnj.js → Variant-LaKYPxDe.js} +3 -3
- package/dist/{_id_-CTq4qK7z.js → _id_-Q_Tyhr4U.js} +9 -9
- package/dist/{app-BTgdGTYz.js → app-Br9mC24D.js} +1 -1
- package/dist/{app-D23N7tJ0.js → app-C5UXrJGj.js} +24 -24
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/helper/import-export-utils.d.ts +123 -0
- package/dist/apps/mf-menu/src/helper/menuExport.d.ts +32 -0
- package/dist/apps/mf-menu/src/helper/{import-export.d.ts → menuImport.d.ts} +3 -127
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{linked-status-Cfc9wZst.js → linked-status-BhGrXd73.js} +7 -7
- package/dist/assets/{override-menu-BNZggtO_.js → override-menu-CUNDHOWA.js} +2 -2
- package/dist/assets/{validate-menu-CPwUvy9F.js → validate-menu-BqOizHsX.js} +2 -2
- package/dist/{catalog-DcciqmWK.js → catalog-BDyG_i9q.js} +1 -1
- package/dist/{catalogSetting-D4iwoJLb.js → catalogSetting-C33p_dck.js} +1 -1
- package/dist/{category-bhqVqDzJ.js → category-Bi6gpIYU.js} +1 -1
- package/dist/{currency-Clgvy00I.js → currency-DDseyYg1.js} +1 -1
- package/dist/{dayjs.min-DeSv8lfJ.js → dayjs.min-DoQgN0KD.js} +1 -1
- package/dist/{index-DZZJjEOs.js → index-C-zLHAG1.js} +1 -1
- package/dist/{index-CTUaJyIh.js → index-DTUmry92.js} +3 -3
- package/dist/{index-BHbYu_OM.js → index-DxrEwDTr.js} +2 -2
- package/dist/{item-DH1xf2Sa.js → item-DqXzPUy9.js} +373 -373
- package/dist/{jszip.min-CMM2HN8J.js → jszip.min-iAC5WNVU.js} +689 -689
- package/dist/{menu-DcGo3sn5.js → menu-Cir-22ei.js} +160 -160
- package/dist/{menu-Dx39P1vR.js → menu-D6df9rcz.js} +1 -1
- package/dist/{priceTier-3M5cxSYX.js → priceTier-C56BYecC.js} +1 -1
- package/dist/{scheduler-BT3EJBK6.js → scheduler-DCSpt65t.js} +3 -3
- package/dist/{subcategory-B5atmACN.js → subcategory-CydaPy_X.js} +39 -39
- package/dist/{toExcel-BLoj4Wqb.js → toExcel-Bil8CwJs.js} +15 -15
- package/dist/{unit-BsNOQHvZ.js → unit-8DyuBx-X.js} +1 -1
- package/package.json +1 -1
- package/dist/Products-dWmgQ_di.js +0 -270
|
@@ -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-Cir-22ei.js";
|
|
5
5
|
const v = /* @__PURE__ */ d({
|
|
6
6
|
__name: "AddPriceGroupDialog",
|
|
7
7
|
setup(s) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent as ie, computed as Y, resolveComponent as _, createElementBlock as d, openBlock as u, createVNode as t, createCommentVNode as F, unref as n, toDisplayString as A, createElementVNode as h, withCtx as v, Fragment as N, renderList as M, createBlock as I, ref as H, Transition as se, createTextVNode as me } from "vue";
|
|
2
|
-
import { H as S, G as r, u as pe, I as ve, J as ue } from "./menu-
|
|
2
|
+
import { H as S, G as r, u as pe, I as ve, J as ue } from "./menu-Cir-22ei.js";
|
|
3
3
|
import { useI18n as de } from "@feedmepos/mf-common";
|
|
4
4
|
import { components as _e } from "@feedmepos/ui-library";
|
|
5
5
|
import { _ as fe } from "./FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js";
|
|
6
6
|
import { _ as ne } from "./FormSection.vue_vue_type_script_setup_true_lang-CO4YGYLB.js";
|
|
7
7
|
import { u as ye } from "./discardConfirm-BHni0LNu.js";
|
|
8
|
-
import { u as he } from "./menu-
|
|
9
|
-
import { L as ge } from "./LinkProductSideSheet-
|
|
8
|
+
import { u as he } from "./menu-D6df9rcz.js";
|
|
9
|
+
import { L as ge } from "./LinkProductSideSheet-abzVzmo3.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 Q, ref as T, computed as h, shallowReactive as Fe, effectScope as Re, watch as
|
|
2
|
-
import { H as k, B as O, ak as
|
|
1
|
+
import { shallowRef as Q, ref as T, computed as h, shallowReactive as Fe, effectScope as Re, watch as q, defineComponent as Te, resolveComponent as G, 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 z, J as S, I as ee, aa as M, c as D, Y as w, aj as L, am as Pe, an as Ae, A as Ue, ac as Ke, ao as De, ap as $e, a9 as He, u as qe } from "./menu-Cir-22ei.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
5
|
import { defineStore as We } from "pinia";
|
|
6
|
-
const je = "/assets/linked-status-
|
|
7
|
-
function
|
|
6
|
+
const je = "/assets/linked-status-BhGrXd73.js", Ge = "/assets/override-menu-CUNDHOWA.js";
|
|
7
|
+
function ze(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 Le(e, n, a, o) {
|
|
13
|
-
const r = k(n), m = a ? r.modules.catalog.find((g) => g._id === a) : null, l = o ? r.modules.scheduler.find((g) => g._id === o) : null, i = m ? k(m) : 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] =
|
|
13
|
+
const r = k(n), m = a ? r.modules.catalog.find((g) => g._id === a) : null, l = o ? r.modules.scheduler.find((g) => g._id === o) : null, i = m ? k(m) : 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] = ze(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
|
+
...z(),
|
|
39
39
|
modules: {
|
|
40
|
-
...
|
|
40
|
+
...z().modules,
|
|
41
41
|
catalog: r.modules.catalog,
|
|
42
42
|
item: r.modules.item,
|
|
43
43
|
group: r.modules.group,
|
|
@@ -118,7 +118,7 @@ function Y(e, n) {
|
|
|
118
118
|
}), r;
|
|
119
119
|
}), a;
|
|
120
120
|
}
|
|
121
|
-
function
|
|
121
|
+
function Xe(e, n) {
|
|
122
122
|
const a = e.items[n._id];
|
|
123
123
|
n.variant && (n.variant = {
|
|
124
124
|
...n.variant,
|
|
@@ -162,7 +162,7 @@ async function dt(e, n, a, o, r, m = !0) {
|
|
|
162
162
|
return n.map((p) => {
|
|
163
163
|
const g = p._id, y = d[g];
|
|
164
164
|
return {
|
|
165
|
-
...
|
|
165
|
+
...Xe(s, y),
|
|
166
166
|
category: o || r ? y == null ? void 0 : y.category : null
|
|
167
167
|
};
|
|
168
168
|
});
|
|
@@ -185,7 +185,7 @@ async function ft(e, n) {
|
|
|
185
185
|
const a = `${e._id}-${e.updatedAt}-${n}`;
|
|
186
186
|
if ($.has(a))
|
|
187
187
|
return $.get(a);
|
|
188
|
-
const o = await
|
|
188
|
+
const o = await Z(
|
|
189
189
|
je,
|
|
190
190
|
JSON.stringify({
|
|
191
191
|
menu: e,
|
|
@@ -195,7 +195,7 @@ async function ft(e, n) {
|
|
|
195
195
|
return $.set(a, o), o;
|
|
196
196
|
}
|
|
197
197
|
async function ne(e, n, a) {
|
|
198
|
-
return await
|
|
198
|
+
return await Z(Ge, {
|
|
199
199
|
menu: e,
|
|
200
200
|
catalogId: n,
|
|
201
201
|
schedulerId: a
|
|
@@ -231,13 +231,13 @@ function _t(e, n, a) {
|
|
|
231
231
|
}
|
|
232
232
|
return r(n, a);
|
|
233
233
|
}
|
|
234
|
-
const
|
|
234
|
+
const H = /* @__PURE__ */ new Map();
|
|
235
235
|
async function Qe(e, n, a) {
|
|
236
236
|
const o = `${e._id}-${e.updatedAt}-${n || "null"}-${a || "null"}`;
|
|
237
|
-
if (
|
|
238
|
-
return
|
|
237
|
+
if (H.has(o))
|
|
238
|
+
return H.get(o);
|
|
239
239
|
const r = await ne(e, n, a);
|
|
240
|
-
return
|
|
240
|
+
return H.set(o, r), r;
|
|
241
241
|
}
|
|
242
242
|
async function gt(e, n, a) {
|
|
243
243
|
var l, i;
|
|
@@ -265,7 +265,7 @@ async function gt(e, n, a) {
|
|
|
265
265
|
}
|
|
266
266
|
return r;
|
|
267
267
|
}
|
|
268
|
-
function
|
|
268
|
+
function Ze({
|
|
269
269
|
maxHistorySize: e = 50
|
|
270
270
|
}) {
|
|
271
271
|
const n = Q([]), a = T(-1), o = h(() => a.value > 0), r = h(() => a.value < n.value.length - 1);
|
|
@@ -353,7 +353,7 @@ const nt = We(
|
|
|
353
353
|
(t) => t._id === e.currentSchedulerId
|
|
354
354
|
));
|
|
355
355
|
function s(t, c = !0) {
|
|
356
|
-
e.menu = { ...t, _rev: e.menu._rev }, c &&
|
|
356
|
+
e.menu = { ...t, _rev: e.menu._rev }, c && E.push(e.menu);
|
|
357
357
|
}
|
|
358
358
|
const p = Q(oe()), g = T(!1), y = T(1);
|
|
359
359
|
async function b() {
|
|
@@ -375,7 +375,7 @@ const nt = We(
|
|
|
375
375
|
}
|
|
376
376
|
const V = ee.debounce(b, 200);
|
|
377
377
|
Re(!0).run(() => {
|
|
378
|
-
|
|
378
|
+
q(
|
|
379
379
|
() => [e.menu, e.currentCatalogId, e.currentSchedulerId],
|
|
380
380
|
() => {
|
|
381
381
|
g.value || V();
|
|
@@ -401,11 +401,11 @@ const nt = We(
|
|
|
401
401
|
position: 0
|
|
402
402
|
}
|
|
403
403
|
] : [],
|
|
404
|
-
...
|
|
404
|
+
...w(t, (c) => c.name)
|
|
405
405
|
];
|
|
406
406
|
}), re = h(() => {
|
|
407
407
|
const t = p.value.modules.subCategory || [];
|
|
408
|
-
return
|
|
408
|
+
return w(t, (c) => c.name);
|
|
409
409
|
}), W = h(() => {
|
|
410
410
|
var c;
|
|
411
411
|
let t = p.value.modules.item;
|
|
@@ -419,13 +419,13 @@ const nt = We(
|
|
|
419
419
|
return (_ == null ? void 0 : _.orderFrom) !== I.F_ORDER_FROM.enum.NONE;
|
|
420
420
|
});
|
|
421
421
|
}
|
|
422
|
-
return
|
|
422
|
+
return w(t, (f) => f.code || f.name);
|
|
423
423
|
}), ae = h(() => {
|
|
424
|
-
const t = e.menu.modules.category, c =
|
|
424
|
+
const t = e.menu.modules.category, c = w(t, (v) => v.name).reduce(
|
|
425
425
|
(v, _, C) => (v[_._id] = C, v),
|
|
426
426
|
{ "": 0 }
|
|
427
427
|
), f = e.menu.modules.item;
|
|
428
|
-
return
|
|
428
|
+
return w(
|
|
429
429
|
f,
|
|
430
430
|
(v) => v.code || v.name
|
|
431
431
|
).reduce((v, _, C) => (v[_._id] = C + c[_.category || ""], v), {});
|
|
@@ -451,7 +451,7 @@ const nt = We(
|
|
|
451
451
|
const c = t.map((v) => A.value.find((_) => _._id === v)).filter((v) => !!v);
|
|
452
452
|
return O.fullVariantCombination(c).reduce((v, _) => (v[_.combinationKey] = _.selectionName.join(" / "), v), {});
|
|
453
453
|
}
|
|
454
|
-
const ce = h(() =>
|
|
454
|
+
const ce = h(() => w(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"
|
|
456
456
|
})), me = h(() => M(e.menu.modules.unit, { selector: "name" })), fe = h(() => M(Pe(e.menu.modules.recipe, e.menu.modules.sku), {
|
|
457
457
|
selector: "name"
|
|
@@ -553,7 +553,7 @@ const nt = We(
|
|
|
553
553
|
countryTaxOptions: f
|
|
554
554
|
};
|
|
555
555
|
}), he = async () => {
|
|
556
|
-
const t = await
|
|
556
|
+
const t = await He.readMenu();
|
|
557
557
|
e.menu = t ?? e.menu, j(null);
|
|
558
558
|
}, be = async () => {
|
|
559
559
|
const { fetchAllRestaurants: t } = $e();
|
|
@@ -592,7 +592,7 @@ const nt = We(
|
|
|
592
592
|
message: _
|
|
593
593
|
});
|
|
594
594
|
}
|
|
595
|
-
},
|
|
595
|
+
}, Ee = async (t) => {
|
|
596
596
|
const c = {
|
|
597
597
|
...e.menu,
|
|
598
598
|
masterCatalogSetting: t.masterCatalogSetting,
|
|
@@ -600,7 +600,7 @@ const nt = We(
|
|
|
600
600
|
priceTierSettings: t.priceTierSettings
|
|
601
601
|
};
|
|
602
602
|
return s(c), c;
|
|
603
|
-
},
|
|
603
|
+
}, E = Ze({ maxHistorySize: 50 }), we = h(() => E.canUndo.value), Ie = h(() => E.canRedo.value);
|
|
604
604
|
return {
|
|
605
605
|
state: e,
|
|
606
606
|
// loading state
|
|
@@ -641,7 +641,7 @@ const nt = We(
|
|
|
641
641
|
selectScheduler: Ce,
|
|
642
642
|
selectCategory: Me,
|
|
643
643
|
updateMenu: Se,
|
|
644
|
-
updateMenuSetting:
|
|
644
|
+
updateMenuSetting: Ee,
|
|
645
645
|
computeMergedMenu: b,
|
|
646
646
|
// helper
|
|
647
647
|
encodeTax: K,
|
|
@@ -649,36 +649,36 @@ const nt = We(
|
|
|
649
649
|
getSelectedTax: ve,
|
|
650
650
|
mapVariant: ie,
|
|
651
651
|
// history
|
|
652
|
-
canUndoHistory:
|
|
652
|
+
canUndoHistory: we,
|
|
653
653
|
canRedoHistory: Ie,
|
|
654
654
|
undoHistory: () => {
|
|
655
|
-
const t =
|
|
655
|
+
const t = E.undo();
|
|
656
656
|
t && s(t, !1);
|
|
657
657
|
},
|
|
658
658
|
redoHistory: () => {
|
|
659
|
-
const t =
|
|
659
|
+
const t = E.redo();
|
|
660
660
|
t && s(t, !1);
|
|
661
661
|
},
|
|
662
662
|
clearHistory: () => {
|
|
663
|
-
|
|
663
|
+
E.clear();
|
|
664
664
|
}
|
|
665
665
|
};
|
|
666
666
|
}
|
|
667
|
-
),
|
|
667
|
+
), X = /* @__PURE__ */ Te({
|
|
668
668
|
__name: "AddSubcategoryDialogContentComponent",
|
|
669
669
|
props: {
|
|
670
670
|
initialValue: {}
|
|
671
671
|
},
|
|
672
672
|
setup(e) {
|
|
673
673
|
const n = e, { t: a } = te();
|
|
674
|
-
|
|
674
|
+
q(
|
|
675
675
|
() => n.initialValue,
|
|
676
676
|
(l) => {
|
|
677
677
|
o.value = l ?? "";
|
|
678
678
|
}
|
|
679
679
|
);
|
|
680
680
|
const o = T(n.initialValue), { emitData: r, emitAction: m } = Be();
|
|
681
|
-
return
|
|
681
|
+
return q(
|
|
682
682
|
o,
|
|
683
683
|
(l) => {
|
|
684
684
|
r(l);
|
|
@@ -687,7 +687,7 @@ const nt = We(
|
|
|
687
687
|
immediate: !0
|
|
688
688
|
}
|
|
689
689
|
), (l, i) => {
|
|
690
|
-
const d =
|
|
690
|
+
const d = G("fm-text-field"), u = G("FmForm");
|
|
691
691
|
return Ne(), Ve(u, {
|
|
692
692
|
onValidationSuccess: i[1] || (i[1] = (s) => N(m)("primary"))
|
|
693
693
|
}, {
|
|
@@ -715,7 +715,7 @@ const nt = We(
|
|
|
715
715
|
const u = T(!1);
|
|
716
716
|
e.open({
|
|
717
717
|
title: o("menu.subcategory.manager.dialog.add.title"),
|
|
718
|
-
contentComponent:
|
|
718
|
+
contentComponent: X,
|
|
719
719
|
primaryActions: {
|
|
720
720
|
text: o("menu.subcategory.manager.dialog.add.action"),
|
|
721
721
|
close: !1,
|
|
@@ -734,7 +734,7 @@ const nt = We(
|
|
|
734
734
|
operation: S.F_OPERATION_TYPE.create,
|
|
735
735
|
data: {
|
|
736
736
|
name: s,
|
|
737
|
-
position:
|
|
737
|
+
position: qe().subcategories.length
|
|
738
738
|
}
|
|
739
739
|
};
|
|
740
740
|
a ? await r(p) : await n.updateMenu(p, s), e.close();
|
|
@@ -746,7 +746,7 @@ const nt = We(
|
|
|
746
746
|
function l(u) {
|
|
747
747
|
e.open({
|
|
748
748
|
title: o("menu.subcategory.manager.dialog.update.title"),
|
|
749
|
-
contentComponent:
|
|
749
|
+
contentComponent: X,
|
|
750
750
|
contentComponentProps: {
|
|
751
751
|
initialValue: u.name
|
|
752
752
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./menu-
|
|
1
|
+
import { d as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-CxPaVLVu.js";
|
|
2
|
+
import "./menu-Cir-22ei.js";
|
|
3
3
|
var Z = {
|
|
4
4
|
defaultAmount: 0,
|
|
5
5
|
defaultCurrency: "USD",
|
|
@@ -716,12 +716,12 @@ var d = q(), mt = function t(i) {
|
|
|
716
716
|
allocate: function(o) {
|
|
717
717
|
var s = this;
|
|
718
718
|
dt(o);
|
|
719
|
-
for (var l = o.reduce(function(O,
|
|
720
|
-
return d.add(O,
|
|
719
|
+
for (var l = o.reduce(function(O, D) {
|
|
720
|
+
return d.add(O, D);
|
|
721
721
|
}), m = this.getAmount(), A = o.map(function(O) {
|
|
722
|
-
var
|
|
723
|
-
return m = d.subtract(m,
|
|
724
|
-
amount:
|
|
722
|
+
var D = Math.floor(d.divide(d.multiply(s.getAmount(), O), l));
|
|
723
|
+
return m = d.subtract(m, D), f.call(s, {
|
|
724
|
+
amount: D
|
|
725
725
|
});
|
|
726
726
|
}), y = 0; m > 0; )
|
|
727
727
|
o[y] > 0 && (A[y] = A[y].add(f.call(this, {
|
|
@@ -835,7 +835,7 @@ var d = q(), mt = function t(i) {
|
|
|
835
835
|
* @return {Promise}
|
|
836
836
|
*/
|
|
837
837
|
convert: function(o) {
|
|
838
|
-
var s = this, l = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, m = l.endpoint, A = m === void 0 ? M.endpoint : m, y = l.propertyPath, O = y === void 0 ? M.propertyPath || "rates.{{to}}" : y,
|
|
838
|
+
var s = this, l = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, m = l.endpoint, A = m === void 0 ? M.endpoint : m, y = l.propertyPath, O = y === void 0 ? M.propertyPath || "rates.{{to}}" : y, D = l.headers, V = D === void 0 ? M.headers : D, L = l.roundingMode, X = L === void 0 ? g : L, j = Object.assign({}, {
|
|
839
839
|
endpoint: A,
|
|
840
840
|
propertyPath: O,
|
|
841
841
|
headers: V,
|
|
@@ -1251,7 +1251,7 @@ var d = q(), mt = function t(i) {
|
|
|
1251
1251
|
return this.toObject();
|
|
1252
1252
|
}
|
|
1253
1253
|
};
|
|
1254
|
-
},
|
|
1254
|
+
}, b = Object.assign(mt, Z, J, tt), S = /* @__PURE__ */ ((t) => (t.PRODUCT_PRICE = "PRODUCT_PRICE", t.PRODUCT_VARIANT_PRICE = "PRODUCT_VARIANT_PRICE", t.PRODUCT_ORDER_FROM = "PRODUCT_ORDER_FROM", t.PRODUCT_NAME = "PRODUCT_NAME", t.PRODUCT_SCHEDULE = "PRODUCT_SCHEDULE", t.PRODUCT_SCHEDULE_PRICE = "PRODUCT_SCHEDULE_PRICE", t.PRODUCT_CODE = "PRODUCT_CODE", t.PRODUCT_VARIANT_CODE = "PRODUCT_VARIANT_CODE", t.PRODUCT_VARIANT_SCHEDULE_PRICE = "PRODUCT_VARIANT_SCHEDULE_PRICE", t.ADDON_AVAILABLE = "ADDON_AVAILABLE", t.ADDON_NAME = "ADDON_NAME", t.ADDON_PRICE = "ADDON_PRICE", t.ADDON_VARIANT_PRICE = "ADDON_VARIANT_PRICE", t.ADDON_ORDER_FROM = "ADDON_ORDER_FROM", t))(S || {});
|
|
1255
1255
|
function h(t) {
|
|
1256
1256
|
return t = t.split("/").map((i) => {
|
|
1257
1257
|
const n = i.split("_");
|
|
@@ -1285,7 +1285,7 @@ function gt(t, i = !1) {
|
|
|
1285
1285
|
variantKey: "",
|
|
1286
1286
|
variant: "",
|
|
1287
1287
|
vcStatus: "",
|
|
1288
|
-
price:
|
|
1288
|
+
price: b(e.price).toFormat("0.00"),
|
|
1289
1289
|
perXUnit: e.unit ? ((u = e.perXUnit) == null ? void 0 : u.toString()) ?? "" : "",
|
|
1290
1290
|
unit: e.unit || "",
|
|
1291
1291
|
categoryName: (r == null ? void 0 : r.name) ?? "",
|
|
@@ -1300,7 +1300,7 @@ function gt(t, i = !1) {
|
|
|
1300
1300
|
variantKey: h(p.combinationKey),
|
|
1301
1301
|
variant: p.selectionName.join("/"),
|
|
1302
1302
|
vcStatus: p.active ? "active" : "inactive",
|
|
1303
|
-
price: p.price ?
|
|
1303
|
+
price: p.price ? b(p.price).toFormat("0.00") : b(e.price).toFormat("0.00"),
|
|
1304
1304
|
perXUnit: e.unit ? ((g = e.perXUnit) == null ? void 0 : g.toString()) ?? "" : "",
|
|
1305
1305
|
unit: e.unit || "",
|
|
1306
1306
|
categoryName: (r == null ? void 0 : r.name) ?? "",
|
|
@@ -1327,17 +1327,17 @@ function gt(t, i = !1) {
|
|
|
1327
1327
|
) : null;
|
|
1328
1328
|
f && v ? r = {
|
|
1329
1329
|
...r,
|
|
1330
|
-
[`${u.name} (${h(u._id)})`]:
|
|
1330
|
+
[`${u.name} (${h(u._id)})`]: b(
|
|
1331
1331
|
v.value
|
|
1332
1332
|
).toFormat("0.00")
|
|
1333
1333
|
} : f && !v && (l != null && l.price) ? r = {
|
|
1334
1334
|
...r,
|
|
1335
|
-
[`${u.name} (${h(u._id)})`]:
|
|
1335
|
+
[`${u.name} (${h(u._id)})`]: b(
|
|
1336
1336
|
l.price
|
|
1337
1337
|
).toFormat("0.00")
|
|
1338
1338
|
} : f && !v && !(l != null && l.price) && c ? r = {
|
|
1339
1339
|
...r,
|
|
1340
|
-
[`${u.name} (${h(u._id)})`]:
|
|
1340
|
+
[`${u.name} (${h(u._id)})`]: b(
|
|
1341
1341
|
c.value
|
|
1342
1342
|
).toFormat("0.00")
|
|
1343
1343
|
} : f && !v && !(l != null && l.price) && !c ? r = {
|
|
@@ -1345,7 +1345,7 @@ function gt(t, i = !1) {
|
|
|
1345
1345
|
[`${u.name} (${h(u._id)})`]: e.price
|
|
1346
1346
|
} : !f && c ? r = {
|
|
1347
1347
|
...r,
|
|
1348
|
-
[`${u.name} (${h(u._id)})`]:
|
|
1348
|
+
[`${u.name} (${h(u._id)})`]: b(
|
|
1349
1349
|
c.value
|
|
1350
1350
|
).toFormat("0.00")
|
|
1351
1351
|
} : r = {
|
|
@@ -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-Cir-22ei.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";
|