@feedmepos/mf-menu 0.31.40-beta.2 → 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.
Files changed (91) hide show
  1. package/dist/{App-CoKv0BFp.js → App-aWEH-ZEk.js} +9 -9
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-B14Q0hS_.js → ApplyProduct.vue_vue_type_script_setup_true_lang-jJyinQZl.js} +3 -3
  3. package/dist/{Catalog-BRovMtuI.js → Catalog-BoFfFdn8.js} +9 -8
  4. package/dist/{Category-DytZqgIt.js → Category-CWYbb3Jn.js} +4 -4
  5. package/dist/{Category-CT8-B4zh.js → Category-DZ45uikR.js} +6 -6
  6. package/dist/{CookingGuide-Ct5qRLG0.js → CookingGuide-BU0PRWIQ.js} +4 -4
  7. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-D3R3TCba.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-Z5xsKDIE.js} +1 -1
  8. package/dist/FormSection.vue_vue_type_script_setup_true_lang-CO4YGYLB.js +50 -0
  9. package/dist/{Group-Dk1yQTTt.js → Group-BMQDeqiS.js} +1 -1
  10. package/dist/{Group-G_H8i5_8.js → Group-C0T_uknK.js} +3 -3
  11. package/dist/{Group.vue_vue_type_script_setup_true_lang-CoTdB2d5.js → Group.vue_vue_type_script_setup_true_lang-DyfmY6F1.js} +8 -8
  12. package/dist/GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-D6qro5w_.js +367 -0
  13. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-BKx7uQtR.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-Dl-Wvt3D.js} +14 -13
  14. package/dist/{Ingredient-ChynYQq6.js → Ingredient-3lwDUQx_.js} +3 -3
  15. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-DyaUxnMx.js → InventoryBinding.vue_vue_type_script_setup_true_lang-VLrrTkSC.js} +2 -2
  16. package/dist/LinkProductSideSheet-LDZjKX95.js +297 -0
  17. package/dist/{app-CiBqmBzO.js → LinkProductSideSheet.vue_vue_type_style_index_0_scoped_97fa9d58_lang-DvG3mOom.js} +2084 -2120
  18. package/dist/MenuSetting-AhutsCVy.js +185 -0
  19. package/dist/{PrintRoute-DwAZHUrQ.js → PrintRoute-DfJ-vUAb.js} +4 -4
  20. package/dist/{Product-Bx2NPQvC.js → Product-F4PoLm9v.js} +1 -1
  21. package/dist/{Product.vue_vue_type_script_setup_true_lang-od_O6x7E.js → Product.vue_vue_type_script_setup_true_lang-DT5gffpA.js} +465 -468
  22. package/dist/{ProductInternalTools-BOguHh06.js → ProductInternalTools-DSGU-OqU.js} +6 -6
  23. package/dist/{Products-DA2hOsxr.js → Products-COzW2Z4g.js} +85 -88
  24. package/dist/{Publish-WATQWkjh.js → Publish-CDXVWCk2.js} +3 -3
  25. package/dist/{Recipe-WPwGgur3.js → Recipe-BZx4wrcP.js} +4 -4
  26. package/dist/{Scheduler-Djjggrh2.js → Scheduler-wHCWSeU2.js} +3 -3
  27. package/dist/{ServingSequence-CryZJTWA.js → ServingSequence-BbYEhDYh.js} +3 -3
  28. package/dist/{Setting-BtLsmoqY.js → Setting-C9Tlw1Iy.js} +45 -44
  29. package/dist/{Subcategory-BvlYDquD.js → Subcategory-C8AwfrKb.js} +4 -4
  30. package/dist/{Takeaway-8khxlcKQ.js → Takeaway-DaEUn-yM.js} +4 -4
  31. package/dist/{Takeaway-BBvFxAlx.js → Takeaway-t1053wg2.js} +1 -1
  32. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-B8blN-yJ.js → Takeaway.vue_vue_type_script_setup_true_lang-7XycP5fU.js} +5 -5
  33. package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-CA9RlNkt.js → Thumbnail.vue_vue_type_script_setup_true_lang-B7oLH9cP.js} +95 -97
  34. package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-Ci6iqOry.js +5998 -0
  35. package/dist/{Unit-Diu00sM2.js → Unit-CnqptGCz.js} +2 -2
  36. package/dist/{Variant-CO15W0wb.js → Variant-DiOYOwJs.js} +3 -3
  37. package/dist/{_id_-CxA_FzSG.js → _id_-BSfU16VO.js} +75 -78
  38. package/dist/{app-Blbof2Ga.js → app-Cou6qPF2.js} +1 -1
  39. package/dist/{app-5ESai6-B.js → app-Ddb81PNo.js} +278 -278
  40. package/dist/app.js +1 -1
  41. package/dist/apps/mf-menu/src/api/menu.d.ts +1 -2
  42. package/dist/apps/mf-menu/src/app.d.ts +0 -144
  43. package/dist/apps/mf-menu/src/components/feature/PriceTier/PriceTierRuleEditor.vue.d.ts +0 -36
  44. package/dist/apps/mf-menu/src/components/feature/RestaurantAttributesSelector.vue.d.ts +3 -9
  45. package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/useItemFormManagement.d.ts +9 -2
  46. package/dist/apps/mf-menu/src/components/feature/TreeEditor/store/menuV2.d.ts +4 -294
  47. package/dist/apps/mf-menu/src/composable/linkProducts.d.ts +0 -40
  48. package/dist/apps/mf-menu/src/helper/import-export.d.ts +0 -285
  49. package/dist/apps/mf-menu/src/helper/menu.d.ts +0 -285
  50. package/dist/apps/mf-menu/src/manager/menu/item.d.ts +0 -285
  51. package/dist/apps/mf-menu/src/stores/menu.d.ts +3 -293
  52. package/dist/apps/mf-menu/src/views/Publish/UpdateCatalogDialog.vue.d.ts +0 -166
  53. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  54. package/dist/assets/linked-status-B_crHhZH.js +24 -0
  55. package/dist/assets/override-menu-BmlCEpHH.js +24 -0
  56. package/dist/assets/validate-menu-CF-psoB-.js +24 -0
  57. package/dist/{catalog-CXjEQ80k.js → catalog-DSuJhsUb.js} +1 -1
  58. package/dist/{catalogSetting-aJSUDY_z.js → catalogSetting-C3gEw9ov.js} +1 -1
  59. package/dist/{category-TqQULuHq.js → category-CwWq3KCE.js} +1 -1
  60. package/dist/{currency-CRjh8ne7.js → currency-g45Sh-t6.js} +1 -1
  61. package/dist/{dayjs.min-MBmYgyRY.js → dayjs.min-g3eN5z-V.js} +1 -1
  62. package/dist/index-0Q5T9VZV.js +214 -0
  63. package/dist/{index-dkHuztwB.js → index-0yRUi7LL.js} +1 -1
  64. package/dist/{index-CzjFGFvP.js → index-BLQCYEc6.js} +8 -7
  65. package/dist/{index-B1NS2hBa.js → index-QsLFbxyG.js} +4 -4
  66. package/dist/{item-Dj14On9a.js → item-BvvQ9urP.js} +386 -386
  67. package/dist/{jszip.min-Be1afVon.js → jszip.min-DzdUiaR4.js} +353 -353
  68. package/dist/{menu-C0Xu-iTb.js → menu-DFNvhoNQ.js} +31149 -31298
  69. package/dist/{menu-kRDoPBjm.js → menu-QrVg2Ph7.js} +7 -7
  70. package/dist/{menuV2-D6Gmxd9X.js → menuV2-Ezf_jW40.js} +137 -142
  71. package/dist/mf-menu.css +1 -1
  72. package/dist/{priceTier-CJlFGOpm.js → priceTier-zENsn3P_.js} +1 -1
  73. package/dist/{scheduler-B11d6fJr.js → scheduler-BuwGSv6A.js} +8 -8
  74. package/dist/{subcategory-D6hTbHP-.js → subcategory-O3L_zCJA.js} +2 -2
  75. package/dist/{toExcel-BedErXvS.js → toExcel-CpRy_4nG.js} +2 -2
  76. package/dist/{unit-D5jDzsM2.js → unit-Ct_7Hfa2.js} +41 -42
  77. package/package.json +3 -3
  78. package/dist/GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-B_Yv8Thl.js +0 -399
  79. package/dist/LinkProductSideSheet-DsoPo7Q_.js +0 -361
  80. package/dist/MenuSetting-CDSc-56P.js +0 -618
  81. package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-LVWB5CIa.js +0 -5994
  82. package/dist/apps/mf-menu/src/composable/attributes.d.ts +0 -26
  83. package/dist/apps/mf-menu/src/utils/array.d.ts +0 -1
  84. package/dist/apps/mf-menu/src/utils/customAttributes.d.ts +0 -12
  85. package/dist/apps/mf-menu/src/views/MenuSetting/LinkProductRuleGroups.vue.d.ts +0 -2
  86. package/dist/apps/mf-menu/src/views/MenuSetting/RuleGroupSideSheet.vue.d.ts +0 -176
  87. package/dist/assets/linked-status-x1efKEih.js +0 -13
  88. package/dist/assets/override-menu-D8d9BWzy.js +0 -13
  89. package/dist/assets/validate-menu-DUJ20GHx.js +0 -13
  90. package/dist/customAttributes-32VmzFKZ.js +0 -177
  91. package/dist/index-FzHOAFSW.js +0 -246
