@feedmepos/mf-menu 0.32.64 → 0.32.65
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-W8bH6kiT.js → App-rjcnTQzq.js} +8 -8
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-DvHmwIP2.js → ApplyProduct.vue_vue_type_script_setup_true_lang-BlX-ygeo.js} +3 -3
- package/dist/{ApplyProductDialog.vue_vue_type_script_setup_true_lang-2nFIpZv4.js → ApplyProductDialog.vue_vue_type_script_setup_true_lang-DTEZouRz.js} +3 -3
- package/dist/{Catalog-pywklogh.js → Catalog-nWzKN1u3.js} +6 -6
- package/dist/{Category-UMDcymDA.js → Category-DoUtDyuB.js} +14 -14
- package/dist/{Category-CLs58F_F.js → Category-Q42BO86t.js} +8 -8
- package/dist/{CookingGuide-Cefv83hr.js → CookingGuide-DGVhn_Yb.js} +5 -5
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-C9CvjWEO.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-Dc_Ec9Pf.js} +1 -1
- package/dist/{Group-Ujeo9noG.js → Group-B9vMDg2m.js} +3 -3
- package/dist/{Group-CfxNpgp7.js → Group-D8st1q0o.js} +1 -1
- package/dist/{Group.vue_vue_type_script_setup_true_lang-C-eZ5PGS.js → Group.vue_vue_type_script_setup_true_lang-CV_w5c7T.js} +48 -48
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-qTEz4XWJ.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-36kp3qi8.js} +5 -5
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-Kf10i_T2.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-ZbhwNALE.js} +6282 -6280
- package/dist/{Ingredient-CsHbFizZ.js → Ingredient-DWN4vTKf.js} +4 -4
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-NKoRT-LI.js → InventoryBinding.vue_vue_type_script_setup_true_lang-DJrz0wWm.js} +2 -2
- package/dist/{LinkProductSideSheet-B-Trz4a6.js → LinkProductSideSheet-DXmxJs-1.js} +4 -4
- package/dist/{MenuSetting-BNWjJAp4.js → MenuSetting-BSlQXo8m.js} +7 -7
- package/dist/{OrderPacing-DhKmymC7.js → OrderPacing-B8pgEMjf.js} +5 -5
- package/dist/{PrintRoute-DaIY94Ts.js → PrintRoute-agfebph4.js} +5 -5
- package/dist/{Product-SBeMVZBU.js → Product-CaA1CdTN.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-CDoJwAFZ.js → Product.vue_vue_type_script_setup_true_lang-Bsx6JceZ.js} +108 -108
- package/dist/{ProductInternalTools-BAHMukHo.js → ProductInternalTools-DHQz_Z8o.js} +25 -25
- package/dist/{Products-CvUK4ngP.js → Products-CeVnRRFO.js} +63 -63
- package/dist/{Publish-BqI8LP_Y.js → Publish-rN34cEkS.js} +4 -4
- package/dist/{Recipe--LCvPofA.js → Recipe-C_qTZ_E1.js} +5 -5
- package/dist/{RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-DaqG3ZEC.js → RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-C6lkwlc5.js} +1 -1
- package/dist/{RuleView.vue_vue_type_script_setup_true_lang-DsCNLIVd.js → RuleView.vue_vue_type_script_setup_true_lang-LbagGtcn.js} +595 -595
- package/dist/{Scheduler-BkXNha9_.js → Scheduler-DeixLUzk.js} +3 -3
- package/dist/{ServingSequence-DvF8yZTp.js → ServingSequence-CAmQBzaK.js} +3 -3
- package/dist/{Setting-dfdQhacG.js → Setting-C_Dl4MiB.js} +5 -5
- package/dist/{Subcategory-DoiEnCY-.js → Subcategory-C8DHzzkd.js} +6 -6
- package/dist/{Takeaway-CfTKoZgq.js → Takeaway-CIRpXPFx.js} +1 -1
- package/dist/{Takeaway-Pyol2JIm.js → Takeaway-CxYihXC0.js} +4 -4
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-A2Uz3Vx5.js → Takeaway.vue_vue_type_script_setup_true_lang-CcSjxPY4.js} +5 -5
- package/dist/{TranslationFieldSection.vue_vue_type_script_setup_true_lang-BAMLQtFW.js → TranslationFieldSection.vue_vue_type_script_setup_true_lang-D-ojP61R.js} +1 -1
- package/dist/{TranslationSideSheet.vue_vue_type_script_setup_true_lang-Bx6Dfb9q.js → TranslationSideSheet.vue_vue_type_script_setup_true_lang-BztGh7n9.js} +2 -2
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-Bex1NCnU.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-Cv4iVhML.js} +341 -340
- package/dist/{Unit-ODy76xeS.js → Unit-Cd0y2m5k.js} +2 -2
- package/dist/{Variant-BFUqQyub.js → Variant-B2CKhSOl.js} +3 -3
- package/dist/{_id_-DQO6Zi8b.js → _id_-DZiXY0H3.js} +10 -10
- package/dist/{app-BNF3d7ks.js → app-T7VNSy7v.js} +1 -1
- package/dist/{app-BNqI06Lw.js → app-T8AXgSEa.js} +32 -32
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/helper/itemCategories.d.ts +18 -0
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{override-menu-BCrsilnp.js → linked-status-CCYZRm4Q.js} +3 -3
- package/dist/assets/{menu-export-oSHHIKfH.js → menu-export-CAHQqTea.js} +34 -34
- package/dist/assets/{linked-status-OJYsf1K1.js → override-menu-CHSXJZzL.js} +3 -3
- package/dist/assets/{validate-menu-CoDW8e4r.js → validate-menu-B4fZvuxj.js} +2 -2
- package/dist/{catalog-BiUOGVhu.js → catalog-JKO0yOoK.js} +1 -1
- package/dist/{catalogSetting-Dt03eB79.js → catalogSetting-88ecNK3c.js} +1 -1
- package/dist/{currency-I2Plgz6g.js → currency-FtZ1Kndg.js} +1 -1
- package/dist/{dayjs.min-CVgq1MI5.js → dayjs.min-4vLGgFCE.js} +2 -2
- package/dist/{discardConfirm-CU5H7XLz.js → discardConfirm-CM6g-V_v.js} +1 -1
- package/dist/{index-OUaL4kl7.js → index-BRKz6YXB.js} +5 -5
- package/dist/{index-D79td5bo.js → index-DJLvriHh.js} +6 -6
- package/dist/index-wiJWDZ8Q.js +310 -0
- package/dist/{index.vue_vue_type_script_setup_true_lang-BJ5dPd5h.js → index.vue_vue_type_script_setup_true_lang-qm3HbXBN.js} +895 -895
- package/dist/{item-BPryyFAB.js → item-DZ7QwbXg.js} +1262 -1338
- package/dist/{jszip.min-D3CS7h7J.js → jszip.min-CMMOVzck.js} +167 -167
- package/dist/{linkProducts-ClCfYWFx.js → linkProducts-H4GRfufL.js} +4 -4
- package/dist/{memberPricing-CLr-Y_7e.js → memberPricing-DHWy5fqz.js} +1 -1
- package/dist/{menu-gBc-za7C.js → menu-CIm-Royr.js} +1 -1
- package/dist/{menuV2-D7O1K9Ej.js → menuV2-BAdmIxrF.js} +52 -52
- package/dist/{order_pacing-DVn2Kb9a.js → order_pacing-D58D3fak.js} +5 -5
- package/dist/{priceTier-33L1xIZW.js → priceTier-BQ8NefKy.js} +1 -1
- package/dist/{rules-C7ujXDzl.js → rules-CCMx9A-T.js} +3 -3
- package/dist/{scheduler-Dzj2Ed1a.js → scheduler-CV0r5tCc.js} +5 -5
- package/dist/{toExcel-CGOr53pl.js → toExcel-D4fh3tgH.js} +2 -2
- package/dist/{unit-CfREeFuX.js → unit-p_16wmg2.js} +3 -3
- package/package.json +1 -1
- package/dist/index-CD_omf3p.js +0 -222
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { u as p, F as d, k as s, g, h as m, T as f } from "./index.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { u as p, F as d, k as s, g, h as m, T as f } from "./index.vue_vue_type_script_setup_true_lang-qm3HbXBN.js";
|
|
2
2
|
import "@feedmepos/ui-library";
|
|
3
3
|
class u {
|
|
4
4
|
constructor(t, e, r, a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { k as u, d as s } from "./index.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { k as u, d as s } from "./index.vue_vue_type_script_setup_true_lang-qm3HbXBN.js";
|
|
2
2
|
var n = /* @__PURE__ */ ((e) => (e.AUTO = "auto", e.MANUAL = "manual", e))(n || {}), m = /* @__PURE__ */ ((e) => (e[e.Normal = 0] = "Normal", e[e.Rules = 1] = "Rules", e))(m || {});
|
|
3
3
|
class i {
|
|
4
4
|
static fromCatalog(r, a) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as r } from "./app-
|
|
2
|
-
import { U as o } from "./index.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { g as r } from "./app-T8AXgSEa.js";
|
|
2
|
+
import { U as o } from "./index.vue_vue_type_script_setup_true_lang-qm3HbXBN.js";
|
|
3
3
|
var a = o();
|
|
4
4
|
const m = /* @__PURE__ */ r(a);
|
|
5
5
|
export {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { defineComponent as le, ref as f, computed as q, watch as J, resolveComponent as C, createBlock as I, openBlock as h, unref as s, withCtx as k, createElementVNode as p, createVNode as c, createElementBlock as O, createCommentVNode as T, normalizeClass as Q, toDisplayString as F, Fragment as M, renderList as H, renderSlot as se, createSlots as ie } from "vue";
|
|
2
|
-
import { l as E, u as te } from "./discardConfirm-
|
|
2
|
+
import { l as E, u as te } from "./discardConfirm-CM6g-V_v.js";
|
|
3
3
|
import { d as re } from "./RuleConditionSelector.vue_vue_type_style_index_0_lang-CK8z7qA8.js";
|
|
4
|
-
import { i as ue, b as de, d as D, m as W, g as X, h as Z } from "./index.vue_vue_type_script_setup_true_lang-
|
|
4
|
+
import { i as ue, b as de, d as D, m as W, g as X, h as Z } from "./index.vue_vue_type_script_setup_true_lang-qm3HbXBN.js";
|
|
5
5
|
import { useI18n as oe } from "@feedmepos/mf-common";
|
|
6
6
|
import { useSnackbar as me, components as ce } from "@feedmepos/ui-library";
|
|
7
7
|
import { _ as ve } from "./FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js";
|
|
8
|
-
import { _ as pe } from "./RuleView.vue_vue_type_script_setup_true_lang-
|
|
9
|
-
import { _ as fe } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-
|
|
10
|
-
import { _ as _e, a as ee, b as ae, c as ne } from "./TranslationFieldSection.vue_vue_type_script_setup_true_lang-
|
|
8
|
+
import { _ as pe } from "./RuleView.vue_vue_type_script_setup_true_lang-LbagGtcn.js";
|
|
9
|
+
import { _ as fe } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-BlX-ygeo.js";
|
|
10
|
+
import { _ as _e, a as ee, b as ae, c as ne } from "./TranslationFieldSection.vue_vue_type_script_setup_true_lang-D-ojP61R.js";
|
|
11
11
|
import { c as he } from "./check-C9mY6LiX.js";
|
|
12
12
|
const ge = { class: "fm-typo-en-title-md-600" }, ye = { class: "pt-8 space-y-24" }, Ve = { class: "flex flex-col gap-16 border p-16 rounded-lg" }, be = { class: "fm-typo-en-body-lg-600" }, xe = {
|
|
13
13
|
key: 0,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { a as I, h as G, u as Q, d as X, m as j } from "./index.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { a as I, h as G, u as Q, d as X, m as j } from "./index.vue_vue_type_script_setup_true_lang-qm3HbXBN.js";
|
|
2
2
|
import { defineComponent as P, computed as g, ref as _, watch as W, onMounted as ee, onBeforeUnmount as ae, resolveComponent as N, createBlock as H, openBlock as D, withModifiers as K, withCtx as k, renderSlot as J, createElementBlock as q, createCommentVNode as Y, toDisplayString as O, Fragment as A, createVNode as b, unref as i, createElementVNode as $, renderList as te } from "vue";
|
|
3
|
-
import { u as le, l as ne } from "./discardConfirm-
|
|
3
|
+
import { u as le, l as ne } from "./discardConfirm-CM6g-V_v.js";
|
|
4
4
|
import { useCoreStore as oe, useI18n as Z } from "@feedmepos/mf-common";
|
|
5
5
|
import { components as re } from "@feedmepos/ui-library";
|
|
6
|
-
import { _ as ie } from "./RuleView.vue_vue_type_script_setup_true_lang-
|
|
7
|
-
import { _ as ue } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-
|
|
8
|
-
import { _ as se } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-
|
|
6
|
+
import { _ as ie } from "./RuleView.vue_vue_type_script_setup_true_lang-LbagGtcn.js";
|
|
7
|
+
import { _ as ue } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-BlX-ygeo.js";
|
|
8
|
+
import { _ as se } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-BztGh7n9.js";
|
|
9
9
|
import { c as me } from "./check-C9mY6LiX.js";
|
|
10
|
-
import { f as de } from "./currency-
|
|
10
|
+
import { f as de } from "./currency-FtZ1Kndg.js";
|
|
11
11
|
import { c as ce } from "./string-DpfFixWH.js";
|
|
12
12
|
import { g as R } from "./translation-fNx6yEpy.js";
|
|
13
13
|
function pe({
|
|
@@ -0,0 +1,310 @@
|
|
|
1
|
+
import { l as R } from "./discardConfirm-CM6g-V_v.js";
|
|
2
|
+
import { defineComponent as x, resolveComponent as p, createBlock as d, openBlock as c, Teleport as k, createVNode as g, Transition as N, withCtx as y, createCommentVNode as b, withKeys as $, normalizeStyle as I, normalizeClass as f, createElementVNode as h, renderSlot as S, createElementBlock as C, toDisplayString as z, Fragment as U, renderList as B, computed as m, unref as W, ref as P } from "vue";
|
|
3
|
+
import { _ as V } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
|
+
import { useI18n as F } from "@feedmepos/mf-common";
|
|
5
|
+
function w(t) {
|
|
6
|
+
if (!(t != null && t.category))
|
|
7
|
+
return [];
|
|
8
|
+
const e = t.position;
|
|
9
|
+
return [{
|
|
10
|
+
_id: t.category,
|
|
11
|
+
position: e
|
|
12
|
+
}, ...t.additionalCategories ?? []];
|
|
13
|
+
}
|
|
14
|
+
function j(t) {
|
|
15
|
+
return t != null && t.category ? w(t) : [
|
|
16
|
+
{
|
|
17
|
+
_id: null,
|
|
18
|
+
position: (t == null ? void 0 : t.position) ?? null
|
|
19
|
+
}
|
|
20
|
+
];
|
|
21
|
+
}
|
|
22
|
+
function le(t, e) {
|
|
23
|
+
var o;
|
|
24
|
+
const n = w(e);
|
|
25
|
+
return !n || n.length === 0 ? [(o = t.find((a) => a.id === "" || a.id === null)) == null ? void 0 : o.name] : n.map((a) => {
|
|
26
|
+
const r = t.find((i) => i.id === a._id);
|
|
27
|
+
return r ? r.name : "";
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
function ce(t) {
|
|
31
|
+
return (e) => {
|
|
32
|
+
var o;
|
|
33
|
+
if (t === e.category)
|
|
34
|
+
return e.position ?? null;
|
|
35
|
+
const n = (o = e.additionalCategories) == null ? void 0 : o.find((a) => a._id === t);
|
|
36
|
+
return (n == null ? void 0 : n.position) ?? null;
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function ue(t) {
|
|
40
|
+
let e = 0;
|
|
41
|
+
for (const n of t) {
|
|
42
|
+
e = Math.min(e, n.position ?? 0);
|
|
43
|
+
for (const o of n.additionalCategories ?? [])
|
|
44
|
+
e = Math.min(e, o.position ?? 0);
|
|
45
|
+
}
|
|
46
|
+
return e - 1;
|
|
47
|
+
}
|
|
48
|
+
function de(t, e) {
|
|
49
|
+
return t.map((n, o) => D(n, e, o + 1));
|
|
50
|
+
}
|
|
51
|
+
function D(t, e, n) {
|
|
52
|
+
var i;
|
|
53
|
+
const a = j(t).find((s) => s._id === e);
|
|
54
|
+
if ((a == null ? void 0 : a._id) === t.category)
|
|
55
|
+
return {
|
|
56
|
+
...t,
|
|
57
|
+
position: n
|
|
58
|
+
};
|
|
59
|
+
const r = (i = t.additionalCategories) == null ? void 0 : i.map((s) => s._id === e ? {
|
|
60
|
+
...s,
|
|
61
|
+
position: n
|
|
62
|
+
} : s);
|
|
63
|
+
return {
|
|
64
|
+
...t,
|
|
65
|
+
additionalCategories: r
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
function fe(t, e, n) {
|
|
69
|
+
const o = w(t).concat({
|
|
70
|
+
_id: n,
|
|
71
|
+
position: null
|
|
72
|
+
}), a = R.uniqBy(
|
|
73
|
+
o,
|
|
74
|
+
(s) => s._id
|
|
75
|
+
), [r, ...i] = a.filter(
|
|
76
|
+
(s) => s._id !== e
|
|
77
|
+
);
|
|
78
|
+
return {
|
|
79
|
+
...t,
|
|
80
|
+
category: r._id,
|
|
81
|
+
additionalCategories: i
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
const M = {
|
|
85
|
+
class: /* @__PURE__ */ f([
|
|
86
|
+
"flex items-center",
|
|
87
|
+
"px-24 pt-16 pb-8",
|
|
88
|
+
"border-b border-fm-color-neutral-gray-100",
|
|
89
|
+
"space-x-4"
|
|
90
|
+
])
|
|
91
|
+
}, X = { class: "fm-typo-en-title-sm-600 mr-auto" }, K = {
|
|
92
|
+
class: /* @__PURE__ */ f(["flex flex-col", "flex-1 overflow-scroll", "w-full", "px-24"])
|
|
93
|
+
}, q = /* @__PURE__ */ x({
|
|
94
|
+
__name: "FullScreenForm",
|
|
95
|
+
props: {
|
|
96
|
+
show: { type: Boolean },
|
|
97
|
+
title: {},
|
|
98
|
+
primaryAction: {},
|
|
99
|
+
secondaryActions: {},
|
|
100
|
+
zIndex: { default: 50 }
|
|
101
|
+
},
|
|
102
|
+
emits: ["onPrimary", "onCancel"],
|
|
103
|
+
setup(t, { emit: e }) {
|
|
104
|
+
const n = e, o = () => {
|
|
105
|
+
n("onPrimary");
|
|
106
|
+
}, a = () => {
|
|
107
|
+
n("onCancel");
|
|
108
|
+
};
|
|
109
|
+
return (r, i) => {
|
|
110
|
+
const s = p("fm-button"), l = p("fm-form");
|
|
111
|
+
return c(), d(k, { to: "body" }, [
|
|
112
|
+
g(N, { name: "fade" }, {
|
|
113
|
+
default: y(() => [
|
|
114
|
+
r.show ? (c(), d(l, {
|
|
115
|
+
key: 0,
|
|
116
|
+
"blame-form-child-on-validation-failed": "",
|
|
117
|
+
class: f(["fixed inset-0", "flex flex-col", "w-screen h-dvh", "bg-fm-color-neutral-white"]),
|
|
118
|
+
style: I({ zIndex: r.zIndex }),
|
|
119
|
+
tabindex: "-1",
|
|
120
|
+
onValidationSuccess: o,
|
|
121
|
+
onKeyup: $(a, ["esc"])
|
|
122
|
+
}, {
|
|
123
|
+
default: y(() => [
|
|
124
|
+
h("div", M, [
|
|
125
|
+
h("p", X, z(r.title), 1),
|
|
126
|
+
S(r.$slots, "append-title", {}, void 0, !0),
|
|
127
|
+
(c(!0), C(U, null, B(r.secondaryActions, (u) => (c(), d(s, {
|
|
128
|
+
label: u.label,
|
|
129
|
+
variant: "tertiary",
|
|
130
|
+
onClick: u.click
|
|
131
|
+
}, null, 8, ["label", "onClick"]))), 256)),
|
|
132
|
+
g(s, {
|
|
133
|
+
label: r.primaryAction.label,
|
|
134
|
+
type: "submit",
|
|
135
|
+
variant: "primary"
|
|
136
|
+
}, null, 8, ["label"])
|
|
137
|
+
]),
|
|
138
|
+
h("div", K, [
|
|
139
|
+
S(r.$slots, "default", {}, void 0, !0)
|
|
140
|
+
])
|
|
141
|
+
]),
|
|
142
|
+
_: 3
|
|
143
|
+
}, 8, ["style"])) : b("", !0)
|
|
144
|
+
]),
|
|
145
|
+
_: 3
|
|
146
|
+
})
|
|
147
|
+
]);
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
}), me = /* @__PURE__ */ V(q, [["__scopeId", "data-v-5b5c7179"]]), pe = /* @__PURE__ */ x({
|
|
151
|
+
__name: "PriceTierNotice",
|
|
152
|
+
props: {
|
|
153
|
+
menuStore: {}
|
|
154
|
+
},
|
|
155
|
+
setup(t) {
|
|
156
|
+
const e = t, n = m(() => {
|
|
157
|
+
var r, i;
|
|
158
|
+
return ((r = e.menuStore.currentCatalog) == null ? void 0 : r.priceTierRules) ?? ((i = e.menuStore.currentCatalog) == null ? void 0 : i.usePriceTiers) ?? [];
|
|
159
|
+
}), o = m(() => {
|
|
160
|
+
var r;
|
|
161
|
+
return e.menuStore.isV4 && e.menuStore.currentCatalog && !e.menuStore.currentScheduler && ((r = n.value) == null ? void 0 : r.length) > 0;
|
|
162
|
+
}), { t: a } = F();
|
|
163
|
+
return (r, i) => {
|
|
164
|
+
var l;
|
|
165
|
+
const s = p("FmSnackbar");
|
|
166
|
+
return o.value ? (c(), d(s, {
|
|
167
|
+
key: 0,
|
|
168
|
+
"z-index": 0,
|
|
169
|
+
class: "!max-w-full",
|
|
170
|
+
title: W(a)("menu.price_tier.price_group_description", { group: (l = n.value) == null ? void 0 : l.join(", ") })
|
|
171
|
+
}, null, 8, ["title"])) : b("", !0);
|
|
172
|
+
};
|
|
173
|
+
}
|
|
174
|
+
}), G = ["alt", "src", "crossorigin"], _e = /* @__PURE__ */ x({
|
|
175
|
+
__name: "Thumbnail",
|
|
176
|
+
props: {
|
|
177
|
+
src: {},
|
|
178
|
+
alt: {},
|
|
179
|
+
className: {},
|
|
180
|
+
size: {},
|
|
181
|
+
crossorigin: { type: Boolean, default: !0 }
|
|
182
|
+
},
|
|
183
|
+
setup(t) {
|
|
184
|
+
const e = t, { t: n } = F(), o = P(!1), a = P(!e.src), r = () => {
|
|
185
|
+
o.value = !1, a.value = !0;
|
|
186
|
+
}, i = () => {
|
|
187
|
+
o.value = !0, a.value = !0;
|
|
188
|
+
}, s = m(() => e.alt ? n("menu.thumbnail.alt.with_name", { name: e.alt }) : n("menu.thumbnail.alt.default")), l = m(() => typeof e.size == "number" ? {
|
|
189
|
+
width: e.size,
|
|
190
|
+
height: e.size
|
|
191
|
+
} : {
|
|
192
|
+
width: e.size.width,
|
|
193
|
+
height: e.size.height
|
|
194
|
+
}), u = m(() => {
|
|
195
|
+
if (!e.src) return null;
|
|
196
|
+
if (e.crossorigin) {
|
|
197
|
+
const _ = e.src.includes("?") ? "&" : "?";
|
|
198
|
+
return `${e.src}${_}_cors=${Date.now()}`;
|
|
199
|
+
}
|
|
200
|
+
return e.src;
|
|
201
|
+
});
|
|
202
|
+
return (_, re) => {
|
|
203
|
+
const v = p("fm-icon"), T = p("fm-card");
|
|
204
|
+
return c(), C("div", {
|
|
205
|
+
class: f([_.className, "flex items-center justify-center"])
|
|
206
|
+
}, [
|
|
207
|
+
g(T, {
|
|
208
|
+
class: f(["flex items-center justify-center", "rounded-md"]),
|
|
209
|
+
style: I({ width: `${l.value.width}px`, height: `${l.value.height}px` }),
|
|
210
|
+
variant: "outlined"
|
|
211
|
+
}, {
|
|
212
|
+
default: y(() => [
|
|
213
|
+
u.value && !o.value ? (c(), C("img", {
|
|
214
|
+
key: u.value,
|
|
215
|
+
alt: s.value,
|
|
216
|
+
class: f(["w-full h-full", "object-cover", a.value ? "" : "hidden"]),
|
|
217
|
+
src: u.value,
|
|
218
|
+
crossorigin: e.crossorigin ? "anonymous" : void 0,
|
|
219
|
+
onError: i,
|
|
220
|
+
onLoad: r
|
|
221
|
+
}, null, 42, G)) : (c(), d(v, {
|
|
222
|
+
key: 1,
|
|
223
|
+
color: "neutral-gray-300",
|
|
224
|
+
name: "image",
|
|
225
|
+
outline: ""
|
|
226
|
+
})),
|
|
227
|
+
a.value ? b("", !0) : (c(), d(v, {
|
|
228
|
+
key: 2,
|
|
229
|
+
class: "animate-spin",
|
|
230
|
+
name: "progress_activity",
|
|
231
|
+
spin: ""
|
|
232
|
+
}))
|
|
233
|
+
]),
|
|
234
|
+
_: 1
|
|
235
|
+
}, 8, ["style"])
|
|
236
|
+
], 2);
|
|
237
|
+
};
|
|
238
|
+
}
|
|
239
|
+
}), H = new RegExp("([\\p{Ll}\\d])(\\p{Lu})", "gu"), O = new RegExp("(\\p{Lu})([\\p{Lu}][\\p{Ll}])", "gu"), J = new RegExp("(\\d)\\p{Ll}|(\\p{L})\\d", "u"), Q = /[^\p{L}\d]+/giu, L = "$1\0$2", E = "";
|
|
240
|
+
function A(t) {
|
|
241
|
+
let e = t.trim();
|
|
242
|
+
e = e.replace(H, L).replace(O, L), e = e.replace(Q, "\0");
|
|
243
|
+
let n = 0, o = e.length;
|
|
244
|
+
for (; e.charAt(n) === "\0"; )
|
|
245
|
+
n++;
|
|
246
|
+
if (n === o)
|
|
247
|
+
return [];
|
|
248
|
+
for (; e.charAt(o - 1) === "\0"; )
|
|
249
|
+
o--;
|
|
250
|
+
return e.slice(n, o).split(/\0/g);
|
|
251
|
+
}
|
|
252
|
+
function Y(t) {
|
|
253
|
+
const e = A(t);
|
|
254
|
+
for (let n = 0; n < e.length; n++) {
|
|
255
|
+
const o = e[n], a = J.exec(o);
|
|
256
|
+
if (a) {
|
|
257
|
+
const r = a.index + (a[1] ?? a[2]).length;
|
|
258
|
+
e.splice(n, 1, o.slice(0, r), o.slice(r));
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
return e;
|
|
262
|
+
}
|
|
263
|
+
function he(t, e) {
|
|
264
|
+
const [n, o, a] = ne(t, e), r = Z(e == null ? void 0 : e.locale), i = ee(e == null ? void 0 : e.locale), s = te(r, i);
|
|
265
|
+
return n + o.map((l, u) => u === 0 ? s(l) : r(l)).join((e == null ? void 0 : e.delimiter) ?? " ") + a;
|
|
266
|
+
}
|
|
267
|
+
function Z(t) {
|
|
268
|
+
return t === !1 ? (e) => e.toLowerCase() : (e) => e.toLocaleLowerCase(t);
|
|
269
|
+
}
|
|
270
|
+
function ee(t) {
|
|
271
|
+
return t === !1 ? (e) => e.toUpperCase() : (e) => e.toLocaleUpperCase(t);
|
|
272
|
+
}
|
|
273
|
+
function te(t, e) {
|
|
274
|
+
return (n) => `${e(n[0])}${t(n.slice(1))}`;
|
|
275
|
+
}
|
|
276
|
+
function ne(t, e = {}) {
|
|
277
|
+
const n = e.split ?? (e.separateNumbers ? Y : A), o = e.prefixCharacters ?? E, a = e.suffixCharacters ?? E;
|
|
278
|
+
let r = 0, i = t.length;
|
|
279
|
+
for (; r < t.length; ) {
|
|
280
|
+
const s = t.charAt(r);
|
|
281
|
+
if (!o.includes(s))
|
|
282
|
+
break;
|
|
283
|
+
r++;
|
|
284
|
+
}
|
|
285
|
+
for (; i > r; ) {
|
|
286
|
+
const s = i - 1, l = t.charAt(s);
|
|
287
|
+
if (!a.includes(l))
|
|
288
|
+
break;
|
|
289
|
+
i = s;
|
|
290
|
+
}
|
|
291
|
+
return [
|
|
292
|
+
t.slice(0, r),
|
|
293
|
+
n(t.slice(r, i)),
|
|
294
|
+
t.slice(i)
|
|
295
|
+
];
|
|
296
|
+
}
|
|
297
|
+
export {
|
|
298
|
+
me as F,
|
|
299
|
+
pe as _,
|
|
300
|
+
ue as a,
|
|
301
|
+
fe as b,
|
|
302
|
+
D as c,
|
|
303
|
+
j as d,
|
|
304
|
+
ce as e,
|
|
305
|
+
_e as f,
|
|
306
|
+
w as g,
|
|
307
|
+
le as h,
|
|
308
|
+
de as i,
|
|
309
|
+
he as s
|
|
310
|
+
};
|