@muenchen/muc-patternlab-vue 1.13.0-beta.5 → 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 le, computed as r, openBlock as n, createElementBlock as l, normalizeClass as $, normalizeStyle as ce, createElementVNode as t, createVNode as O, unref as C, renderSlot as h, createBlock as G, createCommentVNode as g, toDisplayString as u, pushScopeId as H, popScopeId as N, useSlots as F, createTextVNode as b, Fragment as T, renderList as P, createSlots as ie, withCtx as x, mergeModels as S, useModel as j, withModifiers as D, ref as E, withDirectives as U, vModelDynamic as re, inject as ue, provide as de, readonly as _e, toRef as me, onMounted as pe, onBeforeUnmount as he, watch as ve, vModelText as W } from "vue";
2
- const fe = ["href"], I = /* @__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 = le(), 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: $(e.value),
13
- style: ce({ 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
17
- }, null, 8, fe)
16
+ href: "#icon-" + a.icon
17
+ }, null, 8, be)
18
18
  ], 6));
19
19
  }
20
- }), ge = ["role", "aria-label"], be = { class: "container-fluid" }, $e = /* @__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 fe = ["href"], I = /* @__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 fe = ["href"], I = /* @__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 fe = ["href"], I = /* @__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 fe = ["href"], I = /* @__PURE__ */ v({
74
74
  return "information";
75
75
  }
76
76
  });
