@feedmepos/mf-menu 0.31.33 → 0.31.34-alpha
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-DNDOc3bV.js → App-CaKDbV0S.js} +6 -6
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-BvrfcWHU.js → ApplyProduct.vue_vue_type_script_setup_true_lang-gY18sRMg.js} +20 -20
- package/dist/{Catalog-Zhi-3W6T.js → Catalog-B0zMoi7e.js} +80 -80
- package/dist/{Category-BU0bkAGd.js → Category-Dyou6Q17.js} +31 -27
- package/dist/{Category-CE9ixFkD.js → Category-rMN8037Q.js} +19 -19
- package/dist/{CookingGuide-eghVaeEY.js → CookingGuide-DT2XxaWa.js} +4 -4
- package/dist/CustomAttributeChip.vue_vue_type_script_setup_true_lang-Cv9LNAfi.js +113 -0
- package/dist/{Group-DWrtP9Au.js → Group-CYSIOe3D.js} +1 -1
- package/dist/{Group-DDZPf6LY.js → Group-M4WPAAYz.js} +3 -3
- package/dist/Group.vue_vue_type_script_setup_true_lang-B-BH-2WN.js +686 -0
- package/dist/GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-TQWka93A.js +367 -0
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-Cus0YKUt.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-DgSO7SQW.js} +4982 -5081
- package/dist/{Ingredient-BJgvOyV9.js → Ingredient-DNvr30pW.js} +3 -3
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-CF99abLi.js → InventoryBinding.vue_vue_type_script_setup_true_lang-G44luws0.js} +1052 -1052
- package/dist/LinkProductSideSheet-Cp0HFoP2.js +297 -0
- package/dist/LinkProductSideSheet.vue_vue_type_style_index_0_scoped_97fa9d58_lang-DvG3mOom.js +8024 -0
- package/dist/{MenuSetting-gkwORUX0.js → MenuSetting-UeQ2NyVm.js} +4 -4
- package/dist/{PrintRoute-Cda6sFlL.js → PrintRoute-5uX9ymJY.js} +89 -88
- package/dist/{Product-61AAh5L-.js → Product-Dxqf8_iq.js} +1 -1
- package/dist/Product.vue_vue_type_script_setup_true_lang-DUtGVRCH.js +1578 -0
- package/dist/{ProductInternalTools-o8cVZXCT.js → ProductInternalTools-BCF9q0i_.js} +5 -5
- package/dist/Products--adhOQ8n.js +283 -0
- package/dist/{Publish-BRgJUzoA.js → Publish-CRaoaFxc.js} +3 -3
- package/dist/{Recipe-CV8lvryp.js → Recipe-DPkzZMJi.js} +4 -4
- package/dist/{Scheduler-B_ptvb82.js → Scheduler-BuwjNHHj.js} +3 -3
- package/dist/{ServingSequence-DABGnLbT.js → ServingSequence-Cdf_Zmat.js} +3 -3
- package/dist/Setting-Vr3Thttm.js +259 -0
- package/dist/{Subcategory-BiqlAvMs.js → Subcategory-DoXmjcg1.js} +4 -4
- package/dist/{Takeaway-BBdkzEiP.js → Takeaway-BRTQu8VT.js} +1 -1
- package/dist/{Takeaway-nIjrDu5C.js → Takeaway-t3il54Bd.js} +4 -4
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-D_M2PFO-.js → Takeaway.vue_vue_type_script_setup_true_lang-DtHABSgp.js} +6 -6
- package/dist/Thumbnail.vue_vue_type_script_setup_true_lang-D_ACNj_Z.js +431 -0
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DAoGiRV-.js +5990 -0
- package/dist/{Unit-Di5sUbhV.js → Unit-C_QY3IX_.js} +2 -2
- package/dist/{Variant-CiZCtZk9.js → Variant-CR4IEm-Q.js} +3 -3
- package/dist/_id_-DOU7ieGB.js +202 -0
- package/dist/{app-B63V5b4I.js → app--fRC3N4C.js} +1 -1
- package/dist/{app-DuD_IPou.js → app-CrXLAKdw.js} +95 -97
- package/dist/app.js +6 -7
- package/dist/apps/mf-menu/src/app.d.ts +62 -3
- package/dist/apps/mf-menu/src/components/feature/PriceTier/LinkPriceTierSection.vue.d.ts +24 -0
- package/dist/apps/mf-menu/src/components/feature/PriceTier/PriceTierRuleEditor.vue.d.ts +30 -0
- package/dist/apps/mf-menu/src/components/feature/RestaurantAttributesSelector.vue.d.ts +33 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/catalog.d.ts +2 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/store/menuV2.d.ts +80 -1
- package/dist/apps/mf-menu/src/composable/linkProducts.d.ts +1276 -0
- package/dist/apps/mf-menu/src/helper/import-export.d.ts +77 -0
- package/dist/apps/mf-menu/src/helper/menu.d.ts +77 -0
- package/dist/apps/mf-menu/src/helper/setting/catalogSetting.d.ts +11 -2
- package/dist/apps/mf-menu/src/manager/menu/item.d.ts +77 -0
- package/dist/apps/mf-menu/src/router/shared.d.ts +0 -1
- package/dist/apps/mf-menu/src/stores/manager/catalog.d.ts +2 -0
- package/dist/apps/mf-menu/src/stores/menu.d.ts +79 -0
- package/dist/apps/mf-menu/src/types/linkProducts.d.ts +21 -0
- package/dist/apps/mf-menu/src/views/PrintRoute/PrintDepartmentDialog.vue.d.ts +5 -3
- package/dist/apps/mf-menu/src/views/Publish/UpdateCatalogDialog.vue.d.ts +82 -0
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/linked-status-BTF_dm9R.js +24 -0
- package/dist/assets/override-menu-BPu7TVCy.js +24 -0
- package/dist/assets/validate-menu-BQpDfHbr.js +24 -0
- package/dist/{catalog-DfYSMjLc.js → catalog-BGiDWODL.js} +1 -1
- package/dist/catalogSetting-C34kIcYn.js +71 -0
- package/dist/{category-mmjX_QdF.js → category-CayMSpUc.js} +1 -1
- package/dist/{currency-3ugQtBPt.js → currency-BggoZpJv.js} +1 -1
- package/dist/{dayjs.min-CkV4mNm8.js → dayjs.min-BKDTLohL.js} +1 -1
- package/dist/{index-Cztb2LVZ.js → index-BPcRbiW0.js} +3 -3
- package/dist/{index-BboaHtmY.js → index-CLFhXi0y.js} +3 -3
- package/dist/index-D7yR1j9C.js +215 -0
- package/dist/{index-BZaKuDcN.js → index-f9kzXNPD.js} +28 -28
- package/dist/{item-CVnDeXhJ.js → item-C51o9ejv.js} +547 -545
- package/dist/{jszip.min-GxfcHBC5.js → jszip.min-m57vowh9.js} +353 -353
- package/dist/{menu-sGVv4bhQ.js → menu-DHfLxvzU.js} +4 -4
- package/dist/menu-DK7wG3S5.js +133287 -0
- package/dist/menuV2-B-0V65cx.js +707 -0
- package/dist/mf-menu.css +1 -1
- package/dist/{priceTier-CHTA0ZEb.js → priceTier-DD-24pkj.js} +1 -1
- package/dist/{scheduler-CaMxCHZ0.js → scheduler-NjDv_P4c.js} +16 -17
- package/dist/subcategory-DLdBwjHV.js +148 -0
- package/dist/{toExcel-WorodvP1.js → toExcel-coJ5igRV.js} +15 -15
- package/dist/{unit-DtKZZYL6.js → unit-C7XUV0EW.js} +5 -4
- package/package.json +5 -5
- package/dist/CustomAttributeChip.vue_vue_type_script_setup_true_lang-BiF8rW4M.js +0 -7949
- package/dist/FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js +0 -26
- package/dist/Group.vue_vue_type_script_setup_true_lang-DyqGsRAW.js +0 -698
- package/dist/GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BmRUg94d.js +0 -206
- package/dist/LinkProductSideSheet-CTT4oGUY.js +0 -112
- package/dist/Product.vue_vue_type_script_setup_true_lang-Cy4uok1E.js +0 -1560
- package/dist/Products-D0rrANT6.js +0 -270
- package/dist/Setting-3ISlMXOA.js +0 -258
- package/dist/Thumbnail.vue_vue_type_script_setup_true_lang-DzQ8_6Bi.js +0 -71
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-y0n5hTLk.js +0 -6149
- package/dist/_id_-DY8himeL.js +0 -200
- package/dist/apps/mf-menu/src/components/feature/LinkProduct/LinkProductSideSheet.vue.d.ts +0 -70
- package/dist/assets/linked-status-CkBKnMXs.js +0 -24
- package/dist/assets/override-menu-XZ7XfcfS.js +0 -24
- package/dist/assets/validate-menu-Bomogq01.js +0 -24
- package/dist/catalogSetting-_4Z0s3_Q.js +0 -65
- package/dist/index-Ce4v8o7D.js +0 -106
- package/dist/menu-IGORh0Ik.js +0 -108039
- package/dist/subcategory-CmVttqlG.js +0 -817
- /package/dist/{apps/mf-menu/src/components → packages/shared/src/components/info}/CustomAttributeChip.vue.d.ts +0 -0
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { G as u, H as i } from "./menu-DK7wG3S5.js";
|
|
2
|
+
var a = /* @__PURE__ */ ((e) => (e.AUTO = "auto", e.MANUAL = "manual", e))(a || {}), m = /* @__PURE__ */ ((e) => (e[e.Normal = 0] = "Normal", e[e.Rules = 1] = "Rules", e))(m || {});
|
|
3
|
+
class s {
|
|
4
|
+
static fromCatalog(r, n) {
|
|
5
|
+
const t = n ? u.F_ORDER_FROM.enum.ALL : u.F_ORDER_FROM.enum.NONE;
|
|
6
|
+
return {
|
|
7
|
+
...i(r),
|
|
8
|
+
taxSetting: this.transformTax(r.inclusiveTaxes),
|
|
9
|
+
orderFrom: r.defaultOrderFrom || t,
|
|
10
|
+
markupOptions: r.markupOptions || null,
|
|
11
|
+
usePriceTiers: r.usePriceTiers || null,
|
|
12
|
+
priceTierRules: r.priceTierRules || null
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
static fromMainCatalog(r) {
|
|
16
|
+
return {
|
|
17
|
+
_id: "",
|
|
18
|
+
name: "Main",
|
|
19
|
+
taxSetting: s.transformTax(r == null ? void 0 : r.inclusiveTaxes),
|
|
20
|
+
orderFrom: u.F_ORDER_FROM.enum.ALL,
|
|
21
|
+
markupOptions: null,
|
|
22
|
+
usePriceTiers: null,
|
|
23
|
+
priceTierRules: null
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
static toCatalog(r) {
|
|
27
|
+
return {
|
|
28
|
+
_id: r._id,
|
|
29
|
+
name: r.name,
|
|
30
|
+
inclusiveTaxes: r.taxSetting.mode === "auto" ? null : i(r.taxSetting.inclusive),
|
|
31
|
+
markupOptions: r.markupOptions,
|
|
32
|
+
defaultOrderFrom: r.orderFrom,
|
|
33
|
+
usePriceTiers: r.usePriceTiers,
|
|
34
|
+
priceTierRules: r.priceTierRules
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
static initCatalogSetting() {
|
|
38
|
+
return {
|
|
39
|
+
_id: "",
|
|
40
|
+
name: "",
|
|
41
|
+
orderFrom: u.F_ORDER_FROM.enum.ALL,
|
|
42
|
+
taxSetting: this.autoTax(),
|
|
43
|
+
markupOptions: null,
|
|
44
|
+
usePriceTiers: null,
|
|
45
|
+
priceTierRules: null
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
static transformTax(r) {
|
|
49
|
+
return r ? {
|
|
50
|
+
mode: "manual",
|
|
51
|
+
inclusive: i(r)
|
|
52
|
+
} : {
|
|
53
|
+
mode: "auto"
|
|
54
|
+
/* AUTO */
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
static autoTax() {
|
|
58
|
+
return {
|
|
59
|
+
mode: "auto"
|
|
60
|
+
/* AUTO */
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
static manualTax(r) {
|
|
64
|
+
return { mode: "manual", inclusive: i(r) };
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
export {
|
|
68
|
+
s as C,
|
|
69
|
+
m as L,
|
|
70
|
+
a
|
|
71
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as M, watch as _, ref as f, resolveComponent as g, createBlock as x, openBlock as C, unref as l, withCtx as V, createVNode as A } from "vue";
|
|
2
|
-
import { J as s, G as u, u as F } from "./menu-
|
|
2
|
+
import { J as s, G as u, u as F } from "./menu-DK7wG3S5.js";
|
|
3
3
|
import { useI18n as E } from "@feedmepos/mf-common";
|
|
4
4
|
import { useDialogChild as O } from "@feedmepos/ui-library";
|
|
5
5
|
const y = /* @__PURE__ */ M({
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { A as S, G as A, u as K, H as O, B as q, I as R } from "./menu-
|
|
1
|
+
import { A as S, G as A, u as K, H as O, B as q, I as R } from "./menu-DK7wG3S5.js";
|
|
2
2
|
import { defineComponent as T, ref as f, computed as B, watch as L, onMounted as z, onBeforeUnmount as H, resolveComponent as F, createBlock as N, openBlock as M, withModifiers as C, withCtx as g, renderSlot as U, createElementBlock as P, Fragment as W, createVNode as c, unref as i, createElementVNode as D, createCommentVNode as j, toDisplayString as G } from "vue";
|
|
3
3
|
import { useI18n as I } from "@feedmepos/mf-common";
|
|
4
4
|
import { components as Y } from "@feedmepos/ui-library";
|
|
5
5
|
import { _ as Z } from "./FormSection.vue_vue_type_script_setup_true_lang-CO4YGYLB.js";
|
|
6
6
|
import { u as J } from "./discardConfirm-BHni0LNu.js";
|
|
7
|
-
import { _ as Q } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-
|
|
7
|
+
import { _ as Q } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-gY18sRMg.js";
|
|
8
8
|
import { c as X } from "./check-C9mY6LiX.js";
|
|
9
|
-
import { f as ee } from "./currency-
|
|
9
|
+
import { f as ee } from "./currency-BggoZpJv.js";
|
|
10
10
|
import { c as ae } from "./string-DpfFixWH.js";
|
|
11
11
|
const te = /* @__PURE__ */ T({
|
|
12
12
|
__name: "CurrencyInput",
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent as R, computed as w, ref as E, watch as C, resolveComponent as g, createElementBlock as F, openBlock as V, Fragment as K, renderSlot as j, createVNode as s, unref as n, withCtx as m, createElementVNode as d, createBlock as M, createCommentVNode as U, normalizeClass as H, createSlots as J, toDisplayString as Q } from "vue";
|
|
2
|
-
import { O as W, D as X, I as Z, H as f, B, J as D, G as I } from "./menu-
|
|
2
|
+
import { O as W, D as X, I as Z, H as f, B, J as D, G as I } from "./menu-DK7wG3S5.js";
|
|
3
3
|
import { d as ee } from "./vuedraggable-CK8z7qA8.js";
|
|
4
4
|
import { useI18n as te } from "@feedmepos/mf-common";
|
|
5
5
|
import { useSnackbar as ae, components as ne } from "@feedmepos/ui-library";
|
|
6
|
-
import {
|
|
6
|
+
import { a as oe } from "./LinkProductSideSheet-Cp0HFoP2.js";
|
|
7
7
|
import { _ as le } from "./FormSection.vue_vue_type_script_setup_true_lang-CO4YGYLB.js";
|
|
8
8
|
import { u as ie } from "./discardConfirm-BHni0LNu.js";
|
|
9
|
-
import { _ as se } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-
|
|
9
|
+
import { _ as se } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-gY18sRMg.js";
|
|
10
10
|
import { c as re } from "./check-C9mY6LiX.js";
|
|
11
11
|
const ue = { class: "fm-typo-en-title-md-600" }, me = { class: "py-16 space-y-32" }, de = ["data-not-allow-sort"], ce = {
|
|
12
12
|
key: 1,
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
import { defineComponent as z, computed as P, ref as w, resolveComponent as d, createElementBlock as I, openBlock as R, Fragment as B, createElementVNode as g, createVNode as f, normalizeClass as A, withCtx as _, toDisplayString as C, unref as h, h as E, watch as D, onMounted as G, nextTick as K, readonly as M, getCurrentInstance as N, getCurrentScope as U, onScopeDispose as L } 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
|
+
const X = {
|
|
5
|
+
class: /* @__PURE__ */ A(["fm-typo-en-body-md-600 select-none text-ellipsis overflow-hidden whitespace-nowrap", "text-fm-color-neutral-gray-400"])
|
|
6
|
+
}, Y = {
|
|
7
|
+
class: "fm-typo-en-title-sm-600"
|
|
8
|
+
}, Z = {
|
|
9
|
+
class: "max-h-[60vh] flex-1 overflow-y-auto min-h-0"
|
|
10
|
+
}, ue = /* @__PURE__ */ z({
|
|
11
|
+
__name: "RestaurantAttributesSelector",
|
|
12
|
+
props: {
|
|
13
|
+
fullWidth: {
|
|
14
|
+
type: Boolean,
|
|
15
|
+
default: !1
|
|
16
|
+
},
|
|
17
|
+
currentRestaurantCustomAttributes: {}
|
|
18
|
+
},
|
|
19
|
+
emits: ["confirm"],
|
|
20
|
+
setup(e, {
|
|
21
|
+
emit: n
|
|
22
|
+
}) {
|
|
23
|
+
const o = e, {
|
|
24
|
+
t
|
|
25
|
+
} = q(), {
|
|
26
|
+
attributes: l
|
|
27
|
+
} = H({
|
|
28
|
+
valueSource: J().restaurants,
|
|
29
|
+
entity: "restaurant"
|
|
30
|
+
}), a = P(() => l.value), v = [{
|
|
31
|
+
header: () => t("portalshell.customAttributes.form.key"),
|
|
32
|
+
accessorKey: "key",
|
|
33
|
+
enableSorting: !1
|
|
34
|
+
}, {
|
|
35
|
+
header: () => t("portalshell.customAttributes.form.value"),
|
|
36
|
+
accessorKey: "values",
|
|
37
|
+
enableSorting: !1,
|
|
38
|
+
cell: (c) => {
|
|
39
|
+
const r = c.row.original, m = r.values;
|
|
40
|
+
return E(Q.FmSelect, {
|
|
41
|
+
modelValue: r.value,
|
|
42
|
+
placeholder: t("portalshell.customAttributes.form.valuePlaceholder"),
|
|
43
|
+
items: m.map((i) => ({
|
|
44
|
+
label: i,
|
|
45
|
+
value: i
|
|
46
|
+
})),
|
|
47
|
+
clearable: !0,
|
|
48
|
+
"onUpdate:modelValue": (i) => r.value = i
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
}], u = n, p = () => {
|
|
52
|
+
const c = l.value.filter((m) => m.value != null), r = c.length ? c.reduce((m, i) => (m[i.key] = i.value, m), {}) : {};
|
|
53
|
+
u("confirm", r), y();
|
|
54
|
+
}, s = w(!1);
|
|
55
|
+
function b() {
|
|
56
|
+
s.value = !0;
|
|
57
|
+
const c = o.currentRestaurantCustomAttributes ?? {};
|
|
58
|
+
a.value.forEach((r) => {
|
|
59
|
+
r.value = c[r.key] ?? void 0;
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
function y() {
|
|
63
|
+
s.value = !1;
|
|
64
|
+
}
|
|
65
|
+
return (c, r) => {
|
|
66
|
+
const m = d("FmIcon"), i = d("FmChip"), O = d("FmTable"), V = d("FmSpacer"), F = d("fm-button"), j = d("FmDialog");
|
|
67
|
+
return R(), I(B, null, [g("div", {
|
|
68
|
+
class: "cursor-pointer",
|
|
69
|
+
onClick: b
|
|
70
|
+
}, [f(i, {
|
|
71
|
+
class: A([c.fullWidth ? "w-full justify-between" : ""])
|
|
72
|
+
}, {
|
|
73
|
+
default: _(() => [g("div", X, C(h(t)("menu.catalog.form.restaurant_attributes_title")), 1), f(m, {
|
|
74
|
+
color: "neutral-gray-400",
|
|
75
|
+
name: "launch",
|
|
76
|
+
size: "sm"
|
|
77
|
+
})]),
|
|
78
|
+
_: 1
|
|
79
|
+
}, 8, ["class"])]), f(j, {
|
|
80
|
+
modelValue: s.value,
|
|
81
|
+
"onUpdate:modelValue": r[0] || (r[0] = (W) => s.value = W),
|
|
82
|
+
overlay: !0,
|
|
83
|
+
"min-width": "min(calc(100% - 48px), 560px)"
|
|
84
|
+
}, {
|
|
85
|
+
"dialog-header": _(() => [g("div", Y, C(h(t)("menu.catalog.form.restaurant_attributes_title")), 1)]),
|
|
86
|
+
"dialog-footer": _(() => [f(V), f(F, {
|
|
87
|
+
label: h(t)("menu.common.actions.confirm"),
|
|
88
|
+
size: "lg",
|
|
89
|
+
type: "submit",
|
|
90
|
+
variant: "primary",
|
|
91
|
+
onClick: p
|
|
92
|
+
}, null, 8, ["label"]), f(F, {
|
|
93
|
+
label: h(t)("menu.common.actions.cancel"),
|
|
94
|
+
size: "lg",
|
|
95
|
+
variant: "tertiary",
|
|
96
|
+
onClick: y
|
|
97
|
+
}, null, 8, ["label"])]),
|
|
98
|
+
default: _(() => [g("div", Z, [f(O, {
|
|
99
|
+
"column-defs": v,
|
|
100
|
+
"row-data": a.value,
|
|
101
|
+
"shrink-at": !1,
|
|
102
|
+
"page-size": a.value.length,
|
|
103
|
+
"hide-footer": ""
|
|
104
|
+
}, null, 8, ["row-data", "page-size"])])]),
|
|
105
|
+
_: 1
|
|
106
|
+
}, 8, ["modelValue"])], 64);
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
});
|
|
110
|
+
function ie(e) {
|
|
111
|
+
return U() ? (L(e), !0) : !1;
|
|
112
|
+
}
|
|
113
|
+
function S(e) {
|
|
114
|
+
return typeof e == "function" ? e() : h(e);
|
|
115
|
+
}
|
|
116
|
+
const ce = typeof window < "u" && typeof document < "u";
|
|
117
|
+
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
118
|
+
const $ = Object.prototype.toString, me = (e) => $.call(e) === "[object Object]", x = () => {
|
|
119
|
+
};
|
|
120
|
+
function k(e, n) {
|
|
121
|
+
function o(...t) {
|
|
122
|
+
return new Promise((l, a) => {
|
|
123
|
+
Promise.resolve(e(() => n.apply(this, t), { fn: n, thisArg: this, args: t })).then(l).catch(a);
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
return o;
|
|
127
|
+
}
|
|
128
|
+
const T = (e) => e();
|
|
129
|
+
function ee(e, n = {}) {
|
|
130
|
+
let o, t, l = x;
|
|
131
|
+
const a = (u) => {
|
|
132
|
+
clearTimeout(u), l(), l = x;
|
|
133
|
+
};
|
|
134
|
+
return (u) => {
|
|
135
|
+
const p = S(e), s = S(n.maxWait);
|
|
136
|
+
return o && a(o), p <= 0 || s !== void 0 && s <= 0 ? (t && (a(t), t = null), Promise.resolve(u())) : new Promise((b, y) => {
|
|
137
|
+
l = n.rejectOnCancel ? y : b, s && !t && (t = setTimeout(() => {
|
|
138
|
+
o && a(o), t = null, b(u());
|
|
139
|
+
}, s)), o = setTimeout(() => {
|
|
140
|
+
t && a(t), t = null, b(u());
|
|
141
|
+
}, p);
|
|
142
|
+
});
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
function te(e = T) {
|
|
146
|
+
const n = w(!0);
|
|
147
|
+
function o() {
|
|
148
|
+
n.value = !1;
|
|
149
|
+
}
|
|
150
|
+
function t() {
|
|
151
|
+
n.value = !0;
|
|
152
|
+
}
|
|
153
|
+
const l = (...a) => {
|
|
154
|
+
n.value && e(...a);
|
|
155
|
+
};
|
|
156
|
+
return { isActive: M(n), pause: o, resume: t, eventFilter: l };
|
|
157
|
+
}
|
|
158
|
+
function ne(e) {
|
|
159
|
+
return N();
|
|
160
|
+
}
|
|
161
|
+
function oe(e, n = 200, o = {}) {
|
|
162
|
+
return k(
|
|
163
|
+
ee(n, o),
|
|
164
|
+
e
|
|
165
|
+
);
|
|
166
|
+
}
|
|
167
|
+
function fe(e, n = 200, o = {}) {
|
|
168
|
+
const t = w(e.value), l = oe(() => {
|
|
169
|
+
t.value = e.value;
|
|
170
|
+
}, n, o);
|
|
171
|
+
return D(e, () => l()), t;
|
|
172
|
+
}
|
|
173
|
+
function le(e, n, o = {}) {
|
|
174
|
+
const {
|
|
175
|
+
eventFilter: t = T,
|
|
176
|
+
...l
|
|
177
|
+
} = o;
|
|
178
|
+
return D(
|
|
179
|
+
e,
|
|
180
|
+
k(
|
|
181
|
+
t,
|
|
182
|
+
n
|
|
183
|
+
),
|
|
184
|
+
l
|
|
185
|
+
);
|
|
186
|
+
}
|
|
187
|
+
function pe(e, n, o = {}) {
|
|
188
|
+
const {
|
|
189
|
+
eventFilter: t,
|
|
190
|
+
...l
|
|
191
|
+
} = o, { eventFilter: a, pause: v, resume: u, isActive: p } = te(t);
|
|
192
|
+
return { stop: le(
|
|
193
|
+
e,
|
|
194
|
+
n,
|
|
195
|
+
{
|
|
196
|
+
...l,
|
|
197
|
+
eventFilter: a
|
|
198
|
+
}
|
|
199
|
+
), pause: v, resume: u, isActive: p };
|
|
200
|
+
}
|
|
201
|
+
function de(e, n = !0, o) {
|
|
202
|
+
ne() ? G(e, o) : n ? e() : K(e);
|
|
203
|
+
}
|
|
204
|
+
export {
|
|
205
|
+
ue as _,
|
|
206
|
+
de as a,
|
|
207
|
+
ie as b,
|
|
208
|
+
me as c,
|
|
209
|
+
ce as i,
|
|
210
|
+
x as n,
|
|
211
|
+
fe as r,
|
|
212
|
+
S as t,
|
|
213
|
+
oe as u,
|
|
214
|
+
pe as w
|
|
215
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as y, resolveComponent as p, createBlock as f, openBlock as i, Teleport as E, createVNode as _, Transition as
|
|
2
|
-
import { _ as k } from "./LinkProductSideSheet-
|
|
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 "./LinkProductSideSheet-Cp0HFoP2.js";
|
|
3
3
|
import { useI18n as U } from "@feedmepos/mf-common";
|
|
4
4
|
const N = {
|
|
5
5
|
class: /* @__PURE__ */ d([
|
|
@@ -26,30 +26,30 @@ const N = {
|
|
|
26
26
|
}, c = () => {
|
|
27
27
|
n("onCancel");
|
|
28
28
|
};
|
|
29
|
-
return (r,
|
|
30
|
-
const
|
|
29
|
+
return (r, o) => {
|
|
30
|
+
const a = p("fm-button"), s = p("fm-form");
|
|
31
31
|
return i(), f(E, { to: "body" }, [
|
|
32
|
-
_(
|
|
32
|
+
_(g, { name: "fade" }, {
|
|
33
33
|
default: h(() => [
|
|
34
|
-
r.show ? (i(), f(
|
|
34
|
+
r.show ? (i(), f(s, {
|
|
35
35
|
key: 0,
|
|
36
36
|
"blame-form-child-on-validation-failed": "",
|
|
37
37
|
class: d(["fixed inset-0", "flex flex-col", "w-screen h-dvh", "bg-fm-color-neutral-white"]),
|
|
38
38
|
style: F({ zIndex: r.zIndex }),
|
|
39
39
|
tabindex: "-1",
|
|
40
40
|
onValidationSuccess: l,
|
|
41
|
-
onKeyup:
|
|
41
|
+
onKeyup: w(c, ["esc"])
|
|
42
42
|
}, {
|
|
43
43
|
default: h(() => [
|
|
44
44
|
m("div", N, [
|
|
45
|
-
m("p", $,
|
|
45
|
+
m("p", $, R(r.title), 1),
|
|
46
46
|
x(r.$slots, "append-title", {}, void 0, !0),
|
|
47
|
-
(i(!0), T(
|
|
47
|
+
(i(!0), T(A, null, v(r.secondaryActions, (u) => (i(), f(a, {
|
|
48
48
|
label: u.label,
|
|
49
49
|
variant: "tertiary",
|
|
50
50
|
onClick: u.click
|
|
51
51
|
}, null, 8, ["label", "onClick"]))), 256)),
|
|
52
|
-
_(
|
|
52
|
+
_(a, {
|
|
53
53
|
label: r.primaryAction.label,
|
|
54
54
|
type: "submit",
|
|
55
55
|
variant: "primary"
|
|
@@ -74,20 +74,20 @@ const N = {
|
|
|
74
74
|
},
|
|
75
75
|
setup(t) {
|
|
76
76
|
const e = t, n = C(() => {
|
|
77
|
-
var r;
|
|
78
|
-
return ((r = e.menuStore.currentCatalog) == null ? void 0 : r.usePriceTiers) ?? [];
|
|
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
79
|
}), l = C(() => {
|
|
80
80
|
var r;
|
|
81
81
|
return e.menuStore.isV4 && e.menuStore.currentCatalog && !e.menuStore.currentScheduler && ((r = n.value) == null ? void 0 : r.length) > 0;
|
|
82
82
|
}), { t: c } = U();
|
|
83
|
-
return (r,
|
|
84
|
-
var
|
|
85
|
-
const
|
|
86
|
-
return l.value ? (i(), f(
|
|
83
|
+
return (r, o) => {
|
|
84
|
+
var s;
|
|
85
|
+
const a = p("FmSnackbar");
|
|
86
|
+
return l.value ? (i(), f(a, {
|
|
87
87
|
key: 0,
|
|
88
88
|
"z-index": 0,
|
|
89
89
|
class: "!max-w-full",
|
|
90
|
-
title: I(c)("menu.price_tier.price_group_description", { group: (
|
|
90
|
+
title: I(c)("menu.price_tier.price_group_description", { group: (s = n.value) == null ? void 0 : s.join(", ") })
|
|
91
91
|
}, null, 8, ["title"])) : L("", !0);
|
|
92
92
|
};
|
|
93
93
|
}
|
|
@@ -116,8 +116,8 @@ function K(t) {
|
|
|
116
116
|
return e;
|
|
117
117
|
}
|
|
118
118
|
function Z(t, e) {
|
|
119
|
-
const [n, l, c] = O(t, e), r = G(e == null ? void 0 : e.locale),
|
|
120
|
-
return n + l.map((
|
|
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
121
|
}
|
|
122
122
|
function G(t) {
|
|
123
123
|
return t === !1 ? (e) => e.toLowerCase() : (e) => e.toLocaleLowerCase(t);
|
|
@@ -130,23 +130,23 @@ function M(t, e) {
|
|
|
130
130
|
}
|
|
131
131
|
function O(t, e = {}) {
|
|
132
132
|
const n = e.split ?? (e.separateNumbers ? K : P), l = e.prefixCharacters ?? b, c = e.suffixCharacters ?? b;
|
|
133
|
-
let r = 0,
|
|
133
|
+
let r = 0, o = t.length;
|
|
134
134
|
for (; r < t.length; ) {
|
|
135
|
-
const
|
|
136
|
-
if (!l.includes(
|
|
135
|
+
const a = t.charAt(r);
|
|
136
|
+
if (!l.includes(a))
|
|
137
137
|
break;
|
|
138
138
|
r++;
|
|
139
139
|
}
|
|
140
|
-
for (;
|
|
141
|
-
const
|
|
142
|
-
if (!c.includes(
|
|
140
|
+
for (; o > r; ) {
|
|
141
|
+
const a = o - 1, s = t.charAt(a);
|
|
142
|
+
if (!c.includes(s))
|
|
143
143
|
break;
|
|
144
|
-
|
|
144
|
+
o = a;
|
|
145
145
|
}
|
|
146
146
|
return [
|
|
147
147
|
t.slice(0, r),
|
|
148
|
-
n(t.slice(r,
|
|
149
|
-
t.slice(
|
|
148
|
+
n(t.slice(r, o)),
|
|
149
|
+
t.slice(o)
|
|
150
150
|
];
|
|
151
151
|
}
|
|
152
152
|
export {
|