@feedmepos/mf-menu 0.31.72 → 0.31.74
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-CvauiBxh.js → App-B6Hn5Wwr.js} +7 -7
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-BK9XcgvQ.js → ApplyProduct.vue_vue_type_script_setup_true_lang-CqGU3bJQ.js} +3 -3
- package/dist/{Catalog-CBdU6H-7.js → Catalog-D-2hDU2I.js} +6 -6
- package/dist/{Category-DkKEXvEF.js → Category-DjTbuAvE.js} +4 -4
- package/dist/{Category-BFO9_FCp.js → Category-hSOIgBkH.js} +6 -6
- package/dist/{CookingGuide-E34vwLgw.js → CookingGuide-D7ruB7eP.js} +4 -4
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-DlnAxQwE.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-mxVSGXAz.js} +1 -1
- package/dist/{Group-Bcc1Z7D-.js → Group-CjlhbhDV.js} +1 -1
- package/dist/{Group-CpSycfFA.js → Group-evJZbgZn.js} +3 -3
- package/dist/{Group.vue_vue_type_script_setup_true_lang-CWIHfDqh.js → Group.vue_vue_type_script_setup_true_lang-DiKraPiw.js} +7 -7
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-B8tJzkEO.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BYku8MAc.js} +5 -5
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-BGWmkL9R.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-DScxctPb.js} +7 -7
- package/dist/{Ingredient-0Cg2IcHV.js → Ingredient-jNDx1pUw.js} +3 -3
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-Dztd7mAs.js → InventoryBinding.vue_vue_type_script_setup_true_lang-CuM_k-C3.js} +2 -2
- package/dist/{LinkProductSideSheet-CiRZO3uN.js → LinkProductSideSheet-CAPIdf6P.js} +3 -3
- package/dist/{MenuSetting-Bv4sWdlj.js → MenuSetting-C2MDgy57.js} +5 -5
- package/dist/{PrintRoute-DP-fjMrF.js → PrintRoute-SmWbKr9Y.js} +4 -4
- package/dist/{Product-DgZcdRkv.js → Product-BCm49V9T.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-CpthNypU.js → Product.vue_vue_type_script_setup_true_lang-CTOjLqbF.js} +13 -13
- package/dist/{ProductInternalTools-CLmYNGLn.js → ProductInternalTools-DGsvvnIs.js} +5 -5
- package/dist/{Products-KrRu9cnx.js → Products-D4qeSEfO.js} +11 -11
- package/dist/{Publish-C9Wi7dG1.js → Publish-3A3EEQ9x.js} +3 -3
- package/dist/{Recipe-BPdgYfvy.js → Recipe-CS7TZGA6.js} +4 -4
- package/dist/{Scheduler-C9LCR2Oj.js → Scheduler-BIwTUJMJ.js} +3 -3
- package/dist/{ServingSequence-D-OBo-oY.js → ServingSequence-C0N8wJfr.js} +3 -3
- package/dist/{Setting-qITT89Lg.js → Setting-fA6tvQK2.js} +5 -5
- package/dist/{Subcategory-kl6ncKqB.js → Subcategory-BAFAmflQ.js} +4 -4
- package/dist/{Takeaway-BOxto2HZ.js → Takeaway-CLZouw1j.js} +1 -1
- package/dist/{Takeaway-D9GOXVdh.js → Takeaway-D4aO8zzN.js} +4 -4
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-CbhZLN-r.js → Takeaway.vue_vue_type_script_setup_true_lang-1oN-i9bo.js} +5 -5
- package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-CH9jzjP0.js → Thumbnail.vue_vue_type_script_setup_true_lang-Dwol_Lkd.js} +4 -4
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-C0NgcFQK.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-CabQS55D.js} +1092 -1086
- package/dist/{Unit-Dr0n8Nl-.js → Unit-ByqUb4Po.js} +2 -2
- package/dist/{Variant-BVvjuGqK.js → Variant-BmqrUfen.js} +3 -3
- package/dist/{_id_-DqqSN5Lt.js → _id_-RUWzOB0B.js} +10 -10
- package/dist/{app-B3_2cau3.js → app-B1N2F0j8.js} +1 -1
- package/dist/{app-DJ-rQRBU.js → app-CHpw_EM1.js} +471 -468
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/app.d.ts +1626 -0
- package/dist/apps/mf-menu/src/components/feature/ApplyProduct/index.d.ts +4 -4
- package/dist/apps/mf-menu/src/components/feature/PriceTier/PriceTierButton.vue.d.ts +4 -4
- package/dist/apps/mf-menu/src/components/feature/PriceTier/PriceTierForm.vue.d.ts +4 -4
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/item.d.ts +4 -4
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/scheduler.d.ts +2 -2
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/useItemFormManagement.d.ts +2 -2
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/item/ItemForm.vue.d.ts +6 -6
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/menuUtils.d.ts +2 -2
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/store/menuV2.d.ts +6 -6
- package/dist/apps/mf-menu/src/components/import/PreviewAddonContent.vue.d.ts +4 -4
- package/dist/apps/mf-menu/src/composable/linkProducts.d.ts +2 -2
- package/dist/apps/mf-menu/src/helper/itemCategories.d.ts +2 -2
- package/dist/apps/mf-menu/src/helper/menu.d.ts +8 -8
- package/dist/apps/mf-menu/src/helper/menuImport.d.ts +6 -6
- package/dist/apps/mf-menu/src/manager/menu/item.d.ts +6 -6
- package/dist/apps/mf-menu/src/stores/manager/item.d.ts +6 -6
- package/dist/apps/mf-menu/src/stores/manager/scheduler.d.ts +2 -2
- package/dist/apps/mf-menu/src/stores/menu.d.ts +6 -6
- package/dist/apps/mf-menu/src/views/Catalog/Edit/AddProductPopup/Form.vue.d.ts +4 -4
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/linked-status-CFdi7K3K.js +13 -0
- package/dist/assets/override-menu-CXOY8i3w.js +13 -0
- package/dist/assets/validate-menu-DLlrsx2f.js +13 -0
- package/dist/{catalog-DeBJkQdk.js → catalog-CarmtheV.js} +1 -1
- package/dist/{catalogSetting-CkZSHD-W.js → catalogSetting-BqrTpBP8.js} +1 -1
- package/dist/{category-CJKIi291.js → category-5R83ypNS.js} +1 -1
- package/dist/{currency-NcUCHGGN.js → currency-CUl4r9rT.js} +1 -1
- package/dist/{customAttributes-Cf1e7I1m.js → customAttributes-BkqKM_KW.js} +1 -1
- package/dist/{index-DQqxmq0e.js → index-DAWSNP3G.js} +3 -3
- package/dist/{index-EBL2mPva.js → index-DUfYYdZ-.js} +1 -1
- package/dist/{index-B7ZCIQp2.js → index-DlwLw-BQ.js} +4 -4
- package/dist/{index-BaeTP7Ku.js → index-Ttqt4iFV.js} +1 -1
- package/dist/{item-BsvsZcce.js → item-B0UPYxsB.js} +601 -595
- package/dist/{iteration-CxQwvFbX.js → iteration-CfmAZiOO.js} +1 -1
- package/dist/{jszip.min-DoZyvEEd.js → jszip.min-zROpry0S.js} +2 -2
- package/dist/{menu-Dlsf52hs.js → menu-DAac726D.js} +19707 -19420
- package/dist/{menu-zMO5M1Ur.js → menu-DpYo8dYR.js} +1 -1
- package/dist/{menuV2-Ss7NpjF_.js → menuV2-DZj_FPqR.js} +82 -82
- package/dist/mf-menu.css +1 -1
- package/dist/{priceTier-Dhh2TKAL.js → priceTier-BvDLl8v2.js} +1 -1
- package/dist/{scheduler-CA9RiMAg.js → scheduler-pNUXG6En.js} +4 -4
- package/dist/{subcategory-tJjY3seO.js → subcategory-DCDCQnAX.js} +2 -2
- package/dist/{toExcel-C6zcyUsq.js → toExcel-DqMa1Hn8.js} +2 -2
- package/dist/{unit-D4M4cm2W.js → unit-CuCXoWPG.js} +2 -2
- package/package.json +4 -4
- package/dist/assets/linked-status-qkReSi42.js +0 -13
- package/dist/assets/override-menu-Dyv1SsFk.js +0 -13
- package/dist/assets/validate-menu-DpF5os-S.js +0 -13
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
var Ue = Object.defineProperty;
|
|
2
2
|
var We = (e, t, n) => t in e ? Ue(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var ne = (e, t, n) => We(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
-
import { an as ue, H as
|
|
4
|
+
import { an as ue, H as C, B as T, z as ae, ao as re, J as G, I as ie, a8 as x, c as L, X as D, ai as oe, ap as Le, aq as ze, A as qe, aa as Ge, ar as He, as as Be, a7 as Je } from "./menu-DAac726D.js";
|
|
5
5
|
import { defineStore as Ye } from "pinia";
|
|
6
6
|
import { shallowRef as j, ref as H, computed as S, shallowReactive as Xe, effectScope as Qe, watch as Ze } from "vue";
|
|
7
7
|
import { useCoreStore as se } from "@feedmepos/mf-common";
|
|
8
8
|
import { useSnackbar as et } from "@feedmepos/ui-library";
|
|
9
|
-
const tt = "/assets/linked-status-
|
|
9
|
+
const tt = "/assets/linked-status-CFdi7K3K.js", nt = "/assets/override-menu-CXOY8i3w.js";
|
|
10
10
|
function rt(e) {
|
|
11
11
|
var o;
|
|
12
|
-
const t =
|
|
12
|
+
const t = C(e), n = (o = t.variant) == null ? void 0 : o.variantCombinations;
|
|
13
13
|
return delete t.variant, delete t.thumbnail, [t, ...n || []];
|
|
14
14
|
}
|
|
15
15
|
function ot(e, t, n, o) {
|
|
16
|
-
const r =
|
|
16
|
+
const r = C(t), a = n ? r.modules.catalog.find((m) => m._id === n) : null, l = o ? r.modules.scheduler.find((m) => m._id === o) : null, u = a ? C(a) : void 0, c = n ? r.modules.catalog.filter((m) => m._id !== n) : [], i = l ? C(l) : void 0, f = e.reduce((m, v) => (m[v._id] = rt(v), m), {});
|
|
17
17
|
function h(m = []) {
|
|
18
18
|
const v = e.map((p) => p._id);
|
|
19
19
|
return [
|
|
@@ -153,7 +153,7 @@ function ut(e, t) {
|
|
|
153
153
|
};
|
|
154
154
|
}
|
|
155
155
|
async function Ot(e, t, n, o, r, a = !0) {
|
|
156
|
-
const l =
|
|
156
|
+
const l = C(n), u = a ? ot(t, l, o, r) : l, c = t.reduce((h, m) => (h[m._id] = u.modules.item.find((v) => v._id === m._id), h), {}), i = t.reduce((h, m) => {
|
|
157
157
|
const v = m._id;
|
|
158
158
|
return h[v] = st(c[v], e), h;
|
|
159
159
|
}, {}), f = T.getFallbackPrices({
|
|
@@ -170,7 +170,7 @@ async function Ot(e, t, n, o, r, a = !0) {
|
|
|
170
170
|
};
|
|
171
171
|
});
|
|
172
172
|
}
|
|
173
|
-
function
|
|
173
|
+
function Vt(e, t) {
|
|
174
174
|
if (e.length === 0) return "";
|
|
175
175
|
const n = e == null ? void 0 : e.split("variant");
|
|
176
176
|
return ((n == null ? void 0 : n.reduce((r, a) => {
|
|
@@ -183,11 +183,11 @@ function Dt(e, t) {
|
|
|
183
183
|
return r;
|
|
184
184
|
}, [])) || []).join(" / ");
|
|
185
185
|
}
|
|
186
|
-
const
|
|
187
|
-
async function
|
|
186
|
+
const z = /* @__PURE__ */ new Map();
|
|
187
|
+
async function Dt(e, t) {
|
|
188
188
|
const n = `${e._id}-${e.updatedAt}-${t}`;
|
|
189
|
-
if (
|
|
190
|
-
return
|
|
189
|
+
if (z.has(n))
|
|
190
|
+
return z.get(n);
|
|
191
191
|
const o = await ue(
|
|
192
192
|
tt,
|
|
193
193
|
JSON.stringify({
|
|
@@ -195,7 +195,7 @@ async function Vt(e, t) {
|
|
|
195
195
|
itemId: t
|
|
196
196
|
})
|
|
197
197
|
);
|
|
198
|
-
return
|
|
198
|
+
return z.set(n, o), o;
|
|
199
199
|
}
|
|
200
200
|
async function ce(e, t, n) {
|
|
201
201
|
return await ue(nt, {
|
|
@@ -219,7 +219,7 @@ function Tt(e, t, n) {
|
|
|
219
219
|
}
|
|
220
220
|
return r(t, n);
|
|
221
221
|
}
|
|
222
|
-
function
|
|
222
|
+
function Kt(e, t, n) {
|
|
223
223
|
const o = /* @__PURE__ */ new Set();
|
|
224
224
|
function r(a, l) {
|
|
225
225
|
if (!e || !a || !l || o.has(a)) return !1;
|
|
@@ -234,18 +234,18 @@ function Ft(e, t, n) {
|
|
|
234
234
|
}
|
|
235
235
|
return r(t, n);
|
|
236
236
|
}
|
|
237
|
-
const
|
|
237
|
+
const q = /* @__PURE__ */ new Map();
|
|
238
238
|
async function at(e, t, n) {
|
|
239
239
|
const o = `${e._id}-${e.updatedAt}-${t || "null"}-${n || "null"}`;
|
|
240
|
-
if (
|
|
241
|
-
return
|
|
240
|
+
if (q.has(o))
|
|
241
|
+
return q.get(o);
|
|
242
242
|
const r = await ce(e, t, n);
|
|
243
|
-
return
|
|
243
|
+
return q.set(o, r), r;
|
|
244
244
|
}
|
|
245
|
-
async function
|
|
245
|
+
async function Ft(e, t, n) {
|
|
246
246
|
var l, u;
|
|
247
247
|
const o = await at(e, t, null), r = [], a = (c, i) => {
|
|
248
|
-
const f =
|
|
248
|
+
const f = C(c);
|
|
249
249
|
for (const h in i)
|
|
250
250
|
i[h] && (f[h] = i[h]);
|
|
251
251
|
return f;
|
|
@@ -254,9 +254,9 @@ async function Kt(e, t, n) {
|
|
|
254
254
|
const i = (l = c.items) == null ? void 0 : l.find((h) => h._id === n && !h.combinationKey), f = e.modules.item.find((h) => h._id === n);
|
|
255
255
|
if (i) {
|
|
256
256
|
const h = (u = c.items) == null ? void 0 : u.filter((v) => v._id === n && v.combinationKey), m = [i, ...h].map((v) => {
|
|
257
|
-
var w,
|
|
258
|
-
const p = v.combinationKey ? (
|
|
259
|
-
(
|
|
257
|
+
var w, I;
|
|
258
|
+
const p = v.combinationKey ? (I = (w = f == null ? void 0 : f.variant) == null ? void 0 : w.variantCombinations) == null ? void 0 : I.find(
|
|
259
|
+
(R) => R.combinationKey === v.combinationKey
|
|
260
260
|
) : f, b = p && f ? a(f, p) : v;
|
|
261
261
|
return a(b, v);
|
|
262
262
|
});
|
|
@@ -268,7 +268,7 @@ async function Kt(e, t, n) {
|
|
|
268
268
|
}
|
|
269
269
|
return r;
|
|
270
270
|
}
|
|
271
|
-
const M = 0,
|
|
271
|
+
const M = 0, K = 3;
|
|
272
272
|
function it(e) {
|
|
273
273
|
const t = /^\/(.*)\/([gimyu]*)$/.exec(e.toString());
|
|
274
274
|
if (!t)
|
|
@@ -294,10 +294,10 @@ function O(e) {
|
|
|
294
294
|
function P(e) {
|
|
295
295
|
return e instanceof RegExp ? e.toString() : e;
|
|
296
296
|
}
|
|
297
|
-
function
|
|
297
|
+
function k(e) {
|
|
298
298
|
return typeof e == "object" && e !== null && !Array.isArray(e) && !(e instanceof Date) && !(e instanceof RegExp);
|
|
299
299
|
}
|
|
300
|
-
function
|
|
300
|
+
function F(e, t) {
|
|
301
301
|
if (e === t) return !0;
|
|
302
302
|
if (typeof e != typeof t) return !1;
|
|
303
303
|
if (e instanceof Date && t instanceof Date)
|
|
@@ -307,14 +307,14 @@ function K(e, t) {
|
|
|
307
307
|
if (Array.isArray(e) && Array.isArray(t)) {
|
|
308
308
|
if (e.length !== t.length) return !1;
|
|
309
309
|
for (let n = 0; n < e.length; n++)
|
|
310
|
-
if (!
|
|
310
|
+
if (!F(e[n], t[n])) return !1;
|
|
311
311
|
return !0;
|
|
312
312
|
}
|
|
313
|
-
if (
|
|
313
|
+
if (k(e) && k(t)) {
|
|
314
314
|
const n = Object.keys(e), o = Object.keys(t);
|
|
315
315
|
if (n.length !== o.length) return !1;
|
|
316
316
|
for (const r of n)
|
|
317
|
-
if (!Object.prototype.hasOwnProperty.call(t, r) || !
|
|
317
|
+
if (!Object.prototype.hasOwnProperty.call(t, r) || !F(e[r], t[r])) return !1;
|
|
318
318
|
return !0;
|
|
319
319
|
}
|
|
320
320
|
return !1;
|
|
@@ -330,7 +330,7 @@ function ct(e, t, n) {
|
|
|
330
330
|
const i = e[c], f = n ? n(i) : JSON.stringify(i), h = a.get(f);
|
|
331
331
|
if (h) {
|
|
332
332
|
for (const m of h)
|
|
333
|
-
if (!u.has(m) &&
|
|
333
|
+
if (!u.has(m) && F(i, t[m])) {
|
|
334
334
|
l.push({ leftIndex: c, rightIndex: m }), u.add(m);
|
|
335
335
|
break;
|
|
336
336
|
}
|
|
@@ -340,11 +340,11 @@ function ct(e, t, n) {
|
|
|
340
340
|
}
|
|
341
341
|
function lt(e, t, n) {
|
|
342
342
|
var m, v;
|
|
343
|
-
if (
|
|
343
|
+
if (F(e, t)) return;
|
|
344
344
|
const o = { _t: "a" }, r = ((m = n == null ? void 0 : n.arrays) == null ? void 0 : m.detectMove) !== !1, a = ((v = n == null ? void 0 : n.arrays) == null ? void 0 : v.includeValueOnMove) === !0, l = n == null ? void 0 : n.objectHash;
|
|
345
345
|
let u = r ? ct(e, t, l) : [];
|
|
346
346
|
if (!l && e.length === t.length && e.length > 0 && u.length < e.length) {
|
|
347
|
-
const p =
|
|
347
|
+
const p = k(e[0]) || Array.isArray(e[0]), b = u.length > 0;
|
|
348
348
|
if (p || b) {
|
|
349
349
|
u = [];
|
|
350
350
|
for (let w = 0; w < e.length; w++)
|
|
@@ -360,8 +360,8 @@ function lt(e, t, n) {
|
|
|
360
360
|
if (b !== void 0) {
|
|
361
361
|
const w = J(e[p], t[b], n);
|
|
362
362
|
if (w !== void 0 && (o[b] = w), r && b !== p) {
|
|
363
|
-
const
|
|
364
|
-
o[
|
|
363
|
+
const I = `_${p}`, R = a ? [e[p], b, K] : ["", b, K];
|
|
364
|
+
o[I] = R;
|
|
365
365
|
}
|
|
366
366
|
} else {
|
|
367
367
|
const w = `_${p}`;
|
|
@@ -375,7 +375,7 @@ function lt(e, t, n) {
|
|
|
375
375
|
return o;
|
|
376
376
|
}
|
|
377
377
|
function dt(e, t, n) {
|
|
378
|
-
if (
|
|
378
|
+
if (F(e, t)) return;
|
|
379
379
|
const o = {}, r = Object.keys(e), a = Object.keys(t), l = /* @__PURE__ */ new Set([...r, ...a]);
|
|
380
380
|
for (const u of l) {
|
|
381
381
|
if (n != null && n.propertyFilter && !n.propertyFilter(u, { left: e, right: t }))
|
|
@@ -392,7 +392,7 @@ function dt(e, t, n) {
|
|
|
392
392
|
return Object.keys(o).length > 0 ? o : void 0;
|
|
393
393
|
}
|
|
394
394
|
function J(e, t, n) {
|
|
395
|
-
if (
|
|
395
|
+
if (F(e, t)) return;
|
|
396
396
|
if (e === void 0 && t !== void 0) {
|
|
397
397
|
const u = n != null && n.cloneDiffValues ? O(t) : t;
|
|
398
398
|
return [P(u)];
|
|
@@ -403,7 +403,7 @@ function J(e, t, n) {
|
|
|
403
403
|
}
|
|
404
404
|
if (Array.isArray(e) && Array.isArray(t))
|
|
405
405
|
return lt(e, t, n);
|
|
406
|
-
if (
|
|
406
|
+
if (k(e) && k(t))
|
|
407
407
|
return dt(e, t, n);
|
|
408
408
|
const a = n != null && n.cloneDiffValues ? O(e) : e, l = n != null && n.cloneDiffValues ? O(t) : t;
|
|
409
409
|
return [P(a), P(l)];
|
|
@@ -416,7 +416,7 @@ function mt(e, t, n) {
|
|
|
416
416
|
for (const u in t) {
|
|
417
417
|
if (u === "_t" || !u.startsWith("_")) continue;
|
|
418
418
|
const c = parseInt(u.slice(1)), i = t[u];
|
|
419
|
-
Array.isArray(i) && (i.length === 3 && i[2] === M ? o.add(c) : i.length === 3 && i[2] ===
|
|
419
|
+
Array.isArray(i) && (i.length === 3 && i[2] === M ? o.add(c) : i.length === 3 && i[2] === K && r.set(c, i[1]));
|
|
420
420
|
}
|
|
421
421
|
const a = [];
|
|
422
422
|
let l = 0;
|
|
@@ -467,7 +467,7 @@ function Y(e, t, n) {
|
|
|
467
467
|
if (t.length === 3 && t[2] === M)
|
|
468
468
|
return;
|
|
469
469
|
}
|
|
470
|
-
return
|
|
470
|
+
return k(t) && t._t === "a" ? mt(e, t) : k(t) && k(e) ? vt(e, t) : e;
|
|
471
471
|
}
|
|
472
472
|
function le(e, t, n) {
|
|
473
473
|
return Y(e, t);
|
|
@@ -481,9 +481,9 @@ function yt(e) {
|
|
|
481
481
|
if (Array.isArray(r)) {
|
|
482
482
|
if (r.length === 3 && r[2] === M)
|
|
483
483
|
t[o] = [r[0]];
|
|
484
|
-
else if (r.length === 3 && r[2] ===
|
|
484
|
+
else if (r.length === 3 && r[2] === K) {
|
|
485
485
|
const a = r[1];
|
|
486
|
-
t[`_${a}`] = [r[0], o,
|
|
486
|
+
t[`_${a}`] = [r[0], o, K];
|
|
487
487
|
}
|
|
488
488
|
}
|
|
489
489
|
} else {
|
|
@@ -519,10 +519,10 @@ function X(e) {
|
|
|
519
519
|
return [e[1], e[0]];
|
|
520
520
|
if (e.length === 3 && e[2] === M)
|
|
521
521
|
return [e[0]];
|
|
522
|
-
if (e.length === 3 && e[2] ===
|
|
522
|
+
if (e.length === 3 && e[2] === K)
|
|
523
523
|
return e;
|
|
524
524
|
}
|
|
525
|
-
return
|
|
525
|
+
return k(e) && e._t === "a" ? yt(e) : k(e) ? ht(e) : e;
|
|
526
526
|
}
|
|
527
527
|
}
|
|
528
528
|
function de(e) {
|
|
@@ -569,19 +569,19 @@ function St({
|
|
|
569
569
|
}), n = j(null), o = j([]), r = H(-1), a = j(null), l = S(() => r.value > 0), u = S(() => r.value < o.value.length - 1);
|
|
570
570
|
function c(v) {
|
|
571
571
|
if (n.value === null) {
|
|
572
|
-
n.value =
|
|
572
|
+
n.value = C(v), a.value = C(v), o.value = [{ delta: null }], r.value = 0;
|
|
573
573
|
return;
|
|
574
574
|
}
|
|
575
575
|
const p = t.diff(a.value, v);
|
|
576
|
-
if (r.value < o.value.length - 1 && (o.value = o.value.slice(0, r.value + 1)), o.value.push({ delta: p }), r.value++, a.value =
|
|
576
|
+
if (r.value < o.value.length - 1 && (o.value = o.value.slice(0, r.value + 1)), o.value.push({ delta: p }), r.value++, a.value = C(v), o.value.length > e) {
|
|
577
577
|
const b = o.value[1].delta;
|
|
578
|
-
b && n.value && (n.value = t.patch(
|
|
578
|
+
b && n.value && (n.value = t.patch(C(n.value), b)), o.value.shift(), r.value--;
|
|
579
579
|
}
|
|
580
580
|
}
|
|
581
581
|
function i(v) {
|
|
582
582
|
if (!n.value || v < 0 || v >= o.value.length)
|
|
583
583
|
return;
|
|
584
|
-
let p =
|
|
584
|
+
let p = C(n.value);
|
|
585
585
|
for (let b = 1; b <= v; b++) {
|
|
586
586
|
const w = o.value[b];
|
|
587
587
|
w.delta && (p = t.patch(p, w.delta));
|
|
@@ -592,14 +592,14 @@ function St({
|
|
|
592
592
|
if (l.value) {
|
|
593
593
|
r.value--;
|
|
594
594
|
const v = i(r.value);
|
|
595
|
-
return v && (a.value =
|
|
595
|
+
return v && (a.value = C(v)), v;
|
|
596
596
|
}
|
|
597
597
|
}
|
|
598
598
|
function h() {
|
|
599
599
|
if (u.value) {
|
|
600
600
|
r.value++;
|
|
601
601
|
const v = i(r.value);
|
|
602
|
-
return v && (a.value =
|
|
602
|
+
return v && (a.value = C(v)), v;
|
|
603
603
|
}
|
|
604
604
|
}
|
|
605
605
|
function m() {
|
|
@@ -690,7 +690,7 @@ const Pt = Ye(
|
|
|
690
690
|
(s) => s._id === e.currentSchedulerId
|
|
691
691
|
));
|
|
692
692
|
function f(s, d = !0) {
|
|
693
|
-
e.menu = { ...s, _rev: e.menu._rev }, d &&
|
|
693
|
+
e.menu = { ...s, _rev: e.menu._rev }, d && V.push(e.menu);
|
|
694
694
|
}
|
|
695
695
|
const h = j(fe()), m = H(!1), v = H(1);
|
|
696
696
|
async function p() {
|
|
@@ -728,9 +728,9 @@ const Pt = Ye(
|
|
|
728
728
|
return h.value = d, m.value = !1, v.value = v.value + 1, d;
|
|
729
729
|
}
|
|
730
730
|
const w = ie.debounce(p, 200);
|
|
731
|
-
let
|
|
731
|
+
let I = null, R = null;
|
|
732
732
|
function Q() {
|
|
733
|
-
|
|
733
|
+
R && (R(), R = null), I && I.stop(), I = Qe(!0), R = I.run(() => Ze(
|
|
734
734
|
() => [e.menu, e.currentCatalogId, e.currentSchedulerId],
|
|
735
735
|
() => {
|
|
736
736
|
m.value || w();
|
|
@@ -757,11 +757,11 @@ const Pt = Ye(
|
|
|
757
757
|
position: 0
|
|
758
758
|
}
|
|
759
759
|
] : [],
|
|
760
|
-
...
|
|
760
|
+
...D(s, (d) => d.name)
|
|
761
761
|
];
|
|
762
762
|
}), ve = S(() => {
|
|
763
763
|
const s = h.value.modules.subCategory || [];
|
|
764
|
-
return
|
|
764
|
+
return D(s, (d) => d.name);
|
|
765
765
|
}), ee = S(() => {
|
|
766
766
|
var d;
|
|
767
767
|
let s = h.value.modules.item;
|
|
@@ -775,13 +775,13 @@ const Pt = Ye(
|
|
|
775
775
|
return (_ == null ? void 0 : _.orderFrom) !== ae.F_ORDER_FROM.enum.NONE;
|
|
776
776
|
});
|
|
777
777
|
}
|
|
778
|
-
return
|
|
778
|
+
return D(s, (y) => y.code || y.name);
|
|
779
779
|
}), ye = S(() => {
|
|
780
|
-
const s = e.menu.modules.category, d =
|
|
780
|
+
const s = e.menu.modules.category, d = D(s, (g) => g.name).reduce(
|
|
781
781
|
(g, _, A) => (g[_._id] = A, g),
|
|
782
782
|
{ "": 0 }
|
|
783
783
|
), y = e.menu.modules.item;
|
|
784
|
-
return
|
|
784
|
+
return D(
|
|
785
785
|
y,
|
|
786
786
|
(g) => g.code || g.name
|
|
787
787
|
).reduce((g, _, A) => (g[_._id] = A + d[_.category || ""], g), {});
|
|
@@ -807,12 +807,12 @@ const Pt = Ye(
|
|
|
807
807
|
const d = s.map((g) => N.value.find((_) => _._id === g)).filter((g) => !!g);
|
|
808
808
|
return T.fullVariantCombination(d).reduce((g, _) => (g[_.combinationKey] = _.selectionName.join(" / "), g), {});
|
|
809
809
|
}
|
|
810
|
-
const _e = S(() =>
|
|
810
|
+
const _e = S(() => D(h.value.modules.group, (s) => s.name)), Se = S(() => x(h.value.modules.takeaway, { selector: "name" })), be = S(() => x(e.menu.modules.printDepartment || [], {
|
|
811
811
|
selector: "name"
|
|
812
812
|
})), we = S(() => x(e.menu.modules.unit, { selector: "name" })), Me = S(() => x(Le(e.menu.modules.recipe, e.menu.modules.sku), {
|
|
813
813
|
selector: "name"
|
|
814
|
-
})), Ae = S(() => e.menu.modules.cookingGuide),
|
|
815
|
-
const s =
|
|
814
|
+
})), Ae = S(() => e.menu.modules.cookingGuide), Ce = S(() => {
|
|
815
|
+
const s = ze(e.menu.modules.sku);
|
|
816
816
|
return x(s, { selector: "code" });
|
|
817
817
|
}), U = S(() => {
|
|
818
818
|
const s = !e.currentCatalogId, d = r.value === L.F_MENU_VERSION.v4, y = !e.currentSchedulerId, g = {
|
|
@@ -886,16 +886,16 @@ const Pt = Ye(
|
|
|
886
886
|
function W(s) {
|
|
887
887
|
return `${s.systemCode}/${s.taxCode}`;
|
|
888
888
|
}
|
|
889
|
-
function
|
|
889
|
+
function Ie(s) {
|
|
890
890
|
const [d, y] = s.split("/");
|
|
891
891
|
return { systemCode: d, taxCode: y };
|
|
892
892
|
}
|
|
893
|
-
function
|
|
893
|
+
function Re(s, d, y) {
|
|
894
894
|
return (s ?? d ?? []).map((g) => W(g)).find((g) => y.some((_) => _.value === g));
|
|
895
895
|
}
|
|
896
|
-
const
|
|
896
|
+
const ke = S(() => {
|
|
897
897
|
var g;
|
|
898
|
-
const s = ["SV5", "SV10"], d =
|
|
898
|
+
const s = ["SV5", "SV10"], d = qe.Country.getCountryFlattenTaxes(
|
|
899
899
|
se().currentCountry.value
|
|
900
900
|
), y = d.filter((_) => a.value || !s.includes(_.taxCode)).map((_) => ({
|
|
901
901
|
label: `${_.name} (${Ge(_.rate)}%)`,
|
|
@@ -922,9 +922,9 @@ const Pt = Ye(
|
|
|
922
922
|
e.currentCatalogId = s;
|
|
923
923
|
}, Oe = (s) => {
|
|
924
924
|
e.currentSchedulerId = s;
|
|
925
|
-
}, De = (s) => {
|
|
926
|
-
e.currentCategoryIds = s;
|
|
927
925
|
}, Ve = (s) => {
|
|
926
|
+
e.currentCategoryIds = s;
|
|
927
|
+
}, De = (s) => {
|
|
928
928
|
e.currentRestaurantAttrParams = s;
|
|
929
929
|
}, Te = async (s, d) => {
|
|
930
930
|
const y = Array.isArray(s) ? s : [s];
|
|
@@ -950,7 +950,7 @@ const Pt = Ye(
|
|
|
950
950
|
message: _
|
|
951
951
|
});
|
|
952
952
|
}
|
|
953
|
-
},
|
|
953
|
+
}, Ke = async (s) => {
|
|
954
954
|
const d = {
|
|
955
955
|
...e.menu,
|
|
956
956
|
masterCatalogSetting: s.masterCatalogSetting,
|
|
@@ -958,14 +958,14 @@ const Pt = Ye(
|
|
|
958
958
|
priceTierSettings: s.priceTierSettings
|
|
959
959
|
};
|
|
960
960
|
return f(d), d;
|
|
961
|
-
},
|
|
962
|
-
const s =
|
|
961
|
+
}, V = St({ maxHistorySize: 50 }), Fe = S(() => V.canUndo.value), Pe = S(() => V.canRedo.value), $e = () => {
|
|
962
|
+
const s = V.undo();
|
|
963
963
|
s && f(s, !1);
|
|
964
964
|
}, je = () => {
|
|
965
|
-
const s =
|
|
965
|
+
const s = V.redo();
|
|
966
966
|
s && f(s, !1);
|
|
967
967
|
}, Ne = () => {
|
|
968
|
-
|
|
968
|
+
V.clear();
|
|
969
969
|
};
|
|
970
970
|
return {
|
|
971
971
|
state: e,
|
|
@@ -996,33 +996,33 @@ const Pt = Ye(
|
|
|
996
996
|
units: we,
|
|
997
997
|
recipes: Me,
|
|
998
998
|
cookingGuide: Ae,
|
|
999
|
-
skus:
|
|
999
|
+
skus: Ce,
|
|
1000
1000
|
rules: U,
|
|
1001
|
-
taxSetting:
|
|
1001
|
+
taxSetting: ke,
|
|
1002
1002
|
// Action
|
|
1003
1003
|
setMenu: f,
|
|
1004
1004
|
readMenu: Ee,
|
|
1005
1005
|
readRestaurants: xe,
|
|
1006
1006
|
selectCatalog: te,
|
|
1007
1007
|
selectScheduler: Oe,
|
|
1008
|
-
selectCategory:
|
|
1009
|
-
setRestaurantAttrParams:
|
|
1008
|
+
selectCategory: Ve,
|
|
1009
|
+
setRestaurantAttrParams: De,
|
|
1010
1010
|
updateMenu: Te,
|
|
1011
|
-
updateMenuSetting:
|
|
1011
|
+
updateMenuSetting: Ke,
|
|
1012
1012
|
computeMergedMenu: p,
|
|
1013
1013
|
// helper
|
|
1014
1014
|
encodeTax: W,
|
|
1015
|
-
decodeTax:
|
|
1016
|
-
getSelectedTax:
|
|
1015
|
+
decodeTax: Ie,
|
|
1016
|
+
getSelectedTax: Re,
|
|
1017
1017
|
mapVariant: ge,
|
|
1018
1018
|
// history
|
|
1019
|
-
canUndoHistory:
|
|
1019
|
+
canUndoHistory: Fe,
|
|
1020
1020
|
canRedoHistory: Pe,
|
|
1021
1021
|
undoHistory: $e,
|
|
1022
1022
|
redoHistory: je,
|
|
1023
1023
|
// cleanup
|
|
1024
1024
|
$dispose: () => {
|
|
1025
|
-
w.cancel(),
|
|
1025
|
+
w.cancel(), R && (R(), R = null), I && (I.stop(), I = null), Ne();
|
|
1026
1026
|
},
|
|
1027
1027
|
$reinitialize: () => {
|
|
1028
1028
|
Q();
|
|
@@ -1031,11 +1031,11 @@ const Pt = Ye(
|
|
|
1031
1031
|
}
|
|
1032
1032
|
);
|
|
1033
1033
|
export {
|
|
1034
|
-
|
|
1034
|
+
Dt as a,
|
|
1035
1035
|
Tt as b,
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1036
|
+
Kt as c,
|
|
1037
|
+
Ft as f,
|
|
1038
|
+
Vt as g,
|
|
1039
1039
|
Ot as m,
|
|
1040
1040
|
at as o,
|
|
1041
1041
|
Pt as u
|
package/dist/mf-menu.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.chatbox[data-v-97b727dd]{padding:10px;display:flex;flex-direction:column;height:100%;width:100%;overflow-y:scroll;gap:4px}.chatbox .user-message[data-v-97b727dd]{align-self:end;max-width:90%;display:flex;flex-direction:column;gap:4px}.chatbox .remy-message[data-v-97b727dd]{align-self:start;max-width:90%;display:flex;flex-direction:column;gap:4px}.chatbox .user-name[data-v-97b727dd]{padding:4px 8px;font-size:12px;font-weight:700}.chatbox .selection-container[data-v-97b727dd]{display:flex;flex-direction:row;flex-wrap:wrap;gap:4px}.chatbox .selection-container .selection[data-v-97b727dd]{cursor:pointer}.chatbox .message-bubble[data-v-97b727dd]{background:#f0f0f0;padding:4px 8px;border-radius:6px;line-height:20px;font-size:14px}.chatbox .select-label[data-v-97b727dd]{font-weight:700;font-size:12px;padding:4px 8px;align-self:center}.chatbox .message[data-v-97b727dd]{white-space:pre-wrap}.chatbox .spinner[data-v-97b727dd]{text-align:left}.chatbox .spinner>div[data-v-97b727dd]{width:4px;height:4px;margin:0 2px;background-color:#434343;border-radius:100%;display:inline-block;animation:sk-bouncedelay-97b727dd 1.4s infinite ease-in-out both}.chatbox .spinner .bounce1[data-v-97b727dd]{animation-delay:-.32s}.chatbox .spinner .bounce2[data-v-97b727dd]{animation-delay:-.16s}@keyframes sk-bouncedelay-97b727dd{0%,80%,to{transform:scale(0)}40%{transform:scale(1)}}.expand-enter-from[data-v-469403ff]{opacity:0;max-height:0}.expand-enter-to[data-v-469403ff],.expand-leave-from[data-v-469403ff]{opacity:1;max-height:1000px}.expand-leave-to[data-v-469403ff]{opacity:0;max-height:0}.expand-enter-active[data-v-469403ff],.expand-leave-active[data-v-469403ff]{transition-property:max-height,opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.fade-enter-from[data-v-5b5c7179]{opacity:0}.fade-enter-to[data-v-5b5c7179],.fade-leave-from[data-v-5b5c7179]{opacity:1}.fade-leave-to[data-v-5b5c7179]{opacity:0}.fade-enter-active[data-v-5b5c7179],.fade-leave-active[data-v-5b5c7179]{transition:opacity .5s ease}.expand-enter-from[data-v-e920f110]{opacity:0;max-height:0}.expand-enter-to[data-v-e920f110],.expand-leave-from[data-v-e920f110]{opacity:1;max-height:1000px}.expand-leave-to[data-v-e920f110]{opacity:0;max-height:0}.expand-enter-active[data-v-e920f110],.expand-leave-active[data-v-e920f110]{transition-property:max-height,opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.fm-select__menu__wrapper[data-v-89b5becb]{position:relative;min-width:112px;padding:12px 4px;display:flex;flex-direction:column;overflow-y:auto;border-radius:8px;background-color:var(--fm-color-neutral-white);--tw-shadow: 0px 8px 16px 0px rgba(199, 199, 204, .24);--tw-shadow-colored: 0px 8px 16px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.vue-advanced-cropper{text-align:center;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;max-height:100%;max-width:100%;direction:ltr}.vue-advanced-cropper__stretcher{pointer-events:none;position:relative;max-width:100%;max-height:100%}.vue-advanced-cropper__image{-webkit-user-select:none;-moz-user-select:none;user-select:none;position:absolute;transform-origin:center;max-width:none!important}.vue-advanced-cropper__background,.vue-advanced-cropper__foreground{opacity:1;background:#000;transform:translate(-50%,-50%);position:absolute;top:50%;left:50%}.vue-advanced-cropper__foreground{opacity:.5}.vue-advanced-cropper__boundaries{opacity:1;transform:translate(-50%,-50%);position:absolute;left:50%;top:50%}.vue-advanced-cropper__cropper-wrapper{width:100%;height:100%}.vue-advanced-cropper__image-wrapper{overflow:hidden;position:absolute;width:100%;height:100%}.vue-advanced-cropper__stencil-wrapper{position:absolute}.vue-simple-handler{display:block;background:#fff;height:10px;width:10px}.vue-handler-wrapper{position:absolute;transform:translate(-50%,-50%);width:30px;height:30px}.vue-handler-wrapper__draggable{width:100%;height:100%;display:flex;align-items:center;justify-content:center}.vue-handler-wrapper--west-north{cursor:nw-resize}.vue-handler-wrapper--north{cursor:n-resize}.vue-handler-wrapper--east-north{cursor:ne-resize}.vue-handler-wrapper--east{cursor:e-resize}.vue-handler-wrapper--east-south{cursor:se-resize}.vue-handler-wrapper--south{cursor:s-resize}.vue-handler-wrapper--west-south{cursor:sw-resize}.vue-handler-wrapper--west{cursor:w-resize}.vue-handler-wrapper--disabled{cursor:auto}.vue-line-wrapper{background:none;position:absolute;display:flex;align-items:center;justify-content:center}.vue-line-wrapper--north,.vue-line-wrapper--south{height:12px;width:100%;left:0;transform:translateY(-50%)}.vue-line-wrapper--north{top:0;cursor:n-resize}.vue-line-wrapper--south{top:100%;cursor:s-resize}.vue-line-wrapper--east,.vue-line-wrapper--west{width:12px;height:100%;transform:translate(-50%);top:0}.vue-line-wrapper--east{left:100%;cursor:e-resize}.vue-line-wrapper--west{left:0;cursor:w-resize}.vue-line-wrapper--disabled{cursor:auto}.vue-bounding-box{position:relative;height:100%;width:100%}.vue-bounding-box__handler{position:absolute}.vue-bounding-box__handler--west-north{left:0;top:0}.vue-bounding-box__handler--north{left:50%;top:0}.vue-bounding-box__handler--east-north{left:100%;top:0}.vue-bounding-box__handler--east{left:100%;top:50%}.vue-bounding-box__handler--east-south{left:100%;top:100%}.vue-bounding-box__handler--south{left:50%;top:100%}.vue-bounding-box__handler--west-south{left:0;top:100%}.vue-bounding-box__handler--west{left:0;top:50%}.vue-draggable-area{position:relative}.vue-preview-result{overflow:hidden;box-sizing:border-box;position:absolute;height:100%;width:100%}.vue-preview-result__wrapper{position:absolute}.vue-preview-result__image{pointer-events:none;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;transform-origin:center;max-width:none!important}.vue-rectangle-stencil{position:absolute;height:100%;width:100%;box-sizing:border-box}.vue-rectangle-stencil__preview{position:absolute;width:100%;height:100%}.vue-rectangle-stencil--movable{cursor:move}.vue-circle-stencil{position:absolute;height:100%;width:100%;box-sizing:content-box;cursor:move}.vue-circle-stencil__preview{border-radius:50%;position:absolute;width:100%;height:100%}.vue-circle-stencil--movable{cursor:move}.vue-preview{overflow:hidden;box-sizing:border-box;position:relative}.vue-preview--fill{width:100%;height:100%;position:absolute}.vue-preview__wrapper{position:absolute;height:100%;width:100%}.vue-preview__image{pointer-events:none;position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;transform-origin:center;max-width:none!important}.vue-simple-line{background:none;transition:border .5s;border-color:#ffffff4d;border-width:0;border-style:solid}.vue-simple-line--south,.vue-simple-line--north{height:0;width:100%}.vue-simple-line--east,.vue-simple-line--west{height:100%;width:0}.vue-simple-line--east{border-right-width:1px}.vue-simple-line--west{border-left-width:1px}.vue-simple-line--south{border-bottom-width:1px}.vue-simple-line--north{border-top-width:1px}.vue-simple-line--hover{opacity:1;border-color:#fff}.fm-select__menu__wrapper[data-v-ca5e943c]{position:relative;min-width:112px;padding:12px 4px;display:flex;flex-direction:column;overflow-y:auto;border-radius:8px;background-color:var(--fm-color-neutral-white);--tw-shadow: 0px 8px 16px 0px rgba(199, 199, 204, .24);--tw-shadow-colored: 0px 8px 16px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.description[data-v-02062810] textarea{padding-right:32px}.image-action-overlay[data-v-946af9b7]{visibility:hidden;background-color:#ffffff4d}.container:hover .image-action-overlay[data-v-946af9b7]{visibility:visible}.description[data-v-b3e84ff5] textarea{padding-right:32px}.tree-item-form button:focus{outline:2px solid black}.resize-handle[data-v-570141b0]{cursor:col-resize}.resize-handle[data-v-570141b0]:hover{background-color:var(--fm-color-system-orange-200);filter:opacity(.4)}.resize-grabber[data-v-570141b0]{pointer-events:none}[data-v-f6f1080b] .highlighted-span{background-color:#ff06}.hover-effect:hover:before{content:"";background-color:var(--fm-color-opacity-sm);border-radius:var(--fm-corner-radius-sm);position:absolute;top:0;left:0;height:100%;width:100%}.tree-node .right-area .show-on-hover{display:none}.tree-node:hover .right-area .show-on-hover{display:flex}.drag-handle{cursor:grab;position:absolute;left:0}.tree-node:hover .drag-handle{visibility:visible}.tree-node .drag-handle{visibility:hidden}.drop-indicator-before{position:absolute;left:0;right:0;top:-1px;height:2px;background-color:var(--fm-color-primary);z-index:10}.drop-indicator-after{position:absolute;left:0;right:0;bottom:-1px;height:2px;background-color:var(--fm-color-primary);z-index:10}.drop-indicator-inside{position:absolute;left:0;right:0;top:0;bottom:0;border:2px solid var(--fm-color-primary);border-radius:var(--fm-corner-radius-sm);background-color:var(--fm-color-opacity-sm);z-index:5}.tree-node{position:relative}.tree-container[data-v-9244f342]{width:100%;max-width:100%;height:100%;position:relative}.tree-node-wrapper[data-v-9244f342]{width:100%;position:relative}.empty-tree-message[data-v-9244f342]{padding:20px;text-align:center;color:#666}.being-dragged[data-v-9244f342]{opacity:.5}.drop-before[data-v-9244f342]:before{content:"";position:absolute;left:0;right:0;top:0;height:2px;background-color:var(--fm-color-primary);z-index:10}.drop-after[data-v-9244f342]:after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background-color:var(--fm-color-primary);z-index:10}.drop-inside[data-v-9244f342]{background-color:#4299e11a}.drag-overlay[data-v-9244f342]{position:fixed;padding:4px 8px;background-color:#fff;border:1px solid var(--fm-color-neutral-gray-200);box-shadow:0 2px 4px #0000001a;pointer-events:none;z-index:1000;border-radius:4px;max-width:400px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tree-overlay{background-color:#ffffff80}.fade-enter-from[data-v-6c3052b3]{opacity:0}.fade-enter-to[data-v-6c3052b3],.fade-leave-from[data-v-6c3052b3]{opacity:1}.fade-leave-to[data-v-6c3052b3]{opacity:0}.fade-enter-active[data-v-6c3052b3],.fade-leave-active[data-v-6c3052b3]{transition:opacity .5s ease}.expand-enter-active,.expand-leave-active{transition:.3s}.expand-enter-from{opacity:0;max-height:0}.expand-enter-to,.expand-leave-from{opacity:1;max-height:1000px}.expand-leave-to{opacity:0;max-height:0}.app-container{background-color:#fff!important}.remy-dialog[data-v-9adba964]{position:fixed;z-index:9999;top:25%;right:30px;background:#fff;border:1px solid lightgrey;border-radius:4px;height:50%;width:400px;max-width:90%}.remy-dialog .header[data-v-9adba964]{background:#000;padding:0 12px;border-radius:4px 4px 0 0;height:40px}.remy-dialog .header .title[data-v-9adba964]{color:#fff}.remy-dialog .chatbox-container[data-v-9adba964]{height:calc(100% - 40px)}
|
|
1
|
+
.chatbox[data-v-97b727dd]{padding:10px;display:flex;flex-direction:column;height:100%;width:100%;overflow-y:scroll;gap:4px}.chatbox .user-message[data-v-97b727dd]{align-self:end;max-width:90%;display:flex;flex-direction:column;gap:4px}.chatbox .remy-message[data-v-97b727dd]{align-self:start;max-width:90%;display:flex;flex-direction:column;gap:4px}.chatbox .user-name[data-v-97b727dd]{padding:4px 8px;font-size:12px;font-weight:700}.chatbox .selection-container[data-v-97b727dd]{display:flex;flex-direction:row;flex-wrap:wrap;gap:4px}.chatbox .selection-container .selection[data-v-97b727dd]{cursor:pointer}.chatbox .message-bubble[data-v-97b727dd]{background:#f0f0f0;padding:4px 8px;border-radius:6px;line-height:20px;font-size:14px}.chatbox .select-label[data-v-97b727dd]{font-weight:700;font-size:12px;padding:4px 8px;align-self:center}.chatbox .message[data-v-97b727dd]{white-space:pre-wrap}.chatbox .spinner[data-v-97b727dd]{text-align:left}.chatbox .spinner>div[data-v-97b727dd]{width:4px;height:4px;margin:0 2px;background-color:#434343;border-radius:100%;display:inline-block;animation:sk-bouncedelay-97b727dd 1.4s infinite ease-in-out both}.chatbox .spinner .bounce1[data-v-97b727dd]{animation-delay:-.32s}.chatbox .spinner .bounce2[data-v-97b727dd]{animation-delay:-.16s}@keyframes sk-bouncedelay-97b727dd{0%,80%,to{transform:scale(0)}40%{transform:scale(1)}}.expand-enter-from[data-v-469403ff]{opacity:0;max-height:0}.expand-enter-to[data-v-469403ff],.expand-leave-from[data-v-469403ff]{opacity:1;max-height:1000px}.expand-leave-to[data-v-469403ff]{opacity:0;max-height:0}.expand-enter-active[data-v-469403ff],.expand-leave-active[data-v-469403ff]{transition-property:max-height,opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.fade-enter-from[data-v-5b5c7179]{opacity:0}.fade-enter-to[data-v-5b5c7179],.fade-leave-from[data-v-5b5c7179]{opacity:1}.fade-leave-to[data-v-5b5c7179]{opacity:0}.fade-enter-active[data-v-5b5c7179],.fade-leave-active[data-v-5b5c7179]{transition:opacity .5s ease}.expand-enter-from[data-v-e920f110]{opacity:0;max-height:0}.expand-enter-to[data-v-e920f110],.expand-leave-from[data-v-e920f110]{opacity:1;max-height:1000px}.expand-leave-to[data-v-e920f110]{opacity:0;max-height:0}.expand-enter-active[data-v-e920f110],.expand-leave-active[data-v-e920f110]{transition-property:max-height,opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.fm-select__menu__wrapper[data-v-89b5becb]{position:relative;min-width:112px;padding:12px 4px;display:flex;flex-direction:column;overflow-y:auto;border-radius:8px;background-color:var(--fm-color-neutral-white);--tw-shadow: 0px 8px 16px 0px rgba(199, 199, 204, .24);--tw-shadow-colored: 0px 8px 16px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.vue-advanced-cropper{text-align:center;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;max-height:100%;max-width:100%;direction:ltr}.vue-advanced-cropper__stretcher{pointer-events:none;position:relative;max-width:100%;max-height:100%}.vue-advanced-cropper__image{-webkit-user-select:none;-moz-user-select:none;user-select:none;position:absolute;transform-origin:center;max-width:none!important}.vue-advanced-cropper__background,.vue-advanced-cropper__foreground{opacity:1;background:#000;transform:translate(-50%,-50%);position:absolute;top:50%;left:50%}.vue-advanced-cropper__foreground{opacity:.5}.vue-advanced-cropper__boundaries{opacity:1;transform:translate(-50%,-50%);position:absolute;left:50%;top:50%}.vue-advanced-cropper__cropper-wrapper{width:100%;height:100%}.vue-advanced-cropper__image-wrapper{overflow:hidden;position:absolute;width:100%;height:100%}.vue-advanced-cropper__stencil-wrapper{position:absolute}.vue-simple-handler{display:block;background:#fff;height:10px;width:10px}.vue-handler-wrapper{position:absolute;transform:translate(-50%,-50%);width:30px;height:30px}.vue-handler-wrapper__draggable{width:100%;height:100%;display:flex;align-items:center;justify-content:center}.vue-handler-wrapper--west-north{cursor:nw-resize}.vue-handler-wrapper--north{cursor:n-resize}.vue-handler-wrapper--east-north{cursor:ne-resize}.vue-handler-wrapper--east{cursor:e-resize}.vue-handler-wrapper--east-south{cursor:se-resize}.vue-handler-wrapper--south{cursor:s-resize}.vue-handler-wrapper--west-south{cursor:sw-resize}.vue-handler-wrapper--west{cursor:w-resize}.vue-handler-wrapper--disabled{cursor:auto}.vue-line-wrapper{background:none;position:absolute;display:flex;align-items:center;justify-content:center}.vue-line-wrapper--north,.vue-line-wrapper--south{height:12px;width:100%;left:0;transform:translateY(-50%)}.vue-line-wrapper--north{top:0;cursor:n-resize}.vue-line-wrapper--south{top:100%;cursor:s-resize}.vue-line-wrapper--east,.vue-line-wrapper--west{width:12px;height:100%;transform:translate(-50%);top:0}.vue-line-wrapper--east{left:100%;cursor:e-resize}.vue-line-wrapper--west{left:0;cursor:w-resize}.vue-line-wrapper--disabled{cursor:auto}.vue-bounding-box{position:relative;height:100%;width:100%}.vue-bounding-box__handler{position:absolute}.vue-bounding-box__handler--west-north{left:0;top:0}.vue-bounding-box__handler--north{left:50%;top:0}.vue-bounding-box__handler--east-north{left:100%;top:0}.vue-bounding-box__handler--east{left:100%;top:50%}.vue-bounding-box__handler--east-south{left:100%;top:100%}.vue-bounding-box__handler--south{left:50%;top:100%}.vue-bounding-box__handler--west-south{left:0;top:100%}.vue-bounding-box__handler--west{left:0;top:50%}.vue-draggable-area{position:relative}.vue-preview-result{overflow:hidden;box-sizing:border-box;position:absolute;height:100%;width:100%}.vue-preview-result__wrapper{position:absolute}.vue-preview-result__image{pointer-events:none;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;transform-origin:center;max-width:none!important}.vue-rectangle-stencil{position:absolute;height:100%;width:100%;box-sizing:border-box}.vue-rectangle-stencil__preview{position:absolute;width:100%;height:100%}.vue-rectangle-stencil--movable{cursor:move}.vue-circle-stencil{position:absolute;height:100%;width:100%;box-sizing:content-box;cursor:move}.vue-circle-stencil__preview{border-radius:50%;position:absolute;width:100%;height:100%}.vue-circle-stencil--movable{cursor:move}.vue-preview{overflow:hidden;box-sizing:border-box;position:relative}.vue-preview--fill{width:100%;height:100%;position:absolute}.vue-preview__wrapper{position:absolute;height:100%;width:100%}.vue-preview__image{pointer-events:none;position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;transform-origin:center;max-width:none!important}.vue-simple-line{background:none;transition:border .5s;border-color:#ffffff4d;border-width:0;border-style:solid}.vue-simple-line--south,.vue-simple-line--north{height:0;width:100%}.vue-simple-line--east,.vue-simple-line--west{height:100%;width:0}.vue-simple-line--east{border-right-width:1px}.vue-simple-line--west{border-left-width:1px}.vue-simple-line--south{border-bottom-width:1px}.vue-simple-line--north{border-top-width:1px}.vue-simple-line--hover{opacity:1;border-color:#fff}.fm-select__menu__wrapper[data-v-ca5e943c]{position:relative;min-width:112px;padding:12px 4px;display:flex;flex-direction:column;overflow-y:auto;border-radius:8px;background-color:var(--fm-color-neutral-white);--tw-shadow: 0px 8px 16px 0px rgba(199, 199, 204, .24);--tw-shadow-colored: 0px 8px 16px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.description[data-v-f0d4faa5] textarea{padding-right:32px}.image-action-overlay[data-v-946af9b7]{visibility:hidden;background-color:#ffffff4d}.container:hover .image-action-overlay[data-v-946af9b7]{visibility:visible}.description[data-v-17b9752f] textarea{padding-right:32px}.tree-item-form button:focus{outline:2px solid black}.resize-handle[data-v-570141b0]{cursor:col-resize}.resize-handle[data-v-570141b0]:hover{background-color:var(--fm-color-system-orange-200);filter:opacity(.4)}.resize-grabber[data-v-570141b0]{pointer-events:none}[data-v-f6f1080b] .highlighted-span{background-color:#ff06}.hover-effect:hover:before{content:"";background-color:var(--fm-color-opacity-sm);border-radius:var(--fm-corner-radius-sm);position:absolute;top:0;left:0;height:100%;width:100%}.tree-node .right-area .show-on-hover{display:none}.tree-node:hover .right-area .show-on-hover{display:flex}.drag-handle{cursor:grab;position:absolute;left:0}.tree-node:hover .drag-handle{visibility:visible}.tree-node .drag-handle{visibility:hidden}.drop-indicator-before{position:absolute;left:0;right:0;top:-1px;height:2px;background-color:var(--fm-color-primary);z-index:10}.drop-indicator-after{position:absolute;left:0;right:0;bottom:-1px;height:2px;background-color:var(--fm-color-primary);z-index:10}.drop-indicator-inside{position:absolute;left:0;right:0;top:0;bottom:0;border:2px solid var(--fm-color-primary);border-radius:var(--fm-corner-radius-sm);background-color:var(--fm-color-opacity-sm);z-index:5}.tree-node{position:relative}.tree-container[data-v-9244f342]{width:100%;max-width:100%;height:100%;position:relative}.tree-node-wrapper[data-v-9244f342]{width:100%;position:relative}.empty-tree-message[data-v-9244f342]{padding:20px;text-align:center;color:#666}.being-dragged[data-v-9244f342]{opacity:.5}.drop-before[data-v-9244f342]:before{content:"";position:absolute;left:0;right:0;top:0;height:2px;background-color:var(--fm-color-primary);z-index:10}.drop-after[data-v-9244f342]:after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background-color:var(--fm-color-primary);z-index:10}.drop-inside[data-v-9244f342]{background-color:#4299e11a}.drag-overlay[data-v-9244f342]{position:fixed;padding:4px 8px;background-color:#fff;border:1px solid var(--fm-color-neutral-gray-200);box-shadow:0 2px 4px #0000001a;pointer-events:none;z-index:1000;border-radius:4px;max-width:400px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tree-overlay{background-color:#ffffff80}.fade-enter-from[data-v-6c3052b3]{opacity:0}.fade-enter-to[data-v-6c3052b3],.fade-leave-from[data-v-6c3052b3]{opacity:1}.fade-leave-to[data-v-6c3052b3]{opacity:0}.fade-enter-active[data-v-6c3052b3],.fade-leave-active[data-v-6c3052b3]{transition:opacity .5s ease}.expand-enter-active,.expand-leave-active{transition:.3s}.expand-enter-from{opacity:0;max-height:0}.expand-enter-to,.expand-leave-from{opacity:1;max-height:1000px}.expand-leave-to{opacity:0;max-height:0}.app-container{background-color:#fff!important}.remy-dialog[data-v-9adba964]{position:fixed;z-index:9999;top:25%;right:30px;background:#fff;border:1px solid lightgrey;border-radius:4px;height:50%;width:400px;max-width:90%}.remy-dialog .header[data-v-9adba964]{background:#000;padding:0 12px;border-radius:4px 4px 0 0;height:40px}.remy-dialog .header .title[data-v-9adba964]{color:#fff}.remy-dialog .chatbox-container[data-v-9adba964]{height:calc(100% - 40px)}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as d, ref as g, watch as _, resolveComponent as S, createBlock as T, openBlock as f, unref as y, computed as h } from "vue";
|
|
2
2
|
import { useI18n as m } from "@feedmepos/mf-common";
|
|
3
3
|
import { useDialogChild as w, useDialog as x, useSnackbar as C } from "@feedmepos/ui-library";
|
|
4
|
-
import { u as k, D as M } from "./menu-
|
|
4
|
+
import { u as k, D as M } from "./menu-DAac726D.js";
|
|
5
5
|
const v = /* @__PURE__ */ d({
|
|
6
6
|
__name: "AddPriceGroupDialog",
|
|
7
7
|
setup(s) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as ie, computed as Y, resolveComponent as _, createElementBlock as d, openBlock as u, createVNode as t, createCommentVNode as F, unref as n, toDisplayString as A, createElementVNode as h, withCtx as v, Fragment as N, renderList as M, createBlock as I, ref as H, Transition as se, createTextVNode as me } from "vue";
|
|
2
|
-
import { H as S, z as r, u as pe, I as ve, J as ue } from "./menu-
|
|
2
|
+
import { H as S, z as r, u as pe, I as ve, J as ue } from "./menu-DAac726D.js";
|
|
3
3
|
import { useI18n as de } from "@feedmepos/mf-common";
|
|
4
4
|
import { components as _e } from "@feedmepos/ui-library";
|
|
5
|
-
import { _ as ne, a as fe } from "./customAttributes-
|
|
5
|
+
import { _ as ne, a as fe } from "./customAttributes-BkqKM_KW.js";
|
|
6
6
|
import { u as ye } from "./discardConfirm-BHni0LNu.js";
|
|
7
|
-
import { u as he } from "./menu-
|
|
8
|
-
import { L as ge } from "./LinkProductSideSheet-
|
|
7
|
+
import { u as he } from "./menu-DpYo8dYR.js";
|
|
8
|
+
import { L as ge } from "./LinkProductSideSheet-CAPIdf6P.js";
|
|
9
9
|
const Ve = { class: "space-y-8" }, Fe = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "space-y-16"
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as M, watch as _, ref as E, resolveComponent as f, createBlock as x, openBlock as C, unref as c, withCtx as V, createVNode as A } from "vue";
|
|
2
|
-
import { J as l, z as d, u as F } from "./menu-
|
|
2
|
+
import { J as l, z as d, u as F } from "./menu-DAac726D.js";
|
|
3
3
|
import { useI18n as b } from "@feedmepos/mf-common";
|
|
4
4
|
import { useDialogChild as P } from "@feedmepos/ui-library";
|
|
5
|
-
import { u as v } from "./menuV2-
|
|
5
|
+
import { u as v } from "./menuV2-DZj_FPqR.js";
|
|
6
6
|
const y = /* @__PURE__ */ M({
|
|
7
7
|
__name: "AddSubcategoryDialogContentComponent",
|
|
8
8
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { u as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import "./menu-
|
|
1
|
+
import { u as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-DScxctPb.js";
|
|
2
|
+
import "./menu-DAac726D.js";
|
|
3
3
|
var Z = {
|
|
4
4
|
defaultAmount: 0,
|
|
5
5
|
defaultCurrency: "USD",
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { defineStore as J } from "pinia";
|
|
2
2
|
import { defineComponent as O, computed as U, ref as h, watch as T, resolveComponent as V, createBlock as W, openBlock as F, withCtx as w, createVNode as m, createElementVNode as f, normalizeClass as Q, createElementBlock as A, toDisplayString as M, unref as l, Fragment as q, renderSlot as X, renderList as Z, getCurrentInstance as ee } from "vue";
|
|
3
|
-
import { a5 as B, a6 as te, a3 as P, H as k, O as $, D as I, B as E, a4 as ne, J as C, z as D, I as oe, u as ae } from "./menu-
|
|
3
|
+
import { a5 as B, a6 as te, a3 as P, H as k, O as $, D as I, B as E, a4 as ne, J as C, z as D, I as oe, u as ae } from "./menu-DAac726D.js";
|
|
4
4
|
import { useI18n as L } from "@feedmepos/mf-common";
|
|
5
5
|
import { useSnackbar as j, components as le, useDialog as ue, FmButtonVariant as ie } from "@feedmepos/ui-library";
|
|
6
6
|
import { u as se } from "./discardConfirm-BHni0LNu.js";
|
|
7
7
|
import { c as re } from "./check-C9mY6LiX.js";
|
|
8
8
|
import "./vuedraggable-CK8z7qA8.js";
|
|
9
9
|
import "./app-5fxKLAzS.js";
|
|
10
|
-
import "./menuV2-
|
|
10
|
+
import "./menuV2-DZj_FPqR.js";
|
|
11
11
|
/* empty css */
|
|
12
12
|
import { c as me } from "./createComponentProgrammatically-Bt2rn1IQ.js";
|
|
13
13
|
const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@feedmepos/mf-menu",
|
|
3
|
-
"version": "0.31.
|
|
3
|
+
"version": "0.31.74",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist"
|
|
6
6
|
],
|
|
@@ -16,12 +16,12 @@
|
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@feedmepos/auth": "^1.1.14",
|
|
19
|
-
"@feedmepos/core": "2.14.
|
|
19
|
+
"@feedmepos/core": "2.14.59",
|
|
20
20
|
"@feedmepos/core-dart": "^0.2.6",
|
|
21
21
|
"@feedmepos/core-legacy": "file:../../core-legacy-1.4.tar.gz",
|
|
22
22
|
"@feedmepos/custom-attributes": "0.0.1-rc.4",
|
|
23
23
|
"@feedmepos/inventory-core": "^0.2.6",
|
|
24
|
-
"@feedmepos/menu": "1.7.
|
|
24
|
+
"@feedmepos/menu": "1.7.32",
|
|
25
25
|
"@feedmepos/mf-inventory-portal": "https://registry.npmjs.org/@feedmepos/mf-inventory-portal/-/mf-inventory-portal-0.0.19-dev.6.tgz",
|
|
26
26
|
"@feedmepos/remy-vue-client": "0.1.3-beta.8",
|
|
27
27
|
"@feedmepos/ui-library": "1.8.7",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"vue3-lottie": "^3.3.0",
|
|
54
54
|
"vuedraggable": "^4.1.0",
|
|
55
55
|
"xlsx": "^0.18.5",
|
|
56
|
-
"@feedmepos/mf-common": "^1.28.
|
|
56
|
+
"@feedmepos/mf-common": "^1.28.2"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@rollup/plugin-commonjs": "^28.0.2",
|