@db-ux/v-core-components 4.10.2 → 4.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/components/table/examples/data.d.ts +9 -0
  3. package/dist/components/table/index.d.ts +1 -0
  4. package/dist/components/table/model.d.ts +74 -0
  5. package/dist/components/table/table.vue.d.ts +30 -0
  6. package/dist/components/table-body/index.d.ts +1 -0
  7. package/dist/components/table-body/model.d.ts +8 -0
  8. package/dist/components/table-body/table-body.vue.d.ts +20 -0
  9. package/dist/components/table-caption/index.d.ts +1 -0
  10. package/dist/components/table-caption/model.d.ts +5 -0
  11. package/dist/components/table-caption/table-caption.vue.d.ts +17 -0
  12. package/dist/components/table-data-cell/index.d.ts +1 -0
  13. package/dist/components/table-data-cell/model.d.ts +5 -0
  14. package/dist/components/table-data-cell/table-data-cell.vue.d.ts +25 -0
  15. package/dist/components/table-footer/index.d.ts +1 -0
  16. package/dist/components/table-footer/model.d.ts +8 -0
  17. package/dist/components/table-footer/table-footer.vue.d.ts +20 -0
  18. package/dist/components/table-head/index.d.ts +1 -0
  19. package/dist/components/table-head/model.d.ts +10 -0
  20. package/dist/components/table-head/table-head.vue.d.ts +20 -0
  21. package/dist/components/table-header-cell/index.d.ts +1 -0
  22. package/dist/components/table-header-cell/model.d.ts +24 -0
  23. package/dist/components/table-header-cell/table-header-cell.vue.d.ts +28 -0
  24. package/dist/components/table-row/index.d.ts +1 -0
  25. package/dist/components/table-row/model.d.ts +30 -0
  26. package/dist/components/table-row/table-row.vue.d.ts +21 -0
  27. package/dist/components/textarea/textarea.vue.d.ts +1 -1
  28. package/dist/db-ux.es.js +1538 -1012
  29. package/dist/db-ux.umd.js +1 -1
  30. package/dist/index.d.ts +16 -0
  31. package/dist/shared/figma.d.ts +70 -18
  32. package/dist/shared/model.d.ts +44 -2
  33. package/dist/utils/index.d.ts +9 -4
  34. package/package.json +3 -3
package/dist/db-ux.es.js CHANGED
@@ -1,41 +1,41 @@
1
- import { Fragment as e, createBlock as t, createCommentVNode as n, createElementBlock as r, createElementVNode as i, createTextVNode as a, createVNode as o, defineComponent as s, normalizeClass as c, onMounted as l, onUnmounted as u, openBlock as d, ref as f, renderList as p, renderSlot as m, toDisplayString as h, unref as g, useId as _, watch as v, withCtx as y } from "vue";
1
+ import { Fragment as e, createBlock as t, createCommentVNode as n, createElementBlock as r, createElementVNode as i, createTextVNode as a, createVNode as o, defineComponent as s, normalizeClass as c, normalizeStyle as l, onMounted as u, onUnmounted as d, openBlock as f, ref as p, renderList as m, renderSlot as h, toDisplayString as g, unref as _, useId as v, watch as y, withCtx as b } from "vue";
2
2
  //#region src/utils/index.ts
