@feedmepos/mf-menu-portal 1.0.4-dev.2 → 1.0.4-dev.4
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-DtX4DyDA.js → App-CrpoLCjA.js} +3 -3
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-C9OSr8ft.js → ApplyProduct.vue_vue_type_script_setup_true_lang-Hdsnu29V.js} +1 -1
- package/dist/{BindingTable.vue_vue_type_script_setup_true_lang-BJN8ajuD.js → BindingTable.vue_vue_type_script_setup_true_lang-D3CmOOPY.js} +1 -1
- package/dist/{Catalog-Dly_r1yA.js → Catalog-VU3HhNro.js} +4 -4
- package/dist/{CatalogBinding-CNG4YcVq.js → CatalogBinding-BNATtZEY.js} +3 -3
- package/dist/{CatalogEditTabs.vue_vue_type_script_setup_true_lang-Cy2culdR.js → CatalogEditTabs.vue_vue_type_script_setup_true_lang-BmG-xpW4.js} +3 -3
- package/dist/CatalogEditor.vue_vue_type_script_setup_true_lang-BFsRDFpj.js +784 -0
- package/dist/{CatalogLinkProductAction.vue_vue_type_script_setup_true_lang-4EZ4yM_N.js → CatalogLinkProductAction.vue_vue_type_script_setup_true_lang-Bk4FqVmx.js} +14 -14
- package/dist/{Category-Dz1yFYyY.js → Category-DMoXTsfG.js} +5 -5
- package/dist/{Category-BS-vFDYy.js → Category-DxjdQ-NN.js} +2 -2
- package/dist/CategoryList.vue_vue_type_script_setup_true_lang-B3Ts1O-9.js +847 -0
- package/dist/{CookingGuide-CmbvWFgp.js → CookingGuide-DiZZDYD-.js} +5 -5
- package/dist/{Group-B7s-vPXb.js → Group-DFR8q-tt.js} +5 -5
- package/dist/{Group-BRmWZnHh.js → Group-rzfh_o6r.js} +2 -2
- package/dist/GroupList.vue_vue_type_script_setup_true_lang-DiN-wQXX.js +1807 -0
- package/dist/Ingredient-DpjGIuH9.js +505 -0
- package/dist/LinkProductSideSheet.vue_vue_type_script_setup_true_lang-CnI80Ojd.js +782 -0
- package/dist/{MenuSetting-Ci7V_Jxn.js → MenuSetting-DR-pDSF_.js} +4 -4
- package/dist/OrderPacing-JcTuweqF.js +769 -0
- package/dist/{OrderPacingFields.vue_vue_type_script_setup_true_lang-NCH-SrZU.js → OrderPacingFields.vue_vue_type_script_setup_true_lang-HwwJ2mGv.js} +2 -2
- package/dist/{Preview-BBGNaj1F.js → Preview-BZyun5lZ.js} +1 -1
- package/dist/{PriceTierNotice.vue_vue_type_script_setup_true_lang-BXJDpDCm.js → PriceTierNotice.vue_vue_type_script_setup_true_lang-DquqNbE1.js} +1 -1
- package/dist/PrintRoute-CzEx2dCt.js +518 -0
- package/dist/{Product-DqN0NFUU.js → Product-CQb0n06E.js} +4 -4
- package/dist/ProductAttributeFilter.vue_vue_type_script_setup_true_lang-B2KdolJS.js +7931 -0
- package/dist/{ProductEditorHost.vue_vue_type_script_setup_true_lang-Fkiw4lZp.js → ProductEditorHost.vue_vue_type_script_setup_true_lang-CBlDEjqF.js} +9 -9
- package/dist/ProductGroupCreateSheet.vue_vue_type_script_setup_true_lang-D8NQTCLx.js +2011 -0
- package/dist/{ProductImageEditorDialog.vue_vue_type_script_setup_true_lang-CNWCT1OB.js → ProductImageEditorDialog.vue_vue_type_script_setup_true_lang-cG47Pu-6.js} +1 -1
- package/dist/{ProductInlineCreateHost.vue_vue_type_script_setup_true_lang-BoQ9mVPY.js → ProductInlineCreateHost.vue_vue_type_script_setup_true_lang-0UwUcA2L.js} +800 -749
- package/dist/{ProductInternalTools-CC3SWSlT.js → ProductInternalTools-QrBR1nFp.js} +2 -2
- package/dist/{ProductInventoryDialog-SAhsVekx.js → ProductInventoryDialog-fV38GO1a.js} +1 -1
- package/dist/{ProductInventoryDialog.vue_vue_type_script_setup_true_lang-BB8UIIsW.js → ProductInventoryDialog.vue_vue_type_script_setup_true_lang-Bzb3RrMg.js} +1 -1
- package/dist/ProductList.vue_vue_type_script_setup_true_lang-BwKQESr3.js +2765 -0
- package/dist/{ProductVariantTranslationSheet.vue_vue_type_script_setup_true_lang-BMDSkfcn.js → ProductVariantTranslationSheet.vue_vue_type_script_setup_true_lang-CDYcHXo1.js} +1 -1
- package/dist/{Products-Cn6j1DOQ.js → Products-B8tysOAL.js} +3 -3
- package/dist/Publish-DTvOvFNa.js +1337 -0
- package/dist/Recipe-Ddx31csF.js +388 -0
- package/dist/{Scheduler-DlaSVACJ.js → Scheduler-CST5L_cw.js} +314 -254
- package/dist/ServingSequence-DYyEZI2S.js +374 -0
- package/dist/{Setting-CyCp2uw4.js → Setting-Ip0pGjks.js} +6 -6
- package/dist/Subcategory-BIgjzVta.js +459 -0
- package/dist/{Takeaway-sVVykWDg.js → Takeaway-CekhGM-m.js} +2 -2
- package/dist/{Takeaway-tYHCAXYU.js → Takeaway-aXsPg4JT.js} +5 -5
- package/dist/{TakeawayList.vue_vue_type_script_setup_true_lang-CV24v8Zg.js → TakeawayList.vue_vue_type_script_setup_true_lang-CaRR4_j3.js} +4 -4
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-CshqYpc9.js +1291 -0
- package/dist/Unit-BMW8u0Us.js +424 -0
- package/dist/{Variant-BNnR5rLv.js → Variant-CZsrYRMU.js} +5 -5
- package/dist/{_id_-a9ZtdjtT.js → _id_-D4swrvNa.js} +3 -3
- package/dist/{app-CmElp8cO.js → app-BWwwHsWi.js} +337 -337
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/app.d.ts +80 -0
- package/dist/apps/mf-menu/src/components/PriceTier/LinkPriceTierSection.vue.d.ts +9 -0
- package/dist/apps/mf-menu/src/components/Product/BulkCategorySelect.vue.d.ts +37 -0
- package/dist/apps/mf-menu/src/components/Product/ProductAttributeFilter.vue.d.ts +11 -1
- package/dist/apps/mf-menu/src/components/ProductList.vue.d.ts +2 -2
- package/dist/apps/mf-menu/src/components/feature/NestedGroupManager/NestedGroupOverrideSheets.vue.d.ts +27 -0
- package/dist/apps/mf-menu/src/components/feature/RestaurantAttributesFilter.vue.d.ts +20 -0
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{menu-compute-B_wpWLAj.js → menu-compute-D7TdiHt4.js} +4 -4
- package/dist/assets/{validate-menu-DjxNxUxH.js → validate-menu-DXppWUVq.js} +2 -2
- package/dist/mf-menu-portal.css +1 -1
- package/dist/{provide-BJRbSauL.js → provide-CDmXzkhz.js} +67539 -65978
- package/dist/{useActionFeedback-89GwO41T.js → useActionFeedback-Dm2HDa_2.js} +1 -1
- package/dist/{FormSection.vue_vue_type_script_setup_true_lang-pY-_msnM.js → vuedraggable-CBtQLb_S.js} +140 -139
- package/package.json +2 -2
- package/dist/CatalogEditor.vue_vue_type_script_setup_true_lang-Byp1db9_.js +0 -484
- package/dist/CategoryList.vue_vue_type_script_setup_true_lang-CrHYjrTn.js +0 -797
- package/dist/GroupList.vue_vue_type_script_setup_true_lang-CWr52_a-.js +0 -2183
- package/dist/Ingredient-BMAlctE4.js +0 -463
- package/dist/LinkProductSideSheet.vue_vue_type_script_setup_true_lang-CR99740r.js +0 -709
- package/dist/OrderPacing-Bz5kn6DY.js +0 -698
- package/dist/PrintRoute-BnARWdR2.js +0 -473
- package/dist/ProductChipSummary.vue_vue_type_script_setup_true_lang-D8DygCBl.js +0 -110
- package/dist/ProductGroupCreateSheet.vue_vue_type_script_setup_true_lang-DryxrG-x.js +0 -1257
- package/dist/ProductList.vue_vue_type_script_setup_true_lang-BDnTs366.js +0 -10353
- package/dist/Publish-BPJhG39B.js +0 -1261
- package/dist/Recipe-mt1vec5-.js +0 -350
- package/dist/ServingSequence-Cr1REWZP.js +0 -336
- package/dist/Subcategory-kuB7gYvc.js +0 -412
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-Dz-Chgek.js +0 -1213
- package/dist/Unit-BSOvZxRy.js +0 -385
- package/dist/apps/mf-menu/src/views/MenuManagementEditor/RestaurantAttributesFilter.vue.d.ts +0 -2
|
@@ -1,709 +0,0 @@
|
|
|
1
|
-
import { defineComponent as Le, ref as L, computed as h, watch as ae, resolveComponent as S, openBlock as m, createBlock as V, unref as a, withCtx as k, createElementBlock as g, createVNode as r, createElementVNode as i, toDisplayString as b, createCommentVNode as B, withModifiers as W, Fragment as H, renderList as J, withDirectives as Ee } from "vue";
|
|
2
|
-
import { d as Oe } from "./FormSection.vue_vue_type_script_setup_true_lang-pY-_msnM.js";
|
|
3
|
-
import { useI18n as xe, ItemSelector as Ne } from "@feedmepos/mf-common";
|
|
4
|
-
import { components as Pe } from "@feedmepos/ui-library";
|
|
5
|
-
import { r as Ae } from "./provide-BJRbSauL.js";
|
|
6
|
-
import { r as Ue, a as ne } from "./ruleValueKey-BF52PuHb.js";
|
|
7
|
-
import { _ as je } from "./index.vue_vue_type_script_setup_true_lang-CGPDazqs.js";
|
|
8
|
-
import { u as ze } from "./useEditorValidation-Ctef5Bxt.js";
|
|
9
|
-
const Ge = {
|
|
10
|
-
ALL: "menu.order.from.options.all",
|
|
11
|
-
POS_ONLY: "menu.order.from.options.pos_only",
|
|
12
|
-
NONE: "menu.order.from.options.none"
|
|
13
|
-
}, wl = {
|
|
14
|
-
NORMAL: "menu.group.list.types.normal",
|
|
15
|
-
PRODUCT: "menu.group.list.types.product",
|
|
16
|
-
DYNAMIC: "menu.group.list.types.dynamic"
|
|
17
|
-
}, Rl = {
|
|
18
|
-
ALL: "menu.product.table.availability.all",
|
|
19
|
-
POS_ONLY: "menu.product.table.availability.pos_only",
|
|
20
|
-
NONE: "menu.product.table.availability.none"
|
|
21
|
-
}, Be = { class: "fm-typo-en-title-md-600 mr-auto" }, Me = {
|
|
22
|
-
key: 0,
|
|
23
|
-
class: "py-8 px-8 overflow-y-auto"
|
|
24
|
-
}, $e = {
|
|
25
|
-
key: 1,
|
|
26
|
-
class: "p-8 overflow-y-auto flex flex-col gap-16"
|
|
27
|
-
}, De = { class: "relative top-0 -mb-8 leading-6 tracking-normal fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Ke = {
|
|
28
|
-
key: 0,
|
|
29
|
-
class: "text-fm-color-typo-error",
|
|
30
|
-
role: "alert"
|
|
31
|
-
}, Te = { class: "flex flex-col gap-8" }, Ye = { class: "border border-fm-color-neutral-gray-200 rounded-md p-16" }, qe = { class: "flex items-center justify-between gap-8" }, We = { class: "flex items-center gap-8 min-w-0" }, He = { class: "text-fm-color-neutral-gray-300" }, Je = { class: "flex gap-8" }, Qe = { class: "flex flex-col gap-8 mt-8" }, Xe = { class: "fm-typo-en-body-lg-600" }, Ze = { class: "flex gap-8" }, el = { class: "fm-typo-en-body-lg-600" }, ll = {
|
|
32
|
-
key: 0,
|
|
33
|
-
class: "text-fm-color-neutral-gray-300 pl-16"
|
|
34
|
-
}, tl = { class: "flex items-center gap-24" }, ol = { class: "fm-typo-en-headline-lg-600" }, al = { class: "overflow-y-auto" }, nl = { class: "mt-24 flex flex-col gap-16" }, ul = { class: "text-fm-color-typo-primary fm-typo-en-body-lg-600" }, sl = { class: "mt-24 flex flex-col gap-16" }, rl = { class: "link-product-rule-editor-sheet-marker fm-typo-en-body-lg-600" }, il = { class: "flex w-full justify-between gap-16" }, dl = {
|
|
35
|
-
key: 0,
|
|
36
|
-
class: "flex w-full [&>*]:w-full"
|
|
37
|
-
}, cl = { class: "break-all fm-typo-en-body-lg-400 line-clamp-1" }, ml = { class: "flex w-full items-center justify-end gap-16" }, pl = {
|
|
38
|
-
key: 0,
|
|
39
|
-
class: "flex gap-8 items-center justify-start"
|
|
40
|
-
}, _l = {
|
|
41
|
-
key: 1,
|
|
42
|
-
class: "flex gap-8 items-center justify-start"
|
|
43
|
-
}, Vl = /* @__PURE__ */ Le({
|
|
44
|
-
__name: "LinkProductSideSheet",
|
|
45
|
-
props: {
|
|
46
|
-
modelValue: { type: Boolean },
|
|
47
|
-
catalogue: {},
|
|
48
|
-
selectedProductIds: { default: () => [] },
|
|
49
|
-
selectedProducts: { default: void 0 },
|
|
50
|
-
selectVariant: { type: Boolean, default: !1 },
|
|
51
|
-
title: {},
|
|
52
|
-
rulesSession: { default: null },
|
|
53
|
-
rulesView: { default: null },
|
|
54
|
-
selectionSession: { default: null }
|
|
55
|
-
},
|
|
56
|
-
emits: ["update:modelValue", "submit", "submitLinks", "submit-rules"],
|
|
57
|
-
setup(ue, { emit: se }) {
|
|
58
|
-
const u = ue, E = se, { t: o } = xe(), re = {
|
|
59
|
-
mounted: (e, t) => {
|
|
60
|
-
var l;
|
|
61
|
-
(l = e.querySelector("input")) == null || l.setAttribute("aria-label", t.value);
|
|
62
|
-
},
|
|
63
|
-
updated: (e, t) => {
|
|
64
|
-
var l;
|
|
65
|
-
(l = e.querySelector("input")) == null || l.setAttribute("aria-label", t.value);
|
|
66
|
-
}
|
|
67
|
-
}, w = L("normal"), R = L(null), A = L([]), Q = ze(() => R.value), U = L([]), X = [
|
|
68
|
-
{ value: "in", label: "menu.rule_groups.condition_view.operator.in" },
|
|
69
|
-
{
|
|
70
|
-
value: "notIn",
|
|
71
|
-
label: "menu.rule_groups.condition_view.operator.not_in"
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
value: "startsWith",
|
|
75
|
-
label: "menu.rule_groups.condition_view.operator.starts_with"
|
|
76
|
-
}
|
|
77
|
-
], f = h(() => u.rulesView ?? null), M = h(
|
|
78
|
-
() => {
|
|
79
|
-
var e;
|
|
80
|
-
return !!u.rulesSession && ((e = f.value) == null ? void 0 : e.rulesCapability.state) === "allowed";
|
|
81
|
-
}
|
|
82
|
-
), O = h(() => {
|
|
83
|
-
var e;
|
|
84
|
-
return ((e = f.value) == null ? void 0 : e.rules) ?? [];
|
|
85
|
-
}), Z = h(() => R.value !== null), ie = h(
|
|
86
|
-
() => X.map((e) => ({ label: o(e.label), value: e.value }))
|
|
87
|
-
);
|
|
88
|
-
function de() {
|
|
89
|
-
var e;
|
|
90
|
-
return (((e = f.value) == null ? void 0 : e.attributeOptions) ?? []).map((t) => ({
|
|
91
|
-
label: o(t.label, t.labelParams ?? {}),
|
|
92
|
-
value: t.key
|
|
93
|
-
}));
|
|
94
|
-
}
|
|
95
|
-
function ce(e) {
|
|
96
|
-
var t, l;
|
|
97
|
-
return (((l = (t = f.value) == null ? void 0 : t.attributeOptions.find(
|
|
98
|
-
(n) => n.key === e.attribute
|
|
99
|
-
)) == null ? void 0 : l.values) ?? []).map((n) => ({
|
|
100
|
-
label: n.value === null ? o("menu.link_product.rules.addon") : n.label,
|
|
101
|
-
// FmSelect needs a primitive; a value travels as its key.
|
|
102
|
-
value: ne(n.value)
|
|
103
|
-
}));
|
|
104
|
-
}
|
|
105
|
-
function me(e) {
|
|
106
|
-
var l;
|
|
107
|
-
const t = (l = f.value) == null ? void 0 : l.attributeOptions.find(
|
|
108
|
-
(n) => n.key === e.attribute
|
|
109
|
-
);
|
|
110
|
-
return e.values.map((n) => {
|
|
111
|
-
const p = t == null ? void 0 : t.values.find(
|
|
112
|
-
(I) => I.value === n
|
|
113
|
-
);
|
|
114
|
-
return (p == null ? void 0 : p.value) === null ? o("menu.link_product.rules.addon") : (p == null ? void 0 : p.label) ?? String(n);
|
|
115
|
-
}).join(o("menu.link_product.rules.value_separator"));
|
|
116
|
-
}
|
|
117
|
-
function pe(e, t) {
|
|
118
|
-
return e.values[t] === null ? o("menu.link_product.rules.addon") : e.valueLabels[t] ?? "";
|
|
119
|
-
}
|
|
120
|
-
function _e(e) {
|
|
121
|
-
return e.values.map(
|
|
122
|
-
(t, l) => pe(e, l)
|
|
123
|
-
).join(o("menu.link_product.rules.value_separator"));
|
|
124
|
-
}
|
|
125
|
-
function $(e) {
|
|
126
|
-
const t = u.rulesSession;
|
|
127
|
-
if (!t) return;
|
|
128
|
-
const l = (e == null ? void 0 : e.id) ?? t.addRule();
|
|
129
|
-
l && t.openRuleEditor(l) && (U.value = [], R.value = l);
|
|
130
|
-
}
|
|
131
|
-
function x() {
|
|
132
|
-
var e;
|
|
133
|
-
(e = u.rulesSession) == null || e.closeRuleEditor(), R.value = null, U.value = [];
|
|
134
|
-
}
|
|
135
|
-
function ve() {
|
|
136
|
-
const e = R.value, t = u.rulesSession;
|
|
137
|
-
if (!e || !t) return;
|
|
138
|
-
const l = t.saveRuleEditor();
|
|
139
|
-
l.kind === "accepted" ? x() : l.kind === "rejected" && (U.value = l.issues, Q.submit(
|
|
140
|
-
async () => ({ kind: "rejected", issues: l.issues })
|
|
141
|
-
));
|
|
142
|
-
}
|
|
143
|
-
const D = L(""), ee = h(
|
|
144
|
-
() => {
|
|
145
|
-
var e;
|
|
146
|
-
return ((e = P.value) == null ? void 0 : e.ruleGroupIds) ?? [];
|
|
147
|
-
}
|
|
148
|
-
), be = h(() => {
|
|
149
|
-
var l;
|
|
150
|
-
const e = ((l = f.value) == null ? void 0 : l.ruleGroupOptions) ?? [], t = D.value.trim().toLowerCase();
|
|
151
|
-
return t ? e.filter(
|
|
152
|
-
(n) => n.name.toLowerCase().includes(t)
|
|
153
|
-
) : e;
|
|
154
|
-
});
|
|
155
|
-
function fe(e) {
|
|
156
|
-
const t = u.rulesSession;
|
|
157
|
-
if (!t) return;
|
|
158
|
-
const l = ee.value;
|
|
159
|
-
t.setRuleEditorGroupIds(
|
|
160
|
-
l.includes(e) ? l.filter((n) => n !== e) : [...l, e]
|
|
161
|
-
);
|
|
162
|
-
}
|
|
163
|
-
function C(e, t) {
|
|
164
|
-
var I, G;
|
|
165
|
-
const l = `conditions.${e}.${t}`, n = (I = f.value) == null ? void 0 : I.editor, p = n ? n.issues : U.value;
|
|
166
|
-
return Q.issue(((G = P.value) == null ? void 0 : G.fieldIssues) ?? {}, l) ?? p.find((Y) => Y.field === l) ?? null;
|
|
167
|
-
}
|
|
168
|
-
function j(e) {
|
|
169
|
-
return e ? o(e.code) : "";
|
|
170
|
-
}
|
|
171
|
-
function ye(e) {
|
|
172
|
-
var l;
|
|
173
|
-
const t = (l = u.rulesSession) == null ? void 0 : l.reorderRules(e.map((n) => n.id));
|
|
174
|
-
A.value = (t == null ? void 0 : t.kind) === "rejected" ? t.issues : [];
|
|
175
|
-
}
|
|
176
|
-
function ge(e) {
|
|
177
|
-
var l;
|
|
178
|
-
const t = (l = u.rulesSession) == null ? void 0 : l.duplicateRule(e);
|
|
179
|
-
A.value = (t == null ? void 0 : t.kind) === "rejected" ? t.issues : [];
|
|
180
|
-
}
|
|
181
|
-
function ke(e) {
|
|
182
|
-
return o(Ge[e]);
|
|
183
|
-
}
|
|
184
|
-
function N(e) {
|
|
185
|
-
return o("menu.link_product.rules.rule_number", { index: e + 1 });
|
|
186
|
-
}
|
|
187
|
-
function F(e) {
|
|
188
|
-
return o("menu.link_product.rules.condition_number", { index: e + 1 });
|
|
189
|
-
}
|
|
190
|
-
function he(e) {
|
|
191
|
-
var t;
|
|
192
|
-
(t = u.rulesSession) == null || t.removeRuleEditorCondition(e);
|
|
193
|
-
}
|
|
194
|
-
function Se() {
|
|
195
|
-
var e;
|
|
196
|
-
(e = u.rulesSession) == null || e.addRuleEditorCondition();
|
|
197
|
-
}
|
|
198
|
-
function we() {
|
|
199
|
-
E("submit-rules");
|
|
200
|
-
}
|
|
201
|
-
function le() {
|
|
202
|
-
return u.selectedProducts ?? u.selectedProductIds.map((e) => ({ itemId: e }));
|
|
203
|
-
}
|
|
204
|
-
function te(e) {
|
|
205
|
-
const t = {};
|
|
206
|
-
for (const l of e) {
|
|
207
|
-
const n = t[l.itemId] ?? [];
|
|
208
|
-
n.push(
|
|
209
|
-
l.combinationKey ? { _id: l.itemId, combinationKey: l.combinationKey } : { _id: l.itemId }
|
|
210
|
-
), t[l.itemId] = n;
|
|
211
|
-
}
|
|
212
|
-
return t;
|
|
213
|
-
}
|
|
214
|
-
const z = L(te(le()));
|
|
215
|
-
function Re(e) {
|
|
216
|
-
z.value = e, u.selectionSession && u.selectionSession.setSelectedProductIds([
|
|
217
|
-
...new Set(
|
|
218
|
-
Object.values(e).flat().map((t) => t._id)
|
|
219
|
-
)
|
|
220
|
-
]);
|
|
221
|
-
}
|
|
222
|
-
ae(
|
|
223
|
-
() => u.modelValue,
|
|
224
|
-
(e) => {
|
|
225
|
-
var t;
|
|
226
|
-
if (e) {
|
|
227
|
-
const l = (t = u.selectionSession) == null ? void 0 : t.get(), n = (l == null ? void 0 : l.status) === "ready" ? l.value.selectedProductIds : void 0;
|
|
228
|
-
z.value = te(
|
|
229
|
-
n ? n.map((p) => ({ itemId: p })) : le()
|
|
230
|
-
), w.value = M.value && O.value.length > 0 ? "rules" : "normal";
|
|
231
|
-
} else
|
|
232
|
-
x();
|
|
233
|
-
}
|
|
234
|
-
), ae(O, (e) => {
|
|
235
|
-
u.modelValue && M.value && e.length > 0 && R.value === null && w.value === "normal" && (w.value = "rules");
|
|
236
|
-
});
|
|
237
|
-
const K = h(() => Object.values(z.value).flat()), P = h(() => {
|
|
238
|
-
var t, l;
|
|
239
|
-
if ((t = f.value) != null && t.editor) return f.value.editor;
|
|
240
|
-
const e = (l = f.value) == null ? void 0 : l.rules.find(
|
|
241
|
-
(n) => n.id === R.value
|
|
242
|
-
);
|
|
243
|
-
return e ? {
|
|
244
|
-
ruleId: e.id,
|
|
245
|
-
mode: "update",
|
|
246
|
-
orderFrom: e.orderFrom,
|
|
247
|
-
ruleGroupIds: e.ruleGroupIds,
|
|
248
|
-
conditions: e.conditions.map((n) => ({
|
|
249
|
-
attribute: n.attribute,
|
|
250
|
-
operator: n.operator,
|
|
251
|
-
values: n.values
|
|
252
|
-
})),
|
|
253
|
-
issues: [],
|
|
254
|
-
fieldIssues: {}
|
|
255
|
-
} : null;
|
|
256
|
-
}), Ve = h(
|
|
257
|
-
() => {
|
|
258
|
-
var e;
|
|
259
|
-
return (((e = u.catalogue) == null ? void 0 : e.groups) ?? []).map((t) => ({
|
|
260
|
-
id: t.id,
|
|
261
|
-
name: t.isSynthetic ? o("menu.tree_editor.labels.addon") : t.name,
|
|
262
|
-
items: t.products.map((l) => ({
|
|
263
|
-
_id: l.id,
|
|
264
|
-
name: l.name,
|
|
265
|
-
code: l.code,
|
|
266
|
-
codeName: l.label,
|
|
267
|
-
// `ItemSelector` reads combinations off `variant.variantCombinations`
|
|
268
|
-
// and labels them by `codeName` (mf-common ItemSelector.vue:83-107); it
|
|
269
|
-
// only maps them when `selectVariant` is on, so this is inert for the
|
|
270
|
-
// hosts that link whole products.
|
|
271
|
-
variant: {
|
|
272
|
-
variantCombinations: l.variants.map((n) => ({
|
|
273
|
-
combinationKey: n.combinationKey,
|
|
274
|
-
codeName: n.label
|
|
275
|
-
}))
|
|
276
|
-
},
|
|
277
|
-
customAttributes: l.customAttributes
|
|
278
|
-
}))
|
|
279
|
-
}));
|
|
280
|
-
}
|
|
281
|
-
);
|
|
282
|
-
function T() {
|
|
283
|
-
E("update:modelValue", !1);
|
|
284
|
-
}
|
|
285
|
-
function Ce() {
|
|
286
|
-
u.selectedProducts !== void 0 ? E(
|
|
287
|
-
"submitLinks",
|
|
288
|
-
K.value.map(
|
|
289
|
-
(e) => e.combinationKey ? { itemId: e._id, combinationKey: e.combinationKey } : { itemId: e._id }
|
|
290
|
-
)
|
|
291
|
-
) : E(
|
|
292
|
-
"submit",
|
|
293
|
-
K.value.map((e) => e._id)
|
|
294
|
-
);
|
|
295
|
-
}
|
|
296
|
-
return (e, t) => {
|
|
297
|
-
const l = S("FmButton"), n = S("FmSwitch"), p = S("FmRadio"), I = S("FmRadioGroup"), G = S("FmSearch"), Y = S("FmMenuItem"), Fe = S("FmMenu"), q = S("FmSelect"), Ie = S("FmTextField"), oe = S("FmSideSheet");
|
|
298
|
-
return m(), V(oe, {
|
|
299
|
-
"close-button": !1,
|
|
300
|
-
"is-container": a(Pe).FmForm,
|
|
301
|
-
"is-container-props": {
|
|
302
|
-
onValidationSuccess: w.value === "normal" ? Ce : we
|
|
303
|
-
},
|
|
304
|
-
"max-width": 760,
|
|
305
|
-
"model-value": u.modelValue,
|
|
306
|
-
"z-index": 100,
|
|
307
|
-
"onUpdate:modelValue": t[4] || (t[4] = (c) => E("update:modelValue", c))
|
|
308
|
-
}, {
|
|
309
|
-
"side-sheet-header": k(() => [
|
|
310
|
-
r(l, {
|
|
311
|
-
"aria-label": a(o)("menu.common.actions.back"),
|
|
312
|
-
class: "cursor-pointer mr-4",
|
|
313
|
-
"prepend-icon": "arrow_back",
|
|
314
|
-
variant: "tertiary",
|
|
315
|
-
onClick: T
|
|
316
|
-
}, null, 8, ["aria-label"]),
|
|
317
|
-
i("p", Be, b(u.title ?? a(o)("menu.link_product.title")), 1),
|
|
318
|
-
M.value ? (m(), V(n, {
|
|
319
|
-
key: 0,
|
|
320
|
-
"model-value": w.value === "rules",
|
|
321
|
-
label: a(o)("menu.link_product.rules.section_title"),
|
|
322
|
-
"onUpdate:modelValue": t[0] || (t[0] = (c) => w.value = c ? "rules" : "normal")
|
|
323
|
-
}, null, 8, ["model-value", "label"])) : B("", !0)
|
|
324
|
-
]),
|
|
325
|
-
"side-sheet-footer": k(() => {
|
|
326
|
-
var c, y;
|
|
327
|
-
return [
|
|
328
|
-
w.value === "normal" ? (m(), g("div", pl, [
|
|
329
|
-
r(l, {
|
|
330
|
-
label: a(o)("menu.common.actions.confirm"),
|
|
331
|
-
size: "lg",
|
|
332
|
-
type: "submit",
|
|
333
|
-
variant: "primary"
|
|
334
|
-
}, null, 8, ["label"]),
|
|
335
|
-
r(l, {
|
|
336
|
-
label: a(o)("menu.common.actions.cancel"),
|
|
337
|
-
size: "lg",
|
|
338
|
-
variant: "tertiary",
|
|
339
|
-
onClick: T
|
|
340
|
-
}, null, 8, ["label"])
|
|
341
|
-
])) : (m(), g("div", _l, [
|
|
342
|
-
r(l, {
|
|
343
|
-
label: a(o)("menu.common.actions.confirm"),
|
|
344
|
-
size: "lg",
|
|
345
|
-
variant: "primary",
|
|
346
|
-
disabled: ((c = f.value) == null ? void 0 : c.submit.state) !== "allowed",
|
|
347
|
-
loading: ((y = f.value) == null ? void 0 : y.status) === "submitting",
|
|
348
|
-
type: "submit"
|
|
349
|
-
}, null, 8, ["label", "disabled", "loading"]),
|
|
350
|
-
r(l, {
|
|
351
|
-
label: a(o)("common.cancel"),
|
|
352
|
-
size: "lg",
|
|
353
|
-
variant: "tertiary",
|
|
354
|
-
onClick: T
|
|
355
|
-
}, null, 8, ["label"])
|
|
356
|
-
]))
|
|
357
|
-
];
|
|
358
|
-
}),
|
|
359
|
-
default: k(() => [
|
|
360
|
-
w.value === "normal" ? (m(), g("div", Me, [
|
|
361
|
-
r(a(Ne), {
|
|
362
|
-
"auto-focus-search": !0,
|
|
363
|
-
"categorized-items": Ve.value,
|
|
364
|
-
data: z.value,
|
|
365
|
-
"select-variant": u.selectVariant,
|
|
366
|
-
"selected-items": K.value,
|
|
367
|
-
"show-addon": !0,
|
|
368
|
-
"show-variant": u.selectVariant,
|
|
369
|
-
"onUpdate:data": Re
|
|
370
|
-
}, null, 8, ["categorized-items", "data", "select-variant", "selected-items", "show-variant"])
|
|
371
|
-
])) : (m(), g("div", $e, [
|
|
372
|
-
i("p", De, b(a(o)("menu.link_product.rules.hint")), 1),
|
|
373
|
-
A.value.length > 0 ? (m(), g("p", Ke, b(j(A.value[0] ?? null)), 1)) : B("", !0),
|
|
374
|
-
r(a(Oe), {
|
|
375
|
-
"model-value": [...O.value],
|
|
376
|
-
"item-key": "id",
|
|
377
|
-
handle: ".link-product-rule-drag-handle",
|
|
378
|
-
class: "flex flex-col gap-8",
|
|
379
|
-
"onUpdate:modelValue": ye
|
|
380
|
-
}, {
|
|
381
|
-
item: k(({ element: c, index: y }) => [
|
|
382
|
-
i("div", Te, [
|
|
383
|
-
i("div", Ye, [
|
|
384
|
-
i("div", qe, [
|
|
385
|
-
i("div", We, [
|
|
386
|
-
r(l, {
|
|
387
|
-
class: "link-product-rule-drag-handle cursor-grab",
|
|
388
|
-
variant: "tertiary",
|
|
389
|
-
"prepend-icon": "drag_indicator",
|
|
390
|
-
"aria-label": a(o)("menu.common.labels.a11y_labelled_name", {
|
|
391
|
-
label: a(o)("menu.menu_setting.rule_groups.reorder_rule"),
|
|
392
|
-
name: N(y)
|
|
393
|
-
})
|
|
394
|
-
}, null, 8, ["aria-label"]),
|
|
395
|
-
i("p", He, b(N(y)), 1)
|
|
396
|
-
]),
|
|
397
|
-
i("div", Je, [
|
|
398
|
-
r(l, {
|
|
399
|
-
variant: "tertiary",
|
|
400
|
-
"prepend-icon": "edit",
|
|
401
|
-
"aria-label": a(o)("menu.common.labels.a11y_labelled_name", {
|
|
402
|
-
label: a(o)("menu.link_product.rules.edit_rule"),
|
|
403
|
-
name: N(y)
|
|
404
|
-
}),
|
|
405
|
-
onClick: W((d) => $(c), ["stop"])
|
|
406
|
-
}, null, 8, ["aria-label", "onClick"]),
|
|
407
|
-
r(l, {
|
|
408
|
-
variant: "tertiary",
|
|
409
|
-
"prepend-icon": "file_copy",
|
|
410
|
-
"aria-label": a(o)("menu.common.labels.a11y_labelled_name", {
|
|
411
|
-
label: a(o)("menu.menu_setting.rule_groups.copy_rule"),
|
|
412
|
-
name: N(y)
|
|
413
|
-
}),
|
|
414
|
-
onClick: W((d) => ge(c.id), ["stop"])
|
|
415
|
-
}, null, 8, ["aria-label", "onClick"]),
|
|
416
|
-
r(l, {
|
|
417
|
-
variant: "tertiary",
|
|
418
|
-
"prepend-icon": "delete",
|
|
419
|
-
"text-color": "typo-error",
|
|
420
|
-
"aria-label": a(o)("menu.common.labels.a11y_labelled_name", {
|
|
421
|
-
label: a(o)("menu.menu_setting.rule_groups.remove_rule"),
|
|
422
|
-
name: N(y)
|
|
423
|
-
}),
|
|
424
|
-
onClick: W((d) => {
|
|
425
|
-
var s;
|
|
426
|
-
return (s = u.rulesSession) == null ? void 0 : s.removeRule(c.id);
|
|
427
|
-
}, ["stop"])
|
|
428
|
-
}, null, 8, ["aria-label", "onClick"])
|
|
429
|
-
])
|
|
430
|
-
]),
|
|
431
|
-
i("div", Qe, [
|
|
432
|
-
i("div", Xe, b(a(o)("menu.rule_groups.condition_view.when")), 1),
|
|
433
|
-
(m(!0), g(H, null, J(c.conditions, (d, s) => {
|
|
434
|
-
var _;
|
|
435
|
-
return m(), g("div", {
|
|
436
|
-
key: `${c.id}-${s}`,
|
|
437
|
-
class: "flex gap-8"
|
|
438
|
-
}, [
|
|
439
|
-
i("span", null, b(a(o)("menu.link_product.rules.condition_summary", {
|
|
440
|
-
condition: F(s),
|
|
441
|
-
attribute: a(o)(
|
|
442
|
-
d.attributeLabel,
|
|
443
|
-
d.attributeLabelParams ?? {}
|
|
444
|
-
),
|
|
445
|
-
operator: a(o)(
|
|
446
|
-
((_ = X.find(
|
|
447
|
-
(v) => v.value === d.operator
|
|
448
|
-
)) == null ? void 0 : _.label) ?? ""
|
|
449
|
-
),
|
|
450
|
-
value: _e(d)
|
|
451
|
-
})), 1)
|
|
452
|
-
]);
|
|
453
|
-
}), 128)),
|
|
454
|
-
i("div", Ze, [
|
|
455
|
-
i("span", el, b(a(o)("menu.rule_groups.condition_view.then")), 1),
|
|
456
|
-
i("span", null, b(a(o)("menu.link_product.rules.order_from_summary", {
|
|
457
|
-
label: a(o)("menu.link_product.rules.order_from"),
|
|
458
|
-
value: ke(c.orderFrom)
|
|
459
|
-
})), 1)
|
|
460
|
-
])
|
|
461
|
-
])
|
|
462
|
-
]),
|
|
463
|
-
y < O.value.length - 1 ? (m(), g("div", ll, b(a(o)("menu.link_product.rules.or")), 1)) : B("", !0)
|
|
464
|
-
])
|
|
465
|
-
]),
|
|
466
|
-
_: 1
|
|
467
|
-
}, 8, ["model-value"]),
|
|
468
|
-
O.value.length === 0 ? (m(), V(a(je), {
|
|
469
|
-
key: 1,
|
|
470
|
-
title: a(o)("menu.rule_groups.condition_view.empty_data.no_rules_added"),
|
|
471
|
-
subtitle: a(o)("menu.rule_groups.condition_view.empty_data.subtitle"),
|
|
472
|
-
action: {
|
|
473
|
-
text: a(o)("menu.link_product.rules.add_rule"),
|
|
474
|
-
callback: () => $()
|
|
475
|
-
}
|
|
476
|
-
}, null, 8, ["title", "subtitle", "action"])) : (m(), V(l, {
|
|
477
|
-
key: 2,
|
|
478
|
-
variant: "primary",
|
|
479
|
-
"prepend-icon": "add",
|
|
480
|
-
label: a(o)("menu.link_product.rules.add_rule"),
|
|
481
|
-
onClick: t[1] || (t[1] = (c) => $())
|
|
482
|
-
}, null, 8, ["label"]))
|
|
483
|
-
])),
|
|
484
|
-
Z.value ? (m(), V(oe, {
|
|
485
|
-
key: 2,
|
|
486
|
-
"model-value": Z.value,
|
|
487
|
-
"max-width": 760,
|
|
488
|
-
"z-index": 101,
|
|
489
|
-
"close-button": !1,
|
|
490
|
-
"onUpdate:modelValue": x
|
|
491
|
-
}, {
|
|
492
|
-
"side-sheet-header": k(() => {
|
|
493
|
-
var c;
|
|
494
|
-
return [
|
|
495
|
-
i("div", tl, [
|
|
496
|
-
r(l, {
|
|
497
|
-
variant: "tertiary",
|
|
498
|
-
"prepend-icon": "arrow_back",
|
|
499
|
-
"aria-label": a(o)("menu.common.actions.back"),
|
|
500
|
-
onClick: x
|
|
501
|
-
}, null, 8, ["aria-label"]),
|
|
502
|
-
i("p", ol, b(a(o)(
|
|
503
|
-
((c = P.value) == null ? void 0 : c.mode) === "create" ? "menu.link_product.rules.add_rule" : "menu.link_product.rules.edit_rule"
|
|
504
|
-
)), 1)
|
|
505
|
-
])
|
|
506
|
-
];
|
|
507
|
-
}),
|
|
508
|
-
"side-sheet-footer": k(() => [
|
|
509
|
-
i("div", ml, [
|
|
510
|
-
r(l, {
|
|
511
|
-
label: a(o)("common.cancel"),
|
|
512
|
-
variant: "secondary",
|
|
513
|
-
onClick: x
|
|
514
|
-
}, null, 8, ["label"]),
|
|
515
|
-
r(l, {
|
|
516
|
-
label: a(o)("common.save"),
|
|
517
|
-
variant: "primary",
|
|
518
|
-
onClick: ve
|
|
519
|
-
}, null, 8, ["label"])
|
|
520
|
-
])
|
|
521
|
-
]),
|
|
522
|
-
default: k(() => {
|
|
523
|
-
var c, y;
|
|
524
|
-
return [
|
|
525
|
-
i("div", al, [
|
|
526
|
-
r(I, {
|
|
527
|
-
"model-value": ((c = P.value) == null ? void 0 : c.orderFrom) ?? "ALL",
|
|
528
|
-
label: a(o)("menu.link_product.rules.availability"),
|
|
529
|
-
"onUpdate:modelValue": t[2] || (t[2] = (d) => {
|
|
530
|
-
var s;
|
|
531
|
-
return (s = u.rulesSession) == null ? void 0 : s.setRuleEditorOrderFrom(
|
|
532
|
-
d
|
|
533
|
-
);
|
|
534
|
-
})
|
|
535
|
-
}, {
|
|
536
|
-
default: k(() => [
|
|
537
|
-
r(p, {
|
|
538
|
-
label: a(o)("menu.link_product.rules.all"),
|
|
539
|
-
value: "ALL"
|
|
540
|
-
}, null, 8, ["label"]),
|
|
541
|
-
r(p, {
|
|
542
|
-
label: a(o)("menu.link_product.rules.pos_only"),
|
|
543
|
-
value: "POS_ONLY"
|
|
544
|
-
}, null, 8, ["label"]),
|
|
545
|
-
r(p, {
|
|
546
|
-
label: a(o)("menu.link_product.rules.none"),
|
|
547
|
-
value: "NONE"
|
|
548
|
-
}, null, 8, ["label"])
|
|
549
|
-
]),
|
|
550
|
-
_: 1
|
|
551
|
-
}, 8, ["model-value", "label"]),
|
|
552
|
-
t[5] || (t[5] = i("div", { class: "mt-24 h-px w-full bg-fm-color-neutral-gray-100" }, null, -1)),
|
|
553
|
-
i("div", nl, [
|
|
554
|
-
i("p", ul, b(a(o)("menu.link_product.rules.use_rule_group")), 1),
|
|
555
|
-
r(Fe, { "close-on-click": !1 }, {
|
|
556
|
-
"menu-button": k(() => [
|
|
557
|
-
r(l, {
|
|
558
|
-
variant: "plain",
|
|
559
|
-
"prepend-icon": "add",
|
|
560
|
-
class: "self-start",
|
|
561
|
-
label: a(o)("menu.link_product.rules.add_rule_group")
|
|
562
|
-
}, null, 8, ["label"])
|
|
563
|
-
]),
|
|
564
|
-
default: k(() => [
|
|
565
|
-
r(G, {
|
|
566
|
-
"model-value": D.value,
|
|
567
|
-
"onUpdate:modelValue": t[3] || (t[3] = (d) => D.value = d),
|
|
568
|
-
class: "w-[200px] px-8",
|
|
569
|
-
placeholder: a(o)("menu.link_product.rules.filter_result")
|
|
570
|
-
}, null, 8, ["model-value", "placeholder"]),
|
|
571
|
-
(m(!0), g(H, null, J(be.value, (d) => (m(), V(Y, {
|
|
572
|
-
key: d.id,
|
|
573
|
-
label: d.name,
|
|
574
|
-
"has-checkbox": "",
|
|
575
|
-
"model-value": ee.value.includes(d.id),
|
|
576
|
-
onClick: (s) => fe(d.id)
|
|
577
|
-
}, null, 8, ["label", "model-value", "onClick"]))), 128))
|
|
578
|
-
]),
|
|
579
|
-
_: 1
|
|
580
|
-
})
|
|
581
|
-
]),
|
|
582
|
-
i("div", sl, [
|
|
583
|
-
i("p", rl, b(a(o)("menu.rule_groups.condition_view.condition")), 1),
|
|
584
|
-
(m(!0), g(H, null, J(((y = P.value) == null ? void 0 : y.conditions) ?? [], (d, s) => (m(), g("div", {
|
|
585
|
-
key: s,
|
|
586
|
-
class: "flex justify-between gap-8"
|
|
587
|
-
}, [
|
|
588
|
-
i("div", il, [
|
|
589
|
-
r(q, {
|
|
590
|
-
class: "flex w-full",
|
|
591
|
-
"menu-z-index": 102,
|
|
592
|
-
"model-value": d.attribute,
|
|
593
|
-
items: de(),
|
|
594
|
-
placeholder: a(o)("menu.rule_groups.condition_view.select_item"),
|
|
595
|
-
"aria-label": a(o)("menu.common.labels.a11y_labelled_name", {
|
|
596
|
-
label: a(o)(
|
|
597
|
-
"menu.menu_setting.rule_groups.condition.attribute"
|
|
598
|
-
),
|
|
599
|
-
name: F(s)
|
|
600
|
-
}),
|
|
601
|
-
"onUpdate:modelValue": (_) => {
|
|
602
|
-
var v;
|
|
603
|
-
(v = u.rulesSession) == null || v.setRuleEditorCondition(s, {
|
|
604
|
-
attribute: _,
|
|
605
|
-
values: []
|
|
606
|
-
});
|
|
607
|
-
}
|
|
608
|
-
}, null, 8, ["model-value", "items", "placeholder", "aria-label", "onUpdate:modelValue"]),
|
|
609
|
-
r(q, {
|
|
610
|
-
class: "flex w-full",
|
|
611
|
-
"menu-z-index": 102,
|
|
612
|
-
"model-value": d.operator,
|
|
613
|
-
items: ie.value,
|
|
614
|
-
placeholder: a(o)("menu.rule_groups.condition_view.select_item"),
|
|
615
|
-
"aria-label": a(o)("menu.common.labels.a11y_labelled_name", {
|
|
616
|
-
label: a(o)(
|
|
617
|
-
"menu.menu_setting.rule_groups.condition.operator"
|
|
618
|
-
),
|
|
619
|
-
name: F(s)
|
|
620
|
-
}),
|
|
621
|
-
"error-messages": C(s, "operator") ? [j(C(s, "operator"))] : [],
|
|
622
|
-
"onUpdate:modelValue": (_) => {
|
|
623
|
-
var v;
|
|
624
|
-
return (v = u.rulesSession) == null ? void 0 : v.setRuleEditorCondition(s, {
|
|
625
|
-
operator: _
|
|
626
|
-
});
|
|
627
|
-
}
|
|
628
|
-
}, null, 8, ["model-value", "items", "placeholder", "aria-label", "error-messages", "onUpdate:modelValue"]),
|
|
629
|
-
a(Ae)(d.operator) === "text" ? Ee((m(), g("div", dl, [
|
|
630
|
-
r(Ie, {
|
|
631
|
-
"model-value": String(d.values[0] ?? ""),
|
|
632
|
-
placeholder: a(o)("menu.menu_setting.rule_groups.condition.value"),
|
|
633
|
-
"error-messages": C(s, "values") ? [j(C(s, "values"))] : [],
|
|
634
|
-
"onUpdate:modelValue": (_) => {
|
|
635
|
-
var v;
|
|
636
|
-
return (v = u.rulesSession) == null ? void 0 : v.setRuleEditorCondition(s, {
|
|
637
|
-
values: _ === "" || _ == null ? [] : [String(_)]
|
|
638
|
-
});
|
|
639
|
-
}
|
|
640
|
-
}, null, 8, ["model-value", "placeholder", "error-messages", "onUpdate:modelValue"])
|
|
641
|
-
])), [
|
|
642
|
-
[
|
|
643
|
-
re,
|
|
644
|
-
a(o)("menu.common.labels.a11y_labelled_name", {
|
|
645
|
-
label: a(o)("menu.menu_setting.rule_groups.condition.value"),
|
|
646
|
-
name: F(s)
|
|
647
|
-
})
|
|
648
|
-
]
|
|
649
|
-
]) : (m(), V(q, {
|
|
650
|
-
key: 1,
|
|
651
|
-
class: "flex w-full",
|
|
652
|
-
"menu-z-index": 102,
|
|
653
|
-
"model-value": d.values.map(a(ne)),
|
|
654
|
-
items: ce(d),
|
|
655
|
-
multiselect: "",
|
|
656
|
-
"hide-chips": "",
|
|
657
|
-
placeholder: a(o)("menu.rule_groups.condition_view.select_item"),
|
|
658
|
-
"aria-label": a(o)("menu.common.labels.a11y_labelled_name", {
|
|
659
|
-
label: a(o)("menu.menu_setting.rule_groups.condition.value"),
|
|
660
|
-
name: F(s)
|
|
661
|
-
}),
|
|
662
|
-
"error-messages": C(s, "values") ? [j(C(s, "values"))] : [],
|
|
663
|
-
"onUpdate:modelValue": (_) => {
|
|
664
|
-
var v;
|
|
665
|
-
return (v = u.rulesSession) == null ? void 0 : v.setRuleEditorCondition(s, {
|
|
666
|
-
values: _.map(a(Ue))
|
|
667
|
-
});
|
|
668
|
-
}
|
|
669
|
-
}, {
|
|
670
|
-
default: k(() => [
|
|
671
|
-
i("div", cl, b(me(d)), 1)
|
|
672
|
-
]),
|
|
673
|
-
_: 2
|
|
674
|
-
}, 1032, ["model-value", "items", "placeholder", "aria-label", "error-messages", "onUpdate:modelValue"]))
|
|
675
|
-
]),
|
|
676
|
-
r(l, {
|
|
677
|
-
variant: "tertiary",
|
|
678
|
-
"prepend-icon": "close",
|
|
679
|
-
"aria-label": a(o)("menu.common.labels.a11y_labelled_name", {
|
|
680
|
-
label: a(o)("menu.menu_setting.rule_groups.remove_condition"),
|
|
681
|
-
name: F(s)
|
|
682
|
-
}),
|
|
683
|
-
onClick: (_) => he(s)
|
|
684
|
-
}, null, 8, ["aria-label", "onClick"])
|
|
685
|
-
]))), 128)),
|
|
686
|
-
r(l, {
|
|
687
|
-
variant: "plain",
|
|
688
|
-
"prepend-icon": "add",
|
|
689
|
-
label: a(o)("menu.rule_groups.condition_view.add_condition"),
|
|
690
|
-
onClick: Se
|
|
691
|
-
}, null, 8, ["label"])
|
|
692
|
-
])
|
|
693
|
-
])
|
|
694
|
-
];
|
|
695
|
-
}),
|
|
696
|
-
_: 1
|
|
697
|
-
}, 8, ["model-value"])) : B("", !0)
|
|
698
|
-
]),
|
|
699
|
-
_: 1
|
|
700
|
-
}, 8, ["is-container", "is-container-props", "model-value"]);
|
|
701
|
-
};
|
|
702
|
-
}
|
|
703
|
-
});
|
|
704
|
-
export {
|
|
705
|
-
wl as A,
|
|
706
|
-
Rl as O,
|
|
707
|
-
Vl as _,
|
|
708
|
-
Ge as a
|
|
709
|
-
};
|