@@ -1,399 +0,0 @@
1
- import { defineComponent as N, useModel as K, computed as B, resolveComponent as d, createBlock as U, openBlock as b, ref as L, watch as W, withCtx as _, 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
- import { useI18n as z, useCustomAttributes as ue, useCoreStore as re, isEmptyRule as oe, EMPTY_RULE as w } from "@feedmepos/mf-common";
3
- import { m as j, f as O, u as ne, _ as ie, a as x } from "./customAttributes-32VmzFKZ.js";
4
- import { u as D } from "./priceTier-CJlFGOpm.js";
5
- import { b as G } from "./app-CiBqmBzO.js";
6
- import { FmButtonVariant as Z, useDialog as se, components as me, FmButtonColorThemeVariant as H } from "@feedmepos/ui-library";
7
- import { L as R } from "./catalogSetting-aJSUDY_z.js";
8
- import { L as de } from "./LinkProductSideSheet-DsoPo7Q_.js";
9
- import { c as Y } from "./check-C9mY6LiX.js";
10
- import { u as pe, H as J, aj as ce } from "./menu-C0Xu-iTb.js";
11
- import { c as ve } from "./string-DpfFixWH.js";
12
- const fe = /* @__PURE__ */ N({
13
- __name: "LinkPriceTier",
14
- props: {
15
- modelValue: { required: !0 },
16
- modelModifiers: {}
17
- },
18
- emits: ["update:modelValue"],
19
- setup(T) {
20
- const { t: y } = z(), r = K(T, "modelValue"), o = D(), a = B(() => o.priceTiers.value.map((V) => ({
21
- label: V.key,
22
- value: V.key
23
- })));
24
- return (V, g) => {
25
- const i = d("FmSelect");
26
- return b(), U(i, {
27
- items: a.value,
28
- "model-value": r.value ?? [],
29
- multiselect: !0,
30
- keepSelectionOrder: !0,
31
- "onUpdate:modelValue": g[0] || (g[0] = (s) => r.value = s)
32
- }, null, 8, ["items", "model-value"]);
33
- };
34
- }
35
- }), _e = {
36
- class: "flex justify-end"
37
- }, be = /* @__PURE__ */ N({
38
- __name: "PriceTierRuleEditor",
39
- props: {
40
- modelValue: {
41
- required: !0
42
- },
43
- modelModifiers: {}
44
- },
45
- emits: ["update:modelValue"],
46
- setup(T) {
47
- var k;
48
- const {
49
- t: y
50
- } = z(), r = K(T, "modelValue"), o = L((k = r.value) == null ? void 0 : k.map((l) => {
51
- var p, c;
52
- return {
53
- ...l,
54
- restaurantRule: {
55
- restaurantAttributes: j((p = l.restaurantRule) == null ? void 0 : p.restaurantAttributes),
56
- restaurantCustomAttributes: j((c = l.restaurantRule) == null ? void 0 : c.restaurantCustomAttributes)
57
- }
58
- };
59
- }));
60
- W(o, (l) => {
61
- r.value = l == null ? void 0 : l.map((p) => {
62
- var c, n;
63
- return {
64
- priceTier: p.priceTier,
65
- restaurantRule: {
66
- restaurantAttributes: O((c = p.restaurantRule) == null ? void 0 : c.restaurantAttributes),
67
- restaurantCustomAttributes: O((n = p.restaurantRule) == null ? void 0 : n.restaurantCustomAttributes)
68
- }
69
- };
70
- });
71
- }, {
72
- deep: !0
73
- });
74
- const a = D(), {
75
- attributes: V
76
- } = ue({
77
- valueSource: re().restaurants,
78
- entity: "restaurant"
79
- }), {
80
- restaurantAttributes: g
81
- } = ne();
82
- function i(l, p, c) {
83
- o.value && o.value[l] && (oe(p) ? o.value[l].restaurantRule[c] = w : o.value[l].restaurantRule[c] = p);
84
- }
85
- const s = B(() => a.priceTiers.value.map((l) => ({
86
- value: l.key,
87
- label: l.key
88
- })));
89
- function t() {
90
- o.value = [...o.value || [], {
91
- priceTier: "",
92
- restaurantRule: {
93
- restaurantAttributes: w,
94
- restaurantCustomAttributes: w
95
- }
96
- }];
97
- }
98
- function A(l) {
99
- o.value && o.value.splice(l, 1);
100
- }
101
- return (l, p) => {
102
- const c = d("FmSelect"), n = d("fm-button"), v = d("FmCard"), E = d("FmButton");
103
- return b(), U(ie, null, {
104
- default: _(() => [(b(!0), F(q, null, X(o.value, (M, S) => (b(), U(v, {
105
- key: S,
106
- class: "p-16 space-y-16",
107
- variant: "outlined"
108
- }, {
109
- default: _(() => [P("div", null, [u(c, {
110
- label: "Price groups",
111
- "label-mark": "required",
112
- items: s.value,
113
- "model-value": M.priceTier,
114
- rules: [(f) => !!f || e(y)("menu.common.validation.required_field")],
115
- "onUpdate:modelValue": (f) => M.priceTier = f
116
- }, null, 8, ["items", "model-value", "rules", "onUpdate:modelValue"])]), u(x, {
117
- label: e(y)("menu.link_product.rules.restaurant_filter")
118
- }, {
119
- default: _(() => {
120
- var f;
121
- return [u(e(G), {
122
- attributes: e(g),
123
- "model-value": (f = M.restaurantRule) == null ? void 0 : f.restaurantAttributes,
124
- "onUpdate:modelValue": (C) => i(S, C, "restaurantAttributes")
125
- }, null, 8, ["attributes", "model-value", "onUpdate:modelValue"])];
126
- }),
127
- _: 2
128
- }, 1032, ["label"]), u(x, {
129
- label: e(y)("menu.link_product.rules.restaurant_custom_attributes_filter")
130
- }, {
131
- default: _(() => {
132
- var f;
133
- return [u(e(G), {
134
- attributes: e(V),
135
- "model-value": (f = M.restaurantRule) == null ? void 0 : f.restaurantCustomAttributes,
136
- "onUpdate:modelValue": (C) => i(S, C, "restaurantCustomAttributes")
137
- }, null, 8, ["attributes", "model-value", "onUpdate:modelValue"])];
138
- }),
139
- _: 2
140
- }, 1032, ["label"]), P("div", _e, [u(n, {
141
- variant: e(Z).Tertiary,
142
- "prepend-icon": "delete",
143
- onClick: (f) => A(S)
144
- }, null, 8, ["variant", "onClick"])])]),
145
- _: 2
146
- }, 1024))), 128)), P("div", null, [u(E, {
147
- label: "Add rule",
148
- onClick: t
149
- })])]),
150
- _: 1
151
- });
152
- };
153
- }
154
- }), Be = /* @__PURE__ */ N({
155
- __name: "LinkPriceTierSection",
156
- props: {
157
- modelValue: {},
158
- isMainCatalog: {
159
- type: Boolean
160
- },
161
- isV4: {
162
- type: Boolean
163
- }
164
- },
165
- emits: ["update:modelValue"],
166
- setup(T, {
167
- emit: y
168
- }) {
169
- const r = T, o = y, {
170
- t: a
171
- } = z(), V = D(), g = L(r.modelValue.priceTierRules && r.modelValue.priceTierRules.length > 0 ? R.Rules : R.Normal);
172
- function i(s) {
173
- o("update:modelValue", {
174
- ...r.modelValue,
175
- ...s
176
- });
177
- }
178
- return (s, t) => {
179
- const A = d("fm-radio"), k = d("fm-radio-group");
180
- return !s.isMainCatalog && s.isV4 && e(V).priceTiers.value.length > 0 ? (b(), U(x, {
181
- key: 0,
182
- label: e(a)("menu.price_tier.link_price_tier")
183
- }, {
184
- default: _(() => [u(k, {
185
- "model-value": g.value,
186
- "onUpdate:modelValue": t[4] || (t[4] = (l) => {
187
- g.value = l, l === e(R).Normal && i({
188
- priceTierRules: null
189
- });
190
- })
191
- }, {
192
- default: _(() => [u(A, {
193
- value: e(R).Normal,
194
- label: e(a)("menu.price_tier.link_price_group"),
195
- sublabel: e(a)("menu.price_tier.link_price_group_description")
196
- }, null, 8, ["value", "label", "sublabel"]), g.value === e(R).Normal ? (b(), F("div", {
197
- key: 0,
198
- onClick: t[1] || (t[1] = Q(() => {
199
- }, ["prevent"])),
200
- class: "pl-32"
201
- }, [u(fe, {
202
- "model-value": s.modelValue.usePriceTiers,
203
- "onUpdate:modelValue": t[0] || (t[0] = (l) => i({
204
- usePriceTiers: l
205
- }))
206
- }, null, 8, ["model-value"])])) : $("", !0), u(A, {
207
- value: e(R).Rules,
208
- label: e(a)("menu.price_tier.price_group_rule"),
209
- sublabel: e(a)("menu.price_tier.price_group_rule_description")
210
- }, null, 8, ["value", "label", "sublabel"]), g.value === e(R).Rules ? (b(), F("div", {
211
- key: 1,
212
- onClick: t[3] || (t[3] = Q(() => {
213
- }, ["prevent"])),
214
- class: "pl-32"
215
- }, [u(be, {
216
- "model-value": s.modelValue.priceTierRules,
217
- "onUpdate:modelValue": t[2] || (t[2] = (l) => i({
218
- priceTierRules: l
219
- }))
220
- }, null, 8, ["model-value"])])) : $("", !0)]),
221
- _: 1
222
- }, 8, ["model-value"])]),
223
- _: 1
224
- }, 8, ["label"])) : $("", !0);
225
- };
226
- }
227
- }), ge = { class: "space-y-16" }, ke = { class: "ml-32 mt-16 space-y-8" }, Ve = {
228
- key: 0,
229
- class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary"
230
- }, Le = /* @__PURE__ */ N({
231
- __name: "GroupMarkupPriceDialog",
232
- props: {
233
- modelValue: {},
234
- items: {},
235
- categories: {},
236
- action: {}
237
- },
238
- emits: ["update:model-value"],
239
- setup(T, { emit: y }) {
240
- const r = T, o = pe();
241
- se();
242
- const { t: a } = z(), V = y, g = B(() => r.action === "add" ? a("menu.markup.dialog.title.add") : a("menu.markup.dialog.title.update")), i = L(!1), s = (n) => {
243
- Y.isBoolean(n) ? i.value = n : i.value = !i.value;
244
- }, t = L(
245
- r.modelValue ? J(r.modelValue) : {
246
- percentage: 0,
247
- includeItems: null
248
- }
249
- );
250
- W(
251
- () => i.value,
252
- (n) => {
253
- n && (t.value = r.modelValue ? J(r.modelValue) : {
254
- percentage: 0,
255
- includeItems: null
256
- });
257
- }
258
- ), B(
259
- () => ce(o.variants, r.categories, r.items)
260
- );
261
- function A(n) {
262
- t.value = {
263
- ...t.value,
264
- includeItems: n
265
- };
266
- }
267
- const k = L(
268
- 0
269
- /* ALL */
270
- );
271
- function l(n) {
272
- k.value = n, t.value = {
273
- ...t.value,
274
- includeItems: n === 0 ? null : []
275
- };
276
- }
277
- const p = B(() => [
278
- {
279
- label: a("menu.markup.dialog.options.all"),
280
- value: 0
281
- /* ALL */
282
- },
283
- {
284
- label: a("menu.markup.dialog.options.custom"),
285
- value: 1
286
- /* CUSTOM */
287
- }
288
- ]);
289
- async function c() {
290
- V("update:model-value", t.value), s(!1);
291
- }
292
- return te(() => {
293
- k.value = t.value && t.value.includeItems === null ? 0 : 1;
294
- }), (n, v) => {
295
- const E = d("fm-icon"), M = d("fm-stepper-field"), S = d("fm-radio"), f = d("fm-radio-group"), C = d("fm-button"), ee = d("fm-dialog");
296
- return b(), F(q, null, [
297
- le(n.$slots, "default", { trigger: s }),
298
- u(ee, {
299
- modelValue: i.value,
300
- "onUpdate:modelValue": v[4] || (v[4] = (I) => i.value = I),
301
- "is-component": e(me).FmForm,
302
- "is-component-props": {
303
- onValidationSuccess: c
304
- }
305
- }, {
306
- "dialog-header": _(() => [
307
- ae(h(g.value), 1)
308
- ]),
309
- "dialog-footer": _(() => [
310
- u(C, {
311
- class: "sm:w-full xs:w-full ml-auto",
312
- label: "Cancel",
313
- variant: "tertiary",
314
- onClick: v[3] || (v[3] = (I) => s(!1))
315
- }),
316
- u(C, {
317
- label: e(ve)(n.action),
318
- class: "sm:w-full xs:w-full",
319
- size: "md",
320
- type: "submit",
321
- variant: "primary"
322
- }, null, 8, ["label"])
323
- ]),
324
- default: _(() => {
325
- var I;
326
- return [
327
- P("div", ge, [
328
- u(M, {
329
- modelValue: t.value.percentage,
330
- "onUpdate:modelValue": v[0] || (v[0] = (m) => t.value.percentage = m),
331
- decimal: 0,
332
- max: 100,
333
- min: 0,
334
- rules: [
335
- (m) => e(Y).isSet(m) && m >= 0 || e(a)("menu.markup.dialog.fields.percentage.required")
336
- ],
337
- label: e(a)("menu.markup.dialog.fields.percentage.label"),
338
- placeholder: e(a)("menu.markup.dialog.fields.percentage.placeholder")
339
- }, {
340
- prepend: _(() => [
341
- u(E, { name: "percent" })
342
- ]),
343
- _: 1
344
- }, 8, ["modelValue", "rules", "label", "placeholder"]),
345
- P("div", null, [
346
- u(f, {
347
- modelValue: k.value,
348
- "onUpdate:modelValue": [
349
- v[1] || (v[1] = (m) => k.value = m),
350
- l
351
- ],
352
- class: "space-y-8"
353
- }, {
354
- default: _(() => [
355
- (b(!0), F(q, null, X(p.value, (m) => (b(), U(S, {
356
- key: m.value,
357
- label: m.label,
358
- value: m.value
359
- }, null, 8, ["label", "value"]))), 128))
360
- ]),
361
- _: 1
362
- }, 8, ["modelValue"]),
363
- P("div", ke, [
364
- u(de, {
365
- title: "Link products",
366
- "categorized-items": e(o).categorizedItems,
367
- "initial-value": t.value.includeItems || [],
368
- "show-variant": !1,
369
- onSubmit: v[2] || (v[2] = ({ items: m }) => A(m))
370
- }, {
371
- default: _(({ trigger: m }) => [
372
- k.value === 1 ? (b(), U(C, {
373
- key: 0,
374
- "text-color": e(H).ColorPrimary,
375
- "border-color": e(H).ColorPrimary,
376
- variant: e(Z).Secondary,
377
- label: e(a)("menu.markup.dialog.products.link"),
378
- "prepend-icon": "link",
379
- onClick: m
380
- }, null, 8, ["text-color", "border-color", "variant", "label", "onClick"])) : $("", !0)
381
- ]),
382
- _: 1
383
- }, 8, ["categorized-items", "initial-value"]),
384
- (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)
385
- ])
386
- ])
387
- ])
388
- ];
389
- }),
390
- _: 1
391
- }, 8, ["modelValue", "is-component", "is-component-props"])
392
- ], 64);
393
- };
394
- }
395
- });
396
- export {
397
- Le as _,
398
- Be as a
399
- };