@feedmepos/mf-menu 0.32.17 → 0.32.18-dev.1
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-Cfl37TTw.js +152661 -0
- package/dist/{Catalog-ChlP8Cid.js → Catalog-Yxsb-D33.js} +47 -52
- package/dist/{Category-CHs96ibF.js → Category-0vJH8Ct0.js} +86 -92
- package/dist/{Category-B1tAJpNd.js → Category-qp0wI14I.js} +25 -26
- package/dist/{CookingGuide-mEvca-0v.js → CookingGuide-EpAr5F5U.js} +139 -143
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-Bk26jQI7.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-CkyD0sdI.js} +14 -16
- package/dist/{Group-Ye2IIY52.js → Group-B3W9iSbO.js} +5 -5
- package/dist/{Group-Co2Vf4Lw.js → Group-DLCh0fDU.js} +1 -1
- package/dist/{Group.vue_vue_type_script_setup_true_lang-BcxSbvJS.js → Group.vue_vue_type_script_setup_true_lang-Bzy_hXDv.js} +176 -186
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-D1f8VG-n.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BFaAXp7r.js} +81 -88
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-Jv6iJlg9.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-CxP8lDD0.js} +2502 -2508
- package/dist/{Ingredient-BgnW8sWo.js → Ingredient-CVLMr_YB.js} +102 -105
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-8ziHcUiK.js → InventoryBinding.vue_vue_type_script_setup_true_lang-CdTC5ykI.js} +1058 -1059
- package/dist/{MenuSetting-GEngjeC8.js → MenuSetting-Blpi1vSd.js} +58 -61
- package/dist/{PrintRoute-BSlUQT7g.js → PrintRoute-BS7PPPkE.js} +49 -52
- package/dist/{Product-DNg_BUuV.js → Product-DDeNKQ7u.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-Cehy2oy-.js → Product.vue_vue_type_script_setup_true_lang-rmv8m4_D.js} +286 -298
- package/dist/{ProductInternalTools-B5A67yxH.js → ProductInternalTools-CVuothk9.js} +45 -46
- package/dist/{Products-DCsxmTPB.js → Products-BIvsHKEt.js} +111 -116
- package/dist/{Publish-Cst0Ll6T.js → Publish-CDADU3Pp.js} +154 -159
- package/dist/{Recipe-DupS3SQT.js → Recipe-CMhW7e_z.js} +40 -43
- package/dist/{Scheduler-BcThU1M6.js → Scheduler-BpxunKBV.js} +7 -7
- package/dist/{ServingSequence-CT3THBH6.js → ServingSequence-BQVuYyAB.js} +54 -58
- package/dist/{Setting-Dxh8E3no.js → Setting-Dj0yyP37.js} +63 -66
- package/dist/{Subcategory-DhJEzofz.js → Subcategory-BH4DDZM4.js} +72 -76
- package/dist/{Takeaway-DSC7U4Jk.js → Takeaway-CGJBZ_sJ.js} +1 -1
- package/dist/{Takeaway-B8BSSKNj.js → Takeaway-DifOudVE.js} +20 -21
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-BLpiJlk2.js → Takeaway.vue_vue_type_script_setup_true_lang-D-R5_S5G.js} +59 -64
- package/dist/{Unit-joU7vZZu.js → Unit-DXDox2Ut.js} +8 -8
- package/dist/{Variant-D8YjRJ6N.js → Variant-DbJVwgm5.js} +75 -78
- package/dist/{_id_-Bd9uo1WW.js → _id_-RFYwWjbM.js} +34 -38
- package/dist/{app-BNrAos5Z.js → app-Z0KWH9-d.js} +74 -335
- package/dist/app.js +4 -5
- package/dist/apps/mf-menu/src/app.d.ts +1 -2
- package/dist/apps/mf-menu/src/helper/import-export-utils.d.ts +1 -0
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{linked-status-DbjzbFTw.js → linked-status-CkmoJAm-.js} +2 -2
- package/dist/assets/{menu-export-D_oNY_wi.js → menu-export-DcINiK28.js} +3 -3
- package/dist/assets/{override-menu-CIU7U1_4.js → override-menu-PUKiu-df.js} +2 -2
- package/dist/assets/{validate-menu-kuOxuwG9.js → validate-menu-CcqiRhNT.js} +2 -2
- package/dist/{catalogSetting-BHgsBDTl.js → catalogSetting-Bf66H-j7.js} +1 -1
- package/dist/dayjs.min-DNPTnUFp.js +6 -0
- package/dist/{jszip.min-7SsHzD5O.js → jszip.min-CO2_Gf69.js} +545 -545
- package/dist/{menu-Cd4NbFVq.js → menu-Brxar171.js} +1 -1
- package/dist/mf-menu.css +1 -1
- package/dist/{scheduler-B6OokVIA.js → scheduler-CqdIiE8G.js} +56 -60
- package/dist/{toExcel-BZkbXlHv.js → toExcel-CRJIU0NC.js} +2 -2
- package/dist/{unit-D6QOkMoM.js → unit-wYPYkm33.js} +98 -105
- package/package.json +1 -1
- package/dist/App-BiSEuDkd.js +0 -13484
- package/dist/ApplyProduct.vue_vue_type_script_setup_true_lang-C_SjdLpO.js +0 -161
- package/dist/FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js +0 -26
- package/dist/LinkProductSideSheet-DFDYEUBh.js +0 -687
- package/dist/MenuSelector.vue_vue_type_script_setup_true_lang-K6Z0QJBl.js +0 -69
- package/dist/RuleView.vue_vue_type_script_setup_true_lang-BeesK2ym.js +0 -3285
- package/dist/TextChip.vue_vue_type_script_setup_true_lang-8frWuZFL.js +0 -20
- package/dist/Thumbnail.vue_vue_type_script_setup_true_lang-C3qXnZlz.js +0 -399
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-CMe76XvZ.js +0 -6011
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
- package/dist/app-5fxKLAzS.js +0 -8163
- package/dist/app-nTzkERJW.js +0 -68
- package/dist/catalog-BO2nXwe5.js +0 -199
- package/dist/category-CuG3DsGL.js +0 -156
- package/dist/check-C9mY6LiX.js +0 -9
- package/dist/createComponentProgrammatically-Bt2rn1IQ.js +0 -11
- package/dist/currency-DxC5zyZB.js +0 -7
- package/dist/dayjs.min-BvFUSPWD.js +0 -6
- package/dist/discardConfirm-BHni0LNu.js +0 -28
- package/dist/index-B0nhvuxR.js +0 -273
- package/dist/index-C2zPvt64.js +0 -239
- package/dist/index-C36JQix-.js +0 -246
- package/dist/index-CisutoS9.js +0 -156
- package/dist/index.vue_vue_type_script_setup_true_lang-DCBYExNb.js +0 -109064
- package/dist/item-K01xd1Z0.js +0 -6868
- package/dist/menuV2-DKE-xanq.js +0 -1052
- package/dist/object-DVUNCr7w.js +0 -16
- package/dist/priceTier-Beavb91W.js +0 -87
- package/dist/search-BAPEUu1R.js +0 -15
- package/dist/string-DpfFixWH.js +0 -4
- package/dist/subcategory-DnslmmRD.js +0 -148
- package/dist/tooltip-B5BiPMx9.js +0 -32
- package/dist/vuedraggable-CK8z7qA8.js +0 -1728
|
@@ -1,16 +1,9 @@
|
|
|
1
|
-
import { defineComponent as N, useModel as K, computed as
|
|
1
|
+
import { defineComponent as N, useModel as K, computed as L, resolveComponent as d, createBlock as U, openBlock as b, ref as B, watch as W, withCtx as f, createElementBlock as F, createElementVNode as P, Fragment as q, renderList as X, createVNode as u, unref as e, createCommentVNode as $, withModifiers as Q, onMounted as te, renderSlot as le, toDisplayString as h, createTextVNode as ae } from "vue";
|
|
2
2
|
import { useI18n as z, useCustomAttributes as ue, useCoreStore as re, isEmptyRule as oe, EMPTY_RULE as w } from "@feedmepos/mf-common";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
import { m as G, f as Y, d as se, _ as me } from "./RuleView.vue_vue_type_script_setup_true_lang-BeesK2ym.js";
|
|
8
|
-
import { L as R } from "./catalogSetting-BHgsBDTl.js";
|
|
9
|
-
import { L as de } from "./LinkProductSideSheet-DFDYEUBh.js";
|
|
10
|
-
import { c as H } from "./check-C9mY6LiX.js";
|
|
11
|
-
import { u as pe, I as J, an as ce } from "./index.vue_vue_type_script_setup_true_lang-DCBYExNb.js";
|
|
12
|
-
import { c as ve } from "./string-DpfFixWH.js";
|
|
13
|
-
const fe = /* @__PURE__ */ N({
|
|
3
|
+
import { a7 as D, a3 as G, a6 as O, aL as ne, G as ie, a8 as x, $ as j, u as se, c as Y, aM as me, b as H, L as de, aN as ce } from "./App-Cfl37TTw.js";
|
|
4
|
+
import { FmButtonVariant as Z, useDialog as pe, components as ve, FmButtonColorThemeVariant as J } from "@feedmepos/ui-library";
|
|
5
|
+
import { L as R } from "./catalogSetting-Bf66H-j7.js";
|
|
6
|
+
const _e = /* @__PURE__ */ N({
|
|
14
7
|
__name: "LinkPriceTier",
|
|
15
8
|
props: {
|
|
16
9
|
modelValue: { required: !0 },
|
|
@@ -18,13 +11,13 @@ const fe = /* @__PURE__ */ N({
|
|
|
18
11
|
},
|
|
19
12
|
emits: ["update:modelValue"],
|
|
20
13
|
setup(T) {
|
|
21
|
-
const { t: y } = z(), r = K(T, "modelValue"), o = D(), a =
|
|
14
|
+
const { t: y } = z(), r = K(T, "modelValue"), o = D(), a = L(() => o.priceTiers.value.map((V) => ({
|
|
22
15
|
label: V.key,
|
|
23
16
|
value: V.key
|
|
24
17
|
})));
|
|
25
18
|
return (V, g) => {
|
|
26
19
|
const i = d("FmSelect");
|
|
27
|
-
return b(),
|
|
20
|
+
return b(), U(i, {
|
|
28
21
|
items: a.value,
|
|
29
22
|
"model-value": r.value ?? [],
|
|
30
23
|
multiselect: !0,
|
|
@@ -33,7 +26,7 @@ const fe = /* @__PURE__ */ N({
|
|
|
33
26
|
}, null, 8, ["items", "model-value"]);
|
|
34
27
|
};
|
|
35
28
|
}
|
|
36
|
-
}),
|
|
29
|
+
}), fe = {
|
|
37
30
|
class: "flex justify-end"
|
|
38
31
|
}, be = /* @__PURE__ */ N({
|
|
39
32
|
__name: "PriceTierRuleEditor",
|
|
@@ -48,24 +41,24 @@ const fe = /* @__PURE__ */ N({
|
|
|
48
41
|
var k;
|
|
49
42
|
const {
|
|
50
43
|
t: y
|
|
51
|
-
} = z(), r = K(T, "modelValue"), o =
|
|
52
|
-
var
|
|
44
|
+
} = z(), r = K(T, "modelValue"), o = B((k = r.value) == null ? void 0 : k.map((l) => {
|
|
45
|
+
var c, p;
|
|
53
46
|
return {
|
|
54
47
|
...l,
|
|
55
48
|
restaurantRule: {
|
|
56
|
-
restaurantAttributes: G((
|
|
57
|
-
restaurantCustomAttributes: G((
|
|
49
|
+
restaurantAttributes: G((c = l.restaurantRule) == null ? void 0 : c.restaurantAttributes),
|
|
50
|
+
restaurantCustomAttributes: G((p = l.restaurantRule) == null ? void 0 : p.restaurantCustomAttributes)
|
|
58
51
|
}
|
|
59
52
|
};
|
|
60
53
|
}));
|
|
61
54
|
W(o, (l) => {
|
|
62
|
-
r.value = l == null ? void 0 : l.map((
|
|
63
|
-
var
|
|
55
|
+
r.value = l == null ? void 0 : l.map((c) => {
|
|
56
|
+
var p, n;
|
|
64
57
|
return {
|
|
65
|
-
priceTier:
|
|
58
|
+
priceTier: c.priceTier,
|
|
66
59
|
restaurantRule: {
|
|
67
|
-
restaurantAttributes:
|
|
68
|
-
restaurantCustomAttributes:
|
|
60
|
+
restaurantAttributes: O((p = c.restaurantRule) == null ? void 0 : p.restaurantAttributes),
|
|
61
|
+
restaurantCustomAttributes: O((n = c.restaurantRule) == null ? void 0 : n.restaurantCustomAttributes)
|
|
69
62
|
}
|
|
70
63
|
};
|
|
71
64
|
});
|
|
@@ -79,11 +72,11 @@ const fe = /* @__PURE__ */ N({
|
|
|
79
72
|
entity: "restaurant"
|
|
80
73
|
}), {
|
|
81
74
|
restaurantAttributes: g
|
|
82
|
-
} =
|
|
83
|
-
function i(l,
|
|
84
|
-
o.value && o.value[l] && (oe(
|
|
75
|
+
} = ne();
|
|
76
|
+
function i(l, c, p) {
|
|
77
|
+
o.value && o.value[l] && (oe(c) ? o.value[l].restaurantRule[p] = w : o.value[l].restaurantRule[p] = c);
|
|
85
78
|
}
|
|
86
|
-
const s =
|
|
79
|
+
const s = L(() => a.priceTiers.value.map((l) => ({
|
|
87
80
|
value: l.key,
|
|
88
81
|
label: l.key
|
|
89
82
|
})));
|
|
@@ -99,29 +92,29 @@ const fe = /* @__PURE__ */ N({
|
|
|
99
92
|
function A(l) {
|
|
100
93
|
o.value && o.value.splice(l, 1);
|
|
101
94
|
}
|
|
102
|
-
return (l,
|
|
103
|
-
const
|
|
104
|
-
return b(),
|
|
105
|
-
default:
|
|
95
|
+
return (l, c) => {
|
|
96
|
+
const p = d("FmSelect"), n = d("fm-button"), v = d("FmCard"), E = d("FmButton");
|
|
97
|
+
return b(), U(ie, null, {
|
|
98
|
+
default: f(() => [(b(!0), F(q, null, X(o.value, (M, S) => (b(), U(v, {
|
|
106
99
|
key: S,
|
|
107
100
|
class: "p-16 space-y-16",
|
|
108
101
|
variant: "outlined"
|
|
109
102
|
}, {
|
|
110
|
-
default:
|
|
103
|
+
default: f(() => [P("div", null, [u(p, {
|
|
111
104
|
label: "Price groups",
|
|
112
105
|
"label-mark": "required",
|
|
113
106
|
items: s.value,
|
|
114
107
|
"model-value": M.priceTier,
|
|
115
|
-
rules: [(
|
|
116
|
-
"onUpdate:modelValue": (
|
|
108
|
+
rules: [(_) => !!_ || e(y)("menu.common.validation.required_field")],
|
|
109
|
+
"onUpdate:modelValue": (_) => M.priceTier = _
|
|
117
110
|
}, null, 8, ["items", "model-value", "rules", "onUpdate:modelValue"])]), u(x, {
|
|
118
111
|
label: e(y)("menu.link_product.rules.restaurant_filter")
|
|
119
112
|
}, {
|
|
120
|
-
default:
|
|
121
|
-
var
|
|
122
|
-
return [u(e(
|
|
113
|
+
default: f(() => {
|
|
114
|
+
var _;
|
|
115
|
+
return [u(e(j), {
|
|
123
116
|
attributes: e(g),
|
|
124
|
-
"model-value": (
|
|
117
|
+
"model-value": (_ = M.restaurantRule) == null ? void 0 : _.restaurantAttributes,
|
|
125
118
|
"onUpdate:modelValue": (C) => i(S, C, "restaurantAttributes")
|
|
126
119
|
}, null, 8, ["attributes", "model-value", "onUpdate:modelValue"])];
|
|
127
120
|
}),
|
|
@@ -129,22 +122,22 @@ const fe = /* @__PURE__ */ N({
|
|
|
129
122
|
}, 1032, ["label"]), u(x, {
|
|
130
123
|
label: e(y)("menu.link_product.rules.restaurant_custom_attributes_filter")
|
|
131
124
|
}, {
|
|
132
|
-
default:
|
|
133
|
-
var
|
|
134
|
-
return [u(e(
|
|
125
|
+
default: f(() => {
|
|
126
|
+
var _;
|
|
127
|
+
return [u(e(j), {
|
|
135
128
|
attributes: e(V),
|
|
136
|
-
"model-value": (
|
|
129
|
+
"model-value": (_ = M.restaurantRule) == null ? void 0 : _.restaurantCustomAttributes,
|
|
137
130
|
"onUpdate:modelValue": (C) => i(S, C, "restaurantCustomAttributes")
|
|
138
131
|
}, null, 8, ["attributes", "model-value", "onUpdate:modelValue"])];
|
|
139
132
|
}),
|
|
140
133
|
_: 2
|
|
141
|
-
}, 1032, ["label"]),
|
|
134
|
+
}, 1032, ["label"]), P("div", fe, [u(n, {
|
|
142
135
|
variant: e(Z).Tertiary,
|
|
143
136
|
"prepend-icon": "delete",
|
|
144
|
-
onClick: (
|
|
137
|
+
onClick: (_) => A(S)
|
|
145
138
|
}, null, 8, ["variant", "onClick"])])]),
|
|
146
139
|
_: 2
|
|
147
|
-
}, 1024))), 128)),
|
|
140
|
+
}, 1024))), 128)), P("div", null, [u(E, {
|
|
148
141
|
label: "Add rule",
|
|
149
142
|
onClick: t
|
|
150
143
|
})])]),
|
|
@@ -152,7 +145,7 @@ const fe = /* @__PURE__ */ N({
|
|
|
152
145
|
});
|
|
153
146
|
};
|
|
154
147
|
}
|
|
155
|
-
}),
|
|
148
|
+
}), Me = /* @__PURE__ */ N({
|
|
156
149
|
__name: "LinkPriceTierSection",
|
|
157
150
|
props: {
|
|
158
151
|
modelValue: {},
|
|
@@ -169,7 +162,7 @@ const fe = /* @__PURE__ */ N({
|
|
|
169
162
|
}) {
|
|
170
163
|
const r = T, o = y, {
|
|
171
164
|
t: a
|
|
172
|
-
} = z(), V = D(), g =
|
|
165
|
+
} = z(), V = D(), g = B(r.modelValue.priceTierRules && r.modelValue.priceTierRules.length > 0 ? R.Rules : R.Normal);
|
|
173
166
|
function i(s) {
|
|
174
167
|
o("update:modelValue", {
|
|
175
168
|
...r.modelValue,
|
|
@@ -178,11 +171,11 @@ const fe = /* @__PURE__ */ N({
|
|
|
178
171
|
}
|
|
179
172
|
return (s, t) => {
|
|
180
173
|
const A = d("fm-radio"), k = d("fm-radio-group");
|
|
181
|
-
return !s.isMainCatalog && s.isV4 && e(V).priceTiers.value.length > 0 ? (b(),
|
|
174
|
+
return !s.isMainCatalog && s.isV4 && e(V).priceTiers.value.length > 0 ? (b(), U(x, {
|
|
182
175
|
key: 0,
|
|
183
176
|
label: e(a)("menu.price_tier.link_price_tier")
|
|
184
177
|
}, {
|
|
185
|
-
default:
|
|
178
|
+
default: f(() => [u(k, {
|
|
186
179
|
"model-value": g.value,
|
|
187
180
|
"onUpdate:modelValue": t[4] || (t[4] = (l) => {
|
|
188
181
|
g.value = l, l === e(R).Normal && i({
|
|
@@ -190,7 +183,7 @@ const fe = /* @__PURE__ */ N({
|
|
|
190
183
|
});
|
|
191
184
|
})
|
|
192
185
|
}, {
|
|
193
|
-
default:
|
|
186
|
+
default: f(() => [u(A, {
|
|
194
187
|
value: e(R).Normal,
|
|
195
188
|
label: e(a)("menu.price_tier.link_price_group"),
|
|
196
189
|
sublabel: e(a)("menu.price_tier.link_price_group_description")
|
|
@@ -199,7 +192,7 @@ const fe = /* @__PURE__ */ N({
|
|
|
199
192
|
onClick: t[1] || (t[1] = Q(() => {
|
|
200
193
|
}, ["prevent"])),
|
|
201
194
|
class: "pl-32"
|
|
202
|
-
}, [u(
|
|
195
|
+
}, [u(_e, {
|
|
203
196
|
"model-value": s.modelValue.usePriceTiers,
|
|
204
197
|
"onUpdate:modelValue": t[0] || (t[0] = (l) => i({
|
|
205
198
|
usePriceTiers: l
|
|
@@ -228,7 +221,7 @@ const fe = /* @__PURE__ */ N({
|
|
|
228
221
|
}), ge = { class: "space-y-16" }, ke = { class: "ml-32 mt-16 space-y-8" }, Ve = {
|
|
229
222
|
key: 0,
|
|
230
223
|
class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary"
|
|
231
|
-
},
|
|
224
|
+
}, Se = /* @__PURE__ */ N({
|
|
232
225
|
__name: "GroupMarkupPriceDialog",
|
|
233
226
|
props: {
|
|
234
227
|
modelValue: {},
|
|
@@ -238,12 +231,12 @@ const fe = /* @__PURE__ */ N({
|
|
|
238
231
|
},
|
|
239
232
|
emits: ["update:model-value"],
|
|
240
233
|
setup(T, { emit: y }) {
|
|
241
|
-
const r = T, o =
|
|
242
|
-
|
|
243
|
-
const { t: a } = z(), V = y, g =
|
|
234
|
+
const r = T, o = se();
|
|
235
|
+
pe();
|
|
236
|
+
const { t: a } = z(), V = y, g = L(() => r.action === "add" ? a("menu.markup.dialog.title.add") : a("menu.markup.dialog.title.update")), i = B(!1), s = (n) => {
|
|
244
237
|
H.isBoolean(n) ? i.value = n : i.value = !i.value;
|
|
245
|
-
}, t =
|
|
246
|
-
r.modelValue ?
|
|
238
|
+
}, t = B(
|
|
239
|
+
r.modelValue ? Y(r.modelValue) : {
|
|
247
240
|
percentage: 0,
|
|
248
241
|
includeItems: null
|
|
249
242
|
}
|
|
@@ -251,13 +244,13 @@ const fe = /* @__PURE__ */ N({
|
|
|
251
244
|
W(
|
|
252
245
|
() => i.value,
|
|
253
246
|
(n) => {
|
|
254
|
-
n && (t.value = r.modelValue ?
|
|
247
|
+
n && (t.value = r.modelValue ? Y(r.modelValue) : {
|
|
255
248
|
percentage: 0,
|
|
256
249
|
includeItems: null
|
|
257
250
|
});
|
|
258
251
|
}
|
|
259
|
-
),
|
|
260
|
-
() =>
|
|
252
|
+
), L(
|
|
253
|
+
() => me(o.variants, r.categories, r.items)
|
|
261
254
|
);
|
|
262
255
|
function A(n) {
|
|
263
256
|
t.value = {
|
|
@@ -265,7 +258,7 @@ const fe = /* @__PURE__ */ N({
|
|
|
265
258
|
includeItems: n
|
|
266
259
|
};
|
|
267
260
|
}
|
|
268
|
-
const k =
|
|
261
|
+
const k = B(
|
|
269
262
|
0
|
|
270
263
|
/* ALL */
|
|
271
264
|
);
|
|
@@ -275,7 +268,7 @@ const fe = /* @__PURE__ */ N({
|
|
|
275
268
|
includeItems: n === 0 ? null : []
|
|
276
269
|
};
|
|
277
270
|
}
|
|
278
|
-
const
|
|
271
|
+
const c = L(() => [
|
|
279
272
|
{
|
|
280
273
|
label: a("menu.markup.dialog.options.all"),
|
|
281
274
|
value: 0
|
|
@@ -287,45 +280,45 @@ const fe = /* @__PURE__ */ N({
|
|
|
287
280
|
/* CUSTOM */
|
|
288
281
|
}
|
|
289
282
|
]);
|
|
290
|
-
async function
|
|
283
|
+
async function p() {
|
|
291
284
|
V("update:model-value", t.value), s(!1);
|
|
292
285
|
}
|
|
293
286
|
return te(() => {
|
|
294
287
|
k.value = t.value && t.value.includeItems === null ? 0 : 1;
|
|
295
288
|
}), (n, v) => {
|
|
296
|
-
const E = d("fm-icon"), M = d("fm-stepper-field"), S = d("fm-radio"),
|
|
289
|
+
const E = d("fm-icon"), M = d("fm-stepper-field"), S = d("fm-radio"), _ = d("fm-radio-group"), C = d("fm-button"), ee = d("fm-dialog");
|
|
297
290
|
return b(), F(q, null, [
|
|
298
291
|
le(n.$slots, "default", { trigger: s }),
|
|
299
292
|
u(ee, {
|
|
300
293
|
modelValue: i.value,
|
|
301
|
-
"onUpdate:modelValue": v[4] || (v[4] = (
|
|
302
|
-
"is-component": e(
|
|
294
|
+
"onUpdate:modelValue": v[4] || (v[4] = (I) => i.value = I),
|
|
295
|
+
"is-component": e(ve).FmForm,
|
|
303
296
|
"is-component-props": {
|
|
304
|
-
onValidationSuccess:
|
|
297
|
+
onValidationSuccess: p
|
|
305
298
|
}
|
|
306
299
|
}, {
|
|
307
|
-
"dialog-header":
|
|
300
|
+
"dialog-header": f(() => [
|
|
308
301
|
ae(h(g.value), 1)
|
|
309
302
|
]),
|
|
310
|
-
"dialog-footer":
|
|
303
|
+
"dialog-footer": f(() => [
|
|
311
304
|
u(C, {
|
|
312
305
|
class: "sm:w-full xs:w-full ml-auto",
|
|
313
306
|
label: "Cancel",
|
|
314
307
|
variant: "tertiary",
|
|
315
|
-
onClick: v[3] || (v[3] = (
|
|
308
|
+
onClick: v[3] || (v[3] = (I) => s(!1))
|
|
316
309
|
}),
|
|
317
310
|
u(C, {
|
|
318
|
-
label: e(
|
|
311
|
+
label: e(ce)(n.action),
|
|
319
312
|
class: "sm:w-full xs:w-full",
|
|
320
313
|
size: "md",
|
|
321
314
|
type: "submit",
|
|
322
315
|
variant: "primary"
|
|
323
316
|
}, null, 8, ["label"])
|
|
324
317
|
]),
|
|
325
|
-
default:
|
|
326
|
-
var
|
|
318
|
+
default: f(() => {
|
|
319
|
+
var I;
|
|
327
320
|
return [
|
|
328
|
-
|
|
321
|
+
P("div", ge, [
|
|
329
322
|
u(M, {
|
|
330
323
|
modelValue: t.value.percentage,
|
|
331
324
|
"onUpdate:modelValue": v[0] || (v[0] = (m) => t.value.percentage = m),
|
|
@@ -338,13 +331,13 @@ const fe = /* @__PURE__ */ N({
|
|
|
338
331
|
label: e(a)("menu.markup.dialog.fields.percentage.label"),
|
|
339
332
|
placeholder: e(a)("menu.markup.dialog.fields.percentage.placeholder")
|
|
340
333
|
}, {
|
|
341
|
-
prepend:
|
|
334
|
+
prepend: f(() => [
|
|
342
335
|
u(E, { name: "percent" })
|
|
343
336
|
]),
|
|
344
337
|
_: 1
|
|
345
338
|
}, 8, ["modelValue", "rules", "label", "placeholder"]),
|
|
346
|
-
|
|
347
|
-
u(
|
|
339
|
+
P("div", null, [
|
|
340
|
+
u(_, {
|
|
348
341
|
modelValue: k.value,
|
|
349
342
|
"onUpdate:modelValue": [
|
|
350
343
|
v[1] || (v[1] = (m) => k.value = m),
|
|
@@ -352,8 +345,8 @@ const fe = /* @__PURE__ */ N({
|
|
|
352
345
|
],
|
|
353
346
|
class: "space-y-8"
|
|
354
347
|
}, {
|
|
355
|
-
default:
|
|
356
|
-
(b(!0), F(q, null, X(
|
|
348
|
+
default: f(() => [
|
|
349
|
+
(b(!0), F(q, null, X(c.value, (m) => (b(), U(S, {
|
|
357
350
|
key: m.value,
|
|
358
351
|
label: m.label,
|
|
359
352
|
value: m.value
|
|
@@ -361,7 +354,7 @@ const fe = /* @__PURE__ */ N({
|
|
|
361
354
|
]),
|
|
362
355
|
_: 1
|
|
363
356
|
}, 8, ["modelValue"]),
|
|
364
|
-
|
|
357
|
+
P("div", ke, [
|
|
365
358
|
u(de, {
|
|
366
359
|
title: "Link products",
|
|
367
360
|
"categorized-items": e(o).categorizedItems,
|
|
@@ -369,11 +362,11 @@ const fe = /* @__PURE__ */ N({
|
|
|
369
362
|
"show-variant": !1,
|
|
370
363
|
onSubmit: v[2] || (v[2] = ({ items: m }) => A(m))
|
|
371
364
|
}, {
|
|
372
|
-
default:
|
|
373
|
-
k.value === 1 ? (b(),
|
|
365
|
+
default: f(({ trigger: m }) => [
|
|
366
|
+
k.value === 1 ? (b(), U(C, {
|
|
374
367
|
key: 0,
|
|
375
|
-
"text-color": e(
|
|
376
|
-
"border-color": e(
|
|
368
|
+
"text-color": e(J).ColorPrimary,
|
|
369
|
+
"border-color": e(J).ColorPrimary,
|
|
377
370
|
variant: e(Z).Secondary,
|
|
378
371
|
label: e(a)("menu.markup.dialog.products.link"),
|
|
379
372
|
"prepend-icon": "link",
|
|
@@ -382,7 +375,7 @@ const fe = /* @__PURE__ */ N({
|
|
|
382
375
|
]),
|
|
383
376
|
_: 1
|
|
384
377
|
}, 8, ["categorized-items", "initial-value"]),
|
|
385
|
-
(
|
|
378
|
+
(I = t.value.includeItems) != null && I.length ? (b(), F("p", Ve, h(e(a)("menu.markup.dialog.products.count", { count: t.value.includeItems.length })), 1)) : $("", !0)
|
|
386
379
|
])
|
|
387
380
|
])
|
|
388
381
|
])
|
|
@@ -395,6 +388,6 @@ const fe = /* @__PURE__ */ N({
|
|
|
395
388
|
}
|
|
396
389
|
});
|
|
397
390
|
export {
|
|
398
|
-
|
|
399
|
-
|
|
391
|
+
Se as _,
|
|
392
|
+
Me as a
|
|
400
393
|
};
|