@feedmepos/mf-menu 0.32.3-beta.1 → 0.32.4-dev
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-DJBZBaaC.js → App-5YVGeojR.js} +5 -5
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-c9SlmPp2.js → ApplyProduct.vue_vue_type_script_setup_true_lang-DhoHYIHW.js} +20 -20
- package/dist/{Catalog-Ct9jk3A_.js → Catalog-BTNv5n_D.js} +18 -18
- package/dist/{Category-Cf5KfKdv.js → Category-BE-kkKcL.js} +22 -23
- package/dist/{Category-CTTAtG31.js → Category-DuLhbRxE.js} +21 -22
- package/dist/{CookingGuide-BaNzajgf.js → CookingGuide-JtE8QMC6.js} +92 -93
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-CRodr6tr.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-DdJ-o_PW.js} +1 -1
- package/dist/FormItem.vue_vue_type_script_setup_true_lang-B3Ixruh-.js +26 -0
- package/dist/{Group-BfRPCCbK.js → Group-BP-j3K6J.js} +1 -1
- package/dist/{Group-BJep-xq-.js → Group-DhS9e2E3.js} +3 -3
- package/dist/{Group.vue_vue_type_script_setup_true_lang-CoCq0edM.js → Group.vue_vue_type_script_setup_true_lang-DXUQrXXI.js} +33 -34
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DviXfima.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CXzz4ClS.js} +24 -23
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-DSrxcKIK.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-Bpt-8tbe.js} +11525 -11504
- package/dist/{Ingredient-BnzW69zW.js → Ingredient-NSl0x-0T.js} +5 -6
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-D8m1pyLp.js → InventoryBinding.vue_vue_type_script_setup_true_lang-ByrNVvzs.js} +2 -2
- package/dist/LinkProductSideSheet-B_R_2iH6.js +692 -0
- package/dist/MenuSetting-C7cpv4S3.js +580 -0
- package/dist/{PrintRoute-CLsiDIkn.js → PrintRoute-DmP7KH58.js} +10 -11
- package/dist/{Product-DHE0XtX1.js → Product-B6gwN4g0.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-CVR8j-XT.js → Product.vue_vue_type_script_setup_true_lang-BKhn8Txf.js} +15 -16
- package/dist/{ProductInternalTools-BQOXHzYp.js → ProductInternalTools-D5xIh2j2.js} +5 -5
- package/dist/Products-Cxx8pJGK.js +692 -0
- package/dist/{Publish-BlEcoJaI.js → Publish-ZCzRBB5V.js} +21 -22
- package/dist/{Recipe-CkcNxf7p.js → Recipe-DcHdr_5J.js} +9 -10
- package/dist/RuleView.vue_vue_type_script_setup_true_lang-edNbsZTq.js +3282 -0
- package/dist/{Scheduler-DV0s_qkV.js → Scheduler-ZhDXk5gQ.js} +18 -19
- package/dist/{ServingSequence-CFd8Nwws.js → ServingSequence-DcfMbHjn.js} +15 -16
- package/dist/{Setting-B55IsZCX.js → Setting-fqf_sOIc.js} +45 -44
- package/dist/{Subcategory-BXCcVdR3.js → Subcategory-BidmfEOK.js} +18 -19
- package/dist/{Takeaway-BDvcwBHP.js → Takeaway-C83SKEvl.js} +1 -1
- package/dist/{Takeaway--U_lsgYi.js → Takeaway-p6thRg74.js} +4 -4
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-DaYk2xdF.js → Takeaway.vue_vue_type_script_setup_true_lang-Dq6CjXCv.js} +48 -49
- package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-VBpTghy9.js → Thumbnail.vue_vue_type_script_setup_true_lang-CjLOy2k9.js} +10 -10
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-IBM6rC5M.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-CWdsp9eo.js} +17 -16
- package/dist/{Unit-DkvTsQWA.js → Unit-CKIaBxVE.js} +7 -8
- package/dist/{Variant-tte76SbR.js → Variant-CE21vKC4.js} +38 -39
- package/dist/{_id_-AVMi3j91.js → _id_-BhWpg9Kj.js} +10 -10
- package/dist/{app-0s3jY-aE.js → app-BkcVM9nE.js} +1 -1
- package/dist/app-CEIhTuYG.js +363 -0
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/app.d.ts +250 -0
- package/dist/apps/mf-menu/src/components/rule_group/CatalogLinkItemRuleForm.vue.d.ts +146 -0
- package/dist/apps/mf-menu/src/components/rule_group/CatalogLinkItemRuleView.vue.d.ts +158 -0
- package/dist/apps/mf-menu/src/components/rule_group/RuleCondition.vue.d.ts +103 -0
- package/dist/apps/mf-menu/src/components/rule_group/RuleConditionListView.vue.d.ts +54 -0
- package/dist/apps/mf-menu/src/components/rule_group/RuleConditionSelector.vue.d.ts +50 -0
- package/dist/apps/mf-menu/src/components/rule_group/RuleForm.vue.d.ts +117 -0
- package/dist/apps/mf-menu/src/components/rule_group/RuleView.vue.d.ts +141 -0
- package/dist/apps/mf-menu/src/composable/attributes.d.ts +10 -0
- package/dist/apps/mf-menu/src/helper/import-export-utils.d.ts +2 -3
- package/dist/apps/mf-menu/src/helper/menuExport.d.ts +3 -1
- package/dist/apps/mf-menu/src/helper/menuImport.d.ts +3 -2
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{linked-status-DEGoFflv.js → linked-status-CStQ46Ze.js} +2 -2
- package/dist/assets/{override-menu-CZe07SCm.js → override-menu-DHTQAnIJ.js} +2 -2
- package/dist/assets/{validate-menu-BnHfAUEN.js → validate-menu-C_kUDOhd.js} +2 -2
- package/dist/{catalog-YE_knev1.js → catalog-WBrPmQwl.js} +1 -1
- package/dist/{catalogSetting-CeVHRHOo.js → catalogSetting-BAry7I_V.js} +1 -1
- package/dist/{category-Dph1iWr8.js → category-bW36h16p.js} +1 -1
- package/dist/{currency-Byslycrk.js → currency-vVxHIVBs.js} +1 -1
- package/dist/{index-C0T32LLy.js → index-Ba5-dCQA.js} +1 -1
- package/dist/{index-CUTY6cCm.js → index-C0EV3eSc.js} +20 -20
- package/dist/{index-DycbrG1l.js → index-XZlEgR2k.js} +8 -7
- package/dist/{index-Ddt_Nw9F.js → index-pxnQHVnU.js} +4 -4
- package/dist/{menu-tHhzkxDL.js → index.vue_vue_type_script_setup_true_lang-CFPMPQFg.js} +18612 -18558
- package/dist/item-mFv0bFSn.js +7648 -0
- package/dist/{iteration-CcobmcUk.js → iteration-CaFp1Rtz.js} +3 -3
- package/dist/{jszip.min-DQrtMdm5.js → jszip.min-BkSmQKmf.js} +353 -353
- package/dist/{menu-DkRrqTVY.js → menu-ud-tWfIM.js} +1 -1
- package/dist/{menuV2-DJevKCqE.js → menuV2-xUMdUls0.js} +65 -65
- package/dist/mf-menu.css +1 -1
- package/dist/{priceTier-Bkogs1qc.js → priceTier-BVTab4k1.js} +1 -1
- package/dist/{scheduler-BGQ_lxUL.js → scheduler-CAt7sELO.js} +13 -12
- package/dist/{subcategory-DvxvLe8X.js → subcategory-DMZuedoM.js} +2 -2
- package/dist/{toExcel-DQ4jlZPI.js → toExcel-CczXOnKy.js} +2 -2
- package/dist/{unit-DoxpI5dG.js → unit-CbD3sYqC.js} +2 -2
- package/package.json +4 -3
- package/dist/LinkProductSideSheet-C4yBnJSM.js +0 -361
- package/dist/MenuSetting-Fxl8F6N5.js +0 -618
- package/dist/Products-BLvwrz9P.js +0 -689
- package/dist/app-CjfWVFOg.js +0 -363
- package/dist/customAttributes-DvbvCfOd.js +0 -180
- package/dist/index.vue_vue_type_script_setup_true_lang-B1_JqsYF.js +0 -57
- package/dist/item-x1WWjISR.js +0 -9175
|
@@ -1,361 +0,0 @@
|
|
|
1
|
-
import { defineComponent as be, ref as g, computed as A, watch as ve, resolveComponent as I, createElementBlock as S, openBlock as v, Fragment as L, renderSlot as _e, createVNode as u, unref as l, withCtx as p, createBlock as M, createCommentVNode as T, createElementVNode as _, toDisplayString as Y, renderList as Re } from "vue";
|
|
2
|
-
import { H as F, Q as ye, u as q, z as Ae, I as J } from "./menu-tHhzkxDL.js";
|
|
3
|
-
import { b as U } from "./app-CzXxFrl1.js";
|
|
4
|
-
import { useI18n as ke, useCustomAttributes as K, useCoreStore as Ce, ItemSelector as he, EMPTY_RULE as B, isEmptyRule as W } from "@feedmepos/mf-common";
|
|
5
|
-
import { components as Ve, FmButtonVariant as X } from "@feedmepos/ui-library";
|
|
6
|
-
import { c as ge, u as Ie, a as h, m as O, f as E } from "./customAttributes-DvbvCfOd.js";
|
|
7
|
-
import { u as Se } from "./discardConfirm-BHni0LNu.js";
|
|
8
|
-
import { u as we } from "./menuV2-DJevKCqE.js";
|
|
9
|
-
import { c as Fe } from "./check-C9mY6LiX.js";
|
|
10
|
-
/* empty css */
|
|
11
|
-
const Ue = (s, N) => {
|
|
12
|
-
const o = s.__vccOpts || s;
|
|
13
|
-
for (const [w, m] of N)
|
|
14
|
-
o[w] = m;
|
|
15
|
-
return o;
|
|
16
|
-
};
|
|
17
|
-
var c = /* @__PURE__ */ ((s) => (s[s.Normal = 0] = "Normal", s[s.Rules = 1] = "Rules", s))(c || {});
|
|
18
|
-
const Be = { class: "fm-typo-en-title-md-600 mr-auto" }, Oe = {
|
|
19
|
-
key: 1,
|
|
20
|
-
class: "flex items-center gap-12"
|
|
21
|
-
}, Ee = { class: "flex items-center gap-8" }, Ne = { class: "text-neutral-600 fm-typo-body-sm" }, xe = { class: "grid md:grid-cols-3 gap-16" }, Le = { class: "md:col-span-2 space-y-16" }, Me = { class: "flex justify-end" }, Te = { class: "flex gap-8 items-center justify-start" }, ze = /* @__PURE__ */ be({
|
|
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(s, { emit: N }) {
|
|
39
|
-
const o = s, w = N, { t: m } = ke(), k = g(c.Normal);
|
|
40
|
-
function Z(t) {
|
|
41
|
-
k.value = t;
|
|
42
|
-
}
|
|
43
|
-
const f = g(!1), z = (t) => {
|
|
44
|
-
Fe.isBoolean(t) ? f.value = t : f.value = !f.value;
|
|
45
|
-
};
|
|
46
|
-
function x(t) {
|
|
47
|
-
return t.reduce((e, a) => (e[a._id] = [...e[a._id] ?? [], a], e), {});
|
|
48
|
-
}
|
|
49
|
-
const ee = o.initialValue, V = g(x(F(ee))), D = A(() => Object.values(V.value).flatMap((t) => t)), { itemAttributes: te, convertCategoryIdToName: le, convertCategoryNameToId: ae } = ge({
|
|
50
|
-
menuItems: A(() => o.menuItems || []),
|
|
51
|
-
categories: A(() => o.categories || [])
|
|
52
|
-
}), Q = g(
|
|
53
|
-
F(o.linkItemRules)
|
|
54
|
-
), n = g();
|
|
55
|
-
function j() {
|
|
56
|
-
var t;
|
|
57
|
-
return (t = Q.value) == null ? void 0 : t.map((e) => {
|
|
58
|
-
var a, i, b, R;
|
|
59
|
-
return {
|
|
60
|
-
...e,
|
|
61
|
-
restaurantRule: {
|
|
62
|
-
restaurantAttributes: O((a = e.restaurantRule) == null ? void 0 : a.restaurantAttributes),
|
|
63
|
-
restaurantCustomAttributes: O((i = e.restaurantRule) == null ? void 0 : i.restaurantCustomAttributes)
|
|
64
|
-
},
|
|
65
|
-
itemRule: {
|
|
66
|
-
itemAttributes: le(O((b = e.itemRule) == null ? void 0 : b.itemAttributes)),
|
|
67
|
-
itemCustomAttributes: O((R = e.itemRule) == null ? void 0 : R.itemCustomAttributes)
|
|
68
|
-
}
|
|
69
|
-
};
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
n.value = j();
|
|
73
|
-
function G() {
|
|
74
|
-
var t;
|
|
75
|
-
return (t = n.value) == null ? void 0 : t.map((e) => {
|
|
76
|
-
var a, i, b, R;
|
|
77
|
-
return {
|
|
78
|
-
...e,
|
|
79
|
-
restaurantRule: {
|
|
80
|
-
restaurantAttributes: E((a = e.restaurantRule) == null ? void 0 : a.restaurantAttributes),
|
|
81
|
-
restaurantCustomAttributes: E((i = e.restaurantRule) == null ? void 0 : i.restaurantCustomAttributes)
|
|
82
|
-
},
|
|
83
|
-
itemRule: {
|
|
84
|
-
itemAttributes: E(ae((b = e.itemRule) == null ? void 0 : b.itemAttributes)),
|
|
85
|
-
itemCustomAttributes: E((R = e.itemRule) == null ? void 0 : R.itemCustomAttributes)
|
|
86
|
-
}
|
|
87
|
-
};
|
|
88
|
-
});
|
|
89
|
-
}
|
|
90
|
-
const ue = Se(
|
|
91
|
-
() => {
|
|
92
|
-
const t = G() ?? null;
|
|
93
|
-
return !J.isEqual(x(o.initialValue), V.value) || !J.isEqual(o.linkItemRules, t);
|
|
94
|
-
},
|
|
95
|
-
() => {
|
|
96
|
-
f.value = !1;
|
|
97
|
-
}
|
|
98
|
-
);
|
|
99
|
-
function se() {
|
|
100
|
-
k.value === c.Rules ? w("submit", {
|
|
101
|
-
mode: c.Rules,
|
|
102
|
-
linkItemRules: G() ?? []
|
|
103
|
-
}) : w("submit", {
|
|
104
|
-
mode: c.Normal,
|
|
105
|
-
items: D.value
|
|
106
|
-
}), f.value = !1;
|
|
107
|
-
}
|
|
108
|
-
ve(
|
|
109
|
-
() => f.value,
|
|
110
|
-
() => {
|
|
111
|
-
V.value = x(F(o.initialValue)), Q.value = F(o.linkItemRules), n.value = j(), k.value = o.noScheduler && o.linkItemRules && o.linkItemRules.length > 0 ? c.Rules : c.Normal;
|
|
112
|
-
}
|
|
113
|
-
);
|
|
114
|
-
const oe = A(() => {
|
|
115
|
-
const t = ye();
|
|
116
|
-
return Object.values(t).sort((e, a) => a.sortingIndex - e.sortingIndex).map((e) => ({ label: e.label, value: e.value }));
|
|
117
|
-
}), re = A(
|
|
118
|
-
() => {
|
|
119
|
-
var t;
|
|
120
|
-
return (((t = q().state.menu.ruleGroupSettings) == null ? void 0 : t.groups) || []).map((e) => ({
|
|
121
|
-
label: e.name,
|
|
122
|
-
value: e._id
|
|
123
|
-
}));
|
|
124
|
-
}
|
|
125
|
-
), { attributes: ne } = K({
|
|
126
|
-
valueSource: Ce().restaurants,
|
|
127
|
-
entity: "restaurant"
|
|
128
|
-
}), { restaurantAttributes: ie } = Ie(), me = A(() => o.menuItems || []), { attributes: de } = K({
|
|
129
|
-
valueSource: me,
|
|
130
|
-
entity: "item"
|
|
131
|
-
});
|
|
132
|
-
function ce() {
|
|
133
|
-
const t = [
|
|
134
|
-
...n.value || [],
|
|
135
|
-
{
|
|
136
|
-
orderFrom: Ae.F_ORDER_FROM.enum.ALL,
|
|
137
|
-
restaurantRule: {
|
|
138
|
-
restaurantAttributes: null,
|
|
139
|
-
restaurantCustomAttributes: null
|
|
140
|
-
},
|
|
141
|
-
itemRule: {
|
|
142
|
-
itemAttributes: null,
|
|
143
|
-
itemCustomAttributes: null
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
];
|
|
147
|
-
n.value = t;
|
|
148
|
-
}
|
|
149
|
-
function pe(t) {
|
|
150
|
-
if (!n.value) return;
|
|
151
|
-
const e = [...n.value];
|
|
152
|
-
e.splice(t, 1), n.value = e.length ? e : [];
|
|
153
|
-
}
|
|
154
|
-
function $(t, e, a) {
|
|
155
|
-
if (!n.value) return;
|
|
156
|
-
const i = [...n.value];
|
|
157
|
-
W(e) ? i[t].restaurantRule[a] = null : i[t].restaurantRule[a] = e, n.value = i;
|
|
158
|
-
}
|
|
159
|
-
function P(t, e, a) {
|
|
160
|
-
if (!n.value) return;
|
|
161
|
-
const i = [...n.value];
|
|
162
|
-
W(e) ? i[t].itemRule[a] = null : i[t].itemRule[a] = e, n.value = i;
|
|
163
|
-
}
|
|
164
|
-
const H = A(() => {
|
|
165
|
-
const t = o.isLocalOnly ? we() : q();
|
|
166
|
-
return o.noScheduler && t.currentCatalog;
|
|
167
|
-
});
|
|
168
|
-
return (t, e) => {
|
|
169
|
-
const a = I("fm-button"), i = I("fm-switch"), b = I("FmSelect"), R = I("FmCard"), fe = I("fm-side-sheet");
|
|
170
|
-
return v(), S(L, null, [
|
|
171
|
-
_e(t.$slots, "default", { trigger: z }, void 0, !0),
|
|
172
|
-
u(fe, {
|
|
173
|
-
id: "group-form",
|
|
174
|
-
modelValue: f.value,
|
|
175
|
-
"onUpdate:modelValue": e[3] || (e[3] = (d) => f.value = d),
|
|
176
|
-
"close-button": s.useCloseBtn,
|
|
177
|
-
"is-container": l(Ve).FmForm,
|
|
178
|
-
"is-container-props": {
|
|
179
|
-
onValidationSuccess: se,
|
|
180
|
-
blameFormChildOnValidationFailed: !0
|
|
181
|
-
},
|
|
182
|
-
"max-width": 760,
|
|
183
|
-
"onOn:clickedAway": l(ue)
|
|
184
|
-
}, {
|
|
185
|
-
"side-sheet-header": p(() => [
|
|
186
|
-
s.useCloseBtn ? T("", !0) : (v(), M(a, {
|
|
187
|
-
key: 0,
|
|
188
|
-
variant: l(X).Tertiary,
|
|
189
|
-
class: "cursor-pointer mr-4",
|
|
190
|
-
"prepend-icon": "arrow_back",
|
|
191
|
-
onClick: z
|
|
192
|
-
}, null, 8, ["variant"])),
|
|
193
|
-
_("p", Be, Y(s.title || l(m)("menu.link_product.title")), 1),
|
|
194
|
-
H.value ? (v(), S("div", Oe, [
|
|
195
|
-
_("div", Ee, [
|
|
196
|
-
u(i, {
|
|
197
|
-
label: l(m)("menu.link_product.rules.section_title"),
|
|
198
|
-
"model-value": k.value === l(c).Rules,
|
|
199
|
-
"onUpdate:modelValue": e[0] || (e[0] = (d) => Z(d ? l(c).Rules : l(c).Normal))
|
|
200
|
-
}, null, 8, ["label", "model-value"])
|
|
201
|
-
])
|
|
202
|
-
])) : T("", !0)
|
|
203
|
-
]),
|
|
204
|
-
"side-sheet-footer": p(() => [
|
|
205
|
-
_("div", Te, [
|
|
206
|
-
u(a, {
|
|
207
|
-
label: l(m)("menu.common.actions.confirm"),
|
|
208
|
-
size: "lg",
|
|
209
|
-
type: "submit",
|
|
210
|
-
variant: "primary"
|
|
211
|
-
}, null, 8, ["label"]),
|
|
212
|
-
u(a, {
|
|
213
|
-
label: l(m)("menu.common.actions.cancel"),
|
|
214
|
-
size: "lg",
|
|
215
|
-
variant: "tertiary",
|
|
216
|
-
onClick: e[2] || (e[2] = () => f.value = !1)
|
|
217
|
-
}, null, 8, ["label"])
|
|
218
|
-
])
|
|
219
|
-
]),
|
|
220
|
-
default: p(() => [
|
|
221
|
-
(v(), S("div", {
|
|
222
|
-
class: "py-8 px-8 overflow-y-auto space-y-24",
|
|
223
|
-
key: k.value
|
|
224
|
-
}, [
|
|
225
|
-
k.value === l(c).Normal ? (v(), M(l(he), {
|
|
226
|
-
key: 0,
|
|
227
|
-
"auto-focus-search": !0,
|
|
228
|
-
"categorized-items": s.categorizedItems,
|
|
229
|
-
data: V.value,
|
|
230
|
-
"select-variant": s.selectVariant,
|
|
231
|
-
"selected-items": D.value,
|
|
232
|
-
"show-variant": s.showVariant,
|
|
233
|
-
"show-addon": s.showAddon,
|
|
234
|
-
"onUpdate:data": e[1] || (e[1] = (d) => V.value = d)
|
|
235
|
-
}, null, 8, ["categorized-items", "data", "select-variant", "selected-items", "show-variant", "show-addon"])) : H.value ? (v(), S(L, { key: 1 }, [
|
|
236
|
-
_("p", Ne, Y(l(m)("menu.link_product.rules.hint")), 1),
|
|
237
|
-
(v(!0), S(L, null, Re(n.value, (d, C) => (v(), M(R, {
|
|
238
|
-
key: C,
|
|
239
|
-
class: "p-16 space-y-16",
|
|
240
|
-
variant: "outlined"
|
|
241
|
-
}, {
|
|
242
|
-
default: p(() => [
|
|
243
|
-
_("div", xe, [
|
|
244
|
-
u(h, {
|
|
245
|
-
label: l(m)("menu.link_product.rules.order_from")
|
|
246
|
-
}, {
|
|
247
|
-
default: p(() => [
|
|
248
|
-
u(b, {
|
|
249
|
-
items: oe.value,
|
|
250
|
-
modelValue: d.orderFrom,
|
|
251
|
-
"onUpdate:modelValue": (r) => d.orderFrom = r
|
|
252
|
-
}, null, 8, ["items", "modelValue", "onUpdate:modelValue"])
|
|
253
|
-
]),
|
|
254
|
-
_: 2
|
|
255
|
-
}, 1032, ["label"]),
|
|
256
|
-
u(h, {
|
|
257
|
-
label: l(m)("menu.rule_groups.title")
|
|
258
|
-
}, {
|
|
259
|
-
default: p(() => [
|
|
260
|
-
u(b, {
|
|
261
|
-
items: re.value,
|
|
262
|
-
multiselect: "",
|
|
263
|
-
"model-value": d.ruleGroupIds || [],
|
|
264
|
-
"onUpdate:modelValue": (r) => d.ruleGroupIds = r
|
|
265
|
-
}, null, 8, ["items", "model-value", "onUpdate:modelValue"])
|
|
266
|
-
]),
|
|
267
|
-
_: 2
|
|
268
|
-
}, 1032, ["label"]),
|
|
269
|
-
_("div", Le, [
|
|
270
|
-
u(h, {
|
|
271
|
-
label: l(m)("menu.link_product.rules.restaurant_filter")
|
|
272
|
-
}, {
|
|
273
|
-
default: p(() => {
|
|
274
|
-
var r;
|
|
275
|
-
return [
|
|
276
|
-
u(l(U), {
|
|
277
|
-
attributes: l(ie),
|
|
278
|
-
"model-value": ((r = d.restaurantRule) == null ? void 0 : r.restaurantAttributes) || l(B),
|
|
279
|
-
"onUpdate:modelValue": (y) => $(C, y, "restaurantAttributes")
|
|
280
|
-
}, null, 8, ["attributes", "model-value", "onUpdate:modelValue"])
|
|
281
|
-
];
|
|
282
|
-
}),
|
|
283
|
-
_: 2
|
|
284
|
-
}, 1032, ["label"]),
|
|
285
|
-
u(h, {
|
|
286
|
-
label: l(m)("menu.link_product.rules.restaurant_custom_attributes_filter")
|
|
287
|
-
}, {
|
|
288
|
-
default: p(() => {
|
|
289
|
-
var r;
|
|
290
|
-
return [
|
|
291
|
-
u(l(U), {
|
|
292
|
-
attributes: l(ne),
|
|
293
|
-
"model-value": ((r = d.restaurantRule) == null ? void 0 : r.restaurantCustomAttributes) || l(B),
|
|
294
|
-
"onUpdate:modelValue": (y) => $(C, y, "restaurantCustomAttributes")
|
|
295
|
-
}, null, 8, ["attributes", "model-value", "onUpdate:modelValue"])
|
|
296
|
-
];
|
|
297
|
-
}),
|
|
298
|
-
_: 2
|
|
299
|
-
}, 1032, ["label"]),
|
|
300
|
-
u(h, {
|
|
301
|
-
label: l(m)("menu.link_product.rules.item_filter")
|
|
302
|
-
}, {
|
|
303
|
-
default: p(() => {
|
|
304
|
-
var r;
|
|
305
|
-
return [
|
|
306
|
-
u(l(U), {
|
|
307
|
-
attributes: l(te),
|
|
308
|
-
"model-value": ((r = d.itemRule) == null ? void 0 : r.itemAttributes) || l(B),
|
|
309
|
-
"onUpdate:modelValue": (y) => P(C, y, "itemAttributes")
|
|
310
|
-
}, null, 8, ["attributes", "model-value", "onUpdate:modelValue"])
|
|
311
|
-
];
|
|
312
|
-
}),
|
|
313
|
-
_: 2
|
|
314
|
-
}, 1032, ["label"]),
|
|
315
|
-
u(h, {
|
|
316
|
-
label: l(m)("menu.link_product.rules.item_custom_attributes_filter")
|
|
317
|
-
}, {
|
|
318
|
-
default: p(() => {
|
|
319
|
-
var r;
|
|
320
|
-
return [
|
|
321
|
-
u(l(U), {
|
|
322
|
-
attributes: l(de),
|
|
323
|
-
"model-value": ((r = d.itemRule) == null ? void 0 : r.itemCustomAttributes) || l(B),
|
|
324
|
-
"onUpdate:modelValue": (y) => P(C, y, "itemCustomAttributes")
|
|
325
|
-
}, null, 8, ["attributes", "model-value", "onUpdate:modelValue"])
|
|
326
|
-
];
|
|
327
|
-
}),
|
|
328
|
-
_: 2
|
|
329
|
-
}, 1032, ["label"])
|
|
330
|
-
])
|
|
331
|
-
]),
|
|
332
|
-
_("div", Me, [
|
|
333
|
-
u(a, {
|
|
334
|
-
variant: l(X).Tertiary,
|
|
335
|
-
"prepend-icon": "delete",
|
|
336
|
-
onClick: (r) => pe(C)
|
|
337
|
-
}, null, 8, ["variant", "onClick"])
|
|
338
|
-
])
|
|
339
|
-
]),
|
|
340
|
-
_: 2
|
|
341
|
-
}, 1024))), 128)),
|
|
342
|
-
_("div", null, [
|
|
343
|
-
u(a, {
|
|
344
|
-
label: l(m)("menu.link_product.rules.add_rule"),
|
|
345
|
-
onClick: ce
|
|
346
|
-
}, null, 8, ["label"])
|
|
347
|
-
])
|
|
348
|
-
], 64)) : T("", !0)
|
|
349
|
-
]))
|
|
350
|
-
]),
|
|
351
|
-
_: 1
|
|
352
|
-
}, 8, ["modelValue", "close-button", "is-container", "is-container-props", "onOn:clickedAway"])
|
|
353
|
-
], 64);
|
|
354
|
-
};
|
|
355
|
-
}
|
|
356
|
-
}), Ke = /* @__PURE__ */ Ue(ze, [["__scopeId", "data-v-469403ff"]]);
|
|
357
|
-
export {
|
|
358
|
-
Ke as L,
|
|
359
|
-
Ue as _,
|
|
360
|
-
c as a
|
|
361
|
-
};
|