@feedmepos/mf-menu 0.32.78 → 0.32.79
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-DPCHWImL.js → App-Ddfti1Ko.js} +8 -8
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-C4iacJky.js → ApplyProduct.vue_vue_type_script_setup_true_lang-BnnONwXy.js} +3 -3
- package/dist/{ApplyProductDialog.vue_vue_type_script_setup_true_lang-BWoRN4s5.js → ApplyProductDialog.vue_vue_type_script_setup_true_lang-D0nDzWAO.js} +3 -3
- package/dist/{Catalog-CBYCvZ4i.js → Catalog-DyLqdJvc.js} +6 -6
- package/dist/{Category-CbNtnuBB.js → Category-D39pcZdS.js} +4 -4
- package/dist/{Category-Dpc6jnS1.js → Category-DozkUd7q.js} +4 -4
- package/dist/{CookingGuide-B848njOa.js → CookingGuide-D9YmIZ2U.js} +5 -5
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-CkNSC4k9.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-n0p6s93X.js} +1 -1
- package/dist/{Group-WQdbziVl.js → Group-BBik4ETc.js} +1 -1
- package/dist/{Group-yhtx74q4.js → Group-_TmDeD-K.js} +3 -3
- package/dist/{Group.vue_vue_type_script_setup_true_lang-Q0Z5rAEg.js → Group.vue_vue_type_script_setup_true_lang-zIb02WHz.js} +7 -7
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-R2zzBkf0.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CXcucPqA.js} +5 -5
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-_R7RQdJk.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-zUZ5lWBi.js} +7 -7
- package/dist/{Ingredient-C5i01EIS.js → Ingredient-BpAYeHoR.js} +4 -4
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-OpRB3dyV.js → InventoryBinding.vue_vue_type_script_setup_true_lang-DW7LjsGs.js} +2 -2
- package/dist/{LinkProductSideSheet-Dt78f3fG.js → LinkProductSideSheet-Bt21W-G-.js} +4 -4
- package/dist/{MenuSetting-LhwHiH3C.js → MenuSetting-pjrRFhcq.js} +7 -7
- package/dist/{OrderPacing-DXj4J7Sp.js → OrderPacing-DEiw1G2u.js} +5 -5
- package/dist/{PrintRoute-DZQYeMsQ.js → PrintRoute-CbneoAYY.js} +5 -5
- package/dist/{Product--7aX0fcK.js → Product-D9-vPWzI.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-BSsS2dqJ.js → Product.vue_vue_type_script_setup_true_lang-D-p5_lqZ.js} +14 -14
- package/dist/{ProductInternalTools-C4_r1tAz.js → ProductInternalTools-B0hNQj0-.js} +7 -7
- package/dist/{Products-CmtzWP4r.js → Products-BLWEEvbo.js} +28 -28
- package/dist/{Publish-Bquodjpf.js → Publish-hoSfovGn.js} +4 -4
- package/dist/{Recipe-DanBt83W.js → Recipe-B4LhLrQC.js} +5 -5
- package/dist/{RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-Ck5gHsEQ.js → RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-CXBqQHFH.js} +1 -1
- package/dist/{RuleView.vue_vue_type_script_setup_true_lang-xuzVQmfE.js → RuleView.vue_vue_type_script_setup_true_lang-DASNyCfE.js} +791 -791
- package/dist/{Scheduler-CNQbEpCH.js → Scheduler-C_BM1zh4.js} +3 -3
- package/dist/{ServingSequence-BpLukp5s.js → ServingSequence-CcliuOL7.js} +3 -3
- package/dist/{Setting-CqtVbgEX.js → Setting-Bb_ALF4I.js} +5 -5
- package/dist/{Subcategory-D05nSckm.js → Subcategory-COQoMJHm.js} +6 -6
- package/dist/{Takeaway-BojkiMWZ.js → Takeaway-CuEotFMf.js} +1 -1
- package/dist/{Takeaway-o938dKSs.js → Takeaway-DbeliWnS.js} +4 -4
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-CyItVmUO.js → Takeaway.vue_vue_type_script_setup_true_lang-HeiCP2s9.js} +5 -5
- package/dist/{TranslationFieldSection.vue_vue_type_script_setup_true_lang-BrLUgeet.js → TranslationFieldSection.vue_vue_type_script_setup_true_lang-BShAzL4G.js} +1 -1
- package/dist/{TranslationSideSheet.vue_vue_type_script_setup_true_lang-BlgJ9HSX.js → TranslationSideSheet.vue_vue_type_script_setup_true_lang-CY5WfDzB.js} +2 -2
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-Dl7sYg0Q.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DiiwlaYM.js} +16 -16
- package/dist/{Unit-BO34czMi.js → Unit-0bvvveKn.js} +2 -2
- package/dist/{Variant-9hYjzP27.js → Variant-4XgbwjXd.js} +3 -3
- package/dist/{_id_-C9EPUJMN.js → _id_-Dqdsxvf5.js} +10 -10
- package/dist/{app-BJeTqtv9.js → app-C5dT9EsK.js} +32 -32
- package/dist/{app-Br1rwkSn.js → app-UNScMQ3h.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/assets/{override-menu-D_fBjnbT.js → linked-status-l7MCp8KH.js} +4 -4
- package/dist/assets/{menu-export-C4lP1SAy.js → menu-export-BJqAs10_.js} +34 -34
- package/dist/assets/{linked-status-DeOWgUtC.js → override-menu-BKVitICN.js} +4 -4
- package/dist/assets/{validate-menu-Cyw7mq4e.js → validate-menu-DS0aISeD.js} +3 -3
- package/dist/{catalog-xBfYjm-n.js → catalog-BKYUqjy2.js} +1 -1
- package/dist/{catalogSetting-CuHh62ii.js → catalogSetting-D_Si0gPE.js} +1 -1
- package/dist/{currency-CSYrHGCM.js → currency-BB102Bid.js} +1 -1
- package/dist/{dayjs.min-DMxeixDE.js → dayjs.min-C1U699zZ.js} +2 -2
- package/dist/{discardConfirm-DEE_kXqK.js → discardConfirm-DlVCFfQq.js} +1 -1
- package/dist/{index-CgR6vyM1.js → index-BHSkHw0p.js} +5 -5
- package/dist/{index-CFAe9jDS.js → index-Bd29_cSo.js} +1 -1
- package/dist/{index-nDpqIsxv.js → index-DuJOJVmE.js} +6 -6
- package/dist/{index.vue_vue_type_script_setup_true_lang-CDnlHcKS.js → index.vue_vue_type_script_setup_true_lang-C4M5sUoA.js} +7 -7
- package/dist/{item-Cg4hkIm0.js → item-Dd_dzGSE.js} +20 -20
- package/dist/{jszip.min-BGGp26Zm.js → jszip.min-CzxURJgf.js} +167 -167
- package/dist/{linkProducts-rOzmlZmQ.js → linkProducts-DMPv4Nmv.js} +4 -4
- package/dist/{memberPricing-BVC55wej.js → memberPricing-hylACQAU.js} +1 -1
- package/dist/{menu-sD696lXn.js → menu-B6iD6nD_.js} +1 -1
- package/dist/{menuV2-Cf41MUAw.js → menuV2-DcO6NMIq.js} +47 -47
- package/dist/{order_pacing-D-VDq_AN.js → order_pacing-DBLB05W3.js} +5 -5
- package/dist/{priceTier-Dajfy9ll.js → priceTier-C1aFgxcc.js} +1 -1
- package/dist/{rules-BTp32qER.js → rules-Bxnv_dCn.js} +3 -3
- package/dist/{scheduler-Ct06dHRB.js → scheduler-gD5M0VZU.js} +5 -5
- package/dist/{toExcel-BOsLuO7C.js → toExcel-BxYc23kA.js} +2 -2
- package/dist/{unit-D-Sppjh0.js → unit-BDj_N50K.js} +3 -3
- package/package.json +1 -1
|
@@ -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, U as 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, U as T, u as P, c as z } from "./index.vue_vue_type_script_setup_true_lang-C4M5sUoA.js";
|
|
3
|
+
import { u as R } from "./menuV2-DcO6NMIq.js";
|
|
4
|
+
import { C as w, h as E } from "./catalog-BKYUqjy2.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-Bt21W-G-.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-C4M5sUoA.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-C4M5sUoA.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-DlVCFfQq.js";
|
|
5
5
|
import { defineStore as qe } from "pinia";
|
|
6
|
-
import { shallowRef as N, ref as
|
|
7
|
-
import { d as C, f as ue, m as T, k as ie, ar as re, g as
|
|
6
|
+
import { shallowRef as N, ref as H, computed as S, shallowReactive as ze, effectScope as He, watch as Be } from "vue";
|
|
7
|
+
import { d as C, f as ue, m as T, k as ie, ar as re, g as B, P as x, c as L, s as D, Y as oe, as as Ge, at as Je, a as Ye, R as Qe, au as Xe, av as Ze, N as et } from "./index.vue_vue_type_script_setup_true_lang-C4M5sUoA.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-l7MCp8KH.js", ot = "/assets/override-menu-BKVitICN.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 = []) {
|
|
@@ -157,7 +157,7 @@ function ut(e, t) {
|
|
|
157
157
|
price: (s == null ? void 0 : s.price) || t.price
|
|
158
158
|
};
|
|
159
159
|
}
|
|
160
|
-
async function
|
|
160
|
+
async function Dt(e, t, n, s, r, u = !0) {
|
|
161
161
|
const c = C(n), a = u ? st(t, c, s, r) : c, d = t.reduce((y, f) => (y[f._id] = a.modules.item.find((v) => v._id === f._id), y), {}), l = t.reduce((y, f) => {
|
|
162
162
|
const v = f._id;
|
|
163
163
|
return y[v] = at(d[v], e), y;
|
|
@@ -189,7 +189,7 @@ function Tt(e, t) {
|
|
|
189
189
|
}, [])) || []).join(" / ");
|
|
190
190
|
}
|
|
191
191
|
const q = /* @__PURE__ */ new Map();
|
|
192
|
-
async function
|
|
192
|
+
async function Kt(e, t) {
|
|
193
193
|
const n = `${e._id}-${e.updatedAt}-${t}`;
|
|
194
194
|
if (q.has(n))
|
|
195
195
|
return q.get(n);
|
|
@@ -217,7 +217,7 @@ async function it(e, t, n) {
|
|
|
217
217
|
const r = await ce(e, t, n);
|
|
218
218
|
return z.set(s, r), r;
|
|
219
219
|
}
|
|
220
|
-
async function
|
|
220
|
+
async function Pt(e, t, n) {
|
|
221
221
|
var c, a;
|
|
222
222
|
const s = await it(e, t, null), r = [], u = (d, l) => {
|
|
223
223
|
const g = C(d);
|
|
@@ -243,7 +243,7 @@ async function Kt(e, t, n) {
|
|
|
243
243
|
}
|
|
244
244
|
return r;
|
|
245
245
|
}
|
|
246
|
-
const w = 0,
|
|
246
|
+
const w = 0, K = 3;
|
|
247
247
|
function ct(e) {
|
|
248
248
|
const t = /^\/(.*)\/([gimyu]*)$/.exec(e.toString());
|
|
249
249
|
if (!t)
|
|
@@ -272,7 +272,7 @@ function $(e) {
|
|
|
272
272
|
function k(e) {
|
|
273
273
|
return typeof e == "object" && e !== null && !Array.isArray(e) && !(e instanceof Date) && !(e instanceof RegExp);
|
|
274
274
|
}
|
|
275
|
-
function
|
|
275
|
+
function P(e, t) {
|
|
276
276
|
if (e === t) return !0;
|
|
277
277
|
if (typeof e != typeof t) return !1;
|
|
278
278
|
if (e instanceof Date && t instanceof Date)
|
|
@@ -282,14 +282,14 @@ function K(e, t) {
|
|
|
282
282
|
if (Array.isArray(e) && Array.isArray(t)) {
|
|
283
283
|
if (e.length !== t.length) return !1;
|
|
284
284
|
for (let n = 0; n < e.length; n++)
|
|
285
|
-
if (!
|
|
285
|
+
if (!P(e[n], t[n])) return !1;
|
|
286
286
|
return !0;
|
|
287
287
|
}
|
|
288
288
|
if (k(e) && k(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)
|
|
292
|
-
if (!Object.prototype.hasOwnProperty.call(t, r) || !
|
|
292
|
+
if (!Object.prototype.hasOwnProperty.call(t, r) || !P(e[r], t[r])) return !1;
|
|
293
293
|
return !0;
|
|
294
294
|
}
|
|
295
295
|
return !1;
|
|
@@ -305,7 +305,7 @@ function lt(e, t, n) {
|
|
|
305
305
|
const l = e[d], g = n ? n(l) : JSON.stringify(l), y = u.get(g);
|
|
306
306
|
if (y) {
|
|
307
307
|
for (const f of y)
|
|
308
|
-
if (!a.has(f) &&
|
|
308
|
+
if (!a.has(f) && P(l, t[f])) {
|
|
309
309
|
c.push({ leftIndex: d, rightIndex: f }), a.add(f);
|
|
310
310
|
break;
|
|
311
311
|
}
|
|
@@ -315,7 +315,7 @@ function lt(e, t, n) {
|
|
|
315
315
|
}
|
|
316
316
|
function dt(e, t, n) {
|
|
317
317
|
var f, v;
|
|
318
|
-
if (
|
|
318
|
+
if (P(e, t)) return;
|
|
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) {
|
|
@@ -335,7 +335,7 @@ function dt(e, t, n) {
|
|
|
335
335
|
if (b !== void 0) {
|
|
336
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}`, E = u ? [e[p], b,
|
|
338
|
+
const I = `_${p}`, E = u ? [e[p], b, K] : ["", b, K];
|
|
339
339
|
s[I] = E;
|
|
340
340
|
}
|
|
341
341
|
} else {
|
|
@@ -350,7 +350,7 @@ function dt(e, t, n) {
|
|
|
350
350
|
return s;
|
|
351
351
|
}
|
|
352
352
|
function mt(e, t, n) {
|
|
353
|
-
if (
|
|
353
|
+
if (P(e, t)) return;
|
|
354
354
|
const s = {}, r = Object.keys(e), u = Object.keys(t), c = /* @__PURE__ */ new Set([...r, ...u]);
|
|
355
355
|
for (const a of c) {
|
|
356
356
|
if (n != null && n.propertyFilter && !n.propertyFilter(a, { left: e, right: t }))
|
|
@@ -367,7 +367,7 @@ function mt(e, t, n) {
|
|
|
367
367
|
return Object.keys(s).length > 0 ? s : void 0;
|
|
368
368
|
}
|
|
369
369
|
function J(e, t, n) {
|
|
370
|
-
if (
|
|
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;
|
|
373
373
|
return [$(a)];
|
|
@@ -391,7 +391,7 @@ function vt(e, t, n) {
|
|
|
391
391
|
for (const a in t) {
|
|
392
392
|
if (a === "_t" || !a.startsWith("_")) continue;
|
|
393
393
|
const d = parseInt(a.slice(1)), l = t[a];
|
|
394
|
-
Array.isArray(l) && (l.length === 3 && l[2] === w ? s.add(d) : l.length === 3 && l[2] ===
|
|
394
|
+
Array.isArray(l) && (l.length === 3 && l[2] === w ? s.add(d) : l.length === 3 && l[2] === K && r.set(d, l[1]));
|
|
395
395
|
}
|
|
396
396
|
const u = [];
|
|
397
397
|
let c = 0;
|
|
@@ -456,9 +456,9 @@ function gt(e) {
|
|
|
456
456
|
if (Array.isArray(r)) {
|
|
457
457
|
if (r.length === 3 && r[2] === w)
|
|
458
458
|
t[s] = [r[0]];
|
|
459
|
-
else if (r.length === 3 && r[2] ===
|
|
459
|
+
else if (r.length === 3 && r[2] === K) {
|
|
460
460
|
const u = r[1];
|
|
461
|
-
t[`_${u}`] = [r[0], s,
|
|
461
|
+
t[`_${u}`] = [r[0], s, K];
|
|
462
462
|
}
|
|
463
463
|
}
|
|
464
464
|
} else {
|
|
@@ -494,7 +494,7 @@ function Q(e) {
|
|
|
494
494
|
return [e[1], e[0]];
|
|
495
495
|
if (e.length === 3 && e[2] === w)
|
|
496
496
|
return [e[0]];
|
|
497
|
-
if (e.length === 3 && e[2] ===
|
|
497
|
+
if (e.length === 3 && e[2] === K)
|
|
498
498
|
return e;
|
|
499
499
|
}
|
|
500
500
|
return k(e) && e._t === "a" ? gt(e) : k(e) ? pt(e) : e;
|
|
@@ -541,7 +541,7 @@ function bt({
|
|
|
541
541
|
includeValueOnMove: !1
|
|
542
542
|
},
|
|
543
543
|
cloneDiffValues: !1
|
|
544
|
-
}), n = N(null), s = N([]), r =
|
|
544
|
+
}), n = N(null), s = N([]), r = H(-1), u = N(null), c = S(() => r.value > 0), a = S(() => r.value < s.value.length - 1);
|
|
545
545
|
function d(v) {
|
|
546
546
|
if (n.value === null) {
|
|
547
547
|
n.value = C(v), u.value = C(v), s.value = [{ delta: null }], r.value = 0;
|
|
@@ -591,7 +591,7 @@ function bt({
|
|
|
591
591
|
}
|
|
592
592
|
const Mt = {
|
|
593
593
|
async updateMenuModule(e, t) {
|
|
594
|
-
const n =
|
|
594
|
+
const n = B.RequestRunner.operation(t, e.modules);
|
|
595
595
|
if (n.validateError.length > 0)
|
|
596
596
|
throw new Error(n.validateError.join(`
|
|
597
597
|
`));
|
|
@@ -665,9 +665,9 @@ const $t = qe(
|
|
|
665
665
|
(o) => o._id === e.currentSchedulerId
|
|
666
666
|
));
|
|
667
667
|
function g(o, i = !0) {
|
|
668
|
-
e.menu = { ...o, _rev: e.menu._rev }, i &&
|
|
668
|
+
e.menu = { ...o, _rev: e.menu._rev }, i && V.push(e.menu);
|
|
669
669
|
}
|
|
670
|
-
const y = N(me()), f =
|
|
670
|
+
const y = N(me()), f = H(!1), v = H(1);
|
|
671
671
|
async function p() {
|
|
672
672
|
var m;
|
|
673
673
|
f.value = !0;
|
|
@@ -705,7 +705,7 @@ const $t = qe(
|
|
|
705
705
|
const M = ae.debounce(p, 200);
|
|
706
706
|
let I = null, E = null;
|
|
707
707
|
function X() {
|
|
708
|
-
E && (E(), E = null), I && I.stop(), I =
|
|
708
|
+
E && (E(), E = null), I && I.stop(), I = He(!0), E = I.run(() => Be(
|
|
709
709
|
() => [e.menu, e.currentCatalogId, e.currentSchedulerId],
|
|
710
710
|
() => {
|
|
711
711
|
f.value || M();
|
|
@@ -732,11 +732,11 @@ const $t = qe(
|
|
|
732
732
|
position: 0
|
|
733
733
|
}
|
|
734
734
|
] : [],
|
|
735
|
-
...
|
|
735
|
+
...D(o, (i) => i.name)
|
|
736
736
|
];
|
|
737
737
|
}), ve = S(() => {
|
|
738
738
|
const o = y.value.modules.subCategory || [];
|
|
739
|
-
return
|
|
739
|
+
return D(o, (i) => i.name);
|
|
740
740
|
}), ee = S(() => {
|
|
741
741
|
var i;
|
|
742
742
|
let o = y.value.modules.item;
|
|
@@ -750,13 +750,13 @@ const $t = qe(
|
|
|
750
750
|
return (_ == null ? void 0 : _.orderFrom) !== ie.enum.NONE;
|
|
751
751
|
});
|
|
752
752
|
}
|
|
753
|
-
return
|
|
753
|
+
return D(o, (m) => m.code || m.name);
|
|
754
754
|
}), ye = S(() => {
|
|
755
|
-
const o = e.menu.modules.category, i =
|
|
755
|
+
const o = e.menu.modules.category, i = D(o, (h) => h.name).reduce(
|
|
756
756
|
(h, _, A) => (h[_._id] = A, h),
|
|
757
757
|
{ "": 0 }
|
|
758
758
|
), m = e.menu.modules.item;
|
|
759
|
-
return
|
|
759
|
+
return D(
|
|
760
760
|
m,
|
|
761
761
|
(h) => h.code || h.name
|
|
762
762
|
).reduce((h, _, A) => (h[_._id] = A + i[_.category || ""], h), {});
|
|
@@ -782,7 +782,7 @@ const $t = qe(
|
|
|
782
782
|
const i = o.map((h) => j.value.find((_) => _._id === h)).filter((h) => !!h);
|
|
783
783
|
return T.fullVariantCombination(i).reduce((h, _) => (h[_.combinationKey] = _.selectionName.join(" / "), h), {});
|
|
784
784
|
}
|
|
785
|
-
const _e = S(() =>
|
|
785
|
+
const _e = S(() => D(y.value.modules.group, (o) => o.name)), Se = S(() => x(y.value.modules.takeaway, { selector: "name" })), be = S(() => x(e.menu.modules.printDepartment || [], {
|
|
786
786
|
selector: "name"
|
|
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"
|
|
@@ -912,13 +912,13 @@ const $t = qe(
|
|
|
912
912
|
});
|
|
913
913
|
}, te = (o) => {
|
|
914
914
|
e.currentCatalogId = o;
|
|
915
|
-
}, De = (o) => {
|
|
916
|
-
e.currentSchedulerId = o;
|
|
917
915
|
}, Ve = (o) => {
|
|
916
|
+
e.currentSchedulerId = o;
|
|
917
|
+
}, De = (o) => {
|
|
918
918
|
e.currentCategoryIds = o;
|
|
919
919
|
}, Te = (o) => {
|
|
920
920
|
e.currentRestaurantAttrParams = o;
|
|
921
|
-
},
|
|
921
|
+
}, Ke = async (o, i) => {
|
|
922
922
|
const m = Array.isArray(o) ? o : [o];
|
|
923
923
|
if (!m.length) return;
|
|
924
924
|
const h = m.map((_) => ({
|
|
@@ -928,7 +928,7 @@ const $t = qe(
|
|
|
928
928
|
}));
|
|
929
929
|
try {
|
|
930
930
|
if (i || h.some(
|
|
931
|
-
(A) => [
|
|
931
|
+
(A) => [B.F_OPERATION_TYPE.delete, B.F_OPERATION_TYPE.deleteMany].includes(A.operation)
|
|
932
932
|
)) {
|
|
933
933
|
const A = await Xe(h, e.menu.modules);
|
|
934
934
|
if (A !== !0) throw new Error(A);
|
|
@@ -942,7 +942,7 @@ const $t = qe(
|
|
|
942
942
|
message: _
|
|
943
943
|
});
|
|
944
944
|
}
|
|
945
|
-
},
|
|
945
|
+
}, Pe = async (o) => {
|
|
946
946
|
const i = {
|
|
947
947
|
...e.menu,
|
|
948
948
|
masterCatalogSetting: o.masterCatalogSetting,
|
|
@@ -950,14 +950,14 @@ const $t = qe(
|
|
|
950
950
|
priceTierSettings: o.priceTierSettings
|
|
951
951
|
};
|
|
952
952
|
return g(i), i;
|
|
953
|
-
},
|
|
954
|
-
const o =
|
|
953
|
+
}, V = bt({ maxHistorySize: 50 }), $e = S(() => V.canUndo.value), Fe = S(() => V.canRedo.value), Ne = () => {
|
|
954
|
+
const o = V.undo();
|
|
955
955
|
o && g(o, !1);
|
|
956
956
|
}, je = () => {
|
|
957
|
-
const o =
|
|
957
|
+
const o = V.redo();
|
|
958
958
|
o && g(o, !1);
|
|
959
959
|
}, Ue = () => {
|
|
960
|
-
|
|
960
|
+
V.clear();
|
|
961
961
|
};
|
|
962
962
|
return {
|
|
963
963
|
state: e,
|
|
@@ -997,11 +997,11 @@ const $t = qe(
|
|
|
997
997
|
readMenu: xe,
|
|
998
998
|
readRestaurants: Oe,
|
|
999
999
|
selectCatalog: te,
|
|
1000
|
-
selectScheduler:
|
|
1001
|
-
selectCategory:
|
|
1000
|
+
selectScheduler: Ve,
|
|
1001
|
+
selectCategory: De,
|
|
1002
1002
|
setRestaurantAttrParams: Te,
|
|
1003
|
-
updateMenu:
|
|
1004
|
-
updateMenuSetting:
|
|
1003
|
+
updateMenu: Ke,
|
|
1004
|
+
updateMenuSetting: Pe,
|
|
1005
1005
|
computeMergedMenu: p,
|
|
1006
1006
|
// helper
|
|
1007
1007
|
encodeTax: W,
|
|
@@ -1024,11 +1024,11 @@ const $t = qe(
|
|
|
1024
1024
|
}
|
|
1025
1025
|
);
|
|
1026
1026
|
export {
|
|
1027
|
-
|
|
1028
|
-
|
|
1027
|
+
Kt as a,
|
|
1028
|
+
Pt as f,
|
|
1029
1029
|
Tt as g,
|
|
1030
1030
|
nt as i,
|
|
1031
|
-
|
|
1031
|
+
Dt as m,
|
|
1032
1032
|
it as o,
|
|
1033
1033
|
$t as u
|
|
1034
1034
|
};
|
|
@@ -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-C4M5sUoA.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-DASNyCfE.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-C5dT9EsK.js";
|
|
8
|
+
import { L as ce } from "./LinkProductSideSheet-Bt21W-G-.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-CY5WfDzB.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-C4M5sUoA.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-C4M5sUoA.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-DcO6NMIq.js";
|
|
6
|
+
import { _ as $ } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-CY5WfDzB.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 ce, computed as T, resolveComponent as p, createElementBlock as r, openBlock as s, createVNode as t, createCommentVNode as k, unref as a, toDisplayString as D, createElementVNode as y, withCtx as m, Fragment as $, renderList as N, createBlock as Y, ref as L, Transition as de, createTextVNode as he } from "vue";
|
|
2
|
-
import { u as ge, l as Ve } from "./discardConfirm-
|
|
3
|
-
import { d as w, A as U, u as ke, F as Fe, B as q, g as ie, h as re, Q as me } from "./index.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { u as ge, l as Ve } from "./discardConfirm-DlVCFfQq.js";
|
|
3
|
+
import { d as w, A as U, u as ke, F as Fe, B as q, g as ie, h as re, Q as me } from "./index.vue_vue_type_script_setup_true_lang-C4M5sUoA.js";
|
|
4
4
|
import { useI18n as pe, useAppLocale as be, prefersHour12 as xe } from "@feedmepos/mf-common";
|
|
5
5
|
import { components as Ce } from "@feedmepos/ui-library";
|
|
6
6
|
import { _ as Se } from "./FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js";
|
|
7
|
-
import { _ as se } from "./RuleView.vue_vue_type_script_setup_true_lang-
|
|
8
|
-
import { u as we } from "./menu-
|
|
9
|
-
import { L as Pe } from "./LinkProductSideSheet-
|
|
7
|
+
import { _ as se } from "./RuleView.vue_vue_type_script_setup_true_lang-DASNyCfE.js";
|
|
8
|
+
import { u as we } from "./menu-B6iD6nD_.js";
|
|
9
|
+
import { L as Pe } from "./LinkProductSideSheet-Bt21W-G-.js";
|
|
10
10
|
const Ee = { class: "space-y-8" }, Ue = {
|
|
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-zUZ5lWBi.js";
|
|
2
|
+
import "./discardConfirm-DlVCFfQq.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 O, renderSlot as X, renderList as Z, getCurrentInstance as ee } from "vue";
|
|
3
|
-
import { E as P, G as te, C as B, d as E, i as $, b as j, m as h, D as ne, g as T, h as D, u as oe } from "./index.vue_vue_type_script_setup_true_lang-
|
|
3
|
+
import { E as P, G as te, C as B, d as E, i as $, b as j, m as h, D as ne, g as T, h as D, u as oe } from "./index.vue_vue_type_script_setup_true_lang-C4M5sUoA.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-DlVCFfQq.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-DcO6NMIq.js";
|
|
10
10
|
import "./app-5fxKLAzS.js";
|
|
11
11
|
/* empty css */
|
|
12
12
|
import { c as me } from "./createComponentProgrammatically-Bt2rn1IQ.js";
|