3
- var b = () => {
3
+ var x = () => {
4
4
  if (typeof window < "u") {
5
5
  if (window.crypto?.randomUUID) return window.crypto.randomUUID();
6
6
  if (window.crypto?.getRandomValues) return window.crypto.getRandomValues(new Uint32Array(3)).join("-");
7
7
  }
8
8
  return Math.random().toString().substring(2);
9
- }, x = (e, t) => {
9
+ }, S = (e, t) => {
10
10
  let n = e.children;
11
11
  Object.values(n).forEach((e) => {
12
- e.setAttribute(t.key, t.value), e.children.length > 0 && x(e, t);
12
+ e.setAttribute(t.key, t.value), e.children.length > 0 && S(e, t);
13
13
  });
14
- }, S = (...e) => {
14
+ }, C = (...e) => {
15
15
  let t = "";
16
16
  for (let n of e) if (n) if (typeof n == "string") t += `${n} `;
17
17
  else for (let e in n) n[e] && (t += `${e} `);
18
18
  return t.trim();
19
- }, C = (e) => Array.isArray(e) && e.every((e) => typeof e == "string"), w = [
19
+ }, w = (e) => Array.isArray(e) && e.every((e) => typeof e == "string"), T = [
20
20
  "Mac",
21
21
  "iPhone",
22
22
  "iPad",
23
23
  "iPod"
24
- ], T = () => typeof window < "u" && w.some((e) => window.navigator.userAgent.includes(e)), E = () => {
24
+ ], E = () => typeof window < "u" && T.some((e) => window.navigator.userAgent.includes(e)), D = () => {
25
25
  if (typeof window > "u" || typeof navigator > "u") return !1;
26
26
  let e = navigator.userAgent, t = /iP(ad|hone|od)/.test(e), n = !!e.match(/Safari/) && !e.match(/CriOS|FxiOS|OPiOS|EdgiOS/);
27
27
  return t && n;
28
- }, D = (e, t) => new Promise(() => setTimeout(e, t)), O = (e) => {
29
- if (e != null) return String(typeof e == "string" ? e === "true" : e);
30
- }, k = (e, t) => {
31
- if (e != null) return typeof e == "string" ? t === e || e === "true" : !!e;
28
+ }, O = (e, t) => new Promise(() => setTimeout(e, t)), k = (e, t) => {
29
+ if (e != null) return String(typeof e == "string" ? e === "" || e === "true" || t?.toLowerCase() === e.toLowerCase() : e);
32
30
  }, A = (e, t) => {
31
+ if (e != null) return typeof e == "string" ? e === "" || e === "true" || t?.toLowerCase() === e.toLowerCase() : !!e;
32
+ }, j = (e, t) => {
33
33
  if (!(e == null && t == null)) return Number(e ?? t);
34
- }, j = (e) => {
34
+ }, M = (e) => {
35
35
  if (e != null) return e === "any" ? "any" : Number(e);
36
- }, M = (e, t) => t && ["number", "range"].includes(t) ? A(e) : e, N = (e) => typeof e == "string" ? e === "true" : e, P = (e) => {
37
- if (e != null) return O(!N(e));
38
- }, F = (e, t) => (t === void 0 || N(t)) && !!e, I = (e) => e.querySelector("input[type=\"search\"]"), L = (e, t) => `${t}${e.id ?? e.value ?? b()}`, R = (e) => e.key !== void 0, z = ({ semantic: e, role: t, ariaLive: n }) => {
36
+ }, N = (e, t) => t && ["number", "range"].includes(t) ? j(e) : e, P = (e) => typeof e == "string" ? e !== "false" : e, F = (e) => {
37
+ if (e != null) return k(!P(e), "show");
38
+ }, I = (e, t) => (t === void 0 || P(t)) && !!e, L = (e) => e.querySelector("input[type=\"search\"]"), R = (e, t) => `${t}${e.id ?? e.value ?? x()}`, z = (e) => e.key !== void 0, B = ({ semantic: e, role: t, ariaLive: n }) => {
39
39
  if (t) return t;
40
40
  if (n) return "article";
41
41
  switch (e) {
@@ -45,11 +45,11 @@ var b = () => {
45
45
  case "successful": return "status";
46
46
  default: return "article";
47
47
  }
48
- }, B = ["id"], V = [
48
+ }, V = ["id"], H = [
49
49
  "aria-disabled",
50
50
  "name",
51
51
  "open"
52
- ], H = /* @__PURE__ */ s({
52
+ ], U = /* @__PURE__ */ s({
53
53
  name: "DBAccordionItem",
54
54
  __name: "accordion-item",
55
55
  props: {
@@ -82,43 +82,43 @@ var b = () => {
82
82
  name: { default: void 0 }
83
83
  },
84
84
  setup(t) {
85
- let o = t, s = f(!1), u = f(void 0), p = f(!1), _ = f(null);
86
- l(() => {
87
- o.defaultOpen && (s.value = o.defaultOpen), p.value = !0;
88
- }), v(() => [_.value, p.value], () => {
89
- _.value && p.value;
85
+ let o = t, s = p(!1), l = p(void 0), d = p(!1), m = p(null);
86
+ u(() => {
87
+ o.defaultOpen && (s.value = o.defaultOpen), d.value = !0;
88
+ }), y(() => [m.value, d.value], () => {
89
+ m.value && d.value;
90
90
  }, {
91
91
  immediate: !0,
92
92
  flush: "post"
93
- }), v(() => [o.name], () => {
94
- o.name && (u.value = o.name);
93
+ }), y(() => [o.name], () => {
94
+ o.name && (l.value = o.name);
95
95
  }, {
96
96
  immediate: !0,
97
97
  flush: "post"
98
- }), v(() => [o.open], () => {
99
- let e = k(o.open, "open");
98
+ }), y(() => [o.open], () => {
99
+ let e = A(o.open, "open");
100
100
  e !== void 0 && (s.value = e);
101
101
  }, {
102
102
  immediate: !0,
103
103
  flush: "post"
104
104
  });
105
- function y(e) {
105
+ function v(e) {
106
106
  e?.preventDefault();
107
107
  let t = !s.value;
108
108
  o.onToggle && o.onToggle(t), o.open === void 0 && (s.value = t);
109
109
  }
110
- return (l, f) => (d(), r("li", {
110
+ return (u, d) => (f(), r("li", {
111
111
  id: t.id ?? t.propOverrides?.id,
112
- class: c(g(S)("db-accordion-item", o.class))
112
+ class: c(_(C)("db-accordion-item", o.class))
113
113
  }, [i("details", {
114
- "aria-disabled": g(O)(t.disabled),
114
+ "aria-disabled": _(k)(t.disabled, "disabled"),
115
115
  ref_key: "_ref",
116
- ref: _,
117
- name: u.value,
116
+ ref: m,
117
+ name: l.value,
118
118
  open: s.value
119
- }, [i("summary", { onClick: f[0] ||= async (e) => y(e) }, [t.headlinePlain ? (d(), r(e, { key: 0 }, [a(h(t.headlinePlain), 1)], 64)) : n("", !0), t.headlinePlain ? n("", !0) : m(l.$slots, "headline", { key: 1 })]), i("div", null, [t.text ? (d(), r(e, { key: 0 }, [a(h(t.text), 1)], 64)) : n("", !0), m(l.$slots, "default")])], 8, V)], 10, B));
119
+ }, [i("summary", { onClick: d[0] ||= async (e) => v(e) }, [t.headlinePlain ? (f(), r(e, { key: 0 }, [a(g(t.headlinePlain), 1)], 64)) : n("", !0), t.headlinePlain ? n("", !0) : h(u.$slots, "headline", { key: 1 })]), i("div", null, [t.text ? (f(), r(e, { key: 0 }, [a(g(t.text), 1)], 64)) : n("", !0), h(u.$slots, "default")])], 8, H)], 10, V));
120
120
  }
121
- }), ee = ["id", "data-variant"], U = /* @__PURE__ */ s({
121
+ }), W = ["id", "data-variant"], ee = /* @__PURE__ */ s({
122
122
  name: "DBAccordion",
123
123
  __name: "accordion",
124
124
  props: {
@@ -136,34 +136,34 @@ var b = () => {
136
136
  propOverrides: { default: void 0 }
137
137
  },
138
138
  setup(i) {
139
- let a = _(), o = i, s = f(""), u = f(!1), h = f(!1), y = f(null);
140
- l(() => {
141
- u.value = !0, h.value = !0;
142
- }), v(() => [
143
- u.value,
139
+ let a = v(), o = i, s = p(""), l = p(!1), d = p(!1), g = p(null);
140
+ u(() => {
141
+ l.value = !0, d.value = !0;
142
+ }), y(() => [
143
+ l.value,
144
144
  o.name,
145
145
  o.behavior
146
146
  ], () => {
147
- u.value && y.value && (o.behavior === "single" ? o.name ? s.value !== o.name && (s.value = o.name) : s.value = `accordion-${a}` : s.value = "");
147
+ l.value && g.value && (o.behavior === "single" ? o.name ? s.value !== o.name && (s.value = o.name) : s.value = `accordion-${a}` : s.value = "");
148
148
  }, {
149
149
  immediate: !0,
150
150
  flush: "post"
151
- }), v(() => [y.value, s.value], () => {
152
- if (y.value) {
153
- let e = y.value.getElementsByTagName("details");
151
+ }), y(() => [g.value, s.value], () => {
152
+ if (g.value) {
153
+ let e = g.value.getElementsByTagName("details");
154
154
  if (e) for (let t of Array.from(e)) s.value === "" ? t.removeAttribute("name") : t.name = s.value ?? "";
155
155
  }
156
156
  }, {
157
157
  immediate: !0,
158
158
  flush: "post"
159
- }), v(() => [
160
- y.value,
161
- h.value,
159
+ }), y(() => [
160
+ g.value,
161
+ d.value,
162
162
  o.initOpenIndex
163
163
  ], () => {
164
- if (y.value && h.value) {
164
+ if (g.value && d.value) {
165
165
  if (o.initOpenIndex && o.initOpenIndex.length > 0) {
166
- let e = y.value.getElementsByTagName("details");
166
+ let e = g.value.getElementsByTagName("details");
167
167
  if (e) {
168
168
  let t = o.behavior === "single" && o.initOpenIndex.length > 1 ? [o.initOpenIndex[0]] : o.initOpenIndex;
169
169
  Array.from(e).forEach((e, n) => {
@@ -171,7 +171,7 @@ var b = () => {
171
171
  });
172
172
  }
173
173
  }
174
- h.value = !1;
174
+ d.value = !1;
175
175
  }
176
176
  }, {
177
177
  immediate: !0,
@@ -185,13 +185,13 @@ var b = () => {
185
185
  }
186
186
  return [];
187
187
  }
188
- return (a, s) => (d(), r("ul", {
188
+ return (a, s) => (f(), r("ul", {
189
189
  ref_key: "_ref",
190
- ref: y,
190
+ ref: g,
191
191
  id: i.id ?? i.propOverrides?.id,
192
- class: c(g(S)("db-accordion", o.class)),
192
+ class: c(_(C)("db-accordion", o.class)),
193
193
  "data-variant": i.variant
194
- }, [i.items ? n("", !0) : m(a.$slots, "default", { key: 0 }), i.items ? (d(!0), r(e, { key: 1 }, p(b(), (e, n) => (d(), t(H, {
194
+ }, [i.items ? n("", !0) : h(a.$slots, "default", { key: 0 }), i.items ? (f(!0), r(e, { key: 1 }, m(b(), (e, n) => (f(), t(U, {
195
195
  key: `accordion-item-${n}`,
196
196
  headlinePlain: e.headlinePlain,
197
197
  disabled: e.disabled,
@@ -200,26 +200,26 @@ var b = () => {
200
200
  "headlinePlain",
201
201
  "disabled",
202
202
  "text"
203
- ]))), 128)) : n("", !0)], 10, ee));
203
+ ]))), 128)) : n("", !0)], 10, W));
204
204
  }
205
- }), te = ["divider", "card"], W = ["multiple", "single"], ne = "OVERWRITE_DEFAULT_ID", re = "LABEL SHOULD BE SET", G = " ", ie = "MESSAGE SHOULD BE SET", ae = "-label", oe = "-select", K = "-message", q = "-valid-message", J = "-invalid-message", se = "-placeholder", ce = "-datalist", le = "TODO: Add a validMessage", Y = "TODO: Add an invalidMessage", ue = "Remove", de = "Back", fe = "Selected", pe = "BurgerMenu", me = "brand", he = 4, ge = "Close", _e = "density", ve = "color", ye = /* @__PURE__ */ function(e) {
205
+ }), G = ["divider", "card"], te = ["multiple", "single"], ne = "OVERWRITE_DEFAULT_ID", K = "LABEL SHOULD BE SET", re = " ", ie = "MESSAGE SHOULD BE SET", ae = "-label", oe = "-select", q = "-message", J = "-valid-message", se = "-invalid-message", ce = "-placeholder", le = "-datalist", Y = "TODO: Add a validMessage", ue = "TODO: Add an invalidMessage", de = "Remove", fe = "Back", pe = "Selected", me = "BurgerMenu", he = "brand", ge = 4, _e = "Close", ve = "density", ye = "color", be = /* @__PURE__ */ function(e) {
206
206
  return e.FUNCTIONAL = "functional", e.REGULAR = "regular", e.EXPRESSIVE = "expressive", e;
207
- }({}), be = Object.entries(ye).map(([, e]) => e), xe = /* @__PURE__ */ function(e) {
207
+ }({}), xe = Object.entries(be).map(([, e]) => e), X = /* @__PURE__ */ function(e) {
208
208
  return e.PRIMARY = "primary", e;
209
- }({}), X = /* @__PURE__ */ function(e) {
209
+ }({}), Z = /* @__PURE__ */ function(e) {
210
210
  return e.NEUTRAL_BG_LEVEL_1 = "neutral-bg-basic-level-1", e.NEUTRAL_BG_LEVEL_2 = "neutral-bg-basic-level-2", e.NEUTRAL_BG_LEVEL_3 = "neutral-bg-basic-level-3", e.NEUTRAL_BG_TRANSPARENT_SEMI = "neutral-bg-basic-transparent-semi", e.NEUTRAL_BG_TRANSPARENT_FULL = "neutral-bg-basic-transparent-full", e.BRAND_BG_LEVEL_1 = "brand-bg-basic-level-1", e.BRAND_BG_LEVEL_2 = "brand-bg-basic-level-2", e.BRAND_BG_LEVEL_3 = "brand-bg-basic-level-3", e.BRAND_BG_TRANSPARENT_SEMI = "brand-bg-basic-transparent-semi", e.BRAND_BG_TRANSPARENT_FULL = "brand-bg-basic-transparent-full", e.SUCCESSFUL_BG_LEVEL_1 = "successful-bg-basic-level-1", e.SUCCESSFUL_BG_LEVEL_2 = "successful-bg-basic-level-2", e.SUCCESSFUL_BG_LEVEL_3 = "successful-bg-basic-level-3", e.SUCCESSFUL_BG_TRANSPARENT_SEMI = "successful-bg-basic-transparent-semi", e.SUCCESSFUL_BG_TRANSPARENT_FULL = "successful-bg-basic-transparent-full", e.CRITICAL_BG_LEVEL_1 = "critical-bg-basic-level-1", e.CRITICAL_BG_LEVEL_2 = "critical-bg-basic-level-2", e.CRITICAL_BG_LEVEL_3 = "critical-bg-basic-level-3", e.CRITICAL_BG_TRANSPARENT_SEMI = "critical-bg-basic-transparent-semi", e.CRITICAL_BG_TRANSPARENT_Full = "critical-bg-basic-transparent-full", e.WARNING_BG_LEVEL_1 = "warning-bg-basic-level-1", e.WARNING_BG_LEVEL_2 = "warning-bg-basic-level-2", e.WARNING_BG_LEVEL_3 = "warning-bg-basic-level-3", e.WARNING_BG_TRANSPARENT_SEMI = "warning-bg-basic-transparent-semi", e.WARNING_BG_TRANSPARENT_FULL = "warning-bg-basic-transparent-full", e.INFORMATIONAL_BG_LEVEL_1 = "informational-bg-basic-level-1", e.INFORMATIONAL_BG_LEVEL_2 = "informational-bg-basic-level-2", e.INFORMATIONAL_BG_LEVEL_3 = "informational-bg-basic-level-3", e.INFORMATIONAL_BG_TRANSPARENT_SEMI = "informational-bg-basic-transparent-semi", e.INFORMATIONAL_BG_TRANSPARENT_FULL = "informational-bg-basic-transparent-full", e;
211
- }({}), Z = Object.entries(X).map(([, e]) => e), Se = Object.entries(xe).map(([, e]) => e), Ce = /* @__PURE__ */ function(e) {
211
+ }({}), Se = Object.entries(Z).map(([, e]) => e), Ce = Object.entries(X).map(([, e]) => e), we = /* @__PURE__ */ function(e) {
212
212
  return e.CRITICAL = "critical", e.INFORMATIONAL = "informational", e.WARNING = "warning", e.SUCCESSFUL = "successful", e;
213
- }({}), we = Object.entries(Ce).map(([, e]) => e), Te = {
213
+ }({}), Te = Object.entries(we).map(([, e]) => e), Ee = {
214
214
  width: 390,
215
215
  height: 884
216
- }, Ee = {
216
+ }, De = {
217
217
  width: 1920,
218
218
  height: 1280
219
- }, De = [
219
+ }, Oe = [
220
220
  {
221
221
  name: "desktop",
222
- ...Ee
222
+ ...De
223
223
  },
224
224
  {
225
225
  name: "tablet",
@@ -228,9 +228,9 @@ var b = () => {
228
228
  },
229
229
  {
230
230
  name: "mobile",
231
- ...Te
231
+ ...Ee
232
232
  }
233
- ], Oe = "db-ux-framework", ke = "db-ux-mode", Ae = [
233
+ ], ke = "db-ux-framework", Ae = "db-ux-mode", je = [
234
234
  "id",
235
235
  "data-semantic",
236
236
  "data-size",
@@ -238,7 +238,7 @@ var b = () => {
238
238
  "data-placement",
239
239
  "data-wrap",
240
240
  "data-label"
241
- ], je = /* @__PURE__ */ s({
241
+ ], Me = /* @__PURE__ */ s({
242
242
  name: "DBBadge",
243
243
  __name: "badge",
244
244
  props: {
@@ -260,10 +260,10 @@ var b = () => {
260
260
  }
261
261
  },
262
262
  setup(t) {
263
- let i = t, o = f(!1), s = f(null);
264
- return l(() => {
263
+ let i = t, o = p(!1), s = p(null);
264
+ return u(() => {
265
265
  o.value = !0;
266
- }), v(() => [s.value, o.value], () => {
266
+ }), y(() => [s.value, o.value], () => {
267
267
  if (s.value && o.value && i.placement?.startsWith("corner")) {
268
268
  let e = s.value.parentElement;
269
269
  e && e.localName.includes("badge") && (e = e.parentElement), e && (e.dataset.hasBadge = "true");
@@ -271,20 +271,20 @@ var b = () => {
271
271
  }, {
272
272
  immediate: !0,
273
273
  flush: "post"
274
- }), (o, l) => (d(), r("span", {
274
+ }), (o, l) => (f(), r("span", {
275
275
  ref_key: "_ref",
276
276
  ref: s,
277
277
  id: t.id ?? t.propOverrides?.id,
278
- class: c(g(S)("db-badge", i.class)),
278
+ class: c(_(C)("db-badge", i.class)),
279
279
  "data-semantic": t.semantic,
280
280
  "data-size": t.size,
281
281
  "data-emphasis": t.emphasis,
282
282
  "data-placement": t.placement,
283
- "data-wrap": g(O)(t.wrap),
284
- "data-label": t.placement?.startsWith("corner") && (t.label ?? g("LABEL SHOULD BE SET"))
285
- }, [t.text ? (d(), r(e, { key: 0 }, [a(h(t.text), 1)], 64)) : n("", !0), m(o.$slots, "default")], 10, Ae));
283
+ "data-wrap": _(k)(t.wrap, "wrap"),
284
+ "data-label": t.placement?.startsWith("corner") && (t.label ?? _("LABEL SHOULD BE SET"))
285
+ }, [t.text ? (f(), r(e, { key: 0 }, [a(g(t.text), 1)], 64)) : n("", !0), h(o.$slots, "default")], 10, je));
286
286
  }
287
- }), Me = [
287
+ }), Ne = [
288
288
  "inline",
289
289
  "corner-top-left",
290
290
  "corner-top-right",
@@ -292,11 +292,11 @@ var b = () => {
292
292
  "corner-center-right",
293
293
  "corner-bottom-left",
294
294
  "corner-bottom-right"
295
- ], Ne = [
295
+ ], Pe = [
296
296
  "data-icon",
297
297
  "data-show-icon",
298
298
  "id"
299
- ], Pe = /* @__PURE__ */ s({
299
+ ], Fe = /* @__PURE__ */ s({
300
300
  name: "DBBrand",
301
301
  __name: "brand",
302
302
  props: {
@@ -318,17 +318,17 @@ var b = () => {
318
318
  text: { default: void 0 }
319
319
  },
320
320
  setup(t) {
321
- let i = t, o = f(null);
322
- return (s, l) => (d(), r("div", {
321
+ let i = t, o = p(null);
322
+ return (s, l) => (f(), r("div", {
323
323
  ref_key: "_ref",
324
324
  ref: o,
325
- "data-icon": t.hideLogo ? "none" : t.icon ?? g("brand"),
326
- "data-show-icon": g(O)(t.showIcon),
325
+ "data-icon": t.hideLogo ? "none" : t.icon ?? _("brand"),
326
+ "data-show-icon": _(k)(t.showIcon, "showIcon"),
327
327
  id: t.id ?? t.propOverrides?.id,
328
- class: c(g(S)("db-brand", i.class))
329
- }, [m(s.$slots, "default"), t.text ? (d(), r(e, { key: 0 }, [a(h(t.text), 1)], 64)) : n("", !0)], 10, Ne));
328
+ class: c(_(C)("db-brand", i.class))
329
+ }, [h(s.$slots, "default"), t.text ? (f(), r(e, { key: 0 }, [a(g(t.text), 1)], 64)) : n("", !0)], 10, Pe));
330
330
  }
331
- }), Fe = [
331
+ }), Ie = [
332
332
  "id",
333
333
  "type",
334
334
  "disabled",
@@ -344,7 +344,7 @@ var b = () => {
344
344
  "name",
345
345
  "form",
346
346
  "value"
347
- ], Ie = /* @__PURE__ */ s({
347
+ ], Le = /* @__PURE__ */ s({
348
348
  name: "DBButton",
349
349
  __name: "button",
350
350
  props: {
@@ -396,50 +396,50 @@ var b = () => {
396
396
  }
397
397
  },
398
398
  setup(t) {
399
- let i = t, o = f(null);
399
+ let i = t, o = p(null);
400
400
  function s() {
401
401
  return i.type ? i.type : i.onClick ? "button" : "submit";
402
402
  }
403
403
  function l(e) {
404
404
  i.onClick && i.onClick(e);
405
405
  }
406
- return (u, f) => (d(), r("button", {
406
+ return (u, d) => (f(), r("button", {
407
407
  ref_key: "_ref",
408
408
  ref: o,
409
409
  id: t.id ?? t.propOverrides?.id,
410
- class: c(g(S)("db-button", i.class)),
410
+ class: c(_(C)("db-button", i.class)),
411
411
  type: s(),
412
- disabled: g(k)(t.disabled, "disabled"),
412
+ disabled: _(A)(t.disabled, "disabled"),
413
413
  "data-icon": t.iconLeading ?? t.icon,
414
- "data-show-icon": g(O)(t.showIconLeading ?? t.showIcon),
414
+ "data-show-icon": _(k)(t.showIconLeading, "showIconLeading") || _(k)(t.showIcon, "showIcon"),
415
415
  "data-icon-trailing": t.iconTrailing,
416
- "data-show-icon-trailing": g(O)(t.showIconTrailing),
416
+ "data-show-icon-trailing": _(k)(t.showIconTrailing, "showIconTrailing"),
417
417
  "data-size": t.size,
418
418
  "data-width": t.width,
419
419
  "data-variant": t.variant,
420
- "data-wrap": g(O)(t.wrap),
421
- "data-no-text": g(O)(t.noText),
420
+ "data-wrap": _(k)(t.wrap, "wrap"),
421
+ "data-no-text": _(k)(t.noText, "noText"),
422
422
  name: t.name,
423
423
  form: t.form,
424
424
  value: t.value,
425
- onClick: f[0] ||= async (e) => l(e)
426
- }, [t.text ? (d(), r(e, { key: 0 }, [a(h(t.text), 1)], 64)) : n("", !0), m(u.$slots, "default")], 10, Fe));
425
+ onClick: d[0] ||= async (e) => l(e)
426
+ }, [t.text ? (f(), r(e, { key: 0 }, [a(g(t.text), 1)], 64)) : n("", !0), h(u.$slots, "default")], 10, Ie));
427
427
  }
428
- }), Le = [
428
+ }), Re = [
429
429
  "outlined",
430
430
  "brand",
431
431
  "filled",
432
432
  "ghost"
433
- ], Re = [
433
+ ], ze = [
434
434
  "button",
435
435
  "reset",
436
436
  "submit"
437
- ], ze = [
437
+ ], Be = [
438
438
  "id",
439
439
  "data-behavior",
440
440
  "data-elevation-level",
441
441
  "data-spacing"
442
- ], Be = /* @__PURE__ */ s({
442
+ ], Ve = /* @__PURE__ */ s({
443
443
  name: "DBCard",
444
444
  __name: "card",
445
445
  props: {
@@ -459,34 +459,34 @@ var b = () => {
459
459
  spacing: { default: void 0 }
460
460
  },
461
461
  setup(e) {
462
- let t = e, n = f(null);
462
+ let t = e, n = p(null);
463
463
  function i(e) {
464
464
  t.onClick && t.onClick(e);
465
465
  }
466
- return (a, o) => (d(), r("div", {
466
+ return (a, o) => (f(), r("div", {
467
467
  ref_key: "_ref",
468
468
  ref: n,
469
469
  id: e.id ?? e.propOverrides?.id,
470
- class: c(g(S)("db-card", t.class)),
470
+ class: c(_(C)("db-card", t.class)),
471
471
  "data-behavior": e.behavior,
472
472
  "data-elevation-level": e.elevationLevel,
473
473
  "data-spacing": e.spacing,
474
474
  onClick: o[0] ||= async (e) => i(e)
475
- }, [m(a.$slots, "default")], 10, ze));
475
+ }, [h(a.$slots, "default")], 10, Be));
476
476
  }
477
- }), Ve = ["static", "interactive"], He = [
477
+ }), He = ["static", "interactive"], Ue = [
478
478
  "1",
479
479
  "2",
480
480
  "3"
481
481
  ], Q = (e, t, n = "value") => {
482
482
  e(`update:${n}`, t.target[n]);
483
- }, Ue = (e, t, n) => {
483
+ }, We = (e, t, n) => {
484
484
  e.form && !e._dbFormResetListenerAdded && (e.form.addEventListener("reset", (e) => {
485
485
  t(e);
486
486
  }, { signal: n }), e._dbFormResetListenerAdded = !0);
487
- }, We = (e, t, n, r) => {
488
- Ue(e, (r) => {
489
- D(() => {
487
+ }, Ge = (e, t, n, r) => {
488
+ We(e, (r) => {
489
+ O(() => {
490
490
  let i = t.checked ? t.checked : t.defaultChecked ? t.defaultChecked : e.checked;
491
491
  n({
492
492
  ...r,
@@ -497,9 +497,9 @@ var b = () => {
497
497
  });
498
498
  }, 1);
499
499
  }, r);
500
- }, Ge = (e, t, n, r) => {
501
- Ue(e, (r) => {
502
- D(() => {
500
+ }, Ke = (e, t, n, r) => {
501
+ We(e, (r) => {
502
+ O(() => {
503
503
  let i = t.value ? t.value : t.defaultValue ? t.defaultValue : e.value;
504
504
  n({
505
505
  ...r,
@@ -510,7 +510,7 @@ var b = () => {
510
510
  });
511
511
  }, 1);
512
512
  }, r);
513
- }, Ke = [
513
+ }, qe = [
514
514
  "id",
515
515
  "data-icon",
516
516
  "data-semantic",
@@ -541,24 +541,24 @@ var b = () => {
541
541
  }
542
542
  },
543
543
  setup(t) {
544
- let i = t, o = f(null);
545
- return (s, l) => (d(), r("span", {
544
+ let i = t, o = p(null);
545
+ return (s, l) => (f(), r("span", {
546
546
  ref_key: "_ref",
547
547
  ref: o,
548
548
  id: t.id ?? t.propOverrides?.id,
549
- class: c(g(S)("db-infotext", i.class)),
549
+ class: c(_(C)("db-infotext", i.class)),
550
550
  "data-icon": t.icon,
551
551
  "data-semantic": t.semantic,
552
552
  "data-size": t.size,
553
- "data-wrap": g(O)(t.wrap),
554
- "data-show-icon-leading": g(O)(t.showIcon ?? !0)
555
- }, [t.text ? (d(), r(e, { key: 0 }, [a(h(t.text), 1)], 64)) : n("", !0), m(s.$slots, "default")], 10, Ke));
553
+ "data-wrap": _(k)(t.wrap, "wrap"),
554
+ "data-show-icon-leading": _(k)(t.showIcon ?? !0, "showIcon")
555
+ }, [t.text ? (f(), r(e, { key: 0 }, [a(g(t.text), 1)], 64)) : n("", !0), h(s.$slots, "default")], 10, qe));
556
556
  }
557
- }), qe = [
557
+ }), Je = [
558
558
  "data-size",
559
559
  "data-hide-asterisk",
560
560
  "data-hide-label"
561
- ], Je = ["for"], Ye = [
561
+ ], Ye = ["for"], Xe = [
562
562
  "aria-invalid",
563
563
  "data-custom-validity",
564
564
  "id",
@@ -568,10 +568,10 @@ var b = () => {
568
568
  "value",
569
569
  "required",
570
570
  "aria-describedby"
571
- ], Xe = {
571
+ ], Ze = {
572
572
  "data-visually-hidden": "true",
573
573
  role: "status"
574
- }, Ze = /* @__PURE__ */ s({
574
+ }, Qe = /* @__PURE__ */ s({
575
575
  name: "DBCheckbox",
576
576
  __name: "checkbox",
577
577
  props: {
@@ -640,53 +640,53 @@ var b = () => {
640
640
  size: { default: void 0 }
641
641
  },
642
642
  emits: ["update:checked"],
643
- setup(s, { emit: p }) {
644
- let b = _(), x = p, C = s, w = f(!1), E = f(void 0), O = f(void 0), A = f(void 0), j = f(void 0), M = f(void 0), N = f(void 0), I = f(""), L = f(void 0), R = f(null);
645
- l(() => {
646
- w.value = !0, U(), M.value = C.invalidMessage || "TODO: Add an invalidMessage";
647
- }), u(() => {
643
+ setup(s, { emit: l }) {
644
+ let m = v(), x = l, S = s, w = p(!1), T = p(void 0), D = p(void 0), k = p(void 0), j = p(void 0), M = p(void 0), N = p(void 0), P = p(""), L = p(void 0), R = p(null);
645
+ u(() => {
646
+ w.value = !0, W(), M.value = S.invalidMessage || "TODO: Add an invalidMessage";
647
+ }), d(() => {
648
648
  L.value?.abort();
649
- }), v(() => [C.id, C.propOverrides?.id], () => {
650
- (C.id ?? C.propOverrides?.id) && U();
649
+ }), y(() => [S.id, S.propOverrides?.id], () => {
650
+ (S.id ?? S.propOverrides?.id) && W();
651
651
  }, {
652
652
  immediate: !0,
653
653
  flush: "post"
654
- }), v(() => [R.value, C.invalidMessage], () => {
655
- M.value = C.invalidMessage || R.value?.validationMessage || "TODO: Add an invalidMessage";
654
+ }), y(() => [R.value, S.invalidMessage], () => {
655
+ M.value = S.invalidMessage || R.value?.validationMessage || "TODO: Add an invalidMessage";
656
656
  }, {
657
657
  immediate: !0,
658
658
  flush: "post"
659
- }), v(() => [E.value], () => {
660
- if (E.value) {
661
- let e = E.value + K;
662
- O.value = e, A.value = E.value + q, j.value = E.value + J, F(C.message, C.showMessage) && (N.value = e), B();
659
+ }), y(() => [T.value], () => {
660
+ if (T.value) {
661
+ let e = T.value + q;
662
+ D.value = e, k.value = T.value + J, j.value = T.value + se, I(S.message, S.showMessage) && (N.value = e), B();
663
663
  }
664
664
  }, {
665
665
  immediate: !0,
666
666
  flush: "post"
667
- }), v(() => [
667
+ }), y(() => [
668
668
  w.value,
669
669
  R.value,
670
- C.indeterminate
670
+ S.indeterminate
671
671
  ], () => {
672
- R.value && C.indeterminate !== void 0 && (R.value.indeterminate = !!k(C.indeterminate));
672
+ R.value && S.indeterminate !== void 0 && (R.value.indeterminate = !!A(S.indeterminate));
673
673
  }, {
674
674
  immediate: !0,
675
675
  flush: "post"
676
- }), v(() => [
676
+ }), y(() => [
677
677
  w.value,
678
678
  R.value,
679
- C.checked
679
+ S.checked
680
680
  ], () => {
681
- w.value && R.value && (C.checked != null && (R.value.checked = !!k(C.checked)), w.value = !1);
681
+ w.value && R.value && (S.checked != null && (R.value.checked = !!A(S.checked)), w.value = !1);
682
682
  }, {
683
683
  immediate: !0,
684
684
  flush: "post"
685
- }), v(() => [R.value], () => {
685
+ }), y(() => [R.value], () => {
686
686
  if (R.value) {
687
687
  let e = L.value;
688
- e || (e = new AbortController(), L.value = e), We(R.value, {
689
- checked: C.checked,
688
+ e || (e = new AbortController(), L.value = e), Ge(R.value, {
689
+ checked: S.checked,
690
690
  defaultChecked: void 0
691
691
  }, (e) => {
692
692
  V(e, !0);
@@ -697,67 +697,67 @@ var b = () => {
697
697
  flush: "post"
698
698
  });
699
699
  function z() {
700
- return !!(C.validMessage ?? C.validation === "valid");
700
+ return !!(S.validMessage ?? S.validation === "valid");
701
701
  }
702
702
  function B() {
703
- !R.value?.validity.valid || C.validation === "invalid" ? (N.value = j.value, M.value = C.invalidMessage || R.value?.validationMessage || "TODO: Add an invalidMessage", T() && (I.value = M.value, D(() => I.value = "", 1e3))) : z() && R.value?.validity.valid && C.required ? (N.value = A.value, T() && (I.value = C.validMessage ?? "TODO: Add a validMessage", D(() => I.value = "", 1e3))) : F(C.message, C.showMessage) ? N.value = O.value : N.value = void 0;
703
+ !R.value?.validity.valid || S.validation === "invalid" ? (N.value = j.value, M.value = S.invalidMessage || R.value?.validationMessage || "TODO: Add an invalidMessage", E() && (P.value = M.value, O(() => P.value = "", 1e3))) : z() && R.value?.validity.valid && S.required ? (N.value = k.value, E() && (P.value = S.validMessage ?? "TODO: Add a validMessage", O(() => P.value = "", 1e3))) : I(S.message, S.showMessage) ? N.value = D.value : N.value = void 0;
704
704
  }
705
705
  function V(e, t) {
706
- C.onChange && C.onChange(e), Q(x, e, "checked"), B();
706
+ S.onChange && S.onChange(e), Q(x, e, "checked"), B();
707
707
  }
708
708
  function H(e) {
709
- C.onBlur && C.onBlur(e);
709
+ S.onBlur && S.onBlur(e);
710
710
  }
711
- function ee(e) {
712
- C.onFocus && C.onFocus(e);
711
+ function U(e) {
712
+ S.onFocus && S.onFocus(e);
713
713
  }
714
- function U() {
715
- let e = C.id ?? C.propOverrides?.id ?? `checkbox-${b}`;
716
- E.value = e, O.value = e + K, A.value = e + q, j.value = e + J;
714
+ function W() {
715
+ let e = S.id ?? S.propOverrides?.id ?? `checkbox-${m}`;
716
+ T.value = e, D.value = e + q, k.value = e + J, j.value = e + se;
717
717
  }
718
- return (l, u) => (d(), r("div", {
719
- class: c(g(S)("db-checkbox", C.class)),
718
+ return (l, u) => (f(), r("div", {
719
+ class: c(_(C)("db-checkbox", S.class)),
720
720
  "data-size": s.size,
721
- "data-hide-asterisk": g(P)(s.showRequiredAsterisk),
722
- "data-hide-label": g(P)(s.showLabel)
721
+ "data-hide-asterisk": _(F)(s.showRequiredAsterisk),
722
+ "data-hide-label": _(F)(s.showLabel)
723
723
  }, [
724
- i("label", { for: E.value }, [
724
+ i("label", { for: T.value }, [
725
725
  i("input", {
726
726
  type: "checkbox",
727
727
  "aria-invalid": s.validation === "invalid",
728
728
  "data-custom-validity": s.validation,
729
729
  ref_key: "_ref",
730
730
  ref: R,
731
- id: E.value,
731
+ id: T.value,
732
732
  name: s.name,
733
- checked: g(k)(s.checked, "checked"),
734
- disabled: g(k)(s.disabled, "disabled"),
733
+ checked: _(A)(s.checked, "checked"),
734
+ disabled: _(A)(s.disabled, "disabled"),
735
735
  value: s.value,
736
- required: g(k)(s.required, "required"),
736
+ required: _(A)(s.required, "required"),
737
737
  onChange: u[0] ||= async (e) => V(e),
738
738
  onBlur: u[1] ||= async (e) => H(e),
739
- onFocus: u[2] ||= async (e) => ee(e),
739
+ onFocus: u[2] ||= async (e) => U(e),
740
740
  "aria-describedby": s.ariaDescribedBy ?? N.value
741
- }, null, 40, Ye),
742
- s.label ? (d(), r(e, { key: 0 }, [a(h(s.label), 1)], 64)) : n("", !0),
743
- m(l.$slots, "default")
744
- ], 8, Je),
745
- g(F)(s.message, s.showMessage) ? (d(), t($, {
741
+ }, null, 40, Xe),
742
+ s.label ? (f(), r(e, { key: 0 }, [a(g(s.label), 1)], 64)) : n("", !0),
743
+ h(l.$slots, "default")
744
+ ], 8, Ye),
745
+ _(I)(s.message, s.showMessage) ? (f(), t($, {
746
746
  key: 0,
747
747
  size: "small",
748
748
  icon: s.messageIcon,
749
- id: O.value
749
+ id: D.value
750
750
  }, {
751
- default: y(() => [a(h(s.message), 1)]),
751
+ default: b(() => [a(g(s.message), 1)]),
752
752
  _: 1
753
753
  }, 8, ["icon", "id"])) : n("", !0),
754
- z() ? (d(), t($, {
754
+ z() ? (f(), t($, {
755
755
  key: 1,
756
756
  size: "small",
757
757
  semantic: "successful",
758
- id: A.value
758
+ id: k.value
759
759
  }, {
760
- default: y(() => [a(h(s.validMessage || g("TODO: Add a validMessage")), 1)]),
760
+ default: b(() => [a(g(s.validMessage || _("TODO: Add a validMessage")), 1)]),
761
761
  _: 1
762
762
  }, 8, ["id"])) : n("", !0),
763
763
  o($, {
@@ -765,13 +765,13 @@ var b = () => {
765
765
  semantic: "critical",
766
766
  id: j.value
767
767
  }, {
768
- default: y(() => [a(h(M.value), 1)]),
768
+ default: b(() => [a(g(M.value), 1)]),
769
769
  _: 1
770
770
  }, 8, ["id"]),
771
- i("span", Xe, h(I.value), 1)
772
- ], 10, qe));
771
+ i("span", Ze, g(P.value), 1)
772
+ ], 10, Je));
773
773
  }
774
- }), Qe = [
774
+ }), $e = [
775
775
  "id",
776
776
  "data-icon",
777
777
  "data-show-icon",
@@ -781,7 +781,7 @@ var b = () => {
781
781
  "data-width",
782
782
  "data-variant",
783
783
  "data-no-text"
784
- ], $e = /* @__PURE__ */ s({
784
+ ], et = /* @__PURE__ */ s({
785
785
  name: "DBCustomButton",
786
786
  __name: "custom-button",
787
787
  props: {
@@ -816,23 +816,23 @@ var b = () => {
816
816
  wrap: { type: [Boolean, String] }
817
817
  },
818
818
  setup(e) {
819
- let t = e, n = f(null);
820
- return (i, a) => (d(), r("div", {
819
+ let t = e, n = p(null);
820
+ return (i, a) => (f(), r("div", {
821
821
  ref_key: "_ref",
822
822
  ref: n,
823
823
  id: e.id ?? e.propOverrides?.id,
824
- class: c(g(S)("db-custom-button", t.class)),
824
+ class: c(_(C)("db-custom-button", t.class)),
825
825
  "data-icon": e.iconLeading ?? e.icon,
826
- "data-show-icon": g(O)(e.showIconLeading ?? e.showIcon),
826
+ "data-show-icon": _(k)(e.showIconLeading, "showIconLeading") || _(k)(e.showIcon, "showIcon"),
827
827
  "data-icon-trailing": e.iconTrailing,
828
- "data-show-icon-trailing": g(O)(e.showIconTrailing),
828
+ "data-show-icon-trailing": _(k)(e.showIconTrailing, "showIconTrailing"),
829
829
  "data-size": e.size,
830
830
  "data-width": e.width,
831
831
  "data-variant": e.variant,
832
- "data-no-text": g(O)(e.noText)
833
- }, [m(i.$slots, "default")], 10, Qe));
832
+ "data-no-text": _(k)(e.noText, "noText")
833
+ }, [h(i.$slots, "default")], 10, $e));
834
834
  }
835
- }), et = class e {
835
+ }), tt = class e {
836
836
  static callbacks = {};
837
837
  static _instance = null;
838
838
  static runCallbacks(t) {
@@ -843,13 +843,13 @@ var b = () => {
843
843
  e._instance = this, self.document && self.document.addEventListener("click", (t) => e.runCallbacks(t));
844
844
  }
845
845
  addCallback(t) {
846
- let n = b();
846
+ let n = x();
847
847
  return e.callbacks[n] = t, n;
848
848
  }
849
849
  removeCallback(t) {
850
850
  delete e.callbacks[t];
851
851
  }
852
- }, tt = class e {
852
+ }, nt = class e {
853
853
  static callbacks = {};
854
854
  static _instance = null;
855
855
  static runCallbacks(t) {
@@ -865,13 +865,13 @@ var b = () => {
865
865
  }, !0);
866
866
  }
867
867
  addCallback(t) {
868
- let n = b();
868
+ let n = x();
869
869
  return e.callbacks[n] = t, n;
870
870
  }
871
871
  removeCallback(t) {
872
872
  delete e.callbacks[t];
873
873
  }
874
- }, nt = (e) => {
874
+ }, rt = (e) => {
875
875
  let { top: t, bottom: n, left: r, right: i } = e.getBoundingClientRect(), { innerHeight: a, innerWidth: o } = window, s = t < 0, c = n > a, l = r < 0, u = i > o, d = e.dataset.outsideVy, f = e.dataset.outsideVx, p = e?.parentElement?.getBoundingClientRect();
876
876
  return p && (d && (e.dataset.outsideVy === "top" ? s = p.top - (n - p.bottom) < 0 : c = p.bottom + (p.top - t) > a), f && (e.dataset.outsideVx === "left" ? l = p.left - (i - p.right) < 0 : u = p.right + (p.left - r) > o)), {
877
877
  outTop: s,
@@ -879,17 +879,17 @@ var b = () => {
879
879
  outLeft: l,
880
880
  outRight: u
881
881
  };
882
- }, rt = (e) => {
883
- let { outTop: t, outBottom: n, outLeft: r, outRight: i } = nt(e), a = {};
882
+ }, it = (e) => {
883
+ let { outTop: t, outBottom: n, outLeft: r, outRight: i } = rt(e), a = {};
884
884
  return t || n ? (a = { vy: t ? "top" : "bottom" }, e.dataset.outsideVy = a.vy) : delete e.dataset.outsideVy, r || i ? (a = {
885
885
  ...a,
886
886
  vx: i ? "right" : "left"
887
887
  }, e.dataset.outsideVx = a.vx) : delete e.dataset.outsideVx, a;
888
- }, it = (e, t, n) => {
888
+ }, at = (e, t, n) => {
889
889
  if (!e || !t || getComputedStyle(e).zIndex === "9999") return;
890
- let { top: r, bottom: i, childHeight: a, childWidth: o, width: s, right: c, left: l, correctedPlacement: u } = at(e, t, n);
890
+ let { top: r, bottom: i, childHeight: a, childWidth: o, width: s, right: c, left: l, correctedPlacement: u } = ot(e, t, n);
891
891
  e.dataset.width === "full" && (e.style.inlineSize = `${s}px`), u === "top" || u === "bottom" || u === "top-start" || u === "bottom-start" ? e.style.insetInlineStart = `${l}px` : (u === "top-end" || u === "bottom-end") && (e.style.insetInlineStart = `${c - o}px`), u?.startsWith("top") ? e.style.insetBlockStart = `${r - a}px` : u?.startsWith("bottom") && (e.style.insetBlockStart = `${i}px`), e.style.position = "fixed";
892
- }, at = (e, t, n) => {
892
+ }, ot = (e, t, n) => {
893
893
  if (!e || !t) return {
894
894
  top: 0,
895
895
  bottom: 0,
@@ -919,17 +919,17 @@ var b = () => {
919
919
  innerWidth: d,
920
920
  innerHeight: u
921
921
  };
922
- }, ot = 10, st = /* @__PURE__ */ new WeakMap(), ct = (e) => {
923
- if (st.has(e)) return st.get(e);
922
+ }, st = 10, ct = /* @__PURE__ */ new WeakMap(), lt = (e) => {
923
+ if (ct.has(e)) return ct.get(e);
924
924
  let t = e.parentElement, n = 0;
925
- for (; t && n < ot;) {
926
- if (t.dataset.correctedPlacement) return st.set(e, t), t;
925
+ for (; t && n < st;) {
926
+ if (t.dataset.correctedPlacement) return ct.set(e, t), t;
927
927
  t = t.parentElement, n += 1;
928
928
  }
929
- return st.set(e, null), null;
930
- }, lt = (e, t, n) => {
929
+ return ct.set(e, null), null;
930
+ }, ut = (e, t, n) => {
931
931
  if (!e || !t) return;
932
- let r = getComputedStyle(t), i = ["absolute", "fixed"].includes(r.position), a = ct(e), o = !a && !i, s = getComputedStyle(e)?.getPropertyValue("--db-popover-distance") ?? "0px", { top: c, height: l, width: u, childHeight: d, childWidth: f, right: p, left: m, bottom: h, correctedPlacement: g, innerWidth: _, innerHeight: v } = at(e, t, n);
932
+ let r = getComputedStyle(t), i = ["absolute", "fixed"].includes(r.position), a = lt(e), o = !a && !i, s = getComputedStyle(e)?.getPropertyValue("--db-popover-distance") ?? "0px", { top: c, height: l, width: u, childHeight: d, childWidth: f, right: p, left: m, bottom: h, correctedPlacement: g, innerWidth: _, innerHeight: v } = ot(e, t, n);
933
933
  if (a) {
934
934
  let e = a.getBoundingClientRect();
935
935
  m = Math.abs(m - e.left), p = (u + Math.abs(p - e.right)) * 1.5, c = Math.abs(c - e.top), h = (l + Math.abs(h - e.bottom)) * 1.5;
@@ -975,7 +975,7 @@ var b = () => {
975
975
  e.style.insetBlockStart = `calc(${i ? t : h}px + ${s})`, e.style.insetBlockEnd = `calc(${o && t > v ? v : t}px + ${s})`;
976
976
  }
977
977
  e.style.position = "fixed", e.dataset.correctedPlacement = g;
978
- }, ut = ["id", "data-width"], dt = /* @__PURE__ */ s({
978
+ }, dt = ["id", "data-width"], ft = /* @__PURE__ */ s({
979
979
  name: "DBCustomSelectDropdown",
980
980
  __name: "custom-select-dropdown",
981
981
  props: {
@@ -988,28 +988,28 @@ var b = () => {
988
988
  propOverrides: { default: void 0 }
989
989
  },
990
990
  setup(e) {
991
- let t = e, n = f(null);
992
- return (i, a) => (d(), r("article", {
991
+ let t = e, n = p(null);
992
+ return (i, a) => (f(), r("article", {
993
993
  "data-spacing": "none",
994
994
  ref_key: "_ref",
995
995
  ref: n,
996
996
  id: e.id ?? e.propOverrides?.id,
997
- class: c(g(S)("db-custom-select-dropdown db-card", t.class)),
997
+ class: c(_(C)("db-custom-select-dropdown db-card", t.class)),
998
998
  "data-width": e.width
999
- }, [m(i.$slots, "default")], 10, ut));
999
+ }, [h(i.$slots, "default")], 10, dt));
1000
1000
  }
1001
- }), ft = ["id", "data-divider"], pt = [
1001
+ }), pt = ["id", "data-divider"], mt = [
1002
1002
  "data-icon",
1003
1003
  "data-show-icon",
1004
1004
  "data-icon-trailing"
1005
- ], mt = [
1005
+ ], ht = [
1006
1006
  "type",
1007
1007
  "name",
1008
1008
  "form",
1009
1009
  "checked",
1010
1010
  "disabled",
1011
1011
  "value"
1012
- ], ht = { key: 1 }, gt = /* @__PURE__ */ s({
1012
+ ], gt = { key: 1 }, _t = /* @__PURE__ */ s({
1013
1013
  name: "DBCustomSelectListItem",
1014
1014
  __name: "custom-select-list-item",
1015
1015
  props: {
@@ -1053,33 +1053,33 @@ var b = () => {
1053
1053
  },
1054
1054
  emits: ["update:checked"],
1055
1055
  setup(t, { emit: o }) {
1056
- let s = o, l = t, u = f(!1), p = f(null);
1057
- v(() => [l.isGroupTitle, l.showDivider], () => {
1056
+ let s = o, l = t, u = p(!1), d = p(null);
1057
+ y(() => [l.isGroupTitle, l.showDivider], () => {
1058
1058
  u.value = !!(l.isGroupTitle || l.showDivider);
1059
1059
  }, {
1060
1060
  immediate: !0,
1061
1061
  flush: "post"
1062
1062
  });
1063
- function _(e) {
1063
+ function m(e) {
1064
1064
  e.stopPropagation(), l.onChange && l.onChange(e), Q(s, e, "checked");
1065
1065
  }
1066
- function y() {
1067
- if (!(l.isGroupTitle || l.type === "checkbox")) return k(l.checked, "checked") ? "check" : "x_placeholder";
1066
+ function v() {
1067
+ if (!(l.isGroupTitle || l.type === "checkbox")) return A(l.checked, "checked") ? "check" : "x_placeholder";
1068
1068
  }
1069
- return (o, s) => (d(), r("li", {
1069
+ return (o, s) => (f(), r("li", {
1070
1070
  ref_key: "_ref",
1071
- ref: p,
1071
+ ref: d,
1072
1072
  id: t.id ?? t.propOverrides?.id,
1073
- class: c(g(S)("db-custom-select-list-item", l.class, {
1073
+ class: c(_(C)("db-custom-select-list-item", l.class, {
1074
1074
  "db-checkbox": t.type === "checkbox" && !t.isGroupTitle,
1075
1075
  "db-radio": t.type !== "checkbox" && !t.isGroupTitle
1076
1076
  })),
1077
- "data-divider": g(O)(u.value)
1078
- }, [t.isGroupTitle ? (d(), r("span", ht, h(t.groupTitle), 1)) : (d(), r("label", {
1077
+ "data-divider": _(k)(u.value, "hasDivider")
1078
+ }, [t.isGroupTitle ? (f(), r("span", gt, g(t.groupTitle), 1)) : (f(), r("label", {
1079
1079
  key: 0,
1080
1080
  "data-icon": t.type !== "checkbox" && t.icon ? t.icon : void 0,
1081
- "data-show-icon": g(O)(t.showIcon),
1082
- "data-icon-trailing": y()
1081
+ "data-show-icon": _(k)(t.showIcon, "showIcon"),
1082
+ "data-icon-trailing": v()
1083
1083
  }, [
1084
1084
  i("input", {
1085
1085
  class: "db-custom-select-list-item-checkbox",
@@ -1087,20 +1087,20 @@ var b = () => {
1087
1087
  type: t.type,
1088
1088
  name: t.name,
1089
1089
  form: t.name,
1090
- checked: g(k)(t.checked, "checked"),
1091
- disabled: g(k)(t.disabled, "disabled"),
1090
+ checked: _(A)(t.checked, "checked"),
1091
+ disabled: _(A)(t.disabled, "disabled"),
1092
1092
  value: t.value,
1093
- onChange: s[0] ||= async (e) => _(e)
1094
- }, null, 40, mt),
1095
- t.label ? (d(), r(e, { key: 0 }, [a(h(t.label), 1)], 64)) : n("", !0),
1096
- m(o.$slots, "default")
1097
- ], 8, pt))], 10, ft));
1093
+ onChange: s[0] ||= async (e) => m(e)
1094
+ }, null, 40, ht),
1095
+ t.label ? (f(), r(e, { key: 0 }, [a(g(t.label), 1)], 64)) : n("", !0),
1096
+ h(o.$slots, "default")
1097
+ ], 8, mt))], 10, pt));
1098
1098
  }
1099
- }), _t = [
1099
+ }), vt = [
1100
1100
  "role",
1101
1101
  "aria-label",
1102
1102
  "id"
1103
- ], vt = /* @__PURE__ */ s({
1103
+ ], yt = /* @__PURE__ */ s({
1104
1104
  name: "DBCustomSelectList",
1105
1105
  __name: "custom-select-list",
1106
1106
  props: {
@@ -1117,17 +1117,17 @@ var b = () => {
1117
1117
  propOverrides: { default: void 0 }
1118
1118
  },
1119
1119
  setup(e) {
1120
- let t = e, n = f(null);
1121
- return (a, o) => (d(), r("div", {
1120
+ let t = e, n = p(null);
1121
+ return (a, o) => (f(), r("div", {
1122
1122
  role: e.multiple ? "group" : "radiogroup",
1123
1123
  "aria-label": e.label,
1124
1124
  ref_key: "_ref",
1125
1125
  ref: n,
1126
1126
  id: e.id ?? e.propOverrides?.id,
1127
- class: c(g(S)("db-custom-select-list", t.class))
1128
- }, [i("ul", null, [m(a.$slots, "default")])], 10, _t));
1127
+ class: c(_(C)("db-custom-select-list", t.class))
1128
+ }, [i("ul", null, [h(a.$slots, "default")])], 10, vt));
1129
1129
  }
1130
- }), yt = [
1130
+ }), bt = [
1131
1131
  "data-variant",
1132
1132
  "data-hide-label",
1133
1133
  "data-show-icon",
@@ -1135,10 +1135,10 @@ var b = () => {
1135
1135
  "data-icon-trailing",
1136
1136
  "data-hide-asterisk",
1137
1137
  "data-show-icon-trailing"
1138
- ], bt = ["for"], xt = /* @__PURE__ */ "aria-invalid.data-custom-validity.data-field-sizing.id.name.type.multiple.accept.placeholder.disabled.required.step.value.maxLength.minLength.max.min.readOnly.form.pattern.size.autoComplete.autoFocus.enterKeyHint.inputMode.list.aria-describedby.role".split("."), St = ["id"], Ct = ["value"], wt = {
1138
+ ], xt = ["for"], St = /* @__PURE__ */ "aria-invalid.data-custom-validity.data-field-sizing.id.name.type.multiple.accept.placeholder.disabled.required.step.value.maxLength.minLength.max.min.readOnly.form.pattern.size.autoComplete.autoFocus.enterKeyHint.inputMode.list.aria-describedby.role".split("."), Ct = ["id"], wt = ["value"], Tt = {
1139
1139
  "data-visually-hidden": "true",
1140
1140
  role: "status"
1141
- }, Tt = /* @__PURE__ */ s({
1141
+ }, Et = /* @__PURE__ */ s({
1142
1142
  name: "DBInput",
1143
1143
  __name: "input",
1144
1144
  props: {
@@ -1255,121 +1255,121 @@ var b = () => {
1255
1255
  size: { default: void 0 }
1256
1256
  },
1257
1257
  emits: ["update:value"],
1258
- setup(s, { emit: b }) {
1259
- let x = _(), w = b, N = s, I = f(void 0), L = f(void 0), R = f(void 0), z = f(void 0), B = f(void 0), V = f(void 0), H = f(void 0), ee = f(""), U = f(""), te = f(void 0), W = f(null);
1260
- l(() => {
1261
- le(), B.value = N.invalidMessage || "TODO: Add an invalidMessage";
1262
- }), u(() => {
1263
- te.value?.abort();
1264
- }), v(() => [N.id, N.propOverrides?.id], () => {
1265
- (N.id ?? N.propOverrides?.id) && le();
1258
+ setup(s, { emit: l }) {
1259
+ let x = v(), S = l, T = s, P = p(void 0), L = p(void 0), R = p(void 0), z = p(void 0), B = p(void 0), V = p(void 0), H = p(void 0), U = p(""), W = p(""), ee = p(void 0), G = p(null);
1260
+ u(() => {
1261
+ ce(), B.value = T.invalidMessage || "TODO: Add an invalidMessage";
1262
+ }), d(() => {
1263
+ ee.value?.abort();
1264
+ }), y(() => [T.id, T.propOverrides?.id], () => {
1265
+ (T.id ?? T.propOverrides?.id) && ce();
1266
1266
  }, {
1267
1267
  immediate: !0,
1268
1268
  flush: "post"
1269
- }), v(() => [W.value, N.invalidMessage], () => {
1270
- B.value = N.invalidMessage || W.value?.validationMessage || "TODO: Add an invalidMessage";
1269
+ }), y(() => [G.value, T.invalidMessage], () => {
1270
+ B.value = T.invalidMessage || G.value?.validationMessage || "TODO: Add an invalidMessage";
1271
1271
  }, {
1272
1272
  immediate: !0,
1273
1273
  flush: "post"
1274
- }), v(() => [I.value], () => {
1275
- if (I.value) {
1276
- let e = I.value + K;
1277
- L.value = e, R.value = I.value + q, z.value = I.value + J, V.value = N.dataListId ?? I.value + "-datalist", F(N.message, N.showMessage) && (H.value = e), re();
1274
+ }), y(() => [P.value], () => {
1275
+ if (P.value) {
1276
+ let e = P.value + q;
1277
+ L.value = e, R.value = P.value + J, z.value = P.value + se, V.value = T.dataListId ?? P.value + "-datalist", I(T.message, T.showMessage) && (H.value = e), ne();
1278
1278
  }
1279
1279
  }, {
1280
1280
  immediate: !0,
1281
1281
  flush: "post"
1282
- }), v(() => [N.value], () => {
1283
- ee.value = N.value;
1282
+ }), y(() => [T.value], () => {
1283
+ U.value = T.value;
1284
1284
  }, {
1285
1285
  immediate: !0,
1286
1286
  flush: "post"
1287
- }), v(() => [W.value], () => {
1288
- if (W.value) {
1289
- let e = te.value;
1290
- e || (e = new AbortController(), te.value = e), Ge(W.value, {
1291
- value: N.value,
1287
+ }), y(() => [G.value], () => {
1288
+ if (G.value) {
1289
+ let e = ee.value;
1290
+ e || (e = new AbortController(), ee.value = e), Ke(G.value, {
1291
+ value: T.value,
1292
1292
  defaultValue: void 0
1293
1293
  }, (e) => {
1294
- ie(e, !0), G(e, !0);
1294
+ re(e, !0), K(e, !0);
1295
1295
  }, e.signal);
1296
1296
  }
1297
1297
  }, {
1298
1298
  immediate: !0,
1299
1299
  flush: "post"
1300
1300
  });
1301
+ function te() {
1302
+ return !!(T.validMessage ?? T.validation === "valid");
1303
+ }
1301
1304
  function ne() {
1302
- return !!(N.validMessage ?? N.validation === "valid");
1305
+ !G.value?.validity.valid || T.validation === "invalid" ? (H.value = z.value, B.value = T.invalidMessage || G.value?.validationMessage || "TODO: Add an invalidMessage", E() && (W.value = B.value, O(() => W.value = "", 1e3))) : te() && G.value?.validity.valid && (T.required || T.minLength || T.maxLength || T.pattern) ? (H.value = R.value, E() && (W.value = T.validMessage ?? "TODO: Add a validMessage", O(() => W.value = "", 1e3))) : I(T.message, T.showMessage) ? H.value = L.value : H.value = void 0;
1303
1306
  }
1304
- function re() {
1305
- !W.value?.validity.valid || N.validation === "invalid" ? (H.value = z.value, B.value = N.invalidMessage || W.value?.validationMessage || "TODO: Add an invalidMessage", T() && (U.value = B.value, D(() => U.value = "", 1e3))) : ne() && W.value?.validity.valid && (N.required || N.minLength || N.maxLength || N.pattern) ? (H.value = R.value, T() && (U.value = N.validMessage ?? "TODO: Add a validMessage", D(() => U.value = "", 1e3))) : F(N.message, N.showMessage) ? H.value = L.value : H.value = void 0;
1307
+ function K(e, t) {
1308
+ T.input && T.input(e), U.value = e.target.value, T.onInput && T.onInput(e), Q(S, e), ne();
1306
1309
  }
1307
- function G(e, t) {
1308
- N.input && N.input(e), ee.value = e.target.value, N.onInput && N.onInput(e), Q(w, e), re();
1310
+ function re(e, t) {
1311
+ T.onChange && T.onChange(e), Q(S, e), ne();
1309
1312
  }
1310
- function ie(e, t) {
1311
- N.onChange && N.onChange(e), Q(w, e), re();
1313
+ function ie(e) {
1314
+ T.onBlur && T.onBlur(e);
1312
1315
  }
1313
1316
  function ae(e) {
1314
- N.onBlur && N.onBlur(e);
1315
- }
1316
- function oe(e) {
1317
- N.onFocus && N.onFocus(e);
1317
+ T.onFocus && T.onFocus(e);
1318
1318
  }
1319
- function se() {
1320
- let e = N.dataList;
1321
- return Array.from((C(e) ? e?.map((e) => ({
1319
+ function oe() {
1320
+ let e = T.dataList;
1321
+ return Array.from((w(e) ? e?.map((e) => ({
1322
1322
  value: e,
1323
1323
  label: void 0
1324
1324
  })) : e) || []);
1325
1325
  }
1326
- function le() {
1327
- let e = N.id ?? N.propOverrides?.id ?? `input-${x}`;
1328
- I.value = e, L.value = e + K, R.value = e + q, z.value = e + J, V.value = e + ce;
1326
+ function ce() {
1327
+ let e = T.id ?? T.propOverrides?.id ?? `input-${x}`;
1328
+ P.value = e, L.value = e + q, R.value = e + J, z.value = e + se, V.value = e + le;
1329
1329
  }
1330
- return (l, u) => (d(), r("div", {
1331
- class: c(g(S)("db-input", N.class)),
1330
+ return (l, u) => (f(), r("div", {
1331
+ class: c(_(C)("db-input", T.class)),
1332
1332
  "data-variant": s.variant,
1333
- "data-hide-label": g(P)(s.showLabel),
1334
- "data-show-icon": g(O)(s.showIconLeading ?? s.showIcon),
1333
+ "data-hide-label": _(F)(s.showLabel),
1334
+ "data-show-icon": _(k)(s.showIconLeading, "showIconLeading") || _(k)(s.showIcon, "showIcon"),
1335
1335
  "data-icon": s.iconLeading ?? s.icon,
1336
1336
  "data-icon-trailing": s.iconTrailing,
1337
- "data-hide-asterisk": g(P)(s.showRequiredAsterisk),
1338
- "data-show-icon-trailing": g(O)(s.showIconTrailing)
1337
+ "data-hide-asterisk": _(F)(s.showRequiredAsterisk),
1338
+ "data-show-icon-trailing": _(k)(s.showIconTrailing, "showIconTrailing")
1339
1339
  }, [
1340
- i("label", { for: I.value }, h(s.label ?? g("LABEL SHOULD BE SET")), 9, bt),
1340
+ i("label", { for: P.value }, g(s.label ?? _("LABEL SHOULD BE SET")), 9, xt),
1341
1341
  i("input", {
1342
1342
  "aria-invalid": s.validation === "invalid",
1343
1343
  "data-custom-validity": s.validation,
1344
1344
  "data-field-sizing": s.fieldSizing,
1345
1345
  ref_key: "_ref",
1346
- ref: W,
1347
- id: I.value,
1346
+ ref: G,
1347
+ id: P.value,
1348
1348
  name: s.name,
1349
1349
  type: s.type || "text",
1350
- multiple: g(k)(s.multiple, "multiple"),
1350
+ multiple: _(A)(s.multiple, "multiple"),
1351
1351
  accept: s.accept,
1352
- placeholder: s.placeholder ?? g(" "),
1353
- disabled: g(k)(s.disabled, "disabled"),
1354
- required: g(k)(s.required, "required"),
1355
- step: g(j)(s.step),
1356
- value: s.value ?? ee.value ?? "",
1357
- maxLength: g(A)(s.maxLength, s.maxlength),
1358
- minLength: g(A)(s.minLength, s.minlength),
1359
- max: g(M)(s.max, s.type),
1360
- min: g(M)(s.min, s.type),
1361
- readOnly: g(k)(s.readOnly, "readOnly") || g(k)(s.readonly, "readonly"),
1352
+ placeholder: s.placeholder ?? _(" "),
1353
+ disabled: _(A)(s.disabled, "disabled"),
1354
+ required: _(A)(s.required, "required"),
1355
+ step: _(M)(s.step),
1356
+ value: s.value ?? U.value ?? "",
1357
+ maxLength: _(j)(s.maxLength, s.maxlength),
1358
+ minLength: _(j)(s.minLength, s.minlength),
1359
+ max: _(N)(s.max, s.type),
1360
+ min: _(N)(s.min, s.type),
1361
+ readOnly: _(A)(s.readOnly, "readOnly") || _(A)(s.readonly, "readonly"),
1362
1362
  form: s.form,
1363
1363
  pattern: s.pattern,
1364
1364
  size: s.size,
1365
1365
  autoComplete: s.autocomplete,
1366
- autoFocus: g(k)(s.autofocus, "autofocus"),
1366
+ autoFocus: _(A)(s.autofocus, "autofocus"),
1367
1367
  enterKeyHint: s.enterkeyhint,
1368
1368
  inputMode: s.inputmode,
1369
- onInput: u[0] ||= async (e) => G(e),
1370
- onChange: u[1] ||= async (e) => ie(e),
1371
- onBlur: u[2] ||= async (e) => ae(e),
1372
- onFocus: u[3] ||= async (e) => oe(e),
1369
+ onInput: u[0] ||= async (e) => K(e),
1370
+ onChange: u[1] ||= async (e) => re(e),
1371
+ onBlur: u[2] ||= async (e) => ie(e),
1372
+ onFocus: u[3] ||= async (e) => ae(e),
1373
1373
  list: s.dataList && V.value,
1374
1374
  "aria-describedby": s.ariaDescribedBy ?? H.value,
1375
1375
  role: [
@@ -1379,36 +1379,36 @@ var b = () => {
1379
1379
  "week",
1380
1380
  "month",
1381
1381
  "color"
1382
- ].includes(s.type ?? "") && g(E)() ? "textbox" : void 0
1383
- }, null, 40, xt),
1384
- s.dataList ? (d(), r("datalist", {
1382
+ ].includes(s.type ?? "") && _(D)() ? "textbox" : void 0
1383
+ }, null, 40, St),
1384
+ s.dataList ? (f(), r("datalist", {
1385
1385
  key: 0,
1386
1386
  id: V.value
1387
- }, [(d(!0), r(e, null, p(se(), (e) => (d(), r("option", {
1387
+ }, [(f(!0), r(e, null, m(oe(), (e) => (f(), r("option", {
1388
1388
  key: V.value + "-option-" + e.value,
1389
1389
  value: e.value
1390
- }, h(e.label), 9, Ct))), 128))], 8, St)) : n("", !0),
1391
- m(l.$slots, "default"),
1392
- g(F)(s.message, s.showMessage) ? (d(), t($, {
1390
+ }, g(e.label), 9, wt))), 128))], 8, Ct)) : n("", !0),
1391
+ h(l.$slots, "default"),
1392
+ _(I)(s.message, s.showMessage) ? (f(), t($, {
1393
1393
  key: 1,
1394
1394
  size: s.messageSize || "small",
1395
1395
  icon: s.messageIcon,
1396
1396
  id: L.value
1397
1397
  }, {
1398
- default: y(() => [a(h(s.message), 1)]),
1398
+ default: b(() => [a(g(s.message), 1)]),
1399
1399
  _: 1
1400
1400
  }, 8, [
1401
1401
  "size",
1402
1402
  "icon",
1403
1403
  "id"
1404
1404
  ])) : n("", !0),
1405
- ne() ? (d(), t($, {
1405
+ te() ? (f(), t($, {
1406
1406
  key: 2,
1407
1407
  semantic: "successful",
1408
1408
  id: R.value,
1409
1409
  size: s.validMessageSize || "small"
1410
1410
  }, {
1411
- default: y(() => [a(h(s.validMessage || g("TODO: Add a validMessage")), 1)]),
1411
+ default: b(() => [a(g(s.validMessage || _("TODO: Add a validMessage")), 1)]),
1412
1412
  _: 1
1413
1413
  }, 8, ["id", "size"])) : n("", !0),
1414
1414
  o($, {
@@ -1416,13 +1416,13 @@ var b = () => {
1416
1416
  id: z.value,
1417
1417
  size: s.invalidMessageSize || "small"
1418
1418
  }, {
1419
- default: y(() => [a(h(B.value), 1)]),
1419
+ default: b(() => [a(g(B.value), 1)]),
1420
1420
  _: 1
1421
1421
  }, 8, ["id", "size"]),
1422
- i("span", wt, h(U.value), 1)
1423
- ], 10, yt));
1422
+ i("span", Tt, g(W.value), 1)
1423
+ ], 10, bt));
1424
1424
  }
1425
- }), Et = [
1425
+ }), Dt = [
1426
1426
  "id",
1427
1427
  "data-emphasis",
1428
1428
  "data-wrap",
@@ -1431,7 +1431,7 @@ var b = () => {
1431
1431
  "data-width",
1432
1432
  "data-show-arrow",
1433
1433
  "data-placement"
1434
- ], Dt = /* @__PURE__ */ s({
1434
+ ], Ot = /* @__PURE__ */ s({
1435
1435
  name: "DBTooltip",
1436
1436
  __name: "tooltip",
1437
1437
  props: {
@@ -1461,29 +1461,29 @@ var b = () => {
1461
1461
  text: { default: void 0 }
1462
1462
  },
1463
1463
  setup(t) {
1464
- let i = _(), o = t, s = f(ne), u = f(!1), p = f(void 0), y = f(void 0), b = f(null);
1465
- l(() => {
1466
- j(), u.value = !0;
1467
- }), v(() => [o.id, o.propOverrides?.id], () => {
1464
+ let i = v(), o = t, s = p(ne), l = p(!1), d = p(void 0), m = p(void 0), b = p(null);
1465
+ u(() => {
1466
+ j(), l.value = !0;
1467
+ }), y(() => [o.id, o.propOverrides?.id], () => {
1468
1468
  (o.id ?? o.propOverrides?.id) && j();
1469
1469
  }, {
1470
1470
  immediate: !0,
1471
1471
  flush: "post"
1472
- }), v(() => [
1472
+ }), y(() => [
1473
1473
  b.value,
1474
- u.value,
1474
+ l.value,
1475
1475
  s.value
1476
1476
  ], () => {
1477
- if (b.value && u.value && s.value) {
1477
+ if (b.value && l.value && s.value) {
1478
1478
  let e = w();
1479
1479
  e && (T(e), ["mouseenter", "focusin"].forEach((t) => {
1480
1480
  e.addEventListener(t, () => A(e));
1481
- }), e.addEventListener("keydown", (e) => C(e)), ["mouseleave", "focusout"].forEach((t) => {
1482
- e.addEventListener(t, () => k());
1483
- }), e.dataset.hasTooltip = "true", o.variant === "label" ? e.setAttribute("aria-labelledby", s.value) : e.setAttribute("aria-describedby", s.value)), typeof window < "u" && "IntersectionObserver" in window && (y.value = new IntersectionObserver((e) => {
1481
+ }), e.addEventListener("keydown", (e) => S(e)), ["mouseleave", "focusout"].forEach((t) => {
1482
+ e.addEventListener(t, () => D());
1483
+ }), e.dataset.hasTooltip = "true", o.variant === "label" ? e.setAttribute("aria-labelledby", s.value) : e.setAttribute("aria-describedby", s.value)), typeof window < "u" && "IntersectionObserver" in window && (m.value = new IntersectionObserver((e) => {
1484
1484
  let t = e.find(({ target: e }) => e === w());
1485
- t && !t.isIntersecting && C(!1);
1486
- })), u.value = !1;
1485
+ t && !t.isIntersecting && S(!1);
1486
+ })), l.value = !1;
1487
1487
  }
1488
1488
  }, {
1489
1489
  immediate: !0,
@@ -1492,7 +1492,7 @@ var b = () => {
1492
1492
  function x(e) {
1493
1493
  e.stopPropagation();
1494
1494
  }
1495
- function C(e) {
1495
+ function S(e) {
1496
1496
  (!e || e.key === "Escape") && b.value && getComputedStyle(b.value).visibility === "visible" && w().blur();
1497
1497
  }
1498
1498
  function w() {
@@ -1500,41 +1500,41 @@ var b = () => {
1500
1500
  return e && e.localName.includes("tooltip") && (e = e.parentElement), e;
1501
1501
  }
1502
1502
  function T(e) {
1503
- e && b.value && D(() => {
1504
- b.value && lt(b.value, e, o.placement ?? "bottom");
1503
+ e && b.value && O(() => {
1504
+ b.value && ut(b.value, e, o.placement ?? "bottom");
1505
1505
  }, 1);
1506
1506
  }
1507
1507
  function E(e, t) {
1508
1508
  e?.target?.contains && e?.target?.contains(b.value) && T(t);
1509
1509
  }
1510
- function k() {
1511
- p.value && new tt().removeCallback(p.value), y.value?.unobserve(w());
1510
+ function D() {
1511
+ d.value && new nt().removeCallback(d.value), m.value?.unobserve(w());
1512
1512
  }
1513
1513
  function A(e) {
1514
- p.value = new tt().addCallback((t) => E(t, e)), T(e), y.value?.observe(w());
1514
+ d.value = new nt().addCallback((t) => E(t, e)), T(e), m.value?.observe(w());
1515
1515
  }
1516
1516
  function j() {
1517
1517
  s.value = o.id ?? o.propOverrides?.id ?? "tooltip-" + i;
1518
1518
  }
1519
- return (i, l) => (d(), r("i", {
1519
+ return (i, l) => (f(), r("i", {
1520
1520
  role: "tooltip",
1521
1521
  "aria-hidden": "true",
1522
1522
  "data-gap": "true",
1523
1523
  ref_key: "_ref",
1524
1524
  ref: b,
1525
- class: c(g(S)("db-tooltip", o.class)),
1525
+ class: c(_(C)("db-tooltip", o.class)),
1526
1526
  id: s.value,
1527
1527
  "data-emphasis": t.emphasis,
1528
- "data-wrap": g(O)(t.wrap),
1529
- "data-animation": g(O)(t.animation ?? !0),
1528
+ "data-wrap": _(k)(t.wrap, "wrap"),
1529
+ "data-animation": _(k)(t.animation ?? !0, "animation"),
1530
1530
  "data-delay": t.delay,
1531
1531
  "data-width": t.width,
1532
- "data-show-arrow": g(O)(t.showArrow ?? !0),
1532
+ "data-show-arrow": _(k)(t.showArrow ?? !0, "showArrow"),
1533
1533
  "data-placement": t.placement,
1534
1534
  onClick: l[0] ||= async (e) => x(e)
1535
- }, [t.text ? (d(), r(e, { key: 0 }, [a(h(t.text), 1)], 64)) : n("", !0), m(i.$slots, "default")], 10, Et));
1535
+ }, [t.text ? (f(), r(e, { key: 0 }, [a(g(t.text), 1)], 64)) : n("", !0), h(i.$slots, "default")], 10, Dt));
1536
1536
  }
1537
- }), Ot = [
1537
+ }), kt = [
1538
1538
  "id",
1539
1539
  "data-semantic",
1540
1540
  "data-emphasis",
@@ -1543,7 +1543,7 @@ var b = () => {
1543
1543
  "data-show-icon",
1544
1544
  "data-no-text",
1545
1545
  "data-overflow"
1546
- ], kt = /* @__PURE__ */ s({
1546
+ ], At = /* @__PURE__ */ s({
1547
1547
  name: "DBTag",
1548
1548
  __name: "tag",
1549
1549
  props: {
@@ -1584,30 +1584,30 @@ var b = () => {
1584
1584
  }
1585
1585
  },
1586
1586
  setup(t) {
1587
- let i = t, s = f(null);
1587
+ let i = t, s = p(null);
1588
1588
  function l(e) {
1589
1589
  e && (e.stopPropagation(), i.onRemove && i.onRemove(e));
1590
1590
  }
1591
1591
  function u() {
1592
- return i.removeButton ? i.removeButton : ue;
1592
+ return i.removeButton ? i.removeButton : de;
1593
1593
  }
1594
- return (f, p) => (d(), r("div", {
1594
+ return (d, p) => (f(), r("div", {
1595
1595
  ref_key: "_ref",
1596
1596
  ref: s,
1597
1597
  id: t.id ?? t.propOverrides?.id,
1598
- class: c(g(S)("db-tag", i.class)),
1598
+ class: c(_(C)("db-tag", i.class)),
1599
1599
  "data-semantic": t.semantic,
1600
1600
  "data-emphasis": t.emphasis,
1601
1601
  "data-icon": t.icon,
1602
- "data-show-check-state": g(O)(t.showCheckState ?? !0),
1603
- "data-show-icon": g(O)(t.showIcon),
1604
- "data-no-text": g(O)(t.noText),
1605
- "data-overflow": g(O)(t.overflow)
1602
+ "data-show-check-state": _(k)(t.showCheckState ?? !0, "showCheckState"),
1603
+ "data-show-icon": _(k)(t.showIcon, "showIcon"),
1604
+ "data-no-text": _(k)(t.noText, "noText"),
1605
+ "data-overflow": _(k)(t.overflow, "overflow")
1606
1606
  }, [
1607
- m(f.$slots, "content"),
1608
- t.text ? (d(), r(e, { key: 0 }, [a(h(t.text), 1)], 64)) : n("", !0),
1609
- m(f.$slots, "default"),
1610
- t.behavior === "removable" ? (d(), r("button", {
1607
+ h(d.$slots, "content"),
1608
+ t.text ? (f(), r(e, { key: 0 }, [a(g(t.text), 1)], 64)) : n("", !0),
1609
+ h(d.$slots, "default"),
1610
+ t.behavior === "removable" ? (f(), r("button", {
1611
1611
  key: 1,
1612
1612
  class: "db-button db-tab-remove-button",
1613
1613
  "data-icon": "cross",
@@ -1616,13 +1616,13 @@ var b = () => {
1616
1616
  "data-variant": "ghost",
1617
1617
  type: "button",
1618
1618
  onClick: p[0] ||= async (e) => l(e)
1619
- }, [o(Dt, { variant: "label" }, {
1620
- default: y(() => [a(h(u()), 1)]),
1619
+ }, [o(Ot, { variant: "label" }, {
1620
+ default: b(() => [a(g(u()), 1)]),
1621
1621
  _: 1
1622
1622
  })])) : n("", !0)
1623
- ], 10, Ot));
1623
+ ], 10, kt));
1624
1624
  }
1625
- }), At = [
1625
+ }), jt = [
1626
1626
  "id",
1627
1627
  "aria-invalid",
1628
1628
  "data-custom-validity",
@@ -1635,7 +1635,7 @@ var b = () => {
1635
1635
  "data-hide-label",
1636
1636
  "data-icon",
1637
1637
  "data-show-icon"
1638
- ], jt = ["id"], Mt = [
1638
+ ], Mt = ["id"], Nt = [
1639
1639
  "id",
1640
1640
  "form",
1641
1641
  "name",
@@ -1643,18 +1643,18 @@ var b = () => {
1643
1643
  "multiple",
1644
1644
  "disabled",
1645
1645
  "required"
1646
- ], Nt = ["disabled", "value"], Pt = ["open"], Ft = [
1646
+ ], Pt = ["disabled", "value"], Ft = ["open"], It = [
1647
1647
  "id",
1648
1648
  "aria-disabled",
1649
1649
  "tabIndex",
1650
1650
  "aria-labelledby"
1651
- ], It = ["data-visually-hidden", "id"], Lt = {
1651
+ ], Lt = ["data-visually-hidden", "id"], Rt = {
1652
1652
  key: 0,
1653
1653
  "data-visually-hidden": "true"
1654
- }, Rt = { key: 1 }, zt = { key: 0 }, Bt = { key: 0 }, Vt = { class: "db-checkbox db-custom-select-list-item" }, Ht = ["form", "checked"], Ut = ["aria-hidden", "id"], Wt = {
1654
+ }, zt = { key: 1 }, Bt = { key: 0 }, Vt = { key: 0 }, Ht = { class: "db-checkbox db-custom-select-list-item" }, Ut = ["form", "checked"], Wt = ["id"], Gt = {
1655
1655
  "data-visually-hidden": "true",
1656
1656
  role: "status"
1657
- }, Gt = /* @__PURE__ */ s({
1657
+ }, Kt = /* @__PURE__ */ s({
1658
1658
  name: "DBCustomSelect",
1659
1659
  __name: "custom-select",
1660
1660
  props: {
@@ -1778,105 +1778,105 @@ var b = () => {
1778
1778
  }
1779
1779
  },
1780
1780
  emits: ["update:values"],
1781
- setup(s, { emit: b }) {
1782
- let x = _(), C = b, w = s, E = f(void 0), A = f(void 0), j = f(void 0), M = f(void 0), N = f(void 0), L = f(void 0), R = f(void 0), z = f(void 0), B = f(void 0), V = f(void 0), H = f("no-validation"), ee = f(!1), U = f(void 0), te = f(void 0), W = f(""), ne = f(void 0), re = f(""), G = f([]), ie = f(!1), ce = f(!1), le = f(0), Y = f([]), de = f([]), pe = f(!1), me = f(void 0), he = f(0), ge = f(void 0), _e = f(void 0), ve = f(void 0), ye = f(!1), be = f(!1), xe = f(null), X = f(null), Z = f(null), Se = f(null), Ce = f(null);
1783
- l(() => {
1781
+ setup(s, { emit: l }) {
1782
+ let x = v(), S = l, w = s, T = p(void 0), D = p(void 0), j = p(void 0), M = p(void 0), N = p(void 0), P = p(void 0), R = p(void 0), z = p(void 0), B = p(void 0), V = p(void 0), H = p("no-validation"), U = p(!1), W = p(void 0), ee = p(void 0), G = p(""), te = p(void 0), ne = p(""), K = p([]), re = p(!1), ie = p(!1), le = p(0), Y = p([]), ue = p([]), fe = p(!1), me = p(void 0), he = p(0), ge = p(void 0), _e = p(void 0), ve = p(void 0), ye = p(!1), be = p(!1), xe = p(null), X = p(null), Z = p(null), Se = p(null), Ce = p(null);
1783
+ u(() => {
1784
1784
  Xe(), N.value = w.invalidMessage || "TODO: Add an invalidMessage", typeof window < "u" && "IntersectionObserver" in window && (_e.value = new IntersectionObserver((e) => {
1785
1785
  if (X.value) {
1786
1786
  let t = e.find(({ target: e }) => e === X.value);
1787
1787
  t && !t.isIntersecting && X.value.open && (X.value.open = !1);
1788
1788
  }
1789
1789
  }));
1790
- }), u(() => {
1791
- U.value?.abort();
1792
- }), v(() => [w.id, w.propOverrides?.id], () => {
1790
+ }), d(() => {
1791
+ W.value?.abort();
1792
+ }), y(() => [w.id, w.propOverrides?.id], () => {
1793
1793
  (w.id ?? w.propOverrides?.id) && Xe();
1794
1794
  }, {
1795
1795
  immediate: !0,
1796
1796
  flush: "post"
1797
- }), v(() => [X.value], () => {
1797
+ }), y(() => [X.value], () => {
1798
1798
  X.value && X.value.addEventListener("focusout", (e) => ze(e));
1799
1799
  }, {
1800
1800
  immediate: !0,
1801
1801
  flush: "post"
1802
- }), v(() => [E.value], () => {
1803
- if (E.value) {
1804
- let e = E.value + K;
1805
- R.value = E.value + ae, L.value = E.value + oe, j.value = E.value + q, M.value = E.value + J, B.value = E.value + se, F(w.message, w.showMessage) ? ke(e) : ke();
1802
+ }), y(() => [T.value], () => {
1803
+ if (T.value) {
1804
+ let e = T.value + q;
1805
+ R.value = T.value + ae, P.value = T.value + oe, j.value = T.value + J, M.value = T.value + se, B.value = T.value + ce, I(w.message, w.showMessage) ? ke(e) : ke();
1806
1806
  }
1807
1807
  }, {
1808
1808
  immediate: !0,
1809
1809
  flush: "post"
1810
- }), v(() => [X.value, te.value], () => {
1810
+ }), y(() => [X.value, ee.value], () => {
1811
1811
  if (X.value) {
1812
1812
  let e = X.value.querySelector("summary");
1813
- e && e.setAttribute("aria-describedby", w.ariaDescribedBy ?? (te.value || ""));
1813
+ e && e.setAttribute("aria-describedby", w.ariaDescribedBy ?? (ee.value || ""));
1814
1814
  }
1815
1815
  }, {
1816
1816
  immediate: !0,
1817
1817
  flush: "post"
1818
- }), v(() => [
1818
+ }), y(() => [
1819
1819
  w.showNoResults,
1820
1820
  w.showLoading,
1821
- de.value
1821
+ ue.value
1822
1822
  ], () => {
1823
- w.showNoResults === void 0 ? de.value && (pe.value = de.value.length === 0) : pe.value = w.showNoResults;
1823
+ w.showNoResults === void 0 ? ue.value && (fe.value = ue.value.length === 0) : fe.value = w.showNoResults;
1824
1824
  }, {
1825
1825
  immediate: !0,
1826
1826
  flush: "post"
1827
- }), v(() => [
1827
+ }), y(() => [
1828
1828
  w.showSelectAll,
1829
1829
  le.value,
1830
1830
  w.multiple
1831
1831
  ], () => {
1832
- ie.value = !!(w.multiple && (w.showSelectAll ?? le.value > 5));
1832
+ re.value = !!(w.multiple && (w.showSelectAll ?? le.value > 5));
1833
1833
  }, {
1834
1834
  immediate: !0,
1835
1835
  flush: "post"
1836
- }), v(() => [w.showSearch, le.value], () => {
1837
- ce.value = w.showSearch ?? le.value > 9;
1836
+ }), y(() => [w.showSearch, le.value], () => {
1837
+ ie.value = w.showSearch ?? le.value > 9;
1838
1838
  }, {
1839
1839
  immediate: !0,
1840
1840
  flush: "post"
1841
- }), v(() => [w.values], () => {
1841
+ }), y(() => [w.values], () => {
1842
1842
  let e = w.values;
1843
1843
  Array.isArray(e) ? Y.value !== e && (Y.value = e) : e == null && Y.value?.length !== 0 && (Y.value = []);
1844
1844
  }, {
1845
1845
  immediate: !0,
1846
1846
  flush: "post"
1847
- }), v(() => [Y.value, Z.value], () => {
1847
+ }), y(() => [Y.value, Z.value], () => {
1848
1848
  Z.value && Ee();
1849
1849
  }, {
1850
1850
  immediate: !0,
1851
1851
  flush: "post"
1852
- }), v(() => [Z.value], () => {
1852
+ }), y(() => [Z.value], () => {
1853
1853
  if (Z.value) {
1854
- let e = U.value;
1855
- e || (e = new AbortController(), U.value = e);
1854
+ let e = W.value;
1855
+ e || (e = new AbortController(), W.value = e);
1856
1856
  let t = w.values;
1857
- Ue(Z.value, () => {
1857
+ We(Z.value, () => {
1858
1858
  Ve(t || (Z.value.value ? [Z.value.value] : [])), Ee();
1859
1859
  }, e.signal);
1860
1860
  }
1861
1861
  }, {
1862
1862
  immediate: !0,
1863
1863
  flush: "post"
1864
- }), v(() => [w.validation], () => {
1864
+ }), y(() => [w.validation], () => {
1865
1865
  H.value = w.validation;
1866
1866
  }, {
1867
1867
  immediate: !0,
1868
1868
  flush: "post"
1869
- }), v(() => [Y.value, le.value], () => {
1869
+ }), y(() => [Y.value, le.value], () => {
1870
1870
  Y.value?.length === 0 ? (ye.value = !1, be.value = !1) : Y.value?.length === le.value ? (be.value = !1, ye.value = !0) : Y.value && (be.value = !0);
1871
1871
  }, {
1872
1872
  immediate: !0,
1873
1873
  flush: "post"
1874
- }), v(() => [w.options], () => {
1875
- de.value = w.options, le.value = w.options?.filter((e) => !e.isGroupTitle).length ?? 0;
1874
+ }), y(() => [w.options], () => {
1875
+ ue.value = w.options, le.value = w.options?.filter((e) => !e.isGroupTitle).length ?? 0;
1876
1876
  }, {
1877
1877
  immediate: !0,
1878
1878
  flush: "post"
1879
- }), v(() => [w.searchValue], () => {
1879
+ }), y(() => [w.searchValue], () => {
1880
1880
  if (ve.value = w.searchValue, w.searchValue) {
1881
1881
  let e = w.searchValue;
1882
1882
  qe(e);
@@ -1884,44 +1884,44 @@ var b = () => {
1884
1884
  }, {
1885
1885
  immediate: !0,
1886
1886
  flush: "post"
1887
- }), v(() => [w.options, Y.value], () => {
1888
- w.options?.length && (G.value = w.options?.filter((e) => !e.value || !Y.value?.includes ? !1 : !e.isGroupTitle && Y.value?.includes(e.value)));
1887
+ }), y(() => [w.options, Y.value], () => {
1888
+ w.options?.length && (K.value = w.options?.filter((e) => !e.value || !Y.value?.includes ? !1 : !e.isGroupTitle && Y.value?.includes(e.value)));
1889
1889
  }, {
1890
1890
  immediate: !0,
1891
1891
  flush: "post"
1892
- }), v(() => [
1893
- G.value,
1892
+ }), y(() => [
1893
+ K.value,
1894
1894
  w.selectedType,
1895
1895
  w.amountText,
1896
1896
  w.selectedLabels,
1897
1897
  w.transformSelectedLabels
1898
1898
  ], () => {
1899
1899
  if (w.selectedLabels) {
1900
- W.value = w.selectedLabels;
1900
+ G.value = w.selectedLabels;
1901
1901
  return;
1902
1902
  }
1903
- if (G.value?.length) {
1903
+ if (K.value?.length) {
1904
1904
  if (w.transformSelectedLabels) {
1905
- let e = G.value, t = w.transformSelectedLabels;
1906
- W.value = t(e);
1905
+ let e = K.value, t = w.transformSelectedLabels;
1906
+ G.value = t(e);
1907
1907
  return;
1908
1908
  }
1909
- w.selectedType === "amount" ? W.value = w.amountText ? w.amountText : `${G.value?.length} ${fe}` : W.value = G.value?.map((e) => je(e)).join(", ");
1910
- } else W.value = "";
1909
+ w.selectedType === "amount" ? G.value = w.amountText ? w.amountText : `${K.value?.length} ${pe}` : G.value = K.value?.map((e) => je(e)).join(", ");
1910
+ } else G.value = "";
1911
1911
  }, {
1912
1912
  immediate: !0,
1913
1913
  flush: "post"
1914
- }), v(() => [G.value], () => {
1915
- w.onAmountChange && w.onAmountChange(G.value?.length ?? 0);
1914
+ }), y(() => [K.value], () => {
1915
+ w.onAmountChange && w.onAmountChange(K.value?.length ?? 0);
1916
1916
  }, {
1917
1917
  immediate: !0,
1918
1918
  flush: "post"
1919
- }), v(() => [be.value, Se.value], () => {
1919
+ }), y(() => [be.value, Se.value], () => {
1920
1920
  Se.value && (Se.value.indeterminate = !!be.value);
1921
1921
  }, {
1922
1922
  immediate: !0,
1923
1923
  flush: "post"
1924
- }), v(() => [Z.value, w.invalidMessage], () => {
1924
+ }), y(() => [Z.value, w.invalidMessage], () => {
1925
1925
  N.value = w.invalidMessage || Z.value?.validationMessage || "TODO: Add an invalidMessage";
1926
1926
  }, {
1927
1927
  immediate: !0,
@@ -1934,17 +1934,17 @@ var b = () => {
1934
1934
  return !!(w.validMessage ?? w.validation === "valid");
1935
1935
  }
1936
1936
  function Ee() {
1937
- Z.value && (Z.value.value = Oe()), !Z.value?.validity.valid || w.validation === "invalid" ? (ke(M.value), N.value = w.invalidMessage || Z.value?.validationMessage || "TODO: Add an invalidMessage", T() && (re.value = N.value, D(() => re.value = "", 1e3)), ee.value && (H.value = w.validation ?? "invalid")) : Te() && Z.value?.validity.valid && w.required ? (ke(j.value), T() && (re.value = w.validMessage ?? "TODO: Add a validMessage", D(() => re.value = "", 1e3)), H.value = w.validation ?? "valid") : F(w.message, w.showMessage) ? (ke(A.value), H.value = w.validation ?? "no-validation") : (ke(B.value), H.value = w.validation ?? "no-validation");
1937
+ Z.value && (Z.value.value = Oe()), !Z.value?.validity.valid || w.validation === "invalid" ? (ke(M.value), N.value = w.invalidMessage || Z.value?.validationMessage || "TODO: Add an invalidMessage", E() && (ne.value = N.value, O(() => ne.value = "", 1e3)), U.value && (H.value = w.validation ?? "invalid")) : Te() && Z.value?.validity.valid && w.required ? (ke(j.value), E() && (ne.value = w.validMessage ?? "TODO: Add a validMessage", O(() => ne.value = "", 1e3)), H.value = w.validation ?? "valid") : I(w.message, w.showMessage) ? (ke(D.value), H.value = w.validation ?? "no-validation") : (ke(B.value), H.value = w.validation ?? "no-validation");
1938
1938
  }
1939
1939
  function De(e) {
1940
- w.onDropdownToggle && (e.stopPropagation(), w.onDropdownToggle(e)), e.target instanceof HTMLDetailsElement && e.target.open ? (me.value = new et().addCallback((e) => Be(e)), ge.value = new tt().addCallback((e) => we(e)), Fe(), _e.value?.observe(X.value), e.target.dataset.test || Ke()) : (me.value && new et().removeCallback(me.value), ge.value && new tt().removeCallback(ge.value), _e.value?.unobserve(X.value));
1940
+ w.onDropdownToggle && (e.stopPropagation(), w.onDropdownToggle(e)), e.target instanceof HTMLDetailsElement && e.target.open ? (me.value = new tt().addCallback((e) => Be(e)), ge.value = new nt().addCallback((e) => we(e)), Fe(), _e.value?.observe(X.value), e.target.dataset.test || Ke()) : (me.value && new tt().removeCallback(me.value), ge.value && new nt().removeCallback(ge.value), _e.value?.unobserve(X.value));
1941
1941
  }
1942
1942
  function Oe() {
1943
1943
  return Y.value?.length ? Y.value.at(0) ?? "" : "";
1944
1944
  }
1945
1945
  function ke(e) {
1946
1946
  let t = [];
1947
- e && t.push(e), ne.value && W.value?.length && t.push(ne.value), te.value = t.join(" ");
1947
+ e && t.push(e), te.value && G.value?.length && t.push(te.value), ee.value = t.join(" ");
1948
1948
  }
1949
1949
  function Ae() {
1950
1950
  return w.selectAllLabel ?? "LABEL SHOULD BE SET";
@@ -1961,7 +1961,7 @@ var b = () => {
1961
1961
  let r = n.findIndex((t) => t.value === e.value);
1962
1962
  if (r >= 0 && r < t.length) return t[r];
1963
1963
  }
1964
- return `${ue} ${je(e)}`;
1964
+ return `${de} ${je(e)}`;
1965
1965
  }
1966
1966
  function Pe(e, t) {
1967
1967
  t && t.stopPropagation(), He(e.value), Ye();
@@ -1969,12 +1969,12 @@ var b = () => {
1969
1969
  function Fe() {
1970
1970
  if (X.value) {
1971
1971
  let e = X.value.querySelector("article");
1972
- e && D(() => {
1973
- it(e, X.value, w.placement ?? "bottom");
1972
+ e && O(() => {
1973
+ at(e, X.value, w.placement ?? "bottom");
1974
1974
  }, 1);
1975
1975
  }
1976
1976
  }
1977
- function Le(e) {
1977
+ function Ie(e) {
1978
1978
  if (X.value?.open) {
1979
1979
  if (self.document) {
1980
1980
  let t = self.document.activeElement;
@@ -2005,8 +2005,8 @@ var b = () => {
2005
2005
  let e = X.value.querySelector("input[type=\"checkbox\"]");
2006
2006
  if (e && e !== t) Ge(t);
2007
2007
  else {
2008
- let e = I(X.value);
2009
- if (e) D(() => {
2008
+ let e = L(X.value);
2009
+ if (e) O(() => {
2010
2010
  e.focus();
2011
2011
  }, 100);
2012
2012
  else {
@@ -2028,18 +2028,18 @@ var b = () => {
2028
2028
  let t = self.document.activeElement;
2029
2029
  if (["checkbox", "radio"].includes(t.getAttribute("type") || "")) t.click(), e.preventDefault();
2030
2030
  else if (t.getAttribute("type") === "search") {
2031
- let t = de.value?.find((e) => !e.isGroupTitle && !e.disabled);
2031
+ let t = ue.value?.find((e) => !e.isGroupTitle && !e.disabled);
2032
2032
  t?.value && (He(t.value), e.preventDefault());
2033
2033
  }
2034
2034
  }
2035
- } else (e.key === "ArrowDown" || e.key === "ArrowUp" || e.key === "ArrowLeft" || e.key === "ArrowRight") && Le(e);
2035
+ } else (e.key === "ArrowDown" || e.key === "ArrowUp" || e.key === "ArrowLeft" || e.key === "ArrowRight") && Ie(e);
2036
2036
  }
2037
2037
  function ze(e, t) {
2038
2038
  if (X.value) {
2039
2039
  if (t) X.value.open = !1, Ye();
2040
2040
  else if (X.value.open && e && e.relatedTarget) {
2041
2041
  let t = e.relatedTarget;
2042
- !X.value.contains(t) && t.localName !== "dialog" && D(() => X.value.open = !1, 1);
2042
+ !X.value.contains(t) && t.localName !== "dialog" && O(() => X.value.open = !1, 1);
2043
2043
  }
2044
2044
  }
2045
2045
  }
@@ -2050,15 +2050,15 @@ var b = () => {
2050
2050
  }
2051
2051
  }
2052
2052
  function Ve(e) {
2053
- (/* @__PURE__ */ new Date()).getTime() - he.value < 200 || (Y.value = e, ee.value = !0, w.onOptionSelected && w.onOptionSelected(e ?? []), Q(C, { target: { values: e } }, "values"), he.value = (/* @__PURE__ */ new Date()).getTime());
2053
+ (/* @__PURE__ */ new Date()).getTime() - he.value < 200 || (Y.value = e, U.value = !0, w.onOptionSelected && w.onOptionSelected(e ?? []), Q(S, { target: { values: e } }, "values"), he.value = (/* @__PURE__ */ new Date()).getTime());
2054
2054
  }
2055
2055
  function He(e) {
2056
2056
  e && (w.multiple ? Y.value?.includes(e) ? Ve(Y.value.filter((t) => t !== e)) : Ve([...Y.value || [], e]) : (Ve([e]), ze(void 0, !0)));
2057
2057
  }
2058
- function We(e) {
2058
+ function Ue(e) {
2059
2059
  if (e.stopPropagation(), Y.value?.length === le.value) Ve([]);
2060
2060
  else {
2061
- let e = ce.value && Ce.value ? Ce.value.value : void 0;
2061
+ let e = ie.value && Ce.value ? Ce.value.value : void 0;
2062
2062
  Ve(w.options ? w.options.filter((t) => !t.isGroupTitle && (!e || t.value?.toLowerCase().includes(e.toLowerCase()))).map((e) => e.value ?? "") : []);
2063
2063
  }
2064
2064
  }
@@ -2067,7 +2067,7 @@ var b = () => {
2067
2067
  let t = Array.from(X.value.querySelectorAll("input[type=\"checkbox\"],input[type=\"radio\"]"));
2068
2068
  if (t.length) {
2069
2069
  let n = t.at(0), r = n === e && t.length > 1 ? t.at(1) : n;
2070
- r && D(() => {
2070
+ r && O(() => {
2071
2071
  r.focus();
2072
2072
  }, 1);
2073
2073
  }
@@ -2075,8 +2075,8 @@ var b = () => {
2075
2075
  }
2076
2076
  function Ke() {
2077
2077
  if (X.value) {
2078
- let e = I(X.value);
2079
- e ? D(() => {
2078
+ let e = L(X.value);
2079
+ e ? O(() => {
2080
2080
  e.focus();
2081
2081
  }, 1) : Ge();
2082
2082
  }
@@ -2089,7 +2089,7 @@ var b = () => {
2089
2089
  let n = e;
2090
2090
  n.stopPropagation(), w.onSearch && w.onSearch(n), t = n.target.value, ve.value = t;
2091
2091
  }
2092
- !w.options || !t || t.length === 0 ? de.value = w.options : w.searchFilter ? de.value = w.options.filter((e) => w.searchFilter(e, t)) : de.value = w.options.filter((e) => !e.isGroupTitle && je(e).toLowerCase().includes(t.toLowerCase()));
2092
+ !w.options || !t || t.length === 0 ? ue.value = w.options : w.searchFilter ? ue.value = w.options.filter((e) => w.searchFilter(e, t)) : ue.value = w.options.filter((e) => !e.isGroupTitle && je(e).toLowerCase().includes(t.toLowerCase()));
2093
2093
  }
2094
2094
  function Je(e) {
2095
2095
  e.stopPropagation(), Ve([]), Ye();
@@ -2099,85 +2099,85 @@ var b = () => {
2099
2099
  }
2100
2100
  function Xe() {
2101
2101
  let e = w.id ?? w.propOverrides?.id ?? `custom-select-${x}`;
2102
- E.value = e, A.value = e + K, j.value = e + q, M.value = e + J, L.value = e + oe, R.value = e + ae, z.value = e + "-summary", B.value = e + se, ne.value = e + "-selected-labels", V.value = e + "-info";
2102
+ T.value = e, D.value = e + q, j.value = e + J, M.value = e + se, P.value = e + oe, R.value = e + ae, z.value = e + "-summary", B.value = e + ce, te.value = e + "-selected-labels", V.value = e + "-info";
2103
2103
  }
2104
2104
  function Ze(e) {
2105
2105
  e.stopPropagation();
2106
2106
  }
2107
- return (l, u) => (d(), r("div", {
2108
- id: E.value,
2107
+ return (l, u) => (f(), r("div", {
2108
+ id: T.value,
2109
2109
  ref_key: "_ref",
2110
2110
  ref: xe,
2111
- class: c(g(S)("db-custom-select", w.class)),
2111
+ class: c(_(C)("db-custom-select", w.class)),
2112
2112
  "aria-invalid": H.value === "invalid",
2113
2113
  "data-custom-validity": H.value,
2114
2114
  "data-width": s.formFieldWidth,
2115
2115
  "data-variant": s.variant === "floating" && s.selectedType === "tag" && s.multiple ? "above" : s.variant,
2116
- "data-required": g(O)(s.required),
2117
- "data-hide-asterisk": g(P)(s.showRequiredAsterisk),
2116
+ "data-required": _(k)(s.required, "required"),
2117
+ "data-hide-asterisk": _(F)(s.showRequiredAsterisk),
2118
2118
  "data-placement": s.placement,
2119
2119
  "data-selected-type": s.multiple ? s.selectedType : "text",
2120
- "data-hide-label": g(P)(s.showLabel),
2120
+ "data-hide-label": _(F)(s.showLabel),
2121
2121
  "data-icon": s.icon,
2122
- "data-show-icon": g(O)(s.showIcon)
2122
+ "data-show-icon": _(k)(s.showIcon, "showIcon")
2123
2123
  }, [
2124
- i("label", { id: R.value }, [a(h(s.label ?? g("LABEL SHOULD BE SET")), 1), i("select", {
2124
+ i("label", { id: R.value }, [a(g(s.label ?? _("LABEL SHOULD BE SET")), 1), i("select", {
2125
2125
  role: "none",
2126
2126
  hidden: !0,
2127
- id: L.value,
2127
+ id: P.value,
2128
2128
  tabIndex: -1,
2129
2129
  ref_key: "selectRef",
2130
2130
  ref: Z,
2131
2131
  form: s.form,
2132
2132
  name: s.name,
2133
2133
  "data-custom-validity": H.value,
2134
- multiple: g(k)(s.multiple, "multiple"),
2135
- disabled: g(k)(s.disabled, "disabled"),
2136
- required: g(k)(s.required, "required"),
2134
+ multiple: _(A)(s.multiple, "multiple"),
2135
+ disabled: _(A)(s.disabled, "disabled"),
2136
+ required: _(A)(s.required, "required"),
2137
2137
  onChange: u[0] ||= async (e) => Ze(e)
2138
- }, [s.options?.length ? (d(!0), r(e, { key: 0 }, p(s.options, (e, t) => (d(), r("option", {
2138
+ }, [s.options?.length ? (f(!0), r(e, { key: 0 }, m(s.options, (e, t) => (f(), r("option", {
2139
2139
  key: t,
2140
2140
  disabled: e.disabled,
2141
2141
  value: e.value
2142
- }, h(je(e)), 9, Nt))), 128)) : n("", !0)], 40, Mt)], 8, jt),
2142
+ }, g(je(e)), 9, Pt))), 128)) : n("", !0)], 40, Nt)], 8, Mt),
2143
2143
  i("details", {
2144
2144
  ref_key: "detailsRef",
2145
2145
  ref: X,
2146
2146
  open: s.open,
2147
2147
  onToggle: u[2] ||= async (e) => De(e),
2148
2148
  onKeydown: u[3] ||= async (e) => Re(e)
2149
- }, [m(l.$slots, "default"), s.options ? (d(), r(e, { key: 0 }, [i("summary", {
2149
+ }, [h(l.$slots, "default"), s.options ? (f(), r(e, { key: 0 }, [i("summary", {
2150
2150
  class: "db-custom-select-form-field",
2151
2151
  id: z.value,
2152
- "aria-disabled": g(O)(s.disabled),
2152
+ "aria-disabled": _(k)(s.disabled, "disabled"),
2153
2153
  tabIndex: s.disabled ? -1 : void 0,
2154
2154
  "aria-labelledby": R.value
2155
- }, [W.value?.length ? (d(), r("span", {
2155
+ }, [G.value?.length ? (f(), r("span", {
2156
2156
  key: 0,
2157
- "data-visually-hidden": g(O)(s.selectedType === "tag"),
2158
- id: ne.value
2159
- }, [s.selectedPrefix ? (d(), r("span", Lt, h(s.selectedPrefix), 1)) : n("", !0), a(" " + h(W.value), 1)], 8, It)) : n("", !0), s.selectedType === "tag" ? (d(), r("div", Rt, [(d(!0), r(e, null, p(G.value, (e, n) => (d(), t(kt, {
2157
+ "data-visually-hidden": _(k)(s.selectedType === "tag", "selectedType"),
2158
+ id: te.value
2159
+ }, [s.selectedPrefix ? (f(), r("span", Rt, g(s.selectedPrefix), 1)) : n("", !0), a(" " + g(G.value), 1)], 8, Lt)) : n("", !0), s.selectedType === "tag" ? (f(), r("div", zt, [(f(!0), r(e, null, m(K.value, (e, n) => (f(), t(At, {
2160
2160
  key: n,
2161
2161
  emphasis: "strong",
2162
2162
  behavior: "removable",
2163
2163
  removeButton: Ne(e),
2164
2164
  onRemove: (t) => Pe(e, t)
2165
2165
  }, {
2166
- default: y(() => [a(h(je(e)), 1)]),
2166
+ default: b(() => [a(g(je(e)), 1)]),
2167
2167
  _: 2
2168
- }, 1032, ["removeButton", "onRemove"]))), 128))])) : n("", !0)], 8, Ft), o(dt, { width: s.dropdownWidth }, {
2169
- default: y(() => [
2170
- ce.value ? (d(), r("div", zt, [o(Tt, {
2168
+ }, 1032, ["removeButton", "onRemove"]))), 128))])) : n("", !0)], 8, It), o(ft, { width: s.dropdownWidth }, {
2169
+ default: b(() => [
2170
+ ie.value ? (f(), r("div", Bt, [o(Et, {
2171
2171
  type: "search",
2172
2172
  ref_key: "searchInputRef",
2173
2173
  ref: Ce,
2174
- name: E.value,
2175
- form: E.value,
2174
+ name: T.value,
2175
+ form: T.value,
2176
2176
  showLabel: !1,
2177
2177
  value: ve.value,
2178
- label: s.searchLabel ?? g("LABEL SHOULD BE SET"),
2178
+ label: s.searchLabel ?? _("LABEL SHOULD BE SET"),
2179
2179
  placeholder: s.searchPlaceholder ?? s.searchLabel,
2180
- ariaDescribedBy: pe.value || s.showLoading ? V.value : void 0,
2180
+ ariaDescribedBy: fe.value || s.showLoading ? V.value : void 0,
2181
2181
  onInput: (e) => qe(e)
2182
2182
  }, null, 8, [
2183
2183
  "name",
@@ -2188,44 +2188,44 @@ var b = () => {
2188
2188
  "ariaDescribedBy",
2189
2189
  "onInput"
2190
2190
  ])])) : n("", !0),
2191
- pe.value || s.showLoading ? (d(), t($, {
2191
+ fe.value || s.showLoading ? (f(), t($, {
2192
2192
  key: 1,
2193
2193
  id: V.value,
2194
2194
  icon: s.showLoading ? "circular_arrows" : void 0,
2195
2195
  semantic: s.showLoading ? "informational" : "warning"
2196
2196
  }, {
2197
- default: y(() => [a(h((s.showLoading ? s.loadingText : s.noResultsText) ?? g("MESSAGE SHOULD BE SET")), 1)]),
2197
+ default: b(() => [a(g((s.showLoading ? s.loadingText : s.noResultsText) ?? _("MESSAGE SHOULD BE SET")), 1)]),
2198
2198
  _: 1
2199
2199
  }, 8, [
2200
2200
  "id",
2201
2201
  "icon",
2202
2202
  "semantic"
2203
- ])) : (d(), r(e, { key: 2 }, [ie.value ? (d(), r("div", Bt, [i("div", Vt, [i("label", null, [i("input", {
2203
+ ])) : (f(), r(e, { key: 2 }, [re.value ? (f(), r("div", Vt, [i("div", Ht, [i("label", null, [i("input", {
2204
2204
  type: "checkbox",
2205
2205
  value: "select-all",
2206
2206
  ref_key: "selectAllRef",
2207
2207
  ref: Se,
2208
- form: E.value,
2208
+ form: T.value,
2209
2209
  checked: ye.value,
2210
- onChange: u[1] ||= async (e) => We(e)
2211
- }, null, 40, Ht), a(h(Ae()), 1)])])])) : n("", !0), o(vt, {
2212
- multiple: g(k)(s.multiple, "multiple"),
2213
- label: s.listLabel ?? s.label ?? g("LABEL SHOULD BE SET")
2210
+ onChange: u[1] ||= async (e) => Ue(e)
2211
+ }, null, 40, Ut), a(g(Ae()), 1)])])])) : n("", !0), o(yt, {
2212
+ multiple: _(A)(s.multiple, "multiple"),
2213
+ label: s.listLabel ?? s.label ?? _("LABEL SHOULD BE SET")
2214
2214
  }, {
2215
- default: y(() => [(d(!0), r(e, null, p(de.value, (i, o) => (d(), t(gt, {
2215
+ default: b(() => [(f(!0), r(e, null, m(ue.value, (i, o) => (f(), t(_t, {
2216
2216
  key: o,
2217
2217
  type: s.multiple ? "checkbox" : "radio",
2218
2218
  showDivider: i.showDivider,
2219
2219
  icon: i.icon,
2220
2220
  isGroupTitle: i.isGroupTitle,
2221
2221
  groupTitle: je(i),
2222
- name: E.value,
2222
+ name: T.value,
2223
2223
  checked: Me(i.value),
2224
2224
  disabled: i.disabled,
2225
2225
  value: i.value,
2226
2226
  onChange: (e) => He(i.value)
2227
2227
  }, {
2228
- default: y(() => [i.isGroupTitle ? n("", !0) : (d(), r(e, { key: 0 }, [a(h(je(i)), 1)], 64))]),
2228
+ default: b(() => [i.isGroupTitle ? n("", !0) : (f(), r(e, { key: 0 }, [a(g(je(i)), 1)], 64))]),
2229
2229
  _: 2
2230
2230
  }, 1032, [
2231
2231
  "type",
@@ -2241,16 +2241,16 @@ var b = () => {
2241
2241
  ]))), 128))]),
2242
2242
  _: 1
2243
2243
  }, 8, ["multiple", "label"])], 64)),
2244
- i("div", null, [o(Ie, {
2244
+ i("div", null, [o(Le, {
2245
2245
  variant: "ghost",
2246
2246
  width: "full",
2247
2247
  icon: "cross",
2248
2248
  size: "small",
2249
- name: E.value,
2250
- form: E.value,
2249
+ name: T.value,
2250
+ form: T.value,
2251
2251
  onClick: (e) => ze(void 0, !0)
2252
2252
  }, {
2253
- default: y(() => [a(h(s.mobileCloseButtonText ?? g("Close")), 1)]),
2253
+ default: b(() => [a(g(s.mobileCloseButtonText ?? _("Close")), 1)]),
2254
2254
  _: 1
2255
2255
  }, 8, [
2256
2256
  "name",
@@ -2259,20 +2259,20 @@ var b = () => {
2259
2259
  ])])
2260
2260
  ]),
2261
2261
  _: 1
2262
- }, 8, ["width"])], 64)) : n("", !0)], 40, Pt),
2263
- (s.showClearSelection ?? !0) && Y.value?.length ? (d(), t(Ie, {
2262
+ }, 8, ["width"])], 64)) : n("", !0)], 40, Ft),
2263
+ (s.showClearSelection ?? !0) && Y.value?.length ? (f(), t(Le, {
2264
2264
  key: 0,
2265
2265
  icon: "cross",
2266
2266
  variant: "ghost",
2267
2267
  size: "small",
2268
2268
  noText: !0,
2269
- name: E.value,
2270
- form: E.value,
2271
- disabled: g(k)(s.disabled, "disabled"),
2269
+ name: T.value,
2270
+ form: T.value,
2271
+ disabled: _(A)(s.disabled, "disabled"),
2272
2272
  onClick: (e) => Je(e)
2273
2273
  }, {
2274
- default: y(() => [a(h(s.clearSelectionText), 1), o(Dt, { placement: "top" }, {
2275
- default: y(() => [a(h(s.clearSelectionText), 1)]),
2274
+ default: b(() => [a(g(s.clearSelectionText), 1), o(Ot, { placement: "top" }, {
2275
+ default: b(() => [a(g(s.clearSelectionText), 1)]),
2276
2276
  _: 1
2277
2277
  })]),
2278
2278
  _: 1
@@ -2284,25 +2284,25 @@ var b = () => {
2284
2284
  ])) : n("", !0),
2285
2285
  i("span", {
2286
2286
  class: "db-custom-select-placeholder",
2287
- "aria-hidden": g(O)(!0),
2287
+ "aria-hidden": "true",
2288
2288
  id: B.value
2289
- }, h(s.placeholder ?? s.label), 9, Ut),
2290
- g(F)(s.message, s.showMessage) ? (d(), t($, {
2289
+ }, g(s.placeholder ?? s.label), 9, Wt),
2290
+ _(I)(s.message, s.showMessage) ? (f(), t($, {
2291
2291
  key: 1,
2292
2292
  size: "small",
2293
2293
  icon: s.messageIcon,
2294
- id: A.value
2294
+ id: D.value
2295
2295
  }, {
2296
- default: y(() => [a(h(s.message), 1)]),
2296
+ default: b(() => [a(g(s.message), 1)]),
2297
2297
  _: 1
2298
2298
  }, 8, ["icon", "id"])) : n("", !0),
2299
- Te() ? (d(), t($, {
2299
+ Te() ? (f(), t($, {
2300
2300
  key: 2,
2301
2301
  size: "small",
2302
2302
  semantic: "successful",
2303
2303
  id: j.value
2304
2304
  }, {
2305
- default: y(() => [a(h(s.validMessage || g("TODO: Add a validMessage")), 1)]),
2305
+ default: b(() => [a(g(s.validMessage || _("TODO: Add a validMessage")), 1)]),
2306
2306
  _: 1
2307
2307
  }, 8, ["id"])) : n("", !0),
2308
2308
  o($, {
@@ -2310,17 +2310,17 @@ var b = () => {
2310
2310
  semantic: "critical",
2311
2311
  id: M.value
2312
2312
  }, {
2313
- default: y(() => [a(h(N.value), 1)]),
2313
+ default: b(() => [a(g(N.value), 1)]),
2314
2314
  _: 1
2315
2315
  }, 8, ["id"]),
2316
- i("span", Wt, h(re.value), 1)
2317
- ], 10, At));
2316
+ i("span", Gt, g(ne.value), 1)
2317
+ ], 10, jt));
2318
2318
  }
2319
- }), Kt = [
2319
+ }), qt = [
2320
2320
  "fixed",
2321
2321
  "auto",
2322
2322
  "full"
2323
- ], qt = ["id"], Jt = /* @__PURE__ */ s({
2323
+ ], Jt = ["id"], Yt = /* @__PURE__ */ s({
2324
2324
  name: "DBCustomSelectFormField",
2325
2325
  __name: "custom-select-form-field",
2326
2326
  props: {
@@ -2332,25 +2332,25 @@ var b = () => {
2332
2332
  propOverrides: { default: void 0 }
2333
2333
  },
2334
2334
  setup(e) {
2335
- let t = e, n = f(null);
2336
- return (i, a) => (d(), r("summary", {
2335
+ let t = e, n = p(null);
2336
+ return (i, a) => (f(), r("summary", {
2337
2337
  ref_key: "_ref",
2338
2338
  ref: n,
2339
2339
  id: e.id ?? e.propOverrides?.id,
2340
- class: c(g(S)("db-custom-select-form-field", t.class))
2341
- }, [m(i.$slots, "default")], 10, qt));
2340
+ class: c(_(C)("db-custom-select-form-field", t.class))
2341
+ }, [h(i.$slots, "default")], 10, Jt));
2342
2342
  }
2343
- }), Yt = ["checkbox", "radio"], Xt = [
2343
+ }), Xt = ["checkbox", "radio"], Zt = [
2344
2344
  "amount",
2345
2345
  "text",
2346
2346
  "tag"
2347
- ], Zt = [
2347
+ ], Qt = [
2348
2348
  "id",
2349
2349
  "data-margin",
2350
2350
  "data-variant",
2351
2351
  "data-emphasis",
2352
2352
  "data-width"
2353
- ], Qt = /* @__PURE__ */ s({
2353
+ ], $t = /* @__PURE__ */ s({
2354
2354
  name: "DBDivider",
2355
2355
  __name: "divider",
2356
2356
  props: {
@@ -2366,8 +2366,8 @@ var b = () => {
2366
2366
  width: { default: void 0 }
2367
2367
  },
2368
2368
  setup(e) {
2369
- let t = e, n = f(null);
2370
- return (i, a) => (d(), r("div", {
2369
+ let t = e, n = p(null);
2370
+ return (i, a) => (f(), r("div", {
2371
2371
  ref_key: "_ref",
2372
2372
  ref: n,
2373
2373
  id: e.id ?? e.propOverrides?.id,
@@ -2375,21 +2375,21 @@ var b = () => {
2375
2375
  "data-variant": e.variant,
2376
2376
  "data-emphasis": e.emphasis,
2377
2377
  "data-width": e.width,
2378
- class: c(g(S)("db-divider", t.class))
2379
- }, null, 10, Zt));
2378
+ class: c(_(C)("db-divider", t.class))
2379
+ }, null, 10, Qt));
2380
2380
  }
2381
- }), $t = ["none", "_"], en = ["horizontal", "vertical"], tn = [
2381
+ }), en = ["none", "_"], tn = ["horizontal", "vertical"], nn = [
2382
2382
  "id",
2383
2383
  "data-position",
2384
2384
  "data-backdrop",
2385
2385
  "data-direction",
2386
2386
  "data-variant"
2387
- ], nn = [
2387
+ ], rn = [
2388
2388
  "data-spacing",
2389
2389
  "data-width",
2390
2390
  "data-direction",
2391
2391
  "data-rounded"
2392
- ], rn = { class: "db-drawer-header" }, an = { class: "db-drawer-header-text" }, on = { class: "db-drawer-content" }, sn = /* @__PURE__ */ s({
2392
+ ], an = { class: "db-drawer-header" }, on = { class: "db-drawer-header-text" }, sn = { class: "db-drawer-content" }, cn = /* @__PURE__ */ s({
2393
2393
  name: "DBDrawer",
2394
2394
  __name: "drawer",
2395
2395
  props: {
@@ -2423,15 +2423,15 @@ var b = () => {
2423
2423
  spacing: { default: void 0 }
2424
2424
  },
2425
2425
  setup(e) {
2426
- let t = e, n = f(!1), s = f(null), u = f(null);
2427
- l(() => {
2428
- _(), n.value = !0;
2429
- }), v(() => [t.open], () => {
2430
- _();
2426
+ let t = e, n = p(!1), s = p(null), l = p(null);
2427
+ u(() => {
2428
+ m(), n.value = !0;
2429
+ }), y(() => [t.open], () => {
2430
+ m();
2431
2431
  }, {
2432
2432
  immediate: !0,
2433
2433
  flush: "post"
2434
- }), v(() => [
2434
+ }), y(() => [
2435
2435
  s.value,
2436
2436
  n.value,
2437
2437
  t.position
@@ -2444,64 +2444,64 @@ var b = () => {
2444
2444
  immediate: !0,
2445
2445
  flush: "post"
2446
2446
  });
2447
- function p(e, n) {
2448
- e && (R(e) ? e.key === "Escape" && (e.preventDefault(), t.onClose && t.onClose(e)) : (n && (e.stopPropagation(), t.onClose && t.onClose(e)), e.target?.nodeName === "DIALOG" && e.type === "click" && t.backdrop !== "none" && t.onClose && t.onClose(e)));
2447
+ function d(e, n) {
2448
+ e && (z(e) ? e.key === "Escape" && (e.preventDefault(), t.onClose && t.onClose(e)) : (n && (e.stopPropagation(), t.onClose && t.onClose(e)), e.target?.nodeName === "DIALOG" && e.type === "click" && t.backdrop !== "none" && t.onClose && t.onClose(e)));
2449
2449
  }
2450
- function _() {
2450
+ function m() {
2451
2451
  if (s.value) {
2452
- let e = k(t.open, "open");
2453
- e && !s.value.open && (u.value && u.value.removeAttribute("data-transition"), t.position === "absolute" || t.backdrop === "none" || t.variant === "inside" ? s.value.show() : s.value.showModal(), D(() => {
2454
- u.value && (u.value.dataset.transition = "open");
2455
- }, 1)), !e && s.value.open && (u.value && (u.value.dataset.transition = "close"), D(() => {
2452
+ let e = A(t.open, "open");
2453
+ e && !s.value.open && (l.value && l.value.removeAttribute("data-transition"), t.position === "absolute" || t.backdrop === "none" || t.variant === "inside" ? s.value.show() : s.value.showModal(), O(() => {
2454
+ l.value && (l.value.dataset.transition = "open");
2455
+ }, 1)), !e && s.value.open && (l.value && (l.value.dataset.transition = "close"), O(() => {
2456
2456
  s.value?.close();
2457
2457
  }, 401));
2458
2458
  }
2459
2459
  }
2460
- return (n, l) => (d(), r("dialog", {
2460
+ return (n, u) => (f(), r("dialog", {
2461
2461
  class: "db-drawer",
2462
2462
  id: e.id ?? e.propOverrides?.id,
2463
2463
  ref_key: "_ref",
2464
2464
  ref: s,
2465
- onClick: l[0] ||= async (e) => p(e),
2466
- onKeydown: l[1] ||= async (e) => p(e),
2465
+ onClick: u[0] ||= async (e) => d(e),
2466
+ onKeydown: u[1] ||= async (e) => d(e),
2467
2467
  "data-position": e.position,
2468
2468
  "data-backdrop": e.backdrop,
2469
2469
  "data-direction": e.direction,
2470
2470
  "data-variant": e.variant
2471
2471
  }, [i("article", {
2472
2472
  ref_key: "dialogContainerRef",
2473
- ref: u,
2474
- class: c(g(S)("db-drawer-container", t.class)),
2473
+ ref: l,
2474
+ class: c(_(C)("db-drawer-container", t.class)),
2475
2475
  "data-spacing": e.spacing,
2476
2476
  "data-width": e.width,
2477
2477
  "data-direction": e.direction,
2478
- "data-rounded": g(O)(e.rounded)
2479
- }, [i("header", rn, [i("div", an, [m(n.$slots, "drawer-header")]), o(Ie, {
2478
+ "data-rounded": _(k)(e.rounded, "rounded")
2479
+ }, [i("header", an, [i("div", on, [h(n.$slots, "drawer-header")]), o(Le, {
2480
2480
  class: "button-close-drawer",
2481
2481
  icon: "cross",
2482
2482
  variant: "ghost",
2483
2483
  id: e.closeButtonId,
2484
2484
  noText: !0,
2485
- onClick: (e) => p(e, !0)
2485
+ onClick: (e) => d(e, !0)
2486
2486
  }, {
2487
- default: y(() => [a(h(e.closeButtonText ?? g("Close")), 1)]),
2487
+ default: b(() => [a(g(e.closeButtonText ?? _("Close")), 1)]),
2488
2488
  _: 1
2489
- }, 8, ["id", "onClick"])]), i("div", on, [m(n.$slots, "default")])], 10, nn)], 40, tn));
2489
+ }, 8, ["id", "onClick"])]), i("div", sn, [h(n.$slots, "default")])], 10, rn)], 40, nn));
2490
2490
  }
2491
- }), cn = [
2491
+ }), ln = [
2492
2492
  "none",
2493
2493
  "strong",
2494
2494
  "weak",
2495
2495
  "invisible"
2496
- ], ln = [
2496
+ ], un = [
2497
2497
  "left",
2498
2498
  "right",
2499
2499
  "up",
2500
2500
  "down"
2501
- ], un = ["modal", "inside"], dn = ["fixed", "absolute"], fn = (e) => {
2501
+ ], dn = ["modal", "inside"], fn = ["fixed", "absolute"], pn = (e) => {
2502
2502
  let { target: t } = e;
2503
2503
  return !!(!t?.classList?.contains("db-navigation-item-expand-button") && t?.parentElement?.classList.contains("db-navigation-item"));
2504
- }, pn = class {
2504
+ }, mn = class {
2505
2505
  element;
2506
2506
  subNavigation;
2507
2507
  parentSubNavigation = null;
@@ -2518,7 +2518,7 @@ var b = () => {
2518
2518
  }
2519
2519
  enableFollow() {
2520
2520
  if (!this.initialized || this.triangleData || !this.element || !this.subNavigation) return;
2521
- let e = rt(this.subNavigation), t = this.element.getBoundingClientRect(), n = this.parentSubNavigation?.getBoundingClientRect().width ?? 0;
2521
+ let e = it(this.subNavigation), t = this.element.getBoundingClientRect(), n = this.parentSubNavigation?.getBoundingClientRect().width ?? 0;
2522
2522
  this.triangleData = {
2523
2523
  itemRect: t,
2524
2524
  parentElementWidth: n,
@@ -2569,11 +2569,11 @@ var b = () => {
2569
2569
  let t = this.hasMouseEnteredSubNavigation(), n = this.getTriangleCoordinates(t ? "fill-gap" : "safe-triangle");
2570
2570
  n && (this.element.style.setProperty("--db-navigation-item-clip-path", `polygon(${n.lb}, ${n.lt}, ${n.rt}, ${n.rb})`), t && (this.triangleData = void 0));
2571
2571
  }
2572
- }, mn = [
2572
+ }, hn = [
2573
2573
  "id",
2574
2574
  "data-width",
2575
2575
  "data-on-forcing-mobile"
2576
- ], hn = { class: "db-header-meta-navigation" }, gn = { class: "db-header-navigation-bar" }, _n = { class: "db-header-brand-container" }, vn = { class: "db-header-navigation-container" }, yn = { class: "db-header-navigation" }, bn = { class: "db-header-primary-action" }, xn = { class: "db-header-action-container" }, Sn = { class: "db-header-burger-menu-container" }, Cn = { class: "db-header-secondary-action" }, wn = { class: "db-header-drawer-navigation" }, Tn = { class: "db-header-meta-navigation" }, En = { class: "db-header-secondary-action" }, Dn = /* @__PURE__ */ s({
2576
+ ], gn = { class: "db-header-meta-navigation" }, _n = { class: "db-header-navigation-bar" }, vn = { class: "db-header-brand-container" }, yn = { class: "db-header-navigation-container" }, bn = { class: "db-header-navigation" }, xn = { class: "db-header-primary-action" }, Sn = { class: "db-header-action-container" }, Cn = { class: "db-header-burger-menu-container" }, wn = { class: "db-header-secondary-action" }, Tn = { class: "db-header-drawer-navigation" }, En = { class: "db-header-meta-navigation" }, Dn = { class: "db-header-secondary-action" }, On = /* @__PURE__ */ s({
2577
2577
  name: "DBHeader",
2578
2578
  __name: "header",
2579
2579
  props: {
@@ -2606,11 +2606,11 @@ var b = () => {
2606
2606
  width: { default: void 0 }
2607
2607
  },
2608
2608
  setup(e) {
2609
- let t = e, n = f(!1), s = f(!1), u = f(null);
2610
- l(() => {
2609
+ let t = e, n = p(!1), s = p(!1), l = p(null);
2610
+ u(() => {
2611
2611
  n.value = !0;
2612
- }), v(() => [n.value, u.value], () => {
2613
- n.value && u.value && t.forceMobile && (x(u.value, {
2612
+ }), y(() => [n.value, l.value], () => {
2613
+ n.value && l.value && t.forceMobile && (S(l.value, {
2614
2614
  key: "data-force-mobile",
2615
2615
  value: "true"
2616
2616
  }), s.value = !0);
@@ -2618,49 +2618,49 @@ var b = () => {
2618
2618
  immediate: !0,
2619
2619
  flush: "post"
2620
2620
  });
2621
- function p(e) {
2621
+ function d(e) {
2622
2622
  e && e.stopPropagation && e.stopPropagation();
2623
- let n = !k(t.drawerOpen, "drawerOpen");
2623
+ let n = !A(t.drawerOpen, "drawerOpen");
2624
2624
  t.onToggle && t.onToggle(n);
2625
2625
  }
2626
- function _(e) {
2627
- fn(e) && p();
2626
+ function m(e) {
2627
+ pn(e) && d();
2628
2628
  }
2629
- return (n, l) => (d(), r("header", {
2629
+ return (n, u) => (f(), r("header", {
2630
2630
  ref_key: "_ref",
2631
- ref: u,
2632
- class: c(g(S)("db-header", t.class)),
2631
+ ref: l,
2632
+ class: c(_(C)("db-header", t.class)),
2633
2633
  id: e.id ?? e.propOverrides?.id,
2634
2634
  "data-width": e.width,
2635
2635
  "data-on-forcing-mobile": e.forceMobile && !s.value
2636
2636
  }, [
2637
- i("div", hn, [m(n.$slots, "meta-navigation")]),
2638
- i("div", gn, [
2639
- i("div", _n, [m(n.$slots, "brand")]),
2640
- i("div", vn, [i("div", yn, [m(n.$slots, "default")]), i("div", bn, [m(n.$slots, "primary-action")])]),
2641
- i("div", xn, [i("div", Sn, [o(Ie, {
2637
+ i("div", gn, [h(n.$slots, "meta-navigation")]),
2638
+ i("div", _n, [
2639
+ i("div", vn, [h(n.$slots, "brand")]),
2640
+ i("div", yn, [i("div", bn, [h(n.$slots, "default")]), i("div", xn, [h(n.$slots, "primary-action")])]),
2641
+ i("div", Sn, [i("div", Cn, [o(Le, {
2642
2642
  icon: "menu",
2643
2643
  variant: "ghost",
2644
2644
  noText: !0,
2645
- onClick: (e) => p()
2645
+ onClick: (e) => d()
2646
2646
  }, {
2647
- default: y(() => [a(h(e.burgerMenuLabel ?? g("BurgerMenu")), 1)]),
2647
+ default: b(() => [a(g(e.burgerMenuLabel ?? _("BurgerMenu")), 1)]),
2648
2648
  _: 1
2649
- }, 8, ["onClick"])]), i("div", Cn, [m(n.$slots, "secondary-action")])])
2649
+ }, 8, ["onClick"])]), i("div", wn, [h(n.$slots, "secondary-action")])])
2650
2650
  ]),
2651
- o(sn, {
2651
+ o(cn, {
2652
2652
  class: "db-header-drawer",
2653
2653
  spacing: "small",
2654
2654
  rounded: !0,
2655
2655
  closeButtonId: e.closeButtonId,
2656
2656
  closeButtonText: e.closeButtonText,
2657
- open: g(k)(e.drawerOpen),
2658
- onClose: (e) => p()
2657
+ open: _(A)(e.drawerOpen),
2658
+ onClose: (e) => d()
2659
2659
  }, {
2660
- default: y(() => [i("div", wn, [i("div", {
2660
+ default: b(() => [i("div", Tn, [i("div", {
2661
2661
  class: "db-header-navigation",
2662
- onClick: l[0] ||= async (e) => _(e)
2663
- }, [m(n.$slots, "default")]), i("div", Tn, [m(n.$slots, "meta-navigation")])]), i("div", En, [m(n.$slots, "secondary-action")])]),
2662
+ onClick: u[0] ||= async (e) => m(e)
2663
+ }, [h(n.$slots, "default")]), i("div", En, [h(n.$slots, "meta-navigation")])]), i("div", Dn, [h(n.$slots, "secondary-action")])]),
2664
2664
  _: 3
2665
2665
  }, 8, [
2666
2666
  "closeButtonId",
@@ -2668,14 +2668,14 @@ var b = () => {
2668
2668
  "open",
2669
2669
  "onClose"
2670
2670
  ])
2671
- ], 10, mn));
2671
+ ], 10, hn));
2672
2672
  }
2673
- }), On = [
2673
+ }), kn = [
2674
2674
  "id",
2675
2675
  "data-icon",
2676
2676
  "data-icon-weight",
2677
2677
  "data-icon-variant"
2678
- ], kn = /* @__PURE__ */ s({
2678
+ ], An = /* @__PURE__ */ s({
2679
2679
  name: "DBIcon",
2680
2680
  __name: "icon",
2681
2681
  props: {
@@ -2691,26 +2691,26 @@ var b = () => {
2691
2691
  text: { default: void 0 }
2692
2692
  },
2693
2693
  setup(t) {
2694
- let i = t, o = f(null);
2695
- return (s, l) => (d(), r("span", {
2694
+ let i = t, o = p(null);
2695
+ return (s, l) => (f(), r("span", {
2696
2696
  "aria-hidden": "true",
2697
2697
  ref_key: "_ref",
2698
2698
  ref: o,
2699
2699
  id: t.id ?? t.propOverrides?.id,
2700
- class: c(g(S)("db-icon", i.class)),
2700
+ class: c(_(C)("db-icon", i.class)),
2701
2701
  "data-icon": t.icon,
2702
2702
  "data-icon-weight": t.weight,
2703
2703
  "data-icon-variant": t.variant
2704
- }, [t.text ? (d(), r(e, { key: 0 }, [a(h(t.text), 1)], 64)) : n("", !0), m(s.$slots, "default")], 10, On));
2704
+ }, [t.text ? (f(), r(e, { key: 0 }, [a(g(t.text), 1)], 64)) : n("", !0), h(s.$slots, "default")], 10, kn));
2705
2705
  }
2706
- }), An = [
2706
+ }), jn = [
2707
2707
  "16",
2708
2708
  "20",
2709
2709
  "24",
2710
2710
  "32",
2711
2711
  "48",
2712
2712
  "64"
2713
- ], jn = [
2713
+ ], Mn = [
2714
2714
  "color",
2715
2715
  "date",
2716
2716
  "datetime-local",
@@ -2727,7 +2727,7 @@ var b = () => {
2727
2727
  "time",
2728
2728
  "url",
2729
2729
  "week"
2730
- ], Mn = [
2730
+ ], Nn = [
2731
2731
  "id",
2732
2732
  "href",
2733
2733
  "target",
@@ -2742,7 +2742,7 @@ var b = () => {
2742
2742
  "data-variant",
2743
2743
  "data-content",
2744
2744
  "data-wrap"
2745
- ], Nn = /* @__PURE__ */ s({
2745
+ ], Pn = /* @__PURE__ */ s({
2746
2746
  name: "DBLink",
2747
2747
  __name: "link",
2748
2748
  props: {
@@ -2782,36 +2782,36 @@ var b = () => {
2782
2782
  }
2783
2783
  },
2784
2784
  setup(t) {
2785
- let i = t, o = f(null);
2785
+ let i = t, o = p(null);
2786
2786
  function s(e) {
2787
2787
  i.onClick && i.onClick(e);
2788
2788
  }
2789
- return (l, u) => (d(), r("a", {
2789
+ return (l, u) => (f(), r("a", {
2790
2790
  ref_key: "_ref",
2791
2791
  ref: o,
2792
2792
  id: t.id ?? t.propOverrides?.id,
2793
- class: c(g(S)("db-link", i.class)),
2793
+ class: c(_(C)("db-link", i.class)),
2794
2794
  href: t.href,
2795
2795
  target: t.target,
2796
2796
  rel: t.rel,
2797
2797
  role: t.role,
2798
2798
  referrerPolicy: t.referrerpolicy ?? t.referrerPolicy,
2799
2799
  hrefLang: t.hreflang,
2800
- "aria-disabled": g(O)(t.disabled),
2800
+ "aria-disabled": _(k)(t.disabled, "disabled"),
2801
2801
  tabIndex: t.disabled ? -1 : 0,
2802
2802
  "data-size": t.size,
2803
- "data-show-icon-trailing": g(O)(t.showIcon ?? !0),
2803
+ "data-show-icon-trailing": _(k)(t.showIcon ?? !0, "showIcon"),
2804
2804
  "data-variant": t.variant,
2805
2805
  "data-content": t.content || "internal",
2806
- "data-wrap": g(O)(t.wrap),
2806
+ "data-wrap": _(k)(t.wrap, "wrap"),
2807
2807
  onClick: u[0] ||= async (e) => s(e)
2808
- }, [t.text ? (d(), r(e, { key: 0 }, [a(h(t.text), 1)], 64)) : n("", !0), m(l.$slots, "default")], 10, Mn));
2808
+ }, [t.text ? (f(), r(e, { key: 0 }, [a(g(t.text), 1)], 64)) : n("", !0), h(l.$slots, "default")], 10, Nn));
2809
2809
  }
2810
- }), Pn = [
2810
+ }), Fn = [
2811
2811
  "adaptive",
2812
2812
  "brand",
2813
2813
  "inline"
2814
- ], Fn = ["medium", "small"], In = ["external", "internal"], Ln = ["id"], Rn = /* @__PURE__ */ s({
2814
+ ], In = ["medium", "small"], Ln = ["external", "internal"], Rn = ["id"], zn = /* @__PURE__ */ s({
2815
2815
  name: "DBNavigation",
2816
2816
  __name: "navigation",
2817
2817
  props: {
@@ -2823,15 +2823,15 @@ var b = () => {
2823
2823
  propOverrides: { default: void 0 }
2824
2824
  },
2825
2825
  setup(e) {
2826
- let t = e, n = f(null);
2827
- return (a, o) => (d(), r("nav", {
2826
+ let t = e, n = p(null);
2827
+ return (a, o) => (f(), r("nav", {
2828
2828
  ref_key: "_ref",
2829
2829
  ref: n,
2830
2830
  id: e.id ?? e.propOverrides?.id,
2831
- class: c(g(S)("db-navigation", t.class))
2832
- }, [i("menu", null, [m(a.$slots, "default")])], 10, Ln));
2831
+ class: c(_(C)("db-navigation", t.class))
2832
+ }, [i("menu", null, [h(a.$slots, "default")])], 10, Rn));
2833
2833
  }
2834
- }), zn = [
2834
+ }), Bn = [
2835
2835
  "id",
2836
2836
  "data-width",
2837
2837
  "data-icon",
@@ -2839,20 +2839,20 @@ var b = () => {
2839
2839
  "data-active",
2840
2840
  "data-wrap",
2841
2841
  "aria-disabled"
2842
- ], Bn = [
2842
+ ], Vn = [
2843
2843
  "id",
2844
2844
  "aria-haspopup",
2845
2845
  "aria-expanded",
2846
2846
  "aria-controls",
2847
2847
  "disabled"
2848
- ], Vn = [
2848
+ ], Hn = [
2849
2849
  "id",
2850
2850
  "aria-labelledby",
2851
2851
  "data-force-close"
2852
- ], Hn = {
2852
+ ], Un = {
2853
2853
  key: 0,
2854
2854
  class: "db-mobile-navigation-back"
2855
- }, Un = /* @__PURE__ */ s({
2855
+ }, Wn = /* @__PURE__ */ s({
2856
2856
  name: "DBNavigationItem",
2857
2857
  __name: "navigation-item",
2858
2858
  props: {
@@ -2899,75 +2899,75 @@ var b = () => {
2899
2899
  text: { default: void 0 }
2900
2900
  },
2901
2901
  setup(t) {
2902
- let s = _(), u = t, p = f(!1), b = f(!1), x = f(!0), C = f(!1), w = f(!1), T = f(void 0), E = f(void 0), A = f(void 0), j = f(null);
2903
- l(() => {
2904
- p.value = !0;
2905
- let e = `sub-nav-${u.id ?? s}`;
2906
- E.value = e, A.value = `${e}-toggle`;
2907
- }), v(() => [u.subNavigationExpanded], () => {
2908
- u.subNavigationExpanded !== void 0 && (C.value = !!k(u.subNavigationExpanded, "subNavigationExpanded"));
2902
+ let s = v(), l = t, d = p(!1), m = p(!1), x = p(!0), S = p(!1), w = p(!1), T = p(void 0), E = p(void 0), D = p(void 0), j = p(null);
2903
+ u(() => {
2904
+ d.value = !0;
2905
+ let e = `sub-nav-${l.id ?? s}`;
2906
+ E.value = e, D.value = `${e}-toggle`;
2907
+ }), y(() => [l.subNavigationExpanded], () => {
2908
+ l.subNavigationExpanded !== void 0 && (S.value = !!A(l.subNavigationExpanded, "subNavigationExpanded"));
2909
2909
  }, {
2910
2910
  immediate: !0,
2911
2911
  flush: "post"
2912
- }), v(() => [p.value, j.value], () => {
2913
- if (p.value && j.value) {
2912
+ }), y(() => [d.value, j.value], () => {
2913
+ if (d.value && j.value) {
2914
2914
  let e = j.value.querySelector("menu");
2915
- e && (e.children?.length > 0 ? (b.value = !0, T.value ||= new pn(j.value, e)) : x.value = !1);
2915
+ e && (e.children?.length > 0 ? (m.value = !0, T.value ||= new mn(j.value, e)) : x.value = !1);
2916
2916
  }
2917
2917
  }, {
2918
2918
  immediate: !0,
2919
2919
  flush: "post"
2920
2920
  });
2921
2921
  function M(e) {
2922
- e?.target?.nodeName === "A" && (w.value = !0, D(() => {
2922
+ e?.target?.nodeName === "A" && (w.value = !0, O(() => {
2923
2923
  w.value = !1;
2924
2924
  }, 1e3));
2925
2925
  }
2926
2926
  function N(e) {
2927
- u.onClick && (e.stopPropagation(), u.onClick(e)), b.value && (C.value = !0);
2927
+ l.onClick && (e.stopPropagation(), l.onClick(e)), m.value && (S.value = !0);
2928
2928
  }
2929
2929
  function P(e) {
2930
- e.stopPropagation(), C.value = !1;
2930
+ e.stopPropagation(), S.value = !1;
2931
2931
  }
2932
- return (s, l) => (d(), r("li", {
2932
+ return (s, u) => (f(), r("li", {
2933
2933
  ref_key: "_ref",
2934
2934
  ref: j,
2935
2935
  id: t.id ?? t.propOverrides?.id,
2936
- onMouseover: l[2] ||= async (e) => T.value?.enableFollow(),
2937
- onMouseleave: l[3] ||= async (e) => T.value?.disableFollow(),
2938
- onMousemove: l[4] ||= async (e) => T.value?.followByMouseEvent(e),
2939
- class: c(g(S)("db-navigation-item", u.class)),
2936
+ onMouseover: u[2] ||= async (e) => T.value?.enableFollow(),
2937
+ onMouseleave: u[3] ||= async (e) => T.value?.disableFollow(),
2938
+ onMousemove: u[4] ||= async (e) => T.value?.followByMouseEvent(e),
2939
+ class: c(_(C)("db-navigation-item", l.class)),
2940
2940
  "data-width": t.width,
2941
2941
  "data-icon": t.icon,
2942
- "data-show-icon": g(O)(t.showIcon),
2942
+ "data-show-icon": _(k)(t.showIcon, "showIcon"),
2943
2943
  "data-active": t.active,
2944
- "data-wrap": g(O)(t.wrap),
2945
- "aria-disabled": g(O)(t.disabled)
2946
- }, [!g(k)(t.hideSubNavigation, "hideSubNavigation") && x.value ? (d(), r(e, { key: 0 }, [i("button", {
2944
+ "data-wrap": _(k)(t.wrap, "wrap"),
2945
+ "aria-disabled": _(k)(t.disabled, "disabled")
2946
+ }, [!_(A)(t.hideSubNavigation, "hideSubNavigation") && x.value ? (f(), r(e, { key: 0 }, [i("button", {
2947
2947
  class: "db-navigation-item-expand-button",
2948
- id: A.value,
2949
- "aria-haspopup": b.value ? "true" : void 0,
2950
- "aria-expanded": C.value,
2948
+ id: D.value,
2949
+ "aria-haspopup": m.value ? "true" : void 0,
2950
+ "aria-expanded": S.value,
2951
2951
  "aria-controls": E.value,
2952
- disabled: g(k)(t.disabled, "disabled"),
2953
- onClick: l[0] ||= async (e) => N(e)
2954
- }, [t.text ? (d(), r(e, { key: 0 }, [a(h(t.text), 1)], 64)) : m(s.$slots, "default", { key: 1 })], 8, Bn), i("menu", {
2952
+ disabled: _(A)(t.disabled, "disabled"),
2953
+ onClick: u[0] ||= async (e) => N(e)
2954
+ }, [t.text ? (f(), r(e, { key: 0 }, [a(g(t.text), 1)], 64)) : h(s.$slots, "default", { key: 1 })], 8, Vn), i("menu", {
2955
2955
  class: "db-sub-navigation",
2956
2956
  id: E.value,
2957
- "aria-labelledby": A.value,
2957
+ "aria-labelledby": D.value,
2958
2958
  "data-force-close": w.value,
2959
- onClick: l[1] ||= async (e) => M(e)
2960
- }, [b.value ? (d(), r("div", Hn, [o(Ie, {
2959
+ onClick: u[1] ||= async (e) => M(e)
2960
+ }, [m.value ? (f(), r("div", Un, [o(Le, {
2961
2961
  icon: "arrow_left",
2962
2962
  variant: "ghost",
2963
2963
  id: t.backButtonId,
2964
2964
  onClick: (e) => P(e)
2965
2965
  }, {
2966
- default: y(() => [a(h(t.backButtonText ?? g("Back")), 1)]),
2966
+ default: b(() => [a(g(t.backButtonText ?? _("Back")), 1)]),
2967
2967
  _: 1
2968
- }, 8, ["id", "onClick"])])) : n("", !0), m(s.$slots, "sub-navigation")], 8, Vn)], 64)) : (d(), r(e, { key: 1 }, [t.text ? (d(), r(e, { key: 0 }, [a(h(t.text), 1)], 64)) : m(s.$slots, "default", { key: 1 })], 64))], 42, zn));
2968
+ }, 8, ["id", "onClick"])])) : n("", !0), h(s.$slots, "sub-navigation")], 8, Hn)], 64)) : (f(), r(e, { key: 1 }, [t.text ? (f(), r(e, { key: 0 }, [a(g(t.text), 1)], 64)) : h(s.$slots, "default", { key: 1 })], 64))], 42, Bn));
2969
2969
  }
2970
- }), Wn = [
2970
+ }), Gn = [
2971
2971
  "id",
2972
2972
  "role",
2973
2973
  "aria-live",
@@ -2976,10 +2976,10 @@ var b = () => {
2976
2976
  "data-icon",
2977
2977
  "data-show-icon",
2978
2978
  "data-link-variant"
2979
- ], Gn = {
2979
+ ], Kn = {
2980
2980
  key: 0,
2981
2981
  "data-area": "head"
2982
- }, Kn = { "data-area": "content" }, qn = ["dateTime"], Jn = /* @__PURE__ */ s({
2982
+ }, qn = { "data-area": "content" }, Jn = ["dateTime"], Yn = /* @__PURE__ */ s({
2983
2983
  name: "DBNotification",
2984
2984
  __name: "notification",
2985
2985
  props: {
@@ -3026,16 +3026,16 @@ var b = () => {
3026
3026
  text: { default: void 0 }
3027
3027
  },
3028
3028
  setup(o) {
3029
- let s = o, l = f(null);
3029
+ let s = o, l = p(null);
3030
3030
  function u(e) {
3031
3031
  e && (e.stopPropagation(), s.onClose && s.onClose(e));
3032
3032
  }
3033
- return (f, p) => (d(), r("div", {
3033
+ return (d, p) => (f(), r("div", {
3034
3034
  ref_key: "_ref",
3035
3035
  ref: l,
3036
3036
  id: o.id ?? o.propOverrides?.id,
3037
- class: c(g(S)("db-notification", s.class)),
3038
- role: g(z)({
3037
+ class: c(_(C)("db-notification", s.class)),
3038
+ role: _(B)({
3039
3039
  semantic: o.semantic,
3040
3040
  role: o.role,
3041
3041
  ariaLive: o.ariaLive
@@ -3043,20 +3043,20 @@ var b = () => {
3043
3043
  "aria-live": o.ariaLive,
3044
3044
  "data-semantic": o.semantic,
3045
3045
  "data-variant": o.variant,
3046
- "data-icon": g(k)(o.showIcon) === !1 ? void 0 : o.icon,
3047
- "data-show-icon": g(O)(o.showIcon),
3046
+ "data-icon": _(A)(o.showIcon) === !1 ? void 0 : o.icon,
3047
+ "data-show-icon": _(k)(o.showIcon, "showIcon"),
3048
3048
  "data-link-variant": o.linkVariant
3049
3049
  }, [
3050
- m(f.$slots, "image"),
3051
- g(F)(o.headline, o.showHeadline) ? (d(), r("header", Gn, h(o.headline), 1)) : n("", !0),
3052
- i("div", Kn, [o.text ? (d(), r(e, { key: 0 }, [a(h(o.text), 1)], 64)) : n("", !0), m(f.$slots, "default")]),
3053
- g(F)(o.timestamp, o.showTimestamp) ? (d(), r("time", {
3050
+ h(d.$slots, "image"),
3051
+ _(I)(o.headline, o.showHeadline) ? (f(), r("header", Kn, g(o.headline), 1)) : n("", !0),
3052
+ i("div", qn, [o.text ? (f(), r(e, { key: 0 }, [a(g(o.text), 1)], 64)) : n("", !0), h(d.$slots, "default")]),
3053
+ _(I)(o.timestamp, o.showTimestamp) ? (f(), r("time", {
3054
3054
  key: 1,
3055
3055
  "data-area": "timestamp",
3056
3056
  dateTime: o.timestampDatetime
3057
- }, h(o.timestamp), 9, qn)) : n("", !0),
3058
- m(f.$slots, "link"),
3059
- g(k)(o.closeable, "closeable") ? (d(), t(Ie, {
3057
+ }, g(o.timestamp), 9, Jn)) : n("", !0),
3058
+ h(d.$slots, "link"),
3059
+ _(A)(o.closeable, "closeable") ? (f(), t(Le, {
3060
3060
  key: 2,
3061
3061
  icon: "cross",
3062
3062
  variant: "ghost",
@@ -3065,25 +3065,25 @@ var b = () => {
3065
3065
  noText: !0,
3066
3066
  onClick: (e) => u(e)
3067
3067
  }, {
3068
- default: y(() => [a(h(o.closeButtonText ?? g("Close")), 1)]),
3068
+ default: b(() => [a(g(o.closeButtonText ?? _("Close")), 1)]),
3069
3069
  _: 1
3070
3070
  }, 8, ["id", "onClick"])) : n("", !0)
3071
- ], 10, Wn));
3071
+ ], 10, Gn));
3072
3072
  }
3073
- }), Yn = [
3073
+ }), Xn = [
3074
3074
  "docked",
3075
3075
  "standalone",
3076
3076
  "overlay"
3077
- ], Xn = ["block", "inline"], Zn = [
3077
+ ], Zn = ["block", "inline"], Qn = [
3078
3078
  "assertive",
3079
3079
  "polite",
3080
3080
  "off"
3081
- ], Qn = [
3081
+ ], $n = [
3082
3082
  "id",
3083
3083
  "data-variant",
3084
3084
  "data-fade-in",
3085
3085
  "data-fonts-loaded"
3086
- ], $n = /* @__PURE__ */ s({
3086
+ ], er = /* @__PURE__ */ s({
3087
3087
  name: "DBPage",
3088
3088
  __name: "page",
3089
3089
  props: {
@@ -3104,28 +3104,28 @@ var b = () => {
3104
3104
  propOverrides: { default: void 0 }
3105
3105
  },
3106
3106
  setup(e) {
3107
- let t = e, n = f(!1), a = f(null);
3108
- return typeof window < "u" && document && (t.documentOverflow === "hidden" || t.variant === "fixed" && t.documentOverflow !== "auto") && document.documentElement.classList.add("db-page-document"), l(() => {
3107
+ let t = e, n = p(!1), a = p(null);
3108
+ return typeof window < "u" && document && (t.documentOverflow === "hidden" || t.variant === "fixed" && t.documentOverflow !== "auto") && document.documentElement.classList.add("db-page-document"), u(() => {
3109
3109
  n.value = !t.fadeIn, document && t.fadeIn ? document.fonts.ready.then(() => {
3110
3110
  n.value = !0;
3111
3111
  }) : n.value = !0;
3112
- }), u(() => {
3112
+ }), d(() => {
3113
3113
  typeof window < "u" && document.documentElement.classList.contains("db-page-document") && document.documentElement.classList.remove("db-page-document");
3114
- }), (o, s) => (d(), r("div", {
3114
+ }), (o, s) => (f(), r("div", {
3115
3115
  ref_key: "_ref",
3116
3116
  ref: a,
3117
3117
  id: e.id ?? e.propOverrides?.id,
3118
- class: c(g(S)("db-page", t.class)),
3118
+ class: c(_(C)("db-page", t.class)),
3119
3119
  "data-variant": e.variant,
3120
- "data-fade-in": g(O)(e.fadeIn),
3121
- "data-fonts-loaded": g(O)(n.value)
3120
+ "data-fade-in": _(k)(e.fadeIn, "fadeIn"),
3121
+ "data-fonts-loaded": _(k)(n.value, "fontsLoaded")
3122
3122
  }, [
3123
- m(o.$slots, "header"),
3124
- i("main", { class: c(g(S)("db-main", e.mainClass)) }, [m(o.$slots, "default")], 2),
3125
- m(o.$slots, "footer")
3126
- ], 10, Qn));
3123
+ h(o.$slots, "header"),
3124
+ i("main", { class: c(_(C)("db-main", e.mainClass)) }, [h(o.$slots, "default")], 2),
3125
+ h(o.$slots, "footer")
3126
+ ], 10, $n));
3127
3127
  }
3128
- }), er = ["auto", "fixed"], tr = ["hidden", "auto"], nr = ["id"], rr = [
3128
+ }), tr = ["auto", "fixed"], nr = ["hidden", "auto"], rr = ["id"], ir = [
3129
3129
  "data-spacing",
3130
3130
  "data-gap",
3131
3131
  "data-animation",
@@ -3133,7 +3133,7 @@ var b = () => {
3133
3133
  "data-delay",
3134
3134
  "data-width",
3135
3135
  "data-placement"
3136
- ], ir = /* @__PURE__ */ s({
3136
+ ], ar = /* @__PURE__ */ s({
3137
3137
  name: "DBPopover",
3138
3138
  __name: "popover",
3139
3139
  props: {
@@ -3162,27 +3162,27 @@ var b = () => {
3162
3162
  width: { default: void 0 }
3163
3163
  },
3164
3164
  setup(e) {
3165
- let t = e, n = f(!1), a = f(!1), o = f(void 0), s = f(void 0), u = f(null);
3166
- l(() => {
3165
+ let t = e, n = p(!1), a = p(!1), o = p(void 0), s = p(void 0), l = p(null);
3166
+ u(() => {
3167
3167
  n.value = !0;
3168
- }), v(() => [u.value, n.value], () => {
3169
- if (u.value && n.value) {
3168
+ }), y(() => [l.value, n.value], () => {
3169
+ if (l.value && n.value) {
3170
3170
  n.value = !1;
3171
3171
  let e = x();
3172
- e && (e.ariaHasPopup = "true"), h(), u.value.addEventListener("keydown", (e) => p(e)), ["mouseenter", "focusin"].forEach((e) => {
3173
- u.value.addEventListener(e, () => y());
3172
+ e && (e.ariaHasPopup = "true"), m(), l.value.addEventListener("keydown", (e) => d(e)), ["mouseenter", "focusin"].forEach((e) => {
3173
+ l.value.addEventListener(e, () => v());
3174
3174
  }), ["mouseleave", "focusout"].forEach((e) => {
3175
- u.value.addEventListener(e, () => b());
3175
+ l.value.addEventListener(e, () => b());
3176
3176
  }), typeof window < "u" && "IntersectionObserver" in window && (s.value = new IntersectionObserver((e) => {
3177
3177
  let t = e.find(({ target: e }) => e === x());
3178
- t && !t.isIntersecting && p(!1);
3178
+ t && !t.isIntersecting && d(!1);
3179
3179
  }));
3180
3180
  }
3181
3181
  }, {
3182
3182
  immediate: !0,
3183
3183
  flush: "post"
3184
- }), v(() => [u.value, a.value], () => {
3185
- if (u.value) {
3184
+ }), y(() => [l.value, a.value], () => {
3185
+ if (l.value) {
3186
3186
  let e = x();
3187
3187
  e && (e.ariaExpanded = (!!a.value).toString());
3188
3188
  }
@@ -3190,35 +3190,35 @@ var b = () => {
3190
3190
  immediate: !0,
3191
3191
  flush: "post"
3192
3192
  });
3193
- function p(e) {
3194
- if (!e || e.key === "Escape") for (let e of Array.from(u.value.children)) e.blur();
3193
+ function d(e) {
3194
+ if (!e || e.key === "Escape") for (let e of Array.from(l.value.children)) e.blur();
3195
3195
  }
3196
- function h() {
3197
- if (!u.value) return;
3198
- let e = u.value.querySelector("article");
3199
- e && D(() => {
3200
- lt(e, u.value, t.placement ?? "bottom");
3196
+ function m() {
3197
+ if (!l.value) return;
3198
+ let e = l.value.querySelector("article");
3199
+ e && O(() => {
3200
+ ut(e, l.value, t.placement ?? "bottom");
3201
3201
  }, 1);
3202
3202
  }
3203
- function _(e) {
3204
- e?.target?.contains && e?.target?.contains(u.value) && h();
3203
+ function g(e) {
3204
+ e?.target?.contains && e?.target?.contains(l.value) && m();
3205
3205
  }
3206
- function y() {
3207
- a.value = !0, o.value = new tt().addCallback((e) => _(e)), h();
3206
+ function v() {
3207
+ a.value = !0, o.value = new nt().addCallback((e) => g(e)), m();
3208
3208
  let e = x();
3209
3209
  e && s.value?.observe(e);
3210
3210
  }
3211
3211
  function b(e) {
3212
3212
  let t = e?.target;
3213
3213
  if (!t?.parentNode || t.parentNode.querySelector(":focus") !== t && t.parentNode.querySelector(":focus-within") !== t && t.parentNode.querySelector(":hover") !== t) {
3214
- a.value = !1, o.value && new tt().removeCallback(o.value);
3214
+ a.value = !1, o.value && new nt().removeCallback(o.value);
3215
3215
  let e = x();
3216
3216
  e && s.value?.unobserve(e);
3217
3217
  }
3218
3218
  }
3219
3219
  function x() {
3220
- if (u.value) {
3221
- let e = Array.from(u.value.children);
3220
+ if (l.value) {
3221
+ let e = Array.from(l.value.children);
3222
3222
  if (e.length >= 2) {
3223
3223
  let t = e[0];
3224
3224
  return t.tagName.includes("-") ? t.children?.length > 0 ? t.children[0] : null : t;
@@ -3226,28 +3226,28 @@ var b = () => {
3226
3226
  }
3227
3227
  return null;
3228
3228
  }
3229
- return (n, a) => (d(), r("div", {
3229
+ return (n, a) => (f(), r("div", {
3230
3230
  ref_key: "_ref",
3231
- ref: u,
3231
+ ref: l,
3232
3232
  id: e.id ?? e.propOverrides?.id,
3233
- class: c(g(S)("db-popover", t.class))
3234
- }, [m(n.$slots, "trigger"), i("article", {
3233
+ class: c(_(C)("db-popover", t.class))
3234
+ }, [h(n.$slots, "trigger"), i("article", {
3235
3235
  class: "db-popover-content",
3236
3236
  "data-spacing": e.spacing,
3237
- "data-gap": g(O)(e.gap),
3238
- "data-animation": g(O)(e.animation ?? !0),
3239
- "data-open": g(O)(e.open),
3237
+ "data-gap": _(k)(e.gap, "gap"),
3238
+ "data-animation": _(k)(e.animation ?? !0, "animation"),
3239
+ "data-open": _(k)(e.open, "open"),
3240
3240
  "data-delay": e.delay,
3241
3241
  "data-width": e.width,
3242
3242
  "data-placement": e.placement
3243
- }, [m(n.$slots, "default")], 8, rr)], 10, nr));
3243
+ }, [h(n.$slots, "default")], 8, ir)], 10, rr));
3244
3244
  }
3245
- }), ar = [
3245
+ }), or = [
3246
3246
  "data-size",
3247
3247
  "data-hide-label",
3248
3248
  "data-hide-asterisk",
3249
3249
  "for"
3250
- ], or = [
3250
+ ], sr = [
3251
3251
  "aria-invalid",
3252
3252
  "data-custom-validity",
3253
3253
  "id",
@@ -3256,7 +3256,7 @@ var b = () => {
3256
3256
  "disabled",
3257
3257
  "value",
3258
3258
  "required"
3259
- ], sr = /* @__PURE__ */ s({
3259
+ ], cr = /* @__PURE__ */ s({
3260
3260
  name: "DBRadio",
3261
3261
  __name: "radio",
3262
3262
  props: {
@@ -3319,31 +3319,31 @@ var b = () => {
3319
3319
  },
3320
3320
  emits: ["update:value"],
3321
3321
  setup(t, { emit: o }) {
3322
- let s = _(), p = o, y = t, b = f(!1), x = f(void 0), C = f(void 0), w = f(null);
3323
- l(() => {
3322
+ let s = v(), l = o, m = t, b = p(!1), x = p(void 0), S = p(void 0), w = p(null);
3323
+ u(() => {
3324
3324
  b.value = !0, j();
3325
- }), u(() => {
3326
- C.value?.abort();
3327
- }), v(() => [y.id, y.propOverrides?.id], () => {
3328
- (y.id ?? y.propOverrides?.id) && j();
3325
+ }), d(() => {
3326
+ S.value?.abort();
3327
+ }), y(() => [m.id, m.propOverrides?.id], () => {
3328
+ (m.id ?? m.propOverrides?.id) && j();
3329
3329
  }, {
3330
3330
  immediate: !0,
3331
3331
  flush: "post"
3332
- }), v(() => [
3332
+ }), y(() => [
3333
3333
  b.value,
3334
3334
  w.value,
3335
- y.checked
3335
+ m.checked
3336
3336
  ], () => {
3337
- y.checked && b.value && w.value && (w.value.checked = !0);
3337
+ m.checked && b.value && w.value && (w.value.checked = !0);
3338
3338
  }, {
3339
3339
  immediate: !0,
3340
3340
  flush: "post"
3341
- }), v(() => [w.value], () => {
3341
+ }), y(() => [w.value], () => {
3342
3342
  if (w.value) {
3343
- let e = C.value;
3344
- e || (e = new AbortController(), C.value = e), Ue(w.value, (e) => {
3345
- D(() => {
3346
- let t = y.checked ? y.checked : w.value.checked, n = {
3343
+ let e = S.value;
3344
+ e || (e = new AbortController(), S.value = e), We(w.value, (e) => {
3345
+ O(() => {
3346
+ let t = m.checked ? m.checked : w.value.checked, n = {
3347
3347
  ...e,
3348
3348
  target: {
3349
3349
  ...e.target,
@@ -3360,25 +3360,25 @@ var b = () => {
3360
3360
  flush: "post"
3361
3361
  });
3362
3362
  function T(e, t) {
3363
- y.input && y.input(e), y.onInput && y.onInput(e), Q(p, e);
3363
+ m.input && m.input(e), m.onInput && m.onInput(e), Q(l, e);
3364
3364
  }
3365
3365
  function E(e, t) {
3366
- y.onChange && y.onChange(e), Q(p, e);
3366
+ m.onChange && m.onChange(e), Q(l, e);
3367
3367
  }
3368
- function O(e) {
3369
- y.onBlur && y.onBlur(e);
3368
+ function D(e) {
3369
+ m.onBlur && m.onBlur(e);
3370
3370
  }
3371
- function A(e) {
3372
- y.onFocus && y.onFocus(e);
3371
+ function k(e) {
3372
+ m.onFocus && m.onFocus(e);
3373
3373
  }
3374
3374
  function j() {
3375
- x.value = y.id ?? y.propOverrides?.id ?? `radio-${s}`;
3375
+ x.value = m.id ?? m.propOverrides?.id ?? `radio-${s}`;
3376
3376
  }
3377
- return (o, s) => (d(), r("label", {
3377
+ return (o, s) => (f(), r("label", {
3378
3378
  "data-size": t.size,
3379
- "data-hide-label": g(P)(t.showLabel),
3380
- "data-hide-asterisk": g(P)(t.showRequiredAsterisk),
3381
- class: c(g(S)("db-radio", y.class)),
3379
+ "data-hide-label": _(F)(t.showLabel),
3380
+ "data-hide-asterisk": _(F)(t.showRequiredAsterisk),
3381
+ class: c(_(C)("db-radio", m.class)),
3382
3382
  for: x.value
3383
3383
  }, [
3384
3384
  i("input", {
@@ -3389,24 +3389,24 @@ var b = () => {
3389
3389
  ref: w,
3390
3390
  id: x.value,
3391
3391
  name: t.name,
3392
- checked: g(k)(t.checked, "checked"),
3393
- disabled: g(k)(t.disabled, "disabled"),
3392
+ checked: _(A)(t.checked, "checked"),
3393
+ disabled: _(A)(t.disabled, "disabled"),
3394
3394
  value: t.value,
3395
- required: g(k)(t.required, "required"),
3395
+ required: _(A)(t.required, "required"),
3396
3396
  onInput: s[0] ||= async (e) => T(e),
3397
3397
  onChange: s[1] ||= async (e) => E(e),
3398
- onBlur: s[2] ||= async (e) => O(e),
3399
- onFocus: s[3] ||= async (e) => A(e)
3400
- }, null, 40, or),
3401
- t.label ? (d(), r(e, { key: 0 }, [a(h(t.label), 1)], 64)) : n("", !0),
3402
- m(o.$slots, "default")
3403
- ], 10, ar));
3398
+ onBlur: s[2] ||= async (e) => D(e),
3399
+ onFocus: s[3] ||= async (e) => k(e)
3400
+ }, null, 40, sr),
3401
+ t.label ? (f(), r(e, { key: 0 }, [a(g(t.label), 1)], 64)) : n("", !0),
3402
+ h(o.$slots, "default")
3403
+ ], 10, or));
3404
3404
  }
3405
- }), cr = [
3405
+ }), lr = [
3406
3406
  "id",
3407
3407
  "data-spacing",
3408
3408
  "data-width"
3409
- ], lr = /* @__PURE__ */ s({
3409
+ ], ur = /* @__PURE__ */ s({
3410
3410
  name: "DBSection",
3411
3411
  __name: "section",
3412
3412
  props: {
@@ -3420,23 +3420,23 @@ var b = () => {
3420
3420
  width: { default: void 0 }
3421
3421
  },
3422
3422
  setup(e) {
3423
- let t = e, n = f(null);
3424
- return (i, a) => (d(), r("section", {
3423
+ let t = e, n = p(null);
3424
+ return (i, a) => (f(), r("section", {
3425
3425
  ref_key: "_ref",
3426
3426
  ref: n,
3427
3427
  id: e.id ?? e.propOverrides?.id,
3428
- class: c(g(S)("db-section", t.class)),
3428
+ class: c(_(C)("db-section", t.class)),
3429
3429
  "data-spacing": e.spacing || "medium",
3430
3430
  "data-width": e.width
3431
- }, [m(i.$slots, "default")], 10, cr));
3431
+ }, [h(i.$slots, "default")], 10, lr));
3432
3432
  }
3433
- }), ur = [
3433
+ }), dr = [
3434
3434
  "data-variant",
3435
3435
  "data-hide-label",
3436
3436
  "data-hide-asterisk",
3437
3437
  "data-icon",
3438
3438
  "data-show-icon"
3439
- ], dr = ["for"], fr = [
3439
+ ], fr = ["for"], pr = [
3440
3440
  "aria-invalid",
3441
3441
  "data-custom-validity",
3442
3442
  "required",
@@ -3448,18 +3448,18 @@ var b = () => {
3448
3448
  "autocomplete",
3449
3449
  "multiple",
3450
3450
  "aria-describedby"
3451
- ], pr = ["data-show-empty-option"], mr = ["label"], hr = [
3451
+ ], mr = ["data-show-empty-option"], hr = ["label"], gr = [
3452
3452
  "value",
3453
3453
  "selected",
3454
3454
  "disabled"
3455
- ], gr = [
3455
+ ], _r = [
3456
3456
  "value",
3457
3457
  "disabled",
3458
3458
  "selected"
3459
- ], _r = ["id"], vr = {
3459
+ ], vr = ["id"], yr = {
3460
3460
  "data-visually-hidden": "true",
3461
3461
  role: "status"
3462
- }, yr = /* @__PURE__ */ s({
3462
+ }, br = /* @__PURE__ */ s({
3463
3463
  name: "DBSelect",
3464
3464
  __name: "select",
3465
3465
  props: {
@@ -3547,148 +3547,148 @@ var b = () => {
3547
3547
  size: { default: void 0 }
3548
3548
  },
3549
3549
  emits: ["update:value"],
3550
- setup(s, { emit: b }) {
3551
- let x = _(), C = b, w = s, E = f(void 0), A = f(void 0), j = f(void 0), M = f(void 0), N = f(void 0), I = f(""), L = f(void 0), R = f(""), z = f(!1), B = f(""), V = f(void 0), H = f(null);
3552
- l(() => {
3553
- z.value = !0, oe(), N.value = w.invalidMessage || "TODO: Add an invalidMessage";
3554
- }), u(() => {
3550
+ setup(s, { emit: l }) {
3551
+ let x = v(), S = l, w = s, T = p(void 0), D = p(void 0), j = p(void 0), M = p(void 0), N = p(void 0), P = p(""), L = p(void 0), R = p(""), z = p(!1), B = p(""), V = p(void 0), H = p(null);
3552
+ u(() => {
3553
+ z.value = !0, ae(), N.value = w.invalidMessage || "TODO: Add an invalidMessage";
3554
+ }), d(() => {
3555
3555
  V.value?.abort();
3556
- }), v(() => [w.id, w.propOverrides?.id], () => {
3557
- (w.id ?? w.propOverrides?.id) && oe();
3556
+ }), y(() => [w.id, w.propOverrides?.id], () => {
3557
+ (w.id ?? w.propOverrides?.id) && ae();
3558
3558
  }, {
3559
3559
  immediate: !0,
3560
3560
  flush: "post"
3561
- }), v(() => [H.value, w.invalidMessage], () => {
3561
+ }), y(() => [H.value, w.invalidMessage], () => {
3562
3562
  N.value = w.invalidMessage || H.value?.validationMessage || "TODO: Add an invalidMessage";
3563
3563
  }, {
3564
3564
  immediate: !0,
3565
3565
  flush: "post"
3566
- }), v(() => [E.value, z.value], () => {
3567
- if (E.value && z.value) {
3568
- let e = E.value + K, t = E.value + se;
3569
- A.value = e, j.value = E.value + q, M.value = E.value + J, I.value = t, F(w.message, w.showMessage) ? L.value = e : w.placeholder ? L.value = t : L.value = void 0, U(), z.value = !1;
3566
+ }), y(() => [T.value, z.value], () => {
3567
+ if (T.value && z.value) {
3568
+ let e = T.value + q, t = T.value + ce;
3569
+ D.value = e, j.value = T.value + J, M.value = T.value + se, P.value = t, I(w.message, w.showMessage) ? L.value = e : w.placeholder ? L.value = t : L.value = void 0, W(), z.value = !1;
3570
3570
  }
3571
3571
  }, {
3572
3572
  immediate: !0,
3573
3573
  flush: "post"
3574
- }), v(() => [w.value], () => {
3574
+ }), y(() => [w.value], () => {
3575
3575
  R.value = w.value;
3576
3576
  }, {
3577
3577
  immediate: !0,
3578
3578
  flush: "post"
3579
- }), v(() => [H.value], () => {
3579
+ }), y(() => [H.value], () => {
3580
3580
  if (H.value) {
3581
3581
  let e = V.value;
3582
- e || (e = new AbortController(), V.value = e), Ge(H.value, {
3582
+ e || (e = new AbortController(), V.value = e), Ke(H.value, {
3583
3583
  value: w.value,
3584
3584
  defaultValue: void 0
3585
3585
  }, (e) => {
3586
- ne(e, !0), W(e, !0);
3586
+ te(e, !0), G(e, !0);
3587
3587
  }, e.signal);
3588
3588
  }
3589
3589
  }, {
3590
3590
  immediate: !0,
3591
3591
  flush: "post"
3592
3592
  });
3593
- function ee() {
3593
+ function U() {
3594
3594
  return !!(w.validMessage ?? w.validation === "valid");
3595
3595
  }
3596
- function U() {
3597
- !H.value?.validity.valid || w.validation === "invalid" ? (L.value = M.value, N.value = w.invalidMessage || H.value?.validationMessage || "TODO: Add an invalidMessage", T() && (B.value = N.value, D(() => B.value = "", 1e3))) : ee() && H.value?.validity.valid && w.required ? (L.value = j.value, T() && (B.value = w.validMessage ?? "TODO: Add a validMessage", D(() => B.value = "", 1e3))) : F(w.message, w.showMessage) ? L.value = A.value : w.placeholder ? L.value = I.value : L.value = void 0;
3596
+ function W() {
3597
+ !H.value?.validity.valid || w.validation === "invalid" ? (L.value = M.value, N.value = w.invalidMessage || H.value?.validationMessage || "TODO: Add an invalidMessage", E() && (B.value = N.value, O(() => B.value = "", 1e3))) : U() && H.value?.validity.valid && w.required ? (L.value = j.value, E() && (B.value = w.validMessage ?? "TODO: Add a validMessage", O(() => B.value = "", 1e3))) : I(w.message, w.showMessage) ? L.value = D.value : w.placeholder ? L.value = P.value : L.value = void 0;
3598
3598
  }
3599
- function te(e) {
3599
+ function ee(e) {
3600
3600
  w.onClick && w.onClick(e);
3601
3601
  }
3602
- function W(e, t) {
3603
- w.input && w.input(e), R.value = e.target.value, w.onInput && w.onInput(e), Q(C, e), U();
3602
+ function G(e, t) {
3603
+ w.input && w.input(e), R.value = e.target.value, w.onInput && w.onInput(e), Q(S, e), W();
3604
3604
  }
3605
- function ne(e, t) {
3606
- w.onChange && w.onChange(e), Q(C, e), U();
3605
+ function te(e, t) {
3606
+ w.onChange && w.onChange(e), Q(S, e), W();
3607
3607
  }
3608
- function re(e) {
3608
+ function ne(e) {
3609
3609
  w.onBlur && w.onBlur(e);
3610
3610
  }
3611
- function G(e) {
3611
+ function K(e) {
3612
3612
  w.onFocus && w.onFocus(e);
3613
3613
  }
3614
- function ie(e) {
3614
+ function re(e) {
3615
3615
  return e.label ?? e.value?.toString();
3616
3616
  }
3617
- function ae() {
3617
+ function ie() {
3618
3618
  return w.variant === "floating" || w.placeholder ? w.showEmptyOption === void 0 ? !w.required : w.showEmptyOption : !1;
3619
3619
  }
3620
- function oe() {
3620
+ function ae() {
3621
3621
  let e = w.id ?? w.propOverrides?.id ?? `select-${x}`;
3622
- E.value = e, A.value = e + K, j.value = e + q, M.value = e + J, I.value = e + se;
3622
+ T.value = e, D.value = e + q, j.value = e + J, M.value = e + se, P.value = e + ce;
3623
3623
  }
3624
- return (l, u) => (d(), r("div", {
3625
- class: c(g(S)("db-select", w.class)),
3624
+ return (l, u) => (f(), r("div", {
3625
+ class: c(_(C)("db-select", w.class)),
3626
3626
  "data-variant": s.variant,
3627
- "data-hide-label": g(P)(s.showLabel),
3628
- "data-hide-asterisk": g(P)(s.showRequiredAsterisk),
3627
+ "data-hide-label": _(F)(s.showLabel),
3628
+ "data-hide-asterisk": _(F)(s.showRequiredAsterisk),
3629
3629
  "data-icon": s.icon,
3630
- "data-show-icon": g(O)(s.showIcon)
3630
+ "data-show-icon": _(k)(s.showIcon, "showIcon")
3631
3631
  }, [
3632
- i("label", { for: E.value }, h(s.label ?? g("LABEL SHOULD BE SET")), 9, dr),
3632
+ i("label", { for: T.value }, g(s.label ?? _("LABEL SHOULD BE SET")), 9, fr),
3633
3633
  i("select", {
3634
3634
  "aria-invalid": s.validation === "invalid",
3635
3635
  "data-custom-validity": s.validation,
3636
3636
  ref_key: "_ref",
3637
3637
  ref: H,
3638
- required: g(k)(s.required, "required"),
3639
- disabled: g(k)(s.disabled, "disabled"),
3640
- id: E.value,
3638
+ required: _(A)(s.required, "required"),
3639
+ disabled: _(A)(s.disabled, "disabled"),
3640
+ id: T.value,
3641
3641
  name: s.name,
3642
3642
  size: s.size,
3643
3643
  value: s.value ?? R.value ?? "",
3644
3644
  autocomplete: s.autocomplete,
3645
3645
  multiple: s.multiple,
3646
- onInput: u[0] ||= async (e) => W(e),
3647
- onClick: u[1] ||= async (e) => te(e),
3648
- onChange: u[2] ||= async (e) => ne(e),
3649
- onBlur: u[3] ||= async (e) => re(e),
3650
- onFocus: u[4] ||= async (e) => G(e),
3646
+ onInput: u[0] ||= async (e) => G(e),
3647
+ onClick: u[1] ||= async (e) => ee(e),
3648
+ onChange: u[2] ||= async (e) => te(e),
3649
+ onBlur: u[3] ||= async (e) => ne(e),
3650
+ onFocus: u[4] ||= async (e) => K(e),
3651
3651
  "aria-describedby": s.ariaDescribedBy ?? L.value
3652
- }, [s.variant === "floating" || s.placeholder ? (d(), r("option", {
3652
+ }, [s.variant === "floating" || s.placeholder ? (f(), r("option", {
3653
3653
  key: 0,
3654
3654
  class: "placeholder",
3655
3655
  value: "",
3656
- "data-show-empty-option": g(O)(ae())
3657
- }, null, 8, pr)) : n("", !0), s.options?.length ? (d(!0), r(e, { key: 1 }, p(s.options, (t, n) => (d(), r(e, { key: n }, [t.options ? (d(), r("optgroup", {
3656
+ "data-show-empty-option": _(k)(ie(), "showEmptyOption")
3657
+ }, null, 8, mr)) : n("", !0), s.options?.length ? (f(!0), r(e, { key: 1 }, m(s.options, (t, n) => (f(), r(e, { key: n }, [t.options ? (f(), r("optgroup", {
3658
3658
  key: 0,
3659
- label: ie(t)
3660
- }, [(d(!0), r(e, null, p(t.options, (e, t) => (d(), r("option", {
3659
+ label: re(t)
3660
+ }, [(f(!0), r(e, null, m(t.options, (e, t) => (f(), r("option", {
3661
3661
  key: t,
3662
3662
  value: e.value,
3663
3663
  selected: e.selected,
3664
3664
  disabled: e.disabled
3665
- }, h(ie(e)), 9, hr))), 128))], 8, mr)) : (d(), r("option", {
3665
+ }, g(re(e)), 9, gr))), 128))], 8, hr)) : (f(), r("option", {
3666
3666
  key: 1,
3667
3667
  value: t.value,
3668
3668
  disabled: t.disabled,
3669
3669
  selected: t.selected
3670
- }, h(ie(t)), 9, gr))], 64))), 128)) : m(l.$slots, "default", { key: 2 })], 40, fr),
3671
- s.placeholder ? (d(), r("span", {
3670
+ }, g(re(t)), 9, _r))], 64))), 128)) : h(l.$slots, "default", { key: 2 })], 40, pr),
3671
+ s.placeholder ? (f(), r("span", {
3672
3672
  key: 0,
3673
3673
  class: "db-select-placeholder",
3674
- id: I.value
3675
- }, h(s.placeholder), 9, _r)) : n("", !0),
3676
- g(F)(s.message, s.showMessage) ? (d(), t($, {
3674
+ id: P.value
3675
+ }, g(s.placeholder), 9, vr)) : n("", !0),
3676
+ _(I)(s.message, s.showMessage) ? (f(), t($, {
3677
3677
  key: 1,
3678
3678
  size: "small",
3679
3679
  icon: s.messageIcon,
3680
- id: A.value
3680
+ id: D.value
3681
3681
  }, {
3682
- default: y(() => [a(h(s.message), 1)]),
3682
+ default: b(() => [a(g(s.message), 1)]),
3683
3683
  _: 1
3684
3684
  }, 8, ["icon", "id"])) : n("", !0),
3685
- ee() ? (d(), t($, {
3685
+ U() ? (f(), t($, {
3686
3686
  key: 2,
3687
3687
  size: "small",
3688
3688
  semantic: "successful",
3689
3689
  id: j.value
3690
3690
  }, {
3691
- default: y(() => [a(h(s.validMessage || g("TODO: Add a validMessage")), 1)]),
3691
+ default: b(() => [a(g(s.validMessage || _("TODO: Add a validMessage")), 1)]),
3692
3692
  _: 1
3693
3693
  }, 8, ["id"])) : n("", !0),
3694
3694
  o($, {
@@ -3696,13 +3696,13 @@ var b = () => {
3696
3696
  semantic: "critical",
3697
3697
  id: M.value
3698
3698
  }, {
3699
- default: y(() => [a(h(N.value), 1)]),
3699
+ default: b(() => [a(g(N.value), 1)]),
3700
3700
  _: 1
3701
3701
  }, 8, ["id"]),
3702
- i("span", vr, h(B.value), 1)
3703
- ], 10, ur));
3702
+ i("span", yr, g(B.value), 1)
3703
+ ], 10, dr));
3704
3704
  }
3705
- }), br = [
3705
+ }), xr = [
3706
3706
  "id",
3707
3707
  "data-gap",
3708
3708
  "data-variant",
@@ -3710,7 +3710,7 @@ var b = () => {
3710
3710
  "data-alignment",
3711
3711
  "data-justify-content",
3712
3712
  "data-wrap"
3713
- ], xr = /* @__PURE__ */ s({
3713
+ ], Sr = /* @__PURE__ */ s({
3714
3714
  name: "DBStack",
3715
3715
  __name: "stack",
3716
3716
  props: {
@@ -3731,38 +3731,38 @@ var b = () => {
3731
3731
  gap: { default: void 0 }
3732
3732
  },
3733
3733
  setup(e) {
3734
- let t = e, n = f(null);
3735
- return (i, a) => (d(), r("div", {
3734
+ let t = e, n = p(null);
3735
+ return (i, a) => (f(), r("div", {
3736
3736
  ref_key: "_ref",
3737
3737
  ref: n,
3738
3738
  id: e.id ?? e.propOverrides?.id,
3739
- class: c(g(S)("db-stack", t.class)),
3739
+ class: c(_(C)("db-stack", t.class)),
3740
3740
  "data-gap": e.gap,
3741
3741
  "data-variant": e.variant,
3742
3742
  "data-direction": e.direction,
3743
3743
  "data-alignment": e.alignment,
3744
3744
  "data-justify-content": e.justifyContent,
3745
- "data-wrap": g(O)(e.wrap)
3746
- }, [m(i.$slots, "default")], 10, br));
3745
+ "data-wrap": _(k)(e.wrap, "wrap")
3746
+ }, [h(i.$slots, "default")], 10, xr));
3747
3747
  }
3748
- }), Sr = ["simple", "divider"], Cr = ["row", "column"], wr = [
3748
+ }), Cr = ["simple", "divider"], wr = ["row", "column"], Tr = [
3749
3749
  "stretch",
3750
3750
  "start",
3751
3751
  "end",
3752
3752
  "center"
3753
- ], Tr = [
3753
+ ], Er = [
3754
3754
  "space-between",
3755
3755
  "start",
3756
3756
  "end",
3757
3757
  "center"
3758
- ], Er = [
3758
+ ], Dr = [
3759
3759
  "data-visual-aid",
3760
3760
  "data-size",
3761
3761
  "data-hide-label",
3762
3762
  "data-variant",
3763
3763
  "data-hide-asterisk",
3764
3764
  "data-custom-validity"
3765
- ], Dr = ["for"], Or = [
3765
+ ], Or = ["for"], kr = [
3766
3766
  "id",
3767
3767
  "checked",
3768
3768
  "value",
@@ -3773,10 +3773,10 @@ var b = () => {
3773
3773
  "required",
3774
3774
  "data-aid-icon",
3775
3775
  "data-aid-icon-trailing"
3776
- ], kr = {
3776
+ ], Ar = {
3777
3777
  "data-visually-hidden": "true",
3778
3778
  role: "status"
3779
- }, Ar = /* @__PURE__ */ s({
3779
+ }, jr = /* @__PURE__ */ s({
3780
3780
  name: "DBSwitch",
3781
3781
  __name: "switch",
3782
3782
  props: {
@@ -3848,40 +3848,40 @@ var b = () => {
3848
3848
  variant: { default: void 0 }
3849
3849
  },
3850
3850
  emits: ["update:checked"],
3851
- setup(s, { emit: p }) {
3852
- let b = _(), x = p, C = s, w = f(void 0), E = f(void 0), A = f(void 0), j = f(void 0), M = f(void 0), N = f(void 0), I = f(""), L = f(void 0), R = f(null);
3853
- l(() => {
3854
- te(), B(), M.value = C.invalidMessage || "TODO: Add an invalidMessage";
3855
- }), u(() => {
3851
+ setup(s, { emit: l }) {
3852
+ let m = v(), x = l, S = s, w = p(void 0), T = p(void 0), D = p(void 0), j = p(void 0), M = p(void 0), N = p(void 0), P = p(""), L = p(void 0), R = p(null);
3853
+ u(() => {
3854
+ ee(), B(), M.value = S.invalidMessage || "TODO: Add an invalidMessage";
3855
+ }), d(() => {
3856
3856
  L.value?.abort();
3857
- }), v(() => [C.id, C.propOverrides?.id], () => {
3858
- (C.id ?? C.propOverrides?.id) && te();
3857
+ }), y(() => [S.id, S.propOverrides?.id], () => {
3858
+ (S.id ?? S.propOverrides?.id) && ee();
3859
3859
  }, {
3860
3860
  immediate: !0,
3861
3861
  flush: "post"
3862
- }), v(() => [
3863
- C.validation,
3864
- C.required,
3865
- C.message,
3866
- C.showMessage,
3867
- C.validMessage,
3868
- C.invalidMessage,
3869
- C.checked
3862
+ }), y(() => [
3863
+ S.validation,
3864
+ S.required,
3865
+ S.message,
3866
+ S.showMessage,
3867
+ S.validMessage,
3868
+ S.invalidMessage,
3869
+ S.checked
3870
3870
  ], () => {
3871
3871
  B();
3872
3872
  }, {
3873
3873
  immediate: !0,
3874
3874
  flush: "post"
3875
- }), v(() => [R.value, C.invalidMessage], () => {
3876
- M.value = C.invalidMessage || R.value?.validationMessage || "TODO: Add an invalidMessage";
3875
+ }), y(() => [R.value, S.invalidMessage], () => {
3876
+ M.value = S.invalidMessage || R.value?.validationMessage || "TODO: Add an invalidMessage";
3877
3877
  }, {
3878
3878
  immediate: !0,
3879
3879
  flush: "post"
3880
- }), v(() => [R.value], () => {
3880
+ }), y(() => [R.value], () => {
3881
3881
  if (R.value) {
3882
3882
  let e = L.value;
3883
- e || (e = new AbortController(), L.value = e), We(R.value, {
3884
- checked: C.checked,
3883
+ e || (e = new AbortController(), L.value = e), Ge(R.value, {
3884
+ checked: S.checked,
3885
3885
  defaultChecked: void 0
3886
3886
  }, (e) => {
3887
3887
  V(e, !0);
@@ -3892,51 +3892,51 @@ var b = () => {
3892
3892
  flush: "post"
3893
3893
  });
3894
3894
  function z() {
3895
- return !!(C.validMessage ?? C.validation === "valid");
3895
+ return !!(S.validMessage ?? S.validation === "valid");
3896
3896
  }
3897
3897
  function B() {
3898
- if (!R.value?.validity?.valid || C.validation === "invalid") {
3899
- N.value = j.value, M.value = C.invalidMessage || R.value?.validationMessage || "TODO: Add an invalidMessage", T() && (I.value = M.value || "TODO: Add an invalidMessage", D(() => {
3900
- I.value = "";
3898
+ if (!R.value?.validity?.valid || S.validation === "invalid") {
3899
+ N.value = j.value, M.value = S.invalidMessage || R.value?.validationMessage || "TODO: Add an invalidMessage", E() && (P.value = M.value || "TODO: Add an invalidMessage", O(() => {
3900
+ P.value = "";
3901
3901
  }, 1e3));
3902
3902
  return;
3903
3903
  }
3904
- if (z() && R.value?.validity?.valid && C.required) {
3905
- N.value = A.value, T() && (I.value = C.validMessage ?? "TODO: Add a validMessage", D(() => {
3906
- I.value = "";
3904
+ if (z() && R.value?.validity?.valid && S.required) {
3905
+ N.value = D.value, E() && (P.value = S.validMessage ?? "TODO: Add a validMessage", O(() => {
3906
+ P.value = "";
3907
3907
  }, 1e3));
3908
3908
  return;
3909
3909
  }
3910
- if (F(C.message, C.showMessage)) {
3911
- N.value = E.value;
3910
+ if (I(S.message, S.showMessage)) {
3911
+ N.value = T.value;
3912
3912
  return;
3913
3913
  }
3914
3914
  N.value = void 0;
3915
3915
  }
3916
3916
  function V(e, t) {
3917
- C.onChange && C.onChange(e), B(), Q(x, e, "checked");
3917
+ S.onChange && S.onChange(e), B(), Q(x, e, "checked");
3918
3918
  }
3919
3919
  function H(e) {
3920
- C.onBlur && C.onBlur(e);
3921
- }
3922
- function ee(e) {
3923
- C.onFocus && C.onFocus(e);
3920
+ S.onBlur && S.onBlur(e);
3924
3921
  }
3925
3922
  function U(e) {
3926
- e.key === "Enter" && (e.preventDefault(), C.disabled || R.value?.click());
3923
+ S.onFocus && S.onFocus(e);
3927
3924
  }
3928
- function te() {
3929
- let e = C.id ?? C.propOverrides?.id ?? `switch-${b}`;
3930
- w.value = e, E.value = `${e}${K}`, A.value = `${e}${q}`, j.value = `${e}${J}`;
3925
+ function W(e) {
3926
+ e.key === "Enter" && (e.preventDefault(), S.disabled || R.value?.click());
3927
+ }
3928
+ function ee() {
3929
+ let e = S.id ?? S.propOverrides?.id ?? `switch-${m}`;
3930
+ w.value = e, T.value = `${e}${q}`, D.value = `${e}${J}`, j.value = `${e}${se}`;
3931
3931
  }
3932
- return (l, u) => (d(), r("div", {
3933
- "data-visual-aid": g(O)(s.visualAid),
3932
+ return (l, u) => (f(), r("div", {
3933
+ "data-visual-aid": _(k)(s.visualAid, "visualAid"),
3934
3934
  "data-size": s.size,
3935
- "data-hide-label": g(P)(s.showLabel),
3935
+ "data-hide-label": _(F)(s.showLabel),
3936
3936
  "data-variant": s.variant,
3937
- "data-hide-asterisk": g(P)(s.showRequiredAsterisk),
3937
+ "data-hide-asterisk": _(F)(s.showRequiredAsterisk),
3938
3938
  "data-custom-validity": s.validation,
3939
- class: c(g(S)("db-switch", C.class))
3939
+ class: c(_(C)("db-switch", S.class))
3940
3940
  }, [
3941
3941
  i("label", { for: w.value }, [
3942
3942
  i("input", {
@@ -3945,40 +3945,40 @@ var b = () => {
3945
3945
  id: w.value,
3946
3946
  ref_key: "_ref",
3947
3947
  ref: R,
3948
- checked: g(k)(s.checked, "checked"),
3948
+ checked: _(A)(s.checked, "checked"),
3949
3949
  value: s.value,
3950
- disabled: g(k)(s.disabled, "disabled"),
3950
+ disabled: _(A)(s.disabled, "disabled"),
3951
3951
  "aria-invalid": s.validation === "invalid" ? "true" : void 0,
3952
3952
  "aria-describedby": N.value,
3953
3953
  name: s.name,
3954
- required: g(k)(s.required, "required"),
3954
+ required: _(A)(s.required, "required"),
3955
3955
  "data-aid-icon": s.iconLeading ?? s.icon,
3956
3956
  "data-aid-icon-trailing": s.iconTrailing,
3957
3957
  onChange: u[0] ||= async (e) => V(e),
3958
3958
  onBlur: u[1] ||= async (e) => H(e),
3959
- onFocus: u[2] ||= async (e) => ee(e),
3960
- onKeydown: u[3] ||= async (e) => U(e)
3961
- }, null, 40, Or),
3962
- s.label ? (d(), r(e, { key: 0 }, [a(h(s.label), 1)], 64)) : n("", !0),
3963
- m(l.$slots, "default")
3964
- ], 8, Dr),
3965
- g(F)(s.message, s.showMessage) ? (d(), t($, {
3959
+ onFocus: u[2] ||= async (e) => U(e),
3960
+ onKeydown: u[3] ||= async (e) => W(e)
3961
+ }, null, 40, kr),
3962
+ s.label ? (f(), r(e, { key: 0 }, [a(g(s.label), 1)], 64)) : n("", !0),
3963
+ h(l.$slots, "default")
3964
+ ], 8, Or),
3965
+ _(I)(s.message, s.showMessage) ? (f(), t($, {
3966
3966
  key: 0,
3967
3967
  size: "small",
3968
3968
  semantic: "adaptive",
3969
- id: E.value,
3969
+ id: T.value,
3970
3970
  icon: s.messageIcon
3971
3971
  }, {
3972
- default: y(() => [a(h(s.message), 1)]),
3972
+ default: b(() => [a(g(s.message), 1)]),
3973
3973
  _: 1
3974
3974
  }, 8, ["id", "icon"])) : n("", !0),
3975
- z() ? (d(), t($, {
3975
+ z() ? (f(), t($, {
3976
3976
  key: 1,
3977
3977
  size: "small",
3978
3978
  semantic: "successful",
3979
- id: A.value
3979
+ id: D.value
3980
3980
  }, {
3981
- default: y(() => [a(h(s.validMessage ?? g("TODO: Add a validMessage")), 1)]),
3981
+ default: b(() => [a(g(s.validMessage ?? _("TODO: Add a validMessage")), 1)]),
3982
3982
  _: 1
3983
3983
  }, 8, ["id"])) : n("", !0),
3984
3984
  o($, {
@@ -3986,26 +3986,26 @@ var b = () => {
3986
3986
  semantic: "critical",
3987
3987
  id: j.value
3988
3988
  }, {
3989
- default: y(() => [a(h(M.value), 1)]),
3989
+ default: b(() => [a(g(M.value), 1)]),
3990
3990
  _: 1
3991
3991
  }, 8, ["id"]),
3992
- i("span", kr, h(I.value), 1)
3993
- ], 10, Er));
3992
+ i("span", Ar, g(P.value), 1)
3993
+ ], 10, Dr));
3994
3994
  }
3995
- }), jr = [
3995
+ }), Mr = [
3996
3996
  "for",
3997
3997
  "data-icon",
3998
3998
  "data-icon-trailing",
3999
3999
  "data-show-icon",
4000
4000
  "data-show-icon-trailing",
4001
4001
  "data-no-text"
4002
- ], Mr = [
4002
+ ], Nr = [
4003
4003
  "disabled",
4004
4004
  "aria-selected",
4005
4005
  "checked",
4006
4006
  "name",
4007
4007
  "id"
4008
- ], Nr = /* @__PURE__ */ s({
4008
+ ], Pr = /* @__PURE__ */ s({
4009
4009
  name: "DBTabItem",
4010
4010
  __name: "tab-item",
4011
4011
  props: {
@@ -4056,60 +4056,60 @@ var b = () => {
4056
4056
  },
4057
4057
  emits: ["update:checked"],
4058
4058
  setup(t, { emit: o }) {
4059
- let s = o, p = t, _ = f(!1), y = f(void 0), b = f(!1), x = f(!1), C = f(void 0), w = f(null);
4060
- l(() => {
4061
- C.value = T, b.value = !0;
4062
- }), u(() => {
4063
- x.value && w.value && C.value && (w.value.closest("[role=tablist]")?.removeEventListener("change", C.value), x.value = !1);
4064
- }), v(() => [
4059
+ let s = o, l = t, m = p(!1), v = p(void 0), b = p(!1), x = p(!1), S = p(void 0), w = p(null);
4060
+ u(() => {
4061
+ S.value = T, b.value = !0;
4062
+ }), d(() => {
4063
+ x.value && w.value && S.value && (w.value.closest("[role=tablist]")?.removeEventListener("change", S.value), x.value = !1);
4064
+ }), y(() => [
4065
4065
  w.value,
4066
4066
  b.value,
4067
- C.value
4067
+ S.value
4068
4068
  ], () => {
4069
- w.value && b.value && C.value && (b.value = !1, x.value ||= (w.value.closest("[role=tablist]")?.addEventListener("change", C.value), !0), (p.active || w.value.checked) && (_.value = !0, w.value.click()));
4069
+ w.value && b.value && S.value && (b.value = !1, x.value ||= (w.value.closest("[role=tablist]")?.addEventListener("change", S.value), !0), (l.active || w.value.checked) && (m.value = !0, w.value.click()));
4070
4070
  }, {
4071
4071
  immediate: !0,
4072
4072
  flush: "post"
4073
- }), v(() => [p.name], () => {
4074
- p.name && (y.value = p.name);
4073
+ }), y(() => [l.name], () => {
4074
+ l.name && (v.value = l.name);
4075
4075
  }, {
4076
4076
  immediate: !0,
4077
4077
  flush: "post"
4078
4078
  });
4079
4079
  function T(e) {
4080
- e.stopPropagation(), _.value = e.target === w.value;
4080
+ e.stopPropagation(), m.value = e.target === w.value;
4081
4081
  }
4082
4082
  function E(e) {
4083
- p.onChange && p.onChange(e), Q(s, e, "checked");
4083
+ l.onChange && l.onChange(e), Q(s, e, "checked");
4084
4084
  }
4085
- return (o, s) => (d(), r("li", {
4085
+ return (o, s) => (f(), r("li", {
4086
4086
  role: "none",
4087
- class: c(g(S)("db-tab-item", p.class))
4087
+ class: c(_(C)("db-tab-item", l.class))
4088
4088
  }, [i("label", {
4089
4089
  for: t.id ?? t.propOverrides?.id,
4090
4090
  "data-icon": t.iconLeading ?? t.icon,
4091
4091
  "data-icon-trailing": t.iconTrailing,
4092
- "data-show-icon": g(O)(t.showIconLeading ?? t.showIcon),
4093
- "data-show-icon-trailing": g(O)(t.showIconTrailing),
4094
- "data-no-text": g(O)(t.noText)
4092
+ "data-show-icon": _(k)(t.showIconLeading, "showIconLeading") || _(k)(t.showIcon, "showIcon"),
4093
+ "data-show-icon-trailing": _(k)(t.showIconTrailing, "showIconTrailing"),
4094
+ "data-no-text": _(k)(t.noText, "noText")
4095
4095
  }, [
4096
4096
  i("input", {
4097
4097
  type: "radio",
4098
4098
  role: "tab",
4099
- disabled: g(k)(t.disabled, "disabled"),
4100
- "aria-selected": _.value,
4101
- checked: g(k)(t.checked, "checked"),
4099
+ disabled: _(A)(t.disabled, "disabled"),
4100
+ "aria-selected": m.value,
4101
+ checked: _(A)(t.checked, "checked"),
4102
4102
  ref_key: "_ref",
4103
4103
  ref: w,
4104
- name: y.value,
4104
+ name: v.value,
4105
4105
  id: t.id ?? t.propOverrides?.id,
4106
4106
  onInput: s[0] ||= async (e) => E(e)
4107
- }, null, 40, Mr),
4108
- t.label ? (d(), r(e, { key: 0 }, [a(h(t.label), 1)], 64)) : n("", !0),
4109
- m(o.$slots, "default")
4110
- ], 8, jr)], 2));
4107
+ }, null, 40, Nr),
4108
+ t.label ? (f(), r(e, { key: 0 }, [a(g(t.label), 1)], 64)) : n("", !0),
4109
+ h(o.$slots, "default")
4110
+ ], 8, Mr)], 2));
4111
4111
  }
4112
- }), Pr = ["id"], Fr = { role: "tablist" }, Ir = /* @__PURE__ */ s({
4112
+ }), Fr = ["id"], Ir = { role: "tablist" }, Lr = /* @__PURE__ */ s({
4113
4113
  name: "DBTabList",
4114
4114
  __name: "tab-list",
4115
4115
  props: {
@@ -4121,15 +4121,15 @@ var b = () => {
4121
4121
  propOverrides: { default: void 0 }
4122
4122
  },
4123
4123
  setup(e) {
4124
- let t = e, n = f(null);
4125
- return (a, o) => (d(), r("div", {
4124
+ let t = e, n = p(null);
4125
+ return (a, o) => (f(), r("div", {
4126
4126
  ref_key: "_ref",
4127
4127
  ref: n,
4128
4128
  id: e.id ?? e.propOverrides?.id,
4129
- class: c(g(S)("db-tab-list", t.class))
4130
- }, [i("ul", Fr, [m(a.$slots, "default")])], 10, Pr));
4129
+ class: c(_(C)("db-tab-list", t.class))
4130
+ }, [i("ul", Ir, [h(a.$slots, "default")])], 10, Fr));
4131
4131
  }
4132
- }), Lr = ["id"], Rr = /* @__PURE__ */ s({
4132
+ }), Rr = ["id"], zr = /* @__PURE__ */ s({
4133
4133
  name: "DBTabPanel",
4134
4134
  __name: "tab-panel",
4135
4135
  props: {
@@ -4142,22 +4142,544 @@ var b = () => {
4142
4142
  propOverrides: { default: void 0 }
4143
4143
  },
4144
4144
  setup(t) {
4145
- let i = t, o = f(null);
4146
- return l(() => {}), (s, l) => (d(), r("section", {
4145
+ let i = t, o = p(null);
4146
+ return u(() => {}), (s, l) => (f(), r("section", {
4147
4147
  role: "tabpanel",
4148
4148
  ref_key: "_ref",
4149
4149
  ref: o,
4150
- class: c(g(S)("db-tab-panel", i.class)),
4150
+ class: c(_(C)("db-tab-panel", i.class)),
4151
4151
  id: t.id ?? t.propOverrides?.id
4152
- }, [t.content ? (d(), r(e, { key: 0 }, [a(h(t.content), 1)], 64)) : n("", !0), m(s.$slots, "default")], 10, Lr));
4152
+ }, [t.content ? (f(), r(e, { key: 0 }, [a(g(t.content), 1)], 64)) : n("", !0), h(s.$slots, "default")], 10, Rr));
4153
4153
  }
4154
- }), zr = [
4154
+ }), Br = [
4155
+ "id",
4156
+ "data-horizontal-alignment",
4157
+ "data-vertical-alignment",
4158
+ "colSpan",
4159
+ "rowSpan",
4160
+ "headers"
4161
+ ], Vr = /* @__PURE__ */ s({
4162
+ name: "DBTableDataCell",
4163
+ __name: "table-data-cell",
4164
+ props: {
4165
+ children: { default: void 0 },
4166
+ className: { default: void 0 },
4167
+ class: {},
4168
+ id: { default: void 0 },
4169
+ autofocus: { type: [Boolean, String] },
4170
+ propOverrides: {},
4171
+ colSpan: { default: void 0 },
4172
+ colspan: { default: void 0 },
4173
+ headers: { default: void 0 },
4174
+ rowSpan: { default: void 0 },
4175
+ rowspan: { default: void 0 },
4176
+ horizontalAlignment: { default: void 0 },
4177
+ verticalAlignment: { default: void 0 }
4178
+ },
4179
+ setup(e) {
4180
+ let t = e, n = p(null);
4181
+ return (i, a) => (f(), r("td", {
4182
+ ref_key: "_ref",
4183
+ ref: n,
4184
+ id: e.id,
4185
+ class: c(_(C)("db-table-data-cell", t.class)),
4186
+ "data-horizontal-alignment": e.horizontalAlignment,
4187
+ "data-vertical-alignment": e.verticalAlignment,
4188
+ colSpan: _(j)(e.colSpan, e.colspan),
4189
+ rowSpan: _(j)(e.rowSpan, e.rowspan),
4190
+ headers: e.headers
4191
+ }, [h(i.$slots, "default")], 10, Br));
4192
+ }
4193
+ }), Hr = [
4194
+ "id",
4195
+ "data-horizontal-alignment",
4196
+ "data-vertical-alignment",
4197
+ "data-no-text",
4198
+ "scope",
4199
+ "colSpan",
4200
+ "rowSpan",
4201
+ "headers",
4202
+ "abbr"
4203
+ ], Ur = /* @__PURE__ */ s({
4204
+ name: "DBTableHeaderCell",
4205
+ __name: "table-header-cell",
4206
+ props: {
4207
+ abbr: { default: void 0 },
4208
+ scope: { default: void 0 },
4209
+ noText: {
4210
+ type: [Boolean, String],
4211
+ default: void 0
4212
+ },
4213
+ children: { default: void 0 },
4214
+ className: { default: void 0 },
4215
+ class: {},
4216
+ id: { default: void 0 },
4217
+ autofocus: { type: [Boolean, String] },
4218
+ propOverrides: {},
4219
+ colSpan: { default: void 0 },
4220
+ colspan: { default: void 0 },
4221
+ headers: { default: void 0 },
4222
+ rowSpan: { default: void 0 },
4223
+ rowspan: { default: void 0 },
4224
+ horizontalAlignment: { default: void 0 },
4225
+ verticalAlignment: { default: void 0 }
4226
+ },
4227
+ setup(e) {
4228
+ let t = e, n = p(null);
4229
+ return (i, a) => (f(), r("th", {
4230
+ ref_key: "_ref",
4231
+ ref: n,
4232
+ id: e.id,
4233
+ class: c(_(C)("db-table-header-cell", t.class)),
4234
+ "data-horizontal-alignment": e.horizontalAlignment,
4235
+ "data-vertical-alignment": e.verticalAlignment,
4236
+ "data-no-text": _(k)(e.noText),
4237
+ scope: e.scope,
4238
+ colSpan: _(j)(e.colSpan, e.colspan),
4239
+ rowSpan: _(j)(e.rowSpan, e.rowspan),
4240
+ headers: e.headers,
4241
+ abbr: e.abbr
4242
+ }, [h(i.$slots, "default")], 10, Hr));
4243
+ }
4244
+ }), Wr = [
4245
+ "id",
4246
+ "data-interactive",
4247
+ "data-sub-header-emphasis"
4248
+ ], Gr = /* @__PURE__ */ s({
4249
+ name: "DBTableRow",
4250
+ __name: "table-row",
4251
+ props: {
4252
+ cells: { default: void 0 },
4253
+ subHeaderEmphasis: { default: void 0 },
4254
+ interactive: {
4255
+ type: [Boolean, String],
4256
+ default: void 0
4257
+ },
4258
+ children: { default: void 0 },
4259
+ className: { default: void 0 },
4260
+ class: {},
4261
+ id: { default: void 0 },
4262
+ autofocus: { type: [Boolean, String] },
4263
+ propOverrides: {}
4264
+ },
4265
+ setup(n) {
4266
+ let i = v(), o = n, s = p(null);
4267
+ function l(e) {
4268
+ if (e.headerCell) return e;
4269
+ }
4270
+ return (u, d) => (f(), r("tr", {
4271
+ ref_key: "_ref",
4272
+ ref: s,
4273
+ id: n.id,
4274
+ class: c(_(C)("db-table-row", o.class)),
4275
+ "data-interactive": _(k)(n.interactive),
4276
+ "data-sub-header-emphasis": n.subHeaderEmphasis
4277
+ }, [n.cells ? (f(!0), r(e, { key: 0 }, m(n.cells, (o, s) => (f(), r(e, { key: s }, [o.headerCell ? (f(), t(Ur, {
4278
+ key: `${o.id ?? n.id ?? _(i)}-table-row-header-cell-${s}`,
4279
+ id: o.id,
4280
+ abbr: l(o)?.abbr,
4281
+ scope: l(o)?.scope,
4282
+ noText: l(o)?.noText,
4283
+ className: o.className ?? o.class,
4284
+ horizontalAlignment: o.horizontalAlignment,
4285
+ verticalAlignment: o.verticalAlignment,
4286
+ headers: o.headers,
4287
+ colSpan: o.colSpan,
4288
+ colspan: o.colspan,
4289
+ rowSpan: o.rowSpan,
4290
+ rowspan: o.rowspan
4291
+ }, {
4292
+ default: b(() => [o.link ? (f(), t(Pn, {
4293
+ key: 0,
4294
+ content: o.link?.content,
4295
+ size: o.link?.size,
4296
+ variant: o.link?.variant,
4297
+ className: o.link?.className ?? o.link?.class,
4298
+ id: o.link?.id,
4299
+ autofocus: o.link?.autofocus,
4300
+ disabled: o.link?.disabled,
4301
+ href: o.link?.href,
4302
+ hreflang: o.link?.hreflang,
4303
+ target: o.link?.target,
4304
+ rel: o.link?.rel,
4305
+ referrerPolicy: o.link?.referrerPolicy,
4306
+ role: o.link?.role,
4307
+ showIcon: o.link?.showIcon,
4308
+ text: o.link?.text,
4309
+ wrap: o.link?.wrap
4310
+ }, {
4311
+ default: b(() => [a(g(o.link?.children), 1)]),
4312
+ _: 2
4313
+ }, 1032, [
4314
+ "content",
4315
+ "size",
4316
+ "variant",
4317
+ "className",
4318
+ "id",
4319
+ "autofocus",
4320
+ "disabled",
4321
+ "href",
4322
+ "hreflang",
4323
+ "target",
4324
+ "rel",
4325
+ "referrerPolicy",
4326
+ "role",
4327
+ "showIcon",
4328
+ "text",
4329
+ "wrap"
4330
+ ])) : (f(), r(e, { key: 1 }, [a(g(o.content), 1)], 64))]),
4331
+ _: 2
4332
+ }, 1032, [
4333
+ "id",
4334
+ "abbr",
4335
+ "scope",
4336
+ "noText",
4337
+ "className",
4338
+ "horizontalAlignment",
4339
+ "verticalAlignment",
4340
+ "headers",
4341
+ "colSpan",
4342
+ "colspan",
4343
+ "rowSpan",
4344
+ "rowspan"
4345
+ ])) : (f(), t(Vr, {
4346
+ key: `${o.id ?? n.id ?? _(i)}-table-row-data-cell-${s}`,
4347
+ id: o.id,
4348
+ className: o.className ?? o.class,
4349
+ horizontalAlignment: o.horizontalAlignment,
4350
+ verticalAlignment: o.verticalAlignment,
4351
+ headers: o.headers,
4352
+ colSpan: o.colSpan,
4353
+ colspan: o.colspan,
4354
+ rowSpan: o.rowSpan,
4355
+ rowspan: o.rowspan
4356
+ }, {
4357
+ default: b(() => [o.link ? (f(), t(Pn, {
4358
+ key: 0,
4359
+ content: o.link?.content,
4360
+ size: o.link?.size,
4361
+ variant: o.link?.variant,
4362
+ className: o.link?.className ?? o.link?.class,
4363
+ id: o.link?.id,
4364
+ autofocus: o.link?.autofocus,
4365
+ disabled: o.link?.disabled,
4366
+ href: o.link?.href,
4367
+ hreflang: o.link?.hreflang,
4368
+ target: o.link?.target,
4369
+ rel: o.link?.rel,
4370
+ referrerPolicy: o.link?.referrerPolicy,
4371
+ role: o.link?.role,
4372
+ showIcon: o.link?.showIcon,
4373
+ text: o.link?.text,
4374
+ wrap: o.link?.wrap
4375
+ }, {
4376
+ default: b(() => [a(g(o.link?.children), 1)]),
4377
+ _: 2
4378
+ }, 1032, [
4379
+ "content",
4380
+ "size",
4381
+ "variant",
4382
+ "className",
4383
+ "id",
4384
+ "autofocus",
4385
+ "disabled",
4386
+ "href",
4387
+ "hreflang",
4388
+ "target",
4389
+ "rel",
4390
+ "referrerPolicy",
4391
+ "role",
4392
+ "showIcon",
4393
+ "text",
4394
+ "wrap"
4395
+ ])) : (f(), r(e, { key: 1 }, [a(g(o.content), 1)], 64))]),
4396
+ _: 2
4397
+ }, 1032, [
4398
+ "id",
4399
+ "className",
4400
+ "horizontalAlignment",
4401
+ "verticalAlignment",
4402
+ "headers",
4403
+ "colSpan",
4404
+ "colspan",
4405
+ "rowSpan",
4406
+ "rowspan"
4407
+ ]))], 64))), 128)) : h(u.$slots, "default", { key: 1 })], 10, Wr));
4408
+ }
4409
+ }), Kr = ["id"], qr = /* @__PURE__ */ s({
4410
+ name: "DBTableBody",
4411
+ __name: "table-body",
4412
+ props: {
4413
+ rows: { default: void 0 },
4414
+ children: { default: void 0 },
4415
+ className: { default: void 0 },
4416
+ class: {},
4417
+ id: { default: void 0 },
4418
+ autofocus: { type: [Boolean, String] },
4419
+ propOverrides: {}
4420
+ },
4421
+ setup(n) {
4422
+ let i = v(), a = n, o = p(null);
4423
+ return (s, l) => (f(), r("tbody", {
4424
+ ref_key: "_ref",
4425
+ ref: o,
4426
+ id: n.id,
4427
+ class: c(_(C)("db-table-body", a.class))
4428
+ }, [n.rows ? (f(!0), r(e, { key: 0 }, m(n.rows, (e, r) => (f(), t(Gr, {
4429
+ key: `${e.id ?? n.id ?? _(i)}-table-body-row-${r}`,
4430
+ cells: e.cells,
4431
+ className: e.className ?? e.class,
4432
+ interactive: e.interactive,
4433
+ id: e.id
4434
+ }, null, 8, [
4435
+ "cells",
4436
+ "className",
4437
+ "interactive",
4438
+ "id"
4439
+ ]))), 128)) : h(s.$slots, "default", { key: 1 })], 10, Kr));
4440
+ }
4441
+ }), Jr = ["id"], Yr = /* @__PURE__ */ s({
4442
+ name: "DBTableFooter",
4443
+ __name: "table-footer",
4444
+ props: {
4445
+ rows: { default: void 0 },
4446
+ children: { default: void 0 },
4447
+ className: { default: void 0 },
4448
+ class: {},
4449
+ id: { default: void 0 },
4450
+ autofocus: { type: [Boolean, String] },
4451
+ propOverrides: {}
4452
+ },
4453
+ setup(n) {
4454
+ let i = v(), a = n, o = p(null);
4455
+ return (s, l) => (f(), r("tfoot", {
4456
+ ref_key: "_ref",
4457
+ ref: o,
4458
+ id: n.id,
4459
+ class: c(_(C)("db-table-footer", a.class))
4460
+ }, [n.rows ? (f(!0), r(e, { key: 0 }, m(n.rows, (e, r) => (f(), t(Gr, {
4461
+ key: `${e.id ?? n.id ?? _(i)}-table-footer-row-${r}`,
4462
+ cells: e.cells,
4463
+ className: e.className ?? e.class,
4464
+ interactive: e.interactive,
4465
+ id: e.id
4466
+ }, null, 8, [
4467
+ "cells",
4468
+ "className",
4469
+ "interactive",
4470
+ "id"
4471
+ ]))), 128)) : h(s.$slots, "default", { key: 1 })], 10, Jr));
4472
+ }
4473
+ }), Xr = ["id"], Zr = /* @__PURE__ */ s({
4474
+ name: "DBTableHead",
4475
+ __name: "table-head",
4476
+ props: {
4477
+ rows: { default: void 0 },
4478
+ children: { default: void 0 },
4479
+ className: { default: void 0 },
4480
+ class: {},
4481
+ id: { default: void 0 },
4482
+ autofocus: { type: [Boolean, String] },
4483
+ propOverrides: {}
4484
+ },
4485
+ setup(n) {
4486
+ let i = v(), a = n, o = p(null);
4487
+ function s(e) {
4488
+ return e?.map((e) => ({
4489
+ ...e,
4490
+ headerCell: !0
4491
+ }));
4492
+ }
4493
+ return (l, u) => (f(), r("thead", {
4494
+ ref_key: "_ref",
4495
+ ref: o,
4496
+ id: n.id,
4497
+ class: c(_(C)("db-table-head", a.class))
4498
+ }, [n.rows ? (f(!0), r(e, { key: 0 }, m(n.rows, (e, r) => (f(), t(Gr, {
4499
+ key: `${e.id ?? n.id ?? _(i)}-table-head-row-${r}`,
4500
+ cells: s(e.cells),
4501
+ className: e.className ?? e.class,
4502
+ subHeaderEmphasis: e.subHeaderEmphasis,
4503
+ interactive: e.interactive,
4504
+ id: e.id
4505
+ }, null, 8, [
4506
+ "cells",
4507
+ "className",
4508
+ "subHeaderEmphasis",
4509
+ "interactive",
4510
+ "id"
4511
+ ]))), 128)) : h(l.$slots, "default", { key: 1 })], 10, Xr));
4512
+ }
4513
+ }), Qr = [
4514
+ "data-width",
4515
+ "data-size",
4516
+ "data-divider",
4517
+ "data-variant",
4518
+ "data-mobile-variant",
4519
+ "data-show-caption",
4520
+ "data-sticky-header"
4521
+ ], $r = ["id"], ei = { key: 0 }, ti = /* @__PURE__ */ s({
4522
+ name: "DBTable",
4523
+ __name: "table",
4524
+ props: {
4525
+ caption: {},
4526
+ captionPlain: { default: void 0 },
4527
+ data: { default: void 0 },
4528
+ divider: { default: void 0 },
4529
+ showCaption: {
4530
+ type: [Boolean, String],
4531
+ default: void 0
4532
+ },
4533
+ size: { default: void 0 },
4534
+ variant: { default: void 0 },
4535
+ mobileVariant: { default: void 0 },
4536
+ stickyHeader: { default: void 0 },
4537
+ columnSizes: { default: void 0 },
4538
+ children: { default: void 0 },
4539
+ className: { default: void 0 },
4540
+ class: {},
4541
+ id: { default: void 0 },
4542
+ autofocus: { type: [Boolean, String] },
4543
+ propOverrides: {},
4544
+ width: { default: void 0 }
4545
+ },
4546
+ setup(a) {
4547
+ let o = a, s = p(void 0), u = p(void 0), d = p(null);
4548
+ y(() => [o.data], () => {
4549
+ o.data ? s.value = m() : s.value = void 0;
4550
+ }, {
4551
+ immediate: !0,
4552
+ flush: "post"
4553
+ }), y(() => [
4554
+ o.mobileVariant,
4555
+ d.value,
4556
+ s.value
4557
+ ], () => {
4558
+ d.value && o.mobileVariant === "list" && O(() => {
4559
+ let e = d.value;
4560
+ if (!e) return;
4561
+ let t = e.querySelectorAll("thead tr th");
4562
+ t.length && e.querySelectorAll(":is(tbody,tfoot) tr").forEach((e) => {
4563
+ e.querySelectorAll(":is(td,th)").forEach((e, n) => {
4564
+ let r = t[n];
4565
+ if (r) {
4566
+ let t = Array.from(r.childNodes).filter((e) => e.nodeType === Node.TEXT_NODE).map((e) => e.textContent?.trim()).filter(Boolean).join(" ");
4567
+ t && (e.dataset.header = t);
4568
+ }
4569
+ });
4570
+ });
4571
+ }, 1);
4572
+ }, {
4573
+ immediate: !0,
4574
+ flush: "post"
4575
+ }), y(() => [o.columnSizes], () => {
4576
+ if (o.columnSizes) {
4577
+ let e = {};
4578
+ Object.entries(o.columnSizes).forEach(([t, n]) => {
4579
+ e[`--db-table-column-size-${t}`] = n;
4580
+ }), u.value = e;
4581
+ } else u.value = void 0;
4582
+ }, {
4583
+ immediate: !0,
4584
+ flush: "post"
4585
+ });
4586
+ function m() {
4587
+ try {
4588
+ return typeof o.data == "string" ? JSON.parse(o.data) : o.data;
4589
+ } catch (e) {
4590
+ console.error(e);
4591
+ }
4592
+ return {};
4593
+ }
4594
+ return (p, m) => (f(), r("div", {
4595
+ class: c(_(C)("db-table", o.class)),
4596
+ style: l(u.value),
4597
+ "data-width": a.width,
4598
+ "data-size": a.size,
4599
+ "data-divider": a.divider,
4600
+ "data-variant": a.variant,
4601
+ "data-mobile-variant": a.mobileVariant,
4602
+ "data-show-caption": _(k)(a.showCaption),
4603
+ "data-sticky-header": a.stickyHeader
4604
+ }, [i("table", {
4605
+ ref_key: "_ref",
4606
+ ref: d,
4607
+ id: a.id
4608
+ }, [a.captionPlain ? (f(), r("caption", ei, g(a.captionPlain), 1)) : h(p.$slots, "caption", { key: 1 }), s.value ? (f(), r(e, { key: 2 }, [
4609
+ s.value?.header ? (f(), t(Zr, {
4610
+ key: 0,
4611
+ rows: s.value?.header
4612
+ }, null, 8, ["rows"])) : n("", !0),
4613
+ s.value?.body ? (f(), t(qr, {
4614
+ key: 1,
4615
+ rows: s.value?.body
4616
+ }, null, 8, ["rows"])) : n("", !0),
4617
+ s.value?.footer ? (f(), t(Yr, {
4618
+ key: 2,
4619
+ rows: s.value?.footer
4620
+ }, null, 8, ["rows"])) : n("", !0)
4621
+ ], 64)) : h(p.$slots, "default", { key: 3 })], 8, $r)], 14, Qr));
4622
+ }
4623
+ }), ni = ["id"], ri = /* @__PURE__ */ s({
4624
+ name: "DBTableCaption",
4625
+ __name: "table-caption",
4626
+ props: {
4627
+ children: { default: void 0 },
4628
+ className: { default: void 0 },
4629
+ class: {},
4630
+ id: { default: void 0 },
4631
+ autofocus: { type: [Boolean, String] },
4632
+ propOverrides: {}
4633
+ },
4634
+ setup(e) {
4635
+ let t = e, n = p(null);
4636
+ return (i, a) => (f(), r("caption", {
4637
+ ref_key: "_ref",
4638
+ ref: n,
4639
+ id: e.id,
4640
+ class: c(_(C)("db-table-caption", t.class))
4641
+ }, [h(i.$slots, "default")], 10, ni));
4642
+ }
4643
+ }), ii = [
4644
+ "row",
4645
+ "col",
4646
+ "rowgroup",
4647
+ "colgroup"
4648
+ ], ai = [
4649
+ "none",
4650
+ "weak",
4651
+ "strong"
4652
+ ], oi = [
4653
+ "x-small",
4654
+ "small",
4655
+ "medium",
4656
+ "large"
4657
+ ], si = [
4658
+ "flat",
4659
+ "zebra",
4660
+ "spaced"
4661
+ ], ci = [
4662
+ "none",
4663
+ "both",
4664
+ "horizontal",
4665
+ "vertical"
4666
+ ], li = ["table", "list"], ui = [
4667
+ "none",
4668
+ "both",
4669
+ "horizontal",
4670
+ "vertical"
4671
+ ], di = [
4672
+ "auto",
4673
+ "1fr",
4674
+ "min-content",
4675
+ "max-content"
4676
+ ], fi = [
4155
4677
  "id",
4156
4678
  "data-orientation",
4157
4679
  "data-scroll-behavior",
4158
4680
  "data-alignment",
4159
4681
  "data-width"
4160
- ], Br = /* @__PURE__ */ s({
4682
+ ], pi = /* @__PURE__ */ s({
4161
4683
  name: "DBTabs",
4162
4684
  __name: "tabs",
4163
4685
  props: {
@@ -4188,13 +4710,13 @@ var b = () => {
4188
4710
  tabSelect: {}
4189
4711
  },
4190
4712
  setup(i) {
4191
- let s = _(), b = i, x = f(""), C = f(!1), w = f(!1), T = f(!1), E = f(null), D = f(void 0), O = f(null);
4192
- l(() => {
4193
- x.value = `tabs-${b.name || s}`, C.value = !0;
4194
- }), u(() => {
4713
+ let s = v(), l = i, x = p(""), S = p(!1), w = p(!1), T = p(!1), E = p(null), D = p(void 0), O = p(null);
4714
+ u(() => {
4715
+ x.value = `tabs-${l.name || s}`, S.value = !0;
4716
+ }), d(() => {
4195
4717
  D.value?.disconnect(), D.value = void 0;
4196
- }), v(() => [O.value, C.value], () => {
4197
- if (O.value && C.value) {
4718
+ }), y(() => [O.value, S.value], () => {
4719
+ if (O.value && S.value) {
4198
4720
  M(), N(!0);
4199
4721
  let e = O.value.querySelector(".db-tab-list");
4200
4722
  e && new MutationObserver((e) => {
@@ -4204,7 +4726,7 @@ var b = () => {
4204
4726
  }).observe(e, {
4205
4727
  childList: !0,
4206
4728
  subtree: !0
4207
- }), C.value = !1;
4729
+ }), S.value = !1;
4208
4730
  }
4209
4731
  }, {
4210
4732
  immediate: !0,
@@ -4212,7 +4734,7 @@ var b = () => {
4212
4734
  });
4213
4735
  function k() {
4214
4736
  try {
4215
- return typeof b.tabs == "string" ? JSON.parse(b.tabs) : b.tabs;
4737
+ return typeof l.tabs == "string" ? JSON.parse(l.tabs) : l.tabs;
4216
4738
  } catch (e) {
4217
4739
  console.error(e);
4218
4740
  }
@@ -4223,7 +4745,7 @@ var b = () => {
4223
4745
  w.value = t && e.scrollLeft > 1, T.value = t && e.scrollLeft < e.scrollWidth - e.clientWidth;
4224
4746
  }
4225
4747
  function j(e) {
4226
- let t = Number(b.arrowScrollDistance) || 100;
4748
+ let t = Number(l.arrowScrollDistance) || 100;
4227
4749
  e && (t *= -1), E.value?.scrollBy({
4228
4750
  top: 0,
4229
4751
  left: t,
@@ -4235,7 +4757,7 @@ var b = () => {
4235
4757
  let e = O.value.querySelector(".db-tab-list");
4236
4758
  if (e) {
4237
4759
  let t = e.querySelector("[role=\"tablist\"]");
4238
- if (t && (t.setAttribute("aria-orientation", b.orientation || "horizontal"), b.behavior === "arrows" && (E.value = t, A(t), t.addEventListener("scroll", () => {
4760
+ if (t && (t.setAttribute("aria-orientation", l.orientation || "horizontal"), l.behavior === "arrows" && (E.value = t, A(t), t.addEventListener("scroll", () => {
4239
4761
  A(t);
4240
4762
  }), !D.value))) {
4241
4763
  let e = new ResizeObserver(() => {
@@ -4257,7 +4779,7 @@ var b = () => {
4257
4779
  a.setAttribute("for", e), o.id = e, o.setAttribute("name", x.value), n.length > i && o.setAttribute("aria-controls", `${x.value}-tab-panel-${i}`);
4258
4780
  }
4259
4781
  if (e) {
4260
- let e = !b.initialSelectedMode || b.initialSelectedMode === "auto", t = b.initialSelectedIndex == null && i === 0 || Number(b.initialSelectedIndex) === i;
4782
+ let e = !l.initialSelectedMode || l.initialSelectedMode === "auto", t = l.initialSelectedIndex == null && i === 0 || Number(l.initialSelectedIndex) === i;
4261
4783
  e && t && o.click();
4262
4784
  }
4263
4785
  }
@@ -4278,25 +4800,25 @@ var b = () => {
4278
4800
  let t = n.parentElement;
4279
4801
  if (t) {
4280
4802
  let r = Array.from(t.children).indexOf(n);
4281
- b.onIndexChange && b.onIndexChange(r), b.onTabSelect && b.onTabSelect(e);
4803
+ l.onIndexChange && l.onIndexChange(r), l.onTabSelect && l.onTabSelect(e);
4282
4804
  }
4283
4805
  }
4284
4806
  }
4285
4807
  }
4286
4808
  }
4287
- return (s, l) => (d(), r("div", {
4809
+ return (s, u) => (f(), r("div", {
4288
4810
  ref_key: "_ref",
4289
4811
  ref: O,
4290
4812
  id: i.id ?? i.propOverrides?.id,
4291
- class: c(g(S)("db-tabs", b.class)),
4813
+ class: c(_(C)("db-tabs", l.class)),
4292
4814
  "data-orientation": i.orientation,
4293
4815
  "data-scroll-behavior": i.behavior,
4294
4816
  "data-alignment": i.alignment ?? "start",
4295
4817
  "data-width": i.width ?? "auto",
4296
- onInput: l[0] ||= async (e) => P(e),
4297
- onChange: l[1] ||= async (e) => P(e)
4818
+ onInput: u[0] ||= async (e) => P(e),
4819
+ onChange: u[1] ||= async (e) => P(e)
4298
4820
  }, [
4299
- w.value ? (d(), t(Ie, {
4821
+ w.value ? (f(), t(Le, {
4300
4822
  key: 0,
4301
4823
  class: "tabs-scroll-left",
4302
4824
  variant: "ghost",
@@ -4305,11 +4827,11 @@ var b = () => {
4305
4827
  noText: !0,
4306
4828
  onClick: (e) => j(!0)
4307
4829
  }, {
4308
- default: y(() => [...l[2] ||= [a(" Scroll left ", -1)]]),
4830
+ default: b(() => [...u[2] ||= [a(" Scroll left ", -1)]]),
4309
4831
  _: 1
4310
4832
  }, 8, ["onClick"])) : n("", !0),
4311
- i.tabs ? (d(), r(e, { key: 1 }, [o(Ir, null, {
4312
- default: y(() => [(d(!0), r(e, null, p(k(), (e, n) => (d(), t(Nr, {
4833
+ i.tabs ? (f(), r(e, { key: 1 }, [o(Lr, null, {
4834
+ default: b(() => [(f(!0), r(e, null, m(k(), (e, n) => (f(), t(Pr, {
4313
4835
  key: i.name + "tab-item" + n,
4314
4836
  active: e.active,
4315
4837
  label: e.label,
@@ -4324,14 +4846,14 @@ var b = () => {
4324
4846
  "noText"
4325
4847
  ]))), 128))]),
4326
4848
  _: 1
4327
- }), (d(!0), r(e, null, p(k(), (e, n) => (d(), t(Rr, {
4849
+ }), (f(!0), r(e, null, m(k(), (e, n) => (f(), t(zr, {
4328
4850
  key: i.name + "tab-panel" + n,
4329
4851
  content: e.content
4330
4852
  }, {
4331
- default: y(() => [a(h(e.children), 1)]),
4853
+ default: b(() => [a(g(e.children), 1)]),
4332
4854
  _: 2
4333
4855
  }, 1032, ["content"]))), 128))], 64)) : n("", !0),
4334
- T.value ? (d(), t(Ie, {
4856
+ T.value ? (f(), t(Le, {
4335
4857
  key: 2,
4336
4858
  class: "tabs-scroll-right",
4337
4859
  variant: "ghost",
@@ -4340,17 +4862,17 @@ var b = () => {
4340
4862
  noText: !0,
4341
4863
  onClick: (e) => j()
4342
4864
  }, {
4343
- default: y(() => [...l[3] ||= [a(" Scroll right ", -1)]]),
4865
+ default: b(() => [...u[3] ||= [a(" Scroll right ", -1)]]),
4344
4866
  _: 1
4345
4867
  }, 8, ["onClick"])) : n("", !0),
4346
- m(s.$slots, "default")
4347
- ], 42, zr));
4868
+ h(s.$slots, "default")
4869
+ ], 42, fi));
4348
4870
  }
4349
- }), Vr = ["scrollbar", "arrows"], Hr = ["auto", "manually"], Ur = ["static", "removable"], Wr = [
4871
+ }), mi = ["scrollbar", "arrows"], hi = ["auto", "manually"], gi = ["static", "removable"], _i = [
4350
4872
  "data-variant",
4351
4873
  "data-hide-asterisk",
4352
4874
  "data-hide-label"
4353
- ], Gr = ["for"], Kr = [
4875
+ ], vi = ["for"], yi = [
4354
4876
  "aria-invalid",
4355
4877
  "data-custom-validity",
4356
4878
  "data-field-sizing",
@@ -4372,10 +4894,10 @@ var b = () => {
4372
4894
  "placeholder",
4373
4895
  "rows",
4374
4896
  "cols"
4375
- ], qr = {
4897
+ ], bi = {
4376
4898
  "data-visually-hidden": "true",
4377
4899
  role: "status"
4378
- }, Jr = /* @__PURE__ */ s({
4900
+ }, xi = /* @__PURE__ */ s({
4379
4901
  name: "DBTextarea",
4380
4902
  __name: "textarea",
4381
4903
  props: {
@@ -4469,39 +4991,39 @@ var b = () => {
4469
4991
  },
4470
4992
  emits: ["update:value"],
4471
4993
  setup(e, { emit: s }) {
4472
- let p = _(), m = s, b = e, x = f(void 0), C = f(void 0), w = f(void 0), E = f(void 0), O = f(void 0), j = f(void 0), M = f(""), N = f(""), I = f(void 0), L = f(null);
4473
- l(() => {
4474
- U(), O.value = b.invalidMessage || "TODO: Add an invalidMessage";
4475
- }), u(() => {
4476
- I.value?.abort();
4477
- }), v(() => [b.id, b.propOverrides?.id], () => {
4478
- (b.id ?? b.propOverrides?.id) && U();
4994
+ let l = v(), m = s, h = e, x = p(void 0), S = p(void 0), w = p(void 0), T = p(void 0), D = p(void 0), k = p(void 0), M = p(""), N = p(""), P = p(void 0), L = p(null);
4995
+ u(() => {
4996
+ W(), D.value = h.invalidMessage || "TODO: Add an invalidMessage";
4997
+ }), d(() => {
4998
+ P.value?.abort();
4999
+ }), y(() => [h.id, h.propOverrides?.id], () => {
5000
+ (h.id ?? h.propOverrides?.id) && W();
4479
5001
  }, {
4480
5002
  immediate: !0,
4481
5003
  flush: "post"
4482
- }), v(() => [L.value, b.invalidMessage], () => {
4483
- O.value = b.invalidMessage || L.value?.validationMessage || "TODO: Add an invalidMessage";
5004
+ }), y(() => [L.value, h.invalidMessage], () => {
5005
+ D.value = h.invalidMessage || L.value?.validationMessage || "TODO: Add an invalidMessage";
4484
5006
  }, {
4485
5007
  immediate: !0,
4486
5008
  flush: "post"
4487
- }), v(() => [x.value], () => {
5009
+ }), y(() => [x.value], () => {
4488
5010
  if (x.value) {
4489
- let e = x.value + K;
4490
- C.value = e, w.value = x.value + q, E.value = x.value + J, F(b.message, b.showMessage) && (j.value = e), z();
5011
+ let e = x.value + q;
5012
+ S.value = e, w.value = x.value + J, T.value = x.value + se, I(h.message, h.showMessage) && (k.value = e), z();
4491
5013
  }
4492
5014
  }, {
4493
5015
  immediate: !0,
4494
5016
  flush: "post"
4495
- }), v(() => [b.value], () => {
4496
- M.value = b.value;
5017
+ }), y(() => [h.value], () => {
5018
+ M.value = h.value;
4497
5019
  }, {
4498
5020
  immediate: !0,
4499
5021
  flush: "post"
4500
- }), v(() => [L.value], () => {
5022
+ }), y(() => [L.value], () => {
4501
5023
  if (L.value) {
4502
- let e = I.value;
4503
- e || (e = new AbortController(), I.value = e), Ge(L.value, {
4504
- value: b.value,
5024
+ let e = P.value;
5025
+ e || (e = new AbortController(), P.value = e), Ke(L.value, {
5026
+ value: h.value,
4505
5027
  defaultValue: void 0
4506
5028
  }, (e) => {
4507
5029
  V(e, !0), B(e, !0);
@@ -4512,34 +5034,34 @@ var b = () => {
4512
5034
  flush: "post"
4513
5035
  });
4514
5036
  function R() {
4515
- return !!(b.validMessage ?? b.validation === "valid");
5037
+ return !!(h.validMessage ?? h.validation === "valid");
4516
5038
  }
4517
5039
  function z() {
4518
- !L.value?.validity.valid || b.validation === "invalid" ? (j.value = E.value, O.value = b.invalidMessage || L.value?.validationMessage || "TODO: Add an invalidMessage", T() && (N.value = O.value, D(() => N.value = "", 1e3))) : R() && L.value?.validity.valid && (b.required || b.minLength || b.maxLength) ? (j.value = w.value, T() && (N.value = b.validMessage ?? "TODO: Add a validMessage", D(() => N.value = "", 1e3))) : F(b.message, b.showMessage) ? j.value = C.value : j.value = void 0;
5040
+ !L.value?.validity.valid || h.validation === "invalid" ? (k.value = T.value, D.value = h.invalidMessage || L.value?.validationMessage || "TODO: Add an invalidMessage", E() && (N.value = D.value, O(() => N.value = "", 1e3))) : R() && L.value?.validity.valid && (h.required || h.minLength || h.maxLength) ? (k.value = w.value, E() && (N.value = h.validMessage ?? "TODO: Add a validMessage", O(() => N.value = "", 1e3))) : I(h.message, h.showMessage) ? k.value = S.value : k.value = void 0;
4519
5041
  }
4520
5042
  function B(e, t) {
4521
- b.input && b.input(e), M.value = e.target.value, b.onInput && b.onInput(e), Q(m, e), z();
5043
+ h.input && h.input(e), M.value = e.target.value, h.onInput && h.onInput(e), Q(m, e), z();
4522
5044
  }
4523
5045
  function V(e, t) {
4524
- b.onChange && b.onChange(e), Q(m, e), z();
5046
+ h.onChange && h.onChange(e), Q(m, e), z();
4525
5047
  }
4526
5048
  function H(e) {
4527
- b.onBlur && b.onBlur(e);
5049
+ h.onBlur && h.onBlur(e);
4528
5050
  }
4529
- function ee(e) {
4530
- b.onFocus && b.onFocus(e);
5051
+ function U(e) {
5052
+ h.onFocus && h.onFocus(e);
4531
5053
  }
4532
- function U() {
4533
- let e = b.id ?? b.propOverrides?.id ?? `textarea-${p}`;
4534
- x.value = e, C.value = e + K, w.value = e + q, E.value = e + J;
5054
+ function W() {
5055
+ let e = h.id ?? h.propOverrides?.id ?? `textarea-${l}`;
5056
+ x.value = e, S.value = e + q, w.value = e + J, T.value = e + se;
4535
5057
  }
4536
- return (s, l) => (d(), r("div", {
4537
- class: c(g(S)("db-textarea", b.class)),
5058
+ return (s, l) => (f(), r("div", {
5059
+ class: c(_(C)("db-textarea", h.class)),
4538
5060
  "data-variant": e.variant,
4539
- "data-hide-asterisk": g(P)(e.showRequiredAsterisk),
4540
- "data-hide-label": g(P)(e.showLabel)
5061
+ "data-hide-asterisk": _(F)(e.showRequiredAsterisk),
5062
+ "data-hide-label": _(F)(e.showLabel)
4541
5063
  }, [
4542
- i("label", { for: x.value }, h(e.label ?? g("LABEL SHOULD BE SET")), 9, Gr),
5064
+ i("label", { for: x.value }, g(e.label ?? _("LABEL SHOULD BE SET")), 9, vi),
4543
5065
  i("textarea", {
4544
5066
  "aria-invalid": e.validation === "invalid",
4545
5067
  "data-custom-validity": e.validation,
@@ -4548,13 +5070,13 @@ var b = () => {
4548
5070
  ref: L,
4549
5071
  id: x.value,
4550
5072
  "data-resize": e.resize,
4551
- "data-hide-resizer": g(P)(e.showResizer ?? !0),
4552
- disabled: g(k)(e.disabled, "disabled"),
4553
- required: g(k)(e.required, "required"),
4554
- readOnly: g(k)(e.readOnly, "readOnly") || g(k)(e.readonly, "readonly"),
5073
+ "data-hide-resizer": _(F)(e.showResizer ?? !0),
5074
+ disabled: _(A)(e.disabled, "disabled"),
5075
+ required: _(A)(e.required, "required"),
5076
+ readOnly: _(A)(e.readOnly, "readOnly") || _(A)(e.readonly, "readonly"),
4555
5077
  form: e.form,
4556
- maxLength: g(A)(e.maxLength, e.maxlength),
4557
- minLength: g(A)(e.minLength, e.minlength),
5078
+ maxLength: _(j)(e.maxLength, e.maxlength),
5079
+ minLength: _(j)(e.minLength, e.minlength),
4558
5080
  name: e.name,
4559
5081
  wrap: e.wrap,
4560
5082
  spellcheck: e.spellCheck,
@@ -4562,83 +5084,83 @@ var b = () => {
4562
5084
  onInput: l[0] ||= async (e) => B(e),
4563
5085
  onChange: l[1] ||= async (e) => V(e),
4564
5086
  onBlur: l[2] ||= async (e) => H(e),
4565
- onFocus: l[3] ||= async (e) => ee(e),
5087
+ onFocus: l[3] ||= async (e) => U(e),
4566
5088
  value: e.value ?? M.value ?? "",
4567
- "aria-describedby": e.ariaDescribedBy ?? j.value,
4568
- placeholder: e.placeholder ?? g(" "),
4569
- rows: g(A)(e.rows, g(4)),
4570
- cols: g(A)(e.cols)
4571
- }, h(e.value), 41, Kr),
4572
- g(F)(e.message, e.showMessage) ? (d(), t($, {
5089
+ "aria-describedby": e.ariaDescribedBy ?? k.value,
5090
+ placeholder: e.placeholder ?? _(" "),
5091
+ rows: _(j)(e.rows, _(4)),
5092
+ cols: _(j)(e.cols)
5093
+ }, g(e.value), 41, yi),
5094
+ _(I)(e.message, e.showMessage) ? (f(), t($, {
4573
5095
  key: 0,
4574
5096
  size: "small",
4575
5097
  icon: e.messageIcon,
4576
- id: C.value
5098
+ id: S.value
4577
5099
  }, {
4578
- default: y(() => [a(h(e.message), 1)]),
5100
+ default: b(() => [a(g(e.message), 1)]),
4579
5101
  _: 1
4580
5102
  }, 8, ["icon", "id"])) : n("", !0),
4581
- R() ? (d(), t($, {
5103
+ R() ? (f(), t($, {
4582
5104
  key: 1,
4583
5105
  size: "small",
4584
5106
  semantic: "successful",
4585
5107
  id: w.value
4586
5108
  }, {
4587
- default: y(() => [a(h(e.validMessage || g("TODO: Add a validMessage")), 1)]),
5109
+ default: b(() => [a(g(e.validMessage || _("TODO: Add a validMessage")), 1)]),
4588
5110
  _: 1
4589
5111
  }, 8, ["id"])) : n("", !0),
4590
5112
  o($, {
4591
5113
  size: "small",
4592
5114
  semantic: "critical",
4593
- id: E.value
5115
+ id: T.value
4594
5116
  }, {
4595
- default: y(() => [a(h(O.value), 1)]),
5117
+ default: b(() => [a(g(D.value), 1)]),
4596
5118
  _: 1
4597
5119
  }, 8, ["id"]),
4598
- i("span", qr, h(N.value), 1)
4599
- ], 10, Wr));
5120
+ i("span", bi, g(N.value), 1)
5121
+ ], 10, _i));
4600
5122
  }
4601
- }), Yr = [
5123
+ }), Si = [
4602
5124
  "none",
4603
5125
  "both",
4604
5126
  "horizontal",
4605
5127
  "vertical"
4606
- ], Xr = [
5128
+ ], Ci = [
4607
5129
  "hard",
4608
5130
  "soft",
4609
5131
  "off"
4610
- ], Zr = ["description", "label"], Qr = [
5132
+ ], wi = ["description", "label"], Ti = [
4611
5133
  "adaptive",
4612
5134
  "neutral",
4613
5135
  "critical",
4614
5136
  "informational",
4615
5137
  "warning",
4616
5138
  "successful"
4617
- ], $r = [
5139
+ ], Ei = [
4618
5140
  "medium",
4619
5141
  "small",
4620
5142
  "large",
4621
5143
  "none"
4622
- ], ei = [
5144
+ ], Di = [
4623
5145
  "medium",
4624
5146
  "small",
4625
5147
  "large",
4626
5148
  "none"
4627
- ], ti = [
5149
+ ], Oi = [
4628
5150
  "left",
4629
5151
  "right",
4630
5152
  "left-start",
4631
5153
  "left-end",
4632
5154
  "right-start",
4633
5155
  "right-end"
4634
- ], ni = [
5156
+ ], ki = [
4635
5157
  "top",
4636
5158
  "bottom",
4637
5159
  "top-start",
4638
5160
  "top-end",
4639
5161
  "bottom-start",
4640
5162
  "bottom-end"
4641
- ], ri = [...ti, ...ni], ii = [
5163
+ ], Ai = [...Oi, ...ki], ji = [
4642
5164
  "none",
4643
5165
  "3x-large",
4644
5166
  "2x-large",
@@ -4649,25 +5171,25 @@ var b = () => {
4649
5171
  "x-small",
4650
5172
  "2x-small",
4651
5173
  "3x-small"
4652
- ], ai = ["horizontal", "vertical"], oi = ["full", "auto"], si = [
5174
+ ], Mi = ["horizontal", "vertical"], Ni = ["full", "auto"], Pi = [
4653
5175
  "full",
4654
5176
  "medium",
4655
5177
  "large",
4656
5178
  "small"
4657
- ], ci = [
5179
+ ], Fi = [
4658
5180
  "none",
4659
5181
  "slow",
4660
5182
  "fast"
4661
- ], li = ["auto", "fixed"], ui = ["small", "medium"], di = ["weak", "strong"], fi = [
5183
+ ], Ii = ["auto", "fixed"], Li = ["small", "medium"], Ri = ["weak", "strong"], zi = [
4662
5184
  "invalid",
4663
5185
  "valid",
4664
5186
  "no-validation"
4665
- ], pi = ["fixed", "content"], mi = ["above", "floating"], hi = ["leading", "trailing"], gi = /* @__PURE__ */ "off.on.name.honorific-prefix.given-name.additional-name.family-name.honorific-suffix.nickname.email.username.new-password.current-password.one-time-code.organization-title.organization.street-address.shipping.billing.address-line1.address-line2.address-line3.address-level4.address-level3.address-level2.address-level1.country.country-name.postal-code.cc-name.cc-given-name.cc-additional-name.cc-family-name.cc-number.cc-exp.cc-exp-month.cc-exp-year.cc-csc.cc-type.transaction-currency.transaction-amount.language.bday.bday-day.bday-month.bday-year.sex.tel.tel-country-code.tel-national.tel-area-code.tel-local.tel-extension.impp.url.photo.webauthn".split("."), _i = [
5187
+ ], Bi = ["fixed", "content"], Vi = ["above", "floating"], Hi = ["leading", "trailing"], Ui = /* @__PURE__ */ "off.on.name.honorific-prefix.given-name.additional-name.family-name.honorific-suffix.nickname.email.username.new-password.current-password.one-time-code.organization-title.organization.street-address.shipping.billing.address-line1.address-line2.address-line3.address-level4.address-level3.address-level2.address-level1.country.country-name.postal-code.cc-name.cc-given-name.cc-additional-name.cc-family-name.cc-number.cc-exp.cc-exp-month.cc-exp-year.cc-csc.cc-type.transaction-currency.transaction-amount.language.bday.bday-day.bday-month.bday-year.sex.tel.tel-country-code.tel-national.tel-area-code.tel-local.tel-extension.impp.url.photo.webauthn".split("."), Wi = [
4666
5188
  "_self",
4667
5189
  "_blank",
4668
5190
  "_parent",
4669
5191
  "_top"
4670
- ], vi = [
5192
+ ], Gi = [
4671
5193
  "no-referrer",
4672
5194
  "no-referrer-when-downgrade",
4673
5195
  "origin",
@@ -4676,6 +5198,10 @@ var b = () => {
4676
5198
  "strict-origin",
4677
5199
  "strict-origin-when-cross-origin",
4678
5200
  "unsafe-url"
4679
- ], yi = ["start", "center"];
5201
+ ], Ki = [
5202
+ "start",
5203
+ "center",
5204
+ "end"
5205
+ ];
4680
5206
  //#endregion
4681
- export { W as AccordionBehaviorList, te as AccordionVariantList, yi as AlignmentList, gi as AutoCompleteList, Me as BadgePlacementList, Re as ButtonTypeList, Le as ButtonVariantList, X as COLOR, Z as COLORS, Se as COLORS_SIMPLE, ve as COLOR_CONST, xe as COLOR_SIMPLE, Ve as CardBehaviorList, He as CardElevationLevelList, Kt as CustomSelectDropdownWidthList, Yt as CustomSelectListItemTypeList, U as DBAccordion, H as DBAccordionItem, je as DBBadge, Pe as DBBrand, Ie as DBButton, Be as DBCard, Ze as DBCheckbox, $e as DBCustomButton, Gt as DBCustomSelect, dt as DBCustomSelectDropdown, Jt as DBCustomSelectFormField, vt as DBCustomSelectList, gt as DBCustomSelectListItem, Qt as DBDivider, sn as DBDrawer, Dn as DBHeader, kn as DBIcon, $ as DBInfotext, Tt as DBInput, Nn as DBLink, Rn as DBNavigation, Un as DBNavigationItem, Jn as DBNotification, $n as DBPage, ir as DBPopover, sr as DBRadio, lr as DBSection, yr as DBSelect, xr as DBStack, Ar as DBSwitch, Nr as DBTabItem, Ir as DBTabList, Rr as DBTabPanel, Br as DBTabs, kt as DBTag, Jr as DBTextarea, Dt as DBTooltip, Oe as DB_UX_LOCAL_STORAGE_FRAMEWORK, ke as DB_UX_LOCAL_STORAGE_MODE, de as DEFAULT_BACK, pe as DEFAULT_BURGER_MENU, ge as DEFAULT_CLOSE_BUTTON, ce as DEFAULT_DATALIST_ID_SUFFIX, me as DEFAULT_ICON, ne as DEFAULT_ID, Y as DEFAULT_INVALID_MESSAGE, J as DEFAULT_INVALID_MESSAGE_ID_SUFFIX, re as DEFAULT_LABEL, ae as DEFAULT_LABEL_ID_SUFFIX, ie as DEFAULT_MESSAGE, K as DEFAULT_MESSAGE_ID_SUFFIX, G as DEFAULT_PLACEHOLDER, se as DEFAULT_PLACEHOLDER_ID_SUFFIX, ue as DEFAULT_REMOVE, he as DEFAULT_ROWS, fe as DEFAULT_SELECTED, oe as DEFAULT_SELECT_ID_SUFFIX, le as DEFAULT_VALID_MESSAGE, q as DEFAULT_VALID_MESSAGE_ID_SUFFIX, Te as DEFAULT_VIEWPORT, be as DENSITIES, ye as DENSITY, _e as DENSITY_CONST, Ee as DESKTOP_VIEWPORT, $t as DividerMarginList, en as DividerVariantList, et as DocumentClickListener, tt as DocumentScrollListener, cn as DrawerBackdropList, ln as DrawerDirectionList, dn as DrawerPositionList, un as DrawerVariantList, di as EmphasisList, pi as FieldSizingList, ii as GapSpacingList, An as IconWeightList, jn as InputTypeList, hi as LabelVariantHorizontalList, mi as LabelVariantList, In as LinkContentList, vi as LinkReferrerPolicyList, Fn as LinkSizeList, _i as LinkTargetList, Pn as LinkVariantList, ei as MarginList, si as MaxWidthList, pn as NavigationItemSafeTriangle, Zn as NotificationAriaLiveList, Xn as NotificationLinkVariantList, Yn as NotificationVariantList, ai as OrientationList, tr as PageDocumentOverflowList, er as PageVariantList, ti as PlacementHorizontalList, ri as PlacementList, ni as PlacementVerticalList, ci as PopoverDelayList, li as PopoverWidthList, Ce as SEMANTIC, we as SEMANTICS, Xt as SelectedTypeList, Qr as SemanticList, ui as SizeList, $r as SpacingList, wr as StackAlignmentList, Cr as StackDirectionList, Tr as StackJustifyContentList, Sr as StackVariantList, De as TESTING_VIEWPORTS, Vr as TabsBehaviorList, Hr as TabsInitialSelectedModeList, Ur as TagBehaviorList, Yr as TextareaResizeList, Xr as TextareaWrapList, Zr as TooltipVariantList, fi as ValidationList, oi as WidthList, x as addAttributeToChildren, S as cls, D as delay, k as getBoolean, O as getBooleanAsString, at as getFloatingProps, P as getHideProp, M as getInputValue, z as getNotificationRole, A as getNumber, L as getOptionKey, I as getSearchInput, j as getStep, rt as handleDataOutside, it as handleFixedDropdown, lt as handleFixedPopover, T as hasVoiceOver, C as isArrayOfStrings, fn as isEventTargetNavigationItem, E as isIOSSafari, R as isKeyboardEvent, F as stringPropVisible, b as uuid };
5207
+ export { te as AccordionBehaviorList, G as AccordionVariantList, Ki as AlignmentList, Ui as AutoCompleteList, Ne as BadgePlacementList, ze as ButtonTypeList, Re as ButtonVariantList, Z as COLOR, Se as COLORS, Ce as COLORS_SIMPLE, ye as COLOR_CONST, X as COLOR_SIMPLE, He as CardBehaviorList, Ue as CardElevationLevelList, qt as CustomSelectDropdownWidthList, Xt as CustomSelectListItemTypeList, ee as DBAccordion, U as DBAccordionItem, Me as DBBadge, Fe as DBBrand, Le as DBButton, Ve as DBCard, Qe as DBCheckbox, et as DBCustomButton, Kt as DBCustomSelect, ft as DBCustomSelectDropdown, Yt as DBCustomSelectFormField, yt as DBCustomSelectList, _t as DBCustomSelectListItem, $t as DBDivider, cn as DBDrawer, On as DBHeader, An as DBIcon, $ as DBInfotext, Et as DBInput, Pn as DBLink, zn as DBNavigation, Wn as DBNavigationItem, Yn as DBNotification, er as DBPage, ar as DBPopover, cr as DBRadio, ur as DBSection, br as DBSelect, Sr as DBStack, jr as DBSwitch, Pr as DBTabItem, Lr as DBTabList, zr as DBTabPanel, ti as DBTable, qr as DBTableBody, ri as DBTableCaption, di as DBTableColumnsSizeList, Vr as DBTableDataCell, ci as DBTableDividerList, Yr as DBTableFooter, Zr as DBTableHead, Ur as DBTableHeaderCell, ii as DBTableHeaderCellScopeList, li as DBTableMobileVariantList, Gr as DBTableRow, oi as DBTableRowSizeList, ai as DBTableRowSubHeaderEmphasisList, ui as DBTableStickyHeaderList, si as DBTableVariantList, pi as DBTabs, At as DBTag, xi as DBTextarea, Ot as DBTooltip, ke as DB_UX_LOCAL_STORAGE_FRAMEWORK, Ae as DB_UX_LOCAL_STORAGE_MODE, fe as DEFAULT_BACK, me as DEFAULT_BURGER_MENU, _e as DEFAULT_CLOSE_BUTTON, le as DEFAULT_DATALIST_ID_SUFFIX, he as DEFAULT_ICON, ne as DEFAULT_ID, ue as DEFAULT_INVALID_MESSAGE, se as DEFAULT_INVALID_MESSAGE_ID_SUFFIX, K as DEFAULT_LABEL, ae as DEFAULT_LABEL_ID_SUFFIX, ie as DEFAULT_MESSAGE, q as DEFAULT_MESSAGE_ID_SUFFIX, re as DEFAULT_PLACEHOLDER, ce as DEFAULT_PLACEHOLDER_ID_SUFFIX, de as DEFAULT_REMOVE, ge as DEFAULT_ROWS, pe as DEFAULT_SELECTED, oe as DEFAULT_SELECT_ID_SUFFIX, Y as DEFAULT_VALID_MESSAGE, J as DEFAULT_VALID_MESSAGE_ID_SUFFIX, Ee as DEFAULT_VIEWPORT, xe as DENSITIES, be as DENSITY, ve as DENSITY_CONST, De as DESKTOP_VIEWPORT, en as DividerMarginList, tn as DividerVariantList, tt as DocumentClickListener, nt as DocumentScrollListener, ln as DrawerBackdropList, un as DrawerDirectionList, fn as DrawerPositionList, dn as DrawerVariantList, Ri as EmphasisList, Bi as FieldSizingList, ji as GapSpacingList, jn as IconWeightList, Mn as InputTypeList, Hi as LabelVariantHorizontalList, Vi as LabelVariantList, Ln as LinkContentList, Gi as LinkReferrerPolicyList, In as LinkSizeList, Wi as LinkTargetList, Fn as LinkVariantList, Di as MarginList, Pi as MaxWidthList, mn as NavigationItemSafeTriangle, Qn as NotificationAriaLiveList, Zn as NotificationLinkVariantList, Xn as NotificationVariantList, Mi as OrientationList, nr as PageDocumentOverflowList, tr as PageVariantList, Oi as PlacementHorizontalList, Ai as PlacementList, ki as PlacementVerticalList, Fi as PopoverDelayList, Ii as PopoverWidthList, we as SEMANTIC, Te as SEMANTICS, Zt as SelectedTypeList, Ti as SemanticList, Li as SizeList, Ei as SpacingList, Tr as StackAlignmentList, wr as StackDirectionList, Er as StackJustifyContentList, Cr as StackVariantList, Oe as TESTING_VIEWPORTS, mi as TabsBehaviorList, hi as TabsInitialSelectedModeList, gi as TagBehaviorList, Si as TextareaResizeList, Ci as TextareaWrapList, wi as TooltipVariantList, zi as ValidationList, Ni as WidthList, S as addAttributeToChildren, C as cls, O as delay, A as getBoolean, k as getBooleanAsString, ot as getFloatingProps, F as getHideProp, N as getInputValue, B as getNotificationRole, j as getNumber, R as getOptionKey, L as getSearchInput, M as getStep, it as handleDataOutside, at as handleFixedDropdown, ut as handleFixedPopover, E as hasVoiceOver, w as isArrayOfStrings, pn as isEventTargetNavigationItem, D as isIOSSafari, z as isKeyboardEvent, I as stringPropVisible, x as uuid };