@feedmepos/mf-menu 0.31.33 → 0.31.34-alpha

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 (101) hide show
  1. package/dist/{App-DNDOc3bV.js → App-CaKDbV0S.js} +6 -6
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-BvrfcWHU.js → ApplyProduct.vue_vue_type_script_setup_true_lang-gY18sRMg.js} +20 -20
  3. package/dist/{Catalog-Zhi-3W6T.js → Catalog-B0zMoi7e.js} +80 -80
  4. package/dist/{Category-BU0bkAGd.js → Category-Dyou6Q17.js} +31 -27
  5. package/dist/{Category-CE9ixFkD.js → Category-rMN8037Q.js} +19 -19
  6. package/dist/{CookingGuide-eghVaeEY.js → CookingGuide-DT2XxaWa.js} +4 -4
  7. package/dist/CustomAttributeChip.vue_vue_type_script_setup_true_lang-Cv9LNAfi.js +113 -0
  8. package/dist/{Group-DWrtP9Au.js → Group-CYSIOe3D.js} +1 -1
  9. package/dist/{Group-DDZPf6LY.js → Group-M4WPAAYz.js} +3 -3
  10. package/dist/Group.vue_vue_type_script_setup_true_lang-B-BH-2WN.js +686 -0
  11. package/dist/GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-TQWka93A.js +367 -0
  12. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-Cus0YKUt.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-DgSO7SQW.js} +4982 -5081
  13. package/dist/{Ingredient-BJgvOyV9.js → Ingredient-DNvr30pW.js} +3 -3
  14. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-CF99abLi.js → InventoryBinding.vue_vue_type_script_setup_true_lang-G44luws0.js} +1052 -1052
  15. package/dist/LinkProductSideSheet-Cp0HFoP2.js +297 -0
  16. package/dist/LinkProductSideSheet.vue_vue_type_style_index_0_scoped_97fa9d58_lang-DvG3mOom.js +8024 -0
  17. package/dist/{MenuSetting-gkwORUX0.js → MenuSetting-UeQ2NyVm.js} +4 -4
  18. package/dist/{PrintRoute-Cda6sFlL.js → PrintRoute-5uX9ymJY.js} +89 -88
  19. package/dist/{Product-61AAh5L-.js → Product-Dxqf8_iq.js} +1 -1
  20. package/dist/Product.vue_vue_type_script_setup_true_lang-DUtGVRCH.js +1578 -0
  21. package/dist/{ProductInternalTools-o8cVZXCT.js → ProductInternalTools-BCF9q0i_.js} +5 -5
  22. package/dist/Products--adhOQ8n.js +283 -0
  23. package/dist/{Publish-BRgJUzoA.js → Publish-CRaoaFxc.js} +3 -3
  24. package/dist/{Recipe-CV8lvryp.js → Recipe-DPkzZMJi.js} +4 -4
  25. package/dist/{Scheduler-B_ptvb82.js → Scheduler-BuwjNHHj.js} +3 -3
  26. package/dist/{ServingSequence-DABGnLbT.js → ServingSequence-Cdf_Zmat.js} +3 -3
  27. package/dist/Setting-Vr3Thttm.js +259 -0
  28. package/dist/{Subcategory-BiqlAvMs.js → Subcategory-DoXmjcg1.js} +4 -4
  29. package/dist/{Takeaway-BBdkzEiP.js → Takeaway-BRTQu8VT.js} +1 -1
  30. package/dist/{Takeaway-nIjrDu5C.js → Takeaway-t3il54Bd.js} +4 -4
  31. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-D_M2PFO-.js → Takeaway.vue_vue_type_script_setup_true_lang-DtHABSgp.js} +6 -6
  32. package/dist/Thumbnail.vue_vue_type_script_setup_true_lang-D_ACNj_Z.js +431 -0
  33. package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DAoGiRV-.js +5990 -0
  34. package/dist/{Unit-Di5sUbhV.js → Unit-C_QY3IX_.js} +2 -2
  35. package/dist/{Variant-CiZCtZk9.js → Variant-CR4IEm-Q.js} +3 -3
  36. package/dist/_id_-DOU7ieGB.js +202 -0
  37. package/dist/{app-B63V5b4I.js → app--fRC3N4C.js} +1 -1
  38. package/dist/{app-DuD_IPou.js → app-CrXLAKdw.js} +95 -97
  39. package/dist/app.js +6 -7
  40. package/dist/apps/mf-menu/src/app.d.ts +62 -3
  41. package/dist/apps/mf-menu/src/components/feature/PriceTier/LinkPriceTierSection.vue.d.ts +24 -0
  42. package/dist/apps/mf-menu/src/components/feature/PriceTier/PriceTierRuleEditor.vue.d.ts +30 -0
  43. package/dist/apps/mf-menu/src/components/feature/RestaurantAttributesSelector.vue.d.ts +33 -0
  44. package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/catalog.d.ts +2 -0
  45. package/dist/apps/mf-menu/src/components/feature/TreeEditor/store/menuV2.d.ts +80 -1
  46. package/dist/apps/mf-menu/src/composable/linkProducts.d.ts +1276 -0
  47. package/dist/apps/mf-menu/src/helper/import-export.d.ts +77 -0
  48. package/dist/apps/mf-menu/src/helper/menu.d.ts +77 -0
  49. package/dist/apps/mf-menu/src/helper/setting/catalogSetting.d.ts +11 -2
  50. package/dist/apps/mf-menu/src/manager/menu/item.d.ts +77 -0
  51. package/dist/apps/mf-menu/src/router/shared.d.ts +0 -1
  52. package/dist/apps/mf-menu/src/stores/manager/catalog.d.ts +2 -0
  53. package/dist/apps/mf-menu/src/stores/menu.d.ts +79 -0
  54. package/dist/apps/mf-menu/src/types/linkProducts.d.ts +21 -0
  55. package/dist/apps/mf-menu/src/views/PrintRoute/PrintDepartmentDialog.vue.d.ts +5 -3
  56. package/dist/apps/mf-menu/src/views/Publish/UpdateCatalogDialog.vue.d.ts +82 -0
  57. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  58. package/dist/assets/linked-status-BTF_dm9R.js +24 -0
  59. package/dist/assets/override-menu-BPu7TVCy.js +24 -0
  60. package/dist/assets/validate-menu-BQpDfHbr.js +24 -0
  61. package/dist/{catalog-DfYSMjLc.js → catalog-BGiDWODL.js} +1 -1
  62. package/dist/catalogSetting-C34kIcYn.js +71 -0
  63. package/dist/{category-mmjX_QdF.js → category-CayMSpUc.js} +1 -1
  64. package/dist/{currency-3ugQtBPt.js → currency-BggoZpJv.js} +1 -1
  65. package/dist/{dayjs.min-CkV4mNm8.js → dayjs.min-BKDTLohL.js} +1 -1
  66. package/dist/{index-Cztb2LVZ.js → index-BPcRbiW0.js} +3 -3
  67. package/dist/{index-BboaHtmY.js → index-CLFhXi0y.js} +3 -3
  68. package/dist/index-D7yR1j9C.js +215 -0
  69. package/dist/{index-BZaKuDcN.js → index-f9kzXNPD.js} +28 -28
  70. package/dist/{item-CVnDeXhJ.js → item-C51o9ejv.js} +547 -545
  71. package/dist/{jszip.min-GxfcHBC5.js → jszip.min-m57vowh9.js} +353 -353
  72. package/dist/{menu-sGVv4bhQ.js → menu-DHfLxvzU.js} +4 -4
  73. package/dist/menu-DK7wG3S5.js +133287 -0
  74. package/dist/menuV2-B-0V65cx.js +707 -0
  75. package/dist/mf-menu.css +1 -1
  76. package/dist/{priceTier-CHTA0ZEb.js → priceTier-DD-24pkj.js} +1 -1
  77. package/dist/{scheduler-CaMxCHZ0.js → scheduler-NjDv_P4c.js} +16 -17
  78. package/dist/subcategory-DLdBwjHV.js +148 -0
  79. package/dist/{toExcel-WorodvP1.js → toExcel-coJ5igRV.js} +15 -15
  80. package/dist/{unit-DtKZZYL6.js → unit-C7XUV0EW.js} +5 -4
  81. package/package.json +5 -5
  82. package/dist/CustomAttributeChip.vue_vue_type_script_setup_true_lang-BiF8rW4M.js +0 -7949
  83. package/dist/FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js +0 -26
  84. package/dist/Group.vue_vue_type_script_setup_true_lang-DyqGsRAW.js +0 -698
  85. package/dist/GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BmRUg94d.js +0 -206
  86. package/dist/LinkProductSideSheet-CTT4oGUY.js +0 -112
  87. package/dist/Product.vue_vue_type_script_setup_true_lang-Cy4uok1E.js +0 -1560
  88. package/dist/Products-D0rrANT6.js +0 -270
  89. package/dist/Setting-3ISlMXOA.js +0 -258
  90. package/dist/Thumbnail.vue_vue_type_script_setup_true_lang-DzQ8_6Bi.js +0 -71
  91. package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-y0n5hTLk.js +0 -6149
  92. package/dist/_id_-DY8himeL.js +0 -200
  93. package/dist/apps/mf-menu/src/components/feature/LinkProduct/LinkProductSideSheet.vue.d.ts +0 -70
  94. package/dist/assets/linked-status-CkBKnMXs.js +0 -24
  95. package/dist/assets/override-menu-XZ7XfcfS.js +0 -24
  96. package/dist/assets/validate-menu-Bomogq01.js +0 -24
  97. package/dist/catalogSetting-_4Z0s3_Q.js +0 -65
  98. package/dist/index-Ce4v8o7D.js +0 -106
  99. package/dist/menu-IGORh0Ik.js +0 -108039
  100. package/dist/subcategory-CmVttqlG.js +0 -817
  101. /package/dist/{apps/mf-menu/src/components → packages/shared/src/components/info}/CustomAttributeChip.vue.d.ts +0 -0
