@feedmepos/mf-menu 0.31.40-beta.1 → 0.31.40-prod
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-C_ALgrKC.js → App-aWEH-ZEk.js} +9 -9
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-AXVCCDiV.js → ApplyProduct.vue_vue_type_script_setup_true_lang-jJyinQZl.js} +3 -3
- package/dist/{Catalog-DBvWM-YZ.js → Catalog-BoFfFdn8.js} +9 -8
- package/dist/{Category-BiwNTOVh.js → Category-CWYbb3Jn.js} +4 -4
- package/dist/{Category-CAaAB1-8.js → Category-DZ45uikR.js} +6 -6
- package/dist/{CookingGuide-BznTNUiJ.js → CookingGuide-BU0PRWIQ.js} +4 -4
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-B1TdO9EA.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-Z5xsKDIE.js} +1 -1
- package/dist/FormSection.vue_vue_type_script_setup_true_lang-CO4YGYLB.js +50 -0
- package/dist/{Group-DXqrDZdA.js → Group-BMQDeqiS.js} +1 -1
- package/dist/{Group-4T2hwciT.js → Group-C0T_uknK.js} +3 -3
- package/dist/{Group.vue_vue_type_script_setup_true_lang-fU3OB1n-.js → Group.vue_vue_type_script_setup_true_lang-DyfmY6F1.js} +8 -8
- package/dist/GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-D6qro5w_.js +367 -0
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-BUF8cX_0.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-Dl-Wvt3D.js} +14 -13
- package/dist/{Ingredient-Mu_eJx7y.js → Ingredient-3lwDUQx_.js} +3 -3
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-CiztSTwX.js → InventoryBinding.vue_vue_type_script_setup_true_lang-VLrrTkSC.js} +1052 -1052
- package/dist/LinkProductSideSheet-LDZjKX95.js +297 -0
- package/dist/{app-CiBqmBzO.js → LinkProductSideSheet.vue_vue_type_style_index_0_scoped_97fa9d58_lang-DvG3mOom.js} +2084 -2120
- package/dist/MenuSetting-AhutsCVy.js +185 -0
- package/dist/{PrintRoute-DMmxn1tn.js → PrintRoute-DfJ-vUAb.js} +4 -4
- package/dist/{Product-DFEFUdsO.js → Product-F4PoLm9v.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-CE97BGrQ.js → Product.vue_vue_type_script_setup_true_lang-DT5gffpA.js} +465 -468
- package/dist/{ProductInternalTools-RWFay1va.js → ProductInternalTools-DSGU-OqU.js} +6 -6
- package/dist/{Products-BjOSBQEO.js → Products-COzW2Z4g.js} +85 -88
- package/dist/{Publish-DGbl1JxA.js → Publish-CDXVWCk2.js} +3 -3
- package/dist/{Recipe-Bm0_j4M8.js → Recipe-BZx4wrcP.js} +4 -4
- package/dist/{Scheduler-CbtZrIxu.js → Scheduler-wHCWSeU2.js} +3 -3
- package/dist/{ServingSequence-C1BQE6G1.js → ServingSequence-BbYEhDYh.js} +3 -3
- package/dist/{Setting-OZXb-NaS.js → Setting-C9Tlw1Iy.js} +45 -44
- package/dist/{Subcategory-C4D_1CLD.js → Subcategory-C8AwfrKb.js} +4 -4
- package/dist/{Takeaway-tK8uFOZR.js → Takeaway-DaEUn-yM.js} +4 -4
- package/dist/{Takeaway-0tlgsUKh.js → Takeaway-t1053wg2.js} +1 -1
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-D3Sg5zlP.js → Takeaway.vue_vue_type_script_setup_true_lang-7XycP5fU.js} +5 -5
- package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-4aAus4BD.js → Thumbnail.vue_vue_type_script_setup_true_lang-B7oLH9cP.js} +95 -97
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-Ci6iqOry.js +5998 -0
- package/dist/{Unit-2VYRqrSm.js → Unit-CnqptGCz.js} +2 -2
- package/dist/{Variant-BSfm_eXa.js → Variant-DiOYOwJs.js} +3 -3
- package/dist/{_id_-HtNMxBb_.js → _id_-BSfU16VO.js} +75 -78
- package/dist/{app-5ADOT4BP.js → app-Cou6qPF2.js} +1 -1
- package/dist/{app-DzcR4qhA.js → app-Ddb81PNo.js} +278 -278
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/api/menu.d.ts +1 -2
- package/dist/apps/mf-menu/src/app.d.ts +0 -144
- package/dist/apps/mf-menu/src/components/feature/PriceTier/PriceTierRuleEditor.vue.d.ts +0 -36
- package/dist/apps/mf-menu/src/components/feature/RestaurantAttributesSelector.vue.d.ts +3 -9
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/useItemFormManagement.d.ts +9 -2
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/store/menuV2.d.ts +4 -294
- package/dist/apps/mf-menu/src/composable/linkProducts.d.ts +0 -40
- package/dist/apps/mf-menu/src/helper/import-export.d.ts +0 -285
- package/dist/apps/mf-menu/src/helper/menu.d.ts +0 -285
- package/dist/apps/mf-menu/src/manager/menu/item.d.ts +0 -285
- package/dist/apps/mf-menu/src/stores/menu.d.ts +3 -293
- package/dist/apps/mf-menu/src/views/Publish/UpdateCatalogDialog.vue.d.ts +0 -166
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/linked-status-B_crHhZH.js +24 -0
- package/dist/assets/override-menu-BmlCEpHH.js +24 -0
- package/dist/assets/validate-menu-CF-psoB-.js +24 -0
- package/dist/{catalog-BK6nDTbp.js → catalog-DSuJhsUb.js} +1 -1
- package/dist/{catalogSetting-C1gHhApy.js → catalogSetting-C3gEw9ov.js} +1 -1
- package/dist/{category-DZ89uFq9.js → category-CwWq3KCE.js} +1 -1
- package/dist/{currency-C5f-j8Sc.js → currency-g45Sh-t6.js} +1 -1
- package/dist/{dayjs.min-B_VRGKBF.js → dayjs.min-g3eN5z-V.js} +1 -1
- package/dist/index-0Q5T9VZV.js +214 -0
- package/dist/{index-BzJP5jHc.js → index-0yRUi7LL.js} +1 -1
- package/dist/{index-CdR72bNY.js → index-BLQCYEc6.js} +8 -7
- package/dist/{index-Ceq73SJB.js → index-QsLFbxyG.js} +4 -4
- package/dist/{item-C9BjmYgO.js → item-BvvQ9urP.js} +386 -386
- package/dist/{jszip.min-ILTkecIx.js → jszip.min-DzdUiaR4.js} +353 -353
- package/dist/{menu-Dpao2R5b.js → menu-DFNvhoNQ.js} +31149 -31298
- package/dist/{menu-CElaSp4d.js → menu-QrVg2Ph7.js} +7 -7
- package/dist/{menuV2-DFElaySs.js → menuV2-Ezf_jW40.js} +146 -151
- package/dist/mf-menu.css +1 -1
- package/dist/{priceTier-DlM669Xr.js → priceTier-zENsn3P_.js} +1 -1
- package/dist/{scheduler-DNWyK_KD.js → scheduler-BuwGSv6A.js} +8 -8
- package/dist/{subcategory-DOaSgpKs.js → subcategory-O3L_zCJA.js} +2 -2
- package/dist/{toExcel-B_8PLkpw.js → toExcel-CpRy_4nG.js} +2 -2
- package/dist/{unit-d5XkUy31.js → unit-Ct_7Hfa2.js} +41 -42
- package/package.json +3 -3
- package/dist/GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-ONjmNOT_.js +0 -399
- package/dist/LinkProductSideSheet-BHe1eBXr.js +0 -362
- package/dist/MenuSetting-Besoy5-9.js +0 -616
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-Cv5fzqGc.js +0 -5994
- package/dist/apps/mf-menu/src/composable/attributes.d.ts +0 -23
- package/dist/apps/mf-menu/src/utils/array.d.ts +0 -1
- package/dist/apps/mf-menu/src/utils/customAttributes.d.ts +0 -12
- package/dist/apps/mf-menu/src/views/MenuSetting/LinkProductRuleGroups.vue.d.ts +0 -2
- package/dist/apps/mf-menu/src/views/MenuSetting/RuleGroupSideSheet.vue.d.ts +0 -176
- package/dist/assets/linked-status-BYWuxHfM.js +0 -13
- package/dist/assets/override-menu-DunERZw2.js +0 -13
- package/dist/assets/validate-menu-CdfZYwVn.js +0 -13
- package/dist/customAttributes-CwZ9WUq1.js +0 -144
- package/dist/index-DJFSRRfg.js +0 -246
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
import { defineComponent as p, createElementBlock as r, openBlock as a, normalizeClass as f, renderSlot as u, createCommentVNode as m, createVNode as b, createElementVNode as i, toDisplayString as c, withCtx as h, computed as _ } from "vue";
|
|
2
|
-
import { useCoreStore as k, isEmptyRule as v, EMPTY_RULE as g, isEmptyMongoQuery as $ } from "@feedmepos/mf-common";
|
|
3
|
-
import { N as A, x as C } from "./app-CiBqmBzO.js";
|
|
4
|
-
const E = /* @__PURE__ */ p({
|
|
5
|
-
__name: "FormColumn",
|
|
6
|
-
props: {
|
|
7
|
-
shrinkable: { type: Boolean }
|
|
8
|
-
},
|
|
9
|
-
setup(t) {
|
|
10
|
-
return (e, s) => (a(), r("div", {
|
|
11
|
-
class: f(["flex-1 flex flex-col space-y-24", { "min-h-0": e.shrinkable }])
|
|
12
|
-
}, [
|
|
13
|
-
u(e.$slots, "default")
|
|
14
|
-
], 2));
|
|
15
|
-
}
|
|
16
|
-
}), S = {
|
|
17
|
-
key: 0,
|
|
18
|
-
class: "flex flex-row justify-between items-center"
|
|
19
|
-
}, T = { class: "space-y-4" }, w = { class: "fm-typo-en-title-sm-600" }, N = {
|
|
20
|
-
key: 0,
|
|
21
|
-
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
22
|
-
}, x = /* @__PURE__ */ p({
|
|
23
|
-
__name: "FormSection",
|
|
24
|
-
props: {
|
|
25
|
-
title: {},
|
|
26
|
-
subTitle: {},
|
|
27
|
-
shrinkable: { type: Boolean }
|
|
28
|
-
},
|
|
29
|
-
setup(t) {
|
|
30
|
-
return (e, s) => (a(), r("div", {
|
|
31
|
-
class: f(["flex flex-col space-y-16", { "min-h-0": e.shrinkable }])
|
|
32
|
-
}, [
|
|
33
|
-
e.title ? (a(), r("div", S, [
|
|
34
|
-
i("div", T, [
|
|
35
|
-
i("p", w, c(e.title), 1),
|
|
36
|
-
e.subTitle ? (a(), r("p", N, c(e.subTitle), 1)) : m("", !0)
|
|
37
|
-
]),
|
|
38
|
-
u(e.$slots, "append-title")
|
|
39
|
-
])) : m("", !0),
|
|
40
|
-
b(E, { shrinkable: e.shrinkable }, {
|
|
41
|
-
default: h(() => [
|
|
42
|
-
u(e.$slots, "default")
|
|
43
|
-
]),
|
|
44
|
-
_: 3
|
|
45
|
-
}, 8, ["shrinkable"])
|
|
46
|
-
], 2));
|
|
47
|
-
}
|
|
48
|
-
}), R = { class: "space-y-8" }, B = { class: "flex items-center justify-between" }, F = { class: "space-y-8" }, I = { class: "fm-typo-en-body-lg-600" }, M = {
|
|
49
|
-
key: 0,
|
|
50
|
-
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
51
|
-
}, D = /* @__PURE__ */ p({
|
|
52
|
-
__name: "FormItem",
|
|
53
|
-
props: {
|
|
54
|
-
label: {},
|
|
55
|
-
description: {}
|
|
56
|
-
},
|
|
57
|
-
setup(t) {
|
|
58
|
-
return (e, s) => (a(), r("div", R, [
|
|
59
|
-
i("div", B, [
|
|
60
|
-
i("div", F, [
|
|
61
|
-
i("p", I, c(e.label), 1),
|
|
62
|
-
e.description ? (a(), r("p", M, c(e.description), 1)) : m("", !0)
|
|
63
|
-
]),
|
|
64
|
-
u(e.$slots, "append")
|
|
65
|
-
]),
|
|
66
|
-
u(e.$slots, "default")
|
|
67
|
-
]));
|
|
68
|
-
}
|
|
69
|
-
});
|
|
70
|
-
function l(t) {
|
|
71
|
-
return Array.from(new Set(t));
|
|
72
|
-
}
|
|
73
|
-
function z() {
|
|
74
|
-
const t = k();
|
|
75
|
-
return {
|
|
76
|
-
restaurantAttributes: _(() => [
|
|
77
|
-
{
|
|
78
|
-
type: "string",
|
|
79
|
-
key: "name",
|
|
80
|
-
entity: "restaurant",
|
|
81
|
-
values: l(
|
|
82
|
-
t.restaurants.value.filter((s) => {
|
|
83
|
-
var n;
|
|
84
|
-
return !!((n = s.profile) != null && n.name);
|
|
85
|
-
}).map((s) => s.profile.name)
|
|
86
|
-
)
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
type: "string",
|
|
90
|
-
key: "code",
|
|
91
|
-
entity: "restaurant",
|
|
92
|
-
values: l(
|
|
93
|
-
t.restaurants.value.filter((s) => {
|
|
94
|
-
var n;
|
|
95
|
-
return !!((n = s.profile) != null && n.code);
|
|
96
|
-
}).map((s) => s.profile.code)
|
|
97
|
-
)
|
|
98
|
-
}
|
|
99
|
-
])
|
|
100
|
-
};
|
|
101
|
-
}
|
|
102
|
-
function L(t = {}) {
|
|
103
|
-
return {
|
|
104
|
-
itemAttributes: _(() => {
|
|
105
|
-
var d, y;
|
|
106
|
-
const s = ((d = t.menuItems) == null ? void 0 : d.value) || [], n = ((y = t.categories) == null ? void 0 : y.value) || [];
|
|
107
|
-
return [
|
|
108
|
-
{
|
|
109
|
-
type: "string",
|
|
110
|
-
key: "name",
|
|
111
|
-
entity: "item",
|
|
112
|
-
values: l(s.filter((o) => !!o.name).map((o) => o.name))
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
type: "string",
|
|
116
|
-
key: "code",
|
|
117
|
-
entity: "item",
|
|
118
|
-
values: l(s.filter((o) => !!o.code).map((o) => o.code))
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
type: "string",
|
|
122
|
-
key: "category",
|
|
123
|
-
entity: "item",
|
|
124
|
-
values: l(n.filter((o) => !!o.name).map((o) => o.name))
|
|
125
|
-
}
|
|
126
|
-
];
|
|
127
|
-
})
|
|
128
|
-
};
|
|
129
|
-
}
|
|
130
|
-
function P(t) {
|
|
131
|
-
return $(t) ? g : C.build(t);
|
|
132
|
-
}
|
|
133
|
-
function U(t) {
|
|
134
|
-
return v(t) ? null : A.build(t);
|
|
135
|
-
}
|
|
136
|
-
export {
|
|
137
|
-
x as _,
|
|
138
|
-
D as a,
|
|
139
|
-
E as b,
|
|
140
|
-
L as c,
|
|
141
|
-
U as f,
|
|
142
|
-
P as m,
|
|
143
|
-
z as u
|
|
144
|
-
};
|
package/dist/index-DJFSRRfg.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 { u as X, _ as k } from "./customAttributes-CwZ9WUq1.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
|
-
"onUpdate:modelValue": (l) => s.value = l
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
}], m = n;
|
|
55
|
-
function b(f) {
|
|
56
|
-
return f.reduce((s, u) => (u.value != null && (s[u.key] = u.value), s), {});
|
|
57
|
-
}
|
|
58
|
-
const h = () => {
|
|
59
|
-
const f = r.value.filter((l) => l.value != null), s = a.value.filter((l) => l.value != null), u = {
|
|
60
|
-
restaurantCustomAttributes: b(f),
|
|
61
|
-
restaurantAttributes: b(s)
|
|
62
|
-
};
|
|
63
|
-
m("confirm", u), C();
|
|
64
|
-
}, p = A(!1);
|
|
65
|
-
function w() {
|
|
66
|
-
var u, l;
|
|
67
|
-
p.value = !0;
|
|
68
|
-
const f = ((u = o.currentRestaurantAttrParams) == null ? void 0 : u.restaurantCustomAttributes) ?? {};
|
|
69
|
-
r.value.forEach((d) => {
|
|
70
|
-
d.value = f[d.key] ?? void 0;
|
|
71
|
-
});
|
|
72
|
-
const s = ((l = o.currentRestaurantAttrParams) == null ? void 0 : l.restaurantAttributes) ?? {};
|
|
73
|
-
a.value.forEach((d) => {
|
|
74
|
-
d.value = s[d.key] ?? void 0;
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
function C() {
|
|
78
|
-
p.value = !1;
|
|
79
|
-
}
|
|
80
|
-
return (f, s) => {
|
|
81
|
-
const u = v("FmIcon"), l = v("FmChip"), d = v("FmTable"), V = v("FmSpacer"), F = v("fm-button"), j = v("FmDialog");
|
|
82
|
-
return I(), E(B, null, [g("div", {
|
|
83
|
-
class: "cursor-pointer",
|
|
84
|
-
onClick: w
|
|
85
|
-
}, [c(l, {
|
|
86
|
-
class: T([f.fullWidth ? "w-full justify-between" : ""])
|
|
87
|
-
}, {
|
|
88
|
-
default: _(() => [g("div", Y, S(i(t)("menu.catalog.form.restaurant_attributes_title")), 1), c(u, {
|
|
89
|
-
color: "neutral-gray-400",
|
|
90
|
-
name: "launch",
|
|
91
|
-
size: "sm"
|
|
92
|
-
})]),
|
|
93
|
-
_: 1
|
|
94
|
-
}, 8, ["class"])]), c(j, {
|
|
95
|
-
modelValue: p.value,
|
|
96
|
-
"onUpdate:modelValue": s[0] || (s[0] = (R) => p.value = R),
|
|
97
|
-
overlay: !0,
|
|
98
|
-
"min-width": "min(calc(100% - 48px), 560px)"
|
|
99
|
-
}, {
|
|
100
|
-
"dialog-header": _(() => [g("div", Z, S(i(t)("menu.catalog.form.restaurant_attributes_title")), 1)]),
|
|
101
|
-
"dialog-footer": _(() => [c(V), c(F, {
|
|
102
|
-
label: i(t)("menu.common.actions.confirm"),
|
|
103
|
-
size: "lg",
|
|
104
|
-
type: "submit",
|
|
105
|
-
variant: "primary",
|
|
106
|
-
onClick: h
|
|
107
|
-
}, null, 8, ["label"]), c(F, {
|
|
108
|
-
label: i(t)("menu.common.actions.cancel"),
|
|
109
|
-
size: "lg",
|
|
110
|
-
variant: "tertiary",
|
|
111
|
-
onClick: C
|
|
112
|
-
}, null, 8, ["label"])]),
|
|
113
|
-
default: _(() => [g("div", ee, [c(k, {
|
|
114
|
-
title: i(t)("menu.link_product.rules.restaurant_custom_attributes_filter")
|
|
115
|
-
}, {
|
|
116
|
-
default: _(() => [c(d, {
|
|
117
|
-
"column-defs": y,
|
|
118
|
-
"row-data": i(r),
|
|
119
|
-
"shrink-at": !1,
|
|
120
|
-
"page-size": i(r).length,
|
|
121
|
-
"hide-footer": ""
|
|
122
|
-
}, null, 8, ["row-data", "page-size"])]),
|
|
123
|
-
_: 1
|
|
124
|
-
}, 8, ["title"]), c(k, {
|
|
125
|
-
title: i(t)("menu.link_product.rules.restaurant_filter")
|
|
126
|
-
}, {
|
|
127
|
-
default: _(() => [c(d, {
|
|
128
|
-
"column-defs": y,
|
|
129
|
-
"row-data": i(a),
|
|
130
|
-
"shrink-at": !1,
|
|
131
|
-
"page-size": i(a).length,
|
|
132
|
-
"hide-footer": ""
|
|
133
|
-
}, null, 8, ["row-data", "page-size"])]),
|
|
134
|
-
_: 1
|
|
135
|
-
}, 8, ["title"])])]),
|
|
136
|
-
_: 1
|
|
137
|
-
}, 8, ["modelValue"])], 64);
|
|
138
|
-
};
|
|
139
|
-
}
|
|
140
|
-
});
|
|
141
|
-
function fe(e) {
|
|
142
|
-
return L() ? ($(e), !0) : !1;
|
|
143
|
-
}
|
|
144
|
-
function x(e) {
|
|
145
|
-
return typeof e == "function" ? e() : i(e);
|
|
146
|
-
}
|
|
147
|
-
const pe = typeof window < "u" && typeof document < "u";
|
|
148
|
-
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
149
|
-
const te = Object.prototype.toString, de = (e) => te.call(e) === "[object Object]", D = () => {
|
|
150
|
-
};
|
|
151
|
-
function P(e, n) {
|
|
152
|
-
function o(...t) {
|
|
153
|
-
return new Promise((r, a) => {
|
|
154
|
-
Promise.resolve(e(() => n.apply(this, t), { fn: n, thisArg: this, args: t })).then(r).catch(a);
|
|
155
|
-
});
|
|
156
|
-
}
|
|
157
|
-
return o;
|
|
158
|
-
}
|
|
159
|
-
const z = (e) => e();
|
|
160
|
-
function ne(e, n = {}) {
|
|
161
|
-
let o, t, r = D;
|
|
162
|
-
const a = (m) => {
|
|
163
|
-
clearTimeout(m), r(), r = D;
|
|
164
|
-
};
|
|
165
|
-
return (m) => {
|
|
166
|
-
const b = x(e), h = x(n.maxWait);
|
|
167
|
-
return o && a(o), b <= 0 || h !== void 0 && h <= 0 ? (t && (a(t), t = null), Promise.resolve(m())) : new Promise((p, w) => {
|
|
168
|
-
r = n.rejectOnCancel ? w : p, h && !t && (t = setTimeout(() => {
|
|
169
|
-
o && a(o), t = null, p(m());
|
|
170
|
-
}, h)), o = setTimeout(() => {
|
|
171
|
-
t && a(t), t = null, p(m());
|
|
172
|
-
}, b);
|
|
173
|
-
});
|
|
174
|
-
};
|
|
175
|
-
}
|
|
176
|
-
function oe(e = z) {
|
|
177
|
-
const n = A(!0);
|
|
178
|
-
function o() {
|
|
179
|
-
n.value = !1;
|
|
180
|
-
}
|
|
181
|
-
function t() {
|
|
182
|
-
n.value = !0;
|
|
183
|
-
}
|
|
184
|
-
const r = (...a) => {
|
|
185
|
-
n.value && e(...a);
|
|
186
|
-
};
|
|
187
|
-
return { isActive: N(n), pause: o, resume: t, eventFilter: r };
|
|
188
|
-
}
|
|
189
|
-
function re(e) {
|
|
190
|
-
return U();
|
|
191
|
-
}
|
|
192
|
-
function ae(e, n = 200, o = {}) {
|
|
193
|
-
return P(
|
|
194
|
-
ne(n, o),
|
|
195
|
-
e
|
|
196
|
-
);
|
|
197
|
-
}
|
|
198
|
-
function be(e, n = 200, o = {}) {
|
|
199
|
-
const t = A(e.value), r = ae(() => {
|
|
200
|
-
t.value = e.value;
|
|
201
|
-
}, n, o);
|
|
202
|
-
return O(e, () => r()), t;
|
|
203
|
-
}
|
|
204
|
-
function se(e, n, o = {}) {
|
|
205
|
-
const {
|
|
206
|
-
eventFilter: t = z,
|
|
207
|
-
...r
|
|
208
|
-
} = o;
|
|
209
|
-
return O(
|
|
210
|
-
e,
|
|
211
|
-
P(
|
|
212
|
-
t,
|
|
213
|
-
n
|
|
214
|
-
),
|
|
215
|
-
r
|
|
216
|
-
);
|
|
217
|
-
}
|
|
218
|
-
function he(e, n, o = {}) {
|
|
219
|
-
const {
|
|
220
|
-
eventFilter: t,
|
|
221
|
-
...r
|
|
222
|
-
} = o, { eventFilter: a, pause: y, resume: m, isActive: b } = oe(t);
|
|
223
|
-
return { stop: se(
|
|
224
|
-
e,
|
|
225
|
-
n,
|
|
226
|
-
{
|
|
227
|
-
...r,
|
|
228
|
-
eventFilter: a
|
|
229
|
-
}
|
|
230
|
-
), pause: y, resume: m, isActive: b };
|
|
231
|
-
}
|
|
232
|
-
function ve(e, n = !0, o) {
|
|
233
|
-
re() ? K(e, o) : n ? e() : M(e);
|
|
234
|
-
}
|
|
235
|
-
export {
|
|
236
|
-
me as _,
|
|
237
|
-
ve as a,
|
|
238
|
-
fe as b,
|
|
239
|
-
de as c,
|
|
240
|
-
pe as i,
|
|
241
|
-
D as n,
|
|
242
|
-
be as r,
|
|
243
|
-
x as t,
|
|
244
|
-
ae as u,
|
|
245
|
-
he as w
|
|
246
|
-
};
|