@feedmepos/mf-menu 0.32.55 → 0.32.56
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-D9i97kPC.js → App-BUePFRjb.js} +7 -7
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-BxhzKypm.js → ApplyProduct.vue_vue_type_script_setup_true_lang-oPq3AcV2.js} +3 -3
- package/dist/{ApplyProductDialog.vue_vue_type_script_setup_true_lang-kPOpOatz.js → ApplyProductDialog.vue_vue_type_script_setup_true_lang-r2W9cuVe.js} +2 -2
- package/dist/{Catalog-DFJXgNsO.js → Catalog-uo0vO8uy.js} +6 -6
- package/dist/{Category-FaheENIM.js → Category-BvetZzck.js} +4 -4
- package/dist/{Category-DcN5huA8.js → Category-CHN6aSPS.js} +4 -4
- package/dist/{CookingGuide-w9A6JMSR.js → CookingGuide-DU8D0T0w.js} +5 -5
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-BGCVlZ7J.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-DIxKLpe8.js} +1 -1
- package/dist/{Group-Dy8HcG_Y.js → Group-BFGFyGhC.js} +3 -3
- package/dist/{Group-DdqHR86E.js → Group-Cd1OoALN.js} +1 -1
- package/dist/{Group.vue_vue_type_script_setup_true_lang-Dvq7j79a.js → Group.vue_vue_type_script_setup_true_lang-Dyb9On55.js} +8 -8
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BBcE09pP.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-XcNt0ZBv.js} +5 -5
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-DbIKyjW3.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-Dw3IXPUL.js} +7 -7
- package/dist/{Ingredient-gj1v3spC.js → Ingredient-CXU04qIu.js} +3 -3
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-DV-RjIZv.js → InventoryBinding.vue_vue_type_script_setup_true_lang-q9DVgfMD.js} +2 -2
- package/dist/LinkProductSideSheet-CaFKMMSd.js +721 -0
- package/dist/MenuSetting-EeJdFNfx.js +685 -0
- package/dist/{OrderPacing-D0FFFm3T.js → OrderPacing-Db4P-2ea.js} +6 -6
- package/dist/{PrintRoute-Cgcxblv_.js → PrintRoute-CSScKjFa.js} +4 -4
- package/dist/{Product-Nti0T9iE.js → Product-tvbYvK5u.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-DyWLMrUC.js → Product.vue_vue_type_script_setup_true_lang-BQ_PgMDP.js} +12 -12
- package/dist/{ProductInternalTools-oOMZV7kK.js → ProductInternalTools-D2rmgEby.js} +6 -6
- package/dist/{Products-9elHDYp6.js → Products-WPvLY_wr.js} +43 -43
- package/dist/{Publish-Bi33tD6L.js → Publish-BJ9rz75C.js} +3 -3
- package/dist/{Recipe-BSysXC_H.js → Recipe-BMRTd58L.js} +4 -4
- package/dist/{RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-BqsEM8Kj.js → RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-BefgcG34.js} +1 -1
- package/dist/RuleView.vue_vue_type_script_setup_true_lang-DlzIboPc.js +3305 -0
- package/dist/{Scheduler-CmXIA0tH.js → Scheduler-CHQ5YcBq.js} +3 -3
- package/dist/{ServingSequence-CPVOcSSM.js → ServingSequence-BtXSEzfn.js} +3 -3
- package/dist/{Setting-BQPHY7B-.js → Setting-BnXj1uTa.js} +5 -5
- package/dist/{Subcategory-DQAT58lU.js → Subcategory-miGPIoku.js} +5 -5
- package/dist/{Takeaway-DOi4Xogf.js → Takeaway-DtVvfRQy.js} +1 -1
- package/dist/{Takeaway-DtyEbDDB.js → Takeaway-zaChLDgt.js} +4 -4
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-CNccXS8u.js → Takeaway.vue_vue_type_script_setup_true_lang-BFnbiGsG.js} +5 -5
- package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-D9VV1s1E.js → Thumbnail.vue_vue_type_script_setup_true_lang-CNYxe969.js} +4 -4
- package/dist/{TranslationFieldSection.vue_vue_type_script_setup_true_lang-Cpg0cCuJ.js → TranslationFieldSection.vue_vue_type_script_setup_true_lang-D4fWF46n.js} +1 -1
- package/dist/{TranslationSideSheet.vue_vue_type_script_setup_true_lang-CGXXpcYQ.js → TranslationSideSheet.vue_vue_type_script_setup_true_lang-DLqeQRkH.js} +2 -2
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DUxEgL0r.js +5974 -0
- package/dist/{Unit-BVGd9vOo.js → Unit-BaLVANd9.js} +2 -2
- package/dist/{Variant-wgsEnYNH.js → Variant-Bnb4SllS.js} +3 -3
- package/dist/{_id_-XLbzesLX.js → _id_-btH88hnV.js} +9 -9
- package/dist/{app-DBDi3v7O.js → app-BO16t-ps.js} +32 -32
- package/dist/{app-DXZuPEOd.js → app-D1a9CqKF.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/thumbnailUpload.d.ts +6 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/image/ImageUploadForm.vue.d.ts +35 -29
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/item/ProductDetail.vue.d.ts +3 -0
- package/dist/apps/mf-menu/src/components/rule_group/CatalogLinkItemRuleView.vue.d.ts +2 -0
- package/dist/apps/mf-menu/src/components/rule_group/RuleView.vue.d.ts +2 -0
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{override-menu-BiwqdooM.js → linked-status-zxrRiX3x.js} +3 -3
- package/dist/assets/{menu-export-BemM1bWH.js → menu-export-DXB8Py6r.js} +2 -2
- package/dist/assets/{linked-status-BELOy4Ju.js → override-menu-CEIJGR_x.js} +3 -3
- package/dist/assets/{validate-menu-mNalZZpy.js → validate-menu-DN3P-OR7.js} +2 -2
- package/dist/{catalog-Beh91hfF.js → catalog-COu1SO_p.js} +1 -1
- package/dist/{catalogSetting-CvotY0sm.js → catalogSetting-D34fLwdB.js} +1 -1
- package/dist/{currency-DWU0Lz6M.js → currency-DlfcFoj5.js} +1 -1
- package/dist/{dayjs.min-b9_NYDqQ.js → dayjs.min-xM9KAjrx.js} +2 -2
- package/dist/{index-ZpjMtEkL.js → index-B5d_uvVc.js} +5 -5
- package/dist/{index-B2zWt4Ih.js → index-ByEp1JD0.js} +5 -5
- package/dist/{index.vue_vue_type_script_setup_true_lang-CSSSNBt8.js → index.vue_vue_type_script_setup_true_lang-DAJSG8i1.js} +6 -6
- package/dist/{item-DtR73Afo.js → item-CtfWra_w.js} +19 -19
- package/dist/{jszip.min-DgMmizjt.js → jszip.min-CNLaYb3p.js} +175 -175
- package/dist/{memberPricing-RVw5I6LL.js → memberPricing-DSqwOAgM.js} +1 -1
- package/dist/{menu-CaFnkDPh.js → menu-DUsES-YM.js} +1 -1
- package/dist/{menuV2-CphaxHaj.js → menuV2-BaY8Z_1c.js} +39 -39
- package/dist/mf-menu.css +1 -1
- package/dist/{order_pacing-CUyiMmGB.js → order_pacing-B5a8Fch-.js} +5 -5
- package/dist/{priceTier-CGLpjMw4.js → priceTier-bxvu4c84.js} +1 -1
- package/dist/{rules-3d19nDAK.js → rules-CTd3QZhN.js} +3 -3
- package/dist/{scheduler-CyPQu2Jd.js → scheduler-DIl9SPsA.js} +4 -4
- package/dist/{toExcel-Dbqi_aWn.js → toExcel-CUAEPhEv.js} +2 -2
- package/dist/{unit-CidyefuC.js → unit-DThoovpF.js} +3 -3
- package/package.json +1 -1
- package/dist/LinkProductSideSheet-Bwt2W9XG.js +0 -687
- package/dist/MenuSetting-CRCDO92S.js +0 -648
- package/dist/RuleView.vue_vue_type_script_setup_true_lang-Cxl5Mvc1.js +0 -3285
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-Dl-6UT3T.js +0 -5940
- /package/dist/{vuedraggable-CK8z7qA8.js → RuleConditionSelector.vue_vue_type_style_index_0_lang-CK8z7qA8.js} +0 -0
|
@@ -1,687 +0,0 @@
|
|
|
1
|
-
import { createElementBlock as b, openBlock as i, createElementVNode as F, defineComponent as ae, ref as A, computed as j, resolveComponent as x, createBlock as U, unref as u, withCtx as O, createVNode as y, toDisplayString as T, Fragment as z, renderList as X, createCommentVNode as Y, withModifiers as oe, watch as re, renderSlot as pe } from "vue";
|
|
2
|
-
import { u as le, U as ue, G as ee, a5 as ve, H as ie } from "./index.vue_vue_type_script_setup_true_lang-CSSSNBt8.js";
|
|
3
|
-
import { useI18n as se, ItemSelector as fe } from "@feedmepos/mf-common";
|
|
4
|
-
import { components as de, FmButtonVariant as Z } from "@feedmepos/ui-library";
|
|
5
|
-
import { u as _e } from "./discardConfirm-BHni0LNu.js";
|
|
6
|
-
import { u as ye } from "./menuV2-CphaxHaj.js";
|
|
7
|
-
import { _ as ce } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
|
-
import { m as B, g as be, h as Re, c as ge, b as he, f as te } from "./RuleView.vue_vue_type_script_setup_true_lang-Cxl5Mvc1.js";
|
|
9
|
-
import { c as Ce } from "./check-C9mY6LiX.js";
|
|
10
|
-
/* empty css */
|
|
11
|
-
const Ae = {};
|
|
12
|
-
function ke(h, E) {
|
|
13
|
-
return i(), b("div", null, E[0] || (E[0] = [
|
|
14
|
-
F("div", { class: "h-px w-full bg-fm-color-neutral-gray-100" }, null, -1)
|
|
15
|
-
]));
|
|
16
|
-
}
|
|
17
|
-
const Fe = /* @__PURE__ */ ce(Ae, [["render", ke]]), we = { class: "flex items-center gap-24" }, Ie = { key: 0 }, Ve = { key: 1 }, xe = { class: "flex flex-col gap-24 h-full" }, $e = { class: "flex flex-col gap-24 overflow-y-auto flex-1" }, Se = { class: "flex flex-col gap-16" }, Ne = { class: "text-fm-color-typo-primary fm-typo-en-body-lg-600" }, Ge = { class: "flex justify-between" }, Be = { class: "text-fm-color-neutral-gray-400 fm-typo-en-body-lg-600" }, De = { key: 0 }, Oe = {
|
|
18
|
-
key: 0,
|
|
19
|
-
class: "text-fm-color-neutral-gray-300 p-16 ml-16"
|
|
20
|
-
}, Le = { class: "flex justify-end gap-16" }, Me = /* @__PURE__ */ ae({
|
|
21
|
-
__name: "CatalogLinkItemRuleForm",
|
|
22
|
-
props: {
|
|
23
|
-
isEditMode: {
|
|
24
|
-
type: Boolean,
|
|
25
|
-
default: !0
|
|
26
|
-
},
|
|
27
|
-
orderFrom: {
|
|
28
|
-
type: String,
|
|
29
|
-
required: !0
|
|
30
|
-
},
|
|
31
|
-
existingRuleGroups: {
|
|
32
|
-
type: Array,
|
|
33
|
-
required: !0
|
|
34
|
-
},
|
|
35
|
-
groupCustomRule: {
|
|
36
|
-
type: Object,
|
|
37
|
-
required: !0
|
|
38
|
-
},
|
|
39
|
-
convertCategoryIdToName: {
|
|
40
|
-
type: Function,
|
|
41
|
-
required: !0
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
emits: ["update:modelValue", "close-form"],
|
|
45
|
-
setup(h, { emit: E }) {
|
|
46
|
-
const { t: a } = se(), M = h, v = A(!0), $ = E, q = A(M.orderFrom), R = A(""), C = A(
|
|
47
|
-
M.existingRuleGroups.reduce(
|
|
48
|
-
(o, s) => (o[s.id] = !0, o),
|
|
49
|
-
{}
|
|
50
|
-
)
|
|
51
|
-
), I = A({}), P = j(
|
|
52
|
-
() => {
|
|
53
|
-
var o;
|
|
54
|
-
return (((o = le().state.menu.ruleGroupSettings) == null ? void 0 : o.groups) || []).map((s) => ({
|
|
55
|
-
label: s.name,
|
|
56
|
-
value: s._id
|
|
57
|
-
}));
|
|
58
|
-
}
|
|
59
|
-
), V = j(() => {
|
|
60
|
-
const o = P.value;
|
|
61
|
-
if (R.value) {
|
|
62
|
-
const s = R.value.toLowerCase(), n = o.filter((r) => C.value[r.value]), p = o.filter(
|
|
63
|
-
(r) => !C.value[r.value] && r.label.toLowerCase().includes(s)
|
|
64
|
-
);
|
|
65
|
-
return [...n, ...p];
|
|
66
|
-
}
|
|
67
|
-
return o.sort((s, n) => {
|
|
68
|
-
const p = C.value[s.value] || !1, r = C.value[n.value] || !1;
|
|
69
|
-
return p && !r ? -1 : !p && r ? 1 : 0;
|
|
70
|
-
});
|
|
71
|
-
}), J = j(() => {
|
|
72
|
-
var n;
|
|
73
|
-
const o = Object.entries(C.value).filter(([p, r]) => r).map(([p]) => p), s = ((n = le().state.menu.ruleGroupSettings) == null ? void 0 : n.groups) || [];
|
|
74
|
-
return o.map((p) => {
|
|
75
|
-
const r = s.find((c) => c._id === p);
|
|
76
|
-
return {
|
|
77
|
-
...r,
|
|
78
|
-
rules: (r == null ? void 0 : r.rules.map((c) => {
|
|
79
|
-
var k, S, N, _;
|
|
80
|
-
return {
|
|
81
|
-
...c,
|
|
82
|
-
_id: c._id,
|
|
83
|
-
restaurantRule: {
|
|
84
|
-
restaurantAttributes: B(
|
|
85
|
-
(k = c.restaurantRule) == null ? void 0 : k.restaurantAttributes
|
|
86
|
-
),
|
|
87
|
-
restaurantCustomAttributes: B(
|
|
88
|
-
(S = c.restaurantRule) == null ? void 0 : S.restaurantCustomAttributes
|
|
89
|
-
)
|
|
90
|
-
},
|
|
91
|
-
itemRule: {
|
|
92
|
-
itemAttributes: M.convertCategoryIdToName(
|
|
93
|
-
B((N = c.itemRule) == null ? void 0 : N.itemAttributes)
|
|
94
|
-
),
|
|
95
|
-
itemCustomAttributes: B((_ = c.itemRule) == null ? void 0 : _.itemCustomAttributes)
|
|
96
|
-
}
|
|
97
|
-
};
|
|
98
|
-
})) || []
|
|
99
|
-
};
|
|
100
|
-
}).filter((p) => p !== null);
|
|
101
|
-
}), d = A([]);
|
|
102
|
-
function g(o) {
|
|
103
|
-
var c, k, S, N;
|
|
104
|
-
const s = ((c = o.restaurantRule) == null ? void 0 : c.restaurantAttributes.rules) ?? [], n = ((k = o.restaurantRule) == null ? void 0 : k.restaurantCustomAttributes.rules) ?? [], p = ((S = o.itemRule) == null ? void 0 : S.itemAttributes.rules) ?? [], r = ((N = o.itemRule) == null ? void 0 : N.itemCustomAttributes.rules) ?? [];
|
|
105
|
-
return [
|
|
106
|
-
...s.map((_) => ({
|
|
107
|
-
..._,
|
|
108
|
-
property: `${a("menu.catalog.usage.restaurant")} ${_.property}`
|
|
109
|
-
})),
|
|
110
|
-
...n.map((_) => ({
|
|
111
|
-
..._,
|
|
112
|
-
property: `${a("menu.catalog.usage.restaurant")} ${_.property}`
|
|
113
|
-
})),
|
|
114
|
-
...p.map((_) => ({
|
|
115
|
-
..._,
|
|
116
|
-
property: `${a("menu.product.title")} ${_.property}`
|
|
117
|
-
})),
|
|
118
|
-
...r.map((_) => ({
|
|
119
|
-
..._,
|
|
120
|
-
property: `${a("menu.product.title")} ${_.property}`
|
|
121
|
-
}))
|
|
122
|
-
];
|
|
123
|
-
}
|
|
124
|
-
function w() {
|
|
125
|
-
var k, S, N, _, W, m, t, l;
|
|
126
|
-
const o = M.groupCustomRule, s = Object.entries(C.value).filter(([e, G]) => G).map(([e]) => e), n = [], p = [], r = [], c = [];
|
|
127
|
-
d.value.length > 0 && (d.value.forEach((e) => {
|
|
128
|
-
e.property.startsWith("restaurant_attr") ? n.push({
|
|
129
|
-
property: e.property.replace("restaurant_attr_", ""),
|
|
130
|
-
operator: e.operator,
|
|
131
|
-
value: e.value,
|
|
132
|
-
type: e.type
|
|
133
|
-
}) : e.property.startsWith("restaurant_custom") ? p.push({
|
|
134
|
-
property: e.property.replace("restaurant_custom_", ""),
|
|
135
|
-
operator: e.operator,
|
|
136
|
-
value: e.value,
|
|
137
|
-
type: e.type
|
|
138
|
-
}) : e.property.startsWith("item_attr") ? r.push({
|
|
139
|
-
property: e.property.replace("item_attr_", ""),
|
|
140
|
-
operator: e.operator,
|
|
141
|
-
value: e.value,
|
|
142
|
-
type: e.type
|
|
143
|
-
}) : e.property.startsWith("item_custom") && c.push({
|
|
144
|
-
property: e.property.replace("item_custom_", ""),
|
|
145
|
-
operator: e.operator,
|
|
146
|
-
value: e.value,
|
|
147
|
-
type: e.type
|
|
148
|
-
});
|
|
149
|
-
}), o.restaurantRule = {
|
|
150
|
-
restaurantAttributes: {
|
|
151
|
-
logic: ((S = (k = o.restaurantRule) == null ? void 0 : k.restaurantAttributes) == null ? void 0 : S.logic) ?? "AND",
|
|
152
|
-
rules: n
|
|
153
|
-
},
|
|
154
|
-
restaurantCustomAttributes: {
|
|
155
|
-
logic: ((_ = (N = o.restaurantRule) == null ? void 0 : N.restaurantCustomAttributes) == null ? void 0 : _.logic) ?? "AND",
|
|
156
|
-
rules: p
|
|
157
|
-
}
|
|
158
|
-
}, o.itemRule = {
|
|
159
|
-
itemAttributes: {
|
|
160
|
-
logic: ((m = (W = o.itemRule) == null ? void 0 : W.itemAttributes) == null ? void 0 : m.logic) ?? "AND",
|
|
161
|
-
rules: r
|
|
162
|
-
},
|
|
163
|
-
itemCustomAttributes: {
|
|
164
|
-
logic: ((l = (t = o.itemRule) == null ? void 0 : t.itemCustomAttributes) == null ? void 0 : l.logic) ?? "AND",
|
|
165
|
-
rules: c
|
|
166
|
-
}
|
|
167
|
-
}), $("update:modelValue", {
|
|
168
|
-
orderFrom: q.value,
|
|
169
|
-
ruleGroupIds: s,
|
|
170
|
-
restaurantRule: o.restaurantRule,
|
|
171
|
-
itemRule: o.itemRule
|
|
172
|
-
}), f();
|
|
173
|
-
}
|
|
174
|
-
function f() {
|
|
175
|
-
v.value = !1, $("close-form");
|
|
176
|
-
}
|
|
177
|
-
return (o, s) => {
|
|
178
|
-
const n = x("FmButton"), p = x("FmRadio"), r = x("FmRadioGroup"), c = x("FmIcon"), k = x("FmCard"), S = x("FmSearch"), N = x("FmMenuItem"), _ = x("FmMenu"), W = x("FmSideSheet");
|
|
179
|
-
return i(), U(W, {
|
|
180
|
-
modelValue: v.value,
|
|
181
|
-
"onUpdate:modelValue": s[3] || (s[3] = (m) => v.value = m),
|
|
182
|
-
"max-width": 760,
|
|
183
|
-
"close-button": !1,
|
|
184
|
-
"is-container": u(de).FmForm,
|
|
185
|
-
"is-container-props": {
|
|
186
|
-
onValidationSuccess: w,
|
|
187
|
-
blameFormChildOnValidationFailed: !0
|
|
188
|
-
}
|
|
189
|
-
}, {
|
|
190
|
-
"side-sheet-header": O(() => [
|
|
191
|
-
F("div", we, [
|
|
192
|
-
y(n, {
|
|
193
|
-
variant: u(Z).Tertiary,
|
|
194
|
-
"prepend-icon": "arrow_back",
|
|
195
|
-
onClick: oe(f, ["stop"])
|
|
196
|
-
}, null, 8, ["variant"]),
|
|
197
|
-
h.isEditMode ? (i(), b("p", Ie, T(u(a)("menu.link_product.rules.edit_rule")), 1)) : (i(), b("p", Ve, T(u(a)("menu.link_product.rules.add_rule")), 1))
|
|
198
|
-
])
|
|
199
|
-
]),
|
|
200
|
-
"side-sheet-footer": O(() => [
|
|
201
|
-
F("div", Le, [
|
|
202
|
-
y(n, {
|
|
203
|
-
variant: u(Z).Secondary,
|
|
204
|
-
label: u(a)("common.cancel"),
|
|
205
|
-
onClick: oe(f, ["stop"])
|
|
206
|
-
}, null, 8, ["variant", "label"]),
|
|
207
|
-
y(n, {
|
|
208
|
-
variant: u(Z).Primary,
|
|
209
|
-
label: u(a)("common.save"),
|
|
210
|
-
type: "submit"
|
|
211
|
-
}, null, 8, ["variant", "label"])
|
|
212
|
-
])
|
|
213
|
-
]),
|
|
214
|
-
default: O(() => [
|
|
215
|
-
F("div", xe, [
|
|
216
|
-
y(r, {
|
|
217
|
-
modelValue: q.value,
|
|
218
|
-
"onUpdate:modelValue": s[0] || (s[0] = (m) => q.value = m),
|
|
219
|
-
label: u(a)("menu.link_product.rules.availability")
|
|
220
|
-
}, {
|
|
221
|
-
default: O(() => [
|
|
222
|
-
y(p, {
|
|
223
|
-
label: "All",
|
|
224
|
-
value: u(ue).enum.ALL
|
|
225
|
-
}, null, 8, ["value"]),
|
|
226
|
-
y(p, {
|
|
227
|
-
label: "POS Only",
|
|
228
|
-
value: u(ue).enum.POS_ONLY
|
|
229
|
-
}, null, 8, ["value"]),
|
|
230
|
-
y(p, {
|
|
231
|
-
label: "None",
|
|
232
|
-
value: u(ue).enum.NONE
|
|
233
|
-
}, null, 8, ["value"])
|
|
234
|
-
]),
|
|
235
|
-
_: 1
|
|
236
|
-
}, 8, ["modelValue", "label"]),
|
|
237
|
-
y(Fe),
|
|
238
|
-
F("div", $e, [
|
|
239
|
-
F("div", Se, [
|
|
240
|
-
F("p", Ne, T(u(a)("menu.link_product.rules.use_rule_group")), 1),
|
|
241
|
-
(i(!0), b(z, null, X(J.value, (m) => (i(), b("div", {
|
|
242
|
-
key: m._id
|
|
243
|
-
}, [
|
|
244
|
-
y(k, {
|
|
245
|
-
variant: "outlined",
|
|
246
|
-
class: "p-24 gap-24 space-y-16"
|
|
247
|
-
}, {
|
|
248
|
-
default: O(() => [
|
|
249
|
-
F("div", Ge, [
|
|
250
|
-
F("p", Be, T(m.name), 1),
|
|
251
|
-
y(c, {
|
|
252
|
-
name: I.value[m._id] ? "expand_less" : "expand_more",
|
|
253
|
-
onClick: oe((t) => I.value[m._id] = !I.value[m._id], ["stop", "prevent"])
|
|
254
|
-
}, null, 8, ["name", "onClick"])
|
|
255
|
-
]),
|
|
256
|
-
I.value[m._id] ? (i(), b("div", De, [
|
|
257
|
-
(i(!0), b(z, null, X(m.rules, (t, l) => (i(), b("div", {
|
|
258
|
-
key: t._id
|
|
259
|
-
}, [
|
|
260
|
-
(i(!0), b(z, null, X(g(t), (e, G) => (i(), U(be, {
|
|
261
|
-
key: G,
|
|
262
|
-
number: G + 1,
|
|
263
|
-
property: e.property,
|
|
264
|
-
operator: e.operator,
|
|
265
|
-
value: e.value
|
|
266
|
-
}, null, 8, ["number", "property", "operator", "value"]))), 128)),
|
|
267
|
-
l < m.rules.length - 1 ? (i(), b("p", Oe, T(u(a)("menu.link_product.rules.or")), 1)) : Y("", !0)
|
|
268
|
-
]))), 128))
|
|
269
|
-
])) : Y("", !0)
|
|
270
|
-
]),
|
|
271
|
-
_: 2
|
|
272
|
-
}, 1024)
|
|
273
|
-
]))), 128)),
|
|
274
|
-
y(_, { "close-on-click": !1 }, {
|
|
275
|
-
"menu-button": O(() => [
|
|
276
|
-
y(n, {
|
|
277
|
-
variant: u(Z).Plain,
|
|
278
|
-
"prepend-icon": "add",
|
|
279
|
-
label: u(a)("menu.link_product.rules.add_rule_group")
|
|
280
|
-
}, null, 8, ["variant", "label"])
|
|
281
|
-
]),
|
|
282
|
-
default: O(() => [
|
|
283
|
-
y(S, {
|
|
284
|
-
"model-value": R.value,
|
|
285
|
-
"onUpdate:modelValue": s[1] || (s[1] = (m) => R.value = m),
|
|
286
|
-
class: "w-[200px]",
|
|
287
|
-
placeholder: u(a)("menu.link_product.rules.filter_result")
|
|
288
|
-
}, null, 8, ["model-value", "placeholder"]),
|
|
289
|
-
(i(!0), b(z, null, X(V.value, (m) => (i(), U(N, {
|
|
290
|
-
key: m.value,
|
|
291
|
-
label: m.label,
|
|
292
|
-
"has-checkbox": "",
|
|
293
|
-
"model-value": C.value[m.value],
|
|
294
|
-
onClick: () => {
|
|
295
|
-
C.value[m.value] = !C.value[m.value];
|
|
296
|
-
}
|
|
297
|
-
}, null, 8, ["label", "model-value", "onClick"]))), 128))
|
|
298
|
-
]),
|
|
299
|
-
_: 1
|
|
300
|
-
})
|
|
301
|
-
]),
|
|
302
|
-
y(Re, {
|
|
303
|
-
"model-value": h.groupCustomRule,
|
|
304
|
-
"onUpdate:modelValue": s[2] || (s[2] = (m) => {
|
|
305
|
-
d.value = m;
|
|
306
|
-
})
|
|
307
|
-
}, null, 8, ["model-value"])
|
|
308
|
-
])
|
|
309
|
-
])
|
|
310
|
-
]),
|
|
311
|
-
_: 1
|
|
312
|
-
}, 8, ["modelValue", "is-container", "is-container-props"]);
|
|
313
|
-
};
|
|
314
|
-
}
|
|
315
|
-
}), me = /* @__PURE__ */ ae({
|
|
316
|
-
__name: "CatalogLinkItemRuleView",
|
|
317
|
-
props: {
|
|
318
|
-
modelValue: {
|
|
319
|
-
type: Object,
|
|
320
|
-
required: !0
|
|
321
|
-
},
|
|
322
|
-
index: {
|
|
323
|
-
type: Number,
|
|
324
|
-
required: !0
|
|
325
|
-
},
|
|
326
|
-
convertCategoryIdToName: {
|
|
327
|
-
type: Function,
|
|
328
|
-
required: !0
|
|
329
|
-
},
|
|
330
|
-
showForm: {
|
|
331
|
-
type: Boolean,
|
|
332
|
-
default: !1
|
|
333
|
-
},
|
|
334
|
-
isDraft: {
|
|
335
|
-
type: Boolean,
|
|
336
|
-
default: !1
|
|
337
|
-
}
|
|
338
|
-
},
|
|
339
|
-
emits: ["update:model-value", "delete-rule"],
|
|
340
|
-
setup(h, {
|
|
341
|
-
expose: E,
|
|
342
|
-
emit: a
|
|
343
|
-
}) {
|
|
344
|
-
const {
|
|
345
|
-
t: M
|
|
346
|
-
} = se(), v = h, $ = a, q = j(() => {
|
|
347
|
-
var d;
|
|
348
|
-
return ((d = le().state.menu.ruleGroupSettings) == null ? void 0 : d.groups) || [];
|
|
349
|
-
});
|
|
350
|
-
function R(d) {
|
|
351
|
-
return d.flatMap((g) => {
|
|
352
|
-
var o, s;
|
|
353
|
-
const w = ((o = q.value.find((n) => n._id === g)) == null ? void 0 : o.rules) || [], f = ((s = q.value.find((n) => n._id === g)) == null ? void 0 : s.name) || "";
|
|
354
|
-
return {
|
|
355
|
-
id: g,
|
|
356
|
-
name: f,
|
|
357
|
-
rules: w.map((n) => {
|
|
358
|
-
var p, r, c, k;
|
|
359
|
-
return {
|
|
360
|
-
...n,
|
|
361
|
-
restaurantRule: {
|
|
362
|
-
restaurantAttributes: B((p = n.restaurantRule) == null ? void 0 : p.restaurantAttributes),
|
|
363
|
-
restaurantCustomAttributes: B((r = n.restaurantRule) == null ? void 0 : r.restaurantCustomAttributes)
|
|
364
|
-
},
|
|
365
|
-
itemRule: {
|
|
366
|
-
itemAttributes: v.convertCategoryIdToName(B((c = n.itemRule) == null ? void 0 : c.itemAttributes)),
|
|
367
|
-
itemCustomAttributes: B((k = n.itemRule) == null ? void 0 : k.itemCustomAttributes)
|
|
368
|
-
}
|
|
369
|
-
};
|
|
370
|
-
})
|
|
371
|
-
};
|
|
372
|
-
});
|
|
373
|
-
}
|
|
374
|
-
const C = A(R(v.modelValue.ruleGroupIds ?? [])), I = A({
|
|
375
|
-
_id: "customRule",
|
|
376
|
-
restaurantRule: v.modelValue.restaurantRule,
|
|
377
|
-
itemRule: v.modelValue.itemRule
|
|
378
|
-
}), P = A(v.modelValue.orderFrom);
|
|
379
|
-
re(() => v.modelValue, (d) => {
|
|
380
|
-
C.value = R(d.ruleGroupIds ?? []), I.value = {
|
|
381
|
-
_id: "customRule",
|
|
382
|
-
restaurantRule: d.restaurantRule,
|
|
383
|
-
itemRule: d.itemRule
|
|
384
|
-
};
|
|
385
|
-
}, {
|
|
386
|
-
deep: !0
|
|
387
|
-
});
|
|
388
|
-
const V = A(v.showForm);
|
|
389
|
-
E({
|
|
390
|
-
showForm: V
|
|
391
|
-
}), re(() => V.value, (d, g) => {
|
|
392
|
-
v.isDraft && g === !0 && d === !1 && $("delete-rule");
|
|
393
|
-
});
|
|
394
|
-
function J(d) {
|
|
395
|
-
P.value = d.orderFrom, I.value.restaurantRule = d.restaurantRule, I.value.itemRule = d.itemRule, C.value = R(d.ruleGroupIds ?? []), $("update:model-value", d);
|
|
396
|
-
}
|
|
397
|
-
return (d, g) => V.value ? (i(), U(Me, {
|
|
398
|
-
key: 1,
|
|
399
|
-
"is-edit-mode": !h.isDraft,
|
|
400
|
-
"order-from": P.value,
|
|
401
|
-
"existing-rule-groups": C.value,
|
|
402
|
-
"group-custom-rule": I.value,
|
|
403
|
-
"convert-category-id-to-name": h.convertCategoryIdToName,
|
|
404
|
-
onCloseForm: g[2] || (g[2] = (w) => V.value = !1),
|
|
405
|
-
"onUpdate:modelValue": g[3] || (g[3] = (w) => J(w))
|
|
406
|
-
}, null, 8, ["is-edit-mode", "order-from", "existing-rule-groups", "group-custom-rule", "convert-category-id-to-name"])) : (i(), U(ge, {
|
|
407
|
-
key: 0,
|
|
408
|
-
"model-value": I.value,
|
|
409
|
-
title: `${u(M)("menu.rule_groups.condition_view.rule")} ${h.index + 1}`,
|
|
410
|
-
"is-catalog-link-item-rule-view": !0,
|
|
411
|
-
"rule-group-names": C.value.map((w) => w.name).filter((w) => w !== ""),
|
|
412
|
-
"order-from": P.value,
|
|
413
|
-
onOpenCatalogLinkItemRuleForm: g[0] || (g[0] = (w) => V.value = !0),
|
|
414
|
-
onDeleteRule: g[1] || (g[1] = (w) => d.$emit("delete-rule"))
|
|
415
|
-
}, null, 8, ["model-value", "title", "rule-group-names", "order-from"]));
|
|
416
|
-
}
|
|
417
|
-
});
|
|
418
|
-
var D = /* @__PURE__ */ ((h) => (h[h.Normal = 0] = "Normal", h[h.Rules = 1] = "Rules", h))(D || {});
|
|
419
|
-
const Te = { class: "fm-typo-en-title-md-600 mr-auto" }, Ue = {
|
|
420
|
-
key: 1,
|
|
421
|
-
class: "flex items-center gap-12"
|
|
422
|
-
}, Ee = { class: "flex items-center gap-8" }, qe = { class: "text-neutral-600 fm-typo-body-sm" }, je = {
|
|
423
|
-
key: 1,
|
|
424
|
-
class: "space-y-16"
|
|
425
|
-
}, ze = { class: "flex-1 relative border border-fm-color-neutral-gray-200 rounded-md p-16" }, Pe = { class: "absolute -top-[10px] left-[50px] bg-white px-2 fm-typo-en-body-lg-400 text-fm-color-typo-secondary select-none z-10" }, We = {
|
|
426
|
-
key: 0,
|
|
427
|
-
class: "flex items-center select-none"
|
|
428
|
-
}, He = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Qe = { class: "flex gap-8 items-center justify-start" }, Ye = /* @__PURE__ */ ae({
|
|
429
|
-
__name: "LinkProductSideSheet",
|
|
430
|
-
props: {
|
|
431
|
-
initialValue: { default: () => [] },
|
|
432
|
-
linkItemRules: {},
|
|
433
|
-
menuItems: {},
|
|
434
|
-
categories: {},
|
|
435
|
-
noScheduler: { type: Boolean },
|
|
436
|
-
isLocalOnly: { type: Boolean, default: !1 },
|
|
437
|
-
categorizedItems: { default: () => [] },
|
|
438
|
-
selectVariant: { type: Boolean, default: !1 },
|
|
439
|
-
showVariant: { type: Boolean, default: !1 },
|
|
440
|
-
showAddon: { type: Boolean, default: !0 },
|
|
441
|
-
title: { default: void 0 },
|
|
442
|
-
useCloseBtn: { type: Boolean }
|
|
443
|
-
},
|
|
444
|
-
emits: ["submit"],
|
|
445
|
-
setup(h, { emit: E }) {
|
|
446
|
-
const a = h, M = E, { t: v } = se(), $ = A(D.Normal);
|
|
447
|
-
function q(t) {
|
|
448
|
-
$.value = t;
|
|
449
|
-
}
|
|
450
|
-
const R = A(!1), C = (t) => {
|
|
451
|
-
Ce.isBoolean(t) ? R.value = t : R.value = !R.value;
|
|
452
|
-
};
|
|
453
|
-
function I(t) {
|
|
454
|
-
return t.reduce((l, e) => (l[e._id] = [...l[e._id] ?? [], e], l), {});
|
|
455
|
-
}
|
|
456
|
-
const P = a.initialValue, V = A(I(ee(P))), J = j(() => Object.values(V.value).flatMap((t) => t)), { convertCategoryIdToName: d, convertCategoryNameToId: g } = he({
|
|
457
|
-
menuItems: j(() => a.menuItems || []),
|
|
458
|
-
categories: j(() => a.categories || [])
|
|
459
|
-
}), w = A(
|
|
460
|
-
ee(a.linkItemRules)
|
|
461
|
-
), f = A();
|
|
462
|
-
function o() {
|
|
463
|
-
var t;
|
|
464
|
-
return (t = w.value) == null ? void 0 : t.map((l) => {
|
|
465
|
-
var e, G, H, Q;
|
|
466
|
-
return {
|
|
467
|
-
...l,
|
|
468
|
-
restaurantRule: {
|
|
469
|
-
restaurantAttributes: B((e = l.restaurantRule) == null ? void 0 : e.restaurantAttributes),
|
|
470
|
-
restaurantCustomAttributes: B((G = l.restaurantRule) == null ? void 0 : G.restaurantCustomAttributes)
|
|
471
|
-
},
|
|
472
|
-
itemRule: {
|
|
473
|
-
itemAttributes: d(B((H = l.itemRule) == null ? void 0 : H.itemAttributes)),
|
|
474
|
-
itemCustomAttributes: B((Q = l.itemRule) == null ? void 0 : Q.itemCustomAttributes)
|
|
475
|
-
}
|
|
476
|
-
};
|
|
477
|
-
});
|
|
478
|
-
}
|
|
479
|
-
f.value = o();
|
|
480
|
-
function s() {
|
|
481
|
-
var t;
|
|
482
|
-
return (t = f.value) == null ? void 0 : t.map((l) => {
|
|
483
|
-
var e, G, H, Q;
|
|
484
|
-
return {
|
|
485
|
-
...l,
|
|
486
|
-
restaurantRule: {
|
|
487
|
-
restaurantAttributes: te((e = l.restaurantRule) == null ? void 0 : e.restaurantAttributes),
|
|
488
|
-
restaurantCustomAttributes: te((G = l.restaurantRule) == null ? void 0 : G.restaurantCustomAttributes)
|
|
489
|
-
},
|
|
490
|
-
itemRule: {
|
|
491
|
-
itemAttributes: te(g((H = l.itemRule) == null ? void 0 : H.itemAttributes)),
|
|
492
|
-
itemCustomAttributes: te((Q = l.itemRule) == null ? void 0 : Q.itemCustomAttributes)
|
|
493
|
-
}
|
|
494
|
-
};
|
|
495
|
-
});
|
|
496
|
-
}
|
|
497
|
-
const n = _e(
|
|
498
|
-
() => {
|
|
499
|
-
const t = s() ?? null;
|
|
500
|
-
return !ie.isEqual(I(a.initialValue), V.value) || !ie.isEqual(a.linkItemRules, t);
|
|
501
|
-
},
|
|
502
|
-
() => {
|
|
503
|
-
R.value = !1;
|
|
504
|
-
}
|
|
505
|
-
);
|
|
506
|
-
function p() {
|
|
507
|
-
$.value === D.Rules ? M("submit", {
|
|
508
|
-
mode: D.Rules,
|
|
509
|
-
linkItemRules: s() ?? []
|
|
510
|
-
}) : M("submit", {
|
|
511
|
-
mode: D.Normal,
|
|
512
|
-
items: J.value
|
|
513
|
-
}), R.value = !1;
|
|
514
|
-
}
|
|
515
|
-
re(
|
|
516
|
-
() => R.value,
|
|
517
|
-
() => {
|
|
518
|
-
V.value = I(ee(a.initialValue)), w.value = ee(a.linkItemRules), f.value = o(), r.value = null, c.value = !1, $.value = a.noScheduler && a.linkItemRules && a.linkItemRules.length > 0 ? D.Rules : D.Normal;
|
|
519
|
-
}
|
|
520
|
-
);
|
|
521
|
-
const r = A(null), c = A(!1), k = () => {
|
|
522
|
-
r.value = {
|
|
523
|
-
orderFrom: ue.enum.ALL,
|
|
524
|
-
restaurantRule: {
|
|
525
|
-
restaurantAttributes: null,
|
|
526
|
-
restaurantCustomAttributes: null
|
|
527
|
-
},
|
|
528
|
-
itemRule: {
|
|
529
|
-
itemAttributes: null,
|
|
530
|
-
itemCustomAttributes: null
|
|
531
|
-
}
|
|
532
|
-
}, c.value = !0;
|
|
533
|
-
};
|
|
534
|
-
function S(t) {
|
|
535
|
-
f.value = [...f.value || [], t], r.value = null, c.value = !1;
|
|
536
|
-
}
|
|
537
|
-
function N() {
|
|
538
|
-
r.value = null, c.value = !1;
|
|
539
|
-
}
|
|
540
|
-
function _(t) {
|
|
541
|
-
if (!f.value) return;
|
|
542
|
-
const l = [...f.value];
|
|
543
|
-
l.splice(t, 1), f.value = l.length ? l : [];
|
|
544
|
-
}
|
|
545
|
-
const W = j(() => {
|
|
546
|
-
const t = a.isLocalOnly ? ye() : le();
|
|
547
|
-
return a.noScheduler && t.currentCatalog;
|
|
548
|
-
});
|
|
549
|
-
function m(t, l) {
|
|
550
|
-
if (!f.value) return;
|
|
551
|
-
const e = [...f.value];
|
|
552
|
-
e[t] = l, f.value = e;
|
|
553
|
-
}
|
|
554
|
-
return (t, l) => {
|
|
555
|
-
const e = x("fm-button"), G = x("fm-switch"), H = x("FmCard"), Q = x("fm-side-sheet");
|
|
556
|
-
return i(), b(z, null, [
|
|
557
|
-
pe(t.$slots, "default", { trigger: C }, void 0, !0),
|
|
558
|
-
y(Q, {
|
|
559
|
-
id: "group-form",
|
|
560
|
-
modelValue: R.value,
|
|
561
|
-
"onUpdate:modelValue": l[3] || (l[3] = (L) => R.value = L),
|
|
562
|
-
"close-button": t.useCloseBtn,
|
|
563
|
-
"is-container": u(de).FmForm,
|
|
564
|
-
"is-container-props": {
|
|
565
|
-
onValidationSuccess: p,
|
|
566
|
-
blameFormChildOnValidationFailed: !0
|
|
567
|
-
},
|
|
568
|
-
"max-width": 760,
|
|
569
|
-
"onOn:clickedAway": u(n)
|
|
570
|
-
}, {
|
|
571
|
-
"side-sheet-header": O(() => [
|
|
572
|
-
t.useCloseBtn ? Y("", !0) : (i(), U(e, {
|
|
573
|
-
key: 0,
|
|
574
|
-
variant: u(Z).Tertiary,
|
|
575
|
-
class: "cursor-pointer mr-4",
|
|
576
|
-
"prepend-icon": "arrow_back",
|
|
577
|
-
onClick: C
|
|
578
|
-
}, null, 8, ["variant"])),
|
|
579
|
-
F("p", Te, T(t.title || u(v)("menu.link_product.title")), 1),
|
|
580
|
-
W.value ? (i(), b("div", Ue, [
|
|
581
|
-
F("div", Ee, [
|
|
582
|
-
y(G, {
|
|
583
|
-
label: u(v)("menu.link_product.rules.section_title"),
|
|
584
|
-
"model-value": $.value === u(D).Rules,
|
|
585
|
-
"onUpdate:modelValue": l[0] || (l[0] = (L) => q(L ? u(D).Rules : u(D).Normal))
|
|
586
|
-
}, null, 8, ["label", "model-value"])
|
|
587
|
-
])
|
|
588
|
-
])) : Y("", !0)
|
|
589
|
-
]),
|
|
590
|
-
"side-sheet-footer": O(() => [
|
|
591
|
-
F("div", Qe, [
|
|
592
|
-
y(e, {
|
|
593
|
-
label: u(v)("menu.common.actions.confirm"),
|
|
594
|
-
size: "lg",
|
|
595
|
-
type: "submit",
|
|
596
|
-
variant: "primary"
|
|
597
|
-
}, null, 8, ["label"]),
|
|
598
|
-
y(e, {
|
|
599
|
-
label: u(v)("menu.common.actions.cancel"),
|
|
600
|
-
size: "lg",
|
|
601
|
-
variant: "tertiary",
|
|
602
|
-
onClick: l[2] || (l[2] = () => R.value = !1)
|
|
603
|
-
}, null, 8, ["label"])
|
|
604
|
-
])
|
|
605
|
-
]),
|
|
606
|
-
default: O(() => [
|
|
607
|
-
(i(), b("div", {
|
|
608
|
-
class: "py-8 px-8 overflow-y-auto space-y-24",
|
|
609
|
-
key: $.value
|
|
610
|
-
}, [
|
|
611
|
-
$.value === u(D).Normal ? (i(), U(u(fe), {
|
|
612
|
-
key: 0,
|
|
613
|
-
"auto-focus-search": !0,
|
|
614
|
-
"categorized-items": t.categorizedItems,
|
|
615
|
-
data: V.value,
|
|
616
|
-
"select-variant": t.selectVariant,
|
|
617
|
-
"selected-items": J.value,
|
|
618
|
-
"show-variant": t.showVariant,
|
|
619
|
-
"show-addon": t.showAddon,
|
|
620
|
-
"onUpdate:data": l[1] || (l[1] = (L) => V.value = L)
|
|
621
|
-
}, null, 8, ["categorized-items", "data", "select-variant", "selected-items", "show-variant", "show-addon"])) : W.value ? (i(), b(z, { key: 1 }, [
|
|
622
|
-
F("p", qe, T(u(v)("menu.link_product.rules.hint")), 1),
|
|
623
|
-
(!f.value || f.value.length <= 0) && !c.value ? (i(), U(u(ve), {
|
|
624
|
-
key: 0,
|
|
625
|
-
title: u(v)("menu.rule_groups.condition_view.empty_data.no_rules_added"),
|
|
626
|
-
subtitle: u(v)("menu.rule_groups.condition_view.empty_data.subtitle"),
|
|
627
|
-
action: {
|
|
628
|
-
text: u(v)("menu.link_product.rules.add_rule"),
|
|
629
|
-
icon: "add",
|
|
630
|
-
callback: k
|
|
631
|
-
}
|
|
632
|
-
}, null, 8, ["title", "subtitle", "action"])) : (i(), b("div", je, [
|
|
633
|
-
c.value && r.value ? (i(), U(H, {
|
|
634
|
-
key: 0,
|
|
635
|
-
class: "p-16 space-y-16",
|
|
636
|
-
variant: "outlined"
|
|
637
|
-
}, {
|
|
638
|
-
default: O(() => {
|
|
639
|
-
var L;
|
|
640
|
-
return [
|
|
641
|
-
y(me, {
|
|
642
|
-
"model-value": r.value,
|
|
643
|
-
index: ((L = f.value) == null ? void 0 : L.length) ?? 0,
|
|
644
|
-
convertCategoryIdToName: u(d),
|
|
645
|
-
"show-form": !0,
|
|
646
|
-
"is-draft": !0,
|
|
647
|
-
onDeleteRule: N,
|
|
648
|
-
"onUpdate:modelValue": S
|
|
649
|
-
}, null, 8, ["model-value", "index", "convertCategoryIdToName"])
|
|
650
|
-
];
|
|
651
|
-
}),
|
|
652
|
-
_: 1
|
|
653
|
-
})) : Y("", !0),
|
|
654
|
-
(i(!0), b(z, null, X(f.value, (L, K) => (i(), b(z, { key: K }, [
|
|
655
|
-
F("div", ze, [
|
|
656
|
-
F("span", Pe, T(u(v)("menu.rule_groups.condition_view.and")), 1),
|
|
657
|
-
y(me, {
|
|
658
|
-
"model-value": L,
|
|
659
|
-
index: K,
|
|
660
|
-
convertCategoryIdToName: u(d),
|
|
661
|
-
onDeleteRule: (ne) => _(K),
|
|
662
|
-
"onUpdate:modelValue": (ne) => m(K, ne)
|
|
663
|
-
}, null, 8, ["model-value", "index", "convertCategoryIdToName", "onDeleteRule", "onUpdate:modelValue"])
|
|
664
|
-
]),
|
|
665
|
-
f.value && f.value.length > 1 && K < f.value.length - 1 ? (i(), b("div", We, [
|
|
666
|
-
F("span", He, T(u(v)("menu.rule_groups.condition_view.or")), 1)
|
|
667
|
-
])) : Y("", !0)
|
|
668
|
-
], 64))), 128)),
|
|
669
|
-
y(e, {
|
|
670
|
-
label: u(v)("menu.link_product.rules.add_rule"),
|
|
671
|
-
onClick: k
|
|
672
|
-
}, null, 8, ["label"])
|
|
673
|
-
]))
|
|
674
|
-
], 64)) : Y("", !0)
|
|
675
|
-
]))
|
|
676
|
-
]),
|
|
677
|
-
_: 1
|
|
678
|
-
}, 8, ["modelValue", "close-button", "is-container", "is-container-props", "onOn:clickedAway"])
|
|
679
|
-
], 64);
|
|
680
|
-
};
|
|
681
|
-
}
|
|
682
|
-
}), at = /* @__PURE__ */ ce(Ye, [["__scopeId", "data-v-690660ba"]]);
|
|
683
|
-
export {
|
|
684
|
-
Fe as H,
|
|
685
|
-
at as L,
|
|
686
|
-
D as a
|
|
687
|
-
};
|