@feedmepos/mf-menu 0.31.40-beta.1 → 0.31.40-prod
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{App-C_ALgrKC.js → App-aWEH-ZEk.js} +9 -9
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-AXVCCDiV.js → ApplyProduct.vue_vue_type_script_setup_true_lang-jJyinQZl.js} +3 -3
- package/dist/{Catalog-DBvWM-YZ.js → Catalog-BoFfFdn8.js} +9 -8
- package/dist/{Category-BiwNTOVh.js → Category-CWYbb3Jn.js} +4 -4
- package/dist/{Category-CAaAB1-8.js → Category-DZ45uikR.js} +6 -6
- package/dist/{CookingGuide-BznTNUiJ.js → CookingGuide-BU0PRWIQ.js} +4 -4
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-B1TdO9EA.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-Z5xsKDIE.js} +1 -1
- package/dist/FormSection.vue_vue_type_script_setup_true_lang-CO4YGYLB.js +50 -0
- package/dist/{Group-DXqrDZdA.js → Group-BMQDeqiS.js} +1 -1
- package/dist/{Group-4T2hwciT.js → Group-C0T_uknK.js} +3 -3
- package/dist/{Group.vue_vue_type_script_setup_true_lang-fU3OB1n-.js → Group.vue_vue_type_script_setup_true_lang-DyfmY6F1.js} +8 -8
- package/dist/GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-D6qro5w_.js +367 -0
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-BUF8cX_0.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-Dl-Wvt3D.js} +14 -13
- package/dist/{Ingredient-Mu_eJx7y.js → Ingredient-3lwDUQx_.js} +3 -3
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-CiztSTwX.js → InventoryBinding.vue_vue_type_script_setup_true_lang-VLrrTkSC.js} +1052 -1052
- package/dist/LinkProductSideSheet-LDZjKX95.js +297 -0
- package/dist/{app-CiBqmBzO.js → LinkProductSideSheet.vue_vue_type_style_index_0_scoped_97fa9d58_lang-DvG3mOom.js} +2084 -2120
- package/dist/MenuSetting-AhutsCVy.js +185 -0
- package/dist/{PrintRoute-DMmxn1tn.js → PrintRoute-DfJ-vUAb.js} +4 -4
- package/dist/{Product-DFEFUdsO.js → Product-F4PoLm9v.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-CE97BGrQ.js → Product.vue_vue_type_script_setup_true_lang-DT5gffpA.js} +465 -468
- package/dist/{ProductInternalTools-RWFay1va.js → ProductInternalTools-DSGU-OqU.js} +6 -6
- package/dist/{Products-BjOSBQEO.js → Products-COzW2Z4g.js} +85 -88
- package/dist/{Publish-DGbl1JxA.js → Publish-CDXVWCk2.js} +3 -3
- package/dist/{Recipe-Bm0_j4M8.js → Recipe-BZx4wrcP.js} +4 -4
- package/dist/{Scheduler-CbtZrIxu.js → Scheduler-wHCWSeU2.js} +3 -3
- package/dist/{ServingSequence-C1BQE6G1.js → ServingSequence-BbYEhDYh.js} +3 -3
- package/dist/{Setting-OZXb-NaS.js → Setting-C9Tlw1Iy.js} +45 -44
- package/dist/{Subcategory-C4D_1CLD.js → Subcategory-C8AwfrKb.js} +4 -4
- package/dist/{Takeaway-tK8uFOZR.js → Takeaway-DaEUn-yM.js} +4 -4
- package/dist/{Takeaway-0tlgsUKh.js → Takeaway-t1053wg2.js} +1 -1
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-D3Sg5zlP.js → Takeaway.vue_vue_type_script_setup_true_lang-7XycP5fU.js} +5 -5
- package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-4aAus4BD.js → Thumbnail.vue_vue_type_script_setup_true_lang-B7oLH9cP.js} +95 -97
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-Ci6iqOry.js +5998 -0
- package/dist/{Unit-2VYRqrSm.js → Unit-CnqptGCz.js} +2 -2
- package/dist/{Variant-BSfm_eXa.js → Variant-DiOYOwJs.js} +3 -3
- package/dist/{_id_-HtNMxBb_.js → _id_-BSfU16VO.js} +75 -78
- package/dist/{app-5ADOT4BP.js → app-Cou6qPF2.js} +1 -1
- package/dist/{app-DzcR4qhA.js → app-Ddb81PNo.js} +278 -278
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/api/menu.d.ts +1 -2
- package/dist/apps/mf-menu/src/app.d.ts +0 -144
- package/dist/apps/mf-menu/src/components/feature/PriceTier/PriceTierRuleEditor.vue.d.ts +0 -36
- package/dist/apps/mf-menu/src/components/feature/RestaurantAttributesSelector.vue.d.ts +3 -9
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/useItemFormManagement.d.ts +9 -2
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/store/menuV2.d.ts +4 -294
- package/dist/apps/mf-menu/src/composable/linkProducts.d.ts +0 -40
- package/dist/apps/mf-menu/src/helper/import-export.d.ts +0 -285
- package/dist/apps/mf-menu/src/helper/menu.d.ts +0 -285
- package/dist/apps/mf-menu/src/manager/menu/item.d.ts +0 -285
- package/dist/apps/mf-menu/src/stores/menu.d.ts +3 -293
- package/dist/apps/mf-menu/src/views/Publish/UpdateCatalogDialog.vue.d.ts +0 -166
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/linked-status-B_crHhZH.js +24 -0
- package/dist/assets/override-menu-BmlCEpHH.js +24 -0
- package/dist/assets/validate-menu-CF-psoB-.js +24 -0
- package/dist/{catalog-BK6nDTbp.js → catalog-DSuJhsUb.js} +1 -1
- package/dist/{catalogSetting-C1gHhApy.js → catalogSetting-C3gEw9ov.js} +1 -1
- package/dist/{category-DZ89uFq9.js → category-CwWq3KCE.js} +1 -1
- package/dist/{currency-C5f-j8Sc.js → currency-g45Sh-t6.js} +1 -1
- package/dist/{dayjs.min-B_VRGKBF.js → dayjs.min-g3eN5z-V.js} +1 -1
- package/dist/index-0Q5T9VZV.js +214 -0
- package/dist/{index-BzJP5jHc.js → index-0yRUi7LL.js} +1 -1
- package/dist/{index-CdR72bNY.js → index-BLQCYEc6.js} +8 -7
- package/dist/{index-Ceq73SJB.js → index-QsLFbxyG.js} +4 -4
- package/dist/{item-C9BjmYgO.js → item-BvvQ9urP.js} +386 -386
- package/dist/{jszip.min-ILTkecIx.js → jszip.min-DzdUiaR4.js} +353 -353
- package/dist/{menu-Dpao2R5b.js → menu-DFNvhoNQ.js} +31149 -31298
- package/dist/{menu-CElaSp4d.js → menu-QrVg2Ph7.js} +7 -7
- package/dist/{menuV2-DFElaySs.js → menuV2-Ezf_jW40.js} +146 -151
- package/dist/mf-menu.css +1 -1
- package/dist/{priceTier-DlM669Xr.js → priceTier-zENsn3P_.js} +1 -1
- package/dist/{scheduler-DNWyK_KD.js → scheduler-BuwGSv6A.js} +8 -8
- package/dist/{subcategory-DOaSgpKs.js → subcategory-O3L_zCJA.js} +2 -2
- package/dist/{toExcel-B_8PLkpw.js → toExcel-CpRy_4nG.js} +2 -2
- package/dist/{unit-d5XkUy31.js → unit-Ct_7Hfa2.js} +41 -42
- package/package.json +3 -3
- package/dist/GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-ONjmNOT_.js +0 -399
- package/dist/LinkProductSideSheet-BHe1eBXr.js +0 -362
- package/dist/MenuSetting-Besoy5-9.js +0 -616
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-Cv5fzqGc.js +0 -5994
- package/dist/apps/mf-menu/src/composable/attributes.d.ts +0 -23
- package/dist/apps/mf-menu/src/utils/array.d.ts +0 -1
- package/dist/apps/mf-menu/src/utils/customAttributes.d.ts +0 -12
- package/dist/apps/mf-menu/src/views/MenuSetting/LinkProductRuleGroups.vue.d.ts +0 -2
- package/dist/apps/mf-menu/src/views/MenuSetting/RuleGroupSideSheet.vue.d.ts +0 -176
- package/dist/assets/linked-status-BYWuxHfM.js +0 -13
- package/dist/assets/override-menu-DunERZw2.js +0 -13
- package/dist/assets/validate-menu-CdfZYwVn.js +0 -13
- package/dist/customAttributes-CwZ9WUq1.js +0 -144
- package/dist/index-DJFSRRfg.js +0 -246
|
@@ -1,362 +0,0 @@
|
|
|
1
|
-
import { defineComponent as pe, ref as I, computed as y, watch as H, resolveComponent as S, createElementBlock as F, openBlock as v, Fragment as z, renderSlot as be, createVNode as a, unref as l, withCtx as p, createBlock as D, createCommentVNode as T, createElementVNode as _, toDisplayString as Y, renderList as fe } from "vue";
|
|
2
|
-
import { H as U, Q as ve, u as q, A as _e, I as J } from "./menu-Dpao2R5b.js";
|
|
3
|
-
import { b as B } from "./app-CiBqmBzO.js";
|
|
4
|
-
import { useI18n as Re, useCustomAttributes as K, useCoreStore as Ae, ItemSelector as ye, EMPTY_RULE as O, isEmptyRule as W } from "@feedmepos/mf-common";
|
|
5
|
-
import { components as ke, FmButtonVariant as X } from "@feedmepos/ui-library";
|
|
6
|
-
import { f as E, u as he, c as Ce, a as C, m as N } from "./customAttributes-CwZ9WUq1.js";
|
|
7
|
-
import { u as ge } from "./discardConfirm-BHni0LNu.js";
|
|
8
|
-
import { u as Ve } from "./menuV2-DFElaySs.js";
|
|
9
|
-
import { c as Ie } from "./check-C9mY6LiX.js";
|
|
10
|
-
/* empty css */
|
|
11
|
-
const Se = (c, L) => {
|
|
12
|
-
const s = c.__vccOpts || c;
|
|
13
|
-
for (const [w, i] of L)
|
|
14
|
-
s[w] = i;
|
|
15
|
-
return s;
|
|
16
|
-
};
|
|
17
|
-
var d = /* @__PURE__ */ ((c) => (c[c.Normal = 0] = "Normal", c[c.Rules = 1] = "Rules", c))(d || {});
|
|
18
|
-
const Fe = { class: "fm-typo-en-title-md-600 mr-auto" }, we = {
|
|
19
|
-
key: 1,
|
|
20
|
-
class: "flex items-center gap-12"
|
|
21
|
-
}, Ue = { class: "flex items-center gap-8" }, Be = { class: "text-neutral-600 fm-typo-body-sm" }, Oe = { class: "grid md:grid-cols-3 gap-16" }, Ee = { class: "md:col-span-2 space-y-16" }, Ne = { class: "flex justify-end" }, Le = { class: "flex gap-8 items-center justify-start" }, Me = /* @__PURE__ */ pe({
|
|
22
|
-
__name: "LinkProductSideSheet",
|
|
23
|
-
props: {
|
|
24
|
-
initialValue: { default: () => [] },
|
|
25
|
-
linkItemRules: {},
|
|
26
|
-
menuItems: {},
|
|
27
|
-
categories: {},
|
|
28
|
-
noScheduler: { type: Boolean },
|
|
29
|
-
isLocalOnly: { type: Boolean, default: !1 },
|
|
30
|
-
categorizedItems: { default: () => [] },
|
|
31
|
-
selectVariant: { type: Boolean, default: !1 },
|
|
32
|
-
showVariant: { type: Boolean, default: !1 },
|
|
33
|
-
showAddon: { type: Boolean, default: !0 },
|
|
34
|
-
title: { default: void 0 },
|
|
35
|
-
useCloseBtn: { type: Boolean }
|
|
36
|
-
},
|
|
37
|
-
emits: ["submit"],
|
|
38
|
-
setup(c, { emit: L }) {
|
|
39
|
-
const s = c, w = L, { t: i } = Re(), k = I(d.Normal);
|
|
40
|
-
function Z(t) {
|
|
41
|
-
k.value = t;
|
|
42
|
-
}
|
|
43
|
-
const b = I(!1), Q = (t) => {
|
|
44
|
-
Ie.isBoolean(t) ? b.value = t : b.value = !b.value;
|
|
45
|
-
};
|
|
46
|
-
function M(t) {
|
|
47
|
-
return t.reduce((e, u) => (e[u._id] = [...e[u._id] ?? [], u], e), {});
|
|
48
|
-
}
|
|
49
|
-
const ee = s.initialValue, g = I(M(U(ee))), j = y(() => Object.values(g.value).flatMap((t) => t)), V = I(
|
|
50
|
-
U(s.linkItemRules)
|
|
51
|
-
), r = I();
|
|
52
|
-
function x() {
|
|
53
|
-
var t;
|
|
54
|
-
return (t = V.value) == null ? void 0 : t.map((e) => {
|
|
55
|
-
var u, n, f, R;
|
|
56
|
-
return {
|
|
57
|
-
...e,
|
|
58
|
-
restaurantRule: {
|
|
59
|
-
restaurantAttributes: N((u = e.restaurantRule) == null ? void 0 : u.restaurantAttributes),
|
|
60
|
-
restaurantCustomAttributes: N((n = e.restaurantRule) == null ? void 0 : n.restaurantCustomAttributes)
|
|
61
|
-
},
|
|
62
|
-
itemRule: {
|
|
63
|
-
itemAttributes: N((f = e.itemRule) == null ? void 0 : f.itemAttributes),
|
|
64
|
-
itemCustomAttributes: N((R = e.itemRule) == null ? void 0 : R.itemCustomAttributes)
|
|
65
|
-
}
|
|
66
|
-
};
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
r.value = x(), H(
|
|
70
|
-
r,
|
|
71
|
-
(t) => {
|
|
72
|
-
V.value = t == null ? void 0 : t.map((e) => {
|
|
73
|
-
var u, n, f, R;
|
|
74
|
-
return {
|
|
75
|
-
...e,
|
|
76
|
-
restaurantRule: {
|
|
77
|
-
restaurantAttributes: E((u = e.restaurantRule) == null ? void 0 : u.restaurantAttributes),
|
|
78
|
-
restaurantCustomAttributes: E(
|
|
79
|
-
(n = e.restaurantRule) == null ? void 0 : n.restaurantCustomAttributes
|
|
80
|
-
)
|
|
81
|
-
},
|
|
82
|
-
itemRule: {
|
|
83
|
-
itemAttributes: E((f = e.itemRule) == null ? void 0 : f.itemAttributes),
|
|
84
|
-
itemCustomAttributes: E((R = e.itemRule) == null ? void 0 : R.itemCustomAttributes)
|
|
85
|
-
}
|
|
86
|
-
};
|
|
87
|
-
});
|
|
88
|
-
},
|
|
89
|
-
{ deep: !0 }
|
|
90
|
-
);
|
|
91
|
-
const te = ge(
|
|
92
|
-
() => !J.isEqual(M(s.initialValue), g.value) || !J.isEqual(s.linkItemRules, V.value),
|
|
93
|
-
() => {
|
|
94
|
-
b.value = !1;
|
|
95
|
-
}
|
|
96
|
-
);
|
|
97
|
-
function le() {
|
|
98
|
-
k.value === d.Rules ? w("submit", {
|
|
99
|
-
mode: d.Rules,
|
|
100
|
-
linkItemRules: V.value || []
|
|
101
|
-
}) : w("submit", {
|
|
102
|
-
mode: d.Normal,
|
|
103
|
-
items: j.value
|
|
104
|
-
}), b.value = !1;
|
|
105
|
-
}
|
|
106
|
-
H(
|
|
107
|
-
() => b.value,
|
|
108
|
-
() => {
|
|
109
|
-
g.value = M(U(s.initialValue)), V.value = U(s.linkItemRules), r.value = x(), k.value = s.noScheduler && s.linkItemRules && s.linkItemRules.length > 0 ? d.Rules : d.Normal;
|
|
110
|
-
}
|
|
111
|
-
);
|
|
112
|
-
const ue = y(() => {
|
|
113
|
-
const t = ve();
|
|
114
|
-
return Object.values(t).sort((e, u) => u.sortingIndex - e.sortingIndex).map((e) => ({ label: e.label, value: e.value }));
|
|
115
|
-
}), ae = y(
|
|
116
|
-
() => {
|
|
117
|
-
var t;
|
|
118
|
-
return (((t = q().state.menu.ruleGroupSettings) == null ? void 0 : t.groups) || []).map((e) => ({
|
|
119
|
-
label: e.name,
|
|
120
|
-
value: e._id
|
|
121
|
-
}));
|
|
122
|
-
}
|
|
123
|
-
), { attributes: se } = K({
|
|
124
|
-
valueSource: Ae().restaurants,
|
|
125
|
-
entity: "restaurant"
|
|
126
|
-
}), { restaurantAttributes: oe } = he(), re = y(() => s.menuItems || []), { attributes: ne } = K({
|
|
127
|
-
valueSource: re,
|
|
128
|
-
entity: "item"
|
|
129
|
-
}), { itemAttributes: ie } = Ce({
|
|
130
|
-
menuItems: y(() => s.menuItems || []),
|
|
131
|
-
categories: y(() => s.categories || [])
|
|
132
|
-
});
|
|
133
|
-
function me() {
|
|
134
|
-
const t = [
|
|
135
|
-
...r.value || [],
|
|
136
|
-
{
|
|
137
|
-
orderFrom: _e.F_ORDER_FROM.enum.ALL,
|
|
138
|
-
restaurantRule: {
|
|
139
|
-
restaurantAttributes: null,
|
|
140
|
-
restaurantCustomAttributes: null
|
|
141
|
-
},
|
|
142
|
-
itemRule: {
|
|
143
|
-
itemAttributes: null,
|
|
144
|
-
itemCustomAttributes: null
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
];
|
|
148
|
-
r.value = t;
|
|
149
|
-
}
|
|
150
|
-
function de(t) {
|
|
151
|
-
if (!r.value) return;
|
|
152
|
-
const e = [...r.value];
|
|
153
|
-
e.splice(t, 1), r.value = e.length ? e : [];
|
|
154
|
-
}
|
|
155
|
-
function G(t, e, u) {
|
|
156
|
-
if (!r.value) return;
|
|
157
|
-
const n = [...r.value];
|
|
158
|
-
W(e) ? n[t].restaurantRule[u] = null : n[t].restaurantRule[u] = e, r.value = n;
|
|
159
|
-
}
|
|
160
|
-
function $(t, e, u) {
|
|
161
|
-
if (!r.value) return;
|
|
162
|
-
const n = [...r.value];
|
|
163
|
-
W(e) ? n[t].itemRule[u] = null : n[t].itemRule[u] = e, r.value = n;
|
|
164
|
-
}
|
|
165
|
-
const P = y(() => {
|
|
166
|
-
const t = s.isLocalOnly ? Ve() : q();
|
|
167
|
-
return s.noScheduler && t.currentCatalog;
|
|
168
|
-
});
|
|
169
|
-
return (t, e) => {
|
|
170
|
-
const u = S("fm-button"), n = S("fm-switch"), f = S("FmSelect"), R = S("FmCard"), ce = S("fm-side-sheet");
|
|
171
|
-
return v(), F(z, null, [
|
|
172
|
-
be(t.$slots, "default", { trigger: Q }, void 0, !0),
|
|
173
|
-
a(ce, {
|
|
174
|
-
id: "group-form",
|
|
175
|
-
modelValue: b.value,
|
|
176
|
-
"onUpdate:modelValue": e[3] || (e[3] = (m) => b.value = m),
|
|
177
|
-
"close-button": t.useCloseBtn,
|
|
178
|
-
"is-container": l(ke).FmForm,
|
|
179
|
-
"is-container-props": {
|
|
180
|
-
onValidationSuccess: le,
|
|
181
|
-
blameFormChildOnValidationFailed: !0
|
|
182
|
-
},
|
|
183
|
-
"max-width": 760,
|
|
184
|
-
"onOn:clickedAway": l(te)
|
|
185
|
-
}, {
|
|
186
|
-
"side-sheet-header": p(() => [
|
|
187
|
-
t.useCloseBtn ? T("", !0) : (v(), D(u, {
|
|
188
|
-
key: 0,
|
|
189
|
-
variant: l(X).Tertiary,
|
|
190
|
-
class: "cursor-pointer mr-4",
|
|
191
|
-
"prepend-icon": "arrow_back",
|
|
192
|
-
onClick: Q
|
|
193
|
-
}, null, 8, ["variant"])),
|
|
194
|
-
_("p", Fe, Y(t.title || l(i)("menu.link_product.title")), 1),
|
|
195
|
-
P.value ? (v(), F("div", we, [
|
|
196
|
-
_("div", Ue, [
|
|
197
|
-
a(n, {
|
|
198
|
-
label: l(i)("menu.link_product.rules.section_title"),
|
|
199
|
-
"model-value": k.value === l(d).Rules,
|
|
200
|
-
"onUpdate:modelValue": e[0] || (e[0] = (m) => Z(m ? l(d).Rules : l(d).Normal))
|
|
201
|
-
}, null, 8, ["label", "model-value"])
|
|
202
|
-
])
|
|
203
|
-
])) : T("", !0)
|
|
204
|
-
]),
|
|
205
|
-
"side-sheet-footer": p(() => [
|
|
206
|
-
_("div", Le, [
|
|
207
|
-
a(u, {
|
|
208
|
-
label: l(i)("menu.common.actions.confirm"),
|
|
209
|
-
size: "lg",
|
|
210
|
-
type: "submit",
|
|
211
|
-
variant: "primary"
|
|
212
|
-
}, null, 8, ["label"]),
|
|
213
|
-
a(u, {
|
|
214
|
-
label: l(i)("menu.common.actions.cancel"),
|
|
215
|
-
size: "lg",
|
|
216
|
-
variant: "tertiary",
|
|
217
|
-
onClick: e[2] || (e[2] = () => b.value = !1)
|
|
218
|
-
}, null, 8, ["label"])
|
|
219
|
-
])
|
|
220
|
-
]),
|
|
221
|
-
default: p(() => [
|
|
222
|
-
(v(), F("div", {
|
|
223
|
-
class: "py-8 px-8 overflow-y-auto space-y-24",
|
|
224
|
-
key: k.value
|
|
225
|
-
}, [
|
|
226
|
-
k.value === l(d).Normal ? (v(), D(l(ye), {
|
|
227
|
-
key: 0,
|
|
228
|
-
"auto-focus-search": !0,
|
|
229
|
-
"categorized-items": t.categorizedItems,
|
|
230
|
-
data: g.value,
|
|
231
|
-
"select-variant": t.selectVariant,
|
|
232
|
-
"selected-items": j.value,
|
|
233
|
-
"show-variant": t.showVariant,
|
|
234
|
-
"show-addon": t.showAddon,
|
|
235
|
-
"onUpdate:data": e[1] || (e[1] = (m) => g.value = m)
|
|
236
|
-
}, null, 8, ["categorized-items", "data", "select-variant", "selected-items", "show-variant", "show-addon"])) : P.value ? (v(), F(z, { key: 1 }, [
|
|
237
|
-
_("p", Be, Y(l(i)("menu.link_product.rules.hint")), 1),
|
|
238
|
-
(v(!0), F(z, null, fe(r.value, (m, h) => (v(), D(R, {
|
|
239
|
-
key: h,
|
|
240
|
-
class: "p-16 space-y-16",
|
|
241
|
-
variant: "outlined"
|
|
242
|
-
}, {
|
|
243
|
-
default: p(() => [
|
|
244
|
-
_("div", Oe, [
|
|
245
|
-
a(C, {
|
|
246
|
-
label: l(i)("menu.link_product.rules.order_from")
|
|
247
|
-
}, {
|
|
248
|
-
default: p(() => [
|
|
249
|
-
a(f, {
|
|
250
|
-
items: ue.value,
|
|
251
|
-
modelValue: m.orderFrom,
|
|
252
|
-
"onUpdate:modelValue": (o) => m.orderFrom = o
|
|
253
|
-
}, null, 8, ["items", "modelValue", "onUpdate:modelValue"])
|
|
254
|
-
]),
|
|
255
|
-
_: 2
|
|
256
|
-
}, 1032, ["label"]),
|
|
257
|
-
a(C, {
|
|
258
|
-
label: l(i)("menu.rule_groups.title")
|
|
259
|
-
}, {
|
|
260
|
-
default: p(() => [
|
|
261
|
-
a(f, {
|
|
262
|
-
items: ae.value,
|
|
263
|
-
multiselect: "",
|
|
264
|
-
"model-value": m.ruleGroupIds || [],
|
|
265
|
-
"onUpdate:modelValue": (o) => m.ruleGroupIds = o
|
|
266
|
-
}, null, 8, ["items", "model-value", "onUpdate:modelValue"])
|
|
267
|
-
]),
|
|
268
|
-
_: 2
|
|
269
|
-
}, 1032, ["label"]),
|
|
270
|
-
_("div", Ee, [
|
|
271
|
-
a(C, {
|
|
272
|
-
label: l(i)("menu.link_product.rules.restaurant_filter")
|
|
273
|
-
}, {
|
|
274
|
-
default: p(() => {
|
|
275
|
-
var o;
|
|
276
|
-
return [
|
|
277
|
-
a(l(B), {
|
|
278
|
-
attributes: l(oe),
|
|
279
|
-
"model-value": ((o = m.restaurantRule) == null ? void 0 : o.restaurantAttributes) || l(O),
|
|
280
|
-
"onUpdate:modelValue": (A) => G(h, A, "restaurantAttributes")
|
|
281
|
-
}, null, 8, ["attributes", "model-value", "onUpdate:modelValue"])
|
|
282
|
-
];
|
|
283
|
-
}),
|
|
284
|
-
_: 2
|
|
285
|
-
}, 1032, ["label"]),
|
|
286
|
-
a(C, {
|
|
287
|
-
label: l(i)("menu.link_product.rules.restaurant_custom_attributes_filter")
|
|
288
|
-
}, {
|
|
289
|
-
default: p(() => {
|
|
290
|
-
var o;
|
|
291
|
-
return [
|
|
292
|
-
a(l(B), {
|
|
293
|
-
attributes: l(se),
|
|
294
|
-
"model-value": ((o = m.restaurantRule) == null ? void 0 : o.restaurantCustomAttributes) || l(O),
|
|
295
|
-
"onUpdate:modelValue": (A) => G(h, A, "restaurantCustomAttributes")
|
|
296
|
-
}, null, 8, ["attributes", "model-value", "onUpdate:modelValue"])
|
|
297
|
-
];
|
|
298
|
-
}),
|
|
299
|
-
_: 2
|
|
300
|
-
}, 1032, ["label"]),
|
|
301
|
-
a(C, {
|
|
302
|
-
label: l(i)("menu.link_product.rules.item_filter")
|
|
303
|
-
}, {
|
|
304
|
-
default: p(() => {
|
|
305
|
-
var o;
|
|
306
|
-
return [
|
|
307
|
-
a(l(B), {
|
|
308
|
-
attributes: l(ie),
|
|
309
|
-
"model-value": ((o = m.itemRule) == null ? void 0 : o.itemAttributes) || l(O),
|
|
310
|
-
"onUpdate:modelValue": (A) => $(h, A, "itemAttributes")
|
|
311
|
-
}, null, 8, ["attributes", "model-value", "onUpdate:modelValue"])
|
|
312
|
-
];
|
|
313
|
-
}),
|
|
314
|
-
_: 2
|
|
315
|
-
}, 1032, ["label"]),
|
|
316
|
-
a(C, {
|
|
317
|
-
label: l(i)("menu.link_product.rules.item_custom_attributes_filter")
|
|
318
|
-
}, {
|
|
319
|
-
default: p(() => {
|
|
320
|
-
var o;
|
|
321
|
-
return [
|
|
322
|
-
a(l(B), {
|
|
323
|
-
attributes: l(ne),
|
|
324
|
-
"model-value": ((o = m.itemRule) == null ? void 0 : o.itemCustomAttributes) || l(O),
|
|
325
|
-
"onUpdate:modelValue": (A) => $(h, A, "itemCustomAttributes")
|
|
326
|
-
}, null, 8, ["attributes", "model-value", "onUpdate:modelValue"])
|
|
327
|
-
];
|
|
328
|
-
}),
|
|
329
|
-
_: 2
|
|
330
|
-
}, 1032, ["label"])
|
|
331
|
-
])
|
|
332
|
-
]),
|
|
333
|
-
_("div", Ne, [
|
|
334
|
-
a(u, {
|
|
335
|
-
variant: l(X).Tertiary,
|
|
336
|
-
"prepend-icon": "delete",
|
|
337
|
-
onClick: (o) => de(h)
|
|
338
|
-
}, null, 8, ["variant", "onClick"])
|
|
339
|
-
])
|
|
340
|
-
]),
|
|
341
|
-
_: 2
|
|
342
|
-
}, 1024))), 128)),
|
|
343
|
-
_("div", null, [
|
|
344
|
-
a(u, {
|
|
345
|
-
label: l(i)("menu.link_product.rules.add_rule"),
|
|
346
|
-
onClick: me
|
|
347
|
-
}, null, 8, ["label"])
|
|
348
|
-
])
|
|
349
|
-
], 64)) : T("", !0)
|
|
350
|
-
]))
|
|
351
|
-
]),
|
|
352
|
-
_: 1
|
|
353
|
-
}, 8, ["modelValue", "close-button", "is-container", "is-container-props", "onOn:clickedAway"])
|
|
354
|
-
], 64);
|
|
355
|
-
};
|
|
356
|
-
}
|
|
357
|
-
}), Ye = /* @__PURE__ */ Se(Me, [["__scopeId", "data-v-82344798"]]);
|
|
358
|
-
export {
|
|
359
|
-
Ye as L,
|
|
360
|
-
Se as _,
|
|
361
|
-
d as a
|
|
362
|
-
};
|