@feedmepos/mf-menu 0.31.71-alpha.1 → 0.31.72
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-C1efkJzL.js → App-CvauiBxh.js} +1441 -2545
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-BHDnLuRy.js → ApplyProduct.vue_vue_type_script_setup_true_lang-BK9XcgvQ.js} +3 -3
- package/dist/{Catalog-BJjTCl9l.js → Catalog-CBdU6H-7.js} +26 -26
- package/dist/{Category-C35HseX2.js → Category-BFO9_FCp.js} +35 -35
- package/dist/{Category-CxrTHk1Y.js → Category-DkKEXvEF.js} +22 -22
- package/dist/{CookingGuide-BwEQicZ8.js → CookingGuide-E34vwLgw.js} +113 -113
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-DhiJEKXO.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-DlnAxQwE.js} +1 -1
- package/dist/{Group-2MAzdN5P.js → Group-Bcc1Z7D-.js} +1 -1
- package/dist/{Group-C_AO4FGn.js → Group-CpSycfFA.js} +3 -3
- package/dist/{Group.vue_vue_type_script_setup_true_lang-DjEPQI2w.js → Group.vue_vue_type_script_setup_true_lang-CWIHfDqh.js} +7 -7
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-Cttg3YhQ.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-B8tJzkEO.js} +5 -5
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-8pgeYhp4.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-BGWmkL9R.js} +21 -22
- package/dist/{Ingredient-CL_5yWPs.js → Ingredient-0Cg2IcHV.js} +23 -23
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-Di42poKp.js → InventoryBinding.vue_vue_type_script_setup_true_lang-Dztd7mAs.js} +2 -2
- package/dist/{LinkProductSideSheet-Buso155W.js → LinkProductSideSheet-CiRZO3uN.js} +3 -3
- package/dist/{MenuSetting-CnREg4Yu.js → MenuSetting-Bv4sWdlj.js} +31 -31
- package/dist/{PrintRoute-C9sWURzn.js → PrintRoute-DP-fjMrF.js} +26 -26
- package/dist/{Product-BLRDuiIG.js → Product-DgZcdRkv.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-BpKLqY3j.js → Product.vue_vue_type_script_setup_true_lang-CpthNypU.js} +71 -71
- package/dist/{ProductInternalTools-Cn2WRqm6.js → ProductInternalTools-CLmYNGLn.js} +16 -16
- package/dist/{Products-BQBfz9A8.js → Products-KrRu9cnx.js} +11 -11
- package/dist/{Publish-DMQ9O69V.js → Publish-C9Wi7dG1.js} +56 -57
- package/dist/{Recipe-CXEZt0zY.js → Recipe-BPdgYfvy.js} +13 -13
- package/dist/{Scheduler-hJTrqBhn.js → Scheduler-C9LCR2Oj.js} +16 -16
- package/dist/{ServingSequence-CctiqLbz.js → ServingSequence-D-OBo-oY.js} +20 -20
- package/dist/{Setting-BrKRjfTn.js → Setting-qITT89Lg.js} +20 -20
- package/dist/{Subcategory-K0jGgZtU.js → Subcategory-kl6ncKqB.js} +19 -19
- package/dist/{Takeaway-o5KBa5oX.js → Takeaway-BOxto2HZ.js} +1 -1
- package/dist/{Takeaway-DiJwhBwl.js → Takeaway-D9GOXVdh.js} +10 -10
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-BpgD3grk.js → Takeaway.vue_vue_type_script_setup_true_lang-CbhZLN-r.js} +20 -20
- package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-BCejAD3E.js → Thumbnail.vue_vue_type_script_setup_true_lang-CH9jzjP0.js} +20 -20
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-CMZfeg2n.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-C0NgcFQK.js} +15 -16
- package/dist/{Unit-BAy6O7xD.js → Unit-Dr0n8Nl-.js} +13 -13
- package/dist/{Variant-BtXJASw_.js → Variant-BVvjuGqK.js} +15 -15
- package/dist/{_id_-HD8T1NGg.js → _id_-DqqSN5Lt.js} +14 -14
- package/dist/{app-C7AqPK-c.js → app-B3_2cau3.js} +1 -1
- package/dist/{app-Bp1A4ItJ.js → app-DJ-rQRBU.js} +26 -26
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/components/feature/ApplyProduct/ApplyProduct.vue.d.ts +72 -0
- package/dist/apps/mf-menu/src/components/feature/ApplyProduct/ApplyProductDialog.vue.d.ts +36 -0
- package/dist/apps/mf-menu/src/components/feature/ApplyProduct/index.d.ts +218 -0
- package/dist/apps/mf-menu/src/components/feature/Fields/OrderFrom.vue.d.ts +1 -1
- package/dist/apps/mf-menu/src/components/feature/GroupManager/OptionTable.vue.d.ts +52 -0
- package/dist/apps/mf-menu/src/components/feature/GroupManager/UpdateForm.vue.d.ts +36 -0
- package/dist/apps/mf-menu/src/components/feature/PriceTier/PriceTierButton.vue.d.ts +110 -0
- package/dist/apps/mf-menu/src/components/feature/PriceTier/PriceTierForm.vue.d.ts +110 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/item.d.ts +110 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/scheduler.d.ts +81 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/useItemFormManagement.d.ts +55 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/form/GroupManager/OptionTable.vue.d.ts +52 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/form/GroupManager/UpdateForm.vue.d.ts +36 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/form/GroupManager/index.d.ts +144 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/item/ItemForm.vue.d.ts +165 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/menuUtils.d.ts +55 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/store/menuV2.d.ts +375 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/store/tree.d.ts +18 -18
- package/dist/apps/mf-menu/src/components/import/PreviewAddonContent.vue.d.ts +110 -0
- package/dist/apps/mf-menu/src/composable/linkProducts.d.ts +81 -0
- package/dist/apps/mf-menu/src/helper/itemCategories.d.ts +55 -0
- package/dist/apps/mf-menu/src/helper/menu.d.ts +430 -0
- package/dist/apps/mf-menu/src/helper/menuImport.d.ts +375 -0
- package/dist/apps/mf-menu/src/manager/menu/item.d.ts +375 -0
- package/dist/apps/mf-menu/src/stores/manager/item.d.ts +165 -0
- package/dist/apps/mf-menu/src/stores/manager/scheduler.d.ts +81 -0
- package/dist/apps/mf-menu/src/stores/menu.d.ts +375 -0
- package/dist/apps/mf-menu/src/views/Catalog/Edit/AddProductPopup/Form.vue.d.ts +110 -0
- package/dist/apps/mf-menu/src/views/Publish/UpdateCatalogDialog.vue.d.ts +220 -0
- package/dist/apps/mf-menu/src/views/Scheduler/FilterForm.vue.d.ts +52 -0
- package/dist/apps/mf-menu/src/views/Scheduler/SchedulerDialog.vue.d.ts +52 -0
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/linked-status-qkReSi42.js +13 -0
- package/dist/assets/override-menu-Dyv1SsFk.js +13 -0
- package/dist/assets/validate-menu-DpF5os-S.js +13 -0
- package/dist/{catalog-XPyE5k4t.js → catalog-DeBJkQdk.js} +1 -1
- package/dist/{catalogSetting-C-A9fWEC.js → catalogSetting-CkZSHD-W.js} +1 -1
- package/dist/{category-DXZrXFYj.js → category-CJKIi291.js} +5 -5
- package/dist/{currency-D939gSij.js → currency-NcUCHGGN.js} +1 -1
- package/dist/{customAttributes-bw8OCoHr.js → customAttributes-Cf1e7I1m.js} +1 -1
- package/dist/{index-BU5aiCzu.js → index-B7ZCIQp2.js} +13 -13
- package/dist/{index-CPb1lDPU.js → index-BaeTP7Ku.js} +1 -1
- package/dist/{index-B4t_Uzk7.js → index-DQqxmq0e.js} +26 -26
- package/dist/{index-Cq9qqaCC.js → index-EBL2mPva.js} +1 -1
- package/dist/{item-D4uNJyVR.js → item-BsvsZcce.js} +16 -16
- package/dist/iteration-CxQwvFbX.js +27 -0
- package/dist/{jszip.min-15VIwqfl.js → jszip.min-DoZyvEEd.js} +353 -353
- package/dist/{menu-CPLvXPJu.js → menu-Dlsf52hs.js} +27998 -27430
- package/dist/{menu-BSAn1m0K.js → menu-zMO5M1Ur.js} +1 -1
- package/dist/{menuV2-DZpI5Elt.js → menuV2-Ss7NpjF_.js} +48 -48
- package/dist/mf-menu.css +1 -1
- package/dist/packages/shared/src/components/form/SelectFilter.vue.d.ts +1 -1
- package/dist/packages/shared/src/components/info/TextChip.vue.d.ts +1 -1
- package/dist/{priceTier-Bs5Ve98k.js → priceTier-Dhh2TKAL.js} +1 -1
- package/dist/{scheduler-BKwB9GfG.js → scheduler-CA9RiMAg.js} +20 -20
- package/dist/{subcategory-DJW1_br9.js → subcategory-tJjY3seO.js} +6 -6
- package/dist/{toExcel-C_lOM1fZ.js → toExcel-C6zcyUsq.js} +2 -2
- package/dist/{unit-ioVHtQya.js → unit-D4M4cm2W.js} +9 -9
- package/package.json +3 -3
- package/dist/apps/mf-menu/src/components/Announcements.vue.d.ts +0 -19
- package/dist/apps/mf-menu/src/stores/announcement/announcement.d.ts +0 -11
- package/dist/assets/linked-status-DmzniV97.js +0 -13
- package/dist/assets/override-menu-CdzhzFFi.js +0 -13
- package/dist/assets/validate-menu-BSL_Zd2w.js +0 -13
- package/dist/dayjs.min-C3Ch6D78.js +0 -6
- package/dist/iteration-BoeoXAHD.js +0 -23
|
@@ -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 I, B as T, z as ae, ao as re, J as G, I as ie, a8 as x, c as L, X as V, ai as oe, ap as Le, aq as qe, A as ze, aa as Ge, ar as He, as as Be, a7 as Je } from "./menu-Dlsf52hs.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-qkReSi42.js", nt = "/assets/override-menu-Dyv1SsFk.js";
|
|
10
10
|
function rt(e) {
|
|
11
11
|
var o;
|
|
12
|
-
const t =
|
|
12
|
+
const t = I(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 = I(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 ? I(a) : void 0, c = n ? r.modules.catalog.filter((m) => m._id !== n) : [], i = l ? I(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 = I(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({
|
|
@@ -183,11 +183,11 @@ function Dt(e, t) {
|
|
|
183
183
|
return r;
|
|
184
184
|
}, [])) || []).join(" / ");
|
|
185
185
|
}
|
|
186
|
-
const
|
|
186
|
+
const q = /* @__PURE__ */ new Map();
|
|
187
187
|
async function Vt(e, t) {
|
|
188
188
|
const n = `${e._id}-${e.updatedAt}-${t}`;
|
|
189
|
-
if (
|
|
190
|
-
return
|
|
189
|
+
if (q.has(n))
|
|
190
|
+
return q.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 q.set(n, o), o;
|
|
199
199
|
}
|
|
200
200
|
async function ce(e, t, n) {
|
|
201
201
|
return await ue(nt, {
|
|
@@ -234,18 +234,18 @@ function Ft(e, t, n) {
|
|
|
234
234
|
}
|
|
235
235
|
return r(t, n);
|
|
236
236
|
}
|
|
237
|
-
const
|
|
237
|
+
const z = /* @__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 (z.has(o))
|
|
241
|
+
return z.get(o);
|
|
242
242
|
const r = await ce(e, t, n);
|
|
243
|
-
return
|
|
243
|
+
return z.set(o, r), r;
|
|
244
244
|
}
|
|
245
245
|
async function Kt(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 = I(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, k;
|
|
258
|
+
const p = v.combinationKey ? (k = (w = f == null ? void 0 : f.variant) == null ? void 0 : w.variantCombinations) == null ? void 0 : k.find(
|
|
259
|
+
(C) => C.combinationKey === v.combinationKey
|
|
260
260
|
) : f, b = p && f ? a(f, p) : v;
|
|
261
261
|
return a(b, v);
|
|
262
262
|
});
|
|
@@ -294,7 +294,7 @@ function O(e) {
|
|
|
294
294
|
function P(e) {
|
|
295
295
|
return e instanceof RegExp ? e.toString() : e;
|
|
296
296
|
}
|
|
297
|
-
function
|
|
297
|
+
function R(e) {
|
|
298
298
|
return typeof e == "object" && e !== null && !Array.isArray(e) && !(e instanceof Date) && !(e instanceof RegExp);
|
|
299
299
|
}
|
|
300
300
|
function K(e, t) {
|
|
@@ -310,7 +310,7 @@ function K(e, t) {
|
|
|
310
310
|
if (!K(e[n], t[n])) return !1;
|
|
311
311
|
return !0;
|
|
312
312
|
}
|
|
313
|
-
if (
|
|
313
|
+
if (R(e) && R(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)
|
|
@@ -344,7 +344,7 @@ function lt(e, t, n) {
|
|
|
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 = R(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 k = `_${p}`, C = a ? [e[p], b, F] : ["", b, F];
|
|
364
|
+
o[k] = C;
|
|
365
365
|
}
|
|
366
366
|
} else {
|
|
367
367
|
const w = `_${p}`;
|
|
@@ -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 (R(e) && R(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)];
|
|
@@ -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 R(t) && t._t === "a" ? mt(e, t) : R(t) && R(e) ? vt(e, t) : e;
|
|
471
471
|
}
|
|
472
472
|
function le(e, t, n) {
|
|
473
473
|
return Y(e, t);
|
|
@@ -522,7 +522,7 @@ function X(e) {
|
|
|
522
522
|
if (e.length === 3 && e[2] === F)
|
|
523
523
|
return e;
|
|
524
524
|
}
|
|
525
|
-
return
|
|
525
|
+
return R(e) && e._t === "a" ? yt(e) : R(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 = I(v), a.value = I(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 = I(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(I(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 = I(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 = I(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 = I(v)), v;
|
|
603
603
|
}
|
|
604
604
|
}
|
|
605
605
|
function m() {
|
|
@@ -671,8 +671,8 @@ const Pt = Ye(
|
|
|
671
671
|
selector: "position"
|
|
672
672
|
}) : []), r = S(() => {
|
|
673
673
|
var s;
|
|
674
|
-
return ((s = t.currentBusiness.value) == null ? void 0 : s.menuVersion) ||
|
|
675
|
-
}), a = S(() => r.value ===
|
|
674
|
+
return ((s = t.currentBusiness.value) == null ? void 0 : s.menuVersion) || L.F_MENU_VERSION.v3;
|
|
675
|
+
}), a = S(() => r.value === L.F_MENU_VERSION.v4), l = S(() => {
|
|
676
676
|
const s = e.menu.modules.catalog;
|
|
677
677
|
return x(s, { selector: "name" });
|
|
678
678
|
}), u = S(() => {
|
|
@@ -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 k = null, C = null;
|
|
732
732
|
function Q() {
|
|
733
|
-
|
|
733
|
+
C && (C(), C = null), k && k.stop(), k = Qe(!0), C = k.run(() => Ze(
|
|
734
734
|
() => [e.menu, e.currentCatalogId, e.currentSchedulerId],
|
|
735
735
|
() => {
|
|
736
736
|
m.value || w();
|
|
@@ -809,13 +809,13 @@ const Pt = Ye(
|
|
|
809
809
|
}
|
|
810
810
|
const _e = S(() => V(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
|
-
})), we = S(() => x(e.menu.modules.unit, { selector: "name" })), Me = S(() => x(
|
|
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), Ie = S(() => {
|
|
815
|
+
const s = qe(e.menu.modules.sku);
|
|
816
816
|
return x(s, { selector: "code" });
|
|
817
817
|
}), U = S(() => {
|
|
818
|
-
const s = !e.currentCatalogId, d = r.value ===
|
|
818
|
+
const s = !e.currentCatalogId, d = r.value === L.F_MENU_VERSION.v4, y = !e.currentSchedulerId, g = {
|
|
819
819
|
create: s && y,
|
|
820
820
|
edit: s && y,
|
|
821
821
|
delete: s && y
|
|
@@ -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 ke(s) {
|
|
890
890
|
const [d, y] = s.split("/");
|
|
891
891
|
return { systemCode: d, taxCode: y };
|
|
892
892
|
}
|
|
893
|
-
function
|
|
893
|
+
function Ce(s, d, y) {
|
|
894
894
|
return (s ?? d ?? []).map((g) => W(g)).find((g) => y.some((_) => _.value === g));
|
|
895
895
|
}
|
|
896
|
-
const
|
|
896
|
+
const Re = S(() => {
|
|
897
897
|
var g;
|
|
898
|
-
const s = ["SV5", "SV10"], d =
|
|
898
|
+
const s = ["SV5", "SV10"], d = ze.Country.getCountryFlattenTaxes(
|
|
899
899
|
se().currentCountry.value
|
|
900
900
|
), y = d.filter((_) => a.value || !s.includes(_.taxCode)).map((_) => ({
|
|
901
901
|
label: `${_.name} (${Ge(_.rate)}%)`,
|
|
@@ -996,9 +996,9 @@ const Pt = Ye(
|
|
|
996
996
|
units: we,
|
|
997
997
|
recipes: Me,
|
|
998
998
|
cookingGuide: Ae,
|
|
999
|
-
skus:
|
|
999
|
+
skus: Ie,
|
|
1000
1000
|
rules: U,
|
|
1001
|
-
taxSetting:
|
|
1001
|
+
taxSetting: Re,
|
|
1002
1002
|
// Action
|
|
1003
1003
|
setMenu: f,
|
|
1004
1004
|
readMenu: Ee,
|
|
@@ -1012,8 +1012,8 @@ const Pt = Ye(
|
|
|
1012
1012
|
computeMergedMenu: p,
|
|
1013
1013
|
// helper
|
|
1014
1014
|
encodeTax: W,
|
|
1015
|
-
decodeTax:
|
|
1016
|
-
getSelectedTax:
|
|
1015
|
+
decodeTax: ke,
|
|
1016
|
+
getSelectedTax: Ce,
|
|
1017
1017
|
mapVariant: ge,
|
|
1018
1018
|
// history
|
|
1019
1019
|
canUndoHistory: Ke,
|
|
@@ -1022,7 +1022,7 @@ const Pt = Ye(
|
|
|
1022
1022
|
redoHistory: je,
|
|
1023
1023
|
// cleanup
|
|
1024
1024
|
$dispose: () => {
|
|
1025
|
-
w.cancel(),
|
|
1025
|
+
w.cancel(), C && (C(), C = null), k && (k.stop(), k = null), Ne();
|
|
1026
1026
|
},
|
|
1027
1027
|
$reinitialize: () => {
|
|
1028
1028
|
Q();
|
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}:root{--vc-clr-primary: #000;--vc-clr-secondary: #090f207f;--vc-clr-white: #ffffff}.carousel,.carousel *{box-sizing:border-box}.carousel{height:var(--vc-carousel-height);overscroll-behavior:none;position:relative;touch-action:pan-x pan-y pinch-zoom;z-index:1}.carousel.is-dragging{touch-action:none}.carousel__track{display:flex;gap:var(--vc-slide-gap);height:100%;list-style:none;margin:0;padding:0;position:relative;transition:transform ease-out;transition-duration:var(--vc-transition-duration);width:100%}.carousel__viewport{height:100%;overflow:hidden;width:100%}.carousel__sr-only{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.carousel.is-rtl{direction:rtl}.carousel.is-ttb .carousel__track{flex-direction:column}.carousel.is-btt .carousel__track{flex-direction:column-reverse}.carousel.is-vertical .carousel__slide--clone:first-child{margin-block-start:var(--vc-cloned-offset)}.carousel:not(.is-vertical) .carousel__slide--clone:first-child{margin-inline-start:var(--vc-cloned-offset)}.carousel.is-effect-fade .carousel__track{display:grid;grid-template-columns:100%;grid-template-rows:100%;transition:none}.carousel.is-effect-fade .carousel__slide{grid-area:1 / 1;height:100%;opacity:0;pointer-events:none;transition:opacity ease-in-out;transition-duration:var(--vc-transition-duration);width:100%}.carousel.is-effect-fade .carousel__slide--active{opacity:1;pointer-events:auto}:root{--vc-icn-width: 100%}.carousel__icon{fill:currentColor;height:var(--vc-icn-width);width:var(--vc-icn-width)}:root{--vc-nav-background: transparent;--vc-nav-border-radius: 0;--vc-nav-color: var(--vc-clr-primary);--vc-nav-color-hover: var(--vc-clr-secondary);--vc-nav-height: 30px;--vc-nav-width: 30px}.carousel__next,.carousel__prev{align-items:center;background:var(--vc-nav-background);border:0;border-radius:var(--vc-nav-border-radius);color:var(--vc-nav-color);cursor:pointer;display:flex;font-size:var(--vc-nav-height);height:var(--vc-nav-height);justify-content:center;padding:0;position:absolute;inset-block-start:50%;transform:translateY(-50%);width:var(--vc-nav-width)}.carousel__next--disabled,.carousel__prev--disabled{cursor:not-allowed;opacity:.5}.carousel__next{inset-inline-end:0}.carousel__prev{inset-inline-start:0}.carousel.is-vertical .carousel__next,.carousel.is-vertical .carousel__prev{inset-inline:auto 50%;inset-block-start:auto;transform:translate(50%)}.carousel.is-vertical.is-ttb .carousel__next{inset-block-end:0}.carousel.is-vertical.is-ttb .carousel__prev,.carousel.is-vertical.is-btt .carousel__next{inset-block-start:0}.carousel.is-vertical.is-btt .carousel__prev{inset-block-end:0}@media (hover: hover){.carousel__next:hover,.carousel__prev:hover{color:var(--vc-nav-color-hover)}}:root{--vc-pgn-active-color: var(--vc-clr-primary);--vc-pgn-background-color: var(--vc-clr-secondary);--vc-pgn-border-radius: 0;--vc-pgn-gap: 6px;--vc-pgn-height: 4px;--vc-png-bottom: 10px;--vc-png-left: auto;--vc-png-right: 10px;--vc-pgn-width: 16px}.carousel__pagination{bottom:var(--vc-png-bottom);display:flex;gap:var(--vc-pgn-gap);justify-content:center;left:50%;list-style:none;margin:0;padding:0;position:absolute;transform:translate(-50%)}.carousel__pagination-button{background-color:var(--vc-pgn-background-color);border:0;border-radius:var(--vc-pgn-border-radius);cursor:pointer;display:block;height:var(--vc-pgn-height);margin:0;padding:0;width:var(--vc-pgn-width)}.carousel__pagination-button--active{background-color:var(--vc-pgn-active-color)}@media (hover: hover){.carousel__pagination-button:hover{background-color:var(--vc-pgn-active-color)}}.carousel.is-vertical .carousel__pagination{bottom:50%;flex-direction:column;left:var(--vc-png-left);right:var(--vc-png-right);transform:translateY(50%)}.carousel.is-vertical .carousel__pagination-button{height:var(--vc-pgn-width);width:var(--vc-pgn-height)}.carousel.is-btt .carousel__pagination{flex-direction:column-reverse}.carousel__slide{align-items:center;display:flex;flex-shrink:0;justify-content:center;margin:0;transform:translateZ(0)}.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-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)}
|
|
@@ -85,8 +85,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
|
|
|
85
85
|
placeholder: string;
|
|
86
86
|
maxHeight: string | number;
|
|
87
87
|
searchable: boolean;
|
|
88
|
-
clearable: boolean;
|
|
89
88
|
multiple: boolean;
|
|
89
|
+
clearable: boolean;
|
|
90
90
|
searchPlaceholder: string;
|
|
91
91
|
autoSelectFirst: boolean;
|
|
92
92
|
chipIcon: string;
|
|
@@ -14,7 +14,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
14
14
|
bold: boolean;
|
|
15
15
|
}>>> & Readonly<{}>, {
|
|
16
16
|
bold: boolean;
|
|
17
|
-
size: "
|
|
17
|
+
size: "xs" | "sm" | "md";
|
|
18
18
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
19
19
|
export default _default;
|
|
20
20
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -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,
|
|
4
|
+
import { u as k, D as M } from "./menu-Dlsf52hs.js";
|
|
5
5
|
const v = /* @__PURE__ */ d({
|
|
6
6
|
__name: "AddPriceGroupDialog",
|
|
7
7
|
setup(s) {
|
|
@@ -1,11 +1,11 @@
|
|
|
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
|
|
2
|
-
import { H as S,
|
|
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-Dlsf52hs.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-Cf1e7I1m.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-zMO5M1Ur.js";
|
|
8
|
+
import { L as ge } from "./LinkProductSideSheet-CiRZO3uN.js";
|
|
9
9
|
const Ve = { class: "space-y-8" }, Fe = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "space-y-16"
|
|
@@ -61,9 +61,9 @@ const Ve = { class: "space-y-8" }, Fe = {
|
|
|
61
61
|
"onUpdate:modelValue": X
|
|
62
62
|
}, null, 8, ["model-value", "label", "sublabel"]),
|
|
63
63
|
f.modelValue ? (u(), d("div", Fe, [
|
|
64
|
-
(($ = f.modelValue) == null ? void 0 : $.length) === 0 ? (u(), d("div", ke,
|
|
64
|
+
(($ = f.modelValue) == null ? void 0 : $.length) === 0 ? (u(), d("div", ke, A(n(p)("menu.scheduler.dialog.sections.autolink.all_items")), 1)) : F("", !0),
|
|
65
65
|
((K = f.modelValue) == null ? void 0 : K.length) > 0 ? (u(), d("div", be, [
|
|
66
|
-
h("div", null,
|
|
66
|
+
h("div", null, A(n(p)("menu.scheduler.dialog.sections.autolink.filter_message")), 1),
|
|
67
67
|
t(te, {
|
|
68
68
|
content: n(p)("menu.scheduler.dialog.sections.autolink.tooltip"),
|
|
69
69
|
variant: "plain",
|
|
@@ -87,7 +87,7 @@ const Ve = { class: "space-y-8" }, Fe = {
|
|
|
87
87
|
items: Z,
|
|
88
88
|
"onUpdate:modelValue": (b) => z(k, b)
|
|
89
89
|
}, null, 8, ["model-value", "onUpdate:modelValue"]),
|
|
90
|
-
h("div", null,
|
|
90
|
+
h("div", null, A(n(p)("menu.scheduler.dialog.sections.filter.matches")), 1),
|
|
91
91
|
T.type === "category" ? (u(), I(B, {
|
|
92
92
|
key: 0,
|
|
93
93
|
"model-value": T.value,
|
|
@@ -100,7 +100,7 @@ const Ve = { class: "space-y-8" }, Fe = {
|
|
|
100
100
|
class: "flex items-center gap-4",
|
|
101
101
|
key: U
|
|
102
102
|
}, [
|
|
103
|
-
U > 0 ? (u(), d("div", Ue,
|
|
103
|
+
U > 0 ? (u(), d("div", Ue, A(n(p)("menu.scheduler.dialog.sections.filter.or")), 1)) : F("", !0),
|
|
104
104
|
h("div", xe, [
|
|
105
105
|
t(q, {
|
|
106
106
|
"model-value": b,
|
|
@@ -147,7 +147,7 @@ const Ve = { class: "space-y-8" }, Fe = {
|
|
|
147
147
|
}, Pe = { class: "flex flex-wrap gap-8" }, Te = {
|
|
148
148
|
key: 0,
|
|
149
149
|
class: "pl-32 flex flex-col items-start gap-16"
|
|
150
|
-
},
|
|
150
|
+
}, Le = { class: "w-full" }, Ae = {
|
|
151
151
|
key: 0,
|
|
152
152
|
class: "mt-8"
|
|
153
153
|
}, Ne = { class: "text-red-500 text-sm" }, Re = { class: "bg-fm-color-neutral-gray-100 px-16 py-8 border-b border-b-gray-200" }, Ye = { class: "px-16 py-8 flex-1" }, Me = { class: "px-16 py-8" }, Oe = { class: "flex gap-8 items-center justify-start" }, je = /* @__PURE__ */ ie({
|
|
@@ -225,7 +225,7 @@ const Ve = { class: "space-y-8" }, Fe = {
|
|
|
225
225
|
if (i.length <= 1) return null;
|
|
226
226
|
for (let l = 0; l < i.length; l++)
|
|
227
227
|
for (let y = l + 1; y < i.length; y++) {
|
|
228
|
-
const g = i[l],
|
|
228
|
+
const g = i[l], L = i[y], ae = w(g.start, g.end), j = w(L.start, L.end);
|
|
229
229
|
for (const x of ae)
|
|
230
230
|
for (const oe of j)
|
|
231
231
|
if (te(x, oe))
|
|
@@ -250,7 +250,7 @@ const Ve = { class: "space-y-8" }, Fe = {
|
|
|
250
250
|
}
|
|
251
251
|
const b = Y(() => J.categorizedItems.reduce((i, l) => {
|
|
252
252
|
const y = l.items.filter(
|
|
253
|
-
(g) => a.value.items.some(({ _id:
|
|
253
|
+
(g) => a.value.items.some(({ _id: L }) => g._id === L)
|
|
254
254
|
);
|
|
255
255
|
return y.length && i.push({ ...l, items: y }), i;
|
|
256
256
|
}, [])), U = Y(() => C.value === "custom" && a.value.timePeriod.length > 0 ? B(a.value.timePeriod) : null), Q = ye(
|
|
@@ -260,7 +260,7 @@ const Ve = { class: "space-y-8" }, Fe = {
|
|
|
260
260
|
}
|
|
261
261
|
);
|
|
262
262
|
return (i, l) => {
|
|
263
|
-
const y = _("FmTextField"), g = _("FmRadio"),
|
|
263
|
+
const y = _("FmTextField"), g = _("FmRadio"), L = _("FmRadioGroup"), ae = _("FmCheckbox"), j = _("FmTimePicker"), x = _("FmButton"), oe = _("FmSpacer"), re = _("FmForm"), ce = _("FmSideSheet");
|
|
264
264
|
return u(), I(ce, {
|
|
265
265
|
modelValue: D.value,
|
|
266
266
|
"onUpdate:modelValue": l[7] || (l[7] = (o) => D.value = o),
|
|
@@ -321,7 +321,7 @@ const Ve = { class: "space-y-8" }, Fe = {
|
|
|
321
321
|
}, {
|
|
322
322
|
default: v(() => [
|
|
323
323
|
h("div", null, [
|
|
324
|
-
t(
|
|
324
|
+
t(L, {
|
|
325
325
|
modelValue: a.value.repeat,
|
|
326
326
|
"onUpdate:modelValue": l[1] || (l[1] = (o) => a.value.repeat = o)
|
|
327
327
|
}, {
|
|
@@ -355,7 +355,7 @@ const Ve = { class: "space-y-8" }, Fe = {
|
|
|
355
355
|
})
|
|
356
356
|
]),
|
|
357
357
|
h("div", null, [
|
|
358
|
-
t(
|
|
358
|
+
t(L, {
|
|
359
359
|
label: n(e)("menu.scheduler.dialog.sections.period.title"),
|
|
360
360
|
modelValue: C.value,
|
|
361
361
|
"onUpdate:modelValue": l[3] || (l[3] = (o) => C.value = o)
|
|
@@ -375,7 +375,7 @@ const Ve = { class: "space-y-8" }, Fe = {
|
|
|
375
375
|
t(se, { name: "expand" }, {
|
|
376
376
|
default: v(() => [
|
|
377
377
|
C.value === "custom" ? (u(), d("div", Te, [
|
|
378
|
-
h("div",
|
|
378
|
+
h("div", Le, [
|
|
379
379
|
(u(!0), d(N, null, M(a.value.timePeriod, (o, E) => (u(), d("div", {
|
|
380
380
|
key: E,
|
|
381
381
|
class: "w-full flex gap-8 items-center"
|
|
@@ -397,8 +397,8 @@ const Ve = { class: "space-y-8" }, Fe = {
|
|
|
397
397
|
onClick: (R) => c(E)
|
|
398
398
|
}, null, 8, ["onClick"])
|
|
399
399
|
]))), 128)),
|
|
400
|
-
U.value ? (u(), d("div",
|
|
401
|
-
h("div", Ne,
|
|
400
|
+
U.value ? (u(), d("div", Ae, [
|
|
401
|
+
h("div", Ne, A(U.value), 1)
|
|
402
402
|
])) : F("", !0)
|
|
403
403
|
]),
|
|
404
404
|
t(x, {
|
|
@@ -457,12 +457,12 @@ const Ve = { class: "space-y-8" }, Fe = {
|
|
|
457
457
|
(u(!0), d(N, null, M(b.value, (o) => (u(), d("div", {
|
|
458
458
|
key: o.id
|
|
459
459
|
}, [
|
|
460
|
-
h("div", Re,
|
|
460
|
+
h("div", Re, A(o.name), 1),
|
|
461
461
|
(u(!0), d(N, null, M(o.items, (E) => (u(), d("div", {
|
|
462
462
|
key: E._id,
|
|
463
463
|
class: "flex border-b border-b-gray-100 items-center"
|
|
464
464
|
}, [
|
|
465
|
-
h("div", Ye,
|
|
465
|
+
h("div", Ye, A(E.name), 1),
|
|
466
466
|
h("div", Me, [
|
|
467
467
|
t(x, {
|
|
468
468
|
icon: "delete",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as M, watch as _, ref as E, resolveComponent as f, createBlock as x, openBlock as
|
|
2
|
-
import { J as l,
|
|
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-Dlsf52hs.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-Ss7NpjF_.js";
|
|
6
6
|
const y = /* @__PURE__ */ M({
|
|
7
7
|
__name: "AddSubcategoryDialogContentComponent",
|
|
8
8
|
props: {
|
|
@@ -27,11 +27,11 @@ const y = /* @__PURE__ */ M({
|
|
|
27
27
|
}
|
|
28
28
|
), (i, s) => {
|
|
29
29
|
const g = f("fm-text-field"), a = f("FmForm");
|
|
30
|
-
return
|
|
30
|
+
return C(), x(a, {
|
|
31
31
|
onValidationSuccess: s[1] || (s[1] = (e) => c(p)("primary"))
|
|
32
32
|
}, {
|
|
33
|
-
default:
|
|
34
|
-
|
|
33
|
+
default: V(() => [
|
|
34
|
+
A(g, {
|
|
35
35
|
modelValue: t.value,
|
|
36
36
|
"onUpdate:modelValue": s[0] || (s[0] = (e) => t.value = e),
|
|
37
37
|
rules: [(e) => !!e || c(n)("menu.subcategory.dialog.add.name.required")],
|
|
@@ -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-BGWmkL9R.js";
|
|
2
|
+
import "./menu-Dlsf52hs.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
|
|
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-Dlsf52hs.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-Ss7NpjF_.js";
|
|
11
11
|
/* empty css */
|
|
12
12
|
import { c as me } from "./createComponentProgrammatically-Bt2rn1IQ.js";
|
|
13
13
|
const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
|
|
@@ -22,7 +22,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
|
|
|
22
22
|
},
|
|
23
23
|
emits: ["update:modelValue"],
|
|
24
24
|
setup(y, { emit: g }) {
|
|
25
|
-
const t = y, n = g, c = U(() =>
|
|
25
|
+
const t = y, n = g, c = U(() => B(t.step ?? 1).precision), d = h(t.modelValue.toString());
|
|
26
26
|
T([() => d.value], ([e]) => {
|
|
27
27
|
e === "-" || e === "." ? n("update:modelValue", 0) : n("update:modelValue", +e);
|
|
28
28
|
});
|
|
@@ -33,7 +33,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
|
|
|
33
33
|
return;
|
|
34
34
|
const i = e.currentTarget, a = +`${i.value}${e.key}`;
|
|
35
35
|
if (isFinite(a)) {
|
|
36
|
-
|
|
36
|
+
B(a).precision > c.value && e.preventDefault();
|
|
37
37
|
return;
|
|
38
38
|
}
|
|
39
39
|
i.value.length === 0 && (e.key === "-" || e.key === ".") || e.preventDefault();
|
|
@@ -98,7 +98,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
|
|
|
98
98
|
unit: n.unitName
|
|
99
99
|
}));
|
|
100
100
|
function b(a) {
|
|
101
|
-
e("conversion",
|
|
101
|
+
e("conversion", P(a, n.precision));
|
|
102
102
|
}
|
|
103
103
|
function e(a, o) {
|
|
104
104
|
const p = k(n.modelValue);
|
|
@@ -173,7 +173,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
|
|
|
173
173
|
id: (/* @__PURE__ */ new Date()).toISOString(),
|
|
174
174
|
name: "",
|
|
175
175
|
abbrev: "",
|
|
176
|
-
conversion:
|
|
176
|
+
conversion: P(0, e.value.precision)
|
|
177
177
|
});
|
|
178
178
|
}
|
|
179
179
|
function s(u) {
|
|
@@ -216,7 +216,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
|
|
|
216
216
|
show: a,
|
|
217
217
|
trigger: o
|
|
218
218
|
}), (u, v) => {
|
|
219
|
-
const N = V("FmTextField"),
|
|
219
|
+
const N = V("FmTextField"), z = V("FmStepperField"), R = V("FmButton"), S = V("fm-button"), G = V("fm-side-sheet");
|
|
220
220
|
return F(), A(q, null, [
|
|
221
221
|
X(u.$slots, "default", { trigger: o }),
|
|
222
222
|
m(G, {
|
|
@@ -278,7 +278,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
|
|
|
278
278
|
}, null, 8, ["label", "modelValue", "rules"])
|
|
279
279
|
]),
|
|
280
280
|
f("div", null, [
|
|
281
|
-
m(
|
|
281
|
+
m(z, {
|
|
282
282
|
modelValue: e.value.precision,
|
|
283
283
|
"onUpdate:modelValue": [
|
|
284
284
|
v[2] || (v[2] = (r) => e.value.precision = r),
|
|
@@ -291,7 +291,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
|
|
|
291
291
|
max: 5
|
|
292
292
|
}, null, 8, ["modelValue", "label", "placeholder"])
|
|
293
293
|
]),
|
|
294
|
-
m(
|
|
294
|
+
m(R, {
|
|
295
295
|
label: l(t)("menu.unit.measurement.add"),
|
|
296
296
|
variant: "secondary",
|
|
297
297
|
onClick: _
|