@feedmepos/mf-menu 0.32.82-dev.1 → 0.32.82
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-VKB5Ovi7.js → App-CP6dKdsG.js} +8 -8
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-DEjP4c24.js → ApplyProduct.vue_vue_type_script_setup_true_lang-CxKh2z62.js} +3 -3
- package/dist/{ApplyProductDialog.vue_vue_type_script_setup_true_lang-L094Mj3B.js → ApplyProductDialog.vue_vue_type_script_setup_true_lang-D5yV-KHS.js} +3 -3
- package/dist/{Catalog-DJ-gYH0R.js → Catalog-rmn_wi_K.js} +6 -6
- package/dist/{CatalogBinding-WkP8w4i7.js → CatalogBinding-B6qmT4ZX.js} +3 -3
- package/dist/{Category-B7eOB8YA.js → Category-DSWeQdzi.js} +4 -4
- package/dist/{Category-DvnaphvD.js → Category-dZn4oK25.js} +4 -4
- package/dist/{CookingGuide-DKxcoHua.js → CookingGuide-BVTYWxaA.js} +5 -5
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-C2MN7msL.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-Bjfql_55.js} +1 -1
- package/dist/{Group-bKLIn8jB.js → Group-B3C6clax.js} +1 -1
- package/dist/{Group-BkPzqgIz.js → Group-CHi-dO5H.js} +3 -3
- package/dist/{Group.vue_vue_type_script_setup_true_lang-CpPggqwG.js → Group.vue_vue_type_script_setup_true_lang-UxVrkBuN.js} +7 -7
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-Da0QUvjy.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-Do1OBBQf.js} +5 -5
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-5qxYsLBv.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-CO-vKv_2.js} +7 -7
- package/dist/{Ingredient-DzEoehgX.js → Ingredient-BiSrkQVk.js} +4 -4
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-G7G0EY0a.js → InventoryBinding.vue_vue_type_script_setup_true_lang-0w-RN_R_.js} +2 -2
- package/dist/{LinkProductSideSheet-D62kZpL7.js → LinkProductSideSheet-DocQGJPp.js} +4 -4
- package/dist/{MenuSetting-Dfbjza8E.js → MenuSetting-CtyVoKWq.js} +7 -7
- package/dist/{OrderPacing-CIdNKduH.js → OrderPacing-D13DbuOg.js} +5 -5
- package/dist/{PrintRoute-BW48kOTl.js → PrintRoute-Ci3Iys0w.js} +5 -5
- package/dist/{Product-BQuYELu0.js → Product-9OKt-6KX.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-DpnRkend.js → Product.vue_vue_type_script_setup_true_lang-B2CRE8lH.js} +14 -14
- package/dist/{ProductInternalTools-DCqxJoiD.js → ProductInternalTools-Cpq_h_Jv.js} +7 -7
- package/dist/{Products-snDa6kLu.js → Products-BtUxMJgT.js} +56 -56
- package/dist/{Publish-5siwkHm9.js → Publish-syGXcNlA.js} +4 -4
- package/dist/{Recipe-tEf-JC8_.js → Recipe-BLPc5AMa.js} +5 -5
- package/dist/{RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-DNM0vmzf.js → RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-BlgHu1wy.js} +1 -1
- package/dist/{RuleView.vue_vue_type_script_setup_true_lang-B4POC2CN.js → RuleView.vue_vue_type_script_setup_true_lang-DddG4OKH.js} +366 -366
- package/dist/{Scheduler-D7jM1w4O.js → Scheduler-xKSccoH0.js} +3 -3
- package/dist/{ServingSequence-DZ1J5IBd.js → ServingSequence-DskyUkTW.js} +3 -3
- package/dist/{Setting-B_XMMdC1.js → Setting-k8Id6cHv.js} +5 -5
- package/dist/{Subcategory-DSAOZBye.js → Subcategory-D17FTwWm.js} +6 -6
- package/dist/{Takeaway-DT00MpuE.js → Takeaway-Bpoi-oyf.js} +4 -4
- package/dist/{Takeaway-CTXPXXBX.js → Takeaway-C3JIyMai.js} +1 -1
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-Bp2Xv0Sr.js → Takeaway.vue_vue_type_script_setup_true_lang-Cg6RnIkW.js} +5 -5
- package/dist/{TranslationFieldSection.vue_vue_type_script_setup_true_lang-_d0RrGhD.js → TranslationFieldSection.vue_vue_type_script_setup_true_lang-DGbxQDG5.js} +1 -1
- package/dist/{TranslationSideSheet.vue_vue_type_script_setup_true_lang-Bdt6TCeB.js → TranslationSideSheet.vue_vue_type_script_setup_true_lang-CTco6ODU.js} +2 -2
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DbaFzALX.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-CZhTqKW3.js} +16 -16
- package/dist/{Unit-Dued423v.js → Unit-Bhn4-m_i.js} +2 -2
- package/dist/{Variant-Mc-pMkeJ.js → Variant-CElpkood.js} +3 -3
- package/dist/{_id_-Dlh9zwGb.js → _id_-Cd1qbY0n.js} +10 -10
- package/dist/{app-CGrMOf47.js → app-DsnkFZ-H.js} +33 -33
- package/dist/{app-BDmvIFPr.js → app-UDWbW4OG.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/assets/{linked-status-D-6NbqRf.js → linked-status-DgsdjPHB.js} +3 -3
- package/dist/assets/{menu-export-DPhT8dxg.js → menu-export-BGMqa5WQ.js} +2 -2
- package/dist/assets/{override-menu-ofuRGkDo.js → override-menu-D4M8wytN.js} +3 -3
- package/dist/assets/{validate-menu-3RNzKhn8.js → validate-menu-BxFnQvZD.js} +2 -2
- package/dist/{catalog-DdI_U6c_.js → catalog-C0qDPI4x.js} +1 -1
- package/dist/{catalogSetting-vTXiRIlg.js → catalogSetting-CNiRVcRy.js} +1 -1
- package/dist/{currency-QnNQv8si.js → currency-CBTIYnEv.js} +1 -1
- package/dist/{dayjs.min-7FVEhcxS.js → dayjs.min-Dibo6tEl.js} +2 -2
- package/dist/{discardConfirm-5S0eFAP6.js → discardConfirm-CY30eR1E.js} +1 -1
- package/dist/{index-naCc02Ky.js → index-B0ldk6F6.js} +5 -5
- package/dist/{index-C3THwchZ.js → index-BFShshS2.js} +1 -1
- package/dist/{index-Cynt9jL_.js → index-CB458_NN.js} +6 -6
- package/dist/{index.vue_vue_type_script_setup_true_lang-DfJEchiA.js → index.vue_vue_type_script_setup_true_lang-D1Voe2H_.js} +884 -884
- package/dist/{item-r2BxAbvV.js → item-CYQbNtVH.js} +20 -20
- package/dist/{jszip.min-Bs8HPuj9.js → jszip.min-vyjXBfka.js} +167 -167
- package/dist/{linkProducts-COlkKvMz.js → linkProducts-CxJsNjEk.js} +4 -4
- package/dist/{memberPricing-DWY2QR4x.js → memberPricing-BT91F3oY.js} +1 -1
- package/dist/{menu-BSs8p5ab.js → menu-DC2L58Mr.js} +1 -1
- package/dist/{menuV2-SjJ0196K.js → menuV2-BVrodTOd.js} +47 -47
- package/dist/{order_pacing-C0KtyRcP.js → order_pacing-DlMGv564.js} +5 -5
- package/dist/{priceTier--Jrc2AeT.js → priceTier-tLHSa3f-.js} +1 -1
- package/dist/{rules-y0MFnFNI.js → rules-SVD2wEfD.js} +3 -3
- package/dist/{scheduler-CxpWDtzi.js → scheduler-DwdWTugd.js} +5 -5
- package/dist/{toExcel-Dk3ZQeCr.js → toExcel-Cw_mdmEb.js} +2 -2
- package/dist/{unit-BGY8k1sb.js → unit-D7bZ5bN-.js} +3 -3
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { computed as m } from "vue";
|
|
2
|
-
import { F, h, i as S, b as v, j as C, l as N, W 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, h, i as S, b as v, j as C, l as N, W as T, u as P, c as z } from "./index.vue_vue_type_script_setup_true_lang-D1Voe2H_.js";
|
|
3
|
+
import { u as R } from "./menuV2-BVrodTOd.js";
|
|
4
|
+
import { C as w, h as E } from "./catalog-C0qDPI4x.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-DocQGJPp.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-D1Voe2H_.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-D1Voe2H_.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-CY30eR1E.js";
|
|
5
5
|
import { defineStore as qe } from "pinia";
|
|
6
6
|
import { shallowRef as N, ref as H, computed as S, shallowReactive as ze, effectScope as He, watch as Be } from "vue";
|
|
7
|
-
import { f as C, g as ue, m as T, l as ie, at as re, h as B, R as x, c as L, s as V, $ as oe, au as Ge, av as Je, a as Ye, T as Qe, aw as Xe, ax as Ze, O as et } from "./index.vue_vue_type_script_setup_true_lang-
|
|
7
|
+
import { f as C, g as ue, m as T, l as ie, at as re, h as B, R as x, c as L, s as V, $ as oe, au as Ge, av as Je, a as Ye, T as Qe, aw as Xe, ax as Ze, O as et } from "./index.vue_vue_type_script_setup_true_lang-D1Voe2H_.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-DgsdjPHB.js", ot = "/assets/override-menu-D4M8wytN.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 = []) {
|
|
@@ -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 Pt(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 $t(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 M = 0,
|
|
246
|
+
const M = 0, P = 3;
|
|
247
247
|
function ct(e) {
|
|
248
248
|
const t = /^\/(.*)\/([gimyu]*)$/.exec(e.toString());
|
|
249
249
|
if (!t)
|
|
@@ -266,13 +266,13 @@ function O(e) {
|
|
|
266
266
|
Object.prototype.hasOwnProperty.call(e, n) && (t[n] = O(e[n]));
|
|
267
267
|
return t;
|
|
268
268
|
}
|
|
269
|
-
function
|
|
269
|
+
function K(e) {
|
|
270
270
|
return e instanceof RegExp ? e.toString() : e;
|
|
271
271
|
}
|
|
272
|
-
function
|
|
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 $(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 (!$(e[n], t[n])) return !1;
|
|
286
286
|
return !0;
|
|
287
287
|
}
|
|
288
|
-
if (
|
|
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) || !$(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) && $(l, t[f])) {
|
|
309
309
|
c.push({ leftIndex: d, rightIndex: f }), a.add(f);
|
|
310
310
|
break;
|
|
311
311
|
}
|
|
@@ -315,11 +315,11 @@ function lt(e, t, n) {
|
|
|
315
315
|
}
|
|
316
316
|
function dt(e, t, n) {
|
|
317
317
|
var f, v;
|
|
318
|
-
if (
|
|
318
|
+
if ($(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) {
|
|
322
|
-
const h =
|
|
322
|
+
const h = k(e[0]) || Array.isArray(e[0]), b = a.length > 0;
|
|
323
323
|
if (h || b) {
|
|
324
324
|
a = [];
|
|
325
325
|
for (let w = 0; w < e.length; w++)
|
|
@@ -335,7 +335,7 @@ function dt(e, t, n) {
|
|
|
335
335
|
if (b !== void 0) {
|
|
336
336
|
const w = J(e[h], t[b], n);
|
|
337
337
|
if (w !== void 0 && (s[b] = w), r && b !== h) {
|
|
338
|
-
const I = `_${h}`, E = u ? [e[h], b,
|
|
338
|
+
const I = `_${h}`, E = u ? [e[h], b, P] : ["", b, P];
|
|
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 ($(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,21 +367,21 @@ 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 ($(e, t)) return;
|
|
371
371
|
if (e === void 0 && t !== void 0) {
|
|
372
372
|
const a = n != null && n.cloneDiffValues ? O(t) : t;
|
|
373
|
-
return [
|
|
373
|
+
return [K(a)];
|
|
374
374
|
}
|
|
375
375
|
if (typeof e !== typeof t || e instanceof Date != t instanceof Date || e instanceof RegExp != t instanceof RegExp || Array.isArray(e) !== Array.isArray(t)) {
|
|
376
376
|
const a = n != null && n.cloneDiffValues ? O(e) : e, d = n != null && n.cloneDiffValues ? O(t) : t;
|
|
377
|
-
return [
|
|
377
|
+
return [K(a), K(d)];
|
|
378
378
|
}
|
|
379
379
|
if (Array.isArray(e) && Array.isArray(t))
|
|
380
380
|
return dt(e, t, n);
|
|
381
|
-
if (
|
|
381
|
+
if (k(e) && k(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
|
-
return [
|
|
384
|
+
return [K(u), K(c)];
|
|
385
385
|
}
|
|
386
386
|
function ft(e, t, n) {
|
|
387
387
|
return J(e, t, n);
|
|
@@ -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] === M ? s.add(d) : l.length === 3 && l[2] ===
|
|
394
|
+
Array.isArray(l) && (l.length === 3 && l[2] === M ? s.add(d) : l.length === 3 && l[2] === P && r.set(d, l[1]));
|
|
395
395
|
}
|
|
396
396
|
const u = [];
|
|
397
397
|
let c = 0;
|
|
@@ -442,7 +442,7 @@ function Y(e, t, n) {
|
|
|
442
442
|
if (t.length === 3 && t[2] === M)
|
|
443
443
|
return;
|
|
444
444
|
}
|
|
445
|
-
return
|
|
445
|
+
return k(t) && t._t === "a" ? vt(e, t) : k(t) && k(e) ? yt(e, t) : e;
|
|
446
446
|
}
|
|
447
447
|
function le(e, t, n) {
|
|
448
448
|
return Y(e, t);
|
|
@@ -456,9 +456,9 @@ function gt(e) {
|
|
|
456
456
|
if (Array.isArray(r)) {
|
|
457
457
|
if (r.length === 3 && r[2] === M)
|
|
458
458
|
t[s] = [r[0]];
|
|
459
|
-
else if (r.length === 3 && r[2] ===
|
|
459
|
+
else if (r.length === 3 && r[2] === P) {
|
|
460
460
|
const u = r[1];
|
|
461
|
-
t[`_${u}`] = [r[0], s,
|
|
461
|
+
t[`_${u}`] = [r[0], s, P];
|
|
462
462
|
}
|
|
463
463
|
}
|
|
464
464
|
} else {
|
|
@@ -494,10 +494,10 @@ function Q(e) {
|
|
|
494
494
|
return [e[1], e[0]];
|
|
495
495
|
if (e.length === 3 && e[2] === M)
|
|
496
496
|
return [e[0]];
|
|
497
|
-
if (e.length === 3 && e[2] ===
|
|
497
|
+
if (e.length === 3 && e[2] === P)
|
|
498
498
|
return e;
|
|
499
499
|
}
|
|
500
|
-
return
|
|
500
|
+
return k(e) && e._t === "a" ? gt(e) : k(e) ? ht(e) : e;
|
|
501
501
|
}
|
|
502
502
|
}
|
|
503
503
|
function de(e) {
|
|
@@ -639,7 +639,7 @@ function Mt() {
|
|
|
639
639
|
}
|
|
640
640
|
};
|
|
641
641
|
}
|
|
642
|
-
const
|
|
642
|
+
const Kt = qe(
|
|
643
643
|
"mf-menu-store-v2",
|
|
644
644
|
() => {
|
|
645
645
|
const e = ze(Mt()), t = se(), n = tt(), s = S(() => e.menu.modules.serveSequence ? x(e.menu.modules.serveSequence, {
|
|
@@ -694,11 +694,11 @@ const Pt = qe(
|
|
|
694
694
|
);
|
|
695
695
|
if (e.currentSchedulerId != null) {
|
|
696
696
|
const p = e.menu.modules.catalog.find(
|
|
697
|
-
(
|
|
697
|
+
(R) => R._id === e.currentCatalogId
|
|
698
698
|
), _ = p ? p.override.scheduler[e.currentSchedulerId] : e.menu.modules.scheduler.find(
|
|
699
|
-
(
|
|
700
|
-
), A = new Set(((_ == null ? void 0 : _.items) || []).map((
|
|
701
|
-
i.modules.item = i.modules.item.filter((
|
|
699
|
+
(R) => R._id === e.currentSchedulerId
|
|
700
|
+
), A = new Set(((_ == null ? void 0 : _.items) || []).map((R) => R._id));
|
|
701
|
+
i.modules.item = i.modules.item.filter((R) => A.has(R._id));
|
|
702
702
|
}
|
|
703
703
|
return y.value = i, f.value = !1, v.value = v.value + 1, i;
|
|
704
704
|
}
|
|
@@ -745,7 +745,7 @@ const Pt = qe(
|
|
|
745
745
|
o = o.filter((p) => {
|
|
746
746
|
var A;
|
|
747
747
|
const _ = (A = m == null ? void 0 : m[p._id]) == null ? void 0 : A.find(
|
|
748
|
-
(
|
|
748
|
+
(R) => !R.combinationKey
|
|
749
749
|
);
|
|
750
750
|
return (_ == null ? void 0 : _.orderFrom) !== ie.enum.NONE;
|
|
751
751
|
});
|
|
@@ -878,10 +878,10 @@ const Pt = qe(
|
|
|
878
878
|
const [i, m] = o.split("/");
|
|
879
879
|
return { systemCode: i, taxCode: m };
|
|
880
880
|
}
|
|
881
|
-
function
|
|
881
|
+
function ke(o, i, m) {
|
|
882
882
|
return (o ?? i ?? []).map((p) => W(p)).find((p) => m.some((_) => _.value === p));
|
|
883
883
|
}
|
|
884
|
-
const
|
|
884
|
+
const Re = S(() => {
|
|
885
885
|
var p;
|
|
886
886
|
const o = ["SV5", "SV10"], i = Ye.Country.getCountryFlattenTaxes(
|
|
887
887
|
se().currentCountry.value
|
|
@@ -918,7 +918,7 @@ const Pt = qe(
|
|
|
918
918
|
e.currentCategoryIds = o;
|
|
919
919
|
}, Te = (o) => {
|
|
920
920
|
e.currentRestaurantAttrParams = o;
|
|
921
|
-
},
|
|
921
|
+
}, Pe = async (o, i) => {
|
|
922
922
|
const m = Array.isArray(o) ? o : [o];
|
|
923
923
|
if (!m.length) return;
|
|
924
924
|
const p = m.map((_) => ({
|
|
@@ -942,7 +942,7 @@ const Pt = qe(
|
|
|
942
942
|
message: _
|
|
943
943
|
});
|
|
944
944
|
}
|
|
945
|
-
},
|
|
945
|
+
}, $e = async (o) => {
|
|
946
946
|
const i = {
|
|
947
947
|
...e.menu,
|
|
948
948
|
masterCatalogSetting: o.masterCatalogSetting,
|
|
@@ -950,7 +950,7 @@ const Pt = qe(
|
|
|
950
950
|
priceTierSettings: o.priceTierSettings
|
|
951
951
|
};
|
|
952
952
|
return g(i), i;
|
|
953
|
-
}, D = bt({ maxHistorySize: 50 }),
|
|
953
|
+
}, D = bt({ maxHistorySize: 50 }), Ke = S(() => D.canUndo.value), Fe = S(() => D.canRedo.value), Ne = () => {
|
|
954
954
|
const o = D.undo();
|
|
955
955
|
o && g(o, !1);
|
|
956
956
|
}, je = () => {
|
|
@@ -991,7 +991,7 @@ const Pt = qe(
|
|
|
991
991
|
cookingGuide: Ae,
|
|
992
992
|
skus: Ce,
|
|
993
993
|
rules: U,
|
|
994
|
-
taxSetting:
|
|
994
|
+
taxSetting: Re,
|
|
995
995
|
// Action
|
|
996
996
|
setMenu: g,
|
|
997
997
|
readMenu: xe,
|
|
@@ -1000,16 +1000,16 @@ const Pt = qe(
|
|
|
1000
1000
|
selectScheduler: De,
|
|
1001
1001
|
selectCategory: Ve,
|
|
1002
1002
|
setRestaurantAttrParams: Te,
|
|
1003
|
-
updateMenu:
|
|
1004
|
-
updateMenuSetting:
|
|
1003
|
+
updateMenu: Pe,
|
|
1004
|
+
updateMenuSetting: $e,
|
|
1005
1005
|
computeMergedMenu: h,
|
|
1006
1006
|
// helper
|
|
1007
1007
|
encodeTax: W,
|
|
1008
1008
|
decodeTax: Ee,
|
|
1009
|
-
getSelectedTax:
|
|
1009
|
+
getSelectedTax: ke,
|
|
1010
1010
|
mapVariant: pe,
|
|
1011
1011
|
// history
|
|
1012
|
-
canUndoHistory:
|
|
1012
|
+
canUndoHistory: Ke,
|
|
1013
1013
|
canRedoHistory: Fe,
|
|
1014
1014
|
undoHistory: Ne,
|
|
1015
1015
|
redoHistory: je,
|
|
@@ -1024,11 +1024,11 @@ const Pt = qe(
|
|
|
1024
1024
|
}
|
|
1025
1025
|
);
|
|
1026
1026
|
export {
|
|
1027
|
-
|
|
1028
|
-
|
|
1027
|
+
Pt as a,
|
|
1028
|
+
$t as f,
|
|
1029
1029
|
Tt as g,
|
|
1030
1030
|
nt as i,
|
|
1031
1031
|
Vt as m,
|
|
1032
1032
|
it as o,
|
|
1033
|
-
|
|
1033
|
+
Kt 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, j as oe, b as le, h as B, i as K } from "./index.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { u as Y, j as oe, b as le, h as B, i as K } from "./index.vue_vue_type_script_setup_true_lang-D1Voe2H_.js";
|
|
3
3
|
import { useI18n as j } from "@feedmepos/mf-common";
|
|
4
4
|
import { components as A, FmButtonVariant as re, FmButtonColorThemeVariant as R, 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-DddG4OKH.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-DsnkFZ-H.js";
|
|
8
|
+
import { L as ce } from "./LinkProductSideSheet-DocQGJPp.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-CTco6ODU.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-D1Voe2H_.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 { h as v, i as C, u as Y } from "./index.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { h as v, i as C, u as Y } from "./index.vue_vue_type_script_setup_true_lang-D1Voe2H_.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-BVrodTOd.js";
|
|
6
|
+
import { _ as $ } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-CTco6ODU.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 { f as w, B as U, u as ke, F as Fe, C as q, h as ie, i as re, S as me } from "./index.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { u as ge, l as Ve } from "./discardConfirm-CY30eR1E.js";
|
|
3
|
+
import { f as w, B as U, u as ke, F as Fe, C as q, h as ie, i as re, S as me } from "./index.vue_vue_type_script_setup_true_lang-D1Voe2H_.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-DddG4OKH.js";
|
|
8
|
+
import { u as we } from "./menu-DC2L58Mr.js";
|
|
9
|
+
import { L as Pe } from "./LinkProductSideSheet-DocQGJPp.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-CO-vKv_2.js";
|
|
2
|
+
import "./discardConfirm-CY30eR1E.js";
|
|
3
3
|
var Z = {
|
|
4
4
|
defaultAmount: 0,
|
|
5
5
|
defaultCurrency: "USD",
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineStore as W } 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 k, toDisplayString as C, unref as l, Fragment as O, renderSlot as X, renderList as Z, getCurrentInstance as ee } from "vue";
|
|
3
|
-
import { G as P, H as te, D as B, f as E, j as $, b as j, m as h, E as ne, h as T, i as D, u as oe } from "./index.vue_vue_type_script_setup_true_lang-
|
|
3
|
+
import { G as P, H as te, D as B, f as E, j as $, b as j, m as h, E as ne, h as T, i as D, u as oe } from "./index.vue_vue_type_script_setup_true_lang-D1Voe2H_.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-CY30eR1E.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-BVrodTOd.js";
|
|
10
10
|
import "./app-5fxKLAzS.js";
|
|
11
11
|
/* empty css */
|
|
12
12
|
import { c as me } from "./createComponentProgrammatically-Bt2rn1IQ.js";
|