@feedmepos/mf-menu 0.32.66-dev.3 → 0.32.66
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-bCL9DMmd.js → App-CLFnWEv5.js} +8 -8
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-CnoYMg6T.js → ApplyProduct.vue_vue_type_script_setup_true_lang-CVlLKIvY.js} +3 -3
- package/dist/{ApplyProductDialog.vue_vue_type_script_setup_true_lang-Ccw08-Uw.js → ApplyProductDialog.vue_vue_type_script_setup_true_lang-CifmNu2u.js} +3 -3
- package/dist/{Catalog-Ds6GYriM.js → Catalog-BC3jLsPs.js} +6 -6
- package/dist/{Category-CnFL0t4m.js → Category-Bmwlq6nL.js} +4 -4
- package/dist/{Category-DY_XSrsn.js → Category-DMkvEdKc.js} +4 -4
- package/dist/{CookingGuide-BTk8BaAd.js → CookingGuide-qy0LTm-D.js} +5 -5
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-BgI4r-xU.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-JiZiBeEH.js} +1 -1
- package/dist/{Group-BSMIM376.js → Group-BPwmyZZp.js} +1 -1
- package/dist/{Group-860k7lB8.js → Group-D0Xv55no.js} +3 -3
- package/dist/{Group.vue_vue_type_script_setup_true_lang-DWA-dDCM.js → Group.vue_vue_type_script_setup_true_lang-D8nAO7h0.js} +7 -7
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-dKJjPwe3.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CjEnnnQj.js} +5 -5
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-H2rtSZTK.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-DMzqbxts.js} +7 -7
- package/dist/{Ingredient-BYDjOmNr.js → Ingredient-BqaX4rlX.js} +4 -4
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-Bdhyk7wJ.js → InventoryBinding.vue_vue_type_script_setup_true_lang-sKJRkcCq.js} +2 -2
- package/dist/{LinkProductSideSheet-CQS8yW-C.js → LinkProductSideSheet-C6R0KLzF.js} +4 -4
- package/dist/{MenuSetting-BmK8AlkW.js → MenuSetting-BedGpIZE.js} +7 -7
- package/dist/{OrderPacing-TJ6ZYLYV.js → OrderPacing-C7i8LWNy.js} +5 -5
- package/dist/{PrintRoute-CR9yyKNK.js → PrintRoute-CIuQv57y.js} +5 -5
- package/dist/{Product-UVz9VsGm.js → Product-DRcYcCoB.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-DaUlfmGn.js → Product.vue_vue_type_script_setup_true_lang-C1jETJyk.js} +14 -14
- package/dist/{ProductInternalTools-D-SOeCcO.js → ProductInternalTools-BKZ3Z3o8.js} +7 -7
- package/dist/{Products-DhNIR6E7.js → Products-BOz9WFoU.js} +62 -62
- package/dist/Publish-COiwVeUS.js +1532 -0
- package/dist/{Recipe-uwZYJm_N.js → Recipe-DNFAMy0c.js} +5 -5
- package/dist/{RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-CF-r4vAJ.js → RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-B8P0xkMT.js} +1 -1
- package/dist/{RuleView.vue_vue_type_script_setup_true_lang-BfdS-xS1.js → RuleView.vue_vue_type_script_setup_true_lang-DxpvosGG.js} +462 -462
- package/dist/{Scheduler-B1_i4bRR.js → Scheduler-DFc4fCB9.js} +3 -3
- package/dist/{ServingSequence-B7TO7rNV.js → ServingSequence-DjIUv0-b.js} +124 -121
- package/dist/{Setting-ByrEh4BA.js → Setting-DnTMpvqy.js} +5 -5
- package/dist/{Subcategory-BWqzLw-d.js → Subcategory-B3HfpruL.js} +6 -6
- package/dist/{Takeaway-BJpHwTck.js → Takeaway-CCJDLPwz.js} +4 -4
- package/dist/{Takeaway-BDtDA3Oz.js → Takeaway-DYoO1ATi.js} +1 -1
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-DaqAIPrd.js → Takeaway.vue_vue_type_script_setup_true_lang-B8RUqBww.js} +5 -5
- package/dist/{TranslationFieldSection.vue_vue_type_script_setup_true_lang-Ctua4piB.js → TranslationFieldSection.vue_vue_type_script_setup_true_lang-D1gjP1Yk.js} +1 -1
- package/dist/{TranslationSideSheet.vue_vue_type_script_setup_true_lang-CaIv_N0Y.js → TranslationSideSheet.vue_vue_type_script_setup_true_lang-Cixm7NMC.js} +2 -2
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BXJsNMO4.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-CNs2BM3V.js} +15 -15
- package/dist/{Unit-CztcKfU8.js → Unit-DTswZFER.js} +2 -2
- package/dist/{Variant-DoKsw2Kp.js → Variant-hqEsHL1u.js} +3 -3
- package/dist/{_id_-Bm8i0F1E.js → _id_-CGEwOGPW.js} +10 -10
- package/dist/{app-Du5OtlE9.js → app-Bl1kXtqs.js} +1 -1
- package/dist/{app-BGCDoU-0.js → app-Da1XriaA.js} +37 -37
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/app.d.ts +10 -0
- package/dist/apps/mf-menu/src/stores/menu.d.ts +2 -0
- package/dist/apps/mf-menu/src/views/Publish/publishStatus.d.ts +27 -0
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{linked-status-CGYWO8Yo.js → linked-status-BvskCt3K.js} +2 -2
- package/dist/assets/{menu-export-D32WVYBV.js → menu-export-Do1iuDTl.js} +3 -3
- package/dist/assets/{override-menu-B2muNR2b.js → override-menu-6Z3zlZar.js} +2 -2
- package/dist/assets/{validate-menu-DRc93ut_.js → validate-menu-B5dZxzSc.js} +2 -2
- package/dist/{catalog-B1szIMSS.js → catalog-UnHoIEYX.js} +1 -1
- package/dist/{catalogSetting-D317tpwX.js → catalogSetting-DNkG_w_s.js} +1 -1
- package/dist/{currency-DDMkadDP.js → currency-DI_9wOEf.js} +1 -1
- package/dist/{dayjs.min-BAfSpgzt.js → dayjs.min-B1nGfqJL.js} +2 -2
- package/dist/{discardConfirm-ulS7oH8I.js → discardConfirm-C65bh13g.js} +1 -1
- package/dist/{index-ClAWU743.js → index-CJoXwoxN.js} +5 -5
- package/dist/{index-DVh6Gi2K.js → index-Uv8d5BUd.js} +1 -1
- package/dist/{index-BNCGppNp.js → index-rj_-6l1M.js} +6 -6
- package/dist/{index.vue_vue_type_script_setup_true_lang-Cf2AKbC7.js → index.vue_vue_type_script_setup_true_lang-BRtju05_.js} +9291 -9250
- package/dist/{item-D3jvuhGD.js → item-Cl-8exj2.js} +20 -20
- package/dist/{jszip.min-t1qkoubE.js → jszip.min-5yjRwCyp.js} +167 -167
- package/dist/{linkProducts-IK0-iQJR.js → linkProducts-CimT6rLW.js} +4 -4
- package/dist/{memberPricing-DagiXBzk.js → memberPricing-CZwLOzMR.js} +1 -1
- package/dist/{menu-B-BBAQKK.js → menu-C4c62Xvw.js} +1 -1
- package/dist/{menuV2-0X1EYaDt.js → menuV2-BxVmtfZ3.js} +42 -42
- package/dist/{order_pacing-Cz0wFd_o.js → order_pacing-C0bYumFm.js} +5 -5
- package/dist/{priceTier-DBzOsSgm.js → priceTier-C08rb71L.js} +1 -1
- package/dist/{rules-C6WjUylO.js → rules-DEd-yB4f.js} +3 -3
- package/dist/{scheduler-aKSniDdK.js → scheduler-B_-N10Gf.js} +5 -5
- package/dist/{toExcel-SxxuXoXI.js → toExcel-Ca_J-aHT.js} +2 -2
- package/dist/{unit-CltVM3dM.js → unit-CDMOEbey.js} +3 -3
- package/package.json +1 -1
- package/dist/Publish-CsjlWTjc.js +0 -1434
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { computed as m } from "vue";
|
|
2
|
-
import { F, g as h, h as S, b as v, i as C, k as N, T, u as P, c as z } from "./index.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { u as R } from "./menuV2-
|
|
4
|
-
import { C as w, h as E } from "./catalog-
|
|
2
|
+
import { F, g as h, h as S, b as v, i as C, k as N, T, u as P, c as z } from "./index.vue_vue_type_script_setup_true_lang-BRtju05_.js";
|
|
3
|
+
import { u as R } from "./menuV2-BxVmtfZ3.js";
|
|
4
|
+
import { C as w, h as E } from "./catalog-UnHoIEYX.js";
|
|
5
5
|
import { useSnackbar as O, useDialog as A } from "@feedmepos/ui-library";
|
|
6
|
-
import { a as b } from "./LinkProductSideSheet-
|
|
6
|
+
import { a as b } from "./LinkProductSideSheet-C6R0KLzF.js";
|
|
7
7
|
function D() {
|
|
8
8
|
const e = R(), p = m(() => e.categorizedRawMenuItems.filter((o) => o.items.length > 0)), l = m(() => {
|
|
9
9
|
const o = e.currentCatalog;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as d, ref as _, watch as S, resolveComponent as b, createBlock as f, openBlock as y, unref as M, computed as T } from "vue";
|
|
2
|
-
import { u as h, b as w } from "./index.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { u as h, b as w } from "./index.vue_vue_type_script_setup_true_lang-BRtju05_.js";
|
|
3
3
|
import { useI18n as l } from "@feedmepos/mf-common";
|
|
4
4
|
import { useDialogChild as x, useDialog as C, useSnackbar as P } from "@feedmepos/ui-library";
|
|
5
5
|
const k = /* @__PURE__ */ d({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { computed as n, onMounted as d, onBeforeUnmount as m } from "vue";
|
|
2
|
-
import { u as c } from "./index.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { u as c } from "./index.vue_vue_type_script_setup_true_lang-BRtju05_.js";
|
|
3
3
|
import "@feedmepos/mf-common";
|
|
4
4
|
import "@feedmepos/ui-library";
|
|
5
5
|
function p() {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
var We = Object.defineProperty;
|
|
2
2
|
var Le = (e, t, n) => t in e ? We(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var ne = (e, t, n) => Le(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
-
import { l as ae } from "./discardConfirm-
|
|
4
|
+
import { l as ae } from "./discardConfirm-C65bh13g.js";
|
|
5
5
|
import { defineStore as qe } from "pinia";
|
|
6
6
|
import { shallowRef as N, ref as B, computed as S, shallowReactive as ze, effectScope as Be, watch as He } from "vue";
|
|
7
|
-
import { d as C, f as ue, m as T, k as ie, aq as re, g as H, O as x, c as L, s as V, X as oe, ar as Ge, as as
|
|
7
|
+
import { d as C, f as ue, m as T, k as ie, aq as re, g as H, O as x, c as L, s as V, X as oe, ar as Ge, as as Je, a as Ye, Q as Ze, at as Qe, au as Xe, M as et } from "./index.vue_vue_type_script_setup_true_lang-BRtju05_.js";
|
|
8
8
|
import { useCoreStore as se } from "@feedmepos/mf-common";
|
|
9
9
|
import { useSnackbar as tt } from "@feedmepos/ui-library";
|
|
10
10
|
function nt(e) {
|
|
@@ -16,7 +16,7 @@ function nt(e) {
|
|
|
16
16
|
}
|
|
17
17
|
return delete t.variant, delete t.thumbnail, delete t.images, [t, ...n || []];
|
|
18
18
|
}
|
|
19
|
-
const rt = "/assets/linked-status-
|
|
19
|
+
const rt = "/assets/linked-status-BvskCt3K.js", ot = "/assets/override-menu-6Z3zlZar.js";
|
|
20
20
|
function st(e, t, n, s) {
|
|
21
21
|
const r = C(t), u = n ? r.modules.catalog.find((f) => f._id === n) : null, c = s ? r.modules.scheduler.find((f) => f._id === s) : null, a = u ? C(u) : void 0, d = n ? r.modules.catalog.filter((f) => f._id !== n) : [], l = c ? C(c) : void 0, g = e.reduce((f, v) => (f[v._id] = nt(v), f), {});
|
|
22
22
|
function y(f = []) {
|
|
@@ -231,7 +231,7 @@ async function Pt(e, t, n) {
|
|
|
231
231
|
const y = (a = d.items) == null ? void 0 : a.filter((v) => v._id === n && v.combinationKey), f = [l, ...y].map((v) => {
|
|
232
232
|
var M, I;
|
|
233
233
|
const p = v.combinationKey ? (I = (M = g == null ? void 0 : g.variant) == null ? void 0 : M.variantCombinations) == null ? void 0 : I.find(
|
|
234
|
-
(
|
|
234
|
+
(k) => k.combinationKey === v.combinationKey
|
|
235
235
|
) : g, b = p && g ? u(g, p) : v;
|
|
236
236
|
return u(b, v);
|
|
237
237
|
});
|
|
@@ -269,7 +269,7 @@ function O(e) {
|
|
|
269
269
|
function $(e) {
|
|
270
270
|
return e instanceof RegExp ? e.toString() : e;
|
|
271
271
|
}
|
|
272
|
-
function
|
|
272
|
+
function E(e) {
|
|
273
273
|
return typeof e == "object" && e !== null && !Array.isArray(e) && !(e instanceof Date) && !(e instanceof RegExp);
|
|
274
274
|
}
|
|
275
275
|
function P(e, t) {
|
|
@@ -285,7 +285,7 @@ function P(e, t) {
|
|
|
285
285
|
if (!P(e[n], t[n])) return !1;
|
|
286
286
|
return !0;
|
|
287
287
|
}
|
|
288
|
-
if (
|
|
288
|
+
if (E(e) && E(t)) {
|
|
289
289
|
const n = Object.keys(e), s = Object.keys(t);
|
|
290
290
|
if (n.length !== s.length) return !1;
|
|
291
291
|
for (const r of n)
|
|
@@ -319,7 +319,7 @@ function dt(e, t, n) {
|
|
|
319
319
|
const s = { _t: "a" }, r = ((f = n == null ? void 0 : n.arrays) == null ? void 0 : f.detectMove) !== !1, u = ((v = n == null ? void 0 : n.arrays) == null ? void 0 : v.includeValueOnMove) === !0, c = n == null ? void 0 : n.objectHash;
|
|
320
320
|
let a = r ? lt(e, t, c) : [];
|
|
321
321
|
if (!c && e.length === t.length && e.length > 0 && a.length < e.length) {
|
|
322
|
-
const p =
|
|
322
|
+
const p = E(e[0]) || Array.isArray(e[0]), b = a.length > 0;
|
|
323
323
|
if (p || b) {
|
|
324
324
|
a = [];
|
|
325
325
|
for (let M = 0; M < e.length; M++)
|
|
@@ -333,10 +333,10 @@ function dt(e, t, n) {
|
|
|
333
333
|
for (let p = 0; p < e.length; p++) {
|
|
334
334
|
const b = l.get(p);
|
|
335
335
|
if (b !== void 0) {
|
|
336
|
-
const M =
|
|
336
|
+
const M = J(e[p], t[b], n);
|
|
337
337
|
if (M !== void 0 && (s[b] = M), r && b !== p) {
|
|
338
|
-
const I = `_${p}`,
|
|
339
|
-
s[I] =
|
|
338
|
+
const I = `_${p}`, k = u ? [e[p], b, K] : ["", b, K];
|
|
339
|
+
s[I] = k;
|
|
340
340
|
}
|
|
341
341
|
} else {
|
|
342
342
|
const M = `_${p}`;
|
|
@@ -357,7 +357,7 @@ function mt(e, t, n) {
|
|
|
357
357
|
continue;
|
|
358
358
|
const d = Object.prototype.hasOwnProperty.call(e, a), l = Object.prototype.hasOwnProperty.call(t, a);
|
|
359
359
|
if (d && l) {
|
|
360
|
-
const g =
|
|
360
|
+
const g = J(e[a], t[a], n);
|
|
361
361
|
g !== void 0 && (s[a] = g);
|
|
362
362
|
} else if (d && !l) {
|
|
363
363
|
const g = n != null && n.omitRemovedValues ? 0 : e[a];
|
|
@@ -366,7 +366,7 @@ function mt(e, t, n) {
|
|
|
366
366
|
}
|
|
367
367
|
return Object.keys(s).length > 0 ? s : void 0;
|
|
368
368
|
}
|
|
369
|
-
function
|
|
369
|
+
function J(e, t, n) {
|
|
370
370
|
if (P(e, t)) return;
|
|
371
371
|
if (e === void 0 && t !== void 0) {
|
|
372
372
|
const a = n != null && n.cloneDiffValues ? O(t) : t;
|
|
@@ -378,13 +378,13 @@ function Y(e, t, n) {
|
|
|
378
378
|
}
|
|
379
379
|
if (Array.isArray(e) && Array.isArray(t))
|
|
380
380
|
return dt(e, t, n);
|
|
381
|
-
if (
|
|
381
|
+
if (E(e) && E(t))
|
|
382
382
|
return mt(e, t, n);
|
|
383
383
|
const u = n != null && n.cloneDiffValues ? O(e) : e, c = n != null && n.cloneDiffValues ? O(t) : t;
|
|
384
384
|
return [$(u), $(c)];
|
|
385
385
|
}
|
|
386
386
|
function ft(e, t, n) {
|
|
387
|
-
return
|
|
387
|
+
return J(e, t, n);
|
|
388
388
|
}
|
|
389
389
|
function vt(e, t, n) {
|
|
390
390
|
const s = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Map();
|
|
@@ -403,7 +403,7 @@ function vt(e, t, n) {
|
|
|
403
403
|
else {
|
|
404
404
|
for (; c < e.length && s.has(c); )
|
|
405
405
|
c++;
|
|
406
|
-
c < e.length && (u.push(
|
|
406
|
+
c < e.length && (u.push(Y(e[c], l)), c++);
|
|
407
407
|
}
|
|
408
408
|
else {
|
|
409
409
|
let g = !1;
|
|
@@ -428,11 +428,11 @@ function yt(e, t, n) {
|
|
|
428
428
|
const s = { ...e };
|
|
429
429
|
for (const r in t) {
|
|
430
430
|
const u = t[r];
|
|
431
|
-
Array.isArray(u) ? u.length === 1 ? s[r] = u[0] : u.length === 3 && u[2] === w ? delete s[r] : u.length === 2 && (s[r] = u[1]) : s[r] =
|
|
431
|
+
Array.isArray(u) ? u.length === 1 ? s[r] = u[0] : u.length === 3 && u[2] === w ? delete s[r] : u.length === 2 && (s[r] = u[1]) : s[r] = Y(s[r], u);
|
|
432
432
|
}
|
|
433
433
|
return s;
|
|
434
434
|
}
|
|
435
|
-
function
|
|
435
|
+
function Y(e, t, n) {
|
|
436
436
|
if (t === void 0) return e;
|
|
437
437
|
if (Array.isArray(t)) {
|
|
438
438
|
if (t.length === 1)
|
|
@@ -442,10 +442,10 @@ function J(e, t, n) {
|
|
|
442
442
|
if (t.length === 3 && t[2] === w)
|
|
443
443
|
return;
|
|
444
444
|
}
|
|
445
|
-
return
|
|
445
|
+
return E(t) && t._t === "a" ? vt(e, t) : E(t) && E(e) ? yt(e, t) : e;
|
|
446
446
|
}
|
|
447
447
|
function le(e, t, n) {
|
|
448
|
-
return
|
|
448
|
+
return Y(e, t);
|
|
449
449
|
}
|
|
450
450
|
function gt(e) {
|
|
451
451
|
const t = { _t: "a" };
|
|
@@ -466,7 +466,7 @@ function gt(e) {
|
|
|
466
466
|
if (Array.isArray(r) && r.length === 1)
|
|
467
467
|
t[`_${s}`] = [r[0], w, w];
|
|
468
468
|
else {
|
|
469
|
-
const u =
|
|
469
|
+
const u = Z(r);
|
|
470
470
|
u !== void 0 && (t[n] = u);
|
|
471
471
|
}
|
|
472
472
|
}
|
|
@@ -479,13 +479,13 @@ function pt(e) {
|
|
|
479
479
|
if (Array.isArray(s))
|
|
480
480
|
s.length === 1 ? t[n] = [s[0], w, w] : s.length === 3 && s[2] === w ? t[n] = [s[0]] : s.length === 2 && (t[n] = [s[1], s[0]]);
|
|
481
481
|
else {
|
|
482
|
-
const r =
|
|
482
|
+
const r = Z(s);
|
|
483
483
|
r !== void 0 && (t[n] = r);
|
|
484
484
|
}
|
|
485
485
|
}
|
|
486
486
|
return t;
|
|
487
487
|
}
|
|
488
|
-
function
|
|
488
|
+
function Z(e) {
|
|
489
489
|
if (e !== void 0) {
|
|
490
490
|
if (Array.isArray(e)) {
|
|
491
491
|
if (e.length === 1)
|
|
@@ -497,11 +497,11 @@ function Q(e) {
|
|
|
497
497
|
if (e.length === 3 && e[2] === K)
|
|
498
498
|
return e;
|
|
499
499
|
}
|
|
500
|
-
return
|
|
500
|
+
return E(e) && e._t === "a" ? gt(e) : E(e) ? pt(e) : e;
|
|
501
501
|
}
|
|
502
502
|
}
|
|
503
503
|
function de(e) {
|
|
504
|
-
return
|
|
504
|
+
return Z(e);
|
|
505
505
|
}
|
|
506
506
|
function ht(e, t, n) {
|
|
507
507
|
const s = de(t);
|
|
@@ -703,16 +703,16 @@ const $t = qe(
|
|
|
703
703
|
return y.value = i, f.value = !1, v.value = v.value + 1, i;
|
|
704
704
|
}
|
|
705
705
|
const M = ae.debounce(p, 200);
|
|
706
|
-
let I = null,
|
|
707
|
-
function
|
|
708
|
-
|
|
706
|
+
let I = null, k = null;
|
|
707
|
+
function Q() {
|
|
708
|
+
k && (k(), k = null), I && I.stop(), I = Be(!0), k = I.run(() => He(
|
|
709
709
|
() => [e.menu, e.currentCatalogId, e.currentSchedulerId],
|
|
710
710
|
() => {
|
|
711
711
|
f.value || M();
|
|
712
712
|
}
|
|
713
713
|
)) || null;
|
|
714
714
|
}
|
|
715
|
-
|
|
715
|
+
Q();
|
|
716
716
|
const fe = S(() => [
|
|
717
717
|
{
|
|
718
718
|
label: "Main",
|
|
@@ -722,7 +722,7 @@ const $t = qe(
|
|
|
722
722
|
label: o.name,
|
|
723
723
|
value: o._id
|
|
724
724
|
}))
|
|
725
|
-
]),
|
|
725
|
+
]), X = S(() => {
|
|
726
726
|
const o = y.value.modules.category;
|
|
727
727
|
return [
|
|
728
728
|
...U.value.item.addon ? [
|
|
@@ -760,7 +760,7 @@ const $t = qe(
|
|
|
760
760
|
m,
|
|
761
761
|
(h) => h.code || h.name
|
|
762
762
|
).reduce((h, _, A) => (h[_._id] = A + i[_.category || ""], h), {});
|
|
763
|
-
}), ge = S(() => oe(j.value,
|
|
763
|
+
}), ge = S(() => oe(j.value, X.value, ee.value)), pe = S(() => {
|
|
764
764
|
const o = U.value.item.addon ? [
|
|
765
765
|
{
|
|
766
766
|
_id: e.currentCatalogId ? "" : null,
|
|
@@ -787,7 +787,7 @@ const $t = qe(
|
|
|
787
787
|
})), Me = S(() => x(e.menu.modules.unit, { selector: "name" })), we = S(() => x(Ge(e.menu.modules.recipe, e.menu.modules.sku), {
|
|
788
788
|
selector: "name"
|
|
789
789
|
})), Ae = S(() => e.menu.modules.cookingGuide), Ce = S(() => {
|
|
790
|
-
const o =
|
|
790
|
+
const o = Je(e.menu.modules.sku);
|
|
791
791
|
return x(o, { selector: "code" });
|
|
792
792
|
}), Ie = S(() => {
|
|
793
793
|
const o = /* @__PURE__ */ new Map();
|
|
@@ -874,19 +874,19 @@ const $t = qe(
|
|
|
874
874
|
function W(o) {
|
|
875
875
|
return `${o.systemCode}/${o.taxCode}`;
|
|
876
876
|
}
|
|
877
|
-
function
|
|
877
|
+
function ke(o) {
|
|
878
878
|
const [i, m] = o.split("/");
|
|
879
879
|
return { systemCode: i, taxCode: m };
|
|
880
880
|
}
|
|
881
|
-
function
|
|
881
|
+
function Ee(o, i, m) {
|
|
882
882
|
return (o ?? i ?? []).map((h) => W(h)).find((h) => m.some((_) => _.value === h));
|
|
883
883
|
}
|
|
884
884
|
const Re = S(() => {
|
|
885
885
|
var h;
|
|
886
|
-
const o = ["SV5", "SV10"], i =
|
|
886
|
+
const o = ["SV5", "SV10"], i = Ye.Country.getCountryFlattenTaxes(
|
|
887
887
|
se().currentCountry.value
|
|
888
888
|
), m = i.filter((_) => u.value || !o.includes(_.taxCode)).map((_) => ({
|
|
889
|
-
label: `${_.name} (${
|
|
889
|
+
label: `${_.name} (${Ze(_.rate)}%)`,
|
|
890
890
|
value: W(_),
|
|
891
891
|
meta: {
|
|
892
892
|
rate: _.rate
|
|
@@ -904,7 +904,7 @@ const $t = qe(
|
|
|
904
904
|
e.restaurants = [];
|
|
905
905
|
return;
|
|
906
906
|
}
|
|
907
|
-
const { fetchAllRestaurants: o } =
|
|
907
|
+
const { fetchAllRestaurants: o } = Xe();
|
|
908
908
|
await o({
|
|
909
909
|
onBatchEnd: (i) => {
|
|
910
910
|
e.restaurants = i;
|
|
@@ -930,7 +930,7 @@ const $t = qe(
|
|
|
930
930
|
if (i || h.some(
|
|
931
931
|
(A) => [H.F_OPERATION_TYPE.delete, H.F_OPERATION_TYPE.deleteMany].includes(A.operation)
|
|
932
932
|
)) {
|
|
933
|
-
const A = await
|
|
933
|
+
const A = await Qe(h, e.menu.modules);
|
|
934
934
|
if (A !== !0) throw new Error(A);
|
|
935
935
|
}
|
|
936
936
|
const _ = await Mt.updateMenuModule(e.menu, h);
|
|
@@ -975,7 +975,7 @@ const $t = qe(
|
|
|
975
975
|
schedulers: d,
|
|
976
976
|
currentScheduler: l,
|
|
977
977
|
catalogOptions: fe,
|
|
978
|
-
categories:
|
|
978
|
+
categories: X,
|
|
979
979
|
subcategories: ve,
|
|
980
980
|
items: ee,
|
|
981
981
|
sortedItems: ye,
|
|
@@ -1005,8 +1005,8 @@ const $t = qe(
|
|
|
1005
1005
|
computeMergedMenu: p,
|
|
1006
1006
|
// helper
|
|
1007
1007
|
encodeTax: W,
|
|
1008
|
-
decodeTax:
|
|
1009
|
-
getSelectedTax:
|
|
1008
|
+
decodeTax: ke,
|
|
1009
|
+
getSelectedTax: Ee,
|
|
1010
1010
|
mapVariant: he,
|
|
1011
1011
|
// history
|
|
1012
1012
|
canUndoHistory: $e,
|
|
@@ -1015,10 +1015,10 @@ const $t = qe(
|
|
|
1015
1015
|
redoHistory: je,
|
|
1016
1016
|
// cleanup
|
|
1017
1017
|
$dispose: () => {
|
|
1018
|
-
M.cancel(),
|
|
1018
|
+
M.cancel(), k && (k(), k = null), I && (I.stop(), I = null), Ue();
|
|
1019
1019
|
},
|
|
1020
1020
|
$reinitialize: () => {
|
|
1021
|
-
|
|
1021
|
+
Q();
|
|
1022
1022
|
}
|
|
1023
1023
|
};
|
|
1024
1024
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { defineComponent as q, ref as V, h as S, computed as N, resolveComponent as I, createBlock as X, openBlock as w, unref as l, withCtx as x, createElementVNode as k, createVNode as v, watch as Z, createElementBlock as L, Fragment as M, renderSlot as ee, renderList as H, toDisplayString as $, createCommentVNode as ae, getCurrentInstance as te, render as ne } from "vue";
|
|
2
|
-
import { u as Y, i as oe, b as le, g as B, h as K } from "./index.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { u as Y, i as oe, b as le, g as B, h as K } from "./index.vue_vue_type_script_setup_true_lang-BRtju05_.js";
|
|
3
3
|
import { useI18n as R } from "@feedmepos/mf-common";
|
|
4
4
|
import { components as A, FmButtonVariant as re, FmButtonColorThemeVariant as j, useSnackbar as ie } from "@feedmepos/ui-library";
|
|
5
|
-
import { _ as J, u as se } from "./RuleView.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { _ as J, u as se } from "./RuleView.vue_vue_type_script_setup_true_lang-DxpvosGG.js";
|
|
6
6
|
import { c as de } from "./object-DVUNCr7w.js";
|
|
7
|
-
import { _ as ue } from "./app-
|
|
8
|
-
import { L as ce } from "./LinkProductSideSheet-
|
|
7
|
+
import { _ as ue } from "./app-Da1XriaA.js";
|
|
8
|
+
import { L as ce } from "./LinkProductSideSheet-C6R0KLzF.js";
|
|
9
9
|
import { u as me } from "./search-BAPEUu1R.js";
|
|
10
|
-
import { _ as pe } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-
|
|
10
|
+
import { _ as pe } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-Cixm7NMC.js";
|
|
11
11
|
import { c as ge } from "./check-C9mY6LiX.js";
|
|
12
12
|
import { g as G } from "./translation-fNx6yEpy.js";
|
|
13
13
|
import { c as _e } from "./createComponentProgrammatically-Bt2rn1IQ.js";
|
|
@@ -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, b as M } from "./index.vue_vue_type_script_setup_true_lang-
|
|
4
|
+
import { u as k, b as M } from "./index.vue_vue_type_script_setup_true_lang-BRtju05_.js";
|
|
5
5
|
const b = /* @__PURE__ */ d({
|
|
6
6
|
__name: "AddPriceGroupDialog",
|
|
7
7
|
setup(s) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as I, watch as P, ref as E, computed as w, resolveComponent as _, createElementBlock as h, openBlock as F, Fragment as M, createVNode as f, unref as g, withCtx as b, createElementVNode as O, renderList as q, toDisplayString as S } from "vue";
|
|
2
|
-
import { g as v, h as C, u as Y } from "./index.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { g as v, h as C, u as Y } from "./index.vue_vue_type_script_setup_true_lang-BRtju05_.js";
|
|
3
3
|
import { useI18n as D } from "@feedmepos/mf-common";
|
|
4
4
|
import { useDialogChild as k } from "@feedmepos/ui-library";
|
|
5
|
-
import { u as R } from "./menuV2-
|
|
6
|
-
import { _ as $ } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { u as R } from "./menuV2-BxVmtfZ3.js";
|
|
6
|
+
import { _ as $ } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-Cixm7NMC.js";
|
|
7
7
|
import { g as N } from "./translation-fNx6yEpy.js";
|
|
8
8
|
const B = { class: "py-12 px-16 space-y-4" }, U = /* @__PURE__ */ I({
|
|
9
9
|
__name: "AddSubcategoryDialogContentComponent",
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent as re, computed as N, resolveComponent as v, createElementBlock as d, openBlock as u, createVNode as t, createCommentVNode as V, unref as n, toDisplayString as O, createElementVNode as _, withCtx as p, Fragment as R, renderList as I, createBlock as q, ref as B, Transition as de, createTextVNode as fe } from "vue";
|
|
2
|
-
import { u as ye, l as _e } from "./discardConfirm-
|
|
3
|
-
import { d as w, z as $, u as he, F as ge, A as L, g as se, h as ie, P as ce } from "./index.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { u as ye, l as _e } from "./discardConfirm-C65bh13g.js";
|
|
3
|
+
import { d as w, z as $, u as he, F as ge, A as L, g as se, h as ie, P as ce } from "./index.vue_vue_type_script_setup_true_lang-BRtju05_.js";
|
|
4
4
|
import { useI18n as me } from "@feedmepos/mf-common";
|
|
5
5
|
import { components as Ve } from "@feedmepos/ui-library";
|
|
6
6
|
import { _ as ke } from "./FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js";
|
|
7
|
-
import { _ as ue } from "./RuleView.vue_vue_type_script_setup_true_lang-
|
|
8
|
-
import { u as Fe } from "./menu-
|
|
9
|
-
import { L as be } from "./LinkProductSideSheet-
|
|
7
|
+
import { _ as ue } from "./RuleView.vue_vue_type_script_setup_true_lang-DxpvosGG.js";
|
|
8
|
+
import { u as Fe } from "./menu-C4c62Xvw.js";
|
|
9
|
+
import { L as be } from "./LinkProductSideSheet-C6R0KLzF.js";
|
|
10
10
|
const xe = { class: "space-y-8" }, Ce = {
|
|
11
11
|
key: 0,
|
|
12
12
|
class: "space-y-16"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { u as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import "./discardConfirm-
|
|
1
|
+
import { u as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-DMzqbxts.js";
|
|
2
|
+
import "./discardConfirm-C65bh13g.js";
|
|
3
3
|
var Z = {
|
|
4
4
|
defaultAmount: 0,
|
|
5
5
|
defaultCurrency: "USD",
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineStore as H } from "pinia";
|
|
2
2
|
import { defineComponent as M, computed as x, ref as A, watch as S, resolveComponent as V, createBlock as J, openBlock as F, withCtx as w, createVNode as m, createElementVNode as f, normalizeClass as Q, createElementBlock as C, toDisplayString as k, unref as l, Fragment as N, renderSlot as X, renderList as Z, getCurrentInstance as ee } from "vue";
|
|
3
|
-
import { D as O, E as te, B as P, d as E, i as $, b as j, m as h, C as ne, g as T, h as D, u as oe } from "./index.vue_vue_type_script_setup_true_lang-
|
|
3
|
+
import { D as O, E as te, B as P, d as E, i as $, b as j, m as h, C as ne, g as T, h as D, u as oe } from "./index.vue_vue_type_script_setup_true_lang-BRtju05_.js";
|
|
4
4
|
import { useI18n as q } from "@feedmepos/mf-common";
|
|
5
5
|
import { useSnackbar as I, components as ae, useDialog as le, FmButtonVariant as ue } from "@feedmepos/ui-library";
|
|
6
|
-
import { u as ie, l as se } from "./discardConfirm-
|
|
6
|
+
import { u as ie, l as se } from "./discardConfirm-C65bh13g.js";
|
|
7
7
|
import { c as re } from "./check-C9mY6LiX.js";
|
|
8
8
|
import "./RuleConditionSelector.vue_vue_type_style_index_0_lang-CK8z7qA8.js";
|
|
9
|
-
import "./menuV2-
|
|
9
|
+
import "./menuV2-BxVmtfZ3.js";
|
|
10
10
|
import "./app-5fxKLAzS.js";
|
|
11
11
|
/* empty css */
|
|
12
12
|
import { c as me } from "./createComponentProgrammatically-Bt2rn1IQ.js";
|