@muenchen/muc-patternlab-vue 1.13.0-beta.6 → 1.13.0-beta.7

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.
@@ -1,29 +1,29 @@
1
- import { defineComponent as v, useAttrs as ce, computed as r, openBlock as n, createElementBlock as l, normalizeClass as y, normalizeStyle as ie, createElementVNode as t, createVNode as C, unref as g, renderSlot as h, createBlock as U, createCommentVNode as b, toDisplayString as u, pushScopeId as N, popScopeId as F, useSlots as D, createTextVNode as $, Fragment as P, renderList as j, createSlots as re, withCtx as S, mergeModels as B, useModel as O, withModifiers as W, ref as A, withDirectives as q, vModelDynamic as ue, inject as de, provide as _e, readonly as me, toRef as pe, onMounted as he, onBeforeUnmount as ve, watch as fe, vModelText as z } from "vue";
2
- const be = ["href"], w = /* @__PURE__ */ v({
1
+ import { defineComponent as v, useAttrs as ie, computed as d, openBlock as l, createElementBlock as n, normalizeClass as C, normalizeStyle as re, createElementVNode as t, createVNode as M, unref as $, renderSlot as h, createBlock as U, createCommentVNode as b, toDisplayString as m, pushScopeId as N, popScopeId as F, useSlots as D, createTextVNode as y, Fragment as P, renderList as j, createSlots as ce, withCtx as B, mergeModels as T, useModel as E, withModifiers as W, ref as R, withDirectives as q, vModelDynamic as ue, inject as de, provide as me, readonly as _e, toRef as pe, onMounted as he, onBeforeUnmount as ve, watch as fe, vModelText as z } from "vue";
2
+ const be = ["href"], S = /* @__PURE__ */ v({
3
3
  __name: "MucIcon",
4
4
  props: {
5
5
  icon: {},
6
6
  color: {}
7
7
  },
8
- setup(a) {
9
- const s = ce(), e = r(() => s.class ?? "icon");
10
- return (o, i) => (n(), l("svg", {
8
+ setup(o) {
9
+ const s = ie(), e = d(() => s.class ?? "icon");
10
+ return (a, u) => (l(), n("svg", {
11
11
  "aria-hidden": "true",
12
- class: y(e.value),
13
- style: ie({ color: o.color })
12
+ class: C(e.value),
13
+ style: re({ color: a.color })
14
14
  }, [
15
15
  t("use", {
16
- href: "#icon-" + o.icon
16
+ href: "#icon-" + a.icon
17
17
  }, null, 8, be)
18
18
  ], 6));
19
19
  }
20
- }), $e = ["role", "aria-label"], ge = { class: "container-fluid" }, ye = /* @__PURE__ */ v({
20
+ }), ge = ["role", "aria-label"], ye = { class: "container-fluid" }, $e = /* @__PURE__ */ v({
21
21
  __name: "MucBanner",
22
22
  props: {
23
23
  type: { default: "info" }
24
24
  },
25
- setup(a) {
26
- const s = a, e = r(() => {
25
+ setup(o) {
26
+ const s = o, e = d(() => {
27
27
  switch (s.type) {
28
28
  case "info":
29
29
  return "m-banner--info";
@@ -36,7 +36,7 @@ const be = ["href"], w = /* @__PURE__ */ v({
36
36
  default:
37
37
  return "m-banner--info";
38
38
  }
39
- }), o = r(() => {
39
+ }), a = d(() => {
40
40
  switch (s.type) {
41
41
  case "info":
42
42
  return "dialog";
@@ -49,7 +49,7 @@ const be = ["href"], w = /* @__PURE__ */ v({
49
49
  default:
50
50
  return "dialog";
51
51
  }
52
- }), i = r(() => {
52
+ }), u = d(() => {
53
53
  switch (s.type) {
54
54
  case "info":
55
55
  return "Information";
@@ -62,7 +62,7 @@ const be = ["href"], w = /* @__PURE__ */ v({
62
62
  default:
63
63
  return "Information";
64
64
  }
65
- }), c = r(() => {
65
+ }), i = d(() => {
66
66
  switch (s.type) {
67
67
  case "success":
68
68
  return "check";
@@ -74,27 +74,27 @@ const be = ["href"], w = /* @__PURE__ */ v({
74
74
  return "information";
75
75
  }
76
76
  });
77
- return (_, d) => (n(), l("div", null, [
77
+ return (_, r) => (l(), n("div", null, [
78
78
  t("div", null, [
79
79
  t("div", {
80
- class: y(["m-banner", e.value]),
81
- role: o.value,
82
- "aria-label": i.value
80
+ class: C(["m-banner", e.value]),
81
+ role: a.value,
82
+ "aria-label": u.value
83
83
  }, [
84
- t("div", ge, [
85
- C(g(w), { icon: c.value }, null, 8, ["icon"]),
84
+ t("div", ye, [
85
+ M($(S), { icon: i.value }, null, 8, ["icon"]),
86
86
  h(_.$slots, "default", {}, void 0, !0)
87
87
  ])
88
- ], 10, $e)
88
+ ], 10, ge)
89
89
  ])
90
90
  ]));
91
91
  }
92
- }), x = (a, s) => {
93
- const e = a.__vccOpts || a;
94
- for (const [o, i] of s)
95
- e[o] = i;
92
+ }), L = (o, s) => {
93
+ const e = o.__vccOpts || o;
94
+ for (const [a, u] of s)
95
+ e[a] = u;
96
96
  return e;
97
- }, ke = /* @__PURE__ */ x(ye, [["__scopeId", "data-v-53bc7eca"]]), Me = ["disabled"], G = /* @__PURE__ */ v({
97
+ }, ke = /* @__PURE__ */ L($e, [["__scopeId", "data-v-53bc7eca"]]), Me = ["disabled"], G = /* @__PURE__ */ v({
98
98
  __name: "MucButton",
99
99
  props: {
100
100
  variant: { default: "primary" },
@@ -103,8 +103,8 @@ const be = ["href"], w = /* @__PURE__ */ v({
103
103
  iconAnimated: { type: Boolean, default: !1 }
104
104
  },
105
105
  emits: ["click"],
106
- setup(a, { emit: s }) {
107
- const e = a, o = s, i = r(() => {
106
+ setup(o, { emit: s }) {
107
+ const e = o, a = s, u = d(() => {
108
108
  switch (e.variant) {
109
109
  case "secondary":
110
110
  return "m-button--secondary";
@@ -113,33 +113,33 @@ const be = ["href"], w = /* @__PURE__ */ v({
113
113
  default:
114
114
  return "m-button--primary";
115
115
  }
116
- }), c = r(
116
+ }), i = d(
117
117
  () => e.iconAnimated ? "m-button--animated-right" : ""
118
118
  ), _ = () => {
119
- o("click");
119
+ a("click");
120
120
  };
121
- return (d, f) => (n(), l("button", {
121
+ return (r, f) => (l(), n("button", {
122
122
  onClick: _,
123
- disabled: d.disabled,
124
- class: y(["m-button", [i.value, c.value]])
123
+ disabled: r.disabled,
124
+ class: C(["m-button", [u.value, i.value]])
125
125
  }, [
126
126
  t("span", null, [
127
- h(d.$slots, "default"),
128
- d.icon ? (n(), U(g(w), {
127
+ h(r.$slots, "default"),
128
+ r.icon ? (l(), U($(S), {
129
129
  key: 0,
130
- icon: d.icon,
130
+ icon: r.icon,
131
131
  class: "m-button__icon"
132
132
  }, null, 8, ["icon"])) : b("", !0)
133
133
  ])
134
134
  ], 10, Me));
135
135
  }
136
- }), Ce = ["aria-label"], we = { class: "m-callout__inner" }, Ie = { class: "m-callout__icon" }, Se = { class: "m-callout__body" }, Be = { class: "m-callout__body__inner" }, Ve = { class: "m-callout__headline" }, xe = { class: "m-callout__content" }, Re = /* @__PURE__ */ v({
136
+ }), Ce = ["aria-label"], Ie = { class: "m-callout__inner" }, we = { class: "m-callout__icon" }, Se = { class: "m-callout__body" }, Be = { class: "m-callout__body__inner" }, Te = { class: "m-callout__headline" }, Ae = { class: "m-callout__content" }, Le = /* @__PURE__ */ v({
137
137
  __name: "MucCallout",
138
138
  props: {
139
139
  type: { default: "info" }
140
140
  },
141
- setup(a) {
142
- const s = a, e = r(() => {
141
+ setup(o) {
142
+ const s = o, e = d(() => {
143
143
  switch (s.type) {
144
144
  case "error":
145
145
  return "warning";
@@ -148,7 +148,7 @@ const be = ["href"], w = /* @__PURE__ */ v({
148
148
  default:
149
149
  return "information";
150
150
  }
151
- }), o = r(() => {
151
+ }), a = d(() => {
152
152
  switch (s.type) {
153
153
  case "error":
154
154
  return "m-callout--error";
@@ -159,7 +159,7 @@ const be = ["href"], w = /* @__PURE__ */ v({
159
159
  default:
160
160
  return "m-callout--default";
161
161
  }
162
- }), i = r(() => {
162
+ }), u = d(() => {
163
163
  switch (s.type) {
164
164
  case "success":
165
165
  return "Erfolgreich";
@@ -171,24 +171,24 @@ const be = ["href"], w = /* @__PURE__ */ v({
171
171
  return "Information";
172
172
  }
173
173
  });
174
- return (c, _) => (n(), l("div", {
175
- class: y(["m-callout", o.value]),
176
- "aria-label": i.value
174
+ return (i, _) => (l(), n("div", {
175
+ class: C(["m-callout", a.value]),
176
+ "aria-label": u.value
177
177
  }, [
178
- t("div", we, [
179
- t("div", Ie, [
180
- h(c.$slots, "icon", {}, () => [
181
- C(g(w), { icon: e.value }, null, 8, ["icon"])
178
+ t("div", Ie, [
179
+ t("div", we, [
180
+ h(i.$slots, "icon", {}, () => [
181
+ M($(S), { icon: e.value }, null, 8, ["icon"])
182
182
  ], !0)
183
183
  ]),
184
184
  t("div", Se, [
185
185
  t("div", Be, [
186
- t("div", Ve, [
187
- h(c.$slots, "header", {}, void 0, !0)
186
+ t("div", Te, [
187
+ h(i.$slots, "header", {}, void 0, !0)
188
188
  ]),
189
- t("div", xe, [
189
+ t("div", Ae, [
190
190
  t("p", null, [
191
- h(c.$slots, "content", { class: "m-callout__content" }, void 0, !0)
191
+ h(i.$slots, "content", { class: "m-callout__content" }, void 0, !0)
192
192
  ])
193
193
  ])
194
194
  ])
@@ -196,69 +196,69 @@ const be = ["href"], w = /* @__PURE__ */ v({
196
196
  ])
197
197
  ], 10, Ce));
198
198
  }
199
- }), Ee = /* @__PURE__ */ x(Re, [["__scopeId", "data-v-e6cf4104"]]), Le = (a) => (N("data-v-acf0a1dd"), a = a(), F(), a), Ae = { class: "card-content" }, Oe = { class: "card-header" }, Te = {
199
+ }), xe = /* @__PURE__ */ L(Le, [["__scopeId", "data-v-e6cf4104"]]), Ve = (o) => (N("data-v-acf0a1dd"), o = o(), F(), o), Re = { class: "card-content" }, Ee = { class: "card-header" }, Oe = {
200
200
  key: 0,
201
201
  class: "card-tagline"
202
- }, Pe = /* @__PURE__ */ Le(() => /* @__PURE__ */ t("div", { class: "muc-divider" }, null, -1)), je = /* @__PURE__ */ v({
202
+ }, Pe = /* @__PURE__ */ Ve(() => /* @__PURE__ */ t("div", { class: "muc-divider" }, null, -1)), je = /* @__PURE__ */ v({
203
203
  __name: "MucCard",
204
204
  props: {
205
205
  title: {},
206
206
  tagline: {}
207
207
  },
208
208
  emits: ["click"],
209
- setup(a, { emit: s }) {
209
+ setup(o, { emit: s }) {
210
210
  const e = s;
211
- return (o, i) => (n(), l("div", {
211
+ return (a, u) => (l(), n("div", {
212
212
  class: "card",
213
- onClick: i[0] || (i[0] = (c) => e("click", c))
213
+ onClick: u[0] || (u[0] = (i) => e("click", i))
214
214
  }, [
215
- t("div", Ae, [
216
- t("div", Oe, [
217
- h(o.$slots, "headerPrefix", {}, void 0, !0),
215
+ t("div", Re, [
216
+ t("div", Ee, [
217
+ h(a.$slots, "headerPrefix", {}, void 0, !0),
218
218
  t("div", null, [
219
- o.tagline ? (n(), l("div", Te, u(o.tagline), 1)) : b("", !0),
219
+ a.tagline ? (l(), n("div", Oe, m(a.tagline), 1)) : b("", !0),
220
220
  t("div", null, [
221
- t("h3", null, u(o.title), 1)
221
+ t("h3", null, m(a.title), 1)
222
222
  ])
223
223
  ])
224
224
  ]),
225
225
  Pe,
226
- h(o.$slots, "content", {}, void 0, !0)
226
+ h(a.$slots, "content", {}, void 0, !0)
227
227
  ])
228
228
  ]));
229
229
  }
230
- }), Ge = /* @__PURE__ */ x(je, [["__scopeId", "data-v-acf0a1dd"]]), Ue = { class: "container card-container" }, qe = /* @__PURE__ */ v({
230
+ }), Ge = /* @__PURE__ */ L(je, [["__scopeId", "data-v-acf0a1dd"]]), Ue = { class: "container card-container" }, qe = /* @__PURE__ */ v({
231
231
  __name: "MucCardContainer",
232
- setup(a) {
233
- return (s, e) => (n(), l("div", Ue, [
232
+ setup(o) {
233
+ return (s, e) => (l(), n("div", Ue, [
234
234
  h(s.$slots, "default", {}, void 0, !0)
235
235
  ]));
236
236
  }
237
- }), He = /* @__PURE__ */ x(qe, [["__scopeId", "data-v-6740df8f"]]), Ne = { class: "m-comment__head" }, Fe = { class: "m-comment__initials" }, De = { class: "m-comment__info" }, We = { class: "m-comment__author" }, ze = { key: 0 }, Ke = { class: "m-comment__author" }, Xe = { class: "m-comment__date" }, Je = ["aria-label"], Qe = {
237
+ }), He = /* @__PURE__ */ L(qe, [["__scopeId", "data-v-6740df8f"]]), Ne = { class: "m-comment__head" }, Fe = { class: "m-comment__initials" }, De = { class: "m-comment__info" }, We = { class: "m-comment__author" }, ze = { key: 0 }, Ke = { class: "m-comment__author" }, Xe = { class: "m-comment__date" }, Je = ["aria-label"], Qe = {
238
238
  key: 0,
239
239
  class: "m-star-rating__item m-star-rating__item--half"
240
- }, Ye = { class: "m-star-rating__numeric" }, Ze = { class: "m-comment__body" }, et = { class: "m-comment__headline" }, tt = { class: "m-comment__text" }, st = "de-DE", ot = 0.2, at = 0.8, T = 5, K = /* @__PURE__ */ v({
240
+ }, Ye = { class: "m-star-rating__numeric" }, Ze = { class: "m-comment__body" }, et = { class: "m-comment__headline" }, tt = { class: "m-comment__text" }, st = "de-DE", at = 0.2, ot = 0.8, O = 5, K = /* @__PURE__ */ v({
241
241
  __name: "MucComment",
242
242
  props: {
243
243
  rating: {},
244
244
  variant: { default: "listing" }
245
245
  },
246
- setup(a) {
247
- const s = D(), e = a, o = r(() => !!s.date), i = r(() => e.variant === "slider" ? "m-comment--slider" : "m-comment--listing"), c = r(
248
- () => Math.min(Math.max(e.rating, 0), T)
249
- ), _ = r(() => c.value.toLocaleString(st.valueOf(), {
246
+ setup(o) {
247
+ const s = D(), e = o, a = d(() => !!s.date), u = d(() => e.variant === "slider" ? "m-comment--slider" : "m-comment--listing"), i = d(
248
+ () => Math.min(Math.max(e.rating, 0), O)
249
+ ), _ = d(() => i.value.toLocaleString(st.valueOf(), {
250
250
  minimumFractionDigits: 1
251
- })), d = r(() => {
252
- const f = +(c.value % 1).toFixed(1);
253
- let R = Math.min(Math.floor(c.value), T), k = Math.floor(T - c.value), p = !1;
254
- return c.value !== 0 && c.value !== T && (f <= ot ? k++ : f >= at ? R++ : p = !0), {
255
- fullStars: R,
256
- emptyStars: k,
251
+ })), r = d(() => {
252
+ const f = +(i.value % 1).toFixed(1);
253
+ let x = Math.min(Math.floor(i.value), O), I = Math.floor(O - i.value), p = !1;
254
+ return i.value !== 0 && i.value !== O && (f <= at ? I++ : f >= ot ? x++ : p = !0), {
255
+ fullStars: x,
256
+ emptyStars: I,
257
257
  isHalfStar: p
258
258
  };
259
259
  });
260
- return (f, R) => (n(), l("div", {
261
- class: y(["m-comment", i.value])
260
+ return (f, x) => (l(), n("div", {
261
+ class: C(["m-comment", u.value])
262
262
  }, [
263
263
  t("div", Ne, [
264
264
  t("div", Fe, [
@@ -268,37 +268,37 @@ const be = ["href"], w = /* @__PURE__ */ v({
268
268
  t("span", We, [
269
269
  h(f.$slots, "author")
270
270
  ]),
271
- o.value ? (n(), l("span", ze, [
271
+ a.value ? (l(), n("span", ze, [
272
272
  t("span", Ke, [
273
- $("  "),
273
+ y("  "),
274
274
  h(f.$slots, "datePrefix")
275
275
  ]),
276
276
  t("span", Xe, [
277
- $(" "),
277
+ y(" "),
278
278
  h(f.$slots, "date")
279
279
  ])
280
280
  ])) : b("", !0),
281
281
  t("div", {
282
282
  class: "m-star-rating",
283
283
  role: "img",
284
- "aria-label": `Bewertung: ${f.rating} von ${T} Sternen`
284
+ "aria-label": `Bewertung: ${f.rating} von ${O} Sternen`
285
285
  }, [
286
- (n(!0), l(P, null, j(d.value.fullStars, (k) => (n(), l("div", {
287
- key: k,
286
+ (l(!0), n(P, null, j(r.value.fullStars, (I) => (l(), n("div", {
287
+ key: I,
288
288
  class: "m-star-rating__item m-star-rating__item--full"
289
289
  }, [
290
- C(g(w), { icon: "solid-star" })
290
+ M($(S), { icon: "solid-star" })
291
291
  ]))), 128)),
292
- d.value.isHalfStar ? (n(), l("div", Qe, [
293
- C(g(w), { icon: "half-star" })
292
+ r.value.isHalfStar ? (l(), n("div", Qe, [
293
+ M($(S), { icon: "half-star" })
294
294
  ])) : b("", !0),
295
- (n(!0), l(P, null, j(d.value.emptyStars, (k) => (n(), l("div", {
296
- key: k,
295
+ (l(!0), n(P, null, j(r.value.emptyStars, (I) => (l(), n("div", {
296
+ key: I,
297
297
  class: "m-star-rating__item"
298
298
  }, [
299
- C(g(w), { icon: "solid-star" })
299
+ M($(S), { icon: "solid-star" })
300
300
  ]))), 128)),
301
- t("div", Ye, u(_.value), 1)
301
+ t("div", Ye, m(_.value), 1)
302
302
  ], 8, Je)
303
303
  ])
304
304
  ]),
@@ -312,7 +312,7 @@ const be = ["href"], w = /* @__PURE__ */ v({
312
312
  ])
313
313
  ], 2));
314
314
  }
315
- }), nt = " ", lt = /* @__PURE__ */ v({
315
+ }), lt = " ", nt = /* @__PURE__ */ v({
316
316
  __name: "MucCommentText",
317
317
  props: {
318
318
  datePrefix: { default: "am" },
@@ -324,104 +324,104 @@ const be = ["href"], w = /* @__PURE__ */ v({
324
324
  rating: {},
325
325
  variant: { default: "listing" }
326
326
  },
327
- setup(a) {
328
- const s = a, e = r(() => ((s.initials ?? s.author.split(nt).map((o) => o.charAt(0)).join("")).match(/^.|.$/g) ?? [""]).join(""));
329
- return (o, i) => (n(), U(g(K), {
330
- rating: o.rating,
331
- variant: o.variant
332
- }, re({
333
- initials: S(() => [
334
- $(u(e.value), 1)
327
+ setup(o) {
328
+ const s = o, e = d(() => ((s.initials ?? s.author.split(lt).map((a) => a.charAt(0)).join("")).match(/^.|.$/g) ?? [""]).join(""));
329
+ return (a, u) => (l(), U($(K), {
330
+ rating: a.rating,
331
+ variant: a.variant
332
+ }, ce({
333
+ initials: B(() => [
334
+ y(m(e.value), 1)
335
335
  ]),
336
- datePrefix: S(() => [
337
- $("am")
336
+ datePrefix: B(() => [
337
+ y("am")
338
338
  ]),
339
- author: S(() => [
340
- $(u(o.author), 1)
339
+ author: B(() => [
340
+ y(m(a.author), 1)
341
341
  ]),
342
- headline: S(() => [
343
- $(u(o.headline), 1)
342
+ headline: B(() => [
343
+ y(m(a.headline), 1)
344
344
  ]),
345
- text: S(() => [
346
- $(u(o.text), 1)
345
+ text: B(() => [
346
+ y(m(a.text), 1)
347
347
  ]),
348
348
  _: 2
349
349
  }, [
350
- o.date ? {
350
+ a.date ? {
351
351
  name: "date",
352
- fn: S(() => [
353
- $(u(o.date), 1)
352
+ fn: B(() => [
353
+ y(m(a.date), 1)
354
354
  ]),
355
355
  key: "0"
356
356
  } : void 0
357
357
  ]), 1032, ["rating", "variant"]));
358
358
  }
359
- }), ct = {}, it = { class: "divider-border" };
360
- function rt(a, s) {
361
- return n(), l("hr", it);
359
+ }), it = {}, rt = { class: "divider-border" };
360
+ function ct(o, s) {
361
+ return l(), n("hr", rt);
362
362
  }
363
- const ut = /* @__PURE__ */ x(ct, [["render", rt], ["__scopeId", "data-v-a2b37f5b"]]), dt = ["checked"], _t = { class: "m-label m-checkboxes__label" }, mt = /* @__PURE__ */ v({
363
+ const ut = /* @__PURE__ */ L(it, [["render", ct], ["__scopeId", "data-v-a2b37f5b"]]), dt = ["checked"], mt = { class: "m-label m-checkboxes__label" }, _t = /* @__PURE__ */ v({
364
364
  __name: "MucCheckbox",
365
- props: /* @__PURE__ */ B({
365
+ props: /* @__PURE__ */ T({
366
366
  label: {}
367
367
  }, {
368
368
  modelValue: { type: Boolean, default: !1 },
369
369
  modelModifiers: {}
370
370
  }),
371
- emits: /* @__PURE__ */ B(["click"], ["update:modelValue"]),
372
- setup(a, { emit: s }) {
373
- const e = O(a, "modelValue"), o = s, i = () => {
374
- e.value = !e.value, o("click");
371
+ emits: /* @__PURE__ */ T(["click"], ["update:modelValue"]),
372
+ setup(o, { emit: s }) {
373
+ const e = E(o, "modelValue"), a = s, u = () => {
374
+ e.value = !e.value, a("click");
375
375
  };
376
- return (c, _) => (n(), l("div", {
376
+ return (i, _) => (l(), n("div", {
377
377
  class: "m-checkboxes__item",
378
- onClick: i
378
+ onClick: u
379
379
  }, [
380
380
  t("input", {
381
381
  class: "m-checkboxes__input",
382
382
  name: "checkbox",
383
383
  type: "checkbox",
384
384
  checked: e.value,
385
- onClick: W(i, ["stop"])
385
+ onClick: W(u, ["stop"])
386
386
  }, null, 8, dt),
387
- t("label", _t, u(c.label), 1)
387
+ t("label", mt, m(i.label), 1)
388
388
  ]));
389
389
  }
390
- }), pt = { class: "m-form-group" }, ht = { class: "m-checkbox-group" }, vt = { class: "m-checkbox-group__legend" }, ft = { class: "m-checkbox-group__heading" }, bt = { class: "m-checkboxes m-checkboxes--collapse" }, $t = /* @__PURE__ */ t("span", null, "Mehr ", -1), gt = {
390
+ }), pt = { class: "m-form-group" }, ht = { class: "m-checkbox-group" }, vt = { class: "m-checkbox-group__legend" }, ft = { class: "m-checkbox-group__heading" }, bt = { class: "m-checkboxes m-checkboxes--collapse" }, gt = /* @__PURE__ */ t("span", null, "Mehr ", -1), yt = {
391
391
  "aria-hidden": "true",
392
392
  class: "icon icon--after"
393
- }, yt = ["href"], kt = /* @__PURE__ */ v({
393
+ }, $t = ["href"], kt = /* @__PURE__ */ v({
394
394
  __name: "MucCheckboxGroup",
395
395
  props: {
396
396
  heading: {}
397
397
  },
398
- setup(a) {
399
- const s = A(!0), e = r(() => s.value ? "collapse" : ""), o = r(() => s.value ? "down" : "up"), i = () => s.value = !s.value;
400
- return (c, _) => (n(), l("div", pt, [
398
+ setup(o) {
399
+ const s = R(!0), e = d(() => s.value ? "collapse" : ""), a = d(() => s.value ? "down" : "up"), u = () => s.value = !s.value;
400
+ return (i, _) => (l(), n("div", pt, [
401
401
  t("fieldset", ht, [
402
402
  t("legend", vt, [
403
- t("h3", ft, u(c.heading), 1)
403
+ t("h3", ft, m(i.heading), 1)
404
404
  ]),
405
405
  t("div", bt, [
406
- h(c.$slots, "checkboxes"),
407
- c.$slots.collapsableCheckboxes ? (n(), l("div", {
406
+ h(i.$slots, "checkboxes"),
407
+ i.$slots.collapsableCheckboxes ? (l(), n("div", {
408
408
  key: 0,
409
- class: y(["m-checkboxes__collapse__container", e.value])
409
+ class: C(["m-checkboxes__collapse__container", e.value])
410
410
  }, [
411
- h(c.$slots, "collapsableCheckboxes")
411
+ h(i.$slots, "collapsableCheckboxes")
412
412
  ], 2)) : b("", !0),
413
- c.$slots.collapsableCheckboxes ? (n(), U(g(G), {
413
+ i.$slots.collapsableCheckboxes ? (l(), U($(G), {
414
414
  key: 1,
415
415
  variant: "ghost",
416
- onClick: i,
416
+ onClick: u,
417
417
  "aria-expanded": !s.value
418
418
  }, {
419
- default: S(() => [
420
- $t,
421
- (n(), l("svg", gt, [
419
+ default: B(() => [
420
+ gt,
421
+ (l(), n("svg", yt, [
422
422
  t("use", {
423
- href: "#icon-chevron-" + o.value
424
- }, null, 8, yt)
423
+ href: "#icon-chevron-" + a.value
424
+ }, null, 8, $t)
425
425
  ]))
426
426
  ]),
427
427
  _: 1
@@ -439,31 +439,31 @@ const ut = /* @__PURE__ */ x(ct, [["render", rt], ["__scopeId", "data-v-a2b37f5b
439
439
  target: { default: "_blank" },
440
440
  noUnderline: { type: Boolean, default: !1 }
441
441
  },
442
- setup(a) {
443
- const s = a, e = r(
442
+ setup(o) {
443
+ const s = o, e = d(
444
444
  () => s.noUnderline ? "m-link--reversed-underline" : ""
445
445
  );
446
- return (o, i) => (n(), l("a", {
447
- href: o.href,
448
- target: o.target,
449
- class: y(["m-link", e.value])
446
+ return (a, u) => (l(), n("a", {
447
+ href: a.href,
448
+ target: a.target,
449
+ class: C(["m-link", e.value])
450
450
  }, [
451
- $(u(o.label) + " ", 1),
452
- h(o.$slots, "icon", {}, () => [
453
- o.icon ? (n(), U(g(w), {
451
+ y(m(a.label) + " ", 1),
452
+ h(a.$slots, "icon", {}, () => [
453
+ a.icon ? (l(), U($(S), {
454
454
  key: 0,
455
- icon: o.icon,
455
+ icon: a.icon,
456
456
  class: "icon icon--after"
457
457
  }, null, 8, ["icon"])) : b("", !0)
458
458
  ])
459
459
  ], 10, Mt));
460
460
  }
461
- }), Ct = { class: "wrapper" }, wt = {
461
+ }), Ct = { class: "wrapper" }, It = {
462
462
  class: "centered-text",
463
463
  style: { color: "var(--color-brand-main-blue)" }
464
- }, It = { key: 0 }, St = { class: "centered-text" }, Bt = { key: 1 }, Vt = { class: "centered-text" }, xt = /* @__PURE__ */ v({
464
+ }, wt = { key: 0 }, St = { class: "centered-text" }, Bt = { key: 1 }, Tt = { class: "centered-text" }, At = /* @__PURE__ */ v({
465
465
  __name: "MucCounter",
466
- props: /* @__PURE__ */ B({
466
+ props: /* @__PURE__ */ T({
467
467
  label: {},
468
468
  min: {},
469
469
  max: {},
@@ -474,68 +474,68 @@ const ut = /* @__PURE__ */ x(ct, [["render", rt], ["__scopeId", "data-v-a2b37f5b
474
474
  modelModifiers: {}
475
475
  }),
476
476
  emits: ["update:modelValue"],
477
- setup(a) {
478
- const s = O(a, "modelValue"), e = a, o = () => s.value++, i = () => s.value--, c = r(
477
+ setup(o) {
478
+ const s = E(o, "modelValue"), e = o, a = () => s.value++, u = () => s.value--, i = d(
479
479
  () => !!e.max && !(s.value < e.max) || e.disabled
480
- ), _ = r(
480
+ ), _ = d(
481
481
  () => s.value == 0 || !!e.min && !(s.value > e.min) || e.disabled
482
482
  );
483
- return (d, f) => (n(), l("div", Ct, [
484
- C(g(G), {
485
- onClick: i,
483
+ return (r, f) => (l(), n("div", Ct, [
484
+ M($(G), {
485
+ onClick: u,
486
486
  variant: "secondary",
487
487
  disabled: _.value
488
488
  }, {
489
- default: S(() => [
490
- C(g(w), { icon: "minus" })
489
+ default: B(() => [
490
+ M($(S), { icon: "minus" })
491
491
  ]),
492
492
  _: 1
493
493
  }, 8, ["disabled"]),
494
494
  t("p", null, [
495
- t("strong", wt, u(s.value), 1)
495
+ t("strong", It, m(s.value), 1)
496
496
  ]),
497
- C(g(G), {
498
- onClick: o,
497
+ M($(G), {
498
+ onClick: a,
499
499
  variant: "secondary",
500
- disabled: c.value
500
+ disabled: i.value
501
501
  }, {
502
- default: S(() => [
503
- C(g(w), { icon: "plus" })
502
+ default: B(() => [
503
+ M($(S), { icon: "plus" })
504
504
  ]),
505
505
  _: 1
506
506
  }, 8, ["disabled"]),
507
- d.link ? (n(), l("p", It, [
507
+ r.link ? (l(), n("p", wt, [
508
508
  t("label", St, [
509
- C(g(X), {
510
- label: d.label,
511
- href: d.link
509
+ M($(X), {
510
+ label: r.label,
511
+ href: r.link
512
512
  }, null, 8, ["label", "href"])
513
513
  ])
514
- ])) : (n(), l("p", Bt, [
515
- t("label", Vt, u(d.label), 1)
514
+ ])) : (l(), n("p", Bt, [
515
+ t("label", Tt, m(r.label), 1)
516
516
  ]))
517
517
  ]));
518
518
  }
519
- }), Rt = /* @__PURE__ */ x(xt, [["__scopeId", "data-v-a20e4a10"]]), Et = {
519
+ }), Lt = /* @__PURE__ */ L(At, [["__scopeId", "data-v-a20e4a10"]]), xt = {
520
520
  class: "m-error-list",
521
521
  role: "alert",
522
522
  tabindex: "-1"
523
- }, Lt = { class: "m-error-list__title" }, At = { class: "m-error-list__body" }, Ot = { class: "m-list m-error-list__list" }, Tt = /* @__PURE__ */ v({
523
+ }, Vt = { class: "m-error-list__title" }, Rt = { class: "m-error-list__body" }, Et = { class: "m-list m-error-list__list" }, Ot = /* @__PURE__ */ v({
524
524
  __name: "MucErrorList",
525
525
  props: {
526
526
  title: {},
527
527
  errors: {}
528
528
  },
529
- setup(a) {
530
- const s = a, e = r(
529
+ setup(o) {
530
+ const s = o, e = d(
531
531
  () => typeof s.errors == "string" ? [s.errors] : s.errors
532
532
  );
533
- return (o, i) => (n(), l("div", Et, [
534
- t("h2", Lt, u(o.title), 1),
535
- t("div", At, [
536
- t("ul", Ot, [
537
- (n(!0), l(P, null, j(e.value, (c, _) => (n(), l("li", { key: _ }, [
538
- t("a", null, u(c), 1)
533
+ return (a, u) => (l(), n("div", xt, [
534
+ t("h2", Vt, m(a.title), 1),
535
+ t("div", Rt, [
536
+ t("ul", Et, [
537
+ (l(!0), n(P, null, j(e.value, (i, _) => (l(), n("li", { key: _ }, [
538
+ t("a", null, m(i), 1)
539
539
  ]))), 128))
540
540
  ])
541
541
  ])
@@ -565,7 +565,7 @@ const ut = /* @__PURE__ */ x(ct, [["render", rt], ["__scopeId", "data-v-a2b37f5b
565
565
  id: "text-input-hint"
566
566
  }, Jt = /* @__PURE__ */ v({
567
567
  __name: "MucInput",
568
- props: /* @__PURE__ */ B({
568
+ props: /* @__PURE__ */ T({
569
569
  errorMsg: {},
570
570
  placeholder: {},
571
571
  required: { type: Boolean, default: !1 },
@@ -578,28 +578,28 @@ const ut = /* @__PURE__ */ x(ct, [["render", rt], ["__scopeId", "data-v-a2b37f5b
578
578
  modelValue: { default: "" },
579
579
  modelModifiers: {}
580
580
  }),
581
- emits: /* @__PURE__ */ B(["suffixClick"], ["update:modelValue"]),
582
- setup(a, { emit: s }) {
583
- const e = O(a, "modelValue"), o = a, i = D(), c = s, _ = r(() => o.errorMsg ? "has-error" : ""), d = r(() => o.type === "search"), f = r(() => {
581
+ emits: /* @__PURE__ */ T(["suffixClick"], ["update:modelValue"]),
582
+ setup(o, { emit: s }) {
583
+ const e = E(o, "modelValue"), a = o, u = D(), i = s, _ = d(() => a.errorMsg ? "has-error" : ""), r = d(() => a.type === "search"), f = d(() => {
584
584
  if (e.value === "") return [];
585
585
  const p = e.value.toLowerCase();
586
- return o.datalist.filter(
587
- (E) => E.toLowerCase().startsWith(p) && E.toLowerCase() !== p
586
+ return a.datalist.filter(
587
+ (V) => V.toLowerCase().startsWith(p) && V.toLowerCase() !== p
588
588
  );
589
- }), R = (p) => e.value = p, k = () => c("suffixClick");
590
- return (p, E) => (n(), l("div", {
591
- class: y(["m-form-group", _.value])
589
+ }), x = (p) => e.value = p, I = () => i("suffixClick");
590
+ return (p, V) => (l(), n("div", {
591
+ class: C(["m-form-group", _.value])
592
592
  }, [
593
593
  t("label", Pt, [
594
- $(u(p.label) + " ", 1),
595
- p.required ? (n(), l("span", jt, [
596
- $(" * "),
594
+ y(m(p.label) + " ", 1),
595
+ p.required ? (l(), n("span", jt, [
596
+ y(" * "),
597
597
  Gt
598
598
  ])) : b("", !0)
599
599
  ]),
600
- t("p", Ut, u(p.errorMsg), 1),
600
+ t("p", Ut, m(p.errorMsg), 1),
601
601
  t("div", qt, [
602
- i.prefix ? (n(), l("div", Ht, [
602
+ u.prefix ? (l(), n("div", Ht, [
603
603
  t("span", null, [
604
604
  h(p.$slots, "prefix")
605
605
  ])
@@ -607,26 +607,26 @@ const ut = /* @__PURE__ */ x(ct, [["render", rt], ["__scopeId", "data-v-a2b37f5b
607
607
  q(t("input", {
608
608
  class: "m-input autocomplete-input",
609
609
  type: p.type,
610
- "onUpdate:modelValue": E[0] || (E[0] = (M) => e.value = M),
610
+ "onUpdate:modelValue": V[0] || (V[0] = (w) => e.value = w),
611
611
  "aria-describedby": p.type + "-input",
612
612
  placeholder: p.placeholder,
613
613
  required: p.required
614
614
  }, null, 8, Nt), [
615
615
  [ue, e.value]
616
616
  ]),
617
- d.value && f.value.length !== 0 ? (n(), l("ul", Ft, [
618
- (n(!0), l(P, null, j(f.value, (M) => (n(), l("li", {
617
+ r.value && f.value.length !== 0 ? (l(), n("ul", Ft, [
618
+ (l(!0), n(P, null, j(f.value, (w) => (l(), n("li", {
619
619
  class: "autocomplete-result",
620
- key: M,
621
- onClick: (V) => R(M)
622
- }, u(M), 9, Dt))), 128))
620
+ key: w,
621
+ onClick: (A) => x(w)
622
+ }, m(w), 9, Dt))), 128))
623
623
  ])) : b("", !0),
624
- p.suffixIcon ? (n(), l("button", {
624
+ p.suffixIcon ? (l(), n("button", {
625
625
  key: 2,
626
626
  class: "m-input__suffix",
627
- onClick: k
627
+ onClick: I
628
628
  }, [
629
- (n(), l("svg", Wt, [
629
+ (l(), n("svg", Wt, [
630
630
  t("use", {
631
631
  "xlink:href": "#icon-" + p.suffixIcon
632
632
  }, null, 8, zt)
@@ -634,7 +634,7 @@ const ut = /* @__PURE__ */ x(ct, [["render", rt], ["__scopeId", "data-v-a2b37f5b
634
634
  Kt
635
635
  ])) : b("", !0)
636
636
  ]),
637
- t("p", Xt, u(p.hint), 1)
637
+ t("p", Xt, m(p.hint), 1)
638
638
  ], 2));
639
639
  }
640
640
  }), J = Symbol("mucRadioGroup"), Qt = {
@@ -648,59 +648,59 @@ const ut = /* @__PURE__ */ x(ct, [["render", rt], ["__scopeId", "data-v-a2b37f5b
648
648
  hint: {},
649
649
  disabled: { type: Boolean, default: !1 }
650
650
  },
651
- setup(a) {
652
- const s = a, e = de(J), o = () => e == null ? void 0 : e.set(s.value), i = r(() => (e == null ? void 0 : e.modelValue.value) === s.value), c = r(() => s.disabled || (e == null ? void 0 : e.disabled.value)), _ = r(() => !!(e != null && e.disabled));
653
- return (d, f) => _.value ? (n(), l("div", Qt, [
651
+ setup(o) {
652
+ const s = o, e = de(J), a = () => e == null ? void 0 : e.set(s.value), u = d(() => (e == null ? void 0 : e.modelValue.value) === s.value), i = d(() => s.disabled || (e == null ? void 0 : e.disabled.value)), _ = d(() => !!(e != null && e.disabled));
653
+ return (r, f) => _.value ? (l(), n("div", Qt, [
654
654
  t("input", {
655
655
  class: "m-radios__input",
656
656
  type: "radio",
657
- checked: i.value,
658
- disabled: c.value,
659
- onClick: W(o, ["stop"])
657
+ checked: u.value,
658
+ disabled: i.value,
659
+ onClick: W(a, ["stop"])
660
660
  }, null, 8, Yt),
661
661
  t("label", {
662
662
  class: "m-label m-radios__label",
663
- onClick: o
663
+ onClick: a
664
664
  }, [
665
- $(u(d.label) + " ", 1),
666
- t("span", Zt, u(d.hint), 1)
665
+ y(m(r.label) + " ", 1),
666
+ t("span", Zt, m(r.hint), 1)
667
667
  ])
668
668
  ])) : b("", !0);
669
669
  }
670
- }), ts = { class: "m-form-group" }, ss = { class: "m-radio-group" }, os = { class: "m-radio-group__legend" }, as = { class: "m-radio-group__heading" }, ns = { class: "m-radios" }, ls = /* @__PURE__ */ v({
670
+ }), ts = { class: "m-form-group" }, ss = { class: "m-radio-group" }, as = { class: "m-radio-group__legend" }, os = { class: "m-radio-group__heading" }, ls = { class: "m-radios" }, ns = /* @__PURE__ */ v({
671
671
  __name: "MucRadioButtonGroup",
672
- props: /* @__PURE__ */ B({
672
+ props: /* @__PURE__ */ T({
673
673
  heading: {},
674
674
  disabled: { type: Boolean, default: !1 }
675
675
  }, {
676
676
  modelValue: { type: [Boolean, String, Array, Object, Number, null] },
677
677
  modelModifiers: {}
678
678
  }),
679
- emits: /* @__PURE__ */ B(["change"], ["update:modelValue"]),
680
- setup(a, { emit: s }) {
681
- const e = O(a, "modelValue"), o = a, i = s;
682
- return _e(J, {
683
- set: (c) => {
684
- i("change", c), e.value = c;
679
+ emits: /* @__PURE__ */ T(["change"], ["update:modelValue"]),
680
+ setup(o, { emit: s }) {
681
+ const e = E(o, "modelValue"), a = o, u = s;
682
+ return me(J, {
683
+ set: (i) => {
684
+ u("change", i), e.value = i;
685
685
  },
686
686
  modelValue: e,
687
- disabled: me(pe(o.disabled))
688
- }), (c, _) => (n(), l("div", ts, [
687
+ disabled: _e(pe(a.disabled))
688
+ }), (i, _) => (l(), n("div", ts, [
689
689
  t("fieldset", ss, [
690
- t("legend", os, [
691
- t("h3", as, u(c.heading), 1)
690
+ t("legend", as, [
691
+ t("h3", os, m(i.heading), 1)
692
692
  ]),
693
- t("div", ns, [
694
- h(c.$slots, "default")
693
+ t("div", ls, [
694
+ h(i.$slots, "default")
695
695
  ])
696
696
  ])
697
697
  ]));
698
698
  }
699
699
  });
700
- function cs(a, s) {
701
- if (!a) return;
702
- const e = (o) => {
703
- o.target !== a.value && o.composedPath().includes(a.value) || typeof s == "function" && s();
700
+ function is(o, s) {
701
+ if (!o) return;
702
+ const e = (a) => {
703
+ a.target !== o.value && a.composedPath().includes(o.value) || typeof s == "function" && s();
704
704
  };
705
705
  return he(() => {
706
706
  window.addEventListener("click", e);
@@ -708,28 +708,41 @@ function cs(a, s) {
708
708
  window.removeEventListener("click", e);
709
709
  }), { listener: e };
710
710
  }
711
- const Q = (a) => (N("data-v-0f229e1b"), a = a(), F(), a), is = { class: "m-label" }, rs = /* @__PURE__ */ Q(() => /* @__PURE__ */ t("svg", {
711
+ const rs = /* @__PURE__ */ v({
712
+ __name: "MucSelectItem",
713
+ props: {
714
+ item: {},
715
+ itemLabel: {}
716
+ },
717
+ setup(o) {
718
+ const s = o, e = d(
719
+ () => typeof s.item == "string" ? s.item : s.item[s.itemLabel].toString()
720
+ );
721
+ return (a, u) => (l(), n("span", null, m(e.value), 1));
722
+ }
723
+ }), Q = (o) => (N("data-v-e39e3aae"), o = o(), F(), o), cs = { class: "m-label" }, us = /* @__PURE__ */ Q(() => /* @__PURE__ */ t("svg", {
712
724
  "aria-hidden": "true",
713
725
  class: "icon"
714
726
  }, [
715
727
  /* @__PURE__ */ t("use", { "xlink:href": "#icon-chevron-down" })
716
- ], -1)), us = /* @__PURE__ */ Q(() => /* @__PURE__ */ t("span", { class: "visually-hidden" }, "Auswahlliste öffnen", -1)), ds = [
717
- rs,
718
- us
719
- ], _s = ["onMouseenter", "onClick"], ms = {
728
+ ], -1)), ds = /* @__PURE__ */ Q(() => /* @__PURE__ */ t("span", { class: "visually-hidden" }, "Auswahlliste öffnen", -1)), ms = [
729
+ us,
730
+ ds
731
+ ], _s = ["onMouseenter", "onClick"], ps = {
720
732
  key: 0,
721
733
  class: "option"
722
- }, ps = {
734
+ }, hs = {
723
735
  key: 0,
724
736
  class: "m-hint"
725
- }, hs = /* @__PURE__ */ v({
737
+ }, vs = /* @__PURE__ */ v({
726
738
  __name: "MucSelect",
727
- props: /* @__PURE__ */ B({
739
+ props: /* @__PURE__ */ T({
728
740
  items: {},
729
741
  label: {},
730
742
  hint: {},
731
743
  multiple: { type: Boolean, default: !1 },
732
- noItemFoundMessage: { default: "No items found." }
744
+ noItemFoundMessage: { default: "No items found." },
745
+ itemTitle: { default: "title" }
733
746
  }, {
734
747
  modelValue: {
735
748
  default: []
@@ -737,83 +750,106 @@ const Q = (a) => (N("data-v-0f229e1b"), a = a(), F(), a), is = { class: "m-label
737
750
  modelModifiers: {}
738
751
  }),
739
752
  emits: ["update:modelValue"],
740
- setup(a) {
741
- const s = A(), e = O(a, "modelValue"), o = A(!1), i = A(), c = A(!1), _ = A(), d = a, f = () => {
742
- o.value = !o.value, _.value = i.value;
743
- }, R = () => {
744
- o.value = !0, _.value = i.value, V.value = "";
753
+ setup(o) {
754
+ const s = R(), e = E(
755
+ o,
756
+ "modelValue"
757
+ ), a = R(!1), u = R(), i = R(!1), _ = R(), r = o, f = () => {
758
+ a.value = !a.value, _.value = u.value;
759
+ }, x = () => {
760
+ a.value = !0, _.value = u.value, A.value = "";
745
761
  };
746
- cs(s, () => {
747
- o.value = !1, V.value = M.value;
762
+ is(s, () => {
763
+ a.value = !1, A.value = w.value;
748
764
  });
749
- const k = (m) => {
750
- i.value = m, d.multiple ? E(m) : p(m), d.multiple || (o.value = !1);
751
- }, p = (m) => {
752
- typeof e.value == "object" && (e.value = e.value.join(" ")), e.value = e.value === m ? "" : m;
753
- }, E = (m) => {
754
- typeof e.value == "string" && (e.value = [e.value]), e.value = e.value.includes(m) ? e.value.filter((L) => L !== m) : [...e.value, m];
755
- }, M = r(() => typeof e.value == "string" ? e.value : e.value.join(d.multiple ? ", " : " "));
756
- fe(M, (m) => {
757
- V.value = m;
765
+ const I = (c) => {
766
+ u.value = c, r.multiple ? V(c) : p(c), r.multiple || (a.value = !1);
767
+ }, p = (c) => {
768
+ Array.isArray(e.value) && (e.value = e.value.join(" ")), typeof e.value != "string" && typeof c != "string" ? e.value = e.value[r.itemTitle] === c[r.itemTitle] ? "" : c : e.value = e.value === c ? "" : c;
769
+ }, V = (c) => {
770
+ Array.isArray(e.value) || (e.value = [e.value]), Array.isArray(e.value) && (typeof c == "string" ? e.value = e.value.map((g) => g).includes(c) ? e.value.filter((g) => g !== c) : [...e.value, c] : e.value = e.value.map((g) => g[r.itemTitle]).includes(c[r.itemTitle]) ? e.value.filter(
771
+ (g) => g[r.itemTitle] !== c[r.itemTitle]
772
+ ) : [...e.value, c]);
773
+ }, w = d(() => typeof e.value == "string" ? e.value : Array.isArray(e.value) ? e.value.every((c) => typeof c == "string") ? e.value.join(r.multiple ? ", " : " ") : e.value.map((c) => c[r.itemTitle].toString()).join(r.multiple ? ", " : " ") : e.value[r.itemTitle].toString());
774
+ fe(w, (c) => {
775
+ A.value = c;
758
776
  });
759
- const V = A(M.value), Y = r(
760
- () => V.value == M.value ? d.items : Z(V.value)
761
- ), Z = (m) => {
762
- c.value = !1;
763
- const L = d.items.filter((I) => I.includes(m));
764
- return L.length === 0 && (c.value = !0), L;
765
- }, ee = (m) => m === _.value ? "active" : "", te = (m) => e.value.includes(m) ? "selected" : "", se = () => _.value = "", oe = r(
766
- () => o.value ? "display-listbox" : ""
767
- ), ae = r(
768
- () => d.multiple && !c.value ? "m-input-wrapper--multiselect multiselect" : "m-input-wrapper--select"
777
+ const A = R(w.value), Y = d(
778
+ () => A.value == w.value ? r.items : Z(A.value)
779
+ ), Z = (c) => {
780
+ i.value = !1;
781
+ const g = r.items.every(
782
+ (k) => typeof k == "string"
783
+ ) ? r.items.filter(
784
+ (k) => k.toLowerCase().includes(c.toLowerCase())
785
+ ) : r.items.filter(
786
+ (k) => k[r.itemTitle].toString().toLowerCase().includes(c.toLowerCase())
787
+ );
788
+ return g.length === 0 && (i.value = !0), g;
789
+ }, ee = (c) => c === _.value ? "active" : "", te = (c) => {
790
+ if (typeof c == "string")
791
+ return e.value.includes(c) ? "selected" : "";
792
+ if (Array.isArray(e.value))
793
+ return e.value.map((g) => g[r.itemTitle]).includes(c[r.itemTitle]) ? "selected" : "";
794
+ if (typeof e.value != "string")
795
+ return e.value[r.itemTitle] === c[r.itemTitle] ? "selected" : "";
796
+ }, se = () => _.value = "", ae = d(
797
+ () => a.value ? "display-listbox" : ""
798
+ ), oe = d(
799
+ () => r.multiple && !i.value ? "m-input-wrapper--multiselect multiselect" : "m-input-wrapper--select"
769
800
  );
770
- return (m, L) => (n(), l("div", {
801
+ return (c, g) => (l(), n("div", {
771
802
  class: "m-form-group",
772
803
  ref_key: "selectComponentRef",
773
804
  ref: s
774
805
  }, [
775
- t("label", is, u(m.label), 1),
806
+ t("label", cs, m(c.label), 1),
776
807
  t("div", {
777
- class: y(["m-input-wrapper", ae.value])
808
+ class: C(["m-input-wrapper", oe.value])
778
809
  }, [
779
810
  q(t("input", {
780
811
  type: "text",
781
812
  class: "m-input m-combobox m-combobox--single",
782
- "onUpdate:modelValue": L[0] || (L[0] = (I) => V.value = I),
783
- onClick: R
813
+ "onUpdate:modelValue": g[0] || (g[0] = (k) => A.value = k),
814
+ onClick: x
784
815
  }, null, 512), [
785
- [z, V.value]
816
+ [z, A.value]
786
817
  ]),
787
818
  t("span", {
788
819
  class: "m-input__trigger",
789
820
  onClick: f
790
- }, ds),
821
+ }, ms),
791
822
  t("ul", {
792
- class: y(["listbox", oe.value]),
823
+ class: C(["listbox", ae.value]),
793
824
  onMouseleave: se
794
825
  }, [
795
- (n(!0), l(P, null, j(Y.value, (I, ne) => (n(), l("li", {
796
- key: ne,
797
- class: y(["option", [ee(I), te(I)]]),
798
- onMouseenter: (le) => _.value = I,
799
- onClick: (le) => k(I)
800
- }, u(I), 43, _s))), 128)),
801
- c.value ? (n(), l("li", ms, u(m.noItemFoundMessage), 1)) : b("", !0)
826
+ (l(!0), n(P, null, j(Y.value, (k, le) => (l(), n("li", {
827
+ key: le,
828
+ class: C(["option", [ee(k), te(k)]]),
829
+ onMouseenter: (ne) => _.value = k,
830
+ onClick: (ne) => I(k)
831
+ }, [
832
+ M(rs, {
833
+ item: k,
834
+ "item-label": c.itemTitle
835
+ }, null, 8, ["item", "item-label"])
836
+ ], 42, _s))), 128)),
837
+ i.value ? (l(), n("li", ps, m(c.noItemFoundMessage), 1)) : b("", !0)
802
838
  ], 34)
803
839
  ], 2),
804
- m.hint ? (n(), l("p", ps, u(m.hint), 1)) : b("", !0)
840
+ c.hint ? (l(), n("p", hs, m(c.hint), 1)) : b("", !0)
805
841
  ], 512));
806
842
  }
807
- }), vs = /* @__PURE__ */ x(hs, [["__scopeId", "data-v-0f229e1b"]]), fs = { class: "m-form-group has-error" }, bs = {
843
+ }), fs = /* @__PURE__ */ L(vs, [["__scopeId", "data-v-e39e3aae"]]), bs = { class: "m-form-group has-error" }, gs = {
808
844
  for: "textarea",
809
845
  class: "m-label"
810
- }, $s = {
846
+ }, ys = {
811
847
  key: 0,
812
848
  "aria-hidden": "true",
813
849
  class: "mandatory"
814
- }, gs = /* @__PURE__ */ t("span", { class: "visually-hidden" }, "(erforderlich)", -1), ys = { class: "m-error-message" }, ks = { class: "m-input-wrapper" }, Ms = ["rows", "placeholder"], Cs = { class: "m-hint" }, ws = /* @__PURE__ */ v({
850
+ }, $s = /* @__PURE__ */ t("span", { class: "visually-hidden" }, "(erforderlich)", -1), ks = { class: "m-error-message" }, Ms = { class: "m-input-wrapper" }, Cs = ["rows", "placeholder"], Is = { class: "m-hint" }, ws = /* @__PURE__ */ v({
815
851
  __name: "MucTextArea",
816
- props: /* @__PURE__ */ B({
852
+ props: /* @__PURE__ */ T({
817
853
  errorMsg: {},
818
854
  rows: { default: 3 },
819
855
  placeholder: {},
@@ -825,58 +861,58 @@ const Q = (a) => (N("data-v-0f229e1b"), a = a(), F(), a), is = { class: "m-label
825
861
  modelModifiers: {}
826
862
  }),
827
863
  emits: ["update:modelValue"],
828
- setup(a) {
829
- const s = O(a, "modelValue");
830
- return (e, o) => (n(), l("div", fs, [
831
- t("label", bs, [
832
- $(u(e.label) + " ", 1),
833
- e.required ? (n(), l("span", $s, [
834
- $(" * "),
835
- gs
864
+ setup(o) {
865
+ const s = E(o, "modelValue");
866
+ return (e, a) => (l(), n("div", bs, [
867
+ t("label", gs, [
868
+ y(m(e.label) + " ", 1),
869
+ e.required ? (l(), n("span", ys, [
870
+ y(" * "),
871
+ $s
836
872
  ])) : b("", !0)
837
873
  ]),
838
- t("p", ys, u(e.errorMsg), 1),
839
- t("div", ks, [
874
+ t("p", ks, m(e.errorMsg), 1),
875
+ t("div", Ms, [
840
876
  q(t("textarea", {
841
877
  class: "m-textarea",
842
878
  rows: e.rows,
843
879
  "aria-describedby": "textarea input",
844
880
  placeholder: e.placeholder,
845
- "onUpdate:modelValue": o[0] || (o[0] = (i) => s.value = i)
846
- }, null, 8, Ms), [
881
+ "onUpdate:modelValue": a[0] || (a[0] = (u) => s.value = u)
882
+ }, null, 8, Cs), [
847
883
  [z, s.value]
848
884
  ])
849
885
  ]),
850
- t("p", Cs, u(e.hint), 1)
886
+ t("p", Is, m(e.hint), 1)
851
887
  ]));
852
888
  }
853
- }), Is = {
889
+ }), Ss = {
854
890
  class: "m-intro m-intro-static-image",
855
891
  style: { "background-color": "var(--color-neutrals-blue-xlight)" }
856
- }, Ss = { class: "container" }, Bs = { class: "muc-intro-content" }, Vs = {
892
+ }, Bs = { class: "container" }, Ts = { class: "muc-intro-content" }, As = {
857
893
  key: 0,
858
894
  class: "m-intro-vertical__tagline"
859
- }, xs = { class: "m-intro-vertical__title" }, Rs = {
895
+ }, Ls = { class: "m-intro-vertical__title" }, xs = {
860
896
  key: 0,
861
897
  class: "muc-divider"
862
- }, Es = { class: "m-intro-vertical__content" }, Ls = { style: { "padding-bottom": "32px" } }, As = /* @__PURE__ */ v({
898
+ }, Vs = { class: "m-intro-vertical__content" }, Rs = { style: { "padding-bottom": "32px" } }, Es = /* @__PURE__ */ v({
863
899
  __name: "MucIntro",
864
900
  props: {
865
901
  title: {},
866
902
  tagline: {},
867
903
  divider: { type: Boolean }
868
904
  },
869
- setup(a) {
870
- return (s, e) => (n(), l("div", Is, [
871
- t("div", Ss, [
872
- t("div", Bs, [
905
+ setup(o) {
906
+ return (s, e) => (l(), n("div", Ss, [
907
+ t("div", Bs, [
908
+ t("div", Ts, [
873
909
  t("div", null, [
874
- s.tagline ? (n(), l("p", Vs, u(s.tagline), 1)) : b("", !0),
875
- t("h1", xs, u(s.title), 1)
910
+ s.tagline ? (l(), n("p", As, m(s.tagline), 1)) : b("", !0),
911
+ t("h1", Ls, m(s.title), 1)
876
912
  ]),
877
- s.divider ? (n(), l("div", Rs)) : b("", !0),
878
- t("div", Es, [
879
- t("p", Ls, [
913
+ s.divider ? (l(), n("div", xs)) : b("", !0),
914
+ t("div", Vs, [
915
+ t("p", Rs, [
880
916
  h(s.$slots, "default", {}, void 0, !0)
881
917
  ])
882
918
  ])
@@ -884,54 +920,54 @@ const Q = (a) => (N("data-v-0f229e1b"), a = a(), F(), a), is = { class: "m-label
884
920
  ])
885
921
  ]));
886
922
  }
887
- }), Os = /* @__PURE__ */ x(As, [["__scopeId", "data-v-5c768acc"]]), H = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
923
+ }), Os = /* @__PURE__ */ L(Es, [["__scopeId", "data-v-5c768acc"]]), H = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
888
924
  __proto__: null,
889
925
  MucBanner: ke,
890
926
  MucButton: G,
891
- MucCallout: Ee,
927
+ MucCallout: xe,
892
928
  MucCard: Ge,
893
929
  MucCardContainer: He,
894
- MucCheckbox: mt,
930
+ MucCheckbox: _t,
895
931
  MucCheckboxGroup: kt,
896
932
  MucComment: K,
897
- MucCommentText: lt,
898
- MucCounter: Rt,
933
+ MucCommentText: nt,
934
+ MucCounter: Lt,
899
935
  MucDivider: ut,
900
- MucErrorList: Tt,
901
- MucIcon: w,
936
+ MucErrorList: Ot,
937
+ MucIcon: S,
902
938
  MucInput: Jt,
903
939
  MucIntro: Os,
904
940
  MucLink: X,
905
941
  MucRadioButton: es,
906
- MucRadioButtonGroup: ls,
907
- MucSelect: vs,
942
+ MucRadioButtonGroup: ns,
943
+ MucSelect: fs,
908
944
  MucTextArea: ws
909
945
  }, Symbol.toStringTag, { value: "Module" }));
910
- function Ts(a) {
946
+ function Ps(o) {
911
947
  for (const s in H)
912
- a.component(s, H[s]);
948
+ o.component(s, H[s]);
913
949
  }
914
- const js = { install: Ts };
950
+ const Gs = { install: Ps };
915
951
  export {
916
952
  ke as MucBanner,
917
953
  G as MucButton,
918
- Ee as MucCallout,
954
+ xe as MucCallout,
919
955
  Ge as MucCard,
920
956
  He as MucCardContainer,
921
- mt as MucCheckbox,
957
+ _t as MucCheckbox,
922
958
  kt as MucCheckboxGroup,
923
959
  K as MucComment,
924
- lt as MucCommentText,
925
- Rt as MucCounter,
960
+ nt as MucCommentText,
961
+ Lt as MucCounter,
926
962
  ut as MucDivider,
927
- Tt as MucErrorList,
928
- w as MucIcon,
963
+ Ot as MucErrorList,
964
+ S as MucIcon,
929
965
  Jt as MucInput,
930
966
  Os as MucIntro,
931
967
  X as MucLink,
932
968
  es as MucRadioButton,
933
- ls as MucRadioButtonGroup,
934
- vs as MucSelect,
969
+ ns as MucRadioButtonGroup,
970
+ fs as MucSelect,
935
971
  ws as MucTextArea,
936
- js as default
972
+ Gs as default
937
973
  };