@@ -0,0 +1,367 @@
1
+ import { defineComponent as B, useModel as G, computed as A, resolveComponent as p, createBlock as S, openBlock as v, ref as I, watch as H, withCtx as _, createElementBlock as C, createElementVNode as M, Fragment as z, renderList as Y, createVNode as u, unref as e, createCommentVNode as U, withModifiers as q, onMounted as Z, renderSlot as ee, toDisplayString as D, createTextVNode as le } from "vue";
2
+ import { useI18n as L, EMPTY_RULE as x, isEmptyMongoQuery as te, isEmptyRule as h, useCustomAttributes as ae, useCoreStore as oe } from "@feedmepos/mf-common";
3
+ import { a as J, L as re } from "./LinkProductSideSheet-Cp0HFoP2.js";
4
+ import { u as w } from "./priceTier-DD-24pkj.js";
5
+ import { x as ue, N as ne, b as ie } from "./LinkProductSideSheet.vue_vue_type_style_index_0_scoped_97fa9d58_lang-DvG3mOom.js";
6
+ import { FmButtonVariant as K, useDialog as se, components as me, FmButtonColorThemeVariant as j } from "@feedmepos/ui-library";
7
+ import { _ as de } from "./FormSection.vue_vue_type_script_setup_true_lang-CO4YGYLB.js";
8
+ import { L as y } from "./catalogSetting-C34kIcYn.js";
9
+ import { c as O } from "./check-C9mY6LiX.js";
10
+ import { u as pe, H as Q, aj as ce } from "./menu-DK7wG3S5.js";
11
+ import { c as ve } from "./string-DpfFixWH.js";
12
+ const fe = /* @__PURE__ */ B({
13
+ __name: "LinkPriceTier",
14
+ props: {
15
+ modelValue: { required: !0 },
16
+ modelModifiers: {}
17
+ },
18
+ emits: ["update:modelValue"],
19
+ setup(k) {
20
+ const { t: T } = L(), o = G(k, "modelValue"), r = w(), a = A(() => r.priceTiers.value.map((b) => ({
21
+ label: b.key,
22
+ value: b.key
23
+ })));
24
+ return (b, f) => {
25
+ const i = p("FmSelect");
26
+ return v(), S(i, {
27
+ items: a.value,
28
+ "model-value": o.value ?? [],
29
+ multiselect: !0,
30
+ keepSelectionOrder: !0,
31
+ "onUpdate:modelValue": f[0] || (f[0] = (s) => o.value = s)
32
+ }, null, 8, ["items", "model-value"]);
33
+ };
34
+ }
35
+ }), _e = {
36
+ class: "flex justify-end"
37
+ }, be = /* @__PURE__ */ B({
38
+ __name: "PriceTierRuleEditor",
39
+ props: {
40
+ modelValue: {
41
+ required: !0
42
+ },
43
+ modelModifiers: {}
44
+ },
45
+ emits: ["update:modelValue"],
46
+ setup(k) {
47
+ var V;
48
+ const {
49
+ t: T
50
+ } = L(), o = G(k, "modelValue"), r = I((V = o.value) == null ? void 0 : V.map((t) => ({
51
+ ...t,
52
+ restaurantAttributes: te(t.restaurantAttributes) ? x : ue.build(t.restaurantAttributes)
53
+ })));
54
+ H(r, (t) => {
55
+ o.value = t == null ? void 0 : t.map((n) => ({
56
+ priceTier: n.priceTier,
57
+ restaurantAttributes: h(n.restaurantAttributes) ? null : ne.build(n.restaurantAttributes)
58
+ }));
59
+ }, {
60
+ deep: !0
61
+ });
62
+ const a = w(), {
63
+ attributes: b
64
+ } = ae({
65
+ valueSource: oe().restaurants,
66
+ entity: "restaurant"
67
+ });
68
+ function f(t, n) {
69
+ r.value && r.value[t] && (h(n) ? r.value[t].restaurantAttributes = x : r.value[t].restaurantAttributes = n);
70
+ }
71
+ const i = A(() => a.priceTiers.value.map((t) => ({
72
+ value: t.key,
73
+ label: t.key
74
+ })));
75
+ function s() {
76
+ r.value = [...r.value || [], {
77
+ priceTier: "",
78
+ restaurantAttributes: x
79
+ }];
80
+ }
81
+ function l(t) {
82
+ r.value && r.value.splice(t, 1);
83
+ }
84
+ return (t, n) => {
85
+ const N = p("FmSelect"), $ = p("fm-button"), m = p("FmCard"), c = p("FmButton");
86
+ return v(), S(de, null, {
87
+ default: _(() => [(v(!0), C(z, null, Y(r.value, (F, P) => (v(), S(m, {
88
+ key: P,
89
+ class: "p-16 space-y-16",
90
+ variant: "outlined"
91
+ }, {
92
+ default: _(() => [M("div", null, [u(N, {
93
+ label: "Price groups",
94
+ "label-mark": "required",
95
+ items: i.value,
96
+ "model-value": F.priceTier,
97
+ rules: [(g) => !!g || e(T)("menu.common.validation.required_field")],
98
+ "onUpdate:modelValue": (g) => F.priceTier = g
99
+ }, null, 8, ["items", "model-value", "rules", "onUpdate:modelValue"])]), u(J, {
100
+ label: "Restaurant filter"
101
+ }, {
102
+ default: _(() => [u(e(ie), {
103
+ attributes: e(b),
104
+ "model-value": F.restaurantAttributes,
105
+ "onUpdate:modelValue": (g) => f(P, g)
106
+ }, null, 8, ["attributes", "model-value", "onUpdate:modelValue"])]),
107
+ _: 2
108
+ }, 1024), M("div", _e, [u($, {
109
+ variant: e(K).Tertiary,
110
+ "prepend-icon": "delete",
111
+ onClick: (g) => l(P)
112
+ }, null, 8, ["variant", "onClick"])])]),
113
+ _: 2
114
+ }, 1024))), 128)), M("div", null, [u(c, {
115
+ label: "Add rule",
116
+ onClick: s
117
+ })])]),
118
+ _: 1
119
+ });
120
+ };
121
+ }
122
+ }), Be = /* @__PURE__ */ B({
123
+ __name: "LinkPriceTierSection",
124
+ props: {
125
+ modelValue: {},
126
+ isMainCatalog: {
127
+ type: Boolean
128
+ },
129
+ isV4: {
130
+ type: Boolean
131
+ }
132
+ },
133
+ emits: ["update:modelValue"],
134
+ setup(k, {
135
+ emit: T
136
+ }) {
137
+ const o = k, r = T, {
138
+ t: a
139
+ } = L(), b = w(), f = I(o.modelValue.priceTierRules && o.modelValue.priceTierRules.length > 0 ? y.Rules : y.Normal);
140
+ function i(s) {
141
+ r("update:modelValue", {
142
+ ...o.modelValue,
143
+ ...s
144
+ });
145
+ }
146
+ return (s, l) => {
147
+ const V = p("fm-radio"), t = p("fm-radio-group");
148
+ return !s.isMainCatalog && s.isV4 && e(b).priceTiers.value.length > 0 ? (v(), S(J, {
149
+ key: 0,
150
+ label: e(a)("menu.price_tier.link_price_tier")
151
+ }, {
152
+ default: _(() => [u(t, {
153
+ "model-value": f.value,
154
+ "onUpdate:modelValue": l[4] || (l[4] = (n) => {
155
+ f.value = n, n === e(y).Normal && i({
156
+ priceTierRules: null
157
+ });
158
+ })
159
+ }, {
160
+ default: _(() => [u(V, {
161
+ value: e(y).Normal,
162
+ label: e(a)("menu.price_tier.link_price_group"),
163
+ sublabel: e(a)("menu.price_tier.link_price_group_description")
164
+ }, null, 8, ["value", "label", "sublabel"]), f.value === e(y).Normal ? (v(), C("div", {
165
+ key: 0,
166
+ onClick: l[1] || (l[1] = q(() => {
167
+ }, ["prevent"])),
168
+ class: "pl-32"
169
+ }, [u(fe, {
170
+ "model-value": s.modelValue.usePriceTiers,
171
+ "onUpdate:modelValue": l[0] || (l[0] = (n) => i({
172
+ usePriceTiers: n
173
+ }))
174
+ }, null, 8, ["model-value"])])) : U("", !0), u(V, {
175
+ value: e(y).Rules,
176
+ label: e(a)("menu.price_tier.price_group_rule"),
177
+ sublabel: e(a)("menu.price_tier.price_group_rule_description")
178
+ }, null, 8, ["value", "label", "sublabel"]), f.value === e(y).Rules ? (v(), C("div", {
179
+ key: 1,
180
+ onClick: l[3] || (l[3] = q(() => {
181
+ }, ["prevent"])),
182
+ class: "pl-32"
183
+ }, [u(be, {
184
+ "model-value": s.modelValue.priceTierRules,
185
+ "onUpdate:modelValue": l[2] || (l[2] = (n) => i({
186
+ priceTierRules: n
187
+ }))
188
+ }, null, 8, ["model-value"])])) : U("", !0)]),
189
+ _: 1
190
+ }, 8, ["model-value"])]),
191
+ _: 1
192
+ }, 8, ["label"])) : U("", !0);
193
+ };
194
+ }
195
+ }), ge = { class: "space-y-16" }, ke = { class: "ml-32 mt-16 space-y-8" }, Ve = {
196
+ key: 0,
197
+ class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary"
198
+ }, Le = /* @__PURE__ */ B({
199
+ __name: "GroupMarkupPriceDialog",
200
+ props: {
201
+ modelValue: {},
202
+ items: {},
203
+ categories: {},
204
+ action: {}
205
+ },
206
+ emits: ["update:model-value"],
207
+ setup(k, { emit: T }) {
208
+ const o = k, r = pe();
209
+ se();
210
+ const { t: a } = L(), b = T, f = A(() => o.action === "add" ? a("menu.markup.dialog.title.add") : a("menu.markup.dialog.title.update")), i = I(!1), s = (m) => {
211
+ O.isBoolean(m) ? i.value = m : i.value = !i.value;
212
+ }, l = I(
213
+ o.modelValue ? Q(o.modelValue) : {
214
+ percentage: 0,
215
+ includeItems: null
216
+ }
217
+ );
218
+ H(
219
+ () => i.value,
220
+ (m) => {
221
+ m && (l.value = o.modelValue ? Q(o.modelValue) : {
222
+ percentage: 0,
223
+ includeItems: null
224
+ });
225
+ }
226
+ ), A(
227
+ () => ce(r.variants, o.categories, o.items)
228
+ );
229
+ function V(m) {
230
+ l.value = {
231
+ ...l.value,
232
+ includeItems: m
233
+ };
234
+ }
235
+ const t = I(
236
+ 0
237
+ /* ALL */
238
+ );
239
+ function n(m) {
240
+ t.value = m, l.value = {
241
+ ...l.value,
242
+ includeItems: m === 0 ? null : []
243
+ };
244
+ }
245
+ const N = A(() => [
246
+ {
247
+ label: a("menu.markup.dialog.options.all"),
248
+ value: 0
249
+ /* ALL */
250
+ },
251
+ {
252
+ label: a("menu.markup.dialog.options.custom"),
253
+ value: 1
254
+ /* CUSTOM */
255
+ }
256
+ ]);
257
+ async function $() {
258
+ b("update:model-value", l.value), s(!1);
259
+ }
260
+ return Z(() => {
261
+ t.value = l.value && l.value.includeItems === null ? 0 : 1;
262
+ }), (m, c) => {
263
+ const F = p("fm-icon"), P = p("fm-stepper-field"), g = p("fm-radio"), W = p("fm-radio-group"), E = p("fm-button"), X = p("fm-dialog");
264
+ return v(), C(z, null, [
265
+ ee(m.$slots, "default", { trigger: s }),
266
+ u(X, {
267
+ modelValue: i.value,
268
+ "onUpdate:modelValue": c[4] || (c[4] = (R) => i.value = R),
269
+ "is-component": e(me).FmForm,
270
+ "is-component-props": {
271
+ onValidationSuccess: $
272
+ }
273
+ }, {
274
+ "dialog-header": _(() => [
275
+ le(D(f.value), 1)
276
+ ]),
277
+ "dialog-footer": _(() => [
278
+ u(E, {
279
+ class: "sm:w-full xs:w-full ml-auto",
280
+ label: "Cancel",
281
+ variant: "tertiary",
282
+ onClick: c[3] || (c[3] = (R) => s(!1))
283
+ }),
284
+ u(E, {
285
+ label: e(ve)(m.action),
286
+ class: "sm:w-full xs:w-full",
287
+ size: "md",
288
+ type: "submit",
289
+ variant: "primary"
290
+ }, null, 8, ["label"])
291
+ ]),
292
+ default: _(() => {
293
+ var R;
294
+ return [
295
+ M("div", ge, [
296
+ u(P, {
297
+ modelValue: l.value.percentage,
298
+ "onUpdate:modelValue": c[0] || (c[0] = (d) => l.value.percentage = d),
299
+ decimal: 0,
300
+ max: 100,
301
+ min: 0,
302
+ rules: [
303
+ (d) => e(O).isSet(d) && d >= 0 || e(a)("menu.markup.dialog.fields.percentage.required")
304
+ ],
305
+ label: e(a)("menu.markup.dialog.fields.percentage.label"),
306
+ placeholder: e(a)("menu.markup.dialog.fields.percentage.placeholder")
307
+ }, {
308
+ prepend: _(() => [
309
+ u(F, { name: "percent" })
310
+ ]),
311
+ _: 1
312
+ }, 8, ["modelValue", "rules", "label", "placeholder"]),
313
+ M("div", null, [
314
+ u(W, {
315
+ modelValue: t.value,
316
+ "onUpdate:modelValue": [
317
+ c[1] || (c[1] = (d) => t.value = d),
318
+ n
319
+ ],
320
+ class: "space-y-8"
321
+ }, {
322
+ default: _(() => [
323
+ (v(!0), C(z, null, Y(N.value, (d) => (v(), S(g, {
324
+ key: d.value,
325
+ label: d.label,
326
+ value: d.value
327
+ }, null, 8, ["label", "value"]))), 128))
328
+ ]),
329
+ _: 1
330
+ }, 8, ["modelValue"]),
331
+ M("div", ke, [
332
+ u(re, {
333
+ title: "Link products",
334
+ "categorized-items": e(r).categorizedItems,
335
+ "initial-value": l.value.includeItems || [],
336
+ "show-variant": !1,
337
+ onSubmit: c[2] || (c[2] = ({ items: d }) => V(d))
338
+ }, {
339
+ default: _(({ trigger: d }) => [
340
+ t.value === 1 ? (v(), S(E, {
341
+ key: 0,
342
+ "text-color": e(j).ColorPrimary,
343
+ "border-color": e(j).ColorPrimary,
344
+ variant: e(K).Secondary,
345
+ label: e(a)("menu.markup.dialog.products.link"),
346
+ "prepend-icon": "link",
347
+ onClick: d
348
+ }, null, 8, ["text-color", "border-color", "variant", "label", "onClick"])) : U("", !0)
349
+ ]),
350
+ _: 1
351
+ }, 8, ["categorized-items", "initial-value"]),
352
+ (R = l.value.includeItems) != null && R.length ? (v(), C("p", Ve, D(e(a)("menu.markup.dialog.products.count", { count: l.value.includeItems.length })), 1)) : U("", !0)
353
+ ])
354
+ ])
355
+ ])
356
+ ];
357
+ }),
358
+ _: 1
359
+ }, 8, ["modelValue", "is-component", "is-component-props"])
360
+ ], 64);
361
+ };
362
+ }
363
+ });
364
+ export {
365
+ Le as _,
366
+ Be as a
367
+ };