@feedmepos/mf-menu 0.32.69 → 0.32.70
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-CkqcWg7S.js → App-D2qKBNOI.js} +8 -8
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-BhG20Otb.js → ApplyProduct.vue_vue_type_script_setup_true_lang-DpuE1Txi.js} +3 -3
- package/dist/{ApplyProductDialog.vue_vue_type_script_setup_true_lang-VtSDhyxF.js → ApplyProductDialog.vue_vue_type_script_setup_true_lang-CuhfoI6u.js} +3 -3
- package/dist/{Catalog-DFt5sHAc.js → Catalog-B8DQ8HuW.js} +6 -6
- package/dist/{Category-Ky71Gp-v.js → Category-BlfQyXMP.js} +4 -4
- package/dist/{Category-CsunLGhh.js → Category-DXRKc5oR.js} +4 -4
- package/dist/{CookingGuide-CCtT6m33.js → CookingGuide-jNeTimU7.js} +5 -5
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-BoL0i1uZ.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-BMKqOTc3.js} +1 -1
- package/dist/{Group-CPF8_pyC.js → Group-BDS80Kj0.js} +1 -1
- package/dist/{Group-llBpSqev.js → Group-BmU0_HFA.js} +3 -3
- package/dist/{Group.vue_vue_type_script_setup_true_lang-B1eL9TxG.js → Group.vue_vue_type_script_setup_true_lang-hSxGRxop.js} +7 -7
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CXWmmLn6.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CUNcxRnJ.js} +5 -5
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-xAjv38VK.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-DjLnCfC5.js} +7 -7
- package/dist/{Ingredient-10tyBIdU.js → Ingredient-Czl2K5rQ.js} +4 -4
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-DHdCl7qE.js → InventoryBinding.vue_vue_type_script_setup_true_lang-M8HxDzxj.js} +2 -2
- package/dist/{LinkProductSideSheet-DvzRszmI.js → LinkProductSideSheet-iwH-Ft7_.js} +4 -4
- package/dist/{MenuSetting-D_fJ0Nh1.js → MenuSetting-D-PtnHh_.js} +7 -7
- package/dist/{OrderPacing-BLGBL00l.js → OrderPacing-DpajUDfR.js} +5 -5
- package/dist/{PrintRoute-CTJePpsK.js → PrintRoute-CWzUI3D1.js} +5 -5
- package/dist/{Product-B1BEM32b.js → Product-C341g4w7.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-lUGzPr_a.js → Product.vue_vue_type_script_setup_true_lang-BRLo39YE.js} +14 -14
- package/dist/{ProductInternalTools-DO1On9V6.js → ProductInternalTools-BUku68VS.js} +7 -7
- package/dist/{Products-Dw1aYtPB.js → Products-Dco1XgQd.js} +53 -53
- package/dist/Publish-sDveejeh.js +1581 -0
- package/dist/{Recipe-p8OmyzT8.js → Recipe-MfXgmqtt.js} +5 -5
- package/dist/{RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-7Ab3OzAU.js → RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-vtJwWImA.js} +1 -1
- package/dist/{RuleView.vue_vue_type_script_setup_true_lang-DMRyx0V7.js → RuleView.vue_vue_type_script_setup_true_lang-ZnrzCXu3.js} +817 -817
- package/dist/{Scheduler-bJIwoxJQ.js → Scheduler-DKyhr6p8.js} +65 -64
- package/dist/{ServingSequence-DXpq5-Sv.js → ServingSequence-nEoPok72.js} +3 -3
- package/dist/{Setting-BOxDPwyd.js → Setting-RWyx1jq2.js} +5 -5
- package/dist/{Subcategory-CtapgQWV.js → Subcategory-B0smFoMD.js} +6 -6
- package/dist/{Takeaway-CKo0enwK.js → Takeaway-BVMZewQ0.js} +4 -4
- package/dist/{Takeaway-BOvGqe0f.js → Takeaway-BpwBR54Y.js} +1 -1
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-BWoq54ru.js → Takeaway.vue_vue_type_script_setup_true_lang-BTnFR11p.js} +5 -5
- package/dist/{TranslationFieldSection.vue_vue_type_script_setup_true_lang-VYrjC7c8.js → TranslationFieldSection.vue_vue_type_script_setup_true_lang-KNIxHJsf.js} +1 -1
- package/dist/{TranslationSideSheet.vue_vue_type_script_setup_true_lang-CGCx6D5Y.js → TranslationSideSheet.vue_vue_type_script_setup_true_lang-Dznh3-H8.js} +2 -2
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-xHzhKbpN.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-k3m88FlR.js} +15 -15
- package/dist/{Unit-CtFTRvvy.js → Unit-BzbHDW_L.js} +2 -2
- package/dist/{Variant-D4QMrOee.js → Variant-BF_zXLDM.js} +3 -3
- package/dist/{_id_-BYr-NECf.js → _id_-BjGIzI2V.js} +10 -10
- package/dist/{app-DNh5SqEy.js → app-DDrm4hOt.js} +32 -32
- package/dist/{app-B0TUeVKL.js → app-qoGPYaSq.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/components/feature/publish.d.ts +2 -2
- package/dist/assets/{linked-status-VS3D4vr6.js → linked-status-CXL9skR7.js} +2 -2
- package/dist/assets/{menu-export-wMnl913u.js → menu-export-rYnoju7h.js} +34 -34
- package/dist/assets/{override-menu-0N_qNcuX.js → override-menu-D1btUpWP.js} +2 -2
- package/dist/assets/{validate-menu-CUOc0Cpy.js → validate-menu-R6zi6RGb.js} +2 -2
- package/dist/{catalog-D7lA7mT_.js → catalog-ByfbV1WF.js} +1 -1
- package/dist/{catalogSetting-O0tJo-T7.js → catalogSetting-qvKbsi8t.js} +1 -1
- package/dist/{currency-CHsj_J0b.js → currency-C5kmu6Ku.js} +1 -1
- package/dist/{dayjs.min-DeBV2WG7.js → dayjs.min-D3WVCWf8.js} +2 -2
- package/dist/{discardConfirm-CYxTrfx-.js → discardConfirm-rDbUqsKj.js} +1 -1
- package/dist/{index-BFldIBpf.js → index-B2Hnb8WK.js} +6 -6
- package/dist/{index-D5gtDsAd.js → index-BoVuN9fk.js} +5 -5
- package/dist/{index-DQUODrNy.js → index-COu9fsyr.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-C7ZQI7Ck.js → index.vue_vue_type_script_setup_true_lang-Wm3L_CDm.js} +4129 -4129
- package/dist/{item-KLAdfYvM.js → item-CcaqdD88.js} +20 -20
- package/dist/{jszip.min-Vn2-CH88.js → jszip.min-B-GfzNS3.js} +529 -529
- package/dist/{linkProducts-BC3LTMzZ.js → linkProducts-DXSk9ntt.js} +4 -4
- package/dist/{memberPricing-CoFY9U1J.js → memberPricing-Bmv0qRtK.js} +1 -1
- package/dist/{menu-BwtqZ_Yz.js → menu-BLbZDh7_.js} +1 -1
- package/dist/{menuV2-Cadt2gJu.js → menuV2-BSGYEEJI.js} +39 -39
- package/dist/{order_pacing-Dr7DHsai.js → order_pacing-DLrwnijs.js} +5 -5
- package/dist/{priceTier-DnD28JYo.js → priceTier-Bw0-wJJ0.js} +1 -1
- package/dist/{rules-BL4uMD7m.js → rules-Ciu45JMO.js} +3 -3
- package/dist/{scheduler-B0UE4CHB.js → scheduler-DYZ2PnDh.js} +166 -166
- package/dist/{toExcel-OdTMnhFs.js → toExcel-D6Rp5oOB.js} +2 -2
- package/dist/{unit-MUk9trKB.js → unit-BR60ZgDQ.js} +3 -3
- package/package.json +2 -2
- package/dist/Publish-ZTiUf2NT.js +0 -1565
|
@@ -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-Wm3L_CDm.js";
|
|
3
|
+
import { u as R } from "./menuV2-BSGYEEJI.js";
|
|
4
|
+
import { C as w, h as E } from "./catalog-ByfbV1WF.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-iwH-Ft7_.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-Wm3L_CDm.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-Wm3L_CDm.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-rDbUqsKj.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 { d as C, f as ue, m as T, k as ie, aq as re, g as B, O as x, c as L, s as V, X as oe, ar as Ge, as as Je, a as Xe, Q as Ye, at as Qe, au as Ze, M as et } from "./index.vue_vue_type_script_setup_true_lang-
|
|
7
|
+
import { d as C, f as ue, m as T, k as ie, aq as re, g as B, O as x, c as L, s as V, X as oe, ar as Ge, as as Je, a as Xe, Q as Ye, at as Qe, au as Ze, M as et } from "./index.vue_vue_type_script_setup_true_lang-Wm3L_CDm.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-CXL9skR7.js", ot = "/assets/override-menu-D1btUpWP.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 Kt(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);
|
|
@@ -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
|
});
|
|
@@ -243,7 +243,7 @@ async function Pt(e, t, n) {
|
|
|
243
243
|
}
|
|
244
244
|
return r;
|
|
245
245
|
}
|
|
246
|
-
const w = 0,
|
|
246
|
+
const w = 0, P = 3;
|
|
247
247
|
function ct(e) {
|
|
248
248
|
const t = /^\/(.*)\/([gimyu]*)$/.exec(e.toString());
|
|
249
249
|
if (!t)
|
|
@@ -269,10 +269,10 @@ 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
|
-
function
|
|
275
|
+
function K(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 P(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 (!K(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)
|
|
292
|
-
if (!Object.prototype.hasOwnProperty.call(t, r) || !
|
|
292
|
+
if (!Object.prototype.hasOwnProperty.call(t, r) || !K(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) && K(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 (K(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 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++)
|
|
@@ -335,8 +335,8 @@ 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}`,
|
|
339
|
-
s[I] =
|
|
338
|
+
const I = `_${p}`, k = u ? [e[p], b, P] : ["", b, P];
|
|
339
|
+
s[I] = k;
|
|
340
340
|
}
|
|
341
341
|
} else {
|
|
342
342
|
const M = `_${p}`;
|
|
@@ -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 (K(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 (K(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)];
|
|
@@ -378,7 +378,7 @@ function J(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)];
|
|
@@ -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] === P && r.set(d, l[1]));
|
|
395
395
|
}
|
|
396
396
|
const u = [];
|
|
397
397
|
let c = 0;
|
|
@@ -442,7 +442,7 @@ function X(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
448
|
return X(e, t);
|
|
@@ -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] === 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 Y(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] === P)
|
|
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) {
|
|
@@ -703,9 +703,9 @@ 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,
|
|
706
|
+
let I = null, k = null;
|
|
707
707
|
function Q() {
|
|
708
|
-
|
|
708
|
+
k && (k(), k = null), I && I.stop(), I = He(!0), k = I.run(() => Be(
|
|
709
709
|
() => [e.menu, e.currentCatalogId, e.currentSchedulerId],
|
|
710
710
|
() => {
|
|
711
711
|
f.value || M();
|
|
@@ -874,11 +874,11 @@ 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(() => {
|
|
@@ -918,7 +918,7 @@ const $t = 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 h = m.map((_) => ({
|
|
@@ -942,7 +942,7 @@ const $t = qe(
|
|
|
942
942
|
message: _
|
|
943
943
|
});
|
|
944
944
|
}
|
|
945
|
-
},
|
|
945
|
+
}, Ke = async (o) => {
|
|
946
946
|
const i = {
|
|
947
947
|
...e.menu,
|
|
948
948
|
masterCatalogSetting: o.masterCatalogSetting,
|
|
@@ -1000,13 +1000,13 @@ const $t = qe(
|
|
|
1000
1000
|
selectScheduler: De,
|
|
1001
1001
|
selectCategory: Ve,
|
|
1002
1002
|
setRestaurantAttrParams: Te,
|
|
1003
|
-
updateMenu:
|
|
1004
|
-
updateMenuSetting:
|
|
1003
|
+
updateMenu: Pe,
|
|
1004
|
+
updateMenuSetting: Ke,
|
|
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,7 +1015,7 @@ 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();
|
|
@@ -1024,8 +1024,8 @@ const $t = qe(
|
|
|
1024
1024
|
}
|
|
1025
1025
|
);
|
|
1026
1026
|
export {
|
|
1027
|
-
|
|
1028
|
-
|
|
1027
|
+
Pt as a,
|
|
1028
|
+
Kt as f,
|
|
1029
1029
|
Tt as g,
|
|
1030
1030
|
nt as i,
|
|
1031
1031
|
Vt as m,
|
|
@@ -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-Wm3L_CDm.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-ZnrzCXu3.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-DDrm4hOt.js";
|
|
8
|
+
import { L as ce } from "./LinkProductSideSheet-iwH-Ft7_.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-Dznh3-H8.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-Wm3L_CDm.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-Wm3L_CDm.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-BSGYEEJI.js";
|
|
6
|
+
import { _ as $ } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-Dznh3-H8.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",
|