@feedmepos/mf-menu 0.32.17 → 0.32.18-dev.1
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-Cfl37TTw.js +152661 -0
- package/dist/{Catalog-ChlP8Cid.js → Catalog-Yxsb-D33.js} +47 -52
- package/dist/{Category-CHs96ibF.js → Category-0vJH8Ct0.js} +86 -92
- package/dist/{Category-B1tAJpNd.js → Category-qp0wI14I.js} +25 -26
- package/dist/{CookingGuide-mEvca-0v.js → CookingGuide-EpAr5F5U.js} +139 -143
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-Bk26jQI7.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-CkyD0sdI.js} +14 -16
- package/dist/{Group-Ye2IIY52.js → Group-B3W9iSbO.js} +5 -5
- package/dist/{Group-Co2Vf4Lw.js → Group-DLCh0fDU.js} +1 -1
- package/dist/{Group.vue_vue_type_script_setup_true_lang-BcxSbvJS.js → Group.vue_vue_type_script_setup_true_lang-Bzy_hXDv.js} +176 -186
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-D1f8VG-n.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BFaAXp7r.js} +81 -88
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-Jv6iJlg9.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-CxP8lDD0.js} +2502 -2508
- package/dist/{Ingredient-BgnW8sWo.js → Ingredient-CVLMr_YB.js} +102 -105
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-8ziHcUiK.js → InventoryBinding.vue_vue_type_script_setup_true_lang-CdTC5ykI.js} +1058 -1059
- package/dist/{MenuSetting-GEngjeC8.js → MenuSetting-Blpi1vSd.js} +58 -61
- package/dist/{PrintRoute-BSlUQT7g.js → PrintRoute-BS7PPPkE.js} +49 -52
- package/dist/{Product-DNg_BUuV.js → Product-DDeNKQ7u.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-Cehy2oy-.js → Product.vue_vue_type_script_setup_true_lang-rmv8m4_D.js} +286 -298
- package/dist/{ProductInternalTools-B5A67yxH.js → ProductInternalTools-CVuothk9.js} +45 -46
- package/dist/{Products-DCsxmTPB.js → Products-BIvsHKEt.js} +111 -116
- package/dist/{Publish-Cst0Ll6T.js → Publish-CDADU3Pp.js} +154 -159
- package/dist/{Recipe-DupS3SQT.js → Recipe-CMhW7e_z.js} +40 -43
- package/dist/{Scheduler-BcThU1M6.js → Scheduler-BpxunKBV.js} +7 -7
- package/dist/{ServingSequence-CT3THBH6.js → ServingSequence-BQVuYyAB.js} +54 -58
- package/dist/{Setting-Dxh8E3no.js → Setting-Dj0yyP37.js} +63 -66
- package/dist/{Subcategory-DhJEzofz.js → Subcategory-BH4DDZM4.js} +72 -76
- package/dist/{Takeaway-DSC7U4Jk.js → Takeaway-CGJBZ_sJ.js} +1 -1
- package/dist/{Takeaway-B8BSSKNj.js → Takeaway-DifOudVE.js} +20 -21
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-BLpiJlk2.js → Takeaway.vue_vue_type_script_setup_true_lang-D-R5_S5G.js} +59 -64
- package/dist/{Unit-joU7vZZu.js → Unit-DXDox2Ut.js} +8 -8
- package/dist/{Variant-D8YjRJ6N.js → Variant-DbJVwgm5.js} +75 -78
- package/dist/{_id_-Bd9uo1WW.js → _id_-RFYwWjbM.js} +34 -38
- package/dist/{app-BNrAos5Z.js → app-Z0KWH9-d.js} +74 -335
- package/dist/app.js +4 -5
- package/dist/apps/mf-menu/src/app.d.ts +1 -2
- package/dist/apps/mf-menu/src/helper/import-export-utils.d.ts +1 -0
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{linked-status-DbjzbFTw.js → linked-status-CkmoJAm-.js} +2 -2
- package/dist/assets/{menu-export-D_oNY_wi.js → menu-export-DcINiK28.js} +3 -3
- package/dist/assets/{override-menu-CIU7U1_4.js → override-menu-PUKiu-df.js} +2 -2
- package/dist/assets/{validate-menu-kuOxuwG9.js → validate-menu-CcqiRhNT.js} +2 -2
- package/dist/{catalogSetting-BHgsBDTl.js → catalogSetting-Bf66H-j7.js} +1 -1
- package/dist/dayjs.min-DNPTnUFp.js +6 -0
- package/dist/{jszip.min-7SsHzD5O.js → jszip.min-CO2_Gf69.js} +545 -545
- package/dist/{menu-Cd4NbFVq.js → menu-Brxar171.js} +1 -1
- package/dist/mf-menu.css +1 -1
- package/dist/{scheduler-B6OokVIA.js → scheduler-CqdIiE8G.js} +56 -60
- package/dist/{toExcel-BZkbXlHv.js → toExcel-CRJIU0NC.js} +2 -2
- package/dist/{unit-D6QOkMoM.js → unit-wYPYkm33.js} +98 -105
- package/package.json +1 -1
- package/dist/App-BiSEuDkd.js +0 -13484
- package/dist/ApplyProduct.vue_vue_type_script_setup_true_lang-C_SjdLpO.js +0 -161
- package/dist/FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js +0 -26
- package/dist/LinkProductSideSheet-DFDYEUBh.js +0 -687
- package/dist/MenuSelector.vue_vue_type_script_setup_true_lang-K6Z0QJBl.js +0 -69
- package/dist/RuleView.vue_vue_type_script_setup_true_lang-BeesK2ym.js +0 -3285
- package/dist/TextChip.vue_vue_type_script_setup_true_lang-8frWuZFL.js +0 -20
- package/dist/Thumbnail.vue_vue_type_script_setup_true_lang-C3qXnZlz.js +0 -399
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-CMe76XvZ.js +0 -6011
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
- package/dist/app-5fxKLAzS.js +0 -8163
- package/dist/app-nTzkERJW.js +0 -68
- package/dist/catalog-BO2nXwe5.js +0 -199
- package/dist/category-CuG3DsGL.js +0 -156
- package/dist/check-C9mY6LiX.js +0 -9
- package/dist/createComponentProgrammatically-Bt2rn1IQ.js +0 -11
- package/dist/currency-DxC5zyZB.js +0 -7
- package/dist/dayjs.min-BvFUSPWD.js +0 -6
- package/dist/discardConfirm-BHni0LNu.js +0 -28
- package/dist/index-B0nhvuxR.js +0 -273
- package/dist/index-C2zPvt64.js +0 -239
- package/dist/index-C36JQix-.js +0 -246
- package/dist/index-CisutoS9.js +0 -156
- package/dist/index.vue_vue_type_script_setup_true_lang-DCBYExNb.js +0 -109064
- package/dist/item-K01xd1Z0.js +0 -6868
- package/dist/menuV2-DKE-xanq.js +0 -1052
- package/dist/object-DVUNCr7w.js +0 -16
- package/dist/priceTier-Beavb91W.js +0 -87
- package/dist/search-BAPEUu1R.js +0 -15
- package/dist/string-DpfFixWH.js +0 -4
- package/dist/subcategory-DnslmmRD.js +0 -148
- package/dist/tooltip-B5BiPMx9.js +0 -32
- package/dist/vuedraggable-CK8z7qA8.js +0 -1728
package/dist/index-C36JQix-.js
DELETED
|
@@ -1,246 +0,0 @@
|
|
|
1
|
-
import { defineComponent as W, ref as A, resolveComponent as v, createElementBlock as E, openBlock as I, Fragment as B, createElementVNode as g, createVNode as c, normalizeClass as T, withCtx as _, toDisplayString as S, unref as i, h as G, watch as O, onMounted as K, nextTick as M, readonly as N, getCurrentInstance as U, getCurrentScope as L, onScopeDispose as $ } from "vue";
|
|
2
|
-
import { useI18n as q, useCustomAttributes as H, useCoreStore as J } from "@feedmepos/mf-common";
|
|
3
|
-
import { components as Q } from "@feedmepos/ui-library";
|
|
4
|
-
import { d as X, _ as k } from "./RuleView.vue_vue_type_script_setup_true_lang-BeesK2ym.js";
|
|
5
|
-
const Y = {
|
|
6
|
-
class: /* @__PURE__ */ T(["fm-typo-en-body-md-600 select-none text-ellipsis overflow-hidden whitespace-nowrap", "text-fm-color-neutral-gray-400"])
|
|
7
|
-
}, Z = {
|
|
8
|
-
class: "fm-typo-en-title-sm-600"
|
|
9
|
-
}, ee = {
|
|
10
|
-
class: "max-h-[60vh] flex-1 overflow-y-auto min-h-0"
|
|
11
|
-
}, me = /* @__PURE__ */ W({
|
|
12
|
-
__name: "RestaurantAttributesSelector",
|
|
13
|
-
props: {
|
|
14
|
-
fullWidth: {
|
|
15
|
-
type: Boolean,
|
|
16
|
-
default: !1
|
|
17
|
-
},
|
|
18
|
-
currentRestaurantAttrParams: {}
|
|
19
|
-
},
|
|
20
|
-
emits: ["confirm"],
|
|
21
|
-
setup(e, {
|
|
22
|
-
emit: n
|
|
23
|
-
}) {
|
|
24
|
-
const o = e, {
|
|
25
|
-
t
|
|
26
|
-
} = q(), {
|
|
27
|
-
attributes: r
|
|
28
|
-
} = H({
|
|
29
|
-
valueSource: J().restaurants,
|
|
30
|
-
entity: "restaurant"
|
|
31
|
-
}), {
|
|
32
|
-
restaurantAttributes: a
|
|
33
|
-
} = X(), y = [{
|
|
34
|
-
header: () => t("portalshell.customAttributes.form.key"),
|
|
35
|
-
accessorKey: "key",
|
|
36
|
-
enableSorting: !1
|
|
37
|
-
}, {
|
|
38
|
-
header: () => t("portalshell.customAttributes.form.value"),
|
|
39
|
-
accessorKey: "values",
|
|
40
|
-
enableSorting: !1,
|
|
41
|
-
cell: (f) => {
|
|
42
|
-
const s = f.row.original, u = s.values;
|
|
43
|
-
return G(Q.FmSelect, {
|
|
44
|
-
modelValue: s.value,
|
|
45
|
-
placeholder: t("portalshell.customAttributes.form.valuePlaceholder"),
|
|
46
|
-
items: u.map((l) => ({
|
|
47
|
-
label: l,
|
|
48
|
-
value: l
|
|
49
|
-
})),
|
|
50
|
-
clearable: !0,
|
|
51
|
-
searchable: !0,
|
|
52
|
-
"onUpdate:modelValue": (l) => s.value = l
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
}], m = n;
|
|
56
|
-
function b(f) {
|
|
57
|
-
return f.reduce((s, u) => (u.value != null && (s[u.key] = u.value), s), {});
|
|
58
|
-
}
|
|
59
|
-
const h = () => {
|
|
60
|
-
const f = r.value.filter((l) => l.value != null), s = a.value.filter((l) => l.value != null), u = {
|
|
61
|
-
restaurantCustomAttributes: b(f),
|
|
62
|
-
restaurantAttributes: b(s)
|
|
63
|
-
};
|
|
64
|
-
m("confirm", u), C();
|
|
65
|
-
}, p = A(!1);
|
|
66
|
-
function w() {
|
|
67
|
-
var u, l;
|
|
68
|
-
p.value = !0;
|
|
69
|
-
const f = ((u = o.currentRestaurantAttrParams) == null ? void 0 : u.restaurantCustomAttributes) ?? {};
|
|
70
|
-
r.value.forEach((d) => {
|
|
71
|
-
d.value = f[d.key] ?? void 0;
|
|
72
|
-
});
|
|
73
|
-
const s = ((l = o.currentRestaurantAttrParams) == null ? void 0 : l.restaurantAttributes) ?? {};
|
|
74
|
-
a.value.forEach((d) => {
|
|
75
|
-
d.value = s[d.key] ?? void 0;
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
function C() {
|
|
79
|
-
p.value = !1;
|
|
80
|
-
}
|
|
81
|
-
return (f, s) => {
|
|
82
|
-
const u = v("FmIcon"), l = v("FmChip"), d = v("FmTable"), V = v("FmSpacer"), F = v("fm-button"), j = v("FmDialog");
|
|
83
|
-
return I(), E(B, null, [g("div", {
|
|
84
|
-
class: "cursor-pointer",
|
|
85
|
-
onClick: w
|
|
86
|
-
}, [c(l, {
|
|
87
|
-
class: T([f.fullWidth ? "w-full justify-between" : ""])
|
|
88
|
-
}, {
|
|
89
|
-
default: _(() => [g("div", Y, S(i(t)("menu.catalog.form.restaurant_attributes_title")), 1), c(u, {
|
|
90
|
-
color: "neutral-gray-400",
|
|
91
|
-
name: "launch",
|
|
92
|
-
size: "sm"
|
|
93
|
-
})]),
|
|
94
|
-
_: 1
|
|
95
|
-
}, 8, ["class"])]), c(j, {
|
|
96
|
-
modelValue: p.value,
|
|
97
|
-
"onUpdate:modelValue": s[0] || (s[0] = (R) => p.value = R),
|
|
98
|
-
overlay: !0,
|
|
99
|
-
"min-width": "min(calc(100% - 48px), 560px)"
|
|
100
|
-
}, {
|
|
101
|
-
"dialog-header": _(() => [g("div", Z, S(i(t)("menu.catalog.form.restaurant_attributes_title")), 1)]),
|
|
102
|
-
"dialog-footer": _(() => [c(V), c(F, {
|
|
103
|
-
label: i(t)("menu.common.actions.confirm"),
|
|
104
|
-
size: "lg",
|
|
105
|
-
type: "submit",
|
|
106
|
-
variant: "primary",
|
|
107
|
-
onClick: h
|
|
108
|
-
}, null, 8, ["label"]), c(F, {
|
|
109
|
-
label: i(t)("menu.common.actions.cancel"),
|
|
110
|
-
size: "lg",
|
|
111
|
-
variant: "tertiary",
|
|
112
|
-
onClick: C
|
|
113
|
-
}, null, 8, ["label"])]),
|
|
114
|
-
default: _(() => [g("div", ee, [c(k, {
|
|
115
|
-
title: i(t)("menu.link_product.rules.restaurant_custom_attributes_filter")
|
|
116
|
-
}, {
|
|
117
|
-
default: _(() => [c(d, {
|
|
118
|
-
"column-defs": y,
|
|
119
|
-
"row-data": i(r),
|
|
120
|
-
"shrink-at": !1,
|
|
121
|
-
"page-size": i(r).length,
|
|
122
|
-
"hide-footer": ""
|
|
123
|
-
}, null, 8, ["row-data", "page-size"])]),
|
|
124
|
-
_: 1
|
|
125
|
-
}, 8, ["title"]), c(k, {
|
|
126
|
-
title: i(t)("menu.link_product.rules.restaurant_filter")
|
|
127
|
-
}, {
|
|
128
|
-
default: _(() => [c(d, {
|
|
129
|
-
"column-defs": y,
|
|
130
|
-
"row-data": i(a),
|
|
131
|
-
"shrink-at": !1,
|
|
132
|
-
"page-size": i(a).length,
|
|
133
|
-
"hide-footer": ""
|
|
134
|
-
}, null, 8, ["row-data", "page-size"])]),
|
|
135
|
-
_: 1
|
|
136
|
-
}, 8, ["title"])])]),
|
|
137
|
-
_: 1
|
|
138
|
-
}, 8, ["modelValue"])], 64);
|
|
139
|
-
};
|
|
140
|
-
}
|
|
141
|
-
});
|
|
142
|
-
function fe(e) {
|
|
143
|
-
return L() ? ($(e), !0) : !1;
|
|
144
|
-
}
|
|
145
|
-
function x(e) {
|
|
146
|
-
return typeof e == "function" ? e() : i(e);
|
|
147
|
-
}
|
|
148
|
-
const pe = typeof window < "u" && typeof document < "u";
|
|
149
|
-
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
150
|
-
const te = Object.prototype.toString, de = (e) => te.call(e) === "[object Object]", D = () => {
|
|
151
|
-
};
|
|
152
|
-
function P(e, n) {
|
|
153
|
-
function o(...t) {
|
|
154
|
-
return new Promise((r, a) => {
|
|
155
|
-
Promise.resolve(e(() => n.apply(this, t), { fn: n, thisArg: this, args: t })).then(r).catch(a);
|
|
156
|
-
});
|
|
157
|
-
}
|
|
158
|
-
return o;
|
|
159
|
-
}
|
|
160
|
-
const z = (e) => e();
|
|
161
|
-
function ne(e, n = {}) {
|
|
162
|
-
let o, t, r = D;
|
|
163
|
-
const a = (m) => {
|
|
164
|
-
clearTimeout(m), r(), r = D;
|
|
165
|
-
};
|
|
166
|
-
return (m) => {
|
|
167
|
-
const b = x(e), h = x(n.maxWait);
|
|
168
|
-
return o && a(o), b <= 0 || h !== void 0 && h <= 0 ? (t && (a(t), t = null), Promise.resolve(m())) : new Promise((p, w) => {
|
|
169
|
-
r = n.rejectOnCancel ? w : p, h && !t && (t = setTimeout(() => {
|
|
170
|
-
o && a(o), t = null, p(m());
|
|
171
|
-
}, h)), o = setTimeout(() => {
|
|
172
|
-
t && a(t), t = null, p(m());
|
|
173
|
-
}, b);
|
|
174
|
-
});
|
|
175
|
-
};
|
|
176
|
-
}
|
|
177
|
-
function oe(e = z) {
|
|
178
|
-
const n = A(!0);
|
|
179
|
-
function o() {
|
|
180
|
-
n.value = !1;
|
|
181
|
-
}
|
|
182
|
-
function t() {
|
|
183
|
-
n.value = !0;
|
|
184
|
-
}
|
|
185
|
-
const r = (...a) => {
|
|
186
|
-
n.value && e(...a);
|
|
187
|
-
};
|
|
188
|
-
return { isActive: N(n), pause: o, resume: t, eventFilter: r };
|
|
189
|
-
}
|
|
190
|
-
function re(e) {
|
|
191
|
-
return U();
|
|
192
|
-
}
|
|
193
|
-
function ae(e, n = 200, o = {}) {
|
|
194
|
-
return P(
|
|
195
|
-
ne(n, o),
|
|
196
|
-
e
|
|
197
|
-
);
|
|
198
|
-
}
|
|
199
|
-
function be(e, n = 200, o = {}) {
|
|
200
|
-
const t = A(e.value), r = ae(() => {
|
|
201
|
-
t.value = e.value;
|
|
202
|
-
}, n, o);
|
|
203
|
-
return O(e, () => r()), t;
|
|
204
|
-
}
|
|
205
|
-
function se(e, n, o = {}) {
|
|
206
|
-
const {
|
|
207
|
-
eventFilter: t = z,
|
|
208
|
-
...r
|
|
209
|
-
} = o;
|
|
210
|
-
return O(
|
|
211
|
-
e,
|
|
212
|
-
P(
|
|
213
|
-
t,
|
|
214
|
-
n
|
|
215
|
-
),
|
|
216
|
-
r
|
|
217
|
-
);
|
|
218
|
-
}
|
|
219
|
-
function he(e, n, o = {}) {
|
|
220
|
-
const {
|
|
221
|
-
eventFilter: t,
|
|
222
|
-
...r
|
|
223
|
-
} = o, { eventFilter: a, pause: y, resume: m, isActive: b } = oe(t);
|
|
224
|
-
return { stop: se(
|
|
225
|
-
e,
|
|
226
|
-
n,
|
|
227
|
-
{
|
|
228
|
-
...r,
|
|
229
|
-
eventFilter: a
|
|
230
|
-
}
|
|
231
|
-
), pause: y, resume: m, isActive: b };
|
|
232
|
-
}
|
|
233
|
-
function ve(e, n = !0, o) {
|
|
234
|
-
re() ? K(e, o) : n ? e() : M(e);
|
|
235
|
-
}
|
|
236
|
-
export {
|
|
237
|
-
me as _,
|
|
238
|
-
ve as a,
|
|
239
|
-
fe as b,
|
|
240
|
-
de as c,
|
|
241
|
-
pe as i,
|
|
242
|
-
D as n,
|
|
243
|
-
be as r,
|
|
244
|
-
x as t,
|
|
245
|
-
he as w
|
|
246
|
-
};
|
package/dist/index-CisutoS9.js
DELETED
|
@@ -1,156 +0,0 @@
|
|
|
1
|
-
import { defineComponent as y, resolveComponent as p, createBlock as f, openBlock as i, Teleport as E, createVNode as _, Transition as g, withCtx as h, createCommentVNode as L, withKeys as w, normalizeStyle as F, normalizeClass as d, createElementVNode as m, renderSlot as x, createElementBlock as T, toDisplayString as R, Fragment as A, renderList as v, computed as C, unref as I } from "vue";
|
|
2
|
-
import { _ as k } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
-
import { useI18n as U } from "@feedmepos/mf-common";
|
|
4
|
-
const N = {
|
|
5
|
-
class: /* @__PURE__ */ d([
|
|
6
|
-
"flex items-center",
|
|
7
|
-
"px-24 pt-16 pb-8",
|
|
8
|
-
"border-b border-fm-color-neutral-gray-100",
|
|
9
|
-
"space-x-4"
|
|
10
|
-
])
|
|
11
|
-
}, $ = { class: "fm-typo-en-title-sm-600 mr-auto" }, z = {
|
|
12
|
-
class: /* @__PURE__ */ d(["flex flex-col", "flex-1 overflow-scroll", "w-full", "px-24"])
|
|
13
|
-
}, V = /* @__PURE__ */ y({
|
|
14
|
-
__name: "FullScreenForm",
|
|
15
|
-
props: {
|
|
16
|
-
show: { type: Boolean },
|
|
17
|
-
title: {},
|
|
18
|
-
primaryAction: {},
|
|
19
|
-
secondaryActions: {},
|
|
20
|
-
zIndex: { default: 50 }
|
|
21
|
-
},
|
|
22
|
-
emits: ["onPrimary", "onCancel"],
|
|
23
|
-
setup(t, { emit: e }) {
|
|
24
|
-
const n = e, l = () => {
|
|
25
|
-
n("onPrimary");
|
|
26
|
-
}, c = () => {
|
|
27
|
-
n("onCancel");
|
|
28
|
-
};
|
|
29
|
-
return (r, o) => {
|
|
30
|
-
const a = p("fm-button"), s = p("fm-form");
|
|
31
|
-
return i(), f(E, { to: "body" }, [
|
|
32
|
-
_(g, { name: "fade" }, {
|
|
33
|
-
default: h(() => [
|
|
34
|
-
r.show ? (i(), f(s, {
|
|
35
|
-
key: 0,
|
|
36
|
-
"blame-form-child-on-validation-failed": "",
|
|
37
|
-
class: d(["fixed inset-0", "flex flex-col", "w-screen h-dvh", "bg-fm-color-neutral-white"]),
|
|
38
|
-
style: F({ zIndex: r.zIndex }),
|
|
39
|
-
tabindex: "-1",
|
|
40
|
-
onValidationSuccess: l,
|
|
41
|
-
onKeyup: w(c, ["esc"])
|
|
42
|
-
}, {
|
|
43
|
-
default: h(() => [
|
|
44
|
-
m("div", N, [
|
|
45
|
-
m("p", $, R(r.title), 1),
|
|
46
|
-
x(r.$slots, "append-title", {}, void 0, !0),
|
|
47
|
-
(i(!0), T(A, null, v(r.secondaryActions, (u) => (i(), f(a, {
|
|
48
|
-
label: u.label,
|
|
49
|
-
variant: "tertiary",
|
|
50
|
-
onClick: u.click
|
|
51
|
-
}, null, 8, ["label", "onClick"]))), 256)),
|
|
52
|
-
_(a, {
|
|
53
|
-
label: r.primaryAction.label,
|
|
54
|
-
type: "submit",
|
|
55
|
-
variant: "primary"
|
|
56
|
-
}, null, 8, ["label"])
|
|
57
|
-
]),
|
|
58
|
-
m("div", z, [
|
|
59
|
-
x(r.$slots, "default", {}, void 0, !0)
|
|
60
|
-
])
|
|
61
|
-
]),
|
|
62
|
-
_: 3
|
|
63
|
-
}, 8, ["style"])) : L("", !0)
|
|
64
|
-
]),
|
|
65
|
-
_: 3
|
|
66
|
-
})
|
|
67
|
-
]);
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
}), Q = /* @__PURE__ */ k(V, [["__scopeId", "data-v-5b5c7179"]]), Y = /* @__PURE__ */ y({
|
|
71
|
-
__name: "PriceTierNotice",
|
|
72
|
-
props: {
|
|
73
|
-
menuStore: {}
|
|
74
|
-
},
|
|
75
|
-
setup(t) {
|
|
76
|
-
const e = t, n = C(() => {
|
|
77
|
-
var r, o;
|
|
78
|
-
return ((r = e.menuStore.currentCatalog) == null ? void 0 : r.priceTierRules) ?? ((o = e.menuStore.currentCatalog) == null ? void 0 : o.usePriceTiers) ?? [];
|
|
79
|
-
}), l = C(() => {
|
|
80
|
-
var r;
|
|
81
|
-
return e.menuStore.isV4 && e.menuStore.currentCatalog && !e.menuStore.currentScheduler && ((r = n.value) == null ? void 0 : r.length) > 0;
|
|
82
|
-
}), { t: c } = U();
|
|
83
|
-
return (r, o) => {
|
|
84
|
-
var s;
|
|
85
|
-
const a = p("FmSnackbar");
|
|
86
|
-
return l.value ? (i(), f(a, {
|
|
87
|
-
key: 0,
|
|
88
|
-
"z-index": 0,
|
|
89
|
-
class: "!max-w-full",
|
|
90
|
-
title: I(c)("menu.price_tier.price_group_description", { group: (s = n.value) == null ? void 0 : s.join(", ") })
|
|
91
|
-
}, null, 8, ["title"])) : L("", !0);
|
|
92
|
-
};
|
|
93
|
-
}
|
|
94
|
-
}), B = new RegExp("([\\p{Ll}\\d])(\\p{Lu})", "gu"), D = new RegExp("(\\p{Lu})([\\p{Lu}][\\p{Ll}])", "gu"), X = new RegExp("(\\d)\\p{Ll}|(\\p{L})\\d", "u"), j = /[^\p{L}\d]+/giu, S = "$1\0$2", b = "";
|
|
95
|
-
function P(t) {
|
|
96
|
-
let e = t.trim();
|
|
97
|
-
e = e.replace(B, S).replace(D, S), e = e.replace(j, "\0");
|
|
98
|
-
let n = 0, l = e.length;
|
|
99
|
-
for (; e.charAt(n) === "\0"; )
|
|
100
|
-
n++;
|
|
101
|
-
if (n === l)
|
|
102
|
-
return [];
|
|
103
|
-
for (; e.charAt(l - 1) === "\0"; )
|
|
104
|
-
l--;
|
|
105
|
-
return e.slice(n, l).split(/\0/g);
|
|
106
|
-
}
|
|
107
|
-
function K(t) {
|
|
108
|
-
const e = P(t);
|
|
109
|
-
for (let n = 0; n < e.length; n++) {
|
|
110
|
-
const l = e[n], c = X.exec(l);
|
|
111
|
-
if (c) {
|
|
112
|
-
const r = c.index + (c[1] ?? c[2]).length;
|
|
113
|
-
e.splice(n, 1, l.slice(0, r), l.slice(r));
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
return e;
|
|
117
|
-
}
|
|
118
|
-
function Z(t, e) {
|
|
119
|
-
const [n, l, c] = O(t, e), r = G(e == null ? void 0 : e.locale), o = H(e == null ? void 0 : e.locale), a = M(r, o);
|
|
120
|
-
return n + l.map((s, u) => u === 0 ? a(s) : r(s)).join((e == null ? void 0 : e.delimiter) ?? " ") + c;
|
|
121
|
-
}
|
|
122
|
-
function G(t) {
|
|
123
|
-
return t === !1 ? (e) => e.toLowerCase() : (e) => e.toLocaleLowerCase(t);
|
|
124
|
-
}
|
|
125
|
-
function H(t) {
|
|
126
|
-
return t === !1 ? (e) => e.toUpperCase() : (e) => e.toLocaleUpperCase(t);
|
|
127
|
-
}
|
|
128
|
-
function M(t, e) {
|
|
129
|
-
return (n) => `${e(n[0])}${t(n.slice(1))}`;
|
|
130
|
-
}
|
|
131
|
-
function O(t, e = {}) {
|
|
132
|
-
const n = e.split ?? (e.separateNumbers ? K : P), l = e.prefixCharacters ?? b, c = e.suffixCharacters ?? b;
|
|
133
|
-
let r = 0, o = t.length;
|
|
134
|
-
for (; r < t.length; ) {
|
|
135
|
-
const a = t.charAt(r);
|
|
136
|
-
if (!l.includes(a))
|
|
137
|
-
break;
|
|
138
|
-
r++;
|
|
139
|
-
}
|
|
140
|
-
for (; o > r; ) {
|
|
141
|
-
const a = o - 1, s = t.charAt(a);
|
|
142
|
-
if (!c.includes(s))
|
|
143
|
-
break;
|
|
144
|
-
o = a;
|
|
145
|
-
}
|
|
146
|
-
return [
|
|
147
|
-
t.slice(0, r),
|
|
148
|
-
n(t.slice(r, o)),
|
|
149
|
-
t.slice(o)
|
|
150
|
-
];
|
|
151
|
-
}
|
|
152
|
-
export {
|
|
153
|
-
Q as F,
|
|
154
|
-
Y as _,
|
|
155
|
-
Z as s
|
|
156
|
-
};
|