@feedmepos/mf-menu 0.31.40-beta.2 → 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-CoKv0BFp.js → App-aWEH-ZEk.js} +9 -9
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-B14Q0hS_.js → ApplyProduct.vue_vue_type_script_setup_true_lang-jJyinQZl.js} +3 -3
- package/dist/{Catalog-BRovMtuI.js → Catalog-BoFfFdn8.js} +9 -8
- package/dist/{Category-DytZqgIt.js → Category-CWYbb3Jn.js} +4 -4
- package/dist/{Category-CT8-B4zh.js → Category-DZ45uikR.js} +6 -6
- package/dist/{CookingGuide-Ct5qRLG0.js → CookingGuide-BU0PRWIQ.js} +4 -4
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-D3R3TCba.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-Dk1yQTTt.js → Group-BMQDeqiS.js} +1 -1
- package/dist/{Group-G_H8i5_8.js → Group-C0T_uknK.js} +3 -3
- package/dist/{Group.vue_vue_type_script_setup_true_lang-CoTdB2d5.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-BKx7uQtR.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-Dl-Wvt3D.js} +14 -13
- package/dist/{Ingredient-ChynYQq6.js → Ingredient-3lwDUQx_.js} +3 -3
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-DyaUxnMx.js → InventoryBinding.vue_vue_type_script_setup_true_lang-VLrrTkSC.js} +2 -2
- 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-DwAZHUrQ.js → PrintRoute-DfJ-vUAb.js} +4 -4
- package/dist/{Product-Bx2NPQvC.js → Product-F4PoLm9v.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-od_O6x7E.js → Product.vue_vue_type_script_setup_true_lang-DT5gffpA.js} +465 -468
- package/dist/{ProductInternalTools-BOguHh06.js → ProductInternalTools-DSGU-OqU.js} +6 -6
- package/dist/{Products-DA2hOsxr.js → Products-COzW2Z4g.js} +85 -88
- package/dist/{Publish-WATQWkjh.js → Publish-CDXVWCk2.js} +3 -3
- package/dist/{Recipe-WPwGgur3.js → Recipe-BZx4wrcP.js} +4 -4
- package/dist/{Scheduler-Djjggrh2.js → Scheduler-wHCWSeU2.js} +3 -3
- package/dist/{ServingSequence-CryZJTWA.js → ServingSequence-BbYEhDYh.js} +3 -3
- package/dist/{Setting-BtLsmoqY.js → Setting-C9Tlw1Iy.js} +45 -44
- package/dist/{Subcategory-BvlYDquD.js → Subcategory-C8AwfrKb.js} +4 -4
- package/dist/{Takeaway-8khxlcKQ.js → Takeaway-DaEUn-yM.js} +4 -4
- package/dist/{Takeaway-BBvFxAlx.js → Takeaway-t1053wg2.js} +1 -1
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-B8blN-yJ.js → Takeaway.vue_vue_type_script_setup_true_lang-7XycP5fU.js} +5 -5
- package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-CA9RlNkt.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-Diu00sM2.js → Unit-CnqptGCz.js} +2 -2
- package/dist/{Variant-CO15W0wb.js → Variant-DiOYOwJs.js} +3 -3
- package/dist/{_id_-CxA_FzSG.js → _id_-BSfU16VO.js} +75 -78
- package/dist/{app-Blbof2Ga.js → app-Cou6qPF2.js} +1 -1
- package/dist/{app-5ESai6-B.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-CXjEQ80k.js → catalog-DSuJhsUb.js} +1 -1
- package/dist/{catalogSetting-aJSUDY_z.js → catalogSetting-C3gEw9ov.js} +1 -1
- package/dist/{category-TqQULuHq.js → category-CwWq3KCE.js} +1 -1
- package/dist/{currency-CRjh8ne7.js → currency-g45Sh-t6.js} +1 -1
- package/dist/{dayjs.min-MBmYgyRY.js → dayjs.min-g3eN5z-V.js} +1 -1
- package/dist/index-0Q5T9VZV.js +214 -0
- package/dist/{index-dkHuztwB.js → index-0yRUi7LL.js} +1 -1
- package/dist/{index-CzjFGFvP.js → index-BLQCYEc6.js} +8 -7
- package/dist/{index-B1NS2hBa.js → index-QsLFbxyG.js} +4 -4
- package/dist/{item-Dj14On9a.js → item-BvvQ9urP.js} +386 -386
- package/dist/{jszip.min-Be1afVon.js → jszip.min-DzdUiaR4.js} +353 -353
- package/dist/{menu-C0Xu-iTb.js → menu-DFNvhoNQ.js} +31149 -31298
- package/dist/{menu-kRDoPBjm.js → menu-QrVg2Ph7.js} +7 -7
- package/dist/{menuV2-D6Gmxd9X.js → menuV2-Ezf_jW40.js} +137 -142
- package/dist/mf-menu.css +1 -1
- package/dist/{priceTier-CJlFGOpm.js → priceTier-zENsn3P_.js} +1 -1
- package/dist/{scheduler-B11d6fJr.js → scheduler-BuwGSv6A.js} +8 -8
- package/dist/{subcategory-D6hTbHP-.js → subcategory-O3L_zCJA.js} +2 -2
- package/dist/{toExcel-BedErXvS.js → toExcel-CpRy_4nG.js} +2 -2
- package/dist/{unit-D5jDzsM2.js → unit-Ct_7Hfa2.js} +41 -42
- package/package.json +3 -3
- package/dist/GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-B_Yv8Thl.js +0 -399
- package/dist/LinkProductSideSheet-DsoPo7Q_.js +0 -361
- package/dist/MenuSetting-CDSc-56P.js +0 -618
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-LVWB5CIa.js +0 -5994
- package/dist/apps/mf-menu/src/composable/attributes.d.ts +0 -26
- 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-x1efKEih.js +0 -13
- package/dist/assets/override-menu-D8d9BWzy.js +0 -13
- package/dist/assets/validate-menu-DUJ20GHx.js +0 -13
- package/dist/customAttributes-32VmzFKZ.js +0 -177
- package/dist/index-FzHOAFSW.js +0 -246
|
@@ -1,177 +0,0 @@
|
|
|
1
|
-
import { defineComponent as v, createElementBlock as c, openBlock as m, normalizeClass as b, renderSlot as y, createCommentVNode as _, createVNode as k, createElementVNode as p, toDisplayString as f, withCtx as $, computed as d } from "vue";
|
|
2
|
-
import { x as A, N as T } from "./app-CiBqmBzO.js";
|
|
3
|
-
import { useCoreStore as N, EMPTY_RULE as C, isEmptyMongoQuery as E, isEmptyRule as I } from "@feedmepos/mf-common";
|
|
4
|
-
const w = /* @__PURE__ */ v({
|
|
5
|
-
__name: "FormColumn",
|
|
6
|
-
props: {
|
|
7
|
-
shrinkable: { type: Boolean }
|
|
8
|
-
},
|
|
9
|
-
setup(a) {
|
|
10
|
-
return (s, n) => (m(), c("div", {
|
|
11
|
-
class: b(["flex-1 flex flex-col space-y-24", { "min-h-0": s.shrinkable }])
|
|
12
|
-
}, [
|
|
13
|
-
y(s.$slots, "default")
|
|
14
|
-
], 2));
|
|
15
|
-
}
|
|
16
|
-
}), S = {
|
|
17
|
-
key: 0,
|
|
18
|
-
class: "flex flex-row justify-between items-center"
|
|
19
|
-
}, M = { class: "space-y-4" }, R = { class: "fm-typo-en-title-sm-600" }, V = {
|
|
20
|
-
key: 0,
|
|
21
|
-
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
22
|
-
}, P = /* @__PURE__ */ v({
|
|
23
|
-
__name: "FormSection",
|
|
24
|
-
props: {
|
|
25
|
-
title: {},
|
|
26
|
-
subTitle: {},
|
|
27
|
-
shrinkable: { type: Boolean }
|
|
28
|
-
},
|
|
29
|
-
setup(a) {
|
|
30
|
-
return (s, n) => (m(), c("div", {
|
|
31
|
-
class: b(["flex flex-col space-y-16", { "min-h-0": s.shrinkable }])
|
|
32
|
-
}, [
|
|
33
|
-
s.title ? (m(), c("div", S, [
|
|
34
|
-
p("div", M, [
|
|
35
|
-
p("p", R, f(s.title), 1),
|
|
36
|
-
s.subTitle ? (m(), c("p", V, f(s.subTitle), 1)) : _("", !0)
|
|
37
|
-
]),
|
|
38
|
-
y(s.$slots, "append-title")
|
|
39
|
-
])) : _("", !0),
|
|
40
|
-
k(w, { shrinkable: s.shrinkable }, {
|
|
41
|
-
default: $(() => [
|
|
42
|
-
y(s.$slots, "default")
|
|
43
|
-
]),
|
|
44
|
-
_: 3
|
|
45
|
-
}, 8, ["shrinkable"])
|
|
46
|
-
], 2));
|
|
47
|
-
}
|
|
48
|
-
}), B = { class: "space-y-8" }, F = { class: "flex items-center justify-between" }, Q = { class: "space-y-8" }, j = { class: "fm-typo-en-body-lg-600" }, x = {
|
|
49
|
-
key: 0,
|
|
50
|
-
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
51
|
-
}, U = /* @__PURE__ */ v({
|
|
52
|
-
__name: "FormItem",
|
|
53
|
-
props: {
|
|
54
|
-
label: {},
|
|
55
|
-
description: {}
|
|
56
|
-
},
|
|
57
|
-
setup(a) {
|
|
58
|
-
return (s, n) => (m(), c("div", B, [
|
|
59
|
-
p("div", F, [
|
|
60
|
-
p("div", Q, [
|
|
61
|
-
p("p", j, f(s.label), 1),
|
|
62
|
-
s.description ? (m(), c("p", x, f(s.description), 1)) : _("", !0)
|
|
63
|
-
]),
|
|
64
|
-
y(s.$slots, "append")
|
|
65
|
-
]),
|
|
66
|
-
y(s.$slots, "default")
|
|
67
|
-
]));
|
|
68
|
-
}
|
|
69
|
-
});
|
|
70
|
-
function u(a) {
|
|
71
|
-
return Array.from(new Set(a));
|
|
72
|
-
}
|
|
73
|
-
function Y() {
|
|
74
|
-
const a = N();
|
|
75
|
-
return {
|
|
76
|
-
restaurantAttributes: d(() => [
|
|
77
|
-
{
|
|
78
|
-
type: "string",
|
|
79
|
-
key: "name",
|
|
80
|
-
entity: "restaurant",
|
|
81
|
-
values: u(
|
|
82
|
-
a.restaurants.value.filter((n) => {
|
|
83
|
-
var i;
|
|
84
|
-
return !!((i = n.profile) != null && i.name);
|
|
85
|
-
}).map((n) => n.profile.name)
|
|
86
|
-
)
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
type: "string",
|
|
90
|
-
key: "code",
|
|
91
|
-
entity: "restaurant",
|
|
92
|
-
values: u(
|
|
93
|
-
a.restaurants.value.filter((n) => {
|
|
94
|
-
var i;
|
|
95
|
-
return !!((i = n.profile) != null && i.code);
|
|
96
|
-
}).map((n) => n.profile.code)
|
|
97
|
-
)
|
|
98
|
-
}
|
|
99
|
-
])
|
|
100
|
-
};
|
|
101
|
-
}
|
|
102
|
-
function H(a = {}) {
|
|
103
|
-
const s = d(() => {
|
|
104
|
-
var o, l;
|
|
105
|
-
const e = ((o = a.menuItems) == null ? void 0 : o.value) || [], t = ((l = a.categories) == null ? void 0 : l.value) || [];
|
|
106
|
-
return [
|
|
107
|
-
{
|
|
108
|
-
type: "string",
|
|
109
|
-
key: "name",
|
|
110
|
-
entity: "item",
|
|
111
|
-
values: u(e.filter((r) => !!r.name).map((r) => r.name))
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
type: "string",
|
|
115
|
-
key: "code",
|
|
116
|
-
entity: "item",
|
|
117
|
-
values: u(e.filter((r) => !!r.code).map((r) => r.code))
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
type: "string",
|
|
121
|
-
key: "category",
|
|
122
|
-
entity: "item",
|
|
123
|
-
values: u(t.filter((r) => !!r.name).map((r) => r.name))
|
|
124
|
-
}
|
|
125
|
-
];
|
|
126
|
-
}), n = d(() => {
|
|
127
|
-
var t;
|
|
128
|
-
const e = {};
|
|
129
|
-
return (t = a.categories) == null || t.value.forEach((o) => {
|
|
130
|
-
e[o.name] = o._id;
|
|
131
|
-
}), e;
|
|
132
|
-
}), i = d(() => {
|
|
133
|
-
var t;
|
|
134
|
-
const e = {};
|
|
135
|
-
return (t = a.categories) == null || t.value.forEach((o) => {
|
|
136
|
-
e[o._id] = o.name;
|
|
137
|
-
}), e;
|
|
138
|
-
});
|
|
139
|
-
function h(e) {
|
|
140
|
-
return e != null && e.rules && (e.rules = e.rules.map((t) => {
|
|
141
|
-
if ("property" in t && t.property === "category" && Array.isArray(t.value)) {
|
|
142
|
-
const o = t.value.map((l) => i.value[l]);
|
|
143
|
-
return { ...t, value: o };
|
|
144
|
-
}
|
|
145
|
-
return t;
|
|
146
|
-
})), e;
|
|
147
|
-
}
|
|
148
|
-
function g(e) {
|
|
149
|
-
return e != null && e.rules && (e.rules = e.rules.map((t) => {
|
|
150
|
-
if ("property" in t && t.property === "category" && Array.isArray(t.value)) {
|
|
151
|
-
const o = t.value.map((l) => n.value[l]);
|
|
152
|
-
return { ...t, value: o };
|
|
153
|
-
}
|
|
154
|
-
return t;
|
|
155
|
-
})), e;
|
|
156
|
-
}
|
|
157
|
-
return {
|
|
158
|
-
itemAttributes: s,
|
|
159
|
-
convertCategoryIdToName: h,
|
|
160
|
-
convertCategoryNameToId: g
|
|
161
|
-
};
|
|
162
|
-
}
|
|
163
|
-
function J(a) {
|
|
164
|
-
return E(a) ? C : A.build(a);
|
|
165
|
-
}
|
|
166
|
-
function K(a) {
|
|
167
|
-
return I(a) ? null : T.build(a);
|
|
168
|
-
}
|
|
169
|
-
export {
|
|
170
|
-
P as _,
|
|
171
|
-
U as a,
|
|
172
|
-
w as b,
|
|
173
|
-
H as c,
|
|
174
|
-
K as f,
|
|
175
|
-
J as m,
|
|
176
|
-
Y as u
|
|
177
|
-
};
|
package/dist/index-FzHOAFSW.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-32VmzFKZ.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
|
-
};
|