77
- return (_, m) => (n(), l("div", null, [
77
+ return (_, r) => (l(), n("div", null, [
78
78
  t("div", null, [
79
79
  t("div", {
80
- class: $(["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", be, [
85
- O(C(I), { 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
88
  ], 10, ge)
89
89
  ])
90
90
  ]));
91
91
  }
92
- }), L = (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
- }, ye = /* @__PURE__ */ L($e, [["__scopeId", "data-v-53bc7eca"]]), ke = ["disabled"], z = /* @__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 fe = ["href"], I = /* @__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 fe = ["href"], I = /* @__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 (m, f) => (n(), l("button", {
121
+ return (r, f) => (l(), n("button", {
122
122
  onClick: _,
123
- disabled: m.disabled,
124
- class: $(["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(m.$slots, "default"),
128
- m.icon ? (n(), G(C(I), {
127
+ h(r.$slots, "default"),
128
+ r.icon ? (l(), U($(S), {
129
129
  key: 0,
130
- icon: m.icon,
130
+ icon: r.icon,
131
131
  class: "m-button__icon"
132
- }, null, 8, ["icon"])) : g("", !0)
132
+ }, null, 8, ["icon"])) : b("", !0)
133
133
  ])
134
- ], 10, ke));
134
+ ], 10, Me));
135
135
  }
136
- }), Me = ["aria-label"], Ce = { class: "m-callout__inner" }, we = { class: "m-callout__icon" }, Ie = { class: "m-callout__body" }, Se = { class: "m-callout__body__inner" }, Be = { class: "m-callout__headline" }, Ve = { 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 fe = ["href"], I = /* @__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 fe = ["href"], I = /* @__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,148 +171,148 @@ const fe = ["href"], I = /* @__PURE__ */ v({
171
171
  return "Information";
172
172
  }
173
173
  });
174
- return (c, _) => (n(), l("div", {
175
- class: $(["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", Ce, [
178
+ t("div", Ie, [
179
179
  t("div", we, [
180
- h(c.$slots, "icon", {}, () => [
181
- O(C(I), { icon: e.value }, null, 8, ["icon"])
180
+ h(i.$slots, "icon", {}, () => [
181
+ M($(S), { icon: e.value }, null, 8, ["icon"])
182
182
  ], !0)
183
183
  ]),
184
- t("div", Ie, [
185
- t("div", Se, [
186
- t("div", Be, [
187
- h(c.$slots, "header", {}, void 0, !0)
184
+ t("div", Se, [
185
+ t("div", Be, [
186
+ t("div", Te, [
187
+ h(i.$slots, "header", {}, void 0, !0)
188
188
  ]),
189
- t("div", Ve, [
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
  ])
195
195
  ])
196
196
  ])
197
- ], 10, Me));
197
+ ], 10, Ce));
198
198
  }
199
- }), xe = /* @__PURE__ */ L(Re, [["__scopeId", "data-v-e6cf4104"]]), Ee = (a) => (H("data-v-acf0a1dd"), a = a(), N(), a), Le = { class: "card-content" }, Ae = { class: "card-header" }, Oe = {
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
- }, Te = /* @__PURE__ */ Ee(() => /* @__PURE__ */ t("div", { class: "muc-divider" }, null, -1)), Pe = /* @__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", Le, [
216
- t("div", Ae, [
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", Oe, u(o.tagline), 1)) : g("", !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
- Te,
226
- h(o.$slots, "content", {}, void 0, !0)
225
+ Pe,
226
+ h(a.$slots, "content", {}, void 0, !0)
227
227
  ])
228
228
  ]));
229
229
  }
230
- }), je = /* @__PURE__ */ L(Pe, [["__scopeId", "data-v-acf0a1dd"]]), Ge = { class: "container card-container" }, Ue = /* @__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", Ge, [
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
- }), qe = /* @__PURE__ */ L(Ue, [["__scopeId", "data-v-6740df8f"]]), He = { class: "m-comment__head" }, Ne = { class: "m-comment__initials" }, Fe = { class: "m-comment__info" }, De = { class: "m-comment__author" }, We = { key: 0 }, ze = { class: "m-comment__author" }, Ke = { class: "m-comment__date" }, Xe = ["aria-label"], Je = {
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
- }, Qe = { class: "m-star-rating__numeric" }, Ye = { class: "m-comment__body" }, Ze = { class: "m-comment__headline" }, et = { class: "m-comment__text" }, tt = "de-DE", st = 0.2, ot = 0.8, A = 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 = F(), 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), A)
249
- ), _ = r(() => c.value.toLocaleString(tt.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
- })), m = r(() => {
252
- const f = +(c.value % 1).toFixed(1);
253
- let B = Math.min(Math.floor(c.value), A), y = Math.floor(A - c.value), p = !1;
254
- return c.value !== 0 && c.value !== A && (f <= st ? y++ : f >= ot ? B++ : p = !0), {
255
- fullStars: B,
256
- emptyStars: y,
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, B) => (n(), l("div", {
261
- class: $(["m-comment", i.value])
260
+ return (f, x) => (l(), n("div", {
261
+ class: C(["m-comment", u.value])
262
262
  }, [
263
- t("div", He, [
264
- t("div", Ne, [
263
+ t("div", Ne, [
264
+ t("div", Fe, [
265
265
  h(f.$slots, "initials")
266
266
  ]),
267
- t("div", Fe, [
268
- t("span", De, [
267
+ t("div", De, [
268
+ t("span", We, [
269
269
  h(f.$slots, "author")
270
270
  ]),
271
- o.value ? (n(), l("span", We, [
272
- t("span", ze, [
273
- b("  "),
271
+ a.value ? (l(), n("span", ze, [
272
+ t("span", Ke, [
273
+ y("  "),
274
274
  h(f.$slots, "datePrefix")
275
275
  ]),
276
- t("span", Ke, [
277
- b(" "),
276
+ t("span", Xe, [
277
+ y(" "),
278
278
  h(f.$slots, "date")
279
279
  ])
280
- ])) : g("", !0),
280
+ ])) : b("", !0),
281
281
  t("div", {
282
282
  class: "m-star-rating",
283
283
  role: "img",
284
- "aria-label": `Bewertung: ${f.rating} von ${A} Sternen`
284
+ "aria-label": `Bewertung: ${f.rating} von ${O} Sternen`
285
285
  }, [
286
- (n(!0), l(T, null, P(m.value.fullStars, (y) => (n(), l("div", {
287
- key: y,
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
- O(C(I), { icon: "solid-star" })
290
+ M($(S), { icon: "solid-star" })
291
291
  ]))), 128)),
292
- m.value.isHalfStar ? (n(), l("div", Je, [
293
- O(C(I), { icon: "half-star" })
294
- ])) : g("", !0),
295
- (n(!0), l(T, null, P(m.value.emptyStars, (y) => (n(), l("div", {
296
- key: y,
292
+ r.value.isHalfStar ? (l(), n("div", Qe, [
293
+ M($(S), { icon: "half-star" })
294
+ ])) : b("", !0),
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
- O(C(I), { icon: "solid-star" })
299
+ M($(S), { icon: "solid-star" })
300
300
  ]))), 128)),
301
- t("div", Qe, u(_.value), 1)
302
- ], 8, Xe)
301
+ t("div", Ye, m(_.value), 1)
302
+ ], 8, Je)
303
303
  ])
304
304
  ]),
305
- t("div", Ye, [
306
- t("div", Ze, [
305
+ t("div", Ze, [
306
+ t("div", et, [
307
307
  h(f.$slots, "headline")
308
308
  ]),
309
- t("div", et, [
309
+ t("div", tt, [
310
310
  h(f.$slots, "text")
311
311
  ])
312
312
  ])
313
313
  ], 2));
314
314
  }
315
- }), at = " ", nt = /* @__PURE__ */ v({
315
+ }), lt = " ", nt = /* @__PURE__ */ v({
316
316
  __name: "MucCommentText",
317
317
  props: {
318
318
  datePrefix: { default: "am" },
@@ -324,162 +324,248 @@ const fe = ["href"], I = /* @__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(at).map((o) => o.charAt(0)).join("")).match(/^.|.$/g) ?? [""]).join(""));
329
- return (o, i) => (n(), G(C(K), {
330
- rating: o.rating,
331
- variant: o.variant
332
- }, ie({
333
- initials: x(() => [
334
- b(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: x(() => [
337
- b("am")
336
+ datePrefix: B(() => [
337
+ y("am")
338
338
  ]),
339
- author: x(() => [
340
- b(u(o.author), 1)
339
+ author: B(() => [
340
+ y(m(a.author), 1)
341
341
  ]),
342
- headline: x(() => [
343
- b(u(o.headline), 1)
342
+ headline: B(() => [
343
+ y(m(a.headline), 1)
344
344
  ]),
345
- text: x(() => [
346
- b(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: x(() => [
353
- b(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
- }), lt = {}, ct = { class: "divider-border" };
360
- function it(a, s) {
361
- return n(), l("hr", ct);
359
+ }), it = {}, rt = { class: "divider-border" };
360
+ function ct(o, s) {
361
+ return l(), n("hr", rt);
362
362
  }
363
- const rt = /* @__PURE__ */ L(lt, [["render", it], ["__scopeId", "data-v-a2b37f5b"]]), ut = ["checked"], dt = { class: "m-label m-checkboxes__label" }, _t = /* @__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__ */ S({
365
+ props: /* @__PURE__ */ T({
366
366
  label: {}
367
367
  }, {
368
368
  modelValue: { type: Boolean, default: !1 },
369
369
  modelModifiers: {}
370
370
  }),
371
- emits: /* @__PURE__ */ S(["click"], ["update:modelValue"]),
372
- setup(a, { emit: s }) {
373
- const e = j(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: D(i, ["stop"])
386
- }, null, 8, ut),
387
- t("label", dt, u(c.label), 1)
385
+ onClick: W(u, ["stop"])
386
+ }, null, 8, dt),
387
+ t("label", mt, m(i.label), 1)
388
388
  ]));
389
389
  }
390
- }), mt = { class: "m-form-group" }, pt = { class: "m-checkbox-group" }, ht = { class: "m-checkbox-group__legend" }, vt = { class: "m-checkbox-group__heading" }, ft = { class: "m-checkboxes m-checkboxes--collapse" }, gt = /* @__PURE__ */ t("span", null, "Mehr ", -1), bt = {
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
- }, $t = ["href"], yt = /* @__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 = E(!0), e = r(() => s.value ? "collapse" : ""), o = r(() => s.value ? "down" : "up"), i = () => s.value = !s.value;
400
- return (c, _) => (n(), l("div", mt, [
401
- t("fieldset", pt, [
402
- t("legend", ht, [
403
- t("h3", vt, u(c.heading), 1)
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
+ t("fieldset", ht, [
402
+ t("legend", vt, [
403
+ t("h3", ft, m(i.heading), 1)
404
404
  ]),
405
- t("div", ft, [
406
- h(c.$slots, "checkboxes"),
407
- c.$slots.collapsableCheckboxes ? (n(), l("div", {
405
+ t("div", bt, [
406
+ h(i.$slots, "checkboxes"),
407
+ i.$slots.collapsableCheckboxes ? (l(), n("div", {
408
408
  key: 0,
409
- class: $(["m-checkboxes__collapse__container", e.value])
409
+ class: C(["m-checkboxes__collapse__container", e.value])
410
410
  }, [
411
- h(c.$slots, "collapsableCheckboxes")
412
- ], 2)) : g("", !0),
413
- c.$slots.collapsableCheckboxes ? (n(), G(C(z), {
411
+ h(i.$slots, "collapsableCheckboxes")
412
+ ], 2)) : b("", !0),
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: x(() => [
419
+ default: B(() => [
420
420
  gt,
421
- (n(), l("svg", bt, [
421
+ (l(), n("svg", yt, [
422
422
  t("use", {
423
- href: "#icon-chevron-" + o.value
423
+ href: "#icon-chevron-" + a.value
424
424
  }, null, 8, $t)
425
425
  ]))
426
426
  ]),
427
427
  _: 1
428
- }, 8, ["aria-expanded"])) : g("", !0)
428
+ }, 8, ["aria-expanded"])) : b("", !0)
429
429
  ])
430
430
  ])
431
431
  ]));
432
432
  }
433
- }), kt = {
433
+ }), Mt = ["href", "target"], X = /* @__PURE__ */ v({
434
+ __name: "MucLink",
435
+ props: {
436
+ label: {},
437
+ href: { default: "#" },
438
+ icon: {},
439
+ target: { default: "_blank" },
440
+ noUnderline: { type: Boolean, default: !1 }
441
+ },
442
+ setup(o) {
443
+ const s = o, e = d(
444
+ () => s.noUnderline ? "m-link--reversed-underline" : ""
445
+ );
446
+ return (a, u) => (l(), n("a", {
447
+ href: a.href,
448
+ target: a.target,
449
+ class: C(["m-link", e.value])
450
+ }, [
451
+ y(m(a.label) + " ", 1),
452
+ h(a.$slots, "icon", {}, () => [
453
+ a.icon ? (l(), U($(S), {
454
+ key: 0,
455
+ icon: a.icon,
456
+ class: "icon icon--after"
457
+ }, null, 8, ["icon"])) : b("", !0)
458
+ ])
459
+ ], 10, Mt));
460
+ }
461
+ }), Ct = { class: "wrapper" }, It = {
462
+ class: "centered-text",
463
+ style: { color: "var(--color-brand-main-blue)" }
464
+ }, wt = { key: 0 }, St = { class: "centered-text" }, Bt = { key: 1 }, Tt = { class: "centered-text" }, At = /* @__PURE__ */ v({
465
+ __name: "MucCounter",
466
+ props: /* @__PURE__ */ T({
467
+ label: {},
468
+ min: {},
469
+ max: {},
470
+ link: {},
471
+ disabled: { type: Boolean, default: !1 }
472
+ }, {
473
+ modelValue: { default: 0 },
474
+ modelModifiers: {}
475
+ }),
476
+ emits: ["update:modelValue"],
477
+ setup(o) {
478
+ const s = E(o, "modelValue"), e = o, a = () => s.value++, u = () => s.value--, i = d(
479
+ () => !!e.max && !(s.value < e.max) || e.disabled
480
+ ), _ = d(
481
+ () => s.value == 0 || !!e.min && !(s.value > e.min) || e.disabled
482
+ );
483
+ return (r, f) => (l(), n("div", Ct, [
484
+ M($(G), {
485
+ onClick: u,
486
+ variant: "secondary",
487
+ disabled: _.value
488
+ }, {
489
+ default: B(() => [
490
+ M($(S), { icon: "minus" })
491
+ ]),
492
+ _: 1
493
+ }, 8, ["disabled"]),
494
+ t("p", null, [
495
+ t("strong", It, m(s.value), 1)
496
+ ]),
497
+ M($(G), {
498
+ onClick: a,
499
+ variant: "secondary",
500
+ disabled: i.value
501
+ }, {
502
+ default: B(() => [
503
+ M($(S), { icon: "plus" })
504
+ ]),
505
+ _: 1
506
+ }, 8, ["disabled"]),
507
+ r.link ? (l(), n("p", wt, [
508
+ t("label", St, [
509
+ M($(X), {
510
+ label: r.label,
511
+ href: r.link
512
+ }, null, 8, ["label", "href"])
513
+ ])
514
+ ])) : (l(), n("p", Bt, [
515
+ t("label", Tt, m(r.label), 1)
516
+ ]))
517
+ ]));
518
+ }
519
+ }), Lt = /* @__PURE__ */ L(At, [["__scopeId", "data-v-a20e4a10"]]), xt = {
434
520
  class: "m-error-list",
435
521
  role: "alert",
436
522
  tabindex: "-1"
437
- }, Mt = { class: "m-error-list__title" }, Ct = { class: "m-error-list__body" }, wt = { class: "m-list m-error-list__list" }, It = /* @__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({
438
524
  __name: "MucErrorList",
439
525
  props: {
440
526
  title: {},
441
527
  errors: {}
442
528
  },
443
- setup(a) {
444
- const s = a, e = r(
529
+ setup(o) {
530
+ const s = o, e = d(
445
531
  () => typeof s.errors == "string" ? [s.errors] : s.errors
446
532
  );
447
- return (o, i) => (n(), l("div", kt, [
448
- t("h2", Mt, u(o.title), 1),
449
- t("div", Ct, [
450
- t("ul", wt, [
451
- (n(!0), l(T, null, P(e.value, (c, _) => (n(), l("li", { key: _ }, [
452
- 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)
453
539
  ]))), 128))
454
540
  ])
455
541
  ])
456
542
  ]));
457
543
  }
458
- }), St = {
544
+ }), Pt = {
459
545
  for: "search-input",
460
546
  class: "m-label"
461
- }, Bt = {
547
+ }, jt = {
462
548
  key: 0,
463
549
  "aria-hidden": "true",
464
550
  class: "mandatory"
465
- }, Vt = /* @__PURE__ */ t("span", { class: "visually-hidden" }, "(erforderlich)", -1), Rt = {
551
+ }, Gt = /* @__PURE__ */ t("span", { class: "visually-hidden" }, "(erforderlich)", -1), Ut = {
466
552
  id: "text-input-error",
467
553
  class: "m-error-message"
468
- }, xt = { class: "m-input-wrapper m-autocomplete" }, Et = {
554
+ }, qt = { class: "m-input-wrapper m-autocomplete" }, Ht = {
469
555
  key: 0,
470
556
  class: "m-input__prefix"
471
- }, Lt = ["type", "aria-describedby", "placeholder", "required"], At = {
557
+ }, Nt = ["type", "aria-describedby", "placeholder", "required"], Ft = {
472
558
  key: 1,
473
559
  class: "autocomplete-result-list autocomplete-result-list--location"
474
- }, Ot = ["onClick"], Tt = {
560
+ }, Dt = ["onClick"], Wt = {
475
561
  "aria-hidden": "true",
476
562
  class: "icon"
477
- }, Pt = ["xlink:href"], jt = /* @__PURE__ */ t("span", { class: "visually-hidden" }, "Suchen", -1), Gt = {
563
+ }, zt = ["xlink:href"], Kt = /* @__PURE__ */ t("span", { class: "visually-hidden" }, "Suchen", -1), Xt = {
478
564
  class: "m-hint",
479
565
  id: "text-input-hint"
480
- }, Ut = /* @__PURE__ */ v({
566
+ }, Jt = /* @__PURE__ */ v({
481
567
  __name: "MucInput",
482
- props: /* @__PURE__ */ S({
568
+ props: /* @__PURE__ */ T({
483
569
  errorMsg: {},
484
570
  placeholder: {},
485
571
  required: { type: Boolean, default: !1 },
@@ -492,69 +578,69 @@ const rt = /* @__PURE__ */ L(lt, [["render", it], ["__scopeId", "data-v-a2b37f5b
492
578
  modelValue: { default: "" },
493
579
  modelModifiers: {}
494
580
  }),
495
- emits: /* @__PURE__ */ S(["suffixClick"], ["update:modelValue"]),
496
- setup(a, { emit: s }) {
497
- const e = j(a, "modelValue"), o = a, i = F(), c = s, _ = r(() => o.errorMsg ? "has-error" : ""), m = 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(() => {
498
584
  if (e.value === "") return [];
499
585
  const p = e.value.toLowerCase();
500
- return o.datalist.filter(
586
+ return a.datalist.filter(
501
587
  (V) => V.toLowerCase().startsWith(p) && V.toLowerCase() !== p
502
588
  );
503
- }), B = (p) => e.value = p, y = () => c("suffixClick");
504
- return (p, V) => (n(), l("div", {
505
- class: $(["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])
506
592
  }, [
507
- t("label", St, [
508
- b(u(p.label) + " ", 1),
509
- p.required ? (n(), l("span", Bt, [
510
- b(" * "),
511
- Vt
512
- ])) : g("", !0)
593
+ t("label", Pt, [
594
+ y(m(p.label) + " ", 1),
595
+ p.required ? (l(), n("span", jt, [
596
+ y(" * "),
597
+ Gt
598
+ ])) : b("", !0)
513
599
  ]),
514
- t("p", Rt, u(p.errorMsg), 1),
515
- t("div", xt, [
516
- i.prefix ? (n(), l("div", Et, [
600
+ t("p", Ut, m(p.errorMsg), 1),
601
+ t("div", qt, [
602
+ u.prefix ? (l(), n("div", Ht, [
517
603
  t("span", null, [
518
604
  h(p.$slots, "prefix")
519
605
  ])
520
- ])) : g("", !0),
521
- U(t("input", {
606
+ ])) : b("", !0),
607
+ q(t("input", {
522
608
  class: "m-input autocomplete-input",
523
609
  type: p.type,
524
- "onUpdate:modelValue": V[0] || (V[0] = (k) => e.value = k),
610
+ "onUpdate:modelValue": V[0] || (V[0] = (w) => e.value = w),
525
611
  "aria-describedby": p.type + "-input",
526
612
  placeholder: p.placeholder,
527
613
  required: p.required
528
- }, null, 8, Lt), [
529
- [re, e.value]
614
+ }, null, 8, Nt), [
615
+ [ue, e.value]
530
616
  ]),
531
- m.value && f.value.length !== 0 ? (n(), l("ul", At, [
532
- (n(!0), l(T, null, P(f.value, (k) => (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", {
533
619
  class: "autocomplete-result",
534
- key: k,
535
- onClick: (w) => B(k)
536
- }, u(k), 9, Ot))), 128))
537
- ])) : g("", !0),
538
- p.suffixIcon ? (n(), l("button", {
620
+ key: w,
621
+ onClick: (A) => x(w)
622
+ }, m(w), 9, Dt))), 128))
623
+ ])) : b("", !0),
624
+ p.suffixIcon ? (l(), n("button", {
539
625
  key: 2,
540
626
  class: "m-input__suffix",
541
- onClick: y
627
+ onClick: I
542
628
  }, [
543
- (n(), l("svg", Tt, [
629
+ (l(), n("svg", Wt, [
544
630
  t("use", {
545
631
  "xlink:href": "#icon-" + p.suffixIcon
546
- }, null, 8, Pt)
632
+ }, null, 8, zt)
547
633
  ])),
548
- jt
549
- ])) : g("", !0)
634
+ Kt
635
+ ])) : b("", !0)
550
636
  ]),
551
- t("p", Gt, u(p.hint), 1)
637
+ t("p", Xt, m(p.hint), 1)
552
638
  ], 2));
553
639
  }
554
- }), X = Symbol("mucRadioGroup"), qt = {
640
+ }), J = Symbol("mucRadioGroup"), Qt = {
555
641
  key: 0,
556
642
  class: "m-radios__item"
557
- }, Ht = ["checked", "disabled"], Nt = { class: "m-hint" }, Ft = /* @__PURE__ */ v({
643
+ }, Yt = ["checked", "disabled"], Zt = { class: "m-hint" }, es = /* @__PURE__ */ v({
558
644
  __name: "MucRadioButton",
559
645
  props: {
560
646
  value: {},
@@ -562,88 +648,101 @@ const rt = /* @__PURE__ */ L(lt, [["render", it], ["__scopeId", "data-v-a2b37f5b
562
648
  hint: {},
563
649
  disabled: { type: Boolean, default: !1 }
564
650
  },
565
- setup(a) {
566
- const s = a, e = ue(X), 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));
567
- return (m, 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, [
568
654
  t("input", {
569
655
  class: "m-radios__input",
570
656
  type: "radio",
571
- checked: i.value,
572
- disabled: c.value,
573
- onClick: D(o, ["stop"])
574
- }, null, 8, Ht),
657
+ checked: u.value,
658
+ disabled: i.value,
659
+ onClick: W(a, ["stop"])
660
+ }, null, 8, Yt),
575
661
  t("label", {
576
662
  class: "m-label m-radios__label",
577
- onClick: o
663
+ onClick: a
578
664
  }, [
579
- b(u(m.label) + " ", 1),
580
- t("span", Nt, u(m.hint), 1)
665
+ y(m(r.label) + " ", 1),
666
+ t("span", Zt, m(r.hint), 1)
581
667
  ])
582
- ])) : g("", !0);
668
+ ])) : b("", !0);
583
669
  }
584
- }), Dt = { class: "m-form-group" }, Wt = { class: "m-radio-group" }, zt = { class: "m-radio-group__legend" }, Kt = { class: "m-radio-group__heading" }, Xt = { class: "m-radios" }, Jt = /* @__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({
585
671
  __name: "MucRadioButtonGroup",
586
- props: /* @__PURE__ */ S({
672
+ props: /* @__PURE__ */ T({
587
673
  heading: {},
588
674
  disabled: { type: Boolean, default: !1 }
589
675
  }, {
590
676
  modelValue: { type: [Boolean, String, Array, Object, Number, null] },
591
677
  modelModifiers: {}
592
678
  }),
593
- emits: /* @__PURE__ */ S(["change"], ["update:modelValue"]),
594
- setup(a, { emit: s }) {
595
- const e = j(a, "modelValue"), o = a, i = s;
596
- return de(X, {
597
- set: (c) => {
598
- 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;
599
685
  },
600
686
  modelValue: e,
601
- disabled: _e(me(o.disabled))
602
- }), (c, _) => (n(), l("div", Dt, [
603
- t("fieldset", Wt, [
604
- t("legend", zt, [
605
- t("h3", Kt, u(c.heading), 1)
687
+ disabled: _e(pe(a.disabled))
688
+ }), (i, _) => (l(), n("div", ts, [
689
+ t("fieldset", ss, [
690
+ t("legend", as, [
691
+ t("h3", os, m(i.heading), 1)
606
692
  ]),
607
- t("div", Xt, [
608
- h(c.$slots, "default")
693
+ t("div", ls, [
694
+ h(i.$slots, "default")
609
695
  ])
610
696
  ])
611
697
  ]));
612
698
  }
613
699
  });
614
- function Qt(a, s) {
615
- if (!a) return;
616
- const e = (o) => {
617
- 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();
618
704
  };
619
- return pe(() => {
705
+ return he(() => {
620
706
  window.addEventListener("click", e);
621
- }), he(() => {
707
+ }), ve(() => {
622
708
  window.removeEventListener("click", e);
623
709
  }), { listener: e };
624
710
  }
625
- const J = (a) => (H("data-v-0f229e1b"), a = a(), N(), a), Yt = { class: "m-label" }, Zt = /* @__PURE__ */ J(() => /* @__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", {
626
724
  "aria-hidden": "true",
627
725
  class: "icon"
628
726
  }, [
629
727
  /* @__PURE__ */ t("use", { "xlink:href": "#icon-chevron-down" })
630
- ], -1)), es = /* @__PURE__ */ J(() => /* @__PURE__ */ t("span", { class: "visually-hidden" }, "Auswahlliste öffnen", -1)), ts = [
631
- Zt,
632
- es
633
- ], ss = ["onMouseenter", "onClick"], os = {
728
+ ], -1)), ds = /* @__PURE__ */ Q(() => /* @__PURE__ */ t("span", { class: "visually-hidden" }, "Auswahlliste öffnen", -1)), ms = [
729
+ us,
730
+ ds
731
+ ], _s = ["onMouseenter", "onClick"], ps = {
634
732
  key: 0,
635
733
  class: "option"
636
- }, as = {
734
+ }, hs = {
637
735
  key: 0,
638
736
  class: "m-hint"
639
- }, ns = /* @__PURE__ */ v({
737
+ }, vs = /* @__PURE__ */ v({
640
738
  __name: "MucSelect",
641
- props: /* @__PURE__ */ S({
739
+ props: /* @__PURE__ */ T({
642
740
  items: {},
643
741
  label: {},
644
742
  hint: {},
645
743
  multiple: { type: Boolean, default: !1 },
646
- noItemFoundMessage: { default: "No items found." }
744
+ noItemFoundMessage: { default: "No items found." },
745
+ itemTitle: { default: "title" }
647
746
  }, {
648
747
  modelValue: {
649
748
  default: []
@@ -651,83 +750,106 @@ const J = (a) => (H("data-v-0f229e1b"), a = a(), N(), a), Yt = { class: "m-label
651
750
  modelModifiers: {}
652
751
  }),
653
752
  emits: ["update:modelValue"],
654
- setup(a) {
655
- const s = E(), e = j(a, "modelValue"), o = E(!1), i = E(), c = E(!1), _ = E(), m = a, f = () => {
656
- o.value = !o.value, _.value = i.value;
657
- }, B = () => {
658
- o.value = !0, _.value = i.value, w.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 = "";
659
761
  };
660
- Qt(s, () => {
661
- o.value = !1, w.value = k.value;
762
+ is(s, () => {
763
+ a.value = !1, A.value = w.value;
662
764
  });
663
- const y = (d) => {
664
- i.value = d, m.multiple ? V(d) : p(d), m.multiple || (o.value = !1);
665
- }, p = (d) => {
666
- typeof e.value == "object" && (e.value = e.value.join(" ")), e.value = e.value === d ? "" : d;
667
- }, V = (d) => {
668
- typeof e.value == "string" && (e.value = [e.value]), e.value = e.value.includes(d) ? e.value.filter((R) => R !== d) : [...e.value, d];
669
- }, k = r(() => typeof e.value == "string" ? e.value : e.value.join(m.multiple ? ", " : " "));
670
- ve(k, (d) => {
671
- w.value = d;
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;
672
776
  });
673
- const w = E(k.value), Q = r(
674
- () => w.value == k.value ? m.items : Y(w.value)
675
- ), Y = (d) => {
676
- c.value = !1;
677
- const R = m.items.filter((M) => M.includes(d));
678
- return R.length === 0 && (c.value = !0), R;
679
- }, Z = (d) => d === _.value ? "active" : "", ee = (d) => e.value.includes(d) ? "selected" : "", te = () => _.value = "", se = r(
680
- () => o.value ? "display-listbox" : ""
681
- ), oe = r(
682
- () => m.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"
683
800
  );
684
- return (d, R) => (n(), l("div", {
801
+ return (c, g) => (l(), n("div", {
685
802
  class: "m-form-group",
686
803
  ref_key: "selectComponentRef",
687
804
  ref: s
688
805
  }, [
689
- t("label", Yt, u(d.label), 1),
806
+ t("label", cs, m(c.label), 1),
690
807
  t("div", {
691
- class: $(["m-input-wrapper", oe.value])
808
+ class: C(["m-input-wrapper", oe.value])
692
809
  }, [
693
- U(t("input", {
810
+ q(t("input", {
694
811
  type: "text",
695
812
  class: "m-input m-combobox m-combobox--single",
696
- "onUpdate:modelValue": R[0] || (R[0] = (M) => w.value = M),
697
- onClick: B
813
+ "onUpdate:modelValue": g[0] || (g[0] = (k) => A.value = k),
814
+ onClick: x
698
815
  }, null, 512), [
699
- [W, w.value]
816
+ [z, A.value]
700
817
  ]),
701
818
  t("span", {
702
819
  class: "m-input__trigger",
703
820
  onClick: f
704
- }, ts),
821
+ }, ms),
705
822
  t("ul", {
706
- class: $(["listbox", se.value]),
707
- onMouseleave: te
823
+ class: C(["listbox", ae.value]),
824
+ onMouseleave: se
708
825
  }, [
709
- (n(!0), l(T, null, P(Q.value, (M, ae) => (n(), l("li", {
710
- key: ae,
711
- class: $(["option", [Z(M), ee(M)]]),
712
- onMouseenter: (ne) => _.value = M,
713
- onClick: (ne) => y(M)
714
- }, u(M), 43, ss))), 128)),
715
- c.value ? (n(), l("li", os, u(d.noItemFoundMessage), 1)) : g("", !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)
716
838
  ], 34)
717
839
  ], 2),
718
- d.hint ? (n(), l("p", as, u(d.hint), 1)) : g("", !0)
840
+ c.hint ? (l(), n("p", hs, m(c.hint), 1)) : b("", !0)
719
841
  ], 512));
720
842
  }
721
- }), ls = /* @__PURE__ */ L(ns, [["__scopeId", "data-v-0f229e1b"]]), cs = { class: "m-form-group has-error" }, is = {
843
+ }), fs = /* @__PURE__ */ L(vs, [["__scopeId", "data-v-e39e3aae"]]), bs = { class: "m-form-group has-error" }, gs = {
722
844
  for: "textarea",
723
845
  class: "m-label"
724
- }, rs = {
846
+ }, ys = {
725
847
  key: 0,
726
848
  "aria-hidden": "true",
727
849
  class: "mandatory"
728
- }, us = /* @__PURE__ */ t("span", { class: "visually-hidden" }, "(erforderlich)", -1), ds = { class: "m-error-message" }, _s = { class: "m-input-wrapper" }, ms = ["rows", "placeholder"], ps = { class: "m-hint" }, hs = /* @__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({
729
851
  __name: "MucTextArea",
730
- props: /* @__PURE__ */ S({
852
+ props: /* @__PURE__ */ T({
731
853
  errorMsg: {},
732
854
  rows: { default: 3 },
733
855
  placeholder: {},
@@ -739,58 +861,58 @@ const J = (a) => (H("data-v-0f229e1b"), a = a(), N(), a), Yt = { class: "m-label
739
861
  modelModifiers: {}
740
862
  }),
741
863
  emits: ["update:modelValue"],
742
- setup(a) {
743
- const s = j(a, "modelValue");
744
- return (e, o) => (n(), l("div", cs, [
745
- t("label", is, [
746
- b(u(e.label) + " ", 1),
747
- e.required ? (n(), l("span", rs, [
748
- b(" * "),
749
- us
750
- ])) : g("", !0)
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
872
+ ])) : b("", !0)
751
873
  ]),
752
- t("p", ds, u(e.errorMsg), 1),
753
- t("div", _s, [
754
- U(t("textarea", {
874
+ t("p", ks, m(e.errorMsg), 1),
875
+ t("div", Ms, [
876
+ q(t("textarea", {
755
877
  class: "m-textarea",
756
878
  rows: e.rows,
757
879
  "aria-describedby": "textarea input",
758
880
  placeholder: e.placeholder,
759
- "onUpdate:modelValue": o[0] || (o[0] = (i) => s.value = i)
760
- }, null, 8, ms), [
761
- [W, s.value]
881
+ "onUpdate:modelValue": a[0] || (a[0] = (u) => s.value = u)
882
+ }, null, 8, Cs), [
883
+ [z, s.value]
762
884
  ])
763
885
  ]),
764
- t("p", ps, u(e.hint), 1)
886
+ t("p", Is, m(e.hint), 1)
765
887
  ]));
766
888
  }
767
- }), vs = {
889
+ }), Ss = {
768
890
  class: "m-intro m-intro-static-image",
769
891
  style: { "background-color": "var(--color-neutrals-blue-xlight)" }
770
- }, fs = { class: "container" }, gs = { class: "muc-intro-content" }, bs = {
892
+ }, Bs = { class: "container" }, Ts = { class: "muc-intro-content" }, As = {
771
893
  key: 0,
772
894
  class: "m-intro-vertical__tagline"
773
- }, $s = { class: "m-intro-vertical__title" }, ys = {
895
+ }, Ls = { class: "m-intro-vertical__title" }, xs = {
774
896
  key: 0,
775
897
  class: "muc-divider"
776
- }, ks = { class: "m-intro-vertical__content" }, Ms = { style: { "padding-bottom": "32px" } }, Cs = /* @__PURE__ */ v({
898
+ }, Vs = { class: "m-intro-vertical__content" }, Rs = { style: { "padding-bottom": "32px" } }, Es = /* @__PURE__ */ v({
777
899
  __name: "MucIntro",
778
900
  props: {
779
901
  title: {},
780
902
  tagline: {},
781
903
  divider: { type: Boolean }
782
904
  },
783
- setup(a) {
784
- return (s, e) => (n(), l("div", vs, [
785
- t("div", fs, [
786
- t("div", gs, [
905
+ setup(o) {
906
+ return (s, e) => (l(), n("div", Ss, [
907
+ t("div", Bs, [
908
+ t("div", Ts, [
787
909
  t("div", null, [
788
- s.tagline ? (n(), l("p", bs, u(s.tagline), 1)) : g("", !0),
789
- t("h1", $s, 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)
790
912
  ]),
791
- s.divider ? (n(), l("div", ys)) : g("", !0),
792
- t("div", ks, [
793
- t("p", Ms, [
913
+ s.divider ? (l(), n("div", xs)) : b("", !0),
914
+ t("div", Vs, [
915
+ t("p", Rs, [
794
916
  h(s.$slots, "default", {}, void 0, !0)
795
917
  ])
796
918
  ])
@@ -798,80 +920,54 @@ const J = (a) => (H("data-v-0f229e1b"), a = a(), N(), a), Yt = { class: "m-label
798
920
  ])
799
921
  ]));
800
922
  }
801
- }), ws = /* @__PURE__ */ L(Cs, [["__scopeId", "data-v-5c768acc"]]), Is = ["href", "target"], Ss = /* @__PURE__ */ v({
802
- __name: "MucLink",
803
- props: {
804
- label: {},
805
- href: { default: "#" },
806
- icon: {},
807
- target: { default: "_blank" },
808
- noUnderline: { type: Boolean, default: !1 }
809
- },
810
- setup(a) {
811
- const s = a, e = r(
812
- () => s.noUnderline ? "m-link--reversed-underline" : ""
813
- );
814
- return (o, i) => (n(), l("a", {
815
- href: o.href,
816
- target: o.target,
817
- class: $(["m-link", e.value])
818
- }, [
819
- b(u(o.label) + " ", 1),
820
- h(o.$slots, "icon", {}, () => [
821
- o.icon ? (n(), G(C(I), {
822
- key: 0,
823
- icon: o.icon,
824
- class: "icon icon--after"
825
- }, null, 8, ["icon"])) : g("", !0)
826
- ])
827
- ], 10, Is));
828
- }
829
- }), q = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
923
+ }), Os = /* @__PURE__ */ L(Es, [["__scopeId", "data-v-5c768acc"]]), H = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
830
924
  __proto__: null,
831
- MucBanner: ye,
832
- MucButton: z,
925
+ MucBanner: ke,
926
+ MucButton: G,
833
927
  MucCallout: xe,
834
- MucCard: je,
835
- MucCardContainer: qe,
928
+ MucCard: Ge,
929
+ MucCardContainer: He,
836
930
  MucCheckbox: _t,
837
- MucCheckboxGroup: yt,
931
+ MucCheckboxGroup: kt,
838
932
  MucComment: K,
839
933
  MucCommentText: nt,
840
- MucDivider: rt,
841
- MucErrorList: It,
842
- MucIcon: I,
843
- MucInput: Ut,
844
- MucIntro: ws,
845
- MucLink: Ss,
846
- MucRadioButton: Ft,
847
- MucRadioButtonGroup: Jt,
848
- MucSelect: ls,
849
- MucTextArea: hs
934
+ MucCounter: Lt,
935
+ MucDivider: ut,
936
+ MucErrorList: Ot,
937
+ MucIcon: S,
938
+ MucInput: Jt,
939
+ MucIntro: Os,
940
+ MucLink: X,
941
+ MucRadioButton: es,
942
+ MucRadioButtonGroup: ns,
943
+ MucSelect: fs,
944
+ MucTextArea: ws
850
945
  }, Symbol.toStringTag, { value: "Module" }));
851
- function Bs(a) {
852
- for (const s in q)
853
- a.component(s, q[s]);
946
+ function Ps(o) {
947
+ for (const s in H)
948
+ o.component(s, H[s]);
854
949
  }
855
- const Rs = { install: Bs };
950
+ const Gs = { install: Ps };
856
951
  export {
857
- ye as MucBanner,
858
- z as MucButton,
952
+ ke as MucBanner,
953
+ G as MucButton,
859
954
  xe as MucCallout,
860
- je as MucCard,
861
- qe as MucCardContainer,
955
+ Ge as MucCard,
956
+ He as MucCardContainer,
862
957
  _t as MucCheckbox,
863
- yt as MucCheckboxGroup,
958
+ kt as MucCheckboxGroup,
864
959
  K as MucComment,
865
960
  nt as MucCommentText,
866
- rt as MucDivider,
867
- It as MucErrorList,
868
- I as MucIcon,
869
- Ut as MucInput,
870
- ws as MucIntro,
871
- Ss as MucLink,
872
- Ft as MucRadioButton,
873
- Jt as MucRadioButtonGroup,
874
- ls as MucSelect,
875
- hs as MucTextArea,
876
- Rs as default
961
+ Lt as MucCounter,
962
+ ut as MucDivider,
963
+ Ot as MucErrorList,
964
+ S as MucIcon,
965
+ Jt as MucInput,
966
+ Os as MucIntro,
967
+ X as MucLink,
968
+ es as MucRadioButton,
969
+ ns as MucRadioButtonGroup,
970
+ fs as MucSelect,
971
+ ws as MucTextArea,
972
+ Gs as default
877
